overview-components 1.0.92 → 1.0.95

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.
Files changed (117) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/___vite-browser-external.js +6 -0
  3. package/dist/_virtual/__vite-browser-external.js +4 -0
  4. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  5. package/dist/_virtual/_commonjsHelpers.js +28 -0
  6. package/dist/_virtual/index.js +4 -0
  7. package/dist/_virtual/lodash.js +4 -0
  8. package/dist/_virtual/pdf.js +4 -0
  9. package/dist/_virtual/react.production.js +4 -0
  10. package/dist/assets/generated/locales/de.js +73 -0
  11. package/dist/assets/generated/locales/en.js +73 -0
  12. package/dist/assets/generated/locales/fr.js +73 -0
  13. package/dist/assets/generated/locales/hr.js +73 -0
  14. package/dist/assets/generated/locales/it.js +73 -0
  15. package/dist/assets/generated/locales/pl.js +73 -0
  16. package/dist/assets/generated/locales/ro.js +73 -0
  17. package/dist/assets/generated/locales/sk.js +73 -0
  18. package/dist/assets/generated/locales/sr.js +73 -0
  19. package/dist/components/lit-attachments-tab.js +519 -0
  20. package/dist/components/lit-badge.js +100 -0
  21. package/dist/components/lit-case-variables-tab.js +727 -0
  22. package/dist/components/lit-chart.js +395 -0
  23. package/dist/components/lit-data-grid-tanstack.js +1733 -0
  24. package/dist/components/lit-filter-modal.js +312 -0
  25. package/dist/components/lit-multiselect-item.js +530 -0
  26. package/dist/components/lit-section-tab.js +133 -0
  27. package/dist/components/lit-tabs-overview.js +304 -0
  28. package/dist/components/react-wrappers/attachments-tab.js +14 -0
  29. package/dist/components/react-wrappers/badge.js +14 -0
  30. package/dist/components/react-wrappers/button.js +14 -0
  31. package/dist/components/react-wrappers/case-variables-tab.js +14 -0
  32. package/dist/components/react-wrappers/chart.js +14 -0
  33. package/dist/components/react-wrappers/data-grid-tanstack.js +14 -0
  34. package/dist/components/react-wrappers/filter-modal.js +14 -0
  35. package/dist/components/react-wrappers/progress-bar.js +14 -0
  36. package/dist/components/react-wrappers/section-tab.js +14 -0
  37. package/dist/components/react-wrappers/tabs-overview.js +14 -0
  38. package/dist/index.js +42 -0
  39. package/dist/libs/xlsx.mini.min.js +10 -0
  40. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  41. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  42. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  43. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  44. package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
  45. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  46. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  47. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  48. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  49. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  50. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  51. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  52. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  53. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  54. package/dist/node_modules/@lit/react/create-component.js +35 -0
  55. package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
  56. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  57. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  58. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  59. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  60. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  61. package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
  62. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  63. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  64. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  65. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  66. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  67. package/dist/node_modules/chart.js/dist/chart.js +7122 -0
  68. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
  69. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  70. package/dist/node_modules/lit-element/lit-element.js +51 -0
  71. package/dist/node_modules/lit-html/async-directive.js +69 -0
  72. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  73. package/dist/node_modules/lit-html/directive.js +27 -0
  74. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  75. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  76. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  77. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  78. package/dist/node_modules/lit-html/lit-html.js +243 -0
  79. package/dist/node_modules/lodash/lodash.js +3678 -0
  80. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  81. package/dist/node_modules/luxon/src/duration.js +723 -0
  82. package/dist/node_modules/luxon/src/errors.js +40 -0
  83. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  84. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  85. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  86. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  87. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  88. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  89. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  90. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  91. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  92. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  93. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  94. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  95. package/dist/node_modules/luxon/src/info.js +180 -0
  96. package/dist/node_modules/luxon/src/interval.js +466 -0
  97. package/dist/node_modules/luxon/src/settings.js +150 -0
  98. package/dist/node_modules/luxon/src/zone.js +88 -0
  99. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  100. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  101. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  102. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  103. package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
  104. package/dist/node_modules/react/cjs/react.production.js +417 -0
  105. package/dist/node_modules/react/index.js +10 -0
  106. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  107. package/dist/shared/lit-button.js +142 -0
  108. package/dist/shared/lit-progress-bar.js +83 -0
  109. package/dist/shared/simple-tooltip.js +174 -0
  110. package/dist/shared/styles/button-shared-styles.js +205 -0
  111. package/dist/utils/currency.js +13 -0
  112. package/dist/utils/custom-filters.js +50 -0
  113. package/dist/utils/date.js +15 -0
  114. package/dist/utils/getOperatorByType.js +52 -0
  115. package/dist/utils/localization.js +30 -0
  116. package/dist/vite.svg +1 -0
  117. package/package.json +76 -74
@@ -0,0 +1,306 @@
1
+ import { offset as Z, flip as X, shift as tt, size as et, arrow as it, computePosition as ot } from "../../core/dist/floating-ui.core.js";
2
+ import { createCoords as d, round as W, max as v, min as k, rectToClientRect as S } from "../../utils/dist/floating-ui.utils.js";
3
+ import { isElement as g, getDocumentElement as y, getComputedStyle as a, isHTMLElement as w, getWindow as m, isTopLayer as F, getParentNode as O, isLastTraversableNode as E, isTableElement as nt, isContainingBlock as P, getContainingBlock as st, getNodeName as N, isOverflowElement as H, getNodeScroll as B, getOverflowAncestors as rt, getFrameElement as I, isWebKit as _ } from "../../utils/dist/floating-ui.utils.dom.js";
4
+ function K(t) {
5
+ const e = a(t);
6
+ let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
7
+ const n = w(t), r = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, c = W(o) !== r || W(i) !== s;
8
+ return c && (o = r, i = s), {
9
+ width: o,
10
+ height: i,
11
+ $: c
12
+ };
13
+ }
14
+ function j(t) {
15
+ return g(t) ? t : t.contextElement;
16
+ }
17
+ function T(t) {
18
+ const e = j(t);
19
+ if (!w(e))
20
+ return d(1);
21
+ const o = e.getBoundingClientRect(), {
22
+ width: i,
23
+ height: n,
24
+ $: r
25
+ } = K(e);
26
+ let s = (r ? W(o.width) : o.width) / i, c = (r ? W(o.height) : o.height) / n;
27
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
+ x: s,
29
+ y: c
30
+ };
31
+ }
32
+ const ct = /* @__PURE__ */ d(0);
33
+ function q(t) {
34
+ const e = m(t);
35
+ return !_() || !e.visualViewport ? ct : {
36
+ x: e.visualViewport.offsetLeft,
37
+ y: e.visualViewport.offsetTop
38
+ };
39
+ }
40
+ function ft(t, e, o) {
41
+ return e === void 0 && (e = !1), !o || e && o !== m(t) ? !1 : e;
42
+ }
43
+ function R(t, e, o, i) {
44
+ e === void 0 && (e = !1), o === void 0 && (o = !1);
45
+ const n = t.getBoundingClientRect(), r = j(t);
46
+ let s = d(1);
47
+ e && (i ? g(i) && (s = T(i)) : s = T(t));
48
+ const c = ft(r, o, i) ? q(r) : d(0);
49
+ let f = (n.left + c.x) / s.x, l = (n.top + c.y) / s.y, u = n.width / s.x, h = n.height / s.y;
50
+ if (r) {
51
+ const x = m(r), L = i && g(i) ? m(i) : i;
52
+ let b = x, p = I(b);
53
+ for (; p && i && L !== b; ) {
54
+ const C = T(p), $ = p.getBoundingClientRect(), A = a(p), U = $.left + (p.clientLeft + parseFloat(A.paddingLeft)) * C.x, Y = $.top + (p.clientTop + parseFloat(A.paddingTop)) * C.y;
55
+ f *= C.x, l *= C.y, u *= C.x, h *= C.y, f += U, l += Y, b = m(p), p = I(b);
56
+ }
57
+ }
58
+ return S({
59
+ width: u,
60
+ height: h,
61
+ x: f,
62
+ y: l
63
+ });
64
+ }
65
+ function V(t, e) {
66
+ const o = B(t).scrollLeft;
67
+ return e ? e.left + o : R(y(t)).left + o;
68
+ }
69
+ function G(t, e, o) {
70
+ o === void 0 && (o = !1);
71
+ const i = t.getBoundingClientRect(), n = i.left + e.scrollLeft - (o ? 0 : (
72
+ // RTL <body> scrollbar.
73
+ V(t, i)
74
+ )), r = i.top + e.scrollTop;
75
+ return {
76
+ x: n,
77
+ y: r
78
+ };
79
+ }
80
+ function lt(t) {
81
+ let {
82
+ elements: e,
83
+ rect: o,
84
+ offsetParent: i,
85
+ strategy: n
86
+ } = t;
87
+ const r = n === "fixed", s = y(i), c = e ? F(e.floating) : !1;
88
+ if (i === s || c && r)
89
+ return o;
90
+ let f = {
91
+ scrollLeft: 0,
92
+ scrollTop: 0
93
+ }, l = d(1);
94
+ const u = d(0), h = w(i);
95
+ if ((h || !h && !r) && ((N(i) !== "body" || H(s)) && (f = B(i)), w(i))) {
96
+ const L = R(i);
97
+ l = T(i), u.x = L.x + i.clientLeft, u.y = L.y + i.clientTop;
98
+ }
99
+ const x = s && !h && !r ? G(s, f, !0) : d(0);
100
+ return {
101
+ width: o.width * l.x,
102
+ height: o.height * l.y,
103
+ x: o.x * l.x - f.scrollLeft * l.x + u.x + x.x,
104
+ y: o.y * l.y - f.scrollTop * l.y + u.y + x.y
105
+ };
106
+ }
107
+ function ut(t) {
108
+ return Array.from(t.getClientRects());
109
+ }
110
+ function ht(t) {
111
+ const e = y(t), o = B(t), i = t.ownerDocument.body, n = v(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = v(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
112
+ let s = -o.scrollLeft + V(t);
113
+ const c = -o.scrollTop;
114
+ return a(i).direction === "rtl" && (s += v(e.clientWidth, i.clientWidth) - n), {
115
+ width: n,
116
+ height: r,
117
+ x: s,
118
+ y: c
119
+ };
120
+ }
121
+ function dt(t, e) {
122
+ const o = m(t), i = y(t), n = o.visualViewport;
123
+ let r = i.clientWidth, s = i.clientHeight, c = 0, f = 0;
124
+ if (n) {
125
+ r = n.width, s = n.height;
126
+ const l = _();
127
+ (!l || l && e === "fixed") && (c = n.offsetLeft, f = n.offsetTop);
128
+ }
129
+ return {
130
+ width: r,
131
+ height: s,
132
+ x: c,
133
+ y: f
134
+ };
135
+ }
136
+ function gt(t, e) {
137
+ const o = R(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, r = w(t) ? T(t) : d(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, f = n * r.x, l = i * r.y;
138
+ return {
139
+ width: s,
140
+ height: c,
141
+ x: f,
142
+ y: l
143
+ };
144
+ }
145
+ function z(t, e, o) {
146
+ let i;
147
+ if (e === "viewport")
148
+ i = dt(t, o);
149
+ else if (e === "document")
150
+ i = ht(y(t));
151
+ else if (g(e))
152
+ i = gt(e, o);
153
+ else {
154
+ const n = q(t);
155
+ i = {
156
+ x: e.x - n.x,
157
+ y: e.y - n.y,
158
+ width: e.width,
159
+ height: e.height
160
+ };
161
+ }
162
+ return S(i);
163
+ }
164
+ function J(t, e) {
165
+ const o = O(t);
166
+ return o === e || !g(o) || E(o) ? !1 : a(o).position === "fixed" || J(o, e);
167
+ }
168
+ function at(t, e) {
169
+ const o = e.get(t);
170
+ if (o)
171
+ return o;
172
+ let i = rt(t, []).filter((c) => g(c) && N(c) !== "body"), n = null;
173
+ const r = a(t).position === "fixed";
174
+ let s = r ? O(t) : t;
175
+ for (; g(s) && !E(s); ) {
176
+ const c = a(s), f = P(s);
177
+ !f && c.position === "fixed" && (n = null), (r ? !f && !n : !f && c.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || H(s) && !f && J(t, s)) ? i = i.filter((u) => u !== s) : n = c, s = O(s);
178
+ }
179
+ return e.set(t, i), i;
180
+ }
181
+ function pt(t) {
182
+ let {
183
+ element: e,
184
+ boundary: o,
185
+ rootBoundary: i,
186
+ strategy: n
187
+ } = t;
188
+ const s = [...o === "clippingAncestors" ? F(e) ? [] : at(e, this._c) : [].concat(o), i], c = s[0], f = s.reduce((l, u) => {
189
+ const h = z(e, u, n);
190
+ return l.top = v(h.top, l.top), l.right = k(h.right, l.right), l.bottom = k(h.bottom, l.bottom), l.left = v(h.left, l.left), l;
191
+ }, z(e, c, n));
192
+ return {
193
+ width: f.right - f.left,
194
+ height: f.bottom - f.top,
195
+ x: f.left,
196
+ y: f.top
197
+ };
198
+ }
199
+ function wt(t) {
200
+ const {
201
+ width: e,
202
+ height: o
203
+ } = K(t);
204
+ return {
205
+ width: e,
206
+ height: o
207
+ };
208
+ }
209
+ function yt(t, e, o) {
210
+ const i = w(e), n = y(e), r = o === "fixed", s = R(t, !0, r, e);
211
+ let c = {
212
+ scrollLeft: 0,
213
+ scrollTop: 0
214
+ };
215
+ const f = d(0);
216
+ if (i || !i && !r)
217
+ if ((N(e) !== "body" || H(n)) && (c = B(e)), i) {
218
+ const x = R(e, !0, r, e);
219
+ f.x = x.x + e.clientLeft, f.y = x.y + e.clientTop;
220
+ } else n && (f.x = V(n));
221
+ const l = n && !i && !r ? G(n, c) : d(0), u = s.left + c.scrollLeft - f.x - l.x, h = s.top + c.scrollTop - f.y - l.y;
222
+ return {
223
+ x: u,
224
+ y: h,
225
+ width: s.width,
226
+ height: s.height
227
+ };
228
+ }
229
+ function D(t) {
230
+ return a(t).position === "static";
231
+ }
232
+ function M(t, e) {
233
+ if (!w(t) || a(t).position === "fixed")
234
+ return null;
235
+ if (e)
236
+ return e(t);
237
+ let o = t.offsetParent;
238
+ return y(t) === o && (o = o.ownerDocument.body), o;
239
+ }
240
+ function Q(t, e) {
241
+ const o = m(t);
242
+ if (F(t))
243
+ return o;
244
+ if (!w(t)) {
245
+ let n = O(t);
246
+ for (; n && !E(n); ) {
247
+ if (g(n) && !D(n))
248
+ return n;
249
+ n = O(n);
250
+ }
251
+ return o;
252
+ }
253
+ let i = M(t, e);
254
+ for (; i && nt(i) && D(i); )
255
+ i = M(i, e);
256
+ return i && E(i) && D(i) && !P(i) ? o : i || st(t) || o;
257
+ }
258
+ const xt = async function(t) {
259
+ const e = this.getOffsetParent || Q, o = this.getDimensions, i = await o(t.floating);
260
+ return {
261
+ reference: yt(t.reference, await e(t.floating), t.strategy),
262
+ floating: {
263
+ x: 0,
264
+ y: 0,
265
+ width: i.width,
266
+ height: i.height
267
+ }
268
+ };
269
+ };
270
+ function mt(t) {
271
+ return a(t).direction === "rtl";
272
+ }
273
+ const Ct = {
274
+ convertOffsetParentRelativeRectToViewportRelativeRect: lt,
275
+ getDocumentElement: y,
276
+ getClippingRect: pt,
277
+ getOffsetParent: Q,
278
+ getElementRects: xt,
279
+ getClientRects: ut,
280
+ getDimensions: wt,
281
+ getScale: T,
282
+ isElement: g,
283
+ isRTL: mt
284
+ }, Rt = Z, Lt = tt, bt = X, Wt = et, Et = it, Bt = (t, e, o) => {
285
+ const i = /* @__PURE__ */ new Map(), n = {
286
+ platform: Ct,
287
+ ...o
288
+ }, r = {
289
+ ...n.platform,
290
+ _c: i
291
+ };
292
+ return ot(t, e, {
293
+ ...n,
294
+ platform: r
295
+ });
296
+ };
297
+ export {
298
+ Et as arrow,
299
+ Bt as computePosition,
300
+ bt as flip,
301
+ rt as getOverflowAncestors,
302
+ Rt as offset,
303
+ Ct as platform,
304
+ Lt as shift,
305
+ Wt as size
306
+ };
@@ -0,0 +1,127 @@
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function u(e) {
5
+ return a(e) ? (e.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(e) {
8
+ var t;
9
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
+ }
11
+ function h(e) {
12
+ var t;
13
+ return (t = (a(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
14
+ }
15
+ function a(e) {
16
+ return c() ? e instanceof Node || e instanceof i(e).Node : !1;
17
+ }
18
+ function d(e) {
19
+ return c() ? e instanceof Element || e instanceof i(e).Element : !1;
20
+ }
21
+ function m(e) {
22
+ return c() ? e instanceof HTMLElement || e instanceof i(e).HTMLElement : !1;
23
+ }
24
+ function f(e) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof i(e).ShadowRoot;
26
+ }
27
+ function p(e) {
28
+ const {
29
+ overflow: t,
30
+ overflowX: n,
31
+ overflowY: o,
32
+ display: r
33
+ } = y(e);
34
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
35
+ }
36
+ function L(e) {
37
+ return ["table", "td", "th"].includes(u(e));
38
+ }
39
+ function S(e) {
40
+ return [":popover-open", ":modal"].some((t) => {
41
+ try {
42
+ return e.matches(t);
43
+ } catch {
44
+ return !1;
45
+ }
46
+ });
47
+ }
48
+ function N(e) {
49
+ const t = E(), n = d(e) ? y(e) : e;
50
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
51
+ }
52
+ function D(e) {
53
+ let t = s(e);
54
+ for (; m(t) && !w(t); ) {
55
+ if (N(t))
56
+ return t;
57
+ if (S(t))
58
+ return null;
59
+ t = s(t);
60
+ }
61
+ return null;
62
+ }
63
+ function E() {
64
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
65
+ }
66
+ function w(e) {
67
+ return ["html", "body", "#document"].includes(u(e));
68
+ }
69
+ function y(e) {
70
+ return i(e).getComputedStyle(e);
71
+ }
72
+ function k(e) {
73
+ return d(e) ? {
74
+ scrollLeft: e.scrollLeft,
75
+ scrollTop: e.scrollTop
76
+ } : {
77
+ scrollLeft: e.scrollX,
78
+ scrollTop: e.scrollY
79
+ };
80
+ }
81
+ function s(e) {
82
+ if (u(e) === "html")
83
+ return e;
84
+ const t = (
85
+ // Step into the shadow DOM of the parent of a slotted node.
86
+ e.assignedSlot || // DOM Element detected.
87
+ e.parentNode || // ShadowRoot detected.
88
+ f(e) && e.host || // Fallback.
89
+ h(e)
90
+ );
91
+ return f(t) ? t.host : t;
92
+ }
93
+ function g(e) {
94
+ const t = s(e);
95
+ return w(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : m(t) && p(t) ? t : g(t);
96
+ }
97
+ function v(e, t, n) {
98
+ var o;
99
+ t === void 0 && (t = []);
100
+ const r = g(e), b = r === ((o = e.ownerDocument) == null ? void 0 : o.body), l = i(r);
101
+ return b ? (T(l), t.concat(l, l.visualViewport || [], p(r) ? r : [], [])) : t.concat(r, v(r, []));
102
+ }
103
+ function T(e) {
104
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
105
+ }
106
+ export {
107
+ y as getComputedStyle,
108
+ D as getContainingBlock,
109
+ h as getDocumentElement,
110
+ T as getFrameElement,
111
+ g as getNearestOverflowAncestor,
112
+ u as getNodeName,
113
+ k as getNodeScroll,
114
+ v as getOverflowAncestors,
115
+ s as getParentNode,
116
+ i as getWindow,
117
+ N as isContainingBlock,
118
+ d as isElement,
119
+ m as isHTMLElement,
120
+ w as isLastTraversableNode,
121
+ a as isNode,
122
+ p as isOverflowElement,
123
+ f as isShadowRoot,
124
+ L as isTableElement,
125
+ S as isTopLayer,
126
+ E as isWebKit
127
+ };
@@ -0,0 +1,127 @@
1
+ const l = Math.min, m = Math.max, P = Math.round, O = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), p = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ }, a = {
10
+ start: "end",
11
+ end: "start"
12
+ };
13
+ function M(t, n, e) {
14
+ return m(t, l(n, e));
15
+ }
16
+ function S(t, n) {
17
+ return typeof t == "function" ? t(n) : t;
18
+ }
19
+ function f(t) {
20
+ return t.split("-")[0];
21
+ }
22
+ function g(t) {
23
+ return t.split("-")[1];
24
+ }
25
+ function h(t) {
26
+ return t === "x" ? "y" : "x";
27
+ }
28
+ function x(t) {
29
+ return t === "y" ? "height" : "width";
30
+ }
31
+ function b(t) {
32
+ return ["top", "bottom"].includes(f(t)) ? "y" : "x";
33
+ }
34
+ function d(t) {
35
+ return h(b(t));
36
+ }
37
+ function w(t, n, e) {
38
+ e === void 0 && (e = !1);
39
+ const r = g(t), o = d(t), i = x(o);
40
+ let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
41
+ return n.reference[i] > n.floating[i] && (c = u(c)), [c, u(c)];
42
+ }
43
+ function j(t) {
44
+ const n = u(t);
45
+ return [s(t), n, s(n)];
46
+ }
47
+ function s(t) {
48
+ return t.replace(/start|end/g, (n) => a[n]);
49
+ }
50
+ function A(t, n, e) {
51
+ const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
52
+ switch (t) {
53
+ case "top":
54
+ case "bottom":
55
+ return e ? n ? o : r : n ? r : o;
56
+ case "left":
57
+ case "right":
58
+ return n ? i : c;
59
+ default:
60
+ return [];
61
+ }
62
+ }
63
+ function C(t, n, e, r) {
64
+ const o = g(t);
65
+ let i = A(f(t), e === "start", r);
66
+ return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
67
+ }
68
+ function u(t) {
69
+ return t.replace(/left|right|bottom|top/g, (n) => p[n]);
70
+ }
71
+ function y(t) {
72
+ return {
73
+ top: 0,
74
+ right: 0,
75
+ bottom: 0,
76
+ left: 0,
77
+ ...t
78
+ };
79
+ }
80
+ function L(t) {
81
+ return typeof t != "number" ? y(t) : {
82
+ top: t,
83
+ right: t,
84
+ bottom: t,
85
+ left: t
86
+ };
87
+ }
88
+ function E(t) {
89
+ const {
90
+ x: n,
91
+ y: e,
92
+ width: r,
93
+ height: o
94
+ } = t;
95
+ return {
96
+ width: r,
97
+ height: o,
98
+ top: e,
99
+ left: n,
100
+ right: n + r,
101
+ bottom: e + o,
102
+ x: n,
103
+ y: e
104
+ };
105
+ }
106
+ export {
107
+ M as clamp,
108
+ O as createCoords,
109
+ S as evaluate,
110
+ y as expandPaddingObject,
111
+ g as getAlignment,
112
+ d as getAlignmentAxis,
113
+ w as getAlignmentSides,
114
+ x as getAxisLength,
115
+ j as getExpandedPlacements,
116
+ s as getOppositeAlignmentPlacement,
117
+ h as getOppositeAxis,
118
+ C as getOppositeAxisPlacements,
119
+ u as getOppositePlacement,
120
+ L as getPaddingObject,
121
+ f as getSide,
122
+ b as getSideAxis,
123
+ m as max,
124
+ l as min,
125
+ E as rectToClientRect,
126
+ P as round
127
+ };