impact-nova 3.0.0-alpha.14 → 3.0.0-alpha.16
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/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/choice-card/choice-card.js +99 -97
- package/dist/components/forms/choice-card/choice-card.variants.js +22 -1
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/impact-nova.css +1 -1
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { resolveColumnPinnedFromGridState as E } from "./data-table-column-apply.js";
|
|
2
|
-
import {
|
|
2
|
+
import { isPickerEligibleGridColumn as H } from "./data-table-picker-column-eligibility.js";
|
|
3
3
|
import { resolveColumnSavability as q } from "./column-savability.js";
|
|
4
4
|
function K(l) {
|
|
5
|
-
const
|
|
5
|
+
const d = [];
|
|
6
6
|
let c = l.getOriginalParent();
|
|
7
7
|
for (; c; ) {
|
|
8
8
|
const u = c.getColGroupDef();
|
|
9
|
-
u?.headerName && u?.children &&
|
|
9
|
+
u?.headerName && u?.children && d.push(c), c = c.getOriginalParent();
|
|
10
10
|
}
|
|
11
|
-
return
|
|
11
|
+
return d.reverse(), d;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function J(l, d) {
|
|
14
14
|
const c = l.getColumnState(), u = l.getGridOption("context"), _ = typeof u?.activeSearchColumnId == "string" ? u.activeSearchColumnId : null, F = l.getAllGridColumns?.() ?? l.getColumns() ?? [], M = new Map(
|
|
15
15
|
F.map((o) => [o.getColId(), o])
|
|
16
16
|
), f = [], h = [], v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
@@ -25,27 +25,27 @@ function A(l, a) {
|
|
|
25
25
|
return n.node;
|
|
26
26
|
const s = S.get(r) || 0;
|
|
27
27
|
S.set(r, s + 1);
|
|
28
|
-
const k = o.getColGroupDef(),
|
|
28
|
+
const k = o.getColGroupDef(), a = {
|
|
29
29
|
id: s === 0 ? `${t}__${i}` : `${t}__${i}__${s}`,
|
|
30
30
|
label: k?.headerName || t,
|
|
31
31
|
checked: !0,
|
|
32
32
|
children: [],
|
|
33
33
|
category: "group"
|
|
34
34
|
};
|
|
35
|
-
return e.push(
|
|
35
|
+
return e.push(a), v.set(r, { list: e, node: a }), a;
|
|
36
36
|
};
|
|
37
37
|
let g = 0, y = 0, I = 0, N = 0;
|
|
38
38
|
c.forEach((o) => {
|
|
39
39
|
const e = M.get(o.colId) ?? l.getColumn(o.colId);
|
|
40
40
|
if (!e) return;
|
|
41
41
|
const t = e.getColDef(), i = t.headerName;
|
|
42
|
-
if (i != null && i.trim() === "" || !H(
|
|
42
|
+
if (i != null && i.trim() === "" || !H(e, l))
|
|
43
43
|
return;
|
|
44
44
|
const r = t.headerName;
|
|
45
45
|
let n = typeof r == "string" && r.trim() !== "" ? r : l.getDisplayNameForColumn(e, "header");
|
|
46
46
|
if ((!n || n.trim() === "") && (n = t.field ?? o.colId), !n || n.trim() === "")
|
|
47
47
|
return;
|
|
48
|
-
const s = !o.hide, k = !!o.sort, $ = e.isFilterActive() || _ === o.colId,
|
|
48
|
+
const s = !o.hide, k = !!o.sort, $ = e.isFilterActive() || _ === o.colId, a = E(o, e), w = !q(e), p = {
|
|
49
49
|
id: o.colId,
|
|
50
50
|
label: n,
|
|
51
51
|
checked: s,
|
|
@@ -53,11 +53,11 @@ function A(l, a) {
|
|
|
53
53
|
hasSortApplied: k,
|
|
54
54
|
hasFilterApplied: $,
|
|
55
55
|
isNonSavable: w,
|
|
56
|
-
pinned:
|
|
56
|
+
pinned: a
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
const z =
|
|
59
|
+
a ? (g++, s && y++) : (I++, s && N++);
|
|
60
|
+
const z = a ? f : h, G = K(e), T = G.map((C) => C.getGroupId());
|
|
61
61
|
if (G.length > 0) {
|
|
62
62
|
p.data = {
|
|
63
63
|
...p.data,
|
|
@@ -79,7 +79,7 @@ function A(l, a) {
|
|
|
79
79
|
return b(f), b(h), [
|
|
80
80
|
{
|
|
81
81
|
id: "root-frozen",
|
|
82
|
-
label:
|
|
82
|
+
label: d.frozenColumns,
|
|
83
83
|
checked: g > 0 && y === g,
|
|
84
84
|
children: f,
|
|
85
85
|
category: "structure",
|
|
@@ -87,7 +87,7 @@ function A(l, a) {
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
id: "root-scrollable",
|
|
90
|
-
label:
|
|
90
|
+
label: d.scrollableColumns,
|
|
91
91
|
checked: I > 0 && N === I,
|
|
92
92
|
children: h,
|
|
93
93
|
category: "structure",
|
|
@@ -96,5 +96,5 @@ function A(l, a) {
|
|
|
96
96
|
];
|
|
97
97
|
}
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
J as buildColumnTreeFromGrid
|
|
100
100
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveColumnPinnedFromGridState as P } from "./data-table-column-apply.js";
|
|
2
|
-
import {
|
|
2
|
+
import { isPickerEligibleGridColumn as F } from "./data-table-picker-column-eligibility.js";
|
|
3
3
|
import { buildColumnIndicatorMapsFromGrid as S } from "./patch-column-tree-indicators-from-grid.js";
|
|
4
4
|
import { resolveColumnSavability as V } from "./column-savability.js";
|
|
5
5
|
import { Fnv1a128Hasher as N } from "../../../lib/hash/fnv1a128.js";
|
|
@@ -12,7 +12,7 @@ function E(n) {
|
|
|
12
12
|
const r = e.get(t.colId) ?? n.getColumn(t.colId);
|
|
13
13
|
if (!r) continue;
|
|
14
14
|
const a = r.getColDef(), p = a.headerName;
|
|
15
|
-
if (p != null && p.trim() === "" || !F(
|
|
15
|
+
if (p != null && p.trim() === "" || !F(r, n))
|
|
16
16
|
continue;
|
|
17
17
|
const C = a.headerName;
|
|
18
18
|
let s = typeof C == "string" && C.trim() !== "" ? C : n.getDisplayNameForColumn(r, "header");
|
|
@@ -23,22 +23,22 @@ function E(n) {
|
|
|
23
23
|
const h = [];
|
|
24
24
|
let u = r.getOriginalParent();
|
|
25
25
|
for (; u; ) {
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
26
|
+
const f = u.getColGroupDef();
|
|
27
|
+
if (f?.headerName && f?.children) {
|
|
28
28
|
const m = u.getGroupId();
|
|
29
29
|
if (h.unshift(m), !c.has(m)) {
|
|
30
|
-
const
|
|
30
|
+
const I = u.getOriginalParent();
|
|
31
31
|
let M = null;
|
|
32
|
-
for (;
|
|
33
|
-
const G =
|
|
32
|
+
for (; I; ) {
|
|
33
|
+
const G = I.getColGroupDef();
|
|
34
34
|
if (G?.headerName && G?.children) {
|
|
35
|
-
M =
|
|
35
|
+
M = I.getGroupId();
|
|
36
36
|
break;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
c.set(m, {
|
|
40
40
|
groupId: m,
|
|
41
|
-
label:
|
|
41
|
+
label: f.headerName,
|
|
42
42
|
parentGroupId: M
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Fnv1a128Hasher as u } from "../../../lib/hash/fnv1a128.js";
|
|
2
|
-
import {
|
|
3
|
-
const C = 150,
|
|
2
|
+
import { isPickerEligibleGridColumn as h } from "./data-table-picker-column-eligibility.js";
|
|
3
|
+
const C = 150, G = 300;
|
|
4
4
|
function a(t) {
|
|
5
5
|
return t === "left" || t === !0 ? "left" : t === "right" ? "right" : null;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function p(t, e) {
|
|
8
8
|
return "pinned" in t && t.pinned !== void 0 ? a(t.pinned) : a(e.getPinned());
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function I(t, e) {
|
|
11
11
|
const r = t.getColumn(e);
|
|
12
12
|
if (!r) return null;
|
|
13
13
|
const l = t.getColumnState().find((n) => n.colId === e);
|
|
14
|
-
return l ?
|
|
14
|
+
return l ? p(l, r) : a(r.getPinned());
|
|
15
15
|
}
|
|
16
16
|
function f(t, e) {
|
|
17
17
|
return t.map((r) => {
|
|
@@ -21,16 +21,16 @@ function f(t, e) {
|
|
|
21
21
|
children: f(r.children, e)
|
|
22
22
|
};
|
|
23
23
|
const n = r.data ?? {};
|
|
24
|
-
let
|
|
24
|
+
let o = null;
|
|
25
25
|
if (e !== null) {
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const i = n.pinned;
|
|
27
|
+
o = i === "left" || i === "right" ? i : e;
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
...r,
|
|
31
31
|
data: {
|
|
32
32
|
...n,
|
|
33
|
-
pinned:
|
|
33
|
+
pinned: o
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
});
|
|
@@ -46,25 +46,25 @@ function S(t) {
|
|
|
46
46
|
}
|
|
47
47
|
function y(t) {
|
|
48
48
|
const e = new u(), r = (l, n) => {
|
|
49
|
-
for (const
|
|
50
|
-
if (
|
|
51
|
-
|
|
49
|
+
for (const o of l) {
|
|
50
|
+
if (o.id === "root-frozen") {
|
|
51
|
+
o.children && r(o.children, "left");
|
|
52
52
|
continue;
|
|
53
53
|
}
|
|
54
|
-
if (
|
|
55
|
-
|
|
54
|
+
if (o.id === "root-scrollable") {
|
|
55
|
+
o.children && r(o.children, null);
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
|
-
if ((
|
|
59
|
-
r(
|
|
58
|
+
if ((o.category === "group" || o.children && o.children.length > 0) && o.children) {
|
|
59
|
+
r(o.children, n);
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
62
|
let d = "0";
|
|
63
63
|
if (n !== null) {
|
|
64
|
-
const c =
|
|
64
|
+
const c = o.data?.pinned;
|
|
65
65
|
d = c === "left" || c === "right" ? c : "left";
|
|
66
66
|
}
|
|
67
|
-
e.update(
|
|
67
|
+
e.update(o.id).update(":").update(d).update("|");
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
return r(t, null), e.digest();
|
|
@@ -96,28 +96,29 @@ function M(t) {
|
|
|
96
96
|
r(n.children);
|
|
97
97
|
continue;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
e.update(n.id).update(":").update(
|
|
99
|
+
const i = n.data;
|
|
100
|
+
e.update(n.id).update(":").update(i?.hasSortApplied ? "1" : "0").update(":").update(i?.hasFilterApplied ? "1" : "0").update("|");
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
return r(t), e.digest();
|
|
104
104
|
}
|
|
105
105
|
function P(t) {
|
|
106
|
-
const e = t.getGridOption("context"), r = typeof e?.activeSearchColumnId == "string" ? e.activeSearchColumnId : null, l = typeof t.getFilterModel == "function" ? t.getFilterModel() : {}, n = new Set(Object.keys(l ?? {})),
|
|
107
|
-
for (const
|
|
108
|
-
|
|
106
|
+
const e = t.getGridOption("context"), r = typeof e?.activeSearchColumnId == "string" ? e.activeSearchColumnId : null, l = typeof t.getFilterModel == "function" ? t.getFilterModel() : {}, n = new Set(Object.keys(l ?? {})), o = new u();
|
|
107
|
+
for (const i of t.getColumnState()) {
|
|
108
|
+
const d = t.getColumn(i.colId);
|
|
109
|
+
if (!h(d, t))
|
|
109
110
|
continue;
|
|
110
|
-
const
|
|
111
|
-
|
|
111
|
+
const s = n.has(i.colId) || r === i.colId;
|
|
112
|
+
o.update(i.colId).update(":").update(i.sort ? "1" : "0").update(":").update(s ? "1" : "0").update("|");
|
|
112
113
|
}
|
|
113
|
-
return
|
|
114
|
+
return o.digest();
|
|
114
115
|
}
|
|
115
116
|
function T(t) {
|
|
116
117
|
queueMicrotask(t);
|
|
117
118
|
}
|
|
118
119
|
export {
|
|
119
120
|
C as EXTERNAL_SYNC_DEBOUNCE_MS,
|
|
120
|
-
|
|
121
|
+
G as GRID_AUTO_UNPIN_WAIT_MS,
|
|
121
122
|
T as afterSynchronousColumnApply,
|
|
122
123
|
S as alignColumnTreePinMetadata,
|
|
123
124
|
M as fingerprintColumnTreeIndicators,
|
|
@@ -125,6 +126,6 @@ export {
|
|
|
125
126
|
v as fingerprintColumnTreeVisibility,
|
|
126
127
|
P as fingerprintGridColumnIndicators,
|
|
127
128
|
a as normalizeColumnPinned,
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
I as readGridColumnPinned,
|
|
130
|
+
p as resolveColumnPinnedFromGridState
|
|
130
131
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { buildColumnTreeFromGrid as
|
|
1
|
+
import { buildColumnTreeFromGrid as A } from "./build-column-tree-from-grid.js";
|
|
2
2
|
import { computeColumnListSyncFingerprints as U } from "./data-table-column-list-sync.js";
|
|
3
|
-
import { fingerprintGridColumnIndicators as
|
|
4
|
-
import {
|
|
3
|
+
import { fingerprintGridColumnIndicators as C, normalizeColumnPinned as x } from "./data-table-column-apply.js";
|
|
4
|
+
import { isPickerEligibleGridColumn as Z } from "./data-table-picker-column-eligibility.js";
|
|
5
5
|
import { patchColumnTreeIndicatorsFromGrid as w } from "./patch-column-tree-indicators-from-grid.js";
|
|
6
6
|
import { patchColumnTreeVisibilityFromGrid as G } from "./patch-column-tree-visibility-from-grid.js";
|
|
7
7
|
import { Fnv1a128Hasher as V } from "../../../lib/hash/fnv1a128.js";
|
|
8
8
|
import { buildAuthorityFromGrid as k, fingerprintAuthority as j } from "./column-picker-authority.js";
|
|
9
|
-
import { buildAuthorityFlatShellItems as
|
|
9
|
+
import { buildAuthorityFlatShellItems as m, isFlatLargeColumnPicker as D } from "./data-table-flat-column-virtual-rows.js";
|
|
10
10
|
import { NESTED_LIST_ROOT_FROZEN_ID as O, NESTED_LIST_ROOT_SCROLLABLE_ID as R } from "../nested-list/nested-list-constants.js";
|
|
11
|
-
function
|
|
11
|
+
function p(e) {
|
|
12
12
|
const i = new V();
|
|
13
13
|
for (const r of e) {
|
|
14
14
|
const n = x(r.pinned) ?? "0";
|
|
@@ -16,19 +16,19 @@ function m(e) {
|
|
|
16
16
|
}
|
|
17
17
|
return i.digest();
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function h(e) {
|
|
20
20
|
const i = new V();
|
|
21
21
|
for (const r of e)
|
|
22
22
|
i.update(r.colId).update(":").update(r.hide ? "0" : "1").update("|");
|
|
23
23
|
return i.digest();
|
|
24
24
|
}
|
|
25
25
|
function ut(e) {
|
|
26
|
-
return
|
|
26
|
+
return p(e.getColumnState());
|
|
27
27
|
}
|
|
28
28
|
function lt(e) {
|
|
29
|
-
return
|
|
29
|
+
return h(e.getColumnState());
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const b = /* @__PURE__ */ new WeakMap(), S = {
|
|
32
32
|
frozenColumns: "__prewarm_frozen__",
|
|
33
33
|
scrollableColumns: "__prewarm_scrollable__"
|
|
34
34
|
}, L = 5e3;
|
|
@@ -55,10 +55,10 @@ function J(e) {
|
|
|
55
55
|
return r(e), i;
|
|
56
56
|
}
|
|
57
57
|
function v(e, i) {
|
|
58
|
-
const r =
|
|
58
|
+
const r = b.get(e);
|
|
59
59
|
if (!r)
|
|
60
60
|
return null;
|
|
61
|
-
const n = r.pickerMode === "authority-flat" && r.authority ?
|
|
61
|
+
const n = r.pickerMode === "authority-flat" && r.authority ? m(r.authority, i) : T(r.items, i);
|
|
62
62
|
return {
|
|
63
63
|
fingerprints: r.fingerprints,
|
|
64
64
|
items: n,
|
|
@@ -69,19 +69,19 @@ function v(e, i) {
|
|
|
69
69
|
leafColumnIds: r.leafColumnIds
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function y(e, i) {
|
|
73
73
|
const r = U(i), n = {
|
|
74
74
|
layout: r.layout,
|
|
75
75
|
visibility: r.visibility,
|
|
76
|
-
indicators:
|
|
76
|
+
indicators: C(e)
|
|
77
77
|
}, t = e.getColumnState(), o = J(i);
|
|
78
|
-
return
|
|
78
|
+
return b.set(e, {
|
|
79
79
|
fingerprints: n,
|
|
80
80
|
items: T(i, S),
|
|
81
81
|
pickerMode: "tree",
|
|
82
82
|
authority: null,
|
|
83
|
-
gridLayoutFingerprint:
|
|
84
|
-
gridVisibilityFingerprint:
|
|
83
|
+
gridLayoutFingerprint: p(t),
|
|
84
|
+
gridVisibilityFingerprint: h(t),
|
|
85
85
|
leafColumnIds: o
|
|
86
86
|
}), n;
|
|
87
87
|
}
|
|
@@ -89,15 +89,15 @@ function M(e, i) {
|
|
|
89
89
|
const r = j(i), n = {
|
|
90
90
|
layout: r.layout,
|
|
91
91
|
visibility: r.visibility,
|
|
92
|
-
indicators:
|
|
92
|
+
indicators: C(e)
|
|
93
93
|
}, t = e.getColumnState(), o = new Set(i.orderedColumnIds);
|
|
94
|
-
return
|
|
94
|
+
return b.set(e, {
|
|
95
95
|
fingerprints: n,
|
|
96
|
-
items:
|
|
96
|
+
items: m(i, S),
|
|
97
97
|
pickerMode: "authority-flat",
|
|
98
98
|
authority: i,
|
|
99
|
-
gridLayoutFingerprint:
|
|
100
|
-
gridVisibilityFingerprint:
|
|
99
|
+
gridLayoutFingerprint: p(t),
|
|
100
|
+
gridVisibilityFingerprint: h(t),
|
|
101
101
|
leafColumnIds: o
|
|
102
102
|
}), n;
|
|
103
103
|
}
|
|
@@ -112,27 +112,29 @@ function K(e) {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
function z(e, i) {
|
|
115
|
-
const r =
|
|
116
|
-
return r ? (
|
|
115
|
+
const r = A(e, i);
|
|
116
|
+
return r ? (y(e, r), r) : null;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function q(e, i, r) {
|
|
119
119
|
if (B(e))
|
|
120
120
|
return !1;
|
|
121
121
|
const n = r ?? e.getColumnState();
|
|
122
122
|
let t = 0;
|
|
123
|
-
for (const o of n)
|
|
124
|
-
|
|
123
|
+
for (const o of n) {
|
|
124
|
+
const a = e.getColumn(o.colId);
|
|
125
|
+
if (Z(a, e) && (t += 1, !i.has(o.colId)))
|
|
125
126
|
return !0;
|
|
127
|
+
}
|
|
126
128
|
return t !== i.size;
|
|
127
129
|
}
|
|
128
130
|
function at(e) {
|
|
129
|
-
const { gridApi: i, labels: r, previousFingerprints: n } = e, t = v(i, r), o = i.getColumnState(),
|
|
130
|
-
if (t != null && !
|
|
131
|
-
const l =
|
|
132
|
-
if (!l && !
|
|
131
|
+
const { gridApi: i, labels: r, previousFingerprints: n } = e, t = v(i, r), o = i.getColumnState(), a = p(o), I = h(o), F = n.layout === "" && n.visibility === "" && n.indicators === "";
|
|
132
|
+
if (t != null && !q(i, t.leafColumnIds, o) && t) {
|
|
133
|
+
const l = a !== t.gridLayoutFingerprint, f = I !== t.gridVisibilityFingerprint, d = C(i) !== t.fingerprints.indicators;
|
|
134
|
+
if (!l && !f && !d) {
|
|
133
135
|
if (t.pickerMode === "authority-flat" && t.authority)
|
|
134
136
|
return F ? {
|
|
135
|
-
rootItems:
|
|
137
|
+
rootItems: m(t.authority, r),
|
|
136
138
|
authority: t.authority,
|
|
137
139
|
pickerMode: "authority-flat",
|
|
138
140
|
syncMode: "structural",
|
|
@@ -154,13 +156,13 @@ function at(e) {
|
|
|
154
156
|
const u = T(t.items, r), E = w(
|
|
155
157
|
u,
|
|
156
158
|
i
|
|
157
|
-
),
|
|
159
|
+
), W = y(i, E);
|
|
158
160
|
return {
|
|
159
161
|
rootItems: E,
|
|
160
162
|
authority: null,
|
|
161
163
|
pickerMode: "tree",
|
|
162
164
|
syncMode: "indicators-only",
|
|
163
|
-
fingerprints:
|
|
165
|
+
fingerprints: W
|
|
164
166
|
};
|
|
165
167
|
}
|
|
166
168
|
return n.layout !== t.fingerprints.layout || n.visibility !== t.fingerprints.visibility || n.indicators !== t.fingerprints.indicators ? {
|
|
@@ -182,20 +184,20 @@ function at(e) {
|
|
|
182
184
|
if (s) {
|
|
183
185
|
const u = M(i, s);
|
|
184
186
|
return {
|
|
185
|
-
rootItems:
|
|
187
|
+
rootItems: m(s, r),
|
|
186
188
|
authority: s,
|
|
187
189
|
pickerMode: "authority-flat",
|
|
188
|
-
syncMode: l ? "structural" :
|
|
190
|
+
syncMode: l ? "structural" : f ? "visibility-only" : "indicators-only",
|
|
189
191
|
fingerprints: u
|
|
190
192
|
};
|
|
191
193
|
}
|
|
192
194
|
}
|
|
193
|
-
const
|
|
194
|
-
if (!l &&
|
|
195
|
+
const g = d ? w(t.items, i) : t.items;
|
|
196
|
+
if (!l && f && !d) {
|
|
195
197
|
const s = G(
|
|
196
|
-
|
|
198
|
+
g,
|
|
197
199
|
i
|
|
198
|
-
), u =
|
|
200
|
+
), u = y(i, s);
|
|
199
201
|
return {
|
|
200
202
|
rootItems: s,
|
|
201
203
|
authority: null,
|
|
@@ -204,21 +206,21 @@ function at(e) {
|
|
|
204
206
|
fingerprints: u
|
|
205
207
|
};
|
|
206
208
|
}
|
|
207
|
-
if (!l && !
|
|
208
|
-
const s =
|
|
209
|
+
if (!l && !f && d) {
|
|
210
|
+
const s = y(i, g);
|
|
209
211
|
return {
|
|
210
|
-
rootItems:
|
|
212
|
+
rootItems: g,
|
|
211
213
|
authority: null,
|
|
212
214
|
pickerMode: "tree",
|
|
213
215
|
syncMode: "indicators-only",
|
|
214
216
|
fingerprints: s
|
|
215
217
|
};
|
|
216
218
|
}
|
|
217
|
-
if (!l &&
|
|
219
|
+
if (!l && f && d) {
|
|
218
220
|
const s = G(
|
|
219
|
-
|
|
221
|
+
g,
|
|
220
222
|
i
|
|
221
|
-
), u =
|
|
223
|
+
), u = y(i, s);
|
|
222
224
|
return {
|
|
223
225
|
rootItems: s,
|
|
224
226
|
authority: null,
|
|
@@ -228,12 +230,12 @@ function at(e) {
|
|
|
228
230
|
};
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
|
-
const
|
|
232
|
-
if (
|
|
233
|
-
const l = M(i,
|
|
233
|
+
const c = k(i);
|
|
234
|
+
if (c && D(c, L)) {
|
|
235
|
+
const l = M(i, c);
|
|
234
236
|
return {
|
|
235
|
-
rootItems:
|
|
236
|
-
authority:
|
|
237
|
+
rootItems: m(c, r),
|
|
238
|
+
authority: c,
|
|
237
239
|
pickerMode: "authority-flat",
|
|
238
240
|
syncMode: "structural",
|
|
239
241
|
fingerprints: l
|
|
@@ -248,7 +250,7 @@ function at(e) {
|
|
|
248
250
|
syncMode: "skip",
|
|
249
251
|
fingerprints: n
|
|
250
252
|
};
|
|
251
|
-
const
|
|
253
|
+
const N = v(i, r)?.fingerprints ?? {
|
|
252
254
|
layout: "",
|
|
253
255
|
visibility: "",
|
|
254
256
|
indicators: ""
|
|
@@ -258,7 +260,7 @@ function at(e) {
|
|
|
258
260
|
authority: null,
|
|
259
261
|
pickerMode: "tree",
|
|
260
262
|
syncMode: "structural",
|
|
261
|
-
fingerprints:
|
|
263
|
+
fingerprints: N
|
|
262
264
|
};
|
|
263
265
|
}
|
|
264
266
|
function P(e) {
|
|
@@ -269,19 +271,19 @@ function ct(e) {
|
|
|
269
271
|
if (!t)
|
|
270
272
|
return !1;
|
|
271
273
|
const o = i.getColumnState();
|
|
272
|
-
if (
|
|
274
|
+
if (q(
|
|
273
275
|
i,
|
|
274
276
|
t.leafColumnIds,
|
|
275
277
|
o
|
|
276
278
|
))
|
|
277
279
|
return !1;
|
|
278
|
-
const
|
|
279
|
-
return
|
|
280
|
+
const a = p(o), I = h(o);
|
|
281
|
+
return a !== t.gridLayoutFingerprint || I !== t.gridVisibilityFingerprint || C(i) !== t.fingerprints.indicators ? !1 : !(n.layout !== t.fingerprints.layout || n.visibility !== t.fingerprints.visibility || n.indicators !== t.fingerprints.indicators);
|
|
280
282
|
}
|
|
281
|
-
function
|
|
283
|
+
function ft(e) {
|
|
282
284
|
let i = !1, r = 0, n;
|
|
283
285
|
const t = () => {
|
|
284
|
-
i || B(e) || !P(e) ||
|
|
286
|
+
i || B(e) || !P(e) || b.has(e) || K(e);
|
|
285
287
|
};
|
|
286
288
|
return P(e) && e.getColumnState().length >= L ? (queueMicrotask(t), () => {
|
|
287
289
|
i = !0;
|
|
@@ -294,13 +296,13 @@ function dt(e) {
|
|
|
294
296
|
export {
|
|
295
297
|
L as LARGE_COLUMN_PREWARM_THRESHOLD,
|
|
296
298
|
z as buildColumnTreeWithCache,
|
|
297
|
-
|
|
299
|
+
q as isGridColumnSetDifferentFromCachedLeaves,
|
|
298
300
|
ct as peekColumnListSyncWouldSkip,
|
|
299
301
|
v as readColumnTreeCache,
|
|
300
302
|
ut as readGridLayoutFingerprint,
|
|
301
303
|
lt as readGridVisibilityFingerprint,
|
|
302
304
|
at as resolveColumnTreeFromCacheOrGrid,
|
|
303
|
-
|
|
305
|
+
ft as scheduleColumnTreePrewarm,
|
|
304
306
|
M as writeColumnTreeAuthorityCache,
|
|
305
|
-
|
|
307
|
+
y as writeColumnTreeCache
|
|
306
308
|
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import { Column, GridApi } from 'ag-grid-community';
|
|
1
2
|
export declare function isPickerEligibleColumnId(columnId: string | null | undefined): boolean;
|
|
3
|
+
/** Whether a live grid column may appear in {@link DataTableColumnList}. */
|
|
4
|
+
export declare function isPickerEligibleGridColumn(column: Column | null | undefined, gridApi: GridApi | null | undefined): boolean;
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
return e ? !
|
|
1
|
+
const o = /* @__PURE__ */ new Set(["ag-Grid-SelectionColumn"]);
|
|
2
|
+
function r(e) {
|
|
3
|
+
return e ? !o.has(e) : !1;
|
|
4
|
+
}
|
|
5
|
+
function u(e, n) {
|
|
6
|
+
if (typeof n.isPivotMode != "function" || !n.isPivotMode())
|
|
7
|
+
return !1;
|
|
8
|
+
const t = e.getColDef();
|
|
9
|
+
if (t.enableRowGroup === !0 || t.enablePivot === !0)
|
|
10
|
+
return !0;
|
|
11
|
+
if (t.enableValue === !0) {
|
|
12
|
+
const i = t.pivotKeys;
|
|
13
|
+
if (!(Array.isArray(i) && i.length > 0) && t.pivotValueColumn == null)
|
|
14
|
+
return !0;
|
|
15
|
+
}
|
|
16
|
+
return !1;
|
|
17
|
+
}
|
|
18
|
+
function s(e, n) {
|
|
19
|
+
if (!e || !n)
|
|
20
|
+
return !1;
|
|
21
|
+
const t = e.getColId();
|
|
22
|
+
return !(!r(t) || e.getColDef().suppressColumnsToolPanel === !0 || u(e, n));
|
|
4
23
|
}
|
|
5
24
|
export {
|
|
6
|
-
|
|
25
|
+
r as isPickerEligibleColumnId,
|
|
26
|
+
s as isPickerEligibleGridColumn
|
|
7
27
|
};
|
|
@@ -3,8 +3,7 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
7
|
-
function I({
|
|
6
|
+
function w({
|
|
8
7
|
tags: o,
|
|
9
8
|
title: l = "Attributes",
|
|
10
9
|
maxVisibleTags: n = 4,
|
|
@@ -71,5 +70,5 @@ function I({
|
|
|
71
70
|
);
|
|
72
71
|
}
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
w as ExpandableListItemAttributes
|
|
75
74
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
5
4
|
const m = 128;
|
|
6
|
-
function
|
|
5
|
+
function x({
|
|
7
6
|
columns: i,
|
|
8
7
|
sectionId: l = "metrics"
|
|
9
8
|
}) {
|
|
@@ -51,5 +50,5 @@ function f({
|
|
|
51
50
|
);
|
|
52
51
|
}
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
x as ExpandableListItemMetrics
|
|
55
54
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
4
|
-
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
3
|
+
const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
5
4
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
6
5
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
7
6
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -10,5 +9,5 @@ const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
10
9
|
] });
|
|
11
10
|
export {
|
|
12
11
|
h as defaultAccordionTooltipRender,
|
|
13
|
-
|
|
12
|
+
d as defaultTabTooltipRender
|
|
14
13
|
};
|