@harbour-enterprises/superdoc 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{super-editor.es-Bqp77LuU.cjs → super-editor.es-D0Bj3H0y.cjs} +74 -74
- package/dist/chunks/{super-editor.es-uFc1kYwr.es.js → super-editor.es-DdXT1Lwa.es.js} +4015 -4005
- package/dist/style.css +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Cid1Ewvn.js → converter-BvrQjifE.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CldOGPZ9.js → docx-zipper-BQzDBjLr.js} +1 -1
- package/dist/super-editor/chunks/{editor-DfsXlTev.js → editor-yOwh2oO-.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-1h7-NG3P.js → toolbar-ByMDVR2X.js} +964 -958
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +242 -238
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +1520 -1510
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { x as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor-
|
|
1
|
+
import { computed as I, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as P, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as E, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
|
|
2
|
+
import { x as rn } from "./converter-BvrQjifE.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor-yOwh2oO-.js";
|
|
4
4
|
const O0 = (e, t) => {
|
|
5
5
|
let n = e.replace(/[^0-9.]/g, "");
|
|
6
6
|
return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
|
|
@@ -10,10 +10,10 @@ const O0 = (e, t) => {
|
|
|
10
10
|
const a = function() {
|
|
11
11
|
l = n.leading === !1 ? 0 : Date.now(), r = null, s = e.apply(o, i), r || (o = i = null);
|
|
12
12
|
}, c = function() {
|
|
13
|
-
const
|
|
14
|
-
!l && n.leading === !1 && (l =
|
|
15
|
-
const h = t - (
|
|
16
|
-
return o = this, i = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l =
|
|
13
|
+
const u = Date.now();
|
|
14
|
+
!l && n.leading === !1 && (l = u);
|
|
15
|
+
const h = t - (u - l);
|
|
16
|
+
return o = this, i = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = u, s = e.apply(o, i), r || (o = i = null)) : !r && n.trailing !== !1 && (r = setTimeout(a, h)), s;
|
|
17
17
|
};
|
|
18
18
|
return c.cancel = function() {
|
|
19
19
|
clearTimeout(r), l = 0, r = o = i = null;
|
|
@@ -94,10 +94,10 @@ const O0 = (e, t) => {
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
const t = e, n =
|
|
97
|
+
const t = e, n = I(() => {
|
|
98
98
|
if (t.name === "color") return { backgroundColor: t.color || "#111111" };
|
|
99
99
|
if (t.name === "highlight") return { backgroundColor: t.color || "#D6D6D6" };
|
|
100
|
-
}), r =
|
|
100
|
+
}), r = I(() => ["color", "highlight"].includes(t.name));
|
|
101
101
|
return (o, i) => (q(), ie("div", Vl, [
|
|
102
102
|
Ot("div", {
|
|
103
103
|
class: en(["toolbar-icon__icon", [`toolbar-icon__icon--${t.name}`]]),
|
|
@@ -150,30 +150,30 @@ const O0 = (e, t) => {
|
|
|
150
150
|
label: l,
|
|
151
151
|
hideLabel: a,
|
|
152
152
|
iconColor: c,
|
|
153
|
-
hasCaret:
|
|
153
|
+
hasCaret: u,
|
|
154
154
|
disabled: h,
|
|
155
155
|
inlineTextInputVisible: p,
|
|
156
|
-
hasInlineTextInput:
|
|
157
|
-
minWidth:
|
|
158
|
-
style:
|
|
156
|
+
hasInlineTextInput: b,
|
|
157
|
+
minWidth: d,
|
|
158
|
+
style: m,
|
|
159
159
|
attributes: v
|
|
160
|
-
} = r.toolbarItem,
|
|
161
|
-
|
|
162
|
-
},
|
|
163
|
-
n("textSubmit",
|
|
164
|
-
},
|
|
160
|
+
} = r.toolbarItem, f = P(r.defaultLabel), F = P(null), A = () => {
|
|
161
|
+
b && (F.value?.focus(), F.value?.select()), n("buttonClick");
|
|
162
|
+
}, x = () => {
|
|
163
|
+
n("textSubmit", f.value), f.value = "";
|
|
164
|
+
}, w = I(() => m.value ? m.value : {
|
|
165
165
|
minWidth: r.minWidth
|
|
166
|
-
}),
|
|
167
|
-
let { value: z } =
|
|
168
|
-
|
|
169
|
-
}, g =
|
|
170
|
-
return (
|
|
166
|
+
}), _ = (y) => {
|
|
167
|
+
let { value: z } = y.target;
|
|
168
|
+
f.value = z.replace(/[^0-9]/g, "");
|
|
169
|
+
}, g = I(() => i.value ? Gr.dropdownCaretUp : Gr.dropdownCaretDown);
|
|
170
|
+
return (y, z) => (q(), ie("div", {
|
|
171
171
|
class: en(["toolbar-item", W(v).className]),
|
|
172
|
-
style: Tt(
|
|
172
|
+
style: Tt(w.value)
|
|
173
173
|
}, [
|
|
174
174
|
Ot("div", {
|
|
175
|
-
onClick:
|
|
176
|
-
class: en(["toolbar-button", { active: W(i), disabled: W(h), narrow: e.isNarrow, wide: e.isWide, "has-inline-text-input": W(
|
|
175
|
+
onClick: A,
|
|
176
|
+
class: en(["toolbar-button", { active: W(i), disabled: W(h), narrow: e.isNarrow, wide: e.isWide, "has-inline-text-input": W(b) }]),
|
|
177
177
|
"data-item": `btn-${W(o) || ""}`
|
|
178
178
|
}, [
|
|
179
179
|
W(s) ? (q(), Ge(Xl, {
|
|
@@ -187,34 +187,34 @@ const O0 = (e, t) => {
|
|
|
187
187
|
W(p) ? (q(), ie("span", Zl, [
|
|
188
188
|
W(o) === "fontSize" ? ft((q(), ie("input", {
|
|
189
189
|
key: 0,
|
|
190
|
-
"onUpdate:modelValue": z[0] || (z[0] = (
|
|
191
|
-
onInput:
|
|
190
|
+
"onUpdate:modelValue": z[0] || (z[0] = (C) => f.value = C),
|
|
191
|
+
onInput: _,
|
|
192
192
|
placeholder: W(l),
|
|
193
|
-
onKeydown: Hr(jr(
|
|
193
|
+
onKeydown: Hr(jr(x, ["prevent"]), ["enter"]),
|
|
194
194
|
type: "text",
|
|
195
195
|
class: "button-text-input",
|
|
196
196
|
id: "inlineTextInput-" + W(o),
|
|
197
197
|
autoccomplete: "off",
|
|
198
198
|
ref_key: "inlineInput",
|
|
199
|
-
ref:
|
|
199
|
+
ref: F
|
|
200
200
|
}, null, 40, Jl)), [
|
|
201
|
-
[Wr,
|
|
201
|
+
[Wr, f.value]
|
|
202
202
|
]) : ft((q(), ie("input", {
|
|
203
203
|
key: 1,
|
|
204
|
-
"onUpdate:modelValue": z[1] || (z[1] = (
|
|
204
|
+
"onUpdate:modelValue": z[1] || (z[1] = (C) => f.value = C),
|
|
205
205
|
placeholder: W(l),
|
|
206
|
-
onKeydown: Hr(jr(
|
|
206
|
+
onKeydown: Hr(jr(x, ["prevent"]), ["enter"]),
|
|
207
207
|
type: "text",
|
|
208
208
|
class: "button-text-input",
|
|
209
209
|
id: "inlineTextInput-" + W(o),
|
|
210
210
|
autoccomplete: "off",
|
|
211
211
|
ref_key: "inlineInput",
|
|
212
|
-
ref:
|
|
212
|
+
ref: F
|
|
213
213
|
}, null, 40, Ql)), [
|
|
214
|
-
[Wr,
|
|
214
|
+
[Wr, f.value]
|
|
215
215
|
])
|
|
216
216
|
])) : he("", !0),
|
|
217
|
-
W(
|
|
217
|
+
W(u) ? (q(), ie("div", {
|
|
218
218
|
key: 3,
|
|
219
219
|
class: "dropdown-caret",
|
|
220
220
|
innerHTML: g.value,
|
|
@@ -253,7 +253,7 @@ const O0 = (e, t) => {
|
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
setup(e) {
|
|
256
|
-
const { proxy: t } = Lt(), n = e, r =
|
|
256
|
+
const { proxy: t } = Lt(), n = e, r = P(!1), o = I(() => ({
|
|
257
257
|
...n.toolbarItem,
|
|
258
258
|
active: r
|
|
259
259
|
})), i = () => {
|
|
@@ -281,78 +281,78 @@ const O0 = (e, t) => {
|
|
|
281
281
|
function ua(e) {
|
|
282
282
|
let t = ".", n = "__", r = "--", o;
|
|
283
283
|
if (e) {
|
|
284
|
-
let
|
|
285
|
-
|
|
284
|
+
let d = e.blockPrefix;
|
|
285
|
+
d && (t = d), d = e.elementPrefix, d && (n = d), d = e.modifierPrefix, d && (r = d);
|
|
286
286
|
}
|
|
287
287
|
const i = {
|
|
288
|
-
install(
|
|
289
|
-
o =
|
|
290
|
-
const
|
|
291
|
-
|
|
288
|
+
install(d) {
|
|
289
|
+
o = d.c;
|
|
290
|
+
const m = d.context;
|
|
291
|
+
m.bem = {}, m.bem.b = null, m.bem.els = null;
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
function s(
|
|
295
|
-
let
|
|
294
|
+
function s(d) {
|
|
295
|
+
let m, v;
|
|
296
296
|
return {
|
|
297
|
-
before(
|
|
298
|
-
|
|
297
|
+
before(f) {
|
|
298
|
+
m = f.bem.b, v = f.bem.els, f.bem.els = null;
|
|
299
299
|
},
|
|
300
|
-
after(
|
|
301
|
-
|
|
300
|
+
after(f) {
|
|
301
|
+
f.bem.b = m, f.bem.els = v;
|
|
302
302
|
},
|
|
303
|
-
$({ context:
|
|
304
|
-
return
|
|
303
|
+
$({ context: f, props: F }) {
|
|
304
|
+
return d = typeof d == "string" ? d : d({ context: f, props: F }), f.bem.b = d, `${F?.bPrefix || t}${f.bem.b}`;
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
function l(
|
|
309
|
-
let
|
|
308
|
+
function l(d) {
|
|
309
|
+
let m;
|
|
310
310
|
return {
|
|
311
311
|
before(v) {
|
|
312
|
-
|
|
312
|
+
m = v.bem.els;
|
|
313
313
|
},
|
|
314
314
|
after(v) {
|
|
315
|
-
v.bem.els =
|
|
315
|
+
v.bem.els = m;
|
|
316
316
|
},
|
|
317
|
-
$({ context: v, props:
|
|
318
|
-
return
|
|
317
|
+
$({ context: v, props: f }) {
|
|
318
|
+
return d = typeof d == "string" ? d : d({ context: v, props: f }), v.bem.els = d.split(",").map((F) => F.trim()), v.bem.els.map((F) => `${f?.bPrefix || t}${v.bem.b}${n}${F}`).join(", ");
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function a(
|
|
322
|
+
function a(d) {
|
|
323
323
|
return {
|
|
324
|
-
$({ context:
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
function
|
|
328
|
-
return
|
|
324
|
+
$({ context: m, props: v }) {
|
|
325
|
+
d = typeof d == "string" ? d : d({ context: m, props: v });
|
|
326
|
+
const f = d.split(",").map((x) => x.trim());
|
|
327
|
+
function F(x) {
|
|
328
|
+
return f.map((w) => `&${v?.bPrefix || t}${m.bem.b}${x !== void 0 ? `${n}${x}` : ""}${r}${w}`).join(", ");
|
|
329
329
|
}
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
if (rn.env.NODE_ENV !== "production" &&
|
|
333
|
-
throw Error(`[css-render/plugin-bem]: m(${
|
|
334
|
-
return
|
|
330
|
+
const A = m.bem.els;
|
|
331
|
+
if (A !== null) {
|
|
332
|
+
if (rn.env.NODE_ENV !== "production" && A.length >= 2)
|
|
333
|
+
throw Error(`[css-render/plugin-bem]: m(${d}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
334
|
+
return F(A[0]);
|
|
335
335
|
} else
|
|
336
|
-
return
|
|
336
|
+
return F();
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
function c(
|
|
340
|
+
function c(d) {
|
|
341
341
|
return {
|
|
342
|
-
$({ context:
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
if (rn.env.NODE_ENV !== "production" &&
|
|
346
|
-
throw Error(`[css-render/plugin-bem]: notM(${
|
|
347
|
-
return `&:not(${v?.bPrefix || t}${
|
|
342
|
+
$({ context: m, props: v }) {
|
|
343
|
+
d = typeof d == "string" ? d : d({ context: m, props: v });
|
|
344
|
+
const f = m.bem.els;
|
|
345
|
+
if (rn.env.NODE_ENV !== "production" && f !== null && f.length >= 2)
|
|
346
|
+
throw Error(`[css-render/plugin-bem]: notM(${d}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
347
|
+
return `&:not(${v?.bPrefix || t}${m.bem.b}${f !== null && f.length > 0 ? `${n}${f[0]}` : ""}${r}${d})`;
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
return Object.assign(i, {
|
|
352
|
-
cB: (...
|
|
353
|
-
cE: (...
|
|
354
|
-
cM: (...
|
|
355
|
-
cNotM: (...
|
|
352
|
+
cB: (...d) => o(s(d[0]), d[1], d[2]),
|
|
353
|
+
cE: (...d) => o(l(d[0]), d[1], d[2]),
|
|
354
|
+
cM: (...d) => o(a(d[0]), d[1], d[2]),
|
|
355
|
+
cNotM: (...d) => o(c(d[0]), d[1], d[2])
|
|
356
356
|
}), i;
|
|
357
357
|
}
|
|
358
358
|
function da(e) {
|
|
@@ -508,8 +508,8 @@ function ai(e, t, n, r, o) {
|
|
|
508
508
|
props: o
|
|
509
509
|
}, (c) => {
|
|
510
510
|
if (typeof c == "string") {
|
|
511
|
-
const
|
|
512
|
-
n.push(
|
|
511
|
+
const u = qr(l, { raw: c }, r, o);
|
|
512
|
+
n.push(u);
|
|
513
513
|
} else
|
|
514
514
|
ai(c, t, n, r, o);
|
|
515
515
|
}), t.pop(), s && n.push("}"), i && i.after && i.after(r.context);
|
|
@@ -559,12 +559,12 @@ function Sa(e, t, n, r, o, i, s, l, a) {
|
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
561
|
l === void 0 && (l = document.head);
|
|
562
|
-
const
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
565
|
-
const h =
|
|
566
|
-
if (c === void 0 && (c = t.render(r)), h.textContent = c,
|
|
567
|
-
return
|
|
562
|
+
const u = gn(n, l);
|
|
563
|
+
if (u !== null && !i)
|
|
564
|
+
return u;
|
|
565
|
+
const h = u ?? ga(n);
|
|
566
|
+
if (c === void 0 && (c = t.render(r)), h.textContent = c, u !== null)
|
|
567
|
+
return u;
|
|
568
568
|
if (s) {
|
|
569
569
|
const p = l.querySelector(`meta[name="${s}"]`);
|
|
570
570
|
if (p)
|
|
@@ -1057,149 +1057,149 @@ function ec() {
|
|
|
1057
1057
|
function r() {
|
|
1058
1058
|
e.set(this, !0), t.set(this, !0);
|
|
1059
1059
|
}
|
|
1060
|
-
function o(g,
|
|
1061
|
-
const
|
|
1062
|
-
return g[
|
|
1063
|
-
return z.apply(g, arguments),
|
|
1060
|
+
function o(g, y, z) {
|
|
1061
|
+
const C = g[y];
|
|
1062
|
+
return g[y] = function() {
|
|
1063
|
+
return z.apply(g, arguments), C.apply(g, arguments);
|
|
1064
1064
|
}, g;
|
|
1065
1065
|
}
|
|
1066
|
-
function i(g,
|
|
1067
|
-
g[
|
|
1066
|
+
function i(g, y) {
|
|
1067
|
+
g[y] = Event.prototype[y];
|
|
1068
1068
|
}
|
|
1069
1069
|
const s = /* @__PURE__ */ new WeakMap(), l = Object.getOwnPropertyDescriptor(Event.prototype, "currentTarget");
|
|
1070
1070
|
function a() {
|
|
1071
1071
|
var g;
|
|
1072
1072
|
return (g = s.get(this)) !== null && g !== void 0 ? g : null;
|
|
1073
1073
|
}
|
|
1074
|
-
function c(g,
|
|
1074
|
+
function c(g, y) {
|
|
1075
1075
|
l !== void 0 && Object.defineProperty(g, "currentTarget", {
|
|
1076
1076
|
configurable: !0,
|
|
1077
1077
|
enumerable: !0,
|
|
1078
|
-
get:
|
|
1078
|
+
get: y ?? l.get
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
|
-
const
|
|
1081
|
+
const u = {
|
|
1082
1082
|
bubble: {},
|
|
1083
1083
|
capture: {}
|
|
1084
1084
|
}, h = {};
|
|
1085
1085
|
function p() {
|
|
1086
|
-
const g = function(
|
|
1087
|
-
const { type: z, eventPhase:
|
|
1088
|
-
if (
|
|
1086
|
+
const g = function(y) {
|
|
1087
|
+
const { type: z, eventPhase: C, bubbles: N } = y, M = Yt(y);
|
|
1088
|
+
if (C === 2)
|
|
1089
1089
|
return;
|
|
1090
|
-
const k =
|
|
1091
|
-
let
|
|
1092
|
-
const
|
|
1093
|
-
for (;
|
|
1094
|
-
|
|
1095
|
-
const
|
|
1096
|
-
if (o(
|
|
1097
|
-
if (
|
|
1090
|
+
const k = C === 1 ? "capture" : "bubble";
|
|
1091
|
+
let L = M;
|
|
1092
|
+
const S = [];
|
|
1093
|
+
for (; L === null && (L = window), S.push(L), L !== window; )
|
|
1094
|
+
L = L.parentNode || null;
|
|
1095
|
+
const R = u.capture[z], T = u.bubble[z];
|
|
1096
|
+
if (o(y, "stopPropagation", n), o(y, "stopImmediatePropagation", r), c(y, a), k === "capture") {
|
|
1097
|
+
if (R === void 0)
|
|
1098
1098
|
return;
|
|
1099
|
-
for (let j =
|
|
1100
|
-
const V =
|
|
1099
|
+
for (let j = S.length - 1; j >= 0 && !e.has(y); --j) {
|
|
1100
|
+
const V = S[j], U = R.get(V);
|
|
1101
1101
|
if (U !== void 0) {
|
|
1102
|
-
s.set(
|
|
1102
|
+
s.set(y, V);
|
|
1103
1103
|
for (const ue of U) {
|
|
1104
|
-
if (t.has(
|
|
1104
|
+
if (t.has(y))
|
|
1105
1105
|
break;
|
|
1106
|
-
ue(
|
|
1106
|
+
ue(y);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
if (j === 0 && !N && T !== void 0) {
|
|
1110
1110
|
const ue = T.get(V);
|
|
1111
1111
|
if (ue !== void 0)
|
|
1112
1112
|
for (const ge of ue) {
|
|
1113
|
-
if (t.has(
|
|
1113
|
+
if (t.has(y))
|
|
1114
1114
|
break;
|
|
1115
|
-
ge(
|
|
1115
|
+
ge(y);
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
1119
|
} else if (k === "bubble") {
|
|
1120
1120
|
if (T === void 0)
|
|
1121
1121
|
return;
|
|
1122
|
-
for (let j = 0; j <
|
|
1123
|
-
const V =
|
|
1122
|
+
for (let j = 0; j < S.length && !e.has(y); ++j) {
|
|
1123
|
+
const V = S[j], U = T.get(V);
|
|
1124
1124
|
if (U !== void 0) {
|
|
1125
|
-
s.set(
|
|
1125
|
+
s.set(y, V);
|
|
1126
1126
|
for (const ue of U) {
|
|
1127
|
-
if (t.has(
|
|
1127
|
+
if (t.has(y))
|
|
1128
1128
|
break;
|
|
1129
|
-
ue(
|
|
1129
|
+
ue(y);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
i(
|
|
1134
|
+
i(y, "stopPropagation"), i(y, "stopImmediatePropagation"), c(y);
|
|
1135
1135
|
};
|
|
1136
1136
|
return g.displayName = "evtdUnifiedHandler", g;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
const g = function(
|
|
1140
|
-
const { type: z, eventPhase:
|
|
1141
|
-
if (
|
|
1138
|
+
function b() {
|
|
1139
|
+
const g = function(y) {
|
|
1140
|
+
const { type: z, eventPhase: C } = y;
|
|
1141
|
+
if (C !== 2)
|
|
1142
1142
|
return;
|
|
1143
1143
|
const N = h[z];
|
|
1144
|
-
N !== void 0 && N.forEach((M) => M(
|
|
1144
|
+
N !== void 0 && N.forEach((M) => M(y));
|
|
1145
1145
|
};
|
|
1146
1146
|
return g.displayName = "evtdUnifiedWindowEventHandler", g;
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1149
|
-
function v(g,
|
|
1150
|
-
const z =
|
|
1151
|
-
return z[
|
|
1148
|
+
const d = p(), m = b();
|
|
1149
|
+
function v(g, y) {
|
|
1150
|
+
const z = u[g];
|
|
1151
|
+
return z[y] === void 0 && (z[y] = /* @__PURE__ */ new Map(), window.addEventListener(y, d, g === "capture")), z[y];
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return h[g] === void 0 && (h[g] = /* @__PURE__ */ new Set(), window.addEventListener(g,
|
|
1153
|
+
function f(g) {
|
|
1154
|
+
return h[g] === void 0 && (h[g] = /* @__PURE__ */ new Set(), window.addEventListener(g, m)), h[g];
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1157
|
-
let z = g.get(
|
|
1158
|
-
return z === void 0 && g.set(
|
|
1156
|
+
function F(g, y) {
|
|
1157
|
+
let z = g.get(y);
|
|
1158
|
+
return z === void 0 && g.set(y, z = /* @__PURE__ */ new Set()), z;
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1161
|
-
const N =
|
|
1160
|
+
function A(g, y, z, C) {
|
|
1161
|
+
const N = u[y][z];
|
|
1162
1162
|
if (N !== void 0) {
|
|
1163
1163
|
const M = N.get(g);
|
|
1164
|
-
if (M !== void 0 && M.has(
|
|
1164
|
+
if (M !== void 0 && M.has(C))
|
|
1165
1165
|
return !0;
|
|
1166
1166
|
}
|
|
1167
1167
|
return !1;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function x(g, y) {
|
|
1170
1170
|
const z = h[g];
|
|
1171
|
-
return !!(z !== void 0 && z.has(
|
|
1171
|
+
return !!(z !== void 0 && z.has(y));
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function w(g, y, z, C) {
|
|
1174
1174
|
let N;
|
|
1175
|
-
if (typeof
|
|
1176
|
-
|
|
1177
|
-
} : N = z, Ja(g,
|
|
1175
|
+
if (typeof C == "object" && C.once === !0 ? N = (R) => {
|
|
1176
|
+
_(g, y, N, C), z(R);
|
|
1177
|
+
} : N = z, Ja(g, y, N, C))
|
|
1178
1178
|
return;
|
|
1179
|
-
const k =
|
|
1180
|
-
if (
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1179
|
+
const k = C === !0 || typeof C == "object" && C.capture === !0 ? "capture" : "bubble", L = v(k, g), S = F(L, y);
|
|
1180
|
+
if (S.has(N) || S.add(N), y === window) {
|
|
1181
|
+
const R = f(g);
|
|
1182
|
+
R.has(N) || R.add(N);
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
if (Qa(g,
|
|
1185
|
+
function _(g, y, z, C) {
|
|
1186
|
+
if (Qa(g, y, z, C))
|
|
1187
1187
|
return;
|
|
1188
|
-
const M =
|
|
1189
|
-
if (
|
|
1188
|
+
const M = C === !0 || typeof C == "object" && C.capture === !0, k = M ? "capture" : "bubble", L = v(k, g), S = F(L, y);
|
|
1189
|
+
if (y === window && !A(y, M ? "bubble" : "capture", g, z) && x(g, z)) {
|
|
1190
1190
|
const T = h[g];
|
|
1191
|
-
T.delete(z), T.size === 0 && (window.removeEventListener(g,
|
|
1191
|
+
T.delete(z), T.size === 0 && (window.removeEventListener(g, m), h[g] = void 0);
|
|
1192
1192
|
}
|
|
1193
|
-
|
|
1193
|
+
S.has(z) && S.delete(z), S.size === 0 && L.delete(y), L.size === 0 && (window.removeEventListener(g, d, k === "capture"), u[k][g] = void 0);
|
|
1194
1194
|
}
|
|
1195
1195
|
return {
|
|
1196
|
-
on:
|
|
1197
|
-
off:
|
|
1196
|
+
on: w,
|
|
1197
|
+
off: _
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
1200
|
const { on: oe, off: J } = ec();
|
|
1201
1201
|
function tc(e) {
|
|
1202
|
-
const t =
|
|
1202
|
+
const t = P(!!e.value);
|
|
1203
1203
|
if (t.value)
|
|
1204
1204
|
return tn(t);
|
|
1205
1205
|
const n = we(e, (r) => {
|
|
@@ -1208,7 +1208,7 @@ function tc(e) {
|
|
|
1208
1208
|
return tn(t);
|
|
1209
1209
|
}
|
|
1210
1210
|
function Te(e) {
|
|
1211
|
-
const t =
|
|
1211
|
+
const t = I(e), n = P(t.value);
|
|
1212
1212
|
return we(t, (r) => {
|
|
1213
1213
|
n.value = r;
|
|
1214
1214
|
}), typeof e == "function" ? n : {
|
|
@@ -1248,16 +1248,16 @@ function ic(e) {
|
|
|
1248
1248
|
function wi(e, t) {
|
|
1249
1249
|
return we(e, (n) => {
|
|
1250
1250
|
n !== void 0 && (t.value = n);
|
|
1251
|
-
}),
|
|
1251
|
+
}), I(() => e.value === void 0 ? t.value : e.value);
|
|
1252
1252
|
}
|
|
1253
1253
|
function yi() {
|
|
1254
|
-
const e =
|
|
1254
|
+
const e = P(!1);
|
|
1255
1255
|
return Ke(() => {
|
|
1256
1256
|
e.value = !0;
|
|
1257
1257
|
}), tn(e);
|
|
1258
1258
|
}
|
|
1259
1259
|
function sc(e, t) {
|
|
1260
|
-
return
|
|
1260
|
+
return I(() => {
|
|
1261
1261
|
for (const n of t)
|
|
1262
1262
|
if (e[n] !== void 0)
|
|
1263
1263
|
return e[n];
|
|
@@ -1294,12 +1294,12 @@ function cc(e = {}, t) {
|
|
|
1294
1294
|
r !== void 0 && Object.keys(r).forEach((c) => {
|
|
1295
1295
|
if (c !== a.key)
|
|
1296
1296
|
return;
|
|
1297
|
-
const
|
|
1298
|
-
if (typeof
|
|
1299
|
-
|
|
1297
|
+
const u = r[c];
|
|
1298
|
+
if (typeof u == "function")
|
|
1299
|
+
u(a);
|
|
1300
1300
|
else {
|
|
1301
|
-
const { stop: h = !1, prevent: p = !1 } =
|
|
1302
|
-
h && a.stopPropagation(), p && a.preventDefault(),
|
|
1301
|
+
const { stop: h = !1, prevent: p = !1 } = u;
|
|
1302
|
+
h && a.stopPropagation(), p && a.preventDefault(), u.handler(a);
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
}, s = (a) => {
|
|
@@ -1320,12 +1320,12 @@ function cc(e = {}, t) {
|
|
|
1320
1320
|
o !== void 0 && Object.keys(o).forEach((c) => {
|
|
1321
1321
|
if (c !== a.key)
|
|
1322
1322
|
return;
|
|
1323
|
-
const
|
|
1324
|
-
if (typeof
|
|
1325
|
-
|
|
1323
|
+
const u = o[c];
|
|
1324
|
+
if (typeof u == "function")
|
|
1325
|
+
u(a);
|
|
1326
1326
|
else {
|
|
1327
|
-
const { stop: h = !1, prevent: p = !1 } =
|
|
1328
|
-
h && a.stopPropagation(), p && a.preventDefault(),
|
|
1327
|
+
const { stop: h = !1, prevent: p = !1 } = u;
|
|
1328
|
+
h && a.stopPropagation(), p && a.preventDefault(), u.handler(a);
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
}, l = () => {
|
|
@@ -1339,7 +1339,7 @@ function cc(e = {}, t) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
const uc = "n-internal-select-menu-body", pr = "n-drawer-body", vr = "n-modal-body", mn = "n-popover-body", xi = "__disabled__";
|
|
1341
1341
|
function vt(e) {
|
|
1342
|
-
const t = te(vr, null), n = te(pr, null), r = te(mn, null), o = te(uc, null), i =
|
|
1342
|
+
const t = te(vr, null), n = te(pr, null), r = te(mn, null), o = te(uc, null), i = P();
|
|
1343
1343
|
if (typeof document < "u") {
|
|
1344
1344
|
i.value = document.fullscreenElement;
|
|
1345
1345
|
const s = () => {
|
|
@@ -1365,7 +1365,7 @@ vt.propTo = {
|
|
|
1365
1365
|
default: void 0
|
|
1366
1366
|
};
|
|
1367
1367
|
function dc(e, t, n) {
|
|
1368
|
-
const r =
|
|
1368
|
+
const r = P(e.value);
|
|
1369
1369
|
let o = null;
|
|
1370
1370
|
return we(e, (i) => {
|
|
1371
1371
|
o !== null && window.clearTimeout(o), i === !0 ? n && !n.value ? r.value = !0 : o = window.setTimeout(() => {
|
|
@@ -1502,34 +1502,34 @@ const $i = ee({
|
|
|
1502
1502
|
setup(e) {
|
|
1503
1503
|
var t;
|
|
1504
1504
|
Se("VBinder", (t = Lt()) === null || t === void 0 ? void 0 : t.proxy);
|
|
1505
|
-
const n = te("VBinder", null), r =
|
|
1506
|
-
r.value =
|
|
1505
|
+
const n = te("VBinder", null), r = P(null), o = (f) => {
|
|
1506
|
+
r.value = f, n && e.syncTargetWithParent && n.setTargetRef(f);
|
|
1507
1507
|
};
|
|
1508
1508
|
let i = [];
|
|
1509
1509
|
const s = () => {
|
|
1510
|
-
let
|
|
1511
|
-
for (;
|
|
1512
|
-
i.push(
|
|
1513
|
-
for (const
|
|
1514
|
-
oe("scroll",
|
|
1510
|
+
let f = r.value;
|
|
1511
|
+
for (; f = Ci(f), f !== null; )
|
|
1512
|
+
i.push(f);
|
|
1513
|
+
for (const F of i)
|
|
1514
|
+
oe("scroll", F, h, !0);
|
|
1515
1515
|
}, l = () => {
|
|
1516
|
-
for (const
|
|
1517
|
-
J("scroll",
|
|
1516
|
+
for (const f of i)
|
|
1517
|
+
J("scroll", f, h, !0);
|
|
1518
1518
|
i = [];
|
|
1519
|
-
}, a = /* @__PURE__ */ new Set(), c = (
|
|
1520
|
-
a.size === 0 && s(), a.has(
|
|
1521
|
-
},
|
|
1522
|
-
a.has(
|
|
1519
|
+
}, a = /* @__PURE__ */ new Set(), c = (f) => {
|
|
1520
|
+
a.size === 0 && s(), a.has(f) || a.add(f);
|
|
1521
|
+
}, u = (f) => {
|
|
1522
|
+
a.has(f) && a.delete(f), a.size === 0 && l();
|
|
1523
1523
|
}, h = () => {
|
|
1524
1524
|
Oa(p);
|
|
1525
1525
|
}, p = () => {
|
|
1526
|
-
a.forEach((
|
|
1527
|
-
},
|
|
1528
|
-
|
|
1529
|
-
},
|
|
1530
|
-
|
|
1526
|
+
a.forEach((f) => f());
|
|
1527
|
+
}, b = /* @__PURE__ */ new Set(), d = (f) => {
|
|
1528
|
+
b.size === 0 && oe("resize", window, v), b.has(f) || b.add(f);
|
|
1529
|
+
}, m = (f) => {
|
|
1530
|
+
b.has(f) && b.delete(f), b.size === 0 && J("resize", window, v);
|
|
1531
1531
|
}, v = () => {
|
|
1532
|
-
|
|
1532
|
+
b.forEach((f) => f());
|
|
1533
1533
|
};
|
|
1534
1534
|
return Be(() => {
|
|
1535
1535
|
J("resize", window, v), l();
|
|
@@ -1537,9 +1537,9 @@ const $i = ee({
|
|
|
1537
1537
|
targetRef: r,
|
|
1538
1538
|
setTargetRef: o,
|
|
1539
1539
|
addScrollListener: c,
|
|
1540
|
-
removeScrollListener:
|
|
1541
|
-
addResizeListener:
|
|
1542
|
-
removeResizeListener:
|
|
1540
|
+
removeScrollListener: u,
|
|
1541
|
+
addResizeListener: d,
|
|
1542
|
+
removeResizeListener: m
|
|
1543
1543
|
};
|
|
1544
1544
|
},
|
|
1545
1545
|
render() {
|
|
@@ -1701,14 +1701,14 @@ const zc = ee({
|
|
|
1701
1701
|
setup(e) {
|
|
1702
1702
|
return {
|
|
1703
1703
|
showTeleport: tc(se(e, "show")),
|
|
1704
|
-
mergedTo:
|
|
1704
|
+
mergedTo: I(() => {
|
|
1705
1705
|
const { to: t } = e;
|
|
1706
1706
|
return t ?? "body";
|
|
1707
1707
|
})
|
|
1708
1708
|
};
|
|
1709
1709
|
},
|
|
1710
1710
|
render() {
|
|
1711
|
-
return this.showTeleport ? this.disabled ? Qn("lazy-teleport", this.$slots) :
|
|
1711
|
+
return this.showTeleport ? this.disabled ? Qn("lazy-teleport", this.$slots) : E(Xs, {
|
|
1712
1712
|
disabled: this.disabled,
|
|
1713
1713
|
to: this.mergedTo
|
|
1714
1714
|
}, Qn("lazy-teleport", this.$slots)) : null;
|
|
@@ -1782,36 +1782,36 @@ function Mc(e, t, n, r, o, i) {
|
|
|
1782
1782
|
top: 0,
|
|
1783
1783
|
left: 0
|
|
1784
1784
|
};
|
|
1785
|
-
const
|
|
1786
|
-
let v = 0,
|
|
1787
|
-
const
|
|
1788
|
-
return
|
|
1785
|
+
const u = (b, d, m) => {
|
|
1786
|
+
let v = 0, f = 0;
|
|
1787
|
+
const F = n[b] - t[d] - t[b];
|
|
1788
|
+
return F > 0 && r && (m ? f = lo[d] ? F : -F : v = lo[d] ? F : -F), {
|
|
1789
1789
|
left: v,
|
|
1790
|
-
top:
|
|
1790
|
+
top: f
|
|
1791
1791
|
};
|
|
1792
1792
|
}, h = s === "left" || s === "right";
|
|
1793
1793
|
if (a !== "center") {
|
|
1794
|
-
const
|
|
1795
|
-
if (n[
|
|
1794
|
+
const b = Ac[e], d = Kt[b], m = Pn[b];
|
|
1795
|
+
if (n[m] > t[m]) {
|
|
1796
1796
|
if (
|
|
1797
1797
|
// current space is not enough
|
|
1798
1798
|
// ----------[ target ]---------|
|
|
1799
1799
|
// -------[ follower ]
|
|
1800
|
-
t[
|
|
1800
|
+
t[b] + t[m] < n[m]
|
|
1801
1801
|
) {
|
|
1802
|
-
const v = (n[
|
|
1803
|
-
t[
|
|
1802
|
+
const v = (n[m] - t[m]) / 2;
|
|
1803
|
+
t[b] < v || t[d] < v ? t[b] < t[d] ? (a = so[l], c = u(m, d, h)) : c = u(m, b, h) : a = "center";
|
|
1804
1804
|
}
|
|
1805
|
-
} else n[
|
|
1805
|
+
} else n[m] < t[m] && t[d] < 0 && // opposite align has larger space
|
|
1806
1806
|
// ------------[ target ]
|
|
1807
1807
|
// ----------------[follower]
|
|
1808
|
-
t[
|
|
1808
|
+
t[b] > t[d] && (a = so[l]);
|
|
1809
1809
|
} else {
|
|
1810
|
-
const
|
|
1810
|
+
const b = s === "bottom" || s === "top" ? "left" : "top", d = Kt[b], m = Pn[b], v = (n[m] - t[m]) / 2;
|
|
1811
1811
|
// center is not enough
|
|
1812
1812
|
// ----------- [ target ]--|
|
|
1813
1813
|
// -------[ follower ]
|
|
1814
|
-
(t[
|
|
1814
|
+
(t[b] < v || t[d] < v) && (t[b] > t[d] ? (a = ao[b], c = u(m, b, h)) : (a = ao[d], c = u(m, d, h)));
|
|
1815
1815
|
}
|
|
1816
1816
|
let p = s;
|
|
1817
1817
|
return (
|
|
@@ -2035,7 +2035,7 @@ const _c = Wt([
|
|
|
2035
2035
|
overlap: Boolean
|
|
2036
2036
|
},
|
|
2037
2037
|
setup(e) {
|
|
2038
|
-
const t = te("VBinder"), n = Te(() => e.enabled !== void 0 ? e.enabled : e.show), r =
|
|
2038
|
+
const t = te("VBinder"), n = Te(() => e.enabled !== void 0 ? e.enabled : e.show), r = P(null), o = P(null), i = () => {
|
|
2039
2039
|
const { syncTrigger: p } = e;
|
|
2040
2040
|
p.includes("scroll") && t.addScrollListener(a), p.includes("resize") && t.addResizeListener(a);
|
|
2041
2041
|
}, s = () => {
|
|
@@ -2061,14 +2061,14 @@ const _c = Wt([
|
|
|
2061
2061
|
const p = r.value;
|
|
2062
2062
|
if (p === null)
|
|
2063
2063
|
return;
|
|
2064
|
-
const
|
|
2065
|
-
p.style.setProperty("--v-target-width", `${Math.round(
|
|
2066
|
-
const { width:
|
|
2067
|
-
p.setAttribute("v-placement",
|
|
2064
|
+
const b = t.targetRef, { x: d, y: m, overlap: v } = e, f = d !== void 0 && m !== void 0 ? vc(d, m) : On(b);
|
|
2065
|
+
p.style.setProperty("--v-target-width", `${Math.round(f.width)}px`), p.style.setProperty("--v-target-height", `${Math.round(f.height)}px`);
|
|
2066
|
+
const { width: F, minWidth: A, placement: x, internalShift: w, flip: _ } = e;
|
|
2067
|
+
p.setAttribute("v-placement", x), v ? p.setAttribute("v-overlap", "") : p.removeAttribute("v-overlap");
|
|
2068
2068
|
const { style: g } = p;
|
|
2069
|
-
|
|
2070
|
-
const
|
|
2071
|
-
p.setAttribute("v-placement", M), p.style.setProperty("--v-offset-left", `${Math.round(
|
|
2069
|
+
F === "target" ? g.width = `${f.width}px` : F !== void 0 ? g.width = F : g.width = "", A === "target" ? g.minWidth = `${f.width}px` : A !== void 0 ? g.minWidth = A : g.minWidth = "";
|
|
2070
|
+
const y = On(p), z = On(o.value), { left: C, top: N, placement: M } = Mc(x, f, y, w, _, v), k = Tc(M, v), { left: L, top: S, transform: R } = Bc(M, z, f, N, C, v);
|
|
2071
|
+
p.setAttribute("v-placement", M), p.style.setProperty("--v-offset-left", `${Math.round(C)}px`), p.style.setProperty("--v-offset-top", `${Math.round(N)}px`), p.style.transform = `translateX(${L}) translateY(${S}) ${R}`, p.style.setProperty("--v-transform-origin", k), p.style.transformOrigin = k;
|
|
2072
2072
|
};
|
|
2073
2073
|
we(n, (p) => {
|
|
2074
2074
|
p ? (i(), c()) : s();
|
|
@@ -2092,11 +2092,11 @@ const _c = Wt([
|
|
|
2092
2092
|
}), we(se(e, "syncTrigger"), (p) => {
|
|
2093
2093
|
p.includes("resize") ? t.addResizeListener(a) : t.removeResizeListener(a), p.includes("scroll") ? t.addScrollListener(a) : t.removeScrollListener(a);
|
|
2094
2094
|
});
|
|
2095
|
-
const
|
|
2095
|
+
const u = yi(), h = Te(() => {
|
|
2096
2096
|
const { to: p } = e;
|
|
2097
2097
|
if (p !== void 0)
|
|
2098
2098
|
return p;
|
|
2099
|
-
|
|
2099
|
+
u.value;
|
|
2100
2100
|
});
|
|
2101
2101
|
return {
|
|
2102
2102
|
VBinder: t,
|
|
@@ -2108,18 +2108,18 @@ const _c = Wt([
|
|
|
2108
2108
|
};
|
|
2109
2109
|
},
|
|
2110
2110
|
render() {
|
|
2111
|
-
return
|
|
2111
|
+
return E(zc, {
|
|
2112
2112
|
show: this.show,
|
|
2113
2113
|
to: this.mergedTo,
|
|
2114
2114
|
disabled: this.teleportDisabled
|
|
2115
2115
|
}, {
|
|
2116
2116
|
default: () => {
|
|
2117
2117
|
var e, t;
|
|
2118
|
-
const n =
|
|
2118
|
+
const n = E("div", {
|
|
2119
2119
|
class: ["v-binder-follower-container", this.containerClass],
|
|
2120
2120
|
ref: "offsetContainerRef"
|
|
2121
2121
|
}, [
|
|
2122
|
-
|
|
2122
|
+
E("div", {
|
|
2123
2123
|
class: "v-binder-follower-content",
|
|
2124
2124
|
ref: "followerRef"
|
|
2125
2125
|
}, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e))
|
|
@@ -2215,11 +2215,11 @@ var Je = function(e) {
|
|
|
2215
2215
|
return Vt.get(e);
|
|
2216
2216
|
if (Mi(e))
|
|
2217
2217
|
return Vt.set(e, ho), ho;
|
|
2218
|
-
var n = getComputedStyle(e), r = gr(e) && e.ownerSVGElement && e.getBBox(), o = !Dc && n.boxSizing === "border-box", i = kc.test(n.writingMode || ""), s = !r && fo.test(n.overflowY || ""), l = !r && fo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c = r ? 0 : Ce(n.paddingRight),
|
|
2219
|
-
devicePixelContentBoxSize: dt(Math.round(
|
|
2220
|
-
borderBoxSize: dt(
|
|
2221
|
-
contentBoxSize: dt(
|
|
2222
|
-
contentRect: new Ai(h, a,
|
|
2218
|
+
var n = getComputedStyle(e), r = gr(e) && e.ownerSVGElement && e.getBBox(), o = !Dc && n.boxSizing === "border-box", i = kc.test(n.writingMode || ""), s = !r && fo.test(n.overflowY || ""), l = !r && fo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c = r ? 0 : Ce(n.paddingRight), u = r ? 0 : Ce(n.paddingBottom), h = r ? 0 : Ce(n.paddingLeft), p = r ? 0 : Ce(n.borderTopWidth), b = r ? 0 : Ce(n.borderRightWidth), d = r ? 0 : Ce(n.borderBottomWidth), m = r ? 0 : Ce(n.borderLeftWidth), v = h + c, f = a + u, F = m + b, A = p + d, x = l ? e.offsetHeight - A - e.clientHeight : 0, w = s ? e.offsetWidth - F - e.clientWidth : 0, _ = o ? v + F : 0, g = o ? f + A : 0, y = r ? r.width : Ce(n.width) - _ - w, z = r ? r.height : Ce(n.height) - g - x, C = y + v + w + F, N = z + f + x + A, M = Je({
|
|
2219
|
+
devicePixelContentBoxSize: dt(Math.round(y * devicePixelRatio), Math.round(z * devicePixelRatio), i),
|
|
2220
|
+
borderBoxSize: dt(C, N, i),
|
|
2221
|
+
contentBoxSize: dt(y, z, i),
|
|
2222
|
+
contentRect: new Ai(h, a, y, z)
|
|
2223
2223
|
});
|
|
2224
2224
|
return Vt.set(e, M), M;
|
|
2225
2225
|
}, Bi = function(e, t, n) {
|
|
@@ -2250,8 +2250,8 @@ var Je = function(e) {
|
|
|
2250
2250
|
if (s.activeTargets.length !== 0) {
|
|
2251
2251
|
var l = [];
|
|
2252
2252
|
s.activeTargets.forEach(function(c) {
|
|
2253
|
-
var
|
|
2254
|
-
l.push(
|
|
2253
|
+
var u = new Nc(c.target), h = _i(c.target);
|
|
2254
|
+
l.push(u), c.lastReportedSize = Bi(c.target, c.observedBox), h < e && (e = h);
|
|
2255
2255
|
}), t.push(function() {
|
|
2256
2256
|
s.callback.call(s.observer, l, s.observer);
|
|
2257
2257
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
@@ -2533,15 +2533,15 @@ const nu = ee({
|
|
|
2533
2533
|
}
|
|
2534
2534
|
},
|
|
2535
2535
|
setup(e) {
|
|
2536
|
-
const t = Xa(), n =
|
|
2536
|
+
const t = Xa(), n = P(null), r = P(null);
|
|
2537
2537
|
let o = !1, i = !1;
|
|
2538
2538
|
const s = typeof document > "u" ? null : document.activeElement;
|
|
2539
2539
|
function l() {
|
|
2540
2540
|
return St[St.length - 1] === t;
|
|
2541
2541
|
}
|
|
2542
2542
|
function a(v) {
|
|
2543
|
-
var
|
|
2544
|
-
v.code === "Escape" && l() && ((
|
|
2543
|
+
var f;
|
|
2544
|
+
v.code === "Escape" && l() && ((f = e.onEsc) === null || f === void 0 || f.call(e, v));
|
|
2545
2545
|
}
|
|
2546
2546
|
Ke(() => {
|
|
2547
2547
|
we(() => e.active, (v) => {
|
|
@@ -2554,68 +2554,68 @@ const nu = ee({
|
|
|
2554
2554
|
});
|
|
2555
2555
|
function c(v) {
|
|
2556
2556
|
if (!i && l()) {
|
|
2557
|
-
const
|
|
2558
|
-
if (
|
|
2557
|
+
const f = u();
|
|
2558
|
+
if (f === null || f.contains(sn(v)))
|
|
2559
2559
|
return;
|
|
2560
|
-
|
|
2560
|
+
b("first");
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function u() {
|
|
2564
2564
|
const v = n.value;
|
|
2565
2565
|
if (v === null)
|
|
2566
2566
|
return null;
|
|
2567
|
-
let
|
|
2568
|
-
for (;
|
|
2567
|
+
let f = v;
|
|
2568
|
+
for (; f = f.nextSibling, !(f === null || f instanceof Element && f.tagName === "DIV"); )
|
|
2569
2569
|
;
|
|
2570
|
-
return
|
|
2570
|
+
return f;
|
|
2571
2571
|
}
|
|
2572
2572
|
function h() {
|
|
2573
2573
|
var v;
|
|
2574
2574
|
if (!e.disabled) {
|
|
2575
2575
|
if (St.push(t), e.autoFocus) {
|
|
2576
|
-
const { initialFocusTo:
|
|
2577
|
-
|
|
2576
|
+
const { initialFocusTo: f } = e;
|
|
2577
|
+
f === void 0 ? b("first") : (v = io(f)) === null || v === void 0 || v.focus({ preventScroll: !0 });
|
|
2578
2578
|
}
|
|
2579
2579
|
o = !0, document.addEventListener("focus", c, !0);
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
2582
|
function p() {
|
|
2583
2583
|
var v;
|
|
2584
|
-
if (e.disabled || (document.removeEventListener("focus", c, !0), St = St.filter((
|
|
2584
|
+
if (e.disabled || (document.removeEventListener("focus", c, !0), St = St.filter((F) => F !== t), l()))
|
|
2585
2585
|
return;
|
|
2586
|
-
const { finalFocusTo:
|
|
2587
|
-
|
|
2586
|
+
const { finalFocusTo: f } = e;
|
|
2587
|
+
f !== void 0 ? (v = io(f)) === null || v === void 0 || v.focus({ preventScroll: !0 }) : e.returnFocusOnDeactivated && s instanceof HTMLElement && (i = !0, s.focus({ preventScroll: !0 }), i = !1);
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function b(v) {
|
|
2590
2590
|
if (l() && e.active) {
|
|
2591
|
-
const
|
|
2592
|
-
if (
|
|
2593
|
-
const
|
|
2594
|
-
if (
|
|
2595
|
-
i = !0,
|
|
2591
|
+
const f = n.value, F = r.value;
|
|
2592
|
+
if (f !== null && F !== null) {
|
|
2593
|
+
const A = u();
|
|
2594
|
+
if (A == null || A === F) {
|
|
2595
|
+
i = !0, f.focus({ preventScroll: !0 }), i = !1;
|
|
2596
2596
|
return;
|
|
2597
2597
|
}
|
|
2598
2598
|
i = !0;
|
|
2599
|
-
const
|
|
2600
|
-
i = !1,
|
|
2599
|
+
const x = v === "first" ? Li(A) : Pi(A);
|
|
2600
|
+
i = !1, x || (i = !0, f.focus({ preventScroll: !0 }), i = !1);
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2604
|
+
function d(v) {
|
|
2605
2605
|
if (i)
|
|
2606
2606
|
return;
|
|
2607
|
-
const
|
|
2608
|
-
|
|
2607
|
+
const f = u();
|
|
2608
|
+
f !== null && (v.relatedTarget !== null && f.contains(v.relatedTarget) ? b("last") : b("first"));
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2611
|
-
i || (v.relatedTarget !== null && v.relatedTarget === n.value ?
|
|
2610
|
+
function m(v) {
|
|
2611
|
+
i || (v.relatedTarget !== null && v.relatedTarget === n.value ? b("last") : b("first"));
|
|
2612
2612
|
}
|
|
2613
2613
|
return {
|
|
2614
2614
|
focusableStartRef: n,
|
|
2615
2615
|
focusableEndRef: r,
|
|
2616
2616
|
focusableStyle: "position: absolute; height: 0; width: 0;",
|
|
2617
|
-
handleStartFocus:
|
|
2618
|
-
handleEndFocus:
|
|
2617
|
+
handleStartFocus: d,
|
|
2618
|
+
handleEndFocus: m
|
|
2619
2619
|
};
|
|
2620
2620
|
},
|
|
2621
2621
|
render() {
|
|
@@ -2625,8 +2625,8 @@ const nu = ee({
|
|
|
2625
2625
|
if (this.disabled)
|
|
2626
2626
|
return e();
|
|
2627
2627
|
const { active: t, focusableStyle: n } = this;
|
|
2628
|
-
return
|
|
2629
|
-
|
|
2628
|
+
return E(_e, null, [
|
|
2629
|
+
E("div", {
|
|
2630
2630
|
"aria-hidden": "true",
|
|
2631
2631
|
tabindex: t ? "0" : "-1",
|
|
2632
2632
|
ref: "focusableStartRef",
|
|
@@ -2634,7 +2634,7 @@ const nu = ee({
|
|
|
2634
2634
|
onFocus: this.handleStartFocus
|
|
2635
2635
|
}),
|
|
2636
2636
|
e(),
|
|
2637
|
-
|
|
2637
|
+
E("div", {
|
|
2638
2638
|
"aria-hidden": "true",
|
|
2639
2639
|
style: n,
|
|
2640
2640
|
ref: "focusableEndRef",
|
|
@@ -2760,7 +2760,7 @@ function bt(e = {}, t = {
|
|
|
2760
2760
|
mergedRtlRef: n?.mergedRtlRef,
|
|
2761
2761
|
mergedComponentPropsRef: n?.mergedComponentPropsRef,
|
|
2762
2762
|
mergedBreakpointsRef: n?.mergedBreakpointsRef,
|
|
2763
|
-
mergedBorderedRef:
|
|
2763
|
+
mergedBorderedRef: I(() => {
|
|
2764
2764
|
var r, o;
|
|
2765
2765
|
const {
|
|
2766
2766
|
bordered: i
|
|
@@ -2768,27 +2768,27 @@ function bt(e = {}, t = {
|
|
|
2768
2768
|
return i !== void 0 ? i : (o = (r = n?.mergedBorderedRef.value) !== null && r !== void 0 ? r : t.defaultBordered) !== null && o !== void 0 ? o : !0;
|
|
2769
2769
|
}),
|
|
2770
2770
|
mergedClsPrefixRef: n ? n.mergedClsPrefixRef : Zs(au),
|
|
2771
|
-
namespaceRef:
|
|
2771
|
+
namespaceRef: I(() => n?.mergedNamespaceRef.value)
|
|
2772
2772
|
};
|
|
2773
2773
|
}
|
|
2774
2774
|
function yn(e, t, n, r) {
|
|
2775
2775
|
n || iu("useThemeClass", "cssVarsRef is not passed");
|
|
2776
|
-
const o = te(wn, null), i = o?.mergedThemeHashRef, s = o?.styleMountTarget, l =
|
|
2776
|
+
const o = te(wn, null), i = o?.mergedThemeHashRef, s = o?.styleMountTarget, l = P(""), a = bn();
|
|
2777
2777
|
let c;
|
|
2778
|
-
const
|
|
2779
|
-
let p =
|
|
2780
|
-
const
|
|
2781
|
-
|
|
2778
|
+
const u = `__${e}`, h = () => {
|
|
2779
|
+
let p = u;
|
|
2780
|
+
const b = t ? t.value : void 0, d = i?.value;
|
|
2781
|
+
d && (p += `-${d}`), b && (p += `-${b}`);
|
|
2782
2782
|
const {
|
|
2783
|
-
themeOverrides:
|
|
2783
|
+
themeOverrides: m,
|
|
2784
2784
|
builtinThemeOverrides: v
|
|
2785
2785
|
} = r;
|
|
2786
|
-
|
|
2787
|
-
const
|
|
2788
|
-
let
|
|
2789
|
-
for (const
|
|
2790
|
-
|
|
2791
|
-
H(`.${p}`,
|
|
2786
|
+
m && (p += `-${Zn(JSON.stringify(m))}`), v && (p += `-${Zn(JSON.stringify(v))}`), l.value = p, c = () => {
|
|
2787
|
+
const f = n.value;
|
|
2788
|
+
let F = "";
|
|
2789
|
+
for (const A in f)
|
|
2790
|
+
F += `${A}: ${f[A]};`;
|
|
2791
|
+
H(`.${p}`, F).mount({
|
|
2792
2792
|
id: p,
|
|
2793
2793
|
ssr: a,
|
|
2794
2794
|
parent: s
|
|
@@ -3423,29 +3423,29 @@ function es(e, t, n, r, o, i) {
|
|
|
3423
3423
|
var s = n & c2, l = e.length, a = t.length;
|
|
3424
3424
|
if (l != a && !(s && a > l))
|
|
3425
3425
|
return !1;
|
|
3426
|
-
var c = i.get(e),
|
|
3427
|
-
if (c &&
|
|
3428
|
-
return c == t &&
|
|
3429
|
-
var h = -1, p = !0,
|
|
3426
|
+
var c = i.get(e), u = i.get(t);
|
|
3427
|
+
if (c && u)
|
|
3428
|
+
return c == t && u == e;
|
|
3429
|
+
var h = -1, p = !0, b = n & u2 ? new pn() : void 0;
|
|
3430
3430
|
for (i.set(e, t), i.set(t, e); ++h < l; ) {
|
|
3431
|
-
var
|
|
3431
|
+
var d = e[h], m = t[h];
|
|
3432
3432
|
if (r)
|
|
3433
|
-
var v = s ? r(
|
|
3433
|
+
var v = s ? r(m, d, h, t, e, i) : r(d, m, h, e, t, i);
|
|
3434
3434
|
if (v !== void 0) {
|
|
3435
3435
|
if (v)
|
|
3436
3436
|
continue;
|
|
3437
3437
|
p = !1;
|
|
3438
3438
|
break;
|
|
3439
3439
|
}
|
|
3440
|
-
if (
|
|
3441
|
-
if (!l2(t, function(
|
|
3442
|
-
if (!a2(
|
|
3443
|
-
return
|
|
3440
|
+
if (b) {
|
|
3441
|
+
if (!l2(t, function(f, F) {
|
|
3442
|
+
if (!a2(b, F) && (d === f || o(d, f, n, r, i)))
|
|
3443
|
+
return b.push(F);
|
|
3444
3444
|
})) {
|
|
3445
3445
|
p = !1;
|
|
3446
3446
|
break;
|
|
3447
3447
|
}
|
|
3448
|
-
} else if (!(
|
|
3448
|
+
} else if (!(d === m || o(d, m, n, r, i))) {
|
|
3449
3449
|
p = !1;
|
|
3450
3450
|
break;
|
|
3451
3451
|
}
|
|
@@ -3492,8 +3492,8 @@ function F2(e, t, n, r, o, i, s) {
|
|
|
3492
3492
|
if (c)
|
|
3493
3493
|
return c == t;
|
|
3494
3494
|
r |= p2, s.set(e, t);
|
|
3495
|
-
var
|
|
3496
|
-
return s.delete(e),
|
|
3495
|
+
var u = es(l(e), l(t), r, o, i, s);
|
|
3496
|
+
return s.delete(e), u;
|
|
3497
3497
|
case C2:
|
|
3498
3498
|
if (Wn)
|
|
3499
3499
|
return Wn.call(e) == Wn.call(t);
|
|
@@ -3502,53 +3502,53 @@ function F2(e, t, n, r, o, i, s) {
|
|
|
3502
3502
|
}
|
|
3503
3503
|
var E2 = 1, A2 = Object.prototype, M2 = A2.hasOwnProperty;
|
|
3504
3504
|
function T2(e, t, n, r, o, i) {
|
|
3505
|
-
var s = n & E2, l = No(e), a = l.length, c = No(t),
|
|
3506
|
-
if (a !=
|
|
3505
|
+
var s = n & E2, l = No(e), a = l.length, c = No(t), u = c.length;
|
|
3506
|
+
if (a != u && !s)
|
|
3507
3507
|
return !1;
|
|
3508
3508
|
for (var h = a; h--; ) {
|
|
3509
3509
|
var p = l[h];
|
|
3510
3510
|
if (!(s ? p in t : M2.call(t, p)))
|
|
3511
3511
|
return !1;
|
|
3512
3512
|
}
|
|
3513
|
-
var
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3516
|
-
var
|
|
3513
|
+
var b = i.get(e), d = i.get(t);
|
|
3514
|
+
if (b && d)
|
|
3515
|
+
return b == t && d == e;
|
|
3516
|
+
var m = !0;
|
|
3517
3517
|
i.set(e, t), i.set(t, e);
|
|
3518
3518
|
for (var v = s; ++h < a; ) {
|
|
3519
3519
|
p = l[h];
|
|
3520
|
-
var
|
|
3520
|
+
var f = e[p], F = t[p];
|
|
3521
3521
|
if (r)
|
|
3522
|
-
var
|
|
3523
|
-
if (!(
|
|
3524
|
-
|
|
3522
|
+
var A = s ? r(F, f, p, t, e, i) : r(f, F, p, e, t, i);
|
|
3523
|
+
if (!(A === void 0 ? f === F || o(f, F, n, r, i) : A)) {
|
|
3524
|
+
m = !1;
|
|
3525
3525
|
break;
|
|
3526
3526
|
}
|
|
3527
3527
|
v || (v = p == "constructor");
|
|
3528
3528
|
}
|
|
3529
|
-
if (
|
|
3530
|
-
var
|
|
3531
|
-
|
|
3529
|
+
if (m && !v) {
|
|
3530
|
+
var x = e.constructor, w = t.constructor;
|
|
3531
|
+
x != w && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof w == "function" && w instanceof w) && (m = !1);
|
|
3532
3532
|
}
|
|
3533
|
-
return i.delete(e), i.delete(t),
|
|
3533
|
+
return i.delete(e), i.delete(t), m;
|
|
3534
3534
|
}
|
|
3535
3535
|
var B2 = 1, Go = "[object Arguments]", Xo = "[object Array]", Xt = "[object Object]", _2 = Object.prototype, qo = _2.hasOwnProperty;
|
|
3536
3536
|
function I2(e, t, n, r, o, i) {
|
|
3537
3537
|
var s = ye(e), l = ye(t), a = s ? Xo : ke(e), c = l ? Xo : ke(t);
|
|
3538
3538
|
a = a == Go ? Xt : a, c = c == Go ? Xt : c;
|
|
3539
|
-
var
|
|
3539
|
+
var u = a == Xt, h = c == Xt, p = a == c;
|
|
3540
3540
|
if (p && fn(e)) {
|
|
3541
3541
|
if (!fn(t))
|
|
3542
3542
|
return !1;
|
|
3543
|
-
s = !0,
|
|
3543
|
+
s = !0, u = !1;
|
|
3544
3544
|
}
|
|
3545
|
-
if (p && !
|
|
3545
|
+
if (p && !u)
|
|
3546
3546
|
return i || (i = new $e()), s || zr(e) ? es(e, t, n, r, o, i) : F2(e, t, a, n, r, o, i);
|
|
3547
3547
|
if (!(n & B2)) {
|
|
3548
|
-
var
|
|
3549
|
-
if (
|
|
3550
|
-
var
|
|
3551
|
-
return i || (i = new $e()), o(
|
|
3548
|
+
var b = u && qo.call(e, "__wrapped__"), d = h && qo.call(t, "__wrapped__");
|
|
3549
|
+
if (b || d) {
|
|
3550
|
+
var m = b ? e.value() : e, v = d ? t.value() : t;
|
|
3551
|
+
return i || (i = new $e()), o(m, v, n, r, i);
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
3554
|
return p ? (i || (i = new $e()), T2(e, t, n, r, o, i)) : !1;
|
|
@@ -3573,8 +3573,8 @@ function P2(e, t, n, r) {
|
|
|
3573
3573
|
if (a === void 0 && !(l in e))
|
|
3574
3574
|
return !1;
|
|
3575
3575
|
} else {
|
|
3576
|
-
var
|
|
3577
|
-
if (!(h === void 0 ? Mr(c, a, O2 | L2, r,
|
|
3576
|
+
var u = new $e(), h;
|
|
3577
|
+
if (!(h === void 0 ? Mr(c, a, O2 | L2, r, u) : h))
|
|
3578
3578
|
return !1;
|
|
3579
3579
|
}
|
|
3580
3580
|
}
|
|
@@ -3685,12 +3685,12 @@ function th(e, t, n, r, o, i, s) {
|
|
|
3685
3685
|
lr(e, n, c);
|
|
3686
3686
|
return;
|
|
3687
3687
|
}
|
|
3688
|
-
var
|
|
3688
|
+
var u = i ? i(l, a, n + "", e, t, s) : void 0, h = u === void 0;
|
|
3689
3689
|
if (h) {
|
|
3690
|
-
var p = ye(a),
|
|
3691
|
-
|
|
3690
|
+
var p = ye(a), b = !p && fn(a), d = !p && !b && zr(a);
|
|
3691
|
+
u = a, p || b || d ? ye(l) ? u = l : Q2(l) ? u = Ru(l) : b ? (h = !1, u = jf(a)) : d ? (h = !1, u = n2(a)) : u = [] : Of(a) || dn(a) ? (u = l, dn(l) ? u = eh(l) : (!Ve(l) || yr(l)) && (u = r2(a))) : h = !1;
|
|
3692
3692
|
}
|
|
3693
|
-
h && (s.set(a,
|
|
3693
|
+
h && (s.set(a, u), o(u, a, r, i, s), s.delete(a)), lr(e, n, u);
|
|
3694
3694
|
}
|
|
3695
3695
|
function os(e, t, n, r, o) {
|
|
3696
3696
|
e !== t && rs(t, function(i, s) {
|
|
@@ -3718,7 +3718,7 @@ var qt = td(function(e, t, n) {
|
|
|
3718
3718
|
const cr = "naive-ui-style";
|
|
3719
3719
|
function oh(e, t, n) {
|
|
3720
3720
|
if (!t) return;
|
|
3721
|
-
const r = bn(), o =
|
|
3721
|
+
const r = bn(), o = I(() => {
|
|
3722
3722
|
const {
|
|
3723
3723
|
value: l
|
|
3724
3724
|
} = t;
|
|
@@ -3794,12 +3794,12 @@ function pe(e, t, n, r, o, i) {
|
|
|
3794
3794
|
const s = bn(), l = te(wn, null);
|
|
3795
3795
|
if (n) {
|
|
3796
3796
|
const c = () => {
|
|
3797
|
-
const
|
|
3797
|
+
const u = i?.value;
|
|
3798
3798
|
n.mount({
|
|
3799
|
-
id:
|
|
3799
|
+
id: u === void 0 ? t : u + t,
|
|
3800
3800
|
head: !0,
|
|
3801
3801
|
props: {
|
|
3802
|
-
bPrefix:
|
|
3802
|
+
bPrefix: u ? `.${u}-` : void 0
|
|
3803
3803
|
},
|
|
3804
3804
|
anchorMetaName: cr,
|
|
3805
3805
|
ssr: s,
|
|
@@ -3814,44 +3814,44 @@ function pe(e, t, n, r, o, i) {
|
|
|
3814
3814
|
};
|
|
3815
3815
|
s ? c() : fr(c);
|
|
3816
3816
|
}
|
|
3817
|
-
return
|
|
3817
|
+
return I(() => {
|
|
3818
3818
|
var c;
|
|
3819
3819
|
const {
|
|
3820
3820
|
theme: {
|
|
3821
|
-
common:
|
|
3821
|
+
common: u,
|
|
3822
3822
|
self: h,
|
|
3823
3823
|
peers: p = {}
|
|
3824
3824
|
} = {},
|
|
3825
|
-
themeOverrides:
|
|
3826
|
-
builtinThemeOverrides:
|
|
3825
|
+
themeOverrides: b = {},
|
|
3826
|
+
builtinThemeOverrides: d = {}
|
|
3827
3827
|
} = o, {
|
|
3828
|
-
common:
|
|
3828
|
+
common: m,
|
|
3829
3829
|
peers: v
|
|
3830
|
-
} =
|
|
3831
|
-
common:
|
|
3830
|
+
} = b, {
|
|
3831
|
+
common: f = void 0,
|
|
3832
3832
|
[e]: {
|
|
3833
|
-
common:
|
|
3834
|
-
self:
|
|
3835
|
-
peers:
|
|
3833
|
+
common: F = void 0,
|
|
3834
|
+
self: A = void 0,
|
|
3835
|
+
peers: x = {}
|
|
3836
3836
|
} = {}
|
|
3837
3837
|
} = l?.mergedThemeRef.value || {}, {
|
|
3838
|
-
common:
|
|
3839
|
-
[e]:
|
|
3838
|
+
common: w = void 0,
|
|
3839
|
+
[e]: _ = {}
|
|
3840
3840
|
} = l?.mergedThemeOverridesRef.value || {}, {
|
|
3841
3841
|
common: g,
|
|
3842
|
-
peers:
|
|
3843
|
-
} =
|
|
3842
|
+
peers: y = {}
|
|
3843
|
+
} = _, z = qt({}, u || F || f || r.common, w, g, m), C = qt(
|
|
3844
3844
|
// {}, executed every time, no need for empty obj
|
|
3845
|
-
(c = h ||
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3845
|
+
(c = h || A || r.self) === null || c === void 0 ? void 0 : c(z),
|
|
3846
|
+
d,
|
|
3847
|
+
_,
|
|
3848
|
+
b
|
|
3849
3849
|
);
|
|
3850
3850
|
return {
|
|
3851
3851
|
common: z,
|
|
3852
|
-
self:
|
|
3853
|
-
peers: qt({}, r.peers,
|
|
3854
|
-
peerOverrides: qt({},
|
|
3852
|
+
self: C,
|
|
3853
|
+
peers: qt({}, r.peers, x, p),
|
|
3854
|
+
peerOverrides: qt({}, d.peers, y, v)
|
|
3855
3855
|
};
|
|
3856
3856
|
});
|
|
3857
3857
|
}
|
|
@@ -3863,11 +3863,11 @@ pe.props = {
|
|
|
3863
3863
|
const ch = ee({
|
|
3864
3864
|
name: "ChevronRight",
|
|
3865
3865
|
render() {
|
|
3866
|
-
return
|
|
3866
|
+
return E("svg", {
|
|
3867
3867
|
viewBox: "0 0 16 16",
|
|
3868
3868
|
fill: "none",
|
|
3869
3869
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3870
|
-
},
|
|
3870
|
+
}, E("path", {
|
|
3871
3871
|
d: "M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",
|
|
3872
3872
|
fill: "currentColor"
|
|
3873
3873
|
}));
|
|
@@ -3892,7 +3892,7 @@ function uh({
|
|
|
3892
3892
|
opacity: 1
|
|
3893
3893
|
})];
|
|
3894
3894
|
}
|
|
3895
|
-
const
|
|
3895
|
+
const O = {
|
|
3896
3896
|
neutralBase: "#FFF",
|
|
3897
3897
|
neutralInvertBase: "#000",
|
|
3898
3898
|
neutralTextBase: "#000",
|
|
@@ -3939,7 +3939,7 @@ const I = {
|
|
|
3939
3939
|
successDefault: "#18a058",
|
|
3940
3940
|
successActive: "#0c7a43",
|
|
3941
3941
|
successSuppl: "#36ad6a"
|
|
3942
|
-
}, dh = Qe(
|
|
3942
|
+
}, dh = Qe(O.neutralBase), is = Qe(O.neutralInvertBase), fh = `rgba(${is.slice(0, 3).join(", ")}, `;
|
|
3943
3943
|
function Zo(e) {
|
|
3944
3944
|
return `${fh + String(e)})`;
|
|
3945
3945
|
}
|
|
@@ -3950,87 +3950,87 @@ function le(e) {
|
|
|
3950
3950
|
const yt = Object.assign(Object.assign({
|
|
3951
3951
|
name: "common"
|
|
3952
3952
|
}, $n), {
|
|
3953
|
-
baseColor:
|
|
3953
|
+
baseColor: O.neutralBase,
|
|
3954
3954
|
// primary color
|
|
3955
|
-
primaryColor:
|
|
3956
|
-
primaryColorHover:
|
|
3957
|
-
primaryColorPressed:
|
|
3958
|
-
primaryColorSuppl:
|
|
3955
|
+
primaryColor: O.primaryDefault,
|
|
3956
|
+
primaryColorHover: O.primaryHover,
|
|
3957
|
+
primaryColorPressed: O.primaryActive,
|
|
3958
|
+
primaryColorSuppl: O.primarySuppl,
|
|
3959
3959
|
// info color
|
|
3960
|
-
infoColor:
|
|
3961
|
-
infoColorHover:
|
|
3962
|
-
infoColorPressed:
|
|
3963
|
-
infoColorSuppl:
|
|
3960
|
+
infoColor: O.infoDefault,
|
|
3961
|
+
infoColorHover: O.infoHover,
|
|
3962
|
+
infoColorPressed: O.infoActive,
|
|
3963
|
+
infoColorSuppl: O.infoSuppl,
|
|
3964
3964
|
// success color
|
|
3965
|
-
successColor:
|
|
3966
|
-
successColorHover:
|
|
3967
|
-
successColorPressed:
|
|
3968
|
-
successColorSuppl:
|
|
3965
|
+
successColor: O.successDefault,
|
|
3966
|
+
successColorHover: O.successHover,
|
|
3967
|
+
successColorPressed: O.successActive,
|
|
3968
|
+
successColorSuppl: O.successSuppl,
|
|
3969
3969
|
// warning color
|
|
3970
|
-
warningColor:
|
|
3971
|
-
warningColorHover:
|
|
3972
|
-
warningColorPressed:
|
|
3973
|
-
warningColorSuppl:
|
|
3970
|
+
warningColor: O.warningDefault,
|
|
3971
|
+
warningColorHover: O.warningHover,
|
|
3972
|
+
warningColorPressed: O.warningActive,
|
|
3973
|
+
warningColorSuppl: O.warningSuppl,
|
|
3974
3974
|
// error color
|
|
3975
|
-
errorColor:
|
|
3976
|
-
errorColorHover:
|
|
3977
|
-
errorColorPressed:
|
|
3978
|
-
errorColorSuppl:
|
|
3975
|
+
errorColor: O.errorDefault,
|
|
3976
|
+
errorColorHover: O.errorHover,
|
|
3977
|
+
errorColorPressed: O.errorActive,
|
|
3978
|
+
errorColorSuppl: O.errorSuppl,
|
|
3979
3979
|
// text color
|
|
3980
|
-
textColorBase:
|
|
3980
|
+
textColorBase: O.neutralTextBase,
|
|
3981
3981
|
textColor1: "rgb(31, 34, 37)",
|
|
3982
3982
|
textColor2: "rgb(51, 54, 57)",
|
|
3983
3983
|
textColor3: "rgb(118, 124, 130)",
|
|
3984
3984
|
// textColor4: neutral(base.alpha4), // disabled, placeholder, icon
|
|
3985
3985
|
// textColor5: neutral(base.alpha5),
|
|
3986
|
-
textColorDisabled: le(
|
|
3987
|
-
placeholderColor: le(
|
|
3988
|
-
placeholderColorDisabled: le(
|
|
3989
|
-
iconColor: le(
|
|
3990
|
-
iconColorHover: jt(le(
|
|
3986
|
+
textColorDisabled: le(O.alpha4),
|
|
3987
|
+
placeholderColor: le(O.alpha4),
|
|
3988
|
+
placeholderColorDisabled: le(O.alpha5),
|
|
3989
|
+
iconColor: le(O.alpha4),
|
|
3990
|
+
iconColorHover: jt(le(O.alpha4), {
|
|
3991
3991
|
lightness: 0.75
|
|
3992
3992
|
}),
|
|
3993
|
-
iconColorPressed: jt(le(
|
|
3993
|
+
iconColorPressed: jt(le(O.alpha4), {
|
|
3994
3994
|
lightness: 0.9
|
|
3995
3995
|
}),
|
|
3996
|
-
iconColorDisabled: le(
|
|
3997
|
-
opacity1:
|
|
3998
|
-
opacity2:
|
|
3999
|
-
opacity3:
|
|
4000
|
-
opacity4:
|
|
4001
|
-
opacity5:
|
|
3996
|
+
iconColorDisabled: le(O.alpha5),
|
|
3997
|
+
opacity1: O.alpha1,
|
|
3998
|
+
opacity2: O.alpha2,
|
|
3999
|
+
opacity3: O.alpha3,
|
|
4000
|
+
opacity4: O.alpha4,
|
|
4001
|
+
opacity5: O.alpha5,
|
|
4002
4002
|
dividerColor: "rgb(239, 239, 245)",
|
|
4003
4003
|
borderColor: "rgb(224, 224, 230)",
|
|
4004
4004
|
// close
|
|
4005
|
-
closeIconColor: le(Number(
|
|
4006
|
-
closeIconColorHover: le(Number(
|
|
4007
|
-
closeIconColorPressed: le(Number(
|
|
4005
|
+
closeIconColor: le(Number(O.alphaClose)),
|
|
4006
|
+
closeIconColorHover: le(Number(O.alphaClose)),
|
|
4007
|
+
closeIconColorPressed: le(Number(O.alphaClose)),
|
|
4008
4008
|
closeColorHover: "rgba(0, 0, 0, .09)",
|
|
4009
4009
|
closeColorPressed: "rgba(0, 0, 0, .13)",
|
|
4010
4010
|
// clear
|
|
4011
|
-
clearColor: le(
|
|
4012
|
-
clearColorHover: jt(le(
|
|
4011
|
+
clearColor: le(O.alpha4),
|
|
4012
|
+
clearColorHover: jt(le(O.alpha4), {
|
|
4013
4013
|
lightness: 0.75
|
|
4014
4014
|
}),
|
|
4015
|
-
clearColorPressed: jt(le(
|
|
4015
|
+
clearColorPressed: jt(le(O.alpha4), {
|
|
4016
4016
|
lightness: 0.9
|
|
4017
4017
|
}),
|
|
4018
|
-
scrollbarColor: Zo(
|
|
4019
|
-
scrollbarColorHover: Zo(
|
|
4018
|
+
scrollbarColor: Zo(O.alphaScrollbar),
|
|
4019
|
+
scrollbarColorHover: Zo(O.alphaScrollbarHover),
|
|
4020
4020
|
scrollbarWidth: "5px",
|
|
4021
4021
|
scrollbarHeight: "5px",
|
|
4022
4022
|
scrollbarBorderRadius: "5px",
|
|
4023
|
-
progressRailColor: le(
|
|
4023
|
+
progressRailColor: le(O.alphaProgressRail),
|
|
4024
4024
|
railColor: "rgb(219, 219, 223)",
|
|
4025
|
-
popoverColor:
|
|
4026
|
-
tableColor:
|
|
4027
|
-
cardColor:
|
|
4028
|
-
modalColor:
|
|
4029
|
-
bodyColor:
|
|
4025
|
+
popoverColor: O.neutralPopover,
|
|
4026
|
+
tableColor: O.neutralCard,
|
|
4027
|
+
cardColor: O.neutralCard,
|
|
4028
|
+
modalColor: O.neutralModal,
|
|
4029
|
+
bodyColor: O.neutralBody,
|
|
4030
4030
|
tagColor: "#eee",
|
|
4031
|
-
avatarColor: le(
|
|
4031
|
+
avatarColor: le(O.alphaAvatar),
|
|
4032
4032
|
invertedColor: "rgb(0, 20, 40)",
|
|
4033
|
-
inputColor: le(
|
|
4033
|
+
inputColor: le(O.alphaInput),
|
|
4034
4034
|
codeColor: "rgb(244, 244, 248)",
|
|
4035
4035
|
tabColor: "rgb(247, 247, 250)",
|
|
4036
4036
|
actionColor: "rgb(250, 250, 252)",
|
|
@@ -4040,7 +4040,7 @@ const yt = Object.assign(Object.assign({
|
|
|
4040
4040
|
tableColorHover: "rgba(0, 0, 100, 0.03)",
|
|
4041
4041
|
tableColorStriped: "rgba(0, 0, 100, 0.02)",
|
|
4042
4042
|
pressedColor: "rgb(237, 237, 239)",
|
|
4043
|
-
opacityDisabled:
|
|
4043
|
+
opacityDisabled: O.alphaDisabled,
|
|
4044
4044
|
inputColorDisabled: "rgb(250, 250, 252)",
|
|
4045
4045
|
// secondary button color
|
|
4046
4046
|
// can also be used in tertiary button & quaternary button
|
|
@@ -4191,88 +4191,88 @@ const vh = {
|
|
|
4191
4191
|
mergedClsPrefixRef: t,
|
|
4192
4192
|
inlineThemeDisabled: n,
|
|
4193
4193
|
mergedRtlRef: r
|
|
4194
|
-
} = bt(e), o = oh("Scrollbar", r, t), i =
|
|
4195
|
-
let
|
|
4196
|
-
const M = ac(), k = pe("Scrollbar", "-scrollbar", gh, vh, e, t),
|
|
4194
|
+
} = bt(e), o = oh("Scrollbar", r, t), i = P(null), s = P(null), l = P(null), a = P(null), c = P(null), u = P(null), h = P(null), p = P(null), b = P(null), d = P(null), m = P(null), v = P(0), f = P(0), F = P(!1), A = P(!1);
|
|
4195
|
+
let x = !1, w = !1, _, g, y = 0, z = 0, C = 0, N = 0;
|
|
4196
|
+
const M = ac(), k = pe("Scrollbar", "-scrollbar", gh, vh, e, t), L = I(() => {
|
|
4197
4197
|
const {
|
|
4198
4198
|
value: $
|
|
4199
4199
|
} = p, {
|
|
4200
4200
|
value: B
|
|
4201
|
-
} =
|
|
4201
|
+
} = u, {
|
|
4202
4202
|
value: D
|
|
4203
|
-
} =
|
|
4203
|
+
} = d;
|
|
4204
4204
|
return $ === null || B === null || D === null ? 0 : Math.min($, D * $ / B + Jr(k.value.self.width) * 1.5);
|
|
4205
|
-
}),
|
|
4205
|
+
}), S = I(() => `${L.value}px`), R = I(() => {
|
|
4206
4206
|
const {
|
|
4207
4207
|
value: $
|
|
4208
|
-
} =
|
|
4208
|
+
} = b, {
|
|
4209
4209
|
value: B
|
|
4210
4210
|
} = h, {
|
|
4211
4211
|
value: D
|
|
4212
|
-
} =
|
|
4212
|
+
} = m;
|
|
4213
4213
|
return $ === null || B === null || D === null ? 0 : D * $ / B + Jr(k.value.self.height) * 1.5;
|
|
4214
|
-
}), T =
|
|
4214
|
+
}), T = I(() => `${R.value}px`), j = I(() => {
|
|
4215
4215
|
const {
|
|
4216
4216
|
value: $
|
|
4217
4217
|
} = p, {
|
|
4218
4218
|
value: B
|
|
4219
4219
|
} = v, {
|
|
4220
4220
|
value: D
|
|
4221
|
-
} =
|
|
4221
|
+
} = u, {
|
|
4222
4222
|
value: G
|
|
4223
|
-
} =
|
|
4223
|
+
} = d;
|
|
4224
4224
|
if ($ === null || D === null || G === null)
|
|
4225
4225
|
return 0;
|
|
4226
4226
|
{
|
|
4227
4227
|
const ne = D - $;
|
|
4228
|
-
return ne ? B / ne * (G -
|
|
4228
|
+
return ne ? B / ne * (G - L.value) : 0;
|
|
4229
4229
|
}
|
|
4230
|
-
}), V =
|
|
4230
|
+
}), V = I(() => `${j.value}px`), U = I(() => {
|
|
4231
4231
|
const {
|
|
4232
4232
|
value: $
|
|
4233
|
-
} =
|
|
4233
|
+
} = b, {
|
|
4234
4234
|
value: B
|
|
4235
|
-
} =
|
|
4235
|
+
} = f, {
|
|
4236
4236
|
value: D
|
|
4237
4237
|
} = h, {
|
|
4238
4238
|
value: G
|
|
4239
|
-
} =
|
|
4239
|
+
} = m;
|
|
4240
4240
|
if ($ === null || D === null || G === null)
|
|
4241
4241
|
return 0;
|
|
4242
4242
|
{
|
|
4243
4243
|
const ne = D - $;
|
|
4244
|
-
return ne ? B / ne * (G -
|
|
4244
|
+
return ne ? B / ne * (G - R.value) : 0;
|
|
4245
4245
|
}
|
|
4246
|
-
}), ue =
|
|
4246
|
+
}), ue = I(() => `${U.value}px`), ge = I(() => {
|
|
4247
4247
|
const {
|
|
4248
4248
|
value: $
|
|
4249
4249
|
} = p, {
|
|
4250
4250
|
value: B
|
|
4251
|
-
} =
|
|
4251
|
+
} = u;
|
|
4252
4252
|
return $ !== null && B !== null && B > $;
|
|
4253
|
-
}), Rt =
|
|
4253
|
+
}), Rt = I(() => {
|
|
4254
4254
|
const {
|
|
4255
4255
|
value: $
|
|
4256
|
-
} =
|
|
4256
|
+
} = b, {
|
|
4257
4257
|
value: B
|
|
4258
4258
|
} = h;
|
|
4259
4259
|
return $ !== null && B !== null && B > $;
|
|
4260
|
-
}), En =
|
|
4260
|
+
}), En = I(() => {
|
|
4261
4261
|
const {
|
|
4262
4262
|
trigger: $
|
|
4263
4263
|
} = e;
|
|
4264
|
-
return $ === "none" ||
|
|
4265
|
-
}), An =
|
|
4264
|
+
return $ === "none" || F.value;
|
|
4265
|
+
}), An = I(() => {
|
|
4266
4266
|
const {
|
|
4267
4267
|
trigger: $
|
|
4268
4268
|
} = e;
|
|
4269
|
-
return $ === "none" ||
|
|
4270
|
-
}), Ae =
|
|
4269
|
+
return $ === "none" || A.value;
|
|
4270
|
+
}), Ae = I(() => {
|
|
4271
4271
|
const {
|
|
4272
4272
|
container: $
|
|
4273
4273
|
} = e;
|
|
4274
4274
|
return $ ? $() : s.value;
|
|
4275
|
-
}), Y =
|
|
4275
|
+
}), Y = I(() => {
|
|
4276
4276
|
const {
|
|
4277
4277
|
content: $
|
|
4278
4278
|
} = e;
|
|
@@ -4297,7 +4297,7 @@ const vh = {
|
|
|
4297
4297
|
}, Or = pc(() => {
|
|
4298
4298
|
e.container || Ir({
|
|
4299
4299
|
top: v.value,
|
|
4300
|
-
left:
|
|
4300
|
+
left: f.value
|
|
4301
4301
|
});
|
|
4302
4302
|
}), gs = () => {
|
|
4303
4303
|
Or.isDeactivated || Ue();
|
|
@@ -4351,19 +4351,19 @@ const vh = {
|
|
|
4351
4351
|
}
|
|
4352
4352
|
function xs() {
|
|
4353
4353
|
g !== void 0 && window.clearTimeout(g), g = window.setTimeout(() => {
|
|
4354
|
-
|
|
4354
|
+
A.value = !1;
|
|
4355
4355
|
}, e.duration);
|
|
4356
4356
|
}
|
|
4357
4357
|
function Ss() {
|
|
4358
|
-
|
|
4359
|
-
|
|
4358
|
+
_ !== void 0 && window.clearTimeout(_), _ = window.setTimeout(() => {
|
|
4359
|
+
F.value = !1;
|
|
4360
4360
|
}, e.duration);
|
|
4361
4361
|
}
|
|
4362
4362
|
function Cs() {
|
|
4363
|
-
|
|
4363
|
+
_ !== void 0 && window.clearTimeout(_), F.value = !0;
|
|
4364
4364
|
}
|
|
4365
4365
|
function $s() {
|
|
4366
|
-
g !== void 0 && window.clearTimeout(g),
|
|
4366
|
+
g !== void 0 && window.clearTimeout(g), A.value = !0;
|
|
4367
4367
|
}
|
|
4368
4368
|
function zs($) {
|
|
4369
4369
|
const {
|
|
@@ -4375,35 +4375,35 @@ const vh = {
|
|
|
4375
4375
|
const {
|
|
4376
4376
|
value: $
|
|
4377
4377
|
} = Ae;
|
|
4378
|
-
$ && (v.value = $.scrollTop,
|
|
4378
|
+
$ && (v.value = $.scrollTop, f.value = $.scrollLeft * (o?.value ? -1 : 1));
|
|
4379
4379
|
}
|
|
4380
4380
|
function Fs() {
|
|
4381
4381
|
const {
|
|
4382
4382
|
value: $
|
|
4383
4383
|
} = Y;
|
|
4384
|
-
$ && (
|
|
4384
|
+
$ && (u.value = $.offsetHeight, h.value = $.offsetWidth);
|
|
4385
4385
|
const {
|
|
4386
4386
|
value: B
|
|
4387
4387
|
} = Ae;
|
|
4388
|
-
B && (p.value = B.offsetHeight,
|
|
4388
|
+
B && (p.value = B.offsetHeight, b.value = B.offsetWidth);
|
|
4389
4389
|
const {
|
|
4390
4390
|
value: D
|
|
4391
4391
|
} = c, {
|
|
4392
4392
|
value: G
|
|
4393
4393
|
} = a;
|
|
4394
|
-
D && (
|
|
4394
|
+
D && (m.value = D.offsetWidth), G && (d.value = G.offsetHeight);
|
|
4395
4395
|
}
|
|
4396
4396
|
function Pr() {
|
|
4397
4397
|
const {
|
|
4398
4398
|
value: $
|
|
4399
4399
|
} = Ae;
|
|
4400
|
-
$ && (v.value = $.scrollTop,
|
|
4400
|
+
$ && (v.value = $.scrollTop, f.value = $.scrollLeft * (o?.value ? -1 : 1), p.value = $.offsetHeight, b.value = $.offsetWidth, u.value = $.scrollHeight, h.value = $.scrollWidth);
|
|
4401
4401
|
const {
|
|
4402
4402
|
value: B
|
|
4403
4403
|
} = c, {
|
|
4404
4404
|
value: D
|
|
4405
4405
|
} = a;
|
|
4406
|
-
B && (
|
|
4406
|
+
B && (m.value = B.offsetWidth), D && (d.value = D.offsetHeight);
|
|
4407
4407
|
}
|
|
4408
4408
|
function Ue() {
|
|
4409
4409
|
e.scrollable && (e.useUnifiedContainer ? Pr() : (Fs(), Lr()));
|
|
@@ -4413,20 +4413,20 @@ const vh = {
|
|
|
4413
4413
|
return !(!((B = i.value) === null || B === void 0) && B.contains(sn($)));
|
|
4414
4414
|
}
|
|
4415
4415
|
function Es($) {
|
|
4416
|
-
$.preventDefault(), $.stopPropagation(),
|
|
4416
|
+
$.preventDefault(), $.stopPropagation(), w = !0, oe("mousemove", window, kr, !0), oe("mouseup", window, Dr, !0), z = f.value, C = o?.value ? window.innerWidth - $.clientX : $.clientX;
|
|
4417
4417
|
}
|
|
4418
4418
|
function kr($) {
|
|
4419
|
-
if (!
|
|
4420
|
-
|
|
4419
|
+
if (!w) return;
|
|
4420
|
+
_ !== void 0 && window.clearTimeout(_), g !== void 0 && window.clearTimeout(g);
|
|
4421
4421
|
const {
|
|
4422
4422
|
value: B
|
|
4423
|
-
} =
|
|
4423
|
+
} = b, {
|
|
4424
4424
|
value: D
|
|
4425
4425
|
} = h, {
|
|
4426
4426
|
value: G
|
|
4427
|
-
} =
|
|
4427
|
+
} = R;
|
|
4428
4428
|
if (B === null || D === null) return;
|
|
4429
|
-
const de = (o?.value ? window.innerWidth - $.clientX -
|
|
4429
|
+
const de = (o?.value ? window.innerWidth - $.clientX - C : $.clientX - C) * (D - B) / (B - G), xe = D - B;
|
|
4430
4430
|
let Z = z + de;
|
|
4431
4431
|
Z = Math.min(xe, Z), Z = Math.max(Z, 0);
|
|
4432
4432
|
const {
|
|
@@ -4441,24 +4441,24 @@ const vh = {
|
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
4443
4443
|
function Dr($) {
|
|
4444
|
-
$.preventDefault(), $.stopPropagation(), J("mousemove", window, kr, !0), J("mouseup", window, Dr, !0),
|
|
4444
|
+
$.preventDefault(), $.stopPropagation(), J("mousemove", window, kr, !0), J("mouseup", window, Dr, !0), w = !1, Ue(), Rr($) && Mn();
|
|
4445
4445
|
}
|
|
4446
4446
|
function As($) {
|
|
4447
|
-
$.preventDefault(), $.stopPropagation(),
|
|
4447
|
+
$.preventDefault(), $.stopPropagation(), x = !0, oe("mousemove", window, Tn, !0), oe("mouseup", window, Bn, !0), y = v.value, N = $.clientY;
|
|
4448
4448
|
}
|
|
4449
4449
|
function Tn($) {
|
|
4450
|
-
if (!
|
|
4451
|
-
|
|
4450
|
+
if (!x) return;
|
|
4451
|
+
_ !== void 0 && window.clearTimeout(_), g !== void 0 && window.clearTimeout(g);
|
|
4452
4452
|
const {
|
|
4453
4453
|
value: B
|
|
4454
4454
|
} = p, {
|
|
4455
4455
|
value: D
|
|
4456
|
-
} =
|
|
4456
|
+
} = u, {
|
|
4457
4457
|
value: G
|
|
4458
|
-
} =
|
|
4458
|
+
} = L;
|
|
4459
4459
|
if (B === null || D === null) return;
|
|
4460
4460
|
const de = ($.clientY - N) * (D - B) / (B - G), xe = D - B;
|
|
4461
|
-
let Z =
|
|
4461
|
+
let Z = y + de;
|
|
4462
4462
|
Z = Math.min(xe, Z), Z = Math.max(Z, 0);
|
|
4463
4463
|
const {
|
|
4464
4464
|
value: me
|
|
@@ -4466,7 +4466,7 @@ const vh = {
|
|
|
4466
4466
|
me && (me.scrollTop = Z);
|
|
4467
4467
|
}
|
|
4468
4468
|
function Bn($) {
|
|
4469
|
-
$.preventDefault(), $.stopPropagation(), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0),
|
|
4469
|
+
$.preventDefault(), $.stopPropagation(), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0), x = !1, Ue(), Rr($) && Mn();
|
|
4470
4470
|
}
|
|
4471
4471
|
pt(() => {
|
|
4472
4472
|
const {
|
|
@@ -4484,9 +4484,9 @@ const vh = {
|
|
|
4484
4484
|
}), Ke(() => {
|
|
4485
4485
|
e.container || Ue();
|
|
4486
4486
|
}), Be(() => {
|
|
4487
|
-
|
|
4487
|
+
_ !== void 0 && window.clearTimeout(_), g !== void 0 && window.clearTimeout(g), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0);
|
|
4488
4488
|
});
|
|
4489
|
-
const Nr =
|
|
4489
|
+
const Nr = I(() => {
|
|
4490
4490
|
const {
|
|
4491
4491
|
common: {
|
|
4492
4492
|
cubicBezierEaseInOut: $
|
|
@@ -4568,7 +4568,7 @@ const vh = {
|
|
|
4568
4568
|
xRailRef: c,
|
|
4569
4569
|
needYBar: ge,
|
|
4570
4570
|
needXBar: Rt,
|
|
4571
|
-
yBarSizePx:
|
|
4571
|
+
yBarSizePx: S,
|
|
4572
4572
|
xBarSizePx: T,
|
|
4573
4573
|
yBarTopPx: V,
|
|
4574
4574
|
xBarLeftPx: ue,
|
|
@@ -4598,16 +4598,16 @@ const vh = {
|
|
|
4598
4598
|
xScrollable: a
|
|
4599
4599
|
} = this;
|
|
4600
4600
|
if (!this.scrollable) return (e = t.default) === null || e === void 0 ? void 0 : e.call(t);
|
|
4601
|
-
const c = this.trigger === "none",
|
|
4601
|
+
const c = this.trigger === "none", u = (b, d) => E("div", {
|
|
4602
4602
|
ref: "yRailRef",
|
|
4603
|
-
class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--vertical`, `${n}-scrollbar-rail--vertical--${s}`,
|
|
4603
|
+
class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--vertical`, `${n}-scrollbar-rail--vertical--${s}`, b],
|
|
4604
4604
|
"data-scrollbar-rail": !0,
|
|
4605
|
-
style: [
|
|
4605
|
+
style: [d || "", this.verticalRailStyle],
|
|
4606
4606
|
"aria-hidden": !0
|
|
4607
|
-
},
|
|
4607
|
+
}, E(c ? zo : nn, c ? null : {
|
|
4608
4608
|
name: "fade-in-transition"
|
|
4609
4609
|
}, {
|
|
4610
|
-
default: () => this.needYBar && this.isShowYBar && !this.isIos ?
|
|
4610
|
+
default: () => this.needYBar && this.isShowYBar && !this.isIos ? E("div", {
|
|
4611
4611
|
class: `${n}-scrollbar-rail__scrollbar`,
|
|
4612
4612
|
style: {
|
|
4613
4613
|
height: this.yBarSizePx,
|
|
@@ -4616,25 +4616,25 @@ const vh = {
|
|
|
4616
4616
|
onMousedown: this.handleYScrollMouseDown
|
|
4617
4617
|
}) : null
|
|
4618
4618
|
})), h = () => {
|
|
4619
|
-
var
|
|
4620
|
-
return (
|
|
4619
|
+
var b, d;
|
|
4620
|
+
return (b = this.onRender) === null || b === void 0 || b.call(this), E("div", gt(this.$attrs, {
|
|
4621
4621
|
role: "none",
|
|
4622
4622
|
ref: "wrapperRef",
|
|
4623
4623
|
class: [`${n}-scrollbar`, this.themeClass, o && `${n}-scrollbar--rtl`],
|
|
4624
4624
|
style: this.cssVars,
|
|
4625
4625
|
onMouseenter: r ? void 0 : this.handleMouseEnterWrapper,
|
|
4626
4626
|
onMouseleave: r ? void 0 : this.handleMouseLeaveWrapper
|
|
4627
|
-
}), [this.container ? (
|
|
4627
|
+
}), [this.container ? (d = t.default) === null || d === void 0 ? void 0 : d.call(t) : E("div", {
|
|
4628
4628
|
role: "none",
|
|
4629
4629
|
ref: "containerRef",
|
|
4630
4630
|
class: [`${n}-scrollbar-container`, this.containerClass],
|
|
4631
4631
|
style: this.containerStyle,
|
|
4632
4632
|
onScroll: this.handleScroll,
|
|
4633
4633
|
onWheel: this.onWheel
|
|
4634
|
-
},
|
|
4634
|
+
}, E(yo, {
|
|
4635
4635
|
onResize: this.handleContentResize
|
|
4636
4636
|
}, {
|
|
4637
|
-
default: () =>
|
|
4637
|
+
default: () => E("div", {
|
|
4638
4638
|
ref: "contentRef",
|
|
4639
4639
|
role: "none",
|
|
4640
4640
|
style: [{
|
|
@@ -4642,16 +4642,16 @@ const vh = {
|
|
|
4642
4642
|
}, this.contentStyle],
|
|
4643
4643
|
class: [`${n}-scrollbar-content`, this.contentClass]
|
|
4644
4644
|
}, t)
|
|
4645
|
-
})), i ? null :
|
|
4645
|
+
})), i ? null : u(void 0, void 0), a && E("div", {
|
|
4646
4646
|
ref: "xRailRef",
|
|
4647
4647
|
class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--horizontal`, `${n}-scrollbar-rail--horizontal--${l}`],
|
|
4648
4648
|
style: this.horizontalRailStyle,
|
|
4649
4649
|
"data-scrollbar-rail": !0,
|
|
4650
4650
|
"aria-hidden": !0
|
|
4651
|
-
},
|
|
4651
|
+
}, E(c ? zo : nn, c ? null : {
|
|
4652
4652
|
name: "fade-in-transition"
|
|
4653
4653
|
}, {
|
|
4654
|
-
default: () => this.needXBar && this.isShowXBar && !this.isIos ?
|
|
4654
|
+
default: () => this.needXBar && this.isShowXBar && !this.isIos ? E("div", {
|
|
4655
4655
|
class: `${n}-scrollbar-rail__scrollbar`,
|
|
4656
4656
|
style: {
|
|
4657
4657
|
width: this.xBarSizePx,
|
|
@@ -4661,12 +4661,12 @@ const vh = {
|
|
|
4661
4661
|
onMousedown: this.handleXScrollMouseDown
|
|
4662
4662
|
}) : null
|
|
4663
4663
|
}))]);
|
|
4664
|
-
}, p = this.container ? h() :
|
|
4664
|
+
}, p = this.container ? h() : E(yo, {
|
|
4665
4665
|
onResize: this.handleContainerResize
|
|
4666
4666
|
}, {
|
|
4667
4667
|
default: h
|
|
4668
4668
|
});
|
|
4669
|
-
return i ?
|
|
4669
|
+
return i ? E(_e, null, p, u(this.themeClass, this.cssVars)) : p;
|
|
4670
4670
|
}
|
|
4671
4671
|
}), ss = bh;
|
|
4672
4672
|
function Jo(e) {
|
|
@@ -4782,52 +4782,52 @@ function Un(e, t) {
|
|
|
4782
4782
|
checkedKeys: Array.from(n),
|
|
4783
4783
|
indeterminateKeys: Array.from(i)
|
|
4784
4784
|
};
|
|
4785
|
-
const { levelTreeNodeMap:
|
|
4785
|
+
const { levelTreeNodeMap: u } = t;
|
|
4786
4786
|
let h;
|
|
4787
4787
|
o !== void 0 ? h = Oh(o, n, t, c) : r !== void 0 ? h = _h(r, n, t, c) : h = vn(n, t, c, !1);
|
|
4788
|
-
const p = a === "parent",
|
|
4789
|
-
for (let
|
|
4790
|
-
const
|
|
4791
|
-
for (const
|
|
4792
|
-
if (
|
|
4788
|
+
const p = a === "parent", b = a === "child" || l, d = h, m = /* @__PURE__ */ new Set(), v = Math.max.apply(null, Array.from(u.keys()));
|
|
4789
|
+
for (let f = v; f >= 0; f -= 1) {
|
|
4790
|
+
const F = f === 0, A = u.get(f);
|
|
4791
|
+
for (const x of A) {
|
|
4792
|
+
if (x.isLeaf)
|
|
4793
4793
|
continue;
|
|
4794
|
-
const { key:
|
|
4795
|
-
if (
|
|
4796
|
-
!
|
|
4797
|
-
}),
|
|
4794
|
+
const { key: w, shallowLoaded: _ } = x;
|
|
4795
|
+
if (b && _ && x.children.forEach((C) => {
|
|
4796
|
+
!C.disabled && !C.isLeaf && C.shallowLoaded && d.has(C.key) && d.delete(C.key);
|
|
4797
|
+
}), x.disabled || !_)
|
|
4798
4798
|
continue;
|
|
4799
|
-
let g = !0,
|
|
4800
|
-
for (const
|
|
4801
|
-
const N =
|
|
4802
|
-
if (!
|
|
4803
|
-
if (z && (z = !1),
|
|
4804
|
-
|
|
4805
|
-
else if (
|
|
4806
|
-
|
|
4799
|
+
let g = !0, y = !1, z = !0;
|
|
4800
|
+
for (const C of x.children) {
|
|
4801
|
+
const N = C.key;
|
|
4802
|
+
if (!C.disabled) {
|
|
4803
|
+
if (z && (z = !1), d.has(N))
|
|
4804
|
+
y = !0;
|
|
4805
|
+
else if (m.has(N)) {
|
|
4806
|
+
y = !0, g = !1;
|
|
4807
4807
|
break;
|
|
4808
|
-
} else if (g = !1,
|
|
4808
|
+
} else if (g = !1, y)
|
|
4809
4809
|
break;
|
|
4810
4810
|
}
|
|
4811
4811
|
}
|
|
4812
|
-
g && !z ? (p &&
|
|
4813
|
-
!
|
|
4814
|
-
}),
|
|
4812
|
+
g && !z ? (p && x.children.forEach((C) => {
|
|
4813
|
+
!C.disabled && d.has(C.key) && d.delete(C.key);
|
|
4814
|
+
}), d.add(w)) : y && m.add(w), F && b && d.has(w) && d.delete(w);
|
|
4815
4815
|
}
|
|
4816
4816
|
}
|
|
4817
4817
|
return {
|
|
4818
|
-
checkedKeys: Array.from(
|
|
4819
|
-
indeterminateKeys: Array.from(
|
|
4818
|
+
checkedKeys: Array.from(d),
|
|
4819
|
+
indeterminateKeys: Array.from(m)
|
|
4820
4820
|
};
|
|
4821
4821
|
}
|
|
4822
4822
|
function vn(e, t, n, r) {
|
|
4823
4823
|
const { treeNodeMap: o, getChildren: i } = t, s = /* @__PURE__ */ new Set(), l = new Set(e);
|
|
4824
4824
|
return e.forEach((a) => {
|
|
4825
4825
|
const c = o.get(a);
|
|
4826
|
-
c !== void 0 && ls(c, (
|
|
4827
|
-
if (
|
|
4826
|
+
c !== void 0 && ls(c, (u) => {
|
|
4827
|
+
if (u.disabled)
|
|
4828
4828
|
return ur.STOP;
|
|
4829
|
-
const { key: h } =
|
|
4830
|
-
if (!s.has(h) && (s.add(h), l.add(h), Fh(
|
|
4829
|
+
const { key: h } = u;
|
|
4830
|
+
if (!s.has(h) && (s.add(h), l.add(h), Fh(u.rawNode, i))) {
|
|
4831
4831
|
if (r)
|
|
4832
4832
|
return ur.STOP;
|
|
4833
4833
|
if (!n)
|
|
@@ -4880,12 +4880,12 @@ function Qo(e, t, { loop: n = !1, includeDisabled: r = !1 } = {}) {
|
|
|
4880
4880
|
return;
|
|
4881
4881
|
}
|
|
4882
4882
|
if (c.isGroup) {
|
|
4883
|
-
const
|
|
4884
|
-
|
|
4883
|
+
const u = Tr(c, i);
|
|
4884
|
+
u !== null ? l = u : a(o(c, n));
|
|
4885
4885
|
} else {
|
|
4886
|
-
const
|
|
4887
|
-
if (
|
|
4888
|
-
a(
|
|
4886
|
+
const u = o(c, !1);
|
|
4887
|
+
if (u !== null)
|
|
4888
|
+
a(u);
|
|
4889
4889
|
else {
|
|
4890
4890
|
const h = Dh(c);
|
|
4891
4891
|
h?.isGroup ? a(o(h, n)) : n && a(o(c, !0));
|
|
@@ -4910,9 +4910,9 @@ function Tr(e, t = {}) {
|
|
|
4910
4910
|
const c = r[a];
|
|
4911
4911
|
if (!c.disabled && !c.ignored)
|
|
4912
4912
|
if (c.isGroup) {
|
|
4913
|
-
const
|
|
4914
|
-
if (
|
|
4915
|
-
return
|
|
4913
|
+
const u = Tr(c, t);
|
|
4914
|
+
if (u !== null)
|
|
4915
|
+
return u;
|
|
4916
4916
|
} else
|
|
4917
4917
|
return c;
|
|
4918
4918
|
}
|
|
@@ -4956,21 +4956,21 @@ function jh(e, t) {
|
|
|
4956
4956
|
function as(e, t, n, r, o, i = null, s = 0) {
|
|
4957
4957
|
const l = [];
|
|
4958
4958
|
return e.forEach((a, c) => {
|
|
4959
|
-
var
|
|
4959
|
+
var u;
|
|
4960
4960
|
rn.env.NODE_ENV !== "production" && Eh(a, o) && console.error("[treemate]: node", a, "is invalid");
|
|
4961
4961
|
const h = Object.create(r);
|
|
4962
4962
|
if (h.rawNode = a, h.siblings = l, h.level = s, h.index = c, h.isFirstChild = c === 0, h.isLastChild = c + 1 === e.length, h.parent = i, !h.ignored) {
|
|
4963
4963
|
const p = o(a);
|
|
4964
4964
|
Array.isArray(p) && (h.children = as(p, t, n, r, o, h, s + 1));
|
|
4965
4965
|
}
|
|
4966
|
-
l.push(h), t.set(h.key, h), n.has(s) || n.set(s, []), (
|
|
4966
|
+
l.push(h), t.set(h.key, h), n.has(s) || n.set(s, []), (u = n.get(s)) === null || u === void 0 || u.push(h);
|
|
4967
4967
|
}), l;
|
|
4968
4968
|
}
|
|
4969
4969
|
function Wh(e, t = {}) {
|
|
4970
4970
|
var n;
|
|
4971
|
-
const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), { getDisabled: i = zh, getIgnored: s = Ch, getIsGroup: l = Th, getKey: a = Sh } = t, c = (n = t.getChildren) !== null && n !== void 0 ? n : xh,
|
|
4972
|
-
const
|
|
4973
|
-
return Array.isArray(
|
|
4971
|
+
const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), { getDisabled: i = zh, getIgnored: s = Ch, getIsGroup: l = Th, getKey: a = Sh } = t, c = (n = t.getChildren) !== null && n !== void 0 ? n : xh, u = t.ignoreEmptyChildren ? (x) => {
|
|
4972
|
+
const w = c(x);
|
|
4973
|
+
return Array.isArray(w) ? w.length ? w : null : w;
|
|
4974
4974
|
} : c, h = Object.assign({
|
|
4975
4975
|
get key() {
|
|
4976
4976
|
return a(this.rawNode);
|
|
@@ -4982,106 +4982,106 @@ function Wh(e, t = {}) {
|
|
|
4982
4982
|
return l(this.rawNode);
|
|
4983
4983
|
},
|
|
4984
4984
|
get isLeaf() {
|
|
4985
|
-
return yh(this.rawNode,
|
|
4985
|
+
return yh(this.rawNode, u);
|
|
4986
4986
|
},
|
|
4987
4987
|
get shallowLoaded() {
|
|
4988
|
-
return $h(this.rawNode,
|
|
4988
|
+
return $h(this.rawNode, u);
|
|
4989
4989
|
},
|
|
4990
4990
|
get ignored() {
|
|
4991
4991
|
return s(this.rawNode);
|
|
4992
4992
|
},
|
|
4993
|
-
contains(
|
|
4994
|
-
return jh(this,
|
|
4993
|
+
contains(x) {
|
|
4994
|
+
return jh(this, x);
|
|
4995
4995
|
}
|
|
4996
|
-
}, Nh), p = as(e, r, o, h,
|
|
4997
|
-
function
|
|
4998
|
-
if (
|
|
4996
|
+
}, Nh), p = as(e, r, o, h, u);
|
|
4997
|
+
function b(x) {
|
|
4998
|
+
if (x == null)
|
|
4999
4999
|
return null;
|
|
5000
|
-
const
|
|
5001
|
-
return
|
|
5000
|
+
const w = r.get(x);
|
|
5001
|
+
return w && !w.isGroup && !w.ignored ? w : null;
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5004
|
-
if (
|
|
5003
|
+
function d(x) {
|
|
5004
|
+
if (x == null)
|
|
5005
5005
|
return null;
|
|
5006
|
-
const
|
|
5007
|
-
return
|
|
5006
|
+
const w = r.get(x);
|
|
5007
|
+
return w && !w.ignored ? w : null;
|
|
5008
5008
|
}
|
|
5009
|
-
function
|
|
5010
|
-
const
|
|
5011
|
-
return
|
|
5009
|
+
function m(x, w) {
|
|
5010
|
+
const _ = d(x);
|
|
5011
|
+
return _ ? _.getPrev(w) : null;
|
|
5012
5012
|
}
|
|
5013
|
-
function v(
|
|
5014
|
-
const
|
|
5015
|
-
return
|
|
5013
|
+
function v(x, w) {
|
|
5014
|
+
const _ = d(x);
|
|
5015
|
+
return _ ? _.getNext(w) : null;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5018
|
-
const
|
|
5019
|
-
return
|
|
5017
|
+
function f(x) {
|
|
5018
|
+
const w = d(x);
|
|
5019
|
+
return w ? w.getParent() : null;
|
|
5020
5020
|
}
|
|
5021
|
-
function
|
|
5022
|
-
const
|
|
5023
|
-
return
|
|
5021
|
+
function F(x) {
|
|
5022
|
+
const w = d(x);
|
|
5023
|
+
return w ? w.getChild() : null;
|
|
5024
5024
|
}
|
|
5025
|
-
const
|
|
5025
|
+
const A = {
|
|
5026
5026
|
treeNodes: p,
|
|
5027
5027
|
treeNodeMap: r,
|
|
5028
5028
|
levelTreeNodeMap: o,
|
|
5029
5029
|
maxLevel: Math.max(...o.keys()),
|
|
5030
|
-
getChildren:
|
|
5031
|
-
getFlattenedNodes(
|
|
5032
|
-
return Hh(p,
|
|
5030
|
+
getChildren: u,
|
|
5031
|
+
getFlattenedNodes(x) {
|
|
5032
|
+
return Hh(p, x);
|
|
5033
5033
|
},
|
|
5034
|
-
getNode:
|
|
5035
|
-
getPrev:
|
|
5034
|
+
getNode: b,
|
|
5035
|
+
getPrev: m,
|
|
5036
5036
|
getNext: v,
|
|
5037
|
-
getParent:
|
|
5038
|
-
getChild:
|
|
5037
|
+
getParent: f,
|
|
5038
|
+
getChild: F,
|
|
5039
5039
|
getFirstAvailableNode() {
|
|
5040
5040
|
return Ph(p);
|
|
5041
5041
|
},
|
|
5042
|
-
getPath(
|
|
5043
|
-
return Lh(
|
|
5042
|
+
getPath(x, w = {}) {
|
|
5043
|
+
return Lh(x, w, A);
|
|
5044
5044
|
},
|
|
5045
|
-
getCheckedKeys(
|
|
5046
|
-
const { cascade:
|
|
5045
|
+
getCheckedKeys(x, w = {}) {
|
|
5046
|
+
const { cascade: _ = !0, leafOnly: g = !1, checkStrategy: y = "all", allowNotLoaded: z = !1 } = w;
|
|
5047
5047
|
return Un({
|
|
5048
|
-
checkedKeys: Kn(
|
|
5049
|
-
indeterminateKeys: Vn(
|
|
5050
|
-
cascade:
|
|
5048
|
+
checkedKeys: Kn(x),
|
|
5049
|
+
indeterminateKeys: Vn(x),
|
|
5050
|
+
cascade: _,
|
|
5051
5051
|
leafOnly: g,
|
|
5052
|
-
checkStrategy:
|
|
5052
|
+
checkStrategy: y,
|
|
5053
5053
|
allowNotLoaded: z
|
|
5054
|
-
},
|
|
5054
|
+
}, A);
|
|
5055
5055
|
},
|
|
5056
|
-
check(
|
|
5057
|
-
const { cascade: g = !0, leafOnly:
|
|
5056
|
+
check(x, w, _ = {}) {
|
|
5057
|
+
const { cascade: g = !0, leafOnly: y = !1, checkStrategy: z = "all", allowNotLoaded: C = !1 } = _;
|
|
5058
5058
|
return Un({
|
|
5059
|
-
checkedKeys: Kn(
|
|
5060
|
-
indeterminateKeys: Vn(
|
|
5061
|
-
keysToCheck:
|
|
5059
|
+
checkedKeys: Kn(w),
|
|
5060
|
+
indeterminateKeys: Vn(w),
|
|
5061
|
+
keysToCheck: x == null ? [] : Jo(x),
|
|
5062
5062
|
cascade: g,
|
|
5063
|
-
leafOnly:
|
|
5063
|
+
leafOnly: y,
|
|
5064
5064
|
checkStrategy: z,
|
|
5065
|
-
allowNotLoaded:
|
|
5066
|
-
},
|
|
5065
|
+
allowNotLoaded: C
|
|
5066
|
+
}, A);
|
|
5067
5067
|
},
|
|
5068
|
-
uncheck(
|
|
5069
|
-
const { cascade: g = !0, leafOnly:
|
|
5068
|
+
uncheck(x, w, _ = {}) {
|
|
5069
|
+
const { cascade: g = !0, leafOnly: y = !1, checkStrategy: z = "all", allowNotLoaded: C = !1 } = _;
|
|
5070
5070
|
return Un({
|
|
5071
|
-
checkedKeys: Kn(
|
|
5072
|
-
indeterminateKeys: Vn(
|
|
5073
|
-
keysToUncheck:
|
|
5071
|
+
checkedKeys: Kn(w),
|
|
5072
|
+
indeterminateKeys: Vn(w),
|
|
5073
|
+
keysToUncheck: x == null ? [] : Jo(x),
|
|
5074
5074
|
cascade: g,
|
|
5075
|
-
leafOnly:
|
|
5075
|
+
leafOnly: y,
|
|
5076
5076
|
checkStrategy: z,
|
|
5077
|
-
allowNotLoaded:
|
|
5078
|
-
},
|
|
5077
|
+
allowNotLoaded: C
|
|
5078
|
+
}, A);
|
|
5079
5079
|
},
|
|
5080
|
-
getNonLeafKeys(
|
|
5081
|
-
return wh(p,
|
|
5080
|
+
getNonLeafKeys(x = {}) {
|
|
5081
|
+
return wh(p, x);
|
|
5082
5082
|
}
|
|
5083
5083
|
};
|
|
5084
|
-
return
|
|
5084
|
+
return A;
|
|
5085
5085
|
}
|
|
5086
5086
|
const {
|
|
5087
5087
|
cubicBezierEaseIn: ei,
|
|
@@ -5330,11 +5330,11 @@ function us({
|
|
|
5330
5330
|
arrowWrapperStyle: r,
|
|
5331
5331
|
clsPrefix: o
|
|
5332
5332
|
}) {
|
|
5333
|
-
return
|
|
5333
|
+
return E("div", {
|
|
5334
5334
|
key: "__popover-arrow__",
|
|
5335
5335
|
style: r,
|
|
5336
5336
|
class: [`${o}-popover-arrow-wrapper`, n]
|
|
5337
|
-
},
|
|
5337
|
+
}, E("div", {
|
|
5338
5338
|
class: [`${o}-popover-arrow`, e],
|
|
5339
5339
|
style: t
|
|
5340
5340
|
}));
|
|
@@ -5351,42 +5351,42 @@ const Xh = ee({
|
|
|
5351
5351
|
namespaceRef: r,
|
|
5352
5352
|
mergedClsPrefixRef: o,
|
|
5353
5353
|
inlineThemeDisabled: i
|
|
5354
|
-
} = bt(e), s = pe("Popover", "-popover", Gh, Br, e, o), l =
|
|
5354
|
+
} = bt(e), s = pe("Popover", "-popover", Gh, Br, e, o), l = P(null), a = te("NPopover"), c = P(null), u = P(e.show), h = P(!1);
|
|
5355
5355
|
pt(() => {
|
|
5356
5356
|
const {
|
|
5357
5357
|
show: g
|
|
5358
5358
|
} = e;
|
|
5359
5359
|
g && !ou() && !e.internalDeactivateImmediately && (h.value = !0);
|
|
5360
5360
|
});
|
|
5361
|
-
const p =
|
|
5361
|
+
const p = I(() => {
|
|
5362
5362
|
const {
|
|
5363
5363
|
trigger: g,
|
|
5364
|
-
onClickoutside:
|
|
5364
|
+
onClickoutside: y
|
|
5365
5365
|
} = e, z = [], {
|
|
5366
5366
|
positionManuallyRef: {
|
|
5367
|
-
value:
|
|
5367
|
+
value: C
|
|
5368
5368
|
}
|
|
5369
5369
|
} = a;
|
|
5370
|
-
return
|
|
5370
|
+
return C || (g === "click" && !y && z.push([ro, x, void 0, {
|
|
5371
5371
|
capture: !0
|
|
5372
|
-
}]), g === "hover" && z.push([mc,
|
|
5372
|
+
}]), g === "hover" && z.push([mc, A])), y && z.push([ro, x, void 0, {
|
|
5373
5373
|
capture: !0
|
|
5374
5374
|
}]), (e.displayDirective === "show" || e.animated && h.value) && z.push([Js, e.show]), z;
|
|
5375
|
-
}),
|
|
5375
|
+
}), b = I(() => {
|
|
5376
5376
|
const {
|
|
5377
5377
|
common: {
|
|
5378
5378
|
cubicBezierEaseInOut: g,
|
|
5379
|
-
cubicBezierEaseIn:
|
|
5379
|
+
cubicBezierEaseIn: y,
|
|
5380
5380
|
cubicBezierEaseOut: z
|
|
5381
5381
|
},
|
|
5382
5382
|
self: {
|
|
5383
|
-
space:
|
|
5383
|
+
space: C,
|
|
5384
5384
|
spaceArrow: N,
|
|
5385
5385
|
padding: M,
|
|
5386
5386
|
fontSize: k,
|
|
5387
|
-
textColor:
|
|
5388
|
-
dividerColor:
|
|
5389
|
-
color:
|
|
5387
|
+
textColor: L,
|
|
5388
|
+
dividerColor: S,
|
|
5389
|
+
color: R,
|
|
5390
5390
|
boxShadow: T,
|
|
5391
5391
|
borderRadius: j,
|
|
5392
5392
|
arrowHeight: V,
|
|
@@ -5397,101 +5397,101 @@ const Xh = ee({
|
|
|
5397
5397
|
return {
|
|
5398
5398
|
"--n-box-shadow": T,
|
|
5399
5399
|
"--n-bezier": g,
|
|
5400
|
-
"--n-bezier-ease-in":
|
|
5400
|
+
"--n-bezier-ease-in": y,
|
|
5401
5401
|
"--n-bezier-ease-out": z,
|
|
5402
5402
|
"--n-font-size": k,
|
|
5403
|
-
"--n-text-color":
|
|
5404
|
-
"--n-color":
|
|
5405
|
-
"--n-divider-color":
|
|
5403
|
+
"--n-text-color": L,
|
|
5404
|
+
"--n-color": R,
|
|
5405
|
+
"--n-divider-color": S,
|
|
5406
5406
|
"--n-border-radius": j,
|
|
5407
5407
|
"--n-arrow-height": V,
|
|
5408
5408
|
"--n-arrow-offset": U,
|
|
5409
5409
|
"--n-arrow-offset-vertical": ue,
|
|
5410
5410
|
"--n-padding": M,
|
|
5411
|
-
"--n-space":
|
|
5411
|
+
"--n-space": C,
|
|
5412
5412
|
"--n-space-arrow": N
|
|
5413
5413
|
};
|
|
5414
|
-
}),
|
|
5415
|
-
const g = e.width === "trigger" ? void 0 : Jt(e.width),
|
|
5416
|
-
g &&
|
|
5414
|
+
}), d = I(() => {
|
|
5415
|
+
const g = e.width === "trigger" ? void 0 : Jt(e.width), y = [];
|
|
5416
|
+
g && y.push({
|
|
5417
5417
|
width: g
|
|
5418
5418
|
});
|
|
5419
5419
|
const {
|
|
5420
5420
|
maxWidth: z,
|
|
5421
|
-
minWidth:
|
|
5421
|
+
minWidth: C
|
|
5422
5422
|
} = e;
|
|
5423
|
-
return z &&
|
|
5423
|
+
return z && y.push({
|
|
5424
5424
|
maxWidth: Jt(z)
|
|
5425
|
-
}),
|
|
5426
|
-
maxWidth: Jt(
|
|
5427
|
-
}), i ||
|
|
5428
|
-
}),
|
|
5425
|
+
}), C && y.push({
|
|
5426
|
+
maxWidth: Jt(C)
|
|
5427
|
+
}), i || y.push(b.value), y;
|
|
5428
|
+
}), m = i ? yn("popover", void 0, b, e) : void 0;
|
|
5429
5429
|
a.setBodyInstance({
|
|
5430
5430
|
syncPosition: v
|
|
5431
5431
|
}), Be(() => {
|
|
5432
5432
|
a.setBodyInstance(null);
|
|
5433
5433
|
}), we(se(e, "show"), (g) => {
|
|
5434
|
-
e.animated || (g ?
|
|
5434
|
+
e.animated || (g ? u.value = !0 : u.value = !1);
|
|
5435
5435
|
});
|
|
5436
5436
|
function v() {
|
|
5437
5437
|
var g;
|
|
5438
5438
|
(g = l.value) === null || g === void 0 || g.syncPosition();
|
|
5439
5439
|
}
|
|
5440
|
-
function
|
|
5440
|
+
function f(g) {
|
|
5441
5441
|
e.trigger === "hover" && e.keepAliveOnHover && e.show && a.handleMouseEnter(g);
|
|
5442
5442
|
}
|
|
5443
|
-
function
|
|
5443
|
+
function F(g) {
|
|
5444
5444
|
e.trigger === "hover" && e.keepAliveOnHover && a.handleMouseLeave(g);
|
|
5445
5445
|
}
|
|
5446
|
-
function
|
|
5447
|
-
e.trigger === "hover" && !
|
|
5446
|
+
function A(g) {
|
|
5447
|
+
e.trigger === "hover" && !w().contains(sn(g)) && a.handleMouseMoveOutside(g);
|
|
5448
5448
|
}
|
|
5449
|
-
function
|
|
5450
|
-
(e.trigger === "click" && !
|
|
5449
|
+
function x(g) {
|
|
5450
|
+
(e.trigger === "click" && !w().contains(sn(g)) || e.onClickoutside) && a.handleClickOutside(g);
|
|
5451
5451
|
}
|
|
5452
|
-
function
|
|
5452
|
+
function w() {
|
|
5453
5453
|
return a.getTriggerElement();
|
|
5454
5454
|
}
|
|
5455
5455
|
Se(mn, c), Se(pr, null), Se(vr, null);
|
|
5456
|
-
function
|
|
5457
|
-
if (
|
|
5456
|
+
function _() {
|
|
5457
|
+
if (m?.onRender(), !(e.displayDirective === "show" || e.show || e.animated && h.value))
|
|
5458
5458
|
return null;
|
|
5459
|
-
let
|
|
5459
|
+
let y;
|
|
5460
5460
|
const z = a.internalRenderBodyRef.value, {
|
|
5461
|
-
value:
|
|
5461
|
+
value: C
|
|
5462
5462
|
} = o;
|
|
5463
5463
|
if (z)
|
|
5464
|
-
|
|
5464
|
+
y = z(
|
|
5465
5465
|
// The popover class and overlap class must exists, they will be used
|
|
5466
5466
|
// to place the body & transition animation.
|
|
5467
5467
|
// Shadow class exists for reuse box-shadow.
|
|
5468
|
-
[`${
|
|
5468
|
+
[`${C}-popover-shared`, m?.themeClass.value, e.overlap && `${C}-popover-shared--overlap`, e.showArrow && `${C}-popover-shared--show-arrow`, e.arrowPointToCenter && `${C}-popover-shared--center-arrow`],
|
|
5469
5469
|
c,
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5470
|
+
d.value,
|
|
5471
|
+
f,
|
|
5472
|
+
F
|
|
5473
5473
|
);
|
|
5474
5474
|
else {
|
|
5475
5475
|
const {
|
|
5476
5476
|
value: N
|
|
5477
5477
|
} = a.extraClassRef, {
|
|
5478
5478
|
internalTrapFocus: M
|
|
5479
|
-
} = e, k = !$o(t.header) || !$o(t.footer),
|
|
5480
|
-
var
|
|
5481
|
-
const T = k ?
|
|
5482
|
-
class: [`${
|
|
5479
|
+
} = e, k = !$o(t.header) || !$o(t.footer), L = () => {
|
|
5480
|
+
var S, R;
|
|
5481
|
+
const T = k ? E(_e, null, Nn(t.header, (U) => U ? E("div", {
|
|
5482
|
+
class: [`${C}-popover__header`, e.headerClass],
|
|
5483
5483
|
style: e.headerStyle
|
|
5484
|
-
}, U) : null), Nn(t.default, (U) => U ?
|
|
5485
|
-
class: [`${
|
|
5484
|
+
}, U) : null), Nn(t.default, (U) => U ? E("div", {
|
|
5485
|
+
class: [`${C}-popover__content`, e.contentClass],
|
|
5486
5486
|
style: e.contentStyle
|
|
5487
|
-
}, t) : null), Nn(t.footer, (U) => U ?
|
|
5488
|
-
class: [`${
|
|
5487
|
+
}, t) : null), Nn(t.footer, (U) => U ? E("div", {
|
|
5488
|
+
class: [`${C}-popover__footer`, e.footerClass],
|
|
5489
5489
|
style: e.footerStyle
|
|
5490
|
-
}, U) : null)) : e.scrollable ? (
|
|
5491
|
-
class: [`${
|
|
5490
|
+
}, U) : null)) : e.scrollable ? (S = t.default) === null || S === void 0 ? void 0 : S.call(t) : E("div", {
|
|
5491
|
+
class: [`${C}-popover__content`, e.contentClass],
|
|
5492
5492
|
style: e.contentStyle
|
|
5493
|
-
}, t), j = e.scrollable ?
|
|
5494
|
-
contentClass: k ? void 0 : `${
|
|
5493
|
+
}, t), j = e.scrollable ? E(ss, {
|
|
5494
|
+
contentClass: k ? void 0 : `${C}-popover__content ${(R = e.contentClass) !== null && R !== void 0 ? R : ""}`,
|
|
5495
5495
|
contentStyle: k ? void 0 : e.contentStyle
|
|
5496
5496
|
}, {
|
|
5497
5497
|
default: () => T
|
|
@@ -5500,32 +5500,32 @@ const Xh = ee({
|
|
|
5500
5500
|
arrowStyle: e.arrowStyle,
|
|
5501
5501
|
arrowWrapperClass: e.arrowWrapperClass,
|
|
5502
5502
|
arrowWrapperStyle: e.arrowWrapperStyle,
|
|
5503
|
-
clsPrefix:
|
|
5503
|
+
clsPrefix: C
|
|
5504
5504
|
}) : null;
|
|
5505
5505
|
return [j, V];
|
|
5506
5506
|
};
|
|
5507
|
-
|
|
5508
|
-
class: [`${
|
|
5509
|
-
[`${
|
|
5510
|
-
[`${
|
|
5511
|
-
[`${
|
|
5512
|
-
[`${
|
|
5513
|
-
[`${
|
|
5514
|
-
[`${
|
|
5507
|
+
y = E("div", gt({
|
|
5508
|
+
class: [`${C}-popover`, `${C}-popover-shared`, m?.themeClass.value, N.map((S) => `${C}-${S}`), {
|
|
5509
|
+
[`${C}-popover--scrollable`]: e.scrollable,
|
|
5510
|
+
[`${C}-popover--show-header-or-footer`]: k,
|
|
5511
|
+
[`${C}-popover--raw`]: e.raw,
|
|
5512
|
+
[`${C}-popover-shared--overlap`]: e.overlap,
|
|
5513
|
+
[`${C}-popover-shared--show-arrow`]: e.showArrow,
|
|
5514
|
+
[`${C}-popover-shared--center-arrow`]: e.arrowPointToCenter
|
|
5515
5515
|
}],
|
|
5516
5516
|
ref: c,
|
|
5517
|
-
style:
|
|
5517
|
+
style: d.value,
|
|
5518
5518
|
onKeydown: a.handleKeydown,
|
|
5519
|
-
onMouseenter:
|
|
5520
|
-
onMouseleave:
|
|
5521
|
-
}, n), M ?
|
|
5519
|
+
onMouseenter: f,
|
|
5520
|
+
onMouseleave: F
|
|
5521
|
+
}, n), M ? E(nu, {
|
|
5522
5522
|
active: e.show,
|
|
5523
5523
|
autoFocus: !0
|
|
5524
5524
|
}, {
|
|
5525
|
-
default:
|
|
5526
|
-
}) :
|
|
5525
|
+
default: L
|
|
5526
|
+
}) : L());
|
|
5527
5527
|
}
|
|
5528
|
-
return ft(
|
|
5528
|
+
return ft(y, p.value);
|
|
5529
5529
|
}
|
|
5530
5530
|
return {
|
|
5531
5531
|
displayed: h,
|
|
@@ -5534,12 +5534,12 @@ const Xh = ee({
|
|
|
5534
5534
|
zIndex: a.zIndexRef,
|
|
5535
5535
|
followerRef: l,
|
|
5536
5536
|
adjustedTo: vt(e),
|
|
5537
|
-
followerEnabled:
|
|
5538
|
-
renderContentNode:
|
|
5537
|
+
followerEnabled: u,
|
|
5538
|
+
renderContentNode: _
|
|
5539
5539
|
};
|
|
5540
5540
|
},
|
|
5541
5541
|
render() {
|
|
5542
|
-
return
|
|
5542
|
+
return E(Ei, {
|
|
5543
5543
|
ref: "followerRef",
|
|
5544
5544
|
zIndex: this.zIndex,
|
|
5545
5545
|
show: this.show,
|
|
@@ -5554,7 +5554,7 @@ const Xh = ee({
|
|
|
5554
5554
|
width: this.width === "trigger" ? "target" : void 0,
|
|
5555
5555
|
teleportDisabled: this.adjustedTo === vt.tdkey
|
|
5556
5556
|
}, {
|
|
5557
|
-
default: () => this.animated ?
|
|
5557
|
+
default: () => this.animated ? E(nn, {
|
|
5558
5558
|
name: "popover-transition",
|
|
5559
5559
|
appear: this.isMounted,
|
|
5560
5560
|
// Don't use watch to enable follower, since the transition may
|
|
@@ -5691,133 +5691,133 @@ const zn = {
|
|
|
5691
5691
|
rn.env.NODE_ENV !== "production" && pt(() => {
|
|
5692
5692
|
e.maxWidth !== void 0 && Ct("popover", "`max-width` is deprecated, please use `style` instead."), e.minWidth !== void 0 && Ct("popover", "`min-width` is deprecated, please use `style` instead."), e.arrow !== void 0 && Ct("popover", "`arrow` is deprecated, please use `showArrow` instead."), e.onHide !== void 0 && Ct("popover", "`on-hide` is deprecated, please use `on-update:show` instead."), e.onShow !== void 0 && Ct("popover", "`on-show` is deprecated, please use `on-update:show` instead.");
|
|
5693
5693
|
});
|
|
5694
|
-
const t = yi(), n =
|
|
5694
|
+
const t = yi(), n = P(null), r = I(() => e.show), o = P(e.defaultShow), i = wi(r, o), s = Te(() => e.disabled ? !1 : i.value), l = () => {
|
|
5695
5695
|
if (e.disabled) return !0;
|
|
5696
5696
|
const {
|
|
5697
|
-
getDisabled:
|
|
5697
|
+
getDisabled: S
|
|
5698
5698
|
} = e;
|
|
5699
|
-
return !!
|
|
5700
|
-
}, a = () => l() ? !1 : i.value, c = sc(e, ["arrow", "showArrow"]),
|
|
5699
|
+
return !!S?.();
|
|
5700
|
+
}, a = () => l() ? !1 : i.value, c = sc(e, ["arrow", "showArrow"]), u = I(() => e.overlap ? !1 : c.value);
|
|
5701
5701
|
let h = null;
|
|
5702
|
-
const p =
|
|
5703
|
-
function
|
|
5702
|
+
const p = P(null), b = P(null), d = Te(() => e.x !== void 0 && e.y !== void 0);
|
|
5703
|
+
function m(S) {
|
|
5704
5704
|
const {
|
|
5705
|
-
"onUpdate:show":
|
|
5705
|
+
"onUpdate:show": R,
|
|
5706
5706
|
onUpdateShow: T,
|
|
5707
5707
|
onShow: j,
|
|
5708
5708
|
onHide: V
|
|
5709
5709
|
} = e;
|
|
5710
|
-
o.value =
|
|
5710
|
+
o.value = S, R && Ne(R, S), T && Ne(T, S), S && j && Ne(j, !0), S && V && Ne(V, !1);
|
|
5711
5711
|
}
|
|
5712
5712
|
function v() {
|
|
5713
5713
|
h && h.syncPosition();
|
|
5714
5714
|
}
|
|
5715
|
-
function
|
|
5715
|
+
function f() {
|
|
5716
5716
|
const {
|
|
5717
|
-
value:
|
|
5717
|
+
value: S
|
|
5718
5718
|
} = p;
|
|
5719
|
-
|
|
5719
|
+
S && (window.clearTimeout(S), p.value = null);
|
|
5720
5720
|
}
|
|
5721
|
-
function
|
|
5721
|
+
function F() {
|
|
5722
5722
|
const {
|
|
5723
|
-
value:
|
|
5724
|
-
} =
|
|
5725
|
-
|
|
5723
|
+
value: S
|
|
5724
|
+
} = b;
|
|
5725
|
+
S && (window.clearTimeout(S), b.value = null);
|
|
5726
5726
|
}
|
|
5727
|
-
function
|
|
5728
|
-
const
|
|
5729
|
-
if (e.trigger === "focus" && !
|
|
5727
|
+
function A() {
|
|
5728
|
+
const S = l();
|
|
5729
|
+
if (e.trigger === "focus" && !S) {
|
|
5730
5730
|
if (a()) return;
|
|
5731
|
-
|
|
5731
|
+
m(!0);
|
|
5732
5732
|
}
|
|
5733
5733
|
}
|
|
5734
|
-
function
|
|
5735
|
-
const
|
|
5736
|
-
if (e.trigger === "focus" && !
|
|
5734
|
+
function x() {
|
|
5735
|
+
const S = l();
|
|
5736
|
+
if (e.trigger === "focus" && !S) {
|
|
5737
5737
|
if (!a()) return;
|
|
5738
|
-
|
|
5738
|
+
m(!1);
|
|
5739
5739
|
}
|
|
5740
5740
|
}
|
|
5741
|
-
function
|
|
5742
|
-
const
|
|
5743
|
-
if (e.trigger === "hover" && !
|
|
5744
|
-
if (
|
|
5745
|
-
const
|
|
5746
|
-
|
|
5741
|
+
function w() {
|
|
5742
|
+
const S = l();
|
|
5743
|
+
if (e.trigger === "hover" && !S) {
|
|
5744
|
+
if (F(), p.value !== null || a()) return;
|
|
5745
|
+
const R = () => {
|
|
5746
|
+
m(!0), p.value = null;
|
|
5747
5747
|
}, {
|
|
5748
5748
|
delay: T
|
|
5749
5749
|
} = e;
|
|
5750
|
-
T === 0 ?
|
|
5750
|
+
T === 0 ? R() : p.value = window.setTimeout(R, T);
|
|
5751
5751
|
}
|
|
5752
5752
|
}
|
|
5753
|
-
function
|
|
5754
|
-
const
|
|
5755
|
-
if (e.trigger === "hover" && !
|
|
5756
|
-
if (
|
|
5757
|
-
const
|
|
5758
|
-
|
|
5753
|
+
function _() {
|
|
5754
|
+
const S = l();
|
|
5755
|
+
if (e.trigger === "hover" && !S) {
|
|
5756
|
+
if (f(), b.value !== null || !a()) return;
|
|
5757
|
+
const R = () => {
|
|
5758
|
+
m(!1), b.value = null;
|
|
5759
5759
|
}, {
|
|
5760
5760
|
duration: T
|
|
5761
5761
|
} = e;
|
|
5762
|
-
T === 0 ?
|
|
5762
|
+
T === 0 ? R() : b.value = window.setTimeout(R, T);
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
5765
5765
|
function g() {
|
|
5766
|
-
|
|
5766
|
+
_();
|
|
5767
5767
|
}
|
|
5768
|
-
function
|
|
5769
|
-
var
|
|
5770
|
-
a() && (e.trigger === "click" && (
|
|
5768
|
+
function y(S) {
|
|
5769
|
+
var R;
|
|
5770
|
+
a() && (e.trigger === "click" && (f(), F(), m(!1)), (R = e.onClickoutside) === null || R === void 0 || R.call(e, S));
|
|
5771
5771
|
}
|
|
5772
5772
|
function z() {
|
|
5773
5773
|
if (e.trigger === "click" && !l()) {
|
|
5774
|
-
|
|
5775
|
-
const
|
|
5776
|
-
|
|
5774
|
+
f(), F();
|
|
5775
|
+
const S = !a();
|
|
5776
|
+
m(S);
|
|
5777
5777
|
}
|
|
5778
5778
|
}
|
|
5779
|
-
function S
|
|
5780
|
-
e.internalTrapFocus &&
|
|
5779
|
+
function C(S) {
|
|
5780
|
+
e.internalTrapFocus && S.key === "Escape" && (f(), F(), m(!1));
|
|
5781
5781
|
}
|
|
5782
|
-
function N(
|
|
5783
|
-
o.value =
|
|
5782
|
+
function N(S) {
|
|
5783
|
+
o.value = S;
|
|
5784
5784
|
}
|
|
5785
5785
|
function M() {
|
|
5786
|
-
var
|
|
5787
|
-
return (
|
|
5786
|
+
var S;
|
|
5787
|
+
return (S = n.value) === null || S === void 0 ? void 0 : S.targetRef;
|
|
5788
5788
|
}
|
|
5789
|
-
function k(
|
|
5790
|
-
h =
|
|
5789
|
+
function k(S) {
|
|
5790
|
+
h = S;
|
|
5791
5791
|
}
|
|
5792
5792
|
return Se("NPopover", {
|
|
5793
5793
|
getTriggerElement: M,
|
|
5794
|
-
handleKeydown:
|
|
5795
|
-
handleMouseEnter:
|
|
5796
|
-
handleMouseLeave:
|
|
5797
|
-
handleClickOutside:
|
|
5794
|
+
handleKeydown: C,
|
|
5795
|
+
handleMouseEnter: w,
|
|
5796
|
+
handleMouseLeave: _,
|
|
5797
|
+
handleClickOutside: y,
|
|
5798
5798
|
handleMouseMoveOutside: g,
|
|
5799
5799
|
setBodyInstance: k,
|
|
5800
|
-
positionManuallyRef:
|
|
5800
|
+
positionManuallyRef: d,
|
|
5801
5801
|
isMountedRef: t,
|
|
5802
5802
|
zIndexRef: se(e, "zIndex"),
|
|
5803
5803
|
extraClassRef: se(e, "internalExtraClass"),
|
|
5804
5804
|
internalRenderBodyRef: se(e, "internalRenderBody")
|
|
5805
5805
|
}), pt(() => {
|
|
5806
|
-
i.value && l() &&
|
|
5806
|
+
i.value && l() && m(!1);
|
|
5807
5807
|
}), {
|
|
5808
5808
|
binderInstRef: n,
|
|
5809
|
-
positionManually:
|
|
5809
|
+
positionManually: d,
|
|
5810
5810
|
mergedShowConsideringDisabledProp: s,
|
|
5811
5811
|
// if to show popover body
|
|
5812
5812
|
uncontrolledShow: o,
|
|
5813
|
-
mergedShowArrow:
|
|
5813
|
+
mergedShowArrow: u,
|
|
5814
5814
|
getMergedShow: a,
|
|
5815
5815
|
setShow: N,
|
|
5816
5816
|
handleClick: z,
|
|
5817
|
-
handleMouseEnter:
|
|
5818
|
-
handleMouseLeave:
|
|
5819
|
-
handleFocus:
|
|
5820
|
-
handleBlur:
|
|
5817
|
+
handleMouseEnter: w,
|
|
5818
|
+
handleMouseLeave: _,
|
|
5819
|
+
handleFocus: A,
|
|
5820
|
+
handleBlur: x,
|
|
5821
5821
|
syncPosition: v
|
|
5822
5822
|
};
|
|
5823
5823
|
},
|
|
@@ -5829,7 +5829,7 @@ const zn = {
|
|
|
5829
5829
|
} = this;
|
|
5830
5830
|
let r, o = !1;
|
|
5831
5831
|
if (!t && (r = lu(n, "trigger"), r)) {
|
|
5832
|
-
r = Qs(r), r = r.type === el ?
|
|
5832
|
+
r = Qs(r), r = r.type === el ? E("span", [r]) : r;
|
|
5833
5833
|
const i = {
|
|
5834
5834
|
onClick: this.handleClick,
|
|
5835
5835
|
onMouseenter: this.handleMouseEnter,
|
|
@@ -5847,35 +5847,35 @@ const zn = {
|
|
|
5847
5847
|
internalInheritedEventHandlers: s
|
|
5848
5848
|
} = this, l = [i, ...s], a = {
|
|
5849
5849
|
onBlur: (c) => {
|
|
5850
|
-
l.forEach((
|
|
5851
|
-
|
|
5850
|
+
l.forEach((u) => {
|
|
5851
|
+
u.onBlur(c);
|
|
5852
5852
|
});
|
|
5853
5853
|
},
|
|
5854
5854
|
onFocus: (c) => {
|
|
5855
|
-
l.forEach((
|
|
5856
|
-
|
|
5855
|
+
l.forEach((u) => {
|
|
5856
|
+
u.onFocus(c);
|
|
5857
5857
|
});
|
|
5858
5858
|
},
|
|
5859
5859
|
onClick: (c) => {
|
|
5860
|
-
l.forEach((
|
|
5861
|
-
|
|
5860
|
+
l.forEach((u) => {
|
|
5861
|
+
u.onClick(c);
|
|
5862
5862
|
});
|
|
5863
5863
|
},
|
|
5864
5864
|
onMouseenter: (c) => {
|
|
5865
|
-
l.forEach((
|
|
5866
|
-
|
|
5865
|
+
l.forEach((u) => {
|
|
5866
|
+
u.onMouseenter(c);
|
|
5867
5867
|
});
|
|
5868
5868
|
},
|
|
5869
5869
|
onMouseleave: (c) => {
|
|
5870
|
-
l.forEach((
|
|
5871
|
-
|
|
5870
|
+
l.forEach((u) => {
|
|
5871
|
+
u.onMouseleave(c);
|
|
5872
5872
|
});
|
|
5873
5873
|
}
|
|
5874
5874
|
};
|
|
5875
5875
|
Zh(r, s ? "nested" : t ? "manual" : this.trigger, a);
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
|
-
return
|
|
5878
|
+
return E($i, {
|
|
5879
5879
|
ref: "binderInstRef",
|
|
5880
5880
|
syncTarget: !o,
|
|
5881
5881
|
syncTargetWithParent: this.internalSyncTargetWithParent
|
|
@@ -5883,7 +5883,7 @@ const zn = {
|
|
|
5883
5883
|
default: () => {
|
|
5884
5884
|
this.mergedShowConsideringDisabledProp;
|
|
5885
5885
|
const i = this.getMergedShow();
|
|
5886
|
-
return [this.internalTrapFocus && i ? ft(
|
|
5886
|
+
return [this.internalTrapFocus && i ? ft(E("div", {
|
|
5887
5887
|
style: {
|
|
5888
5888
|
position: "fixed",
|
|
5889
5889
|
top: 0,
|
|
@@ -5894,9 +5894,9 @@ const zn = {
|
|
|
5894
5894
|
}), [[Fi, {
|
|
5895
5895
|
enabled: i,
|
|
5896
5896
|
zIndex: this.zIndex
|
|
5897
|
-
}]]) : null, t ? null :
|
|
5897
|
+
}]]) : null, t ? null : E(zi, null, {
|
|
5898
5898
|
default: () => r
|
|
5899
|
-
}),
|
|
5899
|
+
}), E(Xh, ki(this.$props, qh, Object.assign(Object.assign({}, this.$attrs), {
|
|
5900
5900
|
showArrow: this.mergedShowArrow,
|
|
5901
5901
|
show: i
|
|
5902
5902
|
})), {
|
|
@@ -5950,24 +5950,24 @@ function e0(e) {
|
|
|
5950
5950
|
borderRadius: l,
|
|
5951
5951
|
fontSizeSmall: a,
|
|
5952
5952
|
fontSizeMedium: c,
|
|
5953
|
-
fontSizeLarge:
|
|
5953
|
+
fontSizeLarge: u,
|
|
5954
5954
|
fontSizeHuge: h,
|
|
5955
5955
|
heightSmall: p,
|
|
5956
|
-
heightMedium:
|
|
5957
|
-
heightLarge:
|
|
5958
|
-
heightHuge:
|
|
5956
|
+
heightMedium: b,
|
|
5957
|
+
heightLarge: d,
|
|
5958
|
+
heightHuge: m,
|
|
5959
5959
|
textColor3: v,
|
|
5960
|
-
opacityDisabled:
|
|
5960
|
+
opacityDisabled: f
|
|
5961
5961
|
} = e;
|
|
5962
5962
|
return Object.assign(Object.assign({}, Qh), {
|
|
5963
5963
|
optionHeightSmall: p,
|
|
5964
|
-
optionHeightMedium:
|
|
5965
|
-
optionHeightLarge:
|
|
5966
|
-
optionHeightHuge:
|
|
5964
|
+
optionHeightMedium: b,
|
|
5965
|
+
optionHeightLarge: d,
|
|
5966
|
+
optionHeightHuge: m,
|
|
5967
5967
|
borderRadius: l,
|
|
5968
5968
|
fontSizeSmall: a,
|
|
5969
5969
|
fontSizeMedium: c,
|
|
5970
|
-
fontSizeLarge:
|
|
5970
|
+
fontSizeLarge: u,
|
|
5971
5971
|
fontSizeHuge: h,
|
|
5972
5972
|
// non-inverted
|
|
5973
5973
|
optionTextColor: n,
|
|
@@ -5995,7 +5995,7 @@ function e0(e) {
|
|
|
5995
5995
|
optionColorHoverInverted: t,
|
|
5996
5996
|
optionColorActiveInverted: t,
|
|
5997
5997
|
groupHeaderTextColorInverted: "#AAA",
|
|
5998
|
-
optionOpacityDisabled:
|
|
5998
|
+
optionOpacityDisabled: f
|
|
5999
5999
|
});
|
|
6000
6000
|
}
|
|
6001
6001
|
const t0 = {
|
|
@@ -6036,7 +6036,7 @@ const o0 = {
|
|
|
6036
6036
|
setup(e) {
|
|
6037
6037
|
const {
|
|
6038
6038
|
mergedClsPrefixRef: t
|
|
6039
|
-
} = bt(e), n = pe("Tooltip", "-tooltip", void 0, o0, e, t), r =
|
|
6039
|
+
} = bt(e), n = pe("Tooltip", "-tooltip", void 0, o0, e, t), r = P(null);
|
|
6040
6040
|
return Object.assign(Object.assign({}, {
|
|
6041
6041
|
syncPosition() {
|
|
6042
6042
|
r.value.syncPosition();
|
|
@@ -6047,7 +6047,7 @@ const o0 = {
|
|
|
6047
6047
|
}), {
|
|
6048
6048
|
popoverRef: r,
|
|
6049
6049
|
mergedTheme: n,
|
|
6050
|
-
popoverThemeOverrides:
|
|
6050
|
+
popoverThemeOverrides: I(() => n.value.self)
|
|
6051
6051
|
});
|
|
6052
6052
|
},
|
|
6053
6053
|
render() {
|
|
@@ -6055,7 +6055,7 @@ const o0 = {
|
|
|
6055
6055
|
mergedTheme: e,
|
|
6056
6056
|
internalExtraClass: t
|
|
6057
6057
|
} = this;
|
|
6058
|
-
return
|
|
6058
|
+
return E(ds, Object.assign(Object.assign({}, this.$props), {
|
|
6059
6059
|
theme: e.peers.Popover,
|
|
6060
6060
|
themeOverrides: e.peerOverrides.Popover,
|
|
6061
6061
|
builtinThemeOverrides: this.popoverThemeOverrides,
|
|
@@ -6072,7 +6072,7 @@ const o0 = {
|
|
|
6072
6072
|
}
|
|
6073
6073
|
},
|
|
6074
6074
|
render() {
|
|
6075
|
-
return
|
|
6075
|
+
return E("div", {
|
|
6076
6076
|
class: `${this.clsPrefix}-dropdown-divider`
|
|
6077
6077
|
});
|
|
6078
6078
|
}
|
|
@@ -6118,17 +6118,17 @@ const o0 = {
|
|
|
6118
6118
|
renderOption: s
|
|
6119
6119
|
} = this, {
|
|
6120
6120
|
rawNode: l
|
|
6121
|
-
} = this.tmNode, a =
|
|
6121
|
+
} = this.tmNode, a = E("div", Object.assign({
|
|
6122
6122
|
class: `${t}-dropdown-option`
|
|
6123
|
-
}, o?.(l)),
|
|
6123
|
+
}, o?.(l)), E("div", {
|
|
6124
6124
|
class: `${t}-dropdown-option-body ${t}-dropdown-option-body--group`
|
|
6125
|
-
},
|
|
6125
|
+
}, E("div", {
|
|
6126
6126
|
"data-dropdown-option": !0,
|
|
6127
6127
|
class: [`${t}-dropdown-option-body__prefix`, r && `${t}-dropdown-option-body__prefix--show-icon`]
|
|
6128
|
-
}, cn(l.icon)),
|
|
6128
|
+
}, cn(l.icon)), E("div", {
|
|
6129
6129
|
class: `${t}-dropdown-option-body__label`,
|
|
6130
6130
|
"data-dropdown-option": !0
|
|
6131
|
-
}, i ? i(l) : cn((e = l.title) !== null && e !== void 0 ? e : l[this.labelField])),
|
|
6131
|
+
}, i ? i(l) : cn((e = l.title) !== null && e !== void 0 ? e : l[this.labelField])), E("div", {
|
|
6132
6132
|
class: [`${t}-dropdown-option-body__suffix`, n && `${t}-dropdown-option-body__suffix--has-submenu`],
|
|
6133
6133
|
"data-dropdown-option": !0
|
|
6134
6134
|
})));
|
|
@@ -6192,7 +6192,7 @@ const a0 = {
|
|
|
6192
6192
|
const {
|
|
6193
6193
|
mergedClsPrefixRef: t,
|
|
6194
6194
|
inlineThemeDisabled: n
|
|
6195
|
-
} = bt(e), r = pe("Icon", "-icon", c0, a0, e, t), o =
|
|
6195
|
+
} = bt(e), r = pe("Icon", "-icon", c0, a0, e, t), o = I(() => {
|
|
6196
6196
|
const {
|
|
6197
6197
|
depth: s
|
|
6198
6198
|
} = e, {
|
|
@@ -6204,12 +6204,12 @@ const a0 = {
|
|
|
6204
6204
|
if (s !== void 0) {
|
|
6205
6205
|
const {
|
|
6206
6206
|
color: c,
|
|
6207
|
-
[`opacity${s}Depth`]:
|
|
6207
|
+
[`opacity${s}Depth`]: u
|
|
6208
6208
|
} = a;
|
|
6209
6209
|
return {
|
|
6210
6210
|
"--n-bezier": l,
|
|
6211
6211
|
"--n-color": c,
|
|
6212
|
-
"--n-opacity":
|
|
6212
|
+
"--n-opacity": u
|
|
6213
6213
|
};
|
|
6214
6214
|
}
|
|
6215
6215
|
return {
|
|
@@ -6217,10 +6217,10 @@ const a0 = {
|
|
|
6217
6217
|
"--n-color": "",
|
|
6218
6218
|
"--n-opacity": ""
|
|
6219
6219
|
};
|
|
6220
|
-
}), i = n ? yn("icon",
|
|
6220
|
+
}), i = n ? yn("icon", I(() => `${e.depth || "d"}`), o, e) : void 0;
|
|
6221
6221
|
return {
|
|
6222
6222
|
mergedClsPrefix: t,
|
|
6223
|
-
mergedStyle:
|
|
6223
|
+
mergedStyle: I(() => {
|
|
6224
6224
|
const {
|
|
6225
6225
|
size: s,
|
|
6226
6226
|
color: l
|
|
@@ -6245,14 +6245,14 @@ const a0 = {
|
|
|
6245
6245
|
onRender: i,
|
|
6246
6246
|
themeClass: s
|
|
6247
6247
|
} = this;
|
|
6248
|
-
return !((e = t?.$options) === null || e === void 0) && e._n_icon__ && an("icon", "don't wrap `n-icon` inside `n-icon`"), i?.(),
|
|
6248
|
+
return !((e = t?.$options) === null || e === void 0) && e._n_icon__ && an("icon", "don't wrap `n-icon` inside `n-icon`"), i?.(), E("i", gt(this.$attrs, {
|
|
6249
6249
|
role: "img",
|
|
6250
6250
|
class: [`${r}-icon`, s, {
|
|
6251
6251
|
[`${r}-icon--depth`]: n,
|
|
6252
6252
|
[`${r}-icon--color-transition`]: n !== void 0
|
|
6253
6253
|
}],
|
|
6254
6254
|
style: [this.cssVars, this.mergedStyle]
|
|
6255
|
-
}), o ?
|
|
6255
|
+
}), o ? E(o) : this.$slots);
|
|
6256
6256
|
}
|
|
6257
6257
|
});
|
|
6258
6258
|
function dr(e, t) {
|
|
@@ -6299,24 +6299,24 @@ const ps = ee({
|
|
|
6299
6299
|
animatedRef: l,
|
|
6300
6300
|
mergedShowRef: a,
|
|
6301
6301
|
renderLabelRef: c,
|
|
6302
|
-
renderIconRef:
|
|
6302
|
+
renderIconRef: u,
|
|
6303
6303
|
labelFieldRef: h,
|
|
6304
6304
|
childrenFieldRef: p,
|
|
6305
|
-
renderOptionRef:
|
|
6306
|
-
nodePropsRef:
|
|
6307
|
-
menuPropsRef:
|
|
6308
|
-
} = t, v = te(ri, null),
|
|
6305
|
+
renderOptionRef: b,
|
|
6306
|
+
nodePropsRef: d,
|
|
6307
|
+
menuPropsRef: m
|
|
6308
|
+
} = t, v = te(ri, null), f = te(_r), F = te(mn), A = I(() => e.tmNode.rawNode), x = I(() => {
|
|
6309
6309
|
const {
|
|
6310
6310
|
value: T
|
|
6311
6311
|
} = p;
|
|
6312
6312
|
return dr(e.tmNode.rawNode, T);
|
|
6313
|
-
}),
|
|
6313
|
+
}), w = I(() => {
|
|
6314
6314
|
const {
|
|
6315
6315
|
disabled: T
|
|
6316
6316
|
} = e.tmNode;
|
|
6317
6317
|
return T;
|
|
6318
|
-
}),
|
|
6319
|
-
if (!
|
|
6318
|
+
}), _ = I(() => {
|
|
6319
|
+
if (!x.value) return !1;
|
|
6320
6320
|
const {
|
|
6321
6321
|
key: T,
|
|
6322
6322
|
disabled: j
|
|
@@ -6332,15 +6332,15 @@ const ps = ee({
|
|
|
6332
6332
|
value: ge
|
|
6333
6333
|
} = i;
|
|
6334
6334
|
return V !== null ? ge.includes(T) : U !== null ? ge.includes(T) && ge[ge.length - 1] !== T : ue !== null ? ge.includes(T) : !1;
|
|
6335
|
-
}), g =
|
|
6335
|
+
}), g = I(() => r.value === null && !l.value), y = dc(_, 300, g), z = I(() => !!v?.enteringSubmenuRef.value), C = P(!1);
|
|
6336
6336
|
Se(ri, {
|
|
6337
|
-
enteringSubmenuRef:
|
|
6337
|
+
enteringSubmenuRef: C
|
|
6338
6338
|
});
|
|
6339
6339
|
function N() {
|
|
6340
|
-
|
|
6340
|
+
C.value = !0;
|
|
6341
6341
|
}
|
|
6342
6342
|
function M() {
|
|
6343
|
-
|
|
6343
|
+
C.value = !1;
|
|
6344
6344
|
}
|
|
6345
6345
|
function k() {
|
|
6346
6346
|
const {
|
|
@@ -6349,13 +6349,13 @@ const ps = ee({
|
|
|
6349
6349
|
} = e;
|
|
6350
6350
|
j.disabled || a.value && (o.value = T, r.value = null, n.value = j.key);
|
|
6351
6351
|
}
|
|
6352
|
-
function
|
|
6352
|
+
function L() {
|
|
6353
6353
|
const {
|
|
6354
6354
|
tmNode: T
|
|
6355
6355
|
} = e;
|
|
6356
6356
|
T.disabled || a.value && n.value !== T.key && k();
|
|
6357
6357
|
}
|
|
6358
|
-
function
|
|
6358
|
+
function S(T) {
|
|
6359
6359
|
if (e.tmNode.disabled || !a.value) return;
|
|
6360
6360
|
const {
|
|
6361
6361
|
relatedTarget: j
|
|
@@ -6366,10 +6366,10 @@ const ps = ee({
|
|
|
6366
6366
|
target: j
|
|
6367
6367
|
}, "scrollbarRail") && (n.value = null);
|
|
6368
6368
|
}
|
|
6369
|
-
function
|
|
6369
|
+
function R() {
|
|
6370
6370
|
const {
|
|
6371
6371
|
value: T
|
|
6372
|
-
} =
|
|
6372
|
+
} = x, {
|
|
6373
6373
|
tmNode: j
|
|
6374
6374
|
} = e;
|
|
6375
6375
|
a.value && !T && !j.disabled && (t.doSelect(j.key, j.rawNode), t.doUpdateShow(!1));
|
|
@@ -6377,15 +6377,15 @@ const ps = ee({
|
|
|
6377
6377
|
return {
|
|
6378
6378
|
labelField: h,
|
|
6379
6379
|
renderLabel: c,
|
|
6380
|
-
renderIcon:
|
|
6381
|
-
siblingHasIcon:
|
|
6382
|
-
siblingHasSubmenu:
|
|
6383
|
-
menuProps:
|
|
6384
|
-
popoverBody:
|
|
6380
|
+
renderIcon: u,
|
|
6381
|
+
siblingHasIcon: f.showIconRef,
|
|
6382
|
+
siblingHasSubmenu: f.hasSubmenuRef,
|
|
6383
|
+
menuProps: m,
|
|
6384
|
+
popoverBody: F,
|
|
6385
6385
|
animated: l,
|
|
6386
|
-
mergedShowSubmenu:
|
|
6387
|
-
rawNode:
|
|
6388
|
-
hasSubmenu:
|
|
6386
|
+
mergedShowSubmenu: I(() => y.value && !z.value),
|
|
6387
|
+
rawNode: A,
|
|
6388
|
+
hasSubmenu: x,
|
|
6389
6389
|
pending: Te(() => {
|
|
6390
6390
|
const {
|
|
6391
6391
|
value: T
|
|
@@ -6410,13 +6410,13 @@ const ps = ee({
|
|
|
6410
6410
|
} = e.tmNode, V = T.findIndex((U) => j === U);
|
|
6411
6411
|
return V === -1 ? !1 : V === T.length - 1;
|
|
6412
6412
|
}),
|
|
6413
|
-
mergedDisabled:
|
|
6414
|
-
renderOption:
|
|
6415
|
-
nodeProps:
|
|
6416
|
-
handleClick:
|
|
6417
|
-
handleMouseMove:
|
|
6413
|
+
mergedDisabled: w,
|
|
6414
|
+
renderOption: b,
|
|
6415
|
+
nodeProps: d,
|
|
6416
|
+
handleClick: R,
|
|
6417
|
+
handleMouseMove: L,
|
|
6418
6418
|
handleMouseEnter: k,
|
|
6419
|
-
handleMouseLeave:
|
|
6419
|
+
handleMouseLeave: S,
|
|
6420
6420
|
handleSubmenuBeforeEnter: N,
|
|
6421
6421
|
handleSubmenuAfterEnter: M
|
|
6422
6422
|
};
|
|
@@ -6432,67 +6432,67 @@ const ps = ee({
|
|
|
6432
6432
|
siblingHasSubmenu: l,
|
|
6433
6433
|
renderLabel: a,
|
|
6434
6434
|
renderIcon: c,
|
|
6435
|
-
renderOption:
|
|
6435
|
+
renderOption: u,
|
|
6436
6436
|
nodeProps: h,
|
|
6437
6437
|
props: p,
|
|
6438
|
-
scrollable:
|
|
6438
|
+
scrollable: b
|
|
6439
6439
|
} = this;
|
|
6440
|
-
let
|
|
6440
|
+
let d = null;
|
|
6441
6441
|
if (o) {
|
|
6442
|
-
const
|
|
6443
|
-
|
|
6442
|
+
const F = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, r, r.children);
|
|
6443
|
+
d = E(vs, Object.assign({}, F, {
|
|
6444
6444
|
clsPrefix: i,
|
|
6445
6445
|
scrollable: this.scrollable,
|
|
6446
6446
|
tmNodes: this.tmNode.children,
|
|
6447
6447
|
parentKey: this.tmNode.key
|
|
6448
6448
|
}));
|
|
6449
6449
|
}
|
|
6450
|
-
const
|
|
6450
|
+
const m = {
|
|
6451
6451
|
class: [`${i}-dropdown-option-body`, this.pending && `${i}-dropdown-option-body--pending`, this.active && `${i}-dropdown-option-body--active`, this.childActive && `${i}-dropdown-option-body--child-active`, this.mergedDisabled && `${i}-dropdown-option-body--disabled`],
|
|
6452
6452
|
onMousemove: this.handleMouseMove,
|
|
6453
6453
|
onMouseenter: this.handleMouseEnter,
|
|
6454
6454
|
onMouseleave: this.handleMouseLeave,
|
|
6455
6455
|
onClick: this.handleClick
|
|
6456
|
-
}, v = h?.(r),
|
|
6456
|
+
}, v = h?.(r), f = E("div", Object.assign({
|
|
6457
6457
|
class: [`${i}-dropdown-option`, v?.class],
|
|
6458
6458
|
"data-dropdown-option": !0
|
|
6459
|
-
}, v),
|
|
6459
|
+
}, v), E("div", gt(m, p), [E("div", {
|
|
6460
6460
|
class: [`${i}-dropdown-option-body__prefix`, s && `${i}-dropdown-option-body__prefix--show-icon`]
|
|
6461
|
-
}, [c ? c(r) : cn(r.icon)]),
|
|
6461
|
+
}, [c ? c(r) : cn(r.icon)]), E("div", {
|
|
6462
6462
|
"data-dropdown-option": !0,
|
|
6463
6463
|
class: `${i}-dropdown-option-body__label`
|
|
6464
|
-
}, a ? a(r) : cn((t = r[this.labelField]) !== null && t !== void 0 ? t : r.title)),
|
|
6464
|
+
}, a ? a(r) : cn((t = r[this.labelField]) !== null && t !== void 0 ? t : r.title)), E("div", {
|
|
6465
6465
|
"data-dropdown-option": !0,
|
|
6466
6466
|
class: [`${i}-dropdown-option-body__suffix`, l && `${i}-dropdown-option-body__suffix--has-submenu`]
|
|
6467
|
-
}, this.hasSubmenu ?
|
|
6468
|
-
default: () =>
|
|
6469
|
-
}) : null)]), this.hasSubmenu ?
|
|
6470
|
-
default: () => [
|
|
6471
|
-
default: () =>
|
|
6467
|
+
}, this.hasSubmenu ? E(d0, null, {
|
|
6468
|
+
default: () => E(ch, null)
|
|
6469
|
+
}) : null)]), this.hasSubmenu ? E($i, null, {
|
|
6470
|
+
default: () => [E(zi, null, {
|
|
6471
|
+
default: () => E("div", {
|
|
6472
6472
|
class: `${i}-dropdown-offset-container`
|
|
6473
|
-
},
|
|
6473
|
+
}, E(Ei, {
|
|
6474
6474
|
show: this.mergedShowSubmenu,
|
|
6475
6475
|
placement: this.placement,
|
|
6476
|
-
to:
|
|
6477
|
-
teleportDisabled: !
|
|
6476
|
+
to: b && this.popoverBody || void 0,
|
|
6477
|
+
teleportDisabled: !b
|
|
6478
6478
|
}, {
|
|
6479
|
-
default: () =>
|
|
6479
|
+
default: () => E("div", {
|
|
6480
6480
|
class: `${i}-dropdown-menu-wrapper`
|
|
6481
|
-
}, n ?
|
|
6481
|
+
}, n ? E(nn, {
|
|
6482
6482
|
onBeforeEnter: this.handleSubmenuBeforeEnter,
|
|
6483
6483
|
onAfterEnter: this.handleSubmenuAfterEnter,
|
|
6484
6484
|
name: "fade-in-scale-up-transition",
|
|
6485
6485
|
appear: !0
|
|
6486
6486
|
}, {
|
|
6487
|
-
default: () =>
|
|
6488
|
-
}) :
|
|
6487
|
+
default: () => d
|
|
6488
|
+
}) : d)
|
|
6489
6489
|
}))
|
|
6490
6490
|
})]
|
|
6491
6491
|
}) : null);
|
|
6492
|
-
return
|
|
6493
|
-
node:
|
|
6492
|
+
return u ? u({
|
|
6493
|
+
node: f,
|
|
6494
6494
|
option: r
|
|
6495
|
-
}) :
|
|
6495
|
+
}) : f;
|
|
6496
6496
|
}
|
|
6497
6497
|
}), p0 = ee({
|
|
6498
6498
|
name: "NDropdownGroup",
|
|
@@ -6518,7 +6518,7 @@ const ps = ee({
|
|
|
6518
6518
|
} = this, {
|
|
6519
6519
|
children: r
|
|
6520
6520
|
} = e;
|
|
6521
|
-
return
|
|
6521
|
+
return E(_e, null, E(s0, {
|
|
6522
6522
|
clsPrefix: n,
|
|
6523
6523
|
tmNode: e,
|
|
6524
6524
|
key: e.key
|
|
@@ -6526,10 +6526,10 @@ const ps = ee({
|
|
|
6526
6526
|
const {
|
|
6527
6527
|
rawNode: i
|
|
6528
6528
|
} = o;
|
|
6529
|
-
return i.show === !1 ? null : hs(i) ?
|
|
6529
|
+
return i.show === !1 ? null : hs(i) ? E(fs, {
|
|
6530
6530
|
clsPrefix: n,
|
|
6531
6531
|
key: o.key
|
|
6532
|
-
}) : o.isGroup ? (an("dropdown", "`group` node is not allowed to be put in `group` node."), null) :
|
|
6532
|
+
}) : o.isGroup ? (an("dropdown", "`group` node is not allowed to be put in `group` node."), null) : E(ps, {
|
|
6533
6533
|
clsPrefix: n,
|
|
6534
6534
|
tmNode: o,
|
|
6535
6535
|
parentKey: t,
|
|
@@ -6552,7 +6552,7 @@ const ps = ee({
|
|
|
6552
6552
|
props: t
|
|
6553
6553
|
}
|
|
6554
6554
|
} = this.tmNode;
|
|
6555
|
-
return
|
|
6555
|
+
return E("div", t, [e?.()]);
|
|
6556
6556
|
}
|
|
6557
6557
|
}), vs = ee({
|
|
6558
6558
|
name: "DropdownMenu",
|
|
@@ -6579,7 +6579,7 @@ const ps = ee({
|
|
|
6579
6579
|
childrenFieldRef: n
|
|
6580
6580
|
} = te(Fn);
|
|
6581
6581
|
Se(_r, {
|
|
6582
|
-
showIconRef:
|
|
6582
|
+
showIconRef: I(() => {
|
|
6583
6583
|
const o = t.value;
|
|
6584
6584
|
return e.tmNodes.some((i) => {
|
|
6585
6585
|
var s;
|
|
@@ -6593,7 +6593,7 @@ const ps = ee({
|
|
|
6593
6593
|
return o ? o(l) : l.icon;
|
|
6594
6594
|
});
|
|
6595
6595
|
}),
|
|
6596
|
-
hasSubmenuRef:
|
|
6596
|
+
hasSubmenuRef: I(() => {
|
|
6597
6597
|
const {
|
|
6598
6598
|
value: o
|
|
6599
6599
|
} = n;
|
|
@@ -6610,7 +6610,7 @@ const ps = ee({
|
|
|
6610
6610
|
});
|
|
6611
6611
|
})
|
|
6612
6612
|
});
|
|
6613
|
-
const r =
|
|
6613
|
+
const r = P(null);
|
|
6614
6614
|
return Se(vr, null), Se(pr, null), Se(mn, r), {
|
|
6615
6615
|
bodyRef: r
|
|
6616
6616
|
};
|
|
@@ -6624,18 +6624,18 @@ const ps = ee({
|
|
|
6624
6624
|
const {
|
|
6625
6625
|
rawNode: i
|
|
6626
6626
|
} = o;
|
|
6627
|
-
return i.show === !1 ? null : h0(i) ?
|
|
6627
|
+
return i.show === !1 ? null : h0(i) ? E(v0, {
|
|
6628
6628
|
tmNode: o,
|
|
6629
6629
|
key: o.key
|
|
6630
|
-
}) : hs(i) ?
|
|
6630
|
+
}) : hs(i) ? E(fs, {
|
|
6631
6631
|
clsPrefix: t,
|
|
6632
6632
|
key: o.key
|
|
6633
|
-
}) : f0(i) ?
|
|
6633
|
+
}) : f0(i) ? E(p0, {
|
|
6634
6634
|
clsPrefix: t,
|
|
6635
6635
|
tmNode: o,
|
|
6636
6636
|
parentKey: e,
|
|
6637
6637
|
key: o.key
|
|
6638
|
-
}) :
|
|
6638
|
+
}) : E(ps, {
|
|
6639
6639
|
clsPrefix: t,
|
|
6640
6640
|
tmNode: o,
|
|
6641
6641
|
parentKey: e,
|
|
@@ -6644,10 +6644,10 @@ const ps = ee({
|
|
|
6644
6644
|
scrollable: n
|
|
6645
6645
|
});
|
|
6646
6646
|
});
|
|
6647
|
-
return
|
|
6647
|
+
return E("div", {
|
|
6648
6648
|
class: [`${t}-dropdown-menu`, n && `${t}-dropdown-menu--scrollable`],
|
|
6649
6649
|
ref: "bodyRef"
|
|
6650
|
-
}, n ?
|
|
6650
|
+
}, n ? E(ss, {
|
|
6651
6651
|
contentClass: `${t}-dropdown-menu__content`
|
|
6652
6652
|
}, {
|
|
6653
6653
|
default: () => r
|
|
@@ -6823,58 +6823,58 @@ const ps = ee({
|
|
|
6823
6823
|
inheritAttrs: !1,
|
|
6824
6824
|
props: w0,
|
|
6825
6825
|
setup(e) {
|
|
6826
|
-
const t =
|
|
6826
|
+
const t = P(!1), n = wi(se(e, "show"), t), r = I(() => {
|
|
6827
6827
|
const {
|
|
6828
6828
|
keyField: M,
|
|
6829
6829
|
childrenField: k
|
|
6830
6830
|
} = e;
|
|
6831
6831
|
return Wh(e.options, {
|
|
6832
|
-
getKey(
|
|
6833
|
-
return
|
|
6832
|
+
getKey(L) {
|
|
6833
|
+
return L[M];
|
|
6834
6834
|
},
|
|
6835
|
-
getDisabled(
|
|
6836
|
-
return
|
|
6835
|
+
getDisabled(L) {
|
|
6836
|
+
return L.disabled === !0;
|
|
6837
6837
|
},
|
|
6838
|
-
getIgnored(
|
|
6839
|
-
return
|
|
6838
|
+
getIgnored(L) {
|
|
6839
|
+
return L.type === "divider" || L.type === "render";
|
|
6840
6840
|
},
|
|
6841
|
-
getChildren(
|
|
6842
|
-
return
|
|
6841
|
+
getChildren(L) {
|
|
6842
|
+
return L[k];
|
|
6843
6843
|
}
|
|
6844
6844
|
});
|
|
6845
|
-
}), o =
|
|
6846
|
-
var M, k,
|
|
6847
|
-
return (
|
|
6848
|
-
}), c =
|
|
6845
|
+
}), o = I(() => r.value.treeNodes), i = P(null), s = P(null), l = P(null), a = I(() => {
|
|
6846
|
+
var M, k, L;
|
|
6847
|
+
return (L = (k = (M = i.value) !== null && M !== void 0 ? M : s.value) !== null && k !== void 0 ? k : l.value) !== null && L !== void 0 ? L : null;
|
|
6848
|
+
}), c = I(() => r.value.getPath(a.value).keyPath), u = I(() => r.value.getPath(e.value).keyPath), h = Te(() => e.keyboard && n.value);
|
|
6849
6849
|
cc({
|
|
6850
6850
|
keydown: {
|
|
6851
6851
|
ArrowUp: {
|
|
6852
6852
|
prevent: !0,
|
|
6853
|
-
handler:
|
|
6853
|
+
handler: w
|
|
6854
6854
|
},
|
|
6855
6855
|
ArrowRight: {
|
|
6856
6856
|
prevent: !0,
|
|
6857
|
-
handler:
|
|
6857
|
+
handler: x
|
|
6858
6858
|
},
|
|
6859
6859
|
ArrowDown: {
|
|
6860
6860
|
prevent: !0,
|
|
6861
|
-
handler:
|
|
6861
|
+
handler: _
|
|
6862
6862
|
},
|
|
6863
6863
|
ArrowLeft: {
|
|
6864
6864
|
prevent: !0,
|
|
6865
|
-
handler:
|
|
6865
|
+
handler: A
|
|
6866
6866
|
},
|
|
6867
6867
|
Enter: {
|
|
6868
6868
|
prevent: !0,
|
|
6869
6869
|
handler: g
|
|
6870
6870
|
},
|
|
6871
|
-
Escape:
|
|
6871
|
+
Escape: F
|
|
6872
6872
|
}
|
|
6873
6873
|
}, h);
|
|
6874
6874
|
const {
|
|
6875
6875
|
mergedClsPrefixRef: p,
|
|
6876
|
-
inlineThemeDisabled:
|
|
6877
|
-
} = bt(e),
|
|
6876
|
+
inlineThemeDisabled: b
|
|
6877
|
+
} = bt(e), d = pe("Dropdown", "-dropdown", g0, t0, e, p);
|
|
6878
6878
|
Se(Fn, {
|
|
6879
6879
|
labelFieldRef: se(e, "labelField"),
|
|
6880
6880
|
childrenFieldRef: se(e, "childrenField"),
|
|
@@ -6884,107 +6884,107 @@ const ps = ee({
|
|
|
6884
6884
|
keyboardKeyRef: s,
|
|
6885
6885
|
lastToggledSubmenuKeyRef: l,
|
|
6886
6886
|
pendingKeyPathRef: c,
|
|
6887
|
-
activeKeyPathRef:
|
|
6887
|
+
activeKeyPathRef: u,
|
|
6888
6888
|
animatedRef: se(e, "animated"),
|
|
6889
6889
|
mergedShowRef: n,
|
|
6890
6890
|
nodePropsRef: se(e, "nodeProps"),
|
|
6891
6891
|
renderOptionRef: se(e, "renderOption"),
|
|
6892
6892
|
menuPropsRef: se(e, "menuProps"),
|
|
6893
|
-
doSelect:
|
|
6893
|
+
doSelect: m,
|
|
6894
6894
|
doUpdateShow: v
|
|
6895
6895
|
}), we(n, (M) => {
|
|
6896
|
-
!e.animated && !M &&
|
|
6896
|
+
!e.animated && !M && f();
|
|
6897
6897
|
});
|
|
6898
|
-
function
|
|
6898
|
+
function m(M, k) {
|
|
6899
6899
|
const {
|
|
6900
|
-
onSelect:
|
|
6900
|
+
onSelect: L
|
|
6901
6901
|
} = e;
|
|
6902
|
-
|
|
6902
|
+
L && Ne(L, M, k);
|
|
6903
6903
|
}
|
|
6904
6904
|
function v(M) {
|
|
6905
6905
|
const {
|
|
6906
6906
|
"onUpdate:show": k,
|
|
6907
|
-
onUpdateShow:
|
|
6907
|
+
onUpdateShow: L
|
|
6908
6908
|
} = e;
|
|
6909
|
-
k && Ne(k, M),
|
|
6909
|
+
k && Ne(k, M), L && Ne(L, M), t.value = M;
|
|
6910
6910
|
}
|
|
6911
|
-
function
|
|
6911
|
+
function f() {
|
|
6912
6912
|
i.value = null, s.value = null, l.value = null;
|
|
6913
6913
|
}
|
|
6914
|
-
function
|
|
6914
|
+
function F() {
|
|
6915
6915
|
v(!1);
|
|
6916
6916
|
}
|
|
6917
|
-
function
|
|
6917
|
+
function A() {
|
|
6918
6918
|
z("left");
|
|
6919
6919
|
}
|
|
6920
|
-
function
|
|
6920
|
+
function x() {
|
|
6921
6921
|
z("right");
|
|
6922
6922
|
}
|
|
6923
|
-
function
|
|
6923
|
+
function w() {
|
|
6924
6924
|
z("up");
|
|
6925
6925
|
}
|
|
6926
|
-
function
|
|
6926
|
+
function _() {
|
|
6927
6927
|
z("down");
|
|
6928
6928
|
}
|
|
6929
6929
|
function g() {
|
|
6930
|
-
const M =
|
|
6931
|
-
M?.isLeaf && n.value && (
|
|
6930
|
+
const M = y();
|
|
6931
|
+
M?.isLeaf && n.value && (m(M.key, M.rawNode), v(!1));
|
|
6932
6932
|
}
|
|
6933
|
-
function
|
|
6933
|
+
function y() {
|
|
6934
6934
|
var M;
|
|
6935
6935
|
const {
|
|
6936
6936
|
value: k
|
|
6937
6937
|
} = r, {
|
|
6938
|
-
value:
|
|
6938
|
+
value: L
|
|
6939
6939
|
} = a;
|
|
6940
|
-
return !k ||
|
|
6940
|
+
return !k || L === null ? null : (M = k.getNode(L)) !== null && M !== void 0 ? M : null;
|
|
6941
6941
|
}
|
|
6942
6942
|
function z(M) {
|
|
6943
6943
|
const {
|
|
6944
6944
|
value: k
|
|
6945
6945
|
} = a, {
|
|
6946
6946
|
value: {
|
|
6947
|
-
getFirstAvailableNode:
|
|
6947
|
+
getFirstAvailableNode: L
|
|
6948
6948
|
}
|
|
6949
6949
|
} = r;
|
|
6950
|
-
let
|
|
6950
|
+
let S = null;
|
|
6951
6951
|
if (k === null) {
|
|
6952
|
-
const
|
|
6953
|
-
|
|
6952
|
+
const R = L();
|
|
6953
|
+
R !== null && (S = R.key);
|
|
6954
6954
|
} else {
|
|
6955
|
-
const
|
|
6956
|
-
if (
|
|
6955
|
+
const R = y();
|
|
6956
|
+
if (R) {
|
|
6957
6957
|
let T;
|
|
6958
6958
|
switch (M) {
|
|
6959
6959
|
case "down":
|
|
6960
|
-
T =
|
|
6960
|
+
T = R.getNext();
|
|
6961
6961
|
break;
|
|
6962
6962
|
case "up":
|
|
6963
|
-
T =
|
|
6963
|
+
T = R.getPrev();
|
|
6964
6964
|
break;
|
|
6965
6965
|
case "right":
|
|
6966
|
-
T =
|
|
6966
|
+
T = R.getChild();
|
|
6967
6967
|
break;
|
|
6968
6968
|
case "left":
|
|
6969
|
-
T =
|
|
6969
|
+
T = R.getParent();
|
|
6970
6970
|
break;
|
|
6971
6971
|
}
|
|
6972
|
-
T && (
|
|
6972
|
+
T && (S = T.key);
|
|
6973
6973
|
}
|
|
6974
6974
|
}
|
|
6975
|
-
|
|
6975
|
+
S !== null && (i.value = null, s.value = S);
|
|
6976
6976
|
}
|
|
6977
|
-
const
|
|
6977
|
+
const C = I(() => {
|
|
6978
6978
|
const {
|
|
6979
6979
|
size: M,
|
|
6980
6980
|
inverted: k
|
|
6981
6981
|
} = e, {
|
|
6982
6982
|
common: {
|
|
6983
|
-
cubicBezierEaseInOut:
|
|
6983
|
+
cubicBezierEaseInOut: L
|
|
6984
6984
|
},
|
|
6985
|
-
self:
|
|
6986
|
-
} =
|
|
6987
|
-
padding:
|
|
6985
|
+
self: S
|
|
6986
|
+
} = d.value, {
|
|
6987
|
+
padding: R,
|
|
6988
6988
|
dividerColor: T,
|
|
6989
6989
|
borderRadius: j,
|
|
6990
6990
|
optionOpacityDisabled: V,
|
|
@@ -6995,10 +6995,10 @@ const ps = ee({
|
|
|
6995
6995
|
[Re("fontSize", M)]: En,
|
|
6996
6996
|
[Re("optionHeight", M)]: An,
|
|
6997
6997
|
[Re("optionIconSize", M)]: Ae
|
|
6998
|
-
} =
|
|
6999
|
-
"--n-bezier":
|
|
6998
|
+
} = S, Y = {
|
|
6999
|
+
"--n-bezier": L,
|
|
7000
7000
|
"--n-font-size": En,
|
|
7001
|
-
"--n-padding":
|
|
7001
|
+
"--n-padding": R,
|
|
7002
7002
|
"--n-border-radius": j,
|
|
7003
7003
|
"--n-option-height": An,
|
|
7004
7004
|
"--n-option-prefix-width": Rt,
|
|
@@ -7009,21 +7009,21 @@ const ps = ee({
|
|
|
7009
7009
|
"--n-divider-color": T,
|
|
7010
7010
|
"--n-option-opacity-disabled": V
|
|
7011
7011
|
};
|
|
7012
|
-
return k ? (Y["--n-color"] =
|
|
7013
|
-
}), N =
|
|
7012
|
+
return k ? (Y["--n-color"] = S.colorInverted, Y["--n-option-color-hover"] = S.optionColorHoverInverted, Y["--n-option-color-active"] = S.optionColorActiveInverted, Y["--n-option-text-color"] = S.optionTextColorInverted, Y["--n-option-text-color-hover"] = S.optionTextColorHoverInverted, Y["--n-option-text-color-active"] = S.optionTextColorActiveInverted, Y["--n-option-text-color-child-active"] = S.optionTextColorChildActiveInverted, Y["--n-prefix-color"] = S.prefixColorInverted, Y["--n-suffix-color"] = S.suffixColorInverted, Y["--n-group-header-text-color"] = S.groupHeaderTextColorInverted) : (Y["--n-color"] = S.color, Y["--n-option-color-hover"] = S.optionColorHover, Y["--n-option-color-active"] = S.optionColorActive, Y["--n-option-text-color"] = S.optionTextColor, Y["--n-option-text-color-hover"] = S.optionTextColorHover, Y["--n-option-text-color-active"] = S.optionTextColorActive, Y["--n-option-text-color-child-active"] = S.optionTextColorChildActive, Y["--n-prefix-color"] = S.prefixColor, Y["--n-suffix-color"] = S.suffixColor, Y["--n-group-header-text-color"] = S.groupHeaderTextColor), Y;
|
|
7013
|
+
}), N = b ? yn("dropdown", I(() => `${e.size[0]}${e.inverted ? "i" : ""}`), C, e) : void 0;
|
|
7014
7014
|
return {
|
|
7015
7015
|
mergedClsPrefix: p,
|
|
7016
|
-
mergedTheme:
|
|
7016
|
+
mergedTheme: d,
|
|
7017
7017
|
// data
|
|
7018
7018
|
tmNodes: o,
|
|
7019
7019
|
// show
|
|
7020
7020
|
mergedShow: n,
|
|
7021
7021
|
// methods
|
|
7022
7022
|
handleAfterLeave: () => {
|
|
7023
|
-
e.animated &&
|
|
7023
|
+
e.animated && f();
|
|
7024
7024
|
},
|
|
7025
7025
|
doUpdateShow: v,
|
|
7026
|
-
cssVars:
|
|
7026
|
+
cssVars: b ? void 0 : C,
|
|
7027
7027
|
themeClass: N?.themeClass,
|
|
7028
7028
|
onRender: N?.onRender
|
|
7029
7029
|
};
|
|
@@ -7033,10 +7033,10 @@ const ps = ee({
|
|
|
7033
7033
|
var a;
|
|
7034
7034
|
const {
|
|
7035
7035
|
mergedClsPrefix: c,
|
|
7036
|
-
menuProps:
|
|
7036
|
+
menuProps: u
|
|
7037
7037
|
} = this;
|
|
7038
7038
|
(a = this.onRender) === null || a === void 0 || a.call(this);
|
|
7039
|
-
const h =
|
|
7039
|
+
const h = u?.(void 0, this.tmNodes.map((b) => b.rawNode)) || {}, p = {
|
|
7040
7040
|
ref: su(o),
|
|
7041
7041
|
class: [r, `${c}-dropdown`, this.themeClass],
|
|
7042
7042
|
clsPrefix: c,
|
|
@@ -7048,7 +7048,7 @@ const ps = ee({
|
|
|
7048
7048
|
onMouseenter: s,
|
|
7049
7049
|
onMouseleave: l
|
|
7050
7050
|
};
|
|
7051
|
-
return
|
|
7051
|
+
return E(vs, gt(this.$attrs, p, h));
|
|
7052
7052
|
}, {
|
|
7053
7053
|
mergedTheme: t
|
|
7054
7054
|
} = this, n = {
|
|
@@ -7060,7 +7060,7 @@ const ps = ee({
|
|
|
7060
7060
|
onUpdateShow: this.doUpdateShow,
|
|
7061
7061
|
"onUpdate:show": void 0
|
|
7062
7062
|
};
|
|
7063
|
-
return
|
|
7063
|
+
return E(ds, Object.assign({}, ki(this.$props, b0), n), {
|
|
7064
7064
|
trigger: () => {
|
|
7065
7065
|
var r, o;
|
|
7066
7066
|
return (o = (r = this.$slots).default) === null || o === void 0 ? void 0 : o.call(r);
|
|
@@ -7139,7 +7139,7 @@ const S0 = {
|
|
|
7139
7139
|
} = bt(e), n = pe("Skeleton", "-skeleton", C0, S0, e, t);
|
|
7140
7140
|
return {
|
|
7141
7141
|
mergedClsPrefix: t,
|
|
7142
|
-
style:
|
|
7142
|
+
style: I(() => {
|
|
7143
7143
|
var r, o;
|
|
7144
7144
|
const i = n.value, {
|
|
7145
7145
|
common: {
|
|
@@ -7148,28 +7148,28 @@ const S0 = {
|
|
|
7148
7148
|
} = i, l = i.self, {
|
|
7149
7149
|
color: a,
|
|
7150
7150
|
colorEnd: c,
|
|
7151
|
-
borderRadius:
|
|
7151
|
+
borderRadius: u
|
|
7152
7152
|
} = l;
|
|
7153
7153
|
let h;
|
|
7154
7154
|
const {
|
|
7155
7155
|
circle: p,
|
|
7156
|
-
sharp:
|
|
7157
|
-
round:
|
|
7158
|
-
width:
|
|
7156
|
+
sharp: b,
|
|
7157
|
+
round: d,
|
|
7158
|
+
width: m,
|
|
7159
7159
|
height: v,
|
|
7160
|
-
size:
|
|
7161
|
-
text:
|
|
7162
|
-
animated:
|
|
7160
|
+
size: f,
|
|
7161
|
+
text: F,
|
|
7162
|
+
animated: A
|
|
7163
7163
|
} = e;
|
|
7164
|
-
|
|
7165
|
-
const
|
|
7164
|
+
f !== void 0 && (h = l[Re("height", f)]);
|
|
7165
|
+
const x = p ? (r = m ?? v) !== null && r !== void 0 ? r : h : m, w = (o = p ? m ?? v : v) !== null && o !== void 0 ? o : h;
|
|
7166
7166
|
return {
|
|
7167
|
-
display:
|
|
7168
|
-
verticalAlign:
|
|
7169
|
-
borderRadius: p ? "50%" :
|
|
7170
|
-
width: typeof
|
|
7171
|
-
height: typeof
|
|
7172
|
-
animation:
|
|
7167
|
+
display: F ? "inline-block" : "",
|
|
7168
|
+
verticalAlign: F ? "-0.125em" : "",
|
|
7169
|
+
borderRadius: p ? "50%" : d ? "4096px" : b ? "" : u,
|
|
7170
|
+
width: typeof x == "number" ? Qr(x) : x,
|
|
7171
|
+
height: typeof w == "number" ? Qr(w) : w,
|
|
7172
|
+
animation: A ? "" : "none",
|
|
7173
7173
|
"--n-bezier": s,
|
|
7174
7174
|
"--n-color-start": a,
|
|
7175
7175
|
"--n-color-end": c
|
|
@@ -7183,11 +7183,11 @@ const S0 = {
|
|
|
7183
7183
|
style: t,
|
|
7184
7184
|
mergedClsPrefix: n,
|
|
7185
7185
|
$attrs: r
|
|
7186
|
-
} = this, o =
|
|
7186
|
+
} = this, o = E("div", gt({
|
|
7187
7187
|
class: `${n}-skeleton`,
|
|
7188
7188
|
style: t
|
|
7189
7189
|
}, r));
|
|
7190
|
-
return e > 1 ?
|
|
7190
|
+
return e > 1 ? E(_e, null, qa(e, null).map((i) => [o, `
|
|
7191
7191
|
`])) : o;
|
|
7192
7192
|
}
|
|
7193
7193
|
}), z0 = { key: 0 }, F0 = { key: 0 }, E0 = { key: 0 }, A0 = {
|
|
@@ -7208,7 +7208,7 @@ const S0 = {
|
|
|
7208
7208
|
},
|
|
7209
7209
|
emits: ["command"],
|
|
7210
7210
|
setup(e, { emit: t }) {
|
|
7211
|
-
const n = t, r = e, o =
|
|
7211
|
+
const n = t, r = e, o = P(null), i = window.matchMedia("(max-width: 768px)").matches, s = {
|
|
7212
7212
|
left: {
|
|
7213
7213
|
minWidth: "140px",
|
|
7214
7214
|
justifyContent: "flex-start"
|
|
@@ -7222,120 +7222,126 @@ const S0 = {
|
|
|
7222
7222
|
flexGrow: i ? 0 : 1,
|
|
7223
7223
|
justifyContent: "center"
|
|
7224
7224
|
}
|
|
7225
|
-
}, l =
|
|
7226
|
-
o.value =
|
|
7227
|
-
},
|
|
7228
|
-
|
|
7229
|
-
},
|
|
7225
|
+
}, l = I(() => s[r.position] || s.default), a = (A) => A.type === "button", c = (A) => A.type === "dropdown", u = (A) => A.type === "separator", h = (A) => A.type === "overflow", p = (A, x = null) => {
|
|
7226
|
+
o.value = A, o.value.expand = !0, !A.disabled.value && n("command", { item: A, argument: x });
|
|
7227
|
+
}, b = (A, x) => {
|
|
7228
|
+
A.disabled.value || (o.value = null, n("command", { item: A, argument: x }));
|
|
7229
|
+
}, d = () => {
|
|
7230
7230
|
o.value && (o.value.expand = !1, o.value = null);
|
|
7231
|
-
},
|
|
7232
|
-
|
|
7233
|
-
const
|
|
7234
|
-
n("command", { item:
|
|
7235
|
-
},
|
|
7236
|
-
|
|
7231
|
+
}, m = P(null), v = (A, x) => {
|
|
7232
|
+
d();
|
|
7233
|
+
const w = A.dropdownValueKey.value ? x[A.dropdownValueKey.value] : x.label;
|
|
7234
|
+
n("command", { item: A, argument: w, option: x }), m.value = x.key;
|
|
7235
|
+
}, f = (A) => A.nestedOptions?.value?.length ? A.nestedOptions.value.map((x) => ({
|
|
7236
|
+
...x,
|
|
7237
|
+
props: {
|
|
7238
|
+
...x.props,
|
|
7239
|
+
class: m.value === x.key ? "selected" : ""
|
|
7240
|
+
}
|
|
7241
|
+
})) : [], F = (A) => {
|
|
7242
|
+
d();
|
|
7237
7243
|
};
|
|
7238
|
-
return (
|
|
7244
|
+
return (A, x) => (q(), ie("div", {
|
|
7239
7245
|
style: Tt(l.value),
|
|
7240
7246
|
class: "button-group"
|
|
7241
7247
|
}, [
|
|
7242
|
-
(q(!0), ie(_e, null, tl(e.toolbarItems, (
|
|
7243
|
-
key:
|
|
7248
|
+
(q(!0), ie(_e, null, tl(e.toolbarItems, (w) => (q(), ie("div", {
|
|
7249
|
+
key: w.id.value,
|
|
7244
7250
|
class: en([{
|
|
7245
|
-
narrow:
|
|
7246
|
-
wide:
|
|
7251
|
+
narrow: w.isNarrow.value,
|
|
7252
|
+
wide: w.isWide.value
|
|
7247
7253
|
}, "toolbar-item-ctn"])
|
|
7248
7254
|
}, [
|
|
7249
|
-
|
|
7255
|
+
u(w) ? (q(), Ge(oa, {
|
|
7250
7256
|
key: 0,
|
|
7251
7257
|
style: { width: "20px" }
|
|
7252
7258
|
})) : he("", !0),
|
|
7253
|
-
c(
|
|
7259
|
+
c(w) && w.nestedOptions?.value?.length ? (q(), Ge(W(y0), {
|
|
7254
7260
|
key: 1,
|
|
7255
|
-
options:
|
|
7256
|
-
trigger:
|
|
7257
|
-
show:
|
|
7261
|
+
options: f(w),
|
|
7262
|
+
trigger: w.disabled.value ? null : "click",
|
|
7263
|
+
show: w.expand.value,
|
|
7258
7264
|
size: "medium",
|
|
7259
7265
|
placement: "bottom-start",
|
|
7260
7266
|
class: "toolbar-button toolbar-dropdown sd-editor-toolbar-dropdown",
|
|
7261
|
-
onSelect: (
|
|
7262
|
-
onClickoutside:
|
|
7263
|
-
style: Tt(
|
|
7267
|
+
onSelect: (_, g) => v(w, g),
|
|
7268
|
+
onClickoutside: F,
|
|
7269
|
+
style: Tt(w.dropdownStyles.value)
|
|
7264
7270
|
}, {
|
|
7265
7271
|
default: xt(() => [
|
|
7266
7272
|
ct(W(ni), {
|
|
7267
7273
|
trigger: "hover",
|
|
7268
|
-
disabled: !
|
|
7274
|
+
disabled: !w.tooltip?.value
|
|
7269
7275
|
}, {
|
|
7270
7276
|
trigger: xt(() => [
|
|
7271
7277
|
ct(qn, {
|
|
7272
|
-
"toolbar-item":
|
|
7273
|
-
onTextSubmit: (
|
|
7274
|
-
onButtonClick: (
|
|
7278
|
+
"toolbar-item": w,
|
|
7279
|
+
onTextSubmit: (_) => b(w, _),
|
|
7280
|
+
onButtonClick: (_) => p(w)
|
|
7275
7281
|
}, null, 8, ["toolbar-item", "onTextSubmit", "onButtonClick"])
|
|
7276
7282
|
]),
|
|
7277
7283
|
default: xt(() => [
|
|
7278
7284
|
Ot("div", null, [
|
|
7279
|
-
ht(Xn(
|
|
7280
|
-
|
|
7285
|
+
ht(Xn(w.tooltip) + " ", 1),
|
|
7286
|
+
w.disabled.value ? (q(), ie("span", z0, "(disabled)")) : he("", !0)
|
|
7281
7287
|
])
|
|
7282
7288
|
]),
|
|
7283
7289
|
_: 2
|
|
7284
7290
|
}, 1032, ["disabled"])
|
|
7285
7291
|
]),
|
|
7286
7292
|
_: 2
|
|
7287
|
-
}, 1032, ["options", "trigger", "show", "onSelect", "style"])) : a(
|
|
7293
|
+
}, 1032, ["options", "trigger", "show", "onSelect", "style"])) : a(w) ? (q(), Ge(W(ni), {
|
|
7288
7294
|
key: 2,
|
|
7289
7295
|
trigger: "hover",
|
|
7290
7296
|
class: "sd-editor-toolbar-tooltip"
|
|
7291
7297
|
}, {
|
|
7292
7298
|
trigger: xt(() => [
|
|
7293
7299
|
ct(qn, {
|
|
7294
|
-
"toolbar-item":
|
|
7295
|
-
onTextSubmit: (
|
|
7296
|
-
onButtonClick: (
|
|
7300
|
+
"toolbar-item": w,
|
|
7301
|
+
onTextSubmit: (_) => b(w, _),
|
|
7302
|
+
onButtonClick: (_) => p(w)
|
|
7297
7303
|
}, null, 8, ["toolbar-item", "onTextSubmit", "onButtonClick"])
|
|
7298
7304
|
]),
|
|
7299
7305
|
default: xt(() => [
|
|
7300
|
-
|
|
7301
|
-
ht(Xn(
|
|
7302
|
-
|
|
7306
|
+
w.tooltip ? (q(), ie("div", F0, [
|
|
7307
|
+
ht(Xn(w.tooltip) + " ", 1),
|
|
7308
|
+
w.disabled.value ? (q(), ie("span", E0, "(disabled)")) : he("", !0)
|
|
7303
7309
|
])) : he("", !0)
|
|
7304
7310
|
]),
|
|
7305
7311
|
_: 2
|
|
7306
7312
|
}, 1024)) : he("", !0),
|
|
7307
|
-
h(
|
|
7313
|
+
h(w) && e.overflowItems.length ? (q(), Ge(ca, {
|
|
7308
7314
|
key: 3,
|
|
7309
|
-
"toolbar-item":
|
|
7315
|
+
"toolbar-item": w,
|
|
7310
7316
|
"overflow-items": e.overflowItems
|
|
7311
7317
|
}, null, 8, ["toolbar-item", "overflow-items"])) : he("", !0)
|
|
7312
7318
|
], 2))), 128))
|
|
7313
7319
|
], 4));
|
|
7314
7320
|
}
|
|
7315
|
-
}, Qt = /* @__PURE__ */ mt(A0, [["__scopeId", "data-v-
|
|
7321
|
+
}, Qt = /* @__PURE__ */ mt(A0, [["__scopeId", "data-v-7751c4e5"]]), M0 = {
|
|
7316
7322
|
__name: "Toolbar",
|
|
7317
7323
|
emits: ["command", "toggle", "select"],
|
|
7318
7324
|
setup(e, { emit: t }) {
|
|
7319
7325
|
const { proxy: n } = Lt();
|
|
7320
|
-
let r =
|
|
7321
|
-
const o = n.$toolbar.config?.toolbarGroups?.includes("left"), i = n.$toolbar.config?.toolbarGroups?.includes("right"), s = n.$toolbar.config?.toolbarButtonsExclude || [], l = (p) => n.$toolbar.getToolbarItemByGroup(p).filter((
|
|
7326
|
+
let r = P(1);
|
|
7327
|
+
const o = n.$toolbar.config?.toolbarGroups?.includes("left"), i = n.$toolbar.config?.toolbarGroups?.includes("right"), s = n.$toolbar.config?.toolbarButtonsExclude || [], l = (p) => n.$toolbar.getToolbarItemByGroup(p).filter((b) => !s.includes(b.name.value));
|
|
7322
7328
|
Ke(() => {
|
|
7323
|
-
window.addEventListener("resize",
|
|
7329
|
+
window.addEventListener("resize", u), window.addEventListener("keydown", a);
|
|
7324
7330
|
}), oi(() => {
|
|
7325
|
-
window.removeEventListener("resize",
|
|
7331
|
+
window.removeEventListener("resize", u), window.removeEventListener("keydown", a);
|
|
7326
7332
|
});
|
|
7327
7333
|
const a = async (p) => {
|
|
7328
7334
|
if (p.metaKey && p.key === "f") {
|
|
7329
7335
|
p.preventDefault();
|
|
7330
|
-
const
|
|
7331
|
-
|
|
7336
|
+
const b = n.$toolbar.getToolbarItemByName("search");
|
|
7337
|
+
b && (b.expand.value = !0, await ii(), b.inputRef.value && b.inputRef.value.focus());
|
|
7332
7338
|
}
|
|
7333
|
-
},
|
|
7339
|
+
}, u = nl(async () => {
|
|
7334
7340
|
await n.$toolbar.onToolbarResize(), r.value += 1;
|
|
7335
|
-
}, 300), h = ({ item: p, argument:
|
|
7336
|
-
n.$toolbar.emitCommand({ item: p, argument:
|
|
7341
|
+
}, 300), h = ({ item: p, argument: b, option: d }) => {
|
|
7342
|
+
n.$toolbar.emitCommand({ item: p, argument: b, option: d });
|
|
7337
7343
|
};
|
|
7338
|
-
return (p,
|
|
7344
|
+
return (p, b) => (q(), ie("div", {
|
|
7339
7345
|
class: "superdoc-toolbar",
|
|
7340
7346
|
key: W(r)
|
|
7341
7347
|
}, [
|