vft 0.0.509 → 0.0.511

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 (285) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/affix/affix.vue2.js +2 -2
  3. package/es/components/alert/alert.vue2.js +1 -1
  4. package/es/components/autocomplete/autocomplete.vue2.js +1 -1
  5. package/es/components/avatar/avatar.vue2.js +2 -2
  6. package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
  7. package/es/components/backtop/backtop.vue2.js +1 -1
  8. package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
  9. package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
  10. package/es/components/button/button-group.vue2.js +2 -2
  11. package/es/components/button/button.vue2.js +7 -7
  12. package/es/components/button/use-button.js +3 -3
  13. package/es/components/card/card.vue2.js +6 -6
  14. package/es/components/carousel/carousel-item.vue2.js +3 -3
  15. package/es/components/carousel/carousel.vue2.js +1 -1
  16. package/es/components/cascader/cascader.vue2.js +2 -2
  17. package/es/components/cascader-panel/index.vue2.js +1 -1
  18. package/es/components/cascader-panel/menu.vue2.js +6 -6
  19. package/es/components/cascader-panel/node.vue2.js +8 -8
  20. package/es/components/check-tag/check-tag.vue2.js +2 -2
  21. package/es/components/checkbox/checkbox-button.vue2.js +13 -13
  22. package/es/components/checkbox/checkbox-group.vue2.js +3 -3
  23. package/es/components/checkbox/checkbox.vue2.js +1 -1
  24. package/es/components/clamp/clamp.vue2.js +2 -2
  25. package/es/components/clamp-toggle/clamp-toggle.vue2.js +4 -4
  26. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
  27. package/es/components/col/col.vue2.js +2 -2
  28. package/es/components/collapse/collapse-item.vue2.js +2 -2
  29. package/es/components/collapse/collapse.vue2.js +2 -2
  30. package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
  31. package/es/components/color-picker/color-picker.vue2.js +2 -2
  32. package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
  33. package/es/components/color-picker/components/hue-slider.vue.js +2 -2
  34. package/es/components/color-picker/components/predefine.vue.js +3 -3
  35. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  36. package/es/components/config-provider/config-provider.vue2.js +2 -2
  37. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  38. package/es/components/container/aside.vue2.js +2 -2
  39. package/es/components/container/container.vue2.js +2 -2
  40. package/es/components/container/footer.vue2.js +2 -2
  41. package/es/components/container/header.vue2.js +2 -2
  42. package/es/components/container/main.vue2.js +2 -2
  43. package/es/components/context-menu/context-menu.vue2.js +1 -1
  44. package/es/components/countdown/countdown.vue2.js +2 -2
  45. package/es/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  46. package/es/components/date-picker/composables/use-basic-date-table.js +115 -115
  47. package/es/components/date-picker/composables/use-month-range-header.js +1 -1
  48. package/es/components/date-picker/composables/use-panel-date-range.js +1 -1
  49. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
  50. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +5 -5
  51. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +5 -5
  52. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +12 -12
  53. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +3 -3
  54. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
  55. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
  56. package/es/components/date-picker/props/basic-date-table.js +3 -3
  57. package/es/components/date-picker/props/basic-month-table.js +3 -3
  58. package/es/components/date-picker/props/basic-year-table.js +3 -3
  59. package/es/components/date-time-select/date-time-select.vue2.js +1 -1
  60. package/es/components/descriptions/description.vue2.js +1 -1
  61. package/es/components/descriptions/descriptions-row.vue2.js +10 -10
  62. package/es/components/dialog/dialog-content.vue2.js +3 -3
  63. package/es/components/dialog/dialog.vue2.js +5 -5
  64. package/es/components/divider/divider.vue2.js +5 -5
  65. package/es/components/drawer/drawer.vue2.js +4 -4
  66. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  67. package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
  68. package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
  69. package/es/components/dropdown/dropdown-item.vue2.js +2 -2
  70. package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
  71. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  72. package/es/components/dropdown/dropdown.vue2.js +5 -5
  73. package/es/components/dropdown/index.d.ts +33 -33
  74. package/es/components/empty/empty.vue2.js +6 -6
  75. package/es/components/footer-layout/footer-layout.vue2.js +2 -2
  76. package/es/components/form/form-item.vue2.js +16 -16
  77. package/es/components/form/form.vue2.js +2 -2
  78. package/es/components/full-screen/full-screen.vue2.js +3 -3
  79. package/es/components/header-layout/header-layout.vue2.js +1 -1
  80. package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
  81. package/es/components/icon/icon.vue2.js +3 -3
  82. package/es/components/icon-text/icon-text.vue2.js +1 -1
  83. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  84. package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
  85. package/es/components/image/image.vue2.js +2 -2
  86. package/es/components/image-viewer/image-viewer.vue2.js +7 -7
  87. package/es/components/index.d.ts +1 -0
  88. package/es/components/index.js +206 -203
  89. package/es/components/input/input.vue2.js +6 -6
  90. package/es/components/input-number/input-number.vue2.js +4 -4
  91. package/es/components/input-tag/input-tag.vue2.js +7 -7
  92. package/es/components/link/link.vue2.js +1 -1
  93. package/es/components/list-cell/list-cell.vue2.js +1 -1
  94. package/es/components/logo/logo.vue2.js +10 -10
  95. package/es/components/md-comment/md-comment.vue2.js +2 -2
  96. package/es/components/md-container/md-container.vue2.js +2 -2
  97. package/es/components/md-container/toc.js +1 -1
  98. package/es/components/menu/menu-collapse-transition.vue.js +2 -2
  99. package/es/components/menu/menu-item-group.vue2.js +7 -7
  100. package/es/components/menu/menu-item.vue2.js +1 -1
  101. package/es/components/message/message.vue2.js +3 -3
  102. package/es/components/message-box/index.d.ts +4 -0
  103. package/es/components/message-box/index.js +14 -0
  104. package/es/components/message-box/message-box.vue.d.ts +103 -0
  105. package/es/components/message-box/message-box.vue.js +4 -0
  106. package/es/components/message-box/message-box.vue2.js +358 -0
  107. package/es/components/message-box/method.d.ts +3 -0
  108. package/es/components/message-box/method.js +101 -0
  109. package/es/components/message-box/style/css.d.ts +2 -0
  110. package/es/components/message-box/style/css.js +3 -0
  111. package/es/components/message-box/style/index.d.ts +2 -0
  112. package/es/components/message-box/style/index.js +3 -0
  113. package/es/components/message-box/types.d.ts +202 -0
  114. package/es/components/message-box/types.js +1 -0
  115. package/es/components/modal/index.d.ts +1 -0
  116. package/es/components/modal/modal-footer-action.vue2.js +11 -11
  117. package/es/components/modal/modal.vue.d.ts +1 -0
  118. package/es/components/modal/modal.vue2.js +30 -28
  119. package/es/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  120. package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
  121. package/es/components/multiple-tabs/use/use-tab-dropdown.js +1 -1
  122. package/es/components/notification/notification.vue2.js +1 -1
  123. package/es/components/overlay/overlay.vue2.js +1 -1
  124. package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
  125. package/es/components/pagination/components/jumper.vue2.js +28 -29
  126. package/es/components/pagination/components/next.vue2.js +4 -4
  127. package/es/components/pagination/components/pager.vue2.js +1 -1
  128. package/es/components/pagination/components/prev.vue2.js +4 -4
  129. package/es/components/pagination/components/sizes.vue2.js +20 -21
  130. package/es/components/pagination/components/total.vue2.js +10 -11
  131. package/es/components/popconfirm/popconfirm.vue2.js +4 -4
  132. package/es/components/popover/popover.vue2.js +1 -1
  133. package/es/components/popper/arrow.vue2.js +2 -2
  134. package/es/components/popper/content.vue2.js +2 -2
  135. package/es/components/popper/trigger.vue2.js +4 -4
  136. package/es/components/progress/progress.vue2.js +1 -1
  137. package/es/components/progress-i/progress-i.vue2.js +2 -2
  138. package/es/components/qrcode/qrcode.vue2.js +1 -1
  139. package/es/components/radio/radio-button.vue2.js +2 -2
  140. package/es/components/radio/radio-group.vue2.js +3 -3
  141. package/es/components/radio/radio.vue2.js +2 -2
  142. package/es/components/rate/rate.vue2.js +6 -6
  143. package/es/components/router-view-content/router-view-content.vue2.js +7 -7
  144. package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
  145. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
  146. package/es/components/row/row.vue2.js +2 -2
  147. package/es/components/scrollbar/bar.vue2.js +2 -2
  148. package/es/components/scrollbar/scrollbar.vue2.js +7 -7
  149. package/es/components/scrollbar/thumb.vue2.js +2 -2
  150. package/es/components/search/search.vue2.js +8 -8
  151. package/es/components/segmented/segmented.vue2.js +7 -7
  152. package/es/components/select/group-item.vue.js +2 -2
  153. package/es/components/select/option-item.vue.js +2 -2
  154. package/es/components/select/select.vue.js +1 -1
  155. package/es/components/select/useSelect.js +1 -1
  156. package/es/components/skeleton/skeleton-item.vue2.js +2 -2
  157. package/es/components/skeleton/skeleton.vue2.js +8 -8
  158. package/es/components/slider/button.vue2.js +2 -2
  159. package/es/components/slider/slider.vue2.js +1 -1
  160. package/es/components/space/space.js +1 -1
  161. package/es/components/statistic/statistic.vue2.js +17 -17
  162. package/es/components/steps/item.vue2.js +11 -11
  163. package/es/components/steps/steps.vue2.js +2 -2
  164. package/es/components/super-form/super-form-action.vue2.js +47 -48
  165. package/es/components/super-form/super-form-item.vue2.js +204 -206
  166. package/es/components/super-form/super-form.vue2.js +7 -7
  167. package/es/components/super-form/use/helper.d.ts +1 -1
  168. package/es/components/super-form/use/helper.js +63 -63
  169. package/es/components/super-form/use/use-form.js +8 -8
  170. package/es/components/switch/switch.vue2.js +1 -1
  171. package/es/components/table/field.js +111 -130
  172. package/es/components/table/table.vue2.js +128 -133
  173. package/es/components/table/use/use-columns.js +26 -29
  174. package/es/components/table/use/use-data-source.js +59 -60
  175. package/es/components/tabs/tab-bar.vue2.js +2 -2
  176. package/es/components/tabs/tab-pane.vue2.js +6 -6
  177. package/es/components/teleport/teleport.vue2.js +2 -2
  178. package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
  179. package/es/components/time-picker/common/picker.vue2.js +8 -8
  180. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
  181. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +4 -4
  182. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +4 -4
  183. package/es/components/time-select/time-select.vue2.js +3 -3
  184. package/es/components/timeline/timeline-item.vue2.js +1 -1
  185. package/es/components/tooltip/content.vue2.js +6 -6
  186. package/es/components/tooltip/tooltip.vue2.js +1 -1
  187. package/es/components/tooltip/trigger.vue2.js +2 -2
  188. package/es/components/transfer/transfer-panel.vue2.js +8 -8
  189. package/es/components/transfer/transfer.vue2.js +5 -5
  190. package/es/components/tree/tree-node.vue.js +1 -1
  191. package/es/components/tree/tree.vue2.js +7 -7
  192. package/es/components/upload/upload-content.vue2.js +8 -8
  193. package/es/components/upload/upload-dragger.vue2.js +2 -2
  194. package/es/components/upload/upload-list.vue2.js +2 -2
  195. package/es/components/upload/upload.vue2.js +20 -20
  196. package/es/components/verify-code/verify-code.vue2.js +2 -2
  197. package/es/components/watermark/watermark.vue2.js +2 -2
  198. package/es/hooks/use-id/index.js +2 -2
  199. package/es/index.js +40 -39
  200. package/es/locale/index.js +6 -6
  201. package/es/package.json.d.ts +1 -1
  202. package/es/package.json.js +1 -1
  203. package/es/plugin.js +5 -3
  204. package/es/utils/helper.js +2 -2
  205. package/es/utils/ns-cover.js +1 -1
  206. package/es/utils/vue/vnode.js +3 -3
  207. package/lib/components/button/use-button.cjs +1 -1
  208. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  209. package/lib/components/cascader-panel/menu.vue2.cjs +2 -2
  210. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  211. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  212. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  213. package/lib/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  214. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  215. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  216. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  217. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  218. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  219. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  220. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  221. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  222. package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
  223. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  224. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  225. package/lib/components/dropdown/index.d.ts +33 -33
  226. package/lib/components/empty/empty.vue2.cjs +1 -1
  227. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  228. package/lib/components/image/image.vue2.cjs +1 -1
  229. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  230. package/lib/components/index.cjs +1 -1
  231. package/lib/components/index.d.ts +1 -0
  232. package/lib/components/input/input.vue2.cjs +1 -1
  233. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  234. package/lib/components/md-container/toc.cjs +1 -1
  235. package/lib/components/message-box/index.cjs +1 -0
  236. package/lib/components/message-box/index.d.ts +4 -0
  237. package/lib/components/message-box/message-box.vue.cjs +1 -0
  238. package/lib/components/message-box/message-box.vue.d.ts +103 -0
  239. package/lib/components/message-box/message-box.vue2.cjs +1 -0
  240. package/lib/components/message-box/method.cjs +1 -0
  241. package/lib/components/message-box/method.d.ts +3 -0
  242. package/lib/components/message-box/style/css.cjs +1 -0
  243. package/lib/components/message-box/style/css.d.ts +2 -0
  244. package/lib/components/message-box/style/index.cjs +1 -0
  245. package/lib/components/message-box/style/index.d.ts +2 -0
  246. package/lib/components/message-box/types.cjs +1 -0
  247. package/lib/components/message-box/types.d.ts +202 -0
  248. package/lib/components/modal/index.d.ts +1 -0
  249. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  250. package/lib/components/modal/modal.vue.d.ts +1 -0
  251. package/lib/components/modal/modal.vue2.cjs +1 -1
  252. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  253. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  254. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  255. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  256. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  257. package/lib/components/search/search.vue2.cjs +1 -1
  258. package/lib/components/select/useSelect.cjs +1 -1
  259. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  260. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  261. package/lib/components/super-form/use/helper.cjs +1 -1
  262. package/lib/components/super-form/use/helper.d.ts +1 -1
  263. package/lib/components/super-form/use/use-form.cjs +1 -1
  264. package/lib/components/table/field.cjs +1 -1
  265. package/lib/components/table/table.vue2.cjs +1 -1
  266. package/lib/components/table/use/use-columns.cjs +1 -1
  267. package/lib/components/table/use/use-data-source.cjs +1 -1
  268. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  269. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  270. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  271. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  272. package/lib/components/tree/tree.vue2.cjs +1 -1
  273. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  274. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  275. package/lib/components/upload/upload.vue2.cjs +1 -1
  276. package/lib/index.cjs +1 -1
  277. package/lib/locale/index.cjs +1 -1
  278. package/lib/package.json.cjs +1 -1
  279. package/lib/package.json.d.ts +1 -1
  280. package/lib/plugin.cjs +1 -1
  281. package/package.json +2 -2
  282. package/theme-style/index.css +1 -1
  283. package/theme-style/src/table.scss +4 -0
  284. package/theme-style/vft-table.css +1 -1
  285. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, createElementBlock as m, openBlock as i, normalizeClass as f, unref as u, renderSlot as _ } from "vue";
1
+ import { defineComponent as o, openBlock as m, createElementBlock as i, normalizeClass as f, unref as u, renderSlot as _ } from "vue";
2
2
  import { collapseEmits as d, collapseProps as C } from "./collapse.js";
3
3
  import { useCollapse as v, useCollapseDOM as k } from "./use-collapse.js";
4
4
  const x = o({
@@ -14,7 +14,7 @@ const x = o({
14
14
  activeNames: a,
15
15
  /** @description set active names */
16
16
  setActiveNames: n
17
- }), (c, B) => (i(), m("div", {
17
+ }), (c, B) => (m(), i("div", {
18
18
  class: f(u(p))
19
19
  }, [
20
20
  _(c.$slots, "default")
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, createBlock as e, openBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
1
+ import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -33,7 +33,7 @@ const f = o({
33
33
  t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
34
34
  }
35
35
  };
36
- return (t, c) => (s(), e(i, n({
36
+ return (t, c) => (e(), s(i, n({
37
37
  name: r(a).b()
38
38
  }, p(d)), {
39
39
  default: m(() => [
@@ -1,4 +1,4 @@
1
- import { defineComponent as j, ref as c, reactive as ce, computed as h, onMounted as ue, watch as C, nextTick as V, provide as me, createBlock as y, openBlock as d, unref as e, withCtx as E, createElementVNode as u, withKeys as H, normalizeClass as r, createElementBlock as M, createCommentVNode as x, normalizeStyle as de, withDirectives as O, createVNode as p, vShow as pe, createTextVNode as R, toDisplayString as U } from "vue";
1
+ import { defineComponent as j, ref as c, reactive as ce, computed as h, onMounted as ue, watch as C, nextTick as V, provide as me, openBlock as d, createBlock as y, unref as e, withCtx as E, createElementVNode as u, withKeys as H, normalizeClass as r, createElementBlock as M, createCommentVNode as x, normalizeStyle as de, withDirectives as O, createVNode as p, vShow as pe, createTextVNode as R, toDisplayString as U } from "vue";
2
2
  import { ClickOutside as fe } from "@vft/directives";
3
3
  import { VftButton as _ } from "../button/index.js";
4
4
  import "../form/index.js";
@@ -21,7 +21,7 @@ import Ve from "./components/predefine.vue.js";
21
21
  import ye from "./components/sv-panel.vue.js";
22
22
  import { colorPickerContextKey as Ee } from "./contants.js";
23
23
  import z from "./utils/color.js";
24
- import { useLocale as xe } from "../../locale/use-locale.js";
24
+ import xe from "../../locale/use-locale.js";
25
25
  import { useFormItem as Ae, useFormItemInputId as Ie } from "../form/hooks/use-form-item.js";
26
26
  import { useFormSize as Se, useFormDisabled as $e } from "../form/hooks/use-form-common-props.js";
27
27
  const Pe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"], ze = j({
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, createElementBlock as C, openBlock as S, normalizeClass as r, unref as e, createElementVNode as n, normalizeStyle as c } from "vue";
1
+ import { defineComponent as p, openBlock as C, createElementBlock as S, normalizeClass as r, unref as e, createElementVNode as n, normalizeStyle as c } from "vue";
2
2
  import { useAlphaSlider as v, useAlphaSliderDOM as A } from "../composables/use-alpha-slider.js";
3
3
  const E = "VftColorAlphaSlider", N = p({
4
4
  name: E
@@ -30,7 +30,7 @@ const E = "VftColorAlphaSlider", N = p({
30
30
  * @type {HTMLElement}
31
31
  */
32
32
  thumb: t
33
- }), (x, a) => (S(), C("div", {
33
+ }), (x, a) => (C(), S("div", {
34
34
  class: r(e(d))
35
35
  }, [
36
36
  n("div", {
@@ -1,8 +1,8 @@
1
1
  import s from "./hue-slider.vue2.js";
2
- import { createElementBlock as t, openBlock as a, normalizeClass as l, createElementVNode as n, normalizeStyle as i } from "vue";
2
+ import { openBlock as t, createElementBlock as a, normalizeClass as l, createElementVNode as n, normalizeStyle as i } from "vue";
3
3
  import m from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  function p(e, r, f, d, u, b) {
5
- return a(), t("div", {
5
+ return t(), a("div", {
6
6
  class: l([e.ns.b(), e.ns.is("vertical", e.vertical)])
7
7
  }, [
8
8
  n("div", {
@@ -1,15 +1,15 @@
1
1
  import t from "./predefine.vue2.js";
2
- import { createElementBlock as r, openBlock as l, normalizeClass as s, createElementVNode as a, Fragment as c, renderList as d, normalizeStyle as i } from "vue";
2
+ import { openBlock as r, createElementBlock as l, normalizeClass as s, createElementVNode as a, Fragment as c, renderList as d, normalizeStyle as i } from "vue";
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = ["onClick"];
5
5
  function u(e, f, k, v, h, C) {
6
- return l(), r("div", {
6
+ return r(), l("div", {
7
7
  class: s(e.ns.b())
8
8
  }, [
9
9
  a("div", {
10
10
  class: s(e.ns.e("colors"))
11
11
  }, [
12
- (l(!0), r(c, null, d(e.rgbaColors, (o, n) => (l(), r("div", {
12
+ (r(!0), l(c, null, d(e.rgbaColors, (o, n) => (r(), l("div", {
13
13
  key: e.colors[n],
14
14
  class: s([
15
15
  e.ns.e("color-selector"),
@@ -1,8 +1,8 @@
1
1
  import n from "./sv-panel.vue2.js";
2
- import { createElementBlock as a, openBlock as t, normalizeStyle as s, normalizeClass as o, createElementVNode as r } from "vue";
2
+ import { openBlock as a, createElementBlock as t, normalizeStyle as s, normalizeClass as o, createElementVNode as r } from "vue";
3
3
  import i from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  function p(e, l, u, d, c, m) {
5
- return t(), a("div", {
5
+ return a(), t("div", {
6
6
  class: o(e.ns.b()),
7
7
  style: s({
8
8
  backgroundColor: e.background
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, watch as m, computed as d, onActivated as u, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p, createElementBlock as v, openBlock as b, normalizeStyle as k, normalizeClass as C, unref as V, renderSlot as y } from "vue";
1
+ import { defineComponent as s, watch as m, computed as d, onActivated as u, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p, openBlock as v, createElementBlock as b, normalizeStyle as k, normalizeClass as C, unref as V, renderSlot as y } from "vue";
2
2
  import { inBrowser as S, kebabCase as B } from "@vft/utils";
3
3
  import "@vueuse/core";
4
4
  import { provideGlobalConfig as E } from "./hooks/use-global-config.js";
@@ -69,7 +69,7 @@ const z = s({
69
69
  }), a;
70
70
  }
71
71
  const l = p();
72
- return E(l.props), (e, a) => (b(), v("div", {
72
+ return E(l.props), (e, a) => (v(), b("div", {
73
73
  class: C([V(i).b(), { "vft-dark": t.theme === "dark" }]),
74
74
  style: k(c.value)
75
75
  }, [
@@ -1,7 +1,7 @@
1
1
  import { keysOf as c } from "@vft/utils";
2
2
  import "@vueuse/core";
3
3
  import { debugWarn as v } from "../../../utils/error.js";
4
- import { ref as g, getCurrentInstance as f, computed as t, unref as p, provide as C, inject as x } from "vue";
4
+ import { ref as g, getCurrentInstance as f, computed as t, unref as p, inject as C, provide as x } from "vue";
5
5
  import "lodash-es";
6
6
  import "../../form/index.js";
7
7
  import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
@@ -11,7 +11,7 @@ import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from
11
11
  import { configProviderContextKey as m, localeContextKey as S } from "../constants.js";
12
12
  const s = g();
13
13
  function d(o, e = void 0) {
14
- const n = f() ? x(m, s) : s;
14
+ const n = f() ? C(m, s) : s;
15
15
  return o ? t(() => n?.value?.[o] ?? e) : n;
16
16
  }
17
17
  function D(o) {
@@ -27,7 +27,7 @@ function D(o) {
27
27
  };
28
28
  }
29
29
  const j = (o, e, n = !1) => {
30
- const r = !!f(), i = r ? d() : void 0, l = e?.provide ?? (r ? C : void 0);
30
+ const r = !!f(), i = r ? d() : void 0, l = e?.provide ?? (r ? x : void 0);
31
31
  if (!l) {
32
32
  v(
33
33
  "provideGlobalConfig",
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, computed as i, createElementBlock as m, openBlock as a, normalizeStyle as n, normalizeClass as l, unref as p, renderSlot as c } from "vue";
1
+ import { defineComponent as o, computed as i, openBlock as m, createElementBlock as a, normalizeStyle as n, normalizeClass as l, unref as p, renderSlot as c } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import { addUnit as d } from "../../utils/helper.js";
@@ -19,7 +19,7 @@ const u = o({
19
19
  const e = f("aside"), r = i(
20
20
  () => t.width ? e.cssVarBlock({ width: d(t.width) }) : {}
21
21
  );
22
- return (s, h) => (a(), m("aside", {
22
+ return (s, h) => (m(), a("aside", {
23
23
  class: l(p(e).b()),
24
24
  style: n(r.value)
25
25
  }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as a, useSlots as l, computed as m, createElementBlock as f, openBlock as u, normalizeClass as p, unref as i, renderSlot as d } from "vue";
1
+ import { defineComponent as a, useSlots as l, computed as m, openBlock as f, createElementBlock as u, normalizeClass as p, unref as i, renderSlot as d } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -20,7 +20,7 @@ const _ = a({
20
20
  const s = n.type.name;
21
21
  return s === "vft-header" || s === "vft-footer";
22
22
  }) : !1);
23
- return (r, n) => (u(), f("section", {
23
+ return (r, n) => (f(), u("section", {
24
24
  class: p([i(o).b(), i(o).is("vertical", c.value)])
25
25
  }, [
26
26
  d(r.$slots, "default")
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, computed as s, createElementBlock as i, openBlock as n, normalizeStyle as a, normalizeClass as l, unref as p, renderSlot as c } from "vue";
1
+ import { defineComponent as o, computed as s, openBlock as i, createElementBlock as n, normalizeStyle as a, normalizeClass as l, unref as p, renderSlot as c } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import { addUnit as f } from "../../utils/helper.js";
@@ -19,7 +19,7 @@ const h = o({
19
19
  const e = u("footer"), r = s(
20
20
  () => t.height ? e.cssVarBlock({ height: f(t.height) }) : {}
21
21
  );
22
- return (m, d) => (n(), i("footer", {
22
+ return (m, d) => (i(), n("footer", {
23
23
  class: l(p(e).b()),
24
24
  style: a(r.value)
25
25
  }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, computed as a, createElementBlock as n, openBlock as s, normalizeStyle as i, normalizeClass as l, unref as p, renderSlot as c } from "vue";
1
+ import { defineComponent as r, computed as a, openBlock as n, createElementBlock as s, normalizeStyle as i, normalizeClass as l, unref as p, renderSlot as c } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import { addUnit as h } from "../../utils/helper.js";
@@ -19,7 +19,7 @@ const u = r({
19
19
  const t = d("header"), o = a(() => e.height ? t.cssVarBlock({
20
20
  height: h(e.height)
21
21
  }) : {});
22
- return (m, f) => (s(), n("header", {
22
+ return (m, f) => (n(), s("header", {
23
23
  class: l(p(t).b()),
24
24
  style: i(o.value)
25
25
  }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as t, createElementBlock as r, openBlock as m, normalizeClass as n, unref as p, renderSlot as s } from "vue";
1
+ import { defineComponent as t, openBlock as r, createElementBlock as m, normalizeClass as n, unref as p, renderSlot as s } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -14,7 +14,7 @@ const i = t({
14
14
  ...i,
15
15
  setup(c) {
16
16
  const e = a("main");
17
- return (o, f) => (m(), r("main", {
17
+ return (o, f) => (r(), m("main", {
18
18
  ref: "testRef",
19
19
  class: n(p(e).b())
20
20
  }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, ref as a, computed as k, createBlock as c, openBlock as r, Transition as C, withCtx as b, withDirectives as g, createElementVNode as d, normalizeClass as z, withModifiers as M, normalizeStyle as $, unref as m, createElementBlock as B, Fragment as E, renderList as S, vShow as F } from "vue";
1
+ import { defineComponent as p, ref as a, computed as k, openBlock as r, createBlock as c, Transition as C, withCtx as b, withDirectives as g, createElementVNode as d, normalizeClass as z, unref as m, withModifiers as M, normalizeStyle as $, createElementBlock as B, Fragment as E, renderList as S, vShow as F } from "vue";
2
2
  import { useTimeoutFn as H, useClickAway as I, useEventListener as f } from "@vft/use";
3
3
  import { VftMenuItem as L } from "../menu/index.js";
4
4
  import "@vueuse/core";
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, ref as _, computed as h, onMounted as x, watch as y, onBeforeUnmount as C, createBlock as E, openBlock as S, unref as A, createSlots as B, renderList as F, withCtx as k, renderSlot as D } from "vue";
1
+ import { defineComponent as p, ref as _, computed as h, onMounted as x, watch as y, onBeforeUnmount as C, openBlock as E, createBlock as S, unref as A, createSlots as B, renderList as F, withCtx as k, renderSlot as D } from "vue";
2
2
  import { VftStatistic as N } from "../statistic/index.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
@@ -44,7 +44,7 @@ const L = p({
44
44
  * @description current display value
45
45
  */
46
46
  displayValue: w
47
- }), (t, n) => (S(), E(A(N), {
47
+ }), (t, n) => (E(), S(A(N), {
48
48
  value: i.value,
49
49
  title: t.title,
50
50
  prefix: t.prefix,
@@ -179,7 +179,7 @@ export declare const useBasicDateTableDOM: (props: BasicDateTableProps, { isCurr
179
179
  tableKls: import("vue").ComputedRef<(string | {
180
180
  'is-week-mode': boolean;
181
181
  })[]>;
182
- tableLabel: import("vue").ComputedRef<any>;
182
+ tableLabel: import("vue").ComputedRef<string>;
183
183
  weekHeaderClass: string;
184
184
  getCellClasses: (cell: DateCell) => string;
185
185
  getRowKls: (cell: DateCell) => (string | {
@@ -1,184 +1,184 @@
1
- import { ref as b, computed as h, unref as r, watch as Z, nextTick as ee } from "vue";
2
- import E from "dayjs";
1
+ import { ref as k, computed as m, unref as r, watch as Z, nextTick as ee } from "vue";
2
+ import A from "dayjs";
3
3
  import { flatten as te, isArray as ae } from "lodash-es";
4
4
  import "@vueuse/core";
5
5
  import "@vft/utils";
6
- import { castArray as N } from "../../../utils/helper.js";
6
+ import { castArray as x } from "../../../utils/helper.js";
7
7
  import "../../form/index.js";
8
8
  import { useNamespace as se } from "../../../hooks/use-namespace/index.js";
9
9
  import "../../../hooks/use-model-toggle/index.js";
10
10
  import "@popperjs/core";
11
11
  import "../../../hooks/use-z-index/index.js";
12
- import { useLocale as ne } from "../../../locale/use-locale.js";
13
- import { buildPickerTable as oe } from "../utils.js";
14
- const v = (s = "") => ["normal", "today"].includes(s), ge = (s, l) => {
15
- const { t: S } = ne(), k = b("zh-cn"), g = b(), w = b(), M = b(), C = b(), c = b([[], [], [], [], [], []]);
16
- let d = !1;
17
- const D = s.date.$locale().weekStart || 7, R = s.date.locale("zh-cn").localeData().weekdaysShort().map((e) => e.toLowerCase()), x = h(() => D > 3 ? 7 - D : -D), V = h(() => {
18
- const e = s.date.startOf("month");
12
+ import E from "../../../locale/use-locale.js";
13
+ import { buildPickerTable as ne } from "../utils.js";
14
+ const N = (a = "") => ["normal", "today"].includes(a), be = (a, f) => {
15
+ const { t: v } = E(), D = k("zh-cn"), y = k(), b = k(), g = k(), w = k(), C = k([[], [], [], [], [], []]);
16
+ let o = !1;
17
+ const c = a.date.$locale().weekStart || 7, S = a.date.locale("zh-cn").localeData().weekdaysShort().map((e) => e.toLowerCase()), O = m(() => c > 3 ? 7 - c : -c), R = m(() => {
18
+ const e = a.date.startOf("month");
19
19
  return e.subtract(e.day() || 7, "day");
20
- }), L = h(() => R.concat(R).slice(
21
- D,
22
- D + 7
23
- )), T = h(() => te(r(O)).some((e) => e.isCurrent)), K = h(() => {
24
- const e = s.date.startOf("month"), a = e.day() || 7, n = e.daysInMonth(), o = e.subtract(1, "month").daysInMonth();
20
+ }), L = m(() => S.concat(S).slice(
21
+ c,
22
+ c + 7
23
+ )), V = m(() => te(r(M)).some((e) => e.isCurrent)), K = m(() => {
24
+ const e = a.date.startOf("month"), t = e.day() || 7, s = e.daysInMonth(), n = e.subtract(1, "month").daysInMonth();
25
25
  return {
26
- startOfMonthDay: a,
27
- dateCountOfMonth: n,
28
- dateCountOfLastMonth: o
26
+ startOfMonthDay: t,
27
+ dateCountOfMonth: s,
28
+ dateCountOfLastMonth: n
29
29
  };
30
- }), F = h(() => s.selectionMode === "dates" ? N(s.parsedValue) : []), _ = (e, { count: a, rowIndex: n, columnIndex: o }) => {
31
- const { startOfMonthDay: m, dateCountOfMonth: u, dateCountOfLastMonth: f } = r(K), y = r(x);
32
- if (n >= 0 && n <= 1) {
33
- const i = m + y < 0 ? 7 + m + y : m + y;
34
- if (o + n * 7 >= i)
35
- return e.text = a, !0;
36
- e.text = f - (i - o % 7) + 1 + n * 7, e.type = "prev-month";
30
+ }), F = m(() => a.selectionMode === "dates" ? x(a.parsedValue) : []), _ = (e, { count: t, rowIndex: s, columnIndex: n }) => {
31
+ const { startOfMonthDay: l, dateCountOfMonth: i, dateCountOfLastMonth: u } = r(K), h = r(O);
32
+ if (s >= 0 && s <= 1) {
33
+ const d = l + h < 0 ? 7 + l + h : l + h;
34
+ if (n + s * 7 >= d)
35
+ return e.text = t, !0;
36
+ e.text = u - (d - n % 7) + 1 + s * 7, e.type = "prev-month";
37
37
  } else
38
- return a <= u ? e.text = a : (e.text = a - u, e.type = "next-month"), !0;
38
+ return t <= i ? e.text = t : (e.text = t - i, e.type = "next-month"), !0;
39
39
  return !1;
40
- }, $ = (e, { columnIndex: a, rowIndex: n }, o) => {
41
- const { disabledDate: m, cellClassName: u } = s, f = r(F), y = _(e, { count: o, rowIndex: n, columnIndex: a }), i = e.dayjs.toDate();
42
- return e.selected = f.find((Y) => Y.isSame(e.dayjs, "day")), e.isSelected = !!e.selected, e.isCurrent = P(e), e.disabled = m?.(i), e.customClass = u?.(i), y;
40
+ }, $ = (e, { columnIndex: t, rowIndex: s }, n) => {
41
+ const { disabledDate: l, cellClassName: i } = a, u = r(F), h = _(e, { count: n, rowIndex: s, columnIndex: t }), d = e.dayjs.toDate();
42
+ return e.selected = u.find((Y) => Y.isSame(e.dayjs, "day")), e.isSelected = !!e.selected, e.isCurrent = W(e), e.disabled = l?.(d), e.customClass = i?.(d), h;
43
43
  }, z = (e) => {
44
- if (s.selectionMode === "week") {
45
- const [a, n] = s.showWeekNumber ? [1, 7] : [0, 6], o = A(e[a + 1]);
46
- e[a].inRange = o, e[a].start = o, e[n].inRange = o, e[n].end = o;
44
+ if (a.selectionMode === "week") {
45
+ const [t, s] = a.showWeekNumber ? [1, 7] : [0, 6], n = j(e[t + 1]);
46
+ e[t].inRange = n, e[t].start = n, e[s].inRange = n, e[s].end = n;
47
47
  }
48
- }, O = h(() => {
49
- const { minDate: e, maxDate: a, rangeState: n, showWeekNumber: o } = s, m = r(x), u = r(c), f = "day";
50
- let y = 1;
51
- if (oe({ row: 6, column: 7 }, u, {
48
+ }, M = m(() => {
49
+ const { minDate: e, maxDate: t, rangeState: s, showWeekNumber: n } = a, l = r(O), i = r(C), u = "day";
50
+ let h = 1;
51
+ if (ne({ row: 6, column: 7 }, i, {
52
52
  startDate: e,
53
- columnIndexOffset: o ? 1 : 0,
54
- nextEndDate: n.endDate || a || n.selecting && e || null,
55
- now: E().locale(r(k)).startOf(f),
56
- unit: f,
57
- relativeDateGetter: (i) => r(V).add(i - m, f),
58
- setCellMetadata: (...i) => {
59
- $(...i, y) && (y += 1);
53
+ columnIndexOffset: n ? 1 : 0,
54
+ nextEndDate: s.endDate || t || s.selecting && e || null,
55
+ now: A().locale(r(D)).startOf(u),
56
+ unit: u,
57
+ relativeDateGetter: (d) => r(R).add(d - l, u),
58
+ setCellMetadata: (...d) => {
59
+ $(...d, h) && (h += 1);
60
60
  },
61
61
  setRowMetadata: z
62
- }), o)
63
- for (let i = 0; i < 6; i++)
64
- u[i][1].dayjs && (u[i][0] = {
62
+ }), n)
63
+ for (let d = 0; d < 6; d++)
64
+ i[d][1].dayjs && (i[d][0] = {
65
65
  type: "week",
66
- text: u[i][1].dayjs.week()
66
+ text: i[d][1].dayjs.week()
67
67
  });
68
- return u;
68
+ return i;
69
69
  });
70
70
  Z(
71
- () => s.date,
71
+ () => a.date,
72
72
  async () => {
73
- r(g)?.contains(document.activeElement) && (await ee(), await W());
73
+ r(y)?.contains(document.activeElement) && (await ee(), await T());
74
74
  }
75
75
  );
76
- const W = async () => r(w)?.focus(), P = (e) => s.selectionMode === "date" && v(e.type) && B(e, s.parsedValue), B = (e, a) => a ? E(a).locale(r(k)).isSame(s.date.date(Number(e.text)), "day") : !1, I = (e, a) => {
77
- const n = e * 7 + (a - (s.showWeekNumber ? 1 : 0)) - r(x);
78
- return r(V).add(n, "day");
76
+ const T = async () => r(b)?.focus(), W = (e) => a.selectionMode === "date" && N(e.type) && B(e, a.parsedValue), B = (e, t) => t ? A(t).locale(r(D)).isSame(a.date.date(Number(e.text)), "day") : !1, P = (e, t) => {
77
+ const s = e * 7 + (t - (a.showWeekNumber ? 1 : 0)) - r(O);
78
+ return r(R).add(s, "day");
79
79
  }, U = (e) => {
80
- if (!s.rangeState.selecting) return;
81
- let a = e.target;
82
- if (a.tagName === "SPAN" && (a = a.parentNode?.parentNode), a.tagName === "DIV" && (a = a.parentNode), a.tagName !== "TD") return;
83
- const n = a.parentNode.rowIndex - 1, o = a.cellIndex;
84
- r(O)[n][o].disabled || (n !== r(M) || o !== r(C)) && (M.value = n, C.value = o, l("changerange", {
80
+ if (!a.rangeState.selecting) return;
81
+ let t = e.target;
82
+ if (t.tagName === "SPAN" && (t = t.parentNode?.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD") return;
83
+ const s = t.parentNode.rowIndex - 1, n = t.cellIndex;
84
+ r(M)[s][n].disabled || (s !== r(g) || n !== r(w)) && (g.value = s, w.value = n, f("changerange", {
85
85
  selecting: !0,
86
- endDate: I(n, o)
86
+ endDate: P(s, n)
87
87
  }));
88
- }, G = (e) => !r(T) && e?.text === 1 && e.type === "normal" || e.isCurrent, H = (e) => {
89
- d || r(T) || s.selectionMode !== "date" || j(e, !0);
88
+ }, G = (e) => !r(V) && e?.text === 1 && e.type === "normal" || e.isCurrent, H = (e) => {
89
+ o || r(V) || a.selectionMode !== "date" || I(e, !0);
90
90
  }, p = (e) => {
91
- e.target.closest("td") && (d = !0);
91
+ e.target.closest("td") && (o = !0);
92
92
  }, q = (e) => {
93
- e.target.closest("td") && (d = !1);
93
+ e.target.closest("td") && (o = !1);
94
94
  }, J = (e) => {
95
- !s.rangeState.selecting || !s.minDate ? (l("pick", { minDate: e, maxDate: null }), l("select", !0)) : (e >= s.minDate ? l("pick", { minDate: s.minDate, maxDate: e }) : l("pick", { minDate: e, maxDate: s.minDate }), l("select", !1));
95
+ !a.rangeState.selecting || !a.minDate ? (f("pick", { minDate: e, maxDate: null }), f("select", !0)) : (e >= a.minDate ? f("pick", { minDate: a.minDate, maxDate: e }) : f("pick", { minDate: e, maxDate: a.minDate }), f("select", !1));
96
96
  }, Q = (e) => {
97
- const a = e.week(), n = `${e.year()}w${a}`;
98
- l("pick", {
97
+ const t = e.week(), s = `${e.year()}w${t}`;
98
+ f("pick", {
99
99
  year: e.year(),
100
- week: a,
101
- value: n,
100
+ week: t,
101
+ value: s,
102
102
  date: e.startOf("week")
103
103
  });
104
- }, X = (e, a) => {
105
- const n = a ? N(s.parsedValue).filter(
106
- (o) => o?.valueOf() !== e.valueOf()
107
- ) : N(s.parsedValue).concat([e]);
108
- l("pick", n);
109
- }, j = (e, a = !1) => {
110
- const n = e.target.closest("td");
111
- if (!n) return;
112
- const o = n.parentNode.rowIndex - 1, m = n.cellIndex, u = r(O)[o][m];
113
- if (u.disabled || u.type === "week") return;
114
- const f = I(o, m);
115
- switch (s.selectionMode) {
104
+ }, X = (e, t) => {
105
+ const s = t ? x(a.parsedValue).filter(
106
+ (n) => n?.valueOf() !== e.valueOf()
107
+ ) : x(a.parsedValue).concat([e]);
108
+ f("pick", s);
109
+ }, I = (e, t = !1) => {
110
+ const s = e.target.closest("td");
111
+ if (!s) return;
112
+ const n = s.parentNode.rowIndex - 1, l = s.cellIndex, i = r(M)[n][l];
113
+ if (i.disabled || i.type === "week") return;
114
+ const u = P(n, l);
115
+ switch (a.selectionMode) {
116
116
  case "range": {
117
- J(f);
117
+ J(u);
118
118
  break;
119
119
  }
120
120
  case "date": {
121
- l("pick", f, a);
121
+ f("pick", u, t);
122
122
  break;
123
123
  }
124
124
  case "week": {
125
- Q(f);
125
+ Q(u);
126
126
  break;
127
127
  }
128
128
  case "dates": {
129
- X(f, !!u.selected);
129
+ X(u, !!i.selected);
130
130
  break;
131
131
  }
132
132
  }
133
- }, A = (e) => {
134
- if (s.selectionMode !== "week") return !1;
135
- let a = s.date.startOf("day");
136
- if (e.type === "prev-month" && (a = a.subtract(1, "month")), e.type === "next-month" && (a = a.add(1, "month")), a = a.date(Number.parseInt(e.text, 10)), s.parsedValue && !ae(s.parsedValue)) {
137
- const n = (s.parsedValue.day() - D + 7) % 7 - 1;
138
- return s.parsedValue.subtract(n, "day").isSame(a, "day");
133
+ }, j = (e) => {
134
+ if (a.selectionMode !== "week") return !1;
135
+ let t = a.date.startOf("day");
136
+ 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 && !ae(a.parsedValue)) {
137
+ const s = (a.parsedValue.day() - c + 7) % 7 - 1;
138
+ return a.parsedValue.subtract(s, "day").isSame(t, "day");
139
139
  }
140
140
  return !1;
141
141
  };
142
142
  return {
143
143
  WEEKS: L,
144
- rows: O,
145
- tbodyRef: g,
146
- currentCellRef: w,
144
+ rows: M,
145
+ tbodyRef: y,
146
+ currentCellRef: b,
147
147
  // cellMatchesDate,
148
148
  // getDateOfCell,
149
- focus: W,
150
- isCurrent: P,
151
- isWeekActive: A,
149
+ focus: T,
150
+ isCurrent: W,
151
+ isWeekActive: j,
152
152
  isSelectedCell: G,
153
- handlePickDate: j,
153
+ handlePickDate: I,
154
154
  handleMouseUp: q,
155
155
  handleMouseDown: p,
156
156
  handleMouseMove: U,
157
157
  handleFocus: H
158
158
  };
159
- }, we = (s, {
160
- isCurrent: l,
161
- isWeekActive: S
159
+ }, ge = (a, {
160
+ isCurrent: f,
161
+ isWeekActive: v
162
162
  }) => {
163
- const k = se("date-table"), g = h(() => [
164
- k.b(),
165
- { "is-week-mode": s.selectionMode === "week" }
166
- ]), w = h(() => t("vft.datePicker.dateTableLabel")), M = (c) => {
167
- const d = [];
168
- return v(c.type) && !c.disabled ? (d.push("available"), c.type === "today" && d.push("today")) : d.push(c.type), l(c) && d.push("current"), c.inRange && (v(c.type) || s.selectionMode === "week") && (d.push("in-range"), c.start && d.push("start-date"), c.end && d.push("end-date")), c.disabled && d.push("disabled"), c.selected && d.push("selected"), c.customClass && d.push(c.customClass), d.join(" ");
169
- }, C = (c) => [
170
- k.e("row"),
171
- { current: S(c) }
163
+ const { t: D } = E(), y = se("date-table"), b = m(() => [
164
+ y.b(),
165
+ { "is-week-mode": a.selectionMode === "week" }
166
+ ]), g = m(() => D("vft.datePicker.dateTableLabel")), w = (o) => {
167
+ const c = [];
168
+ return N(o.type) && !o.disabled ? (c.push("available"), o.type === "today" && c.push("today")) : c.push(o.type), f(o) && c.push("current"), o.inRange && (N(o.type) || a.selectionMode === "week") && (c.push("in-range"), o.start && c.push("start-date"), o.end && c.push("end-date")), o.disabled && c.push("disabled"), o.selected && c.push("selected"), o.customClass && c.push(o.customClass), c.join(" ");
169
+ }, C = (o) => [
170
+ y.e("row"),
171
+ { current: v(o) }
172
172
  ];
173
173
  return {
174
- tableKls: g,
175
- tableLabel: w,
176
- weekHeaderClass: k.e("week-header"),
177
- getCellClasses: M,
174
+ tableKls: b,
175
+ tableLabel: g,
176
+ weekHeaderClass: y.e("week-header"),
177
+ getCellClasses: w,
178
178
  getRowKls: C
179
179
  };
180
180
  };
181
181
  export {
182
- ge as useBasicDateTable,
183
- we as useBasicDateTableDOM
182
+ be as useBasicDateTable,
183
+ ge as useBasicDateTableDOM
184
184
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as a } from "vue";
2
- import { useLocale as Y } from "../../../locale/use-locale.js";
2
+ import Y from "../../../locale/use-locale.js";
3
3
  const p = ({
4
4
  unlinkPanels: u,
5
5
  leftDate: e,
@@ -1,6 +1,6 @@
1
1
  import { ref as i, inject as _, computed as o, nextTick as Y } from "vue";
2
2
  import "../../time-picker/index.js";
3
- import { useLocale as j } from "../../../locale/use-locale.js";
3
+ import j from "../../../locale/use-locale.js";
4
4
  import { getValidDateOfYear as x, getValidDateOfMonth as K } from "../utils.js";
5
5
  import { PICKER_BASE_INJECTION_KEY as N } from "../../time-picker/constants.js";
6
6
  const T = (R, p, c, u) => {