x-next 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/AI_USAGE.md +57 -4
  2. package/CHANGELOG.md +72 -0
  3. package/dist/_utils/color.d.ts +53 -0
  4. package/dist/components/color-picker/ColorPicker.d.ts +239 -0
  5. package/dist/components/color-picker/gradient-slider.d.ts +52 -0
  6. package/dist/components/color-picker/index.d.ts +238 -0
  7. package/dist/components/color-picker/panel.d.ts +721 -0
  8. package/dist/components/color-picker/sv-panel.d.ts +48 -0
  9. package/dist/components/date-picker/DatePicker.vue.d.ts +3 -3
  10. package/dist/components/date-picker/index.d.ts +6 -6
  11. package/dist/components/draggable/Draggable.d.ts +1 -1
  12. package/dist/components/draggable/index.d.ts +2 -2
  13. package/dist/components/drawer/index.d.ts +6 -6
  14. package/dist/components/drawer/src/Drawer.vue.d.ts +3 -3
  15. package/dist/components/dropdown/Dropdown.vue.d.ts +34 -4
  16. package/dist/components/dropdown/DropdownButton.vue.d.ts +35 -5
  17. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +34 -4
  18. package/dist/components/dropdown/dropdown-panel.vue.d.ts +30 -0
  19. package/dist/components/dropdown/index.d.ts +209 -29
  20. package/dist/components/form/FormItem.vue.d.ts +12 -12
  21. package/dist/components/form/form-item-label.vue.d.ts +3 -3
  22. package/dist/components/form/index.d.ts +24 -24
  23. package/dist/components/form-select/Select.d.ts +3 -3
  24. package/dist/components/form-select/SelectDropdown.vue.d.ts +30 -0
  25. package/dist/components/form-select/index.d.ts +66 -6
  26. package/dist/components/form-slider/Slider.vue.d.ts +3 -3
  27. package/dist/components/form-slider/index.d.ts +6 -6
  28. package/dist/components/form-slider/slider-button.vue.d.ts +3 -3
  29. package/dist/components/grid/Row.vue.d.ts +3 -3
  30. package/dist/components/grid/index.d.ts +9 -9
  31. package/dist/components/heatmap/Heatmap.d.ts +311 -0
  32. package/dist/components/heatmap/helpers/matrix.d.ts +58 -0
  33. package/dist/components/heatmap/index.d.ts +372 -0
  34. package/dist/components/heatmap/interface.d.ts +57 -0
  35. package/dist/components/image/Image.vue.d.ts +125 -17
  36. package/dist/components/image/ImagePreview.vue.d.ts +97 -7
  37. package/dist/components/image/ImagePreviewAction.d.ts +3 -3
  38. package/dist/components/image/ImagePreviewGroup.vue.d.ts +100 -7
  39. package/dist/components/image/hooks/use-image-drag.d.ts +2 -2
  40. package/dist/components/image/index.d.ts +712 -124
  41. package/dist/components/image/interface.d.ts +9 -1
  42. package/dist/components/image/preview-toolbar.vue.d.ts +3 -3
  43. package/dist/components/index.d.ts +3 -0
  44. package/dist/components/menu/sub-menu-pop.vue.d.ts +3 -3
  45. package/dist/components/network/Network.vue.d.ts +1 -1
  46. package/dist/components/network/index.d.ts +3 -3
  47. package/dist/components/network/utils.d.ts +2 -0
  48. package/dist/components/pagination/page-item-ellipsis.vue.d.ts +9 -0
  49. package/dist/components/pagination/page-jumper.vue.d.ts +6 -0
  50. package/dist/components/pagination/page-options.vue.d.ts +6 -6
  51. package/dist/components/popconfirm/src/popup.vue.d.ts +3 -3
  52. package/dist/components/popover/Popover.d.ts +1 -1
  53. package/dist/components/popover/index.d.ts +3 -3
  54. package/dist/components/popup/Popup.d.ts +1 -1
  55. package/dist/components/popup/index.d.ts +3 -3
  56. package/dist/components/skeleton/SkeletonShape.vue.d.ts +3 -3
  57. package/dist/components/skeleton/index.d.ts +6 -6
  58. package/dist/components/space/Space.d.ts +1 -1
  59. package/dist/components/space/index.d.ts +3 -3
  60. package/dist/components/spin/Spin.d.ts +38 -0
  61. package/dist/components/spin/index.d.ts +30 -0
  62. package/dist/components/table/Table.d.ts +1 -1
  63. package/dist/components/table/index.d.ts +3 -3
  64. package/dist/components/tabs/Tabs.d.ts +1 -1
  65. package/dist/components/tabs/index.d.ts +3 -3
  66. package/dist/components/time-picker/TimePicker.vue.d.ts +3 -3
  67. package/dist/components/time-picker/index.d.ts +6 -6
  68. package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
  69. package/dist/components/tooltip/index.d.ts +3 -3
  70. package/dist/components/trigger/Trigger.d.ts +1 -1
  71. package/dist/components/trigger/index.d.ts +3 -3
  72. package/dist/components/upload/Upload.d.ts +372 -0
  73. package/dist/components/upload/context.d.ts +28 -0
  74. package/dist/components/upload/index.d.ts +656 -0
  75. package/dist/components/upload/interface.d.ts +110 -0
  76. package/dist/components/upload/props.d.ts +321 -0
  77. package/dist/components/upload/upload-list-item.d.ts +15 -0
  78. package/dist/components/upload/upload-list.d.ts +11 -0
  79. package/dist/components/upload/upload-picture-item.d.ts +20 -0
  80. package/dist/components/upload/upload-trigger.d.ts +8 -0
  81. package/dist/components/upload/utils.d.ts +48 -0
  82. package/dist/components/watermark/Watermark.d.ts +1 -1
  83. package/dist/components/watermark/index.d.ts +3 -3
  84. package/dist/es/_styles/palette-aliases.js +10 -4
  85. package/dist/es/_utils/color.js +73 -0
  86. package/dist/es/components/button/Button.js +2 -2
  87. package/dist/es/components/color-picker/ColorPicker.js +239 -0
  88. package/dist/es/components/color-picker/gradient-slider.js +79 -0
  89. package/dist/es/components/color-picker/index.js +8 -0
  90. package/dist/es/components/color-picker/panel.js +307 -0
  91. package/dist/es/components/color-picker/sv-panel.js +99 -0
  92. package/dist/es/components/dropdown/dropdown-panel.vue.js +17 -17
  93. package/dist/es/components/form-input/Input.js +7 -7
  94. package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
  95. package/dist/es/components/form-input/InputSearch.js +2 -2
  96. package/dist/es/components/form-input-number/InputNumber.js +12 -12
  97. package/dist/es/components/heatmap/Heatmap.js +334 -0
  98. package/dist/es/components/heatmap/helpers/matrix.js +106 -0
  99. package/dist/es/components/heatmap/index.js +8 -0
  100. package/dist/es/components/image/Image.vue.js +55 -45
  101. package/dist/es/components/image/Image.vue2.js +113 -92
  102. package/dist/es/components/image/ImagePreview.vue.js +66 -53
  103. package/dist/es/components/image/ImagePreview.vue2.js +219 -171
  104. package/dist/es/components/image/ImagePreviewAction.js +12 -15
  105. package/dist/es/components/image/ImagePreviewGroup.vue.js +21 -20
  106. package/dist/es/components/image/ImagePreviewGroup.vue2.js +45 -39
  107. package/dist/es/components/image/hooks/use-image-drag.js +16 -14
  108. package/dist/es/components/index.js +123 -117
  109. package/dist/es/components/menu/sub-menu-pop.vue2.js +12 -12
  110. package/dist/es/components/network/Network.vue2.js +72 -72
  111. package/dist/es/components/network/utils.js +44 -35
  112. package/dist/es/components/pagination/Pagination.js +113 -104
  113. package/dist/es/components/pagination/page-item-ellipsis.vue.js +13 -12
  114. package/dist/es/components/pagination/page-item-ellipsis.vue2.js +19 -15
  115. package/dist/es/components/pagination/page-jumper.vue.js +13 -12
  116. package/dist/es/components/pagination/page-jumper.vue2.js +7 -4
  117. package/dist/es/components/pagination/page-options.vue.js +4 -3
  118. package/dist/es/components/pagination/page-options.vue2.js +17 -15
  119. package/dist/es/components/skeleton/Skeleton.vue.js +11 -9
  120. package/dist/es/components/skeleton/SkeletonLine.vue.js +9 -8
  121. package/dist/es/components/skeleton/SkeletonShape.vue.js +8 -7
  122. package/dist/es/components/spin/Spin.js +124 -60
  123. package/dist/es/components/table/Table.js +3 -1
  124. package/dist/es/components/trigger/Trigger.js +19 -19
  125. package/dist/es/components/upload/Upload.js +420 -0
  126. package/dist/es/components/upload/context.js +4 -0
  127. package/dist/es/components/upload/index.js +8 -0
  128. package/dist/es/components/upload/props.js +321 -0
  129. package/dist/es/components/upload/upload-list-item.js +138 -0
  130. package/dist/es/components/upload/upload-list.js +48 -0
  131. package/dist/es/components/upload/upload-picture-item.js +109 -0
  132. package/dist/es/components/upload/upload-trigger.js +89 -0
  133. package/dist/es/components/upload/utils.js +195 -0
  134. package/dist/es/icons/_self/empty-better.js +25 -8
  135. package/dist/es/icons/_self/upload-icons.js +103 -0
  136. package/dist/es/index.js +168 -162
  137. package/dist/es/locale/en-US.js +39 -1
  138. package/dist/es/locale/zh-CN.js +39 -1
  139. package/dist/es/style.css +1 -1
  140. package/dist/icons/_self/upload-icons.d.ts +523 -0
  141. package/dist/index.cjs +4 -4
  142. package/dist/index.umd.js +4 -4
  143. package/dist/locale/interface.d.ts +60 -0
  144. package/dist/style/base.css +1 -1
  145. package/dist/style/button.css +1 -1
  146. package/dist/style/color-picker.css +1 -0
  147. package/dist/style/color-picker.js +2 -0
  148. package/dist/style/date-picker.css +1 -1
  149. package/dist/style/empty.css +1 -1
  150. package/dist/style/form-checkbox.css +1 -1
  151. package/dist/style/form-input-tag.css +1 -1
  152. package/dist/style/form-input.css +1 -1
  153. package/dist/style/form-radio.css +1 -1
  154. package/dist/style/form-textarea.css +1 -1
  155. package/dist/style/form.css +1 -1
  156. package/dist/style/heatmap.css +1 -0
  157. package/dist/style/heatmap.js +2 -0
  158. package/dist/style/image.css +1 -1
  159. package/dist/style/menu.css +1 -1
  160. package/dist/style/pagination.css +1 -1
  161. package/dist/style/skeleton.css +1 -1
  162. package/dist/style/spin.css +1 -1
  163. package/dist/style/steps.css +1 -1
  164. package/dist/style/table.css +1 -1
  165. package/dist/style/upload.css +1 -0
  166. package/dist/style/upload.js +2 -0
  167. package/dist/style.css +1 -1
  168. package/dist/types.d.ts +3 -0
  169. package/package.json +1 -1
  170. package/volar.d.ts +3 -0
  171. package/dist/es/_hooks/use-popup-overflow-hidden.js +0 -29
@@ -1,12 +1,13 @@
1
- import { defineComponent as T, toRefs as q, reactive as b, computed as r, ref as D, watch as E, provide as F } from "vue";
1
+ import { defineComponent as q, toRefs as D, reactive as b, computed as r, ref as E, watch as F, provide as H } from "vue";
2
2
  import C from "../../_hooks/use-merge-state.js";
3
- import H from "./ImagePreview.vue.js";
4
- import { PreviewGroupInjectionKey as J } from "./context.js";
3
+ import J from "./ImagePreview.vue.js";
4
+ import { PreviewGroupInjectionKey as Q } from "./context.js";
5
5
  import { isArray as A, isUndefined as s } from "../../_utils/is.js";
6
- const $ = /* @__PURE__ */ T({
6
+ import { useLocale as W } from "../../locale/index.js";
7
+ const re = /* @__PURE__ */ q({
7
8
  name: "ImagePreviewGroup",
8
9
  components: {
9
- ImagePreview: H
10
+ ImagePreview: J
10
11
  },
11
12
  inheritAttrs: !1,
12
13
  props: {
@@ -120,21 +121,23 @@ const $ = /* @__PURE__ */ T({
120
121
  emit: m
121
122
  }) {
122
123
  const {
124
+ t: U
125
+ } = W(), {
123
126
  srcList: n,
124
- visible: U,
125
- defaultVisible: M,
126
- current: S,
127
+ visible: M,
128
+ defaultVisible: S,
129
+ current: L,
127
130
  defaultCurrent: N,
128
131
  infinite: w
129
- } = q(B), [h, O] = C(M.value, b({
130
- value: U
132
+ } = D(B), [h, O] = C(S.value, b({
133
+ value: M
131
134
  })), g = (e) => {
132
135
  e !== h.value && (m("visible-change", e), m("update:visible", e), O(e));
133
136
  }, k = r(() => new Map(A(n == null ? void 0 : n.value) ? n == null ? void 0 : n.value.map((e, t) => [t, {
134
137
  url: e,
135
138
  canPreview: !0
136
- }]) : [])), x = r(() => A(n == null ? void 0 : n.value)), c = D(/* @__PURE__ */ new Map()), f = r(() => x.value ? k.value : c.value), z = r(() => Array.from(c.value.keys())), d = r(() => Array.from(f.value.keys())), i = r(() => d.value.length);
137
- function L(e, t, u) {
139
+ }]) : [])), x = r(() => A(n == null ? void 0 : n.value)), c = E(/* @__PURE__ */ new Map()), f = r(() => x.value ? k.value : c.value), z = r(() => Array.from(c.value.keys())), d = r(() => Array.from(f.value.keys())), o = r(() => d.value.length);
140
+ function R(e, t, u) {
138
141
  return c.value.set(e, {
139
142
  url: t,
140
143
  canPreview: u
@@ -142,21 +145,21 @@ const $ = /* @__PURE__ */ T({
142
145
  c.value.delete(e);
143
146
  };
144
147
  }
145
- const [a, R] = C(N.value, b({
146
- value: S
148
+ const [a, _] = C(N.value, b({
149
+ value: L
147
150
  })), v = (e) => {
148
- e !== a.value && (m("change", e), m("update:current", e), R(e));
149
- }, _ = r(() => d.value[a.value]), j = (e) => {
151
+ e !== a.value && (m("change", e), m("update:current", e), _(e));
152
+ }, j = r(() => d.value[a.value]), G = (e) => {
150
153
  const t = d.value.indexOf(e);
151
154
  t >= 0 && t !== a.value && v(t);
152
- }, G = r(() => {
155
+ }, V = r(() => {
153
156
  var e;
154
- return (e = f.value.get(_.value)) == null ? void 0 : e.url;
157
+ return (e = f.value.get(j.value)) == null ? void 0 : e.url;
155
158
  });
156
- E(
157
- [i, a],
159
+ F(
160
+ [o, a],
158
161
  () => {
159
- if (i.value === 0) {
162
+ if (o.value === 0) {
160
163
  g(!1);
161
164
  return;
162
165
  }
@@ -164,64 +167,67 @@ const $ = /* @__PURE__ */ T({
164
167
  v(0);
165
168
  return;
166
169
  }
167
- a.value >= i.value && v(i.value - 1);
170
+ a.value >= o.value && v(o.value - 1);
168
171
  },
169
172
  // 自动收集模式须等子图片注册;显式列表在 setup 时即可检查边界。
170
173
  {
171
174
  immediate: x.value
172
175
  }
173
- ), F(J, b({
174
- registerImageUrl: L,
176
+ ), H(Q, b({
177
+ registerImageUrl: R,
175
178
  preview: (e) => {
176
179
  if (x.value) {
177
- const u = c.value.get(e), o = u != null && u.canPreview ? z.value.indexOf(e) : -1;
178
- o >= 0 && o < i.value && (v(o), g(!0));
180
+ const u = c.value.get(e), i = u != null && u.canPreview ? z.value.indexOf(e) : -1;
181
+ i >= 0 && i < o.value && (v(i), g(!0));
179
182
  return;
180
183
  }
181
184
  const t = f.value.get(e);
182
- t != null && t.canPreview && (j(e), g(!0));
185
+ t != null && t.canPreview && (G(e), g(!0));
183
186
  }
184
187
  }));
185
188
  const y = r(() => {
186
- const e = (u, o) => {
189
+ const e = (u, i) => {
187
190
  var p;
188
- for (let l = u; l <= o; l++) {
191
+ for (let l = u; l <= i; l++) {
189
192
  const P = d.value[l];
190
193
  if ((p = f.value.get(P)) != null && p.canPreview)
191
194
  return l;
192
195
  }
193
- }, t = e(a.value + 1, i.value - 1);
196
+ }, t = e(a.value + 1, o.value - 1);
194
197
  return s(t) && w.value ? e(0, a.value - 1) : t;
195
198
  }), I = r(() => {
196
- const e = (u, o) => {
199
+ const e = (u, i) => {
197
200
  var p;
198
- for (let l = u; l >= o; l--) {
201
+ for (let l = u; l >= i; l--) {
199
202
  const P = d.value[l];
200
203
  if ((p = f.value.get(P)) != null && p.canPreview)
201
204
  return l;
202
205
  }
203
206
  }, t = e(a.value - 1, 0);
204
- return s(t) && w.value ? e(i.value - 1, a.value + 1) : t;
205
- }), V = r(() => s(I.value) ? void 0 : () => {
207
+ return s(t) && w.value ? e(o.value - 1, a.value + 1) : t;
208
+ }), K = r(() => s(I.value) ? void 0 : () => {
206
209
  !s(I.value) && v(I.value);
207
- }), K = r(() => s(y.value) ? void 0 : () => {
210
+ }), T = r(() => s(y.value) ? void 0 : () => {
208
211
  !s(y.value) && v(y.value);
209
212
  });
210
213
  return {
214
+ t: U,
215
+ currentIndex: a,
216
+ imageCount: o,
211
217
  mergedVisible: h,
212
- currentUrl: G,
218
+ currentUrl: V,
213
219
  prevIndex: I,
214
220
  nextIndex: y,
215
221
  onClose() {
216
222
  g(!1);
217
223
  },
218
224
  groupArrowProps: b({
219
- onPrev: V,
220
- onNext: K
225
+ onPrev: K,
226
+ onNext: T
221
227
  })
222
228
  };
223
229
  }
224
230
  });
225
231
  export {
226
- $ as default
232
+ re as default
227
233
  };
@@ -2,39 +2,41 @@ import { toRefs as E, ref as x, watchEffect as R, watch as X, nextTick as Y } fr
2
2
  import { on as s, off as f } from "../../../_utils/dom.js";
3
3
  import h from "../utils/get-fix-translate.js";
4
4
  function B(D) {
5
- const { wrapperEl: v, imageEl: a, scale: n } = E(D), t = x([0, 0]), u = x(!1);
6
- let i = 0, c = 0, l = [0, 0];
5
+ const { wrapperEl: v, imageEl: l, scale: n } = E(D), t = x([0, 0]), o = x(!1);
6
+ let i = 0, c = 0, r = [0, 0];
7
7
  const T = () => {
8
- if (!v.value || !a.value) return;
9
- const e = v.value.getBoundingClientRect(), r = a.value.getBoundingClientRect(), [o, d] = h(
8
+ if (!v.value || !l.value) return;
9
+ const e = v.value.getBoundingClientRect(), a = l.value.getBoundingClientRect(), [u, d] = h(
10
10
  e,
11
- r,
11
+ a,
12
12
  t.value[0],
13
13
  t.value[1],
14
14
  n.value
15
15
  );
16
- (o !== t.value[0] || d !== t.value[1]) && (t.value = [o, d]);
16
+ (u !== t.value[0] || d !== t.value[1]) && (t.value = [u, d]);
17
17
  }, p = (e) => {
18
18
  e.preventDefault && e.preventDefault();
19
- const r = l[0] + (e.pageX - i) / n.value, o = l[1] + (e.pageY - c) / n.value;
20
- t.value = [r, o];
19
+ const a = r[0] + (e.pageX - i) / n.value, u = r[1] + (e.pageY - c) / n.value;
20
+ t.value = [a, u];
21
21
  }, g = (e) => {
22
- e.preventDefault && e.preventDefault(), u.value = !1, w();
22
+ e.preventDefault && e.preventDefault(), o.value = !1, w();
23
23
  }, m = (e) => {
24
- e.target === e.currentTarget && (e.preventDefault && e.preventDefault(), u.value = !0, i = e.pageX, c = e.pageY, l = [...t.value], s(window, "mousemove", p, !1), s(window, "mouseup", g, !1));
24
+ e.target === e.currentTarget && (e.preventDefault && e.preventDefault(), o.value = !0, i = e.pageX, c = e.pageY, r = [...t.value], s(window, "mousemove", p, !1), s(window, "mouseup", g, !1));
25
25
  };
26
26
  function w() {
27
27
  typeof window > "u" || (f(window, "mousemove", p, !1), f(window, "mouseup", g, !1));
28
28
  }
29
29
  return R((e) => {
30
- typeof window > "u" || (a.value && s(a.value, "mousedown", m), e(() => {
31
- a.value && f(a.value, "mousedown", m), w();
32
- }));
30
+ if (typeof window > "u") return;
31
+ const a = l.value;
32
+ a && s(a, "mousedown", m), e(() => {
33
+ a && f(a, "mousedown", m), o.value = !1, w();
34
+ });
33
35
  }), X([n], () => {
34
36
  Y(() => T());
35
37
  }), {
36
38
  translate: t,
37
- moving: u,
39
+ moving: o,
38
40
  resetTranslate() {
39
41
  t.value = [0, 0];
40
42
  }
@@ -4,159 +4,165 @@ import { ConfigProvider as x } from "./config-provider/index.js";
4
4
  import { Dialog as n } from "./dialog/index.js";
5
5
  import { Drawer as u } from "./drawer/index.js";
6
6
  import { Dropdown as c, DropdownButton as d, DropdownGroup as T, DropdownOption as S, DropdownSubmenu as g } from "./dropdown/index.js";
7
- import { Empty as P } from "./empty/index.js";
8
- import { DatePicker as b, MonthPicker as s, QuarterPicker as w, RangePicker as L, WeekPicker as D, YearPicker as y } from "./date-picker/index.js";
7
+ import { Empty as I } from "./empty/index.js";
8
+ import { DatePicker as b, MonthPicker as s, QuarterPicker as w, RangePicker as L, WeekPicker as C, YearPicker as D } from "./date-picker/index.js";
9
9
  import { Form as G, FormItem as h } from "./form/index.js";
10
10
  import { Checkbox as M, CheckboxGroup as R } from "./form-checkbox/index.js";
11
11
  import { Input as B, InputGroup as E, InputPassword as _, InputSearch as N } from "./form-input/index.js";
12
12
  import { InputNumber as j } from "./form-input-number/index.js";
13
- import { InputTag as K } from "./form-input-tag/index.js";
14
- import { Radio as H, RadioGroup as z } from "./form-radio/index.js";
15
- import { Select as U, SelectDropdown as Y, SelectOption as Z, SelectOptionGroup as q } from "./form-select/index.js";
13
+ import { InputTag as H } from "./form-input-tag/index.js";
14
+ import { Radio as W, RadioGroup as U } from "./form-radio/index.js";
15
+ import { Select as Q, SelectDropdown as Y, SelectOption as Z, SelectOptionGroup as q } from "./form-select/index.js";
16
16
  import { Slider as V } from "./form-slider/index.js";
17
17
  import { Switch as $ } from "./form-switch/index.js";
18
18
  import { Textarea as ro } from "./form-textarea/index.js";
19
- import { Draggable as to } from "./draggable/index.js";
20
- import { Col as mo, Grid as fo, GridItem as xo, Row as ao } from "./grid/index.js";
21
- import { Image as io, ImagePreview as uo, ImagePreviewAction as lo, ImagePreviewGroup as co } from "./image/index.js";
22
- import { Layout as So, LayoutContent as go, LayoutFooter as Io, LayoutHeader as Po, LayoutSidebar as ko } from "./layout/index.js";
23
- import { Link as so } from "./link/index.js";
24
- import { Menu as Lo, MenuItem as Do, MenuItemGroup as yo, MenuSubMenu as Co } from "./menu/index.js";
25
- import { Message as ho } from "./message/index.js";
26
- import { Network as Mo } from "./network/index.js";
27
- import { Notification as Ao } from "./notification/index.js";
28
- import { Pagination as Eo } from "./pagination/index.js";
29
- import { Popconfirm as No } from "./popconfirm/index.js";
30
- import { Popover as jo } from "./popover/index.js";
31
- import { Popup as Ko } from "./popup/index.js";
32
- import { Progress as Ho } from "./progress/index.js";
33
- import { Rate as Qo } from "./rate/index.js";
34
- import { ResizeBox as Yo } from "./resize-box/index.js";
35
- import { Scrollbar as qo } from "./scrollbar-v2/index.js";
36
- import { Skeleton as Vo, SkeletonLine as Xo, SkeletonShape as $o } from "./skeleton/index.js";
37
- import { Space as rr } from "./space/index.js";
38
- import { Spin as tr } from "./spin/index.js";
39
- import { Step as mr, Steps as fr } from "./steps/index.js";
40
- import { Table as ar, TableColumn as nr } from "./table/index.js";
41
- import { TabPane as ur, Tabs as lr } from "./tabs/index.js";
42
- import { Tag as dr } from "./tag/index.js";
43
- import { TimePicker as Sr } from "./time-picker/index.js";
44
- import { TimeRangeSelector as Ir } from "./time-range-selector/index.js";
45
- import { Timeline as kr } from "./timeline/index.js";
46
- import { TimelineItem as sr } from "./timeline-item/index.js";
47
- import { Tooltip as Lr } from "./tooltip/index.js";
48
- import { TrendChart as yr } from "./trend-chart/index.js";
49
- import { Trigger as Gr } from "./trigger/index.js";
50
- import { Watermark as vr } from "./watermark/index.js";
51
- import { TABLE_LOCALE_EN_US as Rr, TABLE_LOCALE_ZH_CN as Ar, formatLocaleText as Br } from "./table/locale.js";
52
- import { default as _r } from "./table/table-tbody.js";
53
- import { default as Or } from "./table/table-td.js";
54
- import { default as Fr } from "./table/table-th.js";
55
- import { default as Wr } from "./table/table-thead.js";
56
- import { default as zr } from "./table/table-tr.js";
57
- import { configProviderInjectionKey as Ur } from "./config-provider/context.js";
58
- import { formInjectionKey as Zr, formItemInjectionKey as qr } from "./form/context.js";
59
- import { vDraggable as Vr } from "./draggable/directive.js";
60
- import { vWatermark as $r } from "./watermark/directive.js";
19
+ import { ColorPicker as to } from "./color-picker/index.js";
20
+ import { Draggable as mo } from "./draggable/index.js";
21
+ import { Col as xo, Grid as ao, GridItem as no, Row as io } from "./grid/index.js";
22
+ import { Heatmap as lo } from "./heatmap/index.js";
23
+ import { Image as To, ImagePreview as So, ImagePreviewAction as go, ImagePreviewGroup as Po } from "./image/index.js";
24
+ import { Layout as ko, LayoutContent as bo, LayoutFooter as so, LayoutHeader as wo, LayoutSidebar as Lo } from "./layout/index.js";
25
+ import { Link as Do } from "./link/index.js";
26
+ import { Menu as Go, MenuItem as ho, MenuItemGroup as vo, MenuSubMenu as Mo } from "./menu/index.js";
27
+ import { Message as Ao } from "./message/index.js";
28
+ import { Network as Eo } from "./network/index.js";
29
+ import { Notification as No } from "./notification/index.js";
30
+ import { Pagination as jo } from "./pagination/index.js";
31
+ import { Popconfirm as Ho } from "./popconfirm/index.js";
32
+ import { Popover as Wo } from "./popover/index.js";
33
+ import { Popup as zo } from "./popup/index.js";
34
+ import { Progress as Yo } from "./progress/index.js";
35
+ import { Rate as qo } from "./rate/index.js";
36
+ import { ResizeBox as Vo } from "./resize-box/index.js";
37
+ import { Scrollbar as $o } from "./scrollbar-v2/index.js";
38
+ import { Skeleton as rr, SkeletonLine as er, SkeletonShape as tr } from "./skeleton/index.js";
39
+ import { Space as mr } from "./space/index.js";
40
+ import { Spin as xr } from "./spin/index.js";
41
+ import { Step as nr, Steps as ir } from "./steps/index.js";
42
+ import { Table as lr, TableColumn as cr } from "./table/index.js";
43
+ import { TabPane as Tr, Tabs as Sr } from "./tabs/index.js";
44
+ import { Tag as Pr } from "./tag/index.js";
45
+ import { TimePicker as kr } from "./time-picker/index.js";
46
+ import { TimeRangeSelector as sr } from "./time-range-selector/index.js";
47
+ import { Timeline as Lr } from "./timeline/index.js";
48
+ import { TimelineItem as Dr } from "./timeline-item/index.js";
49
+ import { Tooltip as Gr } from "./tooltip/index.js";
50
+ import { TrendChart as vr } from "./trend-chart/index.js";
51
+ import { Trigger as Rr } from "./trigger/index.js";
52
+ import { Upload as Br } from "./upload/index.js";
53
+ import { Watermark as _r } from "./watermark/index.js";
54
+ import { TABLE_LOCALE_EN_US as Or, TABLE_LOCALE_ZH_CN as jr, formatLocaleText as Fr } from "./table/locale.js";
55
+ import { default as Kr } from "./table/table-tbody.js";
56
+ import { default as Ur } from "./table/table-td.js";
57
+ import { default as Qr } from "./table/table-th.js";
58
+ import { default as Zr } from "./table/table-thead.js";
59
+ import { default as Jr } from "./table/table-tr.js";
60
+ import { configProviderInjectionKey as Xr } from "./config-provider/context.js";
61
+ import { formInjectionKey as oe, formItemInjectionKey as re } from "./form/context.js";
62
+ import { vDraggable as te } from "./draggable/directive.js";
63
+ import { vWatermark as me } from "./watermark/directive.js";
61
64
  export {
62
65
  e as Alert,
63
66
  p as Button,
64
67
  m as ButtonGroup,
65
68
  M as Checkbox,
66
69
  R as CheckboxGroup,
67
- mo as Col,
70
+ xo as Col,
71
+ to as ColorPicker,
68
72
  x as ConfigProvider,
69
73
  b as DatePicker,
70
74
  n as Dialog,
71
- to as Draggable,
75
+ mo as Draggable,
72
76
  u as Drawer,
73
77
  c as Dropdown,
74
78
  d as DropdownButton,
75
79
  T as DropdownGroup,
76
80
  S as DropdownOption,
77
81
  g as DropdownSubmenu,
78
- P as Empty,
82
+ I as Empty,
79
83
  G as Form,
80
84
  h as FormItem,
81
- fo as Grid,
82
- xo as GridItem,
83
- io as Image,
84
- uo as ImagePreview,
85
- lo as ImagePreviewAction,
86
- co as ImagePreviewGroup,
85
+ ao as Grid,
86
+ no as GridItem,
87
+ lo as Heatmap,
88
+ To as Image,
89
+ So as ImagePreview,
90
+ go as ImagePreviewAction,
91
+ Po as ImagePreviewGroup,
87
92
  B as Input,
88
93
  E as InputGroup,
89
94
  j as InputNumber,
90
95
  _ as InputPassword,
91
96
  N as InputSearch,
92
- K as InputTag,
93
- So as Layout,
94
- go as LayoutContent,
95
- Io as LayoutFooter,
96
- Po as LayoutHeader,
97
- ko as LayoutSidebar,
98
- so as Link,
99
- Lo as Menu,
100
- Do as MenuItem,
101
- yo as MenuItemGroup,
102
- Co as MenuSubMenu,
103
- ho as Message,
97
+ H as InputTag,
98
+ ko as Layout,
99
+ bo as LayoutContent,
100
+ so as LayoutFooter,
101
+ wo as LayoutHeader,
102
+ Lo as LayoutSidebar,
103
+ Do as Link,
104
+ Go as Menu,
105
+ ho as MenuItem,
106
+ vo as MenuItemGroup,
107
+ Mo as MenuSubMenu,
108
+ Ao as Message,
104
109
  s as MonthPicker,
105
- Mo as Network,
106
- Ao as Notification,
107
- Eo as Pagination,
108
- No as Popconfirm,
109
- jo as Popover,
110
- Ko as Popup,
111
- Ho as Progress,
110
+ Eo as Network,
111
+ No as Notification,
112
+ jo as Pagination,
113
+ Ho as Popconfirm,
114
+ Wo as Popover,
115
+ zo as Popup,
116
+ Yo as Progress,
112
117
  w as QuarterPicker,
113
- H as Radio,
114
- z as RadioGroup,
118
+ W as Radio,
119
+ U as RadioGroup,
115
120
  L as RangePicker,
116
- Qo as Rate,
117
- Yo as ResizeBox,
118
- ao as Row,
119
- qo as Scrollbar,
120
- U as Select,
121
+ qo as Rate,
122
+ Vo as ResizeBox,
123
+ io as Row,
124
+ $o as Scrollbar,
125
+ Q as Select,
121
126
  Y as SelectDropdown,
122
127
  Z as SelectOption,
123
128
  q as SelectOptionGroup,
124
- Vo as Skeleton,
125
- Xo as SkeletonLine,
126
- $o as SkeletonShape,
129
+ rr as Skeleton,
130
+ er as SkeletonLine,
131
+ tr as SkeletonShape,
127
132
  V as Slider,
128
- rr as Space,
129
- tr as Spin,
130
- mr as Step,
131
- fr as Steps,
133
+ mr as Space,
134
+ xr as Spin,
135
+ nr as Step,
136
+ ir as Steps,
132
137
  $ as Switch,
133
- Rr as TABLE_LOCALE_EN_US,
134
- Ar as TABLE_LOCALE_ZH_CN,
135
- ur as TabPane,
136
- ar as Table,
137
- nr as TableColumn,
138
- lr as Tabs,
139
- dr as Tag,
140
- _r as Tbody,
141
- Or as Td,
138
+ Or as TABLE_LOCALE_EN_US,
139
+ jr as TABLE_LOCALE_ZH_CN,
140
+ Tr as TabPane,
141
+ lr as Table,
142
+ cr as TableColumn,
143
+ Sr as Tabs,
144
+ Pr as Tag,
145
+ Kr as Tbody,
146
+ Ur as Td,
142
147
  ro as Textarea,
143
- Fr as Th,
144
- Wr as Thead,
145
- Sr as TimePicker,
146
- Ir as TimeRangeSelector,
147
- kr as Timeline,
148
- sr as TimelineItem,
149
- Lr as Tooltip,
150
- zr as Tr,
151
- yr as TrendChart,
152
- Gr as Trigger,
153
- vr as Watermark,
154
- D as WeekPicker,
155
- y as YearPicker,
156
- Ur as configProviderInjectionKey,
157
- Zr as formInjectionKey,
158
- qr as formItemInjectionKey,
159
- Br as formatLocaleText,
160
- Vr as vDraggable,
161
- $r as vWatermark
148
+ Qr as Th,
149
+ Zr as Thead,
150
+ kr as TimePicker,
151
+ sr as TimeRangeSelector,
152
+ Lr as Timeline,
153
+ Dr as TimelineItem,
154
+ Gr as Tooltip,
155
+ Jr as Tr,
156
+ vr as TrendChart,
157
+ Rr as Trigger,
158
+ Br as Upload,
159
+ _r as Watermark,
160
+ C as WeekPicker,
161
+ D as YearPicker,
162
+ Xr as configProviderInjectionKey,
163
+ oe as formInjectionKey,
164
+ re as formItemInjectionKey,
165
+ Fr as formatLocaleText,
166
+ te as vDraggable,
167
+ me as vWatermark
162
168
  };
@@ -40,16 +40,16 @@ const Q = S({
40
40
  }
41
41
  },
42
42
  setup(s) {
43
- const { key: l } = N(), { level: a } = _(), { selectable: u, disabled: p, isChildrenSelected: C, popupMaxHeight: x } = B(s), t = V(), { onSubMenuClick: r, onMenuItemClick: n } = t, m = o(() => t.prefixCls), c = o(() => t.mode), f = o(() => t.selectedKeys || []), i = o(() => `${m.value}-pop`), v = o(
44
- () => u.value && f.value.includes(l.value) || C.value
43
+ const { key: l } = N(), { level: a } = _(), { selectable: u, disabled: p, isChildrenSelected: C, popupMaxHeight: x } = B(s), t = V(), { onSubMenuClick: r, onMenuItemClick: n } = t, m = o(() => t.prefixCls), f = o(() => t.mode), v = o(() => t.selectedKeys || []), i = o(() => `${m.value}-pop`), d = o(
44
+ () => u.value && v.value.includes(l.value) || C.value
45
45
  ), M = o(() => [
46
46
  `${i.value}`,
47
47
  `${i.value}-header`,
48
48
  {
49
- [`${m.value}-selected`]: v.value
49
+ [`${m.value}-selected`]: d.value
50
50
  }
51
- ]), h = o(() => c.value === "horizontal" && !t.inTrigger), d = P(!1), g = (e) => {
52
- d.value = e;
51
+ ]), h = o(() => f.value === "horizontal" && !t.inTrigger), g = P(!1), c = (e) => {
52
+ g.value = e;
53
53
  }, y = w("trigger"), k = o(() => {
54
54
  var e;
55
55
  return [
@@ -63,14 +63,14 @@ const Q = S({
63
63
  }), b = o(() => I(t.triggerProps || {}, ["class"]));
64
64
  return {
65
65
  menuPrefixCls: m,
66
- mode: c,
66
+ mode: f,
67
67
  level: a,
68
68
  classNames: M,
69
- isSelected: v,
69
+ isSelected: d,
70
70
  disabled: p,
71
- selectedKeys: f,
71
+ selectedKeys: v,
72
72
  needPopOnBottom: h,
73
- popVisible: d,
73
+ popVisible: g,
74
74
  className: y,
75
75
  triggerClassNames: k,
76
76
  triggerProps: b,
@@ -83,13 +83,13 @@ const Q = S({
83
83
  p.value || s._internalSkipCollect || (r && r(l.value, a.value), u.value && n && n(l.value));
84
84
  },
85
85
  onKeydown: (e) => {
86
- p.value || s._internalSkipCollect || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r && r(l.value, a.value), u.value && n && n(l.value));
86
+ p.value || s._internalSkipCollect || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r && r(l.value, a.value), c(!0), u.value && n && n(l.value));
87
87
  },
88
88
  onMenuItemClick: (e) => {
89
- n && n(e), g(!1);
89
+ n && n(e), c(!1);
90
90
  },
91
91
  onVisibleChange: (e) => {
92
- g(e);
92
+ c(e);
93
93
  }
94
94
  };
95
95
  }