qaema-ui 0.0.72 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DropDownWithTable/DropDownWithTable.js +86 -84
- package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +1 -0
- package/dist/components/DropDownWithTable/Table/Table.d.ts +1 -1
- package/dist/components/DropDownWithTable/Table/Table.js +103 -94
- package/dist/components/DropDownWithTable/Table/Table.types.d.ts +1 -0
- package/dist/components/StepperProcess.d.ts +78 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +377 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +400 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
- package/dist/node_modules/react-tooltip/dist/react-tooltip.min.js +548 -0
- package/package.json +3 -2
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { offset as st, flip as rt, shift as ct, computePosition as lt, arrow as ft } from "../../core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as m, rectToClientRect as J, round as A, max as E, min as V, floor as D } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { getOverflowAncestors as z, isElement as v, getDocumentElement as b, getWindow as O, getFrameElement as U, getComputedStyle as R, isHTMLElement as T, isTopLayer as $, getParentNode as W, isLastTraversableNode as H, isTableElement as ut, isContainingBlock as Q, getContainingBlock as at, getNodeName as _, isOverflowElement as q, getNodeScroll as I, isWebKit as Y } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
function Z(t) {
|
|
5
|
+
const e = R(t);
|
|
6
|
+
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
7
|
+
const i = T(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = A(o) !== r || A(n) !== s;
|
|
8
|
+
return c && (o = r, n = s), {
|
|
9
|
+
width: o,
|
|
10
|
+
height: n,
|
|
11
|
+
$: c
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function X(t) {
|
|
15
|
+
return v(t) ? t : t.contextElement;
|
|
16
|
+
}
|
|
17
|
+
function F(t) {
|
|
18
|
+
const e = X(t);
|
|
19
|
+
if (!T(e))
|
|
20
|
+
return m(1);
|
|
21
|
+
const o = e.getBoundingClientRect(), {
|
|
22
|
+
width: n,
|
|
23
|
+
height: i,
|
|
24
|
+
$: r
|
|
25
|
+
} = Z(e);
|
|
26
|
+
let s = (r ? A(o.width) : o.width) / n, c = (r ? A(o.height) : o.height) / i;
|
|
27
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
+
x: s,
|
|
29
|
+
y: c
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const ht = /* @__PURE__ */ m(0);
|
|
33
|
+
function tt(t) {
|
|
34
|
+
const e = O(t);
|
|
35
|
+
return !Y() || !e.visualViewport ? ht : {
|
|
36
|
+
x: e.visualViewport.offsetLeft,
|
|
37
|
+
y: e.visualViewport.offsetTop
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function dt(t, e, o) {
|
|
41
|
+
return e === void 0 && (e = !1), !o || e && o !== O(t) ? !1 : e;
|
|
42
|
+
}
|
|
43
|
+
function L(t, e, o, n) {
|
|
44
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
45
|
+
const i = t.getBoundingClientRect(), r = X(t);
|
|
46
|
+
let s = m(1);
|
|
47
|
+
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
+
const c = dt(r, o, n) ? tt(r) : m(0);
|
|
49
|
+
let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, u = i.width / s.x, h = i.height / s.y;
|
|
50
|
+
if (r) {
|
|
51
|
+
const d = O(r), a = n && v(n) ? O(n) : n;
|
|
52
|
+
let w = d, p = U(w);
|
|
53
|
+
for (; p && n && a !== w; ) {
|
|
54
|
+
const y = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * y.x, S = g.top + (p.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
55
|
+
l *= y.x, f *= y.y, u *= y.x, h *= y.y, l += C, f += S, w = O(p), p = U(w);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return J({
|
|
59
|
+
width: u,
|
|
60
|
+
height: h,
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function M(t, e) {
|
|
66
|
+
const o = I(t).scrollLeft;
|
|
67
|
+
return e ? e.left + o : L(b(t)).left + o;
|
|
68
|
+
}
|
|
69
|
+
function et(t, e) {
|
|
70
|
+
const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - M(t, o), i = o.top + e.scrollTop;
|
|
71
|
+
return {
|
|
72
|
+
x: n,
|
|
73
|
+
y: i
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function gt(t) {
|
|
77
|
+
let {
|
|
78
|
+
elements: e,
|
|
79
|
+
rect: o,
|
|
80
|
+
offsetParent: n,
|
|
81
|
+
strategy: i
|
|
82
|
+
} = t;
|
|
83
|
+
const r = i === "fixed", s = b(n), c = e ? $(e.floating) : !1;
|
|
84
|
+
if (n === s || c && r)
|
|
85
|
+
return o;
|
|
86
|
+
let l = {
|
|
87
|
+
scrollLeft: 0,
|
|
88
|
+
scrollTop: 0
|
|
89
|
+
}, f = m(1);
|
|
90
|
+
const u = m(0), h = T(n);
|
|
91
|
+
if ((h || !h && !r) && ((_(n) !== "body" || q(s)) && (l = I(n)), h)) {
|
|
92
|
+
const a = L(n);
|
|
93
|
+
f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
94
|
+
}
|
|
95
|
+
const d = s && !h && !r ? et(s, l) : m(0);
|
|
96
|
+
return {
|
|
97
|
+
width: o.width * f.x,
|
|
98
|
+
height: o.height * f.y,
|
|
99
|
+
x: o.x * f.x - l.scrollLeft * f.x + u.x + d.x,
|
|
100
|
+
y: o.y * f.y - l.scrollTop * f.y + u.y + d.y
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function pt(t) {
|
|
104
|
+
return Array.from(t.getClientRects());
|
|
105
|
+
}
|
|
106
|
+
function wt(t) {
|
|
107
|
+
const e = b(t), o = I(t), n = t.ownerDocument.body, i = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
108
|
+
let s = -o.scrollLeft + M(t);
|
|
109
|
+
const c = -o.scrollTop;
|
|
110
|
+
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - i), {
|
|
111
|
+
width: i,
|
|
112
|
+
height: r,
|
|
113
|
+
x: s,
|
|
114
|
+
y: c
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const K = 25;
|
|
118
|
+
function yt(t, e) {
|
|
119
|
+
const o = O(t), n = b(t), i = o.visualViewport;
|
|
120
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
121
|
+
if (i) {
|
|
122
|
+
r = i.width, s = i.height;
|
|
123
|
+
const u = Y();
|
|
124
|
+
(!u || u && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
125
|
+
}
|
|
126
|
+
const f = M(n);
|
|
127
|
+
if (f <= 0) {
|
|
128
|
+
const u = n.ownerDocument, h = u.body, d = getComputedStyle(h), a = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, w = Math.abs(n.clientWidth - h.clientWidth - a);
|
|
129
|
+
w <= K && (r -= w);
|
|
130
|
+
} else f <= K && (r += f);
|
|
131
|
+
return {
|
|
132
|
+
width: r,
|
|
133
|
+
height: s,
|
|
134
|
+
x: c,
|
|
135
|
+
y: l
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function mt(t, e) {
|
|
139
|
+
const o = L(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = T(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = n * r.y;
|
|
140
|
+
return {
|
|
141
|
+
width: s,
|
|
142
|
+
height: c,
|
|
143
|
+
x: l,
|
|
144
|
+
y: f
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function j(t, e, o) {
|
|
148
|
+
let n;
|
|
149
|
+
if (e === "viewport")
|
|
150
|
+
n = yt(t, o);
|
|
151
|
+
else if (e === "document")
|
|
152
|
+
n = wt(b(t));
|
|
153
|
+
else if (v(e))
|
|
154
|
+
n = mt(e, o);
|
|
155
|
+
else {
|
|
156
|
+
const i = tt(t);
|
|
157
|
+
n = {
|
|
158
|
+
x: e.x - i.x,
|
|
159
|
+
y: e.y - i.y,
|
|
160
|
+
width: e.width,
|
|
161
|
+
height: e.height
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return J(n);
|
|
165
|
+
}
|
|
166
|
+
function ot(t, e) {
|
|
167
|
+
const o = W(t);
|
|
168
|
+
return o === e || !v(o) || H(o) ? !1 : R(o).position === "fixed" || ot(o, e);
|
|
169
|
+
}
|
|
170
|
+
function xt(t, e) {
|
|
171
|
+
const o = e.get(t);
|
|
172
|
+
if (o)
|
|
173
|
+
return o;
|
|
174
|
+
let n = z(t, [], !1).filter((c) => v(c) && _(c) !== "body"), i = null;
|
|
175
|
+
const r = R(t).position === "fixed";
|
|
176
|
+
let s = r ? W(t) : t;
|
|
177
|
+
for (; v(s) && !H(s); ) {
|
|
178
|
+
const c = R(s), l = Q(s);
|
|
179
|
+
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || q(s) && !l && ot(t, s)) ? n = n.filter((u) => u !== s) : i = c, s = W(s);
|
|
180
|
+
}
|
|
181
|
+
return e.set(t, n), n;
|
|
182
|
+
}
|
|
183
|
+
function vt(t) {
|
|
184
|
+
let {
|
|
185
|
+
element: e,
|
|
186
|
+
boundary: o,
|
|
187
|
+
rootBoundary: n,
|
|
188
|
+
strategy: i
|
|
189
|
+
} = t;
|
|
190
|
+
const s = [...o === "clippingAncestors" ? $(e) ? [] : xt(e, this._c) : [].concat(o), n], c = j(e, s[0], i);
|
|
191
|
+
let l = c.top, f = c.right, u = c.bottom, h = c.left;
|
|
192
|
+
for (let d = 1; d < s.length; d++) {
|
|
193
|
+
const a = j(e, s[d], i);
|
|
194
|
+
l = E(a.top, l), f = V(a.right, f), u = V(a.bottom, u), h = E(a.left, h);
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
width: f - h,
|
|
198
|
+
height: u - l,
|
|
199
|
+
x: h,
|
|
200
|
+
y: l
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function Rt(t) {
|
|
204
|
+
const {
|
|
205
|
+
width: e,
|
|
206
|
+
height: o
|
|
207
|
+
} = Z(t);
|
|
208
|
+
return {
|
|
209
|
+
width: e,
|
|
210
|
+
height: o
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function bt(t, e, o) {
|
|
214
|
+
const n = T(e), i = b(e), r = o === "fixed", s = L(t, !0, r, e);
|
|
215
|
+
let c = {
|
|
216
|
+
scrollLeft: 0,
|
|
217
|
+
scrollTop: 0
|
|
218
|
+
};
|
|
219
|
+
const l = m(0);
|
|
220
|
+
function f() {
|
|
221
|
+
l.x = M(i);
|
|
222
|
+
}
|
|
223
|
+
if (n || !n && !r)
|
|
224
|
+
if ((_(e) !== "body" || q(i)) && (c = I(e)), n) {
|
|
225
|
+
const a = L(e, !0, r, e);
|
|
226
|
+
l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
|
|
227
|
+
} else i && f();
|
|
228
|
+
r && !n && i && f();
|
|
229
|
+
const u = i && !n && !r ? et(i, c) : m(0), h = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
|
|
230
|
+
return {
|
|
231
|
+
x: h,
|
|
232
|
+
y: d,
|
|
233
|
+
width: s.width,
|
|
234
|
+
height: s.height
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function N(t) {
|
|
238
|
+
return R(t).position === "static";
|
|
239
|
+
}
|
|
240
|
+
function G(t, e) {
|
|
241
|
+
if (!T(t) || R(t).position === "fixed")
|
|
242
|
+
return null;
|
|
243
|
+
if (e)
|
|
244
|
+
return e(t);
|
|
245
|
+
let o = t.offsetParent;
|
|
246
|
+
return b(t) === o && (o = o.ownerDocument.body), o;
|
|
247
|
+
}
|
|
248
|
+
function nt(t, e) {
|
|
249
|
+
const o = O(t);
|
|
250
|
+
if ($(t))
|
|
251
|
+
return o;
|
|
252
|
+
if (!T(t)) {
|
|
253
|
+
let i = W(t);
|
|
254
|
+
for (; i && !H(i); ) {
|
|
255
|
+
if (v(i) && !N(i))
|
|
256
|
+
return i;
|
|
257
|
+
i = W(i);
|
|
258
|
+
}
|
|
259
|
+
return o;
|
|
260
|
+
}
|
|
261
|
+
let n = G(t, e);
|
|
262
|
+
for (; n && ut(n) && N(n); )
|
|
263
|
+
n = G(n, e);
|
|
264
|
+
return n && H(n) && N(n) && !Q(n) ? o : n || at(t) || o;
|
|
265
|
+
}
|
|
266
|
+
const Ct = async function(t) {
|
|
267
|
+
const e = this.getOffsetParent || nt, o = this.getDimensions, n = await o(t.floating);
|
|
268
|
+
return {
|
|
269
|
+
reference: bt(t.reference, await e(t.floating), t.strategy),
|
|
270
|
+
floating: {
|
|
271
|
+
x: 0,
|
|
272
|
+
y: 0,
|
|
273
|
+
width: n.width,
|
|
274
|
+
height: n.height
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
function Ot(t) {
|
|
279
|
+
return R(t).direction === "rtl";
|
|
280
|
+
}
|
|
281
|
+
const Lt = {
|
|
282
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: gt,
|
|
283
|
+
getDocumentElement: b,
|
|
284
|
+
getClippingRect: vt,
|
|
285
|
+
getOffsetParent: nt,
|
|
286
|
+
getElementRects: Ct,
|
|
287
|
+
getClientRects: pt,
|
|
288
|
+
getDimensions: Rt,
|
|
289
|
+
getScale: F,
|
|
290
|
+
isElement: v,
|
|
291
|
+
isRTL: Ot
|
|
292
|
+
};
|
|
293
|
+
function it(t, e) {
|
|
294
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
295
|
+
}
|
|
296
|
+
function Tt(t, e) {
|
|
297
|
+
let o = null, n;
|
|
298
|
+
const i = b(t);
|
|
299
|
+
function r() {
|
|
300
|
+
var c;
|
|
301
|
+
clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
|
|
302
|
+
}
|
|
303
|
+
function s(c, l) {
|
|
304
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
305
|
+
const f = t.getBoundingClientRect(), {
|
|
306
|
+
left: u,
|
|
307
|
+
top: h,
|
|
308
|
+
width: d,
|
|
309
|
+
height: a
|
|
310
|
+
} = f;
|
|
311
|
+
if (c || e(), !d || !a)
|
|
312
|
+
return;
|
|
313
|
+
const w = D(h), p = D(i.clientWidth - (u + d)), y = D(i.clientHeight - (h + a)), g = D(u), C = {
|
|
314
|
+
rootMargin: -w + "px " + -p + "px " + -y + "px " + -g + "px",
|
|
315
|
+
threshold: E(0, V(1, l)) || 1
|
|
316
|
+
};
|
|
317
|
+
let S = !0;
|
|
318
|
+
function k(P) {
|
|
319
|
+
const B = P[0].intersectionRatio;
|
|
320
|
+
if (B !== l) {
|
|
321
|
+
if (!S)
|
|
322
|
+
return s();
|
|
323
|
+
B ? s(!1, B) : n = setTimeout(() => {
|
|
324
|
+
s(!1, 1e-7);
|
|
325
|
+
}, 1e3);
|
|
326
|
+
}
|
|
327
|
+
B === 1 && !it(f, t.getBoundingClientRect()) && s(), S = !1;
|
|
328
|
+
}
|
|
329
|
+
try {
|
|
330
|
+
o = new IntersectionObserver(k, {
|
|
331
|
+
...C,
|
|
332
|
+
// Handle <iframe>s
|
|
333
|
+
root: i.ownerDocument
|
|
334
|
+
});
|
|
335
|
+
} catch {
|
|
336
|
+
o = new IntersectionObserver(k, C);
|
|
337
|
+
}
|
|
338
|
+
o.observe(t);
|
|
339
|
+
}
|
|
340
|
+
return s(!0), r;
|
|
341
|
+
}
|
|
342
|
+
function St(t, e, o, n) {
|
|
343
|
+
n === void 0 && (n = {});
|
|
344
|
+
const {
|
|
345
|
+
ancestorScroll: i = !0,
|
|
346
|
+
ancestorResize: r = !0,
|
|
347
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
348
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
349
|
+
animationFrame: l = !1
|
|
350
|
+
} = n, f = X(t), u = i || r ? [...f ? z(f) : [], ...e ? z(e) : []] : [];
|
|
351
|
+
u.forEach((g) => {
|
|
352
|
+
i && g.addEventListener("scroll", o, {
|
|
353
|
+
passive: !0
|
|
354
|
+
}), r && g.addEventListener("resize", o);
|
|
355
|
+
});
|
|
356
|
+
const h = f && c ? Tt(f, o) : null;
|
|
357
|
+
let d = -1, a = null;
|
|
358
|
+
s && (a = new ResizeObserver((g) => {
|
|
359
|
+
let [x] = g;
|
|
360
|
+
x && x.target === f && a && e && (a.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
361
|
+
var C;
|
|
362
|
+
(C = a) == null || C.observe(e);
|
|
363
|
+
})), o();
|
|
364
|
+
}), f && !l && a.observe(f), e && a.observe(e));
|
|
365
|
+
let w, p = l ? L(t) : null;
|
|
366
|
+
l && y();
|
|
367
|
+
function y() {
|
|
368
|
+
const g = L(t);
|
|
369
|
+
p && !it(p, g) && o(), p = g, w = requestAnimationFrame(y);
|
|
370
|
+
}
|
|
371
|
+
return o(), () => {
|
|
372
|
+
var g;
|
|
373
|
+
u.forEach((x) => {
|
|
374
|
+
i && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
|
|
375
|
+
}), h == null || h(), (g = a) == null || g.disconnect(), a = null, l && cancelAnimationFrame(w);
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
const Bt = st, Dt = ct, At = rt, Ht = ft, It = (t, e, o) => {
|
|
379
|
+
const n = /* @__PURE__ */ new Map(), i = {
|
|
380
|
+
platform: Lt,
|
|
381
|
+
...o
|
|
382
|
+
}, r = {
|
|
383
|
+
...i.platform,
|
|
384
|
+
_c: n
|
|
385
|
+
};
|
|
386
|
+
return lt(t, e, {
|
|
387
|
+
...i,
|
|
388
|
+
platform: r
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
export {
|
|
392
|
+
Ht as arrow,
|
|
393
|
+
St as autoUpdate,
|
|
394
|
+
It as computePosition,
|
|
395
|
+
At as flip,
|
|
396
|
+
z as getOverflowAncestors,
|
|
397
|
+
Bt as offset,
|
|
398
|
+
Lt as platform,
|
|
399
|
+
Dt as shift
|
|
400
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function u() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function a(t) {
|
|
5
|
+
return m(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
var n;
|
|
9
|
+
return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function L(t) {
|
|
12
|
+
var n;
|
|
13
|
+
return (n = (m(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function m(t) {
|
|
16
|
+
return u() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function h(t) {
|
|
19
|
+
return u() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function g(t) {
|
|
22
|
+
return u() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function p(t) {
|
|
25
|
+
return !u() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
function y(t) {
|
|
28
|
+
const {
|
|
29
|
+
overflow: n,
|
|
30
|
+
overflowX: r,
|
|
31
|
+
overflowY: c,
|
|
32
|
+
display: e
|
|
33
|
+
} = S(t);
|
|
34
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + c + r) && e !== "inline" && e !== "contents";
|
|
35
|
+
}
|
|
36
|
+
function _(t) {
|
|
37
|
+
return /^(table|td|th)$/.test(a(t));
|
|
38
|
+
}
|
|
39
|
+
function T(t) {
|
|
40
|
+
try {
|
|
41
|
+
if (t.matches(":popover-open"))
|
|
42
|
+
return !0;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
return t.matches(":modal");
|
|
47
|
+
} catch {
|
|
48
|
+
return !1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const v = /transform|translate|scale|rotate|perspective|filter/, C = /paint|layout|strict|content/, o = (t) => !!t && t !== "none";
|
|
52
|
+
let s;
|
|
53
|
+
function D(t) {
|
|
54
|
+
const n = h(t) ? S(t) : t;
|
|
55
|
+
return o(n.transform) || o(n.translate) || o(n.scale) || o(n.rotate) || o(n.perspective) || !R() && (o(n.backdropFilter) || o(n.filter)) || v.test(n.willChange || "") || C.test(n.contain || "");
|
|
56
|
+
}
|
|
57
|
+
function W(t) {
|
|
58
|
+
let n = f(t);
|
|
59
|
+
for (; g(n) && !N(n); ) {
|
|
60
|
+
if (D(n))
|
|
61
|
+
return n;
|
|
62
|
+
if (T(n))
|
|
63
|
+
return null;
|
|
64
|
+
n = f(n);
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
function R() {
|
|
69
|
+
return s == null && (s = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), s;
|
|
70
|
+
}
|
|
71
|
+
function N(t) {
|
|
72
|
+
return /^(html|body|#document)$/.test(a(t));
|
|
73
|
+
}
|
|
74
|
+
function S(t) {
|
|
75
|
+
return i(t).getComputedStyle(t);
|
|
76
|
+
}
|
|
77
|
+
function $(t) {
|
|
78
|
+
return h(t) ? {
|
|
79
|
+
scrollLeft: t.scrollLeft,
|
|
80
|
+
scrollTop: t.scrollTop
|
|
81
|
+
} : {
|
|
82
|
+
scrollLeft: t.scrollX,
|
|
83
|
+
scrollTop: t.scrollY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function f(t) {
|
|
87
|
+
if (a(t) === "html")
|
|
88
|
+
return t;
|
|
89
|
+
const n = (
|
|
90
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
+
t.assignedSlot || // DOM Element detected.
|
|
92
|
+
t.parentNode || // ShadowRoot detected.
|
|
93
|
+
p(t) && t.host || // Fallback.
|
|
94
|
+
L(t)
|
|
95
|
+
);
|
|
96
|
+
return p(n) ? n.host : n;
|
|
97
|
+
}
|
|
98
|
+
function b(t) {
|
|
99
|
+
const n = f(t);
|
|
100
|
+
return N(n) ? (t.ownerDocument || t).body : g(n) && y(n) ? n : b(n);
|
|
101
|
+
}
|
|
102
|
+
function w(t, n, r) {
|
|
103
|
+
var c;
|
|
104
|
+
n === void 0 && (n = []), r === void 0 && (r = !0);
|
|
105
|
+
const e = b(t), E = e === ((c = t.ownerDocument) == null ? void 0 : c.body), l = i(e);
|
|
106
|
+
if (E) {
|
|
107
|
+
const d = k(l);
|
|
108
|
+
return n.concat(l, l.visualViewport || [], y(e) ? e : [], d && r ? w(d) : []);
|
|
109
|
+
} else
|
|
110
|
+
return n.concat(e, w(e, [], r));
|
|
111
|
+
}
|
|
112
|
+
function k(t) {
|
|
113
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
S as getComputedStyle,
|
|
117
|
+
W as getContainingBlock,
|
|
118
|
+
L as getDocumentElement,
|
|
119
|
+
k as getFrameElement,
|
|
120
|
+
b as getNearestOverflowAncestor,
|
|
121
|
+
a as getNodeName,
|
|
122
|
+
$ as getNodeScroll,
|
|
123
|
+
w as getOverflowAncestors,
|
|
124
|
+
f as getParentNode,
|
|
125
|
+
i as getWindow,
|
|
126
|
+
D as isContainingBlock,
|
|
127
|
+
h as isElement,
|
|
128
|
+
g as isHTMLElement,
|
|
129
|
+
N as isLastTraversableNode,
|
|
130
|
+
m as isNode,
|
|
131
|
+
y as isOverflowElement,
|
|
132
|
+
p as isShadowRoot,
|
|
133
|
+
_ as isTableElement,
|
|
134
|
+
T as isTopLayer,
|
|
135
|
+
R as isWebKit
|
|
136
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
const m = Math.min, h = Math.max, S = Math.round, _ = Math.floor, $ = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), p = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
};
|
|
10
|
+
function w(t, n, e) {
|
|
11
|
+
return h(t, m(n, e));
|
|
12
|
+
}
|
|
13
|
+
function C(t, n) {
|
|
14
|
+
return typeof t == "function" ? t(n) : t;
|
|
15
|
+
}
|
|
16
|
+
function g(t) {
|
|
17
|
+
return t.split("-")[0];
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
return t.split("-")[1];
|
|
21
|
+
}
|
|
22
|
+
function b(t) {
|
|
23
|
+
return t === "x" ? "y" : "x";
|
|
24
|
+
}
|
|
25
|
+
function d(t) {
|
|
26
|
+
return t === "y" ? "height" : "width";
|
|
27
|
+
}
|
|
28
|
+
function x(t) {
|
|
29
|
+
const n = t[0];
|
|
30
|
+
return n === "t" || n === "b" ? "y" : "x";
|
|
31
|
+
}
|
|
32
|
+
function A(t) {
|
|
33
|
+
return b(x(t));
|
|
34
|
+
}
|
|
35
|
+
function j(t, n, e) {
|
|
36
|
+
e === void 0 && (e = !1);
|
|
37
|
+
const i = a(t), o = A(t), r = d(o);
|
|
38
|
+
let c = o === "x" ? i === (e ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
39
|
+
return n.reference[r] > n.floating[r] && (c = l(c)), [c, l(c)];
|
|
40
|
+
}
|
|
41
|
+
function L(t) {
|
|
42
|
+
const n = l(t);
|
|
43
|
+
return [s(t), n, s(n)];
|
|
44
|
+
}
|
|
45
|
+
function s(t) {
|
|
46
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
47
|
+
}
|
|
48
|
+
const u = ["left", "right"], f = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
|
|
49
|
+
function O(t, n, e) {
|
|
50
|
+
switch (t) {
|
|
51
|
+
case "top":
|
|
52
|
+
case "bottom":
|
|
53
|
+
return e ? n ? f : u : n ? u : f;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right":
|
|
56
|
+
return n ? P : y;
|
|
57
|
+
default:
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function E(t, n, e, i) {
|
|
62
|
+
const o = a(t);
|
|
63
|
+
let r = O(g(t), e === "start", i);
|
|
64
|
+
return o && (r = r.map((c) => c + "-" + o), n && (r = r.concat(r.map(s)))), r;
|
|
65
|
+
}
|
|
66
|
+
function l(t) {
|
|
67
|
+
const n = g(t);
|
|
68
|
+
return p[n] + t.slice(n.length);
|
|
69
|
+
}
|
|
70
|
+
function M(t) {
|
|
71
|
+
var n, e, i, o;
|
|
72
|
+
return {
|
|
73
|
+
top: (n = t.top) != null ? n : 0,
|
|
74
|
+
right: (e = t.right) != null ? e : 0,
|
|
75
|
+
bottom: (i = t.bottom) != null ? i : 0,
|
|
76
|
+
left: (o = t.left) != null ? o : 0
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function R(t) {
|
|
80
|
+
return typeof t != "number" ? M(t) : {
|
|
81
|
+
top: t,
|
|
82
|
+
right: t,
|
|
83
|
+
bottom: t,
|
|
84
|
+
left: t
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function T(t) {
|
|
88
|
+
const {
|
|
89
|
+
x: n,
|
|
90
|
+
y: e,
|
|
91
|
+
width: i,
|
|
92
|
+
height: o
|
|
93
|
+
} = t;
|
|
94
|
+
return {
|
|
95
|
+
width: i,
|
|
96
|
+
height: o,
|
|
97
|
+
top: e,
|
|
98
|
+
left: n,
|
|
99
|
+
right: n + i,
|
|
100
|
+
bottom: e + o,
|
|
101
|
+
x: n,
|
|
102
|
+
y: e
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
w as clamp,
|
|
107
|
+
$ as createCoords,
|
|
108
|
+
C as evaluate,
|
|
109
|
+
M as expandPaddingObject,
|
|
110
|
+
_ as floor,
|
|
111
|
+
a as getAlignment,
|
|
112
|
+
A as getAlignmentAxis,
|
|
113
|
+
j as getAlignmentSides,
|
|
114
|
+
d as getAxisLength,
|
|
115
|
+
L as getExpandedPlacements,
|
|
116
|
+
s as getOppositeAlignmentPlacement,
|
|
117
|
+
b as getOppositeAxis,
|
|
118
|
+
E as getOppositeAxisPlacements,
|
|
119
|
+
l as getOppositePlacement,
|
|
120
|
+
R as getPaddingObject,
|
|
121
|
+
g as getSide,
|
|
122
|
+
x as getSideAxis,
|
|
123
|
+
h as max,
|
|
124
|
+
m as min,
|
|
125
|
+
T as rectToClientRect,
|
|
126
|
+
S as round
|
|
127
|
+
};
|