overview-components 1.0.97 → 1.0.99

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 (113) hide show
  1. package/dist/index.d.ts +27 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +10180 -40
  4. package/dist/shared/lit-icon-button.d.ts +1 -1
  5. package/dist/shared/lit-icon-button.d.ts.map +1 -1
  6. package/dist/shared/lit-loading-bar.d.ts +3 -3
  7. package/dist/shared/lit-loading-bar.d.ts.map +1 -1
  8. package/dist/style.css +1 -0
  9. package/package.json +1 -1
  10. package/dist/_virtual/FileSaver.min.js +0 -4
  11. package/dist/_virtual/_commonjsHelpers.js +0 -8
  12. package/dist/_virtual/lodash.js +0 -4
  13. package/dist/assets/generated/locales/de.js +0 -73
  14. package/dist/assets/generated/locales/en.js +0 -73
  15. package/dist/assets/generated/locales/fr.js +0 -73
  16. package/dist/assets/generated/locales/hr.js +0 -73
  17. package/dist/assets/generated/locales/it.js +0 -73
  18. package/dist/assets/generated/locales/pl.js +0 -73
  19. package/dist/assets/generated/locales/ro.js +0 -73
  20. package/dist/assets/generated/locales/sk.js +0 -73
  21. package/dist/assets/generated/locales/sr.js +0 -73
  22. package/dist/components/lit-attachments-tab.js +0 -519
  23. package/dist/components/lit-badge.js +0 -100
  24. package/dist/components/lit-case-variables-tab.js +0 -727
  25. package/dist/components/lit-chart.js +0 -395
  26. package/dist/components/lit-data-grid-tanstack.js +0 -1733
  27. package/dist/components/lit-filter-modal.js +0 -312
  28. package/dist/components/lit-multiselect-item.js +0 -530
  29. package/dist/components/lit-section-tab.js +0 -133
  30. package/dist/components/lit-tabs-overview.js +0 -304
  31. package/dist/components/react-wrappers/attachments-tab.js +0 -14
  32. package/dist/components/react-wrappers/badge.js +0 -14
  33. package/dist/components/react-wrappers/button.js +0 -14
  34. package/dist/components/react-wrappers/case-variables-tab.js +0 -14
  35. package/dist/components/react-wrappers/chart.js +0 -14
  36. package/dist/components/react-wrappers/data-grid-tanstack.js +0 -14
  37. package/dist/components/react-wrappers/filter-modal.js +0 -14
  38. package/dist/components/react-wrappers/progress-bar.js +0 -14
  39. package/dist/components/react-wrappers/section-tab.js +0 -14
  40. package/dist/components/react-wrappers/tabs-overview.js +0 -14
  41. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -432
  42. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -306
  43. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -127
  44. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -127
  45. package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
  46. package/dist/node_modules/@lit/localize/init/install.js +0 -11
  47. package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
  48. package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
  49. package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
  50. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
  51. package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
  52. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
  53. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
  54. package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
  55. package/dist/node_modules/@lit/react/create-component.js +0 -35
  56. package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
  57. package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
  58. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
  59. package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
  60. package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
  61. package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
  62. package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -250
  63. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
  64. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
  65. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
  66. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
  67. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  68. package/dist/node_modules/chart.js/dist/chart.js +0 -7122
  69. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
  70. package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
  71. package/dist/node_modules/lit-element/lit-element.js +0 -51
  72. package/dist/node_modules/lit-html/async-directive.js +0 -69
  73. package/dist/node_modules/lit-html/directive-helpers.js +0 -45
  74. package/dist/node_modules/lit-html/directive.js +0 -27
  75. package/dist/node_modules/lit-html/directives/ref.js +0 -42
  76. package/dist/node_modules/lit-html/directives/repeat.js +0 -61
  77. package/dist/node_modules/lit-html/directives/style-map.js +0 -36
  78. package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
  79. package/dist/node_modules/lit-html/lit-html.js +0 -243
  80. package/dist/node_modules/lodash/lodash.js +0 -3678
  81. package/dist/node_modules/luxon/src/datetime.js +0 -1793
  82. package/dist/node_modules/luxon/src/duration.js +0 -723
  83. package/dist/node_modules/luxon/src/errors.js +0 -40
  84. package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
  85. package/dist/node_modules/luxon/src/impl/diff.js +0 -36
  86. package/dist/node_modules/luxon/src/impl/digits.js +0 -74
  87. package/dist/node_modules/luxon/src/impl/english.js +0 -138
  88. package/dist/node_modules/luxon/src/impl/formats.js +0 -150
  89. package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
  90. package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
  91. package/dist/node_modules/luxon/src/impl/locale.js +0 -282
  92. package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
  93. package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
  94. package/dist/node_modules/luxon/src/impl/util.js +0 -206
  95. package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
  96. package/dist/node_modules/luxon/src/info.js +0 -180
  97. package/dist/node_modules/luxon/src/interval.js +0 -466
  98. package/dist/node_modules/luxon/src/settings.js +0 -150
  99. package/dist/node_modules/luxon/src/zone.js +0 -88
  100. package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
  101. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
  102. package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
  103. package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
  104. package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
  105. package/dist/shared/lit-button.js +0 -142
  106. package/dist/shared/lit-progress-bar.js +0 -83
  107. package/dist/shared/simple-tooltip.js +0 -174
  108. package/dist/shared/styles/button-shared-styles.js +0 -205
  109. package/dist/utils/currency.js +0 -13
  110. package/dist/utils/custom-filters.js +0 -50
  111. package/dist/utils/date.js +0 -15
  112. package/dist/utils/getOperatorByType.js +0 -52
  113. package/dist/utils/localization.js +0 -30
@@ -1,432 +0,0 @@
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
- };