st-comp 0.0.149 → 0.0.150

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