@lazycatcloud/lzc-toolkit 0.0.63 → 0.0.64

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.
package/dist/index.es.js CHANGED
@@ -1,120 +1,148 @@
1
- import { unref as R, getCurrentScope as Ye, onScopeDispose as Ge, getCurrentInstance as Xe, onMounted as pe, nextTick as he, ref as b, watch as oe, shallowRef as Ze, computed as w, onUnmounted as Le, inject as W, provide as A, defineComponent as N, h as z, render as re, openBlock as $, createBlock as Oe, Transition as De, withCtx as Re, createElementBlock as k, createElementVNode as I, withModifiers as Je, normalizeClass as et, renderSlot as ue, createCommentVNode as tt, useCssVars as Be, normalizeStyle as le, toDisplayString as nt, useSlots as ot, withDirectives as lt, vShow as st, pushScopeId as Ie, popScopeId as $e, toRef as at, mergeProps as rt, normalizeProps as _e, guardReactiveProps as ye, Fragment as it, renderList as ut } from "vue";
2
- var be;
3
- const He = typeof window < "u";
4
- He && ((be = window?.navigator) == null ? void 0 : be.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1
+ import { getCurrentScope as Ge, onScopeDispose as Xe, getCurrentInstance as Ze, onMounted as ue, nextTick as he, unref as R, ref as b, watch as ee, readonly as Je, shallowRef as et, computed as w, onUnmounted as Oe, inject as k, provide as H, defineComponent as j, h as N, render as re, openBlock as A, createBlock as De, Transition as Re, withCtx as Be, createElementBlock as V, createElementVNode as I, withModifiers as tt, normalizeClass as nt, renderSlot as pe, createCommentVNode as ot, normalizeStyle as oe, toDisplayString as lt, useSlots as st, withDirectives as at, vShow as rt, pushScopeId as Ie, popScopeId as $e, toRef as it, mergeProps as ut, normalizeProps as _e, guardReactiveProps as be, Fragment as ct, renderList as dt, useCssVars as vt } from "vue";
2
+ var we;
3
+ const me = typeof window < "u";
4
+ me && ((we = window?.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
5
5
  function ie(e) {
6
6
  return typeof e == "function" ? e() : R(e);
7
7
  }
8
- function Ae(e, t) {
8
+ function He(e, t) {
9
9
  function o(...n) {
10
10
  e(() => t.apply(this, n), { fn: t, thisArg: this, args: n });
11
11
  }
12
12
  return o;
13
13
  }
14
- function ct(e, t = {}) {
14
+ function ft(e, t = {}) {
15
15
  let o, n;
16
16
  return (a) => {
17
- const s = ie(e), u = ie(t.maxWait);
18
- if (o && clearTimeout(o), s <= 0 || u !== void 0 && u <= 0)
17
+ const s = ie(e), i = ie(t.maxWait);
18
+ if (o && clearTimeout(o), s <= 0 || i !== void 0 && i <= 0)
19
19
  return n && (clearTimeout(n), n = null), a();
20
- u && !n && (n = setTimeout(() => {
20
+ i && !n && (n = setTimeout(() => {
21
21
  o && clearTimeout(o), n = null, a();
22
- }, u)), o = setTimeout(() => {
22
+ }, i)), o = setTimeout(() => {
23
23
  n && clearTimeout(n), n = null, a();
24
24
  }, s);
25
25
  };
26
26
  }
27
- function dt(e, t = !0, o = !0) {
27
+ function ht(e, t = !0, o = !0) {
28
28
  let n = 0, l, a = !0;
29
29
  const s = () => {
30
30
  l && (clearTimeout(l), l = void 0);
31
31
  };
32
- return (g) => {
33
- const f = ie(e), v = Date.now() - n;
34
- if (s(), f <= 0)
35
- return n = Date.now(), g();
36
- v > f && (o || !a) ? (n = Date.now(), g()) : t && (l = setTimeout(() => {
37
- n = Date.now(), a = !0, s(), g();
38
- }, f)), !o && !l && (l = setTimeout(() => a = !0, f)), a = !1;
32
+ return (h) => {
33
+ const d = ie(e), v = Date.now() - n;
34
+ if (s(), d <= 0)
35
+ return n = Date.now(), h();
36
+ v > d && (o || !a) ? (n = Date.now(), h()) : t && (l = setTimeout(() => {
37
+ n = Date.now(), a = !0, s(), h();
38
+ }, d)), !o && !l && (l = setTimeout(() => a = !0, d)), a = !1;
39
39
  };
40
40
  }
41
- function vt(e) {
41
+ function pt(e) {
42
42
  return e;
43
43
  }
44
- function ft(e) {
45
- return Ye() ? (Ge(e), !0) : !1;
44
+ function Ae(e) {
45
+ return Ge() ? (Xe(e), !0) : !1;
46
46
  }
47
47
  function Pe(e, t = 200, o = {}) {
48
- return Ae(ct(t, o), e);
48
+ return He(ft(t, o), e);
49
49
  }
50
- function we(e, t = 200, o = !1, n = !0) {
51
- return Ae(dt(t, o, n), e);
50
+ function Se(e, t = 200, o = !1, n = !0) {
51
+ return He(ht(t, o, n), e);
52
52
  }
53
- function pt(e, t = !0) {
54
- Xe() ? pe(e) : t ? e() : he(e);
53
+ function Fe(e, t = !0) {
54
+ Ze() ? ue(e) : t ? e() : he(e);
55
55
  }
56
- function Fe(e) {
56
+ function Me(e) {
57
57
  var t;
58
58
  const o = ie(e);
59
59
  return (t = o?.$el) != null ? t : o;
60
60
  }
61
- const ht = He ? window : void 0;
62
- function mt(e, t = !1) {
61
+ const mt = me ? window : void 0, gt = me ? window.document : void 0;
62
+ function yt(e, t = !1) {
63
63
  const o = b(), n = () => o.value = Boolean(e());
64
- return n(), pt(n, t), o;
64
+ return n(), Fe(n, t), o;
65
65
  }
66
66
  const ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, fe = "__vueuse_ssr_handlers__";
67
67
  ve[fe] = ve[fe] || {};
68
68
  ve[fe];
69
- var Se = Object.getOwnPropertySymbols, gt = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable, yt = (e, t) => {
69
+ var Ee = Object.getOwnPropertySymbols, _t = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, wt = (e, t) => {
70
70
  var o = {};
71
71
  for (var n in e)
72
- gt.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
73
- if (e != null && Se)
74
- for (var n of Se(e))
75
- t.indexOf(n) < 0 && _t.call(e, n) && (o[n] = e[n]);
72
+ _t.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
73
+ if (e != null && Ee)
74
+ for (var n of Ee(e))
75
+ t.indexOf(n) < 0 && bt.call(e, n) && (o[n] = e[n]);
76
76
  return o;
77
77
  };
78
- function bt(e, t, o = {}) {
79
- const n = o, { window: l = ht } = n, a = yt(n, ["window"]);
78
+ function St(e, t, o = {}) {
79
+ const n = o, { window: l = mt } = n, a = wt(n, ["window"]);
80
80
  let s;
81
- const u = mt(() => l && "ResizeObserver" in l), g = () => {
81
+ const i = yt(() => l && "ResizeObserver" in l), h = () => {
82
82
  s && (s.disconnect(), s = void 0);
83
- }, f = oe(() => Fe(e), (c) => {
84
- g(), u.value && l && c && (s = new ResizeObserver(t), s.observe(c, a));
83
+ }, d = ee(() => Me(e), (c) => {
84
+ h(), i.value && l && c && (s = new ResizeObserver(t), s.observe(c, a));
85
85
  }, { immediate: !0, flush: "post" }), v = () => {
86
- g(), f();
86
+ h(), d();
87
87
  };
88
- return ft(v), {
89
- isSupported: u,
88
+ return Ae(v), {
89
+ isSupported: i,
90
90
  stop: v
91
91
  };
92
92
  }
93
- function wt(e, t = { width: 0, height: 0 }, o = {}) {
93
+ function Et(e, t = { width: 0, height: 0 }, o = {}) {
94
94
  const { box: n = "content-box" } = o, l = b(t.width), a = b(t.height);
95
- return bt(e, ([s]) => {
96
- const u = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
97
- u ? (l.value = u.reduce((g, { inlineSize: f }) => g + f, 0), a.value = u.reduce((g, { blockSize: f }) => g + f, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
98
- }, o), oe(() => Fe(e), (s) => {
95
+ return St(e, ([s]) => {
96
+ const i = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
97
+ i ? (l.value = i.reduce((h, { inlineSize: d }) => h + d, 0), a.value = i.reduce((h, { blockSize: d }) => h + d, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
98
+ }, o), ee(() => Me(e), (s) => {
99
99
  l.value = s ? t.width : 0, a.value = s ? t.height : 0;
100
100
  }), {
101
101
  width: l,
102
102
  height: a
103
103
  };
104
104
  }
105
- var Ee;
105
+ var Ce;
106
106
  (function(e) {
107
107
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
108
- })(Ee || (Ee = {}));
109
- var St = Object.defineProperty, xe = Object.getOwnPropertySymbols, Et = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable, Ce = (e, t, o) => t in e ? St(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ct = (e, t) => {
108
+ })(Ce || (Ce = {}));
109
+ let Ct = 0;
110
+ function xt(e, t = {}) {
111
+ const o = b(!1), {
112
+ document: n = gt,
113
+ immediate: l = !0,
114
+ manual: a = !1,
115
+ id: s = `vueuse_styletag_${++Ct}`
116
+ } = t, i = b(e);
117
+ let h = () => {
118
+ };
119
+ const d = () => {
120
+ if (!n)
121
+ return;
122
+ const c = n.getElementById(s) || n.createElement("style");
123
+ c.type = "text/css", c.id = s, t.media && (c.media = t.media), n.head.appendChild(c), !o.value && (h = ee(i, (r) => {
124
+ c.innerText = r;
125
+ }, { immediate: !0 }), o.value = !0);
126
+ }, v = () => {
127
+ !n || !o.value || (h(), n.head.removeChild(n.getElementById(s)), o.value = !1);
128
+ };
129
+ return l && !a && Fe(d), a || Ae(v), {
130
+ id: s,
131
+ css: i,
132
+ unload: v,
133
+ load: d,
134
+ isLoaded: Je(o)
135
+ };
136
+ }
137
+ var Tt = Object.defineProperty, xe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Te = (e, t, o) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Dt = (e, t) => {
110
138
  for (var o in t || (t = {}))
111
- Et.call(t, o) && Ce(e, o, t[o]);
139
+ Lt.call(t, o) && Te(e, o, t[o]);
112
140
  if (xe)
113
141
  for (var o of xe(t))
114
- xt.call(t, o) && Ce(e, o, t[o]);
142
+ Ot.call(t, o) && Te(e, o, t[o]);
115
143
  return e;
116
144
  };
117
- const Tt = {
145
+ const Rt = {
118
146
  easeInSine: [0.12, 0, 0.39, 0],
119
147
  easeOutSine: [0.61, 1, 0.88, 1],
120
148
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -140,92 +168,92 @@ const Tt = {
140
168
  easeOutBack: [0.34, 1.56, 0.64, 1],
141
169
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
142
170
  };
143
- Ct({
144
- linear: vt
145
- }, Tt);
146
- function Lt(e, t) {
147
- const { scrollEndHook: o, itemHeight: n, overscan: l = 5 } = t, a = b(null), s = wt(a), u = b(!0), g = Pe(te, 100);
148
- let f;
149
- const v = Ze(e), c = b(0), i = b({ start: 0, end: 10 });
150
- let r = 0;
171
+ Dt({
172
+ linear: pt
173
+ }, Rt);
174
+ function Bt(e, t) {
175
+ const { scrollEndHook: o, itemHeight: n, overscan: l = 5 } = t, a = b(null), s = Et(a), i = b(!0), h = Pe(te, 100);
176
+ let d;
177
+ const v = et(e), c = b(0), r = b({ start: 0, end: 10 });
178
+ let u = 0;
151
179
  const S = b([]), E = w(() => {
152
- let { sum: p, height: _ } = { sum: 0, height: 0 };
153
- return v.value.map((B, D) => (typeof n == "number" ? _ = n : _ = n(D), p += _, { height: _, sum: p }));
154
- }), m = w(() => Q(i.value.start)), y = w(() => typeof n == "number" ? E.value.length * n : E.value[E.value.length - 1]?.sum || 0), T = w(() => {
155
- let p = S.value.length - l, _ = Math.max(p - r, 0);
156
- return S.value.slice(_, p);
180
+ let { sum: p, height: y } = { sum: 0, height: 0 };
181
+ return v.value.map((B, D) => (typeof n == "number" ? y = n : y = n(D), p += y, { height: y, sum: p }));
182
+ }), g = w(() => Q(r.value.start)), _ = w(() => typeof n == "number" ? E.value.length * n : E.value[E.value.length - 1]?.sum || 0), T = w(() => {
183
+ let p = S.value.length - l, y = Math.max(p - u, 0);
184
+ return S.value.slice(y, p);
157
185
  });
158
- pe(() => {
159
- }), Le(() => cancelAnimationFrame(f)), oe(
186
+ ue(() => {
187
+ }), Oe(() => cancelAnimationFrame(d)), ee(
160
188
  [s.width, s.height, v],
161
- ([p, _]) => {
162
- (p || _) && Y();
189
+ ([p, y]) => {
190
+ (p || y) && Y();
163
191
  },
164
192
  { deep: !0 }
165
- ), oe(c, () => {
166
- P(), g();
193
+ ), ee(c, () => {
194
+ P(), h();
167
195
  });
168
196
  function P() {
169
- u.value = !1;
197
+ i.value = !1;
170
198
  }
171
199
  function te() {
172
- u.value = !0, o?.();
200
+ i.value = !0, o?.();
173
201
  }
174
202
  function Y() {
175
- cancelAnimationFrame(f), f = requestAnimationFrame(K);
203
+ cancelAnimationFrame(d), d = requestAnimationFrame(K);
176
204
  }
177
205
  function K() {
178
206
  if (a.value) {
179
- c.value = a.value.scrollTop, r = V();
180
- let p = F(c.value), _ = p + r + l;
181
- p = p - l, p = p < 0 ? 0 : p, _ = _ > v.value.length ? v.value.length : _, i.value = { start: p, end: _ }, S.value = v.value.slice(p, _).map((B, D) => ({
207
+ c.value = a.value.scrollTop, u = z();
208
+ let p = F(c.value), y = p + u + l;
209
+ p = p - l, p = p < 0 ? 0 : p, y = y > v.value.length ? v.value.length : y, r.value = { start: p, end: y }, S.value = v.value.slice(p, y).map((B, D) => ({
182
210
  data: B,
183
211
  index: D + p
184
212
  }));
185
213
  }
186
214
  }
187
215
  function F(p) {
188
- let _ = 0, B = E.value.length - 1, D = -1;
189
- for (; _ <= B; ) {
190
- const L = Math.floor((_ + B) / 2);
191
- E.value[L].sum >= p ? (D = L, B = L - 1) : _ = L + 1;
216
+ let y = 0, B = E.value.length - 1, D = -1;
217
+ for (; y <= B; ) {
218
+ const L = Math.floor((y + B) / 2);
219
+ E.value[L].sum >= p ? (D = L, B = L - 1) : y = L + 1;
192
220
  }
193
221
  return Math.max(0, D);
194
222
  }
195
- function V() {
196
- let p = 0, _ = 0, B = H();
197
- for (let D = B; D < E.value.length && (p++, _ += E.value[D].height, !(_ >= s.height.value)); D++)
223
+ function z() {
224
+ let p = 0, y = 0, B = $();
225
+ for (let D = B; D < E.value.length && (p++, y += E.value[D].height, !(y >= s.height.value)); D++)
198
226
  ;
199
227
  return p;
200
228
  }
201
229
  function Q(p) {
202
230
  if (typeof n == "number")
203
231
  return p * n;
204
- let _ = E.value[p];
205
- return _ ? _.sum - _.height : 0;
232
+ let y = E.value[p];
233
+ return y ? y.sum - y.height : 0;
206
234
  }
207
235
  function U(p) {
208
236
  return E.value[p] || { sum: 0, height: 0 };
209
237
  }
210
- function H() {
211
- let p = i.value.start;
238
+ function $() {
239
+ let p = r.value.start;
212
240
  return p >= l && (p += l), p;
213
241
  }
214
242
  function G(p) {
215
243
  if (a.value) {
216
- const _ = U(p);
217
- a.value.scrollTop = _.sum - _.height, K();
244
+ const y = U(p);
245
+ a.value.scrollTop = y.sum - y.height, K();
218
246
  }
219
247
  }
220
248
  const ne = w(() => ({
221
249
  style: {
222
250
  width: "100%",
223
- height: `${y.value}px`,
224
- pointerEvents: u.value ? void 0 : "none"
251
+ height: `${_.value}px`,
252
+ pointerEvents: i.value ? void 0 : "none"
225
253
  }
226
254
  })), q = w(() => ({
227
255
  style: {
228
- transform: `translate3d(0, ${m.value}px, 0)`,
256
+ transform: `translate3d(0, ${g.value}px, 0)`,
229
257
  "will-change": "transform"
230
258
  }
231
259
  })), X = {
@@ -236,11 +264,11 @@ function Lt(e, t) {
236
264
  visiableList: T,
237
265
  getItemHeightData: U,
238
266
  getoffsetTopIndex: F,
239
- totalHeight: y,
267
+ totalHeight: _,
240
268
  clientHeight: s.height,
241
269
  scrollTo: G,
242
270
  scrollTop: c,
243
- isScrollEnd: u,
271
+ isScrollEnd: i,
244
272
  containerProps: {
245
273
  ref: a,
246
274
  onScroll: () => {
@@ -252,67 +280,67 @@ function Lt(e, t) {
252
280
  innerProps: q
253
281
  };
254
282
  }
255
- const Me = Symbol(), We = Symbol(), ze = Symbol(), ke = Symbol(), Ne = Symbol(), Ve = Symbol(), je = Symbol(), Ke = Symbol(), Qe = Symbol();
256
- function Zt() {
283
+ const ke = Symbol(), ze = Symbol(), We = Symbol(), Ne = Symbol(), Ve = Symbol(), je = Symbol(), Ke = Symbol(), Qe = Symbol(), Ue = Symbol();
284
+ function Jt() {
257
285
  const { voidFn: e, boolFn: t, boolRef: o, arrayRef: n } = {
258
- voidFn: (r) => {
286
+ voidFn: (u) => {
259
287
  },
260
- boolFn: (r) => !1,
288
+ boolFn: (u) => !1,
261
289
  boolRef: w(() => !1),
262
290
  arrayRef: w(() => [])
263
- }, l = W(ke, n), a = W(ze, t), s = W(Ke, o), u = W(We, e), g = W(Me, e), f = W(Ne, e), v = W(Ve, e), c = W(je, e), i = W(Qe, e);
291
+ }, l = k(Ne, n), a = k(We, t), s = k(Qe, o), i = k(ze, e), h = k(ke, e), d = k(Ve, e), v = k(je, e), c = k(Ke, e), r = k(Ue, e);
264
292
  return {
265
293
  selected: l,
266
294
  isSelected: a,
267
295
  isAllSelected: s,
268
- toggle: u,
269
- toggleAll: g,
270
- select: f,
296
+ toggle: i,
297
+ toggleAll: h,
298
+ select: d,
271
299
  selectAll: v,
272
300
  unselect: c,
273
- unselectAll: i
301
+ unselectAll: r
274
302
  };
275
303
  }
276
- function Jt(e, t) {
277
- const o = b({}), n = w(() => e.value.filter((i) => o.value[i[t]])), l = w(() => n.value.length != 0 && Object.keys(o.value).length == e.value.length);
304
+ function en(e, t) {
305
+ const o = b({}), n = w(() => e.value.filter((r) => o.value[r[t]])), l = w(() => n.value.length != 0 && Object.keys(o.value).length == e.value.length);
278
306
  function a() {
279
- e.value.forEach((i) => {
280
- o.value[i[t]] = !0;
307
+ e.value.forEach((r) => {
308
+ o.value[r[t]] = !0;
281
309
  });
282
310
  }
283
311
  function s() {
284
312
  o.value = {};
285
313
  }
286
- function u(i) {
287
- i.forEach((r) => {
288
- o.value[r[t]] || (o.value[r[t]] = !0);
314
+ function i(r) {
315
+ r.forEach((u) => {
316
+ o.value[u[t]] || (o.value[u[t]] = !0);
289
317
  });
290
318
  }
291
- function g(i) {
292
- i.forEach((r) => {
293
- o.value[r[t]] && delete o.value[r[t]];
319
+ function h(r) {
320
+ r.forEach((u) => {
321
+ o.value[u[t]] && delete o.value[u[t]];
294
322
  });
295
323
  }
296
- function f(i) {
297
- return !!o.value[i[t]];
324
+ function d(r) {
325
+ return !!o.value[r[t]];
298
326
  }
299
- function v(i) {
300
- i.forEach((r) => {
301
- f(r) ? delete o.value[r[t]] : o.value[r[t]] = !0;
327
+ function v(r) {
328
+ r.forEach((u) => {
329
+ d(u) ? delete o.value[u[t]] : o.value[u[t]] = !0;
302
330
  });
303
331
  }
304
332
  function c() {
305
333
  l.value ? s() : a();
306
334
  }
307
- return A(Me, c), A(We, v), A(ze, f), A(ke, n), A(Ne, u), A(Ve, a), A(je, g), A(Ke, l), A(Qe, s), {
335
+ return H(ke, c), H(ze, v), H(We, d), H(Ne, n), H(Ve, i), H(je, a), H(Ke, h), H(Qe, l), H(Ue, s), {
308
336
  selected: n,
309
- select: u,
337
+ select: i,
310
338
  selectAll: a,
311
- unselect: g,
339
+ unselect: h,
312
340
  unselectAll: s,
313
341
  toggle: v,
314
342
  toggleAll: c,
315
- isSelected: f,
343
+ isSelected: d,
316
344
  isAllSelected: l
317
345
  };
318
346
  }
@@ -321,7 +349,7 @@ function de(e) {
321
349
  console.debug(`\u9ED8\u8BA4${e}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
322
350
  };
323
351
  }
324
- function Ue({
352
+ function qe({
325
353
  attribute: e,
326
354
  selectWay: t = "colum",
327
355
  scrollOptions: o = {},
@@ -332,223 +360,223 @@ function Ue({
332
360
  unselect: a = de("\u53D6\u6D88\u9009\u62E9"),
333
361
  unselectAll: s = de("\u53D6\u6D88\u5168\u9009")
334
362
  } = n();
335
- let u = {};
336
- const g = w(
337
- () => we(t === "colum" ? j : se, 50)
338
- ), f = /* @__PURE__ */ new Set(), v = b(!0), c = b(), i = b(!1), r = b({ x: 0, y: 0 }), S = b({ x: 0, y: 0, scrollTop: 0 }), E = new ResizeObserver(
339
- (d) => m.value = d[0].target.getBoundingClientRect()
340
- ), m = b({}), y = b({
363
+ let i = {};
364
+ const h = w(
365
+ () => Se(t === "colum" ? W : se, 50)
366
+ ), d = /* @__PURE__ */ new Set(), v = b(!0), c = b(), r = b(!1), u = b({ x: 0, y: 0 }), S = b({ x: 0, y: 0, scrollTop: 0 }), E = new ResizeObserver(
367
+ (f) => g.value = f[0].target.getBoundingClientRect()
368
+ ), g = b({}), _ = b({
341
369
  top: 0,
342
370
  height: 0,
343
- sync(d = !1) {
344
- y.value.top = c.value?.scrollTop || 0, d && (y.value.height = c.value?.scrollHeight || 0);
371
+ sync(f = !1) {
372
+ _.value.top = c.value?.scrollTop || 0, f && (_.value.height = c.value?.scrollHeight || 0);
345
373
  }
346
- }), T = w(() => i.value ? {
347
- left: Math.min(r.value.x, S.value.x) - m.value.left,
348
- top: Math.min(r.value.y, S.value.y) - m.value.top,
349
- width: Math.abs(r.value.x - S.value.x),
350
- height: Math.abs(r.value.y - S.value.y)
374
+ }), T = w(() => r.value ? {
375
+ left: Math.min(u.value.x, S.value.x) - g.value.left,
376
+ top: Math.min(u.value.y, S.value.y) - g.value.top,
377
+ width: Math.abs(u.value.x - S.value.x),
378
+ height: Math.abs(u.value.y - S.value.y)
351
379
  } : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed: te = 30, maxSpeed: Y = 30 } = o;
352
380
  let K;
353
- const F = P, V = te, Q = Y, U = (d) => d ** 1;
354
- let H = 0;
355
- function G(d) {
356
- if (cancelAnimationFrame(K), H = ne(d), H = Math.max(
357
- Math.min(H, Q),
381
+ const F = P, z = te, Q = Y, U = (f) => f ** 1;
382
+ let $ = 0;
383
+ function G(f) {
384
+ if (cancelAnimationFrame(K), $ = ne(f), $ = Math.max(
385
+ Math.min($, Q),
358
386
  -Q
359
- ), H !== 0) {
360
- const h = c.value;
361
- if (!h || !i.value)
387
+ ), $ !== 0) {
388
+ const m = c.value;
389
+ if (!m || !r.value)
362
390
  return;
363
- const O = y.value.height - m.value.height;
364
- let x = y.value.top + Number(H);
365
- x = Math.min(Math.max(0, x), O), h.scrollTop = x, X(), K = requestAnimationFrame(() => G(d));
391
+ const O = _.value.height - g.value.height;
392
+ let C = _.value.top + Number($);
393
+ C = Math.min(Math.max(0, C), O), m.scrollTop = C, X(), K = requestAnimationFrame(() => G(f));
366
394
  }
367
395
  }
368
- function ne(d) {
396
+ function ne(f) {
369
397
  if (c.value) {
370
- const O = m.value, x = O.bottom - d;
371
- if (x < F)
372
- return V * U(1 - x / F);
373
- const M = d - O.top;
398
+ const O = g.value, C = O.bottom - f;
399
+ if (C < F)
400
+ return z * U(1 - C / F);
401
+ const M = f - O.top;
374
402
  if (M < F)
375
- return -V * U(1 - M / F);
403
+ return -z * U(1 - M / F);
376
404
  }
377
405
  return 0;
378
406
  }
379
- function q(d) {
380
- const h = { ...T.value, right: 0, bottom: 0 };
381
- return h.left += m.value.left, h.top += m.value.top - y.value.top, h.right = h.width + h.left, h.bottom = h.height + h.top, h.left < d.right && h.right > d.left && h.top < d.bottom && h.bottom > d.top;
407
+ function q(f) {
408
+ const m = { ...T.value, right: 0, bottom: 0 };
409
+ return m.left += g.value.left, m.top += g.value.top - _.value.top, m.right = m.width + m.left, m.bottom = m.height + m.top, m.left < f.right && m.right > f.left && m.top < f.bottom && m.bottom > f.top;
382
410
  }
383
411
  function X() {
384
- y.value.sync();
385
- const { top: d, height: h } = y.value;
412
+ _.value.sync();
413
+ const { top: f, height: m } = _.value;
386
414
  S.value.y = Math.min(
387
- h + m.value.top,
388
- S.value.y + d - S.value.scrollTop
389
- ), S.value.scrollTop = d;
390
- }
391
- function p(d, h, O = "dynamic-styles") {
392
- let x = document.getElementById(O);
393
- x || (x = document.createElement("style"), x.id = O, document.head.appendChild(x));
394
- const M = x.sheet.cssRules, J = M.length, qe = `${d} { ${h} }`;
415
+ m + g.value.top,
416
+ S.value.y + f - S.value.scrollTop
417
+ ), S.value.scrollTop = f;
418
+ }
419
+ function p(f, m, O = "dynamic-styles") {
420
+ let C = document.getElementById(O);
421
+ C || (C = document.createElement("style"), C.id = O, document.head.appendChild(C));
422
+ const M = C.sheet.cssRules, J = M.length, Ye = `${f} { ${m} }`;
395
423
  for (let ce = 0; ce < J; ce++) {
396
- const ge = M[ce];
397
- if (ge.selectorText === d && ge.style.cssText === h)
424
+ const ye = M[ce];
425
+ if (ye.selectorText === f && ye.style.cssText === m)
398
426
  return;
399
427
  }
400
- x.sheet.insertRule(qe, J);
428
+ C.sheet.insertRule(Ye, J);
401
429
  }
402
- function _(d, h) {
403
- v.value = !0, i.value = !0, y.value.height ? y.value.sync() : y.value.sync(!0), r.value.x = d, r.value.y = h + y.value.top, S.value.x = r.value.x, S.value.y = r.value.y, c.value?.classList.add("disable-scroll-behavior"), f.clear();
430
+ function y(f, m) {
431
+ v.value = !0, r.value = !0, _.value.height ? _.value.sync() : _.value.sync(!0), u.value.x = f, u.value.y = m + _.value.top, S.value.x = u.value.x, S.value.y = u.value.y, c.value?.classList.add("disable-scroll-behavior"), d.clear();
404
432
  }
405
- function B(d, h, O) {
406
- !i.value || (v.value && t === "colum" && !C() && (s(), v.value = !1), O?.(), G(h), S.value.x = Math.max(d, m.value.left), S.value.y = Math.min(
407
- h + y.value.top,
408
- y.value.height + m.value.top
409
- ), S.value.scrollTop = y.value.top, g.value());
433
+ function B(f, m, O) {
434
+ !r.value || (v.value && t === "colum" && !x() && (s(), v.value = !1), O?.(), G(m), S.value.x = Math.max(f, g.value.left), S.value.y = Math.min(
435
+ m + _.value.top,
436
+ _.value.height + g.value.top
437
+ ), S.value.scrollTop = _.value.top, h.value());
410
438
  }
411
439
  function D() {
412
- i.value = !1, c.value?.classList.remove("disable-scroll-behavior");
440
+ r.value = !1, c.value?.classList.remove("disable-scroll-behavior");
413
441
  }
414
442
  function L() {
415
- !i.value || (H || X(), g.value());
443
+ !r.value || ($ || X(), h.value());
416
444
  }
417
- function C() {
418
- if (!i.value)
445
+ function x() {
446
+ if (!r.value)
419
447
  return !1;
420
- const { width: d, height: h } = T.value;
421
- return !(Math.max(d, h) > 5);
448
+ const { width: f, height: m } = T.value;
449
+ return !(Math.max(f, m) > 5);
422
450
  }
423
451
  function Z() {
424
- C() && s();
452
+ x() && s();
425
453
  }
426
- function j() {
427
- C() || c.value?.querySelectorAll(`[${e}]`).forEach((d) => {
428
- u[`${e}`] = d.getAttribute(`${e}`), q(d.getBoundingClientRect()) ? l([u]) : a([u]);
454
+ function W() {
455
+ x() || c.value?.querySelectorAll(`[${e}]`).forEach((f) => {
456
+ i[`${e}`] = f.getAttribute(`${e}`), q(f.getBoundingClientRect()) ? l([i]) : a([i]);
429
457
  });
430
458
  }
431
459
  function se() {
432
- const d = [];
433
- let h = null, O = 0;
434
- c.value?.querySelectorAll(`[${e}]`).forEach((x, M) => {
435
- const J = x.getAttribute(`${e}`);
436
- d.push(J), q(x.getBoundingClientRect()) ? (h === null && (h = M), h = Math.min(h, M), O = Math.max(O, M)) : (u[`${e}`] = J, f.has(J) && a([u]));
460
+ const f = [];
461
+ let m = null, O = 0;
462
+ c.value?.querySelectorAll(`[${e}]`).forEach((C, M) => {
463
+ const J = C.getAttribute(`${e}`);
464
+ f.push(J), q(C.getBoundingClientRect()) ? (m === null && (m = M), m = Math.min(m, M), O = Math.max(O, M)) : (i[`${e}`] = J, d.has(J) && a([i]));
437
465
  });
438
- for (let x = h; x < O + 1; x++)
439
- u[`${e}`] = d[x], l([u]), f.add(d[x]);
466
+ for (let C = m; C < O + 1; C++)
467
+ i[`${e}`] = f[C], l([i]), d.add(f[C]);
440
468
  }
441
- function ae(d) {
442
- return !d?.value || (c.value = d.value, !c?.value) ? !1 : (E.observe(c.value), p(
469
+ function ae(f) {
470
+ return !f?.value || (c.value = f.value, !c?.value) ? !1 : (E.observe(c.value), p(
443
471
  ".disable-scroll-behavior",
444
472
  "scroll-behavior: unset !important;"
445
473
  ), !0);
446
474
  }
447
475
  return {
448
476
  init: ae,
449
- dragStart: _,
477
+ dragStart: y,
450
478
  dragMove: B,
451
479
  dragEnd: D,
452
480
  onScroll: L,
453
- isSingleClick: C,
481
+ isSingleClick: x,
454
482
  cancelSelectAllBySingleClick: Z,
455
- selectFn: g,
483
+ selectFn: h,
456
484
  selectRange: T,
457
- isPressing: i,
485
+ isPressing: r,
458
486
  containerEl: c,
459
487
  observer: E
460
488
  };
461
489
  }
462
- function en(e) {
463
- const t = Ue(e), { observer: o, selectRange: n } = t, {
490
+ function tn(e) {
491
+ const t = qe(e), { observer: o, selectRange: n } = t, {
464
492
  onScroll: l,
465
493
  dragStart: a,
466
494
  dragMove: s,
467
- dragEnd: u,
468
- cancelSelectAllBySingleClick: g
469
- } = t, f = w(() => ({
495
+ dragEnd: i,
496
+ cancelSelectAllBySingleClick: h
497
+ } = t, d = w(() => ({
470
498
  left: `${n.value.left}px`,
471
499
  top: `${n.value.top}px`,
472
500
  width: `${n.value.width}px`,
473
501
  height: `${n.value.height}px`
474
- })), v = N({
502
+ })), v = j({
475
503
  render() {
476
- return z("div", {
504
+ return N("div", {
477
505
  id: "selectBoxEl",
478
506
  class: "absolute z-50 bg-blue-200 opacity-50",
479
- style: f.value
507
+ style: d.value
480
508
  });
481
509
  }
482
510
  });
483
- function c(m) {
484
- m.button === 0 && a(m.x, m.y);
511
+ function c(g) {
512
+ g.button === 0 && a(g.x, g.y);
485
513
  }
486
- function i(m) {
487
- s(m.x, m.y);
514
+ function r(g) {
515
+ s(g.x, g.y);
488
516
  }
489
- function r(m) {
490
- m.composedPath().some((T) => T?.getAttribute?.(e.attribute)) || g(), u();
517
+ function u(g) {
518
+ g.composedPath().some((T) => T?.getAttribute?.(e.attribute)) || h(), i();
491
519
  }
492
- function S(m) {
520
+ function S(g) {
493
521
  try {
494
- if (!t.init(m))
522
+ if (!t.init(g))
495
523
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
496
524
  if (!t.containerEl?.value)
497
525
  return !1;
498
- re(z(v), t.containerEl.value), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", c), window.addEventListener("mousemove", i), window.addEventListener("mouseup", r);
499
- } catch (y) {
500
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", y);
526
+ re(N(v), t.containerEl.value), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", c), window.addEventListener("mousemove", r), window.addEventListener("mouseup", u);
527
+ } catch (_) {
528
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", _);
501
529
  }
502
530
  }
503
531
  function E() {
504
- o.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", c), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", r);
532
+ o.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", c), window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", u);
505
533
  }
506
534
  return { init: S, unMount: E };
507
535
  }
508
- function tn(e, t, o = 600) {
509
- const n = Ue({
536
+ function nn(e, t, o = 600) {
537
+ const n = qe({
510
538
  ...e,
511
539
  selectWay: "row",
512
540
  scrollOptions: {
513
541
  startSpeed: 5,
514
542
  maxSpeed: 5
515
543
  }
516
- }), { observer: l } = n, { onScroll: a, dragStart: s, dragMove: u, dragEnd: g } = n;
517
- let f;
544
+ }), { observer: l } = n, { onScroll: a, dragStart: s, dragMove: i, dragEnd: h } = n;
545
+ let d;
518
546
  function v() {
519
- clearTimeout(f);
547
+ clearTimeout(d);
520
548
  }
521
- function c(m) {
522
- v(), m.composedPath().some((T) => !!T?.getAttribute?.(e.attribute)) && (f = setTimeout(() => {
523
- const { clientX: T, clientY: P } = m.targetTouches[0];
524
- s(T, P), t?.(), u(T, P, () => m.preventDefault()), m.preventDefault();
549
+ function c(g) {
550
+ v(), g.composedPath().some((T) => !!T?.getAttribute?.(e.attribute)) && (d = setTimeout(() => {
551
+ const { clientX: T, clientY: P } = g.targetTouches[0];
552
+ s(T, P), t?.(), i(T, P, () => g.preventDefault()), g.preventDefault();
525
553
  }, o));
526
554
  }
527
- function i(m) {
555
+ function r(g) {
528
556
  v();
529
- const { clientX: y, clientY: T } = m.targetTouches[0];
530
- u(y, T, () => m.preventDefault());
557
+ const { clientX: _, clientY: T } = g.targetTouches[0];
558
+ i(_, T, () => g.preventDefault());
531
559
  }
532
- function r() {
533
- v(), g();
560
+ function u() {
561
+ v(), h();
534
562
  }
535
- function S(m) {
563
+ function S(g) {
536
564
  try {
537
- if (!n.init(m))
565
+ if (!n.init(g))
538
566
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
539
567
  if (!n.containerEl?.value)
540
568
  return !1;
541
- n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart", c), n.containerEl.value?.addEventListener("touchmove", i), window.addEventListener("touchcancel", r), window.addEventListener("touchend", r);
542
- } catch (y) {
543
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", y);
569
+ n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart", c), n.containerEl.value?.addEventListener("touchmove", r), window.addEventListener("touchcancel", u), window.addEventListener("touchend", u);
570
+ } catch (_) {
571
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", _);
544
572
  }
545
573
  }
546
574
  function E() {
547
- l.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart", c), n.containerEl.value?.removeEventListener("touchmove", i), window.removeEventListener("touchcancel", r), window.removeEventListener("touchEnd", r);
575
+ l.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart", c), n.containerEl.value?.removeEventListener("touchmove", r), window.removeEventListener("touchcancel", u), window.removeEventListener("touchEnd", u);
548
576
  }
549
577
  return { init: S, unMount: E };
550
578
  }
551
- const Ot = Symbol(), Dt = /* @__PURE__ */ N({
579
+ const It = Symbol(), $t = /* @__PURE__ */ j({
552
580
  __name: "Dialog",
553
581
  props: {
554
582
  visiable: { type: Boolean, default: !1 },
@@ -560,38 +588,38 @@ const Ot = Symbol(), Dt = /* @__PURE__ */ N({
560
588
  const o = e, n = () => {
561
589
  o.closeOnClickOverlay && t("update:visiable", !1);
562
590
  };
563
- return A(Ot, () => t("update:visiable", !1)), (l, a) => ($(), Oe(De, { name: "modal" }, {
564
- default: Re(() => [
565
- e.visiable ? ($(), k("div", {
591
+ return H(It, () => t("update:visiable", !1)), (l, a) => (A(), De(Re, { name: "modal" }, {
592
+ default: Be(() => [
593
+ e.visiable ? (A(), V("div", {
566
594
  key: 0,
567
595
  onClick: n,
568
596
  class: "lzc-modal"
569
597
  }, [
570
598
  I("div", {
571
- onClick: a[0] || (a[0] = Je(() => {
599
+ onClick: a[0] || (a[0] = tt(() => {
572
600
  }, ["stop"])),
573
- class: et(["lzc-dialog", e.dialogClass])
601
+ class: nt(["lzc-dialog", e.dialogClass])
574
602
  }, [
575
- ue(l.$slots, "default", {}, void 0, !0)
603
+ pe(l.$slots, "default", {}, void 0, !0)
576
604
  ], 2)
577
- ])) : tt("", !0)
605
+ ])) : ot("", !0)
578
606
  ]),
579
607
  _: 3
580
608
  }));
581
609
  }
582
610
  });
583
- const ee = (e, t) => {
611
+ const le = (e, t) => {
584
612
  const o = e.__vccOpts || e;
585
613
  for (const [n, l] of t)
586
614
  o[n] = l;
587
615
  return o;
588
- }, Rt = /* @__PURE__ */ ee(Dt, [["__scopeId", "data-v-e171c24d"]]);
589
- function nn(e) {
616
+ }, Ht = /* @__PURE__ */ le($t, [["__scopeId", "data-v-e171c24d"]]);
617
+ function on(e) {
590
618
  function t(o, n) {
591
619
  const l = document.createElement("div"), a = {
592
620
  setup() {
593
- return () => z(
594
- Rt,
621
+ return () => N(
622
+ Ht,
595
623
  {
596
624
  visiable: !0,
597
625
  "onUpdate:visiable": () => {
@@ -600,12 +628,12 @@ function nn(e) {
600
628
  ...e
601
629
  },
602
630
  {
603
- default: () => z(o, n)
631
+ default: () => N(o, n)
604
632
  }
605
633
  );
606
634
  }
607
635
  };
608
- return document.body.appendChild(l), re(z(a), l), {
636
+ return document.body.appendChild(l), re(N(a), l), {
609
637
  close: () => l?.remove()
610
638
  };
611
639
  }
@@ -613,42 +641,38 @@ function nn(e) {
613
641
  create: t
614
642
  };
615
643
  }
616
- const Bt = { class: "delay-load" }, It = /* @__PURE__ */ N({
617
- __name: "DelayWrapper",
618
- props: {
619
- delay: { default: 1300 }
620
- },
621
- setup(e) {
622
- const t = e;
623
- Be((n) => ({
624
- "3b99be8e": o
625
- }));
626
- const o = `${t.delay}ms`;
627
- return (n, l) => ($(), k("div", Bt, [
628
- ue(n.$slots, "default", {}, void 0, !0)
629
- ]));
630
- }
631
- });
632
- const $t = /* @__PURE__ */ ee(It, [["__scopeId", "data-v-86c9cef1"]]);
633
- function on({
644
+ function ln({
634
645
  component: e,
635
646
  componentProps: t,
636
647
  delay: o = 300
637
648
  }) {
638
- const n = b(!0), l = N({
649
+ const n = `${o}ms`, l = b(!1), { load: a } = xt(
650
+ `@keyframes delayLoad {
651
+ to {
652
+ opacity: 1;
653
+ }
654
+ }
655
+ .delay-load {
656
+ opacity: 0;
657
+ animation: delayLoad 0s ${n} forwards;
658
+ }`
659
+ ), s = j({
639
660
  setup() {
640
- return () => n.value && z($t, { delay: o }, { default: () => z(e, t) });
661
+ const d = N(e, t);
662
+ return ue(() => {
663
+ a(), d.el && d.el.classList.add("delay-load");
664
+ }), () => l.value && d;
641
665
  }
642
666
  });
643
- function a() {
644
- n.value = !0;
667
+ function i() {
668
+ l.value = !0;
645
669
  }
646
- function s() {
647
- n.value = !1;
670
+ function h() {
671
+ l.value = !1;
648
672
  }
649
- return { LoadingComp: l, loading: n, load: a, unload: s };
673
+ return { LoadingComp: s, loading: l, load: i, unload: h };
650
674
  }
651
- const Ht = /* @__PURE__ */ N({
675
+ const At = /* @__PURE__ */ j({
652
676
  __name: "Toast",
653
677
  props: {
654
678
  message: null,
@@ -671,7 +695,7 @@ const Ht = /* @__PURE__ */ N({
671
695
  padding: "14px 19px",
672
696
  top: `calc(${a.value}% - ${l.value}px)`,
673
697
  left: `calc(50% - ${n.value}px)`
674
- })), u = w(() => ({
698
+ })), i = w(() => ({
675
699
  width: "fit-content",
676
700
  display: "flex",
677
701
  justifyContent: "center",
@@ -681,36 +705,36 @@ const Ht = /* @__PURE__ */ N({
681
705
  }));
682
706
  return he(() => {
683
707
  n.value = o.value.offsetWidth / 2, l.value = o.value.offsetHeight / 2;
684
- }), (g, f) => ($(), k("div", {
708
+ }), (h, d) => (A(), V("div", {
685
709
  id: "toastWrapper",
686
710
  ref_key: "toastWrapper",
687
711
  ref: o,
688
712
  class: "toastWrapper",
689
- style: le([R(s), { zIndex: 9999 }])
713
+ style: oe([R(s), { zIndex: 9999 }])
690
714
  }, [
691
715
  I("div", {
692
- style: le(R(u))
716
+ style: oe(R(i))
693
717
  }, [
694
- I("span", null, nt(e.message), 1)
718
+ I("span", null, lt(e.message), 1)
695
719
  ], 4)
696
720
  ], 4));
697
721
  }
698
722
  });
699
- const At = /* @__PURE__ */ ee(Ht, [["__scopeId", "data-v-15ab4094"]]), Te = {
723
+ const Pt = /* @__PURE__ */ le(At, [["__scopeId", "data-v-15ab4094"]]), Le = {
700
724
  message: "\u61D2\u732B\u4E91 Yes!!!",
701
725
  position: "middle",
702
726
  duration: 1500
703
727
  };
704
- class ln {
728
+ class sn {
705
729
  options;
706
730
  container;
707
731
  constructor(t) {
708
732
  this.options = t, this.container = document.createElement("div");
709
733
  }
710
734
  present() {
711
- const t = z(z(At), { ...Te, ...this.options });
735
+ const t = N(N(Pt), { ...Le, ...this.options });
712
736
  re(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
713
- const o = this.options.duration || Te.duration;
737
+ const o = this.options.duration || Le.duration;
714
738
  setTimeout(() => {
715
739
  this.dismiss();
716
740
  }, o);
@@ -726,7 +750,7 @@ class ln {
726
750
  }
727
751
  }
728
752
  }
729
- const Pt = ["xlink:href", "fill", "color"], sn = /* @__PURE__ */ N({
753
+ const Ft = ["xlink:href", "fill", "color"], an = /* @__PURE__ */ j({
730
754
  __name: "SvgIcon",
731
755
  props: {
732
756
  name: null,
@@ -741,49 +765,49 @@ const Pt = ["xlink:href", "fill", "color"], sn = /* @__PURE__ */ N({
741
765
  height: `${t.height ?? t.width}px`,
742
766
  aspectRatio: t.width && t.height ? void 0 : "1/1"
743
767
  }));
744
- return (l, a) => ($(), k("svg", {
768
+ return (l, a) => (A(), V("svg", {
745
769
  "aria-hidden": "",
746
- style: le(R(n))
770
+ style: oe(R(n))
747
771
  }, [
748
772
  I("use", {
749
773
  "xlink:href": R(o),
750
774
  fill: e.color,
751
775
  color: e.color
752
- }, null, 8, Pt)
776
+ }, null, 8, Ft)
753
777
  ], 4));
754
778
  }
755
779
  });
756
- function Ft(e) {
780
+ function Mt(e) {
757
781
  const {
758
782
  containerEl: t,
759
783
  sliderEl: o,
760
784
  autoHeight: n,
761
785
  performance: l = {},
762
786
  maxHeightRatio: a = 0.9
763
- } = e, s = b(!0), u = Pe(Q, 100);
764
- let g, f = "";
765
- const v = b(0), c = b(0), i = b(0), r = b({
787
+ } = e, s = b(!0), i = Pe(Q, 100);
788
+ let h, d = "";
789
+ const v = b(0), c = b(0), r = b(0), u = b({
766
790
  top: 0,
767
791
  scrollTop: 0,
768
792
  scrollHeight: 0,
769
793
  clientHeight: 0
770
794
  }), S = b({
771
795
  clientHeight: 0
772
- }), E = w(() => !!c.value), m = w(() => r.value.scrollHeight > r.value.clientHeight), y = w(() => r.value.clientHeight - S.value.clientHeight), T = w(() => r.value.scrollHeight - r.value.clientHeight), P = w(() => Math.max(
773
- r.value.clientHeight / r.value.scrollHeight,
796
+ }), E = w(() => !!c.value), g = w(() => u.value.scrollHeight > u.value.clientHeight), _ = w(() => u.value.clientHeight - S.value.clientHeight), T = w(() => u.value.scrollHeight - u.value.clientHeight), P = w(() => Math.max(
797
+ u.value.clientHeight / u.value.scrollHeight,
774
798
  0.05
775
- )), te = w(() => P.value > a ? 0 : P.value * r.value.clientHeight), Y = w(() => ({
799
+ )), te = w(() => P.value > a ? 0 : P.value * u.value.clientHeight), Y = w(() => ({
776
800
  willChange: "transform",
777
- transform: `translate3d(0,${i.value}px,0)`,
801
+ transform: `translate3d(0,${r.value}px,0)`,
778
802
  height: n ? `${te.value}px` : void 0
779
803
  }));
780
804
  function K(L) {
781
- V(), c.value = L.clientY - o.value.getBoundingClientRect().top || 1, f = getComputedStyle(t.value).scrollBehavior, f === "smooth" && (t.value.style.scrollBehavior = "unset");
805
+ z(), c.value = L.clientY - o.value.getBoundingClientRect().top || 1, d = getComputedStyle(t.value).scrollBehavior, d === "smooth" && (t.value.style.scrollBehavior = "unset");
782
806
  }
783
807
  function F() {
784
- t.value.style.scrollBehavior = f, c.value = 0, u();
808
+ t.value.style.scrollBehavior = d, c.value = 0, i();
785
809
  }
786
- function V() {
810
+ function z() {
787
811
  s.value = !1;
788
812
  }
789
813
  function Q() {
@@ -792,53 +816,53 @@ function Ft(e) {
792
816
  function U(L) {
793
817
  if (!E.value)
794
818
  return;
795
- let C = L.clientY - r.value.top - c.value;
796
- C < 0 ? i.value = 0 : C >= y.value ? i.value = y.value : i.value = C, t.value.scrollTo({
797
- top: i.value / y.value * T.value
819
+ let x = L.clientY - u.value.top - c.value;
820
+ x < 0 ? r.value = 0 : x >= _.value ? r.value = _.value : r.value = x, t.value.scrollTo({
821
+ top: r.value / _.value * T.value
798
822
  });
799
823
  }
800
- function H() {
824
+ function $() {
801
825
  E.value || G();
802
826
  }
803
827
  function G() {
804
- cancelAnimationFrame(g), g = requestAnimationFrame(ne);
828
+ cancelAnimationFrame(h), h = requestAnimationFrame(ne);
805
829
  }
806
830
  function ne() {
807
- t.value && (v.value = l.scrollTop?.value ?? t.value.scrollTop, i.value = v.value / T.value * y.value);
831
+ t.value && (v.value = l.scrollTop?.value ?? t.value.scrollTop, r.value = v.value / T.value * _.value);
808
832
  }
809
833
  function q(L) {
810
- let C = "addEventListener";
811
- L === "add" ? C = "addEventListener" : C = "removeEventListener", o.value?.[C]("pointerdown", K, {
834
+ let x = "addEventListener";
835
+ L === "add" ? x = "addEventListener" : x = "removeEventListener", o.value?.[x]("pointerdown", K, {
812
836
  passive: !0
813
- }), window[C]("pointermove", U, { passive: !0 }), window[C]("pointerup", F, { passive: !0 });
837
+ }), window[x]("pointermove", U, { passive: !0 }), window[x]("pointerup", F, { passive: !0 });
814
838
  }
815
839
  const X = new MutationObserver((L) => {
816
840
  L.map((Z) => Z.oldValue).join().includes("height") && p();
817
841
  });
818
842
  function p() {
819
- r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
843
+ u.value.top = t.value?.getBoundingClientRect().top ?? 0, u.value.scrollHeight = t.value?.scrollHeight ?? 0, u.value.clientHeight = t.value?.clientHeight ?? 0;
820
844
  }
821
- function _() {
822
- V(), setTimeout(() => {
845
+ function y() {
846
+ z(), setTimeout(() => {
823
847
  S.value.clientHeight = o.value?.clientHeight ?? 0, Q();
824
848
  }, 150);
825
849
  }
826
- function B(L, C, Z = "dynamic-styles") {
827
- let j = document.getElementById(Z);
828
- j || (j = document.createElement("style"), j.id = Z, document.head.appendChild(j));
829
- const se = j.sheet.cssRules, ae = se.length, d = `${L} { ${C} }`;
830
- for (let h = 0; h < ae; h++) {
831
- const O = se[h];
832
- if (O.selectorText === L && O.style.cssText === C)
850
+ function B(L, x, Z = "dynamic-styles") {
851
+ let W = document.getElementById(Z);
852
+ W || (W = document.createElement("style"), W.id = Z, document.head.appendChild(W));
853
+ const se = W.sheet.cssRules, ae = se.length, f = `${L} { ${x} }`;
854
+ for (let m = 0; m < ae; m++) {
855
+ const O = se[m];
856
+ if (O.selectorText === L && O.style.cssText === x)
833
857
  return;
834
858
  }
835
- j.sheet.insertRule(d, ae);
859
+ W.sheet.insertRule(f, ae);
836
860
  }
837
861
  function D() {
838
862
  t.value && o.value ? (B(
839
863
  ".hide-scrollbar",
840
864
  "scrollbar-width: none; -ms-overflow-style: none;"
841
- ), B(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", H, {
865
+ ), B(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", $, {
842
866
  passive: !0
843
867
  }), q("add"), X.observe(t.value, {
844
868
  subtree: !0,
@@ -846,22 +870,22 @@ function Ft(e) {
846
870
  attributeFilter: ["style"]
847
871
  }), setTimeout(() => {
848
872
  p();
849
- }, 100), _()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: o });
873
+ }, 100), y()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: o });
850
874
  }
851
- return oe(v, () => {
852
- V(), u();
875
+ return ee(v, () => {
876
+ z(), i();
853
877
  }), {
854
878
  isScrollEnd: s,
855
879
  isDragSlider: E,
856
- offsetTop: i,
880
+ offsetTop: r,
857
881
  scrollTop: v,
858
- scrollable: m,
882
+ scrollable: g,
859
883
  sliderPos: Y,
860
884
  init: D,
861
885
  modifySliderEventListener: q
862
886
  };
863
887
  }
864
- const Mt = (e) => (Ie("data-v-edec7292"), e = e(), $e(), e), Wt = /* @__PURE__ */ Mt(() => /* @__PURE__ */ I("div", { class: "default-slider" }, null, -1)), zt = /* @__PURE__ */ N({
888
+ const kt = (e) => (Ie("data-v-edec7292"), e = e(), $e(), e), zt = /* @__PURE__ */ kt(() => /* @__PURE__ */ I("div", { class: "default-slider" }, null, -1)), Wt = /* @__PURE__ */ j({
865
889
  __name: "ScrollBar",
866
890
  props: {
867
891
  containerEl: null,
@@ -870,50 +894,50 @@ const Mt = (e) => (Ie("data-v-edec7292"), e = e(), $e(), e), Wt = /* @__PURE__ *
870
894
  performance: null
871
895
  },
872
896
  setup(e, { expose: t }) {
873
- const o = e, n = !!ot().default, l = b(null), a = w(() => o.containerEl), s = Ft({
897
+ const o = e, n = !!st().default, l = b(null), a = w(() => o.containerEl), s = Mt({
874
898
  containerEl: a,
875
899
  sliderEl: l,
876
900
  autoHeight: n ? o.autoHeight : !0,
877
901
  performance: o.performance
878
- }), { scrollable: u, isScrollEnd: g, sliderPos: f } = s, v = b(!1), c = o.autoHide ? w(() => v.value || !g.value) : w(() => u.value);
879
- pe(() => {
902
+ }), { scrollable: i, isScrollEnd: h, sliderPos: d } = s, v = b(!1), c = o.autoHide ? w(() => v.value || !h.value) : w(() => i.value);
903
+ ue(() => {
880
904
  he(() => {
881
905
  s.init();
882
906
  });
883
- }), Le(() => {
907
+ }), Oe(() => {
884
908
  s.modifySliderEventListener("remove");
885
909
  });
886
- function i() {
910
+ function r() {
887
911
  v.value = !0;
888
912
  }
889
- function r() {
913
+ function u() {
890
914
  v.value = !1;
891
915
  }
892
- return t({ uScrollBarReturn: s }), (S, E) => ($(), Oe(De, null, {
893
- default: Re(() => [
894
- lt(I("div", {
916
+ return t({ uScrollBarReturn: s }), (S, E) => (A(), De(Re, null, {
917
+ default: Be(() => [
918
+ at(I("div", {
895
919
  ref_key: "sliderRef",
896
920
  ref: l,
897
921
  class: "slider-wrapper",
898
- onMouseenter: i,
899
- onMouseleave: r,
900
- style: le(R(f))
922
+ onMouseenter: r,
923
+ onMouseleave: u,
924
+ style: oe(R(d))
901
925
  }, [
902
- ue(S.$slots, "default", {}, () => [
903
- Wt
926
+ pe(S.$slots, "default", {}, () => [
927
+ zt
904
928
  ], !0)
905
929
  ], 36), [
906
- [st, R(c)]
930
+ [rt, R(c)]
907
931
  ])
908
932
  ]),
909
933
  _: 3
910
934
  }));
911
935
  }
912
936
  });
913
- const an = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-edec7292"]]), kt = { class: "virtualListWrapper" }, Nt = {
937
+ const rn = /* @__PURE__ */ le(Wt, [["__scopeId", "data-v-edec7292"]]), Nt = { class: "virtualListWrapper" }, Vt = {
914
938
  inheritAttrs: !1
915
- }, Vt = /* @__PURE__ */ N({
916
- ...Nt,
939
+ }, jt = /* @__PURE__ */ j({
940
+ ...Vt,
917
941
  __name: "VirtualList",
918
942
  props: {
919
943
  data: null,
@@ -922,33 +946,33 @@ const an = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-edec7292"]]), kt = { cl
922
946
  },
923
947
  emits: ["scrollEnd"],
924
948
  setup(e, { expose: t, emit: o }) {
925
- const n = e, l = Lt(at(n, "data"), {
949
+ const n = e, l = Bt(it(n, "data"), {
926
950
  itemHeight: (v) => n.itemHeight(n.data[v]),
927
951
  overscan: n.overscan,
928
952
  scrollEndHook: () => {
929
953
  o("scrollEnd");
930
954
  }
931
- }), { list: a, containerProps: s, wrapperProps: u, innerProps: g, getItemHeightData: f } = l;
955
+ }), { list: a, containerProps: s, wrapperProps: i, innerProps: h, getItemHeightData: d } = l;
932
956
  return t({
933
957
  vListReturn: l
934
- }), (v, c) => ($(), k("div", kt, [
935
- I("div", rt({
936
- onScrollPassive: c[0] || (c[0] = (...i) => R(s).onScroll && R(s).onScroll(...i)),
958
+ }), (v, c) => (A(), V("div", Nt, [
959
+ I("div", ut({
960
+ onScrollPassive: c[0] || (c[0] = (...r) => R(s).onScroll && R(s).onScroll(...r)),
937
961
  ref: R(s).ref,
938
962
  class: "virtualList"
939
963
  }, v.$attrs), [
940
- I("div", _e(ye(R(u))), [
941
- I("div", _e(ye(R(g))), [
942
- ($(!0), k(it, null, ut(R(a), ({ index: i, data: r }) => ($(), k("div", {
943
- key: i,
944
- style: le({
945
- height: `${R(f)(i).height}px`,
964
+ I("div", _e(be(R(i))), [
965
+ I("div", _e(be(R(h))), [
966
+ (A(!0), V(ct, null, dt(R(a), ({ index: r, data: u }) => (A(), V("div", {
967
+ key: r,
968
+ style: oe({
969
+ height: `${R(d)(r).height}px`,
946
970
  display: "flex"
947
971
  })
948
972
  }, [
949
- ue(v.$slots, "default", {
950
- data: r,
951
- index: i
973
+ pe(v.$slots, "default", {
974
+ data: u,
975
+ index: r
952
976
  }, void 0, !0)
953
977
  ], 4))), 128))
954
978
  ], 16)
@@ -957,7 +981,7 @@ const an = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-edec7292"]]), kt = { cl
957
981
  ]));
958
982
  }
959
983
  });
960
- const rn = /* @__PURE__ */ ee(Vt, [["__scopeId", "data-v-4ba97cce"]]), me = (e) => (Ie("data-v-40e00f20"), e = e(), $e(), e), jt = { style: { position: "absolute" } }, Kt = /* @__PURE__ */ me(() => /* @__PURE__ */ I("div", { class: "wrapper" }, null, -1)), Qt = ["width", "height"], Ut = /* @__PURE__ */ me(() => /* @__PURE__ */ I("title", null, "logo", -1)), qt = /* @__PURE__ */ me(() => /* @__PURE__ */ I("g", {
984
+ const un = /* @__PURE__ */ le(jt, [["__scopeId", "data-v-4ba97cce"]]), ge = (e) => (Ie("data-v-40e00f20"), e = e(), $e(), e), Kt = { style: { position: "absolute" } }, Qt = /* @__PURE__ */ ge(() => /* @__PURE__ */ I("div", { class: "wrapper" }, null, -1)), Ut = ["width", "height"], qt = /* @__PURE__ */ ge(() => /* @__PURE__ */ I("title", null, "logo", -1)), Yt = /* @__PURE__ */ ge(() => /* @__PURE__ */ I("g", {
961
985
  id: "group-1",
962
986
  stroke: "none",
963
987
  "stroke-width": "1",
@@ -969,10 +993,10 @@ const rn = /* @__PURE__ */ ee(Vt, [["__scopeId", "data-v-4ba97cce"]]), me = (e)
969
993
  id: "path-1",
970
994
  fill: "#FFF"
971
995
  })
972
- ], -1)), Yt = [
973
- Ut,
974
- qt
975
- ], Gt = /* @__PURE__ */ N({
996
+ ], -1)), Gt = [
997
+ qt,
998
+ Yt
999
+ ], Xt = /* @__PURE__ */ j({
976
1000
  __name: "Loading",
977
1001
  props: {
978
1002
  width: { default: "90" },
@@ -981,46 +1005,46 @@ const rn = /* @__PURE__ */ ee(Vt, [["__scopeId", "data-v-4ba97cce"]]), me = (e)
981
1005
  },
982
1006
  setup(e) {
983
1007
  const t = e;
984
- Be((n) => ({
1008
+ vt((n) => ({
985
1009
  "703ef503": o
986
1010
  }));
987
1011
  const o = `${t.duration}ms`;
988
- return (n, l) => ($(), k("div", jt, [
989
- Kt,
990
- ($(), k("svg", {
1012
+ return (n, l) => (A(), V("div", Kt, [
1013
+ Qt,
1014
+ (A(), V("svg", {
991
1015
  style: { position: "relative" },
992
1016
  width: e.width,
993
1017
  height: e.height,
994
1018
  viewBox: "0 0 260 260",
995
1019
  version: "1.1",
996
1020
  xmlns: "http://www.w3.org/2000/svg"
997
- }, Yt, 8, Qt))
1021
+ }, Gt, 8, Ut))
998
1022
  ]));
999
1023
  }
1000
1024
  });
1001
- const un = /* @__PURE__ */ ee(Gt, [["__scopeId", "data-v-40e00f20"]]);
1025
+ const cn = /* @__PURE__ */ le(Xt, [["__scopeId", "data-v-40e00f20"]]);
1002
1026
  export {
1003
- un as Loading,
1004
- an as ScrollBar,
1005
- sn as SvgIcon,
1006
- ln as ToastCreator,
1007
- rn as VirtualList,
1008
- ke as allSelectedKey,
1009
- Ot as closeDialogKey,
1010
- nn as dialogController,
1011
- Ke as isAllSelectedKey,
1012
- ze as isSelectedKey,
1013
- Ve as selectAllKey,
1014
- Ne as selectKey,
1015
- Me as toggleAllKey,
1016
- We as toggleKey,
1017
- Qe as unselectAllKey,
1018
- je as unselectKey,
1019
- on as useDelayLoad,
1020
- Ue as useDragSelect,
1021
- tn as useDragSelectByMobile,
1022
- en as useDragSelectByPc,
1023
- Jt as useSelectable,
1024
- Zt as useSelectableInjectors,
1025
- Lt as useVirtualList
1027
+ cn as Loading,
1028
+ rn as ScrollBar,
1029
+ an as SvgIcon,
1030
+ sn as ToastCreator,
1031
+ un as VirtualList,
1032
+ Ne as allSelectedKey,
1033
+ It as closeDialogKey,
1034
+ on as dialogController,
1035
+ Qe as isAllSelectedKey,
1036
+ We as isSelectedKey,
1037
+ je as selectAllKey,
1038
+ Ve as selectKey,
1039
+ ke as toggleAllKey,
1040
+ ze as toggleKey,
1041
+ Ue as unselectAllKey,
1042
+ Ke as unselectKey,
1043
+ ln as useDelayLoad,
1044
+ qe as useDragSelect,
1045
+ nn as useDragSelectByMobile,
1046
+ tn as useDragSelectByPc,
1047
+ en as useSelectable,
1048
+ Jt as useSelectableInjectors,
1049
+ Bt as useVirtualList
1026
1050
  };