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