overview-components 1.0.75 → 1.0.77

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 (92) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/_commonjsHelpers.js +4 -0
  3. package/dist/assets/icons/iconGlyphs.js +680 -0
  4. package/dist/components/lit-attachments-tab.js +11 -7
  5. package/dist/components/lit-badge.js +10 -7
  6. package/dist/components/lit-case-variables-tab.js +23 -19
  7. package/dist/components/lit-chart.js +24 -21
  8. package/dist/components/lit-data-grid-tanstack.js +42 -37
  9. package/dist/components/lit-filter-modal.js +6 -2
  10. package/dist/components/lit-multiselect-item.js +7 -3
  11. package/dist/components/lit-section-tab.js +15 -11
  12. package/dist/components/lit-tabs-overview.js +9 -5
  13. package/dist/components/react-wrappers/attachments-tab.js +1 -1
  14. package/dist/components/react-wrappers/badge.js +1 -1
  15. package/dist/components/react-wrappers/button.js +3 -3
  16. package/dist/components/react-wrappers/case-variables-tab.js +3 -3
  17. package/dist/components/react-wrappers/chart.js +3 -3
  18. package/dist/components/react-wrappers/data-grid-tanstack.js +1 -1
  19. package/dist/components/react-wrappers/filter-modal.js +4 -4
  20. package/dist/components/react-wrappers/progress-bar.js +5 -5
  21. package/dist/components/react-wrappers/section-tab.js +4 -4
  22. package/dist/components/react-wrappers/tabs-overview.js +3 -3
  23. package/dist/index.d.ts +18 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +51 -32
  26. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  27. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +390 -0
  28. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
  29. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  30. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  31. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  32. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  33. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  34. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  35. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  36. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  37. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  38. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  39. package/dist/node_modules/@lit/react/create-component.js +35 -0
  40. package/dist/node_modules/@lit/reactive-element/css-tag.js +32 -24
  41. package/dist/node_modules/@lit/reactive-element/reactive-element.js +4 -3
  42. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  43. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  44. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  45. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  46. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  47. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  48. package/dist/node_modules/lit-element/lit-element.js +51 -0
  49. package/dist/node_modules/lit-html/directives/class-map.js +34 -0
  50. package/dist/node_modules/lit-html/lit-html.js +75 -74
  51. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  52. package/dist/node_modules/luxon/src/duration.js +723 -0
  53. package/dist/node_modules/luxon/src/errors.js +40 -0
  54. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  55. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  56. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  57. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  58. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  59. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  60. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  61. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  62. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  63. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  64. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  65. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  66. package/dist/node_modules/luxon/src/info.js +180 -0
  67. package/dist/node_modules/luxon/src/interval.js +466 -0
  68. package/dist/node_modules/luxon/src/settings.js +150 -0
  69. package/dist/node_modules/luxon/src/zone.js +88 -0
  70. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  71. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  72. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  73. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  74. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  75. package/dist/shared/lit-button.js +11 -8
  76. package/dist/shared/lit-checkbox.js +155 -0
  77. package/dist/shared/lit-icon.js +282 -0
  78. package/dist/shared/lit-input.js +211 -0
  79. package/dist/shared/lit-menu.js +40 -0
  80. package/dist/shared/lit-modal.js +128 -0
  81. package/dist/shared/lit-pill.js +86 -0
  82. package/dist/shared/lit-progress-bar.js +10 -7
  83. package/dist/shared/lit-select.js +339 -0
  84. package/dist/shared/lit-tooltip.js +137 -0
  85. package/dist/shared/simple-tooltip.js +33 -31
  86. package/dist/shared/styles/button-shared-styles.js +6 -3
  87. package/dist/styles.js +174 -0
  88. package/dist/utils/custom-filters.js +8 -7
  89. package/dist/utils/date.js +6 -5
  90. package/dist/utils/getOperatorByType.js +4 -3
  91. package/dist/utils/localization.js +1 -1
  92. package/package.json +1 -1
@@ -0,0 +1,390 @@
1
+ import { offset as it, flip as nt, shift as ot, size as st, arrow as rt, computePosition as ct } from "../../core/dist/floating-ui.core.js";
2
+ import { createCoords as y, rectToClientRect as G, floor as z, max as E, round as D, min as V } from "../../utils/dist/floating-ui.utils.js";
3
+ import { getOverflowAncestors as $, isElement as v, getDocumentElement as R, getWindow as L, getFrameElement as U, getComputedStyle as b, isHTMLElement as O, isWebKit as J, isTopLayer as M, getParentNode as W, isLastTraversableNode as H, isTableElement as lt, isContainingBlock as Q, getContainingBlock as ft, getNodeName as S, isOverflowElement as _, getNodeScroll as N } from "../../utils/dist/floating-ui.utils.dom.js";
4
+ function Y(t) {
5
+ const e = b(t);
6
+ let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
7
+ const o = O(t), r = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, c = D(i) !== r || D(n) !== s;
8
+ return c && (i = r, n = s), {
9
+ width: i,
10
+ height: n,
11
+ $: c
12
+ };
13
+ }
14
+ function k(t) {
15
+ return v(t) ? t : t.contextElement;
16
+ }
17
+ function F(t) {
18
+ const e = k(t);
19
+ if (!O(e))
20
+ return y(1);
21
+ const i = e.getBoundingClientRect(), {
22
+ width: n,
23
+ height: o,
24
+ $: r
25
+ } = Y(e);
26
+ let s = (r ? D(i.width) : i.width) / n, c = (r ? D(i.height) : i.height) / o;
27
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
+ x: s,
29
+ y: c
30
+ };
31
+ }
32
+ const ut = /* @__PURE__ */ y(0);
33
+ function Z(t) {
34
+ const e = L(t);
35
+ return !J() || !e.visualViewport ? ut : {
36
+ x: e.visualViewport.offsetLeft,
37
+ y: e.visualViewport.offsetTop
38
+ };
39
+ }
40
+ function ht(t, e, i) {
41
+ return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
42
+ }
43
+ function T(t, e, i, n) {
44
+ e === void 0 && (e = !1), i === void 0 && (i = !1);
45
+ const o = t.getBoundingClientRect(), r = k(t);
46
+ let s = y(1);
47
+ e && (n ? v(n) && (s = F(n)) : s = F(t));
48
+ const c = ht(r, i, n) ? Z(r) : y(0);
49
+ let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
50
+ if (r) {
51
+ const p = L(r), g = n && v(n) ? L(n) : n;
52
+ let x = p, a = U(x);
53
+ for (; a && n && g !== x; ) {
54
+ const w = F(a), d = a.getBoundingClientRect(), m = b(a), C = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * w.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * w.y;
55
+ l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, x = L(a), a = U(x);
56
+ }
57
+ }
58
+ return G({
59
+ width: u,
60
+ height: h,
61
+ x: l,
62
+ y: f
63
+ });
64
+ }
65
+ function q(t, e) {
66
+ const i = N(t).scrollLeft;
67
+ return e ? e.left + i : T(R(t)).left + i;
68
+ }
69
+ function X(t, e, i) {
70
+ i === void 0 && (i = !1);
71
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
72
+ // RTL <body> scrollbar.
73
+ q(t, n)
74
+ )), r = n.top + e.scrollTop;
75
+ return {
76
+ x: o,
77
+ y: r
78
+ };
79
+ }
80
+ function at(t) {
81
+ let {
82
+ elements: e,
83
+ rect: i,
84
+ offsetParent: n,
85
+ strategy: o
86
+ } = t;
87
+ const r = o === "fixed", s = R(n), c = e ? M(e.floating) : !1;
88
+ if (n === s || c && r)
89
+ return i;
90
+ let l = {
91
+ scrollLeft: 0,
92
+ scrollTop: 0
93
+ }, f = y(1);
94
+ const u = y(0), h = O(n);
95
+ if ((h || !h && !r) && ((S(n) !== "body" || _(s)) && (l = N(n)), O(n))) {
96
+ const g = T(n);
97
+ f = F(n), u.x = g.x + n.clientLeft, u.y = g.y + n.clientTop;
98
+ }
99
+ const p = s && !h && !r ? X(s, l, !0) : y(0);
100
+ return {
101
+ width: i.width * f.x,
102
+ height: i.height * f.y,
103
+ x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
104
+ y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
105
+ };
106
+ }
107
+ function dt(t) {
108
+ return Array.from(t.getClientRects());
109
+ }
110
+ function gt(t) {
111
+ const e = R(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
112
+ let s = -i.scrollLeft + q(t);
113
+ const c = -i.scrollTop;
114
+ return b(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
115
+ width: o,
116
+ height: r,
117
+ x: s,
118
+ y: c
119
+ };
120
+ }
121
+ function pt(t, e) {
122
+ const i = L(t), n = R(t), o = i.visualViewport;
123
+ let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
124
+ if (o) {
125
+ r = o.width, s = o.height;
126
+ const f = J();
127
+ (!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
128
+ }
129
+ return {
130
+ width: r,
131
+ height: s,
132
+ x: c,
133
+ y: l
134
+ };
135
+ }
136
+ function wt(t, e) {
137
+ const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = O(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
138
+ return {
139
+ width: s,
140
+ height: c,
141
+ x: l,
142
+ y: f
143
+ };
144
+ }
145
+ function K(t, e, i) {
146
+ let n;
147
+ if (e === "viewport")
148
+ n = pt(t, i);
149
+ else if (e === "document")
150
+ n = gt(R(t));
151
+ else if (v(e))
152
+ n = wt(e, i);
153
+ else {
154
+ const o = Z(t);
155
+ n = {
156
+ x: e.x - o.x,
157
+ y: e.y - o.y,
158
+ width: e.width,
159
+ height: e.height
160
+ };
161
+ }
162
+ return G(n);
163
+ }
164
+ function tt(t, e) {
165
+ const i = W(t);
166
+ return i === e || !v(i) || H(i) ? !1 : b(i).position === "fixed" || tt(i, e);
167
+ }
168
+ function mt(t, e) {
169
+ const i = e.get(t);
170
+ if (i)
171
+ return i;
172
+ let n = $(t, [], !1).filter((c) => v(c) && S(c) !== "body"), o = null;
173
+ const r = b(t).position === "fixed";
174
+ let s = r ? W(t) : t;
175
+ for (; v(s) && !H(s); ) {
176
+ const c = b(s), l = Q(s);
177
+ !l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && tt(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
178
+ }
179
+ return e.set(t, n), n;
180
+ }
181
+ function yt(t) {
182
+ let {
183
+ element: e,
184
+ boundary: i,
185
+ rootBoundary: n,
186
+ strategy: o
187
+ } = t;
188
+ const s = [...i === "clippingAncestors" ? M(e) ? [] : mt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
189
+ const h = K(e, u, o);
190
+ return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
191
+ }, K(e, c, o));
192
+ return {
193
+ width: l.right - l.left,
194
+ height: l.bottom - l.top,
195
+ x: l.left,
196
+ y: l.top
197
+ };
198
+ }
199
+ function xt(t) {
200
+ const {
201
+ width: e,
202
+ height: i
203
+ } = Y(t);
204
+ return {
205
+ width: e,
206
+ height: i
207
+ };
208
+ }
209
+ function vt(t, e, i) {
210
+ const n = O(e), o = R(e), r = i === "fixed", s = T(t, !0, r, e);
211
+ let c = {
212
+ scrollLeft: 0,
213
+ scrollTop: 0
214
+ };
215
+ const l = y(0);
216
+ if (n || !n && !r)
217
+ if ((S(e) !== "body" || _(o)) && (c = N(e)), n) {
218
+ const p = T(e, !0, r, e);
219
+ l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
220
+ } else o && (l.x = q(o));
221
+ const f = o && !n && !r ? X(o, c) : y(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
222
+ return {
223
+ x: u,
224
+ y: h,
225
+ width: s.width,
226
+ height: s.height
227
+ };
228
+ }
229
+ function I(t) {
230
+ return b(t).position === "static";
231
+ }
232
+ function j(t, e) {
233
+ if (!O(t) || b(t).position === "fixed")
234
+ return null;
235
+ if (e)
236
+ return e(t);
237
+ let i = t.offsetParent;
238
+ return R(t) === i && (i = i.ownerDocument.body), i;
239
+ }
240
+ function et(t, e) {
241
+ const i = L(t);
242
+ if (M(t))
243
+ return i;
244
+ if (!O(t)) {
245
+ let o = W(t);
246
+ for (; o && !H(o); ) {
247
+ if (v(o) && !I(o))
248
+ return o;
249
+ o = W(o);
250
+ }
251
+ return i;
252
+ }
253
+ let n = j(t, e);
254
+ for (; n && lt(n) && I(n); )
255
+ n = j(n, e);
256
+ return n && H(n) && I(n) && !Q(n) ? i : n || ft(t) || i;
257
+ }
258
+ const bt = async function(t) {
259
+ const e = this.getOffsetParent || et, i = this.getDimensions, n = await i(t.floating);
260
+ return {
261
+ reference: vt(t.reference, await e(t.floating), t.strategy),
262
+ floating: {
263
+ x: 0,
264
+ y: 0,
265
+ width: n.width,
266
+ height: n.height
267
+ }
268
+ };
269
+ };
270
+ function Rt(t) {
271
+ return b(t).direction === "rtl";
272
+ }
273
+ const Ot = {
274
+ convertOffsetParentRelativeRectToViewportRelativeRect: at,
275
+ getDocumentElement: R,
276
+ getClippingRect: yt,
277
+ getOffsetParent: et,
278
+ getElementRects: bt,
279
+ getClientRects: dt,
280
+ getDimensions: xt,
281
+ getScale: F,
282
+ isElement: v,
283
+ isRTL: Rt
284
+ };
285
+ function Ct(t, e) {
286
+ let i = null, n;
287
+ const o = R(t);
288
+ function r() {
289
+ var c;
290
+ clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
291
+ }
292
+ function s(c, l) {
293
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
294
+ const {
295
+ left: f,
296
+ top: u,
297
+ width: h,
298
+ height: p
299
+ } = t.getBoundingClientRect();
300
+ if (c || e(), !h || !p)
301
+ return;
302
+ const g = z(u), x = z(o.clientWidth - (f + h)), a = z(o.clientHeight - (u + p)), w = z(f), m = {
303
+ rootMargin: -g + "px " + -x + "px " + -a + "px " + -w + "px",
304
+ threshold: E(0, V(1, l)) || 1
305
+ };
306
+ let C = !0;
307
+ function B(P) {
308
+ const A = P[0].intersectionRatio;
309
+ if (A !== l) {
310
+ if (!C)
311
+ return s();
312
+ A ? s(!1, A) : n = setTimeout(() => {
313
+ s(!1, 1e-7);
314
+ }, 1e3);
315
+ }
316
+ C = !1;
317
+ }
318
+ try {
319
+ i = new IntersectionObserver(B, {
320
+ ...m,
321
+ // Handle <iframe>s
322
+ root: o.ownerDocument
323
+ });
324
+ } catch {
325
+ i = new IntersectionObserver(B, m);
326
+ }
327
+ i.observe(t);
328
+ }
329
+ return s(!0), r;
330
+ }
331
+ function Ft(t, e, i, n) {
332
+ n === void 0 && (n = {});
333
+ const {
334
+ ancestorScroll: o = !0,
335
+ ancestorResize: r = !0,
336
+ elementResize: s = typeof ResizeObserver == "function",
337
+ layoutShift: c = typeof IntersectionObserver == "function",
338
+ animationFrame: l = !1
339
+ } = n, f = k(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
340
+ u.forEach((d) => {
341
+ o && d.addEventListener("scroll", i, {
342
+ passive: !0
343
+ }), r && d.addEventListener("resize", i);
344
+ });
345
+ const h = f && c ? Ct(f, i) : null;
346
+ let p = -1, g = null;
347
+ s && (g = new ResizeObserver((d) => {
348
+ let [m] = d;
349
+ m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
350
+ var C;
351
+ (C = g) == null || C.observe(e);
352
+ })), i();
353
+ }), f && !l && g.observe(f), g.observe(e));
354
+ let x, a = l ? T(t) : null;
355
+ l && w();
356
+ function w() {
357
+ const d = T(t);
358
+ a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && i(), a = d, x = requestAnimationFrame(w);
359
+ }
360
+ return i(), () => {
361
+ var d;
362
+ u.forEach((m) => {
363
+ o && m.removeEventListener("scroll", i), r && m.removeEventListener("resize", i);
364
+ }), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(x);
365
+ };
366
+ }
367
+ const Wt = it, Bt = ot, zt = nt, Dt = st, Ht = rt, Nt = (t, e, i) => {
368
+ const n = /* @__PURE__ */ new Map(), o = {
369
+ platform: Ot,
370
+ ...i
371
+ }, r = {
372
+ ...o.platform,
373
+ _c: n
374
+ };
375
+ return ct(t, e, {
376
+ ...o,
377
+ platform: r
378
+ });
379
+ };
380
+ export {
381
+ Ht as arrow,
382
+ Ft as autoUpdate,
383
+ Nt as computePosition,
384
+ zt as flip,
385
+ $ as getOverflowAncestors,
386
+ Wt as offset,
387
+ Ot as platform,
388
+ Bt as shift,
389
+ Dt as size
390
+ };
@@ -0,0 +1,131 @@
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function s(n) {
5
+ return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(n) {
8
+ var t;
9
+ return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
+ }
11
+ function E(n) {
12
+ var t;
13
+ return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
14
+ }
15
+ function p(n) {
16
+ return c() ? n instanceof Node || n instanceof i(n).Node : !1;
17
+ }
18
+ function m(n) {
19
+ return c() ? n instanceof Element || n instanceof i(n).Element : !1;
20
+ }
21
+ function w(n) {
22
+ return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
23
+ }
24
+ function a(n) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
26
+ }
27
+ function y(n) {
28
+ const {
29
+ overflow: t,
30
+ overflowX: e,
31
+ overflowY: o,
32
+ display: r
33
+ } = b(n);
34
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
35
+ }
36
+ function D(n) {
37
+ return ["table", "td", "th"].includes(s(n));
38
+ }
39
+ function N(n) {
40
+ return [":popover-open", ":modal"].some((t) => {
41
+ try {
42
+ return n.matches(t);
43
+ } catch {
44
+ return !1;
45
+ }
46
+ });
47
+ }
48
+ function T(n) {
49
+ const t = L(), e = m(n) ? b(n) : n;
50
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
51
+ }
52
+ function k(n) {
53
+ let t = u(n);
54
+ for (; w(t) && !g(t); ) {
55
+ if (T(t))
56
+ return t;
57
+ if (N(t))
58
+ return null;
59
+ t = u(t);
60
+ }
61
+ return null;
62
+ }
63
+ function L() {
64
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
65
+ }
66
+ function g(n) {
67
+ return ["html", "body", "#document"].includes(s(n));
68
+ }
69
+ function b(n) {
70
+ return i(n).getComputedStyle(n);
71
+ }
72
+ function C(n) {
73
+ return m(n) ? {
74
+ scrollLeft: n.scrollLeft,
75
+ scrollTop: n.scrollTop
76
+ } : {
77
+ scrollLeft: n.scrollX,
78
+ scrollTop: n.scrollY
79
+ };
80
+ }
81
+ function u(n) {
82
+ if (s(n) === "html")
83
+ return n;
84
+ const t = (
85
+ // Step into the shadow DOM of the parent of a slotted node.
86
+ n.assignedSlot || // DOM Element detected.
87
+ n.parentNode || // ShadowRoot detected.
88
+ a(n) && n.host || // Fallback.
89
+ E(n)
90
+ );
91
+ return a(t) ? t.host : t;
92
+ }
93
+ function h(n) {
94
+ const t = u(n);
95
+ return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
96
+ }
97
+ function d(n, t, e) {
98
+ var o;
99
+ t === void 0 && (t = []), e === void 0 && (e = !0);
100
+ const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
101
+ if (S) {
102
+ const f = v(l);
103
+ return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
104
+ }
105
+ return t.concat(r, d(r, [], e));
106
+ }
107
+ function v(n) {
108
+ return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
109
+ }
110
+ export {
111
+ b as getComputedStyle,
112
+ k as getContainingBlock,
113
+ E as getDocumentElement,
114
+ v as getFrameElement,
115
+ h as getNearestOverflowAncestor,
116
+ s as getNodeName,
117
+ C as getNodeScroll,
118
+ d as getOverflowAncestors,
119
+ u as getParentNode,
120
+ i as getWindow,
121
+ T as isContainingBlock,
122
+ m as isElement,
123
+ w as isHTMLElement,
124
+ g as isLastTraversableNode,
125
+ p as isNode,
126
+ y as isOverflowElement,
127
+ a as isShadowRoot,
128
+ D as isTableElement,
129
+ N as isTopLayer,
130
+ L as isWebKit
131
+ };
@@ -0,0 +1,128 @@
1
+ const l = Math.min, a = Math.max, P = Math.round, M = Math.floor, O = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), m = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ }, p = {
10
+ start: "end",
11
+ end: "start"
12
+ };
13
+ function S(t, n, e) {
14
+ return a(t, l(n, e));
15
+ }
16
+ function w(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 j(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 C(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) => p[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 L(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) => m[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 E(t) {
81
+ return typeof t != "number" ? y(t) : {
82
+ top: t,
83
+ right: t,
84
+ bottom: t,
85
+ left: t
86
+ };
87
+ }
88
+ function R(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
+ S as clamp,
108
+ O as createCoords,
109
+ w as evaluate,
110
+ y as expandPaddingObject,
111
+ M as floor,
112
+ g as getAlignment,
113
+ d as getAlignmentAxis,
114
+ j as getAlignmentSides,
115
+ x as getAxisLength,
116
+ C as getExpandedPlacements,
117
+ s as getOppositeAlignmentPlacement,
118
+ h as getOppositeAxis,
119
+ L as getOppositeAxisPlacements,
120
+ u as getOppositePlacement,
121
+ E as getPaddingObject,
122
+ f as getSide,
123
+ b as getSideAxis,
124
+ a as max,
125
+ l as min,
126
+ R as rectToClientRect,
127
+ P as round
128
+ };
@@ -0,0 +1,11 @@
1
+ import { defaultMsg as t } from "../internal/default-msg.js";
2
+ let n = t, e = !1;
3
+ function i(l) {
4
+ if (e)
5
+ throw new Error("lit-localize can only be configured once");
6
+ n = l, e = !0;
7
+ }
8
+ export {
9
+ i as _installMsgImplementation,
10
+ n as msg
11
+ };
@@ -0,0 +1,42 @@
1
+ import { Deferred as m } from "../internal/deferred.js";
2
+ import { LOCALE_STATUS_EVENT as f } from "../internal/locale-status-event.js";
3
+ import { runtimeMsg as v } from "../internal/runtime-msg.js";
4
+ import { _installMsgImplementation as L } from "./install.js";
5
+ /**
6
+ * @license
7
+ * Copyright 2021 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */
10
+ function i(e) {
11
+ window.dispatchEvent(new CustomEvent(f, { detail: e }));
12
+ }
13
+ let l = "", n, u, a, d, p, t = new m();
14
+ t.resolve();
15
+ let s = 0;
16
+ const P = (e) => (L((r, c) => v(p, r, c)), l = u = e.sourceLocale, a = new Set(e.targetLocales), a.add(e.sourceLocale), d = e.loadLocale, { getLocale: g, setLocale: E }), g = () => l, E = (e) => {
17
+ if (e === (n ?? l))
18
+ return t.promise;
19
+ if (!a || !d)
20
+ throw new Error("Internal error");
21
+ if (!a.has(e))
22
+ throw new Error("Invalid locale code");
23
+ s++;
24
+ const r = s;
25
+ return n = e, t.settled && (t = new m()), i({ status: "loading", loadingLocale: e }), (e === u ? (
26
+ // We could switch to the source locale synchronously, but we prefer to
27
+ // queue it on a microtask so that switching locales is consistently
28
+ // asynchronous.
29
+ Promise.resolve({ templates: void 0 })
30
+ ) : d(e)).then((o) => {
31
+ s === r && (l = e, n = void 0, p = o.templates, i({ status: "ready", readyLocale: e }), t.resolve());
32
+ }, (o) => {
33
+ s === r && (i({
34
+ status: "error",
35
+ errorLocale: e,
36
+ errorMessage: o.toString()
37
+ }), t.reject(o));
38
+ }), t.promise;
39
+ };
40
+ export {
41
+ P as configureLocalization
42
+ };
@@ -0,0 +1,10 @@
1
+ import { joinStringsAndValues as r, isStrTagged as g } from "./str-tag.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const n = (s) => g(s) ? r(s.strings, s.values) : s;
8
+ export {
9
+ n as defaultMsg
10
+ };