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.
@@ -1,16 +1,16 @@
1
1
  import { resolveColumnPinnedFromGridState as E } from "./data-table-column-apply.js";
2
- import { isPickerEligibleColumnId as H } from "./data-table-picker-column-eligibility.js";
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 a = [];
5
+ const d = [];
6
6
  let c = l.getOriginalParent();
7
7
  for (; c; ) {
8
8
  const u = c.getColGroupDef();
9
- u?.headerName && u?.children && a.push(c), c = c.getOriginalParent();
9
+ u?.headerName && u?.children && d.push(c), c = c.getOriginalParent();
10
10
  }
11
- return a.reverse(), a;
11
+ return d.reverse(), d;
12
12
  }
13
- function A(l, a) {
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(), d = {
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(d), v.set(r, { list: e, node: d }), d;
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(o.colId))
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, d = E(o, e), w = !q(e), p = {
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: d
56
+ pinned: a
57
57
  }
58
58
  };
59
- d ? (g++, s && y++) : (I++, s && N++);
60
- const z = d ? f : h, G = K(e), T = G.map((C) => C.getGroupId());
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: a.frozenColumns,
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: a.scrollableColumns,
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
- A as buildColumnTreeFromGrid
99
+ J as buildColumnTreeFromGrid
100
100
  };
@@ -1,5 +1,5 @@
1
1
  import { resolveColumnPinnedFromGridState as P } from "./data-table-column-apply.js";
2
- import { isPickerEligibleColumnId as F } from "./data-table-picker-column-eligibility.js";
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(t.colId))
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 I = u.getColGroupDef();
27
- if (I?.headerName && I?.children) {
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 f = u.getOriginalParent();
30
+ const I = u.getOriginalParent();
31
31
  let M = null;
32
- for (; f; ) {
33
- const G = f.getColGroupDef();
32
+ for (; I; ) {
33
+ const G = I.getColGroupDef();
34
34
  if (G?.headerName && G?.children) {
35
- M = f.getGroupId();
35
+ M = I.getGroupId();
36
36
  break;
37
37
  }
38
38
  }
39
39
  c.set(m, {
40
40
  groupId: m,
41
- label: I.headerName,
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 { isPickerEligibleColumnId as h } from "./data-table-picker-column-eligibility.js";
3
- const C = 150, I = 300;
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 s(t, e) {
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 G(t, e) {
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 ? s(l, r) : a(r.getPinned());
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 i = null;
24
+ let o = null;
25
25
  if (e !== null) {
26
- const o = n.pinned;
27
- i = o === "left" || o === "right" ? o : e;
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: i
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 i of l) {
50
- if (i.id === "root-frozen") {
51
- i.children && r(i.children, "left");
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 (i.id === "root-scrollable") {
55
- i.children && r(i.children, null);
54
+ if (o.id === "root-scrollable") {
55
+ o.children && r(o.children, null);
56
56
  continue;
57
57
  }
58
- if ((i.category === "group" || i.children && i.children.length > 0) && i.children) {
59
- r(i.children, n);
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 = i.data?.pinned;
64
+ const c = o.data?.pinned;
65
65
  d = c === "left" || c === "right" ? c : "left";
66
66
  }
67
- e.update(i.id).update(":").update(d).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 o = n.data;
100
- e.update(n.id).update(":").update(o?.hasSortApplied ? "1" : "0").update(":").update(o?.hasFilterApplied ? "1" : "0").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 ?? {})), i = new u();
107
- for (const o of t.getColumnState()) {
108
- if (!h(o.colId))
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 d = n.has(o.colId) || r === o.colId;
111
- i.update(o.colId).update(":").update(o.sort ? "1" : "0").update(":").update(d ? "1" : "0").update("|");
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 i.digest();
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
- I as GRID_AUTO_UNPIN_WAIT_MS,
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
- G as readGridColumnPinned,
129
- s as resolveColumnPinnedFromGridState
129
+ I as readGridColumnPinned,
130
+ p as resolveColumnPinnedFromGridState
130
131
  };
@@ -1,14 +1,14 @@
1
- import { buildColumnTreeFromGrid as W } from "./build-column-tree-from-grid.js";
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 g, normalizeColumnPinned as x } from "./data-table-column-apply.js";
4
- import { isPickerEligibleColumnId as Z } from "./data-table-picker-column-eligibility.js";
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 y, isFlatLargeColumnPicker as D } from "./data-table-flat-column-virtual-rows.js";
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 m(e) {
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 p(e) {
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 m(e.getColumnState());
26
+ return p(e.getColumnState());
27
27
  }
28
28
  function lt(e) {
29
- return p(e.getColumnState());
29
+ return h(e.getColumnState());
30
30
  }
31
- const C = /* @__PURE__ */ new WeakMap(), S = {
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 = C.get(e);
58
+ const r = b.get(e);
59
59
  if (!r)
60
60
  return null;
61
- const n = r.pickerMode === "authority-flat" && r.authority ? y(r.authority, i) : T(r.items, i);
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 f(e, i) {
72
+ function y(e, i) {
73
73
  const r = U(i), n = {
74
74
  layout: r.layout,
75
75
  visibility: r.visibility,
76
- indicators: g(e)
76
+ indicators: C(e)
77
77
  }, t = e.getColumnState(), o = J(i);
78
- return C.set(e, {
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: m(t),
84
- gridVisibilityFingerprint: p(t),
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: g(e)
92
+ indicators: C(e)
93
93
  }, t = e.getColumnState(), o = new Set(i.orderedColumnIds);
94
- return C.set(e, {
94
+ return b.set(e, {
95
95
  fingerprints: n,
96
- items: y(i, S),
96
+ items: m(i, S),
97
97
  pickerMode: "authority-flat",
98
98
  authority: i,
99
- gridLayoutFingerprint: m(t),
100
- gridVisibilityFingerprint: p(t),
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 = W(e, i);
116
- return r ? (f(e, r), r) : null;
115
+ const r = A(e, i);
116
+ return r ? (y(e, r), r) : null;
117
117
  }
118
- function A(e, i, r) {
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
- if (Z(o.colId) && (t += 1, !i.has(o.colId)))
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(), b = m(o), I = p(o), F = n.layout === "" && n.visibility === "" && n.indicators === "";
130
- if (t != null && !A(i, t.leafColumnIds, o) && t) {
131
- const l = b !== t.gridLayoutFingerprint, c = I !== t.gridVisibilityFingerprint, d = g(i) !== t.fingerprints.indicators;
132
- if (!l && !c && !d) {
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: y(t.authority, r),
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
- ), N = f(i, E);
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: N
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: y(s, r),
187
+ rootItems: m(s, r),
186
188
  authority: s,
187
189
  pickerMode: "authority-flat",
188
- syncMode: l ? "structural" : c ? "visibility-only" : "indicators-only",
190
+ syncMode: l ? "structural" : f ? "visibility-only" : "indicators-only",
189
191
  fingerprints: u
190
192
  };
191
193
  }
192
194
  }
193
- const h = d ? w(t.items, i) : t.items;
194
- if (!l && c && !d) {
195
+ const g = d ? w(t.items, i) : t.items;
196
+ if (!l && f && !d) {
195
197
  const s = G(
196
- h,
198
+ g,
197
199
  i
198
- ), u = f(i, s);
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 && !c && d) {
208
- const s = f(i, h);
209
+ if (!l && !f && d) {
210
+ const s = y(i, g);
209
211
  return {
210
- rootItems: h,
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 && c && d) {
219
+ if (!l && f && d) {
218
220
  const s = G(
219
- h,
221
+ g,
220
222
  i
221
- ), u = f(i, s);
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 a = k(i);
232
- if (a && D(a, L)) {
233
- const l = M(i, a);
233
+ const c = k(i);
234
+ if (c && D(c, L)) {
235
+ const l = M(i, c);
234
236
  return {
235
- rootItems: y(a, r),
236
- authority: a,
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 H = v(i, r)?.fingerprints ?? {
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: H
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 (A(
274
+ if (q(
273
275
  i,
274
276
  t.leafColumnIds,
275
277
  o
276
278
  ))
277
279
  return !1;
278
- const b = m(o), I = p(o);
279
- return b !== t.gridLayoutFingerprint || I !== t.gridVisibilityFingerprint || g(i) !== t.fingerprints.indicators ? !1 : !(n.layout !== t.fingerprints.layout || n.visibility !== t.fingerprints.visibility || n.indicators !== t.fingerprints.indicators);
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 dt(e) {
283
+ function ft(e) {
282
284
  let i = !1, r = 0, n;
283
285
  const t = () => {
284
- i || B(e) || !P(e) || C.has(e) || K(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
- A as isGridColumnSetDifferentFromCachedLeaves,
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
- dt as scheduleColumnTreePrewarm,
305
+ ft as scheduleColumnTreePrewarm,
304
306
  M as writeColumnTreeAuthorityCache,
305
- f as writeColumnTreeCache
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 i = /* @__PURE__ */ new Set(["ag-Grid-SelectionColumn"]);
2
- function n(e) {
3
- return e ? !i.has(e) : !1;
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
- n as isPickerEligibleColumnId
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
- import "react";
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
- I as ExpandableListItemAttributes
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 f({
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
- f as ExpandableListItemMetrics
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
- import "react";
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
- p as defaultTabTooltipRender
12
+ d as defaultTabTooltipRender
14
13
  };