@das-fed/upf-ui 6.4.0-dev.299 → 6.4.0-dev.301
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/esm-map.json +2 -1
- package/front-end/i18n/front-end-page/dasui_en-US.js +7 -3
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +7 -3
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +7 -3
- package/package.json +7 -7
- package/packages/components/form-item/index.js +351 -349
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/infinite-scroll/i18n/index.d.ts +27 -0
- package/packages/components/infinite-scroll/index.d.ts +322 -0
- package/packages/components/infinite-scroll/index.js +2067 -0
- package/packages/components/infinite-scroll/index.js.gz +0 -0
- package/packages/components/infinite-scroll/src/index.vue.d.ts +199 -0
- package/packages/components/infinite-scroll/src/type.d.ts +61 -0
- package/packages/components/infinite-scroll/style.css +1 -0
- package/packages/components/infinite-scroll/style.css.gz +0 -0
- package/packages/components/input/index.js +354 -353
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +643 -642
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +5 -3
- package/packages/components/tree/index.js +1385 -1376
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +6 -5
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/release-meta.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withInstall as Ss } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
-
import { defineComponent as Eo, useCssVars as
|
|
2
|
+
import { defineComponent as Eo, useCssVars as Cs, useAttrs as $n, computed as K, ref as J, onMounted as To, onBeforeMount as Os, openBlock as ht, createBlock as $o, unref as Bt, mergeProps as In, withCtx as Dt, createVNode as lo, createElementVNode as Re, normalizeClass as ze, renderSlot as ee, createElementBlock as St, Fragment as Me, createTextVNode as Ln, toDisplayString as Pe, createCommentVNode as Lt, normalizeStyle as Ve, nextTick as be, Teleport as Es, getCurrentScope as Ts, onScopeDispose as $s, getCurrentInstance as Mn, watch as qt, createSlots as Is, withDirectives as Ls } from "vue";
|
|
3
3
|
import "element-plus/es/components/input/style/css";
|
|
4
|
-
import { ElTooltip as
|
|
4
|
+
import { ElTooltip as Ms, ElInput as Hs } from "element-plus";
|
|
5
5
|
import { currentLang as No, t as ks, setI18nRule as As } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
6
|
import { DasScrollbar as Rs } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
7
7
|
import "element-plus/es/components/tooltip/style/css";
|
|
@@ -29,7 +29,7 @@ const Vs = {
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["show", "hide"],
|
|
31
31
|
setup(t, { expose: e, emit: o }) {
|
|
32
|
-
|
|
32
|
+
Cs((v) => ({
|
|
33
33
|
v65704ba4: u.value
|
|
34
34
|
}));
|
|
35
35
|
const n = t, s = o, r = $n(), l = K(() => {
|
|
@@ -39,24 +39,24 @@ const Vs = {
|
|
|
39
39
|
a.value = v.target.scrollHeight > v.target.clientHeight;
|
|
40
40
|
}, w = (v) => {
|
|
41
41
|
s("show", v), window.addEventListener("wheel", g);
|
|
42
|
-
},
|
|
42
|
+
}, O = (v) => {
|
|
43
43
|
s("hide", v), window.removeEventListener("wheel", g);
|
|
44
44
|
}, g = (v) => {
|
|
45
45
|
const E = document.querySelector('[id^="el-popper-container"]');
|
|
46
46
|
if (!E) return;
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
49
|
-
const m = v.clientX, S = v.clientY,
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
const b = E.querySelector(".das-ui-tooltip-popper");
|
|
48
|
+
if (!b) return;
|
|
49
|
+
const m = v.clientX, S = v.clientY, C = b == null ? void 0 : b.getBoundingClientRect();
|
|
50
|
+
b && m >= C.left && m <= C.right && S >= C.top && S <= C.bottom || (b.style.display = "none", b.style.opacity = "0", be(() => {
|
|
51
|
+
O();
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
54
|
return To(() => {
|
|
55
|
-
}),
|
|
55
|
+
}), Os(() => {
|
|
56
56
|
window.removeEventListener("wheel", g);
|
|
57
57
|
}), e({
|
|
58
58
|
$tooltipRef: c
|
|
59
|
-
}), (v, E) => (ht(), $o(Bt(
|
|
59
|
+
}), (v, E) => (ht(), $o(Bt(Ms), In({
|
|
60
60
|
ref_key: "$tooltipRef",
|
|
61
61
|
ref: c,
|
|
62
62
|
class: "das-ui-tooltip",
|
|
@@ -68,7 +68,7 @@ const Vs = {
|
|
|
68
68
|
"show-after": 100
|
|
69
69
|
}, v.$attrs, {
|
|
70
70
|
onShow: w,
|
|
71
|
-
onHide:
|
|
71
|
+
onHide: O
|
|
72
72
|
}), {
|
|
73
73
|
content: Dt(() => [
|
|
74
74
|
lo(Bt(Rs), null, {
|
|
@@ -81,7 +81,7 @@ const Vs = {
|
|
|
81
81
|
[
|
|
82
82
|
ee(v.$slots, "content", {}, void 0, !0),
|
|
83
83
|
d.value && !v.$slots.content ? (ht(), St(
|
|
84
|
-
|
|
84
|
+
Me,
|
|
85
85
|
{ key: 0 },
|
|
86
86
|
[
|
|
87
87
|
Ln(
|
|
@@ -104,7 +104,7 @@ const Vs = {
|
|
|
104
104
|
]),
|
|
105
105
|
default: Dt(() => [
|
|
106
106
|
l.value ? (ht(), St("span", Vs, " ")) : (ht(), St(
|
|
107
|
-
|
|
107
|
+
Me,
|
|
108
108
|
{ key: 1 },
|
|
109
109
|
[
|
|
110
110
|
Lt(" 默认 slot 内容 "),
|
|
@@ -113,7 +113,7 @@ const Vs = {
|
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
key: 0,
|
|
116
|
-
onMouseenter: E[0] || (E[0] = (
|
|
116
|
+
onMouseenter: E[0] || (E[0] = (b) => f(b)),
|
|
117
117
|
class: ze(`das-tooltip-text-wrap ${t.customClass}`),
|
|
118
118
|
style: Ve({ width: n.textWidth })
|
|
119
119
|
},
|
|
@@ -132,7 +132,7 @@ const Vs = {
|
|
|
132
132
|
38
|
|
133
133
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
134
134
|
)) : (ht(), St(
|
|
135
|
-
|
|
135
|
+
Me,
|
|
136
136
|
{ key: 1 },
|
|
137
137
|
[
|
|
138
138
|
Lt(" 当没有 text 且没有 slot 内容时,提供一个占位元素避免 ElOnlyChild 错误 "),
|
|
@@ -157,12 +157,12 @@ const Vs = {
|
|
|
157
157
|
/* FORWARDED */
|
|
158
158
|
}, 16, ["disabled", "effect", "placement", "popper-class"]));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), Hn = (t, e) => {
|
|
161
161
|
const o = t.__vccOpts || t;
|
|
162
162
|
for (const [n, s] of e)
|
|
163
163
|
o[n] = s;
|
|
164
164
|
return o;
|
|
165
|
-
}, _s = /* @__PURE__ */
|
|
165
|
+
}, _s = /* @__PURE__ */ Hn(Ws, [["__scopeId", "data-v-e1652f58"]]), Ns = /* @__PURE__ */ Eo({
|
|
166
166
|
__name: "index",
|
|
167
167
|
props: {
|
|
168
168
|
getEl: {},
|
|
@@ -199,26 +199,26 @@ const Vs = {
|
|
|
199
199
|
"white-space": "break-spaces"
|
|
200
200
|
}), a = () => {
|
|
201
201
|
const u = (S = 0) => {
|
|
202
|
-
const
|
|
202
|
+
const C = document.createElement("div");
|
|
203
203
|
for (let [V, L] of Object.entries({
|
|
204
204
|
...r.value,
|
|
205
205
|
...c.value,
|
|
206
206
|
width: S + "px"
|
|
207
207
|
}))
|
|
208
|
-
|
|
209
|
-
const
|
|
208
|
+
C.style[V] = L;
|
|
209
|
+
const M = document.createElement("span");
|
|
210
210
|
for (let [V, L] of Object.entries(c.value))
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const D =
|
|
214
|
-
return document.body.removeChild(
|
|
211
|
+
M.style[V] = L;
|
|
212
|
+
M.textContent = e.errorLabel, C.appendChild(M), document.body.appendChild(C);
|
|
213
|
+
const D = C.offsetHeight, _ = M.offsetWidth;
|
|
214
|
+
return document.body.removeChild(C), { height: D, textWidth: _ };
|
|
215
215
|
}, i = () => {
|
|
216
|
-
const S = document.documentElement.clientHeight,
|
|
217
|
-
return S -
|
|
218
|
-
}, d = e.getEl(), f = (d == null ? void 0 : d.clientWidth) ?? 0, w = u(f),
|
|
219
|
-
e.errorWidth ? n.value = e.errorWidth :
|
|
220
|
-
const { left: g = 0, bottom: v = 0, height: E = 0 } = (d == null ? void 0 : d.getBoundingClientRect()) ?? {},
|
|
221
|
-
s.value.y = Math.ceil(v + m) >=
|
|
216
|
+
const S = document.documentElement.clientHeight, M = document.documentElement.scrollHeight - S;
|
|
217
|
+
return S - M;
|
|
218
|
+
}, d = e.getEl(), f = (d == null ? void 0 : d.clientWidth) ?? 0, w = u(f), O = w.textWidth;
|
|
219
|
+
e.errorWidth ? n.value = e.errorWidth : O > f ? n.value = O + 2 + 8 + "px" : n.value = f + "px";
|
|
220
|
+
const { left: g = 0, bottom: v = 0, height: E = 0 } = (d == null ? void 0 : d.getBoundingClientRect()) ?? {}, b = i(), m = w.height;
|
|
221
|
+
s.value.y = Math.ceil(v + m) >= b ? v - E - m : v, s.value.x = g;
|
|
222
222
|
};
|
|
223
223
|
return To(async () => {
|
|
224
224
|
await be(), a();
|
|
@@ -256,17 +256,17 @@ const Vs = {
|
|
|
256
256
|
*
|
|
257
257
|
* Released under the MIT license.
|
|
258
258
|
*/
|
|
259
|
-
const
|
|
259
|
+
const Ot = (t, e) => {
|
|
260
260
|
const { o, u: n, _: s } = t;
|
|
261
261
|
let r = o, l;
|
|
262
262
|
const c = (i, d) => {
|
|
263
|
-
const f = r, w = i,
|
|
264
|
-
return (
|
|
263
|
+
const f = r, w = i, O = d || (n ? !n(f, w) : f !== w);
|
|
264
|
+
return (O || s) && (r = w, l = f), [r, O, l];
|
|
265
265
|
};
|
|
266
266
|
return [e ? (i) => c(e(r, l), i) : c, (i) => [r, !!i, l]];
|
|
267
|
-
}, Io = typeof window < "u", bt = Io ? window : {},
|
|
268
|
-
const e = !!t && t.length, o =
|
|
269
|
-
return Tt(t) || !
|
|
267
|
+
}, Io = typeof window < "u", bt = Io ? window : {}, He = Math.max, Fs = Math.min, io = Math.round, kn = bt.cancelAnimationFrame, An = bt.requestAnimationFrame, ao = bt.setTimeout, uo = bt.clearTimeout, Fe = (t) => typeof bt[t] < "u" ? bt[t] : void 0, Us = Fe("MutationObserver"), Fo = Fe("IntersectionObserver"), Be = Fe("ResizeObserver"), fo = Fe("ScrollTimeline"), Rn = Io && Node.ELEMENT_NODE, { toString: js, hasOwnProperty: oo } = Object.prototype, Xs = /^\[object (.+)\]$/, Se = (t) => t === void 0, Ue = (t) => t === null, Ys = (t) => Se(t) || Ue(t) ? `${t}` : js.call(t).replace(Xs, "$1").toLowerCase(), Mt = (t) => typeof t == "number", je = (t) => typeof t == "string", zn = (t) => typeof t == "boolean", Ht = (t) => typeof t == "function", Tt = (t) => Array.isArray(t), xe = (t) => typeof t == "object" && !Tt(t) && !Ue(t), Xe = (t) => {
|
|
268
|
+
const e = !!t && t.length, o = Mt(e) && e > -1 && e % 1 == 0;
|
|
269
|
+
return Tt(t) || !Ht(t) && o ? e > 0 && xe(t) ? e - 1 in t : !0 : !1;
|
|
270
270
|
}, De = (t) => {
|
|
271
271
|
if (!t || !xe(t) || Ys(t) !== "object")
|
|
272
272
|
return !1;
|
|
@@ -307,28 +307,28 @@ const Ze = (t, e) => t.indexOf(e) >= 0, kt = (t, e) => t.concat(e), ot = (t, e,
|
|
|
307
307
|
let e;
|
|
308
308
|
const o = t ? ao : An, n = t ? uo : kn;
|
|
309
309
|
return [(s) => {
|
|
310
|
-
n(e), e = o(s,
|
|
310
|
+
n(e), e = o(s, Ht(t) ? t() : t);
|
|
311
311
|
}, () => n(e)];
|
|
312
312
|
}, Yn = (t, e) => {
|
|
313
313
|
let o, n, s, r = Et;
|
|
314
|
-
const { v: l, p: c, S: a } = e || {}, u = function(
|
|
315
|
-
r(), uo(o), o = n = void 0, r = Et, t.apply(this,
|
|
314
|
+
const { v: l, p: c, S: a } = e || {}, u = function(O) {
|
|
315
|
+
r(), uo(o), o = n = void 0, r = Et, t.apply(this, O);
|
|
316
316
|
}, i = (w) => a && n ? a(n, w) : w, d = () => {
|
|
317
317
|
r !== Et && u(i(s) || s);
|
|
318
318
|
}, f = function() {
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
321
|
-
const E =
|
|
319
|
+
const O = Kt(arguments), g = Ht(l) ? l() : l;
|
|
320
|
+
if (Mt(g) && g >= 0) {
|
|
321
|
+
const E = Ht(c) ? c() : c, b = Mt(E) && E >= 0, m = g > 0 ? ao : An, S = g > 0 ? uo : kn, M = i(O) || O, D = u.bind(0, M);
|
|
322
322
|
r();
|
|
323
323
|
const _ = m(D, g);
|
|
324
|
-
r = () => S(_),
|
|
324
|
+
r = () => S(_), b && !o && (o = ao(d, E)), n = s = M;
|
|
325
325
|
} else
|
|
326
|
-
u(
|
|
326
|
+
u(O);
|
|
327
327
|
};
|
|
328
328
|
return f.m = d, f;
|
|
329
329
|
}, Zn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), At = (t) => t ? Object.keys(t) : [], Y = (t, e, o, n, s, r, l) => {
|
|
330
330
|
const c = [e, o, n, s, r, l];
|
|
331
|
-
return (typeof t != "object" || Ue(t)) && !
|
|
331
|
+
return (typeof t != "object" || Ue(t)) && !Ht(t) && (t = {}), Z(c, (a) => {
|
|
332
332
|
Z(a, (u, i) => {
|
|
333
333
|
const d = a[i];
|
|
334
334
|
if (t === d)
|
|
@@ -336,26 +336,26 @@ const Ze = (t, e) => t.indexOf(e) >= 0, kt = (t, e) => t.concat(e), ot = (t, e,
|
|
|
336
336
|
const f = Tt(d);
|
|
337
337
|
if (d && De(d)) {
|
|
338
338
|
const w = t[i];
|
|
339
|
-
let
|
|
340
|
-
f && !Tt(w) ?
|
|
339
|
+
let O = w;
|
|
340
|
+
f && !Tt(w) ? O = [] : !f && !De(w) && (O = {}), t[i] = Y(O, d);
|
|
341
341
|
} else
|
|
342
342
|
t[i] = f ? d.slice() : d;
|
|
343
343
|
});
|
|
344
344
|
}), t;
|
|
345
345
|
}, qn = (t, e) => Z(Y({}, t), (o, n, s) => {
|
|
346
346
|
o === void 0 ? delete s[n] : o && De(o) && (s[n] = qn(o));
|
|
347
|
-
}),
|
|
347
|
+
}), Mo = (t) => {
|
|
348
348
|
for (const e in t)
|
|
349
349
|
return !1;
|
|
350
350
|
return !0;
|
|
351
|
-
}, ho = (t, e, o) =>
|
|
351
|
+
}, ho = (t, e, o) => He(t, Fs(e, o)), Yt = (t) => Kt(new Set((Tt(t) ? t : (t || "").split(" ")).filter((e) => e))), Qe = (t, e) => t && t.getAttribute(e), Ct = (t, e, o) => {
|
|
352
352
|
Z(Yt(e), (n) => {
|
|
353
353
|
t && t.setAttribute(n, o || "");
|
|
354
354
|
});
|
|
355
355
|
}, It = (t, e) => {
|
|
356
356
|
Z(Yt(e), (o) => t && t.removeAttribute(o));
|
|
357
357
|
}, Ke = (t, e) => {
|
|
358
|
-
const o = Yt(Qe(t, e)), n = W(
|
|
358
|
+
const o = Yt(Qe(t, e)), n = W(Ct, t, e), s = (r, l) => {
|
|
359
359
|
const c = new Set(o);
|
|
360
360
|
return Z(Yt(r), (a) => c[l](a)), Kt(c).join(" ");
|
|
361
361
|
};
|
|
@@ -371,9 +371,9 @@ const Ze = (t, e) => t.indexOf(e) >= 0, kt = (t, e) => t.concat(e), ot = (t, e,
|
|
|
371
371
|
Ke(t, e).O(o);
|
|
372
372
|
}, we = (t, e, o) => (Ke(t, e).$(o), W(Gn, t, e, o)), ke = (t, e, o, n) => {
|
|
373
373
|
(n ? we : Gn)(t, e, o);
|
|
374
|
-
}, qs = (t, e, o) => Ke(t, e).C(o), Qn = (t) => Ke(t, "class"),
|
|
374
|
+
}, qs = (t, e, o) => Ke(t, e).C(o), Qn = (t) => Ke(t, "class"), Ho = (t, e) => {
|
|
375
375
|
Qn(t).O(e);
|
|
376
|
-
}, We = (t, e) => (Qn(t).$(e), W(
|
|
376
|
+
}, We = (t, e) => (Qn(t).$(e), W(Ho, t, e)), jo = Io && Element.prototype, Kn = (t, e) => {
|
|
377
377
|
const o = [], n = e ? Ye(e) && e : document;
|
|
378
378
|
return n ? ot(o, n.querySelectorAll(t)) : o;
|
|
379
379
|
}, Gs = (t, e) => {
|
|
@@ -399,7 +399,7 @@ const Ze = (t, e) => t.indexOf(e) >= 0, kt = (t, e) => t.concat(e), ot = (t, e,
|
|
|
399
399
|
return Et;
|
|
400
400
|
}, yt = (t, e) => Jn(t, null, e), Xo = (t, e) => Jn(ae(t), t && t.nextSibling, e), ne = (t) => {
|
|
401
401
|
const e = document.createElement("div");
|
|
402
|
-
return
|
|
402
|
+
return Ct(e, "class", t), e;
|
|
403
403
|
}, ts = (t) => {
|
|
404
404
|
const e = ne();
|
|
405
405
|
return e.innerHTML = t.trim(), Z(mo(e), (o) => Nt(o));
|
|
@@ -410,7 +410,7 @@ const Ze = (t, e) => t.indexOf(e) >= 0, kt = (t, e) => t.concat(e), ot = (t, e,
|
|
|
410
410
|
function ue(t, e) {
|
|
411
411
|
t && Z(e, (o, n) => {
|
|
412
412
|
try {
|
|
413
|
-
const s = t.style, r =
|
|
413
|
+
const s = t.style, r = Mt(o) ? go(o) : (o || "") + "";
|
|
414
414
|
Ks.test(n) ? s.setProperty(n, r) : s[n] = r;
|
|
415
415
|
} catch {
|
|
416
416
|
}
|
|
@@ -474,11 +474,11 @@ const _t = (t) => Gt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
|
474
474
|
y: e.top + bt.scrollY
|
|
475
475
|
} : er;
|
|
476
476
|
}, _e = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t, Ko = (t, e) => [_e(0, t, e), _e(t, t, e)], Jo = (t, e, o) => ho(0, 1, _e(t, e, o) / e || 0), Ft = (t, e) => {
|
|
477
|
-
const { x: o, y: n } =
|
|
477
|
+
const { x: o, y: n } = Mt(e) ? {
|
|
478
478
|
x: e,
|
|
479
479
|
y: e
|
|
480
480
|
} : e || {};
|
|
481
|
-
|
|
481
|
+
Mt(o) && (t.scrollLeft = o), Mt(n) && (t.scrollTop = n);
|
|
482
482
|
}, de = (t) => ({
|
|
483
483
|
x: t.scrollLeft,
|
|
484
484
|
y: t.scrollTop
|
|
@@ -499,7 +499,7 @@ const _t = (t) => Gt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
|
499
499
|
if (je(r)) {
|
|
500
500
|
const u = e.get(r) || /* @__PURE__ */ new Set();
|
|
501
501
|
return e.set(r, u), tn((i) => {
|
|
502
|
-
|
|
502
|
+
Ht(i) && u.add(i);
|
|
503
503
|
}, l), W(o, r, l);
|
|
504
504
|
}
|
|
505
505
|
zn(l) && l && o();
|
|
@@ -515,7 +515,7 @@ const _t = (t) => Gt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
|
515
515
|
};
|
|
516
516
|
return n(t || {}), [n, o, s];
|
|
517
517
|
}, en = (t) => JSON.stringify(t, (e, o) => {
|
|
518
|
-
if (
|
|
518
|
+
if (Ht(o))
|
|
519
519
|
throw 0;
|
|
520
520
|
return o;
|
|
521
521
|
}), on = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o && Zn(o, n) ? o[n] : void 0, t) : void 0, or = {
|
|
@@ -546,7 +546,7 @@ const _t = (t) => Gt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
|
546
546
|
return Z(n, (s) => {
|
|
547
547
|
const r = t[s], l = e[s];
|
|
548
548
|
if (xe(r) && xe(l))
|
|
549
|
-
Y(o[s] = {}, ns(r, l)),
|
|
549
|
+
Y(o[s] = {}, ns(r, l)), Mo(o[s]) && delete o[s];
|
|
550
550
|
else if (Zn(e, s) && l !== r) {
|
|
551
551
|
let c = !0;
|
|
552
552
|
if (Tt(r) || Tt(l))
|
|
@@ -557,7 +557,7 @@ const _t = (t) => Gt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
|
557
557
|
c && (o[s] = l);
|
|
558
558
|
}
|
|
559
559
|
}), o;
|
|
560
|
-
}, nn = (t, e, o) => (n) => [on(t, n), o || on(e, n) !== void 0],
|
|
560
|
+
}, nn = (t, e, o) => (n) => [on(t, n), o || on(e, n) !== void 0], Ce = "data-overlayscrollbars", ss = "os-environment", nr = `${ss}-scrollbar-hidden`, ro = `${Ce}-initialize`, gt = Ce, rs = `${gt}-overflow-x`, cs = `${gt}-overflow-y`, ls = "overflowVisible", sr = "scrollbarPressed", wo = "updating", rr = "body", Vt = `${Ce}-viewport`, cr = "arrange", is = "scrollbarHidden", re = ls, So = `${Ce}-padding`, lr = re, sn = `${Ce}-content`, zo = "os-size-observer", ir = `${zo}-appear`, ar = `${zo}-listener`, ur = "os-trinsic-observer", dr = "os-theme-none", vt = "os-scrollbar", fr = `${vt}-rtl`, pr = `${vt}-horizontal`, hr = `${vt}-vertical`, as = `${vt}-track`, Po = `${vt}-handle`, vr = `${vt}-visible`, mr = `${vt}-cornerless`, rn = `${vt}-interaction`, cn = `${vt}-unusable`, Co = `${vt}-auto-hide`, ln = `${Co}-hidden`, an = `${vt}-wheel`, gr = `${as}-interactive`, yr = `${Po}-interactive`, us = {}, ds = {}, br = (t) => {
|
|
561
561
|
Z(t, (e) => Z(e, (o, n) => {
|
|
562
562
|
us[n] = e[n];
|
|
563
563
|
}));
|
|
@@ -585,30 +585,30 @@ const _t = (t) => Gt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
|
585
585
|
y: c
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
|
-
},
|
|
588
|
+
}, Cr = (t, e, o, n) => {
|
|
589
589
|
const s = e.x || e.y, r = (i, d) => {
|
|
590
|
-
const f = Ne(i), w = f && s ? "hidden" : "",
|
|
591
|
-
return [d && !f ? i : "", Ne(
|
|
590
|
+
const f = Ne(i), w = f && s ? "hidden" : "", O = d && f && i.replace(`${Un}-`, "") || w;
|
|
591
|
+
return [d && !f ? i : "", Ne(O) ? "hidden" : O];
|
|
592
592
|
}, [l, c] = r(o.x, e.x), [a, u] = r(o.y, e.y);
|
|
593
593
|
return n[qe] = c && a ? c : l, n[Ge] = u && l ? u : a, ps(t, n);
|
|
594
|
-
}, Vo = "__osScrollbarsHidingPlugin",
|
|
594
|
+
}, Vo = "__osScrollbarsHidingPlugin", Or = "__osClickScrollPlugin";
|
|
595
595
|
let co;
|
|
596
596
|
const Er = () => {
|
|
597
|
-
const t = (m, S,
|
|
597
|
+
const t = (m, S, C, M) => {
|
|
598
598
|
yt(m, S);
|
|
599
|
-
const D = es(S), _ = ye(S), V = Ao(
|
|
600
|
-
return
|
|
599
|
+
const D = es(S), _ = ye(S), V = Ao(C);
|
|
600
|
+
return M && Nt(S), {
|
|
601
601
|
x: _.h - D.h + V.h,
|
|
602
602
|
y: _.w - D.w + V.w
|
|
603
603
|
};
|
|
604
604
|
}, e = (m) => {
|
|
605
605
|
let S = !1;
|
|
606
|
-
const
|
|
606
|
+
const C = We(m, nr);
|
|
607
607
|
try {
|
|
608
608
|
S = Gt(m, "scrollbar-width") === "none" || Gt(m, "display", "::-webkit-scrollbar") === "none";
|
|
609
609
|
} catch {
|
|
610
610
|
}
|
|
611
|
-
return
|
|
611
|
+
return C(), S;
|
|
612
612
|
}, o = (m, S) => {
|
|
613
613
|
ue(m, {
|
|
614
614
|
[qe]: ie,
|
|
@@ -617,22 +617,22 @@ const Er = () => {
|
|
|
617
617
|
}), Ft(m, {
|
|
618
618
|
x: 0
|
|
619
619
|
});
|
|
620
|
-
const
|
|
620
|
+
const C = so(m), M = so(S);
|
|
621
621
|
Ft(m, {
|
|
622
622
|
x: -999
|
|
623
623
|
});
|
|
624
624
|
const D = so(S);
|
|
625
625
|
return {
|
|
626
|
-
i:
|
|
627
|
-
n:
|
|
626
|
+
i: C.x === M.x,
|
|
627
|
+
n: M.x !== D.x
|
|
628
628
|
};
|
|
629
|
-
}, { body: n } = document, r = ts(`<div class="${ss}"><div></div></div>`)[0], l = r.firstChild, [c, , a] = xo(), [u, i] =
|
|
629
|
+
}, { body: n } = document, r = ts(`<div class="${ss}"><div></div></div>`)[0], l = r.firstChild, [c, , a] = xo(), [u, i] = Ot({
|
|
630
630
|
o: t(n, r, l),
|
|
631
631
|
u: Xn
|
|
632
632
|
}, W(t, n, r, l, !0)), [d] = i(), f = e(r), w = {
|
|
633
633
|
x: d.x === 0,
|
|
634
634
|
y: d.y === 0
|
|
635
|
-
},
|
|
635
|
+
}, O = {
|
|
636
636
|
elements: {
|
|
637
637
|
host: null,
|
|
638
638
|
padding: !f,
|
|
@@ -646,7 +646,7 @@ const Er = () => {
|
|
|
646
646
|
nativeScrollbarsOverlaid: !1,
|
|
647
647
|
body: null
|
|
648
648
|
}
|
|
649
|
-
}, g = Y({}, or), v = W(Y, {}, g), E = W(Y, {},
|
|
649
|
+
}, g = Y({}, or), v = W(Y, {}, g), E = W(Y, {}, O), b = {
|
|
650
650
|
P: d,
|
|
651
651
|
T: w,
|
|
652
652
|
L: f,
|
|
@@ -654,21 +654,21 @@ const Er = () => {
|
|
|
654
654
|
K: o(r, l),
|
|
655
655
|
Z: W(c, "r"),
|
|
656
656
|
G: E,
|
|
657
|
-
tt: (m) => Y(
|
|
657
|
+
tt: (m) => Y(O, m) && E(),
|
|
658
658
|
nt: v,
|
|
659
659
|
ot: (m) => Y(g, m) && v(),
|
|
660
|
-
st: Y({},
|
|
660
|
+
st: Y({}, O),
|
|
661
661
|
et: Y({}, g)
|
|
662
662
|
};
|
|
663
663
|
return It(r, "style"), Nt(r), bt.addEventListener("resize", () => {
|
|
664
664
|
let m;
|
|
665
665
|
if (!f && (!w.x || !w.y)) {
|
|
666
666
|
const S = fe(Vo);
|
|
667
|
-
m = !!(S ? S.Y() : Et)(
|
|
667
|
+
m = !!(S ? S.Y() : Et)(b, u);
|
|
668
668
|
}
|
|
669
669
|
a("r", [m]);
|
|
670
|
-
}),
|
|
671
|
-
}, wt = () => (co || (co = Er()), co), Bo = (t, e) =>
|
|
670
|
+
}), b;
|
|
671
|
+
}, wt = () => (co || (co = Er()), co), Bo = (t, e) => Ht(e) ? e.apply(0, t) : e, Tr = (t, e, o, n) => {
|
|
672
672
|
const s = Se(n) ? o : n;
|
|
673
673
|
return Bo(t, s) || e.apply(0, t);
|
|
674
674
|
}, hs = (t, e, o, n) => {
|
|
@@ -681,7 +681,7 @@ const Er = () => {
|
|
|
681
681
|
Do.set(t, e);
|
|
682
682
|
}, Lr = (t) => {
|
|
683
683
|
Do.delete(t);
|
|
684
|
-
}, vs = (t) => Do.get(t),
|
|
684
|
+
}, vs = (t) => Do.get(t), Mr = (t, e, o) => {
|
|
685
685
|
let n = !1;
|
|
686
686
|
const s = o ? /* @__PURE__ */ new WeakMap() : !1, r = () => {
|
|
687
687
|
n = !0;
|
|
@@ -694,10 +694,10 @@ const Er = () => {
|
|
|
694
694
|
Z(a, (u) => Z(u[0], (i) => {
|
|
695
695
|
const d = u[1], f = s.get(i) || [];
|
|
696
696
|
if (t.contains(i) && d) {
|
|
697
|
-
const
|
|
698
|
-
n ? (
|
|
697
|
+
const O = rt(i, d, (g) => {
|
|
698
|
+
n ? (O(), s.delete(i)) : e(g);
|
|
699
699
|
});
|
|
700
|
-
s.set(i, ot(f,
|
|
700
|
+
s.set(i, ot(f, O));
|
|
701
701
|
} else
|
|
702
702
|
xt(f), s.delete(i);
|
|
703
703
|
}));
|
|
@@ -709,26 +709,26 @@ const Er = () => {
|
|
|
709
709
|
const { ct: r, rt: l, lt: c, it: a, ut: u, ft: i } = n || {}, d = Yn(() => s && o(!0), {
|
|
710
710
|
v: 33,
|
|
711
711
|
p: 99
|
|
712
|
-
}), [f, w] =
|
|
712
|
+
}), [f, w] = Mr(t, d, c), O = r || [], g = l || [], v = kt(O, g), E = (m, S) => {
|
|
713
713
|
if (!po(S)) {
|
|
714
|
-
const
|
|
714
|
+
const C = u || Et, M = i || Et, D = [], _ = [];
|
|
715
715
|
let V = !1, L = !1;
|
|
716
716
|
if (Z(S, ($) => {
|
|
717
|
-
const { attributeName: R, target:
|
|
717
|
+
const { attributeName: R, target: H, type: h, oldValue: z, addedNodes: U, removedNodes: F } = $, k = h === "attributes", j = h === "childList", q = t === H, st = k && R, tt = st && Qe(H, R || "") || null, T = st && z !== tt, Q = Ze(g, R) && T;
|
|
718
718
|
if (e && (j || !q)) {
|
|
719
|
-
const nt = k && T,
|
|
720
|
-
Z(U, (x) => ot(D, x)), Z(F, (x) => ot(D, x)), L = L ||
|
|
719
|
+
const nt = k && T, lt = nt && a && vo(H, a), y = (lt ? !C(H, R, z, tt) : !k || nt) && !M($, !!lt, t, n);
|
|
720
|
+
Z(U, (x) => ot(D, x)), Z(F, (x) => ot(D, x)), L = L || y;
|
|
721
721
|
}
|
|
722
|
-
!e && q && T && !
|
|
723
|
-
}), w(($) => Uo(D).reduce((R,
|
|
722
|
+
!e && q && T && !C(H, R, z, tt) && (ot(_, R), V = V || Q);
|
|
723
|
+
}), w(($) => Uo(D).reduce((R, H) => (ot(R, Kn($, H)), vo(H, $) ? ot(R, H) : R), [])), e)
|
|
724
724
|
return !m && L && o(!1), [!1];
|
|
725
725
|
if (!po(_) || V) {
|
|
726
726
|
const $ = [Uo(_), V];
|
|
727
727
|
return !m && o.apply(0, $), $;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
},
|
|
731
|
-
return [() => (
|
|
730
|
+
}, b = new Us(W(E, !1));
|
|
731
|
+
return [() => (b.observe(t, {
|
|
732
732
|
attributes: !0,
|
|
733
733
|
attributeOldValue: !0,
|
|
734
734
|
attributeFilter: v,
|
|
@@ -736,61 +736,61 @@ const Er = () => {
|
|
|
736
736
|
childList: e,
|
|
737
737
|
characterData: e
|
|
738
738
|
}), s = !0, () => {
|
|
739
|
-
s && (f(),
|
|
739
|
+
s && (f(), b.disconnect(), s = !1);
|
|
740
740
|
}), () => {
|
|
741
741
|
if (s)
|
|
742
|
-
return d.m(), E(!0,
|
|
742
|
+
return d.m(), E(!0, b.takeRecords());
|
|
743
743
|
}];
|
|
744
744
|
}, ms = (t, e, o) => {
|
|
745
|
-
const { _t: s, dt: r } = o || {}, l = fe(wr), { K: c } = wt(), a = W(_t, t), [u] =
|
|
745
|
+
const { _t: s, dt: r } = o || {}, l = fe(wr), { K: c } = wt(), a = W(_t, t), [u] = Ot({
|
|
746
746
|
o: !1,
|
|
747
747
|
_: !0
|
|
748
748
|
});
|
|
749
749
|
return () => {
|
|
750
|
-
const i = [], f = ts(`<div class="${zo}"><div class="${ar}"></div></div>`)[0], w = f.firstChild,
|
|
750
|
+
const i = [], f = ts(`<div class="${zo}"><div class="${ar}"></div></div>`)[0], w = f.firstChild, O = (g) => {
|
|
751
751
|
const v = g instanceof ResizeObserverEntry, E = !v && Tt(g);
|
|
752
|
-
let
|
|
752
|
+
let b = !1, m = !1, S = !0;
|
|
753
753
|
if (v) {
|
|
754
|
-
const [
|
|
755
|
-
m = !
|
|
754
|
+
const [C, , M] = u(g.contentRect), D = bo(C), _ = os(C, M);
|
|
755
|
+
m = !M || _, b = !m && !D, S = !b;
|
|
756
756
|
} else E ? [, S] = g : m = g === !0;
|
|
757
757
|
if (s && S) {
|
|
758
|
-
const
|
|
758
|
+
const C = E ? g[0] : _t(f);
|
|
759
759
|
Ft(f, {
|
|
760
|
-
x: _e(3333333, 3333333,
|
|
760
|
+
x: _e(3333333, 3333333, C && c),
|
|
761
761
|
y: 3333333
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
|
|
764
|
+
b || e({
|
|
765
765
|
vt: E ? g : void 0,
|
|
766
766
|
ht: !E,
|
|
767
767
|
dt: m
|
|
768
768
|
});
|
|
769
769
|
};
|
|
770
770
|
if (Be) {
|
|
771
|
-
const g = new Be((v) =>
|
|
771
|
+
const g = new Be((v) => O(v.pop()));
|
|
772
772
|
g.observe(w), ot(i, () => {
|
|
773
773
|
g.disconnect();
|
|
774
774
|
});
|
|
775
775
|
} else if (l) {
|
|
776
|
-
const [g, v] = l(w,
|
|
776
|
+
const [g, v] = l(w, O, r);
|
|
777
777
|
ot(i, kt([We(f, ir), rt(f, "animationstart", g)], v));
|
|
778
778
|
} else
|
|
779
779
|
return Et;
|
|
780
780
|
if (s) {
|
|
781
|
-
const [g] =
|
|
781
|
+
const [g] = Ot({
|
|
782
782
|
o: void 0
|
|
783
783
|
}, a);
|
|
784
784
|
ot(i, rt(f, "scroll", (v) => {
|
|
785
|
-
const E = g(), [
|
|
786
|
-
m && (
|
|
785
|
+
const E = g(), [b, m, S] = E;
|
|
786
|
+
m && (Ho(w, "ltr rtl"), We(w, b ? "rtl" : "ltr"), O([!!b, m, S])), Ro(v);
|
|
787
787
|
}));
|
|
788
788
|
}
|
|
789
789
|
return W(xt, ot(i, yt(t, f)));
|
|
790
790
|
};
|
|
791
|
-
},
|
|
791
|
+
}, Hr = (t, e) => {
|
|
792
792
|
let o;
|
|
793
|
-
const n = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = ne(ur), [r] =
|
|
793
|
+
const n = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = ne(ur), [r] = Ot({
|
|
794
794
|
o: !1
|
|
795
795
|
}), l = (a, u) => {
|
|
796
796
|
if (a) {
|
|
@@ -817,176 +817,176 @@ const Er = () => {
|
|
|
817
817
|
}, () => o && c(!0, o.takeRecords())];
|
|
818
818
|
}, kr = (t, e, o, n) => {
|
|
819
819
|
let s, r, l, c, a, u;
|
|
820
|
-
const { L: i } = wt(), d = `[${gt}]`, f = `[${Vt}]`, w = ["tabindex"],
|
|
820
|
+
const { L: i } = wt(), d = `[${gt}]`, f = `[${Vt}]`, w = ["tabindex"], O = ["wrap", "cols", "rows"], g = ["id", "class", "style", "open"], { gt: v, bt: E, D: b, wt: m, St: S, V: C, yt: M, Ot: D } = t, _ = {
|
|
821
821
|
$t: !1,
|
|
822
822
|
N: _t(v)
|
|
823
|
-
}, V = wt(), L = fe(Vo), [$] =
|
|
823
|
+
}, V = wt(), L = fe(Vo), [$] = Ot({
|
|
824
824
|
u: jn,
|
|
825
825
|
o: {
|
|
826
826
|
w: 0,
|
|
827
827
|
h: 0
|
|
828
828
|
}
|
|
829
829
|
}, () => {
|
|
830
|
-
const p = L && L.M(t, e, _, V, o).W,
|
|
831
|
-
D(re),
|
|
832
|
-
const A = x && p && p()[0], P = yo(m), B = yo(
|
|
833
|
-
return D(re,
|
|
830
|
+
const p = L && L.M(t, e, _, V, o).W, y = M(re), x = !C && M(cr), I = x && de(b);
|
|
831
|
+
D(re), C && D(wo, !0);
|
|
832
|
+
const A = x && p && p()[0], P = yo(m), B = yo(b), N = Ao(b);
|
|
833
|
+
return D(re, y), C && D(wo), A && A(), Ft(b, I), {
|
|
834
834
|
w: B.w + P.w + N.w,
|
|
835
835
|
h: B.h + P.h + N.h
|
|
836
836
|
};
|
|
837
|
-
}), R = S ?
|
|
837
|
+
}), R = S ? O : kt(g, O), H = Yn(n, {
|
|
838
838
|
v: () => s,
|
|
839
839
|
p: () => r,
|
|
840
|
-
S(p,
|
|
841
|
-
const [x] = p, [I] =
|
|
840
|
+
S(p, y) {
|
|
841
|
+
const [x] = p, [I] = y;
|
|
842
842
|
return [kt(At(x), At(I)).reduce((A, P) => (A[P] = x[P] || I[P], A), {})];
|
|
843
843
|
}
|
|
844
844
|
}), h = (p) => {
|
|
845
|
-
if (
|
|
846
|
-
const
|
|
845
|
+
if (C) {
|
|
846
|
+
const y = _t(v);
|
|
847
847
|
Y(p, {
|
|
848
|
-
Ct: u !==
|
|
848
|
+
Ct: u !== y
|
|
849
849
|
}), Y(_, {
|
|
850
|
-
N:
|
|
851
|
-
}), u =
|
|
850
|
+
N: y
|
|
851
|
+
}), u = y;
|
|
852
852
|
}
|
|
853
853
|
}, z = (p) => {
|
|
854
|
-
Z(p || w, (
|
|
855
|
-
if (Ze(w,
|
|
856
|
-
const x = Qe(E,
|
|
857
|
-
je(x) ?
|
|
854
|
+
Z(p || w, (y) => {
|
|
855
|
+
if (Ze(w, y)) {
|
|
856
|
+
const x = Qe(E, y);
|
|
857
|
+
je(x) ? Ct(b, y, x) : It(b, y);
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
|
-
}, U = (p,
|
|
860
|
+
}, U = (p, y) => {
|
|
861
861
|
const [x, I] = p, A = {
|
|
862
862
|
xt: I
|
|
863
863
|
};
|
|
864
864
|
return Y(_, {
|
|
865
865
|
$t: x
|
|
866
|
-
}), !
|
|
867
|
-
}, F = ({ ht: p, vt:
|
|
868
|
-
const A = !(p && !x && !
|
|
866
|
+
}), !y && n(A), A;
|
|
867
|
+
}, F = ({ ht: p, vt: y, dt: x }) => {
|
|
868
|
+
const A = !(p && !x && !y) && i ? H : n, [P, B] = y || [], N = {
|
|
869
869
|
ht: p || x,
|
|
870
870
|
dt: x,
|
|
871
871
|
Ct: B
|
|
872
872
|
};
|
|
873
|
-
h(N),
|
|
873
|
+
h(N), y && Y(_, {
|
|
874
874
|
N: P
|
|
875
875
|
}), A(N);
|
|
876
|
-
}, k = (p,
|
|
876
|
+
}, k = (p, y) => {
|
|
877
877
|
const [, x] = $(), I = {
|
|
878
878
|
Ht: x
|
|
879
879
|
};
|
|
880
|
-
return h(I), x && !
|
|
881
|
-
}, j = (p,
|
|
880
|
+
return h(I), x && !y && (p ? n : H)(I), I;
|
|
881
|
+
}, j = (p, y, x) => {
|
|
882
882
|
const I = {
|
|
883
|
-
It:
|
|
883
|
+
It: y
|
|
884
884
|
};
|
|
885
|
-
return h(I),
|
|
886
|
-
}, { Z: q } = V, [st, tt] = m ?
|
|
885
|
+
return h(I), y && !x ? H(I) : C || z(p), I;
|
|
886
|
+
}, { Z: q } = V, [st, tt] = m ? Hr(E, U) : [], T = !C && ms(E, F, {
|
|
887
887
|
dt: !0,
|
|
888
888
|
_t: !0
|
|
889
889
|
}), [Q, nt] = un(E, !1, j, {
|
|
890
890
|
rt: g,
|
|
891
891
|
ct: kt(g, w)
|
|
892
|
-
}),
|
|
893
|
-
const
|
|
892
|
+
}), lt = C && Be && new Be((p) => {
|
|
893
|
+
const y = p[p.length - 1].contentRect;
|
|
894
894
|
F({
|
|
895
895
|
ht: !0,
|
|
896
|
-
dt: os(
|
|
897
|
-
}), a =
|
|
896
|
+
dt: os(y, a)
|
|
897
|
+
}), a = y;
|
|
898
898
|
});
|
|
899
899
|
return [() => {
|
|
900
|
-
z(),
|
|
901
|
-
const p = T && T(),
|
|
900
|
+
z(), lt && lt.observe(E);
|
|
901
|
+
const p = T && T(), y = st && st(), x = Q(), I = q((A) => {
|
|
902
902
|
const [, P] = $();
|
|
903
|
-
|
|
903
|
+
H({
|
|
904
904
|
zt: A,
|
|
905
905
|
Ht: P
|
|
906
906
|
});
|
|
907
907
|
});
|
|
908
908
|
return () => {
|
|
909
|
-
|
|
909
|
+
lt && lt.disconnect(), p && p(), y && y(), c && c(), x(), I();
|
|
910
910
|
};
|
|
911
|
-
}, ({ Et: p, At:
|
|
912
|
-
const I = {}, [A] = p("update.ignoreMutation"), [P, B] = p("update.attributes"), [N, G] = p("update.elementEvents"), [at, dt] = p("update.debounce"), et = G || B, ut =
|
|
911
|
+
}, ({ Et: p, At: y, Tt: x }) => {
|
|
912
|
+
const I = {}, [A] = p("update.ignoreMutation"), [P, B] = p("update.attributes"), [N, G] = p("update.elementEvents"), [at, dt] = p("update.debounce"), et = G || B, ut = y || x, Ut = (X) => Ht(A) && A(X);
|
|
913
913
|
if (et) {
|
|
914
914
|
l && l(), c && c();
|
|
915
|
-
const [X,
|
|
915
|
+
const [X, it] = un(m || b, !0, k, {
|
|
916
916
|
ct: kt(R, P || []),
|
|
917
917
|
lt: N,
|
|
918
918
|
it: d,
|
|
919
919
|
ft: (ft, pt) => {
|
|
920
920
|
const { target: ct, attributeName: mt } = ft;
|
|
921
|
-
return (!pt && mt && !
|
|
921
|
+
return (!pt && mt && !C ? Qs(ct, d, f) : !1) || !!oe(ct, `.${vt}`) || !!Ut(ft);
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
|
-
c = X(), l =
|
|
924
|
+
c = X(), l = it;
|
|
925
925
|
}
|
|
926
926
|
if (dt)
|
|
927
|
-
if (
|
|
928
|
-
const X = at[0],
|
|
929
|
-
s =
|
|
930
|
-
} else
|
|
927
|
+
if (H.m(), Tt(at)) {
|
|
928
|
+
const X = at[0], it = at[1];
|
|
929
|
+
s = Mt(X) && X, r = Mt(it) && it;
|
|
930
|
+
} else Mt(at) ? (s = at, r = !1) : (s = !1, r = !1);
|
|
931
931
|
if (ut) {
|
|
932
|
-
const X = nt(),
|
|
933
|
-
X && Y(I, j(X[0], X[1], ut)),
|
|
932
|
+
const X = nt(), it = tt && tt(), ft = l && l();
|
|
933
|
+
X && Y(I, j(X[0], X[1], ut)), it && Y(I, U(it[0], ut)), ft && Y(I, k(ft[0], ut));
|
|
934
934
|
}
|
|
935
935
|
return h(I), I;
|
|
936
936
|
}, _];
|
|
937
937
|
}, Ar = (t, e, o, n) => {
|
|
938
|
-
const { G: s, K: r } = wt(), { scrollbars: l } = s(), { slot: c } = l, { gt: a, bt: u, D: i, Dt: d, kt: f, Rt: w, V:
|
|
938
|
+
const { G: s, K: r } = wt(), { scrollbars: l } = s(), { slot: c } = l, { gt: a, bt: u, D: i, Dt: d, kt: f, Rt: w, V: O } = e, { scrollbars: g } = d ? {} : t, { slot: v } = g || {}, E = /* @__PURE__ */ new Map(), b = (p) => fo && new fo({
|
|
939
939
|
source: f,
|
|
940
940
|
axis: p
|
|
941
|
-
}), m =
|
|
942
|
-
if (
|
|
943
|
-
const N = p ? ce : le, { Mt: G, Vt: at } =
|
|
941
|
+
}), m = b("x"), S = b("y"), C = hs([a, u, i], () => O && w ? a : u, c, v), M = (p, y) => {
|
|
942
|
+
if (y) {
|
|
943
|
+
const N = p ? ce : le, { Mt: G, Vt: at } = y, dt = se(at)[N], et = se(G)[N];
|
|
944
944
|
return ho(0, 1, dt / et || 0);
|
|
945
945
|
}
|
|
946
946
|
const x = p ? "x" : "y", { Lt: I, Pt: A } = o, P = A[x], B = I[x];
|
|
947
947
|
return ho(0, 1, P / (P + B) || 0);
|
|
948
|
-
}, D = (p,
|
|
949
|
-
const A =
|
|
950
|
-
return 1 / A * (1 - A) * (I ? 1 -
|
|
951
|
-
}, _ = (p,
|
|
948
|
+
}, D = (p, y, x, I) => {
|
|
949
|
+
const A = M(x, p);
|
|
950
|
+
return 1 / A * (1 - A) * (I ? 1 - y : y) || 0;
|
|
951
|
+
}, _ = (p, y) => Y(p, y ? {
|
|
952
952
|
clear: ["left"]
|
|
953
953
|
} : {}), V = (p) => {
|
|
954
|
-
E.forEach((
|
|
955
|
-
(p ? Ze(Pn(p), x) : !0) && (Z(
|
|
954
|
+
E.forEach((y, x) => {
|
|
955
|
+
(p ? Ze(Pn(p), x) : !0) && (Z(y || [], (A) => {
|
|
956
956
|
A && A.cancel();
|
|
957
957
|
}), E.delete(x));
|
|
958
958
|
});
|
|
959
|
-
}, L = (p,
|
|
960
|
-
const A = E.get(p) || [], P = A.find((B) => B && B.timeline ===
|
|
959
|
+
}, L = (p, y, x, I) => {
|
|
960
|
+
const A = E.get(p) || [], P = A.find((B) => B && B.timeline === y);
|
|
961
961
|
P ? P.effect = new KeyframeEffect(p, x, {
|
|
962
962
|
composite: I
|
|
963
963
|
}) : E.set(p, kt(A, [p.animate(x, {
|
|
964
|
-
timeline:
|
|
964
|
+
timeline: y,
|
|
965
965
|
composite: I
|
|
966
966
|
})]));
|
|
967
|
-
}, $ = (p,
|
|
968
|
-
const I = x ? We :
|
|
967
|
+
}, $ = (p, y, x) => {
|
|
968
|
+
const I = x ? We : Ho;
|
|
969
969
|
Z(p, (A) => {
|
|
970
|
-
I(A.Ut,
|
|
970
|
+
I(A.Ut, y);
|
|
971
971
|
});
|
|
972
|
-
}, R = (p,
|
|
972
|
+
}, R = (p, y) => {
|
|
973
973
|
Z(p, (x) => {
|
|
974
|
-
const [I, A] =
|
|
974
|
+
const [I, A] = y(x);
|
|
975
975
|
ue(I, A);
|
|
976
976
|
});
|
|
977
|
-
},
|
|
977
|
+
}, H = (p, y) => {
|
|
978
978
|
R(p, (x) => {
|
|
979
979
|
const { Vt: I } = x;
|
|
980
980
|
return [I, {
|
|
981
|
-
[
|
|
981
|
+
[y ? ce : le]: Zo(M(y))
|
|
982
982
|
}];
|
|
983
983
|
});
|
|
984
|
-
}, h = (p,
|
|
985
|
-
const { Lt: x } = o, I =
|
|
984
|
+
}, h = (p, y) => {
|
|
985
|
+
const { Lt: x } = o, I = y ? x.x : x.y, A = (P, B, N) => no(Zo(D(P, Jo(B, I, N), y, N)), y);
|
|
986
986
|
if (m && S)
|
|
987
987
|
Z(p, (P) => {
|
|
988
|
-
const { Ut: B, Vt: N } = P, G =
|
|
989
|
-
L(N,
|
|
988
|
+
const { Ut: B, Vt: N } = P, G = y && _t(B) && r;
|
|
989
|
+
L(N, y ? m : S, _({
|
|
990
990
|
transform: Ko(I, G).map((at) => A(P, at, G))
|
|
991
991
|
}, G));
|
|
992
992
|
});
|
|
@@ -995,27 +995,27 @@ const Er = () => {
|
|
|
995
995
|
R(p, (B) => {
|
|
996
996
|
const { Vt: N, Ut: G } = B;
|
|
997
997
|
return [N, {
|
|
998
|
-
transform: A(B,
|
|
998
|
+
transform: A(B, y ? P.x : P.y, y && _t(G) && r)
|
|
999
999
|
}];
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
|
-
}, z = (p) =>
|
|
1002
|
+
}, z = (p) => O && !w && ae(p) === i, U = [], F = [], k = [], j = (p, y, x) => {
|
|
1003
1003
|
const I = zn(x), A = I ? x : !0, P = I ? !x : !0;
|
|
1004
|
-
A && $(F, p,
|
|
1004
|
+
A && $(F, p, y), P && $(k, p, y);
|
|
1005
1005
|
}, q = () => {
|
|
1006
|
-
|
|
1006
|
+
H(F, !0), H(k);
|
|
1007
1007
|
}, st = () => {
|
|
1008
1008
|
h(F, !0), h(k);
|
|
1009
1009
|
}, tt = () => {
|
|
1010
|
-
if (
|
|
1011
|
-
const { Lt: p } = o,
|
|
1010
|
+
if (O) {
|
|
1011
|
+
const { Lt: p } = o, y = 0.5;
|
|
1012
1012
|
if (m && S)
|
|
1013
1013
|
Z(kt(k, F), ({ Ut: x }) => {
|
|
1014
1014
|
if (z(x)) {
|
|
1015
1015
|
const I = (A, P, B) => {
|
|
1016
1016
|
const N = B && _t(x) && r;
|
|
1017
1017
|
L(x, A, _({
|
|
1018
|
-
transform: Ko(P -
|
|
1018
|
+
transform: Ko(P - y, N).map((G) => no(go(G), B))
|
|
1019
1019
|
}, N), "add");
|
|
1020
1020
|
};
|
|
1021
1021
|
I(m, p.x, !0), I(S, p.y);
|
|
@@ -1045,7 +1045,7 @@ const Er = () => {
|
|
|
1045
1045
|
Vt: A
|
|
1046
1046
|
};
|
|
1047
1047
|
return ot(p ? F : k, P), ot(U, [yt(x, I), yt(I, A), W(Nt, x), V, n(P, j, h, p)]), P;
|
|
1048
|
-
}, Q = W(T, !0), nt = W(T, !1),
|
|
1048
|
+
}, Q = W(T, !0), nt = W(T, !1), lt = () => (yt(C, F[0].Ut), yt(C, k[0].Ut), W(xt, U));
|
|
1049
1049
|
return Q(), nt(), [{
|
|
1050
1050
|
Bt: q,
|
|
1051
1051
|
Nt: st,
|
|
@@ -1063,32 +1063,32 @@ const Er = () => {
|
|
|
1063
1063
|
Xt: nt,
|
|
1064
1064
|
Yt: W(R, k)
|
|
1065
1065
|
}
|
|
1066
|
-
},
|
|
1066
|
+
}, lt];
|
|
1067
1067
|
}, Rr = (t, e, o) => {
|
|
1068
1068
|
const { bt: n, kt: s, Kt: r } = e;
|
|
1069
1069
|
return (l, c, a, u) => {
|
|
1070
|
-
const { Ut: i, Mt: d, Vt: f } = l, [w,
|
|
1071
|
-
const $ = "pointerup pointerleave pointercancel lostpointercapture", R = (
|
|
1072
|
-
const { Lt: U } = o, F = ye(d)[
|
|
1070
|
+
const { Ut: i, Mt: d, Vt: f } = l, [w, O] = Pt(333), [g, v] = Pt(), E = W(a, [l], u), b = !!s.scrollBy, m = `client${u ? "X" : "Y"}`, S = u ? ce : le, C = u ? "left" : "top", M = u ? "w" : "h", D = u ? "x" : "y", _ = ($) => $.propertyName.indexOf(S) > -1, V = () => {
|
|
1071
|
+
const $ = "pointerup pointerleave pointercancel lostpointercapture", R = (H, h) => (z) => {
|
|
1072
|
+
const { Lt: U } = o, F = ye(d)[M] - ye(f)[M], j = h * z / F * U[D];
|
|
1073
1073
|
Ft(s, {
|
|
1074
|
-
[D]:
|
|
1074
|
+
[D]: H + j
|
|
1075
1075
|
});
|
|
1076
1076
|
};
|
|
1077
|
-
return rt(d, "pointerdown", (
|
|
1078
|
-
const h = oe(
|
|
1077
|
+
return rt(d, "pointerdown", (H) => {
|
|
1078
|
+
const h = oe(H.target, `.${Po}`) === f, z = h ? f : d, U = t.scrollbars, { button: F, isPrimary: k, pointerType: j } = H, { pointers: q } = U;
|
|
1079
1079
|
if (F === 0 && k && U[h ? "dragScroll" : "clickScroll"] && (q || []).includes(j)) {
|
|
1080
|
-
const tt = !h &&
|
|
1080
|
+
const tt = !h && H.shiftKey, T = W(se, f), Q = W(se, d), nt = (et, ut) => (et || T())[C] - (ut || Q())[C], lt = io(se(s)[S]) / ye(s)[M] || 1, p = R(de(s)[D] || 0, 1 / lt), y = H[m], x = T(), I = Q(), A = x[S], P = nt(x, I) + A / 2, B = y - I[C], N = h ? 0 : B - P, G = (et) => {
|
|
1081
1081
|
xt(dt), z.releasePointerCapture(et.pointerId);
|
|
1082
1082
|
}, dt = [we(n, gt, sr), rt(r, $, G), rt(r, "selectstart", (et) => Qo(et), {
|
|
1083
1083
|
H: !1
|
|
1084
1084
|
}), rt(d, $, G), rt(d, "pointermove", (et) => {
|
|
1085
|
-
const ut = et[m] -
|
|
1085
|
+
const ut = et[m] - y;
|
|
1086
1086
|
(h || tt) && p(N + ut);
|
|
1087
1087
|
})];
|
|
1088
|
-
if (z.setPointerCapture(
|
|
1088
|
+
if (z.setPointerCapture(H.pointerId), tt)
|
|
1089
1089
|
p(N);
|
|
1090
1090
|
else if (!h) {
|
|
1091
|
-
const et = fe(
|
|
1091
|
+
const et = fe(Or);
|
|
1092
1092
|
et && ot(dt, et(p, nt, N, A, B));
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
@@ -1100,10 +1100,10 @@ const Er = () => {
|
|
|
1100
1100
|
}), rt(i, "pointerleave pointercancel", () => {
|
|
1101
1101
|
c(rn, !1);
|
|
1102
1102
|
}), rt(i, "wheel", ($) => {
|
|
1103
|
-
const { deltaX: R, deltaY:
|
|
1104
|
-
|
|
1103
|
+
const { deltaX: R, deltaY: H, deltaMode: h } = $;
|
|
1104
|
+
b && L && h === 0 && ae(i) === n && s.scrollBy({
|
|
1105
1105
|
left: R,
|
|
1106
|
-
top:
|
|
1106
|
+
top: H,
|
|
1107
1107
|
behavior: "smooth"
|
|
1108
1108
|
}), L = !1, c(an, !0), w(() => {
|
|
1109
1109
|
L = !0, c(an);
|
|
@@ -1125,12 +1125,12 @@ const Er = () => {
|
|
|
1125
1125
|
I: !0
|
|
1126
1126
|
}), {
|
|
1127
1127
|
I: !0
|
|
1128
|
-
}), V(),
|
|
1128
|
+
}), V(), O, v]);
|
|
1129
1129
|
};
|
|
1130
1130
|
}, zr = (t, e, o, n, s, r) => {
|
|
1131
1131
|
let l, c, a, u, i, d = Et, f = 0;
|
|
1132
|
-
const [w,
|
|
1133
|
-
h(
|
|
1132
|
+
const [w, O] = Pt(), [g, v] = Pt(), [E, b] = Pt(100), [m, S] = Pt(100), [C, M] = Pt(100), [D, _] = Pt(() => f), [V, L] = Ar(t, s, n, Rr(e, s, n)), { bt: $, Zt: R, Rt: H } = s, { Ft: h, Bt: z, Nt: U, jt: F } = V, k = (T) => {
|
|
1133
|
+
h(Co, T, !0), h(Co, T, !1);
|
|
1134
1134
|
}, j = (T, Q) => {
|
|
1135
1135
|
if (_(), T)
|
|
1136
1136
|
h(ln);
|
|
@@ -1140,13 +1140,13 @@ const Er = () => {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
}, q = (T) => T.pointerType === "mouse", st = (T) => {
|
|
1142
1142
|
q(T) && (u = c, u && j(!0));
|
|
1143
|
-
}, tt = [
|
|
1143
|
+
}, tt = [b, _, S, M, v, O, () => d(), rt($, "pointerover", st, {
|
|
1144
1144
|
A: !0
|
|
1145
1145
|
}), rt($, "pointerenter", st), rt($, "pointerleave", (T) => {
|
|
1146
1146
|
q(T) && (u = !1, c && j(!1));
|
|
1147
1147
|
}), rt($, "pointermove", (T) => {
|
|
1148
1148
|
q(T) && l && w(() => {
|
|
1149
|
-
|
|
1149
|
+
b(), j(!0), m(() => {
|
|
1150
1150
|
l && j(!1);
|
|
1151
1151
|
});
|
|
1152
1152
|
});
|
|
@@ -1157,52 +1157,52 @@ const Er = () => {
|
|
|
1157
1157
|
});
|
|
1158
1158
|
}), r(T), F();
|
|
1159
1159
|
})];
|
|
1160
|
-
return [() => W(xt, ot(tt, L())), ({ Et: T, Tt: Q, Gt: nt, Qt:
|
|
1161
|
-
const { tn: p, nn:
|
|
1160
|
+
return [() => W(xt, ot(tt, L())), ({ Et: T, Tt: Q, Gt: nt, Qt: lt }) => {
|
|
1161
|
+
const { tn: p, nn: y, sn: x } = lt || {}, { Ct: I, dt: A } = nt || {}, { N: P } = o, { T: B } = wt(), { k: N, en: G } = n, [at, dt] = T("showNativeOverlaidScrollbars"), [et, ut] = T("scrollbars.theme"), [Ut, X] = T("scrollbars.visibility"), [it, ft] = T("scrollbars.autoHide"), [pt, ct] = T("scrollbars.autoHideSuspend"), [mt] = T("scrollbars.autoHideDelay"), [jt, Jt] = T("scrollbars.dragScroll"), [$t, Xt] = T("scrollbars.clickScroll"), [Rt, to] = T("overflow"), zt = A && !Q, eo = G.x || G.y, pe = p || y || I || Q, Ee = x || X || to, Te = at && B.x && B.y, he = (ve, te, Wo) => {
|
|
1162
1162
|
const _o = ve.includes("scroll") && (Ut === "visible" || Ut === "auto" && te === "scroll");
|
|
1163
1163
|
return h(vr, _o, Wo), _o;
|
|
1164
1164
|
};
|
|
1165
|
-
if (f = mt, zt && (pt && eo ? (k(!1), d(),
|
|
1165
|
+
if (f = mt, zt && (pt && eo ? (k(!1), d(), C(() => {
|
|
1166
1166
|
d = rt(R, "scroll", W(k, !0), {
|
|
1167
1167
|
A: !0
|
|
1168
1168
|
});
|
|
1169
|
-
})) : k(!0)), dt && h(dr, Te), ut && (h(i), h(et, !0), i = et), ct && !pt && k(!0), ft && (l =
|
|
1169
|
+
})) : k(!0)), dt && h(dr, Te), ut && (h(i), h(et, !0), i = et), ct && !pt && k(!0), ft && (l = it === "move", c = it === "leave", a = it !== "never", j(!a, !0)), Jt && h(yr, jt), Xt && h(gr, $t), Ee) {
|
|
1170
1170
|
const ve = he(Rt.x, N.x, !0), te = he(Rt.y, N.y, !1);
|
|
1171
1171
|
h(mr, !(ve && te));
|
|
1172
1172
|
}
|
|
1173
|
-
pe && (z(), U(), F(), h(cn, !G.x, !0), h(cn, !G.y, !1), h(fr, P && !
|
|
1173
|
+
pe && (z(), U(), F(), h(cn, !G.x, !0), h(cn, !G.y, !1), h(fr, P && !H));
|
|
1174
1174
|
}, {}, V];
|
|
1175
1175
|
}, Pr = (t) => {
|
|
1176
|
-
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding: l, viewport: c, content: a } = s, u = ge(t), i = u ? {} : t, { elements: d } = i, { host: f, padding: w, viewport:
|
|
1176
|
+
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding: l, viewport: c, content: a } = s, u = ge(t), i = u ? {} : t, { elements: d } = i, { host: f, padding: w, viewport: O, content: g } = d || {}, v = u ? t : i.target, E = vo(v, "textarea"), b = v.ownerDocument, m = b.documentElement, S = v === b.body, C = b.defaultView, M = () => b.activeElement, D = (X) => {
|
|
1177
1177
|
X && X.focus && X.focus();
|
|
1178
|
-
}, _ = W(Tr, [v]), V = W(hs, [v]), L = W(Bo, [v]), $ = W(ne, ""), R = W(_, $, c),
|
|
1178
|
+
}, _ = W(Tr, [v]), V = W(hs, [v]), L = W(Bo, [v]), $ = W(ne, ""), R = W(_, $, c), H = W(V, $, a), h = R(O), z = h === v, U = z && S, F = !z && H(g), k = !z && ge(h) && h === F, j = k && !!L(a), q = j ? R() : h, st = j ? F : H(), T = U ? m : k ? q : h, Q = E ? _($, r, f) : v, nt = U ? T : Q, lt = k ? st : F, p = {
|
|
1179
1179
|
gt: v,
|
|
1180
1180
|
bt: nt,
|
|
1181
1181
|
D: T,
|
|
1182
1182
|
cn: !z && V($, l, w),
|
|
1183
|
-
wt:
|
|
1183
|
+
wt: lt,
|
|
1184
1184
|
kt: U ? m : T,
|
|
1185
|
-
Zt: U ?
|
|
1185
|
+
Zt: U ? b : T,
|
|
1186
1186
|
rn: S ? m : v,
|
|
1187
|
-
ln:
|
|
1188
|
-
Kt:
|
|
1187
|
+
ln: C,
|
|
1188
|
+
Kt: b,
|
|
1189
1189
|
St: E,
|
|
1190
1190
|
Rt: S,
|
|
1191
1191
|
Dt: u,
|
|
1192
1192
|
V: z,
|
|
1193
1193
|
an: k,
|
|
1194
1194
|
yt: (X) => qs(T, z ? gt : Vt, X),
|
|
1195
|
-
Ot: (X,
|
|
1196
|
-
},
|
|
1197
|
-
const ft = p[
|
|
1195
|
+
Ot: (X, it) => ke(T, z ? gt : Vt, X, it)
|
|
1196
|
+
}, y = At(p).reduce((X, it) => {
|
|
1197
|
+
const ft = p[it];
|
|
1198
1198
|
return ot(X, ft && ge(ft) && !ae(ft) ? ft : !1);
|
|
1199
|
-
}, []), x = (X) => X ? Ze(
|
|
1199
|
+
}, []), x = (X) => X ? Ze(y, X) : null, { gt: I, bt: A, cn: P, D: B, wt: N } = p, G = [() => {
|
|
1200
1200
|
It(A, [gt, ro]), It(I, ro), S && It(m, [ro, gt]);
|
|
1201
1201
|
}], at = E && x(A);
|
|
1202
1202
|
let dt = E ? I : mo([N, B, P, A, I].find((X) => x(X) === !1));
|
|
1203
1203
|
const et = U ? I : N || B, ut = W(xt, G);
|
|
1204
1204
|
return [p, () => {
|
|
1205
|
-
const X =
|
|
1205
|
+
const X = M(), it = (ct) => {
|
|
1206
1206
|
yt(ae(ct), mo(ct)), Nt(ct);
|
|
1207
1207
|
}, ft = (ct) => ct ? rt(ct, "focusin focusout focus blur", (mt) => {
|
|
1208
1208
|
Ro(mt), mt.stopImmediatePropagation();
|
|
@@ -1210,15 +1210,15 @@ const Er = () => {
|
|
|
1210
1210
|
I: !0,
|
|
1211
1211
|
H: !1
|
|
1212
1212
|
}) : Et, pt = ft(X);
|
|
1213
|
-
if (
|
|
1213
|
+
if (Ct(A, gt, z ? "viewport" : "host"), Ct(P, So, ""), Ct(N, sn, ""), z || (Ct(B, Vt, ""), S && we(m, gt, rr)), at && (Xo(I, A), ot(G, () => {
|
|
1214
1214
|
Xo(A, I), Nt(A);
|
|
1215
1215
|
})), yt(et, dt), yt(A, P), yt(P || A, !z && B), yt(B, N), ot(G, [pt, () => {
|
|
1216
|
-
const ct =
|
|
1217
|
-
It(P, So), It(N, sn), It(B, [rs, cs, Vt]), x(N) &&
|
|
1218
|
-
}]), n && !z && (we(B, Vt, is), ot(G, W(It, B, Vt))), !z &&
|
|
1216
|
+
const ct = M(), mt = ft(ct);
|
|
1217
|
+
It(P, So), It(N, sn), It(B, [rs, cs, Vt]), x(N) && it(N), x(B) && it(B), x(P) && it(P), D(ct), mt();
|
|
1218
|
+
}]), n && !z && (we(B, Vt, is), ot(G, W(It, B, Vt))), !z && C.top === C && X === v) {
|
|
1219
1219
|
const ct = "tabindex", mt = Qe(B, ct);
|
|
1220
|
-
|
|
1221
|
-
const jt = () => mt ?
|
|
1220
|
+
Ct(B, ct, "-1"), D(B);
|
|
1221
|
+
const jt = () => mt ? Ct(B, ct, mt) : It(B, ct), Jt = rt(b, "pointerdown keydown", () => {
|
|
1222
1222
|
jt(), Jt();
|
|
1223
1223
|
});
|
|
1224
1224
|
ot(G, [jt, Jt]);
|
|
@@ -1232,86 +1232,86 @@ const Er = () => {
|
|
|
1232
1232
|
[le]: r && "100%"
|
|
1233
1233
|
});
|
|
1234
1234
|
}, Br = ({ bt: t, cn: e, D: o, V: n }, s) => {
|
|
1235
|
-
const [r, l] =
|
|
1235
|
+
const [r, l] = Ot({
|
|
1236
1236
|
u: Zs,
|
|
1237
1237
|
o: qo()
|
|
1238
1238
|
}, W(qo, t, "padding", ""));
|
|
1239
1239
|
return ({ Et: c, Gt: a, un: u, Tt: i }) => {
|
|
1240
1240
|
let [d, f] = l(i);
|
|
1241
|
-
const { L: w } = wt(), { ht:
|
|
1242
|
-
(
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1245
|
-
const
|
|
1246
|
-
[Nn]:
|
|
1247
|
-
[Fn]:
|
|
1248
|
-
[_n]:
|
|
1249
|
-
top:
|
|
1250
|
-
right:
|
|
1251
|
-
left:
|
|
1252
|
-
[ce]:
|
|
1241
|
+
const { L: w } = wt(), { ht: O, Ht: g, Ct: v } = a || {}, { N: E } = u, [b, m] = c("paddingAbsolute");
|
|
1242
|
+
(O || f || (i || g)) && ([d, f] = r(i));
|
|
1243
|
+
const C = !n && (m || v || f);
|
|
1244
|
+
if (C) {
|
|
1245
|
+
const M = !b || !e && !w, D = d.r + d.l, _ = d.t + d.b, V = {
|
|
1246
|
+
[Nn]: M && !E ? -D : 0,
|
|
1247
|
+
[Fn]: M ? -_ : 0,
|
|
1248
|
+
[_n]: M && E ? -D : 0,
|
|
1249
|
+
top: M ? -d.t : 0,
|
|
1250
|
+
right: M ? E ? -d.r : "auto" : 0,
|
|
1251
|
+
left: M ? E ? "auto" : -d.l : 0,
|
|
1252
|
+
[ce]: M && `calc(100% + ${D}px)`
|
|
1253
1253
|
}, L = {
|
|
1254
|
-
[Vn]:
|
|
1255
|
-
[Bn]:
|
|
1256
|
-
[Wn]:
|
|
1257
|
-
[Dn]:
|
|
1254
|
+
[Vn]: M ? d.t : 0,
|
|
1255
|
+
[Bn]: M ? d.r : 0,
|
|
1256
|
+
[Wn]: M ? d.b : 0,
|
|
1257
|
+
[Dn]: M ? d.l : 0
|
|
1258
1258
|
};
|
|
1259
1259
|
ue(e || o, V), ue(o, L), Y(s, {
|
|
1260
1260
|
cn: d,
|
|
1261
|
-
fn: !
|
|
1261
|
+
fn: !M,
|
|
1262
1262
|
j: e ? L : Y({}, V, L)
|
|
1263
1263
|
});
|
|
1264
1264
|
}
|
|
1265
1265
|
return {
|
|
1266
|
-
_n:
|
|
1266
|
+
_n: C
|
|
1267
1267
|
};
|
|
1268
1268
|
};
|
|
1269
1269
|
}, Dr = (t, e) => {
|
|
1270
|
-
const o = wt(), { bt: n, cn: s, D: r, V: l, Ot: c, Rt: a, ln: u } = t, { L: i } = o, d = a && l, f = W(
|
|
1270
|
+
const o = wt(), { bt: n, cn: s, D: r, V: l, Ot: c, Rt: a, ln: u } = t, { L: i } = o, d = a && l, f = W(He, 0), w = {
|
|
1271
1271
|
u: jn,
|
|
1272
1272
|
o: {
|
|
1273
1273
|
w: 0,
|
|
1274
1274
|
h: 0
|
|
1275
1275
|
}
|
|
1276
|
-
},
|
|
1276
|
+
}, O = {
|
|
1277
1277
|
u: Xn,
|
|
1278
1278
|
o: {
|
|
1279
1279
|
x: ie,
|
|
1280
1280
|
y: ie
|
|
1281
1281
|
}
|
|
1282
1282
|
}, g = (L, $) => {
|
|
1283
|
-
const R = bt.devicePixelRatio % 1 !== 0 ? 1 : 0,
|
|
1283
|
+
const R = bt.devicePixelRatio % 1 !== 0 ? 1 : 0, H = {
|
|
1284
1284
|
w: f(L.w - $.w),
|
|
1285
1285
|
h: f(L.h - $.h)
|
|
1286
1286
|
};
|
|
1287
1287
|
return {
|
|
1288
|
-
w:
|
|
1289
|
-
h:
|
|
1288
|
+
w: H.w > R ? H.w : 0,
|
|
1289
|
+
h: H.h > R ? H.h : 0
|
|
1290
1290
|
};
|
|
1291
|
-
}, [v, E] =
|
|
1292
|
-
return ({ Et: L, Gt: $, un: R, Tt:
|
|
1293
|
-
const { ht: z, Ht: U, Ct: F, zt: k } = $ || {}, j = V && V.M(t, e, R, o, L), { q, W: st, X: tt } = j || {}, [T, Q] = Sr(L, o), [nt,
|
|
1294
|
-
let A = E(
|
|
1291
|
+
}, [v, E] = Ot(w, W(Ao, r)), [b, m] = Ot(w, W(yo, r)), [S, C] = Ot(w), [M, D] = Ot(w), [_] = Ot(O), V = fe(Vo);
|
|
1292
|
+
return ({ Et: L, Gt: $, un: R, Tt: H }, { _n: h }) => {
|
|
1293
|
+
const { ht: z, Ht: U, Ct: F, zt: k } = $ || {}, j = V && V.M(t, e, R, o, L), { q, W: st, X: tt } = j || {}, [T, Q] = Sr(L, o), [nt, lt] = L("overflow"), p = z || h || U || F || k || Q, y = Ne(nt.x), x = Ne(nt.y), I = y || x;
|
|
1294
|
+
let A = E(H), P = m(H), B = C(H), N = D(H), G;
|
|
1295
1295
|
if (Q && i && c(is, !T), p) {
|
|
1296
1296
|
I && c(re, !1);
|
|
1297
|
-
const [$t, Xt] = st ? st(G) : [], [Rt, to] = A = v(
|
|
1297
|
+
const [$t, Xt] = st ? st(G) : [], [Rt, to] = A = v(H), [zt, eo] = P = b(H), pe = es(r), Ee = zt, Te = pe;
|
|
1298
1298
|
$t && $t(), (eo || to || Q) && Xt && !T && q && q(Xt, zt, Rt);
|
|
1299
1299
|
const he = tr(u), ve = {
|
|
1300
|
-
w: f(
|
|
1301
|
-
h: f(
|
|
1300
|
+
w: f(He(zt.w, Ee.w) + Rt.w),
|
|
1301
|
+
h: f(He(zt.h, Ee.h) + Rt.h)
|
|
1302
1302
|
}, te = {
|
|
1303
1303
|
w: f((d ? he.w : Te.w + f(pe.w - zt.w)) + Rt.w),
|
|
1304
1304
|
h: f((d ? he.h : Te.h + f(pe.h - zt.h)) + Rt.h)
|
|
1305
1305
|
};
|
|
1306
|
-
N =
|
|
1306
|
+
N = M(te), B = S(g(ve, te), H);
|
|
1307
1307
|
}
|
|
1308
|
-
const [at, dt] = N, [et, ut] = B, [Ut, X] = P, [
|
|
1308
|
+
const [at, dt] = N, [et, ut] = B, [Ut, X] = P, [it, ft] = A, pt = {
|
|
1309
1309
|
x: et.w > 0,
|
|
1310
1310
|
y: et.h > 0
|
|
1311
|
-
}, ct =
|
|
1312
|
-
if (h || F || k || ft || X || dt || ut ||
|
|
1313
|
-
const $t = {}, Xt =
|
|
1314
|
-
tt && tt(Xt, R, !!q && q(Xt, Ut,
|
|
1311
|
+
}, ct = y && x && (pt.x || pt.y) || y && pt.x && !pt.y || x && pt.y && !pt.x;
|
|
1312
|
+
if (h || F || k || ft || X || dt || ut || lt || Q || p) {
|
|
1313
|
+
const $t = {}, Xt = Cr(t, pt, nt, $t);
|
|
1314
|
+
tt && tt(Xt, R, !!q && q(Xt, Ut, it), $t), l ? (Ct(n, rs, $t[qe]), Ct(n, cs, $t[Ge])) : ue(r, $t);
|
|
1315
1315
|
}
|
|
1316
1316
|
ke(n, gt, ls, ct), ke(s, So, lr, ct), l || ke(r, Vt, re, I);
|
|
1317
1317
|
const [jt, Jt] = _(ps(t).k);
|
|
@@ -1374,35 +1374,35 @@ const Er = () => {
|
|
|
1374
1374
|
}), v(), Ft(l, g), !c && Ft(r, 0), w;
|
|
1375
1375
|
}, s, e, n];
|
|
1376
1376
|
}, _r = (t, e, o, n) => {
|
|
1377
|
-
const s = nn(e, {}), [r, l, c, a, u] = Wr(t), [i, d, f] = kr(a, c, s, (
|
|
1378
|
-
E({},
|
|
1379
|
-
}), [w,
|
|
1380
|
-
const { dn: S, Tt:
|
|
1377
|
+
const s = nn(e, {}), [r, l, c, a, u] = Wr(t), [i, d, f] = kr(a, c, s, (b) => {
|
|
1378
|
+
E({}, b);
|
|
1379
|
+
}), [w, O, , g] = zr(t, e, f, c, a, n), v = (b) => At(b).some((m) => !!b[m]), E = (b, m) => {
|
|
1380
|
+
const { dn: S, Tt: C, At: M, vn: D } = b, _ = S || {}, V = !!C, L = {
|
|
1381
1381
|
Et: nn(e, _, V),
|
|
1382
1382
|
dn: _,
|
|
1383
1383
|
Tt: V
|
|
1384
1384
|
};
|
|
1385
1385
|
if (D)
|
|
1386
|
-
return
|
|
1386
|
+
return O(L), !1;
|
|
1387
1387
|
const $ = m || d(Y({}, L, {
|
|
1388
|
-
At:
|
|
1388
|
+
At: M
|
|
1389
1389
|
})), R = l(Y({}, L, {
|
|
1390
1390
|
un: f,
|
|
1391
1391
|
Gt: $
|
|
1392
1392
|
}));
|
|
1393
|
-
|
|
1393
|
+
O(Y({}, L, {
|
|
1394
1394
|
Gt: $,
|
|
1395
1395
|
Qt: R
|
|
1396
1396
|
}));
|
|
1397
|
-
const
|
|
1398
|
-
return z && o(
|
|
1397
|
+
const H = v($), h = v(R), z = H || h || !Mo(_) || V;
|
|
1398
|
+
return z && o(b, {
|
|
1399
1399
|
Gt: $,
|
|
1400
1400
|
Qt: R
|
|
1401
1401
|
}), z;
|
|
1402
1402
|
};
|
|
1403
1403
|
return [() => {
|
|
1404
|
-
const { rn:
|
|
1405
|
-
return Ft(m, S), W(xt,
|
|
1404
|
+
const { rn: b, D: m } = a, S = de(b), C = [i(), r(), w()];
|
|
1405
|
+
return Ft(m, S), W(xt, C);
|
|
1406
1406
|
}, E, () => ({
|
|
1407
1407
|
hn: f,
|
|
1408
1408
|
pn: c
|
|
@@ -1417,11 +1417,11 @@ const Er = () => {
|
|
|
1417
1417
|
const a = [], u = {}, i = (L) => {
|
|
1418
1418
|
const $ = qn(L), R = fe(xr);
|
|
1419
1419
|
return R ? R($, !0) : $;
|
|
1420
|
-
}, d = Y({}, n(), i(e)), [f, w,
|
|
1421
|
-
E(L, $),
|
|
1422
|
-
}, [m, S,
|
|
1423
|
-
const { ht: h, Ct: z, xt: U, Ht: F, It: k, dt: j } = R, { tn: q, nn: st, sn: tt } =
|
|
1424
|
-
|
|
1420
|
+
}, d = Y({}, n(), i(e)), [f, w, O] = xo(), [g, v, E] = xo(o), b = (L, $) => {
|
|
1421
|
+
E(L, $), O(L, $);
|
|
1422
|
+
}, [m, S, C, M, D] = _r(t, d, ({ dn: L, Tt: $ }, { Gt: R, Qt: H }) => {
|
|
1423
|
+
const { ht: h, Ct: z, xt: U, Ht: F, It: k, dt: j } = R, { tn: q, nn: st, sn: tt } = H;
|
|
1424
|
+
b("updated", [V, {
|
|
1425
1425
|
updateHints: {
|
|
1426
1426
|
sizeChanged: !!h,
|
|
1427
1427
|
directionChanged: !!z,
|
|
@@ -1436,14 +1436,14 @@ const Er = () => {
|
|
|
1436
1436
|
changedOptions: L || {},
|
|
1437
1437
|
force: !!$
|
|
1438
1438
|
}]);
|
|
1439
|
-
}, (L) =>
|
|
1440
|
-
Lr(r), xt(a), c = !0,
|
|
1439
|
+
}, (L) => b("scroll", [V, L])), _ = (L) => {
|
|
1440
|
+
Lr(r), xt(a), c = !0, b("destroyed", [V, L]), w(), v();
|
|
1441
1441
|
}, V = {
|
|
1442
1442
|
options(L, $) {
|
|
1443
1443
|
if (L) {
|
|
1444
|
-
const R = $ ? n() : {},
|
|
1445
|
-
|
|
1446
|
-
dn:
|
|
1444
|
+
const R = $ ? n() : {}, H = ns(d, Y(R, i(L)));
|
|
1445
|
+
Mo(H) || (Y(d, H), S({
|
|
1446
|
+
dn: H
|
|
1447
1447
|
}));
|
|
1448
1448
|
}
|
|
1449
1449
|
return Y({}, d);
|
|
@@ -1453,9 +1453,9 @@ const Er = () => {
|
|
|
1453
1453
|
L && $ && v(L, $);
|
|
1454
1454
|
},
|
|
1455
1455
|
state() {
|
|
1456
|
-
const { hn: L, pn: $ } =
|
|
1456
|
+
const { hn: L, pn: $ } = C(), { N: R } = L, { Pt: H, Lt: h, k: z, en: U, cn: F, fn: k } = $;
|
|
1457
1457
|
return Y({}, {
|
|
1458
|
-
overflowEdge:
|
|
1458
|
+
overflowEdge: H,
|
|
1459
1459
|
overflowAmount: h,
|
|
1460
1460
|
overflowStyle: z,
|
|
1461
1461
|
hasOverflow: U,
|
|
@@ -1466,7 +1466,7 @@ const Er = () => {
|
|
|
1466
1466
|
});
|
|
1467
1467
|
},
|
|
1468
1468
|
elements() {
|
|
1469
|
-
const { gt: L, bt: $, cn: R, D:
|
|
1469
|
+
const { gt: L, bt: $, cn: R, D: H, wt: h, kt: z, Zt: U } = M.gn, { qt: F, Jt: k } = M.bn, j = (st) => {
|
|
1470
1470
|
const { Vt: tt, Mt: T, Ut: Q } = st;
|
|
1471
1471
|
return {
|
|
1472
1472
|
scrollbar: Q,
|
|
@@ -1487,9 +1487,9 @@ const Er = () => {
|
|
|
1487
1487
|
return Y({}, {
|
|
1488
1488
|
target: L,
|
|
1489
1489
|
host: $,
|
|
1490
|
-
padding: R ||
|
|
1491
|
-
viewport:
|
|
1492
|
-
content: h ||
|
|
1490
|
+
padding: R || H,
|
|
1491
|
+
viewport: H,
|
|
1492
|
+
content: h || H,
|
|
1493
1493
|
scrollOffsetElement: z,
|
|
1494
1494
|
scrollEventElement: U,
|
|
1495
1495
|
scrollbarHorizontal: q(F),
|
|
@@ -1503,7 +1503,7 @@ const Er = () => {
|
|
|
1503
1503
|
destroy: W(_, !1),
|
|
1504
1504
|
plugin: (L) => u[At(L)[0]]
|
|
1505
1505
|
};
|
|
1506
|
-
return ot(a, [D]), Ir(r, V), fs(us, Qt, [V, f, u]), $r(
|
|
1506
|
+
return ot(a, [D]), Ir(r, V), fs(us, Qt, [V, f, u]), $r(M.gn.Rt, !s && t.cancel) ? (_(!0), V) : (ot(a, m()), b("initialized", [V]), V.update(!0), V);
|
|
1507
1507
|
}
|
|
1508
1508
|
return l;
|
|
1509
1509
|
};
|
|
@@ -1512,7 +1512,7 @@ Qt.plugin = (t) => {
|
|
|
1512
1512
|
return br(o), e ? n : n[0];
|
|
1513
1513
|
};
|
|
1514
1514
|
Qt.valid = (t) => {
|
|
1515
|
-
const e = t && t.elements, o =
|
|
1515
|
+
const e = t && t.elements, o = Ht(e) && e();
|
|
1516
1516
|
return De(o) && !!vs(o.target);
|
|
1517
1517
|
};
|
|
1518
1518
|
Qt.env = () => {
|
|
@@ -1531,9 +1531,9 @@ Qt.env = () => {
|
|
|
1531
1531
|
setDefaultOptions: i
|
|
1532
1532
|
});
|
|
1533
1533
|
};
|
|
1534
|
-
const Ae = J(999999), Ie = J(380), Nr = "var(--upf-text-tooltip-text, var(--upf-text-primary, #212121))",
|
|
1534
|
+
const Ae = J(999999), Ie = J(380), Nr = "var(--upf-text-tooltip-text, var(--upf-text-primary, #212121))", Oo = "var(--upf-text-tooltip-bg, var(--upf-bg-elevated, #ffffff))", dn = "var(--upf-text-tooltip-border, var(--upf-border-color, #D9D9D9))", Fr = "var(--upf-border-radius, 4px)", fn = "var(--upf-text-tooltip-shadow-color, rgba(38, 38, 38, 0.16))", Ur = "var(--upf-text-tooltip-scrollbar-thumb, var(--upf-text-disabled, #B2B2B2))", pn = "var(--upf-text-tooltip-scrollbar-thumb-hover, var(--upf-text-secondary, #666666))", jr = "var(--upf-text-tooltip-scrollbar-padding, 1px)", hn = (t) => {
|
|
1535
1535
|
const e = document.createElement("span"), o = document.createElement("span");
|
|
1536
|
-
return e.style.position = "absolute", e.style.width = "0", e.style.height = "0", e.style.pointerEvents = "none", e.style.zIndex = "2", o.style.position = "absolute", o.style.width = "0", o.style.height = "0", o.style.pointerEvents = "none", t === "top" ? (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderBottom = `7px solid ${dn}`, e.style.top = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderBottom = `6px solid ${
|
|
1536
|
+
return e.style.position = "absolute", e.style.width = "0", e.style.height = "0", e.style.pointerEvents = "none", e.style.zIndex = "2", o.style.position = "absolute", o.style.width = "0", o.style.height = "0", o.style.pointerEvents = "none", t === "top" ? (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderBottom = `7px solid ${dn}`, e.style.top = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderBottom = `6px solid ${Oo}`, o.style.top = "1px", o.style.left = "-6px") : (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderTop = `7px solid ${dn}`, e.style.bottom = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderTop = `6px solid ${Oo}`, o.style.bottom = "1px", o.style.left = "-6px"), e.appendChild(o), e;
|
|
1537
1537
|
}, Xr = () => {
|
|
1538
1538
|
zs("das-ui-text", [
|
|
1539
1539
|
{
|
|
@@ -1556,7 +1556,7 @@ const Ae = J(999999), Ie = J(380), Nr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1556
1556
|
padding: "10px",
|
|
1557
1557
|
"font-size": "12px",
|
|
1558
1558
|
color: Nr,
|
|
1559
|
-
background:
|
|
1559
|
+
background: Oo,
|
|
1560
1560
|
// border: `1px solid ${tooltipBorderVar}`,
|
|
1561
1561
|
"border-radius": Fr,
|
|
1562
1562
|
"line-height": 1.5,
|
|
@@ -1613,7 +1613,7 @@ const me = () => {
|
|
|
1613
1613
|
let o = t;
|
|
1614
1614
|
return e.target && (typeof e.target == "string" && (o = t.querySelector(e.target) || document.querySelector(e.target)), typeof e.target == "function" && (o = await e.target(t))), o || t;
|
|
1615
1615
|
}, gn = (t, e) => {
|
|
1616
|
-
t.dataset.customContent = (e == null ? void 0 : e.customContent) || "";
|
|
1616
|
+
t.dataset.customContent = (e == null ? void 0 : e.customContent) || "", t.dataset.customContentMode = (e == null ? void 0 : e.contentMode) || "html";
|
|
1617
1617
|
}, Yr = {
|
|
1618
1618
|
beforeMount() {
|
|
1619
1619
|
Xr();
|
|
@@ -1633,27 +1633,28 @@ const me = () => {
|
|
|
1633
1633
|
gn(c, n);
|
|
1634
1634
|
let u = !0;
|
|
1635
1635
|
a.contains("das-ui-text-context") || a.add("das-ui-text-context"), c.onmouseenter = (i) => {
|
|
1636
|
-
const f = i.composedPath()[0], { x: w, y:
|
|
1636
|
+
const f = i.composedPath()[0], { x: w, y: O, width: g, height: v, top: E, left: b, bottom: m, right: S } = f.getBoundingClientRect(), C = window.getComputedStyle(f, null), M = parseFloat(C.getPropertyValue("padding-left"));
|
|
1637
1637
|
Ae.value = Ps().nextZIndex();
|
|
1638
1638
|
const D = document.createRange();
|
|
1639
1639
|
D.setStart(c, 0);
|
|
1640
1640
|
let _ = s ? c.childNodes.length : 1;
|
|
1641
1641
|
D.setEnd(c, _);
|
|
1642
|
-
const V = parseFloat(
|
|
1642
|
+
const V = parseFloat(C.paddingRight), L = parseFloat(C.paddingLeft), $ = D.getBoundingClientRect(), R = Math.round($.width), H = Math.round(c.getBoundingClientRect().width) - V - L, h = R > H, z = l && (Math.ceil(c.scrollHeight) > Math.ceil(c.clientHeight) || Math.ceil($.height) > Math.ceil(c.clientHeight));
|
|
1643
1643
|
if (h || z) {
|
|
1644
1644
|
const F = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) - S;
|
|
1645
1645
|
setTimeout(async () => {
|
|
1646
1646
|
let k = document.getElementById("das-ui-text-tooltip");
|
|
1647
1647
|
if (!k) {
|
|
1648
|
-
k = document.createElement("div"), k.style.cssText = `left: ${w +
|
|
1648
|
+
k = document.createElement("div"), k.style.cssText = `left: ${w + M}px;`, k.style.zIndex = `${Ae.value}`, k.setAttribute("id", "das-ui-text-tooltip");
|
|
1649
1649
|
const T = document.createElement("div");
|
|
1650
1650
|
T.setAttribute("id", "das-ui-text-tooltip-context"), T && (T.style.wordBreak = No.value == "zh-CN" ? "break-all" : "normal"), T.addEventListener("mouseover", gs);
|
|
1651
1651
|
const Q = document.createElement("div");
|
|
1652
1652
|
Q.setAttribute("id", "tooltip-scroll-content"), T.appendChild(Q), k.appendChild(T), document.body.appendChild(k);
|
|
1653
|
-
const nt = "os-theme-dark das-scrollbar",
|
|
1654
|
-
if (
|
|
1655
|
-
|
|
1656
|
-
|
|
1653
|
+
const nt = "os-theme-dark das-scrollbar", lt = document.getElementById("tooltip-scroll-content");
|
|
1654
|
+
if (lt) {
|
|
1655
|
+
const p = c.dataset.customContent || "";
|
|
1656
|
+
c.dataset.customContentMode === "text" ? lt.textContent = p || c.textContent || "" : lt.innerHTML = p || c.innerHTML;
|
|
1657
|
+
const y = {
|
|
1657
1658
|
scrollbars: {
|
|
1658
1659
|
autoHide: "leave",
|
|
1659
1660
|
autoHideDelay: 0,
|
|
@@ -1662,8 +1663,8 @@ const me = () => {
|
|
|
1662
1663
|
overflow: { y: "scroll" }
|
|
1663
1664
|
};
|
|
1664
1665
|
c.dataset.customContent ? ys.value = setTimeout(() => {
|
|
1665
|
-
Qt(T,
|
|
1666
|
-
}, 10) : Qt(T,
|
|
1666
|
+
Qt(T, y);
|
|
1667
|
+
}, 10) : Qt(T, y);
|
|
1667
1668
|
}
|
|
1668
1669
|
}
|
|
1669
1670
|
const j = k.querySelector('[data-tooltip-arrow="true"]');
|
|
@@ -1671,10 +1672,10 @@ const me = () => {
|
|
|
1671
1672
|
const q = hn("bottom");
|
|
1672
1673
|
if (q.setAttribute("data-tooltip-arrow", "true"), q.style.left = "14px", F + g <= Ie.value) {
|
|
1673
1674
|
let T = k.offsetWidth >= Ie.value ? Ie.value : k.offsetWidth;
|
|
1674
|
-
k.style.cssText = `left: ${w +
|
|
1675
|
+
k.style.cssText = `left: ${w + M - T / 4}px;`, k.style.zIndex = `${Ae.value}`, q.style.left = `${T / 2}px`;
|
|
1675
1676
|
}
|
|
1676
1677
|
k.appendChild(q);
|
|
1677
|
-
let st = c.dataset.customContent && No.value != "zh-CN" ? k.offsetHeight - 10 : k.offsetHeight, tt =
|
|
1678
|
+
let st = c.dataset.customContent && No.value != "zh-CN" ? k.offsetHeight - 10 : k.offsetHeight, tt = O - 10 - st;
|
|
1678
1679
|
if (tt * 1 < 0) {
|
|
1679
1680
|
k.style.top = `${m + 5}px`, q.remove();
|
|
1680
1681
|
const T = hn("top");
|
|
@@ -1758,17 +1759,17 @@ function ws(t) {
|
|
|
1758
1759
|
return Ts() ? ($s(t), !0) : !1;
|
|
1759
1760
|
}
|
|
1760
1761
|
function tc(t, e = !0) {
|
|
1761
|
-
|
|
1762
|
+
Mn() ? To(t) : e ? t() : be(t);
|
|
1762
1763
|
}
|
|
1763
1764
|
function Zt(t) {
|
|
1764
1765
|
var e;
|
|
1765
1766
|
const o = xs(t);
|
|
1766
1767
|
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
1767
1768
|
}
|
|
1768
|
-
const
|
|
1769
|
+
const Oe = bs ? window : void 0;
|
|
1769
1770
|
function Wt(...t) {
|
|
1770
1771
|
let e, o, n, s;
|
|
1771
|
-
if (Qr(t[0]) || Array.isArray(t[0]) ? ([o, n, s] = t, e =
|
|
1772
|
+
if (Qr(t[0]) || Array.isArray(t[0]) ? ([o, n, s] = t, e = Oe) : [e, o, n, s] = t, !e)
|
|
1772
1773
|
return Kr;
|
|
1773
1774
|
Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
|
|
1774
1775
|
const r = [], l = () => {
|
|
@@ -1786,17 +1787,17 @@ function ec(t, e = !1) {
|
|
|
1786
1787
|
}
|
|
1787
1788
|
const wn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Sn = "__vueuse_ssr_handlers__";
|
|
1788
1789
|
wn[Sn] = wn[Sn] || {};
|
|
1789
|
-
var
|
|
1790
|
+
var Cn = Object.getOwnPropertySymbols, oc = Object.prototype.hasOwnProperty, nc = Object.prototype.propertyIsEnumerable, sc = (t, e) => {
|
|
1790
1791
|
var o = {};
|
|
1791
1792
|
for (var n in t)
|
|
1792
1793
|
oc.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
|
|
1793
|
-
if (t != null &&
|
|
1794
|
-
for (var n of
|
|
1794
|
+
if (t != null && Cn)
|
|
1795
|
+
for (var n of Cn(t))
|
|
1795
1796
|
e.indexOf(n) < 0 && nc.call(t, n) && (o[n] = t[n]);
|
|
1796
1797
|
return o;
|
|
1797
1798
|
};
|
|
1798
1799
|
function rc(t, e, o = {}) {
|
|
1799
|
-
const n = o, { window: s =
|
|
1800
|
+
const n = o, { window: s = Oe } = n, r = sc(n, ["window"]);
|
|
1800
1801
|
let l;
|
|
1801
1802
|
const c = ec(() => s && "ResizeObserver" in s), a = () => {
|
|
1802
1803
|
l && (l.disconnect(), l = void 0);
|
|
@@ -1811,7 +1812,7 @@ function rc(t, e, o = {}) {
|
|
|
1811
1812
|
};
|
|
1812
1813
|
}
|
|
1813
1814
|
function cc(t, e = { width: 0, height: 0 }, o = {}) {
|
|
1814
|
-
const { window: n =
|
|
1815
|
+
const { window: n = Oe, box: s = "content-box" } = o, r = K(() => {
|
|
1815
1816
|
var a, u;
|
|
1816
1817
|
return (u = (a = Zt(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : u.includes("svg");
|
|
1817
1818
|
}), l = J(e.width), c = J(e.height);
|
|
@@ -1855,7 +1856,7 @@ function ic(t = {}) {
|
|
|
1855
1856
|
touch: o = !0,
|
|
1856
1857
|
resetOnTouchEnds: n = !1,
|
|
1857
1858
|
initialValue: s = { x: 0, y: 0 },
|
|
1858
|
-
window: r =
|
|
1859
|
+
window: r = Oe,
|
|
1859
1860
|
eventFilter: l
|
|
1860
1861
|
} = t, c = J(s.x), a = J(s.y), u = J(null), i = (g) => {
|
|
1861
1862
|
e === "page" ? (c.value = g.pageX, a.value = g.pageY) : e === "client" ? (c.value = g.clientX, a.value = g.clientY) : e === "movement" && (c.value = g.movementX, a.value = g.movementY), u.value = "mouse";
|
|
@@ -1866,8 +1867,8 @@ function ic(t = {}) {
|
|
|
1866
1867
|
const v = g.touches[0];
|
|
1867
1868
|
e === "page" ? (c.value = v.pageX, a.value = v.pageY) : e === "client" && (c.value = v.clientX, a.value = v.clientY), u.value = "touch";
|
|
1868
1869
|
}
|
|
1869
|
-
}, w = (g) => l === void 0 ? i(g) : l(() => i(g), {}),
|
|
1870
|
-
return r && (Wt(r, "mousemove", w, { passive: !0 }), Wt(r, "dragover", w, { passive: !0 }), o && e !== "movement" && (Wt(r, "touchstart",
|
|
1870
|
+
}, w = (g) => l === void 0 ? i(g) : l(() => i(g), {}), O = (g) => l === void 0 ? f(g) : l(() => f(g), {});
|
|
1871
|
+
return r && (Wt(r, "mousemove", w, { passive: !0 }), Wt(r, "dragover", w, { passive: !0 }), o && e !== "movement" && (Wt(r, "touchstart", O, { passive: !0 }), Wt(r, "touchmove", O, { passive: !0 }), n && Wt(r, "touchend", d, { passive: !0 }))), {
|
|
1871
1872
|
x: c,
|
|
1872
1873
|
y: a,
|
|
1873
1874
|
sourceType: u
|
|
@@ -1876,8 +1877,8 @@ function ic(t = {}) {
|
|
|
1876
1877
|
function ac(t, e = {}) {
|
|
1877
1878
|
const {
|
|
1878
1879
|
handleOutside: o = !0,
|
|
1879
|
-
window: n =
|
|
1880
|
-
} = e, { x: s, y: r, sourceType: l } = ic(e), c = J(t ?? (n == null ? void 0 : n.document.body)), a = J(0), u = J(0), i = J(0), d = J(0), f = J(0), w = J(0),
|
|
1880
|
+
window: n = Oe
|
|
1881
|
+
} = e, { x: s, y: r, sourceType: l } = ic(e), c = J(t ?? (n == null ? void 0 : n.document.body)), a = J(0), u = J(0), i = J(0), d = J(0), f = J(0), w = J(0), O = J(!0);
|
|
1881
1882
|
let g = () => {
|
|
1882
1883
|
};
|
|
1883
1884
|
return n && (g = qt([c, s, r], () => {
|
|
@@ -1886,15 +1887,15 @@ function ac(t, e = {}) {
|
|
|
1886
1887
|
return;
|
|
1887
1888
|
const {
|
|
1888
1889
|
left: E,
|
|
1889
|
-
top:
|
|
1890
|
+
top: b,
|
|
1890
1891
|
width: m,
|
|
1891
1892
|
height: S
|
|
1892
1893
|
} = v.getBoundingClientRect();
|
|
1893
|
-
i.value = E + n.pageXOffset, d.value =
|
|
1894
|
-
const
|
|
1895
|
-
|
|
1894
|
+
i.value = E + n.pageXOffset, d.value = b + n.pageYOffset, f.value = S, w.value = m;
|
|
1895
|
+
const C = s.value - i.value, M = r.value - d.value;
|
|
1896
|
+
O.value = m === 0 || S === 0 || C < 0 || M < 0 || C > m || M > S, (o || !O.value) && (a.value = C, u.value = M);
|
|
1896
1897
|
}, { immediate: !0 }), Wt(document, "mouseleave", () => {
|
|
1897
|
-
|
|
1898
|
+
O.value = !0;
|
|
1898
1899
|
})), {
|
|
1899
1900
|
x: s,
|
|
1900
1901
|
y: r,
|
|
@@ -1905,14 +1906,14 @@ function ac(t, e = {}) {
|
|
|
1905
1906
|
elementPositionY: d,
|
|
1906
1907
|
elementHeight: f,
|
|
1907
1908
|
elementWidth: w,
|
|
1908
|
-
isOutside:
|
|
1909
|
+
isOutside: O,
|
|
1909
1910
|
stop: g
|
|
1910
1911
|
};
|
|
1911
1912
|
}
|
|
1912
|
-
var
|
|
1913
|
+
var On;
|
|
1913
1914
|
(function(t) {
|
|
1914
1915
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
1915
|
-
})(
|
|
1916
|
+
})(On || (On = {}));
|
|
1916
1917
|
var uc = Object.defineProperty, En = Object.getOwnPropertySymbols, dc = Object.prototype.hasOwnProperty, fc = Object.prototype.propertyIsEnumerable, Tn = (t, e, o) => e in t ? uc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, pc = (t, e) => {
|
|
1917
1918
|
for (var o in e)
|
|
1918
1919
|
dc.call(e, o) && Tn(t, o, e[o]);
|
|
@@ -1956,7 +1957,7 @@ function vc({
|
|
|
1956
1957
|
placeholder: o
|
|
1957
1958
|
}) {
|
|
1958
1959
|
var i;
|
|
1959
|
-
const n = (i =
|
|
1960
|
+
const n = (i = Mn()) == null ? void 0 : i.props, s = K(() => {
|
|
1960
1961
|
var d;
|
|
1961
1962
|
return (d = t.value) == null ? void 0 : d.ref;
|
|
1962
1963
|
}), { focused: r } = lc(s), l = J(!1), c = K(() => l.value && !r.value && n.isTitle), a = K(() => e.value ? e.value : o.value), u = async () => {
|
|
@@ -2024,7 +2025,7 @@ const mc = {
|
|
|
2024
2025
|
"--das-input-border-color": (h = bn[l.value]) == null ? void 0 : h.color,
|
|
2025
2026
|
"--das-input-message-color": (z = bn[l.value]) == null ? void 0 : z.color
|
|
2026
2027
|
};
|
|
2027
|
-
}),
|
|
2028
|
+
}), O = K(() => s.style ? [w.value, s.style] : w.value), g = K(() => s.class ? [v.value, s.class] : v.value), v = K(() => [
|
|
2028
2029
|
"das-ui-input",
|
|
2029
2030
|
`das-ui-input--border-type-${n.borderType}`,
|
|
2030
2031
|
{
|
|
@@ -2032,19 +2033,19 @@ const mc = {
|
|
|
2032
2033
|
"das-ui-input--disabled": n.disabled,
|
|
2033
2034
|
"das-ui-textarea": n.type === "textarea"
|
|
2034
2035
|
}
|
|
2035
|
-
]), E = o,
|
|
2036
|
+
]), E = o, b = K({
|
|
2036
2037
|
get: () => n.modelValue,
|
|
2037
2038
|
set: (h) => E("update:modelValue", h)
|
|
2038
|
-
}), m = J(null), S = J(), { isOutside:
|
|
2039
|
+
}), m = J(null), S = J(), { isOutside: C } = ac(K(() => {
|
|
2039
2040
|
var h;
|
|
2040
2041
|
return (h = S.value) == null ? void 0 : h.$el;
|
|
2041
|
-
})),
|
|
2042
|
+
})), M = K(() => !C.value && n.errorMode === "overlay"), D = K(() => n.type === "textarea" ? n.showWordLimit : n.showTextWordLimit), _ = K(() => n.isView || n.disabled), V = K(() => _.value ? n.noSetDefaultVal ? "" : "-" : r.value ?? ""), { showToolTip: L, tooltipContent: $ } = vc({
|
|
2042
2043
|
elInputRef: S,
|
|
2043
|
-
inputValue:
|
|
2044
|
+
inputValue: b,
|
|
2044
2045
|
placeholder: r
|
|
2045
|
-
}), { width: R } = cc(m),
|
|
2046
|
+
}), { width: R } = cc(m), H = (h) => {
|
|
2046
2047
|
let z = h + "";
|
|
2047
|
-
n.type !== "textarea" && n.filterSpace && (z = z.trim()),
|
|
2048
|
+
n.type !== "textarea" && n.filterSpace && (z = z.trim()), b.value = z, E("change", z);
|
|
2048
2049
|
};
|
|
2049
2050
|
return e({
|
|
2050
2051
|
elInputRef: S
|
|
@@ -2053,7 +2054,7 @@ const mc = {
|
|
|
2053
2054
|
{
|
|
2054
2055
|
ref_key: "containerRef",
|
|
2055
2056
|
ref: m,
|
|
2056
|
-
style: Ve(
|
|
2057
|
+
style: Ve(O.value),
|
|
2057
2058
|
class: ze(g.value)
|
|
2058
2059
|
},
|
|
2059
2060
|
[
|
|
@@ -2065,13 +2066,13 @@ const mc = {
|
|
|
2065
2066
|
content: Bt($)
|
|
2066
2067
|
}, {
|
|
2067
2068
|
default: Dt(() => [
|
|
2068
|
-
lo(Bt(
|
|
2069
|
+
lo(Bt(Hs), In({
|
|
2069
2070
|
ref_key: "elInputRef",
|
|
2070
2071
|
ref: S
|
|
2071
2072
|
}, f.value, {
|
|
2072
2073
|
size: d.value,
|
|
2073
|
-
modelValue:
|
|
2074
|
-
"onUpdate:modelValue": z[0] || (z[0] = (U) =>
|
|
2074
|
+
modelValue: b.value,
|
|
2075
|
+
"onUpdate:modelValue": z[0] || (z[0] = (U) => b.value = U),
|
|
2075
2076
|
placeholder: V.value,
|
|
2076
2077
|
disabled: t.disabled,
|
|
2077
2078
|
readonly: t.isView,
|
|
@@ -2079,7 +2080,7 @@ const mc = {
|
|
|
2079
2080
|
autosize: n.autosize,
|
|
2080
2081
|
showWordLimit: D.value,
|
|
2081
2082
|
maxlength: n.maxlength,
|
|
2082
|
-
onChange:
|
|
2083
|
+
onChange: H
|
|
2083
2084
|
}), Is({
|
|
2084
2085
|
_: 2
|
|
2085
2086
|
/* DYNAMIC */
|
|
@@ -2120,7 +2121,7 @@ const mc = {
|
|
|
2120
2121
|
/* FORWARDED */
|
|
2121
2122
|
}, 8, ["disabled", "content"]),
|
|
2122
2123
|
t.error && t.errorLabel ? (ht(), St(
|
|
2123
|
-
|
|
2124
|
+
Me,
|
|
2124
2125
|
{ key: 0 },
|
|
2125
2126
|
[
|
|
2126
2127
|
t.errorMode === "default" ? (ht(), St("div", mc, [
|
|
@@ -2138,7 +2139,7 @@ const mc = {
|
|
|
2138
2139
|
[Bt(Yr)]
|
|
2139
2140
|
]) : Lt("v-if", !0)
|
|
2140
2141
|
])) : Lt("v-if", !0),
|
|
2141
|
-
|
|
2142
|
+
M.value ? (ht(), $o(Ns, {
|
|
2142
2143
|
key: 1,
|
|
2143
2144
|
errorLabel: t.errorLabel,
|
|
2144
2145
|
errorWidth: `${Bt(R)}`,
|
|
@@ -2157,14 +2158,14 @@ const mc = {
|
|
|
2157
2158
|
/* CLASS, STYLE */
|
|
2158
2159
|
));
|
|
2159
2160
|
}
|
|
2160
|
-
}), bc = /* @__PURE__ */
|
|
2161
|
+
}), bc = /* @__PURE__ */ Hn(yc, [["__scopeId", "data-v-2a267b60"]]), xc = {
|
|
2161
2162
|
共: { "zh-CN": "共", en: "Total", "zh-MO": "共", _appCode: "framework" },
|
|
2162
2163
|
项: { "zh-CN": "项", en: "Item", "zh-MO": "項", _appCode: "framework" },
|
|
2163
2164
|
请输入: { "zh-CN": "请输入", en: "Please enter", "zh-MO": "請輸入", _appCode: "framework" }
|
|
2164
2165
|
};
|
|
2165
2166
|
As(xc);
|
|
2166
|
-
const
|
|
2167
|
+
const Mc = Ss(bc);
|
|
2167
2168
|
export {
|
|
2168
|
-
|
|
2169
|
-
|
|
2169
|
+
Mc as DasInput,
|
|
2170
|
+
Mc as default
|
|
2170
2171
|
};
|