x-next 1.12.0 → 1.14.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 (226) hide show
  1. package/AI_CODING.md +6 -5
  2. package/AI_USAGE/catalog.md +106 -105
  3. package/AI_USAGE/components/alert-api.md +48 -0
  4. package/AI_USAGE/components/alert.md +222 -3
  5. package/AI_USAGE/components/bar-chart-api.md +177 -0
  6. package/AI_USAGE/components/bar-chart.md +297 -3
  7. package/AI_USAGE/components/boxicons.md +147 -0
  8. package/AI_USAGE/components/button-api.md +144 -0
  9. package/AI_USAGE/components/button.md +447 -3
  10. package/AI_USAGE/components/charts.md +81 -0
  11. package/AI_USAGE/components/checkbox-api.md +145 -0
  12. package/AI_USAGE/components/checkbox.md +365 -3
  13. package/AI_USAGE/components/color-picker-api.md +52 -0
  14. package/AI_USAGE/components/color-picker.md +211 -3
  15. package/AI_USAGE/components/config-provider-api.md +38 -0
  16. package/AI_USAGE/components/config-provider.md +250 -3
  17. package/AI_USAGE/components/date-picker-api.md +1114 -0
  18. package/AI_USAGE/components/date-picker.md +378 -3
  19. package/AI_USAGE/components/dialog-api.md +142 -0
  20. package/AI_USAGE/components/dialog.md +284 -3
  21. package/AI_USAGE/components/draggable-api.md +146 -0
  22. package/AI_USAGE/components/draggable.md +259 -0
  23. package/AI_USAGE/components/drawer-api.md +78 -0
  24. package/AI_USAGE/components/drawer.md +227 -0
  25. package/AI_USAGE/components/dropdown-api.md +529 -0
  26. package/AI_USAGE/components/dropdown.md +392 -3
  27. package/AI_USAGE/components/empty-api.md +36 -0
  28. package/AI_USAGE/components/empty.md +227 -3
  29. package/AI_USAGE/components/finicon.md +88 -0
  30. package/AI_USAGE/components/form-api.md +524 -0
  31. package/AI_USAGE/components/form.md +454 -0
  32. package/AI_USAGE/components/grid-api.md +527 -0
  33. package/AI_USAGE/components/grid.md +224 -0
  34. package/AI_USAGE/components/heatmap-api.md +122 -0
  35. package/AI_USAGE/components/heatmap.md +220 -0
  36. package/AI_USAGE/components/icon-api.md +4707 -0
  37. package/AI_USAGE/components/icon.md +257 -0
  38. package/AI_USAGE/components/image-api.md +440 -0
  39. package/AI_USAGE/components/image.md +465 -0
  40. package/AI_USAGE/components/input-api.md +184 -0
  41. package/AI_USAGE/components/input-number-api.md +66 -0
  42. package/AI_USAGE/components/input-number.md +294 -0
  43. package/AI_USAGE/components/input-tag-api.md +114 -0
  44. package/AI_USAGE/components/input-tag.md +482 -0
  45. package/AI_USAGE/components/input.md +293 -3
  46. package/AI_USAGE/components/layout-api.md +147 -0
  47. package/AI_USAGE/components/layout.md +230 -0
  48. package/AI_USAGE/components/line-chart-api.md +197 -0
  49. package/AI_USAGE/components/line-chart.md +279 -3
  50. package/AI_USAGE/components/link-api.md +42 -0
  51. package/AI_USAGE/components/link.md +197 -0
  52. package/AI_USAGE/components/menu-api.md +516 -0
  53. package/AI_USAGE/components/menu.md +268 -0
  54. package/AI_USAGE/components/message-api.md +215 -0
  55. package/AI_USAGE/components/message-box-api.md +108 -0
  56. package/AI_USAGE/components/message-box.md +268 -3
  57. package/AI_USAGE/components/message.md +231 -3
  58. package/AI_USAGE/components/network-api.md +91 -0
  59. package/AI_USAGE/components/network.md +378 -0
  60. package/AI_USAGE/components/notification-api.md +236 -0
  61. package/AI_USAGE/components/notification.md +275 -3
  62. package/AI_USAGE/components/pagination-api.md +62 -0
  63. package/AI_USAGE/components/pagination.md +386 -5
  64. package/AI_USAGE/components/pie-chart-api.md +109 -0
  65. package/AI_USAGE/components/pie-chart.md +245 -3
  66. package/AI_USAGE/components/popconfirm-api.md +75 -0
  67. package/AI_USAGE/components/popconfirm.md +231 -3
  68. package/AI_USAGE/components/popover-api.md +75 -0
  69. package/AI_USAGE/components/popover.md +208 -3
  70. package/AI_USAGE/components/popup-api.md +75 -0
  71. package/AI_USAGE/components/popup.md +52 -0
  72. package/AI_USAGE/components/progress-api.md +44 -0
  73. package/AI_USAGE/components/progress.md +248 -3
  74. package/AI_USAGE/components/radio-api.md +165 -0
  75. package/AI_USAGE/components/radio.md +259 -3
  76. package/AI_USAGE/components/rate-api.md +54 -0
  77. package/AI_USAGE/components/rate.md +233 -3
  78. package/AI_USAGE/components/resize-box-api.md +56 -0
  79. package/AI_USAGE/components/resize-box.md +231 -0
  80. package/AI_USAGE/components/scrollbar-api.md +77 -0
  81. package/AI_USAGE/components/scrollbar.md +218 -0
  82. package/AI_USAGE/components/select-api.md +758 -0
  83. package/AI_USAGE/components/select.md +640 -3
  84. package/AI_USAGE/components/skeleton-api.md +85 -0
  85. package/AI_USAGE/components/skeleton.md +150 -0
  86. package/AI_USAGE/components/slider-api.md +51 -0
  87. package/AI_USAGE/components/slider.md +233 -3
  88. package/AI_USAGE/components/space-api.md +38 -0
  89. package/AI_USAGE/components/space.md +145 -0
  90. package/AI_USAGE/components/spin-api.md +43 -0
  91. package/AI_USAGE/components/spin.md +205 -0
  92. package/AI_USAGE/components/steps-api.md +111 -0
  93. package/AI_USAGE/components/steps.md +201 -3
  94. package/AI_USAGE/components/switch-api.md +58 -0
  95. package/AI_USAGE/components/switch.md +290 -3
  96. package/AI_USAGE/components/table-api.md +2919 -0
  97. package/AI_USAGE/components/table.md +1414 -0
  98. package/AI_USAGE/components/tabs-api.md +135 -0
  99. package/AI_USAGE/components/tabs.md +308 -3
  100. package/AI_USAGE/components/tag-api.md +124 -0
  101. package/AI_USAGE/components/tag.md +292 -0
  102. package/AI_USAGE/components/textarea-api.md +55 -0
  103. package/AI_USAGE/components/textarea.md +326 -3
  104. package/AI_USAGE/components/time-picker-api.md +137 -0
  105. package/AI_USAGE/components/time-picker.md +271 -3
  106. package/AI_USAGE/components/time-range-selector-api.md +44 -0
  107. package/AI_USAGE/components/time-range-selector.md +355 -0
  108. package/AI_USAGE/components/timeline-api.md +93 -0
  109. package/AI_USAGE/components/timeline.md +312 -0
  110. package/AI_USAGE/components/tooltip-api.md +77 -0
  111. package/AI_USAGE/components/tooltip.md +182 -0
  112. package/AI_USAGE/components/trend-chart-api.md +119 -0
  113. package/AI_USAGE/components/trend-chart.md +335 -0
  114. package/AI_USAGE/components/trigger-api.md +124 -0
  115. package/AI_USAGE/components/trigger.md +185 -0
  116. package/AI_USAGE/components/upload-api.md +200 -0
  117. package/AI_USAGE/components/upload.md +711 -3
  118. package/AI_USAGE/components/watermark-api.md +87 -0
  119. package/AI_USAGE/components/watermark.md +200 -0
  120. package/AI_USAGE/core.md +1 -1
  121. package/AI_USAGE/index.md +35 -7
  122. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  123. package/AI_USAGE.md +33657 -7
  124. package/CHANGELOG.md +40 -0
  125. package/dist/_utils/inherit-component-type.d.ts +11 -0
  126. package/dist/components/date-picker/index.d.ts +420 -5
  127. package/dist/components/form-input/index.d.ts +617 -2
  128. package/dist/components/layout/index.d.ts +689 -1
  129. package/dist/components/menu/index.d.ts +786 -1
  130. package/dist/components/network/Network.vue.d.ts +7 -3
  131. package/dist/components/network/index.d.ts +10 -2
  132. package/dist/components/network/props.d.ts +5 -0
  133. package/dist/components/network/utils.d.ts +3 -3
  134. package/dist/components/pagination/page-item-ellipsis.vue.d.ts +4 -1
  135. package/dist/components/pagination/page-item-step.vue.d.ts +101 -130
  136. package/dist/components/pagination/page-item.vue.d.ts +1 -0
  137. package/dist/components/pagination/page-jumper.vue.d.ts +1 -1
  138. package/dist/components/pagination/page-options.vue.d.ts +6 -4
  139. package/dist/components/pagination/utils.d.ts +3 -0
  140. package/dist/components/time-range-selector/index.d.ts +6 -6
  141. package/dist/es/_container/resize-observer-v2.js +1 -1
  142. package/dist/es/_container/resize-observer.js +1 -1
  143. package/dist/es/_hooks/use-resize-observer.js +1 -1
  144. package/dist/es/_styles/palette-aliases.js +4 -4
  145. package/dist/es/_utils/inherit-component-type.js +6 -0
  146. package/dist/es/_virtual/advancedFormat.js +1 -1
  147. package/dist/es/_virtual/customParseFormat.js +1 -1
  148. package/dist/es/_virtual/dayjs.min.js +1 -1
  149. package/dist/es/_virtual/isBetween.js +1 -1
  150. package/dist/es/_virtual/quarterOfYear.js +1 -1
  151. package/dist/es/_virtual/weekOfYear.js +1 -1
  152. package/dist/es/_virtual/weekYear.js +1 -1
  153. package/dist/es/_virtual/zh-cn.js +1 -1
  154. package/dist/es/components/button/Button.js +53 -42
  155. package/dist/es/components/date-picker/index.js +18 -17
  156. package/dist/es/components/draggable/useDraggable.js +1 -1
  157. package/dist/es/components/form/Form.vue2.js +1 -1
  158. package/dist/es/components/form/FormItem.vue2.js +1 -1
  159. package/dist/es/components/form-input/index.js +12 -11
  160. package/dist/es/components/form-input-number/InputNumber.js +1 -1
  161. package/dist/es/components/form-slider/Slider.vue2.js +1 -1
  162. package/dist/es/components/form-slider/slider-ticks.vue2.js +1 -1
  163. package/dist/es/components/form-slider/utils.js +1 -1
  164. package/dist/es/components/layout/index.js +10 -9
  165. package/dist/es/components/menu/MenuItem.js +1 -1
  166. package/dist/es/components/menu/hooks/use-level.js +5 -5
  167. package/dist/es/components/menu/index.js +13 -10
  168. package/dist/es/components/menu/overflow-wrap.js +1 -1
  169. package/dist/es/components/network/Network.vue.js +17 -12
  170. package/dist/es/components/network/Network.vue2.js +78 -70
  171. package/dist/es/components/network/utils.js +112 -71
  172. package/dist/es/components/pagination/Pagination.js +132 -123
  173. package/dist/es/components/pagination/page-item-ellipsis.vue.js +10 -10
  174. package/dist/es/components/pagination/page-item-ellipsis.vue2.js +24 -19
  175. package/dist/es/components/pagination/page-item-step.vue.js +14 -11
  176. package/dist/es/components/pagination/page-item-step.vue2.js +20 -22
  177. package/dist/es/components/pagination/page-item.vue.js +10 -9
  178. package/dist/es/components/pagination/page-item.vue2.js +24 -19
  179. package/dist/es/components/pagination/page-jumper.vue2.js +23 -23
  180. package/dist/es/components/pagination/page-options.vue.js +15 -10
  181. package/dist/es/components/pagination/page-options.vue2.js +21 -17
  182. package/dist/es/components/pagination/utils.js +4 -2
  183. package/dist/es/components/progress/circle.vue2.js +1 -1
  184. package/dist/es/components/progress/line.vue2.js +1 -1
  185. package/dist/es/components/progress/steps.vue2.js +1 -1
  186. package/dist/es/components/rate/Rate.js +1 -1
  187. package/dist/es/components/virtual-list-v2/virtual-list-item.js +1 -1
  188. package/dist/es/locale/en-US.js +2 -0
  189. package/dist/es/locale/zh-CN.js +2 -0
  190. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +1 -1
  191. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +1 -1
  192. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +1 -1
  193. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +1 -1
  194. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +1 -1
  195. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +1 -1
  196. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +1 -1
  197. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +1 -1
  198. package/dist/es/style.css +1 -1
  199. package/dist/index.cjs +3 -3
  200. package/dist/index.umd.js +3 -3
  201. package/dist/locale/interface.d.ts +3 -0
  202. package/dist/style/base.css +1 -1
  203. package/dist/style/button.css +1 -1
  204. package/dist/style/form-select.css +1 -1
  205. package/dist/style/network.css +1 -1
  206. package/dist/style/pagination.css +1 -1
  207. package/dist/style/table.css +1 -1
  208. package/dist/style.css +1 -1
  209. package/package.json +10 -5
  210. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +0 -0
  211. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +0 -0
  212. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +0 -0
  213. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +0 -0
  214. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +0 -0
  215. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +0 -0
  216. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +0 -0
  217. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +0 -0
  218. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +0 -0
  219. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +0 -0
  220. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +0 -0
  221. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +0 -0
  222. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +0 -0
  223. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +0 -0
  224. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -0
  225. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js +0 -0
  226. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -0
@@ -1,73 +1,84 @@
1
- import { defineComponent as O, getCurrentInstance as P, inject as x, reactive as F, computed as t, withDirectives as T, createVNode as u, resolveDirective as L } from "vue";
2
- import { getClassNameMixin as p } from "../../_utils/config.js";
3
- import { buttonProps as A } from "./props.js";
4
- import B from "../../icons/animation/animation-loading.js";
5
- import I from "../../directives/wave.js";
6
- import { buttonGroupInjectionKey as K } from "./context.js";
7
- import { useSize as N } from "../../_hooks/use-size.js";
8
- const H = /* @__PURE__ */ O({
1
+ import { defineComponent as C, getCurrentInstance as E, inject as M, reactive as R, computed as r, withDirectives as Z, createVNode as d, resolveDirective as $, isVNode as q, Comment as H, Fragment as J, Text as Q } from "vue";
2
+ import { getClassNameMixin as U } from "../../_utils/config.js";
3
+ import { buttonProps as W } from "./props.js";
4
+ import X from "../../icons/animation/animation-loading.js";
5
+ import Y from "../../directives/wave.js";
6
+ import { buttonGroupInjectionKey as _ } from "./context.js";
7
+ import { useSize as G } from "../../_hooks/use-size.js";
8
+ const o = (e) => {
9
+ if (Array.isArray(e)) return e.some(o);
10
+ if (e == null || typeof e == "boolean") return !1;
11
+ if (typeof e == "string") return e.trim().length > 0;
12
+ if (q(e)) {
13
+ if (e.type === H) return !1;
14
+ if (e.type === J || e.type === Q)
15
+ return o(e.children);
16
+ }
17
+ return !0;
18
+ }, re = /* @__PURE__ */ C({
9
19
  name: "Button",
10
- props: A,
20
+ props: W,
11
21
  // 显式导入插槽
12
22
  slots: Object,
13
23
  directives: {
14
- wave: I
24
+ wave: Y
15
25
  },
16
26
  emits: ["click"],
17
27
  setup(e, {
18
- slots: l,
19
- emit: h
28
+ slots: n,
29
+ emit: A
20
30
  }) {
21
- const s = P(), a = x(K, void 0), {
22
- mergedSize: k
23
- } = N(void 0, {
31
+ const v = E(), a = M(_, void 0), {
32
+ mergedSize: F
33
+ } = G(void 0, {
24
34
  defaultValue: "medium"
25
- }), r = F({
35
+ }), u = R({
26
36
  clicked: !1,
27
37
  isDebounce: !1
28
- }), i = p("button"), w = (n) => n.replace(/[A-Z]/g, (d) => `-${d.toLowerCase()}`), o = (n) => {
29
- const d = (s == null ? void 0 : s.vnode.props) ?? {};
30
- return Object.prototype.hasOwnProperty.call(d, n) || Object.prototype.hasOwnProperty.call(d, w(n));
31
- }, m = t(() => o("type") ? e.type : (a == null ? void 0 : a.type) ?? e.type), v = t(() => o("size") ? e.size : (a == null ? void 0 : a.size) ?? k.value), b = t(() => o("status") ? e.status : (a == null ? void 0 : a.status) ?? e.status), g = t(() => o("shape") ? e.shape : (a == null ? void 0 : a.shape) ?? e.shape), f = t(() => o("disabled") ? e.disabled : (a == null ? void 0 : a.disabled) ?? e.disabled), D = t(() => [i.block, m.value && m.value !== "default" && i.modifier(m.value), v.value && i.modifier(v.value), b.value && i.modifier(b.value), f.value && i.is("disabled"), e.block && i.modifier("block"), e.plain && i.modifier("plain"), g.value && i.modifier(g.value), e.link && i.modifier("link"), !e.border && i.modifier("hide-border"), c.value && i.modifier("loading"), e.loadingFill && i.modifier("loading-fill"), e.narrow && i.modifier("narrow")]), z = () => {
32
- e.debounce > 0 && !r.isDebounce && (r.isDebounce = !0, setTimeout(() => {
33
- r.isDebounce = !1;
38
+ }), i = U("button"), I = (t) => t.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`), f = (t) => {
39
+ const c = (v == null ? void 0 : v.vnode.props) ?? {};
40
+ return Object.prototype.hasOwnProperty.call(c, t) || Object.prototype.hasOwnProperty.call(c, I(t));
41
+ }, m = r(() => f("type") ? e.type : (a == null ? void 0 : a.type) ?? e.type), w = r(() => f("size") ? e.size : (a == null ? void 0 : a.size) ?? F.value), D = r(() => f("status") ? e.status : (a == null ? void 0 : a.status) ?? e.status), y = r(() => f("shape") ? e.shape : (a == null ? void 0 : a.shape) ?? e.shape), s = r(() => f("disabled") ? e.disabled : (a == null ? void 0 : a.disabled) ?? e.disabled), L = r(() => [i.block, m.value && m.value !== "default" && i.modifier(m.value), w.value && i.modifier(w.value), D.value && i.modifier(D.value), s.value && i.is("disabled"), e.block && i.modifier("block"), e.plain && i.modifier("plain"), y.value && i.modifier(y.value), e.link && i.modifier("link"), !e.border && i.modifier("hide-border"), l.value && i.modifier("loading"), e.narrow && i.modifier("narrow")]), N = () => {
42
+ e.debounce > 0 && !u.isDebounce && (u.isDebounce = !0, setTimeout(() => {
43
+ u.isDebounce = !1;
34
44
  }, e.debounce));
35
- }, c = t(() => e.loading || r.clicked || r.isDebounce), S = t(() => f.value || c.value || e.link || m.value === "text"), j = (n) => {
36
- var d;
37
- n.detail > 0 && ((d = n.currentTarget) == null || d.blur()), !(f.value || c.value) && (z(), h("click", n));
45
+ }, l = r(() => e.loading || u.clicked || u.isDebounce), V = r(() => s.value || l.value || e.link || m.value === "text"), B = (t) => {
46
+ var c;
47
+ t.detail > 0 && ((c = t.currentTarget) == null || c.blur()), !(s.value || l.value) && (N(), A("click", t));
38
48
  };
39
49
  return () => {
40
- var n, d, y;
41
- return T(u("button", {
42
- class: D.value,
50
+ var P, j, O, T;
51
+ const t = (P = n.default) == null ? void 0 : P.call(n), c = (j = n.prefix) == null ? void 0 : j.call(n), S = (O = n.icon) == null ? void 0 : O.call(n), x = (T = n.suffix) == null ? void 0 : T.call(n), b = o(t), g = o(c), h = o(S), p = o(x), z = !b && !g && h && !p, k = e.loadingFill || l.value && (y.value === "circle" || z), K = l.value && !k && (b || g || h || p);
52
+ return Z(d("button", {
53
+ class: [L.value, !b && i.modifier("empty-content"), z && i.modifier("only-icon"), k && i.modifier("loading-fill")],
43
54
  type: e.htmlType,
44
- disabled: f.value || c.value,
45
- "aria-busy": c.value || void 0,
46
- onClick: j
47
- }, [u("span", {
55
+ disabled: s.value || l.value,
56
+ "aria-busy": l.value || void 0,
57
+ onClick: B
58
+ }, [d("span", {
48
59
  class: i.element("loading"),
49
60
  "aria-hidden": "true",
50
61
  style: {
51
62
  display: "flex",
52
- opacity: c.value ? 1 : 0,
53
- width: e.loadingFill ? void 0 : c.value ? "1em" : 0,
54
- marginRight: c.value && !e.loadingFill ? "4px" : "0",
63
+ opacity: l.value ? 1 : 0,
64
+ width: k ? void 0 : l.value ? "1em" : 0,
65
+ marginRight: K ? "4px" : "0",
55
66
  overflow: "hidden"
56
67
  }
57
- }, [c.value && u(B, null, null)]), !!l.prefix && u("span", {
68
+ }, [l.value && d(X, null, null)]), g && d("span", {
58
69
  class: i.element("prefix")
59
- }, [(n = l.prefix) == null ? void 0 : n.call(l)]), l.icon && u("span", {
70
+ }, [c]), h && d("span", {
60
71
  class: i.element("prefix")
61
- }, [(d = l.icon) == null ? void 0 : d.call(l)]), u("span", {
72
+ }, [S]), d("span", {
62
73
  class: i.element("content")
63
- }, [(y = l.default) == null ? void 0 : y.call(l)]), l.suffix && u("span", {
74
+ }, [t]), p && d("span", {
64
75
  class: i.element("suffix")
65
- }, [l.suffix()])]), [[L("wave"), {
66
- disabled: S.value
76
+ }, [x])]), [[$("wave"), {
77
+ disabled: V.value
67
78
  }]]);
68
79
  };
69
80
  }
70
81
  });
71
82
  export {
72
- H as default
83
+ re as default
73
84
  };
@@ -3,25 +3,26 @@ import { defineComponent as c, h as k } from "vue";
3
3
  import { generateComponent as e } from "../../_utils/vue-eco.js";
4
4
  import { getComponentPrefix as r } from "../../_utils/config.js";
5
5
  import { getRangePickerType as s } from "./utils.js";
6
- const l = e(r("DatePicker"), n), i = (t, o) => c({
6
+ import { inheritComponentType as P } from "../../_utils/inherit-component-type.js";
7
+ const R = e(r("DatePicker"), n), i = (t, o) => P(c({
7
8
  name: t,
8
9
  inheritAttrs: !1,
9
- setup(a, { attrs: P, slots: m }) {
10
- return () => k(n, { ...P, type: o }, m);
10
+ setup(a, { attrs: m, slots: p }) {
11
+ return () => k(n, { ...m, type: o }, p);
11
12
  }
12
- }), y = e(
13
+ })), C = e(
13
14
  r("MonthPicker"),
14
15
  i("MonthPicker", "month")
15
- ), R = e(
16
+ ), D = e(
16
17
  r("YearPicker"),
17
18
  i("YearPicker", "year")
18
- ), C = e(
19
+ ), M = e(
19
20
  r("QuarterPicker"),
20
21
  i("QuarterPicker", "quarter")
21
- ), D = e(
22
+ ), Q = e(
22
23
  r("WeekPicker"),
23
24
  i("WeekPicker", "week")
24
- ), p = c({
25
+ ), f = c({
25
26
  name: "RangePicker",
26
27
  inheritAttrs: !1,
27
28
  props: {
@@ -41,16 +42,16 @@ const l = e(r("DatePicker"), n), i = (t, o) => c({
41
42
  a
42
43
  );
43
44
  }
44
- }), M = e(
45
+ }), T = e(
45
46
  r("RangePicker"),
46
- p
47
+ P(f)
47
48
  );
48
49
  export {
49
- l as DatePicker,
50
- y as MonthPicker,
51
- C as QuarterPicker,
52
- M as RangePicker,
53
- D as WeekPicker,
54
- R as YearPicker,
55
- l as default
50
+ R as DatePicker,
51
+ C as MonthPicker,
52
+ M as QuarterPicker,
53
+ T as RangePicker,
54
+ Q as WeekPicker,
55
+ D as YearPicker,
56
+ R as default
56
57
  };
@@ -1,4 +1,4 @@
1
- import { Sortable as V } from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js";
1
+ import { Sortable as V } from "../../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js";
2
2
  import { getCurrentInstance as O, unref as c, watch as W, onMounted as X, nextTick as k, onUnmounted as Z, isRef as D } from "vue";
3
3
  import { error as ee } from "./utils/log.js";
4
4
  import { isString as ne, getElementBySelector as te, isHTMLElement as oe, forEachObject as M, mergeOptionsEvents as re, isOn as le, extend as ie, insertNodeAt as T, removeNode as E, removeElement as R, isUndefined as ue, insertElement as h, moveArrayElement as B } from "./utils/index.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as K, ref as U, toRefs as D, computed as m, watch as G, onBeforeUnmount as H, reactive as E, provide as J } from "vue";
2
- import Q from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
2
+ import Q from "../../node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
3
3
  import { formInjectionKey as X } from "./context.js";
4
4
  import { isArray as Y, isFunction as S } from "../../_utils/is.js";
5
5
  import { useSize as Z } from "../../_hooks/use-size.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as be, toRefs as H, inject as U, computed as i, ref as R, reactive as F, useId as me, nextTick as q, provide as ye, toRef as Se, onMounted as he, onBeforeUnmount as Fe, watch as pe } from "vue";
2
- import { Schema as we } from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js";
2
+ import { Schema as we } from "../../node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js";
3
3
  import { formInjectionKey as Be, formItemInjectionKey as G } from "./context.js";
4
4
  import { Col as Pe, Row as je } from "../grid/index.js";
5
5
  import Ce from "./form-item-label.vue.js";
@@ -1,14 +1,15 @@
1
- import p from "./Input.js";
2
- import r from "./InputSearch.js";
3
- import n from "./InputPassword.vue.js";
1
+ import r from "./Input.js";
2
+ import n from "./InputSearch.js";
3
+ import m from "./InputPassword.vue.js";
4
4
  import u from "./InputGroup.vue.js";
5
- import { generateComponent as t } from "../../_utils/vue-eco.js";
6
- import { getComponentPrefix as o } from "../../_utils/config.js";
7
- const c = t(o("Input"), p), i = t(o("InputSearch"), r), d = t(o("InputPassword"), n), P = t(o("InputGroup"), u);
5
+ import { generateComponent as o } from "../../_utils/vue-eco.js";
6
+ import { getComponentPrefix as t } from "../../_utils/config.js";
7
+ import { inheritComponentType as p } from "../../_utils/inherit-component-type.js";
8
+ const d = o(t("Input"), r), h = o(t("InputSearch"), p(n)), P = o(t("InputPassword"), p(m)), w = o(t("InputGroup"), u);
8
9
  export {
9
- c as Input,
10
- P as InputGroup,
11
- d as InputPassword,
12
- i as InputSearch,
13
- c as default
10
+ d as Input,
11
+ w as InputGroup,
12
+ P as InputPassword,
13
+ h as InputSearch,
14
+ d as default
14
15
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as J, toRefs as Q, ref as V, computed as D, watch as E, onUnmounted as X, createVNode as o, Fragment as Z } from "vue";
2
- import O from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import O from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import { isNumber as s, isUndefined as ee } from "../../_utils/is.js";
4
4
  import ne from "../../icons/default/up.js";
5
5
  import ue from "../../icons/default/down.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as re, computed as c, toRefs as oe, toRef as me, ref as B, watch as ce } from "vue";
2
- import C from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import C from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import de from "./slider-button.vue.js";
4
4
  import fe from "./slider-dots.vue.js";
5
5
  import se from "./slider-marks.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, computed as a } from "vue";
2
- import o from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import o from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import { getPositionStyle as l, getOffsetPercent as c } from "./utils.js";
4
4
  import { getClassNameMixin as d } from "../../_utils/config.js";
5
5
  const S = s({
@@ -1,4 +1,4 @@
1
- import o from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
1
+ import o from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
2
  const l = (e, [t, r]) => {
3
3
  if (r <= t)
4
4
  return "0%";
@@ -1,16 +1,17 @@
1
1
  import r from "./Layout.vue.js";
2
- import a from "./LayoutHeader.vue.js";
3
- import e from "./LayoutContent.vue.js";
2
+ import e from "./LayoutHeader.vue.js";
3
+ import a from "./LayoutContent.vue.js";
4
4
  import m from "./LayoutFooter.vue.js";
5
5
  import n from "./LayoutSidebar.vue.js";
6
6
  import { generateComponent as o } from "../../_utils/vue-eco.js";
7
7
  import { getComponentPrefix as t } from "../../_utils/config.js";
8
- const s = o(t("Layout"), r), c = o(t("LayoutHeader"), a), C = o(t("LayoutContent"), e), _ = o(t("LayoutFooter"), m), b = o(t("LayoutSidebar"), n);
8
+ import { inheritComponentType as u } from "../../_utils/inherit-component-type.js";
9
+ const c = o(t("Layout"), r), _ = o(t("LayoutHeader"), e), b = o(t("LayoutContent"), a), F = o(t("LayoutFooter"), m), H = o(t("LayoutSidebar"), u(n));
9
10
  export {
10
- s as Layout,
11
- C as LayoutContent,
12
- _ as LayoutFooter,
13
- c as LayoutHeader,
14
- b as LayoutSidebar,
15
- s as default
11
+ c as Layout,
12
+ b as LayoutContent,
13
+ F as LayoutFooter,
14
+ _ as LayoutHeader,
15
+ H as LayoutSidebar,
16
+ c as default
16
17
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, createVNode as i, mergeProps as $, ref as E, computed as S, onMounted as h, onUnmounted as I, watch as K } from "vue";
2
- import N from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
2
+ import N from "../../node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
3
3
  import { Tooltip as _ } from "../tooltip/index.js";
4
4
  import B from "./hooks/use-menu.js";
5
5
  import A from "./hooks/use-level.js";
@@ -1,16 +1,16 @@
1
- import { inject as r, computed as n, isRef as l, provide as u, reactive as p } from "vue";
1
+ import { computed as n, isRef as r, provide as l, reactive as u, inject as p } from "vue";
2
2
  import { LevelInjectionKey as i } from "../context.js";
3
3
  function s(e) {
4
- const o = n(() => l(e) ? e.value : e);
5
- u(
4
+ const o = n(() => r(e) ? e.value : e);
5
+ l(
6
6
  i,
7
- p({
7
+ u({
8
8
  level: o
9
9
  })
10
10
  );
11
11
  }
12
12
  function m(e) {
13
- const { provideNextLevel: o } = e || {}, t = r(i), c = n(() => (t == null ? void 0 : t.level) || 1);
13
+ const { provideNextLevel: o } = e || {}, t = p(i), c = n(() => (t == null ? void 0 : t.level) || 1);
14
14
  if (o) {
15
15
  const v = n(() => c.value + 1);
16
16
  s(v);
@@ -1,14 +1,17 @@
1
- import o from "./Menu.js";
1
+ import n from "./Menu.js";
2
2
  import t from "./MenuItem.js";
3
- import u from "./MenuSubMenu.js";
4
- import m from "./item-group.vue.js";
3
+ import m from "./MenuSubMenu.js";
4
+ import u from "./item-group.vue.js";
5
5
  import { generateComponent as e } from "../../_utils/vue-eco.js";
6
- import { getComponentPrefix as n } from "../../_utils/config.js";
7
- const s = e(n("Menu"), o), c = e(n("MenuItem"), t), a = e(n("MenuItemGroup"), m), b = e(n("MenuSubMenu"), u);
6
+ import { getComponentPrefix as o } from "../../_utils/config.js";
7
+ import { inheritComponentType as r } from "../../_utils/inherit-component-type.js";
8
+ const a = e(o("Menu"), r(
9
+ n
10
+ )), b = e(o("MenuItem"), t), C = e(o("MenuItemGroup"), u), G = e(o("MenuSubMenu"), m);
8
11
  export {
9
- s as Menu,
10
- c as MenuItem,
11
- a as MenuItemGroup,
12
- b as MenuSubMenu,
13
- s as default
12
+ a as Menu,
13
+ b as MenuItem,
14
+ C as MenuItemGroup,
15
+ G as MenuSubMenu,
16
+ a as default
14
17
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, ref as w, onMounted as _, onUnmounted as $, createVNode as h, cloneVNode as g, mergeProps as L, createTextVNode as E } from "vue";
2
- import k from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
+ import k from "../../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
3
3
  import { getStyle as N } from "../../_utils/style.js";
4
4
  import F from "./hooks/use-menu-context.js";
5
5
  import P from "./MenuSubMenu.js";
@@ -1,13 +1,14 @@
1
1
  import d from "./Network.vue2.js";
2
- import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, Fragment as p, renderList as g, normalizeStyle as S, toDisplayString as i, createCommentVNode as m } from "vue";
2
+ import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, toDisplayString as t, Fragment as p, renderList as g, normalizeStyle as S, createCommentVNode as m } from "vue";
3
3
  import y from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = ["aria-label", "aria-live", "title"];
5
- function c(e, t, v, N, h, k) {
4
+ const c = ["aria-label", "aria-live", "title"];
5
+ function f(e, n, v, N, h, k) {
6
6
  return s(), r("div", {
7
7
  class: a(e.cls),
8
8
  role: "status",
9
9
  "aria-label": e.mergedAriaLabel,
10
10
  "aria-live": e.ariaLive,
11
+ "aria-atomic": "true",
11
12
  title: e.showTooltip ? e.mergedAriaLabel : void 0
12
13
  }, [
13
14
  u(e.$slots, "default", {
@@ -21,40 +22,44 @@ function c(e, t, v, N, h, k) {
21
22
  reason: e.mergedStatus.reason,
22
23
  refresh: e.refresh
23
24
  }, () => [
25
+ l("span", {
26
+ class: a(e.className.element("status-text"))
27
+ }, t(e.mergedAriaLabel), 3),
24
28
  l("div", {
25
29
  class: a(e.className.element("signal")),
26
30
  "aria-hidden": "true"
27
31
  }, [
28
- (s(!0), r(p, null, g(e.lineItems, (o, n) => (s(), r("div", {
29
- key: n,
32
+ (s(!0), r(p, null, g(e.lineItems, (o, i) => (s(), r("div", {
33
+ key: i,
30
34
  class: a([
31
35
  e.className.element("signal--item"),
32
36
  o.active && e.className.is("active")
33
37
  ]),
34
38
  style: S({
35
- height: `${100 / e.lineItems.length * (n + 1)}%`,
39
+ height: `${100 / e.lineItems.length * (i + 1)}%`,
36
40
  "--x-network-line-color": o.color
37
41
  })
38
- }, [...t[0] || (t[0] = [
42
+ }, [...n[0] || (n[0] = [
39
43
  l("i", null, null, -1)
40
44
  ])], 6))), 128))
41
45
  ], 2),
42
46
  e.mergedShowMetrics ? (s(), r("span", {
43
47
  key: 0,
44
- class: a(e.className.element("metrics"))
48
+ class: a(e.className.element("metrics")),
49
+ "aria-hidden": "true"
45
50
  }, [
46
51
  e.mergedStatus.latency !== void 0 ? (s(), r("span", {
47
52
  key: 0,
48
53
  class: a(e.className.element("latency"))
49
- }, i(e.mergedStatus.latency) + "ms ", 3)) : m("", !0),
54
+ }, t(e.mergedStatus.latency) + "ms ", 3)) : m("", !0),
50
55
  l("span", {
51
56
  class: a(e.className.element("speed"))
52
- }, i(e.formattedDownloadSpeed), 3)
57
+ }, t(e.formattedDownloadSpeed), 3)
53
58
  ], 2)) : m("", !0)
54
59
  ])
55
- ], 10, f);
60
+ ], 10, c);
56
61
  }
57
- const L = /* @__PURE__ */ y(d, [["render", c]]);
62
+ const L = /* @__PURE__ */ y(d, [["render", f]]);
58
63
  export {
59
64
  L as default
60
65
  };