@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/packages/business-components/app-container/index.js +255 -46
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/index.js +298 -89
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +28123 -23289
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +1010 -801
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +3669 -331
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +2338 -1553
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/components/alert/index.js +3418 -51
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +2875 -456
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.js +271 -47
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +9800 -211
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/cascader/index.js +6406 -139
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +3837 -179
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +3624 -30
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collaspe/index.js +3624 -30
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +5346 -106
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +13993 -529
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1835 -186
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/drawer/index.js +1614 -38
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +4615 -54
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/index.js +800 -39
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-preview/index.js +1283 -34
- package/packages/components/image-preview/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +11722 -111
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +13168 -386
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +1086 -157
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +1831 -145
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +3669 -2883
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +5214 -1190
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +8297 -603
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +10077 -38
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/message/index.js +1289 -53
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.js +3269 -47
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/index.js +8025 -148
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/index.js +2495 -44
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/progress/index.js +517 -107
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/radio/index.js +3724 -159
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +1442 -915
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +5261 -89
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +1010 -920
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.js +10505 -379
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +1433 -1173
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +2645 -196
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +2710 -259
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +3534 -48
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/step/index.js +4085 -28
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/steps/index.js +4070 -14
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/switch/index.js +547 -31
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/table/index.js +17503 -5201
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/index.js +12630 -172
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.js +325 -55
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/time-line/index.js +3397 -60
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +2174 -65
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +6747 -1881
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +2778 -358
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/upload/index.js +11726 -115
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +2928 -86
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/watermark/index.js +368 -17
- package/packages/components/watermark/index.js.gz +0 -0
|
@@ -1,132 +1,2583 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/special-range-picker-year/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { i18n as
|
|
4
|
-
import { getVarValue as
|
|
5
|
-
import { ref as
|
|
6
|
-
import
|
|
7
|
-
import "element-plus/
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
2
|
+
import { withInstall as Co } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { i18n as tt, setI18nRule as Po } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { getVarValue as sn, getVar as nt, setThemeRule as So } from "@das-fed/web/packages/theme/index";
|
|
5
|
+
import { getCurrentScope as _o, onScopeDispose as ko, unref as s, watch as H, warn as Ro, getCurrentInstance as vt, inject as ie, ref as k, computed as _, onMounted as he, shallowRef as Ao, onBeforeUnmount as be, onBeforeMount as $o, provide as Ee, defineComponent as j, renderSlot as oe, openBlock as L, createElementBlock as W, normalizeClass as G, normalizeStyle as $e, withDirectives as ct, cloneVNode as xo, Fragment as Ve, Text as No, Comment as Do, createVNode as ce, createBlock as Oe, mergeProps as gt, withCtx as te, createCommentVNode as ge, nextTick as ln, toRef as Ke, Teleport as Un, Transition as Fo, vShow as Mo, readonly as Lo, onDeactivated as Bo, toDisplayString as Y, createTextVNode as lt, createElementVNode as V, renderList as un, pushScopeId as jo, popScopeId as Ho } from "vue";
|
|
6
|
+
import "element-plus/theme-chalk/base.css";
|
|
7
|
+
import "element-plus/theme-chalk/el-popper.css";
|
|
8
|
+
import "element-plus/theme-chalk/el-popover.css";
|
|
9
|
+
import { vDasTooltip as Vo } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
|
+
import { DasIconEmpty as Ko } from "@das-fed/ui/packages/icons/empty/index";
|
|
11
|
+
import { DasIconDate as Uo } from "@das-fed/ui/packages/icons/date/index";
|
|
12
|
+
import { DasIconLeft as zo } from "@das-fed/ui/packages/icons/left/index";
|
|
13
|
+
import { DasIconEntry as Wo } from "@das-fed/ui/packages/icons/entry/index";
|
|
14
|
+
import { useModelValue as cn } from "@das-fed/utils/vue";
|
|
14
15
|
import "@das-fed/ui/packages/global/theme";
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const ve = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (r) => {
|
|
17
|
+
const a = e == null ? void 0 : e(r);
|
|
18
|
+
if (n === !1 || !a)
|
|
19
|
+
return t == null ? void 0 : t(r);
|
|
20
|
+
};
|
|
21
|
+
var pn;
|
|
22
|
+
const se = typeof window < "u", qo = (e) => typeof e == "string", zn = () => {
|
|
23
|
+
}, Yo = se && ((pn = window == null ? void 0 : window.navigator) == null ? void 0 : pn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
24
|
+
function Wn(e) {
|
|
25
|
+
return typeof e == "function" ? e() : s(e);
|
|
26
|
+
}
|
|
27
|
+
function Zo(e) {
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
function qn(e) {
|
|
31
|
+
return _o() ? (ko(e), !0) : !1;
|
|
32
|
+
}
|
|
33
|
+
function Se(e) {
|
|
34
|
+
var t;
|
|
35
|
+
const n = Wn(e);
|
|
36
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
37
|
+
}
|
|
38
|
+
const Yn = se ? window : void 0;
|
|
39
|
+
function Ot(...e) {
|
|
40
|
+
let t, n, o, r;
|
|
41
|
+
if (qo(e[0]) || Array.isArray(e[0]) ? ([n, o, r] = e, t = Yn) : [t, n, o, r] = e, !t)
|
|
42
|
+
return zn;
|
|
43
|
+
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
44
|
+
const a = [], i = () => {
|
|
45
|
+
a.forEach((p) => p()), a.length = 0;
|
|
46
|
+
}, l = (p, m, h, b) => (p.addEventListener(m, h, b), () => p.removeEventListener(m, h, b)), c = H(() => [Se(t), Wn(r)], ([p, m]) => {
|
|
47
|
+
i(), p && a.push(...n.flatMap((h) => o.map((b) => l(p, h, b, m))));
|
|
48
|
+
}, { immediate: !0, flush: "post" }), u = () => {
|
|
49
|
+
c(), i();
|
|
50
|
+
};
|
|
51
|
+
return qn(u), u;
|
|
52
|
+
}
|
|
53
|
+
let dn = !1;
|
|
54
|
+
function Jo(e, t, n = {}) {
|
|
55
|
+
const { window: o = Yn, ignore: r = [], capture: a = !0, detectIframe: i = !1 } = n;
|
|
56
|
+
if (!o)
|
|
57
|
+
return;
|
|
58
|
+
Yo && !dn && (dn = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", zn)));
|
|
59
|
+
let l = !0;
|
|
60
|
+
const c = (h) => r.some((b) => {
|
|
61
|
+
if (typeof b == "string")
|
|
62
|
+
return Array.from(o.document.querySelectorAll(b)).some((v) => v === h.target || h.composedPath().includes(v));
|
|
63
|
+
{
|
|
64
|
+
const v = Se(b);
|
|
65
|
+
return v && (h.target === v || h.composedPath().includes(v));
|
|
66
|
+
}
|
|
67
|
+
}), p = [
|
|
68
|
+
Ot(o, "click", (h) => {
|
|
69
|
+
const b = Se(e);
|
|
70
|
+
if (!(!b || b === h.target || h.composedPath().includes(b))) {
|
|
71
|
+
if (h.detail === 0 && (l = !c(h)), !l) {
|
|
72
|
+
l = !0;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
t(h);
|
|
76
|
+
}
|
|
77
|
+
}, { passive: !0, capture: a }),
|
|
78
|
+
Ot(o, "pointerdown", (h) => {
|
|
79
|
+
const b = Se(e);
|
|
80
|
+
b && (l = !h.composedPath().includes(b) && !c(h));
|
|
81
|
+
}, { passive: !0 }),
|
|
82
|
+
i && Ot(o, "blur", (h) => {
|
|
83
|
+
var b;
|
|
84
|
+
const v = Se(e);
|
|
85
|
+
((b = o.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !(v != null && v.contains(o.document.activeElement)) && t(h);
|
|
86
|
+
})
|
|
87
|
+
].filter(Boolean);
|
|
88
|
+
return () => p.forEach((h) => h());
|
|
89
|
+
}
|
|
90
|
+
const fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, vn = "__vueuse_ssr_handlers__";
|
|
91
|
+
fn[vn] = fn[vn] || {};
|
|
92
|
+
var gn;
|
|
93
|
+
(function(e) {
|
|
94
|
+
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
95
|
+
})(gn || (gn = {}));
|
|
96
|
+
var Qo = Object.defineProperty, mn = Object.getOwnPropertySymbols, Go = Object.prototype.hasOwnProperty, Xo = Object.prototype.propertyIsEnumerable, hn = (e, t, n) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, er = (e, t) => {
|
|
97
|
+
for (var n in t || (t = {}))
|
|
98
|
+
Go.call(t, n) && hn(e, n, t[n]);
|
|
99
|
+
if (mn)
|
|
100
|
+
for (var n of mn(t))
|
|
101
|
+
Xo.call(t, n) && hn(e, n, t[n]);
|
|
102
|
+
return e;
|
|
103
|
+
};
|
|
104
|
+
const tr = {
|
|
105
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
106
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
107
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
108
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
109
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
110
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
111
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
112
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
113
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
114
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
115
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
116
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
117
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
118
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
119
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
120
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
121
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
122
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
123
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
124
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
125
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
126
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
127
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
128
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
129
|
+
};
|
|
130
|
+
er({
|
|
131
|
+
linear: Zo
|
|
132
|
+
}, tr);
|
|
133
|
+
/**
|
|
134
|
+
* @vue/shared v3.4.35
|
|
135
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
136
|
+
* @license MIT
|
|
137
|
+
**/
|
|
138
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
139
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
140
|
+
const _t = () => {
|
|
141
|
+
}, nr = Object.prototype.hasOwnProperty, bn = (e, t) => nr.call(e, t), or = Array.isArray, ot = (e) => typeof e == "function", mt = (e) => typeof e == "string", $t = (e) => e !== null && typeof e == "object";
|
|
142
|
+
function kt(e) {
|
|
143
|
+
for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
|
|
144
|
+
var r = e[t];
|
|
145
|
+
o[r[0]] = r[1];
|
|
146
|
+
}
|
|
147
|
+
return o;
|
|
148
|
+
}
|
|
149
|
+
function xt(e) {
|
|
150
|
+
return e == null;
|
|
151
|
+
}
|
|
152
|
+
function rr(e) {
|
|
153
|
+
return e === void 0;
|
|
154
|
+
}
|
|
155
|
+
const Nt = (e) => typeof e == "boolean", We = (e) => typeof e == "number", qe = (e) => typeof Element > "u" ? !1 : e instanceof Element, ar = (e) => mt(e) ? !Number.isNaN(Number(e)) : !1;
|
|
156
|
+
class sr extends Error {
|
|
157
|
+
constructor(t) {
|
|
158
|
+
super(t), this.name = "ElementPlusError";
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function pt(e, t) {
|
|
162
|
+
if (process.env.NODE_ENV !== "production") {
|
|
163
|
+
const n = mt(e) ? new sr(`[${e}] ${t}`) : e;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const ir = "utils/dom/style";
|
|
167
|
+
function lr(e, t = "px") {
|
|
168
|
+
if (!e)
|
|
169
|
+
return "";
|
|
170
|
+
if (We(e) || ar(e))
|
|
171
|
+
return `${e}${t}`;
|
|
172
|
+
if (mt(e))
|
|
173
|
+
return e;
|
|
174
|
+
pt(ir, "binding value must be a string or number");
|
|
175
|
+
}
|
|
176
|
+
const Zn = "__epPropKey", $ = (e) => e, ur = (e) => $t(e) && !!e[Zn], Dt = (e, t) => {
|
|
177
|
+
if (!$t(e) || ur(e))
|
|
178
|
+
return e;
|
|
179
|
+
const { values: n, required: o, default: r, type: a, validator: i } = e, c = {
|
|
180
|
+
type: a,
|
|
181
|
+
required: !!o,
|
|
182
|
+
validator: n || i ? (u) => {
|
|
183
|
+
let p = !1, m = [];
|
|
184
|
+
if (n && (m = Array.from(n), bn(e, "default") && m.push(r), p || (p = m.includes(u))), i && (p || (p = i(u))), !p && m.length > 0) {
|
|
185
|
+
const h = [...new Set(m)].map((b) => JSON.stringify(b)).join(", ");
|
|
186
|
+
Ro(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`);
|
|
187
|
+
}
|
|
188
|
+
return p;
|
|
189
|
+
} : void 0,
|
|
190
|
+
[Zn]: !0
|
|
191
|
+
};
|
|
192
|
+
return bn(e, "default") && (c.default = r), c;
|
|
193
|
+
}, X = (e) => kt(Object.entries(e).map(([t, n]) => [
|
|
194
|
+
t,
|
|
195
|
+
Dt(n, t)
|
|
196
|
+
])), cr = $([
|
|
197
|
+
String,
|
|
198
|
+
Object,
|
|
199
|
+
Function
|
|
200
|
+
]), Ft = (e, t) => {
|
|
201
|
+
if (e.install = (n) => {
|
|
202
|
+
for (const o of [e, ...Object.values(t ?? {})])
|
|
203
|
+
n.component(o.name, o);
|
|
204
|
+
}, t)
|
|
205
|
+
for (const [n, o] of Object.entries(t))
|
|
206
|
+
e[n] = o;
|
|
207
|
+
return e;
|
|
208
|
+
}, pr = (e, t) => (e.install = (n) => {
|
|
209
|
+
n.directive(t, e);
|
|
210
|
+
}, e), dt = {
|
|
211
|
+
tab: "Tab",
|
|
212
|
+
enter: "Enter",
|
|
213
|
+
space: "Space",
|
|
214
|
+
left: "ArrowLeft",
|
|
215
|
+
up: "ArrowUp",
|
|
216
|
+
right: "ArrowRight",
|
|
217
|
+
down: "ArrowDown",
|
|
218
|
+
esc: "Escape",
|
|
219
|
+
delete: "Delete",
|
|
220
|
+
backspace: "Backspace",
|
|
221
|
+
numpadEnter: "NumpadEnter",
|
|
222
|
+
pageUp: "PageUp",
|
|
223
|
+
pageDown: "PageDown",
|
|
224
|
+
home: "Home",
|
|
225
|
+
end: "End"
|
|
226
|
+
}, Tt = "el", dr = "is-", Pe = (e, t, n, o, r) => {
|
|
227
|
+
let a = `${e}-${t}`;
|
|
228
|
+
return n && (a += `-${n}`), o && (a += `__${o}`), r && (a += `--${r}`), a;
|
|
229
|
+
}, fr = Symbol("namespaceContextKey"), Mt = (e) => {
|
|
230
|
+
const t = vt() ? ie(fr, k(Tt)) : k(Tt);
|
|
231
|
+
return _(() => s(t) || Tt);
|
|
232
|
+
}, Be = (e, t) => {
|
|
233
|
+
const n = Mt();
|
|
20
234
|
return {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
235
|
+
namespace: n,
|
|
236
|
+
b: (d = "") => Pe(n.value, e, d, "", ""),
|
|
237
|
+
e: (d) => d ? Pe(n.value, e, "", d, "") : "",
|
|
238
|
+
m: (d) => d ? Pe(n.value, e, "", "", d) : "",
|
|
239
|
+
be: (d, g) => d && g ? Pe(n.value, e, d, g, "") : "",
|
|
240
|
+
em: (d, g) => d && g ? Pe(n.value, e, "", d, g) : "",
|
|
241
|
+
bm: (d, g) => d && g ? Pe(n.value, e, d, "", g) : "",
|
|
242
|
+
bem: (d, g, f) => d && g && f ? Pe(n.value, e, d, g, f) : "",
|
|
243
|
+
is: (d, ...g) => {
|
|
244
|
+
const f = g.length >= 1 ? g[0] : !0;
|
|
245
|
+
return d && f ? `${dr}${d}` : "";
|
|
29
246
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, o = f(`${c(k[s])}/${c(n)}`), D = f(t.value[0]), $ = f(t.value[1]);
|
|
36
|
-
return o <= $ && o >= D;
|
|
247
|
+
cssVar: (d) => {
|
|
248
|
+
const g = {};
|
|
249
|
+
for (const f in d)
|
|
250
|
+
d[f] && (g[`--${n.value}-${f}`] = d[f]);
|
|
251
|
+
return g;
|
|
37
252
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
let $ = f(i.value.begin), R = f(i.value.end);
|
|
45
|
-
return r.value === "begin" ? (D > $ && ($ = D), o <= R && o >= $) : (D < R && (R = D), o <= R && o >= $);
|
|
253
|
+
cssVarName: (d) => `--${n.value}-${d}`,
|
|
254
|
+
cssVarBlock: (d) => {
|
|
255
|
+
const g = {};
|
|
256
|
+
for (const f in d)
|
|
257
|
+
d[f] && (g[`--${n.value}-${e}-${f}`] = d[f]);
|
|
258
|
+
return g;
|
|
46
259
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
260
|
+
cssVarBlockName: (d) => `--${n.value}-${e}-${d}`
|
|
261
|
+
};
|
|
262
|
+
}, vr = Dt({
|
|
263
|
+
type: $(Boolean),
|
|
264
|
+
default: null
|
|
265
|
+
}), gr = Dt({
|
|
266
|
+
type: $(Function)
|
|
267
|
+
}), Jn = (e) => {
|
|
268
|
+
const t = `update:${e}`, n = `onUpdate:${e}`, o = [t], r = {
|
|
269
|
+
[e]: vr,
|
|
270
|
+
[n]: gr
|
|
271
|
+
};
|
|
272
|
+
return {
|
|
273
|
+
useModelToggle: ({
|
|
274
|
+
indicator: i,
|
|
275
|
+
toggleReason: l,
|
|
276
|
+
shouldHideWhenRouteChanges: c,
|
|
277
|
+
shouldProceed: u,
|
|
278
|
+
onShow: p,
|
|
279
|
+
onHide: m
|
|
280
|
+
}) => {
|
|
281
|
+
const h = vt(), { emit: b } = h, v = h.props, d = _(() => ot(v[n])), g = _(() => v[e] === null), f = (w) => {
|
|
282
|
+
i.value !== !0 && (i.value = !0, l && (l.value = w), ot(p) && p(w));
|
|
283
|
+
}, O = (w) => {
|
|
284
|
+
i.value !== !1 && (i.value = !1, l && (l.value = w), ot(m) && m(w));
|
|
285
|
+
}, E = (w) => {
|
|
286
|
+
if (v.disabled === !0 || ot(u) && !u())
|
|
287
|
+
return;
|
|
288
|
+
const P = d.value && se;
|
|
289
|
+
P && b(t, !0), (g.value || !P) && f(w);
|
|
290
|
+
}, y = (w) => {
|
|
291
|
+
if (v.disabled === !0 || !se)
|
|
292
|
+
return;
|
|
293
|
+
const P = d.value && se;
|
|
294
|
+
P && b(t, !1), (g.value || !P) && O(w);
|
|
295
|
+
}, I = (w) => {
|
|
296
|
+
Nt(w) && (v.disabled && w ? d.value && b(t, !1) : i.value !== w && (w ? f() : O()));
|
|
297
|
+
}, T = () => {
|
|
298
|
+
i.value ? y() : E();
|
|
299
|
+
};
|
|
300
|
+
return H(() => v[e], I), c && h.appContext.config.globalProperties.$route !== void 0 && H(() => ({
|
|
301
|
+
...h.proxy.$route
|
|
302
|
+
}), () => {
|
|
303
|
+
c.value && i.value && y();
|
|
304
|
+
}), he(() => {
|
|
305
|
+
I(v[e]);
|
|
306
|
+
}), {
|
|
307
|
+
hide: y,
|
|
308
|
+
show: E,
|
|
309
|
+
toggle: T,
|
|
310
|
+
hasUpdateHandler: d
|
|
311
|
+
};
|
|
54
312
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
313
|
+
useModelToggleProps: r,
|
|
314
|
+
useModelToggleEmits: o
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
Jn("modelValue");
|
|
318
|
+
var Z = "top", re = "bottom", ae = "right", J = "left", Lt = "auto", Qe = [Z, re, ae, J], Ne = "start", Ye = "end", mr = "clippingParents", Qn = "viewport", He = "popper", hr = "reference", yn = Qe.reduce(function(e, t) {
|
|
319
|
+
return e.concat([t + "-" + Ne, t + "-" + Ye]);
|
|
320
|
+
}, []), Bt = [].concat(Qe, [Lt]).reduce(function(e, t) {
|
|
321
|
+
return e.concat([t, t + "-" + Ne, t + "-" + Ye]);
|
|
322
|
+
}, []), br = "beforeRead", yr = "read", wr = "afterRead", Er = "beforeMain", Or = "main", Tr = "afterMain", Ir = "beforeWrite", Cr = "write", Pr = "afterWrite", Sr = [br, yr, wr, Er, Or, Tr, Ir, Cr, Pr];
|
|
323
|
+
function de(e) {
|
|
324
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
325
|
+
}
|
|
326
|
+
function le(e) {
|
|
327
|
+
if (e == null) return window;
|
|
328
|
+
if (e.toString() !== "[object Window]") {
|
|
329
|
+
var t = e.ownerDocument;
|
|
330
|
+
return t && t.defaultView || window;
|
|
331
|
+
}
|
|
332
|
+
return e;
|
|
333
|
+
}
|
|
334
|
+
function De(e) {
|
|
335
|
+
var t = le(e).Element;
|
|
336
|
+
return e instanceof t || e instanceof Element;
|
|
337
|
+
}
|
|
338
|
+
function ne(e) {
|
|
339
|
+
var t = le(e).HTMLElement;
|
|
340
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
341
|
+
}
|
|
342
|
+
function jt(e) {
|
|
343
|
+
if (typeof ShadowRoot > "u") return !1;
|
|
344
|
+
var t = le(e).ShadowRoot;
|
|
345
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
346
|
+
}
|
|
347
|
+
function _r(e) {
|
|
348
|
+
var t = e.state;
|
|
349
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
350
|
+
var o = t.styles[n] || {}, r = t.attributes[n] || {}, a = t.elements[n];
|
|
351
|
+
!ne(a) || !de(a) || (Object.assign(a.style, o), Object.keys(r).forEach(function(i) {
|
|
352
|
+
var l = r[i];
|
|
353
|
+
l === !1 ? a.removeAttribute(i) : a.setAttribute(i, l === !0 ? "" : l);
|
|
354
|
+
}));
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
function kr(e) {
|
|
358
|
+
var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
|
|
359
|
+
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
360
|
+
Object.keys(t.elements).forEach(function(o) {
|
|
361
|
+
var r = t.elements[o], a = t.attributes[o] || {}, i = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), l = i.reduce(function(c, u) {
|
|
362
|
+
return c[u] = "", c;
|
|
363
|
+
}, {});
|
|
364
|
+
!ne(r) || !de(r) || (Object.assign(r.style, l), Object.keys(a).forEach(function(c) {
|
|
365
|
+
r.removeAttribute(c);
|
|
366
|
+
}));
|
|
367
|
+
});
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
var Gn = { name: "applyStyles", enabled: !0, phase: "write", fn: _r, effect: kr, requires: ["computeStyles"] };
|
|
371
|
+
function pe(e) {
|
|
372
|
+
return e.split("-")[0];
|
|
373
|
+
}
|
|
374
|
+
var _e = Math.max, ft = Math.min, Fe = Math.round;
|
|
375
|
+
function Me(e, t) {
|
|
376
|
+
t === void 0 && (t = !1);
|
|
377
|
+
var n = e.getBoundingClientRect(), o = 1, r = 1;
|
|
378
|
+
if (ne(e) && t) {
|
|
379
|
+
var a = e.offsetHeight, i = e.offsetWidth;
|
|
380
|
+
i > 0 && (o = Fe(n.width) / i || 1), a > 0 && (r = Fe(n.height) / a || 1);
|
|
381
|
+
}
|
|
382
|
+
return { width: n.width / o, height: n.height / r, top: n.top / r, right: n.right / o, bottom: n.bottom / r, left: n.left / o, x: n.left / o, y: n.top / r };
|
|
383
|
+
}
|
|
384
|
+
function Ht(e) {
|
|
385
|
+
var t = Me(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
386
|
+
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o };
|
|
387
|
+
}
|
|
388
|
+
function Xn(e, t) {
|
|
389
|
+
var n = t.getRootNode && t.getRootNode();
|
|
390
|
+
if (e.contains(t)) return !0;
|
|
391
|
+
if (n && jt(n)) {
|
|
392
|
+
var o = t;
|
|
393
|
+
do {
|
|
394
|
+
if (o && e.isSameNode(o)) return !0;
|
|
395
|
+
o = o.parentNode || o.host;
|
|
396
|
+
} while (o);
|
|
397
|
+
}
|
|
398
|
+
return !1;
|
|
399
|
+
}
|
|
400
|
+
function me(e) {
|
|
401
|
+
return le(e).getComputedStyle(e);
|
|
402
|
+
}
|
|
403
|
+
function Rr(e) {
|
|
404
|
+
return ["table", "td", "th"].indexOf(de(e)) >= 0;
|
|
405
|
+
}
|
|
406
|
+
function Te(e) {
|
|
407
|
+
return ((De(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
408
|
+
}
|
|
409
|
+
function ht(e) {
|
|
410
|
+
return de(e) === "html" ? e : e.assignedSlot || e.parentNode || (jt(e) ? e.host : null) || Te(e);
|
|
411
|
+
}
|
|
412
|
+
function wn(e) {
|
|
413
|
+
return !ne(e) || me(e).position === "fixed" ? null : e.offsetParent;
|
|
414
|
+
}
|
|
415
|
+
function Ar(e) {
|
|
416
|
+
var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
|
|
417
|
+
if (n && ne(e)) {
|
|
418
|
+
var o = me(e);
|
|
419
|
+
if (o.position === "fixed") return null;
|
|
420
|
+
}
|
|
421
|
+
var r = ht(e);
|
|
422
|
+
for (jt(r) && (r = r.host); ne(r) && ["html", "body"].indexOf(de(r)) < 0; ) {
|
|
423
|
+
var a = me(r);
|
|
424
|
+
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return r;
|
|
425
|
+
r = r.parentNode;
|
|
426
|
+
}
|
|
427
|
+
return null;
|
|
428
|
+
}
|
|
429
|
+
function Ge(e) {
|
|
430
|
+
for (var t = le(e), n = wn(e); n && Rr(n) && me(n).position === "static"; ) n = wn(n);
|
|
431
|
+
return n && (de(n) === "html" || de(n) === "body" && me(n).position === "static") ? t : n || Ar(e) || t;
|
|
432
|
+
}
|
|
433
|
+
function Vt(e) {
|
|
434
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
435
|
+
}
|
|
436
|
+
function Ue(e, t, n) {
|
|
437
|
+
return _e(e, ft(t, n));
|
|
438
|
+
}
|
|
439
|
+
function $r(e, t, n) {
|
|
440
|
+
var o = Ue(e, t, n);
|
|
441
|
+
return o > n ? n : o;
|
|
442
|
+
}
|
|
443
|
+
function eo() {
|
|
444
|
+
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
445
|
+
}
|
|
446
|
+
function to(e) {
|
|
447
|
+
return Object.assign({}, eo(), e);
|
|
448
|
+
}
|
|
449
|
+
function no(e, t) {
|
|
450
|
+
return t.reduce(function(n, o) {
|
|
451
|
+
return n[o] = e, n;
|
|
452
|
+
}, {});
|
|
453
|
+
}
|
|
454
|
+
var xr = function(e, t) {
|
|
455
|
+
return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, to(typeof e != "number" ? e : no(e, Qe));
|
|
456
|
+
};
|
|
457
|
+
function Nr(e) {
|
|
458
|
+
var t, n = e.state, o = e.name, r = e.options, a = n.elements.arrow, i = n.modifiersData.popperOffsets, l = pe(n.placement), c = Vt(l), u = [J, ae].indexOf(l) >= 0, p = u ? "height" : "width";
|
|
459
|
+
if (!(!a || !i)) {
|
|
460
|
+
var m = xr(r.padding, n), h = Ht(a), b = c === "y" ? Z : J, v = c === "y" ? re : ae, d = n.rects.reference[p] + n.rects.reference[c] - i[c] - n.rects.popper[p], g = i[c] - n.rects.reference[c], f = Ge(a), O = f ? c === "y" ? f.clientHeight || 0 : f.clientWidth || 0 : 0, E = d / 2 - g / 2, y = m[b], I = O - h[p] - m[v], T = O / 2 - h[p] / 2 + E, w = Ue(y, T, I), P = c;
|
|
461
|
+
n.modifiersData[o] = (t = {}, t[P] = w, t.centerOffset = w - T, t);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
function Dr(e) {
|
|
465
|
+
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
466
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || !Xn(t.elements.popper, r) || (t.elements.arrow = r));
|
|
467
|
+
}
|
|
468
|
+
var Fr = { name: "arrow", enabled: !0, phase: "main", fn: Nr, effect: Dr, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
|
|
469
|
+
function Le(e) {
|
|
470
|
+
return e.split("-")[1];
|
|
471
|
+
}
|
|
472
|
+
var Mr = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
473
|
+
function Lr(e) {
|
|
474
|
+
var t = e.x, n = e.y, o = window, r = o.devicePixelRatio || 1;
|
|
475
|
+
return { x: Fe(t * r) / r || 0, y: Fe(n * r) / r || 0 };
|
|
476
|
+
}
|
|
477
|
+
function En(e) {
|
|
478
|
+
var t, n = e.popper, o = e.popperRect, r = e.placement, a = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, u = e.adaptive, p = e.roundOffsets, m = e.isFixed, h = i.x, b = h === void 0 ? 0 : h, v = i.y, d = v === void 0 ? 0 : v, g = typeof p == "function" ? p({ x: b, y: d }) : { x: b, y: d };
|
|
479
|
+
b = g.x, d = g.y;
|
|
480
|
+
var f = i.hasOwnProperty("x"), O = i.hasOwnProperty("y"), E = J, y = Z, I = window;
|
|
481
|
+
if (u) {
|
|
482
|
+
var T = Ge(n), w = "clientHeight", P = "clientWidth";
|
|
483
|
+
if (T === le(n) && (T = Te(n), me(T).position !== "static" && l === "absolute" && (w = "scrollHeight", P = "scrollWidth")), T = T, r === Z || (r === J || r === ae) && a === Ye) {
|
|
484
|
+
y = re;
|
|
485
|
+
var R = m && T === I && I.visualViewport ? I.visualViewport.height : T[w];
|
|
486
|
+
d -= R - o.height, d *= c ? 1 : -1;
|
|
487
|
+
}
|
|
488
|
+
if (r === J || (r === Z || r === re) && a === Ye) {
|
|
489
|
+
E = ae;
|
|
490
|
+
var A = m && T === I && I.visualViewport ? I.visualViewport.width : T[P];
|
|
491
|
+
b -= A - o.width, b *= c ? 1 : -1;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
var D = Object.assign({ position: l }, u && Mr), x = p === !0 ? Lr({ x: b, y: d }) : { x: b, y: d };
|
|
495
|
+
if (b = x.x, d = x.y, c) {
|
|
496
|
+
var F;
|
|
497
|
+
return Object.assign({}, D, (F = {}, F[y] = O ? "0" : "", F[E] = f ? "0" : "", F.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + b + "px, " + d + "px)" : "translate3d(" + b + "px, " + d + "px, 0)", F));
|
|
498
|
+
}
|
|
499
|
+
return Object.assign({}, D, (t = {}, t[y] = O ? d + "px" : "", t[E] = f ? b + "px" : "", t.transform = "", t));
|
|
500
|
+
}
|
|
501
|
+
function Br(e) {
|
|
502
|
+
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, a = n.adaptive, i = a === void 0 ? !0 : a, l = n.roundOffsets, c = l === void 0 ? !0 : l, u = { placement: pe(t.placement), variation: Le(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: r, isFixed: t.options.strategy === "fixed" };
|
|
503
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, En(Object.assign({}, u, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: i, roundOffsets: c })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, En(Object.assign({}, u, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: c })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
|
|
504
|
+
}
|
|
505
|
+
var oo = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Br, data: {} }, rt = { passive: !0 };
|
|
506
|
+
function jr(e) {
|
|
507
|
+
var t = e.state, n = e.instance, o = e.options, r = o.scroll, a = r === void 0 ? !0 : r, i = o.resize, l = i === void 0 ? !0 : i, c = le(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
508
|
+
return a && u.forEach(function(p) {
|
|
509
|
+
p.addEventListener("scroll", n.update, rt);
|
|
510
|
+
}), l && c.addEventListener("resize", n.update, rt), function() {
|
|
511
|
+
a && u.forEach(function(p) {
|
|
512
|
+
p.removeEventListener("scroll", n.update, rt);
|
|
513
|
+
}), l && c.removeEventListener("resize", n.update, rt);
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
var ro = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
|
|
517
|
+
}, effect: jr, data: {} }, Hr = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
518
|
+
function ut(e) {
|
|
519
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
520
|
+
return Hr[t];
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
var Vr = { start: "end", end: "start" };
|
|
524
|
+
function On(e) {
|
|
525
|
+
return e.replace(/start|end/g, function(t) {
|
|
526
|
+
return Vr[t];
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
function Kt(e) {
|
|
530
|
+
var t = le(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
531
|
+
return { scrollLeft: n, scrollTop: o };
|
|
532
|
+
}
|
|
533
|
+
function Ut(e) {
|
|
534
|
+
return Me(Te(e)).left + Kt(e).scrollLeft;
|
|
535
|
+
}
|
|
536
|
+
function Kr(e) {
|
|
537
|
+
var t = le(e), n = Te(e), o = t.visualViewport, r = n.clientWidth, a = n.clientHeight, i = 0, l = 0;
|
|
538
|
+
return o && (r = o.width, a = o.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (i = o.offsetLeft, l = o.offsetTop)), { width: r, height: a, x: i + Ut(e), y: l };
|
|
539
|
+
}
|
|
540
|
+
function Ur(e) {
|
|
541
|
+
var t, n = Te(e), o = Kt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, a = _e(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), i = _e(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), l = -o.scrollLeft + Ut(e), c = -o.scrollTop;
|
|
542
|
+
return me(r || n).direction === "rtl" && (l += _e(n.clientWidth, r ? r.clientWidth : 0) - a), { width: a, height: i, x: l, y: c };
|
|
543
|
+
}
|
|
544
|
+
function zt(e) {
|
|
545
|
+
var t = me(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
546
|
+
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
547
|
+
}
|
|
548
|
+
function ao(e) {
|
|
549
|
+
return ["html", "body", "#document"].indexOf(de(e)) >= 0 ? e.ownerDocument.body : ne(e) && zt(e) ? e : ao(ht(e));
|
|
550
|
+
}
|
|
551
|
+
function ze(e, t) {
|
|
552
|
+
var n;
|
|
553
|
+
t === void 0 && (t = []);
|
|
554
|
+
var o = ao(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), a = le(o), i = r ? [a].concat(a.visualViewport || [], zt(o) ? o : []) : o, l = t.concat(i);
|
|
555
|
+
return r ? l : l.concat(ze(ht(i)));
|
|
556
|
+
}
|
|
557
|
+
function Rt(e) {
|
|
558
|
+
return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
|
|
559
|
+
}
|
|
560
|
+
function zr(e) {
|
|
561
|
+
var t = Me(e);
|
|
562
|
+
return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
563
|
+
}
|
|
564
|
+
function Tn(e, t) {
|
|
565
|
+
return t === Qn ? Rt(Kr(e)) : De(t) ? zr(t) : Rt(Ur(Te(e)));
|
|
566
|
+
}
|
|
567
|
+
function Wr(e) {
|
|
568
|
+
var t = ze(ht(e)), n = ["absolute", "fixed"].indexOf(me(e).position) >= 0, o = n && ne(e) ? Ge(e) : e;
|
|
569
|
+
return De(o) ? t.filter(function(r) {
|
|
570
|
+
return De(r) && Xn(r, o) && de(r) !== "body";
|
|
571
|
+
}) : [];
|
|
572
|
+
}
|
|
573
|
+
function qr(e, t, n) {
|
|
574
|
+
var o = t === "clippingParents" ? Wr(e) : [].concat(t), r = [].concat(o, [n]), a = r[0], i = r.reduce(function(l, c) {
|
|
575
|
+
var u = Tn(e, c);
|
|
576
|
+
return l.top = _e(u.top, l.top), l.right = ft(u.right, l.right), l.bottom = ft(u.bottom, l.bottom), l.left = _e(u.left, l.left), l;
|
|
577
|
+
}, Tn(e, a));
|
|
578
|
+
return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
579
|
+
}
|
|
580
|
+
function so(e) {
|
|
581
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? pe(o) : null, a = o ? Le(o) : null, i = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, c;
|
|
582
|
+
switch (r) {
|
|
583
|
+
case Z:
|
|
584
|
+
c = { x: i, y: t.y - n.height };
|
|
585
|
+
break;
|
|
586
|
+
case re:
|
|
587
|
+
c = { x: i, y: t.y + t.height };
|
|
588
|
+
break;
|
|
589
|
+
case ae:
|
|
590
|
+
c = { x: t.x + t.width, y: l };
|
|
591
|
+
break;
|
|
592
|
+
case J:
|
|
593
|
+
c = { x: t.x - n.width, y: l };
|
|
594
|
+
break;
|
|
595
|
+
default:
|
|
596
|
+
c = { x: t.x, y: t.y };
|
|
597
|
+
}
|
|
598
|
+
var u = r ? Vt(r) : null;
|
|
599
|
+
if (u != null) {
|
|
600
|
+
var p = u === "y" ? "height" : "width";
|
|
601
|
+
switch (a) {
|
|
602
|
+
case Ne:
|
|
603
|
+
c[u] = c[u] - (t[p] / 2 - n[p] / 2);
|
|
604
|
+
break;
|
|
605
|
+
case Ye:
|
|
606
|
+
c[u] = c[u] + (t[p] / 2 - n[p] / 2);
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
return c;
|
|
611
|
+
}
|
|
612
|
+
function Ze(e, t) {
|
|
613
|
+
t === void 0 && (t = {});
|
|
614
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, a = n.boundary, i = a === void 0 ? mr : a, l = n.rootBoundary, c = l === void 0 ? Qn : l, u = n.elementContext, p = u === void 0 ? He : u, m = n.altBoundary, h = m === void 0 ? !1 : m, b = n.padding, v = b === void 0 ? 0 : b, d = to(typeof v != "number" ? v : no(v, Qe)), g = p === He ? hr : He, f = e.rects.popper, O = e.elements[h ? g : p], E = qr(De(O) ? O : O.contextElement || Te(e.elements.popper), i, c), y = Me(e.elements.reference), I = so({ reference: y, element: f, strategy: "absolute", placement: r }), T = Rt(Object.assign({}, f, I)), w = p === He ? T : y, P = { top: E.top - w.top + d.top, bottom: w.bottom - E.bottom + d.bottom, left: E.left - w.left + d.left, right: w.right - E.right + d.right }, R = e.modifiersData.offset;
|
|
615
|
+
if (p === He && R) {
|
|
616
|
+
var A = R[r];
|
|
617
|
+
Object.keys(P).forEach(function(D) {
|
|
618
|
+
var x = [ae, re].indexOf(D) >= 0 ? 1 : -1, F = [Z, re].indexOf(D) >= 0 ? "y" : "x";
|
|
619
|
+
P[D] += A[F] * x;
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
return P;
|
|
623
|
+
}
|
|
624
|
+
function Yr(e, t) {
|
|
625
|
+
t === void 0 && (t = {});
|
|
626
|
+
var n = t, o = n.placement, r = n.boundary, a = n.rootBoundary, i = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, u = c === void 0 ? Bt : c, p = Le(o), m = p ? l ? yn : yn.filter(function(v) {
|
|
627
|
+
return Le(v) === p;
|
|
628
|
+
}) : Qe, h = m.filter(function(v) {
|
|
629
|
+
return u.indexOf(v) >= 0;
|
|
630
|
+
});
|
|
631
|
+
h.length === 0 && (h = m);
|
|
632
|
+
var b = h.reduce(function(v, d) {
|
|
633
|
+
return v[d] = Ze(e, { placement: d, boundary: r, rootBoundary: a, padding: i })[pe(d)], v;
|
|
634
|
+
}, {});
|
|
635
|
+
return Object.keys(b).sort(function(v, d) {
|
|
636
|
+
return b[v] - b[d];
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
function Zr(e) {
|
|
640
|
+
if (pe(e) === Lt) return [];
|
|
641
|
+
var t = ut(e);
|
|
642
|
+
return [On(e), t, On(t)];
|
|
643
|
+
}
|
|
644
|
+
function Jr(e) {
|
|
645
|
+
var t = e.state, n = e.options, o = e.name;
|
|
646
|
+
if (!t.modifiersData[o]._skip) {
|
|
647
|
+
for (var r = n.mainAxis, a = r === void 0 ? !0 : r, i = n.altAxis, l = i === void 0 ? !0 : i, c = n.fallbackPlacements, u = n.padding, p = n.boundary, m = n.rootBoundary, h = n.altBoundary, b = n.flipVariations, v = b === void 0 ? !0 : b, d = n.allowedAutoPlacements, g = t.options.placement, f = pe(g), O = f === g, E = c || (O || !v ? [ut(g)] : Zr(g)), y = [g].concat(E).reduce(function(fe, N) {
|
|
648
|
+
return fe.concat(pe(N) === Lt ? Yr(t, { placement: N, boundary: p, rootBoundary: m, padding: u, flipVariations: v, allowedAutoPlacements: d }) : N);
|
|
649
|
+
}, []), I = t.rects.reference, T = t.rects.popper, w = /* @__PURE__ */ new Map(), P = !0, R = y[0], A = 0; A < y.length; A++) {
|
|
650
|
+
var D = y[A], x = pe(D), F = Le(D) === Ne, U = [Z, re].indexOf(x) >= 0, K = U ? "width" : "height", M = Ze(t, { placement: D, boundary: p, rootBoundary: m, altBoundary: h, padding: u }), C = U ? F ? ae : J : F ? re : Z;
|
|
651
|
+
I[K] > T[K] && (C = ut(C));
|
|
652
|
+
var z = ut(C), Q = [];
|
|
653
|
+
if (a && Q.push(M[x] <= 0), l && Q.push(M[C] <= 0, M[z] <= 0), Q.every(function(fe) {
|
|
654
|
+
return fe;
|
|
655
|
+
})) {
|
|
656
|
+
R = D, P = !1;
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
w.set(D, Q);
|
|
660
|
+
}
|
|
661
|
+
if (P) for (var ke = v ? 3 : 1, je = function(fe) {
|
|
662
|
+
var N = y.find(function(B) {
|
|
663
|
+
var S = w.get(B);
|
|
664
|
+
if (S) return S.slice(0, fe).every(function(q) {
|
|
665
|
+
return q;
|
|
666
|
+
});
|
|
667
|
+
});
|
|
668
|
+
if (N) return R = N, "break";
|
|
669
|
+
}, Ie = ke; Ie > 0; Ie--) {
|
|
670
|
+
var Re = je(Ie);
|
|
671
|
+
if (Re === "break") break;
|
|
672
|
+
}
|
|
673
|
+
t.placement !== R && (t.modifiersData[o]._skip = !0, t.placement = R, t.reset = !0);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
var Qr = { name: "flip", enabled: !0, phase: "main", fn: Jr, requiresIfExists: ["offset"], data: { _skip: !1 } };
|
|
677
|
+
function In(e, t, n) {
|
|
678
|
+
return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x };
|
|
679
|
+
}
|
|
680
|
+
function Cn(e) {
|
|
681
|
+
return [Z, ae, re, J].some(function(t) {
|
|
682
|
+
return e[t] >= 0;
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
function Gr(e) {
|
|
686
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, a = t.modifiersData.preventOverflow, i = Ze(t, { elementContext: "reference" }), l = Ze(t, { altBoundary: !0 }), c = In(i, o), u = In(l, r, a), p = Cn(c), m = Cn(u);
|
|
687
|
+
t.modifiersData[n] = { referenceClippingOffsets: c, popperEscapeOffsets: u, isReferenceHidden: p, hasPopperEscaped: m }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": p, "data-popper-escaped": m });
|
|
688
|
+
}
|
|
689
|
+
var Xr = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: Gr };
|
|
690
|
+
function ea(e, t, n) {
|
|
691
|
+
var o = pe(e), r = [J, Z].indexOf(o) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, i = a[0], l = a[1];
|
|
692
|
+
return i = i || 0, l = (l || 0) * r, [J, ae].indexOf(o) >= 0 ? { x: l, y: i } : { x: i, y: l };
|
|
693
|
+
}
|
|
694
|
+
function ta(e) {
|
|
695
|
+
var t = e.state, n = e.options, o = e.name, r = n.offset, a = r === void 0 ? [0, 0] : r, i = Bt.reduce(function(p, m) {
|
|
696
|
+
return p[m] = ea(m, t.rects, a), p;
|
|
697
|
+
}, {}), l = i[t.placement], c = l.x, u = l.y;
|
|
698
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += u), t.modifiersData[o] = i;
|
|
699
|
+
}
|
|
700
|
+
var na = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: ta };
|
|
701
|
+
function oa(e) {
|
|
702
|
+
var t = e.state, n = e.name;
|
|
703
|
+
t.modifiersData[n] = so({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement });
|
|
704
|
+
}
|
|
705
|
+
var io = { name: "popperOffsets", enabled: !0, phase: "read", fn: oa, data: {} };
|
|
706
|
+
function ra(e) {
|
|
707
|
+
return e === "x" ? "y" : "x";
|
|
708
|
+
}
|
|
709
|
+
function aa(e) {
|
|
710
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, a = r === void 0 ? !0 : r, i = n.altAxis, l = i === void 0 ? !1 : i, c = n.boundary, u = n.rootBoundary, p = n.altBoundary, m = n.padding, h = n.tether, b = h === void 0 ? !0 : h, v = n.tetherOffset, d = v === void 0 ? 0 : v, g = Ze(t, { boundary: c, rootBoundary: u, padding: m, altBoundary: p }), f = pe(t.placement), O = Le(t.placement), E = !O, y = Vt(f), I = ra(y), T = t.modifiersData.popperOffsets, w = t.rects.reference, P = t.rects.popper, R = typeof d == "function" ? d(Object.assign({}, t.rects, { placement: t.placement })) : d, A = typeof R == "number" ? { mainAxis: R, altAxis: R } : Object.assign({ mainAxis: 0, altAxis: 0 }, R), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, x = { x: 0, y: 0 };
|
|
711
|
+
if (T) {
|
|
712
|
+
if (a) {
|
|
713
|
+
var F, U = y === "y" ? Z : J, K = y === "y" ? re : ae, M = y === "y" ? "height" : "width", C = T[y], z = C + g[U], Q = C - g[K], ke = b ? -P[M] / 2 : 0, je = O === Ne ? w[M] : P[M], Ie = O === Ne ? -P[M] : -w[M], Re = t.elements.arrow, fe = b && Re ? Ht(Re) : { width: 0, height: 0 }, N = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : eo(), B = N[U], S = N[K], q = Ue(0, w[M], fe[M]), Xe = E ? w[M] / 2 - ke - q - B - A.mainAxis : je - q - B - A.mainAxis, yt = E ? -w[M] / 2 + ke + q + S + A.mainAxis : Ie + q + S + A.mainAxis, wt = t.elements.arrow && Ge(t.elements.arrow), wo = wt ? y === "y" ? wt.clientTop || 0 : wt.clientLeft || 0 : 0, Qt = (F = D == null ? void 0 : D[y]) != null ? F : 0, Eo = C + Xe - Qt - wo, Oo = C + yt - Qt, Gt = Ue(b ? ft(z, Eo) : z, C, b ? _e(Q, Oo) : Q);
|
|
714
|
+
T[y] = Gt, x[y] = Gt - C;
|
|
715
|
+
}
|
|
716
|
+
if (l) {
|
|
717
|
+
var Xt, To = y === "x" ? Z : J, Io = y === "x" ? re : ae, Ce = T[I], et = I === "y" ? "height" : "width", en = Ce + g[To], tn = Ce - g[Io], Et = [Z, J].indexOf(f) !== -1, nn = (Xt = D == null ? void 0 : D[I]) != null ? Xt : 0, on = Et ? en : Ce - w[et] - P[et] - nn + A.altAxis, rn = Et ? Ce + w[et] + P[et] - nn - A.altAxis : tn, an = b && Et ? $r(on, Ce, rn) : Ue(b ? on : en, Ce, b ? rn : tn);
|
|
718
|
+
T[I] = an, x[I] = an - Ce;
|
|
719
|
+
}
|
|
720
|
+
t.modifiersData[o] = x;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
var sa = { name: "preventOverflow", enabled: !0, phase: "main", fn: aa, requiresIfExists: ["offset"] };
|
|
724
|
+
function ia(e) {
|
|
725
|
+
return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
|
|
726
|
+
}
|
|
727
|
+
function la(e) {
|
|
728
|
+
return e === le(e) || !ne(e) ? Kt(e) : ia(e);
|
|
729
|
+
}
|
|
730
|
+
function ua(e) {
|
|
731
|
+
var t = e.getBoundingClientRect(), n = Fe(t.width) / e.offsetWidth || 1, o = Fe(t.height) / e.offsetHeight || 1;
|
|
732
|
+
return n !== 1 || o !== 1;
|
|
733
|
+
}
|
|
734
|
+
function ca(e, t, n) {
|
|
735
|
+
n === void 0 && (n = !1);
|
|
736
|
+
var o = ne(t), r = ne(t) && ua(t), a = Te(t), i = Me(e, r), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 };
|
|
737
|
+
return (o || !o && !n) && ((de(t) !== "body" || zt(a)) && (l = la(t)), ne(t) ? (c = Me(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = Ut(a))), { x: i.left + l.scrollLeft - c.x, y: i.top + l.scrollTop - c.y, width: i.width, height: i.height };
|
|
738
|
+
}
|
|
739
|
+
function pa(e) {
|
|
740
|
+
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
|
|
741
|
+
e.forEach(function(a) {
|
|
742
|
+
t.set(a.name, a);
|
|
743
|
+
});
|
|
744
|
+
function r(a) {
|
|
745
|
+
n.add(a.name);
|
|
746
|
+
var i = [].concat(a.requires || [], a.requiresIfExists || []);
|
|
747
|
+
i.forEach(function(l) {
|
|
748
|
+
if (!n.has(l)) {
|
|
749
|
+
var c = t.get(l);
|
|
750
|
+
c && r(c);
|
|
751
|
+
}
|
|
752
|
+
}), o.push(a);
|
|
753
|
+
}
|
|
754
|
+
return e.forEach(function(a) {
|
|
755
|
+
n.has(a.name) || r(a);
|
|
756
|
+
}), o;
|
|
757
|
+
}
|
|
758
|
+
function da(e) {
|
|
759
|
+
var t = pa(e);
|
|
760
|
+
return Sr.reduce(function(n, o) {
|
|
761
|
+
return n.concat(t.filter(function(r) {
|
|
762
|
+
return r.phase === o;
|
|
763
|
+
}));
|
|
764
|
+
}, []);
|
|
765
|
+
}
|
|
766
|
+
function fa(e) {
|
|
767
|
+
var t;
|
|
768
|
+
return function() {
|
|
769
|
+
return t || (t = new Promise(function(n) {
|
|
770
|
+
Promise.resolve().then(function() {
|
|
771
|
+
t = void 0, n(e());
|
|
772
|
+
});
|
|
773
|
+
})), t;
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function va(e) {
|
|
777
|
+
var t = e.reduce(function(n, o) {
|
|
778
|
+
var r = n[o.name];
|
|
779
|
+
return n[o.name] = r ? Object.assign({}, r, o, { options: Object.assign({}, r.options, o.options), data: Object.assign({}, r.data, o.data) }) : o, n;
|
|
780
|
+
}, {});
|
|
781
|
+
return Object.keys(t).map(function(n) {
|
|
782
|
+
return t[n];
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
var Pn = { placement: "bottom", modifiers: [], strategy: "absolute" };
|
|
786
|
+
function Sn() {
|
|
787
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
|
|
788
|
+
return !t.some(function(o) {
|
|
789
|
+
return !(o && typeof o.getBoundingClientRect == "function");
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
function Wt(e) {
|
|
793
|
+
e === void 0 && (e = {});
|
|
794
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, a = r === void 0 ? Pn : r;
|
|
795
|
+
return function(i, l, c) {
|
|
796
|
+
c === void 0 && (c = a);
|
|
797
|
+
var u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Pn, a), modifiersData: {}, elements: { reference: i, popper: l }, attributes: {}, styles: {} }, p = [], m = !1, h = { state: u, setOptions: function(d) {
|
|
798
|
+
var g = typeof d == "function" ? d(u.options) : d;
|
|
799
|
+
v(), u.options = Object.assign({}, a, u.options, g), u.scrollParents = { reference: De(i) ? ze(i) : i.contextElement ? ze(i.contextElement) : [], popper: ze(l) };
|
|
800
|
+
var f = da(va([].concat(o, u.options.modifiers)));
|
|
801
|
+
return u.orderedModifiers = f.filter(function(O) {
|
|
802
|
+
return O.enabled;
|
|
803
|
+
}), b(), h.update();
|
|
804
|
+
}, forceUpdate: function() {
|
|
805
|
+
if (!m) {
|
|
806
|
+
var d = u.elements, g = d.reference, f = d.popper;
|
|
807
|
+
if (Sn(g, f)) {
|
|
808
|
+
u.rects = { reference: ca(g, Ge(f), u.options.strategy === "fixed"), popper: Ht(f) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
|
|
809
|
+
return u.modifiersData[P.name] = Object.assign({}, P.data);
|
|
810
|
+
});
|
|
811
|
+
for (var O = 0; O < u.orderedModifiers.length; O++) {
|
|
812
|
+
if (u.reset === !0) {
|
|
813
|
+
u.reset = !1, O = -1;
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
var E = u.orderedModifiers[O], y = E.fn, I = E.options, T = I === void 0 ? {} : I, w = E.name;
|
|
817
|
+
typeof y == "function" && (u = y({ state: u, options: T, name: w, instance: h }) || u);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}, update: fa(function() {
|
|
822
|
+
return new Promise(function(d) {
|
|
823
|
+
h.forceUpdate(), d(u);
|
|
824
|
+
});
|
|
825
|
+
}), destroy: function() {
|
|
826
|
+
v(), m = !0;
|
|
827
|
+
} };
|
|
828
|
+
if (!Sn(i, l)) return h;
|
|
829
|
+
h.setOptions(c).then(function(d) {
|
|
830
|
+
!m && c.onFirstUpdate && c.onFirstUpdate(d);
|
|
831
|
+
});
|
|
832
|
+
function b() {
|
|
833
|
+
u.orderedModifiers.forEach(function(d) {
|
|
834
|
+
var g = d.name, f = d.options, O = f === void 0 ? {} : f, E = d.effect;
|
|
835
|
+
if (typeof E == "function") {
|
|
836
|
+
var y = E({ state: u, name: g, instance: h, options: O }), I = function() {
|
|
837
|
+
};
|
|
838
|
+
p.push(y || I);
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
function v() {
|
|
843
|
+
p.forEach(function(d) {
|
|
844
|
+
return d();
|
|
845
|
+
}), p = [];
|
|
846
|
+
}
|
|
847
|
+
return h;
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
Wt();
|
|
851
|
+
var ga = [ro, io, oo, Gn];
|
|
852
|
+
Wt({ defaultModifiers: ga });
|
|
853
|
+
var ma = [ro, io, oo, Gn, na, Qr, sa, Fr, Xr], ha = Wt({ defaultModifiers: ma });
|
|
854
|
+
const ba = (e, t, n = {}) => {
|
|
855
|
+
const o = {
|
|
856
|
+
name: "updateState",
|
|
857
|
+
enabled: !0,
|
|
858
|
+
phase: "write",
|
|
859
|
+
fn: ({ state: c }) => {
|
|
860
|
+
const u = ya(c);
|
|
861
|
+
Object.assign(i.value, u);
|
|
62
862
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
863
|
+
requires: ["computeStyles"]
|
|
864
|
+
}, r = _(() => {
|
|
865
|
+
const { onFirstUpdate: c, placement: u, strategy: p, modifiers: m } = s(n);
|
|
866
|
+
return {
|
|
867
|
+
onFirstUpdate: c,
|
|
868
|
+
placement: u || "bottom",
|
|
869
|
+
strategy: p || "absolute",
|
|
870
|
+
modifiers: [
|
|
871
|
+
...m || [],
|
|
872
|
+
o,
|
|
873
|
+
{ name: "applyStyles", enabled: !1 }
|
|
874
|
+
]
|
|
875
|
+
};
|
|
876
|
+
}), a = Ao(), i = k({
|
|
877
|
+
styles: {
|
|
878
|
+
popper: {
|
|
879
|
+
position: s(r).strategy,
|
|
880
|
+
left: "0",
|
|
881
|
+
top: "0"
|
|
882
|
+
},
|
|
883
|
+
arrow: {
|
|
884
|
+
position: "absolute"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
attributes: {}
|
|
888
|
+
}), l = () => {
|
|
889
|
+
a.value && (a.value.destroy(), a.value = void 0);
|
|
890
|
+
};
|
|
891
|
+
return H(r, (c) => {
|
|
892
|
+
const u = s(a);
|
|
893
|
+
u && u.setOptions(c);
|
|
894
|
+
}, {
|
|
895
|
+
deep: !0
|
|
896
|
+
}), H([e, t], ([c, u]) => {
|
|
897
|
+
l(), !(!c || !u) && (a.value = ha(c, u, s(r)));
|
|
898
|
+
}), be(() => {
|
|
899
|
+
l();
|
|
900
|
+
}), {
|
|
901
|
+
state: _(() => {
|
|
902
|
+
var c;
|
|
903
|
+
return { ...((c = s(a)) == null ? void 0 : c.state) || {} };
|
|
904
|
+
}),
|
|
905
|
+
styles: _(() => s(i).styles),
|
|
906
|
+
attributes: _(() => s(i).attributes),
|
|
907
|
+
update: () => {
|
|
908
|
+
var c;
|
|
909
|
+
return (c = s(a)) == null ? void 0 : c.update();
|
|
910
|
+
},
|
|
911
|
+
forceUpdate: () => {
|
|
912
|
+
var c;
|
|
913
|
+
return (c = s(a)) == null ? void 0 : c.forceUpdate();
|
|
914
|
+
},
|
|
915
|
+
instanceRef: _(() => s(a))
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
function ya(e) {
|
|
919
|
+
const t = Object.keys(e.elements), n = kt(t.map((r) => [r, e.styles[r] || {}])), o = kt(t.map((r) => [r, e.attributes[r]]));
|
|
920
|
+
return {
|
|
921
|
+
styles: n,
|
|
922
|
+
attributes: o
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
function _n() {
|
|
926
|
+
let e;
|
|
927
|
+
const t = (o, r) => {
|
|
928
|
+
n(), e = window.setTimeout(o, r);
|
|
929
|
+
}, n = () => window.clearTimeout(e);
|
|
930
|
+
return qn(() => n()), {
|
|
931
|
+
registerTimeout: t,
|
|
932
|
+
cancelTimeout: n
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
const At = {
|
|
936
|
+
prefix: Math.floor(Math.random() * 1e4),
|
|
937
|
+
current: 0
|
|
938
|
+
}, wa = Symbol("elIdInjection"), lo = () => vt() ? ie(wa, At) : At, Ea = (e) => {
|
|
939
|
+
const t = lo();
|
|
940
|
+
!se && t === At && pt("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
941
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
942
|
+
prefix: number,
|
|
943
|
+
current: number,
|
|
944
|
+
})`);
|
|
945
|
+
const n = Mt();
|
|
946
|
+
return _(() => s(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
|
|
947
|
+
};
|
|
948
|
+
let xe = [];
|
|
949
|
+
const kn = (e) => {
|
|
950
|
+
const t = e;
|
|
951
|
+
t.key === dt.esc && xe.forEach((n) => n(t));
|
|
952
|
+
}, Oa = (e) => {
|
|
953
|
+
he(() => {
|
|
954
|
+
xe.length === 0 && document.addEventListener("keydown", kn), se && xe.push(e);
|
|
955
|
+
}), be(() => {
|
|
956
|
+
xe = xe.filter((t) => t !== e), xe.length === 0 && se && document.removeEventListener("keydown", kn);
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
let Rn;
|
|
960
|
+
const uo = () => {
|
|
961
|
+
const e = Mt(), t = lo(), n = _(() => `${e.value}-popper-container-${t.prefix}`), o = _(() => `#${n.value}`);
|
|
962
|
+
return {
|
|
963
|
+
id: n,
|
|
964
|
+
selector: o
|
|
965
|
+
};
|
|
966
|
+
}, Ta = (e) => {
|
|
967
|
+
const t = document.createElement("div");
|
|
968
|
+
return t.id = e, document.body.appendChild(t), t;
|
|
969
|
+
}, Ia = () => {
|
|
970
|
+
const { id: e, selector: t } = uo();
|
|
971
|
+
return $o(() => {
|
|
972
|
+
se && (process.env.NODE_ENV === "test" || !Rn && !document.body.querySelector(t.value)) && (Rn = Ta(e.value));
|
|
973
|
+
}), {
|
|
974
|
+
id: e,
|
|
975
|
+
selector: t
|
|
976
|
+
};
|
|
977
|
+
}, Ca = X({
|
|
978
|
+
showAfter: {
|
|
979
|
+
type: Number,
|
|
980
|
+
default: 0
|
|
981
|
+
},
|
|
982
|
+
hideAfter: {
|
|
983
|
+
type: Number,
|
|
984
|
+
default: 200
|
|
985
|
+
},
|
|
986
|
+
autoClose: {
|
|
987
|
+
type: Number,
|
|
988
|
+
default: 0
|
|
989
|
+
}
|
|
990
|
+
}), Pa = ({
|
|
991
|
+
showAfter: e,
|
|
992
|
+
hideAfter: t,
|
|
993
|
+
autoClose: n,
|
|
994
|
+
open: o,
|
|
995
|
+
close: r
|
|
996
|
+
}) => {
|
|
997
|
+
const { registerTimeout: a } = _n(), {
|
|
998
|
+
registerTimeout: i,
|
|
999
|
+
cancelTimeout: l
|
|
1000
|
+
} = _n();
|
|
1001
|
+
return {
|
|
1002
|
+
onOpen: (p) => {
|
|
1003
|
+
a(() => {
|
|
1004
|
+
o(p);
|
|
1005
|
+
const m = s(n);
|
|
1006
|
+
We(m) && m > 0 && i(() => {
|
|
1007
|
+
r(p);
|
|
1008
|
+
}, m);
|
|
1009
|
+
}, s(e));
|
|
70
1010
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1011
|
+
onClose: (p) => {
|
|
1012
|
+
l(), a(() => {
|
|
1013
|
+
r(p);
|
|
1014
|
+
}, s(t));
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
}, co = Symbol("elForwardRef"), Sa = (e) => {
|
|
1018
|
+
Ee(co, {
|
|
1019
|
+
setForwardRef: (n) => {
|
|
1020
|
+
e.value = n;
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
}, _a = (e) => ({
|
|
1024
|
+
mounted(t) {
|
|
1025
|
+
e(t);
|
|
1026
|
+
},
|
|
1027
|
+
updated(t) {
|
|
1028
|
+
e(t);
|
|
1029
|
+
},
|
|
1030
|
+
unmounted() {
|
|
1031
|
+
e(null);
|
|
1032
|
+
}
|
|
1033
|
+
}), An = k(0), ka = 2e3, Ra = Symbol("zIndexContextKey"), Aa = (e) => {
|
|
1034
|
+
const t = vt() ? ie(Ra, void 0) : void 0, n = _(() => {
|
|
1035
|
+
const a = s(t);
|
|
1036
|
+
return We(a) ? a : ka;
|
|
1037
|
+
}), o = _(() => n.value + An.value);
|
|
1038
|
+
return {
|
|
1039
|
+
initialZIndex: n,
|
|
1040
|
+
currentZIndex: o,
|
|
1041
|
+
nextZIndex: () => (An.value++, o.value)
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
var ue = (e, t) => {
|
|
1045
|
+
const n = e.__vccOpts || e;
|
|
1046
|
+
for (const [o, r] of t)
|
|
1047
|
+
n[o] = r;
|
|
1048
|
+
return n;
|
|
1049
|
+
};
|
|
1050
|
+
const $n = Symbol("formItemContextKey"), qt = Symbol("popper"), po = Symbol("popperContent"), $a = [
|
|
1051
|
+
"dialog",
|
|
1052
|
+
"grid",
|
|
1053
|
+
"group",
|
|
1054
|
+
"listbox",
|
|
1055
|
+
"menu",
|
|
1056
|
+
"navigation",
|
|
1057
|
+
"tooltip",
|
|
1058
|
+
"tree"
|
|
1059
|
+
], fo = X({
|
|
1060
|
+
role: {
|
|
1061
|
+
type: String,
|
|
1062
|
+
values: $a,
|
|
1063
|
+
default: "tooltip"
|
|
1064
|
+
}
|
|
1065
|
+
}), xa = j({
|
|
1066
|
+
name: "ElPopper",
|
|
1067
|
+
inheritAttrs: !1
|
|
1068
|
+
}), Na = /* @__PURE__ */ j({
|
|
1069
|
+
...xa,
|
|
1070
|
+
props: fo,
|
|
1071
|
+
setup(e, { expose: t }) {
|
|
1072
|
+
const n = e, o = k(), r = k(), a = k(), i = k(), l = _(() => n.role), c = {
|
|
1073
|
+
triggerRef: o,
|
|
1074
|
+
popperInstanceRef: r,
|
|
1075
|
+
contentRef: a,
|
|
1076
|
+
referenceRef: i,
|
|
1077
|
+
role: l
|
|
1078
|
+
};
|
|
1079
|
+
return t(c), Ee(qt, c), (u, p) => oe(u.$slots, "default");
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
var Da = /* @__PURE__ */ ue(Na, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);
|
|
1083
|
+
const vo = X({
|
|
1084
|
+
arrowOffset: {
|
|
1085
|
+
type: Number,
|
|
1086
|
+
default: 5
|
|
1087
|
+
}
|
|
1088
|
+
}), Fa = j({
|
|
1089
|
+
name: "ElPopperArrow",
|
|
1090
|
+
inheritAttrs: !1
|
|
1091
|
+
}), Ma = /* @__PURE__ */ j({
|
|
1092
|
+
...Fa,
|
|
1093
|
+
props: vo,
|
|
1094
|
+
setup(e, { expose: t }) {
|
|
1095
|
+
const n = e, o = Be("popper"), { arrowOffset: r, arrowRef: a, arrowStyle: i } = ie(po, void 0);
|
|
1096
|
+
return H(() => n.arrowOffset, (l) => {
|
|
1097
|
+
r.value = l;
|
|
1098
|
+
}), be(() => {
|
|
1099
|
+
a.value = void 0;
|
|
1100
|
+
}), t({
|
|
1101
|
+
arrowRef: a
|
|
1102
|
+
}), (l, c) => (L(), W("span", {
|
|
1103
|
+
ref_key: "arrowRef",
|
|
1104
|
+
ref: a,
|
|
1105
|
+
class: G(s(o).e("arrow")),
|
|
1106
|
+
style: $e(s(i)),
|
|
1107
|
+
"data-popper-arrow": ""
|
|
1108
|
+
}, null, 6));
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
var La = /* @__PURE__ */ ue(Ma, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
|
|
1112
|
+
const It = "ElOnlyChild", Ba = j({
|
|
1113
|
+
name: It,
|
|
1114
|
+
setup(e, {
|
|
1115
|
+
slots: t,
|
|
1116
|
+
attrs: n
|
|
1117
|
+
}) {
|
|
1118
|
+
var o;
|
|
1119
|
+
const r = ie(co), a = _a((o = r == null ? void 0 : r.setForwardRef) != null ? o : _t);
|
|
1120
|
+
return () => {
|
|
1121
|
+
var i;
|
|
1122
|
+
const l = (i = t.default) == null ? void 0 : i.call(t, n);
|
|
1123
|
+
if (!l)
|
|
1124
|
+
return null;
|
|
1125
|
+
if (l.length > 1)
|
|
1126
|
+
return pt(It, "requires exact only one valid child."), null;
|
|
1127
|
+
const c = go(l);
|
|
1128
|
+
return c ? ct(xo(c, n), [[a]]) : (pt(It, "no valid child node found"), null);
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
function go(e) {
|
|
1133
|
+
if (!e)
|
|
1134
|
+
return null;
|
|
1135
|
+
const t = e;
|
|
1136
|
+
for (const n of t) {
|
|
1137
|
+
if ($t(n))
|
|
1138
|
+
switch (n.type) {
|
|
1139
|
+
case Do:
|
|
1140
|
+
continue;
|
|
1141
|
+
case No:
|
|
1142
|
+
case "svg":
|
|
1143
|
+
return xn(n);
|
|
1144
|
+
case Ve:
|
|
1145
|
+
return go(n.children);
|
|
1146
|
+
default:
|
|
1147
|
+
return n;
|
|
1148
|
+
}
|
|
1149
|
+
return xn(n);
|
|
1150
|
+
}
|
|
1151
|
+
return null;
|
|
1152
|
+
}
|
|
1153
|
+
function xn(e) {
|
|
1154
|
+
const t = Be("only-child");
|
|
1155
|
+
return ce("span", {
|
|
1156
|
+
class: t.e("content")
|
|
1157
|
+
}, [e]);
|
|
1158
|
+
}
|
|
1159
|
+
const mo = X({
|
|
1160
|
+
virtualRef: {
|
|
1161
|
+
type: $(Object)
|
|
1162
|
+
},
|
|
1163
|
+
virtualTriggering: Boolean,
|
|
1164
|
+
onMouseenter: {
|
|
1165
|
+
type: $(Function)
|
|
1166
|
+
},
|
|
1167
|
+
onMouseleave: {
|
|
1168
|
+
type: $(Function)
|
|
1169
|
+
},
|
|
1170
|
+
onClick: {
|
|
1171
|
+
type: $(Function)
|
|
1172
|
+
},
|
|
1173
|
+
onKeydown: {
|
|
1174
|
+
type: $(Function)
|
|
1175
|
+
},
|
|
1176
|
+
onFocus: {
|
|
1177
|
+
type: $(Function)
|
|
1178
|
+
},
|
|
1179
|
+
onBlur: {
|
|
1180
|
+
type: $(Function)
|
|
1181
|
+
},
|
|
1182
|
+
onContextmenu: {
|
|
1183
|
+
type: $(Function)
|
|
1184
|
+
},
|
|
1185
|
+
id: String,
|
|
1186
|
+
open: Boolean
|
|
1187
|
+
}), ja = j({
|
|
1188
|
+
name: "ElPopperTrigger",
|
|
1189
|
+
inheritAttrs: !1
|
|
1190
|
+
}), Ha = /* @__PURE__ */ j({
|
|
1191
|
+
...ja,
|
|
1192
|
+
props: mo,
|
|
1193
|
+
setup(e, { expose: t }) {
|
|
1194
|
+
const n = e, { role: o, triggerRef: r } = ie(qt, void 0);
|
|
1195
|
+
Sa(r);
|
|
1196
|
+
const a = _(() => l.value ? n.id : void 0), i = _(() => {
|
|
1197
|
+
if (o && o.value === "tooltip")
|
|
1198
|
+
return n.open && n.id ? n.id : void 0;
|
|
1199
|
+
}), l = _(() => {
|
|
1200
|
+
if (o && o.value !== "tooltip")
|
|
1201
|
+
return o.value;
|
|
1202
|
+
}), c = _(() => l.value ? `${n.open}` : void 0);
|
|
1203
|
+
let u;
|
|
1204
|
+
return he(() => {
|
|
1205
|
+
H(() => n.virtualRef, (p) => {
|
|
1206
|
+
p && (r.value = Se(p));
|
|
1207
|
+
}, {
|
|
1208
|
+
immediate: !0
|
|
1209
|
+
}), H(r, (p, m) => {
|
|
1210
|
+
u == null || u(), u = void 0, qe(p) && ([
|
|
1211
|
+
"onMouseenter",
|
|
1212
|
+
"onMouseleave",
|
|
1213
|
+
"onClick",
|
|
1214
|
+
"onKeydown",
|
|
1215
|
+
"onFocus",
|
|
1216
|
+
"onBlur",
|
|
1217
|
+
"onContextmenu"
|
|
1218
|
+
].forEach((h) => {
|
|
1219
|
+
var b;
|
|
1220
|
+
const v = n[h];
|
|
1221
|
+
v && (p.addEventListener(h.slice(2).toLowerCase(), v), (b = m == null ? void 0 : m.removeEventListener) == null || b.call(m, h.slice(2).toLowerCase(), v));
|
|
1222
|
+
}), u = H([a, i, l, c], (h) => {
|
|
1223
|
+
[
|
|
1224
|
+
"aria-controls",
|
|
1225
|
+
"aria-describedby",
|
|
1226
|
+
"aria-haspopup",
|
|
1227
|
+
"aria-expanded"
|
|
1228
|
+
].forEach((b, v) => {
|
|
1229
|
+
xt(h[v]) ? p.removeAttribute(b) : p.setAttribute(b, h[v]);
|
|
1230
|
+
});
|
|
1231
|
+
}, { immediate: !0 })), qe(m) && [
|
|
1232
|
+
"aria-controls",
|
|
1233
|
+
"aria-describedby",
|
|
1234
|
+
"aria-haspopup",
|
|
1235
|
+
"aria-expanded"
|
|
1236
|
+
].forEach((h) => m.removeAttribute(h));
|
|
1237
|
+
}, {
|
|
1238
|
+
immediate: !0
|
|
1239
|
+
});
|
|
1240
|
+
}), be(() => {
|
|
1241
|
+
u == null || u(), u = void 0;
|
|
1242
|
+
}), t({
|
|
1243
|
+
triggerRef: r
|
|
1244
|
+
}), (p, m) => p.virtualTriggering ? ge("v-if", !0) : (L(), Oe(s(Ba), gt({ key: 0 }, p.$attrs, {
|
|
1245
|
+
"aria-controls": s(a),
|
|
1246
|
+
"aria-describedby": s(i),
|
|
1247
|
+
"aria-expanded": s(c),
|
|
1248
|
+
"aria-haspopup": s(l)
|
|
1249
|
+
}), {
|
|
1250
|
+
default: te(() => [
|
|
1251
|
+
oe(p.$slots, "default")
|
|
1252
|
+
]),
|
|
1253
|
+
_: 3
|
|
1254
|
+
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
var Va = /* @__PURE__ */ ue(Ha, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);
|
|
1258
|
+
const Ct = "focus-trap.focus-after-trapped", Pt = "focus-trap.focus-after-released", Ka = "focus-trap.focusout-prevented", Nn = {
|
|
1259
|
+
cancelable: !0,
|
|
1260
|
+
bubbles: !1
|
|
1261
|
+
}, Ua = {
|
|
1262
|
+
cancelable: !0,
|
|
1263
|
+
bubbles: !1
|
|
1264
|
+
}, Dn = "focusAfterTrapped", Fn = "focusAfterReleased", za = Symbol("elFocusTrap"), Yt = k(), bt = k(0), Zt = k(0);
|
|
1265
|
+
let at = 0;
|
|
1266
|
+
const ho = (e) => {
|
|
1267
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1268
|
+
acceptNode: (o) => {
|
|
1269
|
+
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
1270
|
+
return o.disabled || o.hidden || r ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 || o === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
for (; n.nextNode(); )
|
|
1274
|
+
t.push(n.currentNode);
|
|
1275
|
+
return t;
|
|
1276
|
+
}, Mn = (e, t) => {
|
|
1277
|
+
for (const n of e)
|
|
1278
|
+
if (!Wa(n, t))
|
|
1279
|
+
return n;
|
|
1280
|
+
}, Wa = (e, t) => {
|
|
1281
|
+
if (process.env.NODE_ENV === "test")
|
|
1282
|
+
return !1;
|
|
1283
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
1284
|
+
return !0;
|
|
1285
|
+
for (; e; ) {
|
|
1286
|
+
if (t && e === t)
|
|
1287
|
+
return !1;
|
|
1288
|
+
if (getComputedStyle(e).display === "none")
|
|
1289
|
+
return !0;
|
|
1290
|
+
e = e.parentElement;
|
|
1291
|
+
}
|
|
1292
|
+
return !1;
|
|
1293
|
+
}, qa = (e) => {
|
|
1294
|
+
const t = ho(e), n = Mn(t, e), o = Mn(t.reverse(), e);
|
|
1295
|
+
return [n, o];
|
|
1296
|
+
}, Ya = (e) => e instanceof HTMLInputElement && "select" in e, ye = (e, t) => {
|
|
1297
|
+
if (e && e.focus) {
|
|
1298
|
+
const n = document.activeElement;
|
|
1299
|
+
e.focus({ preventScroll: !0 }), Zt.value = window.performance.now(), e !== n && Ya(e) && t && e.select();
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
function Ln(e, t) {
|
|
1303
|
+
const n = [...e], o = e.indexOf(t);
|
|
1304
|
+
return o !== -1 && n.splice(o, 1), n;
|
|
1305
|
+
}
|
|
1306
|
+
const Za = () => {
|
|
1307
|
+
let e = [];
|
|
1308
|
+
return {
|
|
1309
|
+
push: (o) => {
|
|
1310
|
+
const r = e[0];
|
|
1311
|
+
r && o !== r && r.pause(), e = Ln(e, o), e.unshift(o);
|
|
1312
|
+
},
|
|
1313
|
+
remove: (o) => {
|
|
1314
|
+
var r, a;
|
|
1315
|
+
e = Ln(e, o), (a = (r = e[0]) == null ? void 0 : r.resume) == null || a.call(r);
|
|
1316
|
+
}
|
|
1317
|
+
};
|
|
1318
|
+
}, Ja = (e, t = !1) => {
|
|
1319
|
+
const n = document.activeElement;
|
|
1320
|
+
for (const o of e)
|
|
1321
|
+
if (ye(o, t), document.activeElement !== n)
|
|
1322
|
+
return;
|
|
1323
|
+
}, Bn = Za(), Qa = () => bt.value > Zt.value, st = () => {
|
|
1324
|
+
Yt.value = "pointer", bt.value = window.performance.now();
|
|
1325
|
+
}, jn = () => {
|
|
1326
|
+
Yt.value = "keyboard", bt.value = window.performance.now();
|
|
1327
|
+
}, Ga = () => (he(() => {
|
|
1328
|
+
at === 0 && (document.addEventListener("mousedown", st), document.addEventListener("touchstart", st), document.addEventListener("keydown", jn)), at++;
|
|
1329
|
+
}), be(() => {
|
|
1330
|
+
at--, at <= 0 && (document.removeEventListener("mousedown", st), document.removeEventListener("touchstart", st), document.removeEventListener("keydown", jn));
|
|
1331
|
+
}), {
|
|
1332
|
+
focusReason: Yt,
|
|
1333
|
+
lastUserFocusTimestamp: bt,
|
|
1334
|
+
lastAutomatedFocusTimestamp: Zt
|
|
1335
|
+
}), it = (e) => new CustomEvent(Ka, {
|
|
1336
|
+
...Ua,
|
|
1337
|
+
detail: e
|
|
1338
|
+
}), Xa = j({
|
|
1339
|
+
name: "ElFocusTrap",
|
|
1340
|
+
inheritAttrs: !1,
|
|
1341
|
+
props: {
|
|
1342
|
+
loop: Boolean,
|
|
1343
|
+
trapped: Boolean,
|
|
1344
|
+
focusTrapEl: Object,
|
|
1345
|
+
focusStartEl: {
|
|
1346
|
+
type: [Object, String],
|
|
1347
|
+
default: "first"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
emits: [
|
|
1351
|
+
Dn,
|
|
1352
|
+
Fn,
|
|
1353
|
+
"focusin",
|
|
1354
|
+
"focusout",
|
|
1355
|
+
"focusout-prevented",
|
|
1356
|
+
"release-requested"
|
|
1357
|
+
],
|
|
1358
|
+
setup(e, { emit: t }) {
|
|
1359
|
+
const n = k();
|
|
1360
|
+
let o, r;
|
|
1361
|
+
const { focusReason: a } = Ga();
|
|
1362
|
+
Oa((v) => {
|
|
1363
|
+
e.trapped && !i.paused && t("release-requested", v);
|
|
1364
|
+
});
|
|
1365
|
+
const i = {
|
|
1366
|
+
paused: !1,
|
|
1367
|
+
pause() {
|
|
1368
|
+
this.paused = !0;
|
|
1369
|
+
},
|
|
1370
|
+
resume() {
|
|
1371
|
+
this.paused = !1;
|
|
1372
|
+
}
|
|
1373
|
+
}, l = (v) => {
|
|
1374
|
+
if (!e.loop && !e.trapped || i.paused)
|
|
1375
|
+
return;
|
|
1376
|
+
const { key: d, altKey: g, ctrlKey: f, metaKey: O, currentTarget: E, shiftKey: y } = v, { loop: I } = e, T = d === dt.tab && !g && !f && !O, w = document.activeElement;
|
|
1377
|
+
if (T && w) {
|
|
1378
|
+
const P = E, [R, A] = qa(P);
|
|
1379
|
+
if (R && A) {
|
|
1380
|
+
if (!y && w === A) {
|
|
1381
|
+
const x = it({
|
|
1382
|
+
focusReason: a.value
|
|
1383
|
+
});
|
|
1384
|
+
t("focusout-prevented", x), x.defaultPrevented || (v.preventDefault(), I && ye(R, !0));
|
|
1385
|
+
} else if (y && [R, P].includes(w)) {
|
|
1386
|
+
const x = it({
|
|
1387
|
+
focusReason: a.value
|
|
1388
|
+
});
|
|
1389
|
+
t("focusout-prevented", x), x.defaultPrevented || (v.preventDefault(), I && ye(A, !0));
|
|
1390
|
+
}
|
|
1391
|
+
} else if (w === P) {
|
|
1392
|
+
const x = it({
|
|
1393
|
+
focusReason: a.value
|
|
1394
|
+
});
|
|
1395
|
+
t("focusout-prevented", x), x.defaultPrevented || v.preventDefault();
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
Ee(za, {
|
|
1400
|
+
focusTrapRef: n,
|
|
1401
|
+
onKeydown: l
|
|
1402
|
+
}), H(() => e.focusTrapEl, (v) => {
|
|
1403
|
+
v && (n.value = v);
|
|
1404
|
+
}, { immediate: !0 }), H([n], ([v], [d]) => {
|
|
1405
|
+
v && (v.addEventListener("keydown", l), v.addEventListener("focusin", p), v.addEventListener("focusout", m)), d && (d.removeEventListener("keydown", l), d.removeEventListener("focusin", p), d.removeEventListener("focusout", m));
|
|
1406
|
+
});
|
|
1407
|
+
const c = (v) => {
|
|
1408
|
+
t(Dn, v);
|
|
1409
|
+
}, u = (v) => t(Fn, v), p = (v) => {
|
|
1410
|
+
const d = s(n);
|
|
1411
|
+
if (!d)
|
|
1412
|
+
return;
|
|
1413
|
+
const g = v.target, f = v.relatedTarget, O = g && d.contains(g);
|
|
1414
|
+
e.trapped || f && d.contains(f) || (o = f), O && t("focusin", v), !i.paused && e.trapped && (O ? r = g : ye(r, !0));
|
|
1415
|
+
}, m = (v) => {
|
|
1416
|
+
const d = s(n);
|
|
1417
|
+
if (!(i.paused || !d))
|
|
1418
|
+
if (e.trapped) {
|
|
1419
|
+
const g = v.relatedTarget;
|
|
1420
|
+
!xt(g) && !d.contains(g) && setTimeout(() => {
|
|
1421
|
+
if (!i.paused && e.trapped) {
|
|
1422
|
+
const f = it({
|
|
1423
|
+
focusReason: a.value
|
|
1424
|
+
});
|
|
1425
|
+
t("focusout-prevented", f), f.defaultPrevented || ye(r, !0);
|
|
1426
|
+
}
|
|
1427
|
+
}, 0);
|
|
1428
|
+
} else {
|
|
1429
|
+
const g = v.target;
|
|
1430
|
+
g && d.contains(g) || t("focusout", v);
|
|
1431
|
+
}
|
|
1432
|
+
};
|
|
1433
|
+
async function h() {
|
|
1434
|
+
await ln();
|
|
1435
|
+
const v = s(n);
|
|
1436
|
+
if (v) {
|
|
1437
|
+
Bn.push(i);
|
|
1438
|
+
const d = v.contains(document.activeElement) ? o : document.activeElement;
|
|
1439
|
+
if (o = d, !v.contains(d)) {
|
|
1440
|
+
const f = new Event(Ct, Nn);
|
|
1441
|
+
v.addEventListener(Ct, c), v.dispatchEvent(f), f.defaultPrevented || ln(() => {
|
|
1442
|
+
let O = e.focusStartEl;
|
|
1443
|
+
mt(O) || (ye(O), document.activeElement !== O && (O = "first")), O === "first" && Ja(ho(v), !0), (document.activeElement === d || O === "container") && ye(v);
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
function b() {
|
|
1449
|
+
const v = s(n);
|
|
1450
|
+
if (v) {
|
|
1451
|
+
v.removeEventListener(Ct, c);
|
|
1452
|
+
const d = new CustomEvent(Pt, {
|
|
1453
|
+
...Nn,
|
|
1454
|
+
detail: {
|
|
1455
|
+
focusReason: a.value
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
v.addEventListener(Pt, u), v.dispatchEvent(d), !d.defaultPrevented && (a.value == "keyboard" || !Qa() || v.contains(document.activeElement)) && ye(o ?? document.body), v.removeEventListener(Pt, u), Bn.remove(i);
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
return he(() => {
|
|
1462
|
+
e.trapped && h(), H(() => e.trapped, (v) => {
|
|
1463
|
+
v ? h() : b();
|
|
1464
|
+
});
|
|
1465
|
+
}), be(() => {
|
|
1466
|
+
e.trapped && b();
|
|
1467
|
+
}), {
|
|
1468
|
+
onKeydown: l
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1472
|
+
function es(e, t, n, o, r, a) {
|
|
1473
|
+
return oe(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
1474
|
+
}
|
|
1475
|
+
var ts = /* @__PURE__ */ ue(Xa, [["render", es], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
|
|
1476
|
+
const ns = ["fixed", "absolute"], os = X({
|
|
1477
|
+
boundariesPadding: {
|
|
1478
|
+
type: Number,
|
|
1479
|
+
default: 0
|
|
1480
|
+
},
|
|
1481
|
+
fallbackPlacements: {
|
|
1482
|
+
type: $(Array),
|
|
1483
|
+
default: void 0
|
|
1484
|
+
},
|
|
1485
|
+
gpuAcceleration: {
|
|
1486
|
+
type: Boolean,
|
|
1487
|
+
default: !0
|
|
1488
|
+
},
|
|
1489
|
+
offset: {
|
|
1490
|
+
type: Number,
|
|
1491
|
+
default: 12
|
|
1492
|
+
},
|
|
1493
|
+
placement: {
|
|
1494
|
+
type: String,
|
|
1495
|
+
values: Bt,
|
|
1496
|
+
default: "bottom"
|
|
1497
|
+
},
|
|
1498
|
+
popperOptions: {
|
|
1499
|
+
type: $(Object),
|
|
1500
|
+
default: () => ({})
|
|
1501
|
+
},
|
|
1502
|
+
strategy: {
|
|
1503
|
+
type: String,
|
|
1504
|
+
values: ns,
|
|
1505
|
+
default: "absolute"
|
|
1506
|
+
}
|
|
1507
|
+
}), bo = X({
|
|
1508
|
+
...os,
|
|
1509
|
+
id: String,
|
|
1510
|
+
style: {
|
|
1511
|
+
type: $([String, Array, Object])
|
|
1512
|
+
},
|
|
1513
|
+
className: {
|
|
1514
|
+
type: $([String, Array, Object])
|
|
1515
|
+
},
|
|
1516
|
+
effect: {
|
|
1517
|
+
type: String,
|
|
1518
|
+
default: "dark"
|
|
1519
|
+
},
|
|
1520
|
+
visible: Boolean,
|
|
1521
|
+
enterable: {
|
|
1522
|
+
type: Boolean,
|
|
1523
|
+
default: !0
|
|
1524
|
+
},
|
|
1525
|
+
pure: Boolean,
|
|
1526
|
+
focusOnShow: {
|
|
1527
|
+
type: Boolean,
|
|
1528
|
+
default: !1
|
|
1529
|
+
},
|
|
1530
|
+
trapping: {
|
|
1531
|
+
type: Boolean,
|
|
1532
|
+
default: !1
|
|
1533
|
+
},
|
|
1534
|
+
popperClass: {
|
|
1535
|
+
type: $([String, Array, Object])
|
|
1536
|
+
},
|
|
1537
|
+
popperStyle: {
|
|
1538
|
+
type: $([String, Array, Object])
|
|
1539
|
+
},
|
|
1540
|
+
referenceEl: {
|
|
1541
|
+
type: $(Object)
|
|
1542
|
+
},
|
|
1543
|
+
triggerTargetEl: {
|
|
1544
|
+
type: $(Object)
|
|
1545
|
+
},
|
|
1546
|
+
stopPopperMouseEvent: {
|
|
1547
|
+
type: Boolean,
|
|
1548
|
+
default: !0
|
|
1549
|
+
},
|
|
1550
|
+
ariaLabel: {
|
|
1551
|
+
type: String,
|
|
1552
|
+
default: void 0
|
|
1553
|
+
},
|
|
1554
|
+
virtualTriggering: Boolean,
|
|
1555
|
+
zIndex: Number
|
|
1556
|
+
}), rs = {
|
|
1557
|
+
mouseenter: (e) => e instanceof MouseEvent,
|
|
1558
|
+
mouseleave: (e) => e instanceof MouseEvent,
|
|
1559
|
+
focus: () => !0,
|
|
1560
|
+
blur: () => !0,
|
|
1561
|
+
close: () => !0
|
|
1562
|
+
}, as = (e, t = []) => {
|
|
1563
|
+
const { placement: n, strategy: o, popperOptions: r } = e, a = {
|
|
1564
|
+
placement: n,
|
|
1565
|
+
strategy: o,
|
|
1566
|
+
...r,
|
|
1567
|
+
modifiers: [...is(e), ...t]
|
|
1568
|
+
};
|
|
1569
|
+
return ls(a, r == null ? void 0 : r.modifiers), a;
|
|
1570
|
+
}, ss = (e) => {
|
|
1571
|
+
if (se)
|
|
1572
|
+
return Se(e);
|
|
1573
|
+
};
|
|
1574
|
+
function is(e) {
|
|
1575
|
+
const { offset: t, gpuAcceleration: n, fallbackPlacements: o } = e;
|
|
1576
|
+
return [
|
|
1577
|
+
{
|
|
1578
|
+
name: "offset",
|
|
1579
|
+
options: {
|
|
1580
|
+
offset: [0, t ?? 12]
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
name: "preventOverflow",
|
|
1585
|
+
options: {
|
|
1586
|
+
padding: {
|
|
1587
|
+
top: 2,
|
|
1588
|
+
bottom: 2,
|
|
1589
|
+
left: 5,
|
|
1590
|
+
right: 5
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
name: "flip",
|
|
1596
|
+
options: {
|
|
1597
|
+
padding: 5,
|
|
1598
|
+
fallbackPlacements: o
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
name: "computeStyles",
|
|
1603
|
+
options: {
|
|
1604
|
+
gpuAcceleration: n
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
];
|
|
1608
|
+
}
|
|
1609
|
+
function ls(e, t) {
|
|
1610
|
+
t && (e.modifiers = [...e.modifiers, ...t ?? []]);
|
|
1611
|
+
}
|
|
1612
|
+
const us = 0, cs = (e) => {
|
|
1613
|
+
const { popperInstanceRef: t, contentRef: n, triggerRef: o, role: r } = ie(qt, void 0), a = k(), i = k(), l = _(() => ({
|
|
1614
|
+
name: "eventListeners",
|
|
1615
|
+
enabled: !!e.visible
|
|
1616
|
+
})), c = _(() => {
|
|
1617
|
+
var f;
|
|
1618
|
+
const O = s(a), E = (f = s(i)) != null ? f : us;
|
|
1619
|
+
return {
|
|
1620
|
+
name: "arrow",
|
|
1621
|
+
enabled: !rr(O),
|
|
1622
|
+
options: {
|
|
1623
|
+
element: O,
|
|
1624
|
+
padding: E
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1627
|
+
}), u = _(() => ({
|
|
1628
|
+
onFirstUpdate: () => {
|
|
1629
|
+
v();
|
|
1630
|
+
},
|
|
1631
|
+
...as(e, [
|
|
1632
|
+
s(c),
|
|
1633
|
+
s(l)
|
|
1634
|
+
])
|
|
1635
|
+
})), p = _(() => ss(e.referenceEl) || s(o)), { attributes: m, state: h, styles: b, update: v, forceUpdate: d, instanceRef: g } = ba(p, n, u);
|
|
1636
|
+
return H(g, (f) => t.value = f), he(() => {
|
|
1637
|
+
H(() => {
|
|
1638
|
+
var f;
|
|
1639
|
+
return (f = s(p)) == null ? void 0 : f.getBoundingClientRect();
|
|
1640
|
+
}, () => {
|
|
1641
|
+
v();
|
|
1642
|
+
});
|
|
1643
|
+
}), {
|
|
1644
|
+
attributes: m,
|
|
1645
|
+
arrowRef: a,
|
|
1646
|
+
contentRef: n,
|
|
1647
|
+
instanceRef: g,
|
|
1648
|
+
state: h,
|
|
1649
|
+
styles: b,
|
|
1650
|
+
role: r,
|
|
1651
|
+
forceUpdate: d,
|
|
1652
|
+
update: v
|
|
1653
|
+
};
|
|
1654
|
+
}, ps = (e, {
|
|
1655
|
+
attributes: t,
|
|
1656
|
+
styles: n,
|
|
1657
|
+
role: o
|
|
1658
|
+
}) => {
|
|
1659
|
+
const { nextZIndex: r } = Aa(), a = Be("popper"), i = _(() => s(t).popper), l = k(We(e.zIndex) ? e.zIndex : r()), c = _(() => [
|
|
1660
|
+
a.b(),
|
|
1661
|
+
a.is("pure", e.pure),
|
|
1662
|
+
a.is(e.effect),
|
|
1663
|
+
e.popperClass
|
|
1664
|
+
]), u = _(() => [
|
|
1665
|
+
{ zIndex: s(l) },
|
|
1666
|
+
s(n).popper,
|
|
1667
|
+
e.popperStyle || {}
|
|
1668
|
+
]), p = _(() => o.value === "dialog" ? "false" : void 0), m = _(() => s(n).arrow || {});
|
|
1669
|
+
return {
|
|
1670
|
+
ariaModal: p,
|
|
1671
|
+
arrowStyle: m,
|
|
1672
|
+
contentAttrs: i,
|
|
1673
|
+
contentClass: c,
|
|
1674
|
+
contentStyle: u,
|
|
1675
|
+
contentZIndex: l,
|
|
1676
|
+
updateZIndex: () => {
|
|
1677
|
+
l.value = We(e.zIndex) ? e.zIndex : r();
|
|
1678
|
+
}
|
|
1679
|
+
};
|
|
1680
|
+
}, ds = (e, t) => {
|
|
1681
|
+
const n = k(!1), o = k();
|
|
1682
|
+
return {
|
|
1683
|
+
focusStartRef: o,
|
|
1684
|
+
trapped: n,
|
|
1685
|
+
onFocusAfterReleased: (u) => {
|
|
1686
|
+
var p;
|
|
1687
|
+
((p = u.detail) == null ? void 0 : p.focusReason) !== "pointer" && (o.value = "first", t("blur"));
|
|
1688
|
+
},
|
|
1689
|
+
onFocusAfterTrapped: () => {
|
|
1690
|
+
t("focus");
|
|
1691
|
+
},
|
|
1692
|
+
onFocusInTrap: (u) => {
|
|
1693
|
+
e.visible && !n.value && (u.target && (o.value = u.target), n.value = !0);
|
|
1694
|
+
},
|
|
1695
|
+
onFocusoutPrevented: (u) => {
|
|
1696
|
+
e.trapping || (u.detail.focusReason === "pointer" && u.preventDefault(), n.value = !1);
|
|
1697
|
+
},
|
|
1698
|
+
onReleaseRequested: () => {
|
|
1699
|
+
n.value = !1, t("close");
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
}, fs = j({
|
|
1703
|
+
name: "ElPopperContent"
|
|
1704
|
+
}), vs = /* @__PURE__ */ j({
|
|
1705
|
+
...fs,
|
|
1706
|
+
props: bo,
|
|
1707
|
+
emits: rs,
|
|
1708
|
+
setup(e, { expose: t, emit: n }) {
|
|
1709
|
+
const o = e, {
|
|
1710
|
+
focusStartRef: r,
|
|
1711
|
+
trapped: a,
|
|
1712
|
+
onFocusAfterReleased: i,
|
|
1713
|
+
onFocusAfterTrapped: l,
|
|
1714
|
+
onFocusInTrap: c,
|
|
1715
|
+
onFocusoutPrevented: u,
|
|
1716
|
+
onReleaseRequested: p
|
|
1717
|
+
} = ds(o, n), { attributes: m, arrowRef: h, contentRef: b, styles: v, instanceRef: d, role: g, update: f } = cs(o), {
|
|
1718
|
+
ariaModal: O,
|
|
1719
|
+
arrowStyle: E,
|
|
1720
|
+
contentAttrs: y,
|
|
1721
|
+
contentClass: I,
|
|
1722
|
+
contentStyle: T,
|
|
1723
|
+
updateZIndex: w
|
|
1724
|
+
} = ps(o, {
|
|
1725
|
+
styles: v,
|
|
1726
|
+
attributes: m,
|
|
1727
|
+
role: g
|
|
1728
|
+
}), P = ie($n, void 0), R = k();
|
|
1729
|
+
Ee(po, {
|
|
1730
|
+
arrowStyle: E,
|
|
1731
|
+
arrowRef: h,
|
|
1732
|
+
arrowOffset: R
|
|
1733
|
+
}), P && (P.addInputId || P.removeInputId) && Ee($n, {
|
|
1734
|
+
...P,
|
|
1735
|
+
addInputId: _t,
|
|
1736
|
+
removeInputId: _t
|
|
1737
|
+
});
|
|
1738
|
+
let A;
|
|
1739
|
+
const D = (F = !0) => {
|
|
1740
|
+
f(), F && w();
|
|
1741
|
+
}, x = () => {
|
|
1742
|
+
D(!1), o.visible && o.focusOnShow ? a.value = !0 : o.visible === !1 && (a.value = !1);
|
|
1743
|
+
};
|
|
1744
|
+
return he(() => {
|
|
1745
|
+
H(() => o.triggerTargetEl, (F, U) => {
|
|
1746
|
+
A == null || A(), A = void 0;
|
|
1747
|
+
const K = s(F || b.value), M = s(U || b.value);
|
|
1748
|
+
qe(K) && (A = H([g, () => o.ariaLabel, O, () => o.id], (C) => {
|
|
1749
|
+
["role", "aria-label", "aria-modal", "id"].forEach((z, Q) => {
|
|
1750
|
+
xt(C[Q]) ? K.removeAttribute(z) : K.setAttribute(z, C[Q]);
|
|
1751
|
+
});
|
|
1752
|
+
}, { immediate: !0 })), M !== K && qe(M) && ["role", "aria-label", "aria-modal", "id"].forEach((C) => {
|
|
1753
|
+
M.removeAttribute(C);
|
|
1754
|
+
});
|
|
1755
|
+
}, { immediate: !0 }), H(() => o.visible, x, { immediate: !0 });
|
|
1756
|
+
}), be(() => {
|
|
1757
|
+
A == null || A(), A = void 0;
|
|
1758
|
+
}), t({
|
|
1759
|
+
popperContentRef: b,
|
|
1760
|
+
popperInstanceRef: d,
|
|
1761
|
+
updatePopper: D,
|
|
1762
|
+
contentStyle: T
|
|
1763
|
+
}), (F, U) => (L(), W("div", gt({
|
|
1764
|
+
ref_key: "contentRef",
|
|
1765
|
+
ref: b
|
|
1766
|
+
}, s(y), {
|
|
1767
|
+
style: s(T),
|
|
1768
|
+
class: s(I),
|
|
1769
|
+
tabindex: "-1",
|
|
1770
|
+
onMouseenter: U[0] || (U[0] = (K) => F.$emit("mouseenter", K)),
|
|
1771
|
+
onMouseleave: U[1] || (U[1] = (K) => F.$emit("mouseleave", K))
|
|
1772
|
+
}), [
|
|
1773
|
+
ce(s(ts), {
|
|
1774
|
+
trapped: s(a),
|
|
1775
|
+
"trap-on-focus-in": !0,
|
|
1776
|
+
"focus-trap-el": s(b),
|
|
1777
|
+
"focus-start-el": s(r),
|
|
1778
|
+
onFocusAfterTrapped: s(l),
|
|
1779
|
+
onFocusAfterReleased: s(i),
|
|
1780
|
+
onFocusin: s(c),
|
|
1781
|
+
onFocusoutPrevented: s(u),
|
|
1782
|
+
onReleaseRequested: s(p)
|
|
1783
|
+
}, {
|
|
1784
|
+
default: te(() => [
|
|
1785
|
+
oe(F.$slots, "default")
|
|
1786
|
+
]),
|
|
1787
|
+
_: 3
|
|
1788
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
|
|
1789
|
+
], 16));
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
1792
|
+
var gs = /* @__PURE__ */ ue(vs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);
|
|
1793
|
+
const ms = Ft(Da), Jt = Symbol("elTooltip"), ee = X({
|
|
1794
|
+
...Ca,
|
|
1795
|
+
...bo,
|
|
1796
|
+
appendTo: {
|
|
1797
|
+
type: $([String, Object])
|
|
1798
|
+
},
|
|
1799
|
+
content: {
|
|
1800
|
+
type: String,
|
|
1801
|
+
default: ""
|
|
1802
|
+
},
|
|
1803
|
+
rawContent: {
|
|
1804
|
+
type: Boolean,
|
|
1805
|
+
default: !1
|
|
1806
|
+
},
|
|
1807
|
+
persistent: Boolean,
|
|
1808
|
+
ariaLabel: String,
|
|
1809
|
+
visible: {
|
|
1810
|
+
type: $(Boolean),
|
|
1811
|
+
default: null
|
|
1812
|
+
},
|
|
1813
|
+
transition: String,
|
|
1814
|
+
teleported: {
|
|
1815
|
+
type: Boolean,
|
|
1816
|
+
default: !0
|
|
1817
|
+
},
|
|
1818
|
+
disabled: Boolean
|
|
1819
|
+
}), Je = X({
|
|
1820
|
+
...mo,
|
|
1821
|
+
disabled: Boolean,
|
|
1822
|
+
trigger: {
|
|
1823
|
+
type: $([String, Array]),
|
|
1824
|
+
default: "hover"
|
|
1825
|
+
},
|
|
1826
|
+
triggerKeys: {
|
|
1827
|
+
type: $(Array),
|
|
1828
|
+
default: () => [dt.enter, dt.space]
|
|
1829
|
+
}
|
|
1830
|
+
}), {
|
|
1831
|
+
useModelToggleProps: hs,
|
|
1832
|
+
useModelToggleEmits: bs,
|
|
1833
|
+
useModelToggle: ys
|
|
1834
|
+
} = Jn("visible"), ws = X({
|
|
1835
|
+
...fo,
|
|
1836
|
+
...hs,
|
|
1837
|
+
...ee,
|
|
1838
|
+
...Je,
|
|
1839
|
+
...vo,
|
|
1840
|
+
showArrow: {
|
|
1841
|
+
type: Boolean,
|
|
1842
|
+
default: !0
|
|
1843
|
+
}
|
|
1844
|
+
}), Es = [
|
|
1845
|
+
...bs,
|
|
1846
|
+
"before-show",
|
|
1847
|
+
"before-hide",
|
|
1848
|
+
"show",
|
|
1849
|
+
"hide",
|
|
1850
|
+
"open",
|
|
1851
|
+
"close"
|
|
1852
|
+
], Os = (e, t) => or(e) ? e.includes(t) : e === t, Ae = (e, t, n) => (o) => {
|
|
1853
|
+
Os(s(e), t) && n(o);
|
|
1854
|
+
}, Ts = j({
|
|
1855
|
+
name: "ElTooltipTrigger"
|
|
1856
|
+
}), Is = /* @__PURE__ */ j({
|
|
1857
|
+
...Ts,
|
|
1858
|
+
props: Je,
|
|
1859
|
+
setup(e, { expose: t }) {
|
|
1860
|
+
const n = e, o = Be("tooltip"), { controlled: r, id: a, open: i, onOpen: l, onClose: c, onToggle: u } = ie(Jt, void 0), p = k(null), m = () => {
|
|
1861
|
+
if (s(r) || n.disabled)
|
|
1862
|
+
return !0;
|
|
1863
|
+
}, h = Ke(n, "trigger"), b = ve(m, Ae(h, "hover", l)), v = ve(m, Ae(h, "hover", c)), d = ve(m, Ae(h, "click", (y) => {
|
|
1864
|
+
y.button === 0 && u(y);
|
|
1865
|
+
})), g = ve(m, Ae(h, "focus", l)), f = ve(m, Ae(h, "focus", c)), O = ve(m, Ae(h, "contextmenu", (y) => {
|
|
1866
|
+
y.preventDefault(), u(y);
|
|
1867
|
+
})), E = ve(m, (y) => {
|
|
1868
|
+
const { code: I } = y;
|
|
1869
|
+
n.triggerKeys.includes(I) && (y.preventDefault(), u(y));
|
|
1870
|
+
});
|
|
1871
|
+
return t({
|
|
1872
|
+
triggerRef: p
|
|
1873
|
+
}), (y, I) => (L(), Oe(s(Va), {
|
|
1874
|
+
id: s(a),
|
|
1875
|
+
"virtual-ref": y.virtualRef,
|
|
1876
|
+
open: s(i),
|
|
1877
|
+
"virtual-triggering": y.virtualTriggering,
|
|
1878
|
+
class: G(s(o).e("trigger")),
|
|
1879
|
+
onBlur: s(f),
|
|
1880
|
+
onClick: s(d),
|
|
1881
|
+
onContextmenu: s(O),
|
|
1882
|
+
onFocus: s(g),
|
|
1883
|
+
onMouseenter: s(b),
|
|
1884
|
+
onMouseleave: s(v),
|
|
1885
|
+
onKeydown: s(E)
|
|
1886
|
+
}, {
|
|
1887
|
+
default: te(() => [
|
|
1888
|
+
oe(y.$slots, "default")
|
|
1889
|
+
]),
|
|
1890
|
+
_: 3
|
|
1891
|
+
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1894
|
+
var Cs = /* @__PURE__ */ ue(Is, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);
|
|
1895
|
+
const Ps = j({
|
|
1896
|
+
name: "ElTooltipContent",
|
|
1897
|
+
inheritAttrs: !1
|
|
1898
|
+
}), Ss = /* @__PURE__ */ j({
|
|
1899
|
+
...Ps,
|
|
1900
|
+
props: ee,
|
|
1901
|
+
setup(e, { expose: t }) {
|
|
1902
|
+
const n = e, { selector: o } = uo(), r = Be("tooltip"), a = k(null), i = k(!1), {
|
|
1903
|
+
controlled: l,
|
|
1904
|
+
id: c,
|
|
1905
|
+
open: u,
|
|
1906
|
+
trigger: p,
|
|
1907
|
+
onClose: m,
|
|
1908
|
+
onOpen: h,
|
|
1909
|
+
onShow: b,
|
|
1910
|
+
onHide: v,
|
|
1911
|
+
onBeforeShow: d,
|
|
1912
|
+
onBeforeHide: g
|
|
1913
|
+
} = ie(Jt, void 0), f = _(() => n.transition || `${r.namespace.value}-fade-in-linear`), O = _(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
|
|
1914
|
+
be(() => {
|
|
1915
|
+
i.value = !0;
|
|
1916
|
+
});
|
|
1917
|
+
const E = _(() => s(O) ? !0 : s(u)), y = _(() => n.disabled ? !1 : s(u)), I = _(() => n.appendTo || o.value), T = _(() => {
|
|
1918
|
+
var C;
|
|
1919
|
+
return (C = n.style) != null ? C : {};
|
|
1920
|
+
}), w = _(() => !s(u)), P = () => {
|
|
1921
|
+
v();
|
|
1922
|
+
}, R = () => {
|
|
1923
|
+
if (s(l))
|
|
1924
|
+
return !0;
|
|
1925
|
+
}, A = ve(R, () => {
|
|
1926
|
+
n.enterable && s(p) === "hover" && h();
|
|
1927
|
+
}), D = ve(R, () => {
|
|
1928
|
+
s(p) === "hover" && m();
|
|
1929
|
+
}), x = () => {
|
|
1930
|
+
var C, z;
|
|
1931
|
+
(z = (C = a.value) == null ? void 0 : C.updatePopper) == null || z.call(C), d == null || d();
|
|
1932
|
+
}, F = () => {
|
|
1933
|
+
g == null || g();
|
|
1934
|
+
}, U = () => {
|
|
1935
|
+
b(), M = Jo(_(() => {
|
|
1936
|
+
var C;
|
|
1937
|
+
return (C = a.value) == null ? void 0 : C.popperContentRef;
|
|
1938
|
+
}), () => {
|
|
1939
|
+
if (s(l))
|
|
1940
|
+
return;
|
|
1941
|
+
s(p) !== "hover" && m();
|
|
1942
|
+
});
|
|
1943
|
+
}, K = () => {
|
|
1944
|
+
n.virtualTriggering || m();
|
|
1945
|
+
};
|
|
1946
|
+
let M;
|
|
1947
|
+
return H(() => s(u), (C) => {
|
|
1948
|
+
C || M == null || M();
|
|
1949
|
+
}, {
|
|
1950
|
+
flush: "post"
|
|
1951
|
+
}), H(() => n.content, () => {
|
|
1952
|
+
var C, z;
|
|
1953
|
+
(z = (C = a.value) == null ? void 0 : C.updatePopper) == null || z.call(C);
|
|
1954
|
+
}), t({
|
|
1955
|
+
contentRef: a
|
|
1956
|
+
}), (C, z) => (L(), Oe(Un, {
|
|
1957
|
+
disabled: !C.teleported,
|
|
1958
|
+
to: s(I)
|
|
1959
|
+
}, [
|
|
1960
|
+
ce(Fo, {
|
|
1961
|
+
name: s(f),
|
|
1962
|
+
onAfterLeave: P,
|
|
1963
|
+
onBeforeEnter: x,
|
|
1964
|
+
onAfterEnter: U,
|
|
1965
|
+
onBeforeLeave: F
|
|
1966
|
+
}, {
|
|
1967
|
+
default: te(() => [
|
|
1968
|
+
s(E) ? ct((L(), Oe(s(gs), gt({
|
|
1969
|
+
key: 0,
|
|
1970
|
+
id: s(c),
|
|
1971
|
+
ref_key: "contentRef",
|
|
1972
|
+
ref: a
|
|
1973
|
+
}, C.$attrs, {
|
|
1974
|
+
"aria-label": C.ariaLabel,
|
|
1975
|
+
"aria-hidden": s(w),
|
|
1976
|
+
"boundaries-padding": C.boundariesPadding,
|
|
1977
|
+
"fallback-placements": C.fallbackPlacements,
|
|
1978
|
+
"gpu-acceleration": C.gpuAcceleration,
|
|
1979
|
+
offset: C.offset,
|
|
1980
|
+
placement: C.placement,
|
|
1981
|
+
"popper-options": C.popperOptions,
|
|
1982
|
+
strategy: C.strategy,
|
|
1983
|
+
effect: C.effect,
|
|
1984
|
+
enterable: C.enterable,
|
|
1985
|
+
pure: C.pure,
|
|
1986
|
+
"popper-class": C.popperClass,
|
|
1987
|
+
"popper-style": [C.popperStyle, s(T)],
|
|
1988
|
+
"reference-el": C.referenceEl,
|
|
1989
|
+
"trigger-target-el": C.triggerTargetEl,
|
|
1990
|
+
visible: s(y),
|
|
1991
|
+
"z-index": C.zIndex,
|
|
1992
|
+
onMouseenter: s(A),
|
|
1993
|
+
onMouseleave: s(D),
|
|
1994
|
+
onBlur: K,
|
|
1995
|
+
onClose: s(m)
|
|
1996
|
+
}), {
|
|
1997
|
+
default: te(() => [
|
|
1998
|
+
i.value ? ge("v-if", !0) : oe(C.$slots, "default", { key: 0 })
|
|
1999
|
+
]),
|
|
2000
|
+
_: 3
|
|
2001
|
+
}, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
|
|
2002
|
+
[Mo, s(y)]
|
|
2003
|
+
]) : ge("v-if", !0)
|
|
2004
|
+
]),
|
|
2005
|
+
_: 3
|
|
2006
|
+
}, 8, ["name"])
|
|
2007
|
+
], 8, ["disabled", "to"]));
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
var _s = /* @__PURE__ */ ue(Ss, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);
|
|
2011
|
+
const ks = ["innerHTML"], Rs = { key: 1 }, As = j({
|
|
2012
|
+
name: "ElTooltip"
|
|
2013
|
+
}), $s = /* @__PURE__ */ j({
|
|
2014
|
+
...As,
|
|
2015
|
+
props: ws,
|
|
2016
|
+
emits: Es,
|
|
2017
|
+
setup(e, { expose: t, emit: n }) {
|
|
2018
|
+
const o = e;
|
|
2019
|
+
Ia();
|
|
2020
|
+
const r = Ea(), a = k(), i = k(), l = () => {
|
|
2021
|
+
var f;
|
|
2022
|
+
const O = s(a);
|
|
2023
|
+
O && ((f = O.popperInstanceRef) == null || f.update());
|
|
2024
|
+
}, c = k(!1), u = k(), { show: p, hide: m, hasUpdateHandler: h } = ys({
|
|
2025
|
+
indicator: c,
|
|
2026
|
+
toggleReason: u
|
|
2027
|
+
}), { onOpen: b, onClose: v } = Pa({
|
|
2028
|
+
showAfter: Ke(o, "showAfter"),
|
|
2029
|
+
hideAfter: Ke(o, "hideAfter"),
|
|
2030
|
+
autoClose: Ke(o, "autoClose"),
|
|
2031
|
+
open: p,
|
|
2032
|
+
close: m
|
|
2033
|
+
}), d = _(() => Nt(o.visible) && !h.value);
|
|
2034
|
+
Ee(Jt, {
|
|
2035
|
+
controlled: d,
|
|
2036
|
+
id: r,
|
|
2037
|
+
open: Lo(c),
|
|
2038
|
+
trigger: Ke(o, "trigger"),
|
|
2039
|
+
onOpen: (f) => {
|
|
2040
|
+
b(f);
|
|
2041
|
+
},
|
|
2042
|
+
onClose: (f) => {
|
|
2043
|
+
v(f);
|
|
2044
|
+
},
|
|
2045
|
+
onToggle: (f) => {
|
|
2046
|
+
s(c) ? v(f) : b(f);
|
|
2047
|
+
},
|
|
2048
|
+
onShow: () => {
|
|
2049
|
+
n("show", u.value);
|
|
2050
|
+
},
|
|
2051
|
+
onHide: () => {
|
|
2052
|
+
n("hide", u.value);
|
|
2053
|
+
},
|
|
2054
|
+
onBeforeShow: () => {
|
|
2055
|
+
n("before-show", u.value);
|
|
2056
|
+
},
|
|
2057
|
+
onBeforeHide: () => {
|
|
2058
|
+
n("before-hide", u.value);
|
|
2059
|
+
},
|
|
2060
|
+
updatePopper: l
|
|
2061
|
+
}), H(() => o.disabled, (f) => {
|
|
2062
|
+
f && c.value && (c.value = !1);
|
|
2063
|
+
});
|
|
2064
|
+
const g = (f) => {
|
|
2065
|
+
var O, E;
|
|
2066
|
+
const y = (E = (O = i.value) == null ? void 0 : O.contentRef) == null ? void 0 : E.popperContentRef, I = (f == null ? void 0 : f.relatedTarget) || document.activeElement;
|
|
2067
|
+
return y && y.contains(I);
|
|
2068
|
+
};
|
|
2069
|
+
return Bo(() => c.value && m()), t({
|
|
2070
|
+
popperRef: a,
|
|
2071
|
+
contentRef: i,
|
|
2072
|
+
isFocusInsideContent: g,
|
|
2073
|
+
updatePopper: l,
|
|
2074
|
+
onOpen: b,
|
|
2075
|
+
onClose: v,
|
|
2076
|
+
hide: m
|
|
2077
|
+
}), (f, O) => (L(), Oe(s(ms), {
|
|
2078
|
+
ref_key: "popperRef",
|
|
2079
|
+
ref: a,
|
|
2080
|
+
role: f.role
|
|
2081
|
+
}, {
|
|
2082
|
+
default: te(() => [
|
|
2083
|
+
ce(Cs, {
|
|
2084
|
+
disabled: f.disabled,
|
|
2085
|
+
trigger: f.trigger,
|
|
2086
|
+
"trigger-keys": f.triggerKeys,
|
|
2087
|
+
"virtual-ref": f.virtualRef,
|
|
2088
|
+
"virtual-triggering": f.virtualTriggering
|
|
2089
|
+
}, {
|
|
2090
|
+
default: te(() => [
|
|
2091
|
+
f.$slots.default ? oe(f.$slots, "default", { key: 0 }) : ge("v-if", !0)
|
|
2092
|
+
]),
|
|
2093
|
+
_: 3
|
|
2094
|
+
}, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
|
|
2095
|
+
ce(_s, {
|
|
2096
|
+
ref_key: "contentRef",
|
|
2097
|
+
ref: i,
|
|
2098
|
+
"aria-label": f.ariaLabel,
|
|
2099
|
+
"boundaries-padding": f.boundariesPadding,
|
|
2100
|
+
content: f.content,
|
|
2101
|
+
disabled: f.disabled,
|
|
2102
|
+
effect: f.effect,
|
|
2103
|
+
enterable: f.enterable,
|
|
2104
|
+
"fallback-placements": f.fallbackPlacements,
|
|
2105
|
+
"hide-after": f.hideAfter,
|
|
2106
|
+
"gpu-acceleration": f.gpuAcceleration,
|
|
2107
|
+
offset: f.offset,
|
|
2108
|
+
persistent: f.persistent,
|
|
2109
|
+
"popper-class": f.popperClass,
|
|
2110
|
+
"popper-style": f.popperStyle,
|
|
2111
|
+
placement: f.placement,
|
|
2112
|
+
"popper-options": f.popperOptions,
|
|
2113
|
+
pure: f.pure,
|
|
2114
|
+
"raw-content": f.rawContent,
|
|
2115
|
+
"reference-el": f.referenceEl,
|
|
2116
|
+
"trigger-target-el": f.triggerTargetEl,
|
|
2117
|
+
"show-after": f.showAfter,
|
|
2118
|
+
strategy: f.strategy,
|
|
2119
|
+
teleported: f.teleported,
|
|
2120
|
+
transition: f.transition,
|
|
2121
|
+
"virtual-triggering": f.virtualTriggering,
|
|
2122
|
+
"z-index": f.zIndex,
|
|
2123
|
+
"append-to": f.appendTo
|
|
2124
|
+
}, {
|
|
2125
|
+
default: te(() => [
|
|
2126
|
+
oe(f.$slots, "content", {}, () => [
|
|
2127
|
+
f.rawContent ? (L(), W("span", {
|
|
2128
|
+
key: 0,
|
|
2129
|
+
innerHTML: f.content
|
|
2130
|
+
}, null, 8, ks)) : (L(), W("span", Rs, Y(f.content), 1))
|
|
2131
|
+
]),
|
|
2132
|
+
f.showArrow ? (L(), Oe(s(La), {
|
|
2133
|
+
key: 0,
|
|
2134
|
+
"arrow-offset": f.arrowOffset
|
|
2135
|
+
}, null, 8, ["arrow-offset"])) : ge("v-if", !0)
|
|
2136
|
+
]),
|
|
2137
|
+
_: 3
|
|
2138
|
+
}, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
|
|
2139
|
+
]),
|
|
2140
|
+
_: 3
|
|
2141
|
+
}, 8, ["role"]));
|
|
2142
|
+
}
|
|
2143
|
+
});
|
|
2144
|
+
var xs = /* @__PURE__ */ ue($s, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);
|
|
2145
|
+
const Ns = Ft(xs), we = /* @__PURE__ */ new Map();
|
|
2146
|
+
let Hn;
|
|
2147
|
+
se && (document.addEventListener("mousedown", (e) => Hn = e), document.addEventListener("mouseup", (e) => {
|
|
2148
|
+
for (const t of we.values())
|
|
2149
|
+
for (const { documentHandler: n } of t)
|
|
2150
|
+
n(e, Hn);
|
|
2151
|
+
}));
|
|
2152
|
+
function Vn(e, t) {
|
|
2153
|
+
let n = [];
|
|
2154
|
+
return Array.isArray(t.arg) ? n = t.arg : qe(t.arg) && n.push(t.arg), function(o, r) {
|
|
2155
|
+
const a = t.instance.popperRef, i = o.target, l = r == null ? void 0 : r.target, c = !t || !t.instance, u = !i || !l, p = e.contains(i) || e.contains(l), m = e === i, h = n.length && n.some((v) => v == null ? void 0 : v.contains(i)) || n.length && n.includes(l), b = a && (a.contains(i) || a.contains(l));
|
|
2156
|
+
c || u || p || m || h || b || t.value(o, r);
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
const Ds = {
|
|
2160
|
+
beforeMount(e, t) {
|
|
2161
|
+
we.has(e) || we.set(e, []), we.get(e).push({
|
|
2162
|
+
documentHandler: Vn(e, t),
|
|
2163
|
+
bindingFn: t.value
|
|
2164
|
+
});
|
|
2165
|
+
},
|
|
2166
|
+
updated(e, t) {
|
|
2167
|
+
we.has(e) || we.set(e, []);
|
|
2168
|
+
const n = we.get(e), o = n.findIndex((a) => a.bindingFn === t.oldValue), r = {
|
|
2169
|
+
documentHandler: Vn(e, t),
|
|
2170
|
+
bindingFn: t.value
|
|
2171
|
+
};
|
|
2172
|
+
o >= 0 ? n.splice(o, 1, r) : n.push(r);
|
|
2173
|
+
},
|
|
2174
|
+
unmounted(e) {
|
|
2175
|
+
we.delete(e);
|
|
2176
|
+
}
|
|
2177
|
+
}, Fs = /* @__PURE__ */ j({
|
|
2178
|
+
inheritAttrs: !1
|
|
2179
|
+
});
|
|
2180
|
+
function Ms(e, t, n, o, r, a) {
|
|
2181
|
+
return oe(e.$slots, "default");
|
|
2182
|
+
}
|
|
2183
|
+
var Ls = /* @__PURE__ */ ue(Fs, [["render", Ms], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
|
|
2184
|
+
const Bs = /* @__PURE__ */ j({
|
|
2185
|
+
name: "ElCollectionItem",
|
|
2186
|
+
inheritAttrs: !1
|
|
2187
|
+
});
|
|
2188
|
+
function js(e, t, n, o, r, a) {
|
|
2189
|
+
return oe(e.$slots, "default");
|
|
2190
|
+
}
|
|
2191
|
+
var Hs = /* @__PURE__ */ ue(Bs, [["render", js], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
|
|
2192
|
+
const Vs = "data-el-collection-item", Ks = (e) => {
|
|
2193
|
+
const t = `El${e}Collection`, n = `${t}Item`, o = Symbol(t), r = Symbol(n), a = {
|
|
2194
|
+
...Ls,
|
|
2195
|
+
name: t,
|
|
2196
|
+
setup() {
|
|
2197
|
+
const l = k(null), c = /* @__PURE__ */ new Map();
|
|
2198
|
+
Ee(o, {
|
|
2199
|
+
itemMap: c,
|
|
2200
|
+
getItems: () => {
|
|
2201
|
+
const p = s(l);
|
|
2202
|
+
if (!p)
|
|
2203
|
+
return [];
|
|
2204
|
+
const m = Array.from(p.querySelectorAll(`[${Vs}]`));
|
|
2205
|
+
return [...c.values()].sort((b, v) => m.indexOf(b.ref) - m.indexOf(v.ref));
|
|
2206
|
+
},
|
|
2207
|
+
collectionRef: l
|
|
2208
|
+
});
|
|
2209
|
+
}
|
|
2210
|
+
}, i = {
|
|
2211
|
+
...Hs,
|
|
2212
|
+
name: n,
|
|
2213
|
+
setup(l, { attrs: c }) {
|
|
2214
|
+
const u = k(null), p = ie(o, void 0);
|
|
2215
|
+
Ee(r, {
|
|
2216
|
+
collectionItemRef: u
|
|
2217
|
+
}), he(() => {
|
|
2218
|
+
const m = s(u);
|
|
2219
|
+
m && p.itemMap.set(m, {
|
|
2220
|
+
ref: m,
|
|
2221
|
+
...c
|
|
2222
|
+
});
|
|
2223
|
+
}), be(() => {
|
|
2224
|
+
const m = s(u);
|
|
2225
|
+
p.itemMap.delete(m);
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
return {
|
|
2230
|
+
COLLECTION_INJECTION_KEY: o,
|
|
2231
|
+
COLLECTION_ITEM_INJECTION_KEY: r,
|
|
2232
|
+
ElCollection: a,
|
|
2233
|
+
ElCollectionItem: i
|
|
2234
|
+
};
|
|
2235
|
+
}, St = X({
|
|
2236
|
+
trigger: Je.trigger,
|
|
2237
|
+
effect: {
|
|
2238
|
+
...ee.effect,
|
|
2239
|
+
default: "light"
|
|
2240
|
+
},
|
|
2241
|
+
type: {
|
|
2242
|
+
type: $(String)
|
|
2243
|
+
},
|
|
2244
|
+
placement: {
|
|
2245
|
+
type: $(String),
|
|
2246
|
+
default: "bottom"
|
|
2247
|
+
},
|
|
2248
|
+
popperOptions: {
|
|
2249
|
+
type: $(Object),
|
|
2250
|
+
default: () => ({})
|
|
2251
|
+
},
|
|
2252
|
+
id: String,
|
|
2253
|
+
size: {
|
|
2254
|
+
type: String,
|
|
2255
|
+
default: ""
|
|
2256
|
+
},
|
|
2257
|
+
splitButton: Boolean,
|
|
2258
|
+
hideOnClick: {
|
|
2259
|
+
type: Boolean,
|
|
2260
|
+
default: !0
|
|
2261
|
+
},
|
|
2262
|
+
loop: {
|
|
2263
|
+
type: Boolean,
|
|
2264
|
+
default: !0
|
|
2265
|
+
},
|
|
2266
|
+
showTimeout: {
|
|
2267
|
+
type: Number,
|
|
2268
|
+
default: 150
|
|
2269
|
+
},
|
|
2270
|
+
hideTimeout: {
|
|
2271
|
+
type: Number,
|
|
2272
|
+
default: 150
|
|
2273
|
+
},
|
|
2274
|
+
tabindex: {
|
|
2275
|
+
type: $([Number, String]),
|
|
2276
|
+
default: 0
|
|
2277
|
+
},
|
|
2278
|
+
maxHeight: {
|
|
2279
|
+
type: $([Number, String]),
|
|
2280
|
+
default: ""
|
|
2281
|
+
},
|
|
2282
|
+
popperClass: {
|
|
2283
|
+
type: String,
|
|
2284
|
+
default: ""
|
|
2285
|
+
},
|
|
2286
|
+
disabled: {
|
|
2287
|
+
type: Boolean,
|
|
2288
|
+
default: !1
|
|
2289
|
+
},
|
|
2290
|
+
role: {
|
|
2291
|
+
type: String,
|
|
2292
|
+
default: "menu"
|
|
2293
|
+
},
|
|
2294
|
+
buttonProps: {
|
|
2295
|
+
type: $(Object)
|
|
2296
|
+
},
|
|
2297
|
+
teleported: ee.teleported
|
|
2298
|
+
});
|
|
2299
|
+
X({
|
|
2300
|
+
command: {
|
|
2301
|
+
type: [Object, String, Number],
|
|
2302
|
+
default: () => ({})
|
|
2303
|
+
},
|
|
2304
|
+
disabled: Boolean,
|
|
2305
|
+
divided: Boolean,
|
|
2306
|
+
textValue: String,
|
|
2307
|
+
icon: {
|
|
2308
|
+
type: cr
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2311
|
+
X({
|
|
2312
|
+
onKeydown: { type: $(Function) }
|
|
2313
|
+
});
|
|
2314
|
+
Ks("Dropdown");
|
|
2315
|
+
const Us = X({
|
|
2316
|
+
trigger: Je.trigger,
|
|
2317
|
+
placement: St.placement,
|
|
2318
|
+
disabled: Je.disabled,
|
|
2319
|
+
visible: ee.visible,
|
|
2320
|
+
transition: ee.transition,
|
|
2321
|
+
popperOptions: St.popperOptions,
|
|
2322
|
+
tabindex: St.tabindex,
|
|
2323
|
+
content: ee.content,
|
|
2324
|
+
popperStyle: ee.popperStyle,
|
|
2325
|
+
popperClass: ee.popperClass,
|
|
2326
|
+
enterable: {
|
|
2327
|
+
...ee.enterable,
|
|
2328
|
+
default: !0
|
|
2329
|
+
},
|
|
2330
|
+
effect: {
|
|
2331
|
+
...ee.effect,
|
|
2332
|
+
default: "light"
|
|
2333
|
+
},
|
|
2334
|
+
teleported: ee.teleported,
|
|
2335
|
+
title: String,
|
|
2336
|
+
width: {
|
|
2337
|
+
type: [String, Number],
|
|
2338
|
+
default: 150
|
|
2339
|
+
},
|
|
2340
|
+
offset: {
|
|
2341
|
+
type: Number,
|
|
2342
|
+
default: void 0
|
|
2343
|
+
},
|
|
2344
|
+
showAfter: {
|
|
2345
|
+
type: Number,
|
|
2346
|
+
default: 0
|
|
2347
|
+
},
|
|
2348
|
+
hideAfter: {
|
|
2349
|
+
type: Number,
|
|
2350
|
+
default: 200
|
|
2351
|
+
},
|
|
2352
|
+
autoClose: {
|
|
2353
|
+
type: Number,
|
|
2354
|
+
default: 0
|
|
2355
|
+
},
|
|
2356
|
+
showArrow: {
|
|
2357
|
+
type: Boolean,
|
|
2358
|
+
default: !0
|
|
2359
|
+
},
|
|
2360
|
+
persistent: {
|
|
2361
|
+
type: Boolean,
|
|
2362
|
+
default: !0
|
|
2363
|
+
},
|
|
2364
|
+
"onUpdate:visible": {
|
|
2365
|
+
type: Function
|
|
2366
|
+
}
|
|
2367
|
+
}), zs = {
|
|
2368
|
+
"update:visible": (e) => Nt(e),
|
|
2369
|
+
"before-enter": () => !0,
|
|
2370
|
+
"before-leave": () => !0,
|
|
2371
|
+
"after-enter": () => !0,
|
|
2372
|
+
"after-leave": () => !0
|
|
2373
|
+
}, Ws = "onUpdate:visible", qs = j({
|
|
2374
|
+
name: "ElPopover"
|
|
2375
|
+
}), Ys = /* @__PURE__ */ j({
|
|
2376
|
+
...qs,
|
|
2377
|
+
props: Us,
|
|
2378
|
+
emits: zs,
|
|
2379
|
+
setup(e, { expose: t, emit: n }) {
|
|
2380
|
+
const o = e, r = _(() => o[Ws]), a = Be("popover"), i = k(), l = _(() => {
|
|
2381
|
+
var g;
|
|
2382
|
+
return (g = s(i)) == null ? void 0 : g.popperRef;
|
|
2383
|
+
}), c = _(() => [
|
|
2384
|
+
{
|
|
2385
|
+
width: lr(o.width)
|
|
2386
|
+
},
|
|
2387
|
+
o.popperStyle
|
|
2388
|
+
]), u = _(() => [a.b(), o.popperClass, { [a.m("plain")]: !!o.content }]), p = _(() => o.transition === `${a.namespace.value}-fade-in-linear`), m = () => {
|
|
2389
|
+
var g;
|
|
2390
|
+
(g = i.value) == null || g.hide();
|
|
2391
|
+
}, h = () => {
|
|
2392
|
+
n("before-enter");
|
|
2393
|
+
}, b = () => {
|
|
2394
|
+
n("before-leave");
|
|
2395
|
+
}, v = () => {
|
|
2396
|
+
n("after-enter");
|
|
2397
|
+
}, d = () => {
|
|
2398
|
+
n("update:visible", !1), n("after-leave");
|
|
2399
|
+
};
|
|
2400
|
+
return t({
|
|
2401
|
+
popperRef: l,
|
|
2402
|
+
hide: m
|
|
2403
|
+
}), (g, f) => (L(), Oe(s(Ns), gt({
|
|
2404
|
+
ref_key: "tooltipRef",
|
|
2405
|
+
ref: i
|
|
2406
|
+
}, g.$attrs, {
|
|
2407
|
+
trigger: g.trigger,
|
|
2408
|
+
placement: g.placement,
|
|
2409
|
+
disabled: g.disabled,
|
|
2410
|
+
visible: g.visible,
|
|
2411
|
+
transition: g.transition,
|
|
2412
|
+
"popper-options": g.popperOptions,
|
|
2413
|
+
tabindex: g.tabindex,
|
|
2414
|
+
content: g.content,
|
|
2415
|
+
offset: g.offset,
|
|
2416
|
+
"show-after": g.showAfter,
|
|
2417
|
+
"hide-after": g.hideAfter,
|
|
2418
|
+
"auto-close": g.autoClose,
|
|
2419
|
+
"show-arrow": g.showArrow,
|
|
2420
|
+
"aria-label": g.title,
|
|
2421
|
+
effect: g.effect,
|
|
2422
|
+
enterable: g.enterable,
|
|
2423
|
+
"popper-class": s(u),
|
|
2424
|
+
"popper-style": s(c),
|
|
2425
|
+
teleported: g.teleported,
|
|
2426
|
+
persistent: g.persistent,
|
|
2427
|
+
"gpu-acceleration": s(p),
|
|
2428
|
+
"onUpdate:visible": s(r),
|
|
2429
|
+
onBeforeShow: h,
|
|
2430
|
+
onBeforeHide: b,
|
|
2431
|
+
onShow: v,
|
|
2432
|
+
onHide: d
|
|
2433
|
+
}), {
|
|
2434
|
+
content: te(() => [
|
|
2435
|
+
g.title ? (L(), W("div", {
|
|
2436
|
+
key: 0,
|
|
2437
|
+
class: G(s(a).e("title")),
|
|
2438
|
+
role: "title"
|
|
2439
|
+
}, Y(g.title), 3)) : ge("v-if", !0),
|
|
2440
|
+
oe(g.$slots, "default", {}, () => [
|
|
2441
|
+
lt(Y(g.content), 1)
|
|
2442
|
+
])
|
|
2443
|
+
]),
|
|
2444
|
+
default: te(() => [
|
|
2445
|
+
g.$slots.reference ? oe(g.$slots, "reference", { key: 0 }) : ge("v-if", !0)
|
|
2446
|
+
]),
|
|
2447
|
+
_: 3
|
|
2448
|
+
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
2449
|
+
}
|
|
2450
|
+
});
|
|
2451
|
+
var Zs = /* @__PURE__ */ ue(Ys, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
|
|
2452
|
+
const Kn = (e, t) => {
|
|
2453
|
+
const n = t.arg || t.value, o = n == null ? void 0 : n.popperRef;
|
|
2454
|
+
o && (o.triggerRef = e);
|
|
2455
|
+
};
|
|
2456
|
+
var Js = {
|
|
2457
|
+
mounted(e, t) {
|
|
2458
|
+
Kn(e, t);
|
|
2459
|
+
},
|
|
2460
|
+
updated(e, t) {
|
|
2461
|
+
Kn(e, t);
|
|
2462
|
+
}
|
|
2463
|
+
};
|
|
2464
|
+
const Qs = "popover", Gs = pr(Js, Qs), Xs = Ft(Zs, {
|
|
2465
|
+
directive: Gs
|
|
2466
|
+
}), yo = () => ({ getDateTime: (o) => {
|
|
2467
|
+
const r = `2020/${o}`;
|
|
2468
|
+
return new Date(r).getTime();
|
|
2469
|
+
}, formatDateStr: (o) => o >= 10 ? o : "0" + o }), ei = (e, t, n, o, r, a, i) => {
|
|
2470
|
+
const l = k({ begin: "", end: "" }), c = k(""), { getDateTime: u, formatDateStr: p } = yo();
|
|
2471
|
+
return {
|
|
2472
|
+
popClickData: l,
|
|
2473
|
+
isInRange: (E, y) => {
|
|
2474
|
+
if (!l.value.begin || !l.value.end) return !1;
|
|
2475
|
+
const I = {
|
|
2476
|
+
left: e.value,
|
|
2477
|
+
right: t.value
|
|
2478
|
+
}, T = u(`${p(I[y])}/${p(E)}`), w = u(l.value.begin), P = u(l.value.end);
|
|
2479
|
+
return T <= P && T >= w;
|
|
2480
|
+
},
|
|
2481
|
+
isInHoverRange: (E, y) => {
|
|
2482
|
+
if (!n.value[0] || !n.value[1]) return !1;
|
|
2483
|
+
const I = {
|
|
2484
|
+
left: e.value,
|
|
2485
|
+
right: t.value
|
|
2486
|
+
}, T = u(`${p(I[y])}/${p(E)}`), w = u(n.value[0]), P = u(n.value[1]);
|
|
2487
|
+
return T <= P && T >= w;
|
|
2488
|
+
},
|
|
2489
|
+
isInNewRange: (E, y) => {
|
|
2490
|
+
if (!l.value.begin || !l.value.end || !c.value) return !1;
|
|
2491
|
+
const I = {
|
|
2492
|
+
left: e.value,
|
|
2493
|
+
right: t.value
|
|
2494
|
+
}, T = u(`${p(I[y])}/${p(E)}`), w = u(c.value);
|
|
2495
|
+
let P = u(l.value.begin), R = u(l.value.end);
|
|
2496
|
+
return o.value === "begin" ? (w > P && (P = w), T <= R && T >= P) : (w < R && (R = w), T <= R && T >= P);
|
|
2497
|
+
},
|
|
2498
|
+
outBeginDate: (E, y) => {
|
|
2499
|
+
if (!l.value.begin) return !1;
|
|
2500
|
+
const I = {
|
|
2501
|
+
left: e.value,
|
|
2502
|
+
right: t.value
|
|
2503
|
+
}, T = u(`${p(I[y])}/${p(E)}`), w = u(l.value.begin);
|
|
2504
|
+
return r.value === 1 && o.value === "end" && T < w;
|
|
2505
|
+
},
|
|
2506
|
+
outEndDate: (E, y) => {
|
|
2507
|
+
if (!l.value.end) return !1;
|
|
2508
|
+
const I = {
|
|
2509
|
+
left: e.value,
|
|
2510
|
+
right: t.value
|
|
2511
|
+
}, T = u(`${p(I[y])}/${p(E)}`), w = u(l.value.end);
|
|
2512
|
+
return r.value === 1 && o.value === "begin" && T > w;
|
|
2513
|
+
},
|
|
2514
|
+
clickData: (E, y) => {
|
|
2515
|
+
r.value++;
|
|
2516
|
+
const I = {
|
|
2517
|
+
left: e.value,
|
|
2518
|
+
right: t.value
|
|
2519
|
+
}, T = `${p(I[y])}/${p(E)}`;
|
|
2520
|
+
o.value === "begin" ? l.value.begin = T : l.value.end = T, r.value === 1 ? o.value = o.value === "begin" ? "end" : "begin" : i();
|
|
2521
|
+
},
|
|
2522
|
+
mouseEnter: (E, y) => {
|
|
2523
|
+
const I = {
|
|
2524
|
+
left: e.value,
|
|
2525
|
+
right: t.value
|
|
2526
|
+
}, T = `${p(I[y])}/${p(E)}`;
|
|
2527
|
+
c.value = T, o.value === "begin" ? n.value[0] = T : n.value[1] = T;
|
|
77
2528
|
},
|
|
78
2529
|
mouseLeave: () => {
|
|
79
|
-
|
|
2530
|
+
c.value = "", o.value === "begin" ? n.value[0] = a.value[0] : n.value[1] = a.value[1];
|
|
80
2531
|
}
|
|
81
2532
|
};
|
|
82
|
-
},
|
|
83
|
-
const
|
|
2533
|
+
}, ti = (e) => {
|
|
2534
|
+
const t = k(), n = k(!1), o = k(0), r = k({
|
|
84
2535
|
x: 0,
|
|
85
2536
|
y: 0
|
|
86
|
-
}),
|
|
2537
|
+
}), a = _(() => ({
|
|
87
2538
|
"font-size": "12px",
|
|
88
|
-
"background-color":
|
|
2539
|
+
"background-color": sn("--das-ui-special-range-picker-overlay-error-bg-color").value,
|
|
89
2540
|
"box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
90
2541
|
"border-radius": "1px",
|
|
91
2542
|
padding: "2px 8px",
|
|
92
2543
|
"box-sizing": "border-box",
|
|
93
|
-
"z-index":
|
|
94
|
-
})),
|
|
95
|
-
...
|
|
96
|
-
width:
|
|
2544
|
+
"z-index": e.errorModelZIndex
|
|
2545
|
+
})), i = _(() => ({
|
|
2546
|
+
...a.value,
|
|
2547
|
+
width: o.value + "px",
|
|
97
2548
|
position: "fixed",
|
|
98
2549
|
visibility: "visible",
|
|
99
|
-
top:
|
|
100
|
-
left:
|
|
101
|
-
})),
|
|
2550
|
+
top: r.value.y + "px",
|
|
2551
|
+
left: r.value.x + "px"
|
|
2552
|
+
})), l = k({
|
|
102
2553
|
display: "block",
|
|
103
2554
|
"text-align": "left",
|
|
104
|
-
color:
|
|
2555
|
+
color: sn("--das-ui-special-range-picker-error").value,
|
|
105
2556
|
"white-space": "break-spaces",
|
|
106
2557
|
"word-break": "break-all"
|
|
107
|
-
}),
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
const { top:
|
|
111
|
-
|
|
2558
|
+
}), c = () => {
|
|
2559
|
+
var v, d, g;
|
|
2560
|
+
o.value = (v = t.value) == null ? void 0 : v.clientWidth;
|
|
2561
|
+
const { top: m, left: h } = (d = t.value) == null ? void 0 : d.getBoundingClientRect(), b = (g = t.value) == null ? void 0 : g.clientHeight;
|
|
2562
|
+
r.value.x = h, r.value.y = m + b;
|
|
112
2563
|
};
|
|
113
2564
|
return {
|
|
114
|
-
$dasSpecialRangeYearPicker:
|
|
115
|
-
isHoverInInput:
|
|
116
|
-
errorModalBaseSyle:
|
|
117
|
-
errorModelStyle:
|
|
118
|
-
errorLabelStyle:
|
|
2565
|
+
$dasSpecialRangeYearPicker: t,
|
|
2566
|
+
isHoverInInput: n,
|
|
2567
|
+
errorModalBaseSyle: a,
|
|
2568
|
+
errorModelStyle: i,
|
|
2569
|
+
errorLabelStyle: l,
|
|
119
2570
|
errorModalInputMouseEnter: () => {
|
|
120
|
-
|
|
2571
|
+
c(), n.value = !0;
|
|
121
2572
|
},
|
|
122
2573
|
errorModallInputMouseLeave: () => {
|
|
123
|
-
|
|
2574
|
+
n.value = !1;
|
|
124
2575
|
}
|
|
125
2576
|
};
|
|
126
|
-
},
|
|
2577
|
+
}, ni = (e) => (jo("data-v-d039874a"), e = e(), Ho(), e), oi = { class: "date-container" }, ri = /* @__PURE__ */ ni(() => /* @__PURE__ */ V("div", { class: "separator" }, "~", -1)), ai = { class: "year-container" }, si = { class: "month-container left-month-container" }, ii = { class: "header" }, li = ["onMouseenter", "onClick"], ui = { class: "item-text" }, ci = { class: "month-container right-month-container" }, pi = { class: "header" }, di = ["onMouseenter", "onClick"], fi = { class: "item-text" }, vi = {
|
|
127
2578
|
key: 0,
|
|
128
2579
|
class: "das-special-range-picker-error-label-content"
|
|
129
|
-
},
|
|
2580
|
+
}, gi = /* @__PURE__ */ j({
|
|
130
2581
|
__name: "Index",
|
|
131
2582
|
props: {
|
|
132
2583
|
modelValue: {},
|
|
@@ -142,240 +2593,240 @@ const oe = () => ({ getDateTime: (r) => {
|
|
|
142
2593
|
errorModelZIndex: { default: 2e3 }
|
|
143
2594
|
},
|
|
144
2595
|
emits: ["update:modelValue", "update:error", "change", "show-popover"],
|
|
145
|
-
setup(
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const
|
|
149
|
-
if (!(
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
|
|
2596
|
+
setup(e, { emit: t }) {
|
|
2597
|
+
const n = e, o = t, r = k(!1), a = cn(n, "modelValue"), i = k(["", ""]), l = cn(n, "error"), c = k(0), u = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], p = k({}), m = k(1), h = k(2), b = k(void 0);
|
|
2598
|
+
let v = !0;
|
|
2599
|
+
const d = k(0), g = _(() => !n.disabled && !n.isView && a.value[0] && a.value[1]), f = (N, B) => {
|
|
2600
|
+
if (!(n.disabled || n.isView)) {
|
|
2601
|
+
if (v = !1, r.value = !0, b.value = B, d.value = 0, i.value = [a.value[0], a.value[1]], N) {
|
|
2602
|
+
const S = Number(N.split("/")[0]);
|
|
2603
|
+
B === "begin" ? (m.value = S < 12 ? S : 11, h.value = m.value + 1) : (h.value = S > 1 ? S : 2, m.value = h.value - 1);
|
|
153
2604
|
} else
|
|
154
|
-
|
|
155
|
-
|
|
2605
|
+
m.value = c.value < 12 ? c.value : 11, h.value = m.value + 1;
|
|
2606
|
+
o("show-popover");
|
|
156
2607
|
}
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
}, { formatDateStr:
|
|
162
|
-
popClickData:
|
|
163
|
-
isInRange:
|
|
164
|
-
isInHoverRange:
|
|
165
|
-
isInNewRange:
|
|
166
|
-
outBeginDate:
|
|
2608
|
+
}, O = () => {
|
|
2609
|
+
b.value = void 0;
|
|
2610
|
+
const N = y.value;
|
|
2611
|
+
o("update:modelValue", [N.begin, N.end]), o("change", [N.begin, N.end]), o("update:error", !1), r.value = !1;
|
|
2612
|
+
}, { formatDateStr: E } = yo(), {
|
|
2613
|
+
popClickData: y,
|
|
2614
|
+
isInRange: I,
|
|
2615
|
+
isInHoverRange: T,
|
|
2616
|
+
isInNewRange: w,
|
|
2617
|
+
outBeginDate: P,
|
|
167
2618
|
outEndDate: R,
|
|
168
2619
|
clickData: A,
|
|
169
|
-
mouseEnter:
|
|
170
|
-
mouseLeave:
|
|
171
|
-
} =
|
|
172
|
-
$dasSpecialRangeYearPicker:
|
|
173
|
-
isHoverInInput:
|
|
174
|
-
errorModalBaseSyle:
|
|
175
|
-
errorModelStyle:
|
|
176
|
-
errorLabelStyle:
|
|
177
|
-
errorModalInputMouseEnter:
|
|
178
|
-
errorModallInputMouseLeave:
|
|
179
|
-
} =
|
|
180
|
-
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
},
|
|
2620
|
+
mouseEnter: D,
|
|
2621
|
+
mouseLeave: x
|
|
2622
|
+
} = ei(m, h, i, b, d, a, O), {
|
|
2623
|
+
$dasSpecialRangeYearPicker: F,
|
|
2624
|
+
isHoverInInput: U,
|
|
2625
|
+
errorModalBaseSyle: K,
|
|
2626
|
+
errorModelStyle: M,
|
|
2627
|
+
errorLabelStyle: C,
|
|
2628
|
+
errorModalInputMouseEnter: z,
|
|
2629
|
+
errorModallInputMouseLeave: Q
|
|
2630
|
+
} = ti(n), ke = () => {
|
|
2631
|
+
m.value !== 1 && (m.value--, h.value--);
|
|
2632
|
+
}, je = () => {
|
|
2633
|
+
h.value !== 12 && (h.value++, m.value++);
|
|
2634
|
+
}, Ie = () => {
|
|
184
2635
|
setTimeout(() => {
|
|
185
|
-
if (!
|
|
186
|
-
|
|
2636
|
+
if (!v) {
|
|
2637
|
+
v = !0;
|
|
187
2638
|
return;
|
|
188
2639
|
}
|
|
189
|
-
|
|
2640
|
+
i.value = ["", ""], y.value = { begin: a.value[0], end: a.value[1] }, b.value = void 0, r.value = !1;
|
|
190
2641
|
}, 50);
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}),
|
|
2642
|
+
}, Re = () => {
|
|
2643
|
+
o("update:modelValue", [null, null]), o("update:error", !1), o("change", [null, null]);
|
|
2644
|
+
}, fe = (N) => {
|
|
2645
|
+
const B = (q) => Array.from({ length: q }, (Xe, yt) => yt + 1), S = /* @__PURE__ */ new Date();
|
|
2646
|
+
c.value = S.getMonth() + 1, u.forEach((q, Xe) => {
|
|
2647
|
+
N[Xe + 1] = B(q);
|
|
2648
|
+
}), y.value = { begin: a.value[0], end: a.value[1] };
|
|
198
2649
|
};
|
|
199
|
-
return
|
|
200
|
-
|
|
201
|
-
}), (
|
|
2650
|
+
return he(() => {
|
|
2651
|
+
fe(p.value);
|
|
2652
|
+
}), (N, B) => (L(), W("div", {
|
|
202
2653
|
ref_key: "$dasSpecialRangeYearPicker",
|
|
203
|
-
ref:
|
|
204
|
-
style:
|
|
205
|
-
onMouseenter:
|
|
206
|
-
(...
|
|
207
|
-
onMouseleave:
|
|
208
|
-
(...
|
|
2654
|
+
ref: F,
|
|
2655
|
+
style: $e({ width: N.width, position: "relative" }),
|
|
2656
|
+
onMouseenter: B[4] || (B[4] = //@ts-ignore
|
|
2657
|
+
(...S) => s(z) && s(z)(...S)),
|
|
2658
|
+
onMouseleave: B[5] || (B[5] = //@ts-ignore
|
|
2659
|
+
(...S) => s(Q) && s(Q)(...S))
|
|
209
2660
|
}, [
|
|
210
|
-
|
|
211
|
-
class:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
{ active:
|
|
216
|
-
|
|
217
|
-
|
|
2661
|
+
V("div", {
|
|
2662
|
+
class: G(["das-ui-special-range-picker-year-container", [
|
|
2663
|
+
N.borderType,
|
|
2664
|
+
n.disabled ? "disabled" : "",
|
|
2665
|
+
n.isView ? "readonly" : "",
|
|
2666
|
+
{ active: b.value !== void 0 },
|
|
2667
|
+
s(l) ? "is-error" : "",
|
|
2668
|
+
N.size
|
|
218
2669
|
]])
|
|
219
2670
|
}, [
|
|
220
|
-
|
|
221
|
-
visible:
|
|
2671
|
+
ce(s(Xs), {
|
|
2672
|
+
visible: r.value,
|
|
222
2673
|
placement: "bottom-start",
|
|
223
2674
|
"popper-class": "das-special-range-picker-year-container",
|
|
224
2675
|
width: 481,
|
|
225
2676
|
trigger: "click"
|
|
226
2677
|
}, {
|
|
227
|
-
reference:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
class:
|
|
231
|
-
placeholder: !
|
|
232
|
-
active:
|
|
2678
|
+
reference: te(() => [
|
|
2679
|
+
V("div", oi, [
|
|
2680
|
+
V("div", {
|
|
2681
|
+
class: G(["left-date", {
|
|
2682
|
+
placeholder: !s(a)[0] || b.value === "begin" && i.value[0],
|
|
2683
|
+
active: b.value === "begin"
|
|
233
2684
|
}]),
|
|
234
|
-
onClick:
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
class:
|
|
239
|
-
placeholder: !
|
|
240
|
-
active:
|
|
2685
|
+
onClick: B[0] || (B[0] = (S) => f(s(a)[0], "begin"))
|
|
2686
|
+
}, Y(i.value[0] || s(a)[0] || s(tt)("das-special-range-picker-begin-date").value), 3),
|
|
2687
|
+
ri,
|
|
2688
|
+
V("div", {
|
|
2689
|
+
class: G(["right-date", {
|
|
2690
|
+
placeholder: !s(a)[1] || b.value === "end" && i.value[1],
|
|
2691
|
+
active: b.value === "end"
|
|
241
2692
|
}]),
|
|
242
|
-
onClick:
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
class:
|
|
2693
|
+
onClick: B[1] || (B[1] = (S) => f(s(a)[1], "end"))
|
|
2694
|
+
}, Y(i.value[1] || s(a)[1] || s(tt)("das-special-range-picker-end-date").value), 3),
|
|
2695
|
+
V("div", {
|
|
2696
|
+
class: G({ "is-view": n.isView }),
|
|
246
2697
|
style: { width: "16px" }
|
|
247
2698
|
}, [
|
|
248
|
-
|
|
249
|
-
class:
|
|
2699
|
+
ce(s(Uo), {
|
|
2700
|
+
class: G(["icon-date", { "has-data": g.value }]),
|
|
250
2701
|
size: "medium",
|
|
251
|
-
"icon-color":
|
|
2702
|
+
"icon-color": s(nt)("--das-ui-color-normal")
|
|
252
2703
|
}, null, 8, ["class", "icon-color"]),
|
|
253
|
-
|
|
254
|
-
class:
|
|
2704
|
+
ce(s(Ko), {
|
|
2705
|
+
class: G(["icon-delete", { "has-data": g.value }]),
|
|
255
2706
|
size: "medium",
|
|
256
|
-
"icon-color":
|
|
257
|
-
onClick:
|
|
2707
|
+
"icon-color": s(nt)("--das-ui-special-range-picker-close-btn"),
|
|
2708
|
+
onClick: Re
|
|
258
2709
|
}, null, 8, ["class", "icon-color"])
|
|
259
2710
|
], 2)
|
|
260
2711
|
])
|
|
261
2712
|
]),
|
|
262
|
-
default:
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
class:
|
|
2713
|
+
default: te(() => [
|
|
2714
|
+
ct((L(), W("div", ai, [
|
|
2715
|
+
V("div", si, [
|
|
2716
|
+
V("div", ii, [
|
|
2717
|
+
V("div", {
|
|
2718
|
+
class: G(["turn-btn turn-left", { disabled: m.value === 1 }])
|
|
268
2719
|
}, [
|
|
269
|
-
|
|
2720
|
+
ce(s(zo), {
|
|
270
2721
|
class: "turn-icon",
|
|
271
2722
|
size: "medium",
|
|
272
|
-
"icon-color":
|
|
273
|
-
onClick:
|
|
2723
|
+
"icon-color": s(nt)("--das-ui-color-help"),
|
|
2724
|
+
onClick: ke
|
|
274
2725
|
}, null, 8, ["icon-color"])
|
|
275
2726
|
], 2),
|
|
276
|
-
|
|
2727
|
+
lt(" " + Y(m.value) + Y(s(tt)("das-special-range-picker-month").value), 1)
|
|
277
2728
|
]),
|
|
278
|
-
|
|
2729
|
+
V("div", {
|
|
279
2730
|
class: "date-container-popover left-date-container",
|
|
280
|
-
onMouseleave:
|
|
281
|
-
(...
|
|
2731
|
+
onMouseleave: B[2] || (B[2] = //@ts-ignore
|
|
2732
|
+
(...S) => s(x) && s(x)(...S))
|
|
282
2733
|
}, [
|
|
283
|
-
(
|
|
284
|
-
class:
|
|
285
|
-
"in-range":
|
|
286
|
-
"new-range":
|
|
287
|
-
"range-start":
|
|
288
|
-
"range-end":
|
|
289
|
-
"out-range":
|
|
2734
|
+
(L(!0), W(Ve, null, un(p.value[m.value], (S) => (L(), W("div", {
|
|
2735
|
+
class: G(["item", {
|
|
2736
|
+
"in-range": s(I)(S, "left") || s(T)(S, "left"),
|
|
2737
|
+
"new-range": s(w)(S, "left"),
|
|
2738
|
+
"range-start": s(y).begin === `${s(E)(m.value)}/${s(E)(S)}`,
|
|
2739
|
+
"range-end": s(y).end === `${s(E)(m.value)}/${s(E)(S)}`,
|
|
2740
|
+
"out-range": s(P)(S, "left") || s(R)(S, "left")
|
|
290
2741
|
}]),
|
|
291
|
-
onMouseenter: (
|
|
292
|
-
onClick: (
|
|
2742
|
+
onMouseenter: (q) => s(D)(S, "left"),
|
|
2743
|
+
onClick: (q) => s(A)(S, "left")
|
|
293
2744
|
}, [
|
|
294
|
-
|
|
295
|
-
], 42,
|
|
2745
|
+
V("div", ui, Y(S), 1)
|
|
2746
|
+
], 42, li))), 256))
|
|
296
2747
|
], 32)
|
|
297
2748
|
]),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
class:
|
|
2749
|
+
V("div", ci, [
|
|
2750
|
+
V("div", pi, [
|
|
2751
|
+
V("div", {
|
|
2752
|
+
class: G(["turn-btn turn-right", { disabled: h.value === 12 }])
|
|
302
2753
|
}, [
|
|
303
|
-
|
|
2754
|
+
ce(s(Wo), {
|
|
304
2755
|
class: "turn-icon",
|
|
305
2756
|
size: "medium",
|
|
306
|
-
"icon-color":
|
|
307
|
-
onClick:
|
|
2757
|
+
"icon-color": s(nt)("--das-ui-color-help"),
|
|
2758
|
+
onClick: je
|
|
308
2759
|
}, null, 8, ["icon-color"])
|
|
309
2760
|
], 2),
|
|
310
|
-
|
|
2761
|
+
lt(" " + Y(h.value) + Y(s(tt)("das-special-range-picker-month").value), 1)
|
|
311
2762
|
]),
|
|
312
|
-
|
|
2763
|
+
V("div", {
|
|
313
2764
|
class: "date-container-popover right-date-container",
|
|
314
|
-
onMouseleave:
|
|
315
|
-
(...
|
|
2765
|
+
onMouseleave: B[3] || (B[3] = //@ts-ignore
|
|
2766
|
+
(...S) => s(x) && s(x)(...S))
|
|
316
2767
|
}, [
|
|
317
|
-
(
|
|
318
|
-
class:
|
|
319
|
-
"in-range":
|
|
320
|
-
"new-range":
|
|
321
|
-
"range-start":
|
|
322
|
-
"range-end":
|
|
323
|
-
"out-range":
|
|
2768
|
+
(L(!0), W(Ve, null, un(p.value[h.value], (S) => (L(), W("div", {
|
|
2769
|
+
class: G(["item", {
|
|
2770
|
+
"in-range": s(I)(S, "right") || s(T)(S, "right"),
|
|
2771
|
+
"new-range": s(w)(S, "right"),
|
|
2772
|
+
"range-start": s(y).begin === `${s(E)(h.value)}/${s(E)(S)}`,
|
|
2773
|
+
"range-end": s(y).end === `${s(E)(h.value)}/${s(E)(S)}`,
|
|
2774
|
+
"out-range": s(P)(S, "right") || s(R)(S, "right")
|
|
324
2775
|
}]),
|
|
325
|
-
onMouseenter: (
|
|
326
|
-
onClick: (
|
|
2776
|
+
onMouseenter: (q) => s(D)(S, "right"),
|
|
2777
|
+
onClick: (q) => s(A)(S, "right")
|
|
327
2778
|
}, [
|
|
328
|
-
|
|
329
|
-
], 42,
|
|
2779
|
+
V("div", fi, Y(S), 1)
|
|
2780
|
+
], 42, di))), 256))
|
|
330
2781
|
], 32)
|
|
331
2782
|
])
|
|
332
2783
|
])), [
|
|
333
|
-
[
|
|
2784
|
+
[s(Ds), Ie]
|
|
334
2785
|
])
|
|
335
2786
|
]),
|
|
336
2787
|
_: 1
|
|
337
2788
|
}, 8, ["visible"])
|
|
338
2789
|
], 2),
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
2790
|
+
s(l) && N.errorLabel ? (L(), W(Ve, { key: 0 }, [
|
|
2791
|
+
N.errorMode === "default" ? ct((L(), W("div", vi, [
|
|
2792
|
+
lt(Y(N.errorLabel), 1)
|
|
342
2793
|
])), [
|
|
343
|
-
[
|
|
344
|
-
]) :
|
|
345
|
-
|
|
2794
|
+
[s(Vo)]
|
|
2795
|
+
]) : s(U) ? (L(), W(Ve, { key: 1 }, [
|
|
2796
|
+
s(U) ? (L(), Oe(Un, {
|
|
346
2797
|
key: 0,
|
|
347
2798
|
to: "body"
|
|
348
2799
|
}, [
|
|
349
|
-
|
|
350
|
-
style:
|
|
2800
|
+
V("div", {
|
|
2801
|
+
style: $e(s(M))
|
|
351
2802
|
}, [
|
|
352
|
-
|
|
353
|
-
style:
|
|
354
|
-
},
|
|
2803
|
+
V("span", {
|
|
2804
|
+
style: $e(s(C))
|
|
2805
|
+
}, Y(N.errorLabel), 5)
|
|
355
2806
|
], 4)
|
|
356
|
-
])) : (
|
|
2807
|
+
])) : (L(), W("div", {
|
|
357
2808
|
key: 1,
|
|
358
|
-
style:
|
|
2809
|
+
style: $e(s(K)),
|
|
359
2810
|
class: "das-special-range-picker-overlay-error-label-content"
|
|
360
2811
|
}, [
|
|
361
|
-
|
|
362
|
-
style:
|
|
363
|
-
},
|
|
2812
|
+
V("span", {
|
|
2813
|
+
style: $e(s(C))
|
|
2814
|
+
}, Y(N.errorLabel), 5)
|
|
364
2815
|
], 4))
|
|
365
|
-
], 64)) :
|
|
366
|
-
], 64)) :
|
|
2816
|
+
], 64)) : ge("", !0)
|
|
2817
|
+
], 64)) : ge("", !0)
|
|
367
2818
|
], 36));
|
|
368
2819
|
}
|
|
369
|
-
}),
|
|
370
|
-
const
|
|
371
|
-
for (const [
|
|
372
|
-
|
|
373
|
-
return
|
|
374
|
-
},
|
|
2820
|
+
}), mi = (e, t) => {
|
|
2821
|
+
const n = e.__vccOpts || e;
|
|
2822
|
+
for (const [o, r] of t)
|
|
2823
|
+
n[o] = r;
|
|
2824
|
+
return n;
|
|
2825
|
+
}, hi = /* @__PURE__ */ mi(gi, [["__scopeId", "data-v-d039874a"]]), bi = {
|
|
375
2826
|
"das-special-range-picker-begin-date": { "zh-CN": "开始日期", en: "test" },
|
|
376
2827
|
"das-special-range-picker-end-date": { "zh-CN": "结束日期", en: "test" },
|
|
377
2828
|
"das-special-range-picker-month": { "zh-CN": "月", en: "test" }
|
|
378
|
-
},
|
|
2829
|
+
}, yi = {
|
|
379
2830
|
"--das-ui-special-range-picker-close-btn": { light: "#bfbfbf" },
|
|
380
2831
|
"--das-ui-special-range-picker-close-btn-hover": { light: "#8c8c8c" },
|
|
381
2832
|
"--das-ui-special-range-picker-color-primary": { light: "#5582F3" },
|
|
@@ -392,10 +2843,10 @@ const oe = () => ({ getDateTime: (r) => {
|
|
|
392
2843
|
"--das-ui-special-range-picker-disabled": { light: "#e5e5e5" },
|
|
393
2844
|
"--das-ui-special-range-picker-error": { light: "#FB2323" },
|
|
394
2845
|
"--das-ui-special-range-picker-overlay-error-bg-color": { light: "#FFDBE0" }
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
|
|
2846
|
+
}, Ni = Co(hi);
|
|
2847
|
+
Po(bi);
|
|
2848
|
+
So(yi);
|
|
398
2849
|
export {
|
|
399
|
-
|
|
400
|
-
|
|
2850
|
+
Ni as DasSpecialRangePickerYear,
|
|
2851
|
+
Ni as default
|
|
401
2852
|
};
|