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,432 @@
1
+ import { evaluate as W, getSide as H, getSideAxis as j, getOppositePlacement as Q, getExpandedPlacements as U, getOppositeAxisPlacements as Z, getAlignmentSides as tt, clamp as _, getAlignment as z, min as Y, max as B, getPaddingObject as G, getAlignmentAxis as J, rectToClientRect as X, getOppositeAxis as et, getAxisLength as K } from "../../utils/dist/floating-ui.utils.js";
2
+ function q(a, e, d) {
3
+ let {
4
+ reference: o,
5
+ floating: f
6
+ } = a;
7
+ const n = j(e), c = J(e), r = K(c), g = H(e), x = n === "y", i = o.x + o.width / 2 - f.width / 2, s = o.y + o.height / 2 - f.height / 2, m = o[r] / 2 - f[r] / 2;
8
+ let t;
9
+ switch (g) {
10
+ case "top":
11
+ t = {
12
+ x: i,
13
+ y: o.y - f.height
14
+ };
15
+ break;
16
+ case "bottom":
17
+ t = {
18
+ x: i,
19
+ y: o.y + o.height
20
+ };
21
+ break;
22
+ case "right":
23
+ t = {
24
+ x: o.x + o.width,
25
+ y: s
26
+ };
27
+ break;
28
+ case "left":
29
+ t = {
30
+ x: o.x - f.width,
31
+ y: s
32
+ };
33
+ break;
34
+ default:
35
+ t = {
36
+ x: o.x,
37
+ y: o.y
38
+ };
39
+ }
40
+ switch (z(e)) {
41
+ case "start":
42
+ t[c] -= m * (d && x ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ t[c] += m * (d && x ? -1 : 1);
46
+ break;
47
+ }
48
+ return t;
49
+ }
50
+ const ot = async (a, e, d) => {
51
+ const {
52
+ placement: o = "bottom",
53
+ strategy: f = "absolute",
54
+ middleware: n = [],
55
+ platform: c
56
+ } = d, r = n.filter(Boolean), g = await (c.isRTL == null ? void 0 : c.isRTL(e));
57
+ let x = await c.getElementRects({
58
+ reference: a,
59
+ floating: e,
60
+ strategy: f
61
+ }), {
62
+ x: i,
63
+ y: s
64
+ } = q(x, o, g), m = o, t = {}, l = 0;
65
+ for (let u = 0; u < r.length; u++) {
66
+ const {
67
+ name: w,
68
+ fn: p
69
+ } = r[u], {
70
+ x: h,
71
+ y,
72
+ data: A,
73
+ reset: v
74
+ } = await p({
75
+ x: i,
76
+ y: s,
77
+ initialPlacement: o,
78
+ placement: m,
79
+ strategy: f,
80
+ middlewareData: t,
81
+ rects: x,
82
+ platform: c,
83
+ elements: {
84
+ reference: a,
85
+ floating: e
86
+ }
87
+ });
88
+ i = h ?? i, s = y ?? s, t = {
89
+ ...t,
90
+ [w]: {
91
+ ...t[w],
92
+ ...A
93
+ }
94
+ }, v && l <= 50 && (l++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (x = v.rects === !0 ? await c.getElementRects({
95
+ reference: a,
96
+ floating: e,
97
+ strategy: f
98
+ }) : v.rects), {
99
+ x: i,
100
+ y: s
101
+ } = q(x, m, g)), u = -1);
102
+ }
103
+ return {
104
+ x: i,
105
+ y: s,
106
+ placement: m,
107
+ strategy: f,
108
+ middlewareData: t
109
+ };
110
+ };
111
+ async function I(a, e) {
112
+ var d;
113
+ e === void 0 && (e = {});
114
+ const {
115
+ x: o,
116
+ y: f,
117
+ platform: n,
118
+ rects: c,
119
+ elements: r,
120
+ strategy: g
121
+ } = a, {
122
+ boundary: x = "clippingAncestors",
123
+ rootBoundary: i = "viewport",
124
+ elementContext: s = "floating",
125
+ altBoundary: m = !1,
126
+ padding: t = 0
127
+ } = W(e, a), l = G(t), w = r[m ? s === "floating" ? "reference" : "floating" : s], p = X(await n.getClippingRect({
128
+ element: (d = await (n.isElement == null ? void 0 : n.isElement(w))) == null || d ? w : w.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(r.floating)),
129
+ boundary: x,
130
+ rootBoundary: i,
131
+ strategy: g
132
+ })), h = s === "floating" ? {
133
+ x: o,
134
+ y: f,
135
+ width: c.floating.width,
136
+ height: c.floating.height
137
+ } : c.reference, y = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(r.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: r,
145
+ rect: h,
146
+ offsetParent: y,
147
+ strategy: g
148
+ }) : h);
149
+ return {
150
+ top: (p.top - v.top + l.top) / A.y,
151
+ bottom: (v.bottom - p.bottom + l.bottom) / A.y,
152
+ left: (p.left - v.left + l.left) / A.x,
153
+ right: (v.right - p.right + l.right) / A.x
154
+ };
155
+ }
156
+ const st = (a) => ({
157
+ name: "arrow",
158
+ options: a,
159
+ async fn(e) {
160
+ const {
161
+ x: d,
162
+ y: o,
163
+ placement: f,
164
+ rects: n,
165
+ platform: c,
166
+ elements: r,
167
+ middlewareData: g
168
+ } = e, {
169
+ element: x,
170
+ padding: i = 0
171
+ } = W(a, e) || {};
172
+ if (x == null)
173
+ return {};
174
+ const s = G(i), m = {
175
+ x: d,
176
+ y: o
177
+ }, t = J(f), l = K(t), u = await c.getDimensions(x), w = t === "y", p = w ? "top" : "left", h = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", A = n.reference[l] + n.reference[t] - m[t] - n.floating[l], v = m[t] - n.reference[t], T = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(x));
178
+ let P = T ? T[y] : 0;
179
+ (!P || !await (c.isElement == null ? void 0 : c.isElement(T))) && (P = r.floating[y] || n.floating[l]);
180
+ const k = A / 2 - v / 2, R = P / 2 - u[l] / 2 - 1, b = Y(s[p], R), L = Y(s[h], R), D = b, M = P - u[l] - L, C = P / 2 - u[l] / 2 + k, O = _(D, C, M), $ = !g.arrow && z(f) != null && C !== O && n.reference[l] / 2 - (C < D ? b : L) - u[l] / 2 < 0, E = $ ? C < D ? C - D : C - M : 0;
181
+ return {
182
+ [t]: m[t] + E,
183
+ data: {
184
+ [t]: O,
185
+ centerOffset: C - O - E,
186
+ ...$ && {
187
+ alignmentOffset: E
188
+ }
189
+ },
190
+ reset: $
191
+ };
192
+ }
193
+ }), at = function(a) {
194
+ return a === void 0 && (a = {}), {
195
+ name: "flip",
196
+ options: a,
197
+ async fn(e) {
198
+ var d, o;
199
+ const {
200
+ placement: f,
201
+ middlewareData: n,
202
+ rects: c,
203
+ initialPlacement: r,
204
+ platform: g,
205
+ elements: x
206
+ } = e, {
207
+ mainAxis: i = !0,
208
+ crossAxis: s = !0,
209
+ fallbackPlacements: m,
210
+ fallbackStrategy: t = "bestFit",
211
+ fallbackAxisSideDirection: l = "none",
212
+ flipAlignment: u = !0,
213
+ ...w
214
+ } = W(a, e);
215
+ if ((d = n.arrow) != null && d.alignmentOffset)
216
+ return {};
217
+ const p = H(f), h = j(r), y = H(r) === r, A = await (g.isRTL == null ? void 0 : g.isRTL(x.floating)), v = m || (y || !u ? [Q(r)] : U(r)), T = l !== "none";
218
+ !m && T && v.push(...Z(r, u, l, A));
219
+ const P = [r, ...v], k = await I(e, w), R = [];
220
+ let b = ((o = n.flip) == null ? void 0 : o.overflows) || [];
221
+ if (i && R.push(k[p]), s) {
222
+ const O = tt(f, c, A);
223
+ R.push(k[O[0]], k[O[1]]);
224
+ }
225
+ if (b = [...b, {
226
+ placement: f,
227
+ overflows: R
228
+ }], !R.every((O) => O <= 0)) {
229
+ var L, D;
230
+ const O = (((L = n.flip) == null ? void 0 : L.index) || 0) + 1, $ = P[O];
231
+ if ($) {
232
+ var M;
233
+ const V = s === "alignment" ? h !== j($) : !1, S = ((M = b[0]) == null ? void 0 : M.overflows[0]) > 0;
234
+ if (!V || S)
235
+ return {
236
+ data: {
237
+ index: O,
238
+ overflows: b
239
+ },
240
+ reset: {
241
+ placement: $
242
+ }
243
+ };
244
+ }
245
+ let E = (D = b.filter((V) => V.overflows[0] <= 0).sort((V, S) => V.overflows[1] - S.overflows[1])[0]) == null ? void 0 : D.placement;
246
+ if (!E)
247
+ switch (t) {
248
+ case "bestFit": {
249
+ var C;
250
+ const V = (C = b.filter((S) => {
251
+ if (T) {
252
+ const F = j(S.placement);
253
+ return F === h || // 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((S) => [S.placement, S.overflows.filter((F) => F > 0).reduce((F, N) => F + N, 0)]).sort((S, F) => S[1] - F[1])[0]) == null ? void 0 : C[0];
259
+ V && (E = V);
260
+ break;
261
+ }
262
+ case "initialPlacement":
263
+ E = r;
264
+ break;
265
+ }
266
+ if (f !== E)
267
+ return {
268
+ reset: {
269
+ placement: E
270
+ }
271
+ };
272
+ }
273
+ return {};
274
+ }
275
+ };
276
+ };
277
+ async function nt(a, e) {
278
+ const {
279
+ placement: d,
280
+ platform: o,
281
+ elements: f
282
+ } = a, n = await (o.isRTL == null ? void 0 : o.isRTL(f.floating)), c = H(d), r = z(d), g = j(d) === "y", x = ["left", "top"].includes(c) ? -1 : 1, i = n && g ? -1 : 1, s = W(e, a);
283
+ let {
284
+ mainAxis: m,
285
+ crossAxis: t,
286
+ alignmentAxis: l
287
+ } = typeof s == "number" ? {
288
+ mainAxis: s,
289
+ crossAxis: 0,
290
+ alignmentAxis: null
291
+ } : {
292
+ mainAxis: s.mainAxis || 0,
293
+ crossAxis: s.crossAxis || 0,
294
+ alignmentAxis: s.alignmentAxis
295
+ };
296
+ return r && typeof l == "number" && (t = r === "end" ? l * -1 : l), g ? {
297
+ x: t * i,
298
+ y: m * x
299
+ } : {
300
+ x: m * x,
301
+ y: t * i
302
+ };
303
+ }
304
+ const lt = function(a) {
305
+ return a === void 0 && (a = 0), {
306
+ name: "offset",
307
+ options: a,
308
+ async fn(e) {
309
+ var d, o;
310
+ const {
311
+ x: f,
312
+ y: n,
313
+ placement: c,
314
+ middlewareData: r
315
+ } = e, g = await nt(e, a);
316
+ return c === ((d = r.offset) == null ? void 0 : d.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
317
+ x: f + g.x,
318
+ y: n + g.y,
319
+ data: {
320
+ ...g,
321
+ placement: c
322
+ }
323
+ };
324
+ }
325
+ };
326
+ }, ct = function(a) {
327
+ return a === void 0 && (a = {}), {
328
+ name: "shift",
329
+ options: a,
330
+ async fn(e) {
331
+ const {
332
+ x: d,
333
+ y: o,
334
+ placement: f
335
+ } = e, {
336
+ mainAxis: n = !0,
337
+ crossAxis: c = !1,
338
+ limiter: r = {
339
+ fn: (w) => {
340
+ let {
341
+ x: p,
342
+ y: h
343
+ } = w;
344
+ return {
345
+ x: p,
346
+ y: h
347
+ };
348
+ }
349
+ },
350
+ ...g
351
+ } = W(a, e), x = {
352
+ x: d,
353
+ y: o
354
+ }, i = await I(e, g), s = j(H(f)), m = et(s);
355
+ let t = x[m], l = x[s];
356
+ if (n) {
357
+ const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", h = t + i[w], y = t - i[p];
358
+ t = _(h, t, y);
359
+ }
360
+ if (c) {
361
+ const w = s === "y" ? "top" : "left", p = s === "y" ? "bottom" : "right", h = l + i[w], y = l - i[p];
362
+ l = _(h, l, y);
363
+ }
364
+ const u = r.fn({
365
+ ...e,
366
+ [m]: t,
367
+ [s]: l
368
+ });
369
+ return {
370
+ ...u,
371
+ data: {
372
+ x: u.x - d,
373
+ y: u.y - o,
374
+ enabled: {
375
+ [m]: n,
376
+ [s]: c
377
+ }
378
+ }
379
+ };
380
+ }
381
+ };
382
+ }, rt = function(a) {
383
+ return a === void 0 && (a = {}), {
384
+ name: "size",
385
+ options: a,
386
+ async fn(e) {
387
+ var d, o;
388
+ const {
389
+ placement: f,
390
+ rects: n,
391
+ platform: c,
392
+ elements: r
393
+ } = e, {
394
+ apply: g = () => {
395
+ },
396
+ ...x
397
+ } = W(a, e), i = await I(e, x), s = H(f), m = z(f), t = j(f) === "y", {
398
+ width: l,
399
+ height: u
400
+ } = n.floating;
401
+ let w, p;
402
+ s === "top" || s === "bottom" ? (w = s, p = m === (await (c.isRTL == null ? void 0 : c.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (p = s, w = m === "end" ? "top" : "bottom");
403
+ const h = u - i.top - i.bottom, y = l - i.left - i.right, A = Y(u - i[w], h), v = Y(l - i[p], y), T = !e.middlewareData.shift;
404
+ let P = A, k = v;
405
+ if ((d = e.middlewareData.shift) != null && d.enabled.x && (k = y), (o = e.middlewareData.shift) != null && o.enabled.y && (P = h), T && !m) {
406
+ const b = B(i.left, 0), L = B(i.right, 0), D = B(i.top, 0), M = B(i.bottom, 0);
407
+ t ? k = l - 2 * (b !== 0 || L !== 0 ? b + L : B(i.left, i.right)) : P = u - 2 * (D !== 0 || M !== 0 ? D + M : B(i.top, i.bottom));
408
+ }
409
+ await g({
410
+ ...e,
411
+ availableWidth: k,
412
+ availableHeight: P
413
+ });
414
+ const R = await c.getDimensions(r.floating);
415
+ return l !== R.width || u !== R.height ? {
416
+ reset: {
417
+ rects: !0
418
+ }
419
+ } : {};
420
+ }
421
+ };
422
+ };
423
+ export {
424
+ st as arrow,
425
+ ot as computePosition,
426
+ I as detectOverflow,
427
+ at as flip,
428
+ lt as offset,
429
+ X as rectToClientRect,
430
+ ct as shift,
431
+ rt as size
432
+ };