@das-fed/ui 7.1.0-qatar.2 → 7.1.0-qatar.3
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/package.json +5 -5
- package/packages/business-components/device-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/model-table-dialog/index.d.ts +0 -1
- package/packages/business-components/model-table-dialog/index.js +253 -252
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/index.d.ts +0 -1
- package/packages/business-components/payment/index.js +36 -35
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +202 -198
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-log/theme/index.d.ts +5 -1
- package/packages/components/alert/index.d.ts +0 -1
- package/packages/components/alert/index.js +13 -13
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/alert/style.css +1 -1
- package/packages/components/alert/style.css.gz +0 -0
- package/packages/components/audio-video/index.js +177 -177
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/audio-video/style.css +1 -1
- package/packages/components/autocomplete/index.d.ts +0 -1
- package/packages/components/autocomplete/index.js +89 -87
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/cascader/index.js +16 -16
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/cascader/theme/base.d.ts +8 -2
- package/packages/components/checkbox/index.js +53 -53
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/checkbox/theme/index.d.ts +8 -2
- package/packages/components/collapse-panel/index.d.ts +0 -1
- package/packages/components/collapse-panel/index.js +20 -20
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/style.css +1 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/collaspe/index.js +24 -19
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/collaspe/style.css +1 -1
- package/packages/components/collaspe/theme/index.d.ts +7 -0
- package/packages/components/custom-search-item/index.js +1 -1
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/custom-search-item/style.css +1 -1
- package/packages/components/date-picker/index.js +218 -219
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/date-picker/theme/base.d.ts +8 -3
- package/packages/components/dialog/index.js +54 -54
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/drawer/index.js +19 -19
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.d.ts +0 -1
- package/packages/components/dropdown/index.js +89 -63
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/dropdown/style.css +1 -1
- package/packages/components/dropdown/style.css.gz +0 -0
- package/packages/components/dropdown/theme/index.d.ts +24 -4
- package/packages/components/edit-table/index.js +2 -2
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/index.d.ts +0 -1
- package/packages/components/empty/index.js +22 -22
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +9 -9
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/index.d.ts +0 -1
- package/packages/components/form/index.js +10 -8
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form-item/index.js +396 -396
- 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/image-upload/index.d.ts +0 -1
- package/packages/components/image-upload/index.js +61 -61
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/style.css +1 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-upload/theme/index.d.ts +4 -0
- package/packages/components/image-viewer/index.d.ts +0 -1
- package/packages/components/image-viewer/index.js +24 -24
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/image-viewer/theme/index.d.ts +1 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +1 -2
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-dialog-select/theme/index.d.ts +0 -1
- package/packages/components/input-number/index.js +68 -67
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/input-number/theme/index.d.ts +4 -0
- package/packages/components/map/index.js +3 -3
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/style.css +1 -1
- package/packages/components/map/style.css.gz +0 -0
- package/packages/components/notification/index.js +29 -28
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/notification/style.css +1 -1
- package/packages/components/notification/style.css.gz +0 -0
- package/packages/components/notification/theme/index.d.ts +1 -0
- package/packages/components/overlay/index.d.ts +0 -1
- package/packages/components/overlay/index.js +180 -180
- package/packages/components/overlay/index.js.gz +0 -0
- package/packages/components/pagination/index.js +60 -60
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/pagination/theme/index.d.ts +4 -1
- package/packages/components/popover/index.d.ts +0 -1
- package/packages/components/popover/index.js +46 -38
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popover/style.css +1 -1
- package/packages/components/popover/style.css.gz +0 -0
- package/packages/components/popover/theme/index.d.ts +7 -0
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/scrollbar/index.d.ts +0 -1
- package/packages/components/scrollbar/index.js +100 -98
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search-form/index.js +5 -5
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +5 -5
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select/theme/base.d.ts +8 -2
- package/packages/components/select-input/index.d.ts +0 -1
- package/packages/components/select-input/index.js +21 -21
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-list/index.d.ts +0 -1
- package/packages/components/select-list/index.js +65 -66
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.d.ts +0 -1
- package/packages/components/special-range-picker-month/index.js +79 -80
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/style.css +1 -1
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/theme/index.d.ts +12 -3
- package/packages/components/special-range-picker-year/index.d.ts +0 -1
- package/packages/components/special-range-picker-year/index.js +95 -96
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/style.css +1 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/theme/index.d.ts +12 -3
- package/packages/components/spin/index.d.ts +0 -1
- package/packages/components/spin/index.js +28 -28
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/spin/style.css +1 -1
- package/packages/components/spin/style.css.gz +0 -0
- package/packages/components/switch/index.js +6 -6
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.js +419 -409
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/table/theme/index.d.ts +13 -1
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +423 -423
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/theme/index.d.ts +5 -5
- package/packages/components/tooltip/index.d.ts +0 -1
- package/packages/components/tooltip/index.js +69 -65
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tooltip/theme/index.d.ts +4 -0
- package/packages/components/tree/index.js +1 -1
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/theme/base.d.ts +4 -1
- package/packages/components/tree-table/index.js +27 -27
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/tree-table/theme/base.d.ts +4 -1
- package/packages/components/tree-v2/index.js +46 -46
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +4 -1
- package/packages/components/upload/index.d.ts +0 -1
- package/packages/components/upload/index.js +10 -11
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/style.css +1 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/upload/theme/index.d.ts +4 -1
- package/packages/components/virtual-tree/style.css +1 -1
- package/packages/components/virtual-tree/style.css.gz +0 -0
- package/packages/global/theme/index.js +0 -42
- package/packages/global/theme/index.js.gz +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/scrollbar/style.css';
|
|
2
|
-
import "@das-fed/
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { onUnmounted as Nn, defineComponent as
|
|
5
|
-
import { createStyle as
|
|
6
|
-
import { ElScrollbar as
|
|
2
|
+
import { setGlobalThemeRule as Cs } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { withInstall as $s } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { onUnmounted as Nn, defineComponent as Ts, ref as Ie, computed as Es, onMounted as As, createBlock as Hs, openBlock as ks, unref as Ls, mergeProps as _s, withCtx as Ds, renderSlot as Is } from "vue";
|
|
5
|
+
import { createStyle as Ps } from "@das-fed/utils/style";
|
|
6
|
+
import { ElScrollbar as Rs } from "element-plus";
|
|
7
7
|
import "element-plus/es/components/scrollbar/style/css";
|
|
8
|
-
import { useZIndex as
|
|
8
|
+
import { useZIndex as Ms } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
9
9
|
/*!
|
|
10
10
|
* OverlayScrollbars
|
|
11
11
|
* Version: 2.6.1
|
|
@@ -23,11 +23,11 @@ const wt = (t, e) => {
|
|
|
23
23
|
return (A || o) && (c = C, r = b), [c, A, r];
|
|
24
24
|
};
|
|
25
25
|
return [e ? (u) => a(e(c, r), u) : a, (u) => [c, !!u, r]];
|
|
26
|
-
}, en = typeof window < "u", mt = en ? window : {}, ve = Math.max,
|
|
26
|
+
}, en = typeof window < "u", mt = en ? window : {}, ve = Math.max, Ns = Math.min, ze = Math.round, Vn = mt.cancelAnimationFrame, zn = mt.requestAnimationFrame, Fe = mt.setTimeout, Ue = mt.clearTimeout, Se = (t) => typeof mt[t] < "u" ? mt[t] : void 0, Vs = Se("MutationObserver"), mn = Se("IntersectionObserver"), me = Se("ResizeObserver"), Be = Se("ScrollTimeline"), Fn = en && Node.ELEMENT_NODE, { toString: zs, hasOwnProperty: Pe } = Object.prototype, Fs = /^\[object (.+)\]$/, ae = (t) => t === void 0, xe = (t) => t === null, Us = (t) => ae(t) || xe(t) ? `${t}` : zs.call(t).replace(Fs, "$1").toLowerCase(), $t = (t) => typeof t == "number", Oe = (t) => typeof t == "string", Un = (t) => typeof t == "boolean", Tt = (t) => typeof t == "function", xt = (t) => Array.isArray(t), le = (t) => typeof t == "object" && !xt(t) && !xe(t), Ce = (t) => {
|
|
27
27
|
const e = !!t && t.length, n = $t(e) && e > -1 && e % 1 == 0;
|
|
28
28
|
return xt(t) || !Tt(t) && n ? e > 0 && le(t) ? e - 1 in t : !0 : !1;
|
|
29
29
|
}, he = (t) => {
|
|
30
|
-
if (!t || !le(t) ||
|
|
30
|
+
if (!t || !le(t) || Us(t) !== "object")
|
|
31
31
|
return !1;
|
|
32
32
|
let e;
|
|
33
33
|
const n = "constructor", s = t[n], o = s && s.prototype, c = Pe.call(t, n), r = o && Pe.call(o, "isPrototypeOf");
|
|
@@ -61,7 +61,7 @@ const Te = (t, e) => t.indexOf(e) >= 0, Et = (t, e) => t.concat(e), K = (t, e, n
|
|
|
61
61
|
}), o;
|
|
62
62
|
}
|
|
63
63
|
return !1;
|
|
64
|
-
}, Jn = (t, e) => nn(t, e, ["w", "h"]), Qn = (t, e) => nn(t, e, ["x", "y"]),
|
|
64
|
+
}, Jn = (t, e) => nn(t, e, ["w", "h"]), Qn = (t, e) => nn(t, e, ["x", "y"]), Bs = (t, e) => nn(t, e, ["t", "r", "b", "l"]), St = () => {
|
|
65
65
|
}, R = (t, ...e) => t.bind(0, ...e), Lt = (t) => {
|
|
66
66
|
let e;
|
|
67
67
|
const n = t ? Fe : zn, s = t ? Ue : Vn;
|
|
@@ -107,7 +107,7 @@ const Te = (t, e) => t.indexOf(e) >= 0, Et = (t, e) => t.concat(e), K = (t, e, n
|
|
|
107
107
|
for (const e in t)
|
|
108
108
|
return !1;
|
|
109
109
|
return !0;
|
|
110
|
-
}, Ge = (t, e, n) => ve(t,
|
|
110
|
+
}, Ge = (t, e, n) => ve(t, Ns(e, n)), Vt = (t) => Ft(new Set((xt(t) ? t : (t || "").split(" ")).filter((e) => e))), He = (t, e) => t && t.getAttribute(e), gt = (t, e, n) => {
|
|
111
111
|
W(Vt(e), (s) => {
|
|
112
112
|
t && t.setAttribute(s, n || "");
|
|
113
113
|
});
|
|
@@ -130,16 +130,16 @@ const Te = (t, e) => t.indexOf(e) >= 0, Et = (t, e) => t.concat(e), K = (t, e, n
|
|
|
130
130
|
ke(t, e).O(n);
|
|
131
131
|
}, ie = (t, e, n) => (ke(t, e).$(n), R(ss, t, e, n)), be = (t, e, n, s) => {
|
|
132
132
|
(s ? ie : ss)(t, e, n);
|
|
133
|
-
},
|
|
133
|
+
}, js = (t, e, n) => ke(t, e).C(n), os = (t) => ke(t, "class"), on = (t, e) => {
|
|
134
134
|
os(t).O(e);
|
|
135
135
|
}, ye = (t, e) => (os(t).$(e), R(on, t, e)), yn = en && Element.prototype, cs = (t, e) => {
|
|
136
136
|
const n = [], s = e ? $e(e) && e : document;
|
|
137
137
|
return s ? K(n, s.querySelectorAll(t)) : n;
|
|
138
|
-
},
|
|
138
|
+
}, Gs = (t, e) => {
|
|
139
139
|
const n = e ? $e(e) && e : document;
|
|
140
140
|
return n ? n.querySelector(t) : null;
|
|
141
|
-
}, We = (t, e) => $e(t) ? (yn.matches || yn.msMatchesSelector).call(t, e) : !1, Xe = (t) => t ? Ft(t.childNodes) : [], Kt = (t) => t && t.parentElement, jt = (t, e) => $e(t) && t.closest(e),
|
|
142
|
-
const s = jt(t, e), o = t &&
|
|
141
|
+
}, We = (t, e) => $e(t) ? (yn.matches || yn.msMatchesSelector).call(t, e) : !1, Xe = (t) => t ? Ft(t.childNodes) : [], Kt = (t) => t && t.parentElement, jt = (t, e) => $e(t) && t.closest(e), Ws = (t, e, n) => {
|
|
142
|
+
const s = jt(t, e), o = t && Gs(n, s), c = jt(o, e) === s;
|
|
143
143
|
return s && o ? s === t || o === t || c && jt(jt(t, n), e) !== s : !1;
|
|
144
144
|
}, It = (t) => {
|
|
145
145
|
if (Ce(t))
|
|
@@ -162,7 +162,7 @@ const Te = (t, e) => t.indexOf(e) >= 0, Et = (t, e) => t.concat(e), K = (t, e, n
|
|
|
162
162
|
}, ls = (t) => {
|
|
163
163
|
const e = Gt();
|
|
164
164
|
return e.innerHTML = t.trim(), W(Xe(e), (n) => It(n));
|
|
165
|
-
},
|
|
165
|
+
}, Xs = /^--/, wn = (t, e) => t.getPropertyValue(e) || t[e] || "", cn = (t) => {
|
|
166
166
|
const e = t || 0;
|
|
167
167
|
return isFinite(e) ? e : 0;
|
|
168
168
|
}, pe = (t) => cn(parseFloat(t || "")), Sn = (t) => `${(cn(t) * 100).toFixed(3)}%`, Ye = (t) => `${cn(t)}px`;
|
|
@@ -170,7 +170,7 @@ function Jt(t, e) {
|
|
|
170
170
|
t && W(e, (n, s) => {
|
|
171
171
|
try {
|
|
172
172
|
const o = t.style, c = $t(n) ? Ye(n) : (n || "") + "";
|
|
173
|
-
|
|
173
|
+
Xs.test(s) ? o.setProperty(s, c) : o[s] = c;
|
|
174
174
|
} catch {
|
|
175
175
|
}
|
|
176
176
|
});
|
|
@@ -192,13 +192,13 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
192
192
|
b: pe(i[a]),
|
|
193
193
|
l: pe(i[l])
|
|
194
194
|
};
|
|
195
|
-
}, Re = (t, e) => `translate${le(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`,
|
|
195
|
+
}, Re = (t, e) => `translate${le(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Ys = {
|
|
196
196
|
w: 0,
|
|
197
197
|
h: 0
|
|
198
198
|
}, Le = (t, e) => e ? {
|
|
199
199
|
w: e[`${t}Width`],
|
|
200
200
|
h: e[`${t}Height`]
|
|
201
|
-
} :
|
|
201
|
+
} : Ys, Zs = (t) => Le("inner", t || mt), re = R(Le, "offset"), is = R(Le, "client"), Ze = R(Le, "scroll"), rn = (t) => {
|
|
202
202
|
const e = parseFloat(zt(t, Yt)) || 0, n = parseFloat(zt(t, Zt)) || 0;
|
|
203
203
|
return {
|
|
204
204
|
w: e - ze(e),
|
|
@@ -223,7 +223,7 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
223
223
|
} : n;
|
|
224
224
|
return t.addEventListener(i, u, l), R(On, t, i, u, r);
|
|
225
225
|
}));
|
|
226
|
-
}, ln = (t) => t.stopPropagation(), Cn = (t) => t.preventDefault(),
|
|
226
|
+
}, ln = (t) => t.stopPropagation(), Cn = (t) => t.preventDefault(), qs = {
|
|
227
227
|
x: 0,
|
|
228
228
|
y: 0
|
|
229
229
|
}, Me = (t) => {
|
|
@@ -231,7 +231,7 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
231
231
|
return e ? {
|
|
232
232
|
x: e.left + mt.scrollX,
|
|
233
233
|
y: e.top + mt.scrollY
|
|
234
|
-
} :
|
|
234
|
+
} : qs;
|
|
235
235
|
}, ge = (t, e, n) => n ? n.n ? -t + 0 : n.i ? e - t : t : t, $n = (t, e) => [ge(0, t, e), ge(t, t, e)], Tn = (t, e, n) => Ge(0, 1, ge(t, e, n) / e || 0), Pt = (t, e) => {
|
|
236
236
|
const { x: n, y: s } = $t(e) ? {
|
|
237
237
|
x: e,
|
|
@@ -277,7 +277,7 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
277
277
|
if (Tt(n))
|
|
278
278
|
throw 0;
|
|
279
279
|
return n;
|
|
280
|
-
}), Hn = (t, e) => t ? `${e}`.split(".").reduce((n, s) => n && es(n, s) ? n[s] : void 0, t) : void 0,
|
|
280
|
+
}), Hn = (t, e) => t ? `${e}`.split(".").reduce((n, s) => n && es(n, s) ? n[s] : void 0, t) : void 0, Ks = {
|
|
281
281
|
paddingAbsolute: !1,
|
|
282
282
|
showNativeOverlaidScrollbars: !1,
|
|
283
283
|
update: {
|
|
@@ -316,7 +316,7 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
316
316
|
a && (n[o] = r);
|
|
317
317
|
}
|
|
318
318
|
}), n;
|
|
319
|
-
}, kn = (t, e, n) => (s) => [Hn(t, s), n || Hn(e, s) !== void 0], ue = "data-overlayscrollbars", fs = "os-environment",
|
|
319
|
+
}, kn = (t, e, n) => (s) => [Hn(t, s), n || Hn(e, s) !== void 0], ue = "data-overlayscrollbars", fs = "os-environment", Js = `${fs}-scrollbar-hidden`, Ne = `${ue}-initialize`, vt = ue, ds = `${vt}-overflow-x`, ps = `${vt}-overflow-y`, vs = "overflowVisible", Qs = "scrollbarPressed", Je = "updating", to = "body", _t = `${ue}-viewport`, eo = "arrange", bs = "scrollbarHidden", Xt = vs, Qe = `${ue}-padding`, no = Xt, Ln = `${ue}-content`, an = "os-size-observer", so = `${an}-appear`, oo = `${an}-listener`, co = "os-trinsic-observer", ro = "os-theme-none", dt = "os-scrollbar", lo = `${dt}-rtl`, io = `${dt}-horizontal`, ao = `${dt}-vertical`, ms = `${dt}-track`, un = `${dt}-handle`, uo = `${dt}-visible`, fo = `${dt}-cornerless`, _n = `${dt}-interaction`, Dn = `${dt}-unusable`, tn = `${dt}-auto-hide`, In = `${tn}-hidden`, Pn = `${dt}-wheel`, po = `${ms}-interactive`, vo = `${un}-interactive`, hs = {}, ys = {}, bo = (t) => {
|
|
320
320
|
W(t, (e) => W(e, (n, s) => {
|
|
321
321
|
hs[s] = e[s];
|
|
322
322
|
}));
|
|
@@ -326,7 +326,7 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
326
326
|
const u = n ? i(r, a, e) : i(e);
|
|
327
327
|
return (l || ys)[s] = u;
|
|
328
328
|
}
|
|
329
|
-
}), ee = (t) => ys[t],
|
|
329
|
+
}), ee = (t) => ys[t], mo = "__osOptionsValidationPlugin", ho = "__osSizeObserverPlugin", yo = (t, e) => {
|
|
330
330
|
const { T: n } = e, [s, o] = t("showNativeOverlaidScrollbars");
|
|
331
331
|
return [s && n.x && n.y, o];
|
|
332
332
|
}, we = (t) => t.indexOf(Kn) === 0, ws = (t, e) => {
|
|
@@ -344,15 +344,15 @@ const Dt = (t) => zt(t, "direction") === "rtl", xn = (t, e, n) => {
|
|
|
344
344
|
y: a
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
|
-
},
|
|
347
|
+
}, go = (t, e, n, s) => {
|
|
348
348
|
const o = e.x || e.y, c = (u, d) => {
|
|
349
349
|
const b = we(u), C = b && o ? "hidden" : "", A = d && b && u.replace(`${Kn}-`, "") || C;
|
|
350
350
|
return [d && !b ? u : "", we(A) ? "hidden" : A];
|
|
351
351
|
}, [r, a] = c(n.x, e.x), [l, i] = c(n.y, e.y);
|
|
352
352
|
return s[Ee] = a && l ? a : r, s[Ae] = i && r ? i : l, ws(t, s);
|
|
353
|
-
}, fn = "__osScrollbarsHidingPlugin",
|
|
353
|
+
}, fn = "__osScrollbarsHidingPlugin", wo = "__osClickScrollPlugin";
|
|
354
354
|
let Ve;
|
|
355
|
-
const
|
|
355
|
+
const So = () => {
|
|
356
356
|
const t = (h, O, P, _) => {
|
|
357
357
|
bt(h, O);
|
|
358
358
|
const z = is(O), F = re(O), M = rn(P);
|
|
@@ -362,7 +362,7 @@ const wo = () => {
|
|
|
362
362
|
};
|
|
363
363
|
}, e = (h) => {
|
|
364
364
|
let O = !1;
|
|
365
|
-
const P = ye(h,
|
|
365
|
+
const P = ye(h, Js);
|
|
366
366
|
try {
|
|
367
367
|
O = zt(h, "scrollbar-width") === "none" || zt(h, "display", "::-webkit-scrollbar") === "none";
|
|
368
368
|
} catch {
|
|
@@ -405,7 +405,7 @@ const wo = () => {
|
|
|
405
405
|
nativeScrollbarsOverlaid: !1,
|
|
406
406
|
body: null
|
|
407
407
|
}
|
|
408
|
-
}, H = G({},
|
|
408
|
+
}, H = G({}, Ks), I = R(G, {}, H), k = R(G, {}, A), S = {
|
|
409
409
|
P: d,
|
|
410
410
|
T: C,
|
|
411
411
|
L: b,
|
|
@@ -427,20 +427,20 @@ const wo = () => {
|
|
|
427
427
|
}
|
|
428
428
|
l("r", [h]);
|
|
429
429
|
}), S;
|
|
430
|
-
}, yt = () => (Ve || (Ve =
|
|
430
|
+
}, yt = () => (Ve || (Ve = So()), Ve), dn = (t, e) => Tt(e) ? e.apply(0, t) : e, xo = (t, e, n, s) => {
|
|
431
431
|
const o = ae(s) ? n : s;
|
|
432
432
|
return dn(t, o) || e.apply(0, t);
|
|
433
433
|
}, Ss = (t, e, n, s) => {
|
|
434
434
|
const o = ae(s) ? n : s, c = dn(t, o);
|
|
435
435
|
return !!c && (ce(c) ? c : e.apply(0, t));
|
|
436
|
-
},
|
|
436
|
+
}, Oo = (t, e) => {
|
|
437
437
|
const { nativeScrollbarsOverlaid: n, body: s } = e || {}, { T: o, L: c, G: r } = yt(), { nativeScrollbarsOverlaid: a, body: l } = r().cancel, i = n ?? a, u = ae(s) ? l : s, d = (o.x || o.y) && i, b = t && (xe(u) ? !c : u);
|
|
438
438
|
return !!d || !!b;
|
|
439
|
-
}, pn = /* @__PURE__ */ new WeakMap(),
|
|
439
|
+
}, pn = /* @__PURE__ */ new WeakMap(), Co = (t, e) => {
|
|
440
440
|
pn.set(t, e);
|
|
441
|
-
},
|
|
441
|
+
}, $o = (t) => {
|
|
442
442
|
pn.delete(t);
|
|
443
|
-
}, xs = (t) => pn.get(t),
|
|
443
|
+
}, xs = (t) => pn.get(t), To = (t, e, n) => {
|
|
444
444
|
let s = !1;
|
|
445
445
|
const o = n ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
446
446
|
s = !0;
|
|
@@ -468,7 +468,7 @@ const wo = () => {
|
|
|
468
468
|
const { ct: c, rt: r, lt: a, it: l, ut: i, ft: u } = s || {}, d = ts(() => o && n(!0), {
|
|
469
469
|
v: 33,
|
|
470
470
|
p: 99
|
|
471
|
-
}), [b, C] =
|
|
471
|
+
}), [b, C] = To(t, d, a), A = c || [], H = r || [], I = Et(A, H), k = (h, O) => {
|
|
472
472
|
if (!je(O)) {
|
|
473
473
|
const P = i || St, _ = u || St, z = [], F = [];
|
|
474
474
|
let M = !1, x = !1;
|
|
@@ -486,7 +486,7 @@ const wo = () => {
|
|
|
486
486
|
return !h && n.apply(0, y), y;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
}, S = new
|
|
489
|
+
}, S = new Vs(R(k, !1));
|
|
490
490
|
return [() => (S.observe(t, {
|
|
491
491
|
attributes: !0,
|
|
492
492
|
attributeOldValue: !0,
|
|
@@ -501,12 +501,12 @@ const wo = () => {
|
|
|
501
501
|
return d.m(), k(!0, S.takeRecords());
|
|
502
502
|
}];
|
|
503
503
|
}, Os = (t, e, n) => {
|
|
504
|
-
const { _t: o, dt: c } = n || {}, r = ee(
|
|
504
|
+
const { _t: o, dt: c } = n || {}, r = ee(ho), { K: a } = yt(), l = R(Dt, t), [i] = wt({
|
|
505
505
|
o: !1,
|
|
506
506
|
_: !0
|
|
507
507
|
});
|
|
508
508
|
return () => {
|
|
509
|
-
const u = [], b = ls(`<div class="${an}"><div class="${
|
|
509
|
+
const u = [], b = ls(`<div class="${an}"><div class="${oo}"></div></div>`)[0], C = b.firstChild, A = (H) => {
|
|
510
510
|
const I = H instanceof ResizeObserverEntry, k = !I && xt(H);
|
|
511
511
|
let S = !1, h = !1, O = !0;
|
|
512
512
|
if (I) {
|
|
@@ -533,7 +533,7 @@ const wo = () => {
|
|
|
533
533
|
});
|
|
534
534
|
} else if (r) {
|
|
535
535
|
const [H, I] = r(C, A, c);
|
|
536
|
-
K(u, Et([ye(b,
|
|
536
|
+
K(u, Et([ye(b, so), nt(b, "animationstart", H)], I));
|
|
537
537
|
} else
|
|
538
538
|
return St;
|
|
539
539
|
if (o) {
|
|
@@ -547,9 +547,9 @@ const wo = () => {
|
|
|
547
547
|
}
|
|
548
548
|
return R(ht, K(u, bt(t, b)));
|
|
549
549
|
};
|
|
550
|
-
},
|
|
550
|
+
}, Eo = (t, e) => {
|
|
551
551
|
let n;
|
|
552
|
-
const s = (l) => l.h === 0 || l.isIntersecting || l.intersectionRatio > 0, o = Gt(
|
|
552
|
+
const s = (l) => l.h === 0 || l.isIntersecting || l.intersectionRatio > 0, o = Gt(co), [c] = wt({
|
|
553
553
|
o: !1
|
|
554
554
|
}), r = (l, i) => {
|
|
555
555
|
if (l) {
|
|
@@ -574,7 +574,7 @@ const wo = () => {
|
|
|
574
574
|
}
|
|
575
575
|
return R(ht, K(l, bt(t, o)));
|
|
576
576
|
}, () => n && a(!0, n.takeRecords())];
|
|
577
|
-
},
|
|
577
|
+
}, Ao = (t, e, n, s) => {
|
|
578
578
|
let o, c, r, a, l, i;
|
|
579
579
|
const { L: u } = yt(), d = `[${vt}]`, b = `[${_t}]`, C = ["tabindex"], A = ["wrap", "cols", "rows"], H = ["id", "class", "style", "open"], { gt: I, bt: k, D: S, wt: h, St: O, V: P, yt: _, Ot: z } = t, F = {
|
|
580
580
|
$t: !1,
|
|
@@ -586,7 +586,7 @@ const wo = () => {
|
|
|
586
586
|
h: 0
|
|
587
587
|
}
|
|
588
588
|
}, () => {
|
|
589
|
-
const f = x && x.M(t, e, F, M, n).W, p = _(Xt), v = !P && _(
|
|
589
|
+
const f = x && x.M(t, e, F, M, n).W, p = _(Xt), v = !P && _(eo), m = v && Qt(S);
|
|
590
590
|
z(Xt), P && z(Je, !0);
|
|
591
591
|
const g = v && f && f()[0], E = Ze(h), D = Ze(S), N = rn(S);
|
|
592
592
|
return z(Xt, p), P && z(Je), g && g(), Pt(S, m), {
|
|
@@ -642,7 +642,7 @@ const wo = () => {
|
|
|
642
642
|
It: p
|
|
643
643
|
};
|
|
644
644
|
return $(m), p && !v ? w(m) : P || V(f), m;
|
|
645
|
-
}, { Z: Q } = M, [st, tt] = h ?
|
|
645
|
+
}, { Z: Q } = M, [st, tt] = h ? Eo(k, X) : [], L = !P && Os(k, B, {
|
|
646
646
|
dt: !0,
|
|
647
647
|
_t: !0
|
|
648
648
|
}), [J, et] = Rn(k, !1, Y, {
|
|
@@ -677,7 +677,7 @@ const wo = () => {
|
|
|
677
677
|
it: d,
|
|
678
678
|
ft: (ut, ft) => {
|
|
679
679
|
const { target: ot, attributeName: pt } = ut;
|
|
680
|
-
return (!ft && pt && !P ?
|
|
680
|
+
return (!ft && pt && !P ? Ws(ot, d, b) : !1) || !!jt(ot, `.${dt}`) || !!Rt(ut);
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
a = j(), r = ct;
|
|
@@ -693,7 +693,7 @@ const wo = () => {
|
|
|
693
693
|
}
|
|
694
694
|
return $(m), m;
|
|
695
695
|
}, F];
|
|
696
|
-
},
|
|
696
|
+
}, Ho = (t, e, n, s) => {
|
|
697
697
|
const { G: o, K: c } = yt(), { scrollbars: r } = o(), { slot: a } = r, { gt: l, bt: i, D: u, Dt: d, kt: b, Rt: C, V: A } = e, { scrollbars: H } = d ? {} : t, { slot: I } = H || {}, k = /* @__PURE__ */ new Map(), S = (f) => Be && new Be({
|
|
698
698
|
source: b,
|
|
699
699
|
axis: f
|
|
@@ -798,7 +798,7 @@ const wo = () => {
|
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}, L = (f) => {
|
|
801
|
-
const v = Gt(`${dt} ${f ?
|
|
801
|
+
const v = Gt(`${dt} ${f ? io : ao}`), m = Gt(ms), g = Gt(un), E = {
|
|
802
802
|
Ut: v,
|
|
803
803
|
Mt: m,
|
|
804
804
|
Vt: g
|
|
@@ -823,7 +823,7 @@ const wo = () => {
|
|
|
823
823
|
Yt: R(T, U)
|
|
824
824
|
}
|
|
825
825
|
}, it];
|
|
826
|
-
},
|
|
826
|
+
}, ko = (t, e, n) => {
|
|
827
827
|
const { bt: s, kt: o, Kt: c } = e;
|
|
828
828
|
return (r, a, l, i) => {
|
|
829
829
|
const { Ut: u, Mt: d, Vt: b } = r, [C, A] = Lt(333), [H, I] = Lt(), k = R(l, [r], i), S = !!o.scrollBy, h = `client${i ? "X" : "Y"}`, O = i ? Yt : Zt, P = i ? "left" : "top", _ = i ? "w" : "h", z = i ? "x" : "y", F = (y) => y.propertyName.indexOf(O) > -1, M = () => {
|
|
@@ -838,7 +838,7 @@ const wo = () => {
|
|
|
838
838
|
if (B === 0 && U && X[$ ? "dragScroll" : "clickScroll"] && (Q || []).includes(Y)) {
|
|
839
839
|
const tt = !$ && w.shiftKey, L = R(Wt, b), J = R(Wt, d), et = (q, lt) => (q || L())[P] - (lt || J())[P], it = ze(Wt(o)[O]) / re(o)[_] || 1, f = T(Qt(o)[z] || 0, 1 / it), p = w[h], v = L(), m = J(), g = v[O], E = et(v, m) + g / 2, D = p - m[P], N = $ ? 0 : D - E, Z = (q) => {
|
|
840
840
|
ht(at), V.releasePointerCapture(q.pointerId);
|
|
841
|
-
}, at = [ie(s, vt,
|
|
841
|
+
}, at = [ie(s, vt, Qs), nt(c, y, Z), nt(c, "selectstart", (q) => Cn(q), {
|
|
842
842
|
H: !1
|
|
843
843
|
}), nt(d, y, Z), nt(d, "pointermove", (q) => {
|
|
844
844
|
const lt = q[h] - p;
|
|
@@ -847,7 +847,7 @@ const wo = () => {
|
|
|
847
847
|
if (V.setPointerCapture(w.pointerId), tt)
|
|
848
848
|
f(N);
|
|
849
849
|
else if (!$) {
|
|
850
|
-
const q = ee(
|
|
850
|
+
const q = ee(wo);
|
|
851
851
|
q && K(at, q(f, et, N, g, D));
|
|
852
852
|
}
|
|
853
853
|
}
|
|
@@ -886,9 +886,9 @@ const wo = () => {
|
|
|
886
886
|
I: !0
|
|
887
887
|
}), M(), A, I]);
|
|
888
888
|
};
|
|
889
|
-
},
|
|
889
|
+
}, Lo = (t, e, n, s, o, c) => {
|
|
890
890
|
let r, a, l, i, u, d = St, b = 0;
|
|
891
|
-
const [C, A] = Lt(), [H, I] = Lt(), [k, S] = Lt(100), [h, O] = Lt(100), [P, _] = Lt(100), [z, F] = Lt(() => b), [M, x] =
|
|
891
|
+
const [C, A] = Lt(), [H, I] = Lt(), [k, S] = Lt(100), [h, O] = Lt(100), [P, _] = Lt(100), [z, F] = Lt(() => b), [M, x] = Ho(t, o, s, ko(e, o, s)), { bt: y, Zt: T, Rt: w } = o, { Ft: $, Bt: V, Nt: X, jt: B } = M, U = (L) => {
|
|
892
892
|
$(tn, L, !0), $(tn, L, !1);
|
|
893
893
|
}, Y = (L, J) => {
|
|
894
894
|
if (F(), L)
|
|
@@ -919,22 +919,22 @@ const wo = () => {
|
|
|
919
919
|
return [() => R(ht, K(tt, x())), ({ Et: L, Tt: J, Gt: et, Qt: it }) => {
|
|
920
920
|
const { tn: f, nn: p, sn: v } = it || {}, { Ct: m, dt: g } = et || {}, { N: E } = n, { T: D } = yt(), { k: N, en: Z } = s, [rt, at] = L("showNativeOverlaidScrollbars"), [q, lt] = L("scrollbars.theme"), [Rt, j] = L("scrollbars.visibility"), [ct, ut] = L("scrollbars.autoHide"), [ft, ot] = L("scrollbars.autoHideSuspend"), [pt] = L("scrollbars.autoHideDelay"), [Mt, Ut] = L("scrollbars.dragScroll"), [Ot, Nt] = L("scrollbars.clickScroll"), [Ht, _e] = L("overflow"), kt = g && !J, De = Z.x || Z.y, ne = f || p || m || J, fe = v || j || _e, de = rt && D.x && D.y, se = (oe, Bt, vn) => {
|
|
921
921
|
const bn = oe.includes("scroll") && (Rt === "visible" || Rt === "auto" && Bt === "scroll");
|
|
922
|
-
return $(
|
|
922
|
+
return $(uo, bn, vn), bn;
|
|
923
923
|
};
|
|
924
924
|
if (b = pt, kt && (ft && De ? (U(!1), d(), P(() => {
|
|
925
925
|
d = nt(T, "scroll", R(U, !0), {
|
|
926
926
|
A: !0
|
|
927
927
|
});
|
|
928
|
-
})) : U(!0)), at && $(
|
|
928
|
+
})) : U(!0)), at && $(ro, de), lt && ($(u), $(q, !0), u = q), ot && !ft && U(!0), ut && (r = ct === "move", a = ct === "leave", l = ct !== "never", Y(!l, !0)), Ut && $(vo, Mt), Nt && $(po, Ot), fe) {
|
|
929
929
|
const oe = se(Ht.x, N.x, !0), Bt = se(Ht.y, N.y, !1);
|
|
930
|
-
$(
|
|
930
|
+
$(fo, !(oe && Bt));
|
|
931
931
|
}
|
|
932
|
-
ne && (V(), X(), B(), $(Dn, !Z.x, !0), $(Dn, !Z.y, !1), $(
|
|
932
|
+
ne && (V(), X(), B(), $(Dn, !Z.x, !0), $(Dn, !Z.y, !1), $(lo, E && !w));
|
|
933
933
|
}, {}, M];
|
|
934
|
-
},
|
|
934
|
+
}, _o = (t) => {
|
|
935
935
|
const e = yt(), { G: n, L: s } = e, { elements: o } = n(), { host: c, padding: r, viewport: a, content: l } = o, i = ce(t), u = i ? {} : t, { elements: d } = u, { host: b, padding: C, viewport: A, content: H } = d || {}, I = i ? t : u.target, k = We(I, "textarea"), S = I.ownerDocument, h = S.documentElement, O = I === S.body, P = S.defaultView, _ = () => S.activeElement, z = (j) => {
|
|
936
936
|
j && j.focus && j.focus();
|
|
937
|
-
}, F = R(
|
|
937
|
+
}, F = R(xo, [I]), M = R(Ss, [I]), x = R(dn, [I]), y = R(Gt, ""), T = R(F, y, a), w = R(M, y, l), $ = T(A), V = $ === I, X = V && O, B = !V && w(H), U = !V && ce($) && $ === B, Y = U && !!x(l), Q = Y ? T() : $, st = Y ? B : w(), L = X ? h : U ? Q : $, J = k ? F(y, c, b) : I, et = X ? L : J, it = U ? st : B, f = {
|
|
938
938
|
gt: I,
|
|
939
939
|
bt: et,
|
|
940
940
|
D: L,
|
|
@@ -950,7 +950,7 @@ const wo = () => {
|
|
|
950
950
|
Dt: i,
|
|
951
951
|
V,
|
|
952
952
|
an: U,
|
|
953
|
-
yt: (j) =>
|
|
953
|
+
yt: (j) => js(L, V ? vt : _t, j),
|
|
954
954
|
Ot: (j, ct) => be(L, V ? vt : _t, j, ct)
|
|
955
955
|
}, p = At(f).reduce((j, ct) => {
|
|
956
956
|
const ut = f[ct];
|
|
@@ -969,7 +969,7 @@ const wo = () => {
|
|
|
969
969
|
I: !0,
|
|
970
970
|
H: !1
|
|
971
971
|
}) : St, ft = ut(j);
|
|
972
|
-
if (gt(g, vt, V ? "viewport" : "host"), gt(E, Qe, ""), gt(N, Ln, ""), V || (gt(D, _t, ""), O && ie(h, vt,
|
|
972
|
+
if (gt(g, vt, V ? "viewport" : "host"), gt(E, Qe, ""), gt(N, Ln, ""), V || (gt(D, _t, ""), O && ie(h, vt, to)), rt && (gn(m, g), K(Z, () => {
|
|
973
973
|
gn(g, m), It(g);
|
|
974
974
|
})), bt(q, at), bt(g, E), bt(E || g, !V && D), bt(D, N), K(Z, [ft, () => {
|
|
975
975
|
const ot = _(), pt = ut(ot);
|
|
@@ -985,14 +985,14 @@ const wo = () => {
|
|
|
985
985
|
z(j);
|
|
986
986
|
return ft(), at = 0, lt;
|
|
987
987
|
}, lt];
|
|
988
|
-
},
|
|
988
|
+
}, Do = ({ wt: t }) => ({ Gt: e, un: n, Tt: s }) => {
|
|
989
989
|
const { xt: o } = e || {}, { $t: c } = n;
|
|
990
990
|
t && (o || s) && Jt(t, {
|
|
991
991
|
[Zt]: c && "100%"
|
|
992
992
|
});
|
|
993
|
-
},
|
|
993
|
+
}, Io = ({ bt: t, cn: e, D: n, V: s }, o) => {
|
|
994
994
|
const [c, r] = wt({
|
|
995
|
-
u:
|
|
995
|
+
u: Bs,
|
|
996
996
|
o: xn()
|
|
997
997
|
}, R(xn, t, "padding", ""));
|
|
998
998
|
return ({ Et: a, Gt: l, un: i, Tt: u }) => {
|
|
@@ -1025,7 +1025,7 @@ const wo = () => {
|
|
|
1025
1025
|
_n: P
|
|
1026
1026
|
};
|
|
1027
1027
|
};
|
|
1028
|
-
},
|
|
1028
|
+
}, Po = (t, e) => {
|
|
1029
1029
|
const n = yt(), { bt: s, cn: o, D: c, V: r, Ot: a, Rt: l, ln: i } = t, { L: u } = n, d = l && r, b = R(ve, 0), C = {
|
|
1030
1030
|
u: Jn,
|
|
1031
1031
|
o: {
|
|
@@ -1049,13 +1049,13 @@ const wo = () => {
|
|
|
1049
1049
|
};
|
|
1050
1050
|
}, [I, k] = wt(C, R(rn, c)), [S, h] = wt(C, R(Ze, c)), [O, P] = wt(C), [_, z] = wt(C), [F] = wt(A), M = ee(fn);
|
|
1051
1051
|
return ({ Et: x, Gt: y, un: T, Tt: w }, { _n: $ }) => {
|
|
1052
|
-
const { ht: V, Ht: X, Ct: B, zt: U } = y || {}, Y = M && M.M(t, e, T, n, x), { q: Q, W: st, X: tt } = Y || {}, [L, J] =
|
|
1052
|
+
const { ht: V, Ht: X, Ct: B, zt: U } = y || {}, Y = M && M.M(t, e, T, n, x), { q: Q, W: st, X: tt } = Y || {}, [L, J] = yo(x, n), [et, it] = x("overflow"), f = V || $ || X || B || U || J, p = we(et.x), v = we(et.y), m = p || v;
|
|
1053
1053
|
let g = k(w), E = h(w), D = P(w), N = z(w), Z;
|
|
1054
1054
|
if (J && u && a(bs, !L), f) {
|
|
1055
1055
|
m && a(Xt, !1);
|
|
1056
1056
|
const [Ot, Nt] = st ? st(Z) : [], [Ht, _e] = g = I(w), [kt, De] = E = S(w), ne = is(c), fe = kt, de = ne;
|
|
1057
1057
|
Ot && Ot(), (De || _e || J) && Nt && !L && Q && Q(Nt, kt, Ht);
|
|
1058
|
-
const se =
|
|
1058
|
+
const se = Zs(i), oe = {
|
|
1059
1059
|
w: b(ve(kt.w, fe.w) + Ht.w),
|
|
1060
1060
|
h: b(ve(kt.h, fe.h) + Ht.h)
|
|
1061
1061
|
}, Bt = {
|
|
@@ -1069,10 +1069,10 @@ const wo = () => {
|
|
|
1069
1069
|
y: q.h > 0
|
|
1070
1070
|
}, ot = p && v && (ft.x || ft.y) || p && ft.x && !ft.y || v && ft.y && !ft.x;
|
|
1071
1071
|
if ($ || B || U || ut || j || at || lt || it || J || f) {
|
|
1072
|
-
const Ot = {}, Nt =
|
|
1072
|
+
const Ot = {}, Nt = go(t, ft, et, Ot);
|
|
1073
1073
|
tt && tt(Nt, T, !!Q && Q(Nt, Rt, ct), Ot), r ? (gt(s, ds, Ot[Ee]), gt(s, ps, Ot[Ae])) : Jt(c, Ot);
|
|
1074
1074
|
}
|
|
1075
|
-
be(s, vt, vs, ot), be(o, Qe,
|
|
1075
|
+
be(s, vt, vs, ot), be(o, Qe, no, ot), r || be(c, _t, Xt, m);
|
|
1076
1076
|
const [Mt, Ut] = F(ws(t).k);
|
|
1077
1077
|
return G(e, {
|
|
1078
1078
|
k: Mt,
|
|
@@ -1091,8 +1091,8 @@ const wo = () => {
|
|
|
1091
1091
|
nn: lt
|
|
1092
1092
|
};
|
|
1093
1093
|
};
|
|
1094
|
-
},
|
|
1095
|
-
const [e, n, s] =
|
|
1094
|
+
}, Ro = (t) => {
|
|
1095
|
+
const [e, n, s] = _o(t), o = {
|
|
1096
1096
|
cn: {
|
|
1097
1097
|
t: 0,
|
|
1098
1098
|
r: 0,
|
|
@@ -1125,17 +1125,17 @@ const wo = () => {
|
|
|
1125
1125
|
x: !1,
|
|
1126
1126
|
y: !1
|
|
1127
1127
|
}
|
|
1128
|
-
}, { gt: c, D: r, V: a } = e, { L: l, T: i } = yt(), u = !l && (i.x || i.y), d = [
|
|
1128
|
+
}, { gt: c, D: r, V: a } = e, { L: l, T: i } = yt(), u = !l && (i.x || i.y), d = [Do(e), Io(e, o), Po(e, o)];
|
|
1129
1129
|
return [n, (b) => {
|
|
1130
1130
|
const C = {}, H = u && Qt(r), I = a ? ie(r, vt, Je) : St;
|
|
1131
1131
|
return W(d, (k) => {
|
|
1132
1132
|
G(C, k(b, C) || {});
|
|
1133
1133
|
}), I(), Pt(r, H), !a && Pt(c, 0), C;
|
|
1134
1134
|
}, o, e, s];
|
|
1135
|
-
},
|
|
1136
|
-
const o = kn(e, {}), [c, r, a, l, i] =
|
|
1135
|
+
}, Mo = (t, e, n, s) => {
|
|
1136
|
+
const o = kn(e, {}), [c, r, a, l, i] = Ro(t), [u, d, b] = Ao(l, a, o, (S) => {
|
|
1137
1137
|
k({}, S);
|
|
1138
|
-
}), [C, A, , H] =
|
|
1138
|
+
}), [C, A, , H] = Lo(t, e, b, a, l, s), I = (S) => At(S).some((h) => !!S[h]), k = (S, h) => {
|
|
1139
1139
|
const { dn: O, Tt: P, At: _, vn: z } = S, F = O || {}, M = !!P, x = {
|
|
1140
1140
|
Et: kn(e, F, M),
|
|
1141
1141
|
dn: F,
|
|
@@ -1174,11 +1174,11 @@ const wo = () => {
|
|
|
1174
1174
|
if (e && !r) {
|
|
1175
1175
|
let a = !1;
|
|
1176
1176
|
const l = [], i = {}, u = (x) => {
|
|
1177
|
-
const y = ns(x), T = ee(
|
|
1177
|
+
const y = ns(x), T = ee(mo);
|
|
1178
1178
|
return T ? T(y, !0) : y;
|
|
1179
1179
|
}, d = G({}, s(), u(e)), [b, C, A] = Ke(), [H, I, k] = Ke(n), S = (x, y) => {
|
|
1180
1180
|
k(x, y), A(x, y);
|
|
1181
|
-
}, [h, O, P, _, z] =
|
|
1181
|
+
}, [h, O, P, _, z] = Mo(t, d, ({ dn: x, Tt: y }, { Gt: T, Qt: w }) => {
|
|
1182
1182
|
const { ht: $, Ct: V, xt: X, Ht: B, It: U, dt: Y } = T, { tn: Q, nn: st, sn: tt } = w;
|
|
1183
1183
|
S("updated", [M, {
|
|
1184
1184
|
updateHints: {
|
|
@@ -1196,7 +1196,7 @@ const wo = () => {
|
|
|
1196
1196
|
force: !!y
|
|
1197
1197
|
}]);
|
|
1198
1198
|
}, (x) => S("scroll", [M, x])), F = (x) => {
|
|
1199
|
-
|
|
1199
|
+
$o(c), ht(l), a = !0, S("destroyed", [M, x]), C(), I();
|
|
1200
1200
|
}, M = {
|
|
1201
1201
|
options(x, y) {
|
|
1202
1202
|
if (x) {
|
|
@@ -1262,13 +1262,13 @@ const wo = () => {
|
|
|
1262
1262
|
destroy: R(F, !1),
|
|
1263
1263
|
plugin: (x) => i[At(x)[0]]
|
|
1264
1264
|
};
|
|
1265
|
-
return K(l, [z]),
|
|
1265
|
+
return K(l, [z]), Co(c, M), gs(hs, te, [M, b, i]), Oo(_.gn.Rt, !o && t.cancel) ? (F(!0), M) : (K(l, h()), S("initialized", [M]), M.update(!0), M);
|
|
1266
1266
|
}
|
|
1267
1267
|
return r;
|
|
1268
1268
|
};
|
|
1269
1269
|
te.plugin = (t) => {
|
|
1270
1270
|
const e = xt(t), n = e ? t : [t], s = n.map((o) => gs(o, te)[0]);
|
|
1271
|
-
return
|
|
1271
|
+
return bo(n), e ? s : s[0];
|
|
1272
1272
|
};
|
|
1273
1273
|
te.valid = (t) => {
|
|
1274
1274
|
const e = t && t.elements, n = Tt(e) && e();
|
|
@@ -1290,19 +1290,19 @@ te.env = () => {
|
|
|
1290
1290
|
setDefaultOptions: u
|
|
1291
1291
|
});
|
|
1292
1292
|
};
|
|
1293
|
-
const
|
|
1293
|
+
const No = async (t, e) => {
|
|
1294
1294
|
let n = t;
|
|
1295
1295
|
return e.target && (typeof e.target == "string" && (n = e.target), typeof e.target == "function" && (n = await e.target(t))), n;
|
|
1296
|
-
},
|
|
1296
|
+
}, Vo = (t, e) => {
|
|
1297
1297
|
let n = !0;
|
|
1298
1298
|
if (e.visible !== void 0 && (typeof e.visible == "function" ? n = e.visible(t) : n = e.visible), n === !1) return { x: "hidden", y: "hidden" };
|
|
1299
1299
|
let s = !0, o = !0;
|
|
1300
1300
|
return e.x !== void 0 && (typeof e.x == "function" ? s = e.x(t) : s = e.x), e.y !== void 0 && (typeof e.y == "function" ? o = e.y(t) : o = e.y), { x: s ? "scroll" : "hidden", y: o ? "scroll" : "hidden" };
|
|
1301
|
-
},
|
|
1301
|
+
}, Jo = {
|
|
1302
1302
|
mounted: async (t, e, n) => {
|
|
1303
|
-
const s = (n ? e.value : e) || {}, o = await
|
|
1303
|
+
const s = (n ? e.value : e) || {}, o = await No(t, s);
|
|
1304
1304
|
if (!o) return;
|
|
1305
|
-
const c =
|
|
1305
|
+
const c = Vo(o, s), r = "os-theme-dark das-scrollbar", a = s != null && s.className ? `${r} ${s == null ? void 0 : s.className}` : r, l = te(o, {
|
|
1306
1306
|
scrollbars: {
|
|
1307
1307
|
autoHide: "leave",
|
|
1308
1308
|
// 鼠标移开自动隐藏
|
|
@@ -1318,7 +1318,7 @@ const Mo = async (t, e) => {
|
|
|
1318
1318
|
s && s.scrollReady && s.scrollReady(l);
|
|
1319
1319
|
}
|
|
1320
1320
|
};
|
|
1321
|
-
function
|
|
1321
|
+
function zo(t, e) {
|
|
1322
1322
|
if (!t || !e.value) return;
|
|
1323
1323
|
let n = null, s = null;
|
|
1324
1324
|
n = new MutationObserver((c) => {
|
|
@@ -1340,7 +1340,7 @@ function Vo(t, e) {
|
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
1342
|
let Mn = 0;
|
|
1343
|
-
function
|
|
1343
|
+
function Fo(t, e) {
|
|
1344
1344
|
if (!t || !e.value) return;
|
|
1345
1345
|
let n = null, s = null;
|
|
1346
1346
|
n = new MutationObserver((c) => {
|
|
@@ -1364,7 +1364,7 @@ function zo(t, e) {
|
|
|
1364
1364
|
n && n.disconnect();
|
|
1365
1365
|
});
|
|
1366
1366
|
}
|
|
1367
|
-
const
|
|
1367
|
+
const Uo = /* @__PURE__ */ Ts({
|
|
1368
1368
|
__name: "scrollbar",
|
|
1369
1369
|
props: {
|
|
1370
1370
|
wrapClass: { default: "" },
|
|
@@ -1389,23 +1389,23 @@ const Fo = /* @__PURE__ */ $s({
|
|
|
1389
1389
|
};
|
|
1390
1390
|
return u.display === "flex" ? u : {};
|
|
1391
1391
|
}
|
|
1392
|
-
const o = Ie(1), c =
|
|
1392
|
+
const o = Ie(1), c = Es(() => ({
|
|
1393
1393
|
"--das-ui-scrollbar-z-index": o.value
|
|
1394
1394
|
})), r = Ie("");
|
|
1395
|
-
return
|
|
1396
|
-
r.value = `das-scrollbar-pro-${parseInt(Math.random() * 1e8)}`,
|
|
1395
|
+
return As(() => {
|
|
1396
|
+
r.value = `das-scrollbar-pro-${parseInt(Math.random() * 1e8)}`, Ps(r.value, [
|
|
1397
1397
|
{
|
|
1398
1398
|
className: `.${r.value} .das-scrollbar-pro-wrap .inherit-scrollbar-parent-flex`,
|
|
1399
1399
|
style: s(n.value.wrapRef.parentNode.parentNode)
|
|
1400
1400
|
}
|
|
1401
|
-
]), o.value =
|
|
1401
|
+
]), o.value = Ms().nextZIndex();
|
|
1402
1402
|
const l = n.value.wrapRef;
|
|
1403
|
-
|
|
1403
|
+
Fo(l, n), zo(l, n);
|
|
1404
1404
|
}), e({
|
|
1405
1405
|
setScrollTop: (l) => {
|
|
1406
1406
|
n.value && n.value.setScrollTop(l);
|
|
1407
1407
|
}
|
|
1408
|
-
}), (l, i) => (
|
|
1408
|
+
}), (l, i) => (ks(), Hs(Ls(Rs), _s({
|
|
1409
1409
|
ref_key: "scrollbarRef",
|
|
1410
1410
|
ref: n,
|
|
1411
1411
|
class: "das-scrollbar-pro " + r.value
|
|
@@ -1414,20 +1414,22 @@ const Fo = /* @__PURE__ */ $s({
|
|
|
1414
1414
|
"view-class": "das-scrollbar-pro-view inherit-scrollbar-parent-flex" + l.viewClass,
|
|
1415
1415
|
style: c.value
|
|
1416
1416
|
}), {
|
|
1417
|
-
default:
|
|
1418
|
-
|
|
1417
|
+
default: Ds(() => [
|
|
1418
|
+
Is(l.$slots, "default", {}, void 0, !0)
|
|
1419
1419
|
]),
|
|
1420
1420
|
_: 3
|
|
1421
1421
|
/* FORWARDED */
|
|
1422
1422
|
}, 16, ["class", "wrap-class", "view-class", "style"]));
|
|
1423
1423
|
}
|
|
1424
|
-
}),
|
|
1424
|
+
}), Bo = (t, e) => {
|
|
1425
1425
|
const n = t.__vccOpts || t;
|
|
1426
1426
|
for (const [s, o] of e)
|
|
1427
1427
|
n[s] = o;
|
|
1428
1428
|
return n;
|
|
1429
|
-
},
|
|
1429
|
+
}, jo = /* @__PURE__ */ Bo(Uo, [["__scopeId", "data-v-aa6dac15"]]);
|
|
1430
|
+
Cs();
|
|
1431
|
+
const Qo = $s(jo);
|
|
1430
1432
|
export {
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
+
Qo as DasScrollbar,
|
|
1434
|
+
Jo as vScrollbar
|
|
1433
1435
|
};
|
|
Binary file
|