vft 0.0.71 → 0.0.73

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 (408) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +56 -40
  4. package/es/components/aside/style/css.js +2 -0
  5. package/es/components/aside/style/index.js +2 -0
  6. package/es/components/back-top/back-top.vue2.js +8 -2
  7. package/es/components/col/col.vue.js +4 -0
  8. package/es/components/col/col.vue2.js +60 -0
  9. package/es/components/col/index.js +12 -0
  10. package/es/components/col/style/css.js +2 -0
  11. package/es/components/col/style/index.js +2 -0
  12. package/es/components/col/types.js +1 -0
  13. package/es/components/color-picker/utils/color.js +41 -51
  14. package/es/components/container/aside.vue.js +4 -0
  15. package/es/components/container/aside.vue2.js +37 -0
  16. package/es/components/container/container.vue.js +4 -0
  17. package/es/components/container/container.vue2.js +33 -0
  18. package/es/components/container/footer.vue.js +4 -0
  19. package/es/components/container/footer.vue2.js +39 -0
  20. package/es/components/container/header.vue.js +4 -0
  21. package/es/components/container/header.vue2.js +39 -0
  22. package/es/components/container/index.js +25 -0
  23. package/es/components/container/main.vue.js +4 -0
  24. package/es/components/container/main.vue2.js +26 -0
  25. package/es/components/container/style/css.js +6 -0
  26. package/es/components/container/style/index.js +6 -0
  27. package/es/components/context-menu/context-menu.vue2.js +20 -14
  28. package/es/components/date-picker/composables/use-month-range-header.js +29 -0
  29. package/es/components/date-picker/composables/use-range-picker.js +68 -0
  30. package/es/components/date-picker/composables/use-shortcut.js +24 -0
  31. package/es/components/date-picker/constants.js +4 -0
  32. package/es/components/date-picker/date-picker-com/basic-cell-render.js +37 -0
  33. package/es/components/date-picker/date-picker-com/basic-date-table.vue.js +4 -0
  34. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +206 -0
  35. package/es/components/date-picker/date-picker-com/basic-month-table.vue.js +4 -0
  36. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +131 -0
  37. package/es/components/date-picker/date-picker-com/basic-year-table.vue.js +4 -0
  38. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +85 -0
  39. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.js +4 -0
  40. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +455 -0
  41. package/es/components/date-picker/date-picker-com/panel-date-range.vue.js +4 -0
  42. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +383 -0
  43. package/es/components/date-picker/date-picker-com/panel-month-range.vue.js +4 -0
  44. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +170 -0
  45. package/es/components/date-picker/date-picker.js +81 -0
  46. package/es/components/date-picker/date-picker.type.js +1 -0
  47. package/es/components/date-picker/index.js +14 -0
  48. package/es/components/date-picker/panel-utils.js +17 -0
  49. package/es/components/date-picker/props/basic-cell.js +14 -0
  50. package/es/components/date-picker/props/basic-date-table.js +18 -0
  51. package/es/components/date-picker/props/basic-month-table.js +14 -0
  52. package/es/components/date-picker/props/basic-year-table.js +15 -0
  53. package/es/components/date-picker/props/date-picker.js +18 -0
  54. package/es/components/date-picker/props/panel-date-pick.js +23 -0
  55. package/es/components/date-picker/props/panel-date-range.js +14 -0
  56. package/es/components/date-picker/props/panel-month-range.js +14 -0
  57. package/es/components/date-picker/props/shared.js +56 -0
  58. package/es/components/date-picker/style/css.js +2 -0
  59. package/es/components/date-picker/style/index.js +7 -0
  60. package/es/components/date-picker/utils.js +49 -0
  61. package/es/components/date-time-select/date-time-select.vue2.js +69 -63
  62. package/es/components/date-time-select/style/index.js +6 -0
  63. package/es/components/footer/style/css.js +2 -0
  64. package/es/components/footer/style/index.js +2 -0
  65. package/es/components/footer-layout/footer-layout.vue2.js +105 -35
  66. package/es/components/header/style/css.js +2 -0
  67. package/es/components/header/style/index.js +2 -0
  68. package/es/components/header-layout/header-layout.vue2.js +122 -37
  69. package/es/components/horizontal-menu/horizontal-menu.vue.js +4 -0
  70. package/es/components/horizontal-menu/horizontal-menu.vue2.js +115 -0
  71. package/es/components/horizontal-menu/index.js +12 -0
  72. package/es/components/horizontal-menu/style/css.js +6 -0
  73. package/es/components/horizontal-menu/style/index.js +6 -0
  74. package/es/components/index.js +254 -209
  75. package/es/components/input/input.vue2.js +184 -178
  76. package/es/components/link/link.vue2.js +24 -24
  77. package/es/components/logo/logo.vue2.js +21 -21
  78. package/es/components/main/style/css.js +2 -0
  79. package/es/components/main/style/index.js +2 -0
  80. package/es/components/md-container/md-container.vue2.js +65 -59
  81. package/es/components/md-container/toc.js +1 -1
  82. package/es/components/menu/menu-item.vue2.js +89 -62
  83. package/es/components/menu/menu.vue2.js +100 -106
  84. package/es/components/menu/sub-menu.vue2.js +83 -76
  85. package/es/components/menu/utils/menu-item.js +15 -19
  86. package/es/components/menu/utils/submenu.js +20 -25
  87. package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -39
  88. package/es/components/result/result.vue2.js +8 -2
  89. package/es/components/row/constants.js +4 -0
  90. package/es/components/row/index.js +14 -0
  91. package/es/components/row/row.vue.js +4 -0
  92. package/es/components/row/row.vue2.js +49 -0
  93. package/es/components/row/style/css.js +2 -0
  94. package/es/components/row/style/index.js +2 -0
  95. package/es/components/row/types.js +1 -0
  96. package/es/components/search/search.vue2.js +126 -114
  97. package/es/components/side-menu/side-menu.vue2.js +212 -146
  98. package/es/components/side-menu/use-drag-line.js +29 -28
  99. package/es/components/tabs/tab-nav.vue2.js +48 -42
  100. package/es/components/time-picker/common/picker.vue.js +4 -0
  101. package/es/components/time-picker/common/picker.vue2.js +438 -0
  102. package/es/components/time-picker/common/props.js +201 -0
  103. package/es/components/time-picker/composables/use-time-panel.js +60 -0
  104. package/es/components/time-picker/composables/use-time-picker.js +40 -0
  105. package/es/components/time-picker/constants.js +17 -0
  106. package/es/components/time-picker/index.js +31 -0
  107. package/es/components/time-picker/props/basic-time-spinner.js +31 -0
  108. package/es/components/time-picker/props/panel-time-picker.js +17 -0
  109. package/es/components/time-picker/props/panel-time-range.js +16 -0
  110. package/es/components/time-picker/props/shared.js +40 -0
  111. package/es/components/time-picker/style/css.js +2 -0
  112. package/es/components/time-picker/style/index.js +2 -0
  113. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.js +4 -0
  114. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +227 -0
  115. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.js +4 -0
  116. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +107 -0
  117. package/es/components/time-picker/time-picker-com/panel-time-range.vue.js +4 -0
  118. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +190 -0
  119. package/es/components/time-picker/time-picker.js +70 -0
  120. package/es/components/time-picker/types.js +1 -0
  121. package/es/components/time-picker/utils.js +35 -0
  122. package/es/components/time-select/style/css.js +2 -0
  123. package/es/components/time-select/style/index.js +2 -0
  124. package/es/components/time-select/time-select.js +54 -0
  125. package/es/components/time-select/time-select.vue.js +4 -0
  126. package/es/components/time-select/time-select.vue2.js +104 -0
  127. package/es/components/time-select/utils.js +40 -0
  128. package/es/components/tooltip/index.js +5 -3
  129. package/es/index.js +381 -336
  130. package/es/package.json.js +1 -1
  131. package/global.d.ts +73 -2
  132. package/lib/component.cjs +1 -1
  133. package/lib/components/aside/style/css.cjs +1 -0
  134. package/lib/components/aside/style/index.cjs +1 -0
  135. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  136. package/lib/components/col/col.vue.cjs +1 -0
  137. package/lib/components/col/col.vue2.cjs +1 -0
  138. package/lib/components/col/index.cjs +1 -0
  139. package/lib/components/col/style/css.cjs +1 -0
  140. package/lib/components/col/style/index.cjs +1 -0
  141. package/lib/components/col/types.cjs +1 -0
  142. package/lib/components/color-picker/utils/color.cjs +1 -1
  143. package/lib/components/container/aside.vue.cjs +1 -0
  144. package/lib/components/container/aside.vue2.cjs +1 -0
  145. package/lib/components/container/container.vue.cjs +1 -0
  146. package/lib/components/container/container.vue2.cjs +1 -0
  147. package/lib/components/container/footer.vue.cjs +1 -0
  148. package/lib/components/container/footer.vue2.cjs +1 -0
  149. package/lib/components/container/header.vue.cjs +1 -0
  150. package/lib/components/container/header.vue2.cjs +1 -0
  151. package/lib/components/container/index.cjs +1 -0
  152. package/lib/components/container/main.vue.cjs +1 -0
  153. package/lib/components/container/main.vue2.cjs +1 -0
  154. package/lib/components/container/style/css.cjs +1 -0
  155. package/lib/components/container/style/index.cjs +1 -0
  156. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  157. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -0
  158. package/lib/components/date-picker/composables/use-range-picker.cjs +1 -0
  159. package/lib/components/date-picker/composables/use-shortcut.cjs +1 -0
  160. package/lib/components/date-picker/constants.cjs +1 -0
  161. package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -0
  162. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.cjs +1 -0
  163. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -0
  164. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.cjs +1 -0
  165. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -0
  166. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.cjs +1 -0
  167. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -0
  168. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.cjs +1 -0
  169. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -0
  170. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.cjs +1 -0
  171. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -0
  172. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.cjs +1 -0
  173. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -0
  174. package/lib/components/date-picker/date-picker.cjs +1 -0
  175. package/lib/components/date-picker/date-picker.type.cjs +1 -0
  176. package/lib/components/date-picker/index.cjs +1 -0
  177. package/lib/components/date-picker/panel-utils.cjs +1 -0
  178. package/lib/components/date-picker/props/basic-cell.cjs +1 -0
  179. package/lib/components/date-picker/props/basic-date-table.cjs +1 -0
  180. package/lib/components/date-picker/props/basic-month-table.cjs +1 -0
  181. package/lib/components/date-picker/props/basic-year-table.cjs +1 -0
  182. package/lib/components/date-picker/props/date-picker.cjs +1 -0
  183. package/lib/components/date-picker/props/panel-date-pick.cjs +1 -0
  184. package/lib/components/date-picker/props/panel-date-range.cjs +1 -0
  185. package/lib/components/date-picker/props/panel-month-range.cjs +1 -0
  186. package/lib/components/date-picker/props/shared.cjs +1 -0
  187. package/lib/components/date-picker/style/css.cjs +1 -0
  188. package/lib/components/date-picker/style/index.cjs +1 -0
  189. package/lib/components/date-picker/utils.cjs +1 -0
  190. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  191. package/lib/components/date-time-select/style/index.cjs +1 -1
  192. package/lib/components/footer/style/css.cjs +1 -0
  193. package/lib/components/footer/style/index.cjs +1 -0
  194. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  195. package/lib/components/header/style/css.cjs +1 -0
  196. package/lib/components/header/style/index.cjs +1 -0
  197. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  198. package/lib/components/horizontal-menu/horizontal-menu.vue.cjs +1 -0
  199. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -0
  200. package/lib/components/horizontal-menu/index.cjs +1 -0
  201. package/lib/components/horizontal-menu/style/css.cjs +1 -0
  202. package/lib/components/horizontal-menu/style/index.cjs +1 -0
  203. package/lib/components/index.cjs +1 -1
  204. package/lib/components/input/input.vue2.cjs +1 -1
  205. package/lib/components/link/link.vue2.cjs +1 -1
  206. package/lib/components/logo/logo.vue2.cjs +1 -1
  207. package/lib/components/main/style/css.cjs +1 -0
  208. package/lib/components/main/style/index.cjs +1 -0
  209. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  210. package/lib/components/md-container/toc.cjs +1 -1
  211. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  212. package/lib/components/menu/menu.vue2.cjs +1 -1
  213. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  214. package/lib/components/menu/utils/menu-item.cjs +1 -1
  215. package/lib/components/menu/utils/submenu.cjs +1 -1
  216. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  217. package/lib/components/result/result.vue2.cjs +1 -1
  218. package/lib/components/row/constants.cjs +1 -0
  219. package/lib/components/row/index.cjs +1 -0
  220. package/lib/components/row/row.vue.cjs +1 -0
  221. package/lib/components/row/row.vue2.cjs +1 -0
  222. package/lib/components/row/style/css.cjs +1 -0
  223. package/lib/components/row/style/index.cjs +1 -0
  224. package/lib/components/row/types.cjs +1 -0
  225. package/lib/components/search/search.vue2.cjs +1 -1
  226. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  227. package/lib/components/side-menu/use-drag-line.cjs +1 -1
  228. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  229. package/lib/components/time-picker/common/picker.vue.cjs +1 -0
  230. package/lib/components/time-picker/common/picker.vue2.cjs +1 -0
  231. package/lib/components/time-picker/common/props.cjs +1 -0
  232. package/lib/components/time-picker/composables/use-time-panel.cjs +1 -0
  233. package/lib/components/time-picker/composables/use-time-picker.cjs +1 -0
  234. package/lib/components/time-picker/constants.cjs +1 -0
  235. package/lib/components/time-picker/index.cjs +1 -0
  236. package/lib/components/time-picker/props/basic-time-spinner.cjs +1 -0
  237. package/lib/components/time-picker/props/panel-time-picker.cjs +1 -0
  238. package/lib/components/time-picker/props/panel-time-range.cjs +1 -0
  239. package/lib/components/time-picker/props/shared.cjs +1 -0
  240. package/lib/components/time-picker/style/css.cjs +1 -0
  241. package/lib/components/time-picker/style/index.cjs +1 -0
  242. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.cjs +1 -0
  243. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -0
  244. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.cjs +1 -0
  245. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -0
  246. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.cjs +1 -0
  247. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -0
  248. package/lib/components/time-picker/time-picker.cjs +1 -0
  249. package/lib/components/time-picker/types.cjs +1 -0
  250. package/lib/components/time-picker/utils.cjs +1 -0
  251. package/lib/components/time-select/style/css.cjs +1 -0
  252. package/lib/components/time-select/style/index.cjs +1 -0
  253. package/lib/components/time-select/time-select.cjs +1 -0
  254. package/lib/components/time-select/time-select.vue.cjs +1 -0
  255. package/lib/components/time-select/time-select.vue2.cjs +1 -0
  256. package/lib/components/time-select/utils.cjs +1 -0
  257. package/lib/components/tooltip/index.cjs +1 -1
  258. package/lib/index.cjs +1 -1
  259. package/lib/package.json.cjs +1 -1
  260. package/package.json +7 -7
  261. package/tags.json +1 -1
  262. package/theme-style/base.css +1 -1
  263. package/theme-style/display.css +1 -0
  264. package/theme-style/index.css +1 -1
  265. package/theme-style/src/affix.scss +7 -0
  266. package/theme-style/src/aside.scss +8 -0
  267. package/theme-style/src/autocomplete.scss +83 -0
  268. package/theme-style/src/back-top.scss +7 -6
  269. package/theme-style/src/badge.scss +57 -0
  270. package/theme-style/src/breadcrumb-item.scss +0 -0
  271. package/theme-style/src/breadcrumb.scss +61 -0
  272. package/theme-style/src/calendar.scss +80 -0
  273. package/theme-style/src/card.scss +38 -0
  274. package/theme-style/src/carousel-item.scss +50 -0
  275. package/theme-style/src/carousel.scss +174 -0
  276. package/theme-style/src/cascader-panel.scss +138 -0
  277. package/theme-style/src/cascader.scss +216 -0
  278. package/theme-style/src/check-tag.scss +29 -0
  279. package/theme-style/src/col.scss +52 -0
  280. package/theme-style/src/collapse-item.scss +0 -0
  281. package/theme-style/src/collapse.scss +67 -0
  282. package/theme-style/src/color-picker.scss +2 -2
  283. package/theme-style/src/common/popup.scss +47 -0
  284. package/theme-style/src/common/var.scss +381 -6
  285. package/theme-style/src/container.scss +14 -0
  286. package/theme-style/src/date-picker/date-picker.scss +110 -0
  287. package/theme-style/src/date-picker/date-range-picker.scss +113 -0
  288. package/theme-style/src/date-picker/date-table.scss +162 -0
  289. package/theme-style/src/date-picker/month-table.scss +90 -0
  290. package/theme-style/src/date-picker/picker-panel.scss +131 -0
  291. package/theme-style/src/date-picker/picker.scss +210 -0
  292. package/theme-style/src/date-picker/time-picker.scss +90 -0
  293. package/theme-style/src/date-picker/time-range-picker.scss +33 -0
  294. package/theme-style/src/date-picker/time-spinner.scss +111 -0
  295. package/theme-style/src/date-picker/year-table.scss +60 -0
  296. package/theme-style/src/date-picker.scss +9 -0
  297. package/theme-style/src/date-time-select.scss +1 -1
  298. package/theme-style/src/display.scss +12 -0
  299. package/theme-style/src/drawer.scss +160 -0
  300. package/theme-style/src/footer-layout.scss +4 -9
  301. package/theme-style/src/footer.scss +11 -0
  302. package/theme-style/src/header-layout.scss +26 -15
  303. package/theme-style/src/header.scss +11 -0
  304. package/theme-style/src/horizontal-menu.scss +90 -0
  305. package/theme-style/src/icon.scss +6 -6
  306. package/theme-style/src/index.scss +123 -76
  307. package/theme-style/src/infinite-scroll.scss +0 -0
  308. package/theme-style/src/input-number.scss +175 -0
  309. package/theme-style/src/input.scss +2 -4
  310. package/theme-style/src/list-cell.scss +3 -3
  311. package/theme-style/src/loading.scss +1 -1
  312. package/theme-style/src/main.scss +10 -0
  313. package/theme-style/src/md/code.scss +3 -3
  314. package/theme-style/src/md/demo-block.scss +2 -2
  315. package/theme-style/src/md/pswp.scss +4 -4
  316. package/theme-style/src/md/scroll-bar.scss +1 -1
  317. package/theme-style/src/md/table.scss +3 -3
  318. package/theme-style/src/md/toc.scss +3 -3
  319. package/theme-style/src/md-container.scss +6 -8
  320. package/theme-style/src/menu.scss +43 -17
  321. package/theme-style/src/message-box.scss +258 -0
  322. package/theme-style/src/mixins/_col.scss +38 -0
  323. package/theme-style/src/mixins/mixins.scss +25 -0
  324. package/theme-style/src/notification.scss +105 -0
  325. package/theme-style/src/option.scss +36 -0
  326. package/theme-style/src/pagination.scss +0 -2
  327. package/theme-style/src/progress.scss +169 -0
  328. package/theme-style/src/rate.scss +101 -0
  329. package/theme-style/src/reset.scss +92 -0
  330. package/theme-style/src/row.scss +31 -0
  331. package/theme-style/src/search.scss +6 -5
  332. package/theme-style/src/select-dropdown.scss +2 -2
  333. package/theme-style/src/side-menu.scss +9 -3
  334. package/theme-style/src/slider.scss +211 -0
  335. package/theme-style/src/space.scss +20 -0
  336. package/theme-style/src/spinner.scss +43 -0
  337. package/theme-style/src/statistic.scss +35 -0
  338. package/theme-style/src/step.scss +316 -0
  339. package/theme-style/src/steps.scss +21 -0
  340. package/theme-style/src/tabs.scss +2 -2
  341. package/theme-style/src/time-picker.scss +5 -0
  342. package/theme-style/src/time-select.scss +37 -0
  343. package/theme-style/src/timeline-item.scss +85 -0
  344. package/theme-style/src/timeline.scss +46 -0
  345. package/theme-style/src/transfer.scss +206 -0
  346. package/theme-style/src/tree-select.scss +36 -0
  347. package/theme-style/src/tree.scss +131 -0
  348. package/theme-style/src/upload.scss +621 -0
  349. package/theme-style/vft-affix.css +1 -0
  350. package/theme-style/vft-aside.css +1 -0
  351. package/theme-style/vft-autocomplete.css +1 -0
  352. package/theme-style/vft-back-top.css +1 -1
  353. package/theme-style/vft-badge.css +1 -0
  354. package/theme-style/vft-breadcrumb-item.css +0 -0
  355. package/theme-style/vft-breadcrumb.css +1 -0
  356. package/theme-style/vft-calendar.css +1 -0
  357. package/theme-style/vft-card.css +1 -0
  358. package/theme-style/vft-carousel-item.css +1 -0
  359. package/theme-style/vft-carousel.css +1 -0
  360. package/theme-style/vft-cascader-panel.css +1 -0
  361. package/theme-style/vft-cascader.css +1 -0
  362. package/theme-style/vft-check-tag.css +1 -0
  363. package/theme-style/vft-col.css +1 -0
  364. package/theme-style/vft-collapse-item.css +0 -0
  365. package/theme-style/vft-collapse.css +1 -0
  366. package/theme-style/vft-color-picker.css +1 -1
  367. package/theme-style/vft-container.css +1 -0
  368. package/theme-style/vft-date-picker.css +1 -0
  369. package/theme-style/vft-drawer.css +1 -0
  370. package/theme-style/vft-footer-layout.css +1 -1
  371. package/theme-style/vft-footer.css +1 -0
  372. package/theme-style/vft-header-layout.css +1 -1
  373. package/theme-style/vft-header.css +1 -0
  374. package/theme-style/vft-horizontal-menu.css +1 -0
  375. package/theme-style/vft-infinite-scroll.css +0 -0
  376. package/theme-style/vft-input-number.css +1 -0
  377. package/theme-style/vft-main.css +1 -0
  378. package/theme-style/vft-md-container.css +1 -1
  379. package/theme-style/vft-menu.css +1 -1
  380. package/theme-style/vft-message-box.css +1 -0
  381. package/theme-style/vft-notification.css +1 -0
  382. package/theme-style/vft-option.css +1 -0
  383. package/theme-style/vft-pagination.css +1 -1
  384. package/theme-style/vft-progress.css +1 -0
  385. package/theme-style/vft-rate.css +1 -0
  386. package/theme-style/vft-reset.css +1 -0
  387. package/theme-style/vft-row.css +1 -0
  388. package/theme-style/vft-search.css +1 -1
  389. package/theme-style/vft-select-dropdown.css +1 -1
  390. package/theme-style/vft-select.css +1 -1
  391. package/theme-style/vft-side-menu.css +1 -1
  392. package/theme-style/vft-slider.css +1 -0
  393. package/theme-style/vft-space.css +1 -0
  394. package/theme-style/vft-spinner.css +1 -0
  395. package/theme-style/vft-statistic.css +1 -0
  396. package/theme-style/vft-step.css +1 -0
  397. package/theme-style/vft-steps.css +1 -0
  398. package/theme-style/vft-time-picker.css +1 -0
  399. package/theme-style/vft-time-select.css +1 -0
  400. package/theme-style/vft-timeline-item.css +1 -0
  401. package/theme-style/vft-timeline.css +1 -0
  402. package/theme-style/vft-transfer.css +1 -0
  403. package/theme-style/vft-tree-select.css +1 -0
  404. package/theme-style/vft-tree.css +1 -0
  405. package/theme-style/vft-upload.css +1 -0
  406. package/theme-style/vft-var.css +1 -1
  407. package/web-types.json +1 -1
  408. package/theme-style/src/md/list.scss +0 -21
@@ -0,0 +1,39 @@
1
+ import { defineComponent as r, computed as p, openBlock as a, createElementBlock as m, normalizeClass as i, unref as o, normalizeStyle as c, renderSlot as u } from "vue";
2
+ import { useNamespace as h } from "../../hooks/use-namespace/index.js";
3
+ import "@popperjs/core";
4
+ import "lodash";
5
+ import "../../hooks/use-z-index/index.js";
6
+ import "@vueuse/core";
7
+ import "@vft/utils";
8
+ import "../../utils/ns-cover.js";
9
+ const e = (
10
+ /* hoist-static*/
11
+ h("header")
12
+ ), d = r({
13
+ name: e.b()
14
+ }), C = /* @__PURE__ */ r({
15
+ ...d,
16
+ props: {
17
+ /**
18
+ * @description height of the header
19
+ */
20
+ height: {
21
+ type: String,
22
+ default: null
23
+ }
24
+ },
25
+ setup(s) {
26
+ const t = s, n = p(() => t.height ? e.cssVarBlock({
27
+ height: t.height
28
+ }) : {});
29
+ return (l, f) => (a(), m("header", {
30
+ class: i(o(e).b()),
31
+ style: c(o(n))
32
+ }, [
33
+ u(l.$slots, "default")
34
+ ], 6));
35
+ }
36
+ });
37
+ export {
38
+ C as default
39
+ };
@@ -0,0 +1,25 @@
1
+ import { withInstall as f, withNoopInstall as o } from "../../utils/vue/install.js";
2
+ import "vue";
3
+ import "@vft/utils";
4
+ import "lodash";
5
+ import "@vueuse/core";
6
+ import "../../utils/ns-cover.js";
7
+ import n from "./container.vue2.js";
8
+ import t from "./aside.vue2.js";
9
+ import i from "./footer.vue2.js";
10
+ import r from "./header.vue2.js";
11
+ import m from "./main.vue2.js";
12
+ const w = f(n, {
13
+ Aside: t,
14
+ Footer: i,
15
+ Header: r,
16
+ Main: m
17
+ }), A = o(t), F = o(i), H = o(r), I = o(m);
18
+ export {
19
+ A as VftAside,
20
+ w as VftContainer,
21
+ F as VftFooter,
22
+ H as VftHeader,
23
+ I as VftMain,
24
+ w as default
25
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./main.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as e, openBlock as r, createElementBlock as m, normalizeClass as n, unref as s, renderSlot as a } from "vue";
2
+ import { useNamespace as p } from "../../hooks/use-namespace/index.js";
3
+ import "@popperjs/core";
4
+ import "lodash";
5
+ import "../../hooks/use-z-index/index.js";
6
+ import "@vueuse/core";
7
+ import "@vft/utils";
8
+ import "../../utils/ns-cover.js";
9
+ const o = (
10
+ /* hoist-static*/
11
+ p("main")
12
+ ), i = e({
13
+ name: o.b()
14
+ }), h = /* @__PURE__ */ e({
15
+ ...i,
16
+ setup(c) {
17
+ return (t, l) => (r(), m("main", {
18
+ class: n(s(o).b())
19
+ }, [
20
+ a(t.$slots, "default")
21
+ ], 2));
22
+ }
23
+ });
24
+ export {
25
+ h as default
26
+ };
@@ -0,0 +1,6 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-container.css";
3
+ import "vft/theme-style/vft-aside.css";
4
+ import "vft/theme-style/vft-footer.css";
5
+ import "vft/theme-style/vft-header.css";
6
+ import "vft/theme-style/vft-main.css";
@@ -0,0 +1,6 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/container.scss";
3
+ import "vft/theme-style/src/aside.scss";
4
+ import "vft/theme-style/src/footer.scss";
5
+ import "vft/theme-style/src/header.scss";
6
+ import "vft/theme-style/src/main.scss";
@@ -25,6 +25,7 @@ import "../iframe-layout/index.js";
25
25
  import "../router-view-content/index.js";
26
26
  import "../logo/index.js";
27
27
  import "../back-top/index.js";
28
+ import "../container/index.js";
28
29
  import "../config-provider/index.js";
29
30
  import "../descriptions/index.js";
30
31
  import "../full-screen/index.js";
@@ -62,6 +63,11 @@ import "../image-viewer/index.js";
62
63
  import "../list-cell/index.js";
63
64
  import "../dialog/index.js";
64
65
  import "../date-time-select/index.js";
66
+ import "../col/index.js";
67
+ import "../row/index.js";
68
+ import "../horizontal-menu/index.js";
69
+ import "../time-picker/index.js";
70
+ import "../date-picker/index.js";
65
71
  import "../md-container/index.js";
66
72
  import "../md-comment/index.js";
67
73
  import "../md-tabs/index.js";
@@ -74,7 +80,7 @@ const N = { class: "vft-sub-menu" }, x = (
74
80
  F("context-menu")
75
81
  ), R = f({
76
82
  name: x.b()
77
- }), to = /* @__PURE__ */ f({
83
+ }), po = /* @__PURE__ */ f({
78
84
  ...R,
79
85
  props: {
80
86
  axis: null,
@@ -82,40 +88,40 @@ const N = { class: "vft-sub-menu" }, x = (
82
88
  width: null,
83
89
  items: null
84
90
  },
85
- setup(e) {
91
+ setup(r) {
86
92
  let s = u();
87
93
  const v = k(() => {
88
- const { x: t, y: o } = e.axis || { x: 0, y: 0 }, i = (e.items || []).length * 40, m = e.width || 0, n = document.body, w = n.clientWidth < t + m ? t - m : t, y = n.clientHeight < o + i ? o - i : o;
94
+ const { x: t, y: o } = r.axis || { x: 0, y: 0 }, i = (r.items || []).length * 40, m = r.width || 0, n = document.body, w = n.clientWidth < t + m ? t - m : t, y = n.clientHeight < o + i ? o - i : o;
89
95
  return {
90
96
  zIndex: 3e3,
91
- ...e.styles,
97
+ ...r.styles,
92
98
  position: "fixed",
93
- width: `${e.width}px`,
99
+ width: `${r.width}px`,
94
100
  left: `${w + 1}px`,
95
101
  top: `${y + 1}px`
96
102
  };
97
103
  });
98
- let r = u(!1);
104
+ let e = u(!1);
99
105
  H(() => {
100
- r.value = !0;
106
+ e.value = !0;
101
107
  }, 0), I(s, () => {
102
- r.value = !1;
108
+ e.value = !1;
103
109
  }, {
104
110
  listenerOptions: {
105
111
  capture: !0
106
112
  }
107
113
  }), c(window, "scroll", () => {
108
- r.value = !1;
114
+ e.value = !1;
109
115
  }, {
110
116
  capture: !0
111
117
  }), c(window, "drag", () => {
112
- r.value = !1;
118
+ e.value = !1;
113
119
  }, {
114
120
  capture: !0
115
121
  });
116
122
  function h(t) {
117
123
  var o;
118
- t != null && t.disabled || ((o = t.handler) == null || o.call(t), r.value = !1);
124
+ t != null && t.disabled || ((o = t.handler) == null || o.call(t), e.value = !1);
119
125
  }
120
126
  return (t, o) => (l(), d(b, { name: "vft-zoom-in-top" }, {
121
127
  default: C(() => [
@@ -128,7 +134,7 @@ const N = { class: "vft-sub-menu" }, x = (
128
134
  class: $([p(x).b(), "vft-menu"])
129
135
  }, [
130
136
  a("div", N, [
131
- (l(!0), B(E, null, S(e.items, (i, m) => (l(), d(p(L), {
137
+ (l(!0), B(E, null, S(r.items, (i, m) => (l(), d(p(L), {
132
138
  onClick: (n) => h(i),
133
139
  index: m + i.text,
134
140
  title: i.text,
@@ -140,7 +146,7 @@ const N = { class: "vft-sub-menu" }, x = (
140
146
  }, null, 8, ["onClick", "index", "title", "divider", "disabled", "icon"]))), 128))
141
147
  ])
142
148
  ], 6), [
143
- [A, p(r)]
149
+ [A, p(e)]
144
150
  ])
145
151
  ]),
146
152
  _: 1
@@ -148,5 +154,5 @@ const N = { class: "vft-sub-menu" }, x = (
148
154
  }
149
155
  });
150
156
  export {
151
- to as default
157
+ po as default
152
158
  };
@@ -0,0 +1,29 @@
1
+ import { computed as a } from "vue";
2
+ const b = ({
3
+ unlinkPanels: u,
4
+ leftDate: e,
5
+ rightDate: r
6
+ }) => {
7
+ const v = () => {
8
+ e.value = e.value.subtract(1, "year"), u.value || (r.value = r.value.subtract(1, "year"));
9
+ }, l = () => {
10
+ u.value || (e.value = e.value.add(1, "year")), r.value = r.value.add(1, "year");
11
+ }, o = () => {
12
+ e.value = e.value.add(1, "year");
13
+ }, c = () => {
14
+ r.value = r.value.subtract(1, "year");
15
+ }, n = a(() => `${e.value.year()} 年}`), y = a(() => `${r.value.year()} 年}`), s = a(() => e.value.year()), d = a(() => r.value.year() === e.value.year() ? e.value.year() + 1 : r.value.year());
16
+ return {
17
+ leftPrevYear: v,
18
+ rightNextYear: l,
19
+ leftNextYear: o,
20
+ rightPrevYear: c,
21
+ leftLabel: n,
22
+ rightLabel: y,
23
+ leftYear: s,
24
+ rightYear: d
25
+ };
26
+ };
27
+ export {
28
+ b as useMonthRangeHeader
29
+ };
@@ -0,0 +1,68 @@
1
+ import { getCurrentInstance as I, ref as s, inject as P, watch as f, unref as n } from "vue";
2
+ import { isArray as S } from "@vft/utils";
3
+ import { useNamespace as x } from "../../../hooks/use-namespace/index.js";
4
+ import "@popperjs/core";
5
+ import "lodash";
6
+ import "../../../hooks/use-z-index/index.js";
7
+ import "@vueuse/core";
8
+ import "../../../utils/ns-cover.js";
9
+ import { isValidRange as E, getDefaultValue as O } from "../utils.js";
10
+ import { ROOT_PICKER_INJECTION_KEY as K } from "../constants.js";
11
+ import { useShortcut as T } from "./use-shortcut.js";
12
+ const G = (l, {
13
+ defaultValue: m,
14
+ leftDate: u,
15
+ rightDate: g,
16
+ unit: d,
17
+ onParsedValueChanged: v
18
+ }) => {
19
+ const { emit: h } = I(), c = s("zh-cn"), { pickerNs: k } = P(K), D = x("date-range-picker"), C = T(c), a = s(), o = s(), r = s({
20
+ endDate: null,
21
+ selecting: !1
22
+ }), N = (e) => {
23
+ r.value = e;
24
+ }, R = (e = !1) => {
25
+ const t = n(a), i = n(o);
26
+ E([t, i]) && h("pick", [t, i], e);
27
+ }, _ = (e) => {
28
+ r.value.selecting = e, e || (r.value.endDate = null);
29
+ }, p = () => {
30
+ const [e, t] = O(n(m), {
31
+ lang: n(c),
32
+ unit: d,
33
+ unlinkPanels: l.unlinkPanels
34
+ });
35
+ a.value = void 0, o.value = void 0, u.value = e, g.value = t;
36
+ };
37
+ return f(
38
+ m,
39
+ (e) => {
40
+ e && p();
41
+ },
42
+ { immediate: !0 }
43
+ ), f(
44
+ () => l.parsedValue,
45
+ (e) => {
46
+ if (S(e) && e.length === 2) {
47
+ const [t, i] = e;
48
+ a.value = t, u.value = t, o.value = i, v(n(a), n(o));
49
+ } else
50
+ p();
51
+ },
52
+ { immediate: !0 }
53
+ ), {
54
+ minDate: a,
55
+ maxDate: o,
56
+ rangeState: r,
57
+ lang: c,
58
+ ppNs: k,
59
+ drpNs: D,
60
+ handleChangeRange: N,
61
+ handleRangeConfirm: R,
62
+ handleShortcutClick: C,
63
+ onSelect: _
64
+ };
65
+ };
66
+ export {
67
+ G as useRangePicker
68
+ };
@@ -0,0 +1,24 @@
1
+ import { getCurrentInstance as s, useAttrs as i, useSlots as u } from "vue";
2
+ import n from "dayjs";
3
+ import { isFunction as a } from "@vft/utils";
4
+ const v = (o) => {
5
+ const { emit: l } = s(), c = i(), r = u();
6
+ return (t) => {
7
+ const e = a(t.value) ? t.value() : t.value;
8
+ if (e) {
9
+ l("pick", [
10
+ n(e[0]).locale(o.value),
11
+ n(e[1]).locale(o.value)
12
+ ]);
13
+ return;
14
+ }
15
+ t.onClick && t.onClick({
16
+ attrs: c,
17
+ slots: r,
18
+ emit: l
19
+ });
20
+ };
21
+ };
22
+ export {
23
+ v as useShortcut
24
+ };
@@ -0,0 +1,4 @@
1
+ const o = Symbol();
2
+ export {
3
+ o as ROOT_PICKER_INJECTION_KEY
4
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as p, inject as m, createVNode as i } from "vue";
2
+ import { useNamespace as n } from "../../../hooks/use-namespace/index.js";
3
+ import "@popperjs/core";
4
+ import "lodash";
5
+ import "../../../hooks/use-z-index/index.js";
6
+ import "@vueuse/core";
7
+ import "@vft/utils";
8
+ import "../../../utils/ns-cover.js";
9
+ import { ROOT_PICKER_INJECTION_KEY as a } from "../constants.js";
10
+ import { basicCellProps as c } from "../props/basic-cell.js";
11
+ const I = /* @__PURE__ */ p({
12
+ name: "ElDatePickerCell",
13
+ props: c,
14
+ setup(l) {
15
+ const e = n("date-table-cell"), {
16
+ slots: r
17
+ } = m(a);
18
+ return () => {
19
+ const {
20
+ cell: t
21
+ } = l;
22
+ if (r.default) {
23
+ const o = r.default(t).filter((s) => s.patchFlag !== -2 && s.type.toString() !== "Symbol(Comment)");
24
+ if (o.length)
25
+ return o;
26
+ }
27
+ return i("div", {
28
+ class: e.b()
29
+ }, [i("span", {
30
+ class: e.e("text")
31
+ }, [t == null ? void 0 : t.text])]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ I as default
37
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./basic-date-table.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,206 @@
1
+ import { defineComponent as ne, ref as y, computed as m, unref as l, watch as re, nextTick as oe, openBlock as f, createElementBlock as p, normalizeClass as M, withModifiers as ue, createElementVNode as $, createCommentVNode as ie, Fragment as C, renderList as O, toDisplayString as ce, createVNode as de } from "vue";
2
+ import j from "dayjs";
3
+ import { flatten as le } from "lodash";
4
+ import { useNamespace as fe } from "../../../hooks/use-namespace/index.js";
5
+ import "@popperjs/core";
6
+ import "../../../hooks/use-z-index/index.js";
7
+ import "@vueuse/core";
8
+ import "@vft/utils";
9
+ import "../../../utils/ns-cover.js";
10
+ import { basicDateTableProps as pe } from "../props/basic-date-table.js";
11
+ import { castArray as N, buildPickerTable as me } from "../utils.js";
12
+ import he from "./basic-cell-render.js";
13
+ const ye = ["onMousedown"], De = {
14
+ key: 0,
15
+ scope: "col"
16
+ }, ke = ["aria-label"], ge = ["aria-current", "aria-selected", "tabindex"], Re = /* @__PURE__ */ ne({
17
+ __name: "basic-date-table",
18
+ props: pe,
19
+ emits: ["changerange", "pick", "select"],
20
+ setup(L, { expose: z, emit: d }) {
21
+ const a = L, x = fe("date-table"), _ = y("zh-cn"), S = y(), k = y(), V = y(), E = y(), B = y([[], [], [], [], [], []]);
22
+ let g = !1;
23
+ const h = a.date.$locale().weekStart || 7, R = a.date.locale("en").localeData().weekdaysShort().map((e) => e.toLowerCase()), v = m(() => h > 3 ? 7 - h : -h), b = m(() => {
24
+ const e = a.date.startOf("month");
25
+ return e.subtract(e.day() || 7, "day");
26
+ }), U = m(() => R.concat(R).slice(
27
+ h,
28
+ h + 7
29
+ )), W = m(() => le(D.value).some((e) => e.isCurrent)), G = m(() => {
30
+ const e = a.date.startOf("month"), t = e.day() || 7, s = e.daysInMonth(), n = e.subtract(1, "month").daysInMonth();
31
+ return {
32
+ startOfMonthDay: t,
33
+ dateCountOfMonth: s,
34
+ dateCountOfLastMonth: n
35
+ };
36
+ }), K = m(() => a.selectionMode === "dates" ? N(a.parsedValue) : []), q = (e, {
37
+ count: t,
38
+ rowIndex: s,
39
+ columnIndex: n
40
+ }) => {
41
+ const { startOfMonthDay: r, dateCountOfMonth: i, dateCountOfLastMonth: o } = l(G), c = l(v);
42
+ if (s >= 0 && s <= 1) {
43
+ const u = r + c < 0 ? 7 + r + c : r + c;
44
+ if (n + s * 7 >= u)
45
+ return e.text = t, !0;
46
+ e.text = o - (u - n % 7) + 1 + s * 7, e.type = "prev-month";
47
+ } else
48
+ return t <= i ? e.text = t : (e.text = t - i, e.type = "next-month"), !0;
49
+ return !1;
50
+ }, H = (e, {
51
+ columnIndex: t,
52
+ rowIndex: s
53
+ }, n) => {
54
+ const { disabledDate: r, cellClassName: i } = a, o = l(K), c = q(e, { count: n, rowIndex: s, columnIndex: t }), u = e.dayjs.toDate();
55
+ return e.selected = o.find(
56
+ (se) => se.valueOf() === e.dayjs.valueOf()
57
+ ), e.isSelected = !!e.selected, e.isCurrent = A(e), e.disabled = r == null ? void 0 : r(u), e.customClass = i == null ? void 0 : i(u), c;
58
+ }, J = (e) => {
59
+ if (a.selectionMode === "week") {
60
+ const [t, s] = a.showWeekNumber ? [1, 7] : [0, 6], n = F(e[t + 1]);
61
+ e[t].inRange = n, e[t].start = n, e[s].inRange = n, e[s].end = n;
62
+ }
63
+ }, D = m(() => {
64
+ const { minDate: e, maxDate: t, rangeState: s, showWeekNumber: n } = a, r = v.value, i = B.value, o = "day";
65
+ let c = 1;
66
+ if (n)
67
+ for (let u = 0; u < 6; u++)
68
+ i[u][0] || (i[u][0] = {
69
+ type: "week",
70
+ text: b.value.add(u * 7 + 1, o).week()
71
+ });
72
+ return me({ row: 6, column: 7 }, i, {
73
+ startDate: e,
74
+ columnIndexOffset: n ? 1 : 0,
75
+ nextEndDate: s.endDate || t || s.selecting && e || null,
76
+ now: j().locale(l(_)).startOf(o),
77
+ unit: o,
78
+ relativeDateGetter: (u) => b.value.add(u - r, o),
79
+ setCellMetadata: (...u) => {
80
+ H(...u, c) && (c += 1);
81
+ },
82
+ setRowMetadata: J
83
+ }), i;
84
+ });
85
+ re(
86
+ () => a.date,
87
+ async () => {
88
+ var e, t;
89
+ (e = S.value) != null && e.contains(document.activeElement) && (await oe(), (t = k.value) == null || t.focus());
90
+ }
91
+ );
92
+ const Q = async () => {
93
+ var e;
94
+ (e = k.value) == null || e.focus();
95
+ }, w = (e = "") => ["normal", "today"].includes(e), A = (e) => a.selectionMode === "date" && w(e.type) && X(e, a.parsedValue), X = (e, t) => t ? j(t).locale(_.value).isSame(a.date.date(Number(e.text)), "day") : !1, Y = (e) => {
96
+ const t = [];
97
+ return w(e.type) && !e.disabled ? (t.push("available"), e.type === "today" && t.push("today")) : t.push(e.type), A(e) && t.push("current"), e.inRange && (w(e.type) || a.selectionMode === "week") && (t.push("in-range"), e.start && t.push("start-date"), e.end && t.push("end-date")), e.disabled && t.push("disabled"), e.selected && t.push("selected"), e.customClass && t.push(e.customClass), t.join(" ");
98
+ }, I = (e, t) => {
99
+ const s = e * 7 + (t - (a.showWeekNumber ? 1 : 0)) - v.value;
100
+ return b.value.add(s, "day");
101
+ }, Z = (e) => {
102
+ var r;
103
+ if (!a.rangeState.selecting)
104
+ return;
105
+ let t = e.target;
106
+ if (t.tagName === "SPAN" && (t = (r = t.parentNode) == null ? void 0 : r.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD")
107
+ return;
108
+ const s = t.parentNode.rowIndex - 1, n = t.cellIndex;
109
+ D.value[s][n].disabled || (s !== V.value || n !== E.value) && (V.value = s, E.value = n, d("changerange", {
110
+ selecting: !0,
111
+ endDate: I(s, n)
112
+ }));
113
+ }, T = (e) => !W.value && (e == null ? void 0 : e.text) === 1 && e.type === "normal" || e.isCurrent, ee = (e) => {
114
+ g || W.value || a.selectionMode !== "date" || P(e, !0);
115
+ }, te = (e) => {
116
+ e.target.closest("td") && (g = !0);
117
+ }, ae = (e) => {
118
+ e.target.closest("td") && (g = !1);
119
+ }, P = (e, t = !1) => {
120
+ const s = e.target.closest("td");
121
+ if (!s)
122
+ return;
123
+ const n = s.parentNode.rowIndex - 1, r = s.cellIndex, i = D.value[n][r];
124
+ if (i.disabled || i.type === "week")
125
+ return;
126
+ const o = I(n, r);
127
+ if (a.selectionMode === "range")
128
+ !a.rangeState.selecting || !a.minDate ? (d("pick", { minDate: o, maxDate: null }), d("select", !0)) : (o >= a.minDate ? d("pick", { minDate: a.minDate, maxDate: o }) : d("pick", { minDate: o, maxDate: a.minDate }), d("select", !1));
129
+ else if (a.selectionMode === "date")
130
+ d("pick", o, t);
131
+ else if (a.selectionMode === "week") {
132
+ const c = o.week(), u = `${o.year()}w${c}`;
133
+ d("pick", {
134
+ year: o.year(),
135
+ week: c,
136
+ value: u,
137
+ date: o.startOf("week")
138
+ });
139
+ } else if (a.selectionMode === "dates") {
140
+ const c = i.selected ? N(a.parsedValue).filter(
141
+ (u) => (u == null ? void 0 : u.valueOf()) !== o.valueOf()
142
+ ) : N(a.parsedValue).concat([o]);
143
+ d("pick", c);
144
+ }
145
+ }, F = (e) => {
146
+ if (a.selectionMode !== "week")
147
+ return !1;
148
+ let t = a.date.startOf("day");
149
+ if (e.type === "prev-month" && (t = t.subtract(1, "month")), e.type === "next-month" && (t = t.add(1, "month")), t = t.date(Number.parseInt(e.text, 10)), a.parsedValue && !Array.isArray(a.parsedValue)) {
150
+ const s = (a.parsedValue.day() - h + 7) % 7 - 1;
151
+ return a.parsedValue.subtract(s, "day").isSame(t, "day");
152
+ }
153
+ return !1;
154
+ };
155
+ return z({
156
+ /**
157
+ * @description focus on current cell
158
+ */
159
+ focus: Q
160
+ }), (e, t) => (f(), p("table", {
161
+ role: "grid",
162
+ "aria-label": "使用方向鍵與 Enter 鍵以選擇日期",
163
+ cellspacing: "0",
164
+ cellpadding: "0",
165
+ class: M([l(x).b(), { "is-week-mode": e.selectionMode === "week" }]),
166
+ onClick: P,
167
+ onMousemove: Z,
168
+ onMousedown: ue(te, ["prevent"]),
169
+ onMouseup: ae
170
+ }, [
171
+ $("tbody", {
172
+ ref_key: "tbodyRef",
173
+ ref: S
174
+ }, [
175
+ $("tr", null, [
176
+ e.showWeekNumber ? (f(), p("th", De, "周")) : ie("", !0),
177
+ (f(!0), p(C, null, O(l(U), (s, n) => (f(), p("th", {
178
+ key: n,
179
+ scope: "col",
180
+ "aria-label": "星期" + s
181
+ }, ce(s), 9, ke))), 128))
182
+ ]),
183
+ (f(!0), p(C, null, O(l(D), (s, n) => (f(), p("tr", {
184
+ key: n,
185
+ class: M([l(x).e("row"), { current: F(s[1]) }])
186
+ }, [
187
+ (f(!0), p(C, null, O(s, (r, i) => (f(), p("td", {
188
+ key: `${n}.${i}`,
189
+ ref_for: !0,
190
+ ref: (o) => T(r) && (k.value = o),
191
+ class: M(Y(r)),
192
+ "aria-current": r.isCurrent ? "date" : void 0,
193
+ "aria-selected": r.isCurrent,
194
+ tabindex: T(r) ? 0 : -1,
195
+ onFocus: ee
196
+ }, [
197
+ de(l(he), { cell: r }, null, 8, ["cell"])
198
+ ], 42, ge))), 128))
199
+ ], 2))), 128))
200
+ ], 512)
201
+ ], 42, ye));
202
+ }
203
+ });
204
+ export {
205
+ Re as default
206
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./basic-month-table.vue2.js";
2
+ export {
3
+ f as default
4
+ };