st-comp 0.0.173 → 0.0.175

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 (76) hide show
  1. package/es/ChartLayout.js +3 -3
  2. package/es/Dialog.js +14 -14
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +337 -817
  5. package/es/Kline.js +16 -16
  6. package/es/KlineBasic.js +26 -26
  7. package/es/KlineConfig.cjs +1 -1
  8. package/es/KlineConfig.js +41 -40
  9. package/es/KlineNew.js +14 -14
  10. package/es/KlinePlus.js +17 -17
  11. package/es/Pagination.js +19 -19
  12. package/es/PasswordPrompt.js +3 -3
  13. package/es/Table.js +21 -21
  14. package/es/User.js +39 -39
  15. package/es/VarSelectDialog.cjs +2 -2
  16. package/es/VarSelectDialog.js +173 -169
  17. package/es/VarietySearch.cjs +6 -6
  18. package/es/VarietySearch.js +1055 -1033
  19. package/es/VirtualTable.js +494 -494
  20. package/es/{_initCloneObject-a9305c1e.js → _initCloneObject-da90eef0.js} +3 -3
  21. package/es/{base-4bcd2756.js → base-d9284bf0.js} +23 -23
  22. package/es/{castArray-681d750b.js → castArray-b0ab0165.js} +1 -1
  23. package/es/{config-provider-93846ae3.js → config-provider-f0151e9f.js} +10 -10
  24. package/es/{debounce-51046b06.js → debounce-3cec4646.js} +1 -1
  25. package/es/{dropdown-65e74de8.js → dropdown-82b80e8b.js} +6 -6
  26. package/es/{el-button-d39472d3.js → el-button-34665425.js} +9 -9
  27. package/es/{el-dialog-f45ec2a1.js → el-dialog-a412484e.js} +17 -17
  28. package/es/{el-divider-7cf13678.js → el-divider-fd2b4e2e.js} +4 -4
  29. package/es/{el-empty-64b2ea8a.js → el-empty-412fc297.js} +2 -2
  30. package/es/{el-form-item-b31e7a98.js → el-form-item-668ba024.js} +65 -65
  31. package/es/{el-input-42315ac4.js → el-input-22e66e37.js} +22 -22
  32. package/es/{el-input-number-ebd64e22.js → el-input-number-481e21c5.js} +26 -26
  33. package/es/{el-loading-5d29f26d.js → el-loading-d4e403ab.js} +5 -5
  34. package/es/{el-menu-item-d62e0a3f.js → el-menu-item-404c10e5.js} +8 -8
  35. package/es/el-message-box-41f39f6d.js +558 -0
  36. package/es/el-message-box-6694f827.cjs +1 -0
  37. package/es/{el-message-bd1d2c82.js → el-message-ef506caa.js} +24 -24
  38. package/es/{el-overlay-690b50aa.js → el-overlay-4a9fa4e1.js} +30 -30
  39. package/es/{el-popconfirm-88bbd066.js → el-popconfirm-7b9183aa.js} +6 -6
  40. package/es/{el-popper-85365d5b.js → el-popper-e73466eb.js} +5 -5
  41. package/es/{el-scrollbar-bcf29780.js → el-scrollbar-45318df0.js} +8 -8
  42. package/es/el-segmented-3ba6d664.cjs +1 -0
  43. package/es/el-segmented-41820018.js +135 -0
  44. package/es/{el-select-d3bce4d1.js → el-select-d7a00294.js} +13 -13
  45. package/es/{el-table-column-9691b26d.js → el-table-column-a2d0c635.js} +122 -122
  46. package/es/{el-tag-6036f51c.js → el-tag-7f391090.js} +32 -32
  47. package/es/{index-d3c37134.js → index-1c41bd56.js} +3 -3
  48. package/es/index-3120be08.js +14 -0
  49. package/es/{index-fbe85773.js → index-85a32a00.js} +15 -15
  50. package/es/{index-21fb27eb.js → index-94f38460.js} +19 -19
  51. package/es/{index-ef7c4392.js → index-a8e9ec0f.js} +23 -23
  52. package/es/{index-cb8157f2.js → index-d577b81b.js} +2 -2
  53. package/es/{index-8ee89b40.js → index-d99fdc6d.js} +8 -8
  54. package/es/{index-3425f2f0.js → index-ee1cebbc.js} +5 -5
  55. package/es/{raf-36faa519.js → raf-bfbf42e4.js} +1 -1
  56. package/es/{scroll-0277d145.js → scroll-e3cb691f.js} +2 -2
  57. package/es/style.css +1 -1
  58. package/es/{use-form-common-props-54c31983.js → use-form-common-props-cc347a83.js} +36 -36
  59. package/es/{use-global-config-946f61a4.js → use-global-config-c7f0a7e3.js} +3 -3
  60. package/es/validator-10fa54fe.js +5 -0
  61. package/es/validator-af488a9a.cjs +1 -0
  62. package/es/{vnode-dfc92f20.js → vnode-6be33bb1.js} +1 -1
  63. package/es/{zh-cn-5066f5e9.js → zh-cn-d883afa8.js} +2 -2
  64. package/lib/bundle.js +1 -1
  65. package/lib/bundle.umd.cjs +172 -172
  66. package/lib/{index-c35886c2.js → index-d3f4c395.js} +11045 -11020
  67. package/lib/{python-37ee7d62.js → python-0128b724.js} +1 -1
  68. package/lib/style.css +1 -1
  69. package/package.json +1 -1
  70. package/packages/VarSelectDialog/index.vue +5 -1
  71. package/packages/VarietySearch/components/FactorScreen/index.vue +271 -254
  72. package/es/el-checkbox-group-020b49f5.cjs +0 -1
  73. package/es/el-checkbox-group-779f353a.js +0 -67
  74. package/es/el-segmented-84707138.js +0 -136
  75. package/es/el-segmented-bccd9f2a.cjs +0 -1
  76. package/es/index-c45ac024.js +0 -14
@@ -1,12 +1,12 @@
1
- import { defineComponent as B, computed as m, openBlock as v, createElementBlock as z, normalizeClass as C, unref as s, renderSlot as I, createVNode as O, Transition as Z, withCtx as E, withDirectives as j, createElementVNode as L, normalizeStyle as q, createTextVNode as le, toDisplayString as G, vShow as W, shallowReactive as ie, ref as $, onMounted as ue, watch as de, createBlock as b, createCommentVNode as S, resolveDynamicComponent as ce, Fragment as pe, withModifiers as fe, isVNode as J, render as H } from "vue";
2
- import { b as me, u as ge } from "./el-scrollbar-bcf29780.js";
3
- import { k as K, m as N, u as ye, v as T, q as A, _ as Q, w as ve, b as X, l as Ce, a as R, i as _, e as he, f as be, s as V, G as Te } from "./base-4bcd2756.js";
4
- import { E as P } from "./index-3425f2f0.js";
5
- import { i as we, a as U, T as Se } from "./use-form-common-props-54c31983.js";
1
+ import { defineComponent as B, computed as m, openBlock as v, createElementBlock as z, normalizeClass as C, unref as s, renderSlot as I, createVNode as O, Transition as Z, withCtx as E, withDirectives as j, createElementVNode as L, normalizeStyle as G, createTextVNode as le, toDisplayString as q, vShow as W, shallowReactive as ie, ref as $, onMounted as ue, watch as de, createBlock as b, createCommentVNode as S, resolveDynamicComponent as ce, Fragment as pe, withModifiers as fe, isVNode as J, render as F } from "vue";
2
+ import { b as me, u as ge } from "./el-scrollbar-45318df0.js";
3
+ import { b as K, d as N, u as ye, m as T, k as H, _ as Q, w as ve, p as X, c as Ce, i as R, y as _, A as he, n as be, l as V, G as Te } from "./base-d9284bf0.js";
4
+ import { E as P } from "./index-ee1cebbc.js";
5
+ import { i as we, g as U, T as Se } from "./use-form-common-props-cc347a83.js";
6
6
  import { m as Ee } from "./typescript-7ae59c4c.js";
7
- import { u as Ne } from "./use-global-config-946f61a4.js";
8
- import { E as Be } from "./index-21fb27eb.js";
9
- import { m as c } from "./config-provider-93846ae3.js";
7
+ import { u as Ne } from "./use-global-config-c7f0a7e3.js";
8
+ import { E as Be } from "./index-94f38460.js";
9
+ import { m as c } from "./config-provider-f0151e9f.js";
10
10
  const Me = K({
11
11
  value: {
12
12
  type: [String, Number],
@@ -49,8 +49,8 @@ const Me = K({
49
49
  return [
50
50
  {
51
51
  backgroundColor: e.color,
52
- marginRight: A(-((u = (r = e.offset) == null ? void 0 : r[0]) != null ? u : 0)),
53
- marginTop: A((g = (f = e.offset) == null ? void 0 : f[1]) != null ? g : 0)
52
+ marginRight: H(-((u = (r = e.offset) == null ? void 0 : r[0]) != null ? u : 0)),
53
+ marginTop: H((g = (f = e.offset) == null ? void 0 : f[1]) != null ? g : 0)
54
54
  },
55
55
  (y = e.badgeStyle) != null ? y : {}
56
56
  ];
@@ -75,10 +75,10 @@ const Me = K({
75
75
  s(a).is("hide-zero", !r.showZero && e.value === 0),
76
76
  r.badgeClass
77
77
  ]),
78
- style: q(s(p))
78
+ style: G(s(p))
79
79
  }, [
80
80
  I(r.$slots, "content", { value: s(n) }, () => [
81
- le(G(s(n)), 1)
81
+ le(q(s(n)), 1)
82
82
  ])
83
83
  ], 6), [
84
84
  [W, !r.hidden && (s(n) || r.isDot || r.$slots.content)]
@@ -182,10 +182,10 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
182
182
  }, De = (o) => {
183
183
  const { prev: t } = Oe(o);
184
184
  return t ? t.vm.exposed.bottom.value : 0;
185
- }, xe = (o, t) => d.findIndex((a) => a.id === o) > 0 ? 16 : t, Fe = B({
185
+ }, xe = (o, t) => d.findIndex((a) => a.id === o) > 0 ? 16 : t, Ae = B({
186
186
  name: "ElMessage"
187
- }), He = /* @__PURE__ */ B({
188
- ...Fe,
187
+ }), Fe = /* @__PURE__ */ B({
188
+ ...Ae,
189
189
  props: Le,
190
190
  emits: _e,
191
191
  setup(o, { expose: t }) {
@@ -203,7 +203,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
203
203
  w();
204
204
  }, e.duration));
205
205
  }
206
- function F() {
206
+ function A() {
207
207
  M == null || M();
208
208
  }
209
209
  function w() {
@@ -215,7 +215,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
215
215
  return ue(() => {
216
216
  k(), u(), g.value = !0;
217
217
  }), de(() => e.repeatNum, () => {
218
- F(), k();
218
+ A(), k();
219
219
  }), me(document, "keydown", re), ge(f, () => {
220
220
  y.value = f.value.getBoundingClientRect().height;
221
221
  }), t({
@@ -241,9 +241,9 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
241
241
  s(n).is("plain", l.plain),
242
242
  l.customClass
243
243
  ]),
244
- style: q(s(ae)),
244
+ style: G(s(ae)),
245
245
  role: "alert",
246
- onMouseenter: F,
246
+ onMouseenter: A,
247
247
  onMouseleave: k
248
248
  }, [
249
249
  l.repeatNum > 1 ? (v(), b(s(Ie), {
@@ -271,7 +271,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
271
271
  ], 2112)) : (v(), z("p", {
272
272
  key: 0,
273
273
  class: C(s(n).e("content"))
274
- }, G(l.message), 3))
274
+ }, q(l.message), 3))
275
275
  ]),
276
276
  l.showClose ? (v(), b(s(P), {
277
277
  key: 2,
@@ -291,7 +291,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
291
291
  }, 8, ["name", "onBeforeLeave", "onAfterLeave"]));
292
292
  }
293
293
  });
294
- var Ae = /* @__PURE__ */ Q(He, [["__file", "message.vue"]]);
294
+ var He = /* @__PURE__ */ Q(Fe, [["__file", "message.vue"]]);
295
295
  let Re = 1;
296
296
  const ee = (o) => {
297
297
  const t = !o || R(o) || J(o) || _(o) ? { message: o } : o, e = {
@@ -320,12 +320,12 @@ const ee = (o) => {
320
320
  n == null || n(), Ve(y);
321
321
  },
322
322
  onDestroy: () => {
323
- H(null, p);
323
+ F(null, p);
324
324
  }
325
- }, u = O(Ae, r, _(r.message) || J(r.message) ? {
325
+ }, u = O(He, r, _(r.message) || J(r.message) ? {
326
326
  default: _(r.message) ? r.message : () => r.message
327
327
  } : null);
328
- u.appContext = e || h._context, H(u, p), o.appendChild(p.firstElementChild);
328
+ u.appContext = e || h._context, F(u, p), o.appendChild(p.firstElementChild);
329
329
  const f = u.component, y = {
330
330
  id: a,
331
331
  vnode: u,
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Z, createVNode as G, renderSlot as T, h as K, isRef as J, computed as w, watch as B, onScopeDispose as Q, getCurrentInstance as X, ref as p, nextTick as R, onMounted as ee } from "vue";
2
- import { N as x, k as E, m as C, u as F, s as oe, t as te, b as L, j as P, g as ne, y as le, r as se, q as ae, D as ue, l as I } from "./base-4bcd2756.js";
3
- import { P as k } from "./vnode-dfc92f20.js";
4
- import { i as ie, n as re } from "./use-form-common-props-54c31983.js";
5
- import { U as N, i as ce } from "./index-21fb27eb.js";
6
- import { g as de } from "./scroll-0277d145.js";
7
- import { u as D } from "./index-ef7c4392.js";
8
- import { a as fe } from "./use-global-config-946f61a4.js";
2
+ import { N as x, b as E, d as C, u as F, l as oe, t as te, p as L, h as P, a as ne, q as le, r as se, k as ae, D as ue, c as I } from "./base-d9284bf0.js";
3
+ import { P as k } from "./vnode-6be33bb1.js";
4
+ import { i as ie, n as ce } from "./use-form-common-props-cc347a83.js";
5
+ import { U as N, i as re } from "./index-94f38460.js";
6
+ import { g as de } from "./scroll-e3cb691f.js";
7
+ import { a as D } from "./index-a8e9ec0f.js";
8
+ import { a as fe } from "./use-global-config-c7f0a7e3.js";
9
9
  const me = (e) => {
10
10
  if (!e)
11
11
  return { onClick: x, onMousedown: x, onMouseup: x };
@@ -43,7 +43,7 @@ var Ce = Z({
43
43
  setup(e, { slots: o, emit: s }) {
44
44
  const i = F(pe), n = (d) => {
45
45
  s("click", d);
46
- }, { onClick: a, onMousedown: t, onMouseup: c } = me(e.customMaskEvent ? void 0 : n);
46
+ }, { onClick: a, onMousedown: t, onMouseup: r } = me(e.customMaskEvent ? void 0 : n);
47
47
  return () => e.mask ? G("div", {
48
48
  class: [i.b(), e.overlayClass],
49
49
  style: {
@@ -51,7 +51,7 @@ var Ce = Z({
51
51
  },
52
52
  onClick: a,
53
53
  onMousedown: t,
54
- onMouseup: c
54
+ onMouseup: r
55
55
  }, [T(o, "default")], k.STYLE | k.CLASS | k.PROPS, ["onClick", "onMouseup", "onMousedown"]) : K("div", {
56
56
  class: e.overlayClass,
57
57
  style: {
@@ -159,29 +159,29 @@ const Me = Ce, be = E({
159
159
  if (!L || P(document.body, i.value))
160
160
  return;
161
161
  let n = 0, a = !1, t = "0";
162
- const c = () => {
162
+ const r = () => {
163
163
  setTimeout(() => {
164
164
  typeof document > "u" || a && document && (document.body.style.width = t, se(document.body, i.value));
165
165
  }, 200);
166
166
  };
167
167
  B(e, (d) => {
168
168
  if (!d) {
169
- c();
169
+ r();
170
170
  return;
171
171
  }
172
172
  a = !P(document.body, i.value), a && (t = document.body.style.width, ne(document.body, i.value)), n = de(s.namespace.value);
173
173
  const u = document.documentElement.clientHeight < document.body.scrollHeight, f = le(document.body, "overflowY");
174
174
  n > 0 && (u || f === "scroll") && a && (document.body.style.width = `calc(100% - ${n}px)`);
175
- }), Q(() => c());
175
+ }), Q(() => r());
176
176
  }, De = (e, o) => {
177
177
  var s;
178
- const n = X().emit, { nextZIndex: a } = re();
178
+ const n = X().emit, { nextZIndex: a } = ce();
179
179
  let t = "";
180
- const c = D(), d = D(), u = p(!1), f = p(!1), v = p(!1), b = p((s = e.zIndex) != null ? s : a());
180
+ const r = D(), d = D(), u = p(!1), f = p(!1), v = p(!1), b = p((s = e.zIndex) != null ? s : a());
181
181
  let m, y;
182
182
  const A = fe("namespace", ue), z = w(() => {
183
- const l = {}, r = `--${A.value}-dialog`;
184
- return e.fullscreen || (e.top && (l[`${r}-margin-top`] = e.top), e.width && (l[`${r}-width`] = ae(e.width))), l;
183
+ const l = {}, c = `--${A.value}-dialog`;
184
+ return e.fullscreen || (e.top && (l[`${c}-margin-top`] = e.top), e.width && (l[`${c}-width`] = ae(e.width))), l;
185
185
  }), V = w(() => e.alignCenter ? { display: "flex" } : {});
186
186
  function H() {
187
187
  n("opened");
@@ -199,8 +199,8 @@ const Me = Ce, be = E({
199
199
  m == null || m(), y == null || y(), e.closeDelay && e.closeDelay > 0 ? { stop: y } = I(() => S(), e.closeDelay) : S();
200
200
  }
201
201
  function h() {
202
- function l(r) {
203
- r || (f.value = !0, u.value = !1);
202
+ function l(c) {
203
+ c || (f.value = !0, u.value = !1);
204
204
  }
205
205
  e.beforeClose ? e.beforeClose(l) : g();
206
206
  }
@@ -216,19 +216,19 @@ const Me = Ce, be = E({
216
216
  function $() {
217
217
  n("openAutoFocus");
218
218
  }
219
- function j() {
219
+ function W() {
220
220
  n("closeAutoFocus");
221
221
  }
222
- function W(l) {
223
- var r;
224
- ((r = l.detail) == null ? void 0 : r.focusReason) === "pointer" && l.preventDefault();
222
+ function j(l) {
223
+ var c;
224
+ ((c = l.detail) == null ? void 0 : c.focusReason) === "pointer" && l.preventDefault();
225
225
  }
226
226
  e.lockScroll && ge(u);
227
227
  function q() {
228
228
  e.closeOnPressEscape && h();
229
229
  }
230
230
  return B(() => e.modelValue, (l) => {
231
- l ? (f.value = !1, O(), v.value = !0, b.value = ce(e.zIndex) ? a() : b.value++, R(() => {
231
+ l ? (f.value = !1, O(), v.value = !0, b.value = re(e.zIndex) ? a() : b.value++, R(() => {
232
232
  n("open"), o.value && (o.value.parentElement.scrollTop = 0, o.value.parentElement.scrollLeft = 0, o.value.scrollTop = 0);
233
233
  })) : u.value && g();
234
234
  }), B(() => e.fullscreen, (l) => {
@@ -244,10 +244,10 @@ const Me = Ce, be = E({
244
244
  close: g,
245
245
  doClose: S,
246
246
  onOpenAutoFocus: $,
247
- onCloseAutoFocus: j,
247
+ onCloseAutoFocus: W,
248
248
  onCloseRequested: q,
249
- onFocusoutPrevented: W,
250
- titleId: c,
249
+ onFocusoutPrevented: j,
250
+ titleId: r,
251
251
  bodyId: d,
252
252
  closed: f,
253
253
  style: z,
@@ -259,11 +259,11 @@ const Me = Ce, be = E({
259
259
  };
260
260
  export {
261
261
  Me as E,
262
- me as a,
263
- Ie as b,
264
- De as c,
262
+ Ie as a,
263
+ ge as b,
264
+ me as c,
265
265
  Pe as d,
266
266
  be as e,
267
267
  Te as f,
268
- ge as u
268
+ De as u
269
269
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as S, ref as x, computed as p, openBlock as a, createBlock as c, unref as t, mergeProps as z, withCtx as r, createElementVNode as f, normalizeClass as l, normalizeStyle as I, resolveDynamicComponent as V, createCommentVNode as g, createTextVNode as m, toDisplayString as u, renderSlot as C, createVNode as E } from "vue";
2
- import { b, E as k } from "./el-button-d39472d3.js";
3
- import { q as _, E as q } from "./index-3425f2f0.js";
4
- import { b as P, E as A } from "./el-popper-85365d5b.js";
5
- import { k as D, u as M, q as R, _ as L, w as U } from "./base-4bcd2756.js";
6
- import { i as j } from "./use-form-common-props-54c31983.js";
7
- import { a as F } from "./index-ef7c4392.js";
2
+ import { b, E as k } from "./el-button-34665425.js";
3
+ import { q as _, E as q } from "./index-ee1cebbc.js";
4
+ import { b as P, E as A } from "./el-popper-e73466eb.js";
5
+ import { b as D, u as M, k as R, _ as L, w as U } from "./base-d9284bf0.js";
6
+ import { i as j } from "./use-form-common-props-cc347a83.js";
7
+ import { u as F } from "./index-a8e9ec0f.js";
8
8
  const G = D({
9
9
  title: String,
10
10
  confirmButtonText: String,
@@ -1,9 +1,9 @@
1
- import { l as nt, r as _e, f as yr, b as Tt, c as rt, m as wr, d as ot, S as Jt, L as Ot, n as Ye, M as Tr, o as Re, p as _n, t as Or, k as Er, q as Sr, u as Ar } from "./index-ef7c4392.js";
2
- import { q as Xt, h as Rn, r as Cr, n as Pr, m as Yt } from "./use-form-common-props-54c31983.js";
1
+ import { l as nt, r as _e, f as yr, b as Tt, c as rt, m as wr, d as ot, S as Jt, L as Ot, n as Ye, M as Tr, o as Re, p as _n, t as Or, k as Er, q as Sr, a as Ar } from "./index-a8e9ec0f.js";
2
+ import { q as Xt, h as Rn, r as Cr, n as Pr, m as Yt } from "./use-form-common-props-cc347a83.js";
3
3
  import { defineComponent as I, inject as ae, ref as x, computed as P, onBeforeUnmount as Me, toRef as pe, openBlock as z, createBlock as re, Transition as Mn, unref as d, withCtx as Z, withDirectives as Et, createElementVNode as pt, normalizeClass as de, normalizeStyle as Qe, vShow as jn, createElementBlock as Oe, Fragment as Bn, createVNode as ge, watch as L, nextTick as Qt, provide as Ee, reactive as xr, onActivated as _r, onMounted as He, onUpdated as Rr, resolveDynamicComponent as Mr, renderSlot as ie, createCommentVNode as Ne, cloneVNode as jr, Text as Br, Comment as kr, mergeProps as St, shallowRef as $r, getCurrentInstance as Ir, onBeforeMount as Lr, readonly as Fr, onDeactivated as Nr, toDisplayString as Dr } from "vue";
4
- import { B as zr, r as Hr, b as dt, G as ye, u as Wr, d as kn, o as Ur } from "./el-scrollbar-bcf29780.js";
5
- import { k as K, _ as ee, u as me, t as Kr, b as Te, m as M, v as se, q as en, c as $n, f as et, w as At, N as vt, e as $e, n as In, H as tn, I as qr, J as Ln, i as Ze, s as Fn, o as Vr, K as Gr } from "./base-4bcd2756.js";
6
- import { c as nn, i as Zr, a as Jr, E as ut, b as Xr, d as Yr } from "./index-21fb27eb.js";
4
+ import { B as zr, r as Hr, b as dt, G as ye, u as Wr, d as kn, o as Ur } from "./el-scrollbar-45318df0.js";
5
+ import { b as K, _ as ee, u as me, t as Kr, p as Te, d as M, m as se, k as en, e as $n, n as et, w as At, N as vt, A as $e, f as In, H as tn, I as qr, J as Ln, y as Ze, l as Fn, g as Vr, K as Gr } from "./base-d9284bf0.js";
6
+ import { c as nn, i as Zr, b as Jr, E as ut, a as Xr, d as Yr } from "./index-94f38460.js";
7
7
  function Qr(e) {
8
8
  return e;
9
9
  }
@@ -1,5 +1,5 @@
1
- import { M as Q, O as $, P as j, I as b, Q as R, b as T, E as W, R as x, S as C } from "./base-4bcd2756.js";
2
- import { watch as y, ref as L } from "vue";
1
+ import { M as Q, O as $, P as j, I as y, Q as R, p as T, E as W, R as x, S as C } from "./base-d9284bf0.js";
2
+ import { watch as b, ref as L } from "vue";
3
3
  function v(e) {
4
4
  var n;
5
5
  const t = j(e);
@@ -13,12 +13,12 @@ function m(...e) {
13
13
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
14
14
  const c = [], i = () => {
15
15
  c.forEach((l) => l()), c.length = 0;
16
- }, u = (l, f, o, s) => (l.addEventListener(f, o, s), () => l.removeEventListener(f, o, s)), d = y(() => [v(n), j(a)], ([l, f]) => {
16
+ }, u = (l, f, o, s) => (l.addEventListener(f, o, s), () => l.removeEventListener(f, o, s)), d = b(() => [v(n), j(a)], ([l, f]) => {
17
17
  i(), l && c.push(...t.flatMap((o) => r.map((s) => u(l, o, s, f))));
18
18
  }, { immediate: !0, flush: "post" }), O = () => {
19
19
  d(), i();
20
20
  };
21
- return b(O), O;
21
+ return y(O), O;
22
22
  }
23
23
  let h = !1;
24
24
  function D(e, n, t = {}) {
@@ -84,12 +84,12 @@ function Z(e, n, t = {}) {
84
84
  let i;
85
85
  const u = z(() => a && "ResizeObserver" in a), d = () => {
86
86
  i && (i.disconnect(), i = void 0);
87
- }, O = y(() => v(e), (f) => {
87
+ }, O = b(() => v(e), (f) => {
88
88
  d(), u.value && a && f && (i = new ResizeObserver(n), i.observe(f, c));
89
89
  }, { immediate: !0, flush: "post" }), l = () => {
90
90
  d(), O();
91
91
  };
92
- return b(l), {
92
+ return y(l), {
93
93
  isSupported: u,
94
94
  stop: l
95
95
  };
@@ -108,12 +108,12 @@ function ee(e, n, t = {}) {
108
108
  let i;
109
109
  const u = z(() => a && "MutationObserver" in a), d = () => {
110
110
  i && (i.disconnect(), i = void 0);
111
- }, O = y(() => v(e), (f) => {
111
+ }, O = b(() => v(e), (f) => {
112
112
  d(), u.value && a && f && (i = new MutationObserver(n), i.observe(f, c));
113
113
  }, { immediate: !0 }), l = () => {
114
114
  d(), O();
115
115
  };
116
- return b(l), {
116
+ return y(l), {
117
117
  isSupported: u,
118
118
  stop: l
119
119
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),S=require("./el-scrollbar-8bf765f2.cjs"),s=require("./base-bdc10baa.cjs"),u=require("./use-form-common-props-592797e2.cjs"),L=require("./el-popper-14a9d493.cjs"),m=require("./index-d94bae37.cjs"),A=require("./index-02ca0096.cjs"),D=s.buildProps({direction:{type:s.definePropType(String),default:"horizontal"},options:{type:s.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:u.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...L.useAriaProps(["ariaLabel"])}),F={[m.UPDATE_MODEL_EVENT]:a=>s.isString(a)||s.isNumber(a)||s.isBoolean(a),[m.CHANGE_EVENT]:a=>s.isString(a)||s.isNumber(a)||s.isBoolean(a)},O=e.defineComponent({name:"ElSegmented"}),$=e.defineComponent({...O,props:D,emits:F,setup(a,{emit:g}){const l=a,o=s.useNamespace("segmented"),y=A.useId(),C=u.useFormSize(),I=u.useFormDisabled(),{formItem:c}=u.useFormItem(),{inputId:V,isLabeledByFormItem:h}=u.useFormItemInputId(l,{formItemContext:c}),d=e.ref(null),_=S.useActiveElement(),n=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),N=t=>{const r=f(t);g(m.UPDATE_MODEL_EVENT,r),g(m.CHANGE_EVENT,r)},f=t=>s.isObject(t)?t.value:t,k=t=>s.isObject(t)?t.label:t,p=t=>!!(I.value||s.isObject(t)&&t.disabled),v=t=>l.modelValue===f(t),B=t=>l.options.find(r=>f(r)===t),z=t=>[o.e("item"),o.is("selected",v(t)),o.is("disabled",p(t))],b=()=>{if(!d.value)return;const t=d.value.querySelector(".is-selected"),r=d.value.querySelector(".is-selected input");if(!t||!r){n.width=0,n.height=0,n.translateX=0,n.translateY=0,n.focusVisible=!1;return}const i=t.getBoundingClientRect();n.isInit=!0,l.direction==="vertical"?(n.height=i.height,n.translateY=t.offsetTop):(n.width=i.width,n.translateX=t.offsetLeft);try{n.focusVisible=r.matches(":focus-visible")}catch{}},P=e.computed(()=>[o.b(),o.m(C.value),o.is("block",l.block)]),T=e.computed(()=>({width:l.direction==="vertical"?"100%":`${n.width}px`,height:l.direction==="vertical"?`${n.height}px`:"100%",transform:l.direction==="vertical"?`translateY(${n.translateY}px)`:`translateX(${n.translateX}px)`,display:n.isInit?"block":"none"})),q=e.computed(()=>[o.e("item-selected"),o.is("disabled",p(B(l.modelValue))),o.is("focus-visible",n.focusVisible)]),w=e.computed(()=>l.name||y.value);return S.useResizeObserver(d,b),e.watch(_,b),e.watch(()=>l.modelValue,()=>{var t;b(),l.validateEvent&&((t=c==null?void 0:c.validate)==null||t.call(c,"change").catch(r=>s.debugWarn(r)))},{flush:"post"}),(t,r)=>t.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(V),ref_key:"segmentedRef",ref:d,class:e.normalizeClass(e.unref(P)),role:"radiogroup","aria-label":e.unref(h)?void 0:t.ariaLabel||"segmented","aria-labelledby":e.unref(h)?e.unref(c).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(o).e("group"),e.unref(o).m(l.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(T)),class:e.normalizeClass(e.unref(q))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(i,E)=>(e.openBlock(),e.createElementBlock("label",{key:E,class:e.normalizeClass(z(i))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(o).e("item-input")),type:"radio",name:e.unref(w),disabled:p(i),checked:v(i),onChange:Y=>N(i)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("item-label"))},[e.renderSlot(t.$slots,"default",{item:i},()=>[e.createTextVNode(e.toDisplayString(k(i)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var x=s._export_sfc($,[["__file","segmented.vue"]]);const X=s.withInstall(x);exports.ElSegmented=X;
@@ -0,0 +1,135 @@
1
+ import { defineComponent as B, ref as U, reactive as j, computed as u, watch as _, openBlock as b, createElementBlock as h, unref as l, normalizeClass as r, createElementVNode as m, normalizeStyle as G, Fragment as H, renderList as M, renderSlot as W, createTextVNode as J, toDisplayString as K, createCommentVNode as Q } from "vue";
2
+ import { a as Z, u as ee } from "./el-scrollbar-45318df0.js";
3
+ import { b as te, d as V, i as C, m as k, l as w, u as se, n as ae, _ as le, e as v, w as ne } from "./base-d9284bf0.js";
4
+ import { d as oe, a as ie, c as re, u as de, b as ce } from "./use-form-common-props-cc347a83.js";
5
+ import { u as ue } from "./el-popper-e73466eb.js";
6
+ import { U as N, C as z } from "./index-94f38460.js";
7
+ import { a as me } from "./index-a8e9ec0f.js";
8
+ const pe = te({
9
+ direction: {
10
+ type: V(String),
11
+ default: "horizontal"
12
+ },
13
+ options: {
14
+ type: V(Array),
15
+ default: () => []
16
+ },
17
+ modelValue: {
18
+ type: [String, Number, Boolean],
19
+ default: void 0
20
+ },
21
+ block: Boolean,
22
+ size: oe,
23
+ disabled: Boolean,
24
+ validateEvent: {
25
+ type: Boolean,
26
+ default: !0
27
+ },
28
+ id: String,
29
+ name: String,
30
+ ...ue(["ariaLabel"])
31
+ }), fe = {
32
+ [N]: (o) => C(o) || k(o) || w(o),
33
+ [z]: (o) => C(o) || k(o) || w(o)
34
+ }, ge = B({
35
+ name: "ElSegmented"
36
+ }), be = /* @__PURE__ */ B({
37
+ ...ge,
38
+ props: pe,
39
+ emits: fe,
40
+ setup(o, { emit: y }) {
41
+ const s = o, a = se("segmented"), L = me(), F = ie(), P = re(), { formItem: d } = de(), { inputId: T, isLabeledByFormItem: S } = ce(s, {
42
+ formItemContext: d
43
+ }), c = U(null), $ = Z(), t = j({
44
+ isInit: !1,
45
+ width: 0,
46
+ height: 0,
47
+ translateX: 0,
48
+ translateY: 0,
49
+ focusVisible: !1
50
+ }), x = (e) => {
51
+ const n = p(e);
52
+ y(N, n), y(z, n);
53
+ }, p = (e) => v(e) ? e.value : e, A = (e) => v(e) ? e.label : e, f = (e) => !!(P.value || v(e) && e.disabled), I = (e) => s.modelValue === p(e), D = (e) => s.options.find((n) => p(n) === e), X = (e) => [
54
+ a.e("item"),
55
+ a.is("selected", I(e)),
56
+ a.is("disabled", f(e))
57
+ ], g = () => {
58
+ if (!c.value)
59
+ return;
60
+ const e = c.value.querySelector(".is-selected"), n = c.value.querySelector(".is-selected input");
61
+ if (!e || !n) {
62
+ t.width = 0, t.height = 0, t.translateX = 0, t.translateY = 0, t.focusVisible = !1;
63
+ return;
64
+ }
65
+ const i = e.getBoundingClientRect();
66
+ t.isInit = !0, s.direction === "vertical" ? (t.height = i.height, t.translateY = e.offsetTop) : (t.width = i.width, t.translateX = e.offsetLeft);
67
+ try {
68
+ t.focusVisible = n.matches(":focus-visible");
69
+ } catch {
70
+ }
71
+ }, Y = u(() => [
72
+ a.b(),
73
+ a.m(F.value),
74
+ a.is("block", s.block)
75
+ ]), O = u(() => ({
76
+ width: s.direction === "vertical" ? "100%" : `${t.width}px`,
77
+ height: s.direction === "vertical" ? `${t.height}px` : "100%",
78
+ transform: s.direction === "vertical" ? `translateY(${t.translateY}px)` : `translateX(${t.translateX}px)`,
79
+ display: t.isInit ? "block" : "none"
80
+ })), R = u(() => [
81
+ a.e("item-selected"),
82
+ a.is("disabled", f(D(s.modelValue))),
83
+ a.is("focus-visible", t.focusVisible)
84
+ ]), q = u(() => s.name || L.value);
85
+ return ee(c, g), _($, g), _(() => s.modelValue, () => {
86
+ var e;
87
+ g(), s.validateEvent && ((e = d == null ? void 0 : d.validate) == null || e.call(d, "change").catch((n) => ae(n)));
88
+ }, {
89
+ flush: "post"
90
+ }), (e, n) => e.options.length ? (b(), h("div", {
91
+ key: 0,
92
+ id: l(T),
93
+ ref_key: "segmentedRef",
94
+ ref: c,
95
+ class: r(l(Y)),
96
+ role: "radiogroup",
97
+ "aria-label": l(S) ? void 0 : e.ariaLabel || "segmented",
98
+ "aria-labelledby": l(S) ? l(d).labelId : void 0
99
+ }, [
100
+ m("div", {
101
+ class: r([l(a).e("group"), l(a).m(s.direction)])
102
+ }, [
103
+ m("div", {
104
+ style: G(l(O)),
105
+ class: r(l(R))
106
+ }, null, 6),
107
+ (b(!0), h(H, null, M(e.options, (i, E) => (b(), h("label", {
108
+ key: E,
109
+ class: r(X(i))
110
+ }, [
111
+ m("input", {
112
+ class: r(l(a).e("item-input")),
113
+ type: "radio",
114
+ name: l(q),
115
+ disabled: f(i),
116
+ checked: I(i),
117
+ onChange: (ve) => x(i)
118
+ }, null, 42, ["name", "disabled", "checked", "onChange"]),
119
+ m("div", {
120
+ class: r(l(a).e("item-label"))
121
+ }, [
122
+ W(e.$slots, "default", { item: i }, () => [
123
+ J(K(A(i)), 1)
124
+ ])
125
+ ], 2)
126
+ ], 2))), 128))
127
+ ], 2)
128
+ ], 10, ["id", "aria-label", "aria-labelledby"])) : Q("v-if", !0);
129
+ }
130
+ });
131
+ var he = /* @__PURE__ */ le(be, [["__file", "segmented.vue"]]);
132
+ const ke = ne(he);
133
+ export {
134
+ ke as E
135
+ };
@@ -1,17 +1,17 @@
1
1
  import { shallowRef as _t, ref as V, computed as r, inject as Se, getCurrentInstance as Ee, toRaw as xt, watch as G, defineComponent as ae, unref as Ie, reactive as ne, toRefs as Te, onBeforeUnmount as el, nextTick as F, withDirectives as le, openBlock as g, createElementBlock as I, normalizeClass as p, withModifiers as L, renderSlot as $, createElementVNode as T, toDisplayString as B, vShow as $e, onMounted as ke, normalizeStyle as he, createCommentVNode as k, watchEffect as tl, provide as lt, resolveComponent as K, resolveDirective as ll, toHandlerKey as nl, createVNode as A, withCtx as D, Fragment as Xe, renderList as Ye, createTextVNode as Je, createBlock as W, withKeys as ee, vModelText as ol, resolveDynamicComponent as Ve } from "vue";
2
- import { b as al, B as sl, u as il, a as rl, E as ul } from "./el-popper-85365d5b.js";
3
- import { t as Ze, E as dl } from "./index-d3c37134.js";
4
- import { o as cl, a as pl, E as fl } from "./index-3425f2f0.js";
5
- import { c as q, u as oe, _ as ye, o as P, d as me, E as _e, f as vl, b as ml, v as bl, i as te, F as hl, a as gl, k as Sl, m as be, w as yl, p as nt } from "./base-4bcd2756.js";
6
- import { c as z } from "./castArray-681d750b.js";
7
- import { h as Q, u as ot, a as Cl } from "./index-ef7c4392.js";
8
- import { u as H, c as Ol } from "./el-scrollbar-bcf29780.js";
9
- import { u as wl, a as Il } from "./index-fbe85773.js";
10
- import { u as Vl, c as El, o as Tl, V as $l, b as kl, f as Ml, i as xe, p as Rl } from "./use-form-common-props-54c31983.js";
11
- import { E as Dl, U as j, C as at } from "./index-21fb27eb.js";
12
- import { s as Ll } from "./scroll-0277d145.js";
13
- import { b as Bl, i as ge, C as Nl } from "./el-tag-6036f51c.js";
14
- import { t as Wl, d as Fl } from "./debounce-51046b06.js";
2
+ import { b as al, B as sl, u as il, a as rl, E as ul } from "./el-popper-e73466eb.js";
3
+ import { t as Ze, E as dl } from "./index-1c41bd56.js";
4
+ import { o as cl, a as pl, E as fl } from "./index-ee1cebbc.js";
5
+ import { e as q, u as oe, _ as ye, g as P, x as me, E as _e, n as vl, p as ml, m as bl, y as te, F as hl, i as gl, b as Sl, d as be, w as yl, j as nt } from "./base-d9284bf0.js";
6
+ import { c as z } from "./castArray-b0ab0165.js";
7
+ import { h as Q, a as ot, u as Cl } from "./index-a8e9ec0f.js";
8
+ import { u as H, c as Ol } from "./el-scrollbar-45318df0.js";
9
+ import { u as wl, a as Il } from "./index-85a32a00.js";
10
+ import { u as Vl, b as El, o as Tl, V as $l, a as kl, d as Ml, i as xe, p as Rl } from "./use-form-common-props-cc347a83.js";
11
+ import { E as Dl, U as j, C as at } from "./index-94f38460.js";
12
+ import { s as Ll } from "./scroll-e3cb691f.js";
13
+ import { b as Bl, i as ge, C as Nl } from "./el-tag-7f391090.js";
14
+ import { t as Wl, d as Fl } from "./debounce-3cec4646.js";
15
15
  var et = 1 / 0, zl = 17976931348623157e292;
16
16
  function Pl(e) {
17
17
  if (!e)