st-comp 0.0.93 → 0.0.94

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 (83) hide show
  1. package/components.d.ts +13 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +1 -5
  5. package/es/Dialog.js +45 -711
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +463 -1
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +92 -91
  10. package/es/KlineNew.cjs +1 -1
  11. package/es/KlineNew.js +10 -9
  12. package/es/Pagination.cjs +1 -1
  13. package/es/Pagination.js +106 -104
  14. package/es/Table.cjs +1 -20
  15. package/es/Table.js +361 -4253
  16. package/es/VarietySearch.cjs +1 -1
  17. package/es/VarietySearch.js +2522 -1
  18. package/es/VirtualTable.cjs +3 -3
  19. package/es/VirtualTable.js +249 -254
  20. package/es/base-6e64c2e6.js +762 -0
  21. package/es/base-8776b83e.cjs +9 -0
  22. package/es/castArray-59d5ae43.cjs +1 -0
  23. package/es/castArray-8ec29ca6.js +10 -0
  24. package/es/config-provider-76ef1b35.cjs +1 -0
  25. package/es/config-provider-f4278c8e.js +46 -0
  26. package/es/{el-button-9476b767.js → el-button-4c7ae9df.js} +52 -52
  27. package/es/{el-button-ed961332.cjs → el-button-65e4598f.cjs} +1 -1
  28. package/es/{el-empty-f4c08c01.js → el-empty-05e13b3c.js} +3 -3
  29. package/es/{el-empty-7adcc7f0.cjs → el-empty-dfe11c21.cjs} +1 -1
  30. package/es/el-icon-0ea8fbf8.cjs +1 -0
  31. package/es/el-icon-4ed993c7.js +1 -0
  32. package/es/el-input-11327619.cjs +9 -0
  33. package/es/el-input-f4898cfa.js +544 -0
  34. package/es/el-overlay-9d9c6ba9.cjs +5 -0
  35. package/es/el-overlay-d7af7dda.js +678 -0
  36. package/es/el-popover-4a4a4b02.cjs +1 -0
  37. package/es/el-popover-dc9c7ff7.js +133 -0
  38. package/es/el-radio-group-a31fb7c0.js +1743 -0
  39. package/es/el-radio-group-cc2d6c87.cjs +12 -0
  40. package/es/{el-scrollbar-ffb7b9c1.js → el-scrollbar-a00aca2f.js} +48 -48
  41. package/es/{el-scrollbar-586be9bd.cjs → el-scrollbar-f197b544.cjs} +1 -1
  42. package/es/el-select-5dbb0da3.cjs +1 -0
  43. package/es/el-select-b9cf452e.js +1360 -0
  44. package/es/el-table-column-1e15361e.cjs +20 -0
  45. package/es/el-table-column-675f51e6.js +3795 -0
  46. package/es/el-tag-c9d5baa7.cjs +1 -0
  47. package/es/{el-tag-7549c103.js → el-tag-f878b1f1.js} +126 -119
  48. package/es/{focus-trap-5fc152a0.js → focus-trap-2677bd39.js} +35 -34
  49. package/es/focus-trap-5f42842b.cjs +1 -0
  50. package/es/raf-32ed81f4.js +6 -0
  51. package/es/{raf-c4bba516.cjs → raf-7c366b55.cjs} +1 -1
  52. package/es/{scroll-38e17abc.cjs → scroll-22a00b05.cjs} +1 -1
  53. package/es/{scroll-c6e51ef8.js → scroll-9b9249e9.js} +5 -5
  54. package/es/style.css +1 -1
  55. package/es/use-form-item-67e7ef93.cjs +3 -0
  56. package/es/use-form-item-bfc7dddf.js +669 -0
  57. package/es/use-global-config-89daeba3.js +110 -0
  58. package/es/use-global-config-f9103903.cjs +1 -0
  59. package/es/{vnode-40f9df3c.cjs → vnode-69f3ca85.cjs} +1 -1
  60. package/es/{vnode-f4b846cb.js → vnode-aa3448ec.js} +1 -1
  61. package/es/zh-cn-720e514b.cjs +1 -0
  62. package/es/{zh-cn-e36dfbf4.js → zh-cn-e662dc89.js} +6 -45
  63. package/lib/bundle.js +1 -1
  64. package/lib/bundle.umd.cjs +174 -174
  65. package/lib/{index-4635557b.js → index-5d6aca6c.js} +27787 -27281
  66. package/lib/{python-aa056c80.js → python-dae8be67.js} +1 -1
  67. package/lib/style.css +1 -1
  68. package/package.json +1 -1
  69. package/packages/VarietySearch/components/CommonIndicator/index.vue +270 -112
  70. package/packages/VarietySearch/config.js +12 -1
  71. package/packages/VarietySearch/index.vue +8 -0
  72. package/es/base-8aa55db5.js +0 -725
  73. package/es/base-b187e78f.cjs +0 -9
  74. package/es/el-select-a6cf0236.js +0 -1893
  75. package/es/el-select-eaa79c54.cjs +0 -9
  76. package/es/el-tag-5a8b728a.cjs +0 -1
  77. package/es/focus-trap-ea1e7a19.cjs +0 -1
  78. package/es/raf-3a2b250a.js +0 -6
  79. package/es/use-form-item-bd4b9eeb.js +0 -531
  80. package/es/use-form-item-c25c7251.cjs +0 -3
  81. package/es/use-global-config-2d21cd56.js +0 -110
  82. package/es/use-global-config-bce8cdd8.cjs +0 -1
  83. package/es/zh-cn-a61d484e.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { onMounted as O, onBeforeUnmount as N, ref as w, defineComponent as te, provide as ne, watch as S, unref as T, nextTick as $, renderSlot as se } from "vue";
2
- import { a as M, _ as oe, g as re } from "./base-8aa55db5.js";
1
+ import { onMounted as N, onBeforeUnmount as O, ref as w, defineComponent as te, provide as ne, watch as S, unref as T, nextTick as $, renderSlot as se } from "vue";
2
+ import { o as M, _ as oe, i as re } from "./base-6e64c2e6.js";
3
3
  function ce(e) {
4
4
  return e == null;
5
5
  }
@@ -19,16 +19,16 @@ const X = {
19
19
  pageDown: "PageDown",
20
20
  home: "Home",
21
21
  end: "End"
22
- }, Pe = "update:modelValue", ge = "change";
23
- let v = [];
22
+ }, ye = "update:modelValue", ge = "change", he = "input";
23
+ let E = [];
24
24
  const j = (e) => {
25
25
  const n = e;
26
- n.key === X.esc && v.forEach((s) => s(n));
26
+ n.key === X.esc && E.forEach((s) => s(n));
27
27
  }, ae = (e) => {
28
- O(() => {
29
- v.length === 0 && document.addEventListener("keydown", j), M && v.push(e);
30
- }), N(() => {
31
- v = v.filter((n) => n !== e), v.length === 0 && M && document.removeEventListener("keydown", j);
28
+ N(() => {
29
+ E.length === 0 && document.addEventListener("keydown", j), M && E.push(e);
30
+ }), O(() => {
31
+ E = E.filter((n) => n !== e), E.length === 0 && M && document.removeEventListener("keydown", j);
32
32
  });
33
33
  }, L = "focus-trap.focus-after-trapped", C = "focus-trap.focus-after-released", ue = "focus-trap.focusout-prevented", q = {
34
34
  cancelable: !0,
@@ -36,7 +36,7 @@ const j = (e) => {
36
36
  }, ie = {
37
37
  cancelable: !0,
38
38
  bubbles: !1
39
- }, W = "focusAfterTrapped", G = "focusAfterReleased", de = Symbol("elFocusTrap"), R = w(), y = w(0), A = w(0);
39
+ }, W = "focusAfterTrapped", G = "focusAfterReleased", de = Symbol("elFocusTrap"), R = w(), P = w(0), A = w(0);
40
40
  let F = 0;
41
41
  const Z = (e) => {
42
42
  const n = [], s = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
@@ -78,7 +78,7 @@ function Y(e, n) {
78
78
  const s = [...e], o = e.indexOf(n);
79
79
  return o !== -1 && s.splice(o, 1), s;
80
80
  }
81
- const ve = () => {
81
+ const Ee = () => {
82
82
  let e = [];
83
83
  return {
84
84
  push: (o) => {
@@ -90,22 +90,22 @@ const ve = () => {
90
90
  e = Y(e, o), (d = (c = e[0]) == null ? void 0 : c.resume) == null || d.call(c);
91
91
  }
92
92
  };
93
- }, Ee = (e, n = !1) => {
93
+ }, ve = (e, n = !1) => {
94
94
  const s = document.activeElement;
95
95
  for (const o of e)
96
96
  if (l(o, n), document.activeElement !== s)
97
97
  return;
98
- }, z = ve(), me = () => y.value > A.value, _ = () => {
99
- R.value = "pointer", y.value = window.performance.now();
98
+ }, z = Ee(), me = () => P.value > A.value, _ = () => {
99
+ R.value = "pointer", P.value = window.performance.now();
100
100
  }, Q = () => {
101
- R.value = "keyboard", y.value = window.performance.now();
102
- }, Te = () => (O(() => {
101
+ R.value = "keyboard", P.value = window.performance.now();
102
+ }, Te = () => (N(() => {
103
103
  F === 0 && (document.addEventListener("mousedown", _), document.addEventListener("touchstart", _), document.addEventListener("keydown", Q)), F++;
104
- }), N(() => {
104
+ }), O(() => {
105
105
  F--, F <= 0 && (document.removeEventListener("mousedown", _), document.removeEventListener("touchstart", _), document.removeEventListener("keydown", Q));
106
106
  }), {
107
107
  focusReason: R,
108
- lastUserFocusTimestamp: y,
108
+ lastUserFocusTimestamp: P,
109
109
  lastAutomatedFocusTimestamp: A
110
110
  }), b = (e) => new CustomEvent(ue, {
111
111
  ...ie,
@@ -145,25 +145,25 @@ const ve = () => {
145
145
  resume() {
146
146
  this.paused = !1;
147
147
  }
148
- }, E = (t) => {
148
+ }, v = (t) => {
149
149
  if (!e.loop && !e.trapped || p.paused)
150
150
  return;
151
151
  const { key: r, altKey: a, ctrlKey: u, metaKey: i, currentTarget: H, shiftKey: x } = t, { loop: B } = e, ee = r === X.tab && !a && !u && !i, m = document.activeElement;
152
152
  if (ee && m) {
153
- const P = H, [g, h] = le(P);
153
+ const y = H, [g, h] = le(y);
154
154
  if (g && h) {
155
155
  if (!x && m === h) {
156
156
  const f = b({
157
157
  focusReason: d.value
158
158
  });
159
159
  n("focusout-prevented", f), f.defaultPrevented || (t.preventDefault(), B && l(g, !0));
160
- } else if (x && [g, P].includes(m)) {
160
+ } else if (x && [g, y].includes(m)) {
161
161
  const f = b({
162
162
  focusReason: d.value
163
163
  });
164
164
  n("focusout-prevented", f), f.defaultPrevented || (t.preventDefault(), B && l(h, !0));
165
165
  }
166
- } else if (m === P) {
166
+ } else if (m === y) {
167
167
  const f = b({
168
168
  focusReason: d.value
169
169
  });
@@ -173,21 +173,21 @@ const ve = () => {
173
173
  };
174
174
  ne(de, {
175
175
  focusTrapRef: s,
176
- onKeydown: E
176
+ onKeydown: v
177
177
  }), S(() => e.focusTrapEl, (t) => {
178
178
  t && (s.value = t);
179
179
  }, { immediate: !0 }), S([s], ([t], [r]) => {
180
- t && (t.addEventListener("keydown", E), t.addEventListener("focusin", D), t.addEventListener("focusout", I)), r && (r.removeEventListener("keydown", E), r.removeEventListener("focusin", D), r.removeEventListener("focusout", I));
180
+ t && (t.addEventListener("keydown", v), t.addEventListener("focusin", I), t.addEventListener("focusout", D)), r && (r.removeEventListener("keydown", v), r.removeEventListener("focusin", I), r.removeEventListener("focusout", D));
181
181
  });
182
182
  const k = (t) => {
183
183
  n(W, t);
184
- }, U = (t) => n(G, t), D = (t) => {
184
+ }, U = (t) => n(G, t), I = (t) => {
185
185
  const r = T(s);
186
186
  if (!r)
187
187
  return;
188
188
  const a = t.target, u = t.relatedTarget, i = a && r.contains(a);
189
189
  e.trapped || u && r.contains(u) || (o = u), i && n("focusin", t), !p.paused && e.trapped && (i ? c = a : l(c, !0));
190
- }, I = (t) => {
190
+ }, D = (t) => {
191
191
  const r = T(s);
192
192
  if (!(p.paused || !r))
193
193
  if (e.trapped) {
@@ -215,7 +215,7 @@ const ve = () => {
215
215
  const u = new Event(L, q);
216
216
  t.addEventListener(L, k), t.dispatchEvent(u), u.defaultPrevented || $(() => {
217
217
  let i = e.focusStartEl;
218
- re(i) || (l(i), document.activeElement !== i && (i = "first")), i === "first" && Ee(Z(t), !0), (document.activeElement === r || i === "container") && l(t);
218
+ re(i) || (l(i), document.activeElement !== i && (i = "first")), i === "first" && ve(Z(t), !0), (document.activeElement === r || i === "container") && l(t);
219
219
  });
220
220
  }
221
221
  }
@@ -233,26 +233,27 @@ const ve = () => {
233
233
  t.addEventListener(C, U), t.dispatchEvent(r), !r.defaultPrevented && (d.value == "keyboard" || !me() || t.contains(document.activeElement)) && l(o ?? document.body), t.removeEventListener(C, U), z.remove(p);
234
234
  }
235
235
  }
236
- return O(() => {
236
+ return N(() => {
237
237
  e.trapped && K(), S(() => e.trapped, (t) => {
238
238
  t ? K() : V();
239
239
  });
240
- }), N(() => {
240
+ }), O(() => {
241
241
  e.trapped && V();
242
242
  }), {
243
- onKeydown: E
243
+ onKeydown: v
244
244
  };
245
245
  }
246
246
  });
247
247
  function _e(e, n, s, o, c, d) {
248
248
  return se(e.$slots, "default", { handleKeydown: e.onKeydown });
249
249
  }
250
- var he = /* @__PURE__ */ oe(Fe, [["render", _e], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
250
+ var Se = /* @__PURE__ */ oe(Fe, [["render", _e], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
251
251
  export {
252
252
  ge as C,
253
- he as E,
253
+ X as E,
254
254
  de as F,
255
- Pe as U,
256
- X as a,
255
+ he as I,
256
+ ye as U,
257
+ Se as a,
257
258
  ce as i
258
259
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),P=require("./base-8776b83e.cjs");function W(e){return e==null}const g={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},X="update:modelValue",Z="change",ee="input";let v=[];const B=e=>{const n=e;n.key===g.esc&&v.forEach(o=>o(n))},te=e=>{r.onMounted(()=>{v.length===0&&document.addEventListener("keydown",B),P.isClient&&v.push(e)}),r.onBeforeUnmount(()=>{v=v.filter(n=>n!==e),v.length===0&&P.isClient&&document.removeEventListener("keydown",B)})},C="focus-trap.focus-after-trapped",S="focus-trap.focus-after-released",ne="focus-trap.focusout-prevented",M={cancelable:!0,bubbles:!1},oe={cancelable:!0,bubbles:!1},x="focusAfterTrapped",$="focusAfterReleased",Y=Symbol("elFocusTrap"),L=r.ref(),w=r.ref(0),O=r.ref(0);let F=0;const z=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},q=(e,n)=>{for(const o of e)if(!se(o,n))return o},se=(e,n)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},re=e=>{const n=z(e),o=q(n,e),s=q(n.reverse(),e);return[o,s]},ce=e=>e instanceof HTMLInputElement&&"select"in e,E=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),O.value=window.performance.now(),e!==o&&ce(e)&&n&&e.select()}};function j(e,n){const o=[...e],s=e.indexOf(n);return s!==-1&&o.splice(s,1),o}const ue=()=>{let e=[];return{push:s=>{const u=e[0];u&&s!==u&&u.pause(),e=j(e,s),e.unshift(s)},remove:s=>{var u,d;e=j(e,s),(d=(u=e[0])==null?void 0:u.resume)==null||d.call(u)}}},ae=(e,n=!1)=>{const o=document.activeElement;for(const s of e)if(E(s,n),document.activeElement!==o)return},G=ue(),ie=()=>w.value>O.value,_=()=>{L.value="pointer",w.value=window.performance.now()},J=()=>{L.value="keyboard",w.value=window.performance.now()},fe=()=>(r.onMounted(()=>{F===0&&(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",J)),F++}),r.onBeforeUnmount(()=>{F--,F<=0&&(document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",J))}),{focusReason:L,lastUserFocusTimestamp:w,lastAutomatedFocusTimestamp:O}),b=e=>new CustomEvent(ne,{...oe,detail:e}),de=r.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[x,$,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const o=r.ref();let s,u;const{focusReason:d}=fe();te(t=>{e.trapped&&!p.paused&&n("release-requested",t)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=t=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:c,altKey:a,ctrlKey:i,metaKey:f,currentTarget:V,shiftKey:K}=t,{loop:H}=e,Q=c===g.tab&&!a&&!i&&!f,T=document.activeElement;if(Q&&T){const N=V,[y,h]=re(N);if(y&&h){if(!K&&T===h){const l=b({focusReason:d.value});n("focusout-prevented",l),l.defaultPrevented||(t.preventDefault(),H&&E(y,!0))}else if(K&&[y,N].includes(T)){const l=b({focusReason:d.value});n("focusout-prevented",l),l.defaultPrevented||(t.preventDefault(),H&&E(h,!0))}}else if(T===N){const l=b({focusReason:d.value});n("focusout-prevented",l),l.defaultPrevented||t.preventDefault()}}};r.provide(Y,{focusTrapRef:o,onKeydown:m}),r.watch(()=>e.focusTrapEl,t=>{t&&(o.value=t)},{immediate:!0}),r.watch([o],([t],[c])=>{t&&(t.addEventListener("keydown",m),t.addEventListener("focusin",R),t.addEventListener("focusout",k)),c&&(c.removeEventListener("keydown",m),c.removeEventListener("focusin",R),c.removeEventListener("focusout",k))});const A=t=>{n(x,t)},U=t=>n($,t),R=t=>{const c=r.unref(o);if(!c)return;const a=t.target,i=t.relatedTarget,f=a&&c.contains(a);e.trapped||i&&c.contains(i)||(s=i),f&&n("focusin",t),!p.paused&&e.trapped&&(f?u=a:E(u,!0))},k=t=>{const c=r.unref(o);if(!(p.paused||!c))if(e.trapped){const a=t.relatedTarget;!W(a)&&!c.contains(a)&&setTimeout(()=>{if(!p.paused&&e.trapped){const i=b({focusReason:d.value});n("focusout-prevented",i),i.defaultPrevented||E(u,!0)}},0)}else{const a=t.target;a&&c.contains(a)||n("focusout",t)}};async function I(){await r.nextTick();const t=r.unref(o);if(t){G.push(p);const c=t.contains(document.activeElement)?s:document.activeElement;if(s=c,!t.contains(c)){const i=new Event(C,M);t.addEventListener(C,A),t.dispatchEvent(i),i.defaultPrevented||r.nextTick(()=>{let f=e.focusStartEl;P.isString(f)||(E(f),document.activeElement!==f&&(f="first")),f==="first"&&ae(z(t),!0),(document.activeElement===c||f==="container")&&E(t)})}}}function D(){const t=r.unref(o);if(t){t.removeEventListener(C,A);const c=new CustomEvent(S,{...M,detail:{focusReason:d.value}});t.addEventListener(S,U),t.dispatchEvent(c),!c.defaultPrevented&&(d.value=="keyboard"||!ie()||t.contains(document.activeElement))&&E(s??document.body),t.removeEventListener(S,U),G.remove(p)}}return r.onMounted(()=>{e.trapped&&I(),r.watch(()=>e.trapped,t=>{t?I():D()})}),r.onBeforeUnmount(()=>{e.trapped&&D()}),{onKeydown:m}}});function le(e,n,o,s,u,d){return r.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ee=P._export_sfc(de,[["render",le],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);exports.CHANGE_EVENT=Z;exports.EVENT_CODE=g;exports.ElFocusTrap=Ee;exports.FOCUS_TRAP_INJECTION_KEY=Y;exports.INPUT_EVENT=ee;exports.UPDATE_MODEL_EVENT=X;exports.isNil=W;
@@ -0,0 +1,6 @@
1
+ import { o as i } from "./base-6e64c2e6.js";
2
+ const e = (o) => i ? window.requestAnimationFrame(o) : setTimeout(o, 16), r = (o) => i ? window.cancelAnimationFrame(o) : clearTimeout(o);
3
+ export {
4
+ r as c,
5
+ e as r
6
+ };
@@ -1 +1 @@
1
- "use strict";const i=require("./base-b187e78f.cjs"),t=e=>i.isClient?window.requestAnimationFrame(e):setTimeout(e,16),n=e=>i.isClient?window.cancelAnimationFrame(e):clearTimeout(e);exports.cAF=n;exports.rAF=t;
1
+ "use strict";const i=require("./base-8776b83e.cjs"),t=e=>i.isClient?window.requestAnimationFrame(e):setTimeout(e,16),n=e=>i.isClient?window.cancelAnimationFrame(e):clearTimeout(e);exports.cAF=n;exports.rAF=t;
@@ -1 +1 @@
1
- "use strict";const c=require("./base-b187e78f.cjs");let r;const h=o=>{var l;if(!c.isClient)return 0;if(r!==void 0)return r;const t=document.createElement("div");t.className=`${o}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",t.appendChild(s);const i=s.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),r=e-i,r};function u(o,l){if(!c.isClient)return;if(!l){o.scrollTop=0;return}const t=[];let e=l.offsetParent;for(;e!==null&&o!==e&&o.contains(e);)t.push(e),e=e.offsetParent;const s=l.offsetTop+t.reduce((d,p)=>d+p.offsetTop,0),i=s+l.offsetHeight,n=o.scrollTop,f=n+o.clientHeight;s<n?o.scrollTop=s:i>f&&(o.scrollTop=i-o.clientHeight)}exports.getScrollBarWidth=h;exports.scrollIntoView=u;
1
+ "use strict";const c=require("./base-8776b83e.cjs");let r;const h=o=>{var l;if(!c.isClient)return 0;if(r!==void 0)return r;const t=document.createElement("div");t.className=`${o}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",t.appendChild(s);const i=s.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),r=e-i,r};function u(o,l){if(!c.isClient)return;if(!l){o.scrollTop=0;return}const t=[];let e=l.offsetParent;for(;e!==null&&o!==e&&o.contains(e);)t.push(e),e=e.offsetParent;const s=l.offsetTop+t.reduce((d,p)=>d+p.offsetTop,0),i=s+l.offsetHeight,n=o.scrollTop,f=n+o.clientHeight;s<n?o.scrollTop=s:i>f&&(o.scrollTop=i-o.clientHeight)}exports.getScrollBarWidth=h;exports.scrollIntoView=u;
@@ -1,6 +1,6 @@
1
- import { a as f } from "./base-8aa55db5.js";
1
+ import { o as f } from "./base-6e64c2e6.js";
2
2
  let r;
3
- const a = (o) => {
3
+ const u = (o) => {
4
4
  var l;
5
5
  if (!f)
6
6
  return 0;
@@ -15,7 +15,7 @@ const a = (o) => {
15
15
  const i = s.offsetWidth;
16
16
  return (l = t.parentNode) == null || l.removeChild(t), r = e - i, r;
17
17
  };
18
- function u(o, l) {
18
+ function a(o, l) {
19
19
  if (!f)
20
20
  return;
21
21
  if (!l) {
@@ -30,6 +30,6 @@ function u(o, l) {
30
30
  s < n ? o.scrollTop = s : i > c && (o.scrollTop = i - o.clientHeight);
31
31
  }
32
32
  export {
33
- a as g,
34
- u as s
33
+ u as g,
34
+ a as s
35
35
  };