x-next 1.19.3 → 1.19.4

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 (189) hide show
  1. package/AI_USAGE/catalog.md +1 -1
  2. package/AI_USAGE/components/alert-api.md +1 -1
  3. package/AI_USAGE/components/alert.md +1 -1
  4. package/AI_USAGE/components/bar-chart-api.md +1 -1
  5. package/AI_USAGE/components/bar-chart.md +1 -1
  6. package/AI_USAGE/components/boxicons.md +1 -1
  7. package/AI_USAGE/components/button-api.md +1 -1
  8. package/AI_USAGE/components/button.md +1 -1
  9. package/AI_USAGE/components/charts.md +1 -1
  10. package/AI_USAGE/components/checkbox-api.md +1 -1
  11. package/AI_USAGE/components/checkbox.md +1 -1
  12. package/AI_USAGE/components/color-picker-api.md +1 -1
  13. package/AI_USAGE/components/color-picker.md +1 -1
  14. package/AI_USAGE/components/config-provider-api.md +1 -1
  15. package/AI_USAGE/components/config-provider.md +1 -1
  16. package/AI_USAGE/components/date-picker-api.md +1 -1
  17. package/AI_USAGE/components/date-picker.md +1 -1
  18. package/AI_USAGE/components/dialog-api.md +1 -1
  19. package/AI_USAGE/components/dialog.md +36 -1
  20. package/AI_USAGE/components/draggable-api.md +1 -1
  21. package/AI_USAGE/components/draggable.md +1 -1
  22. package/AI_USAGE/components/drawer-api.md +1 -1
  23. package/AI_USAGE/components/drawer.md +1 -1
  24. package/AI_USAGE/components/dropdown-api.md +1 -1
  25. package/AI_USAGE/components/dropdown.md +1 -1
  26. package/AI_USAGE/components/empty-api.md +1 -1
  27. package/AI_USAGE/components/empty.md +1 -1
  28. package/AI_USAGE/components/finicon.md +1 -1
  29. package/AI_USAGE/components/form-api.md +1 -1
  30. package/AI_USAGE/components/form.md +1 -1
  31. package/AI_USAGE/components/grid-api.md +1 -1
  32. package/AI_USAGE/components/grid.md +1 -1
  33. package/AI_USAGE/components/heatmap-api.md +1 -1
  34. package/AI_USAGE/components/heatmap.md +1 -1
  35. package/AI_USAGE/components/icon-api.md +1 -1
  36. package/AI_USAGE/components/icon.md +1 -1
  37. package/AI_USAGE/components/image-api.md +1 -1
  38. package/AI_USAGE/components/image.md +1 -1
  39. package/AI_USAGE/components/input-api.md +1 -1
  40. package/AI_USAGE/components/input-number-api.md +1 -1
  41. package/AI_USAGE/components/input-number.md +1 -1
  42. package/AI_USAGE/components/input-tag-api.md +1 -1
  43. package/AI_USAGE/components/input-tag.md +3 -1
  44. package/AI_USAGE/components/input.md +1 -1
  45. package/AI_USAGE/components/layout-api.md +1 -1
  46. package/AI_USAGE/components/layout.md +1 -1
  47. package/AI_USAGE/components/line-chart-api.md +1 -1
  48. package/AI_USAGE/components/line-chart.md +1 -1
  49. package/AI_USAGE/components/link-api.md +1 -1
  50. package/AI_USAGE/components/link.md +1 -1
  51. package/AI_USAGE/components/menu-api.md +1 -1
  52. package/AI_USAGE/components/menu.md +1 -1
  53. package/AI_USAGE/components/message-api.md +1 -1
  54. package/AI_USAGE/components/message-box-api.md +1 -1
  55. package/AI_USAGE/components/message-box.md +5 -1
  56. package/AI_USAGE/components/message.md +3 -1
  57. package/AI_USAGE/components/network-api.md +1 -1
  58. package/AI_USAGE/components/network.md +1 -1
  59. package/AI_USAGE/components/notification-api.md +1 -1
  60. package/AI_USAGE/components/notification.md +3 -1
  61. package/AI_USAGE/components/pagination-api.md +1 -1
  62. package/AI_USAGE/components/pagination.md +1 -1
  63. package/AI_USAGE/components/pie-chart-api.md +1 -1
  64. package/AI_USAGE/components/pie-chart.md +1 -1
  65. package/AI_USAGE/components/popconfirm-api.md +1 -1
  66. package/AI_USAGE/components/popconfirm.md +1 -1
  67. package/AI_USAGE/components/popover-api.md +1 -1
  68. package/AI_USAGE/components/popover.md +1 -1
  69. package/AI_USAGE/components/popup-api.md +1 -1
  70. package/AI_USAGE/components/popup.md +1 -1
  71. package/AI_USAGE/components/progress-api.md +1 -1
  72. package/AI_USAGE/components/progress.md +1 -1
  73. package/AI_USAGE/components/radio-api.md +1 -1
  74. package/AI_USAGE/components/radio.md +1 -1
  75. package/AI_USAGE/components/rate-api.md +1 -1
  76. package/AI_USAGE/components/rate.md +1 -1
  77. package/AI_USAGE/components/resize-box-api.md +1 -1
  78. package/AI_USAGE/components/resize-box.md +1 -1
  79. package/AI_USAGE/components/scrollbar-api.md +1 -1
  80. package/AI_USAGE/components/scrollbar.md +1 -1
  81. package/AI_USAGE/components/select-api.md +1 -1
  82. package/AI_USAGE/components/select.md +1 -1
  83. package/AI_USAGE/components/skeleton-api.md +1 -1
  84. package/AI_USAGE/components/skeleton.md +1 -1
  85. package/AI_USAGE/components/slider-api.md +1 -1
  86. package/AI_USAGE/components/slider.md +1 -1
  87. package/AI_USAGE/components/space-api.md +1 -1
  88. package/AI_USAGE/components/space.md +1 -1
  89. package/AI_USAGE/components/spin-api.md +2 -2
  90. package/AI_USAGE/components/spin.md +133 -25
  91. package/AI_USAGE/components/steps-api.md +1 -1
  92. package/AI_USAGE/components/steps.md +1 -1
  93. package/AI_USAGE/components/switch-api.md +1 -1
  94. package/AI_USAGE/components/switch.md +1 -1
  95. package/AI_USAGE/components/table-api.md +1 -1
  96. package/AI_USAGE/components/table.md +1 -1
  97. package/AI_USAGE/components/tabs-api.md +1 -1
  98. package/AI_USAGE/components/tabs.md +1 -1
  99. package/AI_USAGE/components/tag-api.md +1 -1
  100. package/AI_USAGE/components/tag.md +1 -1
  101. package/AI_USAGE/components/textarea-api.md +1 -1
  102. package/AI_USAGE/components/textarea.md +1 -1
  103. package/AI_USAGE/components/time-picker-api.md +1 -1
  104. package/AI_USAGE/components/time-picker.md +1 -1
  105. package/AI_USAGE/components/time-range-selector-api.md +1 -1
  106. package/AI_USAGE/components/time-range-selector.md +1 -1
  107. package/AI_USAGE/components/timeline-api.md +1 -1
  108. package/AI_USAGE/components/timeline.md +1 -1
  109. package/AI_USAGE/components/tooltip-api.md +1 -1
  110. package/AI_USAGE/components/tooltip.md +1 -1
  111. package/AI_USAGE/components/transfer-api.md +1 -1
  112. package/AI_USAGE/components/transfer.md +1 -1
  113. package/AI_USAGE/components/tree-select-api.md +1 -1
  114. package/AI_USAGE/components/tree-select.md +1 -1
  115. package/AI_USAGE/components/trend-chart-api.md +1 -1
  116. package/AI_USAGE/components/trend-chart.md +1 -1
  117. package/AI_USAGE/components/trigger-api.md +1 -1
  118. package/AI_USAGE/components/trigger.md +1 -1
  119. package/AI_USAGE/components/upload-api.md +1 -1
  120. package/AI_USAGE/components/upload.md +1 -1
  121. package/AI_USAGE/components/virtual-list-api.md +1 -1
  122. package/AI_USAGE/components/virtual-list.md +1 -1
  123. package/AI_USAGE/components/watermark-api.md +1 -1
  124. package/AI_USAGE/components/watermark.md +1 -1
  125. package/AI_USAGE/core.md +1 -1
  126. package/AI_USAGE/index.md +1 -1
  127. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  128. package/AI_USAGE.md +178 -25
  129. package/CHANGELOG.md +10 -0
  130. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +1 -1
  131. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +1 -1
  132. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +1 -1
  133. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +1 -1
  134. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +1 -1
  135. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +1 -1
  136. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +1 -1
  137. package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +1 -1
  138. package/dist/es/_container/resize-observer-v2.js +1 -1
  139. package/dist/es/_container/resize-observer.js +1 -1
  140. package/dist/es/_hooks/use-resize-observer.js +1 -1
  141. package/dist/es/_virtual/advancedFormat.js +1 -1
  142. package/dist/es/_virtual/customParseFormat.js +1 -1
  143. package/dist/es/_virtual/dayjs.min.js +1 -1
  144. package/dist/es/_virtual/isBetween.js +1 -1
  145. package/dist/es/_virtual/quarterOfYear.js +1 -1
  146. package/dist/es/_virtual/weekOfYear.js +1 -1
  147. package/dist/es/_virtual/weekYear.js +1 -1
  148. package/dist/es/_virtual/zh-cn.js +1 -1
  149. package/dist/es/components/dialog/Dialog.js +8 -8
  150. package/dist/es/components/draggable/useDraggable.js +1 -1
  151. package/dist/es/components/form/Form.vue2.js +1 -1
  152. package/dist/es/components/form/FormItem.vue2.js +1 -1
  153. package/dist/es/components/form-input-number/InputNumber.js +1 -1
  154. package/dist/es/components/form-slider/Slider.vue2.js +1 -1
  155. package/dist/es/components/form-slider/slider-ticks.vue2.js +1 -1
  156. package/dist/es/components/form-slider/utils.js +1 -1
  157. package/dist/es/components/menu/MenuItem.js +1 -1
  158. package/dist/es/components/menu/overflow-wrap.js +1 -1
  159. package/dist/es/components/progress/circle.vue2.js +1 -1
  160. package/dist/es/components/progress/line.vue2.js +1 -1
  161. package/dist/es/components/progress/steps.vue2.js +1 -1
  162. package/dist/es/components/rate/Rate.js +1 -1
  163. package/dist/es/components/spin/Spin.js +80 -72
  164. package/dist/es/components/virtual-list-v2/virtual-list-item.js +1 -1
  165. package/dist/es/style.css +1 -1
  166. package/dist/index.cjs +3 -3
  167. package/dist/index.umd.js +3 -3
  168. package/dist/style/base.css +1 -1
  169. package/dist/style/dialog.css +1 -1
  170. package/dist/style/spin.css +1 -1
  171. package/dist/style.css +1 -1
  172. package/package.json +4 -2
  173. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +0 -0
  174. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +0 -0
  175. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +0 -0
  176. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +0 -0
  177. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +0 -0
  178. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +0 -0
  179. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +0 -0
  180. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +0 -0
  181. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +0 -0
  182. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +0 -0
  183. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +0 -0
  184. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +0 -0
  185. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +0 -0
  186. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +0 -0
  187. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -0
  188. /package/dist/es/{node_modules → 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 +0 -0
  189. /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, computed as t } from "vue";
2
- import f from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import f from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import { isObject as g } from "../../_utils/is.js";
4
4
  import S from "../../icons/default/exclamation.js";
5
5
  import p from "../../icons/default/check.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, computed as e } from "vue";
2
- import s from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import s from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import { isObject as f } from "../../_utils/is.js";
4
4
  import g from "../../icons/default/exclamation-circle-fill.js";
5
5
  import { getClassNameMixin as b } from "../../_utils/config.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as e } from "vue";
2
- import c from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
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";
3
3
  import l from "../../icons/default/exclamation-circle-fill.js";
4
4
  import { getClassNameMixin as p } from "../../_utils/config.js";
5
5
  const x = m({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ee, toRefs as le, toRef as ae, ref as b, computed as v, watch as te, onMounted as re, createVNode as r, mergeProps as ne } from "vue";
2
- import x from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import x from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import { getClassNameMixin as oe } from "../../_utils/config.js";
4
4
  import { isUndefined as ue, isNull as ce, isString as ie, isObject as se } from "../../_utils/is.js";
5
5
  import { useFormItem as de, useFormItemControl as fe } from "../../_hooks/use-form-item.js";
@@ -1,10 +1,10 @@
1
- import { defineComponent as D, computed as s, ref as S, watch as x, onUnmounted as B, onMounted as R, onUpdated as U, createVNode as r, mergeProps as V, Fragment as T, cloneVNode as H } from "vue";
1
+ import { defineComponent as U, ref as v, onBeforeUpdate as w, watch as x, onUnmounted as E, computed as D, onMounted as H, onUpdated as R, createVNode as r, mergeProps as V, Fragment as T, cloneVNode as j } from "vue";
2
2
  import O from "../../icons/animation/animation-loading.js";
3
3
  import _ from "./dot-loading.js";
4
4
  import { getFirstComponent as q } from "../../_utils/vue-eco.js";
5
5
  import { getClassNameMixin as P } from "../../_utils/config.js";
6
6
  import { useLocale as $ } from "../../locale/index.js";
7
- const j = 'a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])', Y = /* @__PURE__ */ D({
7
+ const G = ["a[href]", "area[href]", "button", "input", "select", "textarea", "summary", "iframe", "object", "embed", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', '[tabindex]:not([tabindex="-1"])'].join(","), Z = /* @__PURE__ */ U({
8
8
  name: "Spin",
9
9
  inheritAttrs: !1,
10
10
  props: {
@@ -82,118 +82,126 @@ const j = 'a[href], button, input, select, textarea, [tabindex]:not([tabindex="-
82
82
  * @en Custom tip
83
83
  * @slot tip
84
84
  */
85
- setup(e, {
85
+ setup(n, {
86
86
  attrs: k,
87
87
  slots: i
88
88
  }) {
89
89
  const a = P("spin"), {
90
90
  t: z
91
- } = $(), o = s(() => !!i.default), u = S(!1);
91
+ } = $(), u = v(!!i.default);
92
+ w(() => {
93
+ u.value = !!i.default;
94
+ });
95
+ const d = v(!1);
92
96
  let c;
93
- const v = () => {
97
+ const b = () => {
94
98
  c !== void 0 && (clearTimeout(c), c = void 0);
95
99
  };
96
- x(() => [e.loading, e.delay, o.value], ([t, n, d]) => {
97
- if (v(), !d) {
98
- u.value = !0;
100
+ x(() => [n.loading, n.delay, u.value], ([e, t, l], f) => {
101
+ if (b(), !l) {
102
+ d.value = !0;
99
103
  return;
100
104
  }
101
- if (!t) {
102
- u.value = !1;
105
+ if (!e) {
106
+ d.value = !1;
103
107
  return;
104
108
  }
105
- if (u.value || !n || !Number.isFinite(n) || n <= 0) {
106
- u.value = !0;
109
+ if (f != null && f[2] || (d.value = !1), d.value || !t || !Number.isFinite(t) || t <= 0) {
110
+ d.value = !0;
107
111
  return;
108
112
  }
109
113
  c = setTimeout(() => {
110
- u.value = !0, c = void 0;
111
- }, n);
114
+ d.value = !0, c = void 0;
115
+ }, t);
112
116
  }, {
113
- immediate: !0
114
- }), B(v);
115
- const l = s(() => e.loading && u.value), A = s(() => [a.block, e.display === "inline" ? a.modifier("inline") : a.modifier("block"), {
116
- [a.modifier("loading")]: l.value,
117
- [a.modifier("with-tip")]: e.tip && !i.default,
117
+ immediate: !0,
118
+ flush: "sync"
119
+ }), E(b);
120
+ const o = D(() => n.loading && d.value), A = (e) => [a.block, n.display === "inline" ? a.modifier("inline") : a.modifier("block"), {
121
+ [a.modifier("loading")]: o.value,
122
+ [a.modifier("with-tip")]: e && !u.value,
118
123
  /*
119
- * 扫光只作用于提示文字。tip 是 prop 时 with-tip 才成立;
124
+ * 扫光只作用于 prop 提示文字;
120
125
  * 自定义 tip 插槽的内容结构未知,不加扫光,避免破坏使用方自己的样式。
121
126
  */
122
- [a.modifier("tip-shimmer")]: e.tipShimmer && !!e.tip
123
- }]), C = () => {
127
+ [a.modifier("tip-shimmer")]: n.tipShimmer && !!n.tip && !i.tip
128
+ }], C = () => {
124
129
  if (i.icon) {
125
- const t = q(i.icon());
126
- if (t)
127
- return H(t, {
130
+ const e = q(i.icon());
131
+ if (e)
132
+ return j(e, {
128
133
  spin: !0
129
134
  });
130
135
  }
131
- return i.element ? i.element() : e.dot ? r(_, {
132
- size: e.size,
133
- type: e.dot === "color" ? "color" : "default"
136
+ return i.element ? i.element() : n.dot ? r(_, {
137
+ size: n.size,
138
+ type: n.dot === "color" ? "color" : "default"
134
139
  }, null) : r(O, {
135
- size: e.size
140
+ size: n.size
136
141
  }, null);
137
- }, p = () => {
138
- var d;
139
- const t = e.size ? {
140
- fontSize: `${e.size}px`
141
- } : void 0, n = !!(i.tip ?? e.tip);
142
- return r(T, null, [!e.hideIcon && r("div", {
142
+ }, y = () => {
143
+ var l;
144
+ const e = n.size ? {
145
+ fontSize: `${n.size}px`
146
+ } : void 0, t = !!(i.tip ?? n.tip);
147
+ return r(T, null, [!n.hideIcon && r("div", {
143
148
  class: a.element("icon"),
144
- style: t
145
- }, [C()]), n && r("div", {
149
+ style: e
150
+ }, [C()]), t && r("div", {
146
151
  class: a.element("tip")
147
- }, [((d = i.tip) == null ? void 0 : d.call(i)) ?? e.tip])]);
148
- }, m = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, y = S(), f = /* @__PURE__ */ new Map(), b = () => {
149
- const t = y.value;
150
- t && t.querySelectorAll(j).forEach((n) => {
151
- f.has(n) || (f.set(n, n.getAttribute("tabindex")), n.setAttribute("tabindex", "-1"));
152
+ }, [((l = i.tip) == null ? void 0 : l.call(i)) ?? n.tip])]);
153
+ }, s = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, h = v(), m = /* @__PURE__ */ new Map(), p = () => {
154
+ const e = h.value;
155
+ if (!e) return;
156
+ e.querySelectorAll(G).forEach((l) => {
157
+ m.has(l) || (m.set(l, l.getAttribute("tabindex")), l.setAttribute("tabindex", "-1"));
152
158
  });
153
- }, h = () => {
154
- f.forEach((t, n) => {
155
- t === null ? n.removeAttribute("tabindex") : n.setAttribute("tabindex", t);
156
- }), f.clear();
157
- }, g = (t) => {
158
- m || (t ? b() : h());
159
+ const t = document.activeElement;
160
+ t instanceof HTMLElement && e.contains(t) && t.blur();
161
+ }, g = () => {
162
+ m.forEach((e, t) => {
163
+ e === null ? t.removeAttribute("tabindex") : t.setAttribute("tabindex", e);
164
+ }), m.clear();
165
+ }, L = (e) => {
166
+ s || (e ? p() : g());
159
167
  };
160
- return x(l, g, {
168
+ return x([o, u], ([e, t]) => L(e && t), {
161
169
  flush: "post"
162
- }), R(() => g(l.value)), U(() => {
163
- !m && l.value && b();
164
- }), B(() => {
165
- m || h();
170
+ }), H(() => L(o.value)), R(() => {
171
+ !s && o.value && p();
172
+ }), E(() => {
173
+ s || g();
166
174
  }), () => {
167
- var L;
175
+ var S;
168
176
  const {
169
- class: t,
170
- style: n,
171
- role: d,
172
- "aria-live": E,
177
+ class: e,
178
+ style: t,
179
+ role: l,
180
+ "aria-live": f,
173
181
  "aria-busy": N,
174
182
  "aria-label": F,
175
183
  ...I
176
- } = k, M = !!(i.tip ?? e.tip), w = o.value ? l.value : !0;
184
+ } = k, B = !!(i.tip ?? n.tip), M = u.value ? o.value : !0;
177
185
  return r("div", V(I, {
178
- class: [A.value, t],
179
- style: n,
180
- role: d ?? (o.value ? void 0 : "status"),
181
- "aria-live": E ?? (o.value && !l.value ? void 0 : "polite"),
182
- "aria-busy": N ?? (o.value ? l.value : !0),
183
- "aria-label": F ?? (w && !M ? z("common.loading") : void 0)
184
- }), [o.value ? r(T, null, [r("div", {
185
- ref: y,
186
+ class: [A(B), e],
187
+ style: t,
188
+ role: l ?? (u.value ? void 0 : "status"),
189
+ "aria-live": f ?? (u.value && !o.value ? void 0 : "polite"),
190
+ "aria-busy": N ?? (u.value ? o.value : !0),
191
+ "aria-label": F ?? (M && !B ? z("common.loading") : void 0)
192
+ }), [u.value ? r(T, null, [r("div", {
193
+ ref: h,
186
194
  class: a.element("children"),
187
- "aria-hidden": l.value ? "true" : void 0,
188
- inert: l.value ? "" : void 0
189
- }, [(L = i.default) == null ? void 0 : L.call(i)]), l.value && r("div", {
195
+ "aria-hidden": o.value ? "true" : void 0,
196
+ inert: o.value ? "" : void 0
197
+ }, [(S = i.default) == null ? void 0 : S.call(i)]), o.value && r("div", {
190
198
  class: a.element("mask")
191
199
  }, [r("div", {
192
200
  class: a.element("mask--icon")
193
- }, [p()])])]) : p()]);
201
+ }, [y()])])]) : y()]);
194
202
  };
195
203
  }
196
204
  });
197
205
  export {
198
- Y as default
206
+ Z as default
199
207
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, getCurrentInstance as p, ref as g, watch as h, onMounted as a, onBeforeUnmount as I, cloneVNode as z } from "vue";
2
- import l from "../../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
+ import l from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
3
3
  import { getFirstComponent as y } from "../../_utils/vue-eco.js";
4
4
  const $ = /* @__PURE__ */ d({
5
5
  name: "VirtualListItem",