overview-components 1.0.112 → 1.0.114
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 +1 -1
- package/dist/_virtual/FileSaver.min.js +0 -4
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/_commonjs-dynamic-modules.js +0 -6
- package/dist/_virtual/_commonjsHelpers.js +0 -28
- package/dist/_virtual/air-datepicker.js +0 -4
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/lodash.js +0 -4
- package/dist/_virtual/pdf.js +0 -4
- package/dist/_virtual/react.production.js +0 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -486
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -391
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -131
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
- package/dist/node_modules/@lit/localize/init/install.js +0 -11
- package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
- package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
- package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
- package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
- package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
- package/dist/node_modules/@lit/react/create-component.js +0 -35
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -250
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/air-datepicker/air-datepicker.js +0 -1147
- package/dist/node_modules/air-datepicker/index.es.js +0 -4
- package/dist/node_modules/chart.js/dist/chart.js +0 -7122
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
- package/dist/node_modules/lit-element/lit-element.js +0 -51
- package/dist/node_modules/lit-html/async-directive.js +0 -69
- package/dist/node_modules/lit-html/directive-helpers.js +0 -45
- package/dist/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/lit-html/directives/class-map.js +0 -34
- package/dist/node_modules/lit-html/directives/ref.js +0 -42
- package/dist/node_modules/lit-html/directives/repeat.js +0 -61
- package/dist/node_modules/lit-html/directives/style-map.js +0 -36
- package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
- package/dist/node_modules/lit-html/lit-html.js +0 -243
- package/dist/node_modules/lodash/lodash.js +0 -3678
- package/dist/node_modules/luxon/src/datetime.js +0 -1793
- package/dist/node_modules/luxon/src/duration.js +0 -723
- package/dist/node_modules/luxon/src/errors.js +0 -40
- package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
- package/dist/node_modules/luxon/src/impl/diff.js +0 -36
- package/dist/node_modules/luxon/src/impl/digits.js +0 -74
- package/dist/node_modules/luxon/src/impl/english.js +0 -138
- package/dist/node_modules/luxon/src/impl/formats.js +0 -150
- package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
- package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
- package/dist/node_modules/luxon/src/impl/locale.js +0 -282
- package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
- package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
- package/dist/node_modules/luxon/src/impl/util.js +0 -206
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
- package/dist/node_modules/luxon/src/info.js +0 -180
- package/dist/node_modules/luxon/src/interval.js +0 -466
- package/dist/node_modules/luxon/src/settings.js +0 -150
- package/dist/node_modules/luxon/src/zone.js +0 -88
- package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
- package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
- package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
- package/dist/node_modules/pdfjs-dist/build/pdf.js +0 -10310
- package/dist/node_modules/react/cjs/react.production.js +0 -417
- package/dist/node_modules/react/index.js +0 -10
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
function r(o) {
|
|
2
|
-
throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
3
|
-
}
|
|
4
|
-
export {
|
|
5
|
-
r as commonjsRequire
|
|
6
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function f(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
function l(e) {
|
|
6
|
-
if (e.__esModule) return e;
|
|
7
|
-
var r = e.default;
|
|
8
|
-
if (typeof r == "function") {
|
|
9
|
-
var t = function o() {
|
|
10
|
-
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
t.prototype = r.prototype;
|
|
13
|
-
} else t = {};
|
|
14
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
15
|
-
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
16
|
-
Object.defineProperty(t, o, n.get ? n : {
|
|
17
|
-
enumerable: !0,
|
|
18
|
-
get: function() {
|
|
19
|
-
return e[o];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}), t;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
u as commonjsGlobal,
|
|
26
|
-
l as getAugmentedNamespace,
|
|
27
|
-
f as getDefaultExportFromCjs
|
|
28
|
-
};
|
package/dist/_virtual/index.js
DELETED
package/dist/_virtual/lodash.js
DELETED
package/dist/_virtual/pdf.js
DELETED
|
@@ -1,486 +0,0 @@
|
|
|
1
|
-
import { evaluate as $, getSide as W, getSideAxis as B, getOppositePlacement as Z, getExpandedPlacements as ee, getOppositeAxisPlacements as te, getAlignmentSides as ne, clamp as I, getAlignment as _, min as z, max as j, getPaddingObject as K, getAlignmentAxis as N, rectToClientRect as X, getOppositeAxis as ie, getAxisLength as Q, sides as se } from "../../utils/dist/floating-ui.utils.js";
|
|
2
|
-
function q(t, e, m) {
|
|
3
|
-
let {
|
|
4
|
-
reference: o,
|
|
5
|
-
floating: r
|
|
6
|
-
} = t;
|
|
7
|
-
const n = B(e), s = N(e), f = Q(s), g = W(e), u = n === "y", a = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, d = o[f] / 2 - r[f] / 2;
|
|
8
|
-
let i;
|
|
9
|
-
switch (g) {
|
|
10
|
-
case "top":
|
|
11
|
-
i = {
|
|
12
|
-
x: a,
|
|
13
|
-
y: o.y - r.height
|
|
14
|
-
};
|
|
15
|
-
break;
|
|
16
|
-
case "bottom":
|
|
17
|
-
i = {
|
|
18
|
-
x: a,
|
|
19
|
-
y: o.y + o.height
|
|
20
|
-
};
|
|
21
|
-
break;
|
|
22
|
-
case "right":
|
|
23
|
-
i = {
|
|
24
|
-
x: o.x + o.width,
|
|
25
|
-
y: l
|
|
26
|
-
};
|
|
27
|
-
break;
|
|
28
|
-
case "left":
|
|
29
|
-
i = {
|
|
30
|
-
x: o.x - r.width,
|
|
31
|
-
y: l
|
|
32
|
-
};
|
|
33
|
-
break;
|
|
34
|
-
default:
|
|
35
|
-
i = {
|
|
36
|
-
x: o.x,
|
|
37
|
-
y: o.y
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
switch (_(e)) {
|
|
41
|
-
case "start":
|
|
42
|
-
i[s] -= d * (m && u ? -1 : 1);
|
|
43
|
-
break;
|
|
44
|
-
case "end":
|
|
45
|
-
i[s] += d * (m && u ? -1 : 1);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
return i;
|
|
49
|
-
}
|
|
50
|
-
const le = async (t, e, m) => {
|
|
51
|
-
const {
|
|
52
|
-
placement: o = "bottom",
|
|
53
|
-
strategy: r = "absolute",
|
|
54
|
-
middleware: n = [],
|
|
55
|
-
platform: s
|
|
56
|
-
} = m, f = n.filter(Boolean), g = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
57
|
-
let u = await s.getElementRects({
|
|
58
|
-
reference: t,
|
|
59
|
-
floating: e,
|
|
60
|
-
strategy: r
|
|
61
|
-
}), {
|
|
62
|
-
x: a,
|
|
63
|
-
y: l
|
|
64
|
-
} = q(u, o, g), d = o, i = {}, c = 0;
|
|
65
|
-
for (let x = 0; x < f.length; x++) {
|
|
66
|
-
const {
|
|
67
|
-
name: w,
|
|
68
|
-
fn: h
|
|
69
|
-
} = f[x], {
|
|
70
|
-
x: p,
|
|
71
|
-
y,
|
|
72
|
-
data: A,
|
|
73
|
-
reset: v
|
|
74
|
-
} = await h({
|
|
75
|
-
x: a,
|
|
76
|
-
y: l,
|
|
77
|
-
initialPlacement: o,
|
|
78
|
-
placement: d,
|
|
79
|
-
strategy: r,
|
|
80
|
-
middlewareData: i,
|
|
81
|
-
rects: u,
|
|
82
|
-
platform: s,
|
|
83
|
-
elements: {
|
|
84
|
-
reference: t,
|
|
85
|
-
floating: e
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
a = p ?? a, l = y ?? l, i = {
|
|
89
|
-
...i,
|
|
90
|
-
[w]: {
|
|
91
|
-
...i[w],
|
|
92
|
-
...A
|
|
93
|
-
}
|
|
94
|
-
}, v && c <= 50 && (c++, typeof v == "object" && (v.placement && (d = v.placement), v.rects && (u = v.rects === !0 ? await s.getElementRects({
|
|
95
|
-
reference: t,
|
|
96
|
-
floating: e,
|
|
97
|
-
strategy: r
|
|
98
|
-
}) : v.rects), {
|
|
99
|
-
x: a,
|
|
100
|
-
y: l
|
|
101
|
-
} = q(u, d, g)), x = -1);
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
x: a,
|
|
105
|
-
y: l,
|
|
106
|
-
placement: d,
|
|
107
|
-
strategy: r,
|
|
108
|
-
middlewareData: i
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
async function Y(t, e) {
|
|
112
|
-
var m;
|
|
113
|
-
e === void 0 && (e = {});
|
|
114
|
-
const {
|
|
115
|
-
x: o,
|
|
116
|
-
y: r,
|
|
117
|
-
platform: n,
|
|
118
|
-
rects: s,
|
|
119
|
-
elements: f,
|
|
120
|
-
strategy: g
|
|
121
|
-
} = t, {
|
|
122
|
-
boundary: u = "clippingAncestors",
|
|
123
|
-
rootBoundary: a = "viewport",
|
|
124
|
-
elementContext: l = "floating",
|
|
125
|
-
altBoundary: d = !1,
|
|
126
|
-
padding: i = 0
|
|
127
|
-
} = $(e, t), c = K(i), w = f[d ? l === "floating" ? "reference" : "floating" : l], h = X(await n.getClippingRect({
|
|
128
|
-
element: (m = await (n.isElement == null ? void 0 : n.isElement(w))) == null || m ? w : w.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(f.floating)),
|
|
129
|
-
boundary: u,
|
|
130
|
-
rootBoundary: a,
|
|
131
|
-
strategy: g
|
|
132
|
-
})), p = l === "floating" ? {
|
|
133
|
-
x: o,
|
|
134
|
-
y: r,
|
|
135
|
-
width: s.floating.width,
|
|
136
|
-
height: s.floating.height
|
|
137
|
-
} : s.reference, y = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(f.floating)), A = await (n.isElement == null ? void 0 : n.isElement(y)) ? await (n.getScale == null ? void 0 : n.getScale(y)) || {
|
|
138
|
-
x: 1,
|
|
139
|
-
y: 1
|
|
140
|
-
} : {
|
|
141
|
-
x: 1,
|
|
142
|
-
y: 1
|
|
143
|
-
}, v = X(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
144
|
-
elements: f,
|
|
145
|
-
rect: p,
|
|
146
|
-
offsetParent: y,
|
|
147
|
-
strategy: g
|
|
148
|
-
}) : p);
|
|
149
|
-
return {
|
|
150
|
-
top: (h.top - v.top + c.top) / A.y,
|
|
151
|
-
bottom: (v.bottom - h.bottom + c.bottom) / A.y,
|
|
152
|
-
left: (h.left - v.left + c.left) / A.x,
|
|
153
|
-
right: (v.right - h.right + c.right) / A.x
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
const ce = (t) => ({
|
|
157
|
-
name: "arrow",
|
|
158
|
-
options: t,
|
|
159
|
-
async fn(e) {
|
|
160
|
-
const {
|
|
161
|
-
x: m,
|
|
162
|
-
y: o,
|
|
163
|
-
placement: r,
|
|
164
|
-
rects: n,
|
|
165
|
-
platform: s,
|
|
166
|
-
elements: f,
|
|
167
|
-
middlewareData: g
|
|
168
|
-
} = e, {
|
|
169
|
-
element: u,
|
|
170
|
-
padding: a = 0
|
|
171
|
-
} = $(t, e) || {};
|
|
172
|
-
if (u == null)
|
|
173
|
-
return {};
|
|
174
|
-
const l = K(a), d = {
|
|
175
|
-
x: m,
|
|
176
|
-
y: o
|
|
177
|
-
}, i = N(r), c = Q(i), x = await s.getDimensions(u), w = i === "y", h = w ? "top" : "left", p = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", A = n.reference[c] + n.reference[i] - d[i] - n.floating[c], v = d[i] - n.reference[i], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
178
|
-
let O = T ? T[y] : 0;
|
|
179
|
-
(!O || !await (s.isElement == null ? void 0 : s.isElement(T))) && (O = f.floating[y] || n.floating[c]);
|
|
180
|
-
const k = A / 2 - v / 2, R = O / 2 - x[c] / 2 - 1, b = z(l[h], R), L = z(l[p], R), C = b, M = O - x[c] - L, S = O / 2 - x[c] / 2 + k, P = I(C, S, M), V = !g.arrow && _(r) != null && S !== P && n.reference[c] / 2 - (S < C ? b : L) - x[c] / 2 < 0, E = V ? S < C ? S - C : S - M : 0;
|
|
181
|
-
return {
|
|
182
|
-
[i]: d[i] + E,
|
|
183
|
-
data: {
|
|
184
|
-
[i]: P,
|
|
185
|
-
centerOffset: S - P - E,
|
|
186
|
-
...V && {
|
|
187
|
-
alignmentOffset: E
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
reset: V
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
}), re = function(t) {
|
|
194
|
-
return t === void 0 && (t = {}), {
|
|
195
|
-
name: "flip",
|
|
196
|
-
options: t,
|
|
197
|
-
async fn(e) {
|
|
198
|
-
var m, o;
|
|
199
|
-
const {
|
|
200
|
-
placement: r,
|
|
201
|
-
middlewareData: n,
|
|
202
|
-
rects: s,
|
|
203
|
-
initialPlacement: f,
|
|
204
|
-
platform: g,
|
|
205
|
-
elements: u
|
|
206
|
-
} = e, {
|
|
207
|
-
mainAxis: a = !0,
|
|
208
|
-
crossAxis: l = !0,
|
|
209
|
-
fallbackPlacements: d,
|
|
210
|
-
fallbackStrategy: i = "bestFit",
|
|
211
|
-
fallbackAxisSideDirection: c = "none",
|
|
212
|
-
flipAlignment: x = !0,
|
|
213
|
-
...w
|
|
214
|
-
} = $(t, e);
|
|
215
|
-
if ((m = n.arrow) != null && m.alignmentOffset)
|
|
216
|
-
return {};
|
|
217
|
-
const h = W(r), p = B(f), y = W(f) === f, A = await (g.isRTL == null ? void 0 : g.isRTL(u.floating)), v = d || (y || !x ? [Z(f)] : ee(f)), T = c !== "none";
|
|
218
|
-
!d && T && v.push(...te(f, x, c, A));
|
|
219
|
-
const O = [f, ...v], k = await Y(e, w), R = [];
|
|
220
|
-
let b = ((o = n.flip) == null ? void 0 : o.overflows) || [];
|
|
221
|
-
if (a && R.push(k[h]), l) {
|
|
222
|
-
const P = ne(r, s, A);
|
|
223
|
-
R.push(k[P[0]], k[P[1]]);
|
|
224
|
-
}
|
|
225
|
-
if (b = [...b, {
|
|
226
|
-
placement: r,
|
|
227
|
-
overflows: R
|
|
228
|
-
}], !R.every((P) => P <= 0)) {
|
|
229
|
-
var L, C;
|
|
230
|
-
const P = (((L = n.flip) == null ? void 0 : L.index) || 0) + 1, V = O[P];
|
|
231
|
-
if (V) {
|
|
232
|
-
var M;
|
|
233
|
-
const H = l === "alignment" ? p !== B(V) : !1, D = ((M = b[0]) == null ? void 0 : M.overflows[0]) > 0;
|
|
234
|
-
if (!H || D)
|
|
235
|
-
return {
|
|
236
|
-
data: {
|
|
237
|
-
index: P,
|
|
238
|
-
overflows: b
|
|
239
|
-
},
|
|
240
|
-
reset: {
|
|
241
|
-
placement: V
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
let E = (C = b.filter((H) => H.overflows[0] <= 0).sort((H, D) => H.overflows[1] - D.overflows[1])[0]) == null ? void 0 : C.placement;
|
|
246
|
-
if (!E)
|
|
247
|
-
switch (i) {
|
|
248
|
-
case "bestFit": {
|
|
249
|
-
var S;
|
|
250
|
-
const H = (S = b.filter((D) => {
|
|
251
|
-
if (T) {
|
|
252
|
-
const F = B(D.placement);
|
|
253
|
-
return F === p || // Create a bias to the `y` side axis due to horizontal
|
|
254
|
-
// reading directions favoring greater width.
|
|
255
|
-
F === "y";
|
|
256
|
-
}
|
|
257
|
-
return !0;
|
|
258
|
-
}).map((D) => [D.placement, D.overflows.filter((F) => F > 0).reduce((F, U) => F + U, 0)]).sort((D, F) => D[1] - F[1])[0]) == null ? void 0 : S[0];
|
|
259
|
-
H && (E = H);
|
|
260
|
-
break;
|
|
261
|
-
}
|
|
262
|
-
case "initialPlacement":
|
|
263
|
-
E = f;
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
if (r !== E)
|
|
267
|
-
return {
|
|
268
|
-
reset: {
|
|
269
|
-
placement: E
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
return {};
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
function G(t, e) {
|
|
278
|
-
return {
|
|
279
|
-
top: t.top - e.height,
|
|
280
|
-
right: t.right - e.width,
|
|
281
|
-
bottom: t.bottom - e.height,
|
|
282
|
-
left: t.left - e.width
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
function J(t) {
|
|
286
|
-
return se.some((e) => t[e] >= 0);
|
|
287
|
-
}
|
|
288
|
-
const fe = function(t) {
|
|
289
|
-
return t === void 0 && (t = {}), {
|
|
290
|
-
name: "hide",
|
|
291
|
-
options: t,
|
|
292
|
-
async fn(e) {
|
|
293
|
-
const {
|
|
294
|
-
rects: m
|
|
295
|
-
} = e, {
|
|
296
|
-
strategy: o = "referenceHidden",
|
|
297
|
-
...r
|
|
298
|
-
} = $(t, e);
|
|
299
|
-
switch (o) {
|
|
300
|
-
case "referenceHidden": {
|
|
301
|
-
const n = await Y(e, {
|
|
302
|
-
...r,
|
|
303
|
-
elementContext: "reference"
|
|
304
|
-
}), s = G(n, m.reference);
|
|
305
|
-
return {
|
|
306
|
-
data: {
|
|
307
|
-
referenceHiddenOffsets: s,
|
|
308
|
-
referenceHidden: J(s)
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
case "escaped": {
|
|
313
|
-
const n = await Y(e, {
|
|
314
|
-
...r,
|
|
315
|
-
altBoundary: !0
|
|
316
|
-
}), s = G(n, m.floating);
|
|
317
|
-
return {
|
|
318
|
-
data: {
|
|
319
|
-
escapedOffsets: s,
|
|
320
|
-
escaped: J(s)
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
default:
|
|
325
|
-
return {};
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
async function oe(t, e) {
|
|
331
|
-
const {
|
|
332
|
-
placement: m,
|
|
333
|
-
platform: o,
|
|
334
|
-
elements: r
|
|
335
|
-
} = t, n = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = W(m), f = _(m), g = B(m) === "y", u = ["left", "top"].includes(s) ? -1 : 1, a = n && g ? -1 : 1, l = $(e, t);
|
|
336
|
-
let {
|
|
337
|
-
mainAxis: d,
|
|
338
|
-
crossAxis: i,
|
|
339
|
-
alignmentAxis: c
|
|
340
|
-
} = typeof l == "number" ? {
|
|
341
|
-
mainAxis: l,
|
|
342
|
-
crossAxis: 0,
|
|
343
|
-
alignmentAxis: null
|
|
344
|
-
} : {
|
|
345
|
-
mainAxis: l.mainAxis || 0,
|
|
346
|
-
crossAxis: l.crossAxis || 0,
|
|
347
|
-
alignmentAxis: l.alignmentAxis
|
|
348
|
-
};
|
|
349
|
-
return f && typeof c == "number" && (i = f === "end" ? c * -1 : c), g ? {
|
|
350
|
-
x: i * a,
|
|
351
|
-
y: d * u
|
|
352
|
-
} : {
|
|
353
|
-
x: d * u,
|
|
354
|
-
y: i * a
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
const de = function(t) {
|
|
358
|
-
return t === void 0 && (t = 0), {
|
|
359
|
-
name: "offset",
|
|
360
|
-
options: t,
|
|
361
|
-
async fn(e) {
|
|
362
|
-
var m, o;
|
|
363
|
-
const {
|
|
364
|
-
x: r,
|
|
365
|
-
y: n,
|
|
366
|
-
placement: s,
|
|
367
|
-
middlewareData: f
|
|
368
|
-
} = e, g = await oe(e, t);
|
|
369
|
-
return s === ((m = f.offset) == null ? void 0 : m.placement) && (o = f.arrow) != null && o.alignmentOffset ? {} : {
|
|
370
|
-
x: r + g.x,
|
|
371
|
-
y: n + g.y,
|
|
372
|
-
data: {
|
|
373
|
-
...g,
|
|
374
|
-
placement: s
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
}, me = function(t) {
|
|
380
|
-
return t === void 0 && (t = {}), {
|
|
381
|
-
name: "shift",
|
|
382
|
-
options: t,
|
|
383
|
-
async fn(e) {
|
|
384
|
-
const {
|
|
385
|
-
x: m,
|
|
386
|
-
y: o,
|
|
387
|
-
placement: r
|
|
388
|
-
} = e, {
|
|
389
|
-
mainAxis: n = !0,
|
|
390
|
-
crossAxis: s = !1,
|
|
391
|
-
limiter: f = {
|
|
392
|
-
fn: (w) => {
|
|
393
|
-
let {
|
|
394
|
-
x: h,
|
|
395
|
-
y: p
|
|
396
|
-
} = w;
|
|
397
|
-
return {
|
|
398
|
-
x: h,
|
|
399
|
-
y: p
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
...g
|
|
404
|
-
} = $(t, e), u = {
|
|
405
|
-
x: m,
|
|
406
|
-
y: o
|
|
407
|
-
}, a = await Y(e, g), l = B(W(r)), d = ie(l);
|
|
408
|
-
let i = u[d], c = u[l];
|
|
409
|
-
if (n) {
|
|
410
|
-
const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", p = i + a[w], y = i - a[h];
|
|
411
|
-
i = I(p, i, y);
|
|
412
|
-
}
|
|
413
|
-
if (s) {
|
|
414
|
-
const w = l === "y" ? "top" : "left", h = l === "y" ? "bottom" : "right", p = c + a[w], y = c - a[h];
|
|
415
|
-
c = I(p, c, y);
|
|
416
|
-
}
|
|
417
|
-
const x = f.fn({
|
|
418
|
-
...e,
|
|
419
|
-
[d]: i,
|
|
420
|
-
[l]: c
|
|
421
|
-
});
|
|
422
|
-
return {
|
|
423
|
-
...x,
|
|
424
|
-
data: {
|
|
425
|
-
x: x.x - m,
|
|
426
|
-
y: x.y - o,
|
|
427
|
-
enabled: {
|
|
428
|
-
[d]: n,
|
|
429
|
-
[l]: s
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
}, ge = function(t) {
|
|
436
|
-
return t === void 0 && (t = {}), {
|
|
437
|
-
name: "size",
|
|
438
|
-
options: t,
|
|
439
|
-
async fn(e) {
|
|
440
|
-
var m, o;
|
|
441
|
-
const {
|
|
442
|
-
placement: r,
|
|
443
|
-
rects: n,
|
|
444
|
-
platform: s,
|
|
445
|
-
elements: f
|
|
446
|
-
} = e, {
|
|
447
|
-
apply: g = () => {
|
|
448
|
-
},
|
|
449
|
-
...u
|
|
450
|
-
} = $(t, e), a = await Y(e, u), l = W(r), d = _(r), i = B(r) === "y", {
|
|
451
|
-
width: c,
|
|
452
|
-
height: x
|
|
453
|
-
} = n.floating;
|
|
454
|
-
let w, h;
|
|
455
|
-
l === "top" || l === "bottom" ? (w = l, h = d === (await (s.isRTL == null ? void 0 : s.isRTL(f.floating)) ? "start" : "end") ? "left" : "right") : (h = l, w = d === "end" ? "top" : "bottom");
|
|
456
|
-
const p = x - a.top - a.bottom, y = c - a.left - a.right, A = z(x - a[w], p), v = z(c - a[h], y), T = !e.middlewareData.shift;
|
|
457
|
-
let O = A, k = v;
|
|
458
|
-
if ((m = e.middlewareData.shift) != null && m.enabled.x && (k = y), (o = e.middlewareData.shift) != null && o.enabled.y && (O = p), T && !d) {
|
|
459
|
-
const b = j(a.left, 0), L = j(a.right, 0), C = j(a.top, 0), M = j(a.bottom, 0);
|
|
460
|
-
i ? k = c - 2 * (b !== 0 || L !== 0 ? b + L : j(a.left, a.right)) : O = x - 2 * (C !== 0 || M !== 0 ? C + M : j(a.top, a.bottom));
|
|
461
|
-
}
|
|
462
|
-
await g({
|
|
463
|
-
...e,
|
|
464
|
-
availableWidth: k,
|
|
465
|
-
availableHeight: O
|
|
466
|
-
});
|
|
467
|
-
const R = await s.getDimensions(f.floating);
|
|
468
|
-
return c !== R.width || x !== R.height ? {
|
|
469
|
-
reset: {
|
|
470
|
-
rects: !0
|
|
471
|
-
}
|
|
472
|
-
} : {};
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
export {
|
|
477
|
-
ce as arrow,
|
|
478
|
-
le as computePosition,
|
|
479
|
-
Y as detectOverflow,
|
|
480
|
-
re as flip,
|
|
481
|
-
fe as hide,
|
|
482
|
-
de as offset,
|
|
483
|
-
X as rectToClientRect,
|
|
484
|
-
me as shift,
|
|
485
|
-
ge as size
|
|
486
|
-
};
|