@quoreadmin/ui 1.11.0 → 1.11.1
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/index.css +1 -1
- package/dist/index142.js +1 -1
- package/dist/index189.js +4 -4
- package/dist/index196.js +8 -8
- package/dist/index198.js +8 -8
- package/dist/index201.js +17 -17
- package/dist/index204.js +26 -26
- package/dist/index205.js +1 -1
- package/dist/index206.js +1 -1
- package/dist/index209.js +2 -2
- package/dist/index211.js +14 -14
- package/dist/index212.js +1 -1
- package/dist/index213.js +1 -1
- package/dist/index214.js +3 -3
- package/dist/index215.js +6 -6
- package/dist/index219.js +2 -2
- package/dist/index220.js +1 -1
- package/dist/index222.js +4 -4
- package/dist/index224.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +4 -4
- package/dist/index229.js +1 -1
- package/dist/index230.js +2 -2
- package/dist/index231.js +2 -2
- package/dist/index232.js +1 -1
- package/dist/index233.js +156 -122
- package/dist/index234.js +225 -35
- package/dist/index235.js +37 -80
- package/dist/index236.js +10 -20
- package/dist/index237.js +126 -19
- package/dist/index238.js +34 -16
- package/dist/index239.js +80 -20
- package/dist/index240.js +9 -9
- package/dist/index241.js +19 -160
- package/dist/index242.js +11 -11
- package/dist/index243.js +13 -15
- package/dist/index244.js +19 -198
- package/dist/index245.js +140 -49
- package/dist/index246.js +20 -34
- package/dist/index247.js +21 -39
- package/dist/index248.js +184 -238
- package/dist/index249.js +70 -8
- package/dist/index250.js +32 -136
- package/dist/index251.js +39 -82
- package/dist/index252.js +247 -155
- package/dist/index253.js +7 -227
- package/dist/index254.js +137 -36
- package/dist/index255.js +83 -10
- package/dist/index256.js +2 -22
- package/dist/index257.js +78 -21
- package/dist/index258.js +15 -13
- package/dist/index259.js +22 -836
- package/dist/index260.js +19 -701
- package/dist/index261.js +835 -175
- package/dist/index262.js +701 -21
- package/dist/index263.js +176 -20
- package/dist/index264.js +13 -11
- package/dist/index265.js +20 -3
- package/dist/index266.js +19 -186
- package/dist/index267.js +3 -133
- package/dist/index268.js +107 -1143
- package/dist/index269.js +132 -19
- package/dist/index270.js +1223 -22
- package/dist/index271.js +13 -15
- package/dist/index272.js +13 -20
- package/dist/index273.js +15 -13
- package/dist/index274.js +21 -12
- package/dist/index275.js +20 -2
- package/dist/index276.js +20 -2
- package/dist/index277.js +2 -3709
- package/dist/index278.js +2 -60
- package/dist/index279.js +3686 -60
- package/dist/index280.js +37 -29
- package/dist/index281.js +51 -183
- package/dist/index282.js +51 -9
- package/dist/index283.js +197 -39
- package/dist/index284.js +9 -60
- package/dist/index285.js +43 -40
- package/dist/index286.js +44 -64
- package/dist/index287.js +33 -707
- package/dist/index288.js +63 -29
- package/dist/index289.js +696 -32
- package/dist/index290.js +46 -10
- package/dist/index291.js +55 -696
- package/dist/index292.js +10 -819
- package/dist/index293.js +705 -2
- package/dist/index294.js +814 -73
- package/dist/index295.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +1 -1
- package/dist/index298.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index300.js +1 -1
- package/dist/index301.js +1 -1
- package/dist/index302.js +3 -79
- package/dist/index303.js +26 -21
- package/dist/index304.js +52 -929
- package/dist/index305.js +36 -21
- package/dist/index306.js +234 -19
- package/dist/index307.js +5 -19
- package/dist/index308.js +128 -63
- package/dist/index309.js +68 -19
- package/dist/index310.js +85 -17
- package/dist/index311.js +28 -21
- package/dist/index312.js +7 -20
- package/dist/index313.js +75 -63
- package/dist/index314.js +3 -83
- package/dist/index315.js +2 -3
- package/dist/index316.js +81 -25
- package/dist/index317.js +49 -1529
- package/dist/index318.js +4 -384
- package/dist/index319.js +4 -2730
- package/dist/index320.js +170 -77
- package/dist/index321.js +55 -3790
- package/dist/index322.js +75 -60
- package/dist/index323.js +1533 -14
- package/dist/index324.js +371 -69
- package/dist/index325.js +2687 -158
- package/dist/index326.js +73 -233
- package/dist/index327.js +3789 -28
- package/dist/index328.js +51 -121
- package/dist/index329.js +14 -399
- package/dist/index330.js +75 -226
- package/dist/index331.js +200 -4
- package/dist/index332.js +236 -124
- package/dist/index333.js +77 -66
- package/dist/index334.js +21 -86
- package/dist/index335.js +932 -26
- package/dist/index336.js +21 -8
- package/dist/index337.js +19 -74
- package/dist/index338.js +19 -3
- package/dist/index339.js +69 -2
- package/dist/index340.js +18 -82
- package/dist/index341.js +17 -52
- package/dist/index342.js +21 -5
- package/dist/index343.js +21 -4
- package/dist/index344.js +62 -178
- package/dist/index345.js +123 -57
- package/dist/index346.js +398 -74
- package/dist/index347.js +8 -19
- package/dist/index348.js +12 -19
- package/dist/index349.js +51 -60
- package/dist/index350.js +12 -37
- package/dist/index351.js +13 -8
- package/dist/index352.js +57 -12
- package/dist/index353.js +48 -51
- package/dist/index354.js +28 -9
- package/dist/index355.js +2 -14
- package/dist/index356.js +5 -58
- package/dist/index357.js +2 -52
- package/dist/index358.js +22 -30
- package/dist/index359.js +41 -2
- package/dist/index360.js +2 -5
- package/dist/index361.js +11 -2
- package/dist/index362.js +19 -22
- package/dist/index363.js +9 -40
- package/dist/index364.js +10 -2
- package/dist/index365.js +16 -10
- package/dist/index366.js +2 -20
- package/dist/index367.js +8 -9
- package/dist/index368.js +10 -10
- package/dist/index369.js +12 -15
- package/dist/index370.js +21 -2
- package/dist/index371.js +56 -9
- package/dist/index372.js +28 -9
- package/dist/index373.js +7 -14
- package/dist/index374.js +49 -18
- package/dist/index375.js +6 -56
- package/dist/index376.js +10 -27
- package/dist/index377.js +7 -7
- package/dist/index378.js +27 -51
- package/dist/index379.js +2 -6
- package/dist/index380.js +69 -11
- package/dist/index381.js +166 -6
- package/dist/index382.js +20 -28
- package/dist/index383.js +20 -2
- package/dist/index384.js +61 -67
- package/dist/index385.js +36 -166
- package/dist/index387.js +31 -17
- package/dist/index388.js +10 -100
- package/dist/index389.js +3 -90
- package/dist/index390.js +4 -98
- package/dist/index391.js +12 -30
- package/dist/index392.js +7 -11
- package/dist/index393.js +11 -3
- package/dist/index394.js +4 -3
- package/dist/index395.js +33 -13
- package/dist/index396.js +31 -7
- package/dist/index397.js +28 -12
- package/dist/index398.js +61 -5
- package/dist/index399.js +101 -33
- package/dist/index400.js +91 -31
- package/dist/index401.js +97 -27
- package/dist/index402.js +16 -60
- package/dist/index403.js +240 -281
- package/dist/index405.js +1 -1
- package/dist/index410.js +1 -1
- package/dist/index411.js +2 -2
- package/dist/index42.js +2 -2
- package/package.json +1 -1
package/dist/index403.js
CHANGED
|
@@ -1,273 +1,273 @@
|
|
|
1
|
-
import { evaluate as
|
|
2
|
-
function
|
|
1
|
+
import { evaluate as M, getSide as B, getSideAxis as F, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, clamp as _, getAlignment as $, getOppositeAxis as ee, sides as te, getPaddingObject as N, getAlignmentAxis as U, getAxisLength as q, min as X, rectToClientRect as Y } from "./index404.js";
|
|
2
|
+
function W(t, e, m) {
|
|
3
3
|
let {
|
|
4
|
-
reference:
|
|
5
|
-
floating:
|
|
4
|
+
reference: i,
|
|
5
|
+
floating: r
|
|
6
6
|
} = t;
|
|
7
|
-
const n = F(e),
|
|
7
|
+
const n = F(e), s = U(e), o = q(s), d = B(e), u = n === "y", g = i.x + i.width / 2 - r.width / 2, l = i.y + i.height / 2 - r.height / 2, f = i[o] / 2 - r[o] / 2;
|
|
8
8
|
let a;
|
|
9
|
-
switch (
|
|
9
|
+
switch (d) {
|
|
10
10
|
case "top":
|
|
11
11
|
a = {
|
|
12
|
-
x:
|
|
13
|
-
y:
|
|
12
|
+
x: g,
|
|
13
|
+
y: i.y - r.height
|
|
14
14
|
};
|
|
15
15
|
break;
|
|
16
16
|
case "bottom":
|
|
17
17
|
a = {
|
|
18
|
-
x:
|
|
19
|
-
y:
|
|
18
|
+
x: g,
|
|
19
|
+
y: i.y + i.height
|
|
20
20
|
};
|
|
21
21
|
break;
|
|
22
22
|
case "right":
|
|
23
23
|
a = {
|
|
24
|
-
x:
|
|
25
|
-
y:
|
|
24
|
+
x: i.x + i.width,
|
|
25
|
+
y: l
|
|
26
26
|
};
|
|
27
27
|
break;
|
|
28
28
|
case "left":
|
|
29
29
|
a = {
|
|
30
|
-
x:
|
|
31
|
-
y:
|
|
30
|
+
x: i.x - r.width,
|
|
31
|
+
y: l
|
|
32
32
|
};
|
|
33
33
|
break;
|
|
34
34
|
default:
|
|
35
35
|
a = {
|
|
36
|
-
x:
|
|
37
|
-
y:
|
|
36
|
+
x: i.x,
|
|
37
|
+
y: i.y
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
switch (
|
|
40
|
+
switch ($(e)) {
|
|
41
41
|
case "start":
|
|
42
|
-
a[
|
|
42
|
+
a[s] -= f * (m && u ? -1 : 1);
|
|
43
43
|
break;
|
|
44
44
|
case "end":
|
|
45
|
-
a[
|
|
45
|
+
a[s] += f * (m && u ? -1 : 1);
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
48
48
|
return a;
|
|
49
49
|
}
|
|
50
|
-
async function
|
|
51
|
-
var
|
|
50
|
+
async function ne(t, e) {
|
|
51
|
+
var m;
|
|
52
52
|
e === void 0 && (e = {});
|
|
53
53
|
const {
|
|
54
|
-
x:
|
|
55
|
-
y:
|
|
54
|
+
x: i,
|
|
55
|
+
y: r,
|
|
56
56
|
platform: n,
|
|
57
|
-
rects:
|
|
58
|
-
elements:
|
|
59
|
-
strategy:
|
|
57
|
+
rects: s,
|
|
58
|
+
elements: o,
|
|
59
|
+
strategy: d
|
|
60
60
|
} = t, {
|
|
61
|
-
boundary:
|
|
62
|
-
rootBoundary:
|
|
63
|
-
elementContext:
|
|
64
|
-
altBoundary:
|
|
61
|
+
boundary: u = "clippingAncestors",
|
|
62
|
+
rootBoundary: g = "viewport",
|
|
63
|
+
elementContext: l = "floating",
|
|
64
|
+
altBoundary: f = !1,
|
|
65
65
|
padding: a = 0
|
|
66
|
-
} =
|
|
67
|
-
element: (
|
|
68
|
-
boundary:
|
|
69
|
-
rootBoundary:
|
|
70
|
-
strategy:
|
|
71
|
-
})),
|
|
72
|
-
x:
|
|
73
|
-
y:
|
|
74
|
-
width:
|
|
75
|
-
height:
|
|
76
|
-
} :
|
|
66
|
+
} = M(e, t), c = N(a), h = o[f ? l === "floating" ? "reference" : "floating" : l], w = Y(await n.getClippingRect({
|
|
67
|
+
element: (m = await (n.isElement == null ? void 0 : n.isElement(h))) == null || m ? h : h.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(o.floating)),
|
|
68
|
+
boundary: u,
|
|
69
|
+
rootBoundary: g,
|
|
70
|
+
strategy: d
|
|
71
|
+
})), y = l === "floating" ? {
|
|
72
|
+
x: i,
|
|
73
|
+
y: r,
|
|
74
|
+
width: s.floating.width,
|
|
75
|
+
height: s.floating.height
|
|
76
|
+
} : s.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(o.floating)), v = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
|
|
77
77
|
x: 1,
|
|
78
78
|
y: 1
|
|
79
79
|
} : {
|
|
80
80
|
x: 1,
|
|
81
81
|
y: 1
|
|
82
|
-
}, O =
|
|
83
|
-
elements:
|
|
84
|
-
rect:
|
|
82
|
+
}, O = Y(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
83
|
+
elements: o,
|
|
84
|
+
rect: y,
|
|
85
85
|
offsetParent: p,
|
|
86
|
-
strategy:
|
|
87
|
-
}) :
|
|
86
|
+
strategy: d
|
|
87
|
+
}) : y);
|
|
88
88
|
return {
|
|
89
|
-
top: (w.top - O.top +
|
|
90
|
-
bottom: (O.bottom - w.bottom +
|
|
91
|
-
left: (w.left - O.left +
|
|
92
|
-
right: (O.right - w.right +
|
|
89
|
+
top: (w.top - O.top + c.top) / v.y,
|
|
90
|
+
bottom: (O.bottom - w.bottom + c.bottom) / v.y,
|
|
91
|
+
left: (w.left - O.left + c.left) / v.x,
|
|
92
|
+
right: (O.right - w.right + c.right) / v.x
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const ie = 50, ce = async (t, e, m) => {
|
|
96
96
|
const {
|
|
97
|
-
placement:
|
|
98
|
-
strategy:
|
|
97
|
+
placement: i = "bottom",
|
|
98
|
+
strategy: r = "absolute",
|
|
99
99
|
middleware: n = [],
|
|
100
|
-
platform:
|
|
101
|
-
} =
|
|
102
|
-
...
|
|
103
|
-
detectOverflow:
|
|
104
|
-
},
|
|
105
|
-
let
|
|
100
|
+
platform: s
|
|
101
|
+
} = m, o = s.detectOverflow ? s : {
|
|
102
|
+
...s,
|
|
103
|
+
detectOverflow: ne
|
|
104
|
+
}, d = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
105
|
+
let u = await s.getElementRects({
|
|
106
106
|
reference: t,
|
|
107
107
|
floating: e,
|
|
108
|
-
strategy:
|
|
108
|
+
strategy: r
|
|
109
109
|
}), {
|
|
110
|
-
x:
|
|
111
|
-
y:
|
|
112
|
-
} =
|
|
113
|
-
const
|
|
114
|
-
for (let
|
|
115
|
-
const h = n[
|
|
110
|
+
x: g,
|
|
111
|
+
y: l
|
|
112
|
+
} = W(u, i, d), f = i, a = 0;
|
|
113
|
+
const c = {};
|
|
114
|
+
for (let x = 0; x < n.length; x++) {
|
|
115
|
+
const h = n[x];
|
|
116
116
|
if (!h)
|
|
117
117
|
continue;
|
|
118
118
|
const {
|
|
119
119
|
name: w,
|
|
120
|
-
fn:
|
|
120
|
+
fn: y
|
|
121
121
|
} = h, {
|
|
122
122
|
x: p,
|
|
123
|
-
y,
|
|
123
|
+
y: v,
|
|
124
124
|
data: O,
|
|
125
|
-
reset:
|
|
126
|
-
} = await
|
|
127
|
-
x:
|
|
128
|
-
y:
|
|
129
|
-
initialPlacement:
|
|
130
|
-
placement:
|
|
131
|
-
strategy:
|
|
132
|
-
middlewareData:
|
|
133
|
-
rects:
|
|
134
|
-
platform:
|
|
125
|
+
reset: b
|
|
126
|
+
} = await y({
|
|
127
|
+
x: g,
|
|
128
|
+
y: l,
|
|
129
|
+
initialPlacement: i,
|
|
130
|
+
placement: f,
|
|
131
|
+
strategy: r,
|
|
132
|
+
middlewareData: c,
|
|
133
|
+
rects: u,
|
|
134
|
+
platform: o,
|
|
135
135
|
elements: {
|
|
136
136
|
reference: t,
|
|
137
137
|
floating: e
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
|
-
|
|
141
|
-
...
|
|
140
|
+
g = p ?? g, l = v ?? l, c[w] = {
|
|
141
|
+
...c[w],
|
|
142
142
|
...O
|
|
143
|
-
},
|
|
143
|
+
}, b && a < ie && (a++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (u = b.rects === !0 ? await s.getElementRects({
|
|
144
144
|
reference: t,
|
|
145
145
|
floating: e,
|
|
146
|
-
strategy:
|
|
147
|
-
}) :
|
|
148
|
-
x:
|
|
149
|
-
y:
|
|
150
|
-
} =
|
|
146
|
+
strategy: r
|
|
147
|
+
}) : b.rects), {
|
|
148
|
+
x: g,
|
|
149
|
+
y: l
|
|
150
|
+
} = W(u, f, d)), x = -1);
|
|
151
151
|
}
|
|
152
152
|
return {
|
|
153
|
-
x:
|
|
154
|
-
y:
|
|
155
|
-
placement:
|
|
156
|
-
strategy:
|
|
157
|
-
middlewareData:
|
|
153
|
+
x: g,
|
|
154
|
+
y: l,
|
|
155
|
+
placement: f,
|
|
156
|
+
strategy: r,
|
|
157
|
+
middlewareData: c
|
|
158
158
|
};
|
|
159
|
-
},
|
|
159
|
+
}, le = (t) => ({
|
|
160
160
|
name: "arrow",
|
|
161
161
|
options: t,
|
|
162
162
|
async fn(e) {
|
|
163
163
|
const {
|
|
164
|
-
x:
|
|
165
|
-
y:
|
|
166
|
-
placement:
|
|
164
|
+
x: m,
|
|
165
|
+
y: i,
|
|
166
|
+
placement: r,
|
|
167
167
|
rects: n,
|
|
168
|
-
platform:
|
|
169
|
-
elements:
|
|
170
|
-
middlewareData:
|
|
168
|
+
platform: s,
|
|
169
|
+
elements: o,
|
|
170
|
+
middlewareData: d
|
|
171
171
|
} = e, {
|
|
172
|
-
element:
|
|
173
|
-
padding:
|
|
174
|
-
} =
|
|
175
|
-
if (
|
|
172
|
+
element: u,
|
|
173
|
+
padding: g = 0
|
|
174
|
+
} = M(t, e) || {};
|
|
175
|
+
if (u == null)
|
|
176
176
|
return {};
|
|
177
|
-
const
|
|
178
|
-
x:
|
|
179
|
-
y:
|
|
180
|
-
}, a =
|
|
181
|
-
let
|
|
182
|
-
(!
|
|
183
|
-
const
|
|
177
|
+
const l = N(g), f = {
|
|
178
|
+
x: m,
|
|
179
|
+
y: i
|
|
180
|
+
}, a = U(r), c = q(a), x = await s.getDimensions(u), h = a === "y", w = h ? "top" : "left", y = h ? "bottom" : "right", p = h ? "clientHeight" : "clientWidth", v = n.reference[c] + n.reference[a] - f[a] - n.floating[c], O = f[a] - n.reference[a], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
181
|
+
let D = b ? b[p] : 0;
|
|
182
|
+
(!D || !await (s.isElement == null ? void 0 : s.isElement(b))) && (D = o.floating[p] || n.floating[c]);
|
|
183
|
+
const V = v / 2 - O / 2, E = D / 2 - x[c] / 2 - 1, C = X(l[w], E), H = X(l[y], E), T = C, j = D - x[c] - H, A = D / 2 - x[c] / 2 + V, L = _(T, A, j), S = !d.arrow && $(r) != null && A !== L && n.reference[c] / 2 - (A < T ? C : H) - x[c] / 2 < 0, P = S ? A < T ? A - T : A - j : 0;
|
|
184
184
|
return {
|
|
185
|
-
[a]:
|
|
185
|
+
[a]: f[a] + P,
|
|
186
186
|
data: {
|
|
187
|
-
[a]:
|
|
188
|
-
centerOffset:
|
|
189
|
-
...
|
|
190
|
-
alignmentOffset:
|
|
187
|
+
[a]: L,
|
|
188
|
+
centerOffset: A - L - P,
|
|
189
|
+
...S && {
|
|
190
|
+
alignmentOffset: P
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
-
reset:
|
|
193
|
+
reset: S
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
}),
|
|
196
|
+
}), re = function(t) {
|
|
197
197
|
return t === void 0 && (t = {}), {
|
|
198
198
|
name: "flip",
|
|
199
199
|
options: t,
|
|
200
200
|
async fn(e) {
|
|
201
|
-
var
|
|
201
|
+
var m, i;
|
|
202
202
|
const {
|
|
203
|
-
placement:
|
|
203
|
+
placement: r,
|
|
204
204
|
middlewareData: n,
|
|
205
|
-
rects:
|
|
206
|
-
initialPlacement:
|
|
207
|
-
platform:
|
|
208
|
-
elements:
|
|
205
|
+
rects: s,
|
|
206
|
+
initialPlacement: o,
|
|
207
|
+
platform: d,
|
|
208
|
+
elements: u
|
|
209
209
|
} = e, {
|
|
210
|
-
mainAxis:
|
|
211
|
-
crossAxis:
|
|
212
|
-
fallbackPlacements:
|
|
210
|
+
mainAxis: g = !0,
|
|
211
|
+
crossAxis: l = !0,
|
|
212
|
+
fallbackPlacements: f,
|
|
213
213
|
fallbackStrategy: a = "bestFit",
|
|
214
|
-
fallbackAxisSideDirection:
|
|
215
|
-
flipAlignment:
|
|
214
|
+
fallbackAxisSideDirection: c = "none",
|
|
215
|
+
flipAlignment: x = !0,
|
|
216
216
|
...h
|
|
217
|
-
} =
|
|
218
|
-
if ((
|
|
217
|
+
} = M(t, e);
|
|
218
|
+
if ((m = n.arrow) != null && m.alignmentOffset)
|
|
219
219
|
return {};
|
|
220
|
-
const w =
|
|
221
|
-
!
|
|
222
|
-
const
|
|
223
|
-
let
|
|
224
|
-
if (
|
|
225
|
-
const
|
|
226
|
-
|
|
220
|
+
const w = B(r), y = F(o), p = B(o) === o, v = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), O = f || (p || !x ? [J(o)] : K(o)), b = c !== "none";
|
|
221
|
+
!f && b && O.push(...Q(o, x, c, v));
|
|
222
|
+
const D = [o, ...O], V = await d.detectOverflow(e, h), E = [];
|
|
223
|
+
let C = ((i = n.flip) == null ? void 0 : i.overflows) || [];
|
|
224
|
+
if (g && E.push(V[w]), l) {
|
|
225
|
+
const A = Z(r, s, v);
|
|
226
|
+
E.push(V[A[0]], V[A[1]]);
|
|
227
227
|
}
|
|
228
|
-
if (
|
|
229
|
-
placement:
|
|
230
|
-
overflows:
|
|
231
|
-
}], !
|
|
232
|
-
var
|
|
233
|
-
const
|
|
234
|
-
if (
|
|
228
|
+
if (C = [...C, {
|
|
229
|
+
placement: r,
|
|
230
|
+
overflows: E
|
|
231
|
+
}], !E.every((A) => A <= 0)) {
|
|
232
|
+
var H, T;
|
|
233
|
+
const A = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, L = D[A];
|
|
234
|
+
if (L && (!(l === "alignment" ? y !== F(L) : !1) || // We leave the current main axis only if every placement on that axis
|
|
235
235
|
// overflows the main axis.
|
|
236
|
-
|
|
236
|
+
C.every((R) => F(R.placement) === y ? R.overflows[0] > 0 : !0)))
|
|
237
237
|
return {
|
|
238
238
|
data: {
|
|
239
|
-
index:
|
|
240
|
-
overflows:
|
|
239
|
+
index: A,
|
|
240
|
+
overflows: C
|
|
241
241
|
},
|
|
242
242
|
reset: {
|
|
243
|
-
placement:
|
|
243
|
+
placement: L
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
let
|
|
247
|
-
if (!
|
|
246
|
+
let S = (T = C.filter((P) => P.overflows[0] <= 0).sort((P, R) => P.overflows[1] - R.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
247
|
+
if (!S)
|
|
248
248
|
switch (a) {
|
|
249
249
|
case "bestFit": {
|
|
250
|
-
var
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
const
|
|
254
|
-
return
|
|
250
|
+
var j;
|
|
251
|
+
const P = (j = C.filter((R) => {
|
|
252
|
+
if (b) {
|
|
253
|
+
const k = F(R.placement);
|
|
254
|
+
return k === y || // Create a bias to the `y` side axis due to horizontal
|
|
255
255
|
// reading directions favoring greater width.
|
|
256
|
-
|
|
256
|
+
k === "y";
|
|
257
257
|
}
|
|
258
258
|
return !0;
|
|
259
|
-
}).map((
|
|
260
|
-
|
|
259
|
+
}).map((R) => [R.placement, R.overflows.filter((k) => k > 0).reduce((k, G) => k + G, 0)]).sort((R, k) => R[1] - k[1])[0]) == null ? void 0 : j[0];
|
|
260
|
+
P && (S = P);
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
263
|
case "initialPlacement":
|
|
264
|
-
|
|
264
|
+
S = o;
|
|
265
265
|
break;
|
|
266
266
|
}
|
|
267
|
-
if (
|
|
267
|
+
if (r !== S)
|
|
268
268
|
return {
|
|
269
269
|
reset: {
|
|
270
|
-
placement:
|
|
270
|
+
placement: S
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
}
|
|
@@ -275,7 +275,7 @@ const oe = 50, ce = async (t, e, d) => {
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
|
-
function
|
|
278
|
+
function z(t, e) {
|
|
279
279
|
return {
|
|
280
280
|
top: t.top - e.height,
|
|
281
281
|
right: t.right - e.width,
|
|
@@ -283,43 +283,43 @@ function I(t, e) {
|
|
|
283
283
|
left: t.left - e.width
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return
|
|
286
|
+
function I(t) {
|
|
287
|
+
return te.some((e) => t[e] >= 0);
|
|
288
288
|
}
|
|
289
|
-
const
|
|
289
|
+
const fe = function(t) {
|
|
290
290
|
return t === void 0 && (t = {}), {
|
|
291
291
|
name: "hide",
|
|
292
292
|
options: t,
|
|
293
293
|
async fn(e) {
|
|
294
294
|
const {
|
|
295
|
-
rects:
|
|
296
|
-
platform:
|
|
295
|
+
rects: m,
|
|
296
|
+
platform: i
|
|
297
297
|
} = e, {
|
|
298
|
-
strategy:
|
|
298
|
+
strategy: r = "referenceHidden",
|
|
299
299
|
...n
|
|
300
|
-
} =
|
|
301
|
-
switch (
|
|
300
|
+
} = M(t, e);
|
|
301
|
+
switch (r) {
|
|
302
302
|
case "referenceHidden": {
|
|
303
|
-
const
|
|
303
|
+
const s = await i.detectOverflow(e, {
|
|
304
304
|
...n,
|
|
305
305
|
elementContext: "reference"
|
|
306
|
-
}),
|
|
306
|
+
}), o = z(s, m.reference);
|
|
307
307
|
return {
|
|
308
308
|
data: {
|
|
309
|
-
referenceHiddenOffsets:
|
|
310
|
-
referenceHidden:
|
|
309
|
+
referenceHiddenOffsets: o,
|
|
310
|
+
referenceHidden: I(o)
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
case "escaped": {
|
|
315
|
-
const
|
|
315
|
+
const s = await i.detectOverflow(e, {
|
|
316
316
|
...n,
|
|
317
317
|
altBoundary: !0
|
|
318
|
-
}),
|
|
318
|
+
}), o = z(s, m.floating);
|
|
319
319
|
return {
|
|
320
320
|
data: {
|
|
321
|
-
escapedOffsets:
|
|
322
|
-
escaped:
|
|
321
|
+
escapedOffsets: o,
|
|
322
|
+
escaped: I(o)
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
}
|
|
@@ -329,161 +329,120 @@ const me = function(t) {
|
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
}, se = /* @__PURE__ */ new Set(["left", "top"]);
|
|
332
|
-
async function
|
|
332
|
+
async function oe(t, e) {
|
|
333
333
|
const {
|
|
334
|
-
placement:
|
|
335
|
-
platform:
|
|
336
|
-
elements:
|
|
337
|
-
} = t, n = await (
|
|
334
|
+
placement: m,
|
|
335
|
+
platform: i,
|
|
336
|
+
elements: r
|
|
337
|
+
} = t, n = await (i.isRTL == null ? void 0 : i.isRTL(r.floating)), s = B(m), o = $(m), d = F(m) === "y", u = se.has(s) ? -1 : 1, g = n && d ? -1 : 1, l = M(e, t);
|
|
338
338
|
let {
|
|
339
|
-
mainAxis:
|
|
339
|
+
mainAxis: f,
|
|
340
340
|
crossAxis: a,
|
|
341
|
-
alignmentAxis:
|
|
342
|
-
} = typeof
|
|
343
|
-
mainAxis:
|
|
341
|
+
alignmentAxis: c
|
|
342
|
+
} = typeof l == "number" ? {
|
|
343
|
+
mainAxis: l,
|
|
344
344
|
crossAxis: 0,
|
|
345
345
|
alignmentAxis: null
|
|
346
346
|
} : {
|
|
347
|
-
mainAxis:
|
|
348
|
-
crossAxis:
|
|
349
|
-
alignmentAxis:
|
|
347
|
+
mainAxis: l.mainAxis || 0,
|
|
348
|
+
crossAxis: l.crossAxis || 0,
|
|
349
|
+
alignmentAxis: l.alignmentAxis
|
|
350
350
|
};
|
|
351
|
-
return
|
|
352
|
-
x: a *
|
|
353
|
-
y:
|
|
351
|
+
return o && typeof c == "number" && (a = o === "end" ? c * -1 : c), d ? {
|
|
352
|
+
x: a * g,
|
|
353
|
+
y: f * u
|
|
354
354
|
} : {
|
|
355
|
-
x:
|
|
356
|
-
y: a *
|
|
355
|
+
x: f * u,
|
|
356
|
+
y: a * g
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const me = function(t) {
|
|
360
360
|
return t === void 0 && (t = 0), {
|
|
361
361
|
name: "offset",
|
|
362
362
|
options: t,
|
|
363
363
|
async fn(e) {
|
|
364
|
-
var
|
|
364
|
+
var m, i;
|
|
365
365
|
const {
|
|
366
|
-
x:
|
|
366
|
+
x: r,
|
|
367
367
|
y: n,
|
|
368
|
-
placement:
|
|
369
|
-
middlewareData:
|
|
370
|
-
} = e,
|
|
371
|
-
return
|
|
372
|
-
x:
|
|
373
|
-
y: n +
|
|
368
|
+
placement: s,
|
|
369
|
+
middlewareData: o
|
|
370
|
+
} = e, d = await oe(e, t);
|
|
371
|
+
return s === ((m = o.offset) == null ? void 0 : m.placement) && (i = o.arrow) != null && i.alignmentOffset ? {} : {
|
|
372
|
+
x: r + d.x,
|
|
373
|
+
y: n + d.y,
|
|
374
374
|
data: {
|
|
375
|
-
...
|
|
376
|
-
placement:
|
|
375
|
+
...d,
|
|
376
|
+
placement: s
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
|
-
},
|
|
381
|
+
}, de = function(t) {
|
|
382
382
|
return t === void 0 && (t = {}), {
|
|
383
383
|
name: "shift",
|
|
384
384
|
options: t,
|
|
385
385
|
async fn(e) {
|
|
386
386
|
const {
|
|
387
|
-
x:
|
|
388
|
-
y:
|
|
389
|
-
placement:
|
|
387
|
+
x: m,
|
|
388
|
+
y: i,
|
|
389
|
+
placement: r,
|
|
390
390
|
platform: n
|
|
391
391
|
} = e, {
|
|
392
|
-
mainAxis:
|
|
393
|
-
crossAxis:
|
|
394
|
-
limiter:
|
|
392
|
+
mainAxis: s = !0,
|
|
393
|
+
crossAxis: o = !1,
|
|
394
|
+
limiter: d = {
|
|
395
395
|
fn: (w) => {
|
|
396
396
|
let {
|
|
397
|
-
x:
|
|
397
|
+
x: y,
|
|
398
398
|
y: p
|
|
399
399
|
} = w;
|
|
400
400
|
return {
|
|
401
|
-
x:
|
|
401
|
+
x: y,
|
|
402
402
|
y: p
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
|
-
...
|
|
407
|
-
} =
|
|
408
|
-
x:
|
|
409
|
-
y:
|
|
410
|
-
},
|
|
411
|
-
let
|
|
412
|
-
if (i) {
|
|
413
|
-
const w = a === "y" ? "top" : "left", v = a === "y" ? "bottom" : "right", p = l + r[w], y = l - r[v];
|
|
414
|
-
l = Y(p, l, y);
|
|
415
|
-
}
|
|
406
|
+
...u
|
|
407
|
+
} = M(t, e), g = {
|
|
408
|
+
x: m,
|
|
409
|
+
y: i
|
|
410
|
+
}, l = await n.detectOverflow(e, u), f = F(B(r)), a = ee(f);
|
|
411
|
+
let c = g[a], x = g[f];
|
|
416
412
|
if (s) {
|
|
417
|
-
const w =
|
|
418
|
-
|
|
413
|
+
const w = a === "y" ? "top" : "left", y = a === "y" ? "bottom" : "right", p = c + l[w], v = c - l[y];
|
|
414
|
+
c = _(p, c, v);
|
|
415
|
+
}
|
|
416
|
+
if (o) {
|
|
417
|
+
const w = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", p = x + l[w], v = x - l[y];
|
|
418
|
+
x = _(p, x, v);
|
|
419
419
|
}
|
|
420
|
-
const h =
|
|
420
|
+
const h = d.fn({
|
|
421
421
|
...e,
|
|
422
|
-
[a]:
|
|
423
|
-
[
|
|
422
|
+
[a]: c,
|
|
423
|
+
[f]: x
|
|
424
424
|
});
|
|
425
425
|
return {
|
|
426
426
|
...h,
|
|
427
427
|
data: {
|
|
428
|
-
x: h.x -
|
|
429
|
-
y: h.y -
|
|
428
|
+
x: h.x - m,
|
|
429
|
+
y: h.y - i,
|
|
430
430
|
enabled: {
|
|
431
|
-
[a]:
|
|
432
|
-
[
|
|
431
|
+
[a]: s,
|
|
432
|
+
[f]: o
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
|
-
}, ue = function(t) {
|
|
439
|
-
return t === void 0 && (t = {}), {
|
|
440
|
-
name: "size",
|
|
441
|
-
options: t,
|
|
442
|
-
async fn(e) {
|
|
443
|
-
var d, o;
|
|
444
|
-
const {
|
|
445
|
-
placement: f,
|
|
446
|
-
rects: n,
|
|
447
|
-
platform: i,
|
|
448
|
-
elements: s
|
|
449
|
-
} = e, {
|
|
450
|
-
apply: g = () => {
|
|
451
|
-
},
|
|
452
|
-
...x
|
|
453
|
-
} = _(t, e), c = await i.detectOverflow(e, x), r = W(f), m = B(f), a = F(f) === "y", {
|
|
454
|
-
width: l,
|
|
455
|
-
height: u
|
|
456
|
-
} = n.floating;
|
|
457
|
-
let h, w;
|
|
458
|
-
r === "top" || r === "bottom" ? (h = r, w = m === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = r, h = m === "end" ? "top" : "bottom");
|
|
459
|
-
const v = u - c.top - c.bottom, p = l - c.left - c.right, y = j(u - c[h], v), O = j(l - c[w], p), A = !e.middlewareData.shift;
|
|
460
|
-
let R = y, E = O;
|
|
461
|
-
if ((d = e.middlewareData.shift) != null && d.enabled.x && (E = p), (o = e.middlewareData.shift) != null && o.enabled.y && (R = v), A && !m) {
|
|
462
|
-
const P = $(c.left, 0), L = $(c.right, 0), k = $(c.top, 0), M = $(c.bottom, 0);
|
|
463
|
-
a ? E = l - 2 * (P !== 0 || L !== 0 ? P + L : $(c.left, c.right)) : R = u - 2 * (k !== 0 || M !== 0 ? k + M : $(c.top, c.bottom));
|
|
464
|
-
}
|
|
465
|
-
await g({
|
|
466
|
-
...e,
|
|
467
|
-
availableWidth: E,
|
|
468
|
-
availableHeight: R
|
|
469
|
-
});
|
|
470
|
-
const D = await i.getDimensions(s.floating);
|
|
471
|
-
return l !== D.width || u !== D.height ? {
|
|
472
|
-
reset: {
|
|
473
|
-
rects: !0
|
|
474
|
-
}
|
|
475
|
-
} : {};
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
438
|
};
|
|
479
439
|
export {
|
|
480
|
-
|
|
440
|
+
le as arrow,
|
|
481
441
|
ce as computePosition,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
ue as size
|
|
442
|
+
ne as detectOverflow,
|
|
443
|
+
re as flip,
|
|
444
|
+
fe as hide,
|
|
445
|
+
me as offset,
|
|
446
|
+
Y as rectToClientRect,
|
|
447
|
+
de as shift
|
|
489
448
|
};
|