kh-one-ui 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1393) hide show
  1. package/CHANGELOG.en-US.md +1731 -0
  2. package/CHANGELOG.es.md +1740 -0
  3. package/CHANGELOG.fr-FR.md +1731 -0
  4. package/CHANGELOG.zh-CN.md +1732 -0
  5. package/LICENSE +21 -0
  6. package/README.md +119 -0
  7. package/lib/alert.js +420 -0
  8. package/lib/aside.js +277 -0
  9. package/lib/autocomplete.js +952 -0
  10. package/lib/avatar.js +363 -0
  11. package/lib/backtop.js +404 -0
  12. package/lib/badge.js +334 -0
  13. package/lib/breadcrumb-item.js +322 -0
  14. package/lib/breadcrumb.js +293 -0
  15. package/lib/button-group.js +262 -0
  16. package/lib/button.js +357 -0
  17. package/lib/calendar.js +922 -0
  18. package/lib/card.js +297 -0
  19. package/lib/carousel-item.js +433 -0
  20. package/lib/carousel.js +698 -0
  21. package/lib/cascader-panel.js +1549 -0
  22. package/lib/cascader.js +1424 -0
  23. package/lib/checkbox-button.js +583 -0
  24. package/lib/checkbox-group.js +313 -0
  25. package/lib/checkbox.js +627 -0
  26. package/lib/col.js +177 -0
  27. package/lib/collapse-item.js +497 -0
  28. package/lib/collapse.js +329 -0
  29. package/lib/color-picker.js +1943 -0
  30. package/lib/container.js +288 -0
  31. package/lib/date-picker.js +6226 -0
  32. package/lib/dialog.js +600 -0
  33. package/lib/directives/mousewheel.js +26 -0
  34. package/lib/directives/repeat-click.js +30 -0
  35. package/lib/divider.js +313 -0
  36. package/lib/drawer.js +602 -0
  37. package/lib/dropdown-item.js +316 -0
  38. package/lib/dropdown-menu.js +349 -0
  39. package/lib/dropdown.js +623 -0
  40. package/lib/footer.js +277 -0
  41. package/lib/form-item.js +821 -0
  42. package/lib/form.js +470 -0
  43. package/lib/header.js +277 -0
  44. package/lib/icon.js +265 -0
  45. package/lib/image-viewer.js +710 -0
  46. package/lib/image.js +1082 -0
  47. package/lib/index.js +1 -0
  48. package/lib/infinite-scroll.js +301 -0
  49. package/lib/input-number.js +741 -0
  50. package/lib/input.js +974 -0
  51. package/lib/lib/encrypt/oneaes.js +101 -0
  52. package/lib/lib/encrypt/onesm2.js +92 -0
  53. package/lib/lib/encrypt/sm-crypto/index.js +7 -0
  54. package/lib/lib/encrypt/sm-crypto/sm2/asn1.js +282 -0
  55. package/lib/lib/encrypt/sm-crypto/sm2/ec.js +372 -0
  56. package/lib/lib/encrypt/sm-crypto/sm2/index.js +239 -0
  57. package/lib/lib/encrypt/sm-crypto/sm2/sm2.js +103 -0
  58. package/lib/lib/encrypt/sm-crypto/sm2/sm3.js +355 -0
  59. package/lib/lib/encrypt/sm-crypto/sm2/utils.js +181 -0
  60. package/lib/lib/encrypt/sm-crypto/sm3/index.js +250 -0
  61. package/lib/lib/encrypt/sm-crypto/sm4/index.js +286 -0
  62. package/lib/lib/onedate.js +104 -0
  63. package/lib/lib/oneencrypt.js +115 -0
  64. package/lib/lib/oneformrules.js +349 -0
  65. package/lib/lib/onenumber.js +119 -0
  66. package/lib/lib/onerequest.js +387 -0
  67. package/lib/lib/onerouter.js +190 -0
  68. package/lib/lib/onestorage.js +213 -0
  69. package/lib/lib/onetool.js +619 -0
  70. package/lib/lib/oneurl.js +299 -0
  71. package/lib/lib/onevalidate.js +136 -0
  72. package/lib/link.js +332 -0
  73. package/lib/loading.js +631 -0
  74. package/lib/locale/format.js +56 -0
  75. package/lib/locale/index.js +63 -0
  76. package/lib/locale/lang/af-ZA.js +123 -0
  77. package/lib/locale/lang/ar.js +122 -0
  78. package/lib/locale/lang/bg.js +123 -0
  79. package/lib/locale/lang/ca.js +122 -0
  80. package/lib/locale/lang/cs-CZ.js +125 -0
  81. package/lib/locale/lang/da.js +122 -0
  82. package/lib/locale/lang/de.js +124 -0
  83. package/lib/locale/lang/ee.js +123 -0
  84. package/lib/locale/lang/el.js +123 -0
  85. package/lib/locale/lang/en.js +123 -0
  86. package/lib/locale/lang/eo.js +123 -0
  87. package/lib/locale/lang/es.js +122 -0
  88. package/lib/locale/lang/eu.js +123 -0
  89. package/lib/locale/lang/fa.js +123 -0
  90. package/lib/locale/lang/fi.js +123 -0
  91. package/lib/locale/lang/fr.js +122 -0
  92. package/lib/locale/lang/he.js +123 -0
  93. package/lib/locale/lang/hr.js +123 -0
  94. package/lib/locale/lang/hu.js +122 -0
  95. package/lib/locale/lang/hy-AM.js +123 -0
  96. package/lib/locale/lang/id.js +123 -0
  97. package/lib/locale/lang/it.js +122 -0
  98. package/lib/locale/lang/ja.js +123 -0
  99. package/lib/locale/lang/kg.js +123 -0
  100. package/lib/locale/lang/km.js +123 -0
  101. package/lib/locale/lang/ko.js +123 -0
  102. package/lib/locale/lang/ku.js +123 -0
  103. package/lib/locale/lang/kz.js +123 -0
  104. package/lib/locale/lang/lt.js +123 -0
  105. package/lib/locale/lang/lv.js +123 -0
  106. package/lib/locale/lang/mn.js +123 -0
  107. package/lib/locale/lang/nb-NO.js +122 -0
  108. package/lib/locale/lang/nl.js +123 -0
  109. package/lib/locale/lang/pl.js +123 -0
  110. package/lib/locale/lang/pt-br.js +123 -0
  111. package/lib/locale/lang/pt.js +123 -0
  112. package/lib/locale/lang/ro.js +123 -0
  113. package/lib/locale/lang/ru-RU.js +123 -0
  114. package/lib/locale/lang/sk.js +125 -0
  115. package/lib/locale/lang/sl.js +123 -0
  116. package/lib/locale/lang/sr.js +123 -0
  117. package/lib/locale/lang/sv-SE.js +123 -0
  118. package/lib/locale/lang/ta.js +122 -0
  119. package/lib/locale/lang/th.js +123 -0
  120. package/lib/locale/lang/tk.js +123 -0
  121. package/lib/locale/lang/tr-TR.js +123 -0
  122. package/lib/locale/lang/ua.js +123 -0
  123. package/lib/locale/lang/ug-CN.js +123 -0
  124. package/lib/locale/lang/uz-UZ.js +123 -0
  125. package/lib/locale/lang/vi.js +123 -0
  126. package/lib/locale/lang/zh-CN.js +123 -0
  127. package/lib/locale/lang/zh-TW.js +123 -0
  128. package/lib/main.js +264 -0
  129. package/lib/menu-item-group.js +308 -0
  130. package/lib/menu-item.js +491 -0
  131. package/lib/menu.js +866 -0
  132. package/lib/message-box.js +1211 -0
  133. package/lib/message.js +533 -0
  134. package/lib/mixins/emitter.js +36 -0
  135. package/lib/mixins/focus.js +15 -0
  136. package/lib/mixins/locale.js +17 -0
  137. package/lib/mixins/migrating.js +69 -0
  138. package/lib/notification.js +615 -0
  139. package/lib/one-button.js +385 -0
  140. package/lib/one-cascader.js +5396 -0
  141. package/lib/one-dialog.js +549 -0
  142. package/lib/one-draggable.js +322 -0
  143. package/lib/one-form.js +16215 -0
  144. package/lib/one-icon-text.js +342 -0
  145. package/lib/one-icon.js +287 -0
  146. package/lib/one-input.js +916 -0
  147. package/lib/one-search-form.js +7482 -0
  148. package/lib/one-select-tree.js +601 -0
  149. package/lib/one-slide-verify.js +5043 -0
  150. package/lib/one-table.js +11881 -0
  151. package/lib/one-tree.js +371 -0
  152. package/lib/one-ueditor-wrap.js +505 -0
  153. package/lib/one-ui.common.js +68480 -0
  154. package/lib/one-video-player.js +1122 -0
  155. package/lib/one-wave-bg.js +1081 -0
  156. package/lib/option-group.js +344 -0
  157. package/lib/option.js +474 -0
  158. package/lib/page-header.js +319 -0
  159. package/lib/pagination.js +950 -0
  160. package/lib/popconfirm.js +443 -0
  161. package/lib/popover.js +617 -0
  162. package/lib/progress.js +578 -0
  163. package/lib/radio-button.js +461 -0
  164. package/lib/radio-group.js +389 -0
  165. package/lib/radio.js +495 -0
  166. package/lib/rate.js +670 -0
  167. package/lib/row.js +152 -0
  168. package/lib/scrollbar.js +423 -0
  169. package/lib/select.js +2168 -0
  170. package/lib/slider.js +1199 -0
  171. package/lib/spinner.js +301 -0
  172. package/lib/step.js +522 -0
  173. package/lib/steps.js +342 -0
  174. package/lib/submenu.js +701 -0
  175. package/lib/switch.js +552 -0
  176. package/lib/tab-pane.js +332 -0
  177. package/lib/table-column.js +931 -0
  178. package/lib/table.js +4881 -0
  179. package/lib/tabs.js +920 -0
  180. package/lib/tag.js +304 -0
  181. package/lib/theme-chalk/$(filter-out.css +0 -0
  182. package/lib/theme-chalk/alert.css +1 -0
  183. package/lib/theme-chalk/aside.css +1 -0
  184. package/lib/theme-chalk/autocomplete.css +1 -0
  185. package/lib/theme-chalk/avatar.css +1 -0
  186. package/lib/theme-chalk/backtop.css +1 -0
  187. package/lib/theme-chalk/badge.css +1 -0
  188. package/lib/theme-chalk/base.css +1 -0
  189. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  190. package/lib/theme-chalk/breadcrumb.css +1 -0
  191. package/lib/theme-chalk/button-group.css +0 -0
  192. package/lib/theme-chalk/button.css +1 -0
  193. package/lib/theme-chalk/calendar.css +1 -0
  194. package/lib/theme-chalk/card.css +1 -0
  195. package/lib/theme-chalk/carousel-item.css +1 -0
  196. package/lib/theme-chalk/carousel.css +1 -0
  197. package/lib/theme-chalk/cascader-panel.css +1 -0
  198. package/lib/theme-chalk/cascader.css +1 -0
  199. package/lib/theme-chalk/checkbox-button.css +0 -0
  200. package/lib/theme-chalk/checkbox-group.css +0 -0
  201. package/lib/theme-chalk/checkbox.css +1 -0
  202. package/lib/theme-chalk/col.css +1 -0
  203. package/lib/theme-chalk/collapse-item.css +0 -0
  204. package/lib/theme-chalk/collapse.css +1 -0
  205. package/lib/theme-chalk/color-picker.css +1 -0
  206. package/lib/theme-chalk/container.css +1 -0
  207. package/lib/theme-chalk/date-picker.css +1 -0
  208. package/lib/theme-chalk/dialog.css +1 -0
  209. package/lib/theme-chalk/display.css +1 -0
  210. package/lib/theme-chalk/divider.css +1 -0
  211. package/lib/theme-chalk/drawer.css +1 -0
  212. package/lib/theme-chalk/dropdown-item.css +0 -0
  213. package/lib/theme-chalk/dropdown-menu.css +0 -0
  214. package/lib/theme-chalk/dropdown.css +1 -0
  215. package/lib/theme-chalk/fonts/one-icons.ttf +0 -0
  216. package/lib/theme-chalk/fonts/one-icons.woff +0 -0
  217. package/lib/theme-chalk/footer.css +1 -0
  218. package/lib/theme-chalk/form-item.css +0 -0
  219. package/lib/theme-chalk/form.css +1 -0
  220. package/lib/theme-chalk/header.css +1 -0
  221. package/lib/theme-chalk/icon.css +1 -0
  222. package/lib/theme-chalk/image-viewer.css +0 -0
  223. package/lib/theme-chalk/image.css +1 -0
  224. package/lib/theme-chalk/index.css +1 -0
  225. package/lib/theme-chalk/infinite-scroll.css +0 -0
  226. package/lib/theme-chalk/infiniteScroll.css +0 -0
  227. package/lib/theme-chalk/input-number.css +1 -0
  228. package/lib/theme-chalk/input.css +1 -0
  229. package/lib/theme-chalk/link.css +1 -0
  230. package/lib/theme-chalk/loading.css +1 -0
  231. package/lib/theme-chalk/main.css +1 -0
  232. package/lib/theme-chalk/menu-item-group.css +0 -0
  233. package/lib/theme-chalk/menu-item.css +0 -0
  234. package/lib/theme-chalk/menu.css +1 -0
  235. package/lib/theme-chalk/message-box.css +1 -0
  236. package/lib/theme-chalk/message.css +1 -0
  237. package/lib/theme-chalk/notification.css +1 -0
  238. package/lib/theme-chalk/one-button.css +0 -0
  239. package/lib/theme-chalk/one-cascader.css +0 -0
  240. package/lib/theme-chalk/one-dialog.css +0 -0
  241. package/lib/theme-chalk/one-draggable.css +0 -0
  242. package/lib/theme-chalk/one-form-genarate-designer.css +0 -0
  243. package/lib/theme-chalk/one-form-genarate-parser.css +0 -0
  244. package/lib/theme-chalk/one-form.css +1 -0
  245. package/lib/theme-chalk/one-icon-text.css +1 -0
  246. package/lib/theme-chalk/one-icon.css +1 -0
  247. package/lib/theme-chalk/one-input.css +0 -0
  248. package/lib/theme-chalk/one-search-form.css +1 -0
  249. package/lib/theme-chalk/one-select-tree.css +1 -0
  250. package/lib/theme-chalk/one-slide-verify.css +1 -0
  251. package/lib/theme-chalk/one-table.css +1 -0
  252. package/lib/theme-chalk/one-tree.css +0 -0
  253. package/lib/theme-chalk/one-ueditor-wrap.css +0 -0
  254. package/lib/theme-chalk/one-video-player.css +0 -0
  255. package/lib/theme-chalk/one-wave-bg.css +0 -0
  256. package/lib/theme-chalk/option-group.css +1 -0
  257. package/lib/theme-chalk/option.css +1 -0
  258. package/lib/theme-chalk/page-header.css +1 -0
  259. package/lib/theme-chalk/pagination.css +1 -0
  260. package/lib/theme-chalk/popconfirm.css +1 -0
  261. package/lib/theme-chalk/popover.css +1 -0
  262. package/lib/theme-chalk/popper.css +1 -0
  263. package/lib/theme-chalk/progress.css +1 -0
  264. package/lib/theme-chalk/radio-button.css +1 -0
  265. package/lib/theme-chalk/radio-group.css +1 -0
  266. package/lib/theme-chalk/radio.css +1 -0
  267. package/lib/theme-chalk/rate.css +1 -0
  268. package/lib/theme-chalk/reset.css +1 -0
  269. package/lib/theme-chalk/row.css +1 -0
  270. package/lib/theme-chalk/scrollbar.css +1 -0
  271. package/lib/theme-chalk/select-dropdown.css +1 -0
  272. package/lib/theme-chalk/select.css +1 -0
  273. package/lib/theme-chalk/slider.css +1 -0
  274. package/lib/theme-chalk/spinner.css +1 -0
  275. package/lib/theme-chalk/step.css +1 -0
  276. package/lib/theme-chalk/steps.css +1 -0
  277. package/lib/theme-chalk/submenu.css +0 -0
  278. package/lib/theme-chalk/switch.css +1 -0
  279. package/lib/theme-chalk/tab-pane.css +0 -0
  280. package/lib/theme-chalk/table-column.css +1 -0
  281. package/lib/theme-chalk/table.css +1 -0
  282. package/lib/theme-chalk/tabs.css +1 -0
  283. package/lib/theme-chalk/tag.css +1 -0
  284. package/lib/theme-chalk/time-picker.css +1 -0
  285. package/lib/theme-chalk/time-select.css +1 -0
  286. package/lib/theme-chalk/timeline-item.css +1 -0
  287. package/lib/theme-chalk/timeline.css +1 -0
  288. package/lib/theme-chalk/tooltip.css +1 -0
  289. package/lib/theme-chalk/transfer.css +1 -0
  290. package/lib/theme-chalk/tree.css +1 -0
  291. package/lib/theme-chalk/upload.css +1 -0
  292. package/lib/time-picker.js +2923 -0
  293. package/lib/time-select.js +1732 -0
  294. package/lib/timeline-item.js +371 -0
  295. package/lib/timeline.js +275 -0
  296. package/lib/tooltip.js +424 -0
  297. package/lib/transfer.js +1102 -0
  298. package/lib/transitions/collapse-transition.js +91 -0
  299. package/lib/tree.js +2264 -0
  300. package/lib/umd/locale/af-ZA.js +139 -0
  301. package/lib/umd/locale/ar.js +138 -0
  302. package/lib/umd/locale/bg.js +139 -0
  303. package/lib/umd/locale/ca.js +138 -0
  304. package/lib/umd/locale/cs-CZ.js +141 -0
  305. package/lib/umd/locale/da.js +138 -0
  306. package/lib/umd/locale/de.js +140 -0
  307. package/lib/umd/locale/ee.js +139 -0
  308. package/lib/umd/locale/el.js +139 -0
  309. package/lib/umd/locale/en.js +139 -0
  310. package/lib/umd/locale/eo.js +139 -0
  311. package/lib/umd/locale/es.js +138 -0
  312. package/lib/umd/locale/eu.js +139 -0
  313. package/lib/umd/locale/fa.js +139 -0
  314. package/lib/umd/locale/fi.js +139 -0
  315. package/lib/umd/locale/fr.js +138 -0
  316. package/lib/umd/locale/he.js +139 -0
  317. package/lib/umd/locale/hr.js +139 -0
  318. package/lib/umd/locale/hu.js +138 -0
  319. package/lib/umd/locale/hy-AM.js +139 -0
  320. package/lib/umd/locale/id.js +139 -0
  321. package/lib/umd/locale/it.js +138 -0
  322. package/lib/umd/locale/ja.js +139 -0
  323. package/lib/umd/locale/kg.js +139 -0
  324. package/lib/umd/locale/km.js +139 -0
  325. package/lib/umd/locale/ko.js +139 -0
  326. package/lib/umd/locale/ku.js +139 -0
  327. package/lib/umd/locale/kz.js +139 -0
  328. package/lib/umd/locale/lt.js +139 -0
  329. package/lib/umd/locale/lv.js +139 -0
  330. package/lib/umd/locale/mn.js +139 -0
  331. package/lib/umd/locale/nb-NO.js +138 -0
  332. package/lib/umd/locale/nl.js +139 -0
  333. package/lib/umd/locale/pl.js +139 -0
  334. package/lib/umd/locale/pt-br.js +139 -0
  335. package/lib/umd/locale/pt.js +139 -0
  336. package/lib/umd/locale/ro.js +139 -0
  337. package/lib/umd/locale/ru-RU.js +139 -0
  338. package/lib/umd/locale/sk.js +141 -0
  339. package/lib/umd/locale/sl.js +139 -0
  340. package/lib/umd/locale/sr.js +139 -0
  341. package/lib/umd/locale/sv-SE.js +139 -0
  342. package/lib/umd/locale/ta.js +138 -0
  343. package/lib/umd/locale/th.js +139 -0
  344. package/lib/umd/locale/tk.js +139 -0
  345. package/lib/umd/locale/tr-TR.js +139 -0
  346. package/lib/umd/locale/ua.js +139 -0
  347. package/lib/umd/locale/ug-CN.js +139 -0
  348. package/lib/umd/locale/uz-UZ.js +139 -0
  349. package/lib/umd/locale/vi.js +139 -0
  350. package/lib/umd/locale/zh-CN.js +139 -0
  351. package/lib/umd/locale/zh-TW.js +139 -0
  352. package/lib/upload.js +6196 -0
  353. package/lib/utils/after-leave.js +35 -0
  354. package/lib/utils/aria-dialog.js +104 -0
  355. package/lib/utils/aria-utils.js +126 -0
  356. package/lib/utils/clickoutside.js +79 -0
  357. package/lib/utils/date-util.js +320 -0
  358. package/lib/utils/date.js +369 -0
  359. package/lib/utils/dom.js +234 -0
  360. package/lib/utils/menu/aria-menubar.js +24 -0
  361. package/lib/utils/menu/aria-menuitem.js +62 -0
  362. package/lib/utils/menu/aria-submenu.js +69 -0
  363. package/lib/utils/merge.js +21 -0
  364. package/lib/utils/popper.js +1261 -0
  365. package/lib/utils/popup/index.js +233 -0
  366. package/lib/utils/popup/popup-manager.js +205 -0
  367. package/lib/utils/resize-event.js +57 -0
  368. package/lib/utils/scroll-into-view.js +38 -0
  369. package/lib/utils/scrollbar-width.js +39 -0
  370. package/lib/utils/shared.js +12 -0
  371. package/lib/utils/types.js +30 -0
  372. package/lib/utils/util.js +268 -0
  373. package/lib/utils/vdom.js +13 -0
  374. package/lib/utils/vue-popper.js +202 -0
  375. package/package.json +173 -0
  376. package/packages/$(filter-out/index.js +0 -0
  377. package/packages/$(filter-out/src/main.vue +0 -0
  378. package/packages/alert/index.js +8 -0
  379. package/packages/alert/src/main.vue +94 -0
  380. package/packages/aside/index.js +8 -0
  381. package/packages/aside/src/main.vue +20 -0
  382. package/packages/autocomplete/index.js +8 -0
  383. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -0
  384. package/packages/autocomplete/src/autocomplete.vue +285 -0
  385. package/packages/avatar/index.js +8 -0
  386. package/packages/avatar/src/main.vue +107 -0
  387. package/packages/backtop/index.js +8 -0
  388. package/packages/backtop/src/main.vue +110 -0
  389. package/packages/badge/index.js +8 -0
  390. package/packages/badge/src/main.vue +53 -0
  391. package/packages/breadcrumb/index.js +8 -0
  392. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -0
  393. package/packages/breadcrumb/src/breadcrumb.vue +34 -0
  394. package/packages/breadcrumb-item/index.js +8 -0
  395. package/packages/button/index.js +8 -0
  396. package/packages/button/src/button-group.vue +10 -0
  397. package/packages/button/src/button.vue +78 -0
  398. package/packages/button-group/index.js +8 -0
  399. package/packages/calendar/index.js +8 -0
  400. package/packages/calendar/src/date-table.vue +182 -0
  401. package/packages/calendar/src/main.vue +283 -0
  402. package/packages/card/index.js +8 -0
  403. package/packages/card/src/main.vue +23 -0
  404. package/packages/carousel/index.js +8 -0
  405. package/packages/carousel/src/item.vue +137 -0
  406. package/packages/carousel/src/main.vue +304 -0
  407. package/packages/carousel-item/index.js +8 -0
  408. package/packages/cascader/index.js +8 -0
  409. package/packages/cascader/src/cascader.vue +650 -0
  410. package/packages/cascader-panel/index.js +8 -0
  411. package/packages/cascader-panel/src/cascader-menu.vue +138 -0
  412. package/packages/cascader-panel/src/cascader-node.vue +246 -0
  413. package/packages/cascader-panel/src/cascader-panel.vue +382 -0
  414. package/packages/cascader-panel/src/node.js +166 -0
  415. package/packages/cascader-panel/src/store.js +62 -0
  416. package/packages/checkbox/index.js +8 -0
  417. package/packages/checkbox/src/checkbox-button.vue +199 -0
  418. package/packages/checkbox/src/checkbox-group.vue +48 -0
  419. package/packages/checkbox/src/checkbox.vue +222 -0
  420. package/packages/checkbox-button/index.js +8 -0
  421. package/packages/checkbox-group/index.js +8 -0
  422. package/packages/col/index.js +9 -0
  423. package/packages/col/src/col.js +71 -0
  424. package/packages/collapse/index.js +9 -0
  425. package/packages/collapse/src/collapse-item.vue +114 -0
  426. package/packages/collapse/src/collapse.vue +73 -0
  427. package/packages/collapse-item/index.js +8 -0
  428. package/packages/color-picker/index.js +8 -0
  429. package/packages/color-picker/src/color.js +317 -0
  430. package/packages/color-picker/src/components/alpha-slider.vue +132 -0
  431. package/packages/color-picker/src/components/hue-slider.vue +123 -0
  432. package/packages/color-picker/src/components/picker-dropdown.vue +121 -0
  433. package/packages/color-picker/src/components/predefine.vue +61 -0
  434. package/packages/color-picker/src/components/sv-panel.vue +100 -0
  435. package/packages/color-picker/src/draggable.js +36 -0
  436. package/packages/color-picker/src/main.vue +188 -0
  437. package/packages/container/index.js +8 -0
  438. package/packages/container/src/main.vue +33 -0
  439. package/packages/date-picker/index.js +8 -0
  440. package/packages/date-picker/src/basic/date-table.vue +441 -0
  441. package/packages/date-picker/src/basic/month-table.vue +254 -0
  442. package/packages/date-picker/src/basic/time-spinner.vue +304 -0
  443. package/packages/date-picker/src/basic/year-table.vue +101 -0
  444. package/packages/date-picker/src/panel/date-range.vue +679 -0
  445. package/packages/date-picker/src/panel/date.vue +597 -0
  446. package/packages/date-picker/src/panel/month-range.vue +288 -0
  447. package/packages/date-picker/src/panel/time-range.vue +248 -0
  448. package/packages/date-picker/src/panel/time-select.vue +178 -0
  449. package/packages/date-picker/src/panel/time.vue +186 -0
  450. package/packages/date-picker/src/picker/date-picker.js +43 -0
  451. package/packages/date-picker/src/picker/time-picker.js +39 -0
  452. package/packages/date-picker/src/picker/time-select.js +21 -0
  453. package/packages/date-picker/src/picker.vue +929 -0
  454. package/packages/dialog/index.js +8 -0
  455. package/packages/dialog/src/component.vue +213 -0
  456. package/packages/divider/index.js +8 -0
  457. package/packages/divider/src/main.vue +37 -0
  458. package/packages/drawer/index.js +8 -0
  459. package/packages/drawer/src/main.vue +198 -0
  460. package/packages/dropdown/index.js +8 -0
  461. package/packages/dropdown/src/dropdown-item.vue +37 -0
  462. package/packages/dropdown/src/dropdown-menu.vue +61 -0
  463. package/packages/dropdown/src/dropdown.vue +279 -0
  464. package/packages/dropdown-item/index.js +8 -0
  465. package/packages/dropdown-menu/index.js +8 -0
  466. package/packages/footer/index.js +8 -0
  467. package/packages/footer/src/main.vue +20 -0
  468. package/packages/form/index.js +8 -0
  469. package/packages/form/src/form-item.vue +319 -0
  470. package/packages/form/src/form.vue +186 -0
  471. package/packages/form/src/label-wrap.vue +78 -0
  472. package/packages/form-item/index.js +8 -0
  473. package/packages/header/index.js +8 -0
  474. package/packages/header/src/main.vue +20 -0
  475. package/packages/icon/index.js +8 -0
  476. package/packages/icon/src/icon.vue +13 -0
  477. package/packages/image/index.js +8 -0
  478. package/packages/image/src/image-viewer.vue +302 -0
  479. package/packages/image/src/main.vue +241 -0
  480. package/packages/image-viewer/index.js +8 -0
  481. package/packages/image-viewer/src/main.vue +302 -0
  482. package/packages/infinite-scroll/index.js +8 -0
  483. package/packages/infinite-scroll/src/main.js +150 -0
  484. package/packages/input/index.js +8 -0
  485. package/packages/input/src/calcTextareaHeight.js +104 -0
  486. package/packages/input/src/input.vue +420 -0
  487. package/packages/input-number/index.js +8 -0
  488. package/packages/input-number/src/input-number.vue +283 -0
  489. package/packages/link/index.js +8 -0
  490. package/packages/link/src/main.vue +53 -0
  491. package/packages/loading/index.js +11 -0
  492. package/packages/loading/src/directive.js +133 -0
  493. package/packages/loading/src/index.js +106 -0
  494. package/packages/loading/src/loading.vue +41 -0
  495. package/packages/main/index.js +8 -0
  496. package/packages/main/src/main.vue +12 -0
  497. package/packages/menu/index.js +8 -0
  498. package/packages/menu/src/menu-item-group.vue +45 -0
  499. package/packages/menu/src/menu-item.vue +112 -0
  500. package/packages/menu/src/menu-mixin.js +44 -0
  501. package/packages/menu/src/menu.vue +326 -0
  502. package/packages/menu/src/submenu.vue +349 -0
  503. package/packages/menu-item/index.js +8 -0
  504. package/packages/menu-item-group/index.js +8 -0
  505. package/packages/message/index.js +2 -0
  506. package/packages/message/src/main.js +87 -0
  507. package/packages/message/src/main.vue +117 -0
  508. package/packages/message-box/index.js +2 -0
  509. package/packages/message-box/src/main.js +227 -0
  510. package/packages/message-box/src/main.vue +340 -0
  511. package/packages/notification/index.js +2 -0
  512. package/packages/notification/src/main.js +94 -0
  513. package/packages/notification/src/main.vue +152 -0
  514. package/packages/one-button/index.js +8 -0
  515. package/packages/one-button/src/index.js +103 -0
  516. package/packages/one-button/src/index.vue +18 -0
  517. package/packages/one-cascader/index.js +8 -0
  518. package/packages/one-cascader/src/index.js +222 -0
  519. package/packages/one-cascader/src/index.vue +36 -0
  520. package/packages/one-dialog/index.js +8 -0
  521. package/packages/one-dialog/src/index.js +161 -0
  522. package/packages/one-dialog/src/index.vue +41 -0
  523. package/packages/one-draggable/index.js +8 -0
  524. package/packages/one-draggable/src/index.js +26 -0
  525. package/packages/one-draggable/src/index.vue +20 -0
  526. package/packages/one-form/index.js +8 -0
  527. package/packages/one-form/src/form-base64Img/index.js +154 -0
  528. package/packages/one-form/src/form-base64Img/index.vue +34 -0
  529. package/packages/one-form/src/form-cascader/index.js +121 -0
  530. package/packages/one-form/src/form-cascader/index.vue +27 -0
  531. package/packages/one-form/src/form-cascader-one/index.js +49 -0
  532. package/packages/one-form/src/form-cascader-one/index.vue +10 -0
  533. package/packages/one-form/src/form-checkbox/index.js +78 -0
  534. package/packages/one-form/src/form-checkbox/index.vue +19 -0
  535. package/packages/one-form/src/form-color/index.js +30 -0
  536. package/packages/one-form/src/form-color/index.vue +12 -0
  537. package/packages/one-form/src/form-date/index.js +92 -0
  538. package/packages/one-form/src/form-date/index.vue +64 -0
  539. package/packages/one-form/src/form-datetime/index.js +85 -0
  540. package/packages/one-form/src/form-datetime/index.vue +62 -0
  541. package/packages/one-form/src/form-file/index.js +132 -0
  542. package/packages/one-form/src/form-file/index.vue +28 -0
  543. package/packages/one-form/src/form-image/index.js +112 -0
  544. package/packages/one-form/src/form-image/index.vue +35 -0
  545. package/packages/one-form/src/form-input/index.js +85 -0
  546. package/packages/one-form/src/form-input/index.vue +41 -0
  547. package/packages/one-form/src/form-inputNumber/index.js +29 -0
  548. package/packages/one-form/src/form-inputNumber/index.vue +28 -0
  549. package/packages/one-form/src/form-inputSelect/index.js +78 -0
  550. package/packages/one-form/src/form-inputSelect/index.vue +59 -0
  551. package/packages/one-form/src/form-month/index.js +85 -0
  552. package/packages/one-form/src/form-month/index.vue +65 -0
  553. package/packages/one-form/src/form-password/index.js +30 -0
  554. package/packages/one-form/src/form-password/index.vue +24 -0
  555. package/packages/one-form/src/form-radio/index.js +44 -0
  556. package/packages/one-form/src/form-radio/index.vue +20 -0
  557. package/packages/one-form/src/form-rate/index.js +59 -0
  558. package/packages/one-form/src/form-rate/index.vue +19 -0
  559. package/packages/one-form/src/form-repeat-card/index.js +264 -0
  560. package/packages/one-form/src/form-repeat-card/index.vue +212 -0
  561. package/packages/one-form/src/form-select/index.js +154 -0
  562. package/packages/one-form/src/form-select/index.vue +26 -0
  563. package/packages/one-form/src/form-selectTree/index.js +92 -0
  564. package/packages/one-form/src/form-selectTree/index.vue +20 -0
  565. package/packages/one-form/src/form-switch/index.js +43 -0
  566. package/packages/one-form/src/form-switch/index.vue +22 -0
  567. package/packages/one-form/src/form-table/index.js +112 -0
  568. package/packages/one-form/src/form-table/index.vue +26 -0
  569. package/packages/one-form/src/form-textarea/index.js +32 -0
  570. package/packages/one-form/src/form-textarea/index.vue +25 -0
  571. package/packages/one-form/src/form-time/index.js +91 -0
  572. package/packages/one-form/src/form-time/index.vue +54 -0
  573. package/packages/one-form/src/form-tree/index.js +116 -0
  574. package/packages/one-form/src/form-tree/index.vue +14 -0
  575. package/packages/one-form/src/form-video/index.js +148 -0
  576. package/packages/one-form/src/form-video/index.vue +99 -0
  577. package/packages/one-form/src/form-vue-quill-editor/index.js +206 -0
  578. package/packages/one-form/src/form-vue-quill-editor/index.vue +19 -0
  579. package/packages/one-form/src/formItemFileMix.js +387 -0
  580. package/packages/one-form/src/formItemMix.js +376 -0
  581. package/packages/one-form/src/formMix.js +8 -0
  582. package/packages/one-form/src/index.css +8 -0
  583. package/packages/one-form/src/index.js +1226 -0
  584. package/packages/one-form/src/index.vue +240 -0
  585. package/packages/one-icon/index.js +8 -0
  586. package/packages/one-icon/src/index.css +7 -0
  587. package/packages/one-icon/src/index.vue +33 -0
  588. package/packages/one-icon-text/index.js +8 -0
  589. package/packages/one-icon-text/src/index.css +25 -0
  590. package/packages/one-icon-text/src/index.vue +71 -0
  591. package/packages/one-input/index.js +8 -0
  592. package/packages/one-input/src/calcTextareaHeight.js +104 -0
  593. package/packages/one-input/src/index.js +367 -0
  594. package/packages/one-input/src/index.vue +111 -0
  595. package/packages/one-search-form/index.js +8 -0
  596. package/packages/one-search-form/src/index - /345/211/257/346/234/254.vue" +225 -0
  597. package/packages/one-search-form/src/index.js +372 -0
  598. package/packages/one-search-form/src/index.vue +290 -0
  599. package/packages/one-select-tree/index.js +8 -0
  600. package/packages/one-select-tree/src/index.js +218 -0
  601. package/packages/one-select-tree/src/index.scss +35 -0
  602. package/packages/one-select-tree/src/index.vue +19 -0
  603. package/packages/one-slide-verify/index.js +8 -0
  604. package/packages/one-slide-verify/src/images.json +8 -0
  605. package/packages/one-slide-verify/src/index.css +143 -0
  606. package/packages/one-slide-verify/src/index.js +453 -0
  607. package/packages/one-slide-verify/src/index.vue +27 -0
  608. package/packages/one-table/index.js +8 -0
  609. package/packages/one-table/src/index.css +13 -0
  610. package/packages/one-table/src/index.js +1087 -0
  611. package/packages/one-table/src/index.vue +190 -0
  612. package/packages/one-table/src/table-edit/index.js +177 -0
  613. package/packages/one-table/src/table-edit/index.vue +211 -0
  614. package/packages/one-table/src/table-edit/table-column-checkbox/index.js +125 -0
  615. package/packages/one-table/src/table-edit/table-column-checkbox/index.vue +19 -0
  616. package/packages/one-table/src/table-edit/table-column-date/index.js +87 -0
  617. package/packages/one-table/src/table-edit/table-column-date/index.vue +58 -0
  618. package/packages/one-table/src/table-edit/table-column-datetime/index.js +87 -0
  619. package/packages/one-table/src/table-edit/table-column-datetime/index.vue +56 -0
  620. package/packages/one-table/src/table-edit/table-column-input/index.js +27 -0
  621. package/packages/one-table/src/table-edit/table-column-input/index.vue +37 -0
  622. package/packages/one-table/src/table-edit/table-column-inputNumber/index.js +27 -0
  623. package/packages/one-table/src/table-edit/table-column-inputNumber/index.vue +28 -0
  624. package/packages/one-table/src/table-edit/table-column-password/index.js +27 -0
  625. package/packages/one-table/src/table-edit/table-column-password/index.vue +22 -0
  626. package/packages/one-table/src/table-edit/table-column-radio/index.js +85 -0
  627. package/packages/one-table/src/table-edit/table-column-radio/index.vue +20 -0
  628. package/packages/one-table/src/table-edit/table-column-select/index.js +176 -0
  629. package/packages/one-table/src/table-edit/table-column-select/index.vue +34 -0
  630. package/packages/one-table/src/table-edit/table-column-selectTree/index.js +123 -0
  631. package/packages/one-table/src/table-edit/table-column-selectTree/index.vue +19 -0
  632. package/packages/one-table/src/table-edit/table-column-time/index.js +93 -0
  633. package/packages/one-table/src/table-edit/table-column-time/index.vue +39 -0
  634. package/packages/one-table/src/table-img/index.js +154 -0
  635. package/packages/one-table/src/table-img/index.vue +24 -0
  636. package/packages/one-table/src/table-img-id/index.js +154 -0
  637. package/packages/one-table/src/table-img-id/index.vue +26 -0
  638. package/packages/one-table/src/table-list/index.js +164 -0
  639. package/packages/one-table/src/table-list/index.vue +98 -0
  640. package/packages/one-table/src/table-opt/index.js +163 -0
  641. package/packages/one-table/src/table-opt/index.vue +35 -0
  642. package/packages/one-table/src/table-tree/index.js +154 -0
  643. package/packages/one-table/src/table-tree/index.vue +16 -0
  644. package/packages/one-tree/index.js +8 -0
  645. package/packages/one-tree/src/index.js +87 -0
  646. package/packages/one-tree/src/index.vue +15 -0
  647. package/packages/one-ueditor-wrap/.eslintrc.js +35 -0
  648. package/packages/one-ueditor-wrap/index.js +8 -0
  649. package/packages/one-ueditor-wrap/src/assets/images/demo.gif +0 -0
  650. package/packages/one-ueditor-wrap/src/assets/images/dist.png +0 -0
  651. package/packages/one-ueditor-wrap/src/assets/images/error1.png +0 -0
  652. package/packages/one-ueditor-wrap/src/assets/images/error2.png +0 -0
  653. package/packages/one-ueditor-wrap/src/assets/images/error3.png +0 -0
  654. package/packages/one-ueditor-wrap/src/assets/images/file.png +0 -0
  655. package/packages/one-ueditor-wrap/src/assets/images/ie.jpg +0 -0
  656. package/packages/one-ueditor-wrap/src/assets/images/ie.png +0 -0
  657. package/packages/one-ueditor-wrap/src/assets/images/reason.png +0 -0
  658. package/packages/one-ueditor-wrap/src/assets/images/source.png +0 -0
  659. package/packages/one-ueditor-wrap/src/dist/gbk-asp.zip +0 -0
  660. package/packages/one-ueditor-wrap/src/dist/gbk-jsp.zip +0 -0
  661. package/packages/one-ueditor-wrap/src/dist/gbk-net.zip +0 -0
  662. package/packages/one-ueditor-wrap/src/dist/gbk-php.zip +0 -0
  663. package/packages/one-ueditor-wrap/src/dist/utf8-asp.zip +0 -0
  664. package/packages/one-ueditor-wrap/src/dist/utf8-jsp.zip +0 -0
  665. package/packages/one-ueditor-wrap/src/dist/utf8-net.zip +0 -0
  666. package/packages/one-ueditor-wrap/src/dist/utf8-php.zip +0 -0
  667. package/packages/one-ueditor-wrap/src/index.vue +207 -0
  668. package/packages/one-ui-form/code-editor/index.vue +134 -0
  669. package/packages/one-ui-form/extension/extension-helper.js +22 -0
  670. package/packages/one-ui-form/extension/extension-loader.js +116 -0
  671. package/packages/one-ui-form/extension/samples/alert/alert-widget.vue +72 -0
  672. package/packages/one-ui-form/extension/samples/card/card-item.vue +100 -0
  673. package/packages/one-ui-form/extension/samples/card/card-widget.vue +132 -0
  674. package/packages/one-ui-form/extension/samples/extension-schema.js +36 -0
  675. package/packages/one-ui-form/extension/samples/extension-sfc-generator.js +50 -0
  676. package/packages/one-ui-form/form-designer/designer.js +948 -0
  677. package/packages/one-ui-form/form-designer/form-widget/container-widget/container-wrapper.vue +97 -0
  678. package/packages/one-ui-form/form-designer/form-widget/container-widget/containerMixin.js +95 -0
  679. package/packages/one-ui-form/form-designer/form-widget/container-widget/grid-col-widget.vue +314 -0
  680. package/packages/one-ui-form/form-designer/form-widget/container-widget/grid-widget.vue +80 -0
  681. package/packages/one-ui-form/form-designer/form-widget/container-widget/index.js +24 -0
  682. package/packages/one-ui-form/form-designer/form-widget/container-widget/tab-widget.vue +113 -0
  683. package/packages/one-ui-form/form-designer/form-widget/container-widget/table-cell-widget.vue +347 -0
  684. package/packages/one-ui-form/form-designer/form-widget/container-widget/table-widget.vue +106 -0
  685. package/packages/one-ui-form/form-designer/form-widget/field-widget/button-widget.vue +87 -0
  686. package/packages/one-ui-form/form-designer/form-widget/field-widget/cascader-widget.vue +116 -0
  687. package/packages/one-ui-form/form-designer/form-widget/field-widget/checkbox-widget.vue +105 -0
  688. package/packages/one-ui-form/form-designer/form-widget/field-widget/color-widget.vue +101 -0
  689. package/packages/one-ui-form/form-designer/form-widget/field-widget/date-range-widget.vue +104 -0
  690. package/packages/one-ui-form/form-designer/form-widget/field-widget/date-widget.vue +103 -0
  691. package/packages/one-ui-form/form-designer/form-widget/field-widget/divider-widget.vue +83 -0
  692. package/packages/one-ui-form/form-designer/form-widget/field-widget/fieldMixin.js +586 -0
  693. package/packages/one-ui-form/form-designer/form-widget/field-widget/file-upload-widget.vue +301 -0
  694. package/packages/one-ui-form/form-designer/form-widget/field-widget/form-item-wrapper.vue +329 -0
  695. package/packages/one-ui-form/form-designer/form-widget/field-widget/html-text-widget.vue +82 -0
  696. package/packages/one-ui-form/form-designer/form-widget/field-widget/index.js +10 -0
  697. package/packages/one-ui-form/form-designer/form-widget/field-widget/input-widget.vue +112 -0
  698. package/packages/one-ui-form/form-designer/form-widget/field-widget/number-widget.vue +103 -0
  699. package/packages/one-ui-form/form-designer/form-widget/field-widget/picture-upload-widget.vue +249 -0
  700. package/packages/one-ui-form/form-designer/form-widget/field-widget/radio-widget.vue +105 -0
  701. package/packages/one-ui-form/form-designer/form-widget/field-widget/rate-widget.vue +102 -0
  702. package/packages/one-ui-form/form-designer/form-widget/field-widget/rich-editor-widget.vue +122 -0
  703. package/packages/one-ui-form/form-designer/form-widget/field-widget/select-widget.vue +115 -0
  704. package/packages/one-ui-form/form-designer/form-widget/field-widget/slider-widget.vue +100 -0
  705. package/packages/one-ui-form/form-designer/form-widget/field-widget/slot-widget.vue +102 -0
  706. package/packages/one-ui-form/form-designer/form-widget/field-widget/static-content-wrapper.vue +194 -0
  707. package/packages/one-ui-form/form-designer/form-widget/field-widget/static-text-widget.vue +83 -0
  708. package/packages/one-ui-form/form-designer/form-widget/field-widget/switch-widget.vue +101 -0
  709. package/packages/one-ui-form/form-designer/form-widget/field-widget/textarea-widget.vue +99 -0
  710. package/packages/one-ui-form/form-designer/form-widget/field-widget/time-range-widget.vue +104 -0
  711. package/packages/one-ui-form/form-designer/form-widget/field-widget/time-widget.vue +103 -0
  712. package/packages/one-ui-form/form-designer/form-widget/index.vue +256 -0
  713. package/packages/one-ui-form/form-designer/index.vue +492 -0
  714. package/packages/one-ui-form/form-designer/refMixinDesign.js +31 -0
  715. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/color-editor.vue +22 -0
  716. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/customClass-editor.vue +39 -0
  717. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/defaultValue-editor.vue +19 -0
  718. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/event-editor.vue +41 -0
  719. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/grid-col-span-editor.vue +40 -0
  720. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/gutter-editor.vue +75 -0
  721. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/input-editor.vue +32 -0
  722. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/name-editor.vue +91 -0
  723. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/number-editor.vue +18 -0
  724. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/option-items-setting.vue +233 -0
  725. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/optionItems-editor.vue +22 -0
  726. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/propertyMixin.js +55 -0
  727. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/radio-editor.vue +27 -0
  728. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/select-editor.vue +27 -0
  729. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/switch-editor.vue +17 -0
  730. package/packages/one-ui-form/form-designer/setting-panel/field-setting/index.js +13 -0
  731. package/packages/one-ui-form/form-designer/setting-panel/field-setting/mixins/basic-field-mixin.js +62 -0
  732. package/packages/one-ui-form/form-designer/setting-panel/field-setting/mixins/field-mixin.js +16 -0
  733. package/packages/one-ui-form/form-designer/setting-panel/field-setting/mixins/propertyMixin.js +59 -0
  734. package/packages/one-ui-form/form-designer/setting-panel/form-setting/index.js +206 -0
  735. package/packages/one-ui-form/form-designer/setting-panel/form-setting/index.scss +40 -0
  736. package/packages/one-ui-form/form-designer/setting-panel/form-setting/index.vue +147 -0
  737. package/packages/one-ui-form/form-designer/setting-panel/index.vue +448 -0
  738. package/packages/one-ui-form/form-designer/setting-panel/property-editor-factory.js +173 -0
  739. package/packages/one-ui-form/form-designer/setting-panel/propertyRegister.js +661 -0
  740. package/packages/one-ui-form/form-designer/toolbar-panel/index.vue +903 -0
  741. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/cascader.js +54 -0
  742. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/file-upload.js +42 -0
  743. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/picture-upload.js +42 -0
  744. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/rich-editor.js +31 -0
  745. package/packages/one-ui-form/form-designer/widget-panel/basicFields/button.js +25 -0
  746. package/packages/one-ui-form/form-designer/widget-panel/basicFields/checkbox.js +47 -0
  747. package/packages/one-ui-form/form-designer/widget-panel/basicFields/color.js +32 -0
  748. package/packages/one-ui-form/form-designer/widget-panel/basicFields/date-range.js +41 -0
  749. package/packages/one-ui-form/form-designer/widget-panel/basicFields/date.js +40 -0
  750. package/packages/one-ui-form/form-designer/widget-panel/basicFields/divider.js +18 -0
  751. package/packages/one-ui-form/form-designer/widget-panel/basicFields/html-text.js +16 -0
  752. package/packages/one-ui-form/form-designer/widget-panel/basicFields/input.js +48 -0
  753. package/packages/one-ui-form/form-designer/widget-panel/basicFields/number.js +39 -0
  754. package/packages/one-ui-form/form-designer/widget-panel/basicFields/radio.js +47 -0
  755. package/packages/one-ui-form/form-designer/widget-panel/basicFields/rate.js +36 -0
  756. package/packages/one-ui-form/form-designer/widget-panel/basicFields/select.js +55 -0
  757. package/packages/one-ui-form/form-designer/widget-panel/basicFields/slider.js +37 -0
  758. package/packages/one-ui-form/form-designer/widget-panel/basicFields/slot.js +8 -0
  759. package/packages/one-ui-form/form-designer/widget-panel/basicFields/static-text.js +17 -0
  760. package/packages/one-ui-form/form-designer/widget-panel/basicFields/switch.js +31 -0
  761. package/packages/one-ui-form/form-designer/widget-panel/basicFields/textarea.js +40 -0
  762. package/packages/one-ui-form/form-designer/widget-panel/basicFields/time-range.js +39 -0
  763. package/packages/one-ui-form/form-designer/widget-panel/basicFields/time.js +38 -0
  764. package/packages/one-ui-form/form-designer/widget-panel/containers/grid-col.js +20 -0
  765. package/packages/one-ui-form/form-designer/widget-panel/containers/grid.js +13 -0
  766. package/packages/one-ui-form/form-designer/widget-panel/containers/tab-pane.js +15 -0
  767. package/packages/one-ui-form/form-designer/widget-panel/containers/tab.js +12 -0
  768. package/packages/one-ui-form/form-designer/widget-panel/containers/table-cell.js +16 -0
  769. package/packages/one-ui-form/form-designer/widget-panel/containers/table.js +11 -0
  770. package/packages/one-ui-form/form-designer/widget-panel/index.js +220 -0
  771. package/packages/one-ui-form/form-designer/widget-panel/index.scss +126 -0
  772. package/packages/one-ui-form/form-designer/widget-panel/index.vue +95 -0
  773. package/packages/one-ui-form/form-designer/widget-panel/templatesConfig.js +58 -0
  774. package/packages/one-ui-form/form-designer/widget-panel/widgetsConfig.js +36 -0
  775. package/packages/one-ui-form/form-render/container-item/container-item-wrapper.vue +27 -0
  776. package/packages/one-ui-form/form-render/container-item/containerItemMixin.js +184 -0
  777. package/packages/one-ui-form/form-render/container-item/grid-col-item.vue +126 -0
  778. package/packages/one-ui-form/form-render/container-item/grid-item.vue +55 -0
  779. package/packages/one-ui-form/form-render/container-item/index.js +24 -0
  780. package/packages/one-ui-form/form-render/container-item/sub-form-item.vue +412 -0
  781. package/packages/one-ui-form/form-render/container-item/tab-item.vue +99 -0
  782. package/packages/one-ui-form/form-render/container-item/table-cell-item.vue +71 -0
  783. package/packages/one-ui-form/form-render/container-item/table-item.vue +70 -0
  784. package/packages/one-ui-form/form-render/index.vue +665 -0
  785. package/packages/one-ui-form/form-render/refMixin.js +22 -0
  786. package/packages/one-ui-form/iconfont/iconfont.css +29 -0
  787. package/packages/one-ui-form/iconfont/iconfont.eot +0 -0
  788. package/packages/one-ui-form/iconfont/iconfont.js +1 -0
  789. package/packages/one-ui-form/iconfont/iconfont.json +37 -0
  790. package/packages/one-ui-form/iconfont/iconfont.svg +35 -0
  791. package/packages/one-ui-form/iconfont/iconfont.ttf +0 -0
  792. package/packages/one-ui-form/iconfont/iconfont.woff +0 -0
  793. package/packages/one-ui-form/iconfont/iconfont.woff2 +0 -0
  794. package/packages/one-ui-form/icons/alert.svg +1 -0
  795. package/packages/one-ui-form/icons/button.svg +1 -0
  796. package/packages/one-ui-form/icons/card.svg +1 -0
  797. package/packages/one-ui-form/icons/cascader-field.svg +1 -0
  798. package/packages/one-ui-form/icons/checkbox-field.svg +1 -0
  799. package/packages/one-ui-form/icons/color-field.svg +1 -0
  800. package/packages/one-ui-form/icons/custom-component.svg +1 -0
  801. package/packages/one-ui-form/icons/data-table.svg +1 -0
  802. package/packages/one-ui-form/icons/date-field.svg +1 -0
  803. package/packages/one-ui-form/icons/date-range-field.svg +1 -0
  804. package/packages/one-ui-form/icons/divider.svg +1 -0
  805. package/packages/one-ui-form/icons/document.svg +1 -0
  806. package/packages/one-ui-form/icons/drag.svg +1 -0
  807. package/packages/one-ui-form/icons/file-upload-field.svg +1 -0
  808. package/packages/one-ui-form/icons/github.svg +1 -0
  809. package/packages/one-ui-form/icons/grid.svg +1 -0
  810. package/packages/one-ui-form/icons/html-text.svg +1 -0
  811. package/packages/one-ui-form/icons/node-tree.svg +1 -0
  812. package/packages/one-ui-form/icons/number-field.svg +1 -0
  813. package/packages/one-ui-form/icons/picture-upload-field.svg +1 -0
  814. package/packages/one-ui-form/icons/radio-field.svg +1 -0
  815. package/packages/one-ui-form/icons/rate-field.svg +1 -0
  816. package/packages/one-ui-form/icons/redo.svg +1 -0
  817. package/packages/one-ui-form/icons/rich-editor-field.svg +1 -0
  818. package/packages/one-ui-form/icons/section.svg +1 -0
  819. package/packages/one-ui-form/icons/select-field.svg +1 -0
  820. package/packages/one-ui-form/icons/slider-field.svg +1 -0
  821. package/packages/one-ui-form/icons/slot-component.svg +1 -0
  822. package/packages/one-ui-form/icons/slot-field.svg +1 -0
  823. package/packages/one-ui-form/icons/static-text.svg +1 -0
  824. package/packages/one-ui-form/icons/sub-form.svg +1 -0
  825. package/packages/one-ui-form/icons/switch-field.svg +1 -0
  826. package/packages/one-ui-form/icons/tab.svg +1 -0
  827. package/packages/one-ui-form/icons/table.svg +1 -0
  828. package/packages/one-ui-form/icons/text-field.svg +1 -0
  829. package/packages/one-ui-form/icons/textarea-field.svg +1 -0
  830. package/packages/one-ui-form/icons/time-field.svg +1 -0
  831. package/packages/one-ui-form/icons/time-range-field.svg +1 -0
  832. package/packages/one-ui-form/icons/undo.svg +1 -0
  833. package/packages/one-ui-form/icons/vue-sfc.svg +1 -0
  834. package/packages/one-ui-form/index.js +64 -0
  835. package/packages/one-ui-form/lang/en-US.js +351 -0
  836. package/packages/one-ui-form/lang/en-US_extension.js +26 -0
  837. package/packages/one-ui-form/lang/en-US_render.js +38 -0
  838. package/packages/one-ui-form/lang/zh-CN.js +352 -0
  839. package/packages/one-ui-form/lang/zh-CN_extension.js +26 -0
  840. package/packages/one-ui-form/lang/zh-CN_render.js +38 -0
  841. package/packages/one-ui-form/styles/global.scss +108 -0
  842. package/packages/one-ui-form/styles/index.scss +15 -0
  843. package/packages/one-ui-form/utils/beautifierLoader.js +77 -0
  844. package/packages/one-ui-form/utils/code-generator.js +91 -0
  845. package/packages/one-ui-form/utils/config.js +19 -0
  846. package/packages/one-ui-form/utils/debug-console.js +7 -0
  847. package/packages/one-ui-form/utils/directive.js +74 -0
  848. package/packages/one-ui-form/utils/emitter.js +34 -0
  849. package/packages/one-ui-form/utils/format.js +214 -0
  850. package/packages/one-ui-form/utils/i18n.js +94 -0
  851. package/packages/one-ui-form/utils/sfc-generator.js +579 -0
  852. package/packages/one-ui-form/utils/smart-vue-i18n/index.js +56 -0
  853. package/packages/one-ui-form/utils/smart-vue-i18n/utils.js +49 -0
  854. package/packages/one-ui-form/utils/util.js +350 -0
  855. package/packages/one-ui-form/utils/validators.js +127 -0
  856. package/packages/one-ui-form/utils/vue2js-generator.js +144 -0
  857. package/packages/one-ui-form/utils/vue3js-generator.js +70 -0
  858. package/packages/one-ui-form/v-table/index.vue +106 -0
  859. package/packages/one-video-player/index.js +8 -0
  860. package/packages/one-video-player/src/index.js +146 -0
  861. package/packages/one-video-player/src/index.vue +29 -0
  862. package/packages/one-wave-bg/index.js +8 -0
  863. package/packages/one-wave-bg/src/index.js +181 -0
  864. package/packages/one-wave-bg/src/index.vue +18 -0
  865. package/packages/option/index.js +8 -0
  866. package/packages/option-group/index.js +8 -0
  867. package/packages/page-header/index.js +8 -0
  868. package/packages/page-header/src/main.vue +30 -0
  869. package/packages/pagination/index.js +8 -0
  870. package/packages/pagination/src/pager.vue +163 -0
  871. package/packages/pagination/src/pagination.js +386 -0
  872. package/packages/popconfirm/index.js +8 -0
  873. package/packages/popconfirm/src/main.vue +98 -0
  874. package/packages/popover/index.js +14 -0
  875. package/packages/popover/src/directive.js +20 -0
  876. package/packages/popover/src/main.vue +237 -0
  877. package/packages/progress/index.js +8 -0
  878. package/packages/progress/src/progress.vue +227 -0
  879. package/packages/radio/index.js +8 -0
  880. package/packages/radio/src/radio-button.vue +114 -0
  881. package/packages/radio/src/radio-group.vue +111 -0
  882. package/packages/radio/src/radio.vue +133 -0
  883. package/packages/radio-button/index.js +8 -0
  884. package/packages/radio-group/index.js +8 -0
  885. package/packages/rate/index.js +8 -0
  886. package/packages/rate/src/main.vue +348 -0
  887. package/packages/row/index.js +9 -0
  888. package/packages/row/src/row.js +47 -0
  889. package/packages/scrollbar/index.js +8 -0
  890. package/packages/scrollbar/src/bar.js +92 -0
  891. package/packages/scrollbar/src/main.js +130 -0
  892. package/packages/scrollbar/src/util.js +34 -0
  893. package/packages/select/index.js +8 -0
  894. package/packages/select/src/navigation-mixin.js +54 -0
  895. package/packages/select/src/option-group.vue +60 -0
  896. package/packages/select/src/option.vue +168 -0
  897. package/packages/select/src/select-dropdown.vue +74 -0
  898. package/packages/select/src/select.vue +892 -0
  899. package/packages/slider/index.js +8 -0
  900. package/packages/slider/src/button.vue +238 -0
  901. package/packages/slider/src/main.vue +427 -0
  902. package/packages/slider/src/marker.js +18 -0
  903. package/packages/spinner/index.js +8 -0
  904. package/packages/spinner/src/spinner.vue +27 -0
  905. package/packages/step/index.js +8 -0
  906. package/packages/steps/README.md +69 -0
  907. package/packages/steps/index.js +8 -0
  908. package/packages/steps/src/step.vue +184 -0
  909. package/packages/steps/src/steps.vue +68 -0
  910. package/packages/submenu/index.js +8 -0
  911. package/packages/switch/index.js +9 -0
  912. package/packages/switch/src/component.vue +172 -0
  913. package/packages/tab-pane/index.js +8 -0
  914. package/packages/table/index.js +8 -0
  915. package/packages/table/src/config.js +123 -0
  916. package/packages/table/src/dropdown.js +28 -0
  917. package/packages/table/src/filter-panel.vue +194 -0
  918. package/packages/table/src/layout-observer.js +68 -0
  919. package/packages/table/src/store/current.js +76 -0
  920. package/packages/table/src/store/expand.js +65 -0
  921. package/packages/table/src/store/helper.js +39 -0
  922. package/packages/table/src/store/index.js +146 -0
  923. package/packages/table/src/store/tree.js +205 -0
  924. package/packages/table/src/store/watcher.js +381 -0
  925. package/packages/table/src/table-body.js +483 -0
  926. package/packages/table/src/table-column.js +319 -0
  927. package/packages/table/src/table-footer.js +153 -0
  928. package/packages/table/src/table-header.js +509 -0
  929. package/packages/table/src/table-layout.js +249 -0
  930. package/packages/table/src/table.vue +694 -0
  931. package/packages/table/src/util.js +255 -0
  932. package/packages/table-column/index.js +8 -0
  933. package/packages/tabs/index.js +8 -0
  934. package/packages/tabs/src/tab-bar.vue +57 -0
  935. package/packages/tabs/src/tab-nav.vue +294 -0
  936. package/packages/tabs/src/tab-pane.vue +56 -0
  937. package/packages/tabs/src/tabs.vue +191 -0
  938. package/packages/tag/index.js +8 -0
  939. package/packages/tag/src/tag.vue +58 -0
  940. package/packages/theme-chalk/README.md +33 -0
  941. package/packages/theme-chalk/lib/$(filter-out.css +0 -0
  942. package/packages/theme-chalk/lib/alert.css +1 -0
  943. package/packages/theme-chalk/lib/aside.css +1 -0
  944. package/packages/theme-chalk/lib/autocomplete.css +1 -0
  945. package/packages/theme-chalk/lib/avatar.css +1 -0
  946. package/packages/theme-chalk/lib/backtop.css +1 -0
  947. package/packages/theme-chalk/lib/badge.css +1 -0
  948. package/packages/theme-chalk/lib/base.css +1 -0
  949. package/packages/theme-chalk/lib/breadcrumb-item.css +0 -0
  950. package/packages/theme-chalk/lib/breadcrumb.css +1 -0
  951. package/packages/theme-chalk/lib/button-group.css +0 -0
  952. package/packages/theme-chalk/lib/button.css +1 -0
  953. package/packages/theme-chalk/lib/calendar.css +1 -0
  954. package/packages/theme-chalk/lib/card.css +1 -0
  955. package/packages/theme-chalk/lib/carousel-item.css +1 -0
  956. package/packages/theme-chalk/lib/carousel.css +1 -0
  957. package/packages/theme-chalk/lib/cascader-panel.css +1 -0
  958. package/packages/theme-chalk/lib/cascader.css +1 -0
  959. package/packages/theme-chalk/lib/checkbox-button.css +0 -0
  960. package/packages/theme-chalk/lib/checkbox-group.css +0 -0
  961. package/packages/theme-chalk/lib/checkbox.css +1 -0
  962. package/packages/theme-chalk/lib/col.css +1 -0
  963. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  964. package/packages/theme-chalk/lib/collapse.css +1 -0
  965. package/packages/theme-chalk/lib/color-picker.css +1 -0
  966. package/packages/theme-chalk/lib/container.css +1 -0
  967. package/packages/theme-chalk/lib/date-picker.css +1 -0
  968. package/packages/theme-chalk/lib/dialog.css +1 -0
  969. package/packages/theme-chalk/lib/display.css +1 -0
  970. package/packages/theme-chalk/lib/divider.css +1 -0
  971. package/packages/theme-chalk/lib/drawer.css +1 -0
  972. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  973. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  974. package/packages/theme-chalk/lib/dropdown.css +1 -0
  975. package/packages/theme-chalk/lib/fonts/one-icons.ttf +0 -0
  976. package/packages/theme-chalk/lib/fonts/one-icons.woff +0 -0
  977. package/packages/theme-chalk/lib/footer.css +1 -0
  978. package/packages/theme-chalk/lib/form-item.css +0 -0
  979. package/packages/theme-chalk/lib/form.css +1 -0
  980. package/packages/theme-chalk/lib/header.css +1 -0
  981. package/packages/theme-chalk/lib/icon.css +1 -0
  982. package/packages/theme-chalk/lib/image-viewer.css +0 -0
  983. package/packages/theme-chalk/lib/image.css +1 -0
  984. package/packages/theme-chalk/lib/index.css +1 -0
  985. package/packages/theme-chalk/lib/infinite-scroll.css +0 -0
  986. package/packages/theme-chalk/lib/infiniteScroll.css +0 -0
  987. package/packages/theme-chalk/lib/input-number.css +1 -0
  988. package/packages/theme-chalk/lib/input.css +1 -0
  989. package/packages/theme-chalk/lib/link.css +1 -0
  990. package/packages/theme-chalk/lib/loading.css +1 -0
  991. package/packages/theme-chalk/lib/main.css +1 -0
  992. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  993. package/packages/theme-chalk/lib/menu-item.css +0 -0
  994. package/packages/theme-chalk/lib/menu.css +1 -0
  995. package/packages/theme-chalk/lib/message-box.css +1 -0
  996. package/packages/theme-chalk/lib/message.css +1 -0
  997. package/packages/theme-chalk/lib/notification.css +1 -0
  998. package/packages/theme-chalk/lib/one-button.css +0 -0
  999. package/packages/theme-chalk/lib/one-cascader.css +0 -0
  1000. package/packages/theme-chalk/lib/one-dialog.css +0 -0
  1001. package/packages/theme-chalk/lib/one-draggable.css +0 -0
  1002. package/packages/theme-chalk/lib/one-form-genarate-designer.css +0 -0
  1003. package/packages/theme-chalk/lib/one-form-genarate-parser.css +0 -0
  1004. package/packages/theme-chalk/lib/one-form.css +1 -0
  1005. package/packages/theme-chalk/lib/one-icon-text.css +1 -0
  1006. package/packages/theme-chalk/lib/one-icon.css +1 -0
  1007. package/packages/theme-chalk/lib/one-input.css +0 -0
  1008. package/packages/theme-chalk/lib/one-search-form.css +1 -0
  1009. package/packages/theme-chalk/lib/one-select-tree.css +1 -0
  1010. package/packages/theme-chalk/lib/one-slide-verify.css +1 -0
  1011. package/packages/theme-chalk/lib/one-table.css +1 -0
  1012. package/packages/theme-chalk/lib/one-tree.css +0 -0
  1013. package/packages/theme-chalk/lib/one-ueditor-wrap.css +0 -0
  1014. package/packages/theme-chalk/lib/one-video-player.css +0 -0
  1015. package/packages/theme-chalk/lib/one-wave-bg.css +0 -0
  1016. package/packages/theme-chalk/lib/option-group.css +1 -0
  1017. package/packages/theme-chalk/lib/option.css +1 -0
  1018. package/packages/theme-chalk/lib/page-header.css +1 -0
  1019. package/packages/theme-chalk/lib/pagination.css +1 -0
  1020. package/packages/theme-chalk/lib/popconfirm.css +1 -0
  1021. package/packages/theme-chalk/lib/popover.css +1 -0
  1022. package/packages/theme-chalk/lib/popper.css +1 -0
  1023. package/packages/theme-chalk/lib/progress.css +1 -0
  1024. package/packages/theme-chalk/lib/radio-button.css +1 -0
  1025. package/packages/theme-chalk/lib/radio-group.css +1 -0
  1026. package/packages/theme-chalk/lib/radio.css +1 -0
  1027. package/packages/theme-chalk/lib/rate.css +1 -0
  1028. package/packages/theme-chalk/lib/reset.css +1 -0
  1029. package/packages/theme-chalk/lib/row.css +1 -0
  1030. package/packages/theme-chalk/lib/scrollbar.css +1 -0
  1031. package/packages/theme-chalk/lib/select-dropdown.css +1 -0
  1032. package/packages/theme-chalk/lib/select.css +1 -0
  1033. package/packages/theme-chalk/lib/slider.css +1 -0
  1034. package/packages/theme-chalk/lib/spinner.css +1 -0
  1035. package/packages/theme-chalk/lib/step.css +1 -0
  1036. package/packages/theme-chalk/lib/steps.css +1 -0
  1037. package/packages/theme-chalk/lib/submenu.css +0 -0
  1038. package/packages/theme-chalk/lib/switch.css +1 -0
  1039. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  1040. package/packages/theme-chalk/lib/table-column.css +1 -0
  1041. package/packages/theme-chalk/lib/table.css +1 -0
  1042. package/packages/theme-chalk/lib/tabs.css +1 -0
  1043. package/packages/theme-chalk/lib/tag.css +1 -0
  1044. package/packages/theme-chalk/lib/time-picker.css +1 -0
  1045. package/packages/theme-chalk/lib/time-select.css +1 -0
  1046. package/packages/theme-chalk/lib/timeline-item.css +1 -0
  1047. package/packages/theme-chalk/lib/timeline.css +1 -0
  1048. package/packages/theme-chalk/lib/tooltip.css +1 -0
  1049. package/packages/theme-chalk/lib/transfer.css +1 -0
  1050. package/packages/theme-chalk/lib/tree.css +1 -0
  1051. package/packages/theme-chalk/lib/upload.css +1 -0
  1052. package/packages/theme-chalk/package.json +35 -0
  1053. package/packages/theme-chalk/src/$(filter-out.scss +0 -0
  1054. package/packages/theme-chalk/src/alert.scss +147 -0
  1055. package/packages/theme-chalk/src/aside.scss +7 -0
  1056. package/packages/theme-chalk/src/autocomplete.scss +80 -0
  1057. package/packages/theme-chalk/src/avatar.scss +51 -0
  1058. package/packages/theme-chalk/src/backtop.scss +22 -0
  1059. package/packages/theme-chalk/src/badge.scss +57 -0
  1060. package/packages/theme-chalk/src/base.scss +2 -0
  1061. package/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  1062. package/packages/theme-chalk/src/breadcrumb.scss +55 -0
  1063. package/packages/theme-chalk/src/button-group.scss +0 -0
  1064. package/packages/theme-chalk/src/button.scss +260 -0
  1065. package/packages/theme-chalk/src/calendar.scss +79 -0
  1066. package/packages/theme-chalk/src/card.scss +32 -0
  1067. package/packages/theme-chalk/src/carousel-item.scss +50 -0
  1068. package/packages/theme-chalk/src/carousel.scss +161 -0
  1069. package/packages/theme-chalk/src/cascader-panel.scss +120 -0
  1070. package/packages/theme-chalk/src/cascader.scss +182 -0
  1071. package/packages/theme-chalk/src/checkbox-button.scss +0 -0
  1072. package/packages/theme-chalk/src/checkbox-group.scss +0 -0
  1073. package/packages/theme-chalk/src/checkbox.scss +359 -0
  1074. package/packages/theme-chalk/src/col.scss +156 -0
  1075. package/packages/theme-chalk/src/collapse-item.scss +0 -0
  1076. package/packages/theme-chalk/src/collapse.scss +63 -0
  1077. package/packages/theme-chalk/src/color-picker.scss +384 -0
  1078. package/packages/theme-chalk/src/common/popup.scss +42 -0
  1079. package/packages/theme-chalk/src/common/transition.scss +99 -0
  1080. package/packages/theme-chalk/src/common/var.scss +994 -0
  1081. package/packages/theme-chalk/src/container.scss +14 -0
  1082. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -0
  1083. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  1084. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -0
  1085. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -0
  1086. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  1087. package/packages/theme-chalk/src/date-picker/picker.scss +197 -0
  1088. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -0
  1089. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  1090. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  1091. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -0
  1092. package/packages/theme-chalk/src/date-picker.scss +12 -0
  1093. package/packages/theme-chalk/src/dialog.scss +123 -0
  1094. package/packages/theme-chalk/src/display.scss +12 -0
  1095. package/packages/theme-chalk/src/divider.scss +47 -0
  1096. package/packages/theme-chalk/src/drawer.scss +217 -0
  1097. package/packages/theme-chalk/src/dropdown-item.scss +0 -0
  1098. package/packages/theme-chalk/src/dropdown-menu.scss +0 -0
  1099. package/packages/theme-chalk/src/dropdown.scss +177 -0
  1100. package/packages/theme-chalk/src/fonts/one-icons.ttf +0 -0
  1101. package/packages/theme-chalk/src/fonts/one-icons.woff +0 -0
  1102. package/packages/theme-chalk/src/footer.scss +8 -0
  1103. package/packages/theme-chalk/src/form-item.scss +0 -0
  1104. package/packages/theme-chalk/src/form.scss +167 -0
  1105. package/packages/theme-chalk/src/header.scss +8 -0
  1106. package/packages/theme-chalk/src/icon.scss +1167 -0
  1107. package/packages/theme-chalk/src/image-viewer.scss +0 -0
  1108. package/packages/theme-chalk/src/image.scss +177 -0
  1109. package/packages/theme-chalk/src/index.scss +97 -0
  1110. package/packages/theme-chalk/src/infinite-scroll.scss +0 -0
  1111. package/packages/theme-chalk/src/infiniteScroll.scss +0 -0
  1112. package/packages/theme-chalk/src/input-number.scss +180 -0
  1113. package/packages/theme-chalk/src/input.scss +356 -0
  1114. package/packages/theme-chalk/src/link.scss +81 -0
  1115. package/packages/theme-chalk/src/loading.scss +96 -0
  1116. package/packages/theme-chalk/src/main.scss +12 -0
  1117. package/packages/theme-chalk/src/menu-item-group.scss +0 -0
  1118. package/packages/theme-chalk/src/menu-item.scss +0 -0
  1119. package/packages/theme-chalk/src/menu.scss +289 -0
  1120. package/packages/theme-chalk/src/message-box.scss +226 -0
  1121. package/packages/theme-chalk/src/message.scss +120 -0
  1122. package/packages/theme-chalk/src/mixins/_button.scss +81 -0
  1123. package/packages/theme-chalk/src/mixins/config.scss +4 -0
  1124. package/packages/theme-chalk/src/mixins/function.scss +44 -0
  1125. package/packages/theme-chalk/src/mixins/mixins.scss +190 -0
  1126. package/packages/theme-chalk/src/mixins/utils.scss +39 -0
  1127. package/packages/theme-chalk/src/notification.scss +99 -0
  1128. package/packages/theme-chalk/src/one-button.scss +0 -0
  1129. package/packages/theme-chalk/src/one-cascader.scss +0 -0
  1130. package/packages/theme-chalk/src/one-dialog.scss +0 -0
  1131. package/packages/theme-chalk/src/one-draggable.scss +0 -0
  1132. package/packages/theme-chalk/src/one-form-genarate-designer.scss +0 -0
  1133. package/packages/theme-chalk/src/one-form-genarate-parser.scss +0 -0
  1134. package/packages/theme-chalk/src/one-form.scss +39 -0
  1135. package/packages/theme-chalk/src/one-icon-text.scss +24 -0
  1136. package/packages/theme-chalk/src/one-icon.scss +7 -0
  1137. package/packages/theme-chalk/src/one-input.scss +0 -0
  1138. package/packages/theme-chalk/src/one-search-form.scss +23 -0
  1139. package/packages/theme-chalk/src/one-select-tree.scss +43 -0
  1140. package/packages/theme-chalk/src/one-slide-verify.scss +145 -0
  1141. package/packages/theme-chalk/src/one-table.scss +27 -0
  1142. package/packages/theme-chalk/src/one-tree.scss +0 -0
  1143. package/packages/theme-chalk/src/one-ueditor-wrap.scss +0 -0
  1144. package/packages/theme-chalk/src/one-video-player.scss +0 -0
  1145. package/packages/theme-chalk/src/one-wave-bg.scss +0 -0
  1146. package/packages/theme-chalk/src/option-group.scss +42 -0
  1147. package/packages/theme-chalk/src/option.scss +36 -0
  1148. package/packages/theme-chalk/src/page-header.scss +41 -0
  1149. package/packages/theme-chalk/src/pagination.scss +295 -0
  1150. package/packages/theme-chalk/src/popconfirm.scss +16 -0
  1151. package/packages/theme-chalk/src/popover.scss +40 -0
  1152. package/packages/theme-chalk/src/popper.scss +101 -0
  1153. package/packages/theme-chalk/src/progress.scss +141 -0
  1154. package/packages/theme-chalk/src/radio-button.scss +113 -0
  1155. package/packages/theme-chalk/src/radio-group.scss +9 -0
  1156. package/packages/theme-chalk/src/radio.scss +199 -0
  1157. package/packages/theme-chalk/src/rate.scss +49 -0
  1158. package/packages/theme-chalk/src/reset.scss +79 -0
  1159. package/packages/theme-chalk/src/row.scss +39 -0
  1160. package/packages/theme-chalk/src/scrollbar.scss +72 -0
  1161. package/packages/theme-chalk/src/select-dropdown.scss +59 -0
  1162. package/packages/theme-chalk/src/select.scss +148 -0
  1163. package/packages/theme-chalk/src/slider.scss +250 -0
  1164. package/packages/theme-chalk/src/spinner.scss +44 -0
  1165. package/packages/theme-chalk/src/step.scss +317 -0
  1166. package/packages/theme-chalk/src/steps.scss +20 -0
  1167. package/packages/theme-chalk/src/submenu.scss +0 -0
  1168. package/packages/theme-chalk/src/switch.scss +116 -0
  1169. package/packages/theme-chalk/src/tab-pane.scss +0 -0
  1170. package/packages/theme-chalk/src/table-column.scss +97 -0
  1171. package/packages/theme-chalk/src/table.scss +563 -0
  1172. package/packages/theme-chalk/src/tabs.scss +602 -0
  1173. package/packages/theme-chalk/src/tag.scss +163 -0
  1174. package/packages/theme-chalk/src/time-picker.scss +8 -0
  1175. package/packages/theme-chalk/src/time-select.scss +37 -0
  1176. package/packages/theme-chalk/src/timeline-item.scss +86 -0
  1177. package/packages/theme-chalk/src/timeline.scss +14 -0
  1178. package/packages/theme-chalk/src/tooltip.scss +141 -0
  1179. package/packages/theme-chalk/src/transfer.scss +227 -0
  1180. package/packages/theme-chalk/src/tree.scss +123 -0
  1181. package/packages/theme-chalk/src/upload.scss +603 -0
  1182. package/packages/time-picker/index.js +8 -0
  1183. package/packages/time-select/index.js +8 -0
  1184. package/packages/timeline/index.js +8 -0
  1185. package/packages/timeline/src/item.vue +73 -0
  1186. package/packages/timeline/src/main.vue +33 -0
  1187. package/packages/timeline-item/index.js +8 -0
  1188. package/packages/tooltip/index.js +8 -0
  1189. package/packages/tooltip/src/main.js +241 -0
  1190. package/packages/transfer/index.js +8 -0
  1191. package/packages/transfer/src/main.vue +231 -0
  1192. package/packages/transfer/src/transfer-panel.vue +251 -0
  1193. package/packages/tree/index.js +8 -0
  1194. package/packages/tree/src/model/node.js +485 -0
  1195. package/packages/tree/src/model/tree-store.js +340 -0
  1196. package/packages/tree/src/model/util.js +27 -0
  1197. package/packages/tree/src/tree-node.vue +279 -0
  1198. package/packages/tree/src/tree.vue +496 -0
  1199. package/packages/upload/index.js +8 -0
  1200. package/packages/upload/src/ajax.js +85 -0
  1201. package/packages/upload/src/index.vue +341 -0
  1202. package/packages/upload/src/upload-dragger.vue +70 -0
  1203. package/packages/upload/src/upload-list.vue +105 -0
  1204. package/packages/upload/src/upload.vue +242 -0
  1205. package/src/directives/mousewheel.js +18 -0
  1206. package/src/directives/repeat-click.js +24 -0
  1207. package/src/index.js +426 -0
  1208. package/src/lib/encrypt/oneaes.js +85 -0
  1209. package/src/lib/encrypt/onesm2.js +88 -0
  1210. package/src/lib/encrypt/sm-crypto/index.js +5 -0
  1211. package/src/lib/encrypt/sm-crypto/sm2/asn1.js +243 -0
  1212. package/src/lib/encrypt/sm-crypto/sm2/ec.js +318 -0
  1213. package/src/lib/encrypt/sm-crypto/sm2/index.js +213 -0
  1214. package/src/lib/encrypt/sm-crypto/sm2/sm2.js +93 -0
  1215. package/src/lib/encrypt/sm-crypto/sm2/sm3.js +344 -0
  1216. package/src/lib/encrypt/sm-crypto/sm2/utils.js +167 -0
  1217. package/src/lib/encrypt/sm-crypto/sm3/index.js +235 -0
  1218. package/src/lib/encrypt/sm-crypto/sm4/index.js +304 -0
  1219. package/src/lib/onedate.js +91 -0
  1220. package/src/lib/oneencrypt.js +98 -0
  1221. package/src/lib/oneformrules.js +331 -0
  1222. package/src/lib/onenumber.js +107 -0
  1223. package/src/lib/onerequest.js +381 -0
  1224. package/src/lib/onerouter.js +152 -0
  1225. package/src/lib/onestorage.js +182 -0
  1226. package/src/lib/onetool.js +575 -0
  1227. package/src/lib/oneurl.js +269 -0
  1228. package/src/lib/onevalidate.js +125 -0
  1229. package/src/locale/format.js +46 -0
  1230. package/src/locale/index.js +48 -0
  1231. package/src/locale/lang/af-ZA.js +120 -0
  1232. package/src/locale/lang/ar.js +119 -0
  1233. package/src/locale/lang/bg.js +120 -0
  1234. package/src/locale/lang/ca.js +119 -0
  1235. package/src/locale/lang/cs-CZ.js +122 -0
  1236. package/src/locale/lang/da.js +119 -0
  1237. package/src/locale/lang/de.js +121 -0
  1238. package/src/locale/lang/ee.js +120 -0
  1239. package/src/locale/lang/el.js +120 -0
  1240. package/src/locale/lang/en.js +120 -0
  1241. package/src/locale/lang/eo.js +120 -0
  1242. package/src/locale/lang/es.js +119 -0
  1243. package/src/locale/lang/eu.js +120 -0
  1244. package/src/locale/lang/fa.js +120 -0
  1245. package/src/locale/lang/fi.js +120 -0
  1246. package/src/locale/lang/fr.js +119 -0
  1247. package/src/locale/lang/he.js +120 -0
  1248. package/src/locale/lang/hr.js +120 -0
  1249. package/src/locale/lang/hu.js +119 -0
  1250. package/src/locale/lang/hy-AM.js +120 -0
  1251. package/src/locale/lang/id.js +120 -0
  1252. package/src/locale/lang/it.js +119 -0
  1253. package/src/locale/lang/ja.js +120 -0
  1254. package/src/locale/lang/kg.js +120 -0
  1255. package/src/locale/lang/km.js +120 -0
  1256. package/src/locale/lang/ko.js +120 -0
  1257. package/src/locale/lang/ku.js +120 -0
  1258. package/src/locale/lang/kz.js +120 -0
  1259. package/src/locale/lang/lt.js +120 -0
  1260. package/src/locale/lang/lv.js +120 -0
  1261. package/src/locale/lang/mn.js +120 -0
  1262. package/src/locale/lang/nb-NO.js +119 -0
  1263. package/src/locale/lang/nl.js +120 -0
  1264. package/src/locale/lang/pl.js +120 -0
  1265. package/src/locale/lang/pt-br.js +120 -0
  1266. package/src/locale/lang/pt.js +120 -0
  1267. package/src/locale/lang/ro.js +120 -0
  1268. package/src/locale/lang/ru-RU.js +120 -0
  1269. package/src/locale/lang/sk.js +122 -0
  1270. package/src/locale/lang/sl.js +120 -0
  1271. package/src/locale/lang/sr.js +120 -0
  1272. package/src/locale/lang/sv-SE.js +120 -0
  1273. package/src/locale/lang/ta.js +119 -0
  1274. package/src/locale/lang/th.js +120 -0
  1275. package/src/locale/lang/tk.js +120 -0
  1276. package/src/locale/lang/tr-TR.js +120 -0
  1277. package/src/locale/lang/ua.js +120 -0
  1278. package/src/locale/lang/ug-CN.js +120 -0
  1279. package/src/locale/lang/uz-UZ.js +120 -0
  1280. package/src/locale/lang/vi.js +120 -0
  1281. package/src/locale/lang/zh-CN.js +120 -0
  1282. package/src/locale/lang/zh-TW.js +120 -0
  1283. package/src/mixins/emitter.js +33 -0
  1284. package/src/mixins/focus.js +9 -0
  1285. package/src/mixins/locale.js +9 -0
  1286. package/src/mixins/migrating.js +54 -0
  1287. package/src/transitions/collapse-transition.js +77 -0
  1288. package/src/utils/after-leave.js +27 -0
  1289. package/src/utils/aria-dialog.js +90 -0
  1290. package/src/utils/aria-utils.js +122 -0
  1291. package/src/utils/clickoutside.js +76 -0
  1292. package/src/utils/date-util.js +292 -0
  1293. package/src/utils/date.js +368 -0
  1294. package/src/utils/dom.js +227 -0
  1295. package/src/utils/menu/aria-menubar.js +14 -0
  1296. package/src/utils/menu/aria-menuitem.js +49 -0
  1297. package/src/utils/menu/aria-submenu.js +59 -0
  1298. package/src/utils/merge.js +15 -0
  1299. package/src/utils/popper.js +1276 -0
  1300. package/src/utils/popup/index.js +218 -0
  1301. package/src/utils/popup/popup-manager.js +194 -0
  1302. package/src/utils/resize-event.js +35 -0
  1303. package/src/utils/scroll-into-view.js +27 -0
  1304. package/src/utils/scrollbar-width.js +29 -0
  1305. package/src/utils/shared.js +7 -0
  1306. package/src/utils/types.js +24 -0
  1307. package/src/utils/util.js +241 -0
  1308. package/src/utils/vdom.js +5 -0
  1309. package/src/utils/vue-popper.js +198 -0
  1310. package/types/$(filter-out.d.ts +0 -0
  1311. package/types/alert.d.ts +31 -0
  1312. package/types/aside.d.ts +7 -0
  1313. package/types/autocomplete.d.ts +78 -0
  1314. package/types/avatar.d.ts +20 -0
  1315. package/types/backtop.d.ts +16 -0
  1316. package/types/badge.d.ts +16 -0
  1317. package/types/breadcrumb-item.d.ts +10 -0
  1318. package/types/breadcrumb.d.ts +10 -0
  1319. package/types/button-group.d.ts +4 -0
  1320. package/types/button.d.ts +37 -0
  1321. package/types/calendar.d.ts +15 -0
  1322. package/types/card.d.ts +26 -0
  1323. package/types/carousel-item.d.ts +10 -0
  1324. package/types/carousel.d.ts +57 -0
  1325. package/types/cascader-panel.d.ts +72 -0
  1326. package/types/cascader.d.ts +65 -0
  1327. package/types/checkbox-button.d.ts +22 -0
  1328. package/types/checkbox-group.d.ts +22 -0
  1329. package/types/checkbox.d.ts +34 -0
  1330. package/types/col.d.ts +46 -0
  1331. package/types/collapse-item.d.ts +26 -0
  1332. package/types/collapse.d.ts +10 -0
  1333. package/types/color-picker.d.ts +21 -0
  1334. package/types/component.d.ts +13 -0
  1335. package/types/container.d.ts +7 -0
  1336. package/types/date-picker.d.ts +124 -0
  1337. package/types/dialog.d.ts +62 -0
  1338. package/types/divider.d.ts +12 -0
  1339. package/types/drawer.d.ts +63 -0
  1340. package/types/dropdown-item.d.ts +16 -0
  1341. package/types/dropdown-menu.d.ts +4 -0
  1342. package/types/dropdown.d.ts +35 -0
  1343. package/types/footer.d.ts +7 -0
  1344. package/types/form-item.d.ts +37 -0
  1345. package/types/form.d.ts +82 -0
  1346. package/types/header.d.ts +7 -0
  1347. package/types/icon.d.ts +7 -0
  1348. package/types/image.d.ts +41 -0
  1349. package/types/index.d.ts +4 -0
  1350. package/types/infinite-scroll.d.ts +6 -0
  1351. package/types/input-number.d.ts +47 -0
  1352. package/types/input.d.ts +107 -0
  1353. package/types/link.d.ts +25 -0
  1354. package/types/loading.d.ts +62 -0
  1355. package/types/main.d.ts +4 -0
  1356. package/types/menu-item-group.d.ts +7 -0
  1357. package/types/menu-item.d.ts +10 -0
  1358. package/types/menu.d.ts +46 -0
  1359. package/types/message-box.d.ts +176 -0
  1360. package/types/message.d.ts +90 -0
  1361. package/types/notification.d.ts +84 -0
  1362. package/types/one-ui.d.ts +0 -0
  1363. package/types/option-group.d.ts +10 -0
  1364. package/types/option.d.ts +13 -0
  1365. package/types/page-header.d.ts +10 -0
  1366. package/types/pagination.d.ts +43 -0
  1367. package/types/popconfirm.d.ts +29 -0
  1368. package/types/popover.d.ts +71 -0
  1369. package/types/progress.d.ts +37 -0
  1370. package/types/radio-button.d.ts +16 -0
  1371. package/types/radio-group.d.ts +18 -0
  1372. package/types/radio.d.ts +19 -0
  1373. package/types/rate.d.ts +64 -0
  1374. package/types/row.d.ts +25 -0
  1375. package/types/select.d.ts +90 -0
  1376. package/types/slider.d.ts +68 -0
  1377. package/types/step.d.ts +34 -0
  1378. package/types/steps.d.ts +28 -0
  1379. package/types/submenu.d.ts +22 -0
  1380. package/types/switch.d.ts +43 -0
  1381. package/types/tab-pane.d.ts +19 -0
  1382. package/types/table-column.d.ts +117 -0
  1383. package/types/table.d.ts +174 -0
  1384. package/types/tabs.d.ts +31 -0
  1385. package/types/tag.d.ts +28 -0
  1386. package/types/time-picker.d.ts +63 -0
  1387. package/types/time-select.d.ts +56 -0
  1388. package/types/timeline-item.d.ts +20 -0
  1389. package/types/timeline.d.ts +6 -0
  1390. package/types/tooltip.d.ts +52 -0
  1391. package/types/transfer.d.ts +73 -0
  1392. package/types/tree.d.ts +266 -0
  1393. package/types/upload.d.ts +124 -0
@@ -0,0 +1,1732 @@
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 = 136);
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("one-ui/lib/utils/date-util");
199
+
200
+ /***/ }),
201
+
202
+ /***/ 136:
203
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
+
205
+ "use strict";
206
+ // ESM COMPAT FLAG
207
+ __webpack_require__.r(__webpack_exports__);
208
+
209
+ // EXTERNAL MODULE: ./packages/date-picker/src/picker.vue + 4 modules
210
+ var picker = __webpack_require__(64);
211
+
212
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=518a70e5
213
+ var render = function () {
214
+ var _vm = this
215
+ var _h = _vm.$createElement
216
+ var _c = _vm._self._c || _h
217
+ return _c(
218
+ "transition",
219
+ {
220
+ attrs: { name: "el-zoom-in-top" },
221
+ on: {
222
+ "before-enter": _vm.handleMenuEnter,
223
+ "after-leave": function ($event) {
224
+ return _vm.$emit("dodestroy")
225
+ },
226
+ },
227
+ },
228
+ [
229
+ _c(
230
+ "div",
231
+ {
232
+ directives: [
233
+ {
234
+ name: "show",
235
+ rawName: "v-show",
236
+ value: _vm.visible,
237
+ expression: "visible",
238
+ },
239
+ ],
240
+ ref: "popper",
241
+ staticClass: "el-picker-panel time-select el-popper",
242
+ class: _vm.popperClass,
243
+ style: { width: _vm.width + "px" },
244
+ },
245
+ [
246
+ _c(
247
+ "el-scrollbar",
248
+ {
249
+ attrs: { noresize: "", "wrap-class": "el-picker-panel__content" },
250
+ },
251
+ _vm._l(_vm.items, function (item) {
252
+ return _c(
253
+ "div",
254
+ {
255
+ key: item.value,
256
+ staticClass: "time-select-item",
257
+ class: {
258
+ selected: _vm.value === item.value,
259
+ disabled: item.disabled,
260
+ default: item.value === _vm.defaultValue,
261
+ },
262
+ attrs: { disabled: item.disabled },
263
+ on: {
264
+ click: function ($event) {
265
+ return _vm.handleClick(item)
266
+ },
267
+ },
268
+ },
269
+ [_vm._v(_vm._s(item.value))]
270
+ )
271
+ }),
272
+ 0
273
+ ),
274
+ ],
275
+ 1
276
+ ),
277
+ ]
278
+ )
279
+ }
280
+ var staticRenderFns = []
281
+ render._withStripped = true
282
+
283
+
284
+ // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=518a70e5
285
+
286
+ // EXTERNAL MODULE: external "one-ui/lib/scrollbar"
287
+ var scrollbar_ = __webpack_require__(28);
288
+ var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
289
+
290
+ // EXTERNAL MODULE: external "one-ui/lib/utils/scroll-into-view"
291
+ var scroll_into_view_ = __webpack_require__(61);
292
+ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
293
+
294
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js
295
+ //
296
+ //
297
+ //
298
+ //
299
+ //
300
+ //
301
+ //
302
+ //
303
+ //
304
+ //
305
+ //
306
+ //
307
+ //
308
+ //
309
+ //
310
+ //
311
+ //
312
+ //
313
+ //
314
+ //
315
+
316
+
317
+
318
+
319
+ var parseTime = function parseTime(time) {
320
+ var values = (time || '').split(':');
321
+ if (values.length >= 2) {
322
+ var hours = parseInt(values[0], 10);
323
+ var minutes = parseInt(values[1], 10);
324
+
325
+ return {
326
+ hours: hours,
327
+ minutes: minutes
328
+ };
329
+ }
330
+ /* istanbul ignore next */
331
+ return null;
332
+ };
333
+
334
+ var compareTime = function compareTime(time1, time2) {
335
+ var value1 = parseTime(time1);
336
+ var value2 = parseTime(time2);
337
+
338
+ var minutes1 = value1.minutes + value1.hours * 60;
339
+ var minutes2 = value2.minutes + value2.hours * 60;
340
+
341
+ if (minutes1 === minutes2) {
342
+ return 0;
343
+ }
344
+
345
+ return minutes1 > minutes2 ? 1 : -1;
346
+ };
347
+
348
+ var formatTime = function formatTime(time) {
349
+ return (time.hours < 10 ? '0' + time.hours : time.hours) + ':' + (time.minutes < 10 ? '0' + time.minutes : time.minutes);
350
+ };
351
+
352
+ var nextTime = function nextTime(time, step) {
353
+ var timeValue = parseTime(time);
354
+ var stepValue = parseTime(step);
355
+
356
+ var next = {
357
+ hours: timeValue.hours,
358
+ minutes: timeValue.minutes
359
+ };
360
+
361
+ next.minutes += stepValue.minutes;
362
+ next.hours += stepValue.hours;
363
+
364
+ next.hours += Math.floor(next.minutes / 60);
365
+ next.minutes = next.minutes % 60;
366
+
367
+ return formatTime(next);
368
+ };
369
+
370
+ /* harmony default export */ var time_selectvue_type_script_lang_js = ({
371
+ components: { ElScrollbar: scrollbar_default.a },
372
+
373
+ watch: {
374
+ value: function value(val) {
375
+ var _this = this;
376
+
377
+ if (!val) return;
378
+ this.$nextTick(function () {
379
+ return _this.scrollToOption();
380
+ });
381
+ }
382
+ },
383
+
384
+ methods: {
385
+ handleClick: function handleClick(item) {
386
+ if (!item.disabled) {
387
+ this.$emit('pick', item.value);
388
+ }
389
+ },
390
+ handleClear: function handleClear() {
391
+ this.$emit('pick', null);
392
+ },
393
+ scrollToOption: function scrollToOption() {
394
+ var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '.selected';
395
+
396
+ var menu = this.$refs.popper.querySelector('.el-picker-panel__content');
397
+ scroll_into_view_default()(menu, menu.querySelector(selector));
398
+ },
399
+ handleMenuEnter: function handleMenuEnter() {
400
+ var _this2 = this;
401
+
402
+ var selected = this.items.map(function (item) {
403
+ return item.value;
404
+ }).indexOf(this.value) !== -1;
405
+ var hasDefault = this.items.map(function (item) {
406
+ return item.value;
407
+ }).indexOf(this.defaultValue) !== -1;
408
+ var option = selected && '.selected' || hasDefault && '.default' || '.time-select-item:not(.disabled)';
409
+ this.$nextTick(function () {
410
+ return _this2.scrollToOption(option);
411
+ });
412
+ },
413
+ scrollDown: function scrollDown(step) {
414
+ var items = this.items;
415
+ var length = items.length;
416
+ var total = items.length;
417
+ var index = items.map(function (item) {
418
+ return item.value;
419
+ }).indexOf(this.value);
420
+ while (total--) {
421
+ index = (index + step + length) % length;
422
+ if (!items[index].disabled) {
423
+ this.$emit('pick', items[index].value, true);
424
+ return;
425
+ }
426
+ }
427
+ },
428
+ isValidValue: function isValidValue(date) {
429
+ return this.items.filter(function (item) {
430
+ return !item.disabled;
431
+ }).map(function (item) {
432
+ return item.value;
433
+ }).indexOf(date) !== -1;
434
+ },
435
+ handleKeydown: function handleKeydown(event) {
436
+ var keyCode = event.keyCode;
437
+ if (keyCode === 38 || keyCode === 40) {
438
+ var mapping = { 40: 1, 38: -1 };
439
+ var offset = mapping[keyCode.toString()];
440
+ this.scrollDown(offset);
441
+ event.stopPropagation();
442
+ return;
443
+ }
444
+ }
445
+ },
446
+
447
+ data: function data() {
448
+ return {
449
+ popperClass: '',
450
+ start: '09:00',
451
+ end: '18:00',
452
+ step: '00:30',
453
+ value: '',
454
+ defaultValue: '',
455
+ visible: false,
456
+ minTime: '',
457
+ maxTime: '',
458
+ width: 0
459
+ };
460
+ },
461
+
462
+
463
+ computed: {
464
+ items: function items() {
465
+ var start = this.start;
466
+ var end = this.end;
467
+ var step = this.step;
468
+
469
+ var result = [];
470
+
471
+ if (start && end && step) {
472
+ var current = start;
473
+ while (compareTime(current, end) <= 0) {
474
+ result.push({
475
+ value: current,
476
+ disabled: compareTime(current, this.minTime || '-1:-1') <= 0 || compareTime(current, this.maxTime || '100:100') >= 0
477
+ });
478
+ current = nextTime(current, step);
479
+ }
480
+ }
481
+
482
+ return result;
483
+ }
484
+ }
485
+ });
486
+ // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js
487
+ /* harmony default export */ var panel_time_selectvue_type_script_lang_js = (time_selectvue_type_script_lang_js);
488
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
489
+ var componentNormalizer = __webpack_require__(0);
490
+
491
+ // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-select.vue
492
+
493
+
494
+
495
+
496
+
497
+ /* normalize component */
498
+
499
+ var component = Object(componentNormalizer["a" /* default */])(
500
+ panel_time_selectvue_type_script_lang_js,
501
+ render,
502
+ staticRenderFns,
503
+ false,
504
+ null,
505
+ null,
506
+ null
507
+
508
+ )
509
+
510
+ /* harmony default export */ var time_select = (component.exports);
511
+ // CONCATENATED MODULE: ./packages/date-picker/src/picker/time-select.js
512
+
513
+
514
+
515
+ /* harmony default export */ var picker_time_select = ({
516
+ mixins: [picker["a" /* default */]],
517
+
518
+ name: 'ElTimeSelect',
519
+
520
+ componentName: 'ElTimeSelect',
521
+
522
+ props: {
523
+ type: {
524
+ type: String,
525
+ default: 'time-select'
526
+ }
527
+ },
528
+
529
+ beforeCreate: function beforeCreate() {
530
+ this.panel = time_select;
531
+ }
532
+ });
533
+ // CONCATENATED MODULE: ./packages/time-select/index.js
534
+
535
+
536
+ /* istanbul ignore next */
537
+ picker_time_select.install = function (Vue) {
538
+ Vue.component(picker_time_select.name, picker_time_select);
539
+ };
540
+
541
+ /* harmony default export */ var packages_time_select = __webpack_exports__["default"] = (picker_time_select);
542
+
543
+ /***/ }),
544
+
545
+ /***/ 16:
546
+ /***/ (function(module, exports) {
547
+
548
+ module.exports = require("one-ui/lib/input");
549
+
550
+ /***/ }),
551
+
552
+ /***/ 17:
553
+ /***/ (function(module, exports) {
554
+
555
+ module.exports = require("one-ui/lib/utils/merge");
556
+
557
+ /***/ }),
558
+
559
+ /***/ 23:
560
+ /***/ (function(module, exports) {
561
+
562
+ module.exports = require("one-ui/lib/utils/clickoutside");
563
+
564
+ /***/ }),
565
+
566
+ /***/ 28:
567
+ /***/ (function(module, exports) {
568
+
569
+ module.exports = require("one-ui/lib/scrollbar");
570
+
571
+ /***/ }),
572
+
573
+ /***/ 5:
574
+ /***/ (function(module, exports) {
575
+
576
+ module.exports = require("one-ui/lib/mixins/emitter");
577
+
578
+ /***/ }),
579
+
580
+ /***/ 6:
581
+ /***/ (function(module, exports) {
582
+
583
+ module.exports = require("vue");
584
+
585
+ /***/ }),
586
+
587
+ /***/ 61:
588
+ /***/ (function(module, exports) {
589
+
590
+ module.exports = require("one-ui/lib/utils/scroll-into-view");
591
+
592
+ /***/ }),
593
+
594
+ /***/ 64:
595
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
596
+
597
+ "use strict";
598
+
599
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=2914c7ba
600
+ var render = function () {
601
+ var _vm = this
602
+ var _h = _vm.$createElement
603
+ var _c = _vm._self._c || _h
604
+ return !_vm.ranged
605
+ ? _c(
606
+ "el-input",
607
+ _vm._b(
608
+ {
609
+ directives: [
610
+ {
611
+ name: "clickoutside",
612
+ rawName: "v-clickoutside",
613
+ value: _vm.handleClose,
614
+ expression: "handleClose",
615
+ },
616
+ ],
617
+ ref: "reference",
618
+ staticClass: "el-date-editor",
619
+ class: "el-date-editor--" + _vm.type,
620
+ attrs: {
621
+ readonly:
622
+ !_vm.editable ||
623
+ _vm.readonly ||
624
+ _vm.type === "dates" ||
625
+ _vm.type === "week",
626
+ disabled: _vm.pickerDisabled,
627
+ size: _vm.pickerSize,
628
+ name: _vm.name,
629
+ placeholder: _vm.placeholder,
630
+ value: _vm.displayValue,
631
+ validateEvent: false,
632
+ },
633
+ on: {
634
+ focus: _vm.handleFocus,
635
+ input: function (value) {
636
+ return (_vm.userInput = value)
637
+ },
638
+ change: _vm.handleChange,
639
+ },
640
+ nativeOn: {
641
+ keydown: function ($event) {
642
+ return _vm.handleKeydown($event)
643
+ },
644
+ mouseenter: function ($event) {
645
+ return _vm.handleMouseEnter($event)
646
+ },
647
+ mouseleave: function ($event) {
648
+ _vm.showClose = false
649
+ },
650
+ },
651
+ },
652
+ "el-input",
653
+ _vm.firstInputId,
654
+ false
655
+ ),
656
+ [
657
+ _c("i", {
658
+ staticClass: "el-input__icon",
659
+ class: _vm.triggerClass,
660
+ attrs: { slot: "prefix" },
661
+ on: { click: _vm.handleFocus },
662
+ slot: "prefix",
663
+ }),
664
+ _vm.haveTrigger
665
+ ? _c("i", {
666
+ staticClass: "el-input__icon",
667
+ class: [_vm.showClose ? "" + _vm.clearIcon : ""],
668
+ attrs: { slot: "suffix" },
669
+ on: { click: _vm.handleClickIcon },
670
+ slot: "suffix",
671
+ })
672
+ : _vm._e(),
673
+ ]
674
+ )
675
+ : _c(
676
+ "div",
677
+ {
678
+ directives: [
679
+ {
680
+ name: "clickoutside",
681
+ rawName: "v-clickoutside",
682
+ value: _vm.handleClose,
683
+ expression: "handleClose",
684
+ },
685
+ ],
686
+ ref: "reference",
687
+ staticClass: "el-date-editor el-range-editor el-input__inner",
688
+ class: [
689
+ "el-date-editor--" + _vm.type,
690
+ _vm.pickerSize ? "el-range-editor--" + _vm.pickerSize : "",
691
+ _vm.pickerDisabled ? "is-disabled" : "",
692
+ _vm.pickerVisible ? "is-active" : "",
693
+ ],
694
+ on: {
695
+ click: _vm.handleRangeClick,
696
+ mouseenter: _vm.handleMouseEnter,
697
+ mouseleave: function ($event) {
698
+ _vm.showClose = false
699
+ },
700
+ keydown: _vm.handleKeydown,
701
+ },
702
+ },
703
+ [
704
+ _c("i", {
705
+ class: ["el-input__icon", "el-range__icon", _vm.triggerClass],
706
+ }),
707
+ _c(
708
+ "input",
709
+ _vm._b(
710
+ {
711
+ staticClass: "el-range-input",
712
+ attrs: {
713
+ autocomplete: "off",
714
+ placeholder: _vm.startPlaceholder,
715
+ disabled: _vm.pickerDisabled,
716
+ readonly: !_vm.editable || _vm.readonly,
717
+ name: _vm.name && _vm.name[0],
718
+ },
719
+ domProps: { value: _vm.displayValue && _vm.displayValue[0] },
720
+ on: {
721
+ input: _vm.handleStartInput,
722
+ change: _vm.handleStartChange,
723
+ focus: _vm.handleFocus,
724
+ },
725
+ },
726
+ "input",
727
+ _vm.firstInputId,
728
+ false
729
+ )
730
+ ),
731
+ _vm._t("range-separator", [
732
+ _c("span", { staticClass: "el-range-separator" }, [
733
+ _vm._v(_vm._s(_vm.rangeSeparator)),
734
+ ]),
735
+ ]),
736
+ _c(
737
+ "input",
738
+ _vm._b(
739
+ {
740
+ staticClass: "el-range-input",
741
+ attrs: {
742
+ autocomplete: "off",
743
+ placeholder: _vm.endPlaceholder,
744
+ disabled: _vm.pickerDisabled,
745
+ readonly: !_vm.editable || _vm.readonly,
746
+ name: _vm.name && _vm.name[1],
747
+ },
748
+ domProps: { value: _vm.displayValue && _vm.displayValue[1] },
749
+ on: {
750
+ input: _vm.handleEndInput,
751
+ change: _vm.handleEndChange,
752
+ focus: _vm.handleFocus,
753
+ },
754
+ },
755
+ "input",
756
+ _vm.secondInputId,
757
+ false
758
+ )
759
+ ),
760
+ _vm.haveTrigger
761
+ ? _c("i", {
762
+ staticClass: "el-input__icon el-range__close-icon",
763
+ class: [_vm.showClose ? "" + _vm.clearIcon : ""],
764
+ on: { click: _vm.handleClickIcon },
765
+ })
766
+ : _vm._e(),
767
+ ],
768
+ 2
769
+ )
770
+ }
771
+ var staticRenderFns = []
772
+ render._withStripped = true
773
+
774
+
775
+ // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=template&id=2914c7ba
776
+
777
+ // EXTERNAL MODULE: external "vue"
778
+ var external_vue_ = __webpack_require__(6);
779
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
780
+
781
+ // EXTERNAL MODULE: external "one-ui/lib/utils/clickoutside"
782
+ var clickoutside_ = __webpack_require__(23);
783
+ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
784
+
785
+ // EXTERNAL MODULE: external "one-ui/lib/utils/date-util"
786
+ var date_util_ = __webpack_require__(1);
787
+
788
+ // EXTERNAL MODULE: external "one-ui/lib/utils/vue-popper"
789
+ var vue_popper_ = __webpack_require__(9);
790
+ var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
791
+
792
+ // EXTERNAL MODULE: external "one-ui/lib/mixins/emitter"
793
+ var emitter_ = __webpack_require__(5);
794
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
795
+
796
+ // EXTERNAL MODULE: external "one-ui/lib/input"
797
+ var input_ = __webpack_require__(16);
798
+ var input_default = /*#__PURE__*/__webpack_require__.n(input_);
799
+
800
+ // EXTERNAL MODULE: external "one-ui/lib/utils/merge"
801
+ var merge_ = __webpack_require__(17);
802
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
803
+
804
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=script&lang=js
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
+
896
+
897
+
898
+
899
+ var NewPopper = {
900
+ props: {
901
+ appendToBody: vue_popper_default.a.props.appendToBody,
902
+ offset: vue_popper_default.a.props.offset,
903
+ boundariesPadding: vue_popper_default.a.props.boundariesPadding,
904
+ arrowOffset: vue_popper_default.a.props.arrowOffset
905
+ },
906
+ methods: vue_popper_default.a.methods,
907
+ data: function data() {
908
+ return merge_default()({ visibleArrow: true }, vue_popper_default.a.data);
909
+ },
910
+
911
+ beforeDestroy: vue_popper_default.a.beforeDestroy
912
+ };
913
+
914
+ var DEFAULT_FORMATS = {
915
+ date: 'yyyy-MM-dd',
916
+ month: 'yyyy-MM',
917
+ datetime: 'yyyy-MM-dd HH:mm:ss',
918
+ time: 'HH:mm:ss',
919
+ week: 'yyyywWW',
920
+ timerange: 'HH:mm:ss',
921
+ daterange: 'yyyy-MM-dd',
922
+ monthrange: 'yyyy-MM',
923
+ datetimerange: 'yyyy-MM-dd HH:mm:ss',
924
+ year: 'yyyy'
925
+ };
926
+ var HAVE_TRIGGER_TYPES = ['date', 'datetime', 'time', 'time-select', 'week', 'month', 'year', 'daterange', 'monthrange', 'timerange', 'datetimerange', 'dates'];
927
+ var pickervue_type_script_lang_js_DATE_FORMATTER = function DATE_FORMATTER(value, format) {
928
+ if (format === 'timestamp') return value.getTime();
929
+ return Object(date_util_["formatDate"])(value, format);
930
+ };
931
+ var pickervue_type_script_lang_js_DATE_PARSER = function DATE_PARSER(text, format) {
932
+ if (format === 'timestamp') return new Date(Number(text));
933
+ return Object(date_util_["parseDate"])(text, format);
934
+ };
935
+ var RANGE_FORMATTER = function RANGE_FORMATTER(value, format) {
936
+ if (Array.isArray(value) && value.length === 2) {
937
+ var start = value[0];
938
+ var end = value[1];
939
+
940
+ if (start && end) {
941
+ return [pickervue_type_script_lang_js_DATE_FORMATTER(start, format), pickervue_type_script_lang_js_DATE_FORMATTER(end, format)];
942
+ }
943
+ }
944
+ return '';
945
+ };
946
+ var RANGE_PARSER = function RANGE_PARSER(array, format, separator) {
947
+ if (!Array.isArray(array)) {
948
+ array = array.split(separator);
949
+ }
950
+ if (array.length === 2) {
951
+ var range1 = array[0];
952
+ var range2 = array[1];
953
+
954
+ return [pickervue_type_script_lang_js_DATE_PARSER(range1, format), pickervue_type_script_lang_js_DATE_PARSER(range2, format)];
955
+ }
956
+ return [];
957
+ };
958
+ var TYPE_VALUE_RESOLVER_MAP = {
959
+ default: {
960
+ formatter: function formatter(value) {
961
+ if (!value) return '';
962
+ return '' + value;
963
+ },
964
+ parser: function parser(text) {
965
+ if (text === undefined || text === '') return null;
966
+ return text;
967
+ }
968
+ },
969
+ week: {
970
+ formatter: function formatter(value, format) {
971
+ var week = Object(date_util_["getWeekNumber"])(value);
972
+ var month = value.getMonth();
973
+ var trueDate = new Date(value);
974
+ if (week === 1 && month === 11) {
975
+ trueDate.setHours(0, 0, 0, 0);
976
+ trueDate.setDate(trueDate.getDate() + 3 - (trueDate.getDay() + 6) % 7);
977
+ }
978
+ var date = Object(date_util_["formatDate"])(trueDate, format);
979
+
980
+ date = /WW/.test(date) ? date.replace(/WW/, week < 10 ? '0' + week : week) : date.replace(/W/, week);
981
+ return date;
982
+ },
983
+ parser: function parser(text, format) {
984
+ // parse as if a normal date
985
+ return TYPE_VALUE_RESOLVER_MAP.date.parser(text, format);
986
+ }
987
+ },
988
+ date: {
989
+ formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
990
+ parser: pickervue_type_script_lang_js_DATE_PARSER
991
+ },
992
+ datetime: {
993
+ formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
994
+ parser: pickervue_type_script_lang_js_DATE_PARSER
995
+ },
996
+ daterange: {
997
+ formatter: RANGE_FORMATTER,
998
+ parser: RANGE_PARSER
999
+ },
1000
+ monthrange: {
1001
+ formatter: RANGE_FORMATTER,
1002
+ parser: RANGE_PARSER
1003
+ },
1004
+ datetimerange: {
1005
+ formatter: RANGE_FORMATTER,
1006
+ parser: RANGE_PARSER
1007
+ },
1008
+ timerange: {
1009
+ formatter: RANGE_FORMATTER,
1010
+ parser: RANGE_PARSER
1011
+ },
1012
+ time: {
1013
+ formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
1014
+ parser: pickervue_type_script_lang_js_DATE_PARSER
1015
+ },
1016
+ month: {
1017
+ formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
1018
+ parser: pickervue_type_script_lang_js_DATE_PARSER
1019
+ },
1020
+ year: {
1021
+ formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
1022
+ parser: pickervue_type_script_lang_js_DATE_PARSER
1023
+ },
1024
+ number: {
1025
+ formatter: function formatter(value) {
1026
+ if (!value) return '';
1027
+ return '' + value;
1028
+ },
1029
+ parser: function parser(text) {
1030
+ var result = Number(text);
1031
+
1032
+ if (!isNaN(text)) {
1033
+ return result;
1034
+ } else {
1035
+ return null;
1036
+ }
1037
+ }
1038
+ },
1039
+ dates: {
1040
+ formatter: function formatter(value, format) {
1041
+ return value.map(function (date) {
1042
+ return pickervue_type_script_lang_js_DATE_FORMATTER(date, format);
1043
+ });
1044
+ },
1045
+ parser: function parser(value, format) {
1046
+ return (typeof value === 'string' ? value.split(', ') : value).map(function (date) {
1047
+ return date instanceof Date ? date : pickervue_type_script_lang_js_DATE_PARSER(date, format);
1048
+ });
1049
+ }
1050
+ }
1051
+ };
1052
+ var PLACEMENT_MAP = {
1053
+ left: 'bottom-start',
1054
+ center: 'bottom',
1055
+ right: 'bottom-end'
1056
+ };
1057
+
1058
+ var parseAsFormatAndType = function parseAsFormatAndType(value, customFormat, type) {
1059
+ var rangeSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '-';
1060
+
1061
+ if (!value) return null;
1062
+ var parser = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).parser;
1063
+ var format = customFormat || DEFAULT_FORMATS[type];
1064
+ return parser(value, format, rangeSeparator);
1065
+ };
1066
+
1067
+ var formatAsFormatAndType = function formatAsFormatAndType(value, customFormat, type) {
1068
+ if (!value) return null;
1069
+ var formatter = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).formatter;
1070
+ var format = customFormat || DEFAULT_FORMATS[type];
1071
+ return formatter(value, format);
1072
+ };
1073
+
1074
+ /*
1075
+ * Considers:
1076
+ * 1. Date object
1077
+ * 2. date string
1078
+ * 3. array of 1 or 2
1079
+ */
1080
+ var valueEquals = function valueEquals(a, b) {
1081
+ // considers Date object and string
1082
+ var dateEquals = function dateEquals(a, b) {
1083
+ var aIsDate = a instanceof Date;
1084
+ var bIsDate = b instanceof Date;
1085
+ if (aIsDate && bIsDate) {
1086
+ return a.getTime() === b.getTime();
1087
+ }
1088
+ if (!aIsDate && !bIsDate) {
1089
+ return a === b;
1090
+ }
1091
+ return false;
1092
+ };
1093
+
1094
+ var aIsArray = a instanceof Array;
1095
+ var bIsArray = b instanceof Array;
1096
+ if (aIsArray && bIsArray) {
1097
+ if (a.length !== b.length) {
1098
+ return false;
1099
+ }
1100
+ return a.every(function (item, index) {
1101
+ return dateEquals(item, b[index]);
1102
+ });
1103
+ }
1104
+ if (!aIsArray && !bIsArray) {
1105
+ return dateEquals(a, b);
1106
+ }
1107
+ return false;
1108
+ };
1109
+
1110
+ var isString = function isString(val) {
1111
+ return typeof val === 'string' || val instanceof String;
1112
+ };
1113
+
1114
+ var validator = function validator(val) {
1115
+ // either: String, Array of String, null / undefined
1116
+ return val === null || val === undefined || isString(val) || Array.isArray(val) && val.length === 2 && val.every(isString);
1117
+ };
1118
+
1119
+ /* harmony default export */ var pickervue_type_script_lang_js = ({
1120
+ mixins: [emitter_default.a, NewPopper],
1121
+
1122
+ inject: {
1123
+ elForm: {
1124
+ default: ''
1125
+ },
1126
+ elFormItem: {
1127
+ default: ''
1128
+ }
1129
+ },
1130
+
1131
+ props: {
1132
+ size: String,
1133
+ format: String,
1134
+ valueFormat: String,
1135
+ readonly: Boolean,
1136
+ placeholder: String,
1137
+ startPlaceholder: String,
1138
+ endPlaceholder: String,
1139
+ prefixIcon: String,
1140
+ clearIcon: {
1141
+ type: String,
1142
+ default: 'el-icon-circle-close'
1143
+ },
1144
+ name: {
1145
+ default: '',
1146
+ validator: validator
1147
+ },
1148
+ disabled: Boolean,
1149
+ clearable: {
1150
+ type: Boolean,
1151
+ default: true
1152
+ },
1153
+ id: {
1154
+ default: '',
1155
+ validator: validator
1156
+ },
1157
+ popperClass: String,
1158
+ editable: {
1159
+ type: Boolean,
1160
+ default: true
1161
+ },
1162
+ align: {
1163
+ type: String,
1164
+ default: 'left'
1165
+ },
1166
+ value: {},
1167
+ defaultValue: {},
1168
+ defaultTime: {},
1169
+ rangeSeparator: {
1170
+ default: '-'
1171
+ },
1172
+ pickerOptions: {},
1173
+ unlinkPanels: Boolean,
1174
+ validateEvent: {
1175
+ type: Boolean,
1176
+ default: true
1177
+ }
1178
+ },
1179
+
1180
+ components: { ElInput: input_default.a },
1181
+
1182
+ directives: { Clickoutside: clickoutside_default.a },
1183
+
1184
+ data: function data() {
1185
+ return {
1186
+ pickerVisible: false,
1187
+ showClose: false,
1188
+ userInput: null,
1189
+ valueOnOpen: null, // value when picker opens, used to determine whether to emit change
1190
+ unwatchPickerOptions: null
1191
+ };
1192
+ },
1193
+
1194
+
1195
+ watch: {
1196
+ pickerVisible: function pickerVisible(val) {
1197
+ if (this.readonly || this.pickerDisabled) return;
1198
+ if (val) {
1199
+ this.showPicker();
1200
+ this.valueOnOpen = Array.isArray(this.value) ? [].concat(this.value) : this.value;
1201
+ } else {
1202
+ this.hidePicker();
1203
+ this.emitChange(this.value);
1204
+ this.userInput = null;
1205
+ if (this.validateEvent) {
1206
+ this.dispatch('ElFormItem', 'el.form.blur');
1207
+ }
1208
+ this.$emit('blur', this);
1209
+ this.blur();
1210
+ }
1211
+ },
1212
+
1213
+ parsedValue: {
1214
+ immediate: true,
1215
+ handler: function handler(val) {
1216
+ if (this.picker) {
1217
+ this.picker.value = val;
1218
+ }
1219
+ }
1220
+ },
1221
+ defaultValue: function defaultValue(val) {
1222
+ // NOTE: should eventually move to jsx style picker + panel ?
1223
+ if (this.picker) {
1224
+ this.picker.defaultValue = val;
1225
+ }
1226
+ },
1227
+ value: function value(val, oldVal) {
1228
+ if (!valueEquals(val, oldVal) && !this.pickerVisible && this.validateEvent) {
1229
+ this.dispatch('ElFormItem', 'el.form.change', val);
1230
+ }
1231
+ }
1232
+ },
1233
+
1234
+ computed: {
1235
+ ranged: function ranged() {
1236
+ return this.type.indexOf('range') > -1;
1237
+ },
1238
+ reference: function reference() {
1239
+ var reference = this.$refs.reference;
1240
+ return reference.$el || reference;
1241
+ },
1242
+ refInput: function refInput() {
1243
+ if (this.reference) {
1244
+ return [].slice.call(this.reference.querySelectorAll('input'));
1245
+ }
1246
+ return [];
1247
+ },
1248
+ valueIsEmpty: function valueIsEmpty() {
1249
+ var val = this.value;
1250
+ if (Array.isArray(val)) {
1251
+ for (var i = 0, len = val.length; i < len; i++) {
1252
+ if (val[i]) {
1253
+ return false;
1254
+ }
1255
+ }
1256
+ } else {
1257
+ if (val) {
1258
+ return false;
1259
+ }
1260
+ }
1261
+ return true;
1262
+ },
1263
+ triggerClass: function triggerClass() {
1264
+ return this.prefixIcon || (this.type.indexOf('time') !== -1 ? 'el-icon-time' : 'el-icon-date');
1265
+ },
1266
+ selectionMode: function selectionMode() {
1267
+ if (this.type === 'week') {
1268
+ return 'week';
1269
+ } else if (this.type === 'month') {
1270
+ return 'month';
1271
+ } else if (this.type === 'year') {
1272
+ return 'year';
1273
+ } else if (this.type === 'dates') {
1274
+ return 'dates';
1275
+ }
1276
+
1277
+ return 'day';
1278
+ },
1279
+ haveTrigger: function haveTrigger() {
1280
+ if (typeof this.showTrigger !== 'undefined') {
1281
+ return this.showTrigger;
1282
+ }
1283
+ return HAVE_TRIGGER_TYPES.indexOf(this.type) !== -1;
1284
+ },
1285
+ displayValue: function displayValue() {
1286
+ var formattedValue = formatAsFormatAndType(this.parsedValue, this.format, this.type, this.rangeSeparator);
1287
+ if (Array.isArray(this.userInput)) {
1288
+ return [this.userInput[0] || formattedValue && formattedValue[0] || '', this.userInput[1] || formattedValue && formattedValue[1] || ''];
1289
+ } else if (this.userInput !== null) {
1290
+ return this.userInput;
1291
+ } else if (formattedValue) {
1292
+ return this.type === 'dates' ? formattedValue.join(', ') : formattedValue;
1293
+ } else {
1294
+ return '';
1295
+ }
1296
+ },
1297
+ parsedValue: function parsedValue() {
1298
+ if (!this.value) return this.value; // component value is not set
1299
+ if (this.type === 'time-select') return this.value; // time-select does not require parsing, this might change in next major version
1300
+
1301
+ var valueIsDateObject = Object(date_util_["isDateObject"])(this.value) || Array.isArray(this.value) && this.value.every(date_util_["isDateObject"]);
1302
+ if (valueIsDateObject) {
1303
+ return this.value;
1304
+ }
1305
+
1306
+ if (this.valueFormat) {
1307
+ return parseAsFormatAndType(this.value, this.valueFormat, this.type, this.rangeSeparator) || this.value;
1308
+ }
1309
+
1310
+ // NOTE: deal with common but incorrect usage, should remove in next major version
1311
+ // user might provide string / timestamp without value-format, coerce them into date (or array of date)
1312
+ return Array.isArray(this.value) ? this.value.map(function (val) {
1313
+ return new Date(val);
1314
+ }) : new Date(this.value);
1315
+ },
1316
+ _elFormItemSize: function _elFormItemSize() {
1317
+ return (this.elFormItem || {}).elFormItemSize;
1318
+ },
1319
+ pickerSize: function pickerSize() {
1320
+ return this.size || this._elFormItemSize || (this.$ONE || {}).size;
1321
+ },
1322
+ pickerDisabled: function pickerDisabled() {
1323
+ return this.disabled || (this.elForm || {}).disabled;
1324
+ },
1325
+ firstInputId: function firstInputId() {
1326
+ var obj = {};
1327
+ var id = void 0;
1328
+ if (this.ranged) {
1329
+ id = this.id && this.id[0];
1330
+ } else {
1331
+ id = this.id;
1332
+ }
1333
+ if (id) obj.id = id;
1334
+ return obj;
1335
+ },
1336
+ secondInputId: function secondInputId() {
1337
+ var obj = {};
1338
+ var id = void 0;
1339
+ if (this.ranged) {
1340
+ id = this.id && this.id[1];
1341
+ }
1342
+ if (id) obj.id = id;
1343
+ return obj;
1344
+ }
1345
+ },
1346
+
1347
+ created: function created() {
1348
+ // vue-popper
1349
+ this.popperOptions = {
1350
+ boundariesPadding: 0,
1351
+ gpuAcceleration: false
1352
+ };
1353
+ this.placement = PLACEMENT_MAP[this.align] || PLACEMENT_MAP.left;
1354
+
1355
+ this.$on('fieldReset', this.handleFieldReset);
1356
+ },
1357
+
1358
+
1359
+ methods: {
1360
+ focus: function focus() {
1361
+ if (!this.ranged) {
1362
+ this.$refs.reference.focus();
1363
+ } else {
1364
+ this.handleFocus();
1365
+ }
1366
+ },
1367
+ blur: function blur() {
1368
+ this.refInput.forEach(function (input) {
1369
+ return input.blur();
1370
+ });
1371
+ },
1372
+
1373
+
1374
+ // {parse, formatTo} Value deals maps component value with internal Date
1375
+ parseValue: function parseValue(value) {
1376
+ var isParsed = Object(date_util_["isDateObject"])(value) || Array.isArray(value) && value.every(date_util_["isDateObject"]);
1377
+ if (this.valueFormat && !isParsed) {
1378
+ return parseAsFormatAndType(value, this.valueFormat, this.type, this.rangeSeparator) || value;
1379
+ } else {
1380
+ return value;
1381
+ }
1382
+ },
1383
+ formatToValue: function formatToValue(date) {
1384
+ var isFormattable = Object(date_util_["isDateObject"])(date) || Array.isArray(date) && date.every(date_util_["isDateObject"]);
1385
+ if (this.valueFormat && isFormattable) {
1386
+ return formatAsFormatAndType(date, this.valueFormat, this.type, this.rangeSeparator);
1387
+ } else {
1388
+ return date;
1389
+ }
1390
+ },
1391
+
1392
+
1393
+ // {parse, formatTo} String deals with user input
1394
+ parseString: function parseString(value) {
1395
+ var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
1396
+ return parseAsFormatAndType(value, this.format, type);
1397
+ },
1398
+ formatToString: function formatToString(value) {
1399
+ var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
1400
+ return formatAsFormatAndType(value, this.format, type);
1401
+ },
1402
+ handleMouseEnter: function handleMouseEnter() {
1403
+ if (this.readonly || this.pickerDisabled) return;
1404
+ if (!this.valueIsEmpty && this.clearable) {
1405
+ this.showClose = true;
1406
+ }
1407
+ },
1408
+ handleChange: function handleChange() {
1409
+ if (this.userInput) {
1410
+ var value = this.parseString(this.displayValue);
1411
+ if (value) {
1412
+ this.picker.value = value;
1413
+ if (this.isValidValue(value)) {
1414
+ this.emitInput(value);
1415
+ this.userInput = null;
1416
+ }
1417
+ }
1418
+ }
1419
+ if (this.userInput === '') {
1420
+ this.emitInput(null);
1421
+ this.emitChange(null);
1422
+ this.userInput = null;
1423
+ }
1424
+ },
1425
+ handleStartInput: function handleStartInput(event) {
1426
+ if (this.userInput) {
1427
+ this.userInput = [event.target.value, this.userInput[1]];
1428
+ } else {
1429
+ this.userInput = [event.target.value, null];
1430
+ }
1431
+ },
1432
+ handleEndInput: function handleEndInput(event) {
1433
+ if (this.userInput) {
1434
+ this.userInput = [this.userInput[0], event.target.value];
1435
+ } else {
1436
+ this.userInput = [null, event.target.value];
1437
+ }
1438
+ },
1439
+ handleStartChange: function handleStartChange(event) {
1440
+ var value = this.parseString(this.userInput && this.userInput[0]);
1441
+ if (value) {
1442
+ this.userInput = [this.formatToString(value), this.displayValue[1]];
1443
+ var newValue = [value, this.picker.value && this.picker.value[1]];
1444
+ this.picker.value = newValue;
1445
+ if (this.isValidValue(newValue)) {
1446
+ this.emitInput(newValue);
1447
+ this.userInput = null;
1448
+ }
1449
+ }
1450
+ },
1451
+ handleEndChange: function handleEndChange(event) {
1452
+ var value = this.parseString(this.userInput && this.userInput[1]);
1453
+ if (value) {
1454
+ this.userInput = [this.displayValue[0], this.formatToString(value)];
1455
+ var newValue = [this.picker.value && this.picker.value[0], value];
1456
+ this.picker.value = newValue;
1457
+ if (this.isValidValue(newValue)) {
1458
+ this.emitInput(newValue);
1459
+ this.userInput = null;
1460
+ }
1461
+ }
1462
+ },
1463
+ handleClickIcon: function handleClickIcon(event) {
1464
+ if (this.readonly || this.pickerDisabled) return;
1465
+ if (this.showClose) {
1466
+ this.valueOnOpen = this.value;
1467
+ event.stopPropagation();
1468
+ this.emitInput(null);
1469
+ this.emitChange(null);
1470
+ this.showClose = false;
1471
+ if (this.picker && typeof this.picker.handleClear === 'function') {
1472
+ this.picker.handleClear();
1473
+ }
1474
+ } else {
1475
+ this.pickerVisible = !this.pickerVisible;
1476
+ }
1477
+ },
1478
+ handleClose: function handleClose() {
1479
+ if (!this.pickerVisible) return;
1480
+ this.pickerVisible = false;
1481
+
1482
+ if (this.type === 'dates') {
1483
+ // restore to former value
1484
+ var oldValue = parseAsFormatAndType(this.valueOnOpen, this.valueFormat, this.type, this.rangeSeparator) || this.valueOnOpen;
1485
+ this.emitInput(oldValue);
1486
+ }
1487
+ },
1488
+ handleFieldReset: function handleFieldReset(initialValue) {
1489
+ this.userInput = initialValue === '' ? null : initialValue;
1490
+ },
1491
+ handleFocus: function handleFocus() {
1492
+ var type = this.type;
1493
+
1494
+ if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1495
+ this.pickerVisible = true;
1496
+ }
1497
+ this.$emit('focus', this);
1498
+ },
1499
+ handleKeydown: function handleKeydown(event) {
1500
+ var _this = this;
1501
+
1502
+ var keyCode = event.keyCode;
1503
+
1504
+ // ESC
1505
+ if (keyCode === 27) {
1506
+ this.pickerVisible = false;
1507
+ event.stopPropagation();
1508
+ return;
1509
+ }
1510
+
1511
+ // Tab
1512
+ if (keyCode === 9) {
1513
+ if (!this.ranged) {
1514
+ this.handleChange();
1515
+ this.pickerVisible = this.picker.visible = false;
1516
+ this.blur();
1517
+ event.stopPropagation();
1518
+ } else {
1519
+ // user may change focus between two input
1520
+ setTimeout(function () {
1521
+ if (_this.refInput.indexOf(document.activeElement) === -1) {
1522
+ _this.pickerVisible = false;
1523
+ _this.blur();
1524
+ event.stopPropagation();
1525
+ }
1526
+ }, 0);
1527
+ }
1528
+ return;
1529
+ }
1530
+
1531
+ // Enter
1532
+ if (keyCode === 13) {
1533
+ if (this.userInput === '' || this.isValidValue(this.parseString(this.displayValue))) {
1534
+ this.handleChange();
1535
+ this.pickerVisible = this.picker.visible = false;
1536
+ this.blur();
1537
+ }
1538
+ event.stopPropagation();
1539
+ return;
1540
+ }
1541
+
1542
+ // if user is typing, do not let picker handle key input
1543
+ if (this.userInput) {
1544
+ event.stopPropagation();
1545
+ return;
1546
+ }
1547
+
1548
+ // delegate other keys to panel
1549
+ if (this.picker && this.picker.handleKeydown) {
1550
+ this.picker.handleKeydown(event);
1551
+ }
1552
+ },
1553
+ handleRangeClick: function handleRangeClick() {
1554
+ var type = this.type;
1555
+
1556
+ if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1557
+ this.pickerVisible = true;
1558
+ }
1559
+ this.$emit('focus', this);
1560
+ },
1561
+ hidePicker: function hidePicker() {
1562
+ if (this.picker) {
1563
+ this.picker.resetView && this.picker.resetView();
1564
+ this.pickerVisible = this.picker.visible = false;
1565
+ this.destroyPopper();
1566
+ }
1567
+ },
1568
+ showPicker: function showPicker() {
1569
+ var _this2 = this;
1570
+
1571
+ if (this.$isServer) return;
1572
+ if (!this.picker) {
1573
+ this.mountPicker();
1574
+ }
1575
+ this.pickerVisible = this.picker.visible = true;
1576
+
1577
+ this.updatePopper();
1578
+
1579
+ this.picker.value = this.parsedValue;
1580
+ this.picker.resetView && this.picker.resetView();
1581
+
1582
+ this.$nextTick(function () {
1583
+ _this2.picker.adjustSpinners && _this2.picker.adjustSpinners();
1584
+ });
1585
+ },
1586
+ mountPicker: function mountPicker() {
1587
+ var _this3 = this;
1588
+
1589
+ this.picker = new external_vue_default.a(this.panel).$mount();
1590
+ this.picker.defaultValue = this.defaultValue;
1591
+ this.picker.defaultTime = this.defaultTime;
1592
+ this.picker.popperClass = this.popperClass;
1593
+ this.popperElm = this.picker.$el;
1594
+ this.picker.width = this.reference.getBoundingClientRect().width;
1595
+ this.picker.showTime = this.type === 'datetime' || this.type === 'datetimerange';
1596
+ this.picker.selectionMode = this.selectionMode;
1597
+ this.picker.unlinkPanels = this.unlinkPanels;
1598
+ this.picker.arrowControl = this.arrowControl || this.timeArrowControl || false;
1599
+ this.$watch('format', function (format) {
1600
+ _this3.picker.format = format;
1601
+ });
1602
+
1603
+ var updateOptions = function updateOptions() {
1604
+ var options = _this3.pickerOptions;
1605
+
1606
+ if (options && options.selectableRange) {
1607
+ var ranges = options.selectableRange;
1608
+ var parser = TYPE_VALUE_RESOLVER_MAP.datetimerange.parser;
1609
+ var format = DEFAULT_FORMATS.timerange;
1610
+
1611
+ ranges = Array.isArray(ranges) ? ranges : [ranges];
1612
+ _this3.picker.selectableRange = ranges.map(function (range) {
1613
+ return parser(range, format, _this3.rangeSeparator);
1614
+ });
1615
+ }
1616
+
1617
+ for (var option in options) {
1618
+ if (options.hasOwnProperty(option) &&
1619
+ // 忽略 time-picker 的该配置项
1620
+ option !== 'selectableRange') {
1621
+ _this3.picker[option] = options[option];
1622
+ }
1623
+ }
1624
+
1625
+ // main format must prevail over undocumented pickerOptions.format
1626
+ if (_this3.format) {
1627
+ _this3.picker.format = _this3.format;
1628
+ }
1629
+ };
1630
+ updateOptions();
1631
+ this.unwatchPickerOptions = this.$watch('pickerOptions', function () {
1632
+ return updateOptions();
1633
+ }, { deep: true });
1634
+ this.$el.appendChild(this.picker.$el);
1635
+ this.picker.resetView && this.picker.resetView();
1636
+
1637
+ this.picker.$on('dodestroy', this.doDestroy);
1638
+ this.picker.$on('pick', function () {
1639
+ var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1640
+ var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1641
+
1642
+ _this3.userInput = null;
1643
+ _this3.pickerVisible = _this3.picker.visible = visible;
1644
+ _this3.emitInput(date);
1645
+ _this3.picker.resetView && _this3.picker.resetView();
1646
+ });
1647
+
1648
+ this.picker.$on('select-range', function (start, end, pos) {
1649
+ if (_this3.refInput.length === 0) return;
1650
+ if (!pos || pos === 'min') {
1651
+ _this3.refInput[0].setSelectionRange(start, end);
1652
+ _this3.refInput[0].focus();
1653
+ } else if (pos === 'max') {
1654
+ _this3.refInput[1].setSelectionRange(start, end);
1655
+ _this3.refInput[1].focus();
1656
+ }
1657
+ });
1658
+ },
1659
+ unmountPicker: function unmountPicker() {
1660
+ if (this.picker) {
1661
+ this.picker.$destroy();
1662
+ this.picker.$off();
1663
+ if (typeof this.unwatchPickerOptions === 'function') {
1664
+ this.unwatchPickerOptions();
1665
+ }
1666
+ this.picker.$el.parentNode.removeChild(this.picker.$el);
1667
+ }
1668
+ },
1669
+ emitChange: function emitChange(val) {
1670
+ // determine user real change only
1671
+ if (!valueEquals(val, this.valueOnOpen)) {
1672
+ this.$emit('change', val);
1673
+ this.valueOnOpen = val;
1674
+ if (this.validateEvent) {
1675
+ this.dispatch('ElFormItem', 'el.form.change', val);
1676
+ }
1677
+ }
1678
+ },
1679
+ emitInput: function emitInput(val) {
1680
+ var formatted = this.formatToValue(val);
1681
+ if (!valueEquals(this.value, formatted)) {
1682
+ this.$emit('input', formatted);
1683
+ }
1684
+ },
1685
+ isValidValue: function isValidValue(value) {
1686
+ if (!this.picker) {
1687
+ this.mountPicker();
1688
+ }
1689
+ if (this.picker.isValidValue) {
1690
+ return value && this.picker.isValidValue(value);
1691
+ } else {
1692
+ return true;
1693
+ }
1694
+ }
1695
+ }
1696
+ });
1697
+ // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=script&lang=js
1698
+ /* harmony default export */ var src_pickervue_type_script_lang_js = (pickervue_type_script_lang_js);
1699
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1700
+ var componentNormalizer = __webpack_require__(0);
1701
+
1702
+ // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+ /* normalize component */
1709
+
1710
+ var component = Object(componentNormalizer["a" /* default */])(
1711
+ src_pickervue_type_script_lang_js,
1712
+ render,
1713
+ staticRenderFns,
1714
+ false,
1715
+ null,
1716
+ null,
1717
+ null
1718
+
1719
+ )
1720
+
1721
+ /* harmony default export */ var picker = __webpack_exports__["a"] = (component.exports);
1722
+
1723
+ /***/ }),
1724
+
1725
+ /***/ 9:
1726
+ /***/ (function(module, exports) {
1727
+
1728
+ module.exports = require("one-ui/lib/utils/vue-popper");
1729
+
1730
+ /***/ })
1731
+
1732
+ /******/ });