st-comp 0.0.92 → 0.0.93

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 (82) hide show
  1. package/components.d.ts +0 -12
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +5 -1
  5. package/es/Dialog.js +711 -45
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +1 -461
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +91 -92
  10. package/es/KlineNew.cjs +1 -1
  11. package/es/KlineNew.js +9 -10
  12. package/es/Pagination.cjs +1 -1
  13. package/es/Pagination.js +104 -106
  14. package/es/Table.cjs +20 -1
  15. package/es/Table.js +4254 -362
  16. package/es/VarietySearch.cjs +1 -1
  17. package/es/VarietySearch.js +1 -2015
  18. package/es/VirtualTable.cjs +2 -2
  19. package/es/VirtualTable.js +254 -249
  20. package/es/base-8aa55db5.js +725 -0
  21. package/es/base-b187e78f.cjs +9 -0
  22. package/es/{el-button-93e0ac7c.js → el-button-9476b767.js} +69 -69
  23. package/es/{el-button-ec16f484.cjs → el-button-ed961332.cjs} +1 -1
  24. package/es/{el-empty-16ceef82.cjs → el-empty-7adcc7f0.cjs} +1 -1
  25. package/es/{el-empty-0c85d9b7.js → el-empty-f4c08c01.js} +3 -3
  26. package/es/{el-scrollbar-9473fd47.cjs → el-scrollbar-586be9bd.cjs} +1 -1
  27. package/es/{el-scrollbar-e17fad47.js → el-scrollbar-ffb7b9c1.js} +43 -43
  28. package/es/el-select-a6cf0236.js +1893 -0
  29. package/es/el-select-eaa79c54.cjs +9 -0
  30. package/es/el-tag-5a8b728a.cjs +1 -0
  31. package/es/{el-tag-9493bdff.js → el-tag-7549c103.js} +119 -126
  32. package/es/{focus-trap-1b2aef75.js → focus-trap-5fc152a0.js} +34 -35
  33. package/es/focus-trap-ea1e7a19.cjs +1 -0
  34. package/es/raf-3a2b250a.js +6 -0
  35. package/es/{raf-c437ab23.cjs → raf-c4bba516.cjs} +1 -1
  36. package/es/{scroll-a80e1458.cjs → scroll-38e17abc.cjs} +1 -1
  37. package/es/{scroll-a928a93e.js → scroll-c6e51ef8.js} +5 -5
  38. package/es/style.css +1 -1
  39. package/es/use-form-item-bd4b9eeb.js +531 -0
  40. package/es/use-form-item-c25c7251.cjs +3 -0
  41. package/es/use-global-config-2d21cd56.js +110 -0
  42. package/es/use-global-config-bce8cdd8.cjs +1 -0
  43. package/es/{vnode-85a610a2.cjs → vnode-40f9df3c.cjs} +1 -1
  44. package/es/{vnode-aa872900.js → vnode-f4b846cb.js} +1 -1
  45. package/es/zh-cn-a61d484e.cjs +1 -0
  46. package/es/{zh-cn-d29347f8.js → zh-cn-e36dfbf4.js} +45 -6
  47. package/lib/bundle.js +1 -1
  48. package/lib/bundle.umd.cjs +145 -145
  49. package/lib/{index-74cdff5f.js → index-4635557b.js} +5609 -5606
  50. package/lib/{python-ed84da20.js → python-aa056c80.js} +1 -1
  51. package/lib/style.css +1 -1
  52. package/package.json +1 -1
  53. package/packages/FactorWarning/index.vue +28 -13
  54. package/src/pages/FactorWarning/index.vue +850 -8
  55. package/es/base-1bc9f12c.js +0 -762
  56. package/es/base-315cbfab.cjs +0 -9
  57. package/es/castArray-f42865a2.js +0 -10
  58. package/es/castArray-f54f6f75.cjs +0 -1
  59. package/es/config-provider-17c85684.cjs +0 -1
  60. package/es/config-provider-c8d3957d.js +0 -46
  61. package/es/el-icon-0ea8fbf8.cjs +0 -1
  62. package/es/el-icon-4ed993c7.js +0 -1
  63. package/es/el-input-29806e42.js +0 -543
  64. package/es/el-input-a8791103.cjs +0 -9
  65. package/es/el-overlay-53eb27a5.js +0 -678
  66. package/es/el-overlay-6d0c5cc3.cjs +0 -5
  67. package/es/el-popover-1d087574.cjs +0 -1
  68. package/es/el-popover-dd66e2c8.js +0 -133
  69. package/es/el-radio-group-46e8f574.cjs +0 -12
  70. package/es/el-radio-group-caebab9d.js +0 -1743
  71. package/es/el-select-64511731.cjs +0 -1
  72. package/es/el-select-ac302f3c.js +0 -1360
  73. package/es/el-table-column-773986c7.cjs +0 -20
  74. package/es/el-table-column-b8e2141b.js +0 -3795
  75. package/es/el-tag-a6a4d4ef.cjs +0 -1
  76. package/es/focus-trap-ea177336.cjs +0 -1
  77. package/es/raf-6d7e80f4.js +0 -6
  78. package/es/use-form-item-7924b6c1.cjs +0 -3
  79. package/es/use-form-item-aeec8499.js +0 -669
  80. package/es/use-global-config-b07c467a.js +0 -110
  81. package/es/use-global-config-d02be80b.cjs +0 -1
  82. package/es/zh-cn-0024c96d.cjs +0 -1
@@ -1,5 +1,5 @@
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-1bc9f12c.js";
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";
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
- }, ye = "update:modelValue", ge = "change", he = "input";
23
- let E = [];
22
+ }, Pe = "update:modelValue", ge = "change";
23
+ let v = [];
24
24
  const j = (e) => {
25
25
  const n = e;
26
- n.key === X.esc && E.forEach((s) => s(n));
26
+ n.key === X.esc && v.forEach((s) => s(n));
27
27
  }, ae = (e) => {
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);
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);
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(), P = w(0), A = w(0);
39
+ }, W = "focusAfterTrapped", G = "focusAfterReleased", de = Symbol("elFocusTrap"), R = w(), y = 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 Ee = () => {
81
+ const ve = () => {
82
82
  let e = [];
83
83
  return {
84
84
  push: (o) => {
@@ -90,22 +90,22 @@ const Ee = () => {
90
90
  e = Y(e, o), (d = (c = e[0]) == null ? void 0 : c.resume) == null || d.call(c);
91
91
  }
92
92
  };
93
- }, ve = (e, n = !1) => {
93
+ }, Ee = (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 = Ee(), me = () => P.value > A.value, _ = () => {
99
- R.value = "pointer", P.value = window.performance.now();
98
+ }, z = ve(), me = () => y.value > A.value, _ = () => {
99
+ R.value = "pointer", y.value = window.performance.now();
100
100
  }, Q = () => {
101
- R.value = "keyboard", P.value = window.performance.now();
102
- }, Te = () => (N(() => {
101
+ R.value = "keyboard", y.value = window.performance.now();
102
+ }, Te = () => (O(() => {
103
103
  F === 0 && (document.addEventListener("mousedown", _), document.addEventListener("touchstart", _), document.addEventListener("keydown", Q)), F++;
104
- }), O(() => {
104
+ }), N(() => {
105
105
  F--, F <= 0 && (document.removeEventListener("mousedown", _), document.removeEventListener("touchstart", _), document.removeEventListener("keydown", Q));
106
106
  }), {
107
107
  focusReason: R,
108
- lastUserFocusTimestamp: P,
108
+ lastUserFocusTimestamp: y,
109
109
  lastAutomatedFocusTimestamp: A
110
110
  }), b = (e) => new CustomEvent(ue, {
111
111
  ...ie,
@@ -145,25 +145,25 @@ const Ee = () => {
145
145
  resume() {
146
146
  this.paused = !1;
147
147
  }
148
- }, v = (t) => {
148
+ }, E = (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 y = H, [g, h] = le(y);
153
+ const P = H, [g, h] = le(P);
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, y].includes(m)) {
160
+ } else if (x && [g, P].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 === y) {
166
+ } else if (m === P) {
167
167
  const f = b({
168
168
  focusReason: d.value
169
169
  });
@@ -173,21 +173,21 @@ const Ee = () => {
173
173
  };
174
174
  ne(de, {
175
175
  focusTrapRef: s,
176
- onKeydown: v
176
+ onKeydown: E
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", v), t.addEventListener("focusin", I), t.addEventListener("focusout", D)), r && (r.removeEventListener("keydown", v), r.removeEventListener("focusin", I), r.removeEventListener("focusout", D));
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));
181
181
  });
182
182
  const k = (t) => {
183
183
  n(W, t);
184
- }, U = (t) => n(G, t), I = (t) => {
184
+ }, U = (t) => n(G, t), D = (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
- }, D = (t) => {
190
+ }, I = (t) => {
191
191
  const r = T(s);
192
192
  if (!(p.paused || !r))
193
193
  if (e.trapped) {
@@ -215,7 +215,7 @@ const Ee = () => {
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" && ve(Z(t), !0), (document.activeElement === r || i === "container") && l(t);
218
+ re(i) || (l(i), document.activeElement !== i && (i = "first")), i === "first" && Ee(Z(t), !0), (document.activeElement === r || i === "container") && l(t);
219
219
  });
220
220
  }
221
221
  }
@@ -233,27 +233,26 @@ const Ee = () => {
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 N(() => {
236
+ return O(() => {
237
237
  e.trapped && K(), S(() => e.trapped, (t) => {
238
238
  t ? K() : V();
239
239
  });
240
- }), O(() => {
240
+ }), N(() => {
241
241
  e.trapped && V();
242
242
  }), {
243
- onKeydown: v
243
+ onKeydown: E
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 Se = /* @__PURE__ */ oe(Fe, [["render", _e], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
250
+ var he = /* @__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
- X as E,
253
+ he as E,
254
254
  de as F,
255
- he as I,
256
- ye as U,
257
- Se as a,
255
+ Pe as U,
256
+ X as a,
258
257
  ce as i
259
258
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),w=require("./base-b187e78f.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";let v=[];const B=e=>{const n=e;n.key===g.esc&&v.forEach(o=>o(n))},ee=e=>{r.onMounted(()=>{v.length===0&&document.addEventListener("keydown",B),w.isClient&&v.push(e)}),r.onBeforeUnmount(()=>{v=v.filter(n=>n!==e),v.length===0&&w.isClient&&document.removeEventListener("keydown",B)})},N="focus-trap.focus-after-trapped",S="focus-trap.focus-after-released",te="focus-trap.focusout-prevented",M={cancelable:!0,bubbles:!1},ne={cancelable:!0,bubbles:!1},x="focusAfterTrapped",$="focusAfterReleased",Y=Symbol("elFocusTrap"),L=r.ref(),P=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(!oe(o,n))return o},oe=(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},se=e=>{const n=z(e),o=q(n,e),s=q(n.reverse(),e);return[o,s]},re=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&&re(e)&&n&&e.select()}};function j(e,n){const o=[...e],s=e.indexOf(n);return s!==-1&&o.splice(s,1),o}const ce=()=>{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)}}},ue=(e,n=!1)=>{const o=document.activeElement;for(const s of e)if(E(s,n),document.activeElement!==o)return},G=ce(),ae=()=>P.value>O.value,_=()=>{L.value="pointer",P.value=window.performance.now()},J=()=>{L.value="keyboard",P.value=window.performance.now()},ie=()=>(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:P,lastAutomatedFocusTimestamp:O}),b=e=>new CustomEvent(te,{...ne,detail:e}),fe=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}=ie();ee(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:K,shiftKey:V}=t,{loop:H}=e,Q=c===g.tab&&!a&&!i&&!f,T=document.activeElement;if(Q&&T){const y=K,[h,C]=se(y);if(h&&C){if(!V&&T===C){const l=b({focusReason:d.value});n("focusout-prevented",l),l.defaultPrevented||(t.preventDefault(),H&&E(h,!0))}else if(V&&[h,y].includes(T)){const l=b({focusReason:d.value});n("focusout-prevented",l),l.defaultPrevented||(t.preventDefault(),H&&E(C,!0))}}else if(T===y){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",U),t.addEventListener("focusout",k)),c&&(c.removeEventListener("keydown",m),c.removeEventListener("focusin",U),c.removeEventListener("focusout",k))});const A=t=>{n(x,t)},R=t=>n($,t),U=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 D(){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(N,M);t.addEventListener(N,A),t.dispatchEvent(i),i.defaultPrevented||r.nextTick(()=>{let f=e.focusStartEl;w.isString(f)||(E(f),document.activeElement!==f&&(f="first")),f==="first"&&ue(z(t),!0),(document.activeElement===c||f==="container")&&E(t)})}}}function I(){const t=r.unref(o);if(t){t.removeEventListener(N,A);const c=new CustomEvent(S,{...M,detail:{focusReason:d.value}});t.addEventListener(S,R),t.dispatchEvent(c),!c.defaultPrevented&&(d.value=="keyboard"||!ae()||t.contains(document.activeElement))&&E(s??document.body),t.removeEventListener(S,R),G.remove(p)}}return r.onMounted(()=>{e.trapped&&D(),r.watch(()=>e.trapped,t=>{t?D():I()})}),r.onBeforeUnmount(()=>{e.trapped&&I()}),{onKeydown:m}}});function de(e,n,o,s,u,d){return r.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var le=w._export_sfc(fe,[["render",de],["__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=le;exports.FOCUS_TRAP_INJECTION_KEY=Y;exports.UPDATE_MODEL_EVENT=X;exports.isNil=W;
@@ -0,0 +1,6 @@
1
+ import { a as o } from "./base-8aa55db5.js";
2
+ const e = (i) => o ? window.requestAnimationFrame(i) : setTimeout(i, 16), a = (i) => o ? window.cancelAnimationFrame(i) : clearTimeout(i);
3
+ export {
4
+ a as c,
5
+ e as r
6
+ };
@@ -1 +1 @@
1
- "use strict";const i=require("./base-315cbfab.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-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 +1 @@
1
- "use strict";const c=require("./base-315cbfab.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-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,6 +1,6 @@
1
- import { o as f } from "./base-1bc9f12c.js";
1
+ import { a as f } from "./base-8aa55db5.js";
2
2
  let r;
3
- const u = (o) => {
3
+ const a = (o) => {
4
4
  var l;
5
5
  if (!f)
6
6
  return 0;
@@ -15,7 +15,7 @@ const u = (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 a(o, l) {
18
+ function u(o, l) {
19
19
  if (!f)
20
20
  return;
21
21
  if (!l) {
@@ -30,6 +30,6 @@ function a(o, l) {
30
30
  s < n ? o.scrollTop = s : i > c && (o.scrollTop = i - o.clientHeight);
31
31
  }
32
32
  export {
33
- u as g,
34
- a as s
33
+ a as g,
34
+ u as s
35
35
  };