st-comp 0.0.207 → 0.0.208

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 (160) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +1 -74
  3. package/es/CustomFunction.cjs +1 -1
  4. package/es/CustomFunction.js +53 -56
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +45 -48
  7. package/es/HeatMap.cjs +1 -1
  8. package/es/HeatMap.js +1 -118
  9. package/es/Kline.cjs +1 -1
  10. package/es/Kline.js +16 -19
  11. package/es/KlineBasic.cjs +1 -1
  12. package/es/KlineBasic.js +81 -84
  13. package/es/KlineConfig.cjs +1 -1
  14. package/es/KlineConfig.js +161 -164
  15. package/es/KlineNew.cjs +1 -1
  16. package/es/KlineNew.js +15 -18
  17. package/es/KlinePlus.cjs +1 -1
  18. package/es/KlinePlus.js +18 -21
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +140 -143
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +2 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +55 -58
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +85 -88
  27. package/es/VarSelectDialog.cjs +2 -2
  28. package/es/VarSelectDialog.js +53 -56
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +15 -17
  31. package/es/VarietySearch.cjs +10 -10
  32. package/es/VarietySearch.js +53 -56
  33. package/es/VarietyTextCopy.cjs +3 -3
  34. package/es/VarietyTextCopy.js +33 -36
  35. package/es/VirtualTable.cjs +1 -1
  36. package/es/VirtualTable.js +103 -106
  37. package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
  38. package/es/_initCloneObject-e660897e.cjs +1 -0
  39. package/es/base-7ba08794.cjs +5 -0
  40. package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
  41. package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
  42. package/es/castArray-efa457a5.cjs +1 -0
  43. package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
  44. package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
  45. package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
  46. package/es/debounce-4aa22feb.cjs +1 -0
  47. package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
  48. package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
  49. package/es/el-autocomplete-609ac86d.cjs +1 -0
  50. package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
  51. package/es/el-button-08310c06.cjs +1 -0
  52. package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
  53. package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
  54. package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
  55. package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
  56. package/es/el-dialog-ea480083.cjs +1 -0
  57. package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
  58. package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
  59. package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
  60. package/es/el-empty-b40fa7ea.cjs +1 -0
  61. package/es/el-form-item-338ea2f7.cjs +12 -0
  62. package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
  63. package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
  64. package/es/el-input-b04b5bfc.cjs +1 -0
  65. package/es/el-input-number-7242c8b5.cjs +1 -0
  66. package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
  67. package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
  68. package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
  69. package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
  70. package/es/el-menu-item-7aca344e.cjs +1 -0
  71. package/es/el-message-05cd85bf.cjs +1 -0
  72. package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
  73. package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
  74. package/es/el-message-box-b7e9917e.cjs +1 -0
  75. package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
  76. package/es/el-overlay-60bc5a02.cjs +1 -0
  77. package/es/el-popconfirm-24b622c5.cjs +1 -0
  78. package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
  79. package/es/el-popper-1dd8f5b4.cjs +1 -0
  80. package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
  81. package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
  82. package/es/el-segmented-a928d89b.cjs +1 -0
  83. package/es/el-select-5fd77a96.cjs +1 -0
  84. package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
  85. package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
  86. package/es/el-table-column-bf3ab2a6.cjs +14 -0
  87. package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
  88. package/es/el-tag-d59f3463.cjs +1 -0
  89. package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
  90. package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
  91. package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
  92. package/es/{index-88546436.js → index-29418a8d.js} +18 -18
  93. package/es/index-3d0bc5da.js +566 -0
  94. package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
  95. package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
  96. package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
  97. package/es/index-a206f6eb.cjs +1 -0
  98. package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
  99. package/es/index-b4700d83.cjs +1 -0
  100. package/es/index-c30cf7f9.cjs +1 -0
  101. package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
  102. package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
  103. package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
  104. package/es/raf-d8c44079.js +6 -0
  105. package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
  106. package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
  107. package/es/style.css +1 -1
  108. package/es/use-form-common-props-41182853.cjs +1 -0
  109. package/es/use-form-common-props-4cdda474.js +671 -0
  110. package/es/use-global-config-7bfbe48c.js +71 -0
  111. package/es/use-global-config-dc5527e8.cjs +1 -0
  112. package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
  113. package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
  114. package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
  115. package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
  116. package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
  117. package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
  118. package/lib/bundle.js +1 -1
  119. package/lib/bundle.umd.cjs +1 -1
  120. package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
  121. package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
  122. package/lib/style.css +1 -1
  123. package/package.json +1 -1
  124. package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
  125. package/es/_initCloneObject-52b6a510.cjs +0 -1
  126. package/es/base-a5af3db3.js +0 -288
  127. package/es/base-ef747d02.cjs +0 -5
  128. package/es/castArray-35947698.cjs +0 -1
  129. package/es/debounce-62f5b6e8.cjs +0 -1
  130. package/es/el-autocomplete-a07e9439.cjs +0 -1
  131. package/es/el-button-eec58cff.cjs +0 -1
  132. package/es/el-dialog-ae86edb8.cjs +0 -1
  133. package/es/el-empty-1697ded8.cjs +0 -1
  134. package/es/el-form-item-c3fe189b.cjs +0 -12
  135. package/es/el-input-7fd293af.cjs +0 -1
  136. package/es/el-input-number-22e21d16.cjs +0 -1
  137. package/es/el-menu-item-17dc717e.cjs +0 -1
  138. package/es/el-message-5e6a6be9.cjs +0 -1
  139. package/es/el-message-box-c10adb52.cjs +0 -1
  140. package/es/el-overlay-9e34965f.cjs +0 -1
  141. package/es/el-popconfirm-70a976bf.cjs +0 -1
  142. package/es/el-popper-b6c99b28.cjs +0 -1
  143. package/es/el-segmented-f8fce9ac.cjs +0 -1
  144. package/es/el-select-d8d91db1.cjs +0 -1
  145. package/es/el-table-column-c974cb96.cjs +0 -14
  146. package/es/el-tag-a33c4b22.cjs +0 -1
  147. package/es/index-098c2447.cjs +0 -1
  148. package/es/index-960806da.js +0 -314
  149. package/es/index-9780a537.cjs +0 -1
  150. package/es/index-9b9ef5dd.cjs +0 -1
  151. package/es/index-bb833443.cjs +0 -1
  152. package/es/index-c108567d.cjs +0 -1
  153. package/es/index-d77a7336.js +0 -204
  154. package/es/index-e5566b94.js +0 -368
  155. package/es/index-f3562b52.cjs +0 -1
  156. package/es/raf-80ef0c0a.js +0 -6
  157. package/es/use-form-common-props-815d48a6.js +0 -364
  158. package/es/use-form-common-props-fd9b61a0.cjs +0 -1
  159. package/es/use-global-config-30d7d8ce.cjs +0 -1
  160. package/es/use-global-config-b5e9d3d5.js +0 -72
@@ -1,4 +1,4 @@
1
- import { c as a } from "./index-960806da.js";
1
+ import { i as a } from "./use-form-common-props-4cdda474.js";
2
2
  function e() {
3
3
  if (!arguments.length)
4
4
  return [];
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./use-form-common-props-41182853.cjs");function e(){if(!arguments.length)return[];var r=arguments[0];return t.isArray(r)?r:[r]}exports.castArray=e;
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),u=require("./use-global-config-30d7d8ce.cjs"),l=require("./index-c108567d.cjs"),e=require("./base-ef747d02.cjs"),d=require("./use-form-common-props-fd9b61a0.cjs"),c=e.buildProps({a11y:{type:Boolean,default:!0},locale:{type:e.definePropType(Object)},size:d.useSizeProp,button:{type:e.definePropType(Object)},card:{type:e.definePropType(Object)},dialog:{type:e.definePropType(Object)},link:{type:e.definePropType(Object)},experimentalFeatures:{type:e.definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:e.definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...l.useEmptyValuesProps}),s={placement:"top"},f=t.defineComponent({name:"ElConfigProvider",props:c,setup(n,{slots:a}){const o=u.provideGlobalConfig(n);return t.watch(()=>n.message,r=>{var i,p;Object.assign(s,(p=(i=o==null?void 0:o.value)==null?void 0:i.message)!=null?p:{},r??{})},{immediate:!0,deep:!0}),()=>t.renderSlot(a,"default",{config:o==null?void 0:o.value})}});exports.ConfigProvider=f;exports.messageConfig=s;
1
+ "use strict";const t=require("vue"),u=require("./use-global-config-dc5527e8.cjs"),l=require("./index-c30cf7f9.cjs"),e=require("./base-7ba08794.cjs"),d=require("./use-form-common-props-41182853.cjs"),c=e.buildProps({a11y:{type:Boolean,default:!0},locale:{type:e.definePropType(Object)},size:d.useSizeProp,button:{type:e.definePropType(Object)},card:{type:e.definePropType(Object)},dialog:{type:e.definePropType(Object)},link:{type:e.definePropType(Object)},experimentalFeatures:{type:e.definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:e.definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...l.useEmptyValuesProps}),s={placement:"top"},f=t.defineComponent({name:"ElConfigProvider",props:c,setup(n,{slots:a}){const o=u.provideGlobalConfig(n);return t.watch(()=>n.message,r=>{var i,p;Object.assign(s,(p=(i=o==null?void 0:o.value)==null?void 0:i.message)!=null?p:{},r??{})},{immediate:!0,deep:!0}),()=>t.renderSlot(a,"default",{config:o==null?void 0:o.value})}});exports.ConfigProvider=f;exports.messageConfig=s;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p, watch as s, renderSlot as l } from "vue";
2
- import { p as m } from "./use-global-config-b5e9d3d5.js";
3
- import { m as u } from "./index-e5566b94.js";
4
- import { b as d, e } from "./base-a5af3db3.js";
5
- import { h as c } from "./use-form-common-props-815d48a6.js";
2
+ import { p as u } from "./use-global-config-7bfbe48c.js";
3
+ import { u as m } from "./index-3d0bc5da.js";
4
+ import { b as d, d as e } from "./base-aa512893.js";
5
+ import { u as c } from "./use-form-common-props-4cdda474.js";
6
6
  const f = d({
7
7
  a11y: {
8
8
  type: Boolean,
@@ -39,14 +39,14 @@ const f = d({
39
39
  type: String,
40
40
  default: "el"
41
41
  },
42
- ...u
42
+ ...m
43
43
  }), b = {
44
44
  placement: "top"
45
45
  }, P = p({
46
46
  name: "ElConfigProvider",
47
47
  props: f,
48
48
  setup(o, { slots: i }) {
49
- const t = m(o);
49
+ const t = u(o);
50
50
  return s(() => o.message, (a) => {
51
51
  var r, n;
52
52
  Object.assign(b, (n = (r = t == null ? void 0 : t.value) == null ? void 0 : r.message) != null ? n : {}, a ?? {});
@@ -1,4 +1,4 @@
1
- import { l as L, i as v, r as M } from "./index-960806da.js";
1
+ import { q as L, r as v, s as M } from "./use-form-common-props-4cdda474.js";
2
2
  var N = /\s/;
3
3
  function $(n) {
4
4
  for (var r = n.length; r-- && N.test(n.charAt(r)); )
@@ -9,7 +9,7 @@ var B = /^\s+/;
9
9
  function R(n) {
10
10
  return n && n.slice(0, $(n) + 1).replace(B, "");
11
11
  }
12
- var k = 0 / 0, F = /^[-+]0x[0-9a-f]+$/i, _ = /^0b[01]+$/i, j = /^0o[0-7]+$/i, D = parseInt;
12
+ var k = 0 / 0, F = /^[-+]0x[0-9a-f]+$/i, _ = /^0b[01]+$/i, j = /^0o[0-7]+$/i, q = parseInt;
13
13
  function S(n) {
14
14
  if (typeof n == "number")
15
15
  return n;
@@ -23,18 +23,18 @@ function S(n) {
23
23
  return n === 0 ? n : +n;
24
24
  n = R(n);
25
25
  var t = _.test(n);
26
- return t || j.test(n) ? D(n.slice(2), t ? 2 : 8) : F.test(n) ? k : +n;
26
+ return t || j.test(n) ? q(n.slice(2), t ? 2 : 8) : F.test(n) ? k : +n;
27
27
  }
28
- var H = function() {
28
+ var D = function() {
29
29
  return M.Date.now();
30
30
  };
31
- const h = H;
32
- var P = "Expected a function", U = Math.max, X = Math.min;
31
+ const h = D;
32
+ var H = "Expected a function", P = Math.max, U = Math.min;
33
33
  function z(n, r, t) {
34
34
  var u, c, l, s, i, f, o = 0, p = !1, d = !1, T = !0;
35
35
  if (typeof n != "function")
36
- throw new TypeError(P);
37
- r = S(r) || 0, v(t) && (p = !!t.leading, d = "maxWait" in t, l = d ? U(S(t.maxWait) || 0, r) : l, T = "trailing" in t ? !!t.trailing : T);
36
+ throw new TypeError(H);
37
+ r = S(r) || 0, v(t) && (p = !!t.leading, d = "maxWait" in t, l = d ? P(S(t.maxWait) || 0, r) : l, T = "trailing" in t ? !!t.trailing : T);
38
38
  function x(e) {
39
39
  var a = u, m = c;
40
40
  return u = c = void 0, o = e, s = n.apply(m, a), s;
@@ -44,7 +44,7 @@ function z(n, r, t) {
44
44
  }
45
45
  function O(e) {
46
46
  var a = e - f, m = e - o, E = r - a;
47
- return d ? X(E, l - m) : E;
47
+ return d ? U(E, l - m) : E;
48
48
  }
49
49
  function y(e) {
50
50
  var a = e - f, m = e - o;
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./use-form-common-props-41182853.cjs");var A=/\s/;function L(e){for(var r=e.length;r--&&A.test(e.charAt(r)););return r}var M=/^\s+/;function $(e){return e&&e.slice(0,L(e)+1).replace(M,"")}var k=0/0,j=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,F=/^0o[0-7]+$/i,R=parseInt;function v(e){if(typeof e=="number")return e;if(l.isSymbol(e))return k;if(l.isObject(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=l.isObject(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=$(e);var t=B.test(e);return t||F.test(e)?R(e.slice(2),t?2:8):j.test(e)?k:+e}var P=function(){return l.root.Date.now()};const h=P;var _="Expected a function",q=Math.max,D=Math.min;function H(e,r,t){var u,s,g,c,i,f,o=0,y=!1,d=!1,b=!0;if(typeof e!="function")throw new TypeError(_);r=v(r)||0,l.isObject(t)&&(y=!!t.leading,d="maxWait"in t,g=d?q(v(t.maxWait)||0,r):g,b="trailing"in t?!!t.trailing:b);function x(n){var a=u,m=s;return u=s=void 0,o=n,c=e.apply(m,a),c}function S(n){return o=n,i=setTimeout(T,r),y?x(n):c}function W(n){var a=n-f,m=n-o,O=r-a;return d?D(O,g-m):O}function p(n){var a=n-f,m=n-o;return f===void 0||a>=r||a<0||d&&m>=g}function T(){var n=h();if(p(n))return E(n);i=setTimeout(T,W(n))}function E(n){return i=void 0,b&&u?x(n):(u=s=void 0,c)}function C(){i!==void 0&&clearTimeout(i),o=0,u=f=s=i=void 0}function N(){return i===void 0?c:E(h())}function I(){var n=h(),a=p(n);if(u=arguments,s=this,f=n,a){if(i===void 0)return S(f);if(d)return clearTimeout(i),i=setTimeout(T,r),x(f)}return i===void 0&&(i=setTimeout(T,r)),c}return I.cancel=C,I.flush=N,I}exports.debounce=H;exports.toNumber=v;
@@ -1 +1 @@
1
- "use strict";const e=require("./el-popper-b6c99b28.cjs"),o=require("./base-ef747d02.cjs"),O=require("./use-form-common-props-fd9b61a0.cjs"),t=require("vue"),N=t.defineComponent({inheritAttrs:!1});function y(r,l,c,i,d,E){return t.renderSlot(r.$slots,"default")}var g=o._export_sfc(N,[["render",y],["__file","collection.vue"]]);const S=t.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function P(r,l,c,i,d,E){return t.renderSlot(r.$slots,"default")}var L=o._export_sfc(S,[["render",P],["__file","collection-item.vue"]]);const f="data-el-collection-item",T=r=>{const l=`El${r}Collection`,c=`${l}Item`,i=Symbol(l),d=Symbol(c),E={...g,name:l,setup(){const a=t.ref(),u=new Map,p=()=>{const s=t.unref(a);if(!s)return[];const n=Array.from(s.querySelectorAll(`[${f}]`));return[...u.values()].sort((m,I)=>n.indexOf(m.ref)-n.indexOf(I.ref))};t.provide(i,{itemMap:u,getItems:p,collectionRef:a})}},C={...L,name:c,setup(a,{attrs:u}){const p=t.ref(),s=t.inject(i,void 0);t.provide(d,{collectionItemRef:p}),t.onMounted(()=>{const n=t.unref(p);n&&s.itemMap.set(n,{ref:n,...u})}),t.onBeforeUnmount(()=>{const n=t.unref(p);s.itemMap.delete(n)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:d,ElCollection:E,ElCollectionItem:C}},b=o.buildProps({trigger:e.useTooltipTriggerProps.trigger,triggerKeys:{type:o.definePropType(Array),default:()=>[e.EVENT_CODE.enter,e.EVENT_CODE.numpadEnter,e.EVENT_CODE.space,e.EVENT_CODE.down]},virtualTriggering:e.useTooltipTriggerProps.virtualTriggering,virtualRef:e.useTooltipTriggerProps.virtualRef,effect:{...e.useTooltipContentProps.effect,default:"light"},type:{type:o.definePropType(String)},placement:{type:o.definePropType(String),default:"bottom"},popperOptions:{type:o.definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:o.definePropType([Number,String]),default:0},maxHeight:{type:o.definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:e.roleTypes,default:"menu"},buttonProps:{type:o.definePropType(Object)},teleported:e.useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0}}),v=o.buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:O.iconPropType}}),w=o.buildProps({onKeydown:{type:o.definePropType(Function)}}),M=[e.EVENT_CODE.down,e.EVENT_CODE.pageDown,e.EVENT_CODE.home],_=[e.EVENT_CODE.up,e.EVENT_CODE.pageUp,e.EVENT_CODE.end],$=[...M,..._],{ElCollection:h,ElCollectionItem:K,COLLECTION_INJECTION_KEY:A,COLLECTION_ITEM_INJECTION_KEY:D}=T("Dropdown");exports.COLLECTION_INJECTION_KEY=A;exports.COLLECTION_ITEM_INJECTION_KEY=D;exports.COLLECTION_ITEM_SIGN=f;exports.ElCollection=h;exports.ElCollectionItem=K;exports.FIRST_LAST_KEYS=$;exports.LAST_KEYS=_;exports.createCollectionWithScope=T;exports.dropdownItemProps=v;exports.dropdownMenuProps=w;exports.dropdownProps=b;
1
+ "use strict";const e=require("./el-popper-1dd8f5b4.cjs"),o=require("./base-7ba08794.cjs"),O=require("./use-form-common-props-41182853.cjs"),t=require("vue"),N=t.defineComponent({inheritAttrs:!1});function y(r,l,c,i,d,E){return t.renderSlot(r.$slots,"default")}var g=o._export_sfc(N,[["render",y],["__file","collection.vue"]]);const S=t.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function P(r,l,c,i,d,E){return t.renderSlot(r.$slots,"default")}var L=o._export_sfc(S,[["render",P],["__file","collection-item.vue"]]);const f="data-el-collection-item",T=r=>{const l=`El${r}Collection`,c=`${l}Item`,i=Symbol(l),d=Symbol(c),E={...g,name:l,setup(){const a=t.ref(),u=new Map,p=()=>{const s=t.unref(a);if(!s)return[];const n=Array.from(s.querySelectorAll(`[${f}]`));return[...u.values()].sort((m,I)=>n.indexOf(m.ref)-n.indexOf(I.ref))};t.provide(i,{itemMap:u,getItems:p,collectionRef:a})}},C={...L,name:c,setup(a,{attrs:u}){const p=t.ref(),s=t.inject(i,void 0);t.provide(d,{collectionItemRef:p}),t.onMounted(()=>{const n=t.unref(p);n&&s.itemMap.set(n,{ref:n,...u})}),t.onBeforeUnmount(()=>{const n=t.unref(p);s.itemMap.delete(n)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:d,ElCollection:E,ElCollectionItem:C}},b=o.buildProps({trigger:e.useTooltipTriggerProps.trigger,triggerKeys:{type:o.definePropType(Array),default:()=>[e.EVENT_CODE.enter,e.EVENT_CODE.numpadEnter,e.EVENT_CODE.space,e.EVENT_CODE.down]},virtualTriggering:e.useTooltipTriggerProps.virtualTriggering,virtualRef:e.useTooltipTriggerProps.virtualRef,effect:{...e.useTooltipContentProps.effect,default:"light"},type:{type:o.definePropType(String)},placement:{type:o.definePropType(String),default:"bottom"},popperOptions:{type:o.definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:o.definePropType([Number,String]),default:0},maxHeight:{type:o.definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:e.roleTypes,default:"menu"},buttonProps:{type:o.definePropType(Object)},teleported:e.useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0}}),v=o.buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:O.iconPropType}}),w=o.buildProps({onKeydown:{type:o.definePropType(Function)}}),M=[e.EVENT_CODE.down,e.EVENT_CODE.pageDown,e.EVENT_CODE.home],_=[e.EVENT_CODE.up,e.EVENT_CODE.pageUp,e.EVENT_CODE.end],$=[...M,..._],{ElCollection:h,ElCollectionItem:K,COLLECTION_INJECTION_KEY:A,COLLECTION_ITEM_INJECTION_KEY:D}=T("Dropdown");exports.COLLECTION_INJECTION_KEY=A;exports.COLLECTION_ITEM_INJECTION_KEY=D;exports.COLLECTION_ITEM_SIGN=f;exports.ElCollection=h;exports.ElCollectionItem=K;exports.FIRST_LAST_KEYS=$;exports.LAST_KEYS=_;exports.createCollectionWithScope=T;exports.dropdownItemProps=v;exports.dropdownMenuProps=w;exports.dropdownProps=b;
@@ -1,11 +1,11 @@
1
- import { i as f, a as e, g as _, r as b } from "./el-popper-b4f97157.js";
2
- import { _ as g, b as E, e as o } from "./base-a5af3db3.js";
3
- import { i as L } from "./use-form-common-props-815d48a6.js";
1
+ import { c as f, e, a as _, r as b } from "./el-popper-49152708.js";
2
+ import { _ as g, b as E, d as o } from "./base-aa512893.js";
3
+ import { k as L } from "./use-form-common-props-4cdda474.js";
4
4
  import { defineComponent as y, renderSlot as T, ref as I, provide as C, inject as $, onMounted as v, unref as m, onBeforeUnmount as h } from "vue";
5
5
  const w = y({
6
6
  inheritAttrs: !1
7
7
  });
8
- function M(n, r, s, l, a, d) {
8
+ function M(n, r, i, l, a, d) {
9
9
  return T(n.$slots, "default");
10
10
  }
11
11
  var A = /* @__PURE__ */ g(w, [["render", M], ["__file", "collection.vue"]]);
@@ -13,12 +13,12 @@ const B = y({
13
13
  name: "ElCollectionItem",
14
14
  inheritAttrs: !1
15
15
  });
16
- function K(n, r, s, l, a, d) {
16
+ function K(n, r, i, l, a, d) {
17
17
  return T(n.$slots, "default");
18
18
  }
19
19
  var P = /* @__PURE__ */ g(B, [["render", K], ["__file", "collection-item.vue"]]);
20
20
  const x = "data-el-collection-item", Y = (n) => {
21
- const r = `El${n}Collection`, s = `${r}Item`, l = Symbol(r), a = Symbol(s), d = {
21
+ const r = `El${n}Collection`, i = `${r}Item`, l = Symbol(r), a = Symbol(i), d = {
22
22
  ...A,
23
23
  name: r,
24
24
  setup() {
@@ -26,10 +26,10 @@ const x = "data-el-collection-item", Y = (n) => {
26
26
  C(l, {
27
27
  itemMap: c,
28
28
  getItems: () => {
29
- const i = m(u);
30
- if (!i)
29
+ const s = m(u);
30
+ if (!s)
31
31
  return [];
32
- const t = Array.from(i.querySelectorAll(`[${x}]`));
32
+ const t = Array.from(s.querySelectorAll(`[${x}]`));
33
33
  return [...c.values()].sort((N, S) => t.indexOf(N.ref) - t.indexOf(S.ref));
34
34
  },
35
35
  collectionRef: u
@@ -37,20 +37,20 @@ const x = "data-el-collection-item", Y = (n) => {
37
37
  }
38
38
  }, O = {
39
39
  ...P,
40
- name: s,
40
+ name: i,
41
41
  setup(u, { attrs: c }) {
42
- const p = I(), i = $(l, void 0);
42
+ const p = I(), s = $(l, void 0);
43
43
  C(a, {
44
44
  collectionItemRef: p
45
45
  }), v(() => {
46
46
  const t = m(p);
47
- t && i.itemMap.set(t, {
47
+ t && s.itemMap.set(t, {
48
48
  ref: t,
49
49
  ...c
50
50
  });
51
51
  }), h(() => {
52
52
  const t = m(p);
53
- i.itemMap.delete(t);
53
+ s.itemMap.delete(t);
54
54
  });
55
55
  }
56
56
  };
@@ -60,7 +60,7 @@ const x = "data-el-collection-item", Y = (n) => {
60
60
  ElCollection: d,
61
61
  ElCollectionItem: O
62
62
  };
63
- }, k = E({
63
+ }, V = E({
64
64
  trigger: f.trigger,
65
65
  triggerKeys: {
66
66
  type: o(Array),
@@ -171,7 +171,7 @@ export {
171
171
  q as a,
172
172
  x as b,
173
173
  Y as c,
174
- k as d,
174
+ V as d,
175
175
  W as e,
176
176
  z as f,
177
177
  Q as g
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),S=require("./use-form-common-props-41182853.cjs"),l=require("./base-7ba08794.cjs"),T=require("./el-input-b04b5bfc.cjs"),ne=require("./index-ae6c9d97.cjs"),u=require("./el-popper-1dd8f5b4.cjs"),se=require("./debounce-4aa22feb.cjs"),ae=l.buildProps({...T.inputProps,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:l.definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:l.definePropType([Function,Array]),default:l.NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:u.useTooltipContentProps.teleported,appendTo:u.useTooltipContentProps.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean}),re={[u.UPDATE_MODEL_EVENT]:s=>l.isString(s)||l.isNumber(s),[u.INPUT_EVENT]:s=>l.isString(s)||l.isNumber(s),[u.CHANGE_EVENT]:s=>l.isString(s)||l.isNumber(s),focus:s=>s instanceof FocusEvent,blur:s=>s instanceof FocusEvent,clear:()=>!0,select:s=>l.isObject(s)},q="ElAutocomplete",ue=e.defineComponent({name:q,inheritAttrs:!1}),ie=e.defineComponent({...ue,props:ae,emits:re,setup(s,{expose:U,emit:p}){const r=s,z=e.computed(()=>u.pick(r,Object.keys(T.inputProps))),L=e.useAttrs(),$=S.useFormDisabled(),i=l.useNamespace("autocomplete"),f=e.ref(),A=e.ref(),b=e.ref(),P=e.ref();let V=!1,C=!1;const d=e.ref([]),a=e.ref(-1),I=e.ref(""),v=e.ref(!1),E=e.ref(!1),m=e.ref(!1),h=S.useId(),R=e.computed(()=>L.style),g=e.computed(()=>(d.value.length>0||m.value)&&v.value),_=e.computed(()=>!r.hideLoading&&m.value),W=e.computed(()=>f.value?Array.from(f.value.$el.querySelectorAll("input")):[]),H=()=>{g.value&&(I.value=`${f.value.$el.offsetWidth}px`)},G=()=>{a.value=-1},B=async t=>{if(E.value)return;const o=n=>{m.value=!1,!E.value&&(l.isArray(n)?(d.value=n,a.value=r.highlightFirstItem?0:-1):u.throwError(q,"autocomplete suggestions must be an array"))};if(m.value=!0,l.isArray(r.fetchSuggestions))o(r.fetchSuggestions);else{const n=await r.fetchSuggestions(t,o);l.isArray(n)&&o(n)}},D=se.debounce(B,r.debounce),j=t=>{const o=!!t;if(p(u.INPUT_EVENT,t),p(u.UPDATE_MODEL_EVENT,t),E.value=!1,v.value||(v.value=o),!r.triggerOnFocus&&!t){E.value=!0,d.value=[];return}D(t)},x=t=>{var o;$.value||(((o=t.target)==null?void 0:o.tagName)!=="INPUT"||W.value.includes(document.activeElement))&&(v.value=!0)},J=t=>{p(u.CHANGE_EVENT,t)},Q=t=>{var o;if(C)C=!1;else{v.value=!0,p("focus",t);const n=(o=r.modelValue)!=null?o:"";r.triggerOnFocus&&!V&&D(String(n))}},X=t=>{setTimeout(()=>{var o;if((o=b.value)!=null&&o.isFocusInsideContent()){C=!0;return}v.value&&y(),p("blur",t)})},Y=()=>{v.value=!1,p(u.UPDATE_MODEL_EVENT,""),p("clear")},F=async()=>{var t;(t=f.value)!=null&&t.isComposing||(g.value&&a.value>=0&&a.value<d.value.length?w(d.value[a.value]):r.selectWhenUnmatched&&(p("select",{value:r.modelValue}),d.value=[],a.value=-1))},Z=t=>{g.value&&(t.preventDefault(),t.stopPropagation(),y())},y=()=>{v.value=!1},ee=()=>{var t;(t=f.value)==null||t.focus()},te=()=>{var t;(t=f.value)==null||t.blur()},w=async t=>{p(u.INPUT_EVENT,t[r.valueKey]),p(u.UPDATE_MODEL_EVENT,t[r.valueKey]),p("select",t),d.value=[],a.value=-1},k=t=>{var o,n;if(!g.value||m.value)return;if(t<0){a.value=-1;return}t>=d.value.length&&(t=d.value.length-1);const c=A.value.querySelector(`.${i.be("suggestion","wrap")}`),le=c.querySelectorAll(`.${i.be("suggestion","list")} li`)[t],K=c.scrollTop,{offsetTop:M,scrollHeight:N}=le;M+N>K+c.clientHeight&&(c.scrollTop+=N),M<K&&(c.scrollTop-=N),a.value=t,(n=(o=f.value)==null?void 0:o.ref)==null||n.setAttribute("aria-activedescendant",`${h.value}-item-${a.value}`)},O=S.onClickOutside(P,()=>{var t;(t=b.value)!=null&&t.isFocusInsideContent()||g.value&&y()});return e.onBeforeUnmount(()=>{O==null||O()}),e.onMounted(()=>{var t;const o=(t=f.value)==null?void 0:t.ref;o&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:"id"},{key:"aria-activedescendant",value:`${h.value}-item-${a.value}`}].forEach(({key:n,value:c})=>o.setAttribute(n,c)),V=o.hasAttribute("readonly"))}),U({highlightedIndex:a,activated:v,loading:m,inputRef:f,popperRef:b,suggestions:d,handleSelect:w,handleKeyEnter:F,focus:ee,blur:te,close:y,highlight:k,getData:B}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(u.ElTooltip),{ref_key:"popperRef",ref:b,visible:e.unref(g),placement:t.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[e.unref(i).e("popper"),t.popperClass],teleported:t.teleported,"append-to":t.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${e.unref(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:H,onHide:G},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"regionRef",ref:A,class:e.normalizeClass([e.unref(i).b("suggestion"),e.unref(i).is("loading",e.unref(_))]),style:e.normalizeStyle({[t.fitInputWidth?"width":"minWidth"]:I.value,outline:"none"}),role:"region"},[t.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i).be("suggestion","header")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(t.$slots,"header")],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(ne.ElScrollbar),{id:e.unref(h),tag:"ul","wrap-class":e.unref(i).be("suggestion","wrap"),"view-class":e.unref(i).be("suggestion","list"),role:"listbox"},{default:e.withCtx(()=>[e.unref(_)?(e.openBlock(),e.createElementBlock("li",{key:0},[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(l.ElIcon),{class:e.normalizeClass(e.unref(i).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(l.loading_default))]),_:1},8,["class"])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(d.value,(n,c)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(h)}-item-${c}`,key:c,class:e.normalizeClass({highlighted:a.value===c}),role:"option","aria-selected":a.value===c,onClick:oe=>w(n)},[e.renderSlot(t.$slots,"default",{item:n},()=>[e.createTextVNode(e.toDisplayString(n[t.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(i).be("suggestion","footer")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(t.$slots,"footer")],10,["onClick"])):e.createCommentVNode("v-if",!0)],6)]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"listboxRef",ref:P,class:e.normalizeClass([e.unref(i).b(),t.$attrs.class]),style:e.normalizeStyle(e.unref(R)),role:"combobox","aria-haspopup":"listbox","aria-expanded":e.unref(g),"aria-owns":e.unref(h)},[e.createVNode(e.unref(T.ElInput),e.mergeProps({ref_key:"inputRef",ref:f},e.mergeProps(e.unref(z),t.$attrs),{"model-value":t.modelValue,disabled:e.unref($),onInput:j,onChange:J,onFocus:Q,onBlur:X,onClear:Y,onKeydown:[e.withKeys(e.withModifiers(n=>k(a.value-1),["prevent"]),["up"]),e.withKeys(e.withModifiers(n=>k(a.value+1),["prevent"]),["down"]),e.withKeys(F,["enter"]),e.withKeys(y,["tab"]),e.withKeys(Z,["esc"])],onMousedown:x}),e.createSlots({_:2},[t.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")])}:void 0,t.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"append")])}:void 0,t.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")])}:void 0,t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")])}:void 0]),1040,["model-value","disabled","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var ce=l._export_sfc(ie,[["__file","autocomplete.vue"]]);const pe=l.withInstall(ce);exports.ElAutocomplete=pe;
@@ -1,13 +1,11 @@
1
1
  import { defineComponent as oe, computed as k, useAttrs as Ce, ref as d, onBeforeUnmount as Se, onMounted as Ie, openBlock as b, createBlock as Ne, unref as t, withCtx as v, createElementVNode as X, normalizeClass as y, normalizeStyle as Y, createElementBlock as w, withModifiers as N, renderSlot as g, createCommentVNode as Z, createVNode as T, Fragment as Te, renderList as Ae, createTextVNode as Fe, toDisplayString as Pe, mergeProps as x, withKeys as C, createSlots as Ve } from "vue";
2
- import { g as _e, v as Be } from "./use-form-common-props-815d48a6.js";
3
- import { E as De, l as Oe } from "./index-a871c3eb.js";
4
- import { i as se, E as Ke } from "./el-input-2f75c4ba.js";
5
- import { E as Re } from "./index-844bdd85.js";
6
- import { g as ee, U as A, I as K, C as le, p as Me, E as Ue, b as We } from "./el-popper-b4f97157.js";
7
- import { b as Le, e as te, N as He, c as B, p as D, f as qe, u as je, _ as ze, j as O, w as Ge } from "./base-a5af3db3.js";
8
- import { u as Je } from "./index-960806da.js";
9
- import { d as Qe } from "./debounce-8d53f4dd.js";
10
- const Xe = Le({
2
+ import { e as _e, d as Be, o as De } from "./use-form-common-props-4cdda474.js";
3
+ import { b as Oe, d as ee, N as Ke, m as B, n as D, p as Re, u as Me, E as Ue, B as We, _ as Le, i as O, w as He } from "./base-aa512893.js";
4
+ import { i as se, E as qe } from "./el-input-262851e8.js";
5
+ import { E as ze } from "./index-66ad0d6a.js";
6
+ import { a as te, U as A, I as K, C as ae, p as je, E as Ge, t as Je } from "./el-popper-49152708.js";
7
+ import { d as Qe } from "./debounce-33406a0d.js";
8
+ const Xe = Oe({
11
9
  ...se,
12
10
  valueKey: {
13
11
  type: String,
@@ -22,7 +20,7 @@ const Xe = Le({
22
20
  default: 300
23
21
  },
24
22
  placement: {
25
- type: te(String),
23
+ type: ee(String),
26
24
  values: [
27
25
  "top",
28
26
  "top-start",
@@ -34,8 +32,8 @@ const Xe = Le({
34
32
  default: "bottom-start"
35
33
  },
36
34
  fetchSuggestions: {
37
- type: te([Function, Array]),
38
- default: He
35
+ type: ee([Function, Array]),
36
+ default: Ke
39
37
  },
40
38
  popperClass: {
41
39
  type: String,
@@ -47,37 +45,37 @@ const Xe = Le({
47
45
  },
48
46
  selectWhenUnmatched: Boolean,
49
47
  hideLoading: Boolean,
50
- teleported: ee.teleported,
51
- appendTo: ee.appendTo,
48
+ teleported: te.teleported,
49
+ appendTo: te.appendTo,
52
50
  highlightFirstItem: Boolean,
53
51
  fitInputWidth: Boolean
54
52
  }), Ye = {
55
- [A]: (l) => B(l) || D(l),
56
- [K]: (l) => B(l) || D(l),
57
- [le]: (l) => B(l) || D(l),
58
- focus: (l) => l instanceof FocusEvent,
59
- blur: (l) => l instanceof FocusEvent,
53
+ [A]: (a) => B(a) || D(a),
54
+ [K]: (a) => B(a) || D(a),
55
+ [ae]: (a) => B(a) || D(a),
56
+ focus: (a) => a instanceof FocusEvent,
57
+ blur: (a) => a instanceof FocusEvent,
60
58
  clear: () => !0,
61
- select: (l) => qe(l)
62
- }, ae = "ElAutocomplete", Ze = oe({
63
- name: ae,
59
+ select: (a) => Re(a)
60
+ }, le = "ElAutocomplete", Ze = oe({
61
+ name: le,
64
62
  inheritAttrs: !1
65
63
  }), xe = /* @__PURE__ */ oe({
66
64
  ...Ze,
67
65
  props: Xe,
68
66
  emits: Ye,
69
- setup(l, { expose: ne, emit: i }) {
70
- const n = l, re = k(() => Me(n, Object.keys(se))), ue = Ce(), R = _e(), r = je("autocomplete"), p = d(), M = d(), S = d(), U = d();
67
+ setup(a, { expose: ne, emit: i }) {
68
+ const n = a, re = k(() => je(n, Object.keys(se))), ue = Ce(), R = _e(), r = Me("autocomplete"), p = d(), M = d(), S = d(), U = d();
71
69
  let W = !1, F = !1;
72
- const c = d([]), a = d(-1), L = d(""), f = d(!1), I = d(!1), h = d(!1), E = Je(), ie = k(() => ue.style), m = k(() => (c.value.length > 0 || h.value) && f.value), H = k(() => !n.hideLoading && h.value), ce = k(() => p.value ? Array.from(p.value.$el.querySelectorAll("input")) : []), pe = () => {
70
+ const c = d([]), l = d(-1), L = d(""), f = d(!1), I = d(!1), h = d(!1), E = Be(), ie = k(() => ue.style), m = k(() => (c.value.length > 0 || h.value) && f.value), H = k(() => !n.hideLoading && h.value), ce = k(() => p.value ? Array.from(p.value.$el.querySelectorAll("input")) : []), pe = () => {
73
71
  m.value && (L.value = `${p.value.$el.offsetWidth}px`);
74
72
  }, de = () => {
75
- a.value = -1;
73
+ l.value = -1;
76
74
  }, q = async (e) => {
77
75
  if (I.value)
78
76
  return;
79
77
  const o = (s) => {
80
- h.value = !1, !I.value && (O(s) ? (c.value = s, a.value = n.highlightFirstItem ? 0 : -1) : We(ae, "autocomplete suggestions must be an array"));
78
+ h.value = !1, !I.value && (O(s) ? (c.value = s, l.value = n.highlightFirstItem ? 0 : -1) : Je(le, "autocomplete suggestions must be an array"));
81
79
  };
82
80
  if (h.value = !0, O(n.fetchSuggestions))
83
81
  o(n.fetchSuggestions);
@@ -85,18 +83,18 @@ const Xe = Le({
85
83
  const s = await n.fetchSuggestions(e, o);
86
84
  O(s) && o(s);
87
85
  }
88
- }, j = Qe(q, n.debounce), fe = (e) => {
86
+ }, z = Qe(q, n.debounce), fe = (e) => {
89
87
  const o = !!e;
90
88
  if (i(K, e), i(A, e), I.value = !1, f.value || (f.value = o), !n.triggerOnFocus && !e) {
91
89
  I.value = !0, c.value = [];
92
90
  return;
93
91
  }
94
- j(e);
92
+ z(e);
95
93
  }, ve = (e) => {
96
94
  var o;
97
95
  R.value || (((o = e.target) == null ? void 0 : o.tagName) !== "INPUT" || ce.value.includes(document.activeElement)) && (f.value = !0);
98
96
  }, ge = (e) => {
99
- i(le, e);
97
+ i(ae, e);
100
98
  }, me = (e) => {
101
99
  var o;
102
100
  if (F)
@@ -104,7 +102,7 @@ const Xe = Le({
104
102
  else {
105
103
  f.value = !0, i("focus", e);
106
104
  const s = (o = n.modelValue) != null ? o : "";
107
- n.triggerOnFocus && !W && j(String(s));
105
+ n.triggerOnFocus && !W && z(String(s));
108
106
  }
109
107
  }, he = (e) => {
110
108
  setTimeout(() => {
@@ -117,9 +115,9 @@ const Xe = Le({
117
115
  });
118
116
  }, be = () => {
119
117
  f.value = !1, i(A, ""), i("clear");
120
- }, z = async () => {
118
+ }, j = async () => {
121
119
  var e;
122
- (e = p.value) != null && e.isComposing || (m.value && a.value >= 0 && a.value < c.value.length ? P(c.value[a.value]) : n.selectWhenUnmatched && (i("select", { value: n.modelValue }), c.value = [], a.value = -1));
120
+ (e = p.value) != null && e.isComposing || (m.value && l.value >= 0 && l.value < c.value.length ? P(c.value[l.value]) : n.selectWhenUnmatched && (i("select", { value: n.modelValue }), c.value = [], l.value = -1));
123
121
  }, ye = (e) => {
124
122
  m.value && (e.preventDefault(), e.stopPropagation(), $());
125
123
  }, $ = () => {
@@ -131,19 +129,19 @@ const Xe = Le({
131
129
  var e;
132
130
  (e = p.value) == null || e.blur();
133
131
  }, P = async (e) => {
134
- i(K, e[n.valueKey]), i(A, e[n.valueKey]), i("select", e), c.value = [], a.value = -1;
132
+ i(K, e[n.valueKey]), i(A, e[n.valueKey]), i("select", e), c.value = [], l.value = -1;
135
133
  }, V = (e) => {
136
134
  var o, s;
137
135
  if (!m.value || h.value)
138
136
  return;
139
137
  if (e < 0) {
140
- a.value = -1;
138
+ l.value = -1;
141
139
  return;
142
140
  }
143
141
  e >= c.value.length && (e = c.value.length - 1);
144
142
  const u = M.value.querySelector(`.${r.be("suggestion", "wrap")}`), we = u.querySelectorAll(`.${r.be("suggestion", "list")} li`)[e], J = u.scrollTop, { offsetTop: Q, scrollHeight: _ } = we;
145
- Q + _ > J + u.clientHeight && (u.scrollTop += _), Q < J && (u.scrollTop -= _), a.value = e, (s = (o = p.value) == null ? void 0 : o.ref) == null || s.setAttribute("aria-activedescendant", `${E.value}-item-${a.value}`);
146
- }, G = Be(U, () => {
143
+ Q + _ > J + u.clientHeight && (u.scrollTop += _), Q < J && (u.scrollTop -= _), l.value = e, (s = (o = p.value) == null ? void 0 : o.ref) == null || s.setAttribute("aria-activedescendant", `${E.value}-item-${l.value}`);
144
+ }, G = De(U, () => {
147
145
  var e;
148
146
  (e = S.value) != null && e.isFocusInsideContent() || m.value && $();
149
147
  });
@@ -158,24 +156,24 @@ const Xe = Le({
158
156
  { key: "aria-controls", value: "id" },
159
157
  {
160
158
  key: "aria-activedescendant",
161
- value: `${E.value}-item-${a.value}`
159
+ value: `${E.value}-item-${l.value}`
162
160
  }
163
161
  ].forEach(({ key: s, value: u }) => o.setAttribute(s, u)), W = o.hasAttribute("readonly"));
164
162
  }), ne({
165
- highlightedIndex: a,
163
+ highlightedIndex: l,
166
164
  activated: f,
167
165
  loading: h,
168
166
  inputRef: p,
169
167
  popperRef: S,
170
168
  suggestions: c,
171
169
  handleSelect: P,
172
- handleKeyEnter: z,
170
+ handleKeyEnter: j,
173
171
  focus: Ee,
174
172
  blur: $e,
175
173
  close: $,
176
174
  highlight: V,
177
175
  getData: q
178
- }), (e, o) => (b(), Ne(t(Ue), {
176
+ }), (e, o) => (b(), Ne(t(Ge), {
179
177
  ref_key: "popperRef",
180
178
  ref: S,
181
179
  visible: t(m),
@@ -214,7 +212,7 @@ const Xe = Le({
214
212
  }, [
215
213
  g(e.$slots, "header")
216
214
  ], 10, ["onClick"])) : Z("v-if", !0),
217
- T(t(Re), {
215
+ T(t(ze), {
218
216
  id: t(E),
219
217
  tag: "ul",
220
218
  "wrap-class": t(r).be("suggestion", "wrap"),
@@ -224,11 +222,11 @@ const Xe = Le({
224
222
  default: v(() => [
225
223
  t(H) ? (b(), w("li", { key: 0 }, [
226
224
  g(e.$slots, "loading", {}, () => [
227
- T(t(De), {
225
+ T(t(Ue), {
228
226
  class: y(t(r).is("loading"))
229
227
  }, {
230
228
  default: v(() => [
231
- T(t(Oe))
229
+ T(t(We))
232
230
  ]),
233
231
  _: 1
234
232
  }, 8, ["class"])
@@ -236,9 +234,9 @@ const Xe = Le({
236
234
  ])) : (b(!0), w(Te, { key: 1 }, Ae(c.value, (s, u) => (b(), w("li", {
237
235
  id: `${t(E)}-item-${u}`,
238
236
  key: u,
239
- class: y({ highlighted: a.value === u }),
237
+ class: y({ highlighted: l.value === u }),
240
238
  role: "option",
241
- "aria-selected": a.value === u,
239
+ "aria-selected": l.value === u,
242
240
  onClick: (ke) => P(s)
243
241
  }, [
244
242
  g(e.$slots, "default", { item: s }, () => [
@@ -269,7 +267,7 @@ const Xe = Le({
269
267
  "aria-expanded": t(m),
270
268
  "aria-owns": t(E)
271
269
  }, [
272
- T(t(Ke), x({
270
+ T(t(qe), x({
273
271
  ref_key: "inputRef",
274
272
  ref: p
275
273
  }, x(t(re), e.$attrs), {
@@ -281,9 +279,9 @@ const Xe = Le({
281
279
  onBlur: he,
282
280
  onClear: be,
283
281
  onKeydown: [
284
- C(N((s) => V(a.value - 1), ["prevent"]), ["up"]),
285
- C(N((s) => V(a.value + 1), ["prevent"]), ["down"]),
286
- C(z, ["enter"]),
282
+ C(N((s) => V(l.value - 1), ["prevent"]), ["up"]),
283
+ C(N((s) => V(l.value + 1), ["prevent"]), ["down"]),
284
+ C(j, ["enter"]),
287
285
  C($, ["tab"]),
288
286
  C(ye, ["esc"])
289
287
  ],
@@ -322,8 +320,8 @@ const Xe = Le({
322
320
  }, 8, ["visible", "placement", "popper-class", "teleported", "append-to", "transition"]));
323
321
  }
324
322
  });
325
- var et = /* @__PURE__ */ ze(xe, [["__file", "autocomplete.vue"]]);
326
- const ct = Ge(et);
323
+ var et = /* @__PURE__ */ Le(xe, [["__file", "autocomplete.vue"]]);
324
+ const ut = He(et);
327
325
  export {
328
- ct as E
326
+ ut as E
329
327
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("./base-7ba08794.cjs"),w=require("./index-f1c702f6.cjs"),z=require("./use-global-config-dc5527e8.cjs"),b=require("./use-form-common-props-41182853.cjs"),E=require("./index-eea0bcb3.cjs"),x=Symbol("buttonGroupContextKey"),I=(o,d)=>{w.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},e.computed(()=>o.type==="text"));const r=e.inject(x,void 0),l=z.useGlobalConfig("button"),{form:c}=b.useFormItem(),a=b.useFormSize(e.computed(()=>r==null?void 0:r.size)),n=b.useFormDisabled(),p=e.ref(),m=e.useSlots(),v=e.computed(()=>{var t;return o.type||(r==null?void 0:r.type)||((t=l.value)==null?void 0:t.type)||""}),g=e.computed(()=>{var t,s,i;return(i=(s=o.autoInsertSpace)!=null?s:(t=l.value)==null?void 0:t.autoInsertSpace)!=null?i:!1}),y=e.computed(()=>{var t,s,i;return(i=(s=o.plain)!=null?s:(t=l.value)==null?void 0:t.plain)!=null?i:!1}),_=e.computed(()=>{var t,s,i;return(i=(s=o.round)!=null?s:(t=l.value)==null?void 0:t.round)!=null?i:!1}),B=e.computed(()=>{var t,s,i;return(i=(s=o.text)!=null?s:(t=l.value)==null?void 0:t.text)!=null?i:!1}),k=e.computed(()=>o.tag==="button"?{ariaDisabled:n.value||o.loading,disabled:n.value||o.loading,autofocus:o.autofocus,type:o.nativeType}:{}),C=e.computed(()=>{var t;const s=(t=m.default)==null?void 0:t.call(m);if(g.value&&(s==null?void 0:s.length)===1){const i=s[0];if((i==null?void 0:i.type)===e.Text){const $=i.children;return/^\p{Unified_Ideograph}{2}$/u.test($.trim())}}return!1});return{_disabled:n,_size:a,_type:v,_ref:p,_props:k,_plain:y,_round:_,_text:B,shouldAddSpace:C,handleClick:t=>{if(n.value||o.loading){t.stopPropagation();return}o.nativeType==="reset"&&(c==null||c.resetFields()),d("click",t)}}},N=["default","primary","success","warning","info","danger","text",""],P=["button","submit","reset"],S=u.buildProps({size:b.useSizeProp,disabled:Boolean,type:{type:String,values:N,default:""},icon:{type:b.iconPropType},nativeType:{type:String,values:P,default:"button"},loading:Boolean,loadingIcon:{type:b.iconPropType,default:()=>u.loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:u.definePropType([String,Object]),default:"button"}}),T={click:o=>o instanceof MouseEvent};function f(o,d=20){return o.mix("#141414",d).toString()}function D(o){const d=b.useFormDisabled(),r=u.useNamespace("button");return e.computed(()=>{let l={},c=o.color;if(c){const a=c.match(/var\((.*?)\)/);a&&(c=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const n=new E.TinyColor(c),p=o.dark?n.tint(20).toString():f(n,20);if(o.plain)l=r.cssVarBlock({"bg-color":o.dark?f(n,90):n.tint(90).toString(),"text-color":c,"border-color":o.dark?f(n,50):n.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":c,"hover-border-color":c,"active-bg-color":p,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":p}),d.value&&(l[r.cssVarBlockName("disabled-bg-color")]=o.dark?f(n,90):n.tint(90).toString(),l[r.cssVarBlockName("disabled-text-color")]=o.dark?f(n,50):n.tint(50).toString(),l[r.cssVarBlockName("disabled-border-color")]=o.dark?f(n,80):n.tint(80).toString());else{const m=o.dark?f(n,30):n.tint(30).toString(),v=n.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(l=r.cssVarBlock({"bg-color":c,"text-color":v,"border-color":c,"hover-bg-color":m,"hover-text-color":v,"hover-border-color":m,"active-bg-color":p,"active-border-color":p}),d.value){const g=o.dark?f(n,50):n.tint(50).toString();l[r.cssVarBlockName("disabled-bg-color")]=g,l[r.cssVarBlockName("disabled-text-color")]=o.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,l[r.cssVarBlockName("disabled-border-color")]=g}}}return l})}const G=e.defineComponent({name:"ElButton"}),F=e.defineComponent({...G,props:S,emits:T,setup(o,{expose:d,emit:r}){const l=o,c=D(l),a=u.useNamespace("button"),{_ref:n,_size:p,_type:m,_disabled:v,_props:g,_plain:y,_round:_,_text:B,shouldAddSpace:k,handleClick:C}=I(l,r),h=e.computed(()=>[a.b(),a.m(m.value),a.m(p.value),a.is("disabled",v.value),a.is("loading",l.loading),a.is("plain",y.value),a.is("round",_.value),a.is("circle",l.circle),a.is("text",B.value),a.is("link",l.link),a.is("has-bg",l.bg)]);return d({ref:n,size:p,type:m,disabled:v,shouldAddSpace:k}),(t,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),e.mergeProps({ref_key:"_ref",ref:n},e.unref(g),{class:e.unref(h),style:e.unref(c),onClick:e.unref(C)}),{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.loading?e.renderSlot(t.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:1,class:e.normalizeClass(e.unref(a).is("loading"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.loadingIcon)))]),_:1},8,["class"]))],64)):t.icon||t.$slots.icon?(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:1},{default:e.withCtx(()=>[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0})):e.renderSlot(t.$slots,"icon",{key:1})]),_:3})):e.createCommentVNode("v-if",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(a).em("text","expand")]:e.unref(k)})},[e.renderSlot(t.$slots,"default")],2)):e.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var q=u._export_sfc(F,[["__file","button.vue"]]);const K={size:S.size,type:S.type},j=e.defineComponent({name:"ElButtonGroup"}),A=e.defineComponent({...j,props:K,setup(o){const d=o;e.provide(x,e.reactive({size:e.toRef(d,"size"),type:e.toRef(d,"type")}));const r=u.useNamespace("button");return(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b("group"))},[e.renderSlot(l.$slots,"default")],2))}});var V=u._export_sfc(A,[["__file","button-group.vue"]]);const R=u.withInstall(q,{ButtonGroup:V});u.withNoopInstall(V);exports.ElButton=R;exports.buttonTypes=N;