overview-components 1.0.75 → 1.0.76

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 (78) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/_commonjsHelpers.js +4 -0
  3. package/dist/components/lit-attachments-tab.js +11 -7
  4. package/dist/components/lit-badge.js +10 -7
  5. package/dist/components/lit-case-variables-tab.js +23 -19
  6. package/dist/components/lit-chart.js +24 -21
  7. package/dist/components/lit-data-grid-tanstack.js +42 -37
  8. package/dist/components/lit-filter-modal.js +6 -2
  9. package/dist/components/lit-multiselect-item.js +7 -3
  10. package/dist/components/lit-section-tab.js +15 -11
  11. package/dist/components/lit-tabs-overview.js +9 -5
  12. package/dist/components/react-wrappers/attachments-tab.js +1 -1
  13. package/dist/components/react-wrappers/badge.js +1 -1
  14. package/dist/components/react-wrappers/button.js +3 -3
  15. package/dist/components/react-wrappers/case-variables-tab.js +3 -3
  16. package/dist/components/react-wrappers/chart.js +3 -3
  17. package/dist/components/react-wrappers/data-grid-tanstack.js +1 -1
  18. package/dist/components/react-wrappers/filter-modal.js +4 -4
  19. package/dist/components/react-wrappers/progress-bar.js +5 -5
  20. package/dist/components/react-wrappers/section-tab.js +4 -4
  21. package/dist/components/react-wrappers/tabs-overview.js +3 -3
  22. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  23. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  24. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  25. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  26. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  27. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  28. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  29. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  30. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  31. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  32. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  33. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  34. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  35. package/dist/node_modules/@lit/react/create-component.js +35 -0
  36. package/dist/node_modules/@lit/reactive-element/css-tag.js +32 -24
  37. package/dist/node_modules/@lit/reactive-element/reactive-element.js +4 -3
  38. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  39. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  40. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  41. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  42. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  43. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  44. package/dist/node_modules/lit-element/lit-element.js +51 -0
  45. package/dist/node_modules/lit-html/lit-html.js +75 -74
  46. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  47. package/dist/node_modules/luxon/src/duration.js +723 -0
  48. package/dist/node_modules/luxon/src/errors.js +40 -0
  49. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  50. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  51. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  52. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  53. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  54. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  55. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  56. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  57. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  58. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  59. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  60. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  61. package/dist/node_modules/luxon/src/info.js +180 -0
  62. package/dist/node_modules/luxon/src/interval.js +466 -0
  63. package/dist/node_modules/luxon/src/settings.js +150 -0
  64. package/dist/node_modules/luxon/src/zone.js +88 -0
  65. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  66. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  67. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  68. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  69. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  70. package/dist/shared/lit-button.js +11 -8
  71. package/dist/shared/lit-progress-bar.js +10 -7
  72. package/dist/shared/simple-tooltip.js +33 -31
  73. package/dist/shared/styles/button-shared-styles.js +6 -3
  74. package/dist/utils/custom-filters.js +8 -7
  75. package/dist/utils/date.js +6 -5
  76. package/dist/utils/getOperatorByType.js +4 -3
  77. package/dist/utils/localization.js +1 -1
  78. package/package.json +1 -1
@@ -0,0 +1,490 @@
1
+ import { debounce as z, memo as d, notUndefined as m, approxEqual as y } from "./utils.js";
2
+ const v = (r) => {
3
+ const { offsetWidth: h, offsetHeight: t } = r;
4
+ return { width: h, height: t };
5
+ }, E = (r) => r, w = (r) => {
6
+ const h = Math.max(r.startIndex - r.overscan, 0), t = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
7
+ for (let e = h; e <= t; e++)
8
+ s.push(e);
9
+ return s;
10
+ }, A = (r, h) => {
11
+ const t = r.scrollElement;
12
+ if (!t)
13
+ return;
14
+ const s = r.targetWindow;
15
+ if (!s)
16
+ return;
17
+ const e = (n) => {
18
+ const { width: o, height: a } = n;
19
+ h({ width: Math.round(o), height: Math.round(a) });
20
+ };
21
+ if (e(v(t)), !s.ResizeObserver)
22
+ return () => {
23
+ };
24
+ const i = new s.ResizeObserver((n) => {
25
+ const o = () => {
26
+ const a = n[0];
27
+ if (a != null && a.borderBoxSize) {
28
+ const c = a.borderBoxSize[0];
29
+ if (c) {
30
+ e({ width: c.inlineSize, height: c.blockSize });
31
+ return;
32
+ }
33
+ }
34
+ e(v(t));
35
+ };
36
+ r.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
37
+ });
38
+ return i.observe(t, { box: "border-box" }), () => {
39
+ i.unobserve(t);
40
+ };
41
+ }, x = {
42
+ passive: !0
43
+ }, S = typeof window > "u" ? !0 : "onscrollend" in window, _ = (r, h) => {
44
+ const t = r.scrollElement;
45
+ if (!t)
46
+ return;
47
+ const s = r.targetWindow;
48
+ if (!s)
49
+ return;
50
+ let e = 0;
51
+ const i = r.options.useScrollendEvent && S ? () => {
52
+ } : z(
53
+ s,
54
+ () => {
55
+ h(e, !1);
56
+ },
57
+ r.options.isScrollingResetDelay
58
+ ), n = (l) => () => {
59
+ const { horizontal: f, isRtl: u } = r.options;
60
+ e = f ? t.scrollLeft * (u && -1 || 1) : t.scrollTop, i(), h(e, l);
61
+ }, o = n(!0), a = n(!1);
62
+ a(), t.addEventListener("scroll", o, x);
63
+ const c = r.options.useScrollendEvent && S;
64
+ return c && t.addEventListener("scrollend", a, x), () => {
65
+ t.removeEventListener("scroll", o), c && t.removeEventListener("scrollend", a);
66
+ };
67
+ }, C = (r, h, t) => {
68
+ if (h != null && h.borderBoxSize) {
69
+ const s = h.borderBoxSize[0];
70
+ if (s)
71
+ return Math.round(
72
+ s[t.options.horizontal ? "inlineSize" : "blockSize"]
73
+ );
74
+ }
75
+ return r[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
76
+ }, W = (r, {
77
+ adjustments: h = 0,
78
+ behavior: t
79
+ }, s) => {
80
+ var e, i;
81
+ const n = r + h;
82
+ (i = (e = s.scrollElement) == null ? void 0 : e.scrollTo) == null || i.call(e, {
83
+ [s.options.horizontal ? "left" : "top"]: n,
84
+ behavior: t
85
+ });
86
+ };
87
+ class F {
88
+ constructor(h) {
89
+ this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
90
+ let t = null;
91
+ const s = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((e) => {
92
+ e.forEach((i) => {
93
+ const n = () => {
94
+ this._measureElement(i.target, i);
95
+ };
96
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(n) : n();
97
+ });
98
+ }));
99
+ return {
100
+ disconnect: () => {
101
+ var e;
102
+ (e = s()) == null || e.disconnect(), t = null;
103
+ },
104
+ observe: (e) => {
105
+ var i;
106
+ return (i = s()) == null ? void 0 : i.observe(e, { box: "border-box" });
107
+ },
108
+ unobserve: (e) => {
109
+ var i;
110
+ return (i = s()) == null ? void 0 : i.unobserve(e);
111
+ }
112
+ };
113
+ })(), this.range = null, this.setOptions = (t) => {
114
+ Object.entries(t).forEach(([s, e]) => {
115
+ typeof e > "u" && delete t[s];
116
+ }), this.options = {
117
+ debug: !1,
118
+ initialOffset: 0,
119
+ overscan: 1,
120
+ paddingStart: 0,
121
+ paddingEnd: 0,
122
+ scrollPaddingStart: 0,
123
+ scrollPaddingEnd: 0,
124
+ horizontal: !1,
125
+ getItemKey: E,
126
+ rangeExtractor: w,
127
+ onChange: () => {
128
+ },
129
+ measureElement: C,
130
+ initialRect: { width: 0, height: 0 },
131
+ scrollMargin: 0,
132
+ gap: 0,
133
+ indexAttribute: "data-index",
134
+ initialMeasurementsCache: [],
135
+ lanes: 1,
136
+ isScrollingResetDelay: 150,
137
+ enabled: !0,
138
+ isRtl: !1,
139
+ useScrollendEvent: !1,
140
+ useAnimationFrameWithResizeObserver: !1,
141
+ ...t
142
+ };
143
+ }, this.notify = (t) => {
144
+ var s, e;
145
+ (e = (s = this.options).onChange) == null || e.call(s, this, t);
146
+ }, this.maybeNotify = d(
147
+ () => (this.calculateRange(), [
148
+ this.isScrolling,
149
+ this.range ? this.range.startIndex : null,
150
+ this.range ? this.range.endIndex : null
151
+ ]),
152
+ (t) => {
153
+ this.notify(t);
154
+ },
155
+ {
156
+ key: !1,
157
+ debug: () => this.options.debug,
158
+ initialDeps: [
159
+ this.isScrolling,
160
+ this.range ? this.range.startIndex : null,
161
+ this.range ? this.range.endIndex : null
162
+ ]
163
+ }
164
+ ), this.cleanup = () => {
165
+ this.unsubs.filter(Boolean).forEach((t) => t()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
166
+ }, this._didMount = () => () => {
167
+ this.cleanup();
168
+ }, this._willUpdate = () => {
169
+ var t;
170
+ const s = this.options.enabled ? this.options.getScrollElement() : null;
171
+ if (this.scrollElement !== s) {
172
+ if (this.cleanup(), !s) {
173
+ this.maybeNotify();
174
+ return;
175
+ }
176
+ this.scrollElement = s, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((t = this.scrollElement) == null ? void 0 : t.window) ?? null, this.elementsCache.forEach((e) => {
177
+ this.observer.observe(e);
178
+ }), this._scrollToOffset(this.getScrollOffset(), {
179
+ adjustments: void 0,
180
+ behavior: void 0
181
+ }), this.unsubs.push(
182
+ this.options.observeElementRect(this, (e) => {
183
+ this.scrollRect = e, this.maybeNotify();
184
+ })
185
+ ), this.unsubs.push(
186
+ this.options.observeElementOffset(this, (e, i) => {
187
+ this.scrollAdjustments = 0, this.scrollDirection = i ? this.getScrollOffset() < e ? "forward" : "backward" : null, this.scrollOffset = e, this.isScrolling = i, this.maybeNotify();
188
+ })
189
+ );
190
+ }
191
+ }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, s) => {
192
+ const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
193
+ for (let n = s - 1; n >= 0; n--) {
194
+ const o = t[n];
195
+ if (e.has(o.lane))
196
+ continue;
197
+ const a = i.get(
198
+ o.lane
199
+ );
200
+ if (a == null || o.end > a.end ? i.set(o.lane, o) : o.end < a.end && e.set(o.lane, !0), e.size === this.options.lanes)
201
+ break;
202
+ }
203
+ return i.size === this.options.lanes ? Array.from(i.values()).sort((n, o) => n.end === o.end ? n.index - o.index : n.end - o.end)[0] : void 0;
204
+ }, this.getMeasurementOptions = d(
205
+ () => [
206
+ this.options.count,
207
+ this.options.paddingStart,
208
+ this.options.scrollMargin,
209
+ this.options.getItemKey,
210
+ this.options.enabled
211
+ ],
212
+ (t, s, e, i, n) => (this.pendingMeasuredCacheIndexes = [], {
213
+ count: t,
214
+ paddingStart: s,
215
+ scrollMargin: e,
216
+ getItemKey: i,
217
+ enabled: n
218
+ }),
219
+ {
220
+ key: !1
221
+ }
222
+ ), this.getMeasurements = d(
223
+ () => [this.getMeasurementOptions(), this.itemSizeCache],
224
+ ({ count: t, paddingStart: s, scrollMargin: e, getItemKey: i, enabled: n }, o) => {
225
+ if (!n)
226
+ return this.measurementsCache = [], this.itemSizeCache.clear(), [];
227
+ this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((l) => {
228
+ this.itemSizeCache.set(l.key, l.size);
229
+ }));
230
+ const a = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
231
+ this.pendingMeasuredCacheIndexes = [];
232
+ const c = this.measurementsCache.slice(0, a);
233
+ for (let l = a; l < t; l++) {
234
+ const f = i(l), u = this.options.lanes === 1 ? c[l - 1] : this.getFurthestMeasurement(c, l), g = u ? u.end + this.options.gap : s + e, p = o.get(f), b = typeof p == "number" ? p : this.options.estimateSize(l), M = g + b, O = u ? u.lane : l % this.options.lanes;
235
+ c[l] = {
236
+ index: l,
237
+ start: g,
238
+ size: b,
239
+ end: M,
240
+ key: f,
241
+ lane: O
242
+ };
243
+ }
244
+ return this.measurementsCache = c, c;
245
+ },
246
+ {
247
+ key: !1,
248
+ debug: () => this.options.debug
249
+ }
250
+ ), this.calculateRange = d(
251
+ () => [
252
+ this.getMeasurements(),
253
+ this.getSize(),
254
+ this.getScrollOffset(),
255
+ this.options.lanes
256
+ ],
257
+ (t, s, e, i) => this.range = t.length > 0 && s > 0 ? T({
258
+ measurements: t,
259
+ outerSize: s,
260
+ scrollOffset: e,
261
+ lanes: i
262
+ }) : null,
263
+ {
264
+ key: !1,
265
+ debug: () => this.options.debug
266
+ }
267
+ ), this.getVirtualIndexes = d(
268
+ () => {
269
+ let t = null, s = null;
270
+ const e = this.calculateRange();
271
+ return e && (t = e.startIndex, s = e.endIndex), this.maybeNotify.updateDeps([this.isScrolling, t, s]), [
272
+ this.options.rangeExtractor,
273
+ this.options.overscan,
274
+ this.options.count,
275
+ t,
276
+ s
277
+ ];
278
+ },
279
+ (t, s, e, i, n) => i === null || n === null ? [] : t({
280
+ startIndex: i,
281
+ endIndex: n,
282
+ overscan: s,
283
+ count: e
284
+ }),
285
+ {
286
+ key: !1,
287
+ debug: () => this.options.debug
288
+ }
289
+ ), this.indexFromElement = (t) => {
290
+ const s = this.options.indexAttribute, e = t.getAttribute(s);
291
+ return e ? parseInt(e, 10) : (console.warn(
292
+ `Missing attribute name '${s}={index}' on measured element.`
293
+ ), -1);
294
+ }, this._measureElement = (t, s) => {
295
+ const e = this.indexFromElement(t), i = this.measurementsCache[e];
296
+ if (!i)
297
+ return;
298
+ const n = i.key, o = this.elementsCache.get(n);
299
+ o !== t && (o && this.observer.unobserve(o), this.observer.observe(t), this.elementsCache.set(n, t)), t.isConnected && this.resizeItem(e, this.options.measureElement(t, s, this));
300
+ }, this.resizeItem = (t, s) => {
301
+ const e = this.measurementsCache[t];
302
+ if (!e)
303
+ return;
304
+ const i = this.itemSizeCache.get(e.key) ?? e.size, n = s - i;
305
+ n !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(e, n, this) : e.start < this.getScrollOffset() + this.scrollAdjustments) && this._scrollToOffset(this.getScrollOffset(), {
306
+ adjustments: this.scrollAdjustments += n,
307
+ behavior: void 0
308
+ }), this.pendingMeasuredCacheIndexes.push(e.index), this.itemSizeCache = new Map(this.itemSizeCache.set(e.key, s)), this.notify(!1));
309
+ }, this.measureElement = (t) => {
310
+ if (!t) {
311
+ this.elementsCache.forEach((s, e) => {
312
+ s.isConnected || (this.observer.unobserve(s), this.elementsCache.delete(e));
313
+ });
314
+ return;
315
+ }
316
+ this._measureElement(t, void 0);
317
+ }, this.getVirtualItems = d(
318
+ () => [this.getVirtualIndexes(), this.getMeasurements()],
319
+ (t, s) => {
320
+ const e = [];
321
+ for (let i = 0, n = t.length; i < n; i++) {
322
+ const o = t[i], a = s[o];
323
+ e.push(a);
324
+ }
325
+ return e;
326
+ },
327
+ {
328
+ key: !1,
329
+ debug: () => this.options.debug
330
+ }
331
+ ), this.getVirtualItemForOffset = (t) => {
332
+ const s = this.getMeasurements();
333
+ if (s.length !== 0)
334
+ return m(
335
+ s[I(
336
+ 0,
337
+ s.length - 1,
338
+ (e) => m(s[e]).start,
339
+ t
340
+ )]
341
+ );
342
+ }, this.getOffsetForAlignment = (t, s, e = 0) => {
343
+ const i = this.getSize(), n = this.getScrollOffset();
344
+ s === "auto" && (s = t >= n + i ? "end" : "start"), s === "center" ? t += (e - i) / 2 : s === "end" && (t -= i);
345
+ const o = this.getTotalSize() - i;
346
+ return Math.max(Math.min(o, t), 0);
347
+ }, this.getOffsetForIndex = (t, s = "auto") => {
348
+ t = Math.max(0, Math.min(t, this.options.count - 1));
349
+ const e = this.measurementsCache[t];
350
+ if (!e)
351
+ return;
352
+ const i = this.getSize(), n = this.getScrollOffset();
353
+ if (s === "auto")
354
+ if (e.end >= n + i - this.options.scrollPaddingEnd)
355
+ s = "end";
356
+ else if (e.start <= n + this.options.scrollPaddingStart)
357
+ s = "start";
358
+ else
359
+ return [n, s];
360
+ const o = s === "end" ? e.end + this.options.scrollPaddingEnd : e.start - this.options.scrollPaddingStart;
361
+ return [
362
+ this.getOffsetForAlignment(o, s, e.size),
363
+ s
364
+ ];
365
+ }, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
366
+ this.scrollToIndexTimeoutId !== null && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
367
+ }, this.scrollToOffset = (t, { align: s = "start", behavior: e } = {}) => {
368
+ this.cancelScrollToIndex(), e === "smooth" && this.isDynamicMode() && console.warn(
369
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
370
+ ), this._scrollToOffset(this.getOffsetForAlignment(t, s), {
371
+ adjustments: void 0,
372
+ behavior: e
373
+ });
374
+ }, this.scrollToIndex = (t, { align: s = "auto", behavior: e } = {}) => {
375
+ t = Math.max(0, Math.min(t, this.options.count - 1)), this.cancelScrollToIndex(), e === "smooth" && this.isDynamicMode() && console.warn(
376
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
377
+ );
378
+ const i = this.getOffsetForIndex(t, s);
379
+ if (!i) return;
380
+ const [n, o] = i;
381
+ this._scrollToOffset(n, { adjustments: void 0, behavior: e }), e !== "smooth" && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
382
+ if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
383
+ this.options.getItemKey(t)
384
+ )) {
385
+ const [c] = m(
386
+ this.getOffsetForIndex(t, o)
387
+ ), l = this.getScrollOffset();
388
+ y(c, l) || this.scrollToIndex(t, { align: o, behavior: e });
389
+ } else
390
+ this.scrollToIndex(t, { align: o, behavior: e });
391
+ }));
392
+ }, this.scrollBy = (t, { behavior: s } = {}) => {
393
+ this.cancelScrollToIndex(), s === "smooth" && this.isDynamicMode() && console.warn(
394
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
395
+ ), this._scrollToOffset(this.getScrollOffset() + t, {
396
+ adjustments: void 0,
397
+ behavior: s
398
+ });
399
+ }, this.getTotalSize = () => {
400
+ var t;
401
+ const s = this.getMeasurements();
402
+ let e;
403
+ if (s.length === 0)
404
+ e = this.options.paddingStart;
405
+ else if (this.options.lanes === 1)
406
+ e = ((t = s[s.length - 1]) == null ? void 0 : t.end) ?? 0;
407
+ else {
408
+ const i = Array(this.options.lanes).fill(null);
409
+ let n = s.length - 1;
410
+ for (; n >= 0 && i.some((o) => o === null); ) {
411
+ const o = s[n];
412
+ i[o.lane] === null && (i[o.lane] = o.end), n--;
413
+ }
414
+ e = Math.max(...i.filter((o) => o !== null));
415
+ }
416
+ return Math.max(
417
+ e - this.options.scrollMargin + this.options.paddingEnd,
418
+ 0
419
+ );
420
+ }, this._scrollToOffset = (t, {
421
+ adjustments: s,
422
+ behavior: e
423
+ }) => {
424
+ this.options.scrollToFn(t, { behavior: e, adjustments: s }, this);
425
+ }, this.measure = () => {
426
+ this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
427
+ }, this.setOptions(h);
428
+ }
429
+ }
430
+ const I = (r, h, t, s) => {
431
+ for (; r <= h; ) {
432
+ const e = (r + h) / 2 | 0, i = t(e);
433
+ if (i < s)
434
+ r = e + 1;
435
+ else if (i > s)
436
+ h = e - 1;
437
+ else
438
+ return e;
439
+ }
440
+ return r > 0 ? r - 1 : 0;
441
+ };
442
+ function T({
443
+ measurements: r,
444
+ outerSize: h,
445
+ scrollOffset: t,
446
+ lanes: s
447
+ }) {
448
+ const e = r.length - 1, i = (a) => r[a].start;
449
+ if (r.length <= s)
450
+ return {
451
+ startIndex: 0,
452
+ endIndex: e
453
+ };
454
+ let n = I(
455
+ 0,
456
+ e,
457
+ i,
458
+ t
459
+ ), o = n;
460
+ if (s === 1)
461
+ for (; o < e && r[o].end < t + h; )
462
+ o++;
463
+ else if (s > 1) {
464
+ const a = Array(s).fill(0);
465
+ for (; o < e && a.some((l) => l < t + h); ) {
466
+ const l = r[o];
467
+ a[l.lane] = l.end, o++;
468
+ }
469
+ const c = Array(s).fill(t + h);
470
+ for (; n >= 0 && c.some((l) => l >= t); ) {
471
+ const l = r[n];
472
+ c[l.lane] = l.start, n--;
473
+ }
474
+ n = Math.max(0, n - n % s), o = Math.min(e, o + (s - 1 - o % s));
475
+ }
476
+ return { startIndex: n, endIndex: o };
477
+ }
478
+ export {
479
+ F as Virtualizer,
480
+ y as approxEqual,
481
+ z as debounce,
482
+ E as defaultKeyExtractor,
483
+ w as defaultRangeExtractor,
484
+ W as elementScroll,
485
+ C as measureElement,
486
+ d as memo,
487
+ m as notUndefined,
488
+ _ as observeElementOffset,
489
+ A as observeElementRect
490
+ };
@@ -0,0 +1,52 @@
1
+ function T(n, i, e) {
2
+ let l = e.initialDeps ?? [], t;
3
+ function r() {
4
+ var o, m, h, f;
5
+ let g;
6
+ e.key && ((o = e.debug) != null && o.call(e)) && (g = Date.now());
7
+ const u = n();
8
+ if (!(u.length !== l.length || u.some((c, a) => l[a] !== c)))
9
+ return t;
10
+ l = u;
11
+ let s;
12
+ if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = i(...u), e.key && ((h = e.debug) != null && h.call(e))) {
13
+ const c = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (d, v) => {
14
+ for (d = String(d); d.length < v; )
15
+ d = " " + d;
16
+ return d;
17
+ };
18
+ console.info(
19
+ `%c⏱ ${w(a, 5)} /${w(c, 5)} ms`,
20
+ `
21
+ font-size: .6rem;
22
+ font-weight: bold;
23
+ color: hsl(${Math.max(
24
+ 0,
25
+ Math.min(120 - 120 * b, 120)
26
+ )}deg 100% 31%);`,
27
+ e == null ? void 0 : e.key
28
+ );
29
+ }
30
+ return (f = e == null ? void 0 : e.onChange) == null || f.call(e, t), t;
31
+ }
32
+ return r.updateDeps = (o) => {
33
+ l = o;
34
+ }, r;
35
+ }
36
+ function y(n, i) {
37
+ if (n === void 0)
38
+ throw new Error("Unexpected undefined");
39
+ return n;
40
+ }
41
+ const M = (n, i) => Math.abs(n - i) <= 1, k = (n, i, e) => {
42
+ let l;
43
+ return function(...t) {
44
+ n.clearTimeout(l), l = n.setTimeout(() => i.apply(this, t), e);
45
+ };
46
+ };
47
+ export {
48
+ M as approxEqual,
49
+ k as debounce,
50
+ T as memo,
51
+ y as notUndefined
52
+ };
@@ -0,0 +1,74 @@
1
+ import { commonjsGlobal as c } from "../../../_virtual/_commonjsHelpers.js";
2
+ import { __module as E } from "../../../_virtual/FileSaver.min.js";
3
+ (function(h, j) {
4
+ (function(p, i) {
5
+ i();
6
+ })(c, function() {
7
+ function p(e, t) {
8
+ return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
9
+ }
10
+ function i(e, t, r) {
11
+ var o = new XMLHttpRequest();
12
+ o.open("GET", e), o.responseType = "blob", o.onload = function() {
13
+ u(o.response, t, r);
14
+ }, o.onerror = function() {
15
+ console.error("could not download file");
16
+ }, o.send();
17
+ }
18
+ function v(e) {
19
+ var t = new XMLHttpRequest();
20
+ t.open("HEAD", e, !1);
21
+ try {
22
+ t.send();
23
+ } catch {
24
+ }
25
+ return 200 <= t.status && 299 >= t.status;
26
+ }
27
+ function l(e) {
28
+ try {
29
+ e.dispatchEvent(new MouseEvent("click"));
30
+ } catch {
31
+ var t = document.createEvent("MouseEvents");
32
+ t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
33
+ }
34
+ }
35
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, m = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
+ } : "download" in HTMLAnchorElement.prototype && !m ? function(e, t, r) {
37
+ var o = a.URL || a.webkitURL, n = document.createElement("a");
38
+ t = t || e.name || "download", n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin === location.origin ? l(n) : v(n.href) ? i(e, t, r) : l(n, n.target = "_blank")) : (n.href = o.createObjectURL(e), setTimeout(function() {
39
+ o.revokeObjectURL(n.href);
40
+ }, 4e4), setTimeout(function() {
41
+ l(n);
42
+ }, 0));
43
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
44
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
45
+ else if (v(e)) i(e, t, r);
46
+ else {
47
+ var o = document.createElement("a");
48
+ o.href = e, o.target = "_blank", setTimeout(function() {
49
+ l(o);
50
+ });
51
+ }
52
+ } : function(e, t, r, o) {
53
+ if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
54
+ var n = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, w = /CriOS\/[\d]+/.test(navigator.userAgent);
55
+ if ((w || n && b || m) && typeof FileReader < "u") {
56
+ var f = new FileReader();
57
+ f.onloadend = function() {
58
+ var s = f.result;
59
+ s = w ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = s : location = s, o = null;
60
+ }, f.readAsDataURL(e);
61
+ } else {
62
+ var y = a.URL || a.webkitURL, d = y.createObjectURL(e);
63
+ o ? o.location = d : location.href = d, o = null, setTimeout(function() {
64
+ y.revokeObjectURL(d);
65
+ }, 4e4);
66
+ }
67
+ });
68
+ a.saveAs = u.saveAs = u, h.exports = u;
69
+ });
70
+ })(E);
71
+ var A = E.exports;
72
+ export {
73
+ A as F
74
+ };
@@ -0,0 +1,51 @@
1
+ import { ReactiveElement as i } from "../@lit/reactive-element/reactive-element.js";
2
+ import { defaultConverter as m, notEqual as C } from "../@lit/reactive-element/reactive-element.js";
3
+ import { render as a, noChange as l } from "../lit-html/lit-html.js";
4
+ import { _$LH as E, html as R, nothing as $ } from "../lit-html/lit-html.js";
5
+ /**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */
10
+ const t = globalThis;
11
+ class r extends i {
12
+ constructor() {
13
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
14
+ }
15
+ createRenderRoot() {
16
+ var n;
17
+ const e = super.createRenderRoot();
18
+ return (n = this.renderOptions).renderBefore ?? (n.renderBefore = e.firstChild), e;
19
+ }
20
+ update(e) {
21
+ const n = this.render();
22
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = a(n, this.renderRoot, this.renderOptions);
23
+ }
24
+ connectedCallback() {
25
+ var e;
26
+ super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
27
+ }
28
+ disconnectedCallback() {
29
+ var e;
30
+ super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
31
+ }
32
+ render() {
33
+ return l;
34
+ }
35
+ }
36
+ var s;
37
+ r._$litElement$ = !0, r.finalized = !0, (s = t.litElementHydrateSupport) == null || s.call(t, { LitElement: r });
38
+ const o = t.litElementPolyfillSupport;
39
+ o == null || o({ LitElement: r });
40
+ (t.litElementVersions ?? (t.litElementVersions = [])).push("4.2.0");
41
+ export {
42
+ r as LitElement,
43
+ i as ReactiveElement,
44
+ E as _$LH,
45
+ m as defaultConverter,
46
+ R as html,
47
+ l as noChange,
48
+ C as notEqual,
49
+ $ as nothing,
50
+ a as render
51
+ };