@alfadocs/ui-kit-debug 1.97.0 → 1.99.0
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.
- package/dist/_chunks/{balance-badge-cell-DaZokVZY.js → balance-badge-cell-C-Rz616n.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DaZokVZY.js.map → balance-badge-cell-C-Rz616n.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-26LEMx0q.js → calendar-appointment-editor-dialog-CUJMnFL7.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-26LEMx0q.js.map → calendar-appointment-editor-dialog-CUJMnFL7.js.map} +1 -1
- package/dist/_chunks/{data-table-C4UT4L9B.js → data-table-C5uN4ato.js} +8 -6
- package/dist/_chunks/data-table-C5uN4ato.js.map +1 -0
- package/dist/_chunks/{file-manager-B4K2j7jB.js → file-manager-CnGBVX_q.js} +2 -2
- package/dist/_chunks/{file-manager-B4K2j7jB.js.map → file-manager-CnGBVX_q.js.map} +1 -1
- package/dist/_chunks/{heatmap-B2Z1_kDn.js → heatmap-Cz0Krieg.js} +666 -650
- package/dist/_chunks/{heatmap-B2Z1_kDn.js.map → heatmap-Cz0Krieg.js.map} +1 -1
- package/dist/_chunks/{info-tip-Do3RFt60.js → info-tip-1Xsq9GLi.js} +110 -96
- package/dist/_chunks/info-tip-1Xsq9GLi.js.map +1 -0
- package/dist/ag-grid.css +4 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts +1 -0
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/heatmap-table-view.d.ts.map +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/info-tip/info-tip.d.ts +11 -3
- package/dist/components/info-tip/info-tip.d.ts.map +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/index.js +6 -6
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +5 -4
- package/package.json +1 -1
- package/dist/_chunks/data-table-C4UT4L9B.js.map +0 -1
- package/dist/_chunks/info-tip-Do3RFt60.js.map +0 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as C, jsxs as le, Fragment as Gn } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as Vn, createContext as $n, useId as Pn, useRef as ie, useMemo as X, useState as we, useCallback as ae, useEffect as gt, memo as jn, forwardRef as Mn, lazy as Sn, Suspense as qn } from "react";
|
|
3
|
+
import { useTranslation as wt } from "react-i18next";
|
|
4
4
|
import { u as Wn } from "./registry-DvAUVLHh.js";
|
|
5
|
-
import { f as
|
|
5
|
+
import { f as Nn } from "./intl-locale-FWh-Y5_3.js";
|
|
6
6
|
import { B as Un } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { E as Yn } from "./empty-state-DwJ5YNzz.js";
|
|
8
8
|
import { L as Jn } from "./live-region-C41SO3cA.js";
|
|
9
9
|
import { S as qt } from "./skeleton-tTWJpvAq.js";
|
|
10
|
-
import { T as
|
|
10
|
+
import { T as An, a as Qn } from "./tooltip-uEBdD1-5.js";
|
|
11
11
|
import { p as Xn } from "./privacy-mask-DbEKI-Jv.js";
|
|
12
12
|
import { u as nt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
13
13
|
import { i as Zn } from "./is-development-CLUAnsU7.js";
|
|
14
14
|
import { c as ge } from "./index-D2ZczOXr.js";
|
|
15
15
|
import { C as eo } from "./chevron-down-DWE7GSq9.js";
|
|
16
16
|
import { E as to } from "./error-boundary-tAn_GuCu.js";
|
|
17
|
+
import { I as no } from "./icon-button-group-mXvYDaba.js";
|
|
17
18
|
import { c as _n } from "./createLucideIcon-DhHxpK9K.js";
|
|
18
19
|
/**
|
|
19
20
|
* @license lucide-react v1.22.0 - ISC
|
|
@@ -21,20 +22,20 @@ import { c as _n } from "./createLucideIcon-DhHxpK9K.js";
|
|
|
21
22
|
* This source code is licensed under the ISC license.
|
|
22
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
24
|
*/
|
|
24
|
-
const
|
|
25
|
+
const oo = [
|
|
25
26
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
26
27
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
27
28
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
28
29
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
29
30
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
30
|
-
],
|
|
31
|
+
], ao = _n("grid-3x3", oo);
|
|
31
32
|
/**
|
|
32
33
|
* @license lucide-react v1.22.0 - ISC
|
|
33
34
|
*
|
|
34
35
|
* This source code is licensed under the ISC license.
|
|
35
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
37
|
*/
|
|
37
|
-
const
|
|
38
|
+
const ro = [
|
|
38
39
|
[
|
|
39
40
|
"path",
|
|
40
41
|
{
|
|
@@ -42,7 +43,7 @@ const ao = [
|
|
|
42
43
|
key: "gugj83"
|
|
43
44
|
}
|
|
44
45
|
]
|
|
45
|
-
],
|
|
46
|
+
], so = _n("table-2", ro), ft = {
|
|
46
47
|
type: "object",
|
|
47
48
|
properties: {
|
|
48
49
|
rowId: { type: "string", description: "Row id, from rowIds." },
|
|
@@ -52,7 +53,7 @@ const ao = [
|
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
required: ["rowId", "columnId"]
|
|
55
|
-
},
|
|
56
|
+
}, io = {
|
|
56
57
|
id: "heatmap",
|
|
57
58
|
capabilities: [
|
|
58
59
|
"select_single",
|
|
@@ -320,23 +321,23 @@ const ao = [
|
|
|
320
321
|
description: 'On every data cell: "<rowId>:<columnId>", built from the opaque ids, never from labels. A group header row and its cells carry data-heatmap-group-id, the group id as in groupIds.'
|
|
321
322
|
}
|
|
322
323
|
}
|
|
323
|
-
},
|
|
324
|
-
function
|
|
325
|
-
return
|
|
324
|
+
}, Tt = $n(null);
|
|
325
|
+
function Tn() {
|
|
326
|
+
return Vn(Tt);
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
+
function Rn(e, t) {
|
|
328
329
|
const n = new Intl.NumberFormat(
|
|
329
330
|
e,
|
|
330
331
|
t === "rate" ? { style: "percent", maximumFractionDigits: 0 } : { maximumFractionDigits: 2 }
|
|
331
332
|
);
|
|
332
333
|
return (o) => n.format(o);
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
+
function En(e) {
|
|
335
336
|
const t = new Intl.NumberFormat(e, { maximumFractionDigits: 0 });
|
|
336
337
|
return (n) => t.format(n);
|
|
337
338
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
339
|
+
const lo = "–";
|
|
340
|
+
function co({
|
|
340
341
|
t: e,
|
|
341
342
|
privacyMode: t,
|
|
342
343
|
privacyScope: n = "rows",
|
|
@@ -361,24 +362,24 @@ function lo({
|
|
|
361
362
|
// A group missing from `groups` has only its id to show, which may be a
|
|
362
363
|
// name, so privacy mode masks it whatever the scope.
|
|
363
364
|
groupLabel: (p) => m ? d : u.get(p) ?? (t ? d : p),
|
|
364
|
-
cellName: (p,
|
|
365
|
-
groupRowText: (p,
|
|
365
|
+
cellName: (p, N) => e("heatmap.cellName", { row: p, column: N }),
|
|
366
|
+
groupRowText: (p, N) => e("heatmap.groupRow", {
|
|
366
367
|
group: p,
|
|
367
|
-
method: e(
|
|
368
|
+
method: e(N === "sum" ? "heatmap.totals.sum" : "heatmap.totals.mean")
|
|
368
369
|
}),
|
|
369
370
|
tableText: (p) => {
|
|
370
|
-
const
|
|
371
|
-
return
|
|
371
|
+
const N = p.status === "empty" ? null : b(p), O = w(p);
|
|
372
|
+
return N === null ? O : e("heatmap.valueWithCount", { value: O, count: N });
|
|
372
373
|
},
|
|
373
374
|
methodLabel: (p) => e(p === "sum" ? "heatmap.totals.sum" : "heatmap.totals.mean"),
|
|
374
375
|
valueText: w,
|
|
375
|
-
visibleText: (p) => p.status === "empty" ?
|
|
376
|
+
visibleText: (p) => p.status === "empty" ? lo : p.status === "low-sample" ? "" : w(p),
|
|
376
377
|
countText: b,
|
|
377
|
-
sentence: (p,
|
|
378
|
+
sentence: (p, N, O) => {
|
|
378
379
|
const D = b(O), y = w(O);
|
|
379
|
-
return D === null || O.status === "empty" ? e("heatmap.cell", { row: p, column:
|
|
380
|
+
return D === null || O.status === "empty" ? e("heatmap.cell", { row: p, column: N, value: y }) : e("heatmap.cellWithCount", {
|
|
380
381
|
row: p,
|
|
381
|
-
column:
|
|
382
|
+
column: N,
|
|
382
383
|
value: y,
|
|
383
384
|
count: D
|
|
384
385
|
});
|
|
@@ -386,10 +387,10 @@ function lo({
|
|
|
386
387
|
formatValue: s
|
|
387
388
|
};
|
|
388
389
|
}
|
|
389
|
-
const
|
|
390
|
-
let
|
|
391
|
-
const tn = new Error("heatmap audit: work limit"),
|
|
392
|
-
if (
|
|
390
|
+
const Ee = 1e12, uo = 5e6, po = uo;
|
|
391
|
+
let Lt = 0;
|
|
392
|
+
const tn = new Error("heatmap audit: work limit"), mo = 32, Le = (e) => {
|
|
393
|
+
if (Lt += e, Lt > po) throw tn;
|
|
393
394
|
};
|
|
394
395
|
function Wt(e, t) {
|
|
395
396
|
return {
|
|
@@ -428,16 +429,16 @@ function nn(e, t, n, o, s, a, i, u, d) {
|
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
431
|
if (Le(m), m = 0, !p) break;
|
|
431
|
-
let
|
|
432
|
+
let N = s - v;
|
|
432
433
|
for (let O = o; O !== n; O = e.to[u[O] ^ 1])
|
|
433
|
-
|
|
434
|
+
N = Math.min(N, t[u[O]]);
|
|
434
435
|
for (let O = o; O !== n; O = e.to[u[O] ^ 1])
|
|
435
|
-
t[u[O]] -=
|
|
436
|
-
v +=
|
|
436
|
+
t[u[O]] -= N, t[u[O] ^ 1] += N;
|
|
437
|
+
v += N;
|
|
437
438
|
}
|
|
438
439
|
return v;
|
|
439
440
|
}
|
|
440
|
-
function
|
|
441
|
+
function fo(e, t, n, o, s, a) {
|
|
441
442
|
const i = new Uint8Array(e.n), u = -1;
|
|
442
443
|
i[n] = 1;
|
|
443
444
|
let d = 0, l = 0;
|
|
@@ -453,16 +454,16 @@ function mo(e, t, n, o, s, a) {
|
|
|
453
454
|
}
|
|
454
455
|
return Le(v), i;
|
|
455
456
|
}
|
|
456
|
-
const
|
|
457
|
-
function
|
|
457
|
+
const ho = (e, t) => e.integral ? Math.max(1, Math.ceil(t / 2 - 1e-9)) : Math.max(t / 2, 1e-6);
|
|
458
|
+
function go(e, t) {
|
|
458
459
|
const n = e.totals.length + e.cells.length + 1, o = new Float64Array(n), s = new Float64Array(n), a = e.mode === "free";
|
|
459
460
|
e.totals.forEach((u, d) => {
|
|
460
|
-
t[d] ? (o[d] = u.value, s[d] = u.value) : (o[d] = a ? -
|
|
461
|
+
t[d] ? (o[d] = u.value, s[d] = u.value) : (o[d] = a ? -Ee : 0, s[d] = Ee);
|
|
461
462
|
});
|
|
462
463
|
const i = e.totals.length;
|
|
463
464
|
return e.cells.forEach((u, d) => {
|
|
464
|
-
o[i + d] = a ? -
|
|
465
|
-
}), o[n - 1] = a ? -
|
|
465
|
+
o[i + d] = a ? -Ee : Math.max(u.lo, -Ee), s[i + d] = a ? Ee : Math.min(u.hi, Ee);
|
|
466
|
+
}), o[n - 1] = a ? -Ee : 0, s[n - 1] = Ee, { lo: o, hi: s };
|
|
466
467
|
}
|
|
467
468
|
function vt(e, t) {
|
|
468
469
|
const n = e.totals.length;
|
|
@@ -473,13 +474,13 @@ function vt(e, t) {
|
|
|
473
474
|
}
|
|
474
475
|
return [e.sink, e.source];
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
-
const { lo: o, hi: s } =
|
|
477
|
+
function vo(e, t, n) {
|
|
478
|
+
const { lo: o, hi: s } = go(e, t), a = o.length, i = e.nodeCount;
|
|
478
479
|
Le(a * 4);
|
|
479
480
|
const u = Wt(i + 2, a + i), d = new Float64Array((a + i) * 2), l = new Float64Array(i);
|
|
480
481
|
for (let g = 0; g < a; g += 1) {
|
|
481
|
-
const [
|
|
482
|
-
d[
|
|
482
|
+
const [T, L] = vt(e, g), G = ht(u, T, L);
|
|
483
|
+
d[G] = s[g] - o[g], l[L] += o[g], l[T] -= o[g];
|
|
483
484
|
}
|
|
484
485
|
const v = i, m = i + 1;
|
|
485
486
|
let w = 0;
|
|
@@ -502,16 +503,16 @@ function go(e, t, n) {
|
|
|
502
503
|
O[g] = o[g] + (s[g] - o[g] - d[2 * g]);
|
|
503
504
|
const D = Wt(i, a), y = new Float64Array(a * 2);
|
|
504
505
|
for (let g = 0; g < a; g += 1) {
|
|
505
|
-
const [
|
|
506
|
-
y[
|
|
506
|
+
const [T, L] = vt(e, g), G = ht(D, T, L), J = g < e.totals.length && t[g];
|
|
507
|
+
y[G] = J ? 0 : Math.max(0, s[g] - O[g]), y[G + 1] = J ? 0 : Math.max(0, O[g] - o[g]);
|
|
507
508
|
}
|
|
508
|
-
const
|
|
509
|
+
const R = e.totals.length;
|
|
509
510
|
return {
|
|
510
511
|
graph: D,
|
|
511
512
|
cap: y,
|
|
512
513
|
flow: O,
|
|
513
514
|
closing: a - 1,
|
|
514
|
-
cellArc: (g) =>
|
|
515
|
+
cellArc: (g) => R + g
|
|
515
516
|
};
|
|
516
517
|
}
|
|
517
518
|
function Ut(e, t, n, o, s, a, i, u) {
|
|
@@ -534,7 +535,7 @@ function Ut(e, t, n, o, s, a, i, u) {
|
|
|
534
535
|
}
|
|
535
536
|
return Le(m), !1;
|
|
536
537
|
}
|
|
537
|
-
function
|
|
538
|
+
function wo(e, t, n, o) {
|
|
538
539
|
const s = Array.from(
|
|
539
540
|
{ length: n },
|
|
540
541
|
() => []
|
|
@@ -546,83 +547,83 @@ function vo(e, t, n, o) {
|
|
|
546
547
|
function sn(e, t, n, o, s, a) {
|
|
547
548
|
const { graph: i, cap: u } = e, d = i.n, l = s >> 1, v = new Float64Array(d).fill(1 / 0), m = new Int32Array(d).fill(-1), w = new Int32Array(d).fill(-1), b = new Uint8Array(d);
|
|
548
549
|
v[n] = 0;
|
|
549
|
-
const p = [[0, n]],
|
|
550
|
+
const p = [[0, n]], N = (y) => {
|
|
550
551
|
p.push(y);
|
|
551
|
-
let
|
|
552
|
-
for (;
|
|
553
|
-
const g =
|
|
552
|
+
let R = p.length - 1;
|
|
553
|
+
for (; R > 0; ) {
|
|
554
|
+
const g = R - 1 >> 1;
|
|
554
555
|
if (p[g][0] < y[0] || p[g][0] === y[0] && p[g][1] <= y[1])
|
|
555
556
|
break;
|
|
556
|
-
p[
|
|
557
|
+
p[R] = p[g], R = g;
|
|
557
558
|
}
|
|
558
|
-
p[
|
|
559
|
+
p[R] = y;
|
|
559
560
|
}, O = () => {
|
|
560
|
-
const y = p[0],
|
|
561
|
+
const y = p[0], R = p.pop();
|
|
561
562
|
if (p.length) {
|
|
562
563
|
let g = 0;
|
|
563
564
|
for (; ; ) {
|
|
564
|
-
const
|
|
565
|
-
let
|
|
566
|
-
const J = (Y,
|
|
567
|
-
let
|
|
568
|
-
if (
|
|
569
|
-
p[g] = p[
|
|
565
|
+
const T = 2 * g + 1, L = T + 1;
|
|
566
|
+
let G = g;
|
|
567
|
+
const J = (Y, E) => p[Y][0] < E[0] || p[Y][0] === E[0] && p[Y][1] < E[1];
|
|
568
|
+
let z = R;
|
|
569
|
+
if (T < p.length && J(T, z) && (G = T, z = p[T]), L < p.length && J(L, z) && (G = L, z = p[L]), G === g) break;
|
|
570
|
+
p[g] = p[G], g = G;
|
|
570
571
|
}
|
|
571
|
-
p[g] =
|
|
572
|
+
p[g] = R;
|
|
572
573
|
}
|
|
573
574
|
return y;
|
|
574
575
|
};
|
|
575
576
|
for (; p.length; ) {
|
|
576
|
-
const [y,
|
|
577
|
-
if (b[
|
|
578
|
-
b[
|
|
579
|
-
let g = 2 + t[
|
|
580
|
-
for (let
|
|
581
|
-
if (Le(g),
|
|
582
|
-
for (let
|
|
583
|
-
if (u[
|
|
584
|
-
const L = i.to[
|
|
585
|
-
y < v[L] && (v[L] = y, m[L] = -1, w[L] =
|
|
577
|
+
const [y, R] = O();
|
|
578
|
+
if (b[R]) continue;
|
|
579
|
+
b[R] = 1;
|
|
580
|
+
let g = 2 + t[R].length;
|
|
581
|
+
for (let T = i.head[R]; T !== -1; T = i.next[T]) g += 1;
|
|
582
|
+
if (Le(g), R === o) break;
|
|
583
|
+
for (let T = i.head[R]; T !== -1; T = i.next[T]) {
|
|
584
|
+
if (u[T] <= a || T >> 1 === l) continue;
|
|
585
|
+
const L = i.to[T];
|
|
586
|
+
y < v[L] && (v[L] = y, m[L] = -1, w[L] = R, N([y, L]));
|
|
586
587
|
}
|
|
587
|
-
for (const [
|
|
588
|
-
y + L < v[
|
|
588
|
+
for (const [T, L, G] of t[R])
|
|
589
|
+
y + L < v[T] && (v[T] = y + L, m[T] = G, w[T] = R, N([y + L, T]));
|
|
589
590
|
}
|
|
590
591
|
if (!Number.isFinite(v[o])) return [];
|
|
591
592
|
const D = [];
|
|
592
593
|
for (let y = o; y !== n; y = w[y])
|
|
593
594
|
m[y] >= 0 && D.push(m[y]);
|
|
594
|
-
return D.sort((y,
|
|
595
|
+
return D.sort((y, R) => y - R);
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
-
const i = [], { graph: u, cap: d } = n, l = new Int32Array(u.n), v = new Int32Array(u.n), m = new Uint8Array(u.n), w = [], b = n.flow.length, p = new Uint8Array(b),
|
|
597
|
+
function bo(e, t, n, o, s, a) {
|
|
598
|
+
const i = [], { graph: u, cap: d } = n, l = new Int32Array(u.n), v = new Int32Array(u.n), m = new Uint8Array(u.n), w = [], b = n.flow.length, p = new Uint8Array(b), N = e.mode === "rate" && e.integral, O = (g, T, L, G) => L <= o ? 0 : N && L <= 1 + o ? Ut(u, d, g, T, G, o, v, m) ? L : 0 : (Le(d.length >> 2), nn(u, d.slice(), g, T, L, G, o, l, v));
|
|
598
599
|
let D = null;
|
|
599
|
-
const y = () => (D = D ??
|
|
600
|
-
let
|
|
600
|
+
const y = () => (D = D ?? wo(e, t, u.n, o), D);
|
|
601
|
+
let R = 0;
|
|
601
602
|
for (const g of s) {
|
|
602
|
-
const
|
|
603
|
-
let Y,
|
|
603
|
+
const T = e.cells[g], L = n.cellArc(g), [G, J] = vt(e, L), z = 2 * L;
|
|
604
|
+
let Y, E, A, K, F;
|
|
604
605
|
if (e.mode === "rate") {
|
|
605
|
-
const c =
|
|
606
|
-
|
|
606
|
+
const c = ho(e, T.records);
|
|
607
|
+
E = Math.min(d[z], c), K = O(J, G, E, z), A = Math.min(d[z + 1], c - K), F = O(G, J, A, z), Y = K + F >= c - o;
|
|
607
608
|
} else {
|
|
608
609
|
const c = n.flow[L];
|
|
609
|
-
|
|
610
|
-
const I = Math.max(c - 2 *
|
|
611
|
-
|
|
610
|
+
A = d[z + 1], F = O(G, J, A, z);
|
|
611
|
+
const I = Math.max(c - 2 * F, F > o ? 0 : o * 4);
|
|
612
|
+
E = Math.min(d[z], I), K = I > 0 ? O(J, G, E, z) : 0, Y = I <= 0 || K >= I - o;
|
|
612
613
|
}
|
|
613
|
-
if (K +
|
|
614
|
+
if (K + F <= o && (p[L] = 1), Y) continue;
|
|
614
615
|
if (i.push(g), a) {
|
|
615
616
|
w.push({ allOf: [] });
|
|
616
617
|
break;
|
|
617
618
|
}
|
|
618
|
-
if (
|
|
619
|
-
|
|
619
|
+
if (R >= mo) continue;
|
|
620
|
+
R += 1;
|
|
620
621
|
const $ = /* @__PURE__ */ new Set();
|
|
621
|
-
if (K <
|
|
622
|
-
for (const c of sn(n, y(), J,
|
|
622
|
+
if (K < E - o)
|
|
623
|
+
for (const c of sn(n, y(), J, G, z, o))
|
|
623
624
|
$.add(c);
|
|
624
|
-
if (
|
|
625
|
-
for (const c of sn(n, y(),
|
|
625
|
+
if (F < A - o)
|
|
626
|
+
for (const c of sn(n, y(), G, J, z, o))
|
|
626
627
|
$.add(c);
|
|
627
628
|
if ($.size === 0)
|
|
628
629
|
for (const c of e.cellTotals[g]) t[c] && $.add(c);
|
|
@@ -630,7 +631,7 @@ function wo(e, t, n, o, s, a) {
|
|
|
630
631
|
}
|
|
631
632
|
return { disclosures: w, failed: i, pinned: p };
|
|
632
633
|
}
|
|
633
|
-
function
|
|
634
|
+
function yo(e, t, n, o, s) {
|
|
634
635
|
const { graph: a, cap: i } = n, u = new Int32Array(a.n), d = new Uint8Array(a.n), l = (v) => {
|
|
635
636
|
const [m, w] = vt(e, v), b = 2 * v;
|
|
636
637
|
i[b] > s && Ut(a, i, w, m, b, s, u, d) || i[b + 1] > s && Ut(a, i, m, w, b, s, u, d) || (o[v] = 1);
|
|
@@ -651,8 +652,8 @@ function ln(e, t, n, o) {
|
|
|
651
652
|
}
|
|
652
653
|
return I;
|
|
653
654
|
}, u = (c, I) => {
|
|
654
|
-
const P = i(c),
|
|
655
|
-
P !==
|
|
655
|
+
const P = i(c), H = i(I);
|
|
656
|
+
P !== H && (a[Math.max(P, H)] = Math.min(P, H));
|
|
656
657
|
};
|
|
657
658
|
e.totals.forEach((c, I) => {
|
|
658
659
|
!t[I] && !o[I] && u(c.from, c.to);
|
|
@@ -660,9 +661,9 @@ function ln(e, t, n, o) {
|
|
|
660
661
|
const d = /* @__PURE__ */ new Map();
|
|
661
662
|
e.cells.forEach((c, I) => {
|
|
662
663
|
if (o[n.cellArc(I)]) return;
|
|
663
|
-
const P = i(c.from),
|
|
664
|
-
if (P ===
|
|
665
|
-
const Q = P * s +
|
|
664
|
+
const P = i(c.from), H = i(c.to);
|
|
665
|
+
if (P === H) return;
|
|
666
|
+
const Q = P * s + H, te = d.get(Q) ?? { from: P, to: H, weight: 0, cells: [] };
|
|
666
667
|
te.weight += c.records > 0 ? c.records : e.minCount, te.cells.push(I), d.set(Q, te);
|
|
667
668
|
});
|
|
668
669
|
const l = [...d.values()].sort(
|
|
@@ -675,90 +676,90 @@ function ln(e, t, n, o) {
|
|
|
675
676
|
l.forEach((c, I) => b[m.get(c.from)].push(I));
|
|
676
677
|
const p = new Int32Array(w).fill(-1);
|
|
677
678
|
{
|
|
678
|
-
const c = new Int32Array(w).fill(-1), I = new Int32Array(w), P = new Uint8Array(w),
|
|
679
|
+
const c = new Int32Array(w).fill(-1), I = new Int32Array(w), P = new Uint8Array(w), H = [];
|
|
679
680
|
let Q = 0, te = 0;
|
|
680
681
|
for (let x = 0; x < w; x += 1) {
|
|
681
682
|
if (c[x] !== -1) continue;
|
|
682
683
|
const _ = [[x, 0]];
|
|
683
|
-
for (c[x] = I[x] = Q++,
|
|
684
|
-
const W = _[_.length - 1], [
|
|
685
|
-
if (q < b[
|
|
684
|
+
for (c[x] = I[x] = Q++, H.push(x), P[x] = 1; _.length; ) {
|
|
685
|
+
const W = _[_.length - 1], [V, q] = W;
|
|
686
|
+
if (q < b[V].length) {
|
|
686
687
|
W[1] += 1;
|
|
687
|
-
const B = m.get(l[b[
|
|
688
|
-
c[B] === -1 ? (c[B] = I[B] = Q++,
|
|
688
|
+
const B = m.get(l[b[V][q]].to);
|
|
689
|
+
c[B] === -1 ? (c[B] = I[B] = Q++, H.push(B), P[B] = 1, _.push([B, 0])) : P[B] && (I[V] = Math.min(I[V], c[B]));
|
|
689
690
|
} else {
|
|
690
691
|
if (_.pop(), _.length) {
|
|
691
692
|
const B = _[_.length - 1][0];
|
|
692
|
-
I[B] = Math.min(I[B], I[
|
|
693
|
+
I[B] = Math.min(I[B], I[V]);
|
|
693
694
|
}
|
|
694
|
-
if (I[
|
|
695
|
+
if (I[V] === c[V]) {
|
|
695
696
|
let B;
|
|
696
697
|
do
|
|
697
|
-
B =
|
|
698
|
-
while (B !==
|
|
698
|
+
B = H.pop(), P[B] = 0, p[B] = te;
|
|
699
|
+
while (B !== V);
|
|
699
700
|
te += 1;
|
|
700
701
|
}
|
|
701
702
|
}
|
|
702
703
|
}
|
|
703
704
|
}
|
|
704
705
|
}
|
|
705
|
-
const
|
|
706
|
+
const N = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
|
|
706
707
|
for (const c of l) {
|
|
707
708
|
const I = p[m.get(c.from)], P = p[m.get(c.to)];
|
|
708
709
|
if (I === P) continue;
|
|
709
|
-
const
|
|
710
|
-
Q.weight += c.weight,
|
|
710
|
+
const H = `${I}>${P}`, Q = N.get(H) ?? { a: I, b: P, weight: 0 };
|
|
711
|
+
Q.weight += c.weight, N.set(H, Q), O.set(H, [...O.get(H) ?? [], ...c.cells]);
|
|
711
712
|
}
|
|
712
|
-
if (
|
|
713
|
-
const D = [...
|
|
713
|
+
if (N.size === 0) return [];
|
|
714
|
+
const D = [...N.entries()].sort(([c], [I]) => c < I ? -1 : 1), y = [...new Set(D.flatMap(([, c]) => [c.a, c.b]))].sort(
|
|
714
715
|
(c, I) => c - I
|
|
715
|
-
),
|
|
716
|
-
for (let c = 0; c < g; c += 1)
|
|
716
|
+
), R = new Map(y.map((c, I) => [c, I])), g = y.length, T = new Int32Array(g);
|
|
717
|
+
for (let c = 0; c < g; c += 1) T[c] = c;
|
|
717
718
|
const L = (c) => {
|
|
718
|
-
for (;
|
|
719
|
-
|
|
719
|
+
for (; T[c] !== c; )
|
|
720
|
+
T[c] = T[T[c]], c = T[c];
|
|
720
721
|
return c;
|
|
721
722
|
};
|
|
722
723
|
for (const [, c] of D) {
|
|
723
|
-
const I = L(
|
|
724
|
-
I !== P && (
|
|
724
|
+
const I = L(R.get(c.a)), P = L(R.get(c.b));
|
|
725
|
+
I !== P && (T[Math.max(I, P)] = Math.min(I, P));
|
|
725
726
|
}
|
|
726
|
-
const
|
|
727
|
+
const G = Wt(g, D.length), J = new Float64Array(D.length * 2);
|
|
727
728
|
for (const [, c] of D) {
|
|
728
729
|
const I = ht(
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
730
|
+
G,
|
|
731
|
+
R.get(c.a),
|
|
732
|
+
R.get(c.b)
|
|
732
733
|
);
|
|
733
|
-
J[I] = c.weight, J[I + 1] =
|
|
734
|
+
J[I] = c.weight, J[I + 1] = Ee;
|
|
734
735
|
}
|
|
735
|
-
const
|
|
736
|
-
const I = new Uint8Array(s), P = new Uint8Array(s),
|
|
737
|
-
y.forEach((Q, te) =>
|
|
736
|
+
const z = new Int32Array(g), Y = new Int32Array(g), E = /* @__PURE__ */ new Map(), A = (c) => {
|
|
737
|
+
const I = new Uint8Array(s), P = new Uint8Array(s), H = /* @__PURE__ */ new Map();
|
|
738
|
+
y.forEach((Q, te) => H.set(Q, c[te]));
|
|
738
739
|
for (let Q = 0; Q < s; Q += 1) {
|
|
739
740
|
const te = m.get(i(Q));
|
|
740
|
-
te !== void 0 && (P[Q] = 1, I[Q] =
|
|
741
|
+
te !== void 0 && (P[Q] = 1, I[Q] = H.get(p[te]) ?? 0);
|
|
741
742
|
}
|
|
742
743
|
return { nodeSide: I, inGraph: P };
|
|
743
744
|
}, K = (c) => {
|
|
744
745
|
const I = [];
|
|
745
|
-
for (const [W,
|
|
746
|
-
const q =
|
|
746
|
+
for (const [W, V] of D) {
|
|
747
|
+
const q = R.get(V.a), B = R.get(V.b);
|
|
747
748
|
c[q] === 1 && c[B] === 0 && I.push(...O.get(W) ?? []);
|
|
748
749
|
}
|
|
749
|
-
I.sort((W,
|
|
750
|
+
I.sort((W, V) => W - V);
|
|
750
751
|
const P = I.join(",");
|
|
751
|
-
if (
|
|
752
|
-
const { nodeSide:
|
|
753
|
-
e.totals.forEach((W,
|
|
754
|
-
!t[
|
|
752
|
+
if (E.has(P)) return;
|
|
753
|
+
const { nodeSide: H, inGraph: Q } = A(c), te = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
|
|
754
|
+
e.totals.forEach((W, V) => {
|
|
755
|
+
!t[V] || H[W.from] === H[W.to] || (Q[W.from] && Q[W.to] ? te.add(V) : x.add(V));
|
|
755
756
|
});
|
|
756
757
|
const _ = te.size > 0 ? te : x;
|
|
757
758
|
if (_.size === 0)
|
|
758
759
|
for (const W of I)
|
|
759
|
-
for (const
|
|
760
|
-
|
|
761
|
-
},
|
|
760
|
+
for (const V of e.cellTotals[W]) t[V] && _.add(V);
|
|
761
|
+
E.set(P, { anyOf: [..._].sort((W, V) => W - V) });
|
|
762
|
+
}, F = e.minCount, $ = /* @__PURE__ */ new Map();
|
|
762
763
|
for (let c = 0; c < g; c += 1) {
|
|
763
764
|
const I = L(c);
|
|
764
765
|
$.has(I) || $.set(I, c);
|
|
@@ -766,21 +767,21 @@ function ln(e, t, n, o) {
|
|
|
766
767
|
for (let c = 0; c < g; c += 1) {
|
|
767
768
|
const I = $.get(L(c));
|
|
768
769
|
if (I !== c)
|
|
769
|
-
for (const [P,
|
|
770
|
+
for (const [P, H] of [
|
|
770
771
|
[I, c],
|
|
771
772
|
[c, I]
|
|
772
773
|
]) {
|
|
773
774
|
Le(J.length >> 2);
|
|
774
775
|
const Q = J.slice();
|
|
775
|
-
if (nn(
|
|
776
|
-
const x =
|
|
776
|
+
if (nn(G, Q, P, H, F, -1, 1e-9, z, Y) < F - 1e-9) {
|
|
777
|
+
const x = fo(G, Q, P, -1, 1e-9, Y);
|
|
777
778
|
K(x);
|
|
778
779
|
}
|
|
779
780
|
}
|
|
780
781
|
}
|
|
781
|
-
return [...
|
|
782
|
+
return [...E.values()];
|
|
782
783
|
}
|
|
783
|
-
function
|
|
784
|
+
function xo(e, t) {
|
|
784
785
|
const n = e.nodeCount, o = e.totals.length + e.cells.length + 1, s = Array.from({ length: n }, () => []);
|
|
785
786
|
for (let l = 0; l < o; l += 1) {
|
|
786
787
|
if (l < e.totals.length && t[l]) continue;
|
|
@@ -796,12 +797,12 @@ function yo(e, t) {
|
|
|
796
797
|
const m = v[v.length - 1], [w, b, p] = m;
|
|
797
798
|
if (p < s[w].length) {
|
|
798
799
|
m[2] += 1;
|
|
799
|
-
const [
|
|
800
|
+
const [N, O] = s[w][p];
|
|
800
801
|
if (O === b) continue;
|
|
801
|
-
i[
|
|
802
|
+
i[N] === -1 ? (i[N] = u[N] = d++, v.push([N, O, 0])) : u[w] = Math.min(u[w], i[N]);
|
|
802
803
|
} else if (v.pop(), v.length) {
|
|
803
|
-
const
|
|
804
|
-
u[
|
|
804
|
+
const N = v[v.length - 1][0];
|
|
805
|
+
u[N] = Math.min(u[N], u[w]), u[w] > i[N] && (a[b] = 1);
|
|
805
806
|
}
|
|
806
807
|
}
|
|
807
808
|
}
|
|
@@ -809,7 +810,7 @@ function yo(e, t) {
|
|
|
809
810
|
}
|
|
810
811
|
function Ln(e, t, n, o, s = !1) {
|
|
811
812
|
if (e.mode === "free") {
|
|
812
|
-
const u =
|
|
813
|
+
const u = xo(e, t), d = [], l = [];
|
|
813
814
|
for (const m of o)
|
|
814
815
|
if (u[e.totals.length + m]) {
|
|
815
816
|
if (s) return { disclosures: [{ allOf: [] }], cells: [m] };
|
|
@@ -827,15 +828,15 @@ function Ln(e, t, n, o, s = !1) {
|
|
|
827
828
|
cells: []
|
|
828
829
|
};
|
|
829
830
|
}
|
|
830
|
-
const a =
|
|
831
|
+
const a = vo(e, t, n);
|
|
831
832
|
if (!a) return null;
|
|
832
|
-
const i =
|
|
833
|
-
return i.disclosures.length ? { disclosures: i.disclosures, cells: i.failed } : (
|
|
833
|
+
const i = bo(e, t, a, n, o, s);
|
|
834
|
+
return i.disclosures.length ? { disclosures: i.disclosures, cells: i.failed } : (yo(e, t, a, i.pinned, n), {
|
|
834
835
|
disclosures: ln(e, t, a, i.pinned),
|
|
835
836
|
cells: []
|
|
836
837
|
});
|
|
837
838
|
}
|
|
838
|
-
function
|
|
839
|
+
function Io(e, t) {
|
|
839
840
|
const n = /* @__PURE__ */ new Set();
|
|
840
841
|
for (const s of t) for (const a of s.allOf ?? []) n.add(a);
|
|
841
842
|
let o = t.filter(
|
|
@@ -854,10 +855,10 @@ function xo(e, t) {
|
|
|
854
855
|
}
|
|
855
856
|
return [...n].sort((s, a) => s - a);
|
|
856
857
|
}
|
|
857
|
-
function
|
|
858
|
-
|
|
858
|
+
function ko(e, t = 0) {
|
|
859
|
+
Lt = t;
|
|
859
860
|
try {
|
|
860
|
-
return
|
|
861
|
+
return So(e);
|
|
861
862
|
} catch (n) {
|
|
862
863
|
if (n !== tn) throw n;
|
|
863
864
|
const o = new Uint8Array(e.totals.length);
|
|
@@ -866,10 +867,10 @@ function Io(e, t = 0) {
|
|
|
866
867
|
return e.totals.map((s, a) => s.shown && !o[a]);
|
|
867
868
|
}
|
|
868
869
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
870
|
+
function Mo() {
|
|
871
|
+
return Lt;
|
|
871
872
|
}
|
|
872
|
-
function
|
|
873
|
+
function So(e) {
|
|
873
874
|
const t = e.totals.map((m) => m.shown);
|
|
874
875
|
if (e.cells.length === 0) return t;
|
|
875
876
|
let n = 1;
|
|
@@ -888,7 +889,7 @@ function Mo(e) {
|
|
|
888
889
|
const w = Ln(e, t, o, u);
|
|
889
890
|
if (w === null) return a();
|
|
890
891
|
if (w.disclosures.length === 0) break;
|
|
891
|
-
const b =
|
|
892
|
+
const b = Io(e, w.disclosures);
|
|
892
893
|
if (b.length === 0) return a();
|
|
893
894
|
for (const p of b)
|
|
894
895
|
t[p] = !1, d.push(p);
|
|
@@ -898,10 +899,10 @@ function Mo(e) {
|
|
|
898
899
|
(m, w) => e.totals[w].records - e.totals[m].records || m - w
|
|
899
900
|
);
|
|
900
901
|
for (const m of v)
|
|
901
|
-
t[m] = !0,
|
|
902
|
+
t[m] = !0, No(e, t, m, i, o) || (t[m] = !1);
|
|
902
903
|
return t;
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
+
function No(e, t, n, o, s) {
|
|
905
906
|
try {
|
|
906
907
|
const a = /* @__PURE__ */ new Set();
|
|
907
908
|
e.cellTotals.forEach((d, l) => {
|
|
@@ -914,7 +915,7 @@ function So(e, t, n, o, s) {
|
|
|
914
915
|
return !1;
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
|
-
const
|
|
918
|
+
const Te = 10, on = Math.floor(Te / 2), ot = Te - 1, et = Te / 2, rt = (e, t, n) => Math.min(n, Math.max(t, e)), cn = /* @__PURE__ */ new Set();
|
|
918
919
|
function Yt(e) {
|
|
919
920
|
!Zn() || cn.has(e) || (cn.add(e), console.warn(`Heatmap: ${e}`));
|
|
920
921
|
}
|
|
@@ -933,12 +934,12 @@ function Ao(e) {
|
|
|
933
934
|
Number.isFinite(o) && (o < t && (t = o), o > n && (n = o));
|
|
934
935
|
return t === 1 / 0 ? null : [t, n];
|
|
935
936
|
}
|
|
936
|
-
function
|
|
937
|
+
function _o(e, t, n) {
|
|
937
938
|
if (!(n > t)) return on;
|
|
938
939
|
const o = rt((e - t) / (n - t), 0, 1);
|
|
939
|
-
return Math.min(ot, Math.floor(o *
|
|
940
|
+
return Math.min(ot, Math.floor(o * Te));
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
+
function To(e, t, n, o) {
|
|
942
943
|
if (e < n) {
|
|
943
944
|
const i = n - t, u = i > 0 ? rt((n - e) / i, 0, 1) : 1;
|
|
944
945
|
return et - 1 - Math.min(et - 1, Math.floor(u * et));
|
|
@@ -962,13 +963,13 @@ function Eo(e, t) {
|
|
|
962
963
|
const o = rt(t, 0, 1) * (n - 1), s = Math.floor(o), a = Math.min(n - 1, s + 1);
|
|
963
964
|
return e[s] + (e[a] - e[s]) * (o - s);
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
+
function Lo(e, t) {
|
|
966
967
|
const n = Math.max(1, Math.round(t)), o = [];
|
|
967
968
|
for (let s = 1; s < n; s += 1)
|
|
968
969
|
o.push(Eo(e, s / n));
|
|
969
970
|
return o;
|
|
970
971
|
}
|
|
971
|
-
function
|
|
972
|
+
function Oo(e, t) {
|
|
972
973
|
if (e.length === 0) return [];
|
|
973
974
|
const n = e[0], o = (s) => {
|
|
974
975
|
let a = 0, i = e.length - 1;
|
|
@@ -979,7 +980,7 @@ function Lo(e, t) {
|
|
|
979
980
|
return e[a];
|
|
980
981
|
};
|
|
981
982
|
return On(
|
|
982
|
-
|
|
983
|
+
Lo(e, t).map(o)
|
|
983
984
|
).filter((s) => s > n);
|
|
984
985
|
}
|
|
985
986
|
function un(e, t) {
|
|
@@ -1016,15 +1017,15 @@ function Qt(e, t) {
|
|
|
1016
1017
|
max: i,
|
|
1017
1018
|
midpoint: s,
|
|
1018
1019
|
thresholds: [],
|
|
1019
|
-
stepOf: (u) =>
|
|
1020
|
+
stepOf: (u) => To(u, a, s, i)
|
|
1020
1021
|
};
|
|
1021
1022
|
}
|
|
1022
1023
|
case "quantile": {
|
|
1023
1024
|
const o = t.filter(Number.isFinite).slice().sort((i, u) => i - u), s = rt(
|
|
1024
|
-
Math.round(e.buckets ??
|
|
1025
|
+
Math.round(e.buckets ?? Te),
|
|
1025
1026
|
2,
|
|
1026
|
-
|
|
1027
|
-
), a =
|
|
1027
|
+
Te
|
|
1028
|
+
), a = Oo(o, s);
|
|
1028
1029
|
return {
|
|
1029
1030
|
type: "quantile",
|
|
1030
1031
|
min: (n == null ? void 0 : n[0]) ?? null,
|
|
@@ -1055,18 +1056,18 @@ function Qt(e, t) {
|
|
|
1055
1056
|
min: s,
|
|
1056
1057
|
max: a,
|
|
1057
1058
|
thresholds: [],
|
|
1058
|
-
stepOf: (i) => s === null || a === null ? on :
|
|
1059
|
+
stepOf: (i) => s === null || a === null ? on : _o(i, s, a)
|
|
1059
1060
|
};
|
|
1060
1061
|
}
|
|
1061
1062
|
}
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
+
function Co(e) {
|
|
1064
1065
|
let t = 0, n = !1, o = 0, s = !1;
|
|
1065
1066
|
for (const a of e)
|
|
1066
1067
|
a.value === null || !Number.isFinite(a.value) || (t += a.value, n = !0, a.count !== void 0 && (o += a.count, s = !0));
|
|
1067
1068
|
return { value: n ? t : null, count: s ? o : void 0 };
|
|
1068
1069
|
}
|
|
1069
|
-
function
|
|
1070
|
+
function Ho(e) {
|
|
1070
1071
|
let t = 0, n = 0, o = 0, s = !1;
|
|
1071
1072
|
for (const a of e) {
|
|
1072
1073
|
if (a.value === null || !Number.isFinite(a.value)) continue;
|
|
@@ -1078,10 +1079,10 @@ function Co(e) {
|
|
|
1078
1079
|
count: s ? o : void 0
|
|
1079
1080
|
};
|
|
1080
1081
|
}
|
|
1081
|
-
function Ho(e, t) {
|
|
1082
|
-
return t === "sum" ? Oo(e) : Co(e);
|
|
1083
|
-
}
|
|
1084
1082
|
function Do(e, t) {
|
|
1083
|
+
return t === "sum" ? Co(e) : Ho(e);
|
|
1084
|
+
}
|
|
1085
|
+
function Ko(e, t) {
|
|
1085
1086
|
const n = new Set(t == null ? void 0 : t.map((i) => i.id)), o = new Set(n), s = /* @__PURE__ */ new Map();
|
|
1086
1087
|
let a = 0;
|
|
1087
1088
|
for (const i of e) {
|
|
@@ -1108,7 +1109,7 @@ function Hn(e, t) {
|
|
|
1108
1109
|
const n = typeof e == "number" ? { value: e } : e, o = n.value === null || !Number.isFinite(n.value) ? null : n.value, s = Cn(n.count, t) && (o !== null || (n.count ?? 0) > 0) ? "low-sample" : o === null ? "empty" : "value";
|
|
1109
1110
|
return { value: o, count: n.count, label: n.label, status: s };
|
|
1110
1111
|
}
|
|
1111
|
-
function
|
|
1112
|
+
function Fo(e, t, n, o, s) {
|
|
1112
1113
|
return e.map(
|
|
1113
1114
|
(a, i) => t.map(
|
|
1114
1115
|
(u, d) => {
|
|
@@ -1128,10 +1129,10 @@ function zo(e) {
|
|
|
1128
1129
|
o.status === "value" && o.value !== null && t.push(o.value);
|
|
1129
1130
|
return t;
|
|
1130
1131
|
}
|
|
1131
|
-
function
|
|
1132
|
+
function Bo(e) {
|
|
1132
1133
|
return e.some((t) => t.some((n) => n.status !== "empty"));
|
|
1133
1134
|
}
|
|
1134
|
-
const
|
|
1135
|
+
const Go = {
|
|
1135
1136
|
value: null,
|
|
1136
1137
|
status: "low-sample",
|
|
1137
1138
|
withheld: !0
|
|
@@ -1142,15 +1143,15 @@ const Bo = {
|
|
|
1142
1143
|
groups: !0,
|
|
1143
1144
|
groupColumns: !0
|
|
1144
1145
|
};
|
|
1145
|
-
function
|
|
1146
|
-
const o =
|
|
1146
|
+
function $o(e, t, n) {
|
|
1147
|
+
const o = Do(e, t);
|
|
1147
1148
|
return {
|
|
1148
1149
|
value: o.value,
|
|
1149
1150
|
count: o.count,
|
|
1150
1151
|
status: o.value === null ? "empty" : Cn(o.count, n) ? "low-sample" : "value"
|
|
1151
1152
|
};
|
|
1152
1153
|
}
|
|
1153
|
-
function
|
|
1154
|
+
function Po(e, t, n, o) {
|
|
1154
1155
|
const {
|
|
1155
1156
|
rowMethod: s,
|
|
1156
1157
|
columnMethod: a,
|
|
@@ -1159,143 +1160,143 @@ function $o(e, t, n, o) {
|
|
|
1159
1160
|
minCount: d,
|
|
1160
1161
|
getTotal: l,
|
|
1161
1162
|
valueType: v = "number"
|
|
1162
|
-
} = o, m = o.shown ?? Vo, w = t.map((
|
|
1163
|
+
} = o, m = o.shown ?? Vo, w = t.map((E, A) => A), b = n.map((E, A) => A), p = [], N = (E, A, K, F, $) => {
|
|
1163
1164
|
const c = [];
|
|
1164
1165
|
for (const x of K)
|
|
1165
|
-
for (const _ of
|
|
1166
|
-
let I = 0, P = !1,
|
|
1166
|
+
for (const _ of F) c.push(e[x][_]);
|
|
1167
|
+
let I = 0, P = !1, H = !1;
|
|
1167
1168
|
for (const x of c)
|
|
1168
|
-
x.status === "low-sample" && (P = !0, I += x.count ?? 0, x.value === null && (
|
|
1169
|
-
const Q =
|
|
1169
|
+
x.status === "low-sample" && (P = !0, I += x.count ?? 0, x.value === null && (H = !0));
|
|
1170
|
+
const Q = E === void 0 ? $o(c, A, d) : Hn(E, d), te = Q.status === "low-sample" || E === void 0 && H || d !== void 0 && I > 0 && I < d;
|
|
1170
1171
|
return p.push({
|
|
1171
|
-
method:
|
|
1172
|
+
method: A,
|
|
1172
1173
|
rowIndexes: K,
|
|
1173
|
-
columnIndexes:
|
|
1174
|
+
columnIndexes: F,
|
|
1174
1175
|
own: Q,
|
|
1175
1176
|
primary: te,
|
|
1176
1177
|
visible: $,
|
|
1177
1178
|
holdsHidden: P
|
|
1178
1179
|
}), p.length - 1;
|
|
1179
1180
|
}, O = t.map(
|
|
1180
|
-
(
|
|
1181
|
+
(E, A) => N(
|
|
1181
1182
|
l == null ? void 0 : l({
|
|
1182
1183
|
kind: "row",
|
|
1183
1184
|
method: s,
|
|
1184
|
-
row:
|
|
1185
|
-
rowId:
|
|
1186
|
-
rowIndex:
|
|
1185
|
+
row: E,
|
|
1186
|
+
rowId: E.id,
|
|
1187
|
+
rowIndex: A
|
|
1187
1188
|
}),
|
|
1188
1189
|
s,
|
|
1189
|
-
[
|
|
1190
|
+
[A],
|
|
1190
1191
|
b,
|
|
1191
1192
|
m.rows
|
|
1192
1193
|
)
|
|
1193
1194
|
), D = /* @__PURE__ */ new Map();
|
|
1194
|
-
t.forEach((
|
|
1195
|
-
if (
|
|
1196
|
-
const K = D.get(
|
|
1197
|
-
K.push(
|
|
1195
|
+
t.forEach((E, A) => {
|
|
1196
|
+
if (E.group === void 0) return;
|
|
1197
|
+
const K = D.get(E.group) ?? [];
|
|
1198
|
+
K.push(A), D.set(E.group, K);
|
|
1198
1199
|
});
|
|
1199
|
-
const y = new Map(u == null ? void 0 : u.map((
|
|
1200
|
-
const K = y.get(
|
|
1200
|
+
const y = new Map(u == null ? void 0 : u.map((E) => [E.id, E])), R = (E, A) => {
|
|
1201
|
+
const K = y.get(E);
|
|
1201
1202
|
return {
|
|
1202
|
-
groupId:
|
|
1203
|
+
groupId: E,
|
|
1203
1204
|
...K === void 0 ? {} : { group: K },
|
|
1204
|
-
rows:
|
|
1205
|
-
rowIndexes:
|
|
1205
|
+
rows: A.map((F) => t[F]),
|
|
1206
|
+
rowIndexes: A
|
|
1206
1207
|
};
|
|
1207
1208
|
}, g = /* @__PURE__ */ new Map();
|
|
1208
|
-
for (const [
|
|
1209
|
-
const K = E
|
|
1209
|
+
for (const [E, A] of D) {
|
|
1210
|
+
const K = R(E, A);
|
|
1210
1211
|
g.set(
|
|
1211
|
-
|
|
1212
|
+
E,
|
|
1212
1213
|
n.map(
|
|
1213
|
-
(
|
|
1214
|
+
(F, $) => N(
|
|
1214
1215
|
l == null ? void 0 : l({
|
|
1215
1216
|
kind: "group-column",
|
|
1216
1217
|
method: i,
|
|
1217
1218
|
...K,
|
|
1218
|
-
column:
|
|
1219
|
-
columnId:
|
|
1219
|
+
column: F,
|
|
1220
|
+
columnId: F.id,
|
|
1220
1221
|
columnIndex: $
|
|
1221
1222
|
}),
|
|
1222
1223
|
i,
|
|
1223
|
-
|
|
1224
|
+
A,
|
|
1224
1225
|
[$],
|
|
1225
1226
|
m.groupColumns
|
|
1226
1227
|
)
|
|
1227
1228
|
)
|
|
1228
1229
|
);
|
|
1229
1230
|
}
|
|
1230
|
-
const
|
|
1231
|
-
(
|
|
1231
|
+
const T = n.map(
|
|
1232
|
+
(E, A) => N(
|
|
1232
1233
|
l == null ? void 0 : l({
|
|
1233
1234
|
kind: "column",
|
|
1234
1235
|
method: a,
|
|
1235
|
-
column:
|
|
1236
|
-
columnId:
|
|
1237
|
-
columnIndex:
|
|
1236
|
+
column: E,
|
|
1237
|
+
columnId: E.id,
|
|
1238
|
+
columnIndex: A
|
|
1238
1239
|
}),
|
|
1239
1240
|
a,
|
|
1240
1241
|
w,
|
|
1241
|
-
[
|
|
1242
|
+
[A],
|
|
1242
1243
|
m.columns
|
|
1243
1244
|
)
|
|
1244
1245
|
), L = /* @__PURE__ */ new Map();
|
|
1245
|
-
for (const [
|
|
1246
|
+
for (const [E, A] of D)
|
|
1246
1247
|
L.set(
|
|
1247
|
-
|
|
1248
|
-
|
|
1248
|
+
E,
|
|
1249
|
+
N(
|
|
1249
1250
|
l == null ? void 0 : l({
|
|
1250
1251
|
kind: "group",
|
|
1251
1252
|
method: s,
|
|
1252
|
-
...E
|
|
1253
|
+
...R(E, A)
|
|
1253
1254
|
}),
|
|
1254
1255
|
s,
|
|
1255
|
-
|
|
1256
|
+
A,
|
|
1256
1257
|
b,
|
|
1257
1258
|
m.groups
|
|
1258
1259
|
)
|
|
1259
1260
|
);
|
|
1260
|
-
const
|
|
1261
|
+
const G = N(
|
|
1261
1262
|
l == null ? void 0 : l({ kind: "grand", method: s }),
|
|
1262
1263
|
s,
|
|
1263
1264
|
w,
|
|
1264
1265
|
b,
|
|
1265
1266
|
m.grand
|
|
1266
|
-
), J = p.map((
|
|
1267
|
-
|
|
1267
|
+
), J = p.map((E) => E.primary);
|
|
1268
|
+
jo({
|
|
1268
1269
|
matrix: e,
|
|
1269
1270
|
rows: t,
|
|
1270
1271
|
drafts: p,
|
|
1271
1272
|
rowDrafts: O,
|
|
1272
|
-
columnDrafts:
|
|
1273
|
+
columnDrafts: T,
|
|
1273
1274
|
groupDrafts: L,
|
|
1274
1275
|
groupColumnDrafts: g,
|
|
1275
|
-
grandDraft:
|
|
1276
|
+
grandDraft: G,
|
|
1276
1277
|
members: D,
|
|
1277
1278
|
valueType: v,
|
|
1278
1279
|
minCount: d
|
|
1279
|
-
}).forEach((
|
|
1280
|
-
|
|
1280
|
+
}).forEach((E, A) => {
|
|
1281
|
+
E || (J[A] = !0);
|
|
1281
1282
|
});
|
|
1282
|
-
const Y = (
|
|
1283
|
+
const Y = (E) => J[E] ? Go : p[E].own;
|
|
1283
1284
|
return {
|
|
1284
1285
|
rows: O.map(Y),
|
|
1285
|
-
columns:
|
|
1286
|
-
grand: Y(
|
|
1286
|
+
columns: T.map(Y),
|
|
1287
|
+
grand: Y(G),
|
|
1287
1288
|
groupColumns: new Map(
|
|
1288
|
-
[...g].map(([
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
[...g].map(([E, A]) => [
|
|
1290
|
+
E,
|
|
1291
|
+
A.map(Y)
|
|
1291
1292
|
])
|
|
1292
1293
|
),
|
|
1293
1294
|
groups: new Map(
|
|
1294
|
-
[...L].map(([
|
|
1295
|
+
[...L].map(([E, A]) => [E, Y(A)])
|
|
1295
1296
|
)
|
|
1296
1297
|
};
|
|
1297
1298
|
}
|
|
1298
|
-
function
|
|
1299
|
+
function jo(e) {
|
|
1299
1300
|
const { matrix: t, rows: n, drafts: o, members: s, valueType: a, minCount: i } = e, u = o.map(() => !0);
|
|
1300
1301
|
if (i === void 0) return u;
|
|
1301
1302
|
const d = o.map(
|
|
@@ -1310,77 +1311,77 @@ function Po(e) {
|
|
|
1310
1311
|
if (a === "rate" && m === "sum") return v();
|
|
1311
1312
|
const w = (x) => m === "mean" ? x.count ?? 1 : 1, b = a === "rate";
|
|
1312
1313
|
if (!b && m === "mean") return v();
|
|
1313
|
-
const p = (x) => x.status === "low-sample" && (m === "sum" || (x.count ?? 0) > 0),
|
|
1314
|
+
const p = (x) => x.status === "low-sample" && (m === "sum" || (x.count ?? 0) > 0), N = 0, O = 1, D = 2;
|
|
1314
1315
|
let y = 3;
|
|
1315
|
-
const
|
|
1316
|
-
for (const x of s.keys())
|
|
1317
|
-
const g = n.map(() => y++),
|
|
1316
|
+
const R = /* @__PURE__ */ new Map();
|
|
1317
|
+
for (const x of s.keys()) R.set(x, y++);
|
|
1318
|
+
const g = n.map(() => y++), T = /* @__PURE__ */ new Map(), L = e.columnDrafts.length;
|
|
1318
1319
|
for (const x of s.keys())
|
|
1319
|
-
|
|
1320
|
+
T.set(
|
|
1320
1321
|
x,
|
|
1321
1322
|
Array.from({ length: L }, () => y++)
|
|
1322
1323
|
);
|
|
1323
|
-
const
|
|
1324
|
+
const G = e.columnDrafts.map(() => y++), J = (x) => n[x].group, z = o.map(() => [0, 0]);
|
|
1324
1325
|
e.rowDrafts.forEach((x, _) => {
|
|
1325
1326
|
const W = J(_);
|
|
1326
|
-
|
|
1327
|
-
W === void 0 ? D :
|
|
1327
|
+
z[x] = [
|
|
1328
|
+
W === void 0 ? D : R.get(W),
|
|
1328
1329
|
g[_]
|
|
1329
1330
|
];
|
|
1330
1331
|
});
|
|
1331
1332
|
for (const [x, _] of e.groupDrafts)
|
|
1332
|
-
|
|
1333
|
+
z[_] = [D, R.get(x)];
|
|
1333
1334
|
for (const [x, _] of e.groupColumnDrafts)
|
|
1334
|
-
_.forEach((W,
|
|
1335
|
-
|
|
1335
|
+
_.forEach((W, V) => {
|
|
1336
|
+
z[W] = [T.get(x)[V], G[V]];
|
|
1336
1337
|
});
|
|
1337
1338
|
e.columnDrafts.forEach((x, _) => {
|
|
1338
|
-
|
|
1339
|
-
}),
|
|
1340
|
-
const Y = [],
|
|
1341
|
-
let
|
|
1339
|
+
z[x] = [G[_], O];
|
|
1340
|
+
}), z[e.grandDraft] = [N, D];
|
|
1341
|
+
const Y = [], E = [];
|
|
1342
|
+
let A = !0, K = !0;
|
|
1342
1343
|
if (t.forEach((x, _) => {
|
|
1343
|
-
x.forEach((W,
|
|
1344
|
+
x.forEach((W, V) => {
|
|
1344
1345
|
if (W.value !== null && W.value < 0 && (K = !1), !p(W)) return;
|
|
1345
|
-
Number.isInteger(W.count ?? 0) || (
|
|
1346
|
+
Number.isInteger(W.count ?? 0) || (A = !1);
|
|
1346
1347
|
const q = J(_);
|
|
1347
1348
|
Y.push({
|
|
1348
1349
|
from: g[_],
|
|
1349
|
-
to: q === void 0 ? V
|
|
1350
|
+
to: q === void 0 ? G[V] : T.get(q)[V],
|
|
1350
1351
|
lo: 0,
|
|
1351
1352
|
hi: a === "rate" ? W.count ?? 0 : 1 / 0,
|
|
1352
1353
|
records: W.count ?? 0
|
|
1353
1354
|
});
|
|
1354
1355
|
const B = [
|
|
1355
1356
|
e.rowDrafts[_],
|
|
1356
|
-
e.columnDrafts[
|
|
1357
|
+
e.columnDrafts[V],
|
|
1357
1358
|
e.grandDraft
|
|
1358
1359
|
];
|
|
1359
1360
|
q !== void 0 && B.push(
|
|
1360
1361
|
e.groupDrafts.get(q),
|
|
1361
|
-
e.groupColumnDrafts.get(q)[
|
|
1362
|
-
),
|
|
1362
|
+
e.groupColumnDrafts.get(q)[V]
|
|
1363
|
+
), E.push(B.sort((re, ne) => re - ne));
|
|
1363
1364
|
});
|
|
1364
1365
|
}), Y.length === 0) return u;
|
|
1365
|
-
const
|
|
1366
|
+
const F = (x) => Math.abs(x - Math.round(x)) <= 1e-9 * Math.max(1, Math.abs(x));
|
|
1366
1367
|
let $ = !0, c = !1;
|
|
1367
1368
|
const I = (x, _) => x.count === void 0 ? _ : Math.round(_), P = o.map((x, _) => {
|
|
1368
|
-
let W = 0,
|
|
1369
|
-
for (const
|
|
1369
|
+
let W = 0, V = 0, q = 0, B = 0, re = 0;
|
|
1370
|
+
for (const Ae of x.rowIndexes)
|
|
1370
1371
|
for (const be of x.columnIndexes) {
|
|
1371
|
-
const Z = t[
|
|
1372
|
+
const Z = t[Ae][be];
|
|
1372
1373
|
if (Z.status !== "empty") {
|
|
1373
|
-
if (
|
|
1374
|
+
if (V += w(Z), W += Z.count ?? 1, p(Z)) re += 1;
|
|
1374
1375
|
else if (Z.value !== null) {
|
|
1375
1376
|
const pe = w(Z) * Z.value;
|
|
1376
|
-
|
|
1377
|
+
F(pe) || ($ = !1), q += pe, B += I(Z, pe);
|
|
1377
1378
|
}
|
|
1378
1379
|
}
|
|
1379
1380
|
}
|
|
1380
1381
|
let ne = 0, Me = 0;
|
|
1381
1382
|
if (d[_] && re > 0) {
|
|
1382
|
-
const
|
|
1383
|
-
ne = m === "mean" ?
|
|
1383
|
+
const Ae = x.own.value;
|
|
1384
|
+
ne = m === "mean" ? Ae * V : Ae, F(ne) || ($ = !1), m === "mean" && x.own.count !== void 0 && Math.abs(x.own.count - V) > 1e-9 * Math.max(1, V) && (c = !0), Me = x.own.count === void 0 ? ne : Math.round(ne);
|
|
1384
1385
|
}
|
|
1385
1386
|
return { records: W, exact: q, rounded: B, unknowns: re, whole: ne, wholeRounded: Me };
|
|
1386
1387
|
});
|
|
@@ -1388,8 +1389,8 @@ function Po(e) {
|
|
|
1388
1389
|
o.forEach((x, _) => {
|
|
1389
1390
|
d[_] && x.own.value < 0 && (K = !1);
|
|
1390
1391
|
});
|
|
1391
|
-
const
|
|
1392
|
-
const
|
|
1392
|
+
const H = a === "rate" ? "rate" : K ? "scaled" : "free", Q = (x, _, W) => {
|
|
1393
|
+
const V = o.map((q, B) => {
|
|
1393
1394
|
const re = P[B];
|
|
1394
1395
|
let ne = 0;
|
|
1395
1396
|
if (_[B] && re.unknowns > 0) {
|
|
@@ -1398,23 +1399,23 @@ function Po(e) {
|
|
|
1398
1399
|
ne < 0 && ne > -Me && (ne = 0);
|
|
1399
1400
|
}
|
|
1400
1401
|
return {
|
|
1401
|
-
from:
|
|
1402
|
-
to:
|
|
1402
|
+
from: z[B][0],
|
|
1403
|
+
to: z[B][1],
|
|
1403
1404
|
value: ne,
|
|
1404
1405
|
shown: _[B],
|
|
1405
1406
|
records: re.records
|
|
1406
1407
|
};
|
|
1407
1408
|
});
|
|
1408
|
-
return
|
|
1409
|
+
return ko(
|
|
1409
1410
|
{
|
|
1410
1411
|
nodeCount: y,
|
|
1411
1412
|
sink: O,
|
|
1412
|
-
source:
|
|
1413
|
+
source: N,
|
|
1413
1414
|
cells: Y,
|
|
1414
|
-
totals:
|
|
1415
|
-
cellTotals:
|
|
1416
|
-
mode:
|
|
1417
|
-
integral: b &&
|
|
1415
|
+
totals: V,
|
|
1416
|
+
cellTotals: E,
|
|
1417
|
+
mode: H,
|
|
1418
|
+
integral: b && A && (x || $),
|
|
1418
1419
|
minCount: i
|
|
1419
1420
|
},
|
|
1420
1421
|
W
|
|
@@ -1428,13 +1429,13 @@ function Po(e) {
|
|
|
1428
1429
|
te = Q(
|
|
1429
1430
|
!1,
|
|
1430
1431
|
d.map((_, W) => _ && x[W]),
|
|
1431
|
-
|
|
1432
|
+
Mo()
|
|
1432
1433
|
);
|
|
1433
1434
|
}
|
|
1434
1435
|
return o.map((x, _) => !d[_] || te[_]);
|
|
1435
1436
|
}
|
|
1436
|
-
const
|
|
1437
|
-
function
|
|
1437
|
+
const Gt = (e) => `d:${e}`, qo = (e) => `g:${e}`, At = "f";
|
|
1438
|
+
function Wo(e, t, n, o, s) {
|
|
1438
1439
|
const a = [...e];
|
|
1439
1440
|
if (o === "label")
|
|
1440
1441
|
return a.sort((i, u) => s.compare(t[i].label, t[u].label));
|
|
@@ -1453,7 +1454,7 @@ function pn(e, t, n, o) {
|
|
|
1453
1454
|
if (!n)
|
|
1454
1455
|
return t.map((l) => ({
|
|
1455
1456
|
kind: "data",
|
|
1456
|
-
key:
|
|
1457
|
+
key: Gt(e[l].id),
|
|
1457
1458
|
rowIndex: l,
|
|
1458
1459
|
groupId: e[l].group
|
|
1459
1460
|
}));
|
|
@@ -1470,7 +1471,7 @@ function pn(e, t, n, o) {
|
|
|
1470
1471
|
const v = a.get(l) ?? [], m = o.has(l);
|
|
1471
1472
|
if (u.push({
|
|
1472
1473
|
kind: "group",
|
|
1473
|
-
key:
|
|
1474
|
+
key: qo(l),
|
|
1474
1475
|
groupId: l,
|
|
1475
1476
|
collapsed: m,
|
|
1476
1477
|
rowIndexes: v
|
|
@@ -1478,13 +1479,13 @@ function pn(e, t, n, o) {
|
|
|
1478
1479
|
for (const w of v)
|
|
1479
1480
|
u.push({
|
|
1480
1481
|
kind: "data",
|
|
1481
|
-
key:
|
|
1482
|
+
key: Gt(e[w].id),
|
|
1482
1483
|
rowIndex: w,
|
|
1483
1484
|
groupId: l
|
|
1484
1485
|
});
|
|
1485
1486
|
}
|
|
1486
1487
|
for (const l of i)
|
|
1487
|
-
u.push({ kind: "data", key:
|
|
1488
|
+
u.push({ kind: "data", key: Gt(e[l].id), rowIndex: l });
|
|
1488
1489
|
return u;
|
|
1489
1490
|
}
|
|
1490
1491
|
function Dn({
|
|
@@ -1495,9 +1496,9 @@ function Dn({
|
|
|
1495
1496
|
side: s = "top",
|
|
1496
1497
|
children: a
|
|
1497
1498
|
}) {
|
|
1498
|
-
const i =
|
|
1499
|
-
return /* @__PURE__ */
|
|
1500
|
-
|
|
1499
|
+
const i = Tn(), u = t ?? (i == null ? void 0 : i.tooltipText(e)) ?? "";
|
|
1500
|
+
return /* @__PURE__ */ C(
|
|
1501
|
+
An,
|
|
1501
1502
|
{
|
|
1502
1503
|
label: u,
|
|
1503
1504
|
open: n,
|
|
@@ -1513,7 +1514,7 @@ function mn({
|
|
|
1513
1514
|
label: e,
|
|
1514
1515
|
onOpenChange: t
|
|
1515
1516
|
}) {
|
|
1516
|
-
return /* @__PURE__ */
|
|
1517
|
+
return /* @__PURE__ */ C(An, { label: e, open: !0, onOpenChange: t, delayDuration: 0, children: /* @__PURE__ */ C(
|
|
1517
1518
|
"span",
|
|
1518
1519
|
{
|
|
1519
1520
|
"aria-hidden": "true",
|
|
@@ -1522,8 +1523,8 @@ function mn({
|
|
|
1522
1523
|
}
|
|
1523
1524
|
) });
|
|
1524
1525
|
}
|
|
1525
|
-
const
|
|
1526
|
-
function fn({ offset: e, viewport: t, lead: n, pitch: o, count: s }, a =
|
|
1526
|
+
const Uo = 1e3, Yo = 3;
|
|
1527
|
+
function fn({ offset: e, viewport: t, lead: n, pitch: o, count: s }, a = Yo) {
|
|
1527
1528
|
if (s <= 0) return [0, 0];
|
|
1528
1529
|
if (!(o > 0)) return [0, s];
|
|
1529
1530
|
const i = Math.abs(e) - n, u = Math.floor(i / o) - a, d = Math.ceil((i + t) / o) + a, l = Math.max(0, Math.min(s - 1, u)), v = Math.max(l + 1, Math.min(s, d));
|
|
@@ -1558,7 +1559,7 @@ function hn(e, t, n) {
|
|
|
1558
1559
|
tail: Math.max(0, t - s)
|
|
1559
1560
|
};
|
|
1560
1561
|
}
|
|
1561
|
-
function
|
|
1562
|
+
function _t(e) {
|
|
1562
1563
|
return {
|
|
1563
1564
|
indexes: Array.from({ length: e }, (t, n) => n),
|
|
1564
1565
|
lead: 0,
|
|
@@ -1630,9 +1631,9 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1630
1631
|
aggregate: "ds:bg-[var(--muted)] ds:text-[color:var(--foreground)] ds:font-semibold"
|
|
1631
1632
|
}, wn = ge(
|
|
1632
1633
|
"ds:flex ds:min-w-0 ds:max-w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:text-[color:var(--foreground)]"
|
|
1633
|
-
), Yo = ge(
|
|
1634
|
-
"ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
|
|
1635
1634
|
), Jo = ge(
|
|
1635
|
+
"ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
|
|
1636
|
+
), Qo = ge(
|
|
1636
1637
|
[
|
|
1637
1638
|
"ds:relative ds:max-w-full ds:overflow-auto ds:overscroll-contain",
|
|
1638
1639
|
"ds:max-h-[var(--heatmap-max-block-size)]",
|
|
@@ -1641,7 +1642,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1641
1642
|
// row-header column. The sizes are measured and set on this element.
|
|
1642
1643
|
"ds:scroll-pt-[var(--heatmap-sticky-block-start)] ds:scroll-pb-[var(--heatmap-sticky-block-end)] ds:scroll-ps-[var(--heatmap-sticky-inline-start)]"
|
|
1643
1644
|
].join(" ")
|
|
1644
|
-
),
|
|
1645
|
+
), Xo = ge(
|
|
1645
1646
|
// Focusable only to hold focus during a retry; not a control, so no ring.
|
|
1646
1647
|
"ds:min-w-0 ds:max-w-full ds:outline-none",
|
|
1647
1648
|
{
|
|
@@ -1653,7 +1654,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1653
1654
|
},
|
|
1654
1655
|
defaultVariants: { capped: !1 }
|
|
1655
1656
|
}
|
|
1656
|
-
),
|
|
1657
|
+
), Zo = ge(
|
|
1657
1658
|
[
|
|
1658
1659
|
"ds:grid ds:w-max ds:min-w-full",
|
|
1659
1660
|
"ds:[grid-template-rows:auto] ds:auto-rows-[var(--heatmap-row-track)]",
|
|
@@ -1687,7 +1688,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1687
1688
|
totalsColumn: !1
|
|
1688
1689
|
}
|
|
1689
1690
|
}
|
|
1690
|
-
),
|
|
1691
|
+
), Ot = ge(
|
|
1691
1692
|
"ds:col-span-full ds:grid ds:grid-cols-subgrid",
|
|
1692
1693
|
{
|
|
1693
1694
|
variants: {
|
|
@@ -1716,12 +1717,12 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1716
1717
|
"col-tail": "ds:col-span-[var(--heatmap-col-tail)]"
|
|
1717
1718
|
}
|
|
1718
1719
|
}
|
|
1719
|
-
}),
|
|
1720
|
+
}), Fn = "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:data-[highlighted=true]:bg-[var(--muted)] ds:data-[highlighted=true]:text-[color:var(--foreground)]", Vt = ge(
|
|
1720
1721
|
[
|
|
1721
1722
|
"ds:flex ds:min-w-0 ds:items-end ds:justify-center ds:text-center",
|
|
1722
1723
|
"ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
|
|
1723
1724
|
"type-meta ds:text-[color:var(--muted-foreground)] ds:break-normal ds:[overflow-wrap:anywhere]",
|
|
1724
|
-
|
|
1725
|
+
Fn
|
|
1725
1726
|
].join(" "),
|
|
1726
1727
|
{
|
|
1727
1728
|
variants: {
|
|
@@ -1745,7 +1746,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1745
1746
|
// position never leaves a hairline seam.
|
|
1746
1747
|
"ds:before:pointer-events-none ds:before:absolute ds:before:inset-x-0 ds:before:top-[calc(100%_-_var(--spacing-2xs))] ds:before:h-[calc(var(--heatmap-gap)_+_var(--spacing-2xs)*2)] ds:before:bg-[var(--background)] ds:before:content-['']",
|
|
1747
1748
|
"type-body-sm ds:text-start ds:break-normal ds:[overflow-wrap:anywhere]",
|
|
1748
|
-
|
|
1749
|
+
Fn
|
|
1749
1750
|
].join(" "),
|
|
1750
1751
|
{
|
|
1751
1752
|
variants: {
|
|
@@ -1795,9 +1796,9 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1795
1796
|
},
|
|
1796
1797
|
defaultVariants: { tone: "empty", interactive: !1 }
|
|
1797
1798
|
}
|
|
1798
|
-
), Zo = ge(
|
|
1799
|
-
"ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] type-meta ds:text-[color:var(--muted-foreground)]"
|
|
1800
1799
|
), ea = ge(
|
|
1800
|
+
"ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] type-meta ds:text-[color:var(--muted-foreground)]"
|
|
1801
|
+
), ta = ge(
|
|
1801
1802
|
"ds:flex ds:w-[calc(var(--spacing-xl)*6)] ds:min-w-0 ds:max-w-full ds:shrink ds:items-stretch",
|
|
1802
1803
|
{
|
|
1803
1804
|
variants: {
|
|
@@ -1822,18 +1823,18 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
|
|
|
1822
1823
|
},
|
|
1823
1824
|
defaultVariants: { tone: "empty", shape: "key" }
|
|
1824
1825
|
}
|
|
1825
|
-
),
|
|
1826
|
-
const t = e.indexOf(
|
|
1826
|
+
), zn = "", Ct = (e, t) => `${e}${zn}${String(t)}`, Et = (e) => {
|
|
1827
|
+
const t = e.indexOf(zn);
|
|
1827
1828
|
return [e.slice(0, t), e.slice(t + 1)];
|
|
1828
1829
|
};
|
|
1829
|
-
function
|
|
1830
|
+
function na(e, t, n) {
|
|
1830
1831
|
return e.status === "low-sample" ? "low-sample" : e.status === "empty" || e.value === null ? "empty" : Ro(t, e.value) ? "midpoint" : Xt(n, t.stepOf(e.value));
|
|
1831
1832
|
}
|
|
1832
|
-
const
|
|
1833
|
-
function
|
|
1833
|
+
const oa = { value: null, status: "empty" }, en = (e) => e.status === "value" ? "aggregate" : e.status;
|
|
1834
|
+
function Ht(e, t) {
|
|
1834
1835
|
const n = [];
|
|
1835
1836
|
return e.lead > 0 && n.push(
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
+
/* @__PURE__ */ C(
|
|
1837
1838
|
"div",
|
|
1838
1839
|
{
|
|
1839
1840
|
"aria-hidden": "true",
|
|
@@ -1843,7 +1844,7 @@ function Ct(e, t) {
|
|
|
1843
1844
|
)
|
|
1844
1845
|
), e.indexes.forEach((o, s) => {
|
|
1845
1846
|
e.middle > 0 && s === e.middleAfter && n.push(
|
|
1846
|
-
/* @__PURE__ */
|
|
1847
|
+
/* @__PURE__ */ C(
|
|
1847
1848
|
"div",
|
|
1848
1849
|
{
|
|
1849
1850
|
"aria-hidden": "true",
|
|
@@ -1853,7 +1854,7 @@ function Ct(e, t) {
|
|
|
1853
1854
|
)
|
|
1854
1855
|
), n.push(t(o));
|
|
1855
1856
|
}), e.tail > 0 && n.push(
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
+
/* @__PURE__ */ C(
|
|
1857
1858
|
"div",
|
|
1858
1859
|
{
|
|
1859
1860
|
"aria-hidden": "true",
|
|
@@ -1863,7 +1864,7 @@ function Ct(e, t) {
|
|
|
1863
1864
|
)
|
|
1864
1865
|
), n;
|
|
1865
1866
|
}
|
|
1866
|
-
const
|
|
1867
|
+
const aa = jn(function({
|
|
1867
1868
|
ctx: t,
|
|
1868
1869
|
row: n,
|
|
1869
1870
|
ariaRowIndex: o,
|
|
@@ -1878,27 +1879,27 @@ const oa = jn(function({
|
|
|
1878
1879
|
[u]
|
|
1879
1880
|
);
|
|
1880
1881
|
if (n.kind === "group") {
|
|
1881
|
-
const y = t.describer.groupLabel(n.groupId),
|
|
1882
|
-
const K =
|
|
1882
|
+
const y = t.describer.groupLabel(n.groupId), R = t.groupIds.get(n.groupId), g = `${t.idBase}-label-${o}`, T = ((O = t.totals) == null ? void 0 : O.groupColumns.get(n.groupId)) ?? [], L = (D = t.totals) == null ? void 0 : D.groups.get(n.groupId), G = (z, Y, E, A) => {
|
|
1883
|
+
const K = z ?? oa, F = E(K);
|
|
1883
1884
|
return /* @__PURE__ */ le(
|
|
1884
1885
|
"div",
|
|
1885
1886
|
{
|
|
1886
1887
|
role: "gridcell",
|
|
1887
1888
|
"aria-colindex": Y + 2,
|
|
1888
1889
|
"aria-expanded": !n.collapsed,
|
|
1889
|
-
"aria-label":
|
|
1890
|
+
"aria-label": F,
|
|
1890
1891
|
tabIndex: a === Y ? 0 : -1,
|
|
1891
|
-
"data-heatmap-group-id":
|
|
1892
|
+
"data-heatmap-group-id": R,
|
|
1892
1893
|
className: Rt({
|
|
1893
1894
|
tone: en(K),
|
|
1894
1895
|
interactive: !0
|
|
1895
1896
|
}),
|
|
1896
1897
|
children: [
|
|
1897
1898
|
t.describer.visibleText(K),
|
|
1898
|
-
|
|
1899
|
+
A && i === Y ? /* @__PURE__ */ C(
|
|
1899
1900
|
mn,
|
|
1900
1901
|
{
|
|
1901
|
-
label:
|
|
1902
|
+
label: F,
|
|
1902
1903
|
onOpenChange: t.onTooltipOpenChange
|
|
1903
1904
|
}
|
|
1904
1905
|
) : null
|
|
@@ -1916,8 +1917,8 @@ const oa = jn(function({
|
|
|
1916
1917
|
role: "row",
|
|
1917
1918
|
"aria-rowindex": o,
|
|
1918
1919
|
"data-heatmap-body-row": "",
|
|
1919
|
-
"data-heatmap-group-id":
|
|
1920
|
-
className:
|
|
1920
|
+
"data-heatmap-group-id": R,
|
|
1921
|
+
className: Ot({ position: "body" }),
|
|
1921
1922
|
children: [
|
|
1922
1923
|
/* @__PURE__ */ le(
|
|
1923
1924
|
"div",
|
|
@@ -1931,17 +1932,17 @@ const oa = jn(function({
|
|
|
1931
1932
|
virtualised: t.virtualised
|
|
1932
1933
|
}),
|
|
1933
1934
|
children: [
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ C(
|
|
1935
1936
|
"button",
|
|
1936
1937
|
{
|
|
1937
1938
|
type: "button",
|
|
1938
1939
|
tabIndex: -1,
|
|
1939
1940
|
"aria-expanded": !n.collapsed,
|
|
1940
1941
|
"aria-label": n.collapsed ? t.expandLabel(y) : t.collapseLabel(y),
|
|
1941
|
-
onMouseDown: (
|
|
1942
|
+
onMouseDown: (z) => z.preventDefault(),
|
|
1942
1943
|
onClick: () => t.onToggleGroup(n.groupId),
|
|
1943
1944
|
className: "ds:inline-flex ds:size-[var(--spacing-lg)] ds:shrink-0 ds:cursor-pointer ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:bg-transparent ds:text-[color:inherit] ds:hover:bg-[var(--muted)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-ring ds:forced-colors:focus-visible:outline-[Highlight]",
|
|
1944
|
-
children: /* @__PURE__ */
|
|
1945
|
+
children: /* @__PURE__ */ C(
|
|
1945
1946
|
eo,
|
|
1946
1947
|
{
|
|
1947
1948
|
"aria-hidden": "true",
|
|
@@ -1953,7 +1954,7 @@ const oa = jn(function({
|
|
|
1953
1954
|
)
|
|
1954
1955
|
}
|
|
1955
1956
|
),
|
|
1956
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ C(
|
|
1957
1958
|
"span",
|
|
1958
1959
|
{
|
|
1959
1960
|
id: g,
|
|
@@ -1966,26 +1967,26 @@ const oa = jn(function({
|
|
|
1966
1967
|
]
|
|
1967
1968
|
}
|
|
1968
1969
|
),
|
|
1969
|
-
|
|
1970
|
+
Ht(
|
|
1970
1971
|
t.colWindow,
|
|
1971
|
-
(
|
|
1972
|
-
|
|
1973
|
-
|
|
1972
|
+
(z) => G(
|
|
1973
|
+
T[z],
|
|
1974
|
+
z,
|
|
1974
1975
|
(Y) => t.describer.sentence(
|
|
1975
1976
|
J,
|
|
1976
|
-
t.describer.columnLabel(t.columns[
|
|
1977
|
+
t.describer.columnLabel(t.columns[z]),
|
|
1977
1978
|
Y
|
|
1978
1979
|
),
|
|
1979
1980
|
!0
|
|
1980
1981
|
)
|
|
1981
1982
|
),
|
|
1982
|
-
t.rowTotals ?
|
|
1983
|
+
t.rowTotals ? G(
|
|
1983
1984
|
L,
|
|
1984
1985
|
d,
|
|
1985
|
-
(
|
|
1986
|
+
(z) => t.describer.sentence(
|
|
1986
1987
|
y,
|
|
1987
1988
|
t.describer.methodLabel(t.rowTotals || "mean"),
|
|
1988
|
-
|
|
1989
|
+
z
|
|
1989
1990
|
),
|
|
1990
1991
|
!1
|
|
1991
1992
|
) : null
|
|
@@ -1994,7 +1995,7 @@ const oa = jn(function({
|
|
|
1994
1995
|
);
|
|
1995
1996
|
}
|
|
1996
1997
|
const v = n.rowIndex, m = t.rows[v], w = t.describer.rowLabel(m), b = t.matrix[v], p = (y) => {
|
|
1997
|
-
const
|
|
1998
|
+
const R = b[y], g = t.columns[y], T = l.has(y);
|
|
1998
1999
|
return /* @__PURE__ */ le(
|
|
1999
2000
|
"div",
|
|
2000
2001
|
{
|
|
@@ -2003,20 +2004,20 @@ const oa = jn(function({
|
|
|
2003
2004
|
"aria-label": t.describer.sentence(
|
|
2004
2005
|
w,
|
|
2005
2006
|
t.describer.columnLabel(g),
|
|
2006
|
-
|
|
2007
|
+
R
|
|
2007
2008
|
),
|
|
2008
2009
|
"aria-describedby": a === y ? t.describedBy : void 0,
|
|
2009
|
-
"aria-selected": t.selectable ?
|
|
2010
|
+
"aria-selected": t.selectable ? T : void 0,
|
|
2010
2011
|
tabIndex: a === y ? 0 : -1,
|
|
2011
2012
|
"data-heatmap-cell-id": `${m.id}:${String(g.id)}`,
|
|
2012
|
-
"data-status":
|
|
2013
|
+
"data-status": R.status,
|
|
2013
2014
|
className: Rt({
|
|
2014
|
-
tone:
|
|
2015
|
+
tone: na(R, t.scale, t.palette),
|
|
2015
2016
|
interactive: t.interactive
|
|
2016
2017
|
}),
|
|
2017
2018
|
children: [
|
|
2018
|
-
t.showValues ||
|
|
2019
|
-
i === y ? /* @__PURE__ */
|
|
2019
|
+
t.showValues || R.status === "empty" ? t.describer.visibleText(R) : null,
|
|
2020
|
+
i === y ? /* @__PURE__ */ C(
|
|
2020
2021
|
mn,
|
|
2021
2022
|
{
|
|
2022
2023
|
label: t.tooltipText(t.cellInfo(v, y)),
|
|
@@ -2028,10 +2029,10 @@ const oa = jn(function({
|
|
|
2028
2029
|
y
|
|
2029
2030
|
);
|
|
2030
2031
|
};
|
|
2031
|
-
let
|
|
2032
|
+
let N = null;
|
|
2032
2033
|
if (t.rowTotals && t.totals) {
|
|
2033
2034
|
const y = t.totals.rows[v];
|
|
2034
|
-
|
|
2035
|
+
N = /* @__PURE__ */ C(
|
|
2035
2036
|
"div",
|
|
2036
2037
|
{
|
|
2037
2038
|
role: "gridcell",
|
|
@@ -2054,9 +2055,9 @@ const oa = jn(function({
|
|
|
2054
2055
|
"aria-rowindex": o,
|
|
2055
2056
|
"data-heatmap-body-row": "",
|
|
2056
2057
|
"data-heatmap-row-id": m.id,
|
|
2057
|
-
className:
|
|
2058
|
+
className: Ot({ position: "body" }),
|
|
2058
2059
|
children: [
|
|
2059
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ C(
|
|
2060
2061
|
"div",
|
|
2061
2062
|
{
|
|
2062
2063
|
role: "rowheader",
|
|
@@ -2066,7 +2067,7 @@ const oa = jn(function({
|
|
|
2066
2067
|
kind: "data",
|
|
2067
2068
|
virtualised: t.virtualised
|
|
2068
2069
|
}),
|
|
2069
|
-
children: /* @__PURE__ */
|
|
2070
|
+
children: /* @__PURE__ */ C(
|
|
2070
2071
|
"span",
|
|
2071
2072
|
{
|
|
2072
2073
|
className: bn({ virtualised: t.virtualised }),
|
|
@@ -2075,8 +2076,8 @@ const oa = jn(function({
|
|
|
2075
2076
|
)
|
|
2076
2077
|
}
|
|
2077
2078
|
),
|
|
2078
|
-
|
|
2079
|
-
|
|
2079
|
+
Ht(t.colWindow, p),
|
|
2080
|
+
N
|
|
2080
2081
|
]
|
|
2081
2082
|
}
|
|
2082
2083
|
);
|
|
@@ -2094,7 +2095,7 @@ const oa = jn(function({
|
|
|
2094
2095
|
(e.viewportBlock - e.headerBlock - e.footerBlock) / Math.max(1, e.rowPitch)
|
|
2095
2096
|
)
|
|
2096
2097
|
);
|
|
2097
|
-
function
|
|
2098
|
+
function ra(e) {
|
|
2098
2099
|
const {
|
|
2099
2100
|
title: t,
|
|
2100
2101
|
rowsLabel: n,
|
|
@@ -2110,21 +2111,21 @@ function aa(e) {
|
|
|
2110
2111
|
rowTotals: w,
|
|
2111
2112
|
columnTotals: b,
|
|
2112
2113
|
groupColumnMethod: p,
|
|
2113
|
-
groupIds:
|
|
2114
|
+
groupIds: N,
|
|
2114
2115
|
selectionMode: O,
|
|
2115
2116
|
selected: D,
|
|
2116
2117
|
columnIndexOfKey: y,
|
|
2117
|
-
interactive:
|
|
2118
|
+
interactive: R,
|
|
2118
2119
|
virtualised: g,
|
|
2119
|
-
size:
|
|
2120
|
+
size: T,
|
|
2120
2121
|
density: L,
|
|
2121
|
-
cellInfo:
|
|
2122
|
+
cellInfo: G,
|
|
2122
2123
|
tooltipText: J,
|
|
2123
|
-
describeFocused:
|
|
2124
|
+
describeFocused: z,
|
|
2124
2125
|
onActivate: Y,
|
|
2125
|
-
onRange:
|
|
2126
|
-
onToggleGroup:
|
|
2127
|
-
} = e, { t: K } =
|
|
2126
|
+
onRange: E,
|
|
2127
|
+
onToggleGroup: A
|
|
2128
|
+
} = e, { t: K } = wt("ui"), F = Pn(), $ = ie(null), c = ie(null), I = ie(null), P = ie(null), H = s.length, Q = H + (w ? 1 : 0), te = !!(b && m), x = X(
|
|
2128
2129
|
() => [
|
|
2129
2130
|
...i.map((f) => f.key),
|
|
2130
2131
|
...te ? [At] : []
|
|
@@ -2133,7 +2134,7 @@ function aa(e) {
|
|
|
2133
2134
|
), _ = X(() => {
|
|
2134
2135
|
const f = /* @__PURE__ */ new Map();
|
|
2135
2136
|
return x.forEach((r, h) => f.set(r, h)), f;
|
|
2136
|
-
}, [x]), [W,
|
|
2137
|
+
}, [x]), [W, V] = we(() => ({
|
|
2137
2138
|
rowKey: x[0] ?? At,
|
|
2138
2139
|
col: 0
|
|
2139
2140
|
})), q = (() => {
|
|
@@ -2144,20 +2145,20 @@ function aa(e) {
|
|
|
2144
2145
|
})(), B = Math.min(
|
|
2145
2146
|
Math.max(0, W.col),
|
|
2146
2147
|
Math.max(0, Q - 1)
|
|
2147
|
-
), re = x[q], ne = ie(!1), [Me,
|
|
2148
|
+
), re = x[q], ne = ie(!1), [Me, Ae] = we(!1), be = ie(!1), Z = ie("pointer"), [pe, je] = we(null), qe = ie(null), [bt, Oe] = we(!1), We = ae((f) => {
|
|
2148
2149
|
const r = qe.current;
|
|
2149
2150
|
r === f || r && f && r.rowKey === f.rowKey && r.col === f.col || (qe.current = f, je(f), Oe(!1));
|
|
2150
|
-
}, []), me = pe ?? (Me && re ? { rowKey: re, col: B } : null), Ce =
|
|
2151
|
+
}, []), me = pe ?? (Me && re ? { rowKey: re, col: B } : null), Ce = bt ? null : pe ?? (Me && Z.current === "keyboard" && re ? { rowKey: re, col: B } : null), [fe, Dt] = we($t), ve = ie(fe);
|
|
2151
2152
|
ve.current = fe;
|
|
2152
2153
|
const st = ae(() => {
|
|
2153
|
-
var ce,
|
|
2154
|
+
var ce, Ne;
|
|
2154
2155
|
const f = $.current, r = c.current;
|
|
2155
2156
|
if (!f || !r) return;
|
|
2156
2157
|
const h = window.getComputedStyle(r), M = parseFloat(h.rowGap) || 0, S = parseFloat(h.columnGap) || 0, k = h.gridTemplateColumns.split(" ").map((Ze) => parseFloat(Ze)).filter((Ze) => Number.isFinite(Ze)), U = ((ce = I.current) == null ? void 0 : ce.getBoundingClientRect().height) ?? 0, j = r.querySelector(
|
|
2157
2158
|
"[data-heatmap-body-row]"
|
|
2158
2159
|
), oe = (j == null ? void 0 : j.getBoundingClientRect().height) ?? 0, se = {
|
|
2159
2160
|
headerBlock: U + M,
|
|
2160
|
-
footerBlock: ((
|
|
2161
|
+
footerBlock: ((Ne = P.current) == null ? void 0 : Ne.getBoundingClientRect().height) ?? 0,
|
|
2161
2162
|
rowPitch: (oe || U || $t.rowPitch) + M,
|
|
2162
2163
|
leadInline: (k[0] ?? 0) + S,
|
|
2163
2164
|
colPitch: (k[1] ?? $t.colPitch) + S,
|
|
@@ -2174,10 +2175,10 @@ function aa(e) {
|
|
|
2174
2175
|
if (!f || typeof ResizeObserver > "u") return;
|
|
2175
2176
|
const r = new ResizeObserver(() => st());
|
|
2176
2177
|
return r.observe(f), c.current && r.observe(c.current), () => r.disconnect();
|
|
2177
|
-
}, [st, i.length,
|
|
2178
|
-
const it = re === At ? null : q,
|
|
2178
|
+
}, [st, i.length, H, T, L]);
|
|
2179
|
+
const it = re === At ? null : q, yt = B < H ? B : null, lt = ae(() => {
|
|
2179
2180
|
if (!g)
|
|
2180
|
-
return { rows:
|
|
2181
|
+
return { rows: _t(i.length), cols: _t(H) };
|
|
2181
2182
|
const f = $.current, r = ve.current, h = fn({
|
|
2182
2183
|
offset: (f == null ? void 0 : f.scrollTop) ?? 0,
|
|
2183
2184
|
viewport: r.viewportBlock,
|
|
@@ -2189,18 +2190,18 @@ function aa(e) {
|
|
|
2189
2190
|
viewport: r.viewportInline,
|
|
2190
2191
|
lead: r.leadInline,
|
|
2191
2192
|
pitch: r.colPitch,
|
|
2192
|
-
count:
|
|
2193
|
+
count: H
|
|
2193
2194
|
});
|
|
2194
2195
|
return {
|
|
2195
2196
|
rows: hn(h, i.length, it),
|
|
2196
|
-
cols: hn(M,
|
|
2197
|
+
cols: hn(M, H, yt)
|
|
2197
2198
|
};
|
|
2198
|
-
}, [g, i.length,
|
|
2199
|
+
}, [g, i.length, H, it, yt]), [De, Kt] = we(lt), _e = X(() => _t(i.length), [i.length]), xt = X(() => _t(H), [H]), ye = X(
|
|
2199
2200
|
() => g ? {
|
|
2200
2201
|
rows: gn(De.rows, i.length),
|
|
2201
|
-
cols: gn(De.cols,
|
|
2202
|
-
} : { rows: _e, cols:
|
|
2203
|
-
[g, De, i.length,
|
|
2202
|
+
cols: gn(De.cols, H)
|
|
2203
|
+
} : { rows: _e, cols: xt },
|
|
2204
|
+
[g, De, i.length, H, _e, xt]
|
|
2204
2205
|
), Ue = ae(() => {
|
|
2205
2206
|
const f = lt();
|
|
2206
2207
|
Kt(
|
|
@@ -2210,13 +2211,13 @@ function aa(e) {
|
|
|
2210
2211
|
nt(() => {
|
|
2211
2212
|
Ue();
|
|
2212
2213
|
}, [Ue, fe]);
|
|
2213
|
-
const Ke = ie(0),
|
|
2214
|
+
const Ke = ie(0), It = ae(() => {
|
|
2214
2215
|
!g || Ke.current || (Ke.current = window.requestAnimationFrame(() => {
|
|
2215
2216
|
Ke.current = 0, Ue();
|
|
2216
2217
|
}));
|
|
2217
2218
|
}, [g, Ue]);
|
|
2218
2219
|
gt(() => () => window.cancelAnimationFrame(Ke.current), []), nt(() => {
|
|
2219
|
-
re !== void 0 && re !== W.rowKey &&
|
|
2220
|
+
re !== void 0 && re !== W.rowKey && V({ rowKey: re, col: B });
|
|
2220
2221
|
}), nt(() => {
|
|
2221
2222
|
if (!be.current || ne.current) return;
|
|
2222
2223
|
const f = document.activeElement;
|
|
@@ -2237,28 +2238,28 @@ function aa(e) {
|
|
|
2237
2238
|
const f = xe(q, B);
|
|
2238
2239
|
f && (ne.current = !1, f.focus({ preventScroll: !0 }), (r = f.scrollIntoView) == null || r.call(f, { block: "nearest", inline: "nearest" }));
|
|
2239
2240
|
});
|
|
2240
|
-
const Ye = () => c.current ? window.getComputedStyle(c.current).direction === "rtl" : !1, de = ie(null),
|
|
2241
|
+
const Ye = () => c.current ? window.getComputedStyle(c.current).direction === "rtl" : !1, de = ie(null), Fe = (f) => {
|
|
2241
2242
|
const r = i[f];
|
|
2242
2243
|
return r && r.kind === "data" ? r.rowIndex : null;
|
|
2243
2244
|
}, Ie = ie(!1), Se = (f, r) => {
|
|
2244
2245
|
const h = Math.max(0, Math.min(x.length - 1, f)), M = Math.max(0, Math.min(Q - 1, r));
|
|
2245
|
-
return ne.current = !0, Oe(!1),
|
|
2246
|
+
return ne.current = !0, Oe(!1), V({ rowKey: x[h], col: M }), { row: h, col: M };
|
|
2246
2247
|
}, ct = (f, r, h) => {
|
|
2247
2248
|
const M = i[f];
|
|
2248
2249
|
if (M) {
|
|
2249
2250
|
if (M.kind === "group") {
|
|
2250
|
-
|
|
2251
|
+
A(M.groupId);
|
|
2251
2252
|
return;
|
|
2252
2253
|
}
|
|
2253
|
-
if (!(r >=
|
|
2254
|
+
if (!(r >= H)) {
|
|
2254
2255
|
if (O === "range" && h && de.current) {
|
|
2255
|
-
|
|
2256
|
+
E(de.current, { rowIndex: M.rowIndex, col: r });
|
|
2256
2257
|
return;
|
|
2257
2258
|
}
|
|
2258
2259
|
de.current = { rowIndex: M.rowIndex, col: r }, Y(M.rowIndex, r, !0);
|
|
2259
2260
|
}
|
|
2260
2261
|
}
|
|
2261
|
-
},
|
|
2262
|
+
}, ze = (f) => {
|
|
2262
2263
|
if (f.target instanceof Element && f.target.closest("button"))
|
|
2263
2264
|
return;
|
|
2264
2265
|
Z.current = "keyboard";
|
|
@@ -2286,7 +2287,7 @@ function aa(e) {
|
|
|
2286
2287
|
break;
|
|
2287
2288
|
case "PageDown": {
|
|
2288
2289
|
const se = i.findIndex(
|
|
2289
|
-
(ce,
|
|
2290
|
+
(ce, Ne) => Ne > q && ce.kind === "group"
|
|
2290
2291
|
);
|
|
2291
2292
|
S = i.some((ce) => ce.kind === "group") ? se === -1 ? r : se : q + yn(ve.current);
|
|
2292
2293
|
break;
|
|
@@ -2314,11 +2315,11 @@ function aa(e) {
|
|
|
2314
2315
|
f.preventDefault();
|
|
2315
2316
|
const j = Se(S, k), oe = f.key.startsWith("Arrow");
|
|
2316
2317
|
if (O === "range" && f.shiftKey && oe) {
|
|
2317
|
-
const se =
|
|
2318
|
-
const ce =
|
|
2319
|
-
return ce === null || B >=
|
|
2318
|
+
const se = Fe(j.row), ue = de.current ?? (() => {
|
|
2319
|
+
const ce = Fe(q);
|
|
2320
|
+
return ce === null || B >= H ? null : { rowIndex: ce, col: B };
|
|
2320
2321
|
})();
|
|
2321
|
-
ue && se !== null && j.col <
|
|
2322
|
+
ue && se !== null && j.col < H && (de.current = ue, E(ue, { rowIndex: se, col: j.col }));
|
|
2322
2323
|
}
|
|
2323
2324
|
}, Je = (f) => {
|
|
2324
2325
|
var k;
|
|
@@ -2327,46 +2328,46 @@ function aa(e) {
|
|
|
2327
2328
|
if (!r || !h || !((k = c.current) != null && k.contains(r))) return null;
|
|
2328
2329
|
const M = Number(h.getAttribute("aria-rowindex")) - 2, S = Number(r.getAttribute("aria-colindex")) - 2;
|
|
2329
2330
|
return !Number.isInteger(M) || M < 0 || S < 0 ? null : { row: M, col: S };
|
|
2330
|
-
}, Be = ie(!1),
|
|
2331
|
-
if (Z.current = "pointer",
|
|
2331
|
+
}, Be = ie(!1), Ge = ie("mouse"), kt = (f) => {
|
|
2332
|
+
if (Z.current = "pointer", Ge.current = f.pointerType, O !== "range" || f.pointerType !== "mouse" || f.button !== 0)
|
|
2332
2333
|
return;
|
|
2333
2334
|
const r = Je(f.target);
|
|
2334
2335
|
if (Ie.current = !1, !r) return;
|
|
2335
|
-
const h =
|
|
2336
|
-
if (h === null || r.col >=
|
|
2336
|
+
const h = Fe(r.row);
|
|
2337
|
+
if (h === null || r.col >= H) return;
|
|
2337
2338
|
if (f.shiftKey && de.current)
|
|
2338
|
-
|
|
2339
|
+
E(de.current, { rowIndex: h, col: r.col });
|
|
2339
2340
|
else {
|
|
2340
2341
|
de.current = { rowIndex: h, col: r.col };
|
|
2341
|
-
const S =
|
|
2342
|
-
D.size === 1 && D.has(S) ? Ie.current = !0 :
|
|
2342
|
+
const S = Ct(o[h].id, s[r.col].id);
|
|
2343
|
+
D.size === 1 && D.has(S) ? Ie.current = !0 : E(de.current, de.current);
|
|
2343
2344
|
}
|
|
2344
2345
|
Be.current = !0;
|
|
2345
2346
|
const M = () => {
|
|
2346
2347
|
Be.current = !1, window.removeEventListener("pointerup", M), window.removeEventListener("pointercancel", M);
|
|
2347
2348
|
};
|
|
2348
2349
|
window.addEventListener("pointerup", M), window.addEventListener("pointercancel", M);
|
|
2349
|
-
},
|
|
2350
|
+
}, Ft = (f) => {
|
|
2350
2351
|
if (f.pointerType !== "mouse") return;
|
|
2351
2352
|
const r = Je(f.target);
|
|
2352
2353
|
if (We(
|
|
2353
2354
|
r ? { rowKey: x[r.row], col: r.col } : null
|
|
2354
2355
|
), Be.current && r && de.current) {
|
|
2355
|
-
const h =
|
|
2356
|
-
h !== null && r.col <
|
|
2356
|
+
const h = Fe(r.row);
|
|
2357
|
+
h !== null && r.col < H && ((h !== de.current.rowIndex || r.col !== de.current.col) && (Ie.current = !1), Ie.current || E(de.current, { rowIndex: h, col: r.col }));
|
|
2357
2358
|
}
|
|
2358
|
-
}, he = ie(null),
|
|
2359
|
+
}, he = ie(null), Ve = ae(() => {
|
|
2359
2360
|
he.current && (document.removeEventListener("pointerover", he.current), he.current = null);
|
|
2360
2361
|
}, []);
|
|
2361
|
-
gt(() =>
|
|
2362
|
-
const
|
|
2363
|
-
|
|
2362
|
+
gt(() => Ve, [Ve]);
|
|
2363
|
+
const Mt = (f) => {
|
|
2364
|
+
Ve();
|
|
2364
2365
|
const r = f.relatedTarget;
|
|
2365
2366
|
if (r instanceof Element && r.closest('[data-component="tooltip"]')) {
|
|
2366
2367
|
const h = (M) => {
|
|
2367
2368
|
var k;
|
|
2368
2369
|
const S = M.target;
|
|
2369
|
-
S instanceof Element && S.closest('[data-component="tooltip"]') || (
|
|
2370
|
+
S instanceof Element && S.closest('[data-component="tooltip"]') || (Ve(), S instanceof Node && ((k = c.current) != null && k.contains(S)) || We(null));
|
|
2370
2371
|
};
|
|
2371
2372
|
he.current = h, document.addEventListener("pointerover", h);
|
|
2372
2373
|
return;
|
|
@@ -2382,9 +2383,9 @@ function aa(e) {
|
|
|
2382
2383
|
}
|
|
2383
2384
|
const h = Je(f.target);
|
|
2384
2385
|
if (h) {
|
|
2385
|
-
if (Se(h.row, h.col), ne.current = !1, O === "range" &&
|
|
2386
|
+
if (Se(h.row, h.col), ne.current = !1, O === "range" && Ge.current === "mouse") {
|
|
2386
2387
|
const S = i[h.row];
|
|
2387
|
-
(S == null ? void 0 : S.kind) === "group" ? ct(h.row, h.col, !1) : (S == null ? void 0 : S.kind) === "data" && h.col <
|
|
2388
|
+
(S == null ? void 0 : S.kind) === "group" ? ct(h.row, h.col, !1) : (S == null ? void 0 : S.kind) === "data" && h.col < H && Y(S.rowIndex, h.col, Ie.current), Ie.current = !1;
|
|
2388
2389
|
return;
|
|
2389
2390
|
}
|
|
2390
2391
|
ct(h.row, h.col, f.shiftKey);
|
|
@@ -2406,10 +2407,10 @@ function aa(e) {
|
|
|
2406
2407
|
}, []), Qe = ae(
|
|
2407
2408
|
(f) => K("heatmap.expandGroup", { group: f }),
|
|
2408
2409
|
[K]
|
|
2409
|
-
),
|
|
2410
|
+
), St = ae(
|
|
2410
2411
|
(f) => K("heatmap.collapseGroup", { group: f }),
|
|
2411
2412
|
[K]
|
|
2412
|
-
), dt = `${
|
|
2413
|
+
), dt = `${F}-description`, Xe = i[q], ut = z && (Xe == null ? void 0 : Xe.kind) === "data" && B < H ? J(G(Xe.rowIndex, B)) : null, ee = X(
|
|
2413
2414
|
() => ({
|
|
2414
2415
|
rows: o,
|
|
2415
2416
|
columns: s,
|
|
@@ -2421,19 +2422,19 @@ function aa(e) {
|
|
|
2421
2422
|
totals: m,
|
|
2422
2423
|
rowTotals: w,
|
|
2423
2424
|
groupColumnMethod: p,
|
|
2424
|
-
groupIds:
|
|
2425
|
+
groupIds: N,
|
|
2425
2426
|
selectable: O !== "none",
|
|
2426
|
-
interactive:
|
|
2427
|
+
interactive: R,
|
|
2427
2428
|
virtualised: g,
|
|
2428
2429
|
colWindow: ye.cols,
|
|
2429
|
-
idBase:
|
|
2430
|
-
describedBy:
|
|
2431
|
-
cellInfo:
|
|
2430
|
+
idBase: F,
|
|
2431
|
+
describedBy: z ? dt : void 0,
|
|
2432
|
+
cellInfo: G,
|
|
2432
2433
|
tooltipText: J,
|
|
2433
2434
|
onTooltipOpenChange: Pe,
|
|
2434
|
-
onToggleGroup:
|
|
2435
|
+
onToggleGroup: A,
|
|
2435
2436
|
expandLabel: Qe,
|
|
2436
|
-
collapseLabel:
|
|
2437
|
+
collapseLabel: St
|
|
2437
2438
|
}),
|
|
2438
2439
|
[
|
|
2439
2440
|
o,
|
|
@@ -2446,22 +2447,22 @@ function aa(e) {
|
|
|
2446
2447
|
m,
|
|
2447
2448
|
w,
|
|
2448
2449
|
p,
|
|
2449
|
-
|
|
2450
|
+
N,
|
|
2450
2451
|
O,
|
|
2451
|
-
|
|
2452
|
+
R,
|
|
2452
2453
|
g,
|
|
2453
2454
|
ye.cols,
|
|
2454
|
-
z,
|
|
2455
2455
|
F,
|
|
2456
|
+
z,
|
|
2456
2457
|
dt,
|
|
2457
|
-
|
|
2458
|
+
G,
|
|
2458
2459
|
J,
|
|
2459
2460
|
Pe,
|
|
2460
|
-
|
|
2461
|
+
A,
|
|
2461
2462
|
Qe,
|
|
2462
|
-
|
|
2463
|
+
St
|
|
2463
2464
|
]
|
|
2464
|
-
),
|
|
2465
|
+
), zt = X(() => {
|
|
2465
2466
|
const f = /* @__PURE__ */ new Map();
|
|
2466
2467
|
for (const h of D) {
|
|
2467
2468
|
const [M, S] = Et(h), k = y(S);
|
|
@@ -2473,41 +2474,41 @@ function aa(e) {
|
|
|
2473
2474
|
for (const [h, M] of f)
|
|
2474
2475
|
r.set(h, M.sort((S, k) => S - k).join(","));
|
|
2475
2476
|
return r;
|
|
2476
|
-
}, [D, y]), pt = (me == null ? void 0 : me.col) ?? -1,
|
|
2477
|
+
}, [D, y]), pt = (me == null ? void 0 : me.col) ?? -1, Nt = /* @__PURE__ */ le(
|
|
2477
2478
|
"div",
|
|
2478
2479
|
{
|
|
2479
2480
|
ref: I,
|
|
2480
2481
|
role: "row",
|
|
2481
2482
|
"aria-rowindex": 1,
|
|
2482
|
-
className:
|
|
2483
|
+
className: Ot({ position: "header" }),
|
|
2483
2484
|
children: [
|
|
2484
|
-
/* @__PURE__ */
|
|
2485
|
+
/* @__PURE__ */ C(
|
|
2485
2486
|
"div",
|
|
2486
2487
|
{
|
|
2487
2488
|
role: "columnheader",
|
|
2488
2489
|
"aria-colindex": 1,
|
|
2489
|
-
className:
|
|
2490
|
-
children: n ?? /* @__PURE__ */
|
|
2490
|
+
className: Vt({ corner: !0 }),
|
|
2491
|
+
children: n ?? /* @__PURE__ */ C("span", { className: "ds:sr-only", children: K("heatmap.rowsHeader") })
|
|
2491
2492
|
}
|
|
2492
2493
|
),
|
|
2493
|
-
|
|
2494
|
+
Ht(ye.cols, (f) => /* @__PURE__ */ C(
|
|
2494
2495
|
"div",
|
|
2495
2496
|
{
|
|
2496
2497
|
role: "columnheader",
|
|
2497
2498
|
"aria-colindex": f + 2,
|
|
2498
2499
|
"data-highlighted": pt === f,
|
|
2499
|
-
className:
|
|
2500
|
+
className: Vt(),
|
|
2500
2501
|
children: l.columnLabel(s[f])
|
|
2501
2502
|
},
|
|
2502
2503
|
f
|
|
2503
2504
|
)),
|
|
2504
|
-
w ? /* @__PURE__ */
|
|
2505
|
+
w ? /* @__PURE__ */ C(
|
|
2505
2506
|
"div",
|
|
2506
2507
|
{
|
|
2507
2508
|
role: "columnheader",
|
|
2508
|
-
"aria-colindex":
|
|
2509
|
-
"data-highlighted": pt ===
|
|
2510
|
-
className:
|
|
2509
|
+
"aria-colindex": H + 2,
|
|
2510
|
+
"data-highlighted": pt === H,
|
|
2511
|
+
className: Vt(),
|
|
2511
2512
|
children: l.methodLabel(w)
|
|
2512
2513
|
}
|
|
2513
2514
|
) : null
|
|
@@ -2516,7 +2517,7 @@ function aa(e) {
|
|
|
2516
2517
|
);
|
|
2517
2518
|
let mt = null;
|
|
2518
2519
|
if (b && m) {
|
|
2519
|
-
const f = i.length, r = l.methodLabel(b), h = q === f, M = (S, k, U, j = r) => /* @__PURE__ */
|
|
2520
|
+
const f = i.length, r = l.methodLabel(b), h = q === f, M = (S, k, U, j = r) => /* @__PURE__ */ C(
|
|
2520
2521
|
"div",
|
|
2521
2522
|
{
|
|
2522
2523
|
role: "gridcell",
|
|
@@ -2534,9 +2535,9 @@ function aa(e) {
|
|
|
2534
2535
|
ref: P,
|
|
2535
2536
|
role: "row",
|
|
2536
2537
|
"aria-rowindex": f + 2,
|
|
2537
|
-
className:
|
|
2538
|
+
className: Ot({ position: "footer" }),
|
|
2538
2539
|
children: [
|
|
2539
|
-
/* @__PURE__ */
|
|
2540
|
+
/* @__PURE__ */ C(
|
|
2540
2541
|
"div",
|
|
2541
2542
|
{
|
|
2542
2543
|
role: "rowheader",
|
|
@@ -2546,13 +2547,13 @@ function aa(e) {
|
|
|
2546
2547
|
children: r
|
|
2547
2548
|
}
|
|
2548
2549
|
),
|
|
2549
|
-
|
|
2550
|
+
Ht(
|
|
2550
2551
|
ye.cols,
|
|
2551
2552
|
(S) => M(m.columns[S], S, l.columnLabel(s[S]))
|
|
2552
2553
|
),
|
|
2553
2554
|
w ? M(
|
|
2554
2555
|
m.grand,
|
|
2555
|
-
|
|
2556
|
+
H,
|
|
2556
2557
|
l.methodLabel(w),
|
|
2557
2558
|
// The corner aggregates every cell by the row method, so it
|
|
2558
2559
|
// is named for all cells, not for the footer's own method.
|
|
@@ -2562,9 +2563,9 @@ function aa(e) {
|
|
|
2562
2563
|
}
|
|
2563
2564
|
);
|
|
2564
2565
|
}
|
|
2565
|
-
const
|
|
2566
|
-
ke.lead > 0 &&
|
|
2567
|
-
/* @__PURE__ */
|
|
2566
|
+
const Re = [], ke = ye.rows;
|
|
2567
|
+
ke.lead > 0 && Re.push(
|
|
2568
|
+
/* @__PURE__ */ C(
|
|
2568
2569
|
"div",
|
|
2569
2570
|
{
|
|
2570
2571
|
"aria-hidden": "true",
|
|
@@ -2573,8 +2574,8 @@ function aa(e) {
|
|
|
2573
2574
|
"row-lead"
|
|
2574
2575
|
)
|
|
2575
2576
|
), ke.indexes.forEach((f, r) => {
|
|
2576
|
-
ke.middle > 0 && r === ke.middleAfter &&
|
|
2577
|
-
/* @__PURE__ */
|
|
2577
|
+
ke.middle > 0 && r === ke.middleAfter && Re.push(
|
|
2578
|
+
/* @__PURE__ */ C(
|
|
2578
2579
|
"div",
|
|
2579
2580
|
{
|
|
2580
2581
|
"aria-hidden": "true",
|
|
@@ -2586,9 +2587,9 @@ function aa(e) {
|
|
|
2586
2587
|
const h = i[f];
|
|
2587
2588
|
if (!h) return;
|
|
2588
2589
|
const M = f === q;
|
|
2589
|
-
|
|
2590
|
-
/* @__PURE__ */
|
|
2591
|
-
|
|
2590
|
+
Re.push(
|
|
2591
|
+
/* @__PURE__ */ C(
|
|
2592
|
+
aa,
|
|
2592
2593
|
{
|
|
2593
2594
|
ctx: ee,
|
|
2594
2595
|
row: h,
|
|
@@ -2596,13 +2597,13 @@ function aa(e) {
|
|
|
2596
2597
|
highlighted: (me == null ? void 0 : me.rowKey) === h.key,
|
|
2597
2598
|
activeCol: M ? B : -1,
|
|
2598
2599
|
tooltipCol: (Ce == null ? void 0 : Ce.rowKey) === h.key ? Ce.col : -1,
|
|
2599
|
-
selectedCols: h.kind === "data" ?
|
|
2600
|
+
selectedCols: h.kind === "data" ? zt.get(o[h.rowIndex].id) ?? "" : ""
|
|
2600
2601
|
},
|
|
2601
2602
|
h.key
|
|
2602
2603
|
)
|
|
2603
2604
|
);
|
|
2604
|
-
}), ke.tail > 0 &&
|
|
2605
|
-
/* @__PURE__ */
|
|
2605
|
+
}), ke.tail > 0 && Re.push(
|
|
2606
|
+
/* @__PURE__ */ C(
|
|
2606
2607
|
"div",
|
|
2607
2608
|
{
|
|
2608
2609
|
"aria-hidden": "true",
|
|
@@ -2612,7 +2613,7 @@ function aa(e) {
|
|
|
2612
2613
|
)
|
|
2613
2614
|
);
|
|
2614
2615
|
const Bt = {
|
|
2615
|
-
"--heatmap-columns": String(Math.max(1,
|
|
2616
|
+
"--heatmap-columns": String(Math.max(1, H)),
|
|
2616
2617
|
"--heatmap-row-lead": String(ke.lead),
|
|
2617
2618
|
"--heatmap-row-middle": String(ke.middle),
|
|
2618
2619
|
"--heatmap-row-tail": String(ke.tail),
|
|
@@ -2627,10 +2628,10 @@ function aa(e) {
|
|
|
2627
2628
|
"div",
|
|
2628
2629
|
{
|
|
2629
2630
|
ref: $,
|
|
2630
|
-
onScroll:
|
|
2631
|
+
onScroll: It,
|
|
2631
2632
|
style: Bt,
|
|
2632
2633
|
"data-component": "heatmap-grid",
|
|
2633
|
-
className:
|
|
2634
|
+
className: Qo(),
|
|
2634
2635
|
children: [
|
|
2635
2636
|
/* @__PURE__ */ le(
|
|
2636
2637
|
"div",
|
|
@@ -2643,37 +2644,37 @@ function aa(e) {
|
|
|
2643
2644
|
"aria-colcount": Q + 1,
|
|
2644
2645
|
"aria-multiselectable": O === "multiple" || O === "range" ? !0 : void 0,
|
|
2645
2646
|
"data-heatmap-grid": "",
|
|
2646
|
-
className:
|
|
2647
|
-
size:
|
|
2647
|
+
className: Zo({
|
|
2648
|
+
size: T,
|
|
2648
2649
|
density: L,
|
|
2649
2650
|
virtualised: g,
|
|
2650
2651
|
totalsColumn: !!w
|
|
2651
2652
|
}),
|
|
2652
|
-
onKeyDown:
|
|
2653
|
-
onPointerDown:
|
|
2654
|
-
onPointerMove:
|
|
2655
|
-
onPointerLeave:
|
|
2653
|
+
onKeyDown: ze,
|
|
2654
|
+
onPointerDown: kt,
|
|
2655
|
+
onPointerMove: Ft,
|
|
2656
|
+
onPointerLeave: Mt,
|
|
2656
2657
|
onClick: He,
|
|
2657
2658
|
onFocus: (f) => {
|
|
2658
|
-
f.target.matches(":focus-visible") && (Z.current = "keyboard"), be.current = !0,
|
|
2659
|
+
f.target.matches(":focus-visible") && (Z.current = "keyboard"), be.current = !0, Ae(!0);
|
|
2659
2660
|
},
|
|
2660
2661
|
onBlur: (f) => {
|
|
2661
|
-
f.currentTarget.contains(f.relatedTarget) || (be.current = !1,
|
|
2662
|
+
f.currentTarget.contains(f.relatedTarget) || (be.current = !1, Ae(!1));
|
|
2662
2663
|
},
|
|
2663
2664
|
children: [
|
|
2664
|
-
|
|
2665
|
-
|
|
2665
|
+
Nt,
|
|
2666
|
+
Re,
|
|
2666
2667
|
mt
|
|
2667
2668
|
]
|
|
2668
2669
|
}
|
|
2669
2670
|
),
|
|
2670
|
-
ut !== null ? /* @__PURE__ */
|
|
2671
|
+
ut !== null ? /* @__PURE__ */ C("span", { id: dt, hidden: !0, children: ut }) : null
|
|
2671
2672
|
]
|
|
2672
2673
|
}
|
|
2673
2674
|
);
|
|
2674
2675
|
}
|
|
2675
|
-
const Pt = Array.from({ length:
|
|
2676
|
-
function
|
|
2676
|
+
const Pt = Array.from({ length: Te }, (e, t) => t);
|
|
2677
|
+
function sa(e, t) {
|
|
2677
2678
|
return {
|
|
2678
2679
|
start: e.min === null ? "" : t(e.min),
|
|
2679
2680
|
end: e.max === null ? "" : t(e.max),
|
|
@@ -2693,18 +2694,18 @@ const an = Mn(
|
|
|
2693
2694
|
minCount: d,
|
|
2694
2695
|
className: l
|
|
2695
2696
|
}, v) => {
|
|
2696
|
-
const { t: m, i18n: w } =
|
|
2697
|
+
const { t: m, i18n: w } = wt("ui"), b = Tn(), p = Nn(w.resolvedLanguage ?? w.language), N = X(
|
|
2697
2698
|
() => n ? Qt(n, o ?? []) : (b == null ? void 0 : b.scale) ?? Qt({ type: "sequential" }, o ?? []),
|
|
2698
2699
|
[n, o, b == null ? void 0 : b.scale]
|
|
2699
|
-
), O = t ?? (b == null ? void 0 : b.palette) ?? (
|
|
2700
|
-
{ length:
|
|
2701
|
-
($, c) => Jt(c,
|
|
2702
|
-
) : [],
|
|
2703
|
-
count:
|
|
2704
|
-
formatted:
|
|
2700
|
+
), O = t ?? (b == null ? void 0 : b.palette) ?? (N.type === "diverging" ? "diverging" : "primary"), D = s ?? (b == null ? void 0 : b.describer.formatValue) ?? Rn(p, "number"), y = (N.type === "quantile" || N.type === "threshold") && N.thresholds.length > 0, R = N.thresholds.length + 1, g = y ? Array.from(
|
|
2701
|
+
{ length: R },
|
|
2702
|
+
($, c) => Jt(c, R)
|
|
2703
|
+
) : [], T = N.thresholds.map(D), L = sa(N, D), G = y ? m("heatmap.legend.descriptionBands", {
|
|
2704
|
+
count: R,
|
|
2705
|
+
formatted: En(p)(R),
|
|
2705
2706
|
edges: new Intl.ListFormat(p, {
|
|
2706
2707
|
type: "conjunction"
|
|
2707
|
-
}).format(
|
|
2708
|
+
}).format(T)
|
|
2708
2709
|
}) : L.middle !== void 0 ? m("heatmap.legend.descriptionDiverging", {
|
|
2709
2710
|
min: L.start,
|
|
2710
2711
|
max: L.end,
|
|
@@ -2712,7 +2713,7 @@ const an = Mn(
|
|
|
2712
2713
|
}) : m("heatmap.legend.description", {
|
|
2713
2714
|
min: L.start,
|
|
2714
2715
|
max: L.end
|
|
2715
|
-
}), J = (
|
|
2716
|
+
}), J = (N.type === "quantile" || N.type === "threshold") && !y ? [N.min === null ? Te / 2 : N.stepOf(N.min)] : null, z = a ?? (b == null ? void 0 : b.hasEmpty) ?? !1, Y = i ?? (b == null ? void 0 : b.hasLowSample) ?? !1, E = u ?? (b == null ? void 0 : b.hasWithheldTotal) ?? !1, A = d ?? (b == null ? void 0 : b.minCount), K = e === "continuous" ? "continuous" : "stepped", F = ($) => /* @__PURE__ */ C("span", { className: ta({ variant: e }), children: $.map((c) => /* @__PURE__ */ C(
|
|
2716
2717
|
"span",
|
|
2717
2718
|
{
|
|
2718
2719
|
className: tt({
|
|
@@ -2729,10 +2730,10 @@ const an = Mn(
|
|
|
2729
2730
|
role: "group",
|
|
2730
2731
|
"aria-label": m("heatmap.legend.label"),
|
|
2731
2732
|
"data-component": "heatmap-legend",
|
|
2732
|
-
className:
|
|
2733
|
+
className: ea({ className: l }),
|
|
2733
2734
|
children: [
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
y ? /* @__PURE__ */
|
|
2735
|
+
/* @__PURE__ */ C("span", { className: "ds:sr-only", children: G }),
|
|
2736
|
+
y ? /* @__PURE__ */ C(
|
|
2736
2737
|
"span",
|
|
2737
2738
|
{
|
|
2738
2739
|
"aria-hidden": "true",
|
|
@@ -2743,7 +2744,7 @@ const an = Mn(
|
|
|
2743
2744
|
{
|
|
2744
2745
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
2745
2746
|
children: [
|
|
2746
|
-
/* @__PURE__ */
|
|
2747
|
+
/* @__PURE__ */ C(
|
|
2747
2748
|
"span",
|
|
2748
2749
|
{
|
|
2749
2750
|
"data-step": $,
|
|
@@ -2753,7 +2754,7 @@ const an = Mn(
|
|
|
2753
2754
|
})
|
|
2754
2755
|
}
|
|
2755
2756
|
),
|
|
2756
|
-
c <
|
|
2757
|
+
c < T.length ? /* @__PURE__ */ C("span", { className: "ds:shrink-0", children: T[c] }) : null
|
|
2757
2758
|
]
|
|
2758
2759
|
},
|
|
2759
2760
|
$
|
|
@@ -2765,10 +2766,10 @@ const an = Mn(
|
|
|
2765
2766
|
"aria-hidden": "true",
|
|
2766
2767
|
className: "ds:flex ds:min-w-0 ds:max-w-full ds:items-center ds:gap-[var(--spacing-xs)] ds:tabular-nums",
|
|
2767
2768
|
children: [
|
|
2768
|
-
/* @__PURE__ */
|
|
2769
|
-
L.middle !== void 0 ? /* @__PURE__ */ le(
|
|
2770
|
-
|
|
2771
|
-
/* @__PURE__ */
|
|
2769
|
+
/* @__PURE__ */ C("span", { className: "ds:shrink-0", children: L.start }),
|
|
2770
|
+
L.middle !== void 0 ? /* @__PURE__ */ le(Gn, { children: [
|
|
2771
|
+
F(Pt.slice(0, Te / 2)),
|
|
2772
|
+
/* @__PURE__ */ C(
|
|
2772
2773
|
"span",
|
|
2773
2774
|
{
|
|
2774
2775
|
"data-legend": "midpoint",
|
|
@@ -2779,14 +2780,14 @@ const an = Mn(
|
|
|
2779
2780
|
children: L.middle
|
|
2780
2781
|
}
|
|
2781
2782
|
),
|
|
2782
|
-
|
|
2783
|
-
] }) :
|
|
2784
|
-
/* @__PURE__ */
|
|
2783
|
+
F(Pt.slice(Te / 2))
|
|
2784
|
+
] }) : F(J ?? Pt),
|
|
2785
|
+
/* @__PURE__ */ C("span", { className: "ds:shrink-0", children: L.end })
|
|
2785
2786
|
]
|
|
2786
2787
|
}
|
|
2787
2788
|
),
|
|
2788
|
-
|
|
2789
|
-
/* @__PURE__ */
|
|
2789
|
+
z ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
2790
|
+
/* @__PURE__ */ C(
|
|
2790
2791
|
"span",
|
|
2791
2792
|
{
|
|
2792
2793
|
"aria-hidden": "true",
|
|
@@ -2796,19 +2797,19 @@ const an = Mn(
|
|
|
2796
2797
|
m("heatmap.legend.noData")
|
|
2797
2798
|
] }) : null,
|
|
2798
2799
|
Y ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
2799
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ C(
|
|
2800
2801
|
"span",
|
|
2801
2802
|
{
|
|
2802
2803
|
"aria-hidden": "true",
|
|
2803
2804
|
className: tt({ tone: "low-sample" })
|
|
2804
2805
|
}
|
|
2805
2806
|
),
|
|
2806
|
-
|
|
2807
|
-
value: new Intl.NumberFormat(p).format(
|
|
2807
|
+
A === void 0 ? m("heatmap.legend.lowSample") : m("heatmap.legend.lowSampleUnder", {
|
|
2808
|
+
value: new Intl.NumberFormat(p).format(A)
|
|
2808
2809
|
})
|
|
2809
2810
|
] }) : null,
|
|
2810
|
-
|
|
2811
|
-
/* @__PURE__ */
|
|
2811
|
+
E ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
2812
|
+
/* @__PURE__ */ C(
|
|
2812
2813
|
"span",
|
|
2813
2814
|
{
|
|
2814
2815
|
"aria-hidden": "true",
|
|
@@ -2823,15 +2824,28 @@ const an = Mn(
|
|
|
2823
2824
|
}
|
|
2824
2825
|
);
|
|
2825
2826
|
an.displayName = "HeatmapLegend";
|
|
2826
|
-
const rn = () => import("./data-table-
|
|
2827
|
-
|
|
2828
|
-
|
|
2827
|
+
const rn = () => import("./data-table-C5uN4ato.js").then((e) => e.h).then((e) => {
|
|
2828
|
+
const t = e.DataTable;
|
|
2829
|
+
function n(o) {
|
|
2830
|
+
const { t: s } = wt("ui");
|
|
2831
|
+
return /* @__PURE__ */ C(t, { ...o, children: /* @__PURE__ */ C("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ C(
|
|
2832
|
+
no,
|
|
2833
|
+
{
|
|
2834
|
+
role: "toolbar",
|
|
2835
|
+
"aria-label": s("dataTable.tableActions"),
|
|
2836
|
+
className: "ds:bg-[var(--background)]",
|
|
2837
|
+
children: /* @__PURE__ */ C(e.DataTable.Toolbar.ExportMenu, {})
|
|
2838
|
+
}
|
|
2839
|
+
) }) });
|
|
2840
|
+
}
|
|
2841
|
+
return { default: n };
|
|
2842
|
+
}), ia = Sn(rn);
|
|
2829
2843
|
function xn() {
|
|
2830
2844
|
rn().catch(() => {
|
|
2831
2845
|
});
|
|
2832
2846
|
}
|
|
2833
2847
|
const In = { value: null, status: "empty" };
|
|
2834
|
-
function
|
|
2848
|
+
function la({
|
|
2835
2849
|
title: e,
|
|
2836
2850
|
rowsLabel: t,
|
|
2837
2851
|
rows: n,
|
|
@@ -2847,7 +2861,7 @@ function ia({
|
|
|
2847
2861
|
groupColumnMethod: w,
|
|
2848
2862
|
onLoadError: b
|
|
2849
2863
|
}) {
|
|
2850
|
-
const { t: p } =
|
|
2864
|
+
const { t: p } = wt("ui"), N = X(
|
|
2851
2865
|
() => [
|
|
2852
2866
|
...i ? [
|
|
2853
2867
|
{
|
|
@@ -2865,12 +2879,12 @@ function ia({
|
|
|
2865
2879
|
sortable: !i
|
|
2866
2880
|
},
|
|
2867
2881
|
...o.map(
|
|
2868
|
-
(
|
|
2882
|
+
(A, K) => ({
|
|
2869
2883
|
colId: `c${K}`,
|
|
2870
|
-
headerName: d.columnLabel(
|
|
2871
|
-
valueGetter: (
|
|
2884
|
+
headerName: d.columnLabel(A),
|
|
2885
|
+
valueGetter: (F) => {
|
|
2872
2886
|
var $;
|
|
2873
|
-
return (($ =
|
|
2887
|
+
return (($ = F.data) == null ? void 0 : $.cells[K]) ?? "";
|
|
2874
2888
|
},
|
|
2875
2889
|
sortable: !1
|
|
2876
2890
|
})
|
|
@@ -2886,25 +2900,25 @@ function ia({
|
|
|
2886
2900
|
],
|
|
2887
2901
|
[i, t, o, d, v, p]
|
|
2888
2902
|
), O = X(
|
|
2889
|
-
() => a.map((
|
|
2890
|
-
if (
|
|
2891
|
-
const $ = d.groupLabel(
|
|
2903
|
+
() => a.map((A) => {
|
|
2904
|
+
if (A.kind === "group") {
|
|
2905
|
+
const $ = d.groupLabel(A.groupId), c = (l == null ? void 0 : l.groupColumns.get(A.groupId)) ?? [];
|
|
2892
2906
|
return {
|
|
2893
|
-
id: `group:${u.get(
|
|
2907
|
+
id: `group:${u.get(A.groupId) ?? ""}`,
|
|
2894
2908
|
group: $,
|
|
2895
2909
|
row: d.groupRowText($, w),
|
|
2896
2910
|
cells: o.map(
|
|
2897
2911
|
(I, P) => d.tableText(c[P] ?? In)
|
|
2898
2912
|
),
|
|
2899
2913
|
total: v && l ? d.tableText(
|
|
2900
|
-
l.groups.get(
|
|
2914
|
+
l.groups.get(A.groupId) ?? In
|
|
2901
2915
|
) : void 0
|
|
2902
2916
|
};
|
|
2903
2917
|
}
|
|
2904
|
-
const K =
|
|
2918
|
+
const K = A.rowIndex, F = n[K].group;
|
|
2905
2919
|
return {
|
|
2906
2920
|
id: `row:${n[K].id}`,
|
|
2907
|
-
group: i &&
|
|
2921
|
+
group: i && F !== void 0 ? d.groupLabel(F) : void 0,
|
|
2908
2922
|
row: d.rowLabel(n[K]),
|
|
2909
2923
|
cells: s[K].map(($) => d.tableText($)),
|
|
2910
2924
|
total: v && l ? d.tableText(l.rows[K]) : void 0
|
|
@@ -2927,73 +2941,75 @@ function ia({
|
|
|
2927
2941
|
{
|
|
2928
2942
|
id: "heatmap-column-totals",
|
|
2929
2943
|
row: d.methodLabel(m),
|
|
2930
|
-
cells: l.columns.map((
|
|
2944
|
+
cells: l.columns.map((A) => d.tableText(A)),
|
|
2931
2945
|
// The grand total, by the row method, as the grid's corner.
|
|
2932
2946
|
total: v ? d.tableText(l.grand) : void 0
|
|
2933
2947
|
}
|
|
2934
2948
|
] : void 0,
|
|
2935
2949
|
[m, v, l, d]
|
|
2936
|
-
), y = O.length + ((D == null ? void 0 : D.length) ?? 0),
|
|
2937
|
-
|
|
2938
|
-
const [g,
|
|
2950
|
+
), y = O.length + ((D == null ? void 0 : D.length) ?? 0), R = ie(y);
|
|
2951
|
+
R.current = y;
|
|
2952
|
+
const [g, T] = we(null), L = g === y, G = ie(null);
|
|
2939
2953
|
nt(() => {
|
|
2940
|
-
const
|
|
2941
|
-
if (L || !
|
|
2954
|
+
const A = G.current;
|
|
2955
|
+
if (L || !A || typeof ResizeObserver > "u") return;
|
|
2942
2956
|
const K = new ResizeObserver(() => {
|
|
2943
|
-
|
|
2944
|
-
}),
|
|
2945
|
-
K.observe(
|
|
2946
|
-
for (const c of Array.from(
|
|
2957
|
+
A.scrollHeight > A.clientHeight + 1 && T(R.current);
|
|
2958
|
+
}), F = () => {
|
|
2959
|
+
K.observe(A);
|
|
2960
|
+
for (const c of Array.from(A.children)) K.observe(c);
|
|
2947
2961
|
};
|
|
2948
|
-
|
|
2949
|
-
const $ = new MutationObserver(
|
|
2950
|
-
return $.observe(
|
|
2962
|
+
F();
|
|
2963
|
+
const $ = new MutationObserver(F);
|
|
2964
|
+
return $.observe(A, { childList: !0 }), () => {
|
|
2951
2965
|
K.disconnect(), $.disconnect();
|
|
2952
2966
|
};
|
|
2953
2967
|
}, [L]);
|
|
2954
2968
|
const J = X(
|
|
2955
2969
|
() => ({
|
|
2956
|
-
getRowId: (
|
|
2957
|
-
domLayout: L ? "normal" : "autoHeight"
|
|
2970
|
+
getRowId: (A) => A.data.id,
|
|
2971
|
+
domLayout: L ? "normal" : "autoHeight",
|
|
2972
|
+
// Every value is already on screen in its row and column: no filters.
|
|
2973
|
+
defaultColDef: { filter: !1, floatingFilter: !1 }
|
|
2958
2974
|
}),
|
|
2959
2975
|
[L]
|
|
2960
|
-
), [
|
|
2961
|
-
() =>
|
|
2962
|
-
[
|
|
2976
|
+
), [z, Y] = we(0), E = X(
|
|
2977
|
+
() => z === 0 ? ia : Sn(rn),
|
|
2978
|
+
[z]
|
|
2963
2979
|
);
|
|
2964
|
-
return /* @__PURE__ */
|
|
2980
|
+
return /* @__PURE__ */ C(
|
|
2965
2981
|
"div",
|
|
2966
2982
|
{
|
|
2967
|
-
ref:
|
|
2983
|
+
ref: G,
|
|
2968
2984
|
role: "group",
|
|
2969
2985
|
"aria-label": e,
|
|
2970
2986
|
tabIndex: -1,
|
|
2971
2987
|
"data-component": "heatmap-table",
|
|
2972
2988
|
"data-layout": L ? "capped" : "fit",
|
|
2973
|
-
className:
|
|
2974
|
-
children: /* @__PURE__ */
|
|
2989
|
+
className: Xo({ capped: L }),
|
|
2990
|
+
children: /* @__PURE__ */ C(
|
|
2975
2991
|
to,
|
|
2976
2992
|
{
|
|
2977
2993
|
size: "sm",
|
|
2978
2994
|
onError: () => b == null ? void 0 : b(),
|
|
2979
2995
|
onRetry: () => {
|
|
2980
|
-
var
|
|
2981
|
-
Y((K) => K + 1), (
|
|
2996
|
+
var A;
|
|
2997
|
+
Y((K) => K + 1), (A = G.current) == null || A.focus();
|
|
2982
2998
|
},
|
|
2983
|
-
children: /* @__PURE__ */
|
|
2999
|
+
children: /* @__PURE__ */ C(
|
|
2984
3000
|
qn,
|
|
2985
3001
|
{
|
|
2986
|
-
fallback: /* @__PURE__ */
|
|
3002
|
+
fallback: /* @__PURE__ */ C("div", { role: "status", "aria-label": p("heatmap.loadingTable"), children: /* @__PURE__ */ C(
|
|
2987
3003
|
qt,
|
|
2988
3004
|
{
|
|
2989
3005
|
variant: "rectangular",
|
|
2990
3006
|
className: "ds:h-[calc(var(--min-target-size)*4)] ds:w-full"
|
|
2991
3007
|
}
|
|
2992
3008
|
) }),
|
|
2993
|
-
children: /* @__PURE__ */
|
|
2994
|
-
|
|
3009
|
+
children: /* @__PURE__ */ C(
|
|
3010
|
+
E,
|
|
2995
3011
|
{
|
|
2996
|
-
columnDefs:
|
|
3012
|
+
columnDefs: N,
|
|
2997
3013
|
rowData: O,
|
|
2998
3014
|
pinnedBottomRowData: D,
|
|
2999
3015
|
density: "compact",
|
|
@@ -3008,7 +3024,7 @@ function ia({
|
|
|
3008
3024
|
}
|
|
3009
3025
|
);
|
|
3010
3026
|
}
|
|
3011
|
-
const
|
|
3027
|
+
const ca = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? []).map((t) => Ct(t.rowId, t.columnId))), kn = { text: "", privacyMode: !1, repeat: 0 }, Bn = Mn(
|
|
3012
3028
|
({
|
|
3013
3029
|
title: e,
|
|
3014
3030
|
rows: t,
|
|
@@ -3016,7 +3032,7 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3016
3032
|
getCell: o,
|
|
3017
3033
|
cells: s,
|
|
3018
3034
|
groups: a,
|
|
3019
|
-
scale: i =
|
|
3035
|
+
scale: i = ca,
|
|
3020
3036
|
palette: u,
|
|
3021
3037
|
valueType: d = "number",
|
|
3022
3038
|
minCount: l,
|
|
@@ -3025,64 +3041,64 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3025
3041
|
showValues: w = !1,
|
|
3026
3042
|
legend: b = "stepped",
|
|
3027
3043
|
rowTotals: p = !1,
|
|
3028
|
-
columnTotals:
|
|
3044
|
+
columnTotals: N = !1,
|
|
3029
3045
|
sortRows: O,
|
|
3030
3046
|
defaultSortRows: D = "none",
|
|
3031
3047
|
onSortRowsChange: y,
|
|
3032
|
-
groupRows:
|
|
3048
|
+
groupRows: R = !1,
|
|
3033
3049
|
defaultCollapsedGroups: g,
|
|
3034
|
-
selection:
|
|
3050
|
+
selection: T = "none",
|
|
3035
3051
|
selectedCells: L,
|
|
3036
|
-
defaultSelectedCells:
|
|
3052
|
+
defaultSelectedCells: G,
|
|
3037
3053
|
onSelectionChange: J,
|
|
3038
|
-
onCellClick:
|
|
3054
|
+
onCellClick: z,
|
|
3039
3055
|
renderTooltip: Y,
|
|
3040
|
-
density:
|
|
3041
|
-
size:
|
|
3056
|
+
density: E = "default",
|
|
3057
|
+
size: A = "md",
|
|
3042
3058
|
loading: K = !1,
|
|
3043
|
-
privacyMode:
|
|
3059
|
+
privacyMode: F = !1,
|
|
3044
3060
|
privacyScope: $ = "rows",
|
|
3045
3061
|
rowsLabel: c,
|
|
3046
3062
|
defaultView: I = "heatmap",
|
|
3047
3063
|
onViewChange: P,
|
|
3048
|
-
id:
|
|
3064
|
+
id: H,
|
|
3049
3065
|
className: Q,
|
|
3050
3066
|
children: te
|
|
3051
3067
|
}, x) => {
|
|
3052
|
-
const { t: _, i18n: W } =
|
|
3053
|
-
() =>
|
|
3068
|
+
const { t: _, i18n: W } = wt("ui"), V = Nn(W.resolvedLanguage ?? W.language), q = X(
|
|
3069
|
+
() => Fo(t, n, o, s, l),
|
|
3054
3070
|
[t, n, o, s, l]
|
|
3055
3071
|
), B = X(() => zo(q), [q]), re = JSON.stringify(i), ne = X(
|
|
3056
3072
|
() => Qt(i, B),
|
|
3057
3073
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- keyed by content
|
|
3058
3074
|
[re, B]
|
|
3059
|
-
), Me = u ?? (ne.type === "diverging" ? "diverging" : "primary"),
|
|
3060
|
-
() => m ??
|
|
3061
|
-
[m,
|
|
3062
|
-
), be = X(() =>
|
|
3063
|
-
() =>
|
|
3075
|
+
), Me = u ?? (ne.type === "diverging" ? "diverging" : "primary"), Ae = X(
|
|
3076
|
+
() => m ?? Rn(V, d),
|
|
3077
|
+
[m, V, d]
|
|
3078
|
+
), be = X(() => En(V), [V]), Z = X(
|
|
3079
|
+
() => co({
|
|
3064
3080
|
t: _,
|
|
3065
|
-
privacyMode:
|
|
3081
|
+
privacyMode: F,
|
|
3066
3082
|
privacyScope: $,
|
|
3067
3083
|
valueType: d,
|
|
3068
|
-
formatValue:
|
|
3084
|
+
formatValue: Ae,
|
|
3069
3085
|
formatCount: be,
|
|
3070
3086
|
groups: a
|
|
3071
3087
|
}),
|
|
3072
3088
|
[
|
|
3073
3089
|
_,
|
|
3074
|
-
|
|
3090
|
+
F,
|
|
3075
3091
|
$,
|
|
3076
3092
|
d,
|
|
3077
|
-
|
|
3093
|
+
Ae,
|
|
3078
3094
|
be,
|
|
3079
3095
|
a
|
|
3080
3096
|
]
|
|
3081
3097
|
), pe = X(
|
|
3082
|
-
() =>
|
|
3098
|
+
() => Ko(t, a),
|
|
3083
3099
|
[t, a]
|
|
3084
|
-
), je =
|
|
3085
|
-
Ce.current =
|
|
3100
|
+
), je = N || p || "mean", qe = p || N || "mean", bt = N || p || "mean", [Oe, We] = we(kn), me = ie(0), Ce = ie(F);
|
|
3101
|
+
Ce.current = F;
|
|
3086
3102
|
const fe = ae((r, h = !1) => {
|
|
3087
3103
|
window.clearTimeout(me.current);
|
|
3088
3104
|
const M = Ce.current, S = () => We((k) => ({
|
|
@@ -3094,8 +3110,8 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3094
3110
|
}, []);
|
|
3095
3111
|
gt(() => () => window.clearTimeout(me.current), []), gt(() => {
|
|
3096
3112
|
window.clearTimeout(me.current), We((r) => r.text === "" ? r : kn);
|
|
3097
|
-
}, [
|
|
3098
|
-
const Dt = Oe.privacyMode ===
|
|
3113
|
+
}, [F]);
|
|
3114
|
+
const Dt = Oe.privacyMode === F ? (
|
|
3099
3115
|
// The same words twice leave the DOM unchanged and a screen reader
|
|
3100
3116
|
// silent: a trailing no-break space on every other repeat changes
|
|
3101
3117
|
// the text without changing what is read.
|
|
@@ -3107,17 +3123,17 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3107
3123
|
);
|
|
3108
3124
|
},
|
|
3109
3125
|
[P, fe, _]
|
|
3110
|
-
), [
|
|
3126
|
+
), [yt, lt] = we(D), De = O ?? yt, Kt = ae(
|
|
3111
3127
|
(r) => {
|
|
3112
3128
|
O === void 0 && lt(r), y == null || y(r);
|
|
3113
3129
|
},
|
|
3114
3130
|
[O, y]
|
|
3115
|
-
), [_e,
|
|
3131
|
+
), [_e, xt] = we(
|
|
3116
3132
|
() => new Set(g ?? [])
|
|
3117
3133
|
), ye = ae(
|
|
3118
3134
|
(r, h) => {
|
|
3119
3135
|
if (_e.has(r) === h) return;
|
|
3120
|
-
|
|
3136
|
+
xt((S) => {
|
|
3121
3137
|
if (S.has(r) === h) return S;
|
|
3122
3138
|
const k = new Set(S);
|
|
3123
3139
|
return h ? k.add(r) : k.delete(r), k;
|
|
@@ -3132,12 +3148,12 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3132
3148
|
(r) => ye(r, !_e.has(r)),
|
|
3133
3149
|
[_e, ye]
|
|
3134
3150
|
), Ke = X(
|
|
3135
|
-
() => new Intl.Collator(
|
|
3136
|
-
[
|
|
3137
|
-
),
|
|
3138
|
-
() =>
|
|
3151
|
+
() => new Intl.Collator(V, { numeric: !0, sensitivity: "base" }),
|
|
3152
|
+
[V]
|
|
3153
|
+
), It = De === "label" && Z.masksRows ? "none" : De, xe = X(
|
|
3154
|
+
() => Po(q, t, n, {
|
|
3139
3155
|
rowMethod: qe,
|
|
3140
|
-
columnMethod:
|
|
3156
|
+
columnMethod: bt,
|
|
3141
3157
|
groupColumnMethod: je,
|
|
3142
3158
|
groups: a,
|
|
3143
3159
|
minCount: l,
|
|
@@ -3149,7 +3165,7 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3149
3165
|
t,
|
|
3150
3166
|
n,
|
|
3151
3167
|
qe,
|
|
3152
|
-
|
|
3168
|
+
bt,
|
|
3153
3169
|
je,
|
|
3154
3170
|
a,
|
|
3155
3171
|
l,
|
|
@@ -3157,20 +3173,20 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3157
3173
|
d
|
|
3158
3174
|
]
|
|
3159
3175
|
), Ye = X(
|
|
3160
|
-
() =>
|
|
3176
|
+
() => Wo(
|
|
3161
3177
|
t.map((r, h) => h),
|
|
3162
3178
|
t,
|
|
3163
3179
|
xe.rows,
|
|
3164
|
-
|
|
3180
|
+
It,
|
|
3165
3181
|
Ke
|
|
3166
3182
|
),
|
|
3167
|
-
[t, xe.rows,
|
|
3183
|
+
[t, xe.rows, It, Ke]
|
|
3168
3184
|
), de = X(
|
|
3169
|
-
() => pn(t, Ye,
|
|
3170
|
-
[t, Ye,
|
|
3171
|
-
),
|
|
3172
|
-
() => pn(t, Ye,
|
|
3173
|
-
[t, Ye,
|
|
3185
|
+
() => pn(t, Ye, R, _e),
|
|
3186
|
+
[t, Ye, R, _e]
|
|
3187
|
+
), Fe = X(
|
|
3188
|
+
() => pn(t, Ye, R, /* @__PURE__ */ new Set()),
|
|
3189
|
+
[t, Ye, R]
|
|
3174
3190
|
), Ie = X(
|
|
3175
3191
|
() => new Map(t.map((r, h) => [r.id, h])),
|
|
3176
3192
|
[t]
|
|
@@ -3180,7 +3196,7 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3180
3196
|
), ct = ae(
|
|
3181
3197
|
(r) => Se.get(r),
|
|
3182
3198
|
[Se]
|
|
3183
|
-
),
|
|
3199
|
+
), ze = ae(
|
|
3184
3200
|
(r, h) => {
|
|
3185
3201
|
const M = t[r], S = n[h], k = q[r][h];
|
|
3186
3202
|
return {
|
|
@@ -3223,40 +3239,40 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3223
3239
|
},
|
|
3224
3240
|
[Z, pe]
|
|
3225
3241
|
), Be = ae(
|
|
3226
|
-
(r) => Y ? Y(
|
|
3227
|
-
privacyMode:
|
|
3242
|
+
(r) => Y ? Y(F ? Je(r) : r, {
|
|
3243
|
+
privacyMode: F
|
|
3228
3244
|
}) : Z.sentence(
|
|
3229
3245
|
Z.rowLabel(r.row),
|
|
3230
3246
|
Z.columnLabel(r.column),
|
|
3231
3247
|
q[r.rowIndex][r.columnIndex]
|
|
3232
3248
|
),
|
|
3233
|
-
[Y,
|
|
3234
|
-
),
|
|
3235
|
-
() => jt(
|
|
3249
|
+
[Y, F, Je, Z, q]
|
|
3250
|
+
), Ge = L !== void 0, [kt, Ft] = we(
|
|
3251
|
+
() => jt(G)
|
|
3236
3252
|
), he = X(() => {
|
|
3237
|
-
const r =
|
|
3253
|
+
const r = Ge ? jt(L) : kt, h = /* @__PURE__ */ new Set();
|
|
3238
3254
|
for (const M of r) {
|
|
3239
3255
|
const [S, k] = Et(M);
|
|
3240
3256
|
Ie.has(S) && Se.has(k) && h.add(M);
|
|
3241
3257
|
}
|
|
3242
3258
|
return h;
|
|
3243
3259
|
}, [
|
|
3244
|
-
|
|
3260
|
+
Ge,
|
|
3245
3261
|
L,
|
|
3246
|
-
|
|
3262
|
+
kt,
|
|
3247
3263
|
Ie,
|
|
3248
3264
|
Se
|
|
3249
|
-
]),
|
|
3265
|
+
]), Ve = ae(
|
|
3250
3266
|
(r) => {
|
|
3251
3267
|
const h = [];
|
|
3252
3268
|
for (const M of r) {
|
|
3253
3269
|
const [S, k] = Et(M), U = Ie.get(S), j = Se.get(k);
|
|
3254
|
-
U !== void 0 && j !== void 0 && h.push(
|
|
3270
|
+
U !== void 0 && j !== void 0 && h.push(ze(U, j));
|
|
3255
3271
|
}
|
|
3256
3272
|
return h;
|
|
3257
3273
|
},
|
|
3258
|
-
[Ie, Se,
|
|
3259
|
-
),
|
|
3274
|
+
[Ie, Se, ze]
|
|
3275
|
+
), Mt = ae(
|
|
3260
3276
|
(r, h) => Z.cellName(
|
|
3261
3277
|
Z.rowLabel(t[r]),
|
|
3262
3278
|
Z.columnLabel(n[h])
|
|
@@ -3264,9 +3280,9 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3264
3280
|
[Z, t, n]
|
|
3265
3281
|
), He = ae(
|
|
3266
3282
|
(r, h, M = !1) => {
|
|
3267
|
-
|
|
3283
|
+
Ge || Ft(r), J == null || J(Ve(r)), fe(h, M);
|
|
3268
3284
|
},
|
|
3269
|
-
[
|
|
3285
|
+
[Ge, J, Ve, fe]
|
|
3270
3286
|
), $e = ae(
|
|
3271
3287
|
(r) => r === 0 ? _("heatmap.announce.cleared") : _("heatmap.announce.count", {
|
|
3272
3288
|
count: r,
|
|
@@ -3283,17 +3299,17 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3283
3299
|
const [U, j] = M <= S ? [M, S] : [S, M], [oe, se] = r.col <= h.col ? [r.col, h.col] : [h.col, r.col];
|
|
3284
3300
|
for (let ue = U; ue <= j; ue += 1) {
|
|
3285
3301
|
const ce = t[Pe[ue]].id;
|
|
3286
|
-
for (let
|
|
3287
|
-
k.add(
|
|
3302
|
+
for (let Ne = oe; Ne <= se; Ne += 1)
|
|
3303
|
+
k.add(Ct(ce, n[Ne].id));
|
|
3288
3304
|
}
|
|
3289
3305
|
return k;
|
|
3290
3306
|
},
|
|
3291
3307
|
[Pe, t, n]
|
|
3292
|
-
),
|
|
3308
|
+
), St = ae(
|
|
3293
3309
|
(r, h, M) => {
|
|
3294
|
-
if (
|
|
3295
|
-
const S =
|
|
3296
|
-
if (
|
|
3310
|
+
if (z == null || z(ze(r, h)), !M || T === "none") return;
|
|
3311
|
+
const S = Ct(t[r].id, n[h].id), k = Mt(r, h);
|
|
3312
|
+
if (T === "multiple") {
|
|
3297
3313
|
const j = new Set(he), oe = !j.has(S);
|
|
3298
3314
|
oe ? j.add(S) : j.delete(S), He(
|
|
3299
3315
|
j,
|
|
@@ -3312,12 +3328,12 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3312
3328
|
);
|
|
3313
3329
|
},
|
|
3314
3330
|
[
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3331
|
+
z,
|
|
3332
|
+
ze,
|
|
3333
|
+
T,
|
|
3318
3334
|
t,
|
|
3319
3335
|
n,
|
|
3320
|
-
|
|
3336
|
+
Mt,
|
|
3321
3337
|
he,
|
|
3322
3338
|
He,
|
|
3323
3339
|
be,
|
|
@@ -3325,24 +3341,24 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3325
3341
|
]
|
|
3326
3342
|
), dt = ae(
|
|
3327
3343
|
(r, h) => {
|
|
3328
|
-
if (
|
|
3344
|
+
if (T !== "range" && T !== "multiple") return;
|
|
3329
3345
|
const M = Qe(r, h);
|
|
3330
3346
|
M.size === he.size && [...M].every((S) => he.has(S)) || He(M, $e(M.size), !0);
|
|
3331
3347
|
},
|
|
3332
|
-
[
|
|
3348
|
+
[T, Qe, he, He, $e]
|
|
3333
3349
|
), Xe = X(
|
|
3334
3350
|
() => new Map([...pe].map(([r, h]) => [h, r])),
|
|
3335
3351
|
[pe]
|
|
3336
3352
|
), ut = {
|
|
3337
3353
|
selected: he,
|
|
3338
|
-
selection:
|
|
3354
|
+
selection: T,
|
|
3339
3355
|
view: ve,
|
|
3340
3356
|
sortRows: De,
|
|
3341
3357
|
collapsed: _e,
|
|
3342
|
-
groupRows:
|
|
3358
|
+
groupRows: R,
|
|
3343
3359
|
rows: t,
|
|
3344
3360
|
columns: n,
|
|
3345
|
-
expandedBody:
|
|
3361
|
+
expandedBody: Fe,
|
|
3346
3362
|
groupIds: pe,
|
|
3347
3363
|
groupByPublicId: Xe,
|
|
3348
3364
|
rowIndexById: Ie,
|
|
@@ -3357,12 +3373,12 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3357
3373
|
countMessage: $e
|
|
3358
3374
|
}, ee = ie(ut);
|
|
3359
3375
|
ee.current = ut;
|
|
3360
|
-
const
|
|
3376
|
+
const zt = X(() => {
|
|
3361
3377
|
const r = (k) => {
|
|
3362
3378
|
const { columns: U, columnIndexById: j } = ee.current, oe = [];
|
|
3363
3379
|
for (const se of k) {
|
|
3364
|
-
const [ue, ce] = Et(se),
|
|
3365
|
-
|
|
3380
|
+
const [ue, ce] = Et(se), Ne = j.get(ce);
|
|
3381
|
+
Ne !== void 0 && oe.push({ rowId: ue, columnId: U[Ne].id });
|
|
3366
3382
|
}
|
|
3367
3383
|
return oe;
|
|
3368
3384
|
}, h = (k) => {
|
|
@@ -3460,24 +3476,24 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3460
3476
|
}
|
|
3461
3477
|
};
|
|
3462
3478
|
}, []);
|
|
3463
|
-
Wn(
|
|
3479
|
+
Wn(io, zt, H);
|
|
3464
3480
|
const pt = X(
|
|
3465
3481
|
() => q.some((r) => r.some((h) => h.status === "empty")),
|
|
3466
3482
|
[q]
|
|
3467
|
-
),
|
|
3468
|
-
const r = (S) => S.status === "low-sample", h =
|
|
3469
|
-
return h.some(r) || p !== !1 && (xe.rows.some(r) || M.some(r)) ||
|
|
3470
|
-
}, [xe, p,
|
|
3483
|
+
), Nt = X(() => {
|
|
3484
|
+
const r = (S) => S.status === "low-sample", h = R ? [...xe.groupColumns.values()].flat() : [], M = R ? [...xe.groups.values()] : [];
|
|
3485
|
+
return h.some(r) || p !== !1 && (xe.rows.some(r) || M.some(r)) || N !== !1 && (xe.columns.some(r) || p !== !1 && r(xe.grand));
|
|
3486
|
+
}, [xe, p, N, R]), mt = X(
|
|
3471
3487
|
() => q.some((r) => r.some((h) => h.status === "low-sample")),
|
|
3472
3488
|
[q]
|
|
3473
|
-
),
|
|
3489
|
+
), Re = X(
|
|
3474
3490
|
() => ({
|
|
3475
3491
|
palette: Me,
|
|
3476
3492
|
scale: ne,
|
|
3477
3493
|
describer: Z,
|
|
3478
3494
|
hasEmpty: pt,
|
|
3479
3495
|
hasLowSample: mt,
|
|
3480
|
-
hasWithheldTotal:
|
|
3496
|
+
hasWithheldTotal: Nt,
|
|
3481
3497
|
minCount: l,
|
|
3482
3498
|
tooltipText: Be
|
|
3483
3499
|
}),
|
|
@@ -3487,18 +3503,18 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3487
3503
|
Z,
|
|
3488
3504
|
pt,
|
|
3489
3505
|
mt,
|
|
3490
|
-
|
|
3506
|
+
Nt,
|
|
3491
3507
|
l,
|
|
3492
3508
|
Be
|
|
3493
3509
|
]
|
|
3494
3510
|
), ke = wn({ className: Q });
|
|
3495
3511
|
if (K)
|
|
3496
|
-
return /* @__PURE__ */
|
|
3512
|
+
return /* @__PURE__ */ C(Tt.Provider, { value: Re, children: /* @__PURE__ */ le(
|
|
3497
3513
|
"div",
|
|
3498
3514
|
{
|
|
3499
3515
|
ref: x,
|
|
3500
3516
|
"data-component": "heatmap",
|
|
3501
|
-
"data-component-id":
|
|
3517
|
+
"data-component-id": H,
|
|
3502
3518
|
className: ke,
|
|
3503
3519
|
children: [
|
|
3504
3520
|
/* @__PURE__ */ le(
|
|
@@ -3509,14 +3525,14 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3509
3525
|
"aria-busy": "true",
|
|
3510
3526
|
className: wn(),
|
|
3511
3527
|
children: [
|
|
3512
|
-
/* @__PURE__ */
|
|
3528
|
+
/* @__PURE__ */ C(
|
|
3513
3529
|
qt,
|
|
3514
3530
|
{
|
|
3515
3531
|
variant: "rectangular",
|
|
3516
3532
|
className: "ds:h-[var(--spacing-md)] ds:w-[calc(var(--spacing-xl)*6)] ds:max-w-full"
|
|
3517
3533
|
}
|
|
3518
3534
|
),
|
|
3519
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ C(
|
|
3520
3536
|
qt,
|
|
3521
3537
|
{
|
|
3522
3538
|
variant: "rectangular",
|
|
@@ -3530,16 +3546,16 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3530
3546
|
]
|
|
3531
3547
|
}
|
|
3532
3548
|
) });
|
|
3533
|
-
if (t.length === 0 || n.length === 0 || !
|
|
3534
|
-
return /* @__PURE__ */
|
|
3549
|
+
if (t.length === 0 || n.length === 0 || !Bo(q))
|
|
3550
|
+
return /* @__PURE__ */ C(Tt.Provider, { value: Re, children: /* @__PURE__ */ le(
|
|
3535
3551
|
"div",
|
|
3536
3552
|
{
|
|
3537
3553
|
ref: x,
|
|
3538
3554
|
"data-component": "heatmap",
|
|
3539
|
-
"data-component-id":
|
|
3555
|
+
"data-component-id": H,
|
|
3540
3556
|
className: ke,
|
|
3541
3557
|
children: [
|
|
3542
|
-
/* @__PURE__ */
|
|
3558
|
+
/* @__PURE__ */ C(
|
|
3543
3559
|
Yn,
|
|
3544
3560
|
{
|
|
3545
3561
|
variant: "no-results",
|
|
@@ -3552,24 +3568,24 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3552
3568
|
]
|
|
3553
3569
|
}
|
|
3554
3570
|
) });
|
|
3555
|
-
const Bt = t.length * n.length >
|
|
3556
|
-
return /* @__PURE__ */
|
|
3571
|
+
const Bt = t.length * n.length > Uo, f = T !== "none" || z !== void 0;
|
|
3572
|
+
return /* @__PURE__ */ C(Tt.Provider, { value: Re, children: /* @__PURE__ */ le(
|
|
3557
3573
|
"div",
|
|
3558
3574
|
{
|
|
3559
3575
|
ref: x,
|
|
3560
3576
|
"data-component": "heatmap",
|
|
3561
|
-
"data-component-id":
|
|
3577
|
+
"data-component-id": H,
|
|
3562
3578
|
className: ke,
|
|
3563
3579
|
children: [
|
|
3564
|
-
/* @__PURE__ */ le("div", { className:
|
|
3565
|
-
b !== !1 ? /* @__PURE__ */
|
|
3566
|
-
/* @__PURE__ */
|
|
3580
|
+
/* @__PURE__ */ le("div", { className: Jo(), children: [
|
|
3581
|
+
b !== !1 ? /* @__PURE__ */ C(an, { variant: b }) : null,
|
|
3582
|
+
/* @__PURE__ */ C(
|
|
3567
3583
|
Un,
|
|
3568
3584
|
{
|
|
3569
3585
|
intent: "outline",
|
|
3570
3586
|
size: "sm",
|
|
3571
3587
|
className: "ds:ms-auto",
|
|
3572
|
-
startIcon: ve === "table" ? /* @__PURE__ */
|
|
3588
|
+
startIcon: ve === "table" ? /* @__PURE__ */ C(ao, { "aria-hidden": "true" }) : /* @__PURE__ */ C(so, { "aria-hidden": "true" }),
|
|
3573
3589
|
onPointerEnter: ve === "table" ? void 0 : xn,
|
|
3574
3590
|
onFocus: ve === "table" ? void 0 : xn,
|
|
3575
3591
|
onClick: () => it(ve === "table" ? "heatmap" : "table"),
|
|
@@ -3577,8 +3593,8 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3577
3593
|
}
|
|
3578
3594
|
)
|
|
3579
3595
|
] }),
|
|
3580
|
-
ve === "table" ? /* @__PURE__ */
|
|
3581
|
-
|
|
3596
|
+
ve === "table" ? /* @__PURE__ */ C(
|
|
3597
|
+
la,
|
|
3582
3598
|
{
|
|
3583
3599
|
onLoadError: () => fe(_("heatmap.announce.tableFailed")),
|
|
3584
3600
|
title: e,
|
|
@@ -3586,18 +3602,18 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3586
3602
|
rows: t,
|
|
3587
3603
|
columns: n,
|
|
3588
3604
|
matrix: q,
|
|
3589
|
-
body:
|
|
3590
|
-
grouped:
|
|
3605
|
+
body: Fe,
|
|
3606
|
+
grouped: R,
|
|
3591
3607
|
groupIds: pe,
|
|
3592
3608
|
describer: Z,
|
|
3593
3609
|
totals: xe,
|
|
3594
3610
|
rowTotals: p,
|
|
3595
|
-
columnTotals:
|
|
3611
|
+
columnTotals: N,
|
|
3596
3612
|
groupColumnMethod: je
|
|
3597
3613
|
},
|
|
3598
|
-
`${
|
|
3599
|
-
) : /* @__PURE__ */
|
|
3600
|
-
|
|
3614
|
+
`${F}-${$}`
|
|
3615
|
+
) : /* @__PURE__ */ C(Qn, { delayDuration: 0, children: /* @__PURE__ */ C(
|
|
3616
|
+
ra,
|
|
3601
3617
|
{
|
|
3602
3618
|
title: e,
|
|
3603
3619
|
rowsLabel: c,
|
|
@@ -3611,40 +3627,40 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
|
|
|
3611
3627
|
showValues: w,
|
|
3612
3628
|
totals: xe,
|
|
3613
3629
|
rowTotals: p,
|
|
3614
|
-
columnTotals:
|
|
3630
|
+
columnTotals: N,
|
|
3615
3631
|
groupColumnMethod: je,
|
|
3616
3632
|
groupIds: pe,
|
|
3617
|
-
selectionMode:
|
|
3633
|
+
selectionMode: T,
|
|
3618
3634
|
selected: he,
|
|
3619
3635
|
columnIndexOfKey: ct,
|
|
3620
3636
|
interactive: f,
|
|
3621
3637
|
virtualised: Bt,
|
|
3622
|
-
size:
|
|
3623
|
-
density:
|
|
3624
|
-
cellInfo:
|
|
3638
|
+
size: A,
|
|
3639
|
+
density: E,
|
|
3640
|
+
cellInfo: ze,
|
|
3625
3641
|
tooltipText: Be,
|
|
3626
3642
|
describeFocused: Y !== void 0,
|
|
3627
|
-
onActivate:
|
|
3643
|
+
onActivate: St,
|
|
3628
3644
|
onRange: dt,
|
|
3629
3645
|
onToggleGroup: Ue
|
|
3630
3646
|
}
|
|
3631
3647
|
) }),
|
|
3632
3648
|
te,
|
|
3633
|
-
/* @__PURE__ */
|
|
3649
|
+
/* @__PURE__ */ C(Jn, { children: Dt }, String(F))
|
|
3634
3650
|
]
|
|
3635
3651
|
}
|
|
3636
3652
|
) });
|
|
3637
3653
|
}
|
|
3638
3654
|
);
|
|
3639
3655
|
Bn.displayName = "Heatmap";
|
|
3640
|
-
const
|
|
3656
|
+
const _a = Object.assign(Bn, {
|
|
3641
3657
|
Legend: an,
|
|
3642
3658
|
Tooltip: Dn
|
|
3643
3659
|
});
|
|
3644
3660
|
export {
|
|
3645
|
-
|
|
3661
|
+
_a as H,
|
|
3646
3662
|
an as a,
|
|
3647
3663
|
Dn as b,
|
|
3648
|
-
|
|
3664
|
+
io as h
|
|
3649
3665
|
};
|
|
3650
|
-
//# sourceMappingURL=heatmap-
|
|
3666
|
+
//# sourceMappingURL=heatmap-Cz0Krieg.js.map
|