vft 0.0.511 → 0.0.514

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 (137) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/cascader/cascader.vue2.js +202 -203
  3. package/es/components/cascader-panel/menu.vue2.js +49 -50
  4. package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
  5. package/es/components/color-picker/color-picker.vue2.js +133 -134
  6. package/es/components/config-provider/config-provider.vue.d.ts +0 -2
  7. package/es/components/config-provider/config-provider.vue2.js +4 -5
  8. package/es/components/config-provider/constants.d.ts +0 -1
  9. package/es/components/config-provider/constants.js +2 -3
  10. package/es/components/config-provider/hooks/use-global-config.js +30 -33
  11. package/es/components/config-provider/index.d.ts +0 -9
  12. package/es/components/config-provider/index.js +5 -6
  13. package/es/components/date-picker/composables/use-basic-date-table.js +82 -83
  14. package/es/components/date-picker/composables/use-month-range-header.js +14 -15
  15. package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
  16. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +38 -39
  17. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +38 -39
  18. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +183 -184
  19. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
  20. package/es/components/date-time-select/date-time-select.vue2.js +36 -39
  21. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  22. package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
  23. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  24. package/es/components/dropdown/dropdown.vue2.js +67 -68
  25. package/es/components/dropdown/index.d.ts +33 -33
  26. package/es/components/empty/empty.vue2.js +38 -39
  27. package/es/components/full-screen/full-screen.vue2.js +17 -18
  28. package/es/components/image/image.vue2.js +59 -60
  29. package/es/components/image-viewer/image-viewer.vue2.js +44 -45
  30. package/es/components/index.js +97 -98
  31. package/es/components/md-container/md-container.vue2.js +74 -75
  32. package/es/components/md-container/toc.js +36 -37
  33. package/es/components/message-box/message-box.vue2.js +3 -3
  34. package/es/components/message-box/method.js +47 -48
  35. package/es/components/modal/modal-footer-action.vue2.js +24 -25
  36. package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -16
  37. package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
  38. package/es/components/popconfirm/popconfirm.vue2.js +39 -40
  39. package/es/components/search/search.vue2.js +50 -51
  40. package/es/components/select/useSelect.js +231 -232
  41. package/es/components/super-form/super-form-item.vue2.js +66 -66
  42. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
  43. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
  44. package/es/components/transfer/transfer-panel.vue2.js +56 -57
  45. package/es/components/transfer/transfer.vue2.js +69 -70
  46. package/es/components/tree/tree.vue2.js +59 -60
  47. package/es/components/upload/upload-content.vue2.js +49 -50
  48. package/es/components/upload/upload-list.vue2.js +45 -46
  49. package/es/components/upload/upload.vue2.js +99 -100
  50. package/es/hooks/use-z-index/index.js +3 -3
  51. package/es/index.d.ts +0 -1
  52. package/es/index.js +1 -5
  53. package/es/package.json.d.ts +1 -1
  54. package/es/package.json.js +1 -1
  55. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  56. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  57. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  58. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  59. package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
  60. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  61. package/lib/components/config-provider/constants.cjs +1 -1
  62. package/lib/components/config-provider/constants.d.ts +0 -1
  63. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  64. package/lib/components/config-provider/index.cjs +1 -1
  65. package/lib/components/config-provider/index.d.ts +0 -9
  66. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  67. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  68. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  69. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  70. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  71. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  72. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  73. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  74. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  75. package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
  76. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  77. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  78. package/lib/components/dropdown/index.d.ts +33 -33
  79. package/lib/components/empty/empty.vue2.cjs +1 -1
  80. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  81. package/lib/components/image/image.vue2.cjs +1 -1
  82. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  83. package/lib/components/index.cjs +1 -1
  84. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  85. package/lib/components/md-container/toc.cjs +1 -1
  86. package/lib/components/message-box/message-box.vue2.cjs +1 -1
  87. package/lib/components/message-box/method.cjs +1 -1
  88. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  89. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  90. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  91. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  92. package/lib/components/search/search.vue2.cjs +1 -1
  93. package/lib/components/select/useSelect.cjs +1 -1
  94. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  95. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  96. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  97. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  98. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  99. package/lib/components/tree/tree.vue2.cjs +1 -1
  100. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  101. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  102. package/lib/components/upload/upload.vue2.cjs +1 -1
  103. package/lib/index.cjs +1 -1
  104. package/lib/index.d.ts +0 -1
  105. package/lib/package.json.cjs +1 -1
  106. package/lib/package.json.d.ts +1 -1
  107. package/package.json +3 -3
  108. package/theme-style/index.css +1 -1
  109. package/theme-style/src/image-viewer.scss +12 -0
  110. package/theme-style/src/message-box.scss +2 -2
  111. package/theme-style/src/table.scss +6 -0
  112. package/theme-style/vft-image-viewer.css +1 -1
  113. package/theme-style/vft-message-box.css +1 -1
  114. package/theme-style/vft-table.css +1 -1
  115. package/web-types.json +1 -1
  116. package/es/locale/index.d.js +0 -1
  117. package/es/locale/index.d.ts +0 -26
  118. package/es/locale/index.js +0 -10
  119. package/es/locale/lang/en.d.ts +0 -183
  120. package/es/locale/lang/en.js +0 -241
  121. package/es/locale/lang/zh-cn.d.ts +0 -183
  122. package/es/locale/lang/zh-cn.js +0 -241
  123. package/es/locale/lang/zh-tw.d.ts +0 -183
  124. package/es/locale/lang/zh-tw.js +0 -241
  125. package/es/locale/use-locale.d.ts +0 -17
  126. package/es/locale/use-locale.js +0 -56
  127. package/lib/locale/index.cjs +0 -1
  128. package/lib/locale/index.d.cjs +0 -1
  129. package/lib/locale/index.d.ts +0 -26
  130. package/lib/locale/lang/en.cjs +0 -1
  131. package/lib/locale/lang/en.d.ts +0 -183
  132. package/lib/locale/lang/zh-cn.cjs +0 -1
  133. package/lib/locale/lang/zh-cn.d.ts +0 -183
  134. package/lib/locale/lang/zh-tw.cjs +0 -1
  135. package/lib/locale/lang/zh-tw.d.ts +0 -183
  136. package/lib/locale/use-locale.cjs +0 -1
  137. package/lib/locale/use-locale.d.ts +0 -17
@@ -1,31 +1,30 @@
1
- import { defineComponent as K, ref as d, computed as F, watch as Y, nextTick as $, openBlock as f, createElementBlock as u, normalizeClass as N, unref as b, createElementVNode as q, Fragment as M, renderList as _, withKeys as C, withModifiers as O, createVNode as G } from "vue";
2
- import w from "dayjs";
1
+ import { defineComponent as P, ref as d, computed as F, watch as L, nextTick as Y, openBlock as f, createElementBlock as u, normalizeClass as k, unref as N, createElementVNode as $, Fragment as M, renderList as C, withKeys as O, withModifiers as _, createVNode as q } from "vue";
2
+ import b from "dayjs";
3
3
  import "@vueuse/core";
4
4
  import { hasClass as T } from "@vft/utils";
5
5
  import { castArray as p } from "../../../utils/helper.js";
6
6
  import "lodash-es";
7
7
  import "../../form/index.js";
8
- import { useNamespace as H } from "../../../hooks/use-namespace/index.js";
8
+ import { useNamespace as G } 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 J from "../../../locale/use-locale.js";
13
- import { basicMonthTableProps as Q } from "../props/basic-month-table.js";
14
- import { datesInMonth as U, getValidDateOfMonth as W } from "../utils.js";
15
- import X from "./basic-cell-render.js";
16
- const Z = ["aria-label"], ee = ["aria-selected", "tabindex", "onKeydown"], ye = /* @__PURE__ */ K({
12
+ import { basicMonthTableProps as H } from "../props/basic-month-table.js";
13
+ import { datesInMonth as J, getValidDateOfMonth as Q } from "../utils.js";
14
+ import U from "./basic-cell-render.js";
15
+ const W = ["aria-selected", "tabindex", "onKeydown"], ue = /* @__PURE__ */ P({
17
16
  __name: "basic-month-table",
18
- props: Q,
17
+ props: H,
19
18
  emits: ["changerange", "pick", "select"],
20
19
  setup(V, { expose: I, emit: R }) {
21
- const e = V, c = R, A = H("month-table"), { t: E } = J(), h = d("zh-cn"), x = d(), D = d(), B = d(
20
+ const e = V, c = R, E = G("month-table"), h = d("zh-cn"), w = d(), D = d(), A = d(
22
21
  e.date.locale("zh-cn").localeData().monthsShort().map((r) => r.toLowerCase())
23
- ), L = d([
22
+ ), B = d([
24
23
  [],
25
24
  [],
26
25
  []
27
- ]), v = d(), S = d(), k = F(() => {
28
- const r = L.value, t = w().locale(h.value).startOf("month");
26
+ ]), x = d(), v = d(), S = F(() => {
27
+ const r = B.value, t = b().locale(h.value).startOf("month");
29
28
  for (let a = 0; a < 3; a++) {
30
29
  const s = r[a];
31
30
  for (let n = 0; n < 4; n++) {
@@ -45,26 +44,26 @@ const Z = ["aria-label"], ee = ["aria-selected", "tabindex", "onKeydown"], ye =
45
44
  }
46
45
  }
47
46
  return r;
48
- }), P = () => {
47
+ }), j = () => {
49
48
  D.value?.focus();
50
- }, j = (r) => {
49
+ }, z = (r) => {
51
50
  const t = {}, a = e.date.year(), s = /* @__PURE__ */ new Date(), n = r.text;
52
- return t.disabled = e.disabledDate ? U(e.date, a, n, h.value).every(
51
+ return t.disabled = e.disabledDate ? J(e.date, a, n, h.value).every(
53
52
  e.disabledDate
54
53
  ) : !1, t.current = p(e.parsedValue).findIndex(
55
- (o) => w.isDayjs(o) && o.year() === a && o.month() === n
54
+ (o) => b.isDayjs(o) && o.year() === a && o.month() === n
56
55
  ) >= 0, t.today = s.getFullYear() === a && s.getMonth() === n, r.inRange && (t["in-range"] = !0, r.start && (t["start-date"] = !0), r.end && (t["end-date"] = !0)), t;
57
56
  }, y = (r) => {
58
57
  const t = e.date.year(), a = r.text;
59
58
  return p(e.date).findIndex(
60
59
  (s) => s.year() === t && s.month() === a
61
60
  ) >= 0;
62
- }, z = (r) => {
61
+ }, K = (r) => {
63
62
  if (!e.rangeState.selecting) return;
64
63
  let t = r.target;
65
64
  if (t.tagName === "SPAN" && (t = t.parentNode?.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD") return;
66
65
  const a = t.parentNode.rowIndex, s = t.cellIndex;
67
- k.value[a][s].disabled || (a !== v.value || s !== S.value) && (v.value = a, S.value = s, c("changerange", {
66
+ S.value[a][s].disabled || (a !== x.value || s !== v.value) && (x.value = a, v.value = s, c("changerange", {
68
67
  selecting: !0,
69
68
  endDate: e.date.startOf("year").month(a * 4 + s)
70
69
  }));
@@ -79,7 +78,7 @@ const Z = ["aria-label"], ee = ["aria-selected", "tabindex", "onKeydown"], ye =
79
78
  c("pick", p(e.parsedValue), !1);
80
79
  return;
81
80
  }
82
- const m = W(
81
+ const m = Q(
83
82
  e.date,
84
83
  e.date.year(),
85
84
  n,
@@ -91,56 +90,56 @@ const Z = ["aria-label"], ee = ["aria-selected", "tabindex", "onKeydown"], ye =
91
90
  // This allows remove same months from different years #20019
92
91
  l?.year() !== m.year() || l?.month() !== m.month()
93
92
  )
94
- ) : p(e.parsedValue).concat([w(m)]);
93
+ ) : p(e.parsedValue).concat([b(m)]);
95
94
  c("pick", i);
96
95
  } else e.selectionMode === "range" ? e.rangeState.selecting ? (e.minDate && o >= e.minDate ? c("pick", { minDate: e.minDate, maxDate: o }) : c("pick", { minDate: o, maxDate: e.minDate }), c("select", !1)) : (c("pick", { minDate: o, maxDate: null }), c("select", !0)) : c("pick", n);
97
96
  };
98
- return Y(
97
+ return L(
99
98
  () => e.date,
100
99
  async () => {
101
- x.value?.contains(document.activeElement) && (await $(), D.value?.focus());
100
+ w.value?.contains(document.activeElement) && (await Y(), D.value?.focus());
102
101
  }
103
102
  ), I({
104
103
  /**
105
104
  * @description focus current cell
106
105
  */
107
- focus: P
106
+ focus: j
108
107
  }), (r, t) => (f(), u("table", {
109
108
  role: "grid",
110
- "aria-label": b(E)("vft.datePicker.monthTableLabel"),
111
- class: N(b(A).b()),
109
+ "aria-label": "使用方向键与 Enter 键可选择月份",
110
+ class: k(N(E).b()),
112
111
  onClick: g,
113
- onMousemove: z
112
+ onMousemove: K
114
113
  }, [
115
- q("tbody", {
114
+ $("tbody", {
116
115
  ref_key: "tbodyRef",
117
- ref: x
116
+ ref: w
118
117
  }, [
119
- (f(!0), u(M, null, _(k.value, (a, s) => (f(), u("tr", { key: s }, [
120
- (f(!0), u(M, null, _(a, (n, o) => (f(), u("td", {
118
+ (f(!0), u(M, null, C(S.value, (a, s) => (f(), u("tr", { key: s }, [
119
+ (f(!0), u(M, null, C(a, (n, o) => (f(), u("td", {
121
120
  key: o,
122
121
  ref_for: !0,
123
122
  ref: (m) => y(n) && (D.value = m),
124
- class: N(j(n)),
123
+ class: k(z(n)),
125
124
  "aria-selected": `${y(n)}`,
126
125
  tabindex: y(n) ? 0 : -1,
127
126
  onKeydown: [
128
- C(O(g, ["prevent", "stop"]), ["space"]),
129
- C(O(g, ["prevent", "stop"]), ["enter"])
127
+ O(_(g, ["prevent", "stop"]), ["space"]),
128
+ O(_(g, ["prevent", "stop"]), ["enter"])
130
129
  ]
131
130
  }, [
132
- G(b(X), {
131
+ q(N(U), {
133
132
  cell: {
134
133
  ...n,
135
- renderText: B.value[n.text]
134
+ renderText: A.value[n.text]
136
135
  }
137
136
  }, null, 8, ["cell"])
138
- ], 42, ee))), 128))
137
+ ], 42, W))), 128))
139
138
  ]))), 128))
140
139
  ], 512)
141
- ], 42, Z));
140
+ ], 34));
142
141
  }
143
142
  });
144
143
  export {
145
- ye as default
144
+ ue as default
146
145
  };
@@ -1,30 +1,29 @@
1
- import { defineComponent as F, ref as m, computed as O, watch as q, nextTick as G, openBlock as u, createElementBlock as y, normalizeClass as C, unref as k, createElementVNode as H, Fragment as R, renderList as V, withKeys as Y, withModifiers as I, createVNode as J } from "vue";
1
+ import { defineComponent as F, ref as m, computed as O, watch as L, nextTick as q, openBlock as u, createElementBlock as y, normalizeClass as C, unref as _, createElementVNode as G, Fragment as R, renderList as V, withKeys as Y, withModifiers as I, createVNode as H } from "vue";
2
2
  import f from "dayjs";
3
3
  import "@vueuse/core";
4
4
  import { hasClass as M } from "@vft/utils";
5
5
  import { castArray as p } from "../../../utils/helper.js";
6
6
  import "lodash-es";
7
7
  import "../../form/index.js";
8
- import { useNamespace as Q } from "../../../hooks/use-namespace/index.js";
8
+ import { useNamespace as J } 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 U from "../../../locale/use-locale.js";
13
12
  import "../../time-picker/index.js";
14
- import { basicYearTableProps as W } from "../props/basic-year-table.js";
15
- import { getValidDateOfYear as X } from "../utils.js";
16
- import Z from "./basic-cell-render.js";
17
- import { rangeArr as ee } from "../../time-picker/utils.js";
18
- const te = ["aria-label"], ae = ["aria-selected", "aria-label", "tabindex", "onKeydown"], ke = /* @__PURE__ */ F({
13
+ import { basicYearTableProps as Q } from "../props/basic-year-table.js";
14
+ import { getValidDateOfYear as U } from "../utils.js";
15
+ import W from "./basic-cell-render.js";
16
+ import { rangeArr as X } from "../../time-picker/utils.js";
17
+ const Z = ["aria-selected", "aria-label", "tabindex", "onKeydown"], be = /* @__PURE__ */ F({
19
18
  __name: "basic-year-table",
20
- props: W,
19
+ props: Q,
21
20
  emits: ["changerange", "pick", "select"],
22
- setup(T, { expose: A, emit: E }) {
23
- const e = T, c = E, { t: N } = U(), B = (s, t) => {
21
+ setup(E, { expose: T, emit: A }) {
22
+ const e = E, c = A, N = (s, t) => {
24
23
  const a = f(String(s)).locale(t).startOf("year"), r = a.endOf("year").dayOfYear();
25
- return ee(r).map((n) => a.add(n, "day").toDate());
26
- }, K = Q("year-table"), D = m("zh-cn"), w = m(), b = m(), g = O(() => Math.floor(e.date.year() / 10) * 10), L = m([[], [], []]), S = m(), h = m(), _ = O(() => {
27
- const s = L.value, t = f().locale(D.value).startOf("year");
24
+ return X(r).map((n) => a.add(n, "day").toDate());
25
+ }, B = J("year-table"), D = m("zh-cn"), w = m(), b = m(), g = O(() => Math.floor(e.date.year() / 10) * 10), K = m([[], [], []]), k = m(), S = m(), h = O(() => {
26
+ const s = K.value, t = f().locale(D.value).startOf("year");
28
27
  for (let a = 0; a < 3; a++) {
29
28
  const o = s[a];
30
29
  for (let r = 0; r < 4 && !(a * 4 + r >= 10); r++) {
@@ -39,18 +38,18 @@ const te = ["aria-label"], ae = ["aria-selected", "aria-label", "tabindex", "onK
39
38
  text: -1,
40
39
  disabled: !1
41
40
  }), n.type = "normal";
42
- const d = a * 4 + r + g.value, l = f().year(d), i = e.rangeState.endDate || e.maxDate || e.rangeState.selecting && e.minDate || null;
43
- n.inRange = !!(e.minDate && l.isSameOrAfter(e.minDate, "year") && i && l.isSameOrBefore(i, "year")) || !!(e.minDate && l.isSameOrBefore(e.minDate, "year") && i && l.isSameOrAfter(i, "year")), e.minDate?.isSameOrAfter(i) ? (n.start = !!(i && l.isSame(i, "year")), n.end = !!(e.minDate && l.isSame(e.minDate, "year"))) : (n.start = !!(e.minDate && l.isSame(e.minDate, "year")), n.end = !!(i && l.isSame(i, "year"))), t.isSame(l) && (n.type = "today"), n.text = d;
44
- const $ = l.toDate();
41
+ const d = a * 4 + r + g.value, i = f().year(d), l = e.rangeState.endDate || e.maxDate || e.rangeState.selecting && e.minDate || null;
42
+ n.inRange = !!(e.minDate && i.isSameOrAfter(e.minDate, "year") && l && i.isSameOrBefore(l, "year")) || !!(e.minDate && i.isSameOrBefore(e.minDate, "year") && l && i.isSameOrAfter(l, "year")), e.minDate?.isSameOrAfter(l) ? (n.start = !!(l && i.isSame(l, "year")), n.end = !!(e.minDate && i.isSame(e.minDate, "year"))) : (n.start = !!(e.minDate && i.isSame(e.minDate, "year")), n.end = !!(l && i.isSame(l, "year"))), t.isSame(i) && (n.type = "today"), n.text = d;
43
+ const $ = i.toDate();
45
44
  n.disabled = e.disabledDate && e.disabledDate($) || !1, o[r] = n;
46
45
  }
47
46
  }
48
47
  return s;
49
- }), P = () => {
48
+ }), j = () => {
50
49
  b.value?.focus();
51
- }, j = (s) => {
50
+ }, z = (s) => {
52
51
  const t = {}, a = f().locale(D.value), o = s.text;
53
- return t.disabled = e.disabledDate ? B(o, D.value).every(e.disabledDate) : !1, t.today = a.year() === o, t.current = p(e.parsedValue).findIndex((r) => r.year() === o) >= 0, s.inRange && (t["in-range"] = !0, s.start && (t["start-date"] = !0), s.end && (t["end-date"] = !0)), t;
52
+ return t.disabled = e.disabledDate ? N(o, D.value).every(e.disabledDate) : !1, t.today = a.year() === o, t.current = p(e.parsedValue).findIndex((r) => r.year() === o) >= 0, s.inRange && (t["in-range"] = !0, s.start && (t["start-date"] = !0), s.end && (t["end-date"] = !0)), t;
54
53
  }, v = (s) => {
55
54
  const t = s.text;
56
55
  return p(e.date).findIndex((a) => a.year() === t) >= 0;
@@ -67,53 +66,53 @@ const te = ["aria-label"], ae = ["aria-selected", "aria-label", "tabindex", "onK
67
66
  c("pick", p(e.parsedValue), !1);
68
67
  return;
69
68
  }
70
- const d = X(
69
+ const d = U(
71
70
  n.startOf("year"),
72
71
  D.value,
73
72
  e.disabledDate
74
- ), l = M(t, "current") ? p(e.parsedValue).filter((i) => i?.year() !== r) : p(e.parsedValue).concat([d]);
75
- c("pick", l);
73
+ ), i = M(t, "current") ? p(e.parsedValue).filter((l) => l?.year() !== r) : p(e.parsedValue).concat([d]);
74
+ c("pick", i);
76
75
  } else
77
76
  c("pick", r);
78
- }, z = (s) => {
77
+ }, P = (s) => {
79
78
  if (!e.rangeState.selecting) return;
80
79
  const t = s.target?.closest(
81
80
  "td"
82
81
  );
83
82
  if (!t) return;
84
83
  const a = t.parentNode.rowIndex, o = t.cellIndex;
85
- _.value[a][o].disabled || (a !== S.value || o !== h.value) && (S.value = a, h.value = o, c("changerange", {
84
+ h.value[a][o].disabled || (a !== k.value || o !== S.value) && (k.value = a, S.value = o, c("changerange", {
86
85
  selecting: !0,
87
86
  endDate: f().year(g.value).add(a * 4 + o, "year")
88
87
  }));
89
88
  };
90
- return q(
89
+ return L(
91
90
  () => e.date,
92
91
  async () => {
93
- w.value?.contains(document.activeElement) && (await G(), b.value?.focus());
92
+ w.value?.contains(document.activeElement) && (await q(), b.value?.focus());
94
93
  }
95
- ), A({
94
+ ), T({
96
95
  /**
97
96
  * @description focus on the current cell
98
97
  */
99
- focus: P
98
+ focus: j
100
99
  }), (s, t) => (u(), y("table", {
101
100
  role: "grid",
102
- "aria-label": k(N)("vft.datePicker.yearTableLabel"),
103
- class: C(k(K).b()),
101
+ "aria-label": "使用方向键与 Enter 键以选择年份",
102
+ class: C(_(B).b()),
104
103
  onClick: x,
105
- onMousemove: z
104
+ onMousemove: P
106
105
  }, [
107
- H("tbody", {
106
+ G("tbody", {
108
107
  ref_key: "tbodyRef",
109
108
  ref: w
110
109
  }, [
111
- (u(!0), y(R, null, V(_.value, (a, o) => (u(), y("tr", { key: o }, [
110
+ (u(!0), y(R, null, V(h.value, (a, o) => (u(), y("tr", { key: o }, [
112
111
  (u(!0), y(R, null, V(a, (r, n) => (u(), y("td", {
113
112
  key: `${o}_${n}`,
114
113
  ref_for: !0,
115
114
  ref: (d) => v(r) && (b.value = d),
116
- class: C(["available", j(r)]),
115
+ class: C(["available", z(r)]),
117
116
  "aria-selected": v(r),
118
117
  "aria-label": String(r.text),
119
118
  tabindex: v(r) ? 0 : -1,
@@ -122,13 +121,13 @@ const te = ["aria-label"], ae = ["aria-selected", "aria-label", "tabindex", "onK
122
121
  Y(I(x, ["prevent", "stop"]), ["enter"])
123
122
  ]
124
123
  }, [
125
- J(k(Z), { cell: r }, null, 8, ["cell"])
126
- ], 42, ae))), 128))
124
+ H(_(W), { cell: r }, null, 8, ["cell"])
125
+ ], 42, Z))), 128))
127
126
  ]))), 128))
128
127
  ], 512)
129
- ], 42, te));
128
+ ], 34));
130
129
  }
131
130
  });
132
131
  export {
133
- ke as default
132
+ be as default
134
133
  };