st-comp 0.0.143 → 0.0.144

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 (94) hide show
  1. package/es/ChartLayout.js +2 -2
  2. package/es/ConfigProvider.cjs +1 -1
  3. package/es/ConfigProvider.js +28 -11
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +22 -24
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +28 -27
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +14 -14
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +24 -25
  12. package/es/KlineNew.cjs +1 -1
  13. package/es/KlineNew.js +12 -12
  14. package/es/Pagination.cjs +1 -1
  15. package/es/Pagination.js +16 -16
  16. package/es/Table.cjs +1 -1
  17. package/es/Table.js +16 -16
  18. package/es/User.cjs +1 -1
  19. package/es/User.js +510 -382
  20. package/es/VarietySearch.cjs +1 -1
  21. package/es/VarietySearch.js +37 -36
  22. package/es/VirtualTable.js +10 -10
  23. package/es/_initCloneObject-14b53c6f.js +81 -0
  24. package/es/_initCloneObject-441db749.cjs +1 -0
  25. package/es/{base-3ecbc734.js → base-437d17f3.js} +25 -25
  26. package/es/{castArray-7d3fc921.js → castArray-4251bbe4.js} +1 -1
  27. package/es/{config-provider-83904b4d.js → config-provider-55482a43.js} +3 -3
  28. package/es/{debounce-7344b088.js → debounce-ac30be50.js} +14 -14
  29. package/es/{dropdown-7da44c8f.js → dropdown-634b5e27.js} +4 -4
  30. package/es/{dropdown-9a974876.cjs → dropdown-d7c59a21.cjs} +1 -1
  31. package/es/{el-button-24f79286.js → el-button-e1665717.js} +3 -3
  32. package/es/el-checkbox-group-492b95cc.cjs +1 -0
  33. package/es/el-checkbox-group-e8fece80.js +67 -0
  34. package/es/{el-empty-79c5f7a8.js → el-empty-bacc6613.js} +1 -1
  35. package/es/el-form-item-5bdffd07.cjs +12 -0
  36. package/es/el-form-item-af1855f0.js +1262 -0
  37. package/es/{el-input-6c6f5bda.cjs → el-input-23e2bac3.cjs} +1 -1
  38. package/es/{el-input-ee7db655.js → el-input-4961b99f.js} +71 -71
  39. package/es/{el-input-number-0524d787.cjs → el-input-number-40a81eb5.cjs} +1 -1
  40. package/es/{el-input-number-63c21037.js → el-input-number-610fc8ba.js} +24 -24
  41. package/es/{el-menu-item-dc904a35.cjs → el-menu-item-78b858f2.cjs} +1 -1
  42. package/es/{el-menu-item-0d92e7dc.js → el-menu-item-7d04c11a.js} +7 -7
  43. package/es/{el-message-71aa42ca.js → el-message-c3b3ac96.js} +16 -16
  44. package/es/{el-message-562e923d.cjs → el-message-d4df8136.cjs} +1 -1
  45. package/es/{el-overlay-6056c89a.js → el-overlay-12dd9b35.js} +140 -137
  46. package/es/el-overlay-bc0790a2.cjs +1 -0
  47. package/es/{el-popover-c8b2456c.js → el-popover-0aa071f2.js} +4 -4
  48. package/es/{el-popover-8735b1fa.cjs → el-popover-8a77e015.cjs} +1 -1
  49. package/es/el-popper-50100766.js +2262 -0
  50. package/es/el-popper-746070ba.cjs +1 -0
  51. package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-562d0595.js} +11 -11
  52. package/es/{el-select-5fb7d469.js → el-select-9381b156.js} +55 -55
  53. package/es/el-select-b162dffc.cjs +1 -0
  54. package/es/{el-table-column-560db3aa.js → el-table-column-55bffba5.js} +1049 -1124
  55. package/es/el-table-column-6d761fce.cjs +14 -0
  56. package/es/el-tag-985d9aff.js +279 -0
  57. package/es/el-tag-c51a6490.cjs +1 -0
  58. package/es/{index-68ee64fa.js → index-09e01b1d.js} +7 -7
  59. package/es/{index-fa07a823.js → index-0cb48e01.js} +81 -78
  60. package/es/index-39ec9741.js +112 -0
  61. package/es/index-3bf8d597.cjs +1 -0
  62. package/es/index-a387515d.cjs +1 -0
  63. package/es/index-a902a0d9.js +59 -0
  64. package/es/index-deb8de52.cjs +1 -0
  65. package/es/{raf-377cf8f5.js → raf-b128c7b7.js} +1 -1
  66. package/es/{scroll-1efa8148.js → scroll-387fcfdb.js} +1 -1
  67. package/es/style.css +1 -1
  68. package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-f377e500.js} +30 -30
  69. package/es/{vnode-cfcdab70.js → vnode-7dfd4ed5.js} +1 -1
  70. package/es/{zh-cn-4a476dc8.js → zh-cn-eb9c2820.js} +2 -2
  71. package/lib/bundle.js +1 -1
  72. package/lib/bundle.umd.cjs +141 -141
  73. package/lib/{index-a992391a.js → index-e7a32fed.js} +12131 -11996
  74. package/lib/{python-58a62aaf.js → python-ae8d98bd.js} +1 -1
  75. package/lib/style.css +1 -1
  76. package/package.json +1 -1
  77. package/packages/ConfigProvider/index.vue +28 -0
  78. package/packages/User/index.vue +87 -1
  79. package/es/el-form-item-7d32befa.cjs +0 -12
  80. package/es/el-form-item-afc3dcf2.js +0 -1324
  81. package/es/el-overlay-891dcc40.cjs +0 -1
  82. package/es/el-popper-d3eef7ed.js +0 -2093
  83. package/es/el-popper-f62316cd.cjs +0 -1
  84. package/es/el-select-928f8c19.cjs +0 -1
  85. package/es/el-table-column-dd8b62aa.cjs +0 -14
  86. package/es/el-tag-3b03d13e.cjs +0 -1
  87. package/es/el-tag-6a31c968.js +0 -450
  88. package/es/event-09e37cc8.js +0 -6
  89. package/es/event-61f49698.cjs +0 -1
  90. package/es/index-80a2b137.cjs +0 -1
  91. package/es/index-a1ecf26c.js +0 -167
  92. package/es/index-e1e83173.cjs +0 -1
  93. package/es/refs-46cf8186.js +0 -9
  94. package/es/refs-d00b710b.cjs +0 -1
package/es/User.js CHANGED
@@ -1,21 +1,30 @@
1
- import { b as Fe, d as X, _ as z, u as oe, x as Re, y as Se, e as me, w as ke, v as ve } from "./base-3ecbc734.js";
2
- import { E as _e } from "./el-button-24f79286.js";
3
- import { c as P, d as Oe, E as De, O as Pe, w as ue } from "./el-popper-d3eef7ed.js";
4
- import { b as Ne } from "./el-scrollbar-66f3bb72.js";
5
- import { defineComponent as K, ref as $, inject as y, computed as T, provide as W, readonly as Be, toRef as H, unref as E, watch as ge, renderSlot as N, resolveComponent as I, openBlock as F, createBlock as V, withCtx as p, createVNode as m, normalizeProps as Ke, guardReactiveProps as Le, getCurrentInstance as we, onBeforeUnmount as Me, createElementBlock as A, normalizeClass as j, createSlots as Ge, mergeProps as q, createCommentVNode as Z, nextTick as Ae, Fragment as ze, createElementVNode as x, withModifiers as ee, resolveDynamicComponent as Ue, normalizeStyle as Ve, createTextVNode as ce, toDisplayString as Ye } from "vue";
6
- import { E as ne, g as be, a as He, s as Je, t as We } from "./use-form-common-props-9c0363ac.js";
7
- import { V as je, A as qe, K as Qe } from "./index-8542fe24.js";
8
- import { c as Xe, E as Ze, d as xe, a as he, C as eo, b as oo, e as no, f as to, g as lo, F as ro, L as so } from "./dropdown-7da44c8f.js";
9
- import { E as R, F as io } from "./index-fa07a823.js";
10
- import { c as ao } from "./castArray-7d3fc921.js";
11
- import { c as Ie } from "./refs-46cf8186.js";
12
- import { _ as uo } from "./_plugin-vue_export-helper-dad06003.js";
13
- import "./index-68ee64fa.js";
1
+ import { b as Fe, d as oe, _ as V, u as te, x as Te, y as Re, e as ve, w as Se, v as we } from "./base-437d17f3.js";
2
+ import { d as ge, E as ke } from "./el-overlay-12dd9b35.js";
3
+ import { E as le } from "./el-button-e1665717.js";
4
+ import { E as Oe, a as De } from "./el-form-item-af1855f0.js";
5
+ import { E as Ne } from "./el-input-4961b99f.js";
6
+ import { c as K, d as Ke, E as Be, O as Le, w as pe } from "./el-popper-50100766.js";
7
+ import { b as Me } from "./el-scrollbar-562d0595.js";
8
+ import { defineComponent as U, ref as I, inject as R, computed as k, provide as Q, readonly as Ge, toRef as q, unref as P, watch as _e, renderSlot as G, resolveComponent as y, openBlock as O, createBlock as Y, withCtx as d, createVNode as u, normalizeProps as Ae, guardReactiveProps as Ve, getCurrentInstance as be, onBeforeUnmount as Ue, createElementBlock as A, normalizeClass as X, createSlots as ze, mergeProps as Z, createCommentVNode as ne, nextTick as Ye, Fragment as He, createElementVNode as j, withModifiers as x, resolveDynamicComponent as Je, normalizeStyle as qe, createTextVNode as J, toDisplayString as We, withKeys as je } from "vue";
9
+ import { E as re, g as Ee, a as Qe, s as Xe, t as Ze } from "./use-form-common-props-f377e500.js";
10
+ import { V as xe, A as eo, K as oo } from "./index-8542fe24.js";
11
+ import { E as no } from "./el-message-c3b3ac96.js";
12
+ import { _ as to } from "./_plugin-vue_export-helper-dad06003.js";
13
+ import { c as lo, E as ro, d as so, a as Ie, C as ao, b as io, e as uo, f as co, g as po, F as fo, L as mo } from "./dropdown-634b5e27.js";
14
+ import { E as D, F as vo } from "./index-0cb48e01.js";
15
+ import { c as wo } from "./castArray-4251bbe4.js";
16
+ import "./vnode-7dfd4ed5.js";
17
+ import "./scroll-387fcfdb.js";
18
+ import "./index-09e01b1d.js";
14
19
  import "./index-657047bb.js";
15
- const co = Fe({
16
- style: { type: X([String, Array, Object]) },
20
+ import "./_initCloneObject-14b53c6f.js";
21
+ import "./typescript-7ae59c4c.js";
22
+ import "./index-a902a0d9.js";
23
+ import "./config-provider-55482a43.js";
24
+ const go = Fe({
25
+ style: { type: oe([String, Array, Object]) },
17
26
  currentTabId: {
18
- type: X(String)
27
+ type: oe(String)
19
28
  },
20
29
  defaultCurrentTabId: String,
21
30
  loop: Boolean,
@@ -25,17 +34,17 @@ const co = Fe({
25
34
  default: "ltr"
26
35
  },
27
36
  orientation: {
28
- type: X(String)
37
+ type: oe(String)
29
38
  },
30
39
  onBlur: Function,
31
40
  onFocus: Function,
32
41
  onMousedown: Function
33
42
  }), {
34
- ElCollection: po,
35
- ElCollectionItem: fo,
36
- COLLECTION_INJECTION_KEY: te,
37
- COLLECTION_ITEM_INJECTION_KEY: mo
38
- } = Xe("RovingFocusGroup"), le = Symbol("elRovingFocusGroup"), Ee = Symbol("elRovingFocusGroupItem"), vo = {
43
+ ElCollection: _o,
44
+ ElCollectionItem: bo,
45
+ COLLECTION_INJECTION_KEY: se,
46
+ COLLECTION_ITEM_INJECTION_KEY: Eo
47
+ } = lo("RovingFocusGroup"), ae = Symbol("elRovingFocusGroup"), he = Symbol("elRovingFocusGroupItem"), Io = {
39
48
  ArrowLeft: "prev",
40
49
  ArrowUp: "prev",
41
50
  ArrowRight: "next",
@@ -44,104 +53,104 @@ const co = Fe({
44
53
  Home: "first",
45
54
  PageDown: "last",
46
55
  End: "last"
47
- }, _o = (e, n) => {
56
+ }, ho = (e, n) => {
48
57
  if (n !== "rtl")
49
58
  return e;
50
59
  switch (e) {
51
- case R.right:
52
- return R.left;
53
- case R.left:
54
- return R.right;
60
+ case D.right:
61
+ return D.left;
62
+ case D.left:
63
+ return D.right;
55
64
  default:
56
65
  return e;
57
66
  }
58
- }, go = (e, n, s) => {
59
- const t = _o(e.code, s);
60
- if (!(n === "vertical" && [R.left, R.right].includes(t)) && !(n === "horizontal" && [R.up, R.down].includes(t)))
61
- return vo[t];
62
- }, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]), re = (e) => {
67
+ }, Co = (e, n, f) => {
68
+ const l = ho(e.code, f);
69
+ if (!(n === "vertical" && [D.left, D.right].includes(l)) && !(n === "horizontal" && [D.up, D.down].includes(l)))
70
+ return Io[l];
71
+ }, yo = (e, n) => e.map((f, l) => e[(l + n) % e.length]), ie = (e) => {
63
72
  const { activeElement: n } = document;
64
- for (const s of e)
65
- if (s === n || (s.focus(), n !== document.activeElement))
73
+ for (const f of e)
74
+ if (f === n || (f.focus(), n !== document.activeElement))
66
75
  return;
67
- }, pe = "currentTabIdChange", fe = "rovingFocusGroup.entryFocus", bo = { bubbles: !1, cancelable: !0 }, ho = K({
76
+ }, fe = "currentTabIdChange", me = "rovingFocusGroup.entryFocus", Po = { bubbles: !1, cancelable: !0 }, $o = U({
68
77
  name: "ElRovingFocusGroupImpl",
69
78
  inheritAttrs: !1,
70
- props: co,
71
- emits: [pe, "entryFocus"],
79
+ props: go,
80
+ emits: [fe, "entryFocus"],
72
81
  setup(e, { emit: n }) {
73
- var s;
74
- const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems: r } = y(te, void 0), f = T(() => [
82
+ var f;
83
+ const l = I((f = e.currentTabId || e.defaultCurrentTabId) != null ? f : null), v = I(!1), m = I(!1), c = I(null), { getItems: s } = R(se, void 0), a = k(() => [
75
84
  {
76
85
  outline: "none"
77
86
  },
78
87
  e.style
79
- ]), v = (c) => {
80
- n(pe, c);
81
- }, g = () => {
82
- u.value = !0;
83
- }, w = P((c) => {
84
- var _;
85
- (_ = e.onMousedown) == null || _.call(e, c);
88
+ ]), b = (i) => {
89
+ n(fe, i);
90
+ }, _ = () => {
91
+ v.value = !0;
92
+ }, E = K((i) => {
93
+ var t;
94
+ (t = e.onMousedown) == null || t.call(e, i);
86
95
  }, () => {
87
- a.value = !0;
88
- }), h = P((c) => {
89
- var _;
90
- (_ = e.onFocus) == null || _.call(e, c);
91
- }, (c) => {
92
- const _ = !E(a), { target: B, currentTarget: S } = c;
93
- if (B === S && _ && !E(u)) {
94
- const L = new Event(fe, bo);
95
- if (S == null || S.dispatchEvent(L), !L.defaultPrevented) {
96
- const b = r().filter((k) => k.focusable), O = b.find((k) => k.active), C = b.find((k) => k.id === E(t)), G = [O, C, ...b].filter(Boolean).map((k) => k.ref);
97
- re(G);
96
+ m.value = !0;
97
+ }), h = K((i) => {
98
+ var t;
99
+ (t = e.onFocus) == null || t.call(e, i);
100
+ }, (i) => {
101
+ const t = !P(m), { target: C, currentTarget: $ } = i;
102
+ if (C === $ && t && !P(v)) {
103
+ const L = new Event(me, Po);
104
+ if ($ == null || $.dispatchEvent(L), !L.defaultPrevented) {
105
+ const w = s().filter((S) => S.focusable), F = w.find((S) => S.active), g = w.find((S) => S.id === P(l)), B = [F, g, ...w].filter(Boolean).map((S) => S.ref);
106
+ ie(B);
98
107
  }
99
108
  }
100
- a.value = !1;
101
- }), o = P((c) => {
102
- var _;
103
- (_ = e.onBlur) == null || _.call(e, c);
109
+ m.value = !1;
110
+ }), o = K((i) => {
111
+ var t;
112
+ (t = e.onBlur) == null || t.call(e, i);
104
113
  }, () => {
105
- u.value = !1;
106
- }), d = (...c) => {
107
- n("entryFocus", ...c);
114
+ v.value = !1;
115
+ }), p = (...i) => {
116
+ n("entryFocus", ...i);
108
117
  };
109
- W(le, {
110
- currentTabbedId: Be(t),
111
- loop: H(e, "loop"),
112
- tabIndex: T(() => E(u) ? -1 : 0),
113
- rovingFocusGroupRef: i,
114
- rovingFocusGroupRootStyle: f,
115
- orientation: H(e, "orientation"),
116
- dir: H(e, "dir"),
117
- onItemFocus: v,
118
- onItemShiftTab: g,
118
+ Q(ae, {
119
+ currentTabbedId: Ge(l),
120
+ loop: q(e, "loop"),
121
+ tabIndex: k(() => P(v) ? -1 : 0),
122
+ rovingFocusGroupRef: c,
123
+ rovingFocusGroupRootStyle: a,
124
+ orientation: q(e, "orientation"),
125
+ dir: q(e, "dir"),
126
+ onItemFocus: b,
127
+ onItemShiftTab: _,
119
128
  onBlur: o,
120
129
  onFocus: h,
121
- onMousedown: w
122
- }), ge(() => e.currentTabId, (c) => {
123
- t.value = c ?? null;
124
- }), Ne(i, fe, d);
130
+ onMousedown: E
131
+ }), _e(() => e.currentTabId, (i) => {
132
+ l.value = i ?? null;
133
+ }), Me(c, me, p);
125
134
  }
126
135
  });
127
- function Io(e, n, s, t, u, a) {
128
- return N(e.$slots, "default");
136
+ function Fo(e, n, f, l, v, m) {
137
+ return G(e.$slots, "default");
129
138
  }
130
- var Eo = /* @__PURE__ */ z(ho, [["render", Io], ["__file", "roving-focus-group-impl.vue"]]);
131
- const Co = K({
139
+ var To = /* @__PURE__ */ V($o, [["render", Fo], ["__file", "roving-focus-group-impl.vue"]]);
140
+ const Ro = U({
132
141
  name: "ElRovingFocusGroup",
133
142
  components: {
134
- ElFocusGroupCollection: po,
135
- ElRovingFocusGroupImpl: Eo
143
+ ElFocusGroupCollection: _o,
144
+ ElRovingFocusGroupImpl: To
136
145
  }
137
146
  });
138
- function yo(e, n, s, t, u, a) {
139
- const i = I("el-roving-focus-group-impl"), r = I("el-focus-group-collection");
140
- return F(), V(r, null, {
141
- default: p(() => [
142
- m(i, Ke(Le(e.$attrs)), {
143
- default: p(() => [
144
- N(e.$slots, "default")
147
+ function So(e, n, f, l, v, m) {
148
+ const c = y("el-roving-focus-group-impl"), s = y("el-focus-group-collection");
149
+ return O(), Y(s, null, {
150
+ default: d(() => [
151
+ u(c, Ae(Ve(e.$attrs)), {
152
+ default: d(() => [
153
+ G(e.$slots, "default")
145
154
  ]),
146
155
  _: 3
147
156
  }, 16)
@@ -149,126 +158,126 @@ function yo(e, n, s, t, u, a) {
149
158
  _: 3
150
159
  });
151
160
  }
152
- var To = /* @__PURE__ */ z(Co, [["render", yo], ["__file", "roving-focus-group.vue"]]);
153
- const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
161
+ var ko = /* @__PURE__ */ V(Ro, [["render", So], ["__file", "roving-focus-group.vue"]]);
162
+ const ee = Symbol("elDropdown"), { ButtonGroup: Oo } = le, Do = U({
154
163
  name: "ElDropdown",
155
164
  components: {
156
- ElButton: _e,
157
- ElButtonGroup: $o,
158
- ElScrollbar: Oe,
159
- ElDropdownCollection: Ze,
160
- ElTooltip: De,
161
- ElRovingFocusGroup: To,
162
- ElOnlyChild: Pe,
163
- ElIcon: ne,
164
- ArrowDown: be
165
+ ElButton: le,
166
+ ElButtonGroup: Oo,
167
+ ElScrollbar: Ke,
168
+ ElDropdownCollection: ro,
169
+ ElTooltip: Be,
170
+ ElRovingFocusGroup: ko,
171
+ ElOnlyChild: Le,
172
+ ElIcon: re,
173
+ ArrowDown: Ee
165
174
  },
166
- props: xe,
175
+ props: so,
167
176
  emits: ["visible-change", "click", "command"],
168
177
  setup(e, { emit: n }) {
169
- const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(), r = $(null), f = $(null), v = $(null), g = $(null), w = $(!1), h = T(() => ({
170
- maxHeight: Se(e.maxHeight)
171
- })), o = T(() => [t.m(b.value)]), d = T(() => ao(e.trigger)), c = me().value, _ = T(() => e.id || c);
172
- ge([a, d], ([l, D], [U]) => {
173
- var ie, ae, de;
174
- (ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae = l == null ? void 0 : l.$el) != null && ae.removeEventListener && l.$el.removeEventListener("pointerenter", C), (de = l == null ? void 0 : l.$el) != null && de.addEventListener && D.includes("hover") && l.$el.addEventListener("pointerenter", C);
175
- }, { immediate: !0 }), Me(() => {
176
- var l, D;
177
- (D = (l = a.value) == null ? void 0 : l.$el) != null && D.removeEventListener && a.value.$el.removeEventListener("pointerenter", C);
178
+ const f = be(), l = te("dropdown"), { t: v } = Te(), m = I(), c = I(), s = I(null), a = I(null), b = I(null), _ = I(null), E = I(!1), h = k(() => ({
179
+ maxHeight: Re(e.maxHeight)
180
+ })), o = k(() => [l.m(w.value)]), p = k(() => wo(e.trigger)), i = ve().value, t = k(() => e.id || i);
181
+ _e([m, p], ([r, N], [z]) => {
182
+ var de, ue, ce;
183
+ (de = z == null ? void 0 : z.$el) != null && de.removeEventListener && z.$el.removeEventListener("pointerenter", g), (ue = r == null ? void 0 : r.$el) != null && ue.removeEventListener && r.$el.removeEventListener("pointerenter", g), (ce = r == null ? void 0 : r.$el) != null && ce.addEventListener && N.includes("hover") && r.$el.addEventListener("pointerenter", g);
184
+ }, { immediate: !0 }), Ue(() => {
185
+ var r, N;
186
+ (N = (r = m.value) == null ? void 0 : r.$el) != null && N.removeEventListener && m.value.$el.removeEventListener("pointerenter", g);
178
187
  });
179
- function B() {
180
- S();
188
+ function C() {
189
+ $();
181
190
  }
182
- function S() {
183
- var l;
184
- (l = r.value) == null || l.onClose();
191
+ function $() {
192
+ var r;
193
+ (r = s.value) == null || r.onClose();
185
194
  }
186
195
  function L() {
187
- var l;
188
- (l = r.value) == null || l.onOpen();
196
+ var r;
197
+ (r = s.value) == null || r.onOpen();
189
198
  }
190
- const b = He();
191
- function O(...l) {
192
- n("command", ...l);
199
+ const w = Qe();
200
+ function F(...r) {
201
+ n("command", ...r);
193
202
  }
194
- function C() {
195
- var l, D;
196
- (D = (l = a.value) == null ? void 0 : l.$el) == null || D.focus();
203
+ function g() {
204
+ var r, N;
205
+ (N = (r = m.value) == null ? void 0 : r.$el) == null || N.focus();
197
206
  }
198
207
  function M() {
199
208
  }
200
- function G() {
201
- const l = E(f);
202
- d.value.includes("hover") && (l == null || l.focus()), g.value = null;
209
+ function B() {
210
+ const r = P(a);
211
+ p.value.includes("hover") && (r == null || r.focus()), _.value = null;
203
212
  }
204
- function k(l) {
205
- g.value = l;
213
+ function S(r) {
214
+ _.value = r;
206
215
  }
207
- function se(l) {
208
- w.value || (l.preventDefault(), l.stopImmediatePropagation());
216
+ function T(r) {
217
+ E.value || (r.preventDefault(), r.stopImmediatePropagation());
209
218
  }
210
- function J() {
219
+ function W() {
211
220
  n("visible-change", !0);
212
221
  }
213
- function Y(l) {
214
- (l == null ? void 0 : l.type) === "keydown" && f.value.focus();
222
+ function H(r) {
223
+ (r == null ? void 0 : r.type) === "keydown" && a.value.focus();
215
224
  }
216
225
  function $e() {
217
226
  n("visible-change", !1);
218
227
  }
219
- return W(Q, {
220
- contentRef: f,
221
- role: T(() => e.role),
222
- triggerId: _,
223
- isUsingKeyboard: w,
228
+ return Q(ee, {
229
+ contentRef: a,
230
+ role: k(() => e.role),
231
+ triggerId: t,
232
+ isUsingKeyboard: E,
224
233
  onItemEnter: M,
225
- onItemLeave: G
226
- }), W("elDropdown", {
227
- instance: s,
228
- dropdownSize: b,
229
- handleClick: B,
230
- commandHandler: O,
231
- trigger: H(e, "trigger"),
232
- hideOnClick: H(e, "hideOnClick")
234
+ onItemLeave: B
235
+ }), Q("elDropdown", {
236
+ instance: f,
237
+ dropdownSize: w,
238
+ handleClick: C,
239
+ commandHandler: F,
240
+ trigger: q(e, "trigger"),
241
+ hideOnClick: q(e, "hideOnClick")
233
242
  }), {
234
- t: u,
235
- ns: t,
236
- scrollbar: v,
243
+ t: v,
244
+ ns: l,
245
+ scrollbar: b,
237
246
  wrapStyle: h,
238
247
  dropdownTriggerKls: o,
239
- dropdownSize: b,
240
- triggerId: _,
241
- currentTabId: g,
242
- handleCurrentTabIdChange: k,
243
- handlerMainButtonClick: (l) => {
244
- n("click", l);
248
+ dropdownSize: w,
249
+ triggerId: t,
250
+ currentTabId: _,
251
+ handleCurrentTabIdChange: S,
252
+ handlerMainButtonClick: (r) => {
253
+ n("click", r);
245
254
  },
246
- handleEntryFocus: se,
247
- handleClose: S,
255
+ handleEntryFocus: T,
256
+ handleClose: $,
248
257
  handleOpen: L,
249
- handleBeforeShowTooltip: J,
250
- handleShowTooltip: Y,
258
+ handleBeforeShowTooltip: W,
259
+ handleShowTooltip: H,
251
260
  handleBeforeHideTooltip: $e,
252
- onFocusAfterTrapped: (l) => {
253
- var D, U;
254
- l.preventDefault(), (U = (D = f.value) == null ? void 0 : D.focus) == null || U.call(D, {
261
+ onFocusAfterTrapped: (r) => {
262
+ var N, z;
263
+ r.preventDefault(), (z = (N = a.value) == null ? void 0 : N.focus) == null || z.call(N, {
255
264
  preventScroll: !0
256
265
  });
257
266
  },
258
- popperRef: r,
259
- contentRef: f,
260
- triggeringElementRef: a,
261
- referenceElementRef: i
267
+ popperRef: s,
268
+ contentRef: a,
269
+ triggeringElementRef: m,
270
+ referenceElementRef: c
262
271
  };
263
272
  }
264
273
  });
265
- function Ro(e, n, s, t, u, a) {
266
- var i;
267
- const r = I("el-dropdown-collection"), f = I("el-roving-focus-group"), v = I("el-scrollbar"), g = I("el-only-child"), w = I("el-tooltip"), h = I("el-button"), o = I("arrow-down"), d = I("el-icon"), c = I("el-button-group");
268
- return F(), A("div", {
269
- class: j([e.ns.b(), e.ns.is("disabled", e.disabled)])
274
+ function No(e, n, f, l, v, m) {
275
+ var c;
276
+ const s = y("el-dropdown-collection"), a = y("el-roving-focus-group"), b = y("el-scrollbar"), _ = y("el-only-child"), E = y("el-tooltip"), h = y("el-button"), o = y("arrow-down"), p = y("el-icon"), i = y("el-button-group");
277
+ return O(), A("div", {
278
+ class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
270
279
  }, [
271
- m(w, {
280
+ u(E, {
272
281
  ref: "popperRef",
273
282
  role: e.role,
274
283
  effect: e.effect,
@@ -279,7 +288,7 @@ function Ro(e, n, s, t, u, a) {
279
288
  "manual-mode": !0,
280
289
  placement: e.placement,
281
290
  "popper-class": [e.ns.e("popper"), e.popperClass],
282
- "reference-element": (i = e.referenceElementRef) == null ? void 0 : i.$el,
291
+ "reference-element": (c = e.referenceElementRef) == null ? void 0 : c.$el,
283
292
  trigger: e.trigger,
284
293
  "trigger-keys": e.triggerKeys,
285
294
  "trigger-target-el": e.contentRef,
@@ -295,26 +304,26 @@ function Ro(e, n, s, t, u, a) {
295
304
  onBeforeShow: e.handleBeforeShowTooltip,
296
305
  onShow: e.handleShowTooltip,
297
306
  onBeforeHide: e.handleBeforeHideTooltip
298
- }, Ge({
299
- content: p(() => [
300
- m(v, {
307
+ }, ze({
308
+ content: d(() => [
309
+ u(b, {
301
310
  ref: "scrollbar",
302
311
  "wrap-style": e.wrapStyle,
303
312
  tag: "div",
304
313
  "view-class": e.ns.e("list")
305
314
  }, {
306
- default: p(() => [
307
- m(f, {
315
+ default: d(() => [
316
+ u(a, {
308
317
  loop: e.loop,
309
318
  "current-tab-id": e.currentTabId,
310
319
  orientation: "horizontal",
311
320
  onCurrentTabIdChange: e.handleCurrentTabIdChange,
312
321
  onEntryFocus: e.handleEntryFocus
313
322
  }, {
314
- default: p(() => [
315
- m(r, null, {
316
- default: p(() => [
317
- N(e.$slots, "dropdown")
323
+ default: d(() => [
324
+ u(s, null, {
325
+ default: d(() => [
326
+ G(e.$slots, "dropdown")
318
327
  ]),
319
328
  _: 3
320
329
  })
@@ -329,36 +338,36 @@ function Ro(e, n, s, t, u, a) {
329
338
  }, [
330
339
  e.splitButton ? void 0 : {
331
340
  name: "default",
332
- fn: p(() => [
333
- m(g, {
341
+ fn: d(() => [
342
+ u(_, {
334
343
  id: e.triggerId,
335
344
  ref: "triggeringElementRef",
336
345
  role: "button",
337
346
  tabindex: e.tabindex
338
347
  }, {
339
- default: p(() => [
340
- N(e.$slots, "default")
348
+ default: d(() => [
349
+ G(e.$slots, "default")
341
350
  ]),
342
351
  _: 3
343
352
  }, 8, ["id", "tabindex"])
344
353
  ])
345
354
  }
346
355
  ]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "onBeforeShow", "onShow", "onBeforeHide"]),
347
- e.splitButton ? (F(), V(c, { key: 0 }, {
348
- default: p(() => [
349
- m(h, q({ ref: "referenceElementRef" }, e.buttonProps, {
356
+ e.splitButton ? (O(), Y(i, { key: 0 }, {
357
+ default: d(() => [
358
+ u(h, Z({ ref: "referenceElementRef" }, e.buttonProps, {
350
359
  size: e.dropdownSize,
351
360
  type: e.type,
352
361
  disabled: e.disabled,
353
362
  tabindex: e.tabindex,
354
363
  onClick: e.handlerMainButtonClick
355
364
  }), {
356
- default: p(() => [
357
- N(e.$slots, "default")
365
+ default: d(() => [
366
+ G(e.$slots, "default")
358
367
  ]),
359
368
  _: 3
360
369
  }, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
361
- m(h, q({
370
+ u(h, Z({
362
371
  id: e.triggerId,
363
372
  ref: "triggeringElementRef"
364
373
  }, e.buttonProps, {
@@ -370,12 +379,12 @@ function Ro(e, n, s, t, u, a) {
370
379
  tabindex: e.tabindex,
371
380
  "aria-label": e.t("el.dropdown.toggleDropdown")
372
381
  }), {
373
- default: p(() => [
374
- m(d, {
375
- class: j(e.ns.e("icon"))
382
+ default: d(() => [
383
+ u(p, {
384
+ class: X(e.ns.e("icon"))
376
385
  }, {
377
- default: p(() => [
378
- m(o)
386
+ default: d(() => [
387
+ u(o)
379
388
  ]),
380
389
  _: 1
381
390
  }, 8, ["class"])
@@ -384,13 +393,13 @@ function Ro(e, n, s, t, u, a) {
384
393
  }, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
385
394
  ]),
386
395
  _: 3
387
- })) : Z("v-if", !0)
396
+ })) : ne("v-if", !0)
388
397
  ], 2);
389
398
  }
390
- var So = /* @__PURE__ */ z(Fo, [["render", Ro], ["__file", "dropdown.vue"]]);
391
- const ko = K({
399
+ var Ko = /* @__PURE__ */ V(Do, [["render", No], ["__file", "dropdown.vue"]]);
400
+ const Bo = U({
392
401
  components: {
393
- ElRovingFocusCollectionItem: fo
402
+ ElRovingFocusCollectionItem: bo
394
403
  },
395
404
  props: {
396
405
  focusable: {
@@ -404,203 +413,203 @@ const ko = K({
404
413
  },
405
414
  emits: ["mousedown", "focus", "keydown"],
406
415
  setup(e, { emit: n }) {
407
- const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(le, void 0), { getItems: i } = y(te, void 0), r = me(), f = $(null), v = P((o) => {
416
+ const { currentTabbedId: f, loop: l, onItemFocus: v, onItemShiftTab: m } = R(ae, void 0), { getItems: c } = R(se, void 0), s = ve(), a = I(null), b = K((o) => {
408
417
  n("mousedown", o);
409
418
  }, (o) => {
410
- e.focusable ? u(E(r)) : o.preventDefault();
411
- }), g = P((o) => {
419
+ e.focusable ? v(P(s)) : o.preventDefault();
420
+ }), _ = K((o) => {
412
421
  n("focus", o);
413
422
  }, () => {
414
- u(E(r));
415
- }), w = P((o) => {
423
+ v(P(s));
424
+ }), E = K((o) => {
416
425
  n("keydown", o);
417
426
  }, (o) => {
418
- const { code: d, shiftKey: c, target: _, currentTarget: B } = o;
419
- if (d === R.tab && c) {
420
- a();
427
+ const { code: p, shiftKey: i, target: t, currentTarget: C } = o;
428
+ if (p === D.tab && i) {
429
+ m();
421
430
  return;
422
431
  }
423
- if (_ !== B)
432
+ if (t !== C)
424
433
  return;
425
- const S = go(o);
426
- if (S) {
434
+ const $ = Co(o);
435
+ if ($) {
427
436
  o.preventDefault();
428
- let b = i().filter((O) => O.focusable).map((O) => O.ref);
429
- switch (S) {
437
+ let w = c().filter((F) => F.focusable).map((F) => F.ref);
438
+ switch ($) {
430
439
  case "last": {
431
- b.reverse();
440
+ w.reverse();
432
441
  break;
433
442
  }
434
443
  case "prev":
435
444
  case "next": {
436
- S === "prev" && b.reverse();
437
- const O = b.indexOf(B);
438
- b = t.value ? wo(b, O + 1) : b.slice(O + 1);
445
+ $ === "prev" && w.reverse();
446
+ const F = w.indexOf(C);
447
+ w = l.value ? yo(w, F + 1) : w.slice(F + 1);
439
448
  break;
440
449
  }
441
450
  }
442
- Ae(() => {
443
- re(b);
451
+ Ye(() => {
452
+ ie(w);
444
453
  });
445
454
  }
446
- }), h = T(() => s.value === E(r));
447
- return W(Ee, {
448
- rovingFocusGroupItemRef: f,
449
- tabIndex: T(() => E(h) ? 0 : -1),
450
- handleMousedown: v,
451
- handleFocus: g,
452
- handleKeydown: w
455
+ }), h = k(() => f.value === P(s));
456
+ return Q(he, {
457
+ rovingFocusGroupItemRef: a,
458
+ tabIndex: k(() => P(h) ? 0 : -1),
459
+ handleMousedown: b,
460
+ handleFocus: _,
461
+ handleKeydown: E
453
462
  }), {
454
- id: r,
455
- handleKeydown: w,
456
- handleFocus: g,
457
- handleMousedown: v
463
+ id: s,
464
+ handleKeydown: E,
465
+ handleFocus: _,
466
+ handleMousedown: b
458
467
  };
459
468
  }
460
469
  });
461
- function Oo(e, n, s, t, u, a) {
462
- const i = I("el-roving-focus-collection-item");
463
- return F(), V(i, {
470
+ function Lo(e, n, f, l, v, m) {
471
+ const c = y("el-roving-focus-collection-item");
472
+ return O(), Y(c, {
464
473
  id: e.id,
465
474
  focusable: e.focusable,
466
475
  active: e.active
467
476
  }, {
468
- default: p(() => [
469
- N(e.$slots, "default")
477
+ default: d(() => [
478
+ G(e.$slots, "default")
470
479
  ]),
471
480
  _: 3
472
481
  }, 8, ["id", "focusable", "active"]);
473
482
  }
474
- var Do = /* @__PURE__ */ z(ko, [["render", Oo], ["__file", "roving-focus-item.vue"]]);
475
- const Po = K({
483
+ var Mo = /* @__PURE__ */ V(Bo, [["render", Lo], ["__file", "roving-focus-item.vue"]]);
484
+ const Go = U({
476
485
  name: "DropdownItemImpl",
477
486
  components: {
478
- ElIcon: ne
487
+ ElIcon: re
479
488
  },
480
- props: he,
489
+ props: Ie,
481
490
  emits: ["pointermove", "pointerleave", "click", "clickimpl"],
482
491
  setup(e, { emit: n }) {
483
- const s = oe("dropdown"), { role: t } = y(Q, void 0), { collectionItemRef: u } = y(eo, void 0), { collectionItemRef: a } = y(mo, void 0), {
484
- rovingFocusGroupItemRef: i,
485
- tabIndex: r,
486
- handleFocus: f,
487
- handleKeydown: v,
488
- handleMousedown: g
489
- } = y(Ee, void 0), w = Ie(u, a, i), h = T(() => t.value === "menu" ? "menuitem" : t.value === "navigation" ? "link" : "button"), o = P((d) => {
490
- if ([R.enter, R.numpadEnter, R.space].includes(d.code))
491
- return d.preventDefault(), d.stopImmediatePropagation(), n("clickimpl", d), !0;
492
- }, v);
492
+ const f = te("dropdown"), { role: l } = R(ee, void 0), { collectionItemRef: v } = R(ao, void 0), { collectionItemRef: m } = R(Eo, void 0), {
493
+ rovingFocusGroupItemRef: c,
494
+ tabIndex: s,
495
+ handleFocus: a,
496
+ handleKeydown: b,
497
+ handleMousedown: _
498
+ } = R(he, void 0), E = ge(v, m, c), h = k(() => l.value === "menu" ? "menuitem" : l.value === "navigation" ? "link" : "button"), o = K((p) => {
499
+ if ([D.enter, D.numpadEnter, D.space].includes(p.code))
500
+ return p.preventDefault(), p.stopImmediatePropagation(), n("clickimpl", p), !0;
501
+ }, b);
493
502
  return {
494
- ns: s,
495
- itemRef: w,
503
+ ns: f,
504
+ itemRef: E,
496
505
  dataset: {
497
- [oo]: ""
506
+ [io]: ""
498
507
  },
499
508
  role: h,
500
- tabIndex: r,
501
- handleFocus: f,
509
+ tabIndex: s,
510
+ handleFocus: a,
502
511
  handleKeydown: o,
503
- handleMousedown: g
512
+ handleMousedown: _
504
513
  };
505
514
  }
506
515
  });
507
- function No(e, n, s, t, u, a) {
508
- const i = I("el-icon");
509
- return F(), A(ze, null, [
510
- e.divided ? (F(), A("li", {
516
+ function Ao(e, n, f, l, v, m) {
517
+ const c = y("el-icon");
518
+ return O(), A(He, null, [
519
+ e.divided ? (O(), A("li", {
511
520
  key: 0,
512
521
  role: "separator",
513
- class: j(e.ns.bem("menu", "item", "divided"))
514
- }, null, 2)) : Z("v-if", !0),
515
- x("li", q({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
522
+ class: X(e.ns.bem("menu", "item", "divided"))
523
+ }, null, 2)) : ne("v-if", !0),
524
+ j("li", Z({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
516
525
  "aria-disabled": e.disabled,
517
526
  class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
518
527
  tabindex: e.tabIndex,
519
528
  role: e.role,
520
- onClick: (r) => e.$emit("clickimpl", r),
529
+ onClick: (s) => e.$emit("clickimpl", s),
521
530
  onFocus: e.handleFocus,
522
- onKeydown: ee(e.handleKeydown, ["self"]),
531
+ onKeydown: x(e.handleKeydown, ["self"]),
523
532
  onMousedown: e.handleMousedown,
524
- onPointermove: (r) => e.$emit("pointermove", r),
525
- onPointerleave: (r) => e.$emit("pointerleave", r)
533
+ onPointermove: (s) => e.$emit("pointermove", s),
534
+ onPointerleave: (s) => e.$emit("pointerleave", s)
526
535
  }), [
527
- e.icon ? (F(), V(i, { key: 0 }, {
528
- default: p(() => [
529
- (F(), V(Ue(e.icon)))
536
+ e.icon ? (O(), Y(c, { key: 0 }, {
537
+ default: d(() => [
538
+ (O(), Y(Je(e.icon)))
530
539
  ]),
531
540
  _: 1
532
- })) : Z("v-if", !0),
533
- N(e.$slots, "default")
541
+ })) : ne("v-if", !0),
542
+ G(e.$slots, "default")
534
543
  ], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
535
544
  ], 64);
536
545
  }
537
- var Bo = /* @__PURE__ */ z(Po, [["render", No], ["__file", "dropdown-item-impl.vue"]]);
546
+ var Vo = /* @__PURE__ */ V(Go, [["render", Ao], ["__file", "dropdown-item-impl.vue"]]);
538
547
  const Ce = () => {
539
- const e = y("elDropdown", {}), n = T(() => e == null ? void 0 : e.dropdownSize);
548
+ const e = R("elDropdown", {}), n = k(() => e == null ? void 0 : e.dropdownSize);
540
549
  return {
541
550
  elDropdown: e,
542
551
  _elDropdownSize: n
543
552
  };
544
- }, Ko = K({
553
+ }, Uo = U({
545
554
  name: "ElDropdownItem",
546
555
  components: {
547
- ElDropdownCollectionItem: no,
548
- ElRovingFocusItem: Do,
549
- ElDropdownItemImpl: Bo
556
+ ElDropdownCollectionItem: uo,
557
+ ElRovingFocusItem: Mo,
558
+ ElDropdownItemImpl: Vo
550
559
  },
551
560
  inheritAttrs: !1,
552
- props: he,
561
+ props: Ie,
553
562
  emits: ["pointermove", "pointerleave", "click"],
554
- setup(e, { emit: n, attrs: s }) {
555
- const { elDropdown: t } = Ce(), u = we(), a = $(null), i = T(() => {
556
- var o, d;
557
- return (d = (o = E(a)) == null ? void 0 : o.textContent) != null ? d : "";
558
- }), { onItemEnter: r, onItemLeave: f } = y(Q, void 0), v = P((o) => (n("pointermove", o), o.defaultPrevented), ue((o) => {
563
+ setup(e, { emit: n, attrs: f }) {
564
+ const { elDropdown: l } = Ce(), v = be(), m = I(null), c = k(() => {
565
+ var o, p;
566
+ return (p = (o = P(m)) == null ? void 0 : o.textContent) != null ? p : "";
567
+ }), { onItemEnter: s, onItemLeave: a } = R(ee, void 0), b = K((o) => (n("pointermove", o), o.defaultPrevented), pe((o) => {
559
568
  if (e.disabled) {
560
- f(o);
569
+ a(o);
561
570
  return;
562
571
  }
563
- const d = o.currentTarget;
564
- d === document.activeElement || d.contains(document.activeElement) || (r(o), o.defaultPrevented || d == null || d.focus());
565
- })), g = P((o) => (n("pointerleave", o), o.defaultPrevented), ue(f)), w = P((o) => {
572
+ const p = o.currentTarget;
573
+ p === document.activeElement || p.contains(document.activeElement) || (s(o), o.defaultPrevented || p == null || p.focus());
574
+ })), _ = K((o) => (n("pointerleave", o), o.defaultPrevented), pe(a)), E = K((o) => {
566
575
  if (!e.disabled)
567
576
  return n("click", o), o.type !== "keydown" && o.defaultPrevented;
568
577
  }, (o) => {
569
- var d, c, _;
578
+ var p, i, t;
570
579
  if (e.disabled) {
571
580
  o.stopImmediatePropagation();
572
581
  return;
573
582
  }
574
- (d = t == null ? void 0 : t.hideOnClick) != null && d.value && ((c = t.handleClick) == null || c.call(t)), (_ = t.commandHandler) == null || _.call(t, e.command, u, o);
575
- }), h = T(() => ({ ...e, ...s }));
583
+ (p = l == null ? void 0 : l.hideOnClick) != null && p.value && ((i = l.handleClick) == null || i.call(l)), (t = l.commandHandler) == null || t.call(l, e.command, v, o);
584
+ }), h = k(() => ({ ...e, ...f }));
576
585
  return {
577
- handleClick: w,
578
- handlePointerMove: v,
579
- handlePointerLeave: g,
580
- textContent: i,
586
+ handleClick: E,
587
+ handlePointerMove: b,
588
+ handlePointerLeave: _,
589
+ textContent: c,
581
590
  propsAndAttrs: h
582
591
  };
583
592
  }
584
593
  });
585
- function Lo(e, n, s, t, u, a) {
586
- var i;
587
- const r = I("el-dropdown-item-impl"), f = I("el-roving-focus-item"), v = I("el-dropdown-collection-item");
588
- return F(), V(v, {
594
+ function zo(e, n, f, l, v, m) {
595
+ var c;
596
+ const s = y("el-dropdown-item-impl"), a = y("el-roving-focus-item"), b = y("el-dropdown-collection-item");
597
+ return O(), Y(b, {
589
598
  disabled: e.disabled,
590
- "text-value": (i = e.textValue) != null ? i : e.textContent
599
+ "text-value": (c = e.textValue) != null ? c : e.textContent
591
600
  }, {
592
- default: p(() => [
593
- m(f, {
601
+ default: d(() => [
602
+ u(a, {
594
603
  focusable: !e.disabled
595
604
  }, {
596
- default: p(() => [
597
- m(r, q(e.propsAndAttrs, {
605
+ default: d(() => [
606
+ u(s, Z(e.propsAndAttrs, {
598
607
  onPointerleave: e.handlePointerLeave,
599
608
  onPointermove: e.handlePointerMove,
600
609
  onClickimpl: e.handleClick
601
610
  }), {
602
- default: p(() => [
603
- N(e.$slots, "default")
611
+ default: d(() => [
612
+ G(e.$slots, "default")
604
613
  ]),
605
614
  _: 3
606
615
  }, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
@@ -611,67 +620,67 @@ function Lo(e, n, s, t, u, a) {
611
620
  _: 3
612
621
  }, 8, ["disabled", "text-value"]);
613
622
  }
614
- var ye = /* @__PURE__ */ z(Ko, [["render", Lo], ["__file", "dropdown-item.vue"]]);
615
- const Mo = K({
623
+ var ye = /* @__PURE__ */ V(Uo, [["render", zo], ["__file", "dropdown-item.vue"]]);
624
+ const Yo = U({
616
625
  name: "ElDropdownMenu",
617
- props: to,
626
+ props: co,
618
627
  setup(e) {
619
- const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role: r, triggerId: f } = y(Q, void 0), { collectionRef: v, getItems: g } = y(lo, void 0), {
620
- rovingFocusGroupRef: w,
628
+ const n = te("dropdown"), { _elDropdownSize: f } = Ce(), l = f.value, { focusTrapRef: v, onKeydown: m } = R(vo, void 0), { contentRef: c, role: s, triggerId: a } = R(ee, void 0), { collectionRef: b, getItems: _ } = R(po, void 0), {
629
+ rovingFocusGroupRef: E,
621
630
  rovingFocusGroupRootStyle: h,
622
631
  tabIndex: o,
623
- onBlur: d,
624
- onFocus: c,
625
- onMousedown: _
626
- } = y(le, void 0), { collectionRef: B } = y(te, void 0), S = T(() => [n.b("menu"), n.bm("menu", t == null ? void 0 : t.value)]), L = Ie(i, v, u, w, B), b = P((C) => {
632
+ onBlur: p,
633
+ onFocus: i,
634
+ onMousedown: t
635
+ } = R(ae, void 0), { collectionRef: C } = R(se, void 0), $ = k(() => [n.b("menu"), n.bm("menu", l == null ? void 0 : l.value)]), L = ge(c, b, v, E, C), w = K((g) => {
627
636
  var M;
628
- (M = e.onKeydown) == null || M.call(e, C);
629
- }, (C) => {
630
- const { currentTarget: M, code: G, target: k } = C;
631
- if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !ro.includes(G))
637
+ (M = e.onKeydown) == null || M.call(e, g);
638
+ }, (g) => {
639
+ const { currentTarget: M, code: B, target: S } = g;
640
+ if (M.contains(S), D.tab === B && g.stopImmediatePropagation(), g.preventDefault(), S !== P(c) || !fo.includes(B))
632
641
  return;
633
- const J = g().filter((Y) => !Y.disabled).map((Y) => Y.ref);
634
- so.includes(G) && J.reverse(), re(J);
642
+ const W = _().filter((H) => !H.disabled).map((H) => H.ref);
643
+ mo.includes(B) && W.reverse(), ie(W);
635
644
  });
636
645
  return {
637
- size: t,
646
+ size: l,
638
647
  rovingFocusGroupRootStyle: h,
639
648
  tabIndex: o,
640
- dropdownKls: S,
641
- role: r,
642
- triggerId: f,
649
+ dropdownKls: $,
650
+ role: s,
651
+ triggerId: a,
643
652
  dropdownListWrapperRef: L,
644
- handleKeydown: (C) => {
645
- b(C), a(C);
653
+ handleKeydown: (g) => {
654
+ w(g), m(g);
646
655
  },
647
- onBlur: d,
648
- onFocus: c,
649
- onMousedown: _
656
+ onBlur: p,
657
+ onFocus: i,
658
+ onMousedown: t
650
659
  };
651
660
  }
652
661
  });
653
- function Go(e, n, s, t, u, a) {
654
- return F(), A("ul", {
662
+ function Ho(e, n, f, l, v, m) {
663
+ return O(), A("ul", {
655
664
  ref: e.dropdownListWrapperRef,
656
- class: j(e.dropdownKls),
657
- style: Ve(e.rovingFocusGroupRootStyle),
665
+ class: X(e.dropdownKls),
666
+ style: qe(e.rovingFocusGroupRootStyle),
658
667
  tabindex: -1,
659
668
  role: e.role,
660
669
  "aria-labelledby": e.triggerId,
661
670
  onBlur: e.onBlur,
662
671
  onFocus: e.onFocus,
663
- onKeydown: ee(e.handleKeydown, ["self"]),
664
- onMousedown: ee(e.onMousedown, ["self"])
672
+ onKeydown: x(e.handleKeydown, ["self"]),
673
+ onMousedown: x(e.onMousedown, ["self"])
665
674
  }, [
666
- N(e.$slots, "default")
675
+ G(e.$slots, "default")
667
676
  ], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
668
677
  }
669
- var Te = /* @__PURE__ */ z(Mo, [["render", Go], ["__file", "dropdown-menu.vue"]]);
670
- const Ao = ke(So, {
678
+ var Pe = /* @__PURE__ */ V(Yo, [["render", Ho], ["__file", "dropdown-menu.vue"]]);
679
+ const Jo = Se(Ko, {
671
680
  DropdownItem: ye,
672
- DropdownMenu: Te
673
- }), zo = ve(ye), Uo = ve(Te);
674
- const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo = /* @__PURE__ */ K({
681
+ DropdownMenu: Pe
682
+ }), qo = we(ye), Wo = we(Pe);
683
+ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo = { class: "dialog-footer" }, xo = {
675
684
  __name: "index",
676
685
  props: {
677
686
  config: {
@@ -682,24 +691,59 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
682
691
  },
683
692
  emits: ["loginout"],
684
693
  setup(e, { emit: n }) {
685
- const s = je(), t = n, u = e, a = () => {
686
- const { loginUrl: r } = u.config || {};
687
- qe(r);
688
- }, i = () => {
689
- const { loginoutToLogin: r, loginoutUrl: f } = u.config || {};
690
- Qe(r, f), t("loginout");
694
+ const f = R("stConfig"), l = xe(), v = n, m = e, c = I(null), s = I(!1), a = I({
695
+ oldPassword: "",
696
+ newPassword: "",
697
+ confirmPassword: ""
698
+ }), _ = I({
699
+ oldPassword: [{ required: !0, message: "请输入原密码", trigger: "blur" }],
700
+ newPassword: [{ required: !0, message: "请输入新密码", trigger: "blur" }],
701
+ confirmPassword: [
702
+ { required: !0, message: "请输入确认密码", trigger: "blur" },
703
+ { validator: (i, t, C) => {
704
+ t === "" ? C(new Error("请输入确认密码")) : t !== a.value.newPassword ? C(new Error("两次输入密码不一致!")) : C();
705
+ }, trigger: "blur" }
706
+ ]
707
+ }), E = () => {
708
+ const { loginUrl: i } = m.config || {};
709
+ eo(i);
710
+ }, h = () => {
711
+ const { loginoutToLogin: i, loginoutUrl: t } = m.config || {};
712
+ oo(i, t), v("loginout");
713
+ }, o = () => {
714
+ c.value.validate(async (i, t) => {
715
+ i && (await f.request.post("/invest/sys/user/password", {
716
+ password: a.value.oldPassword,
717
+ newPassword: a.value.newPassword,
718
+ newPassword2: a.value.confirmPassword
719
+ }), no.success("修改成功!"), s.value = !1);
720
+ });
721
+ }, p = () => {
722
+ a.value = {
723
+ oldPassword: "",
724
+ newPassword: "",
725
+ confirmPassword: ""
726
+ }, c.value.resetFields();
691
727
  };
692
- return (r, f) => {
693
- const v = ne, g = zo, w = Uo, h = Ao;
694
- return F(), A("div", Vo, [
695
- E(s) ? (F(), A("div", Yo, [
696
- m(h, { placement: "bottom" }, {
697
- dropdown: p(() => [
698
- m(w, null, {
699
- default: p(() => [
700
- m(g, { onClick: i }, {
701
- default: p(() => [
702
- ce("退出登录")
728
+ return (i, t) => {
729
+ const C = re, $ = qo, L = Wo, w = Jo, F = Ne, g = Oe, M = De, B = le, S = ke;
730
+ return O(), A("div", jo, [
731
+ P(l) ? (O(), A("div", Qo, [
732
+ u(w, { placement: "bottom" }, {
733
+ dropdown: d(() => [
734
+ u(L, null, {
735
+ default: d(() => [
736
+ u($, {
737
+ onClick: t[0] || (t[0] = (T) => s.value = !0)
738
+ }, {
739
+ default: d(() => [
740
+ J("修改密码")
741
+ ]),
742
+ _: 1
743
+ }),
744
+ u($, { onClick: h }, {
745
+ default: d(() => [
746
+ J("退出登录")
703
747
  ]),
704
748
  _: 1
705
749
  })
@@ -707,20 +751,20 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
707
751
  _: 1
708
752
  })
709
753
  ]),
710
- default: p(() => {
711
- var o;
754
+ default: d(() => {
755
+ var T;
712
756
  return [
713
- x("div", Ho, [
714
- m(v, { class: "user-msg-icon" }, {
715
- default: p(() => [
716
- m(E(Je))
757
+ j("div", Xo, [
758
+ u(C, { class: "user-msg-icon" }, {
759
+ default: d(() => [
760
+ u(P(Xe))
717
761
  ]),
718
762
  _: 1
719
763
  }),
720
- x("span", null, Ye((o = E(s)) == null ? void 0 : o.username), 1),
721
- m(v, { class: "user-msg-arrow" }, {
722
- default: p(() => [
723
- m(E(be))
764
+ j("span", null, We((T = P(l)) == null ? void 0 : T.username), 1),
765
+ u(C, { class: "user-msg-arrow" }, {
766
+ default: d(() => [
767
+ u(P(Ee))
724
768
  ]),
725
769
  _: 1
726
770
  })
@@ -729,28 +773,112 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
729
773
  }),
730
774
  _: 1
731
775
  })
732
- ])) : (F(), A("div", {
776
+ ])) : (O(), A("div", {
733
777
  key: 1,
734
778
  class: "user-login",
735
- onClick: a
779
+ onClick: E
736
780
  }, [
737
- ce(" 前往登录 "),
738
- m(v, { class: "user-login-icon" }, {
739
- default: p(() => [
740
- m(E(We))
781
+ J(" 前往登录 "),
782
+ u(C, { class: "user-login-icon" }, {
783
+ default: d(() => [
784
+ u(P(Ze))
741
785
  ]),
742
786
  _: 1
743
787
  })
744
- ]))
788
+ ])),
789
+ u(S, {
790
+ modelValue: s.value,
791
+ "onUpdate:modelValue": t[5] || (t[5] = (T) => s.value = T),
792
+ title: "修改密码",
793
+ width: "500",
794
+ "z-index": 200,
795
+ onClosed: p
796
+ }, {
797
+ footer: d(() => [
798
+ j("div", Zo, [
799
+ u(B, {
800
+ onClick: t[4] || (t[4] = (T) => s.value = !1)
801
+ }, {
802
+ default: d(() => [
803
+ J("取消")
804
+ ]),
805
+ _: 1
806
+ }),
807
+ u(B, {
808
+ type: "primary",
809
+ onClick: o
810
+ }, {
811
+ default: d(() => [
812
+ J(" 修改 ")
813
+ ]),
814
+ _: 1
815
+ })
816
+ ])
817
+ ]),
818
+ default: d(() => [
819
+ u(M, {
820
+ ref_key: "changePasswordFormRef",
821
+ ref: c,
822
+ model: a.value,
823
+ rules: _.value,
824
+ onSubmit: x(o, ["prevent"]),
825
+ onKeyup: je(o, ["enter", "native"]),
826
+ "label-width": "auto"
827
+ }, {
828
+ default: d(() => [
829
+ u(g, {
830
+ label: "原密码",
831
+ prop: "oldPassword"
832
+ }, {
833
+ default: d(() => [
834
+ u(F, {
835
+ modelValue: a.value.oldPassword,
836
+ "onUpdate:modelValue": t[1] || (t[1] = (T) => a.value.oldPassword = T),
837
+ type: "password"
838
+ }, null, 8, ["modelValue"])
839
+ ]),
840
+ _: 1
841
+ }),
842
+ u(g, {
843
+ label: "新密码",
844
+ prop: "newPassword"
845
+ }, {
846
+ default: d(() => [
847
+ u(F, {
848
+ modelValue: a.value.newPassword,
849
+ "onUpdate:modelValue": t[2] || (t[2] = (T) => a.value.newPassword = T),
850
+ type: "password"
851
+ }, null, 8, ["modelValue"])
852
+ ]),
853
+ _: 1
854
+ }),
855
+ u(g, {
856
+ label: "确认密码",
857
+ prop: "confirmPassword"
858
+ }, {
859
+ default: d(() => [
860
+ u(F, {
861
+ modelValue: a.value.confirmPassword,
862
+ "onUpdate:modelValue": t[3] || (t[3] = (T) => a.value.confirmPassword = T),
863
+ type: "password"
864
+ }, null, 8, ["modelValue"])
865
+ ]),
866
+ _: 1
867
+ })
868
+ ]),
869
+ _: 1
870
+ }, 8, ["model", "rules"])
871
+ ]),
872
+ _: 1
873
+ }, 8, ["modelValue"])
745
874
  ]);
746
875
  };
747
876
  }
748
- });
749
- const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]), cn = {
877
+ }, en = /* @__PURE__ */ to(xo, [["__scopeId", "data-v-fcebd320"]]), Fn = {
750
878
  install(e) {
751
- e.component("st-user", Wo);
879
+ e.component("st-user", en);
752
880
  }
753
881
  };
754
882
  export {
755
- cn as default
883
+ Fn as default
756
884
  };