impact-nova 3.0.0-alpha.11 → 3.0.0-alpha.13

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,32 +1,33 @@
1
- import { jsx as c, jsxs as j } from "react/jsx-runtime";
2
- import { useMemo as b, useCallback as T } from "react";
3
- import { Badge as V } from "../../../data-display/badge/badge.js";
4
- import { evaluateValidationRules as I, getFieldValue as m, mapBadgeVariant as L, mapBadgeColor as U } from "./cell-renderer-utils.js";
5
- import { resolveGridIcon as H } from "./gridIconResolver.js";
6
- import { Tooltip as _, TooltipTrigger as z, TooltipContent as G } from "../../../feedback/tooltip/tooltip.js";
7
- const M = (e, n, r, a) => {
1
+ import { jsx as s, jsxs as j } from "react/jsx-runtime";
2
+ import { useRef as L, useMemo as x, useCallback as U } from "react";
3
+ import { useAgGridTruncationTooltip as G } from "../use-ag-grid-truncation-tooltip.js";
4
+ import { Badge as H } from "../../../data-display/badge/badge.js";
5
+ import { evaluateValidationRules as _, getFieldValue as m, mapBadgeVariant as z, mapBadgeColor as A } from "./cell-renderer-utils.js";
6
+ import { resolveGridIcon as M } from "./gridIconResolver.js";
7
+ import { Tooltip as Q, TooltipTrigger as q, TooltipContent as J } from "../../../feedback/tooltip/tooltip.js";
8
+ const W = (e, n, r, a) => {
8
9
  if (!n) return e;
9
10
  let t = e;
10
- return t = t.replace(/\$\{value\}/g, String(a ?? "")), t = t.replace(/\$\{field\}/g, String(r ?? "")), Object.keys(n).forEach((i) => {
11
- const o = new RegExp(`\\$\\{${i}\\}`, "g");
12
- t = t.replace(o, String(n[i] ?? ""));
11
+ return t = t.replace(/\$\{value\}/g, String(a ?? "")), t = t.replace(/\$\{field\}/g, String(r ?? "")), Object.keys(n).forEach((o) => {
12
+ const i = new RegExp(`\\$\\{${o}\\}`, "g");
13
+ t = t.replace(i, String(n[o] ?? ""));
13
14
  }), t;
14
- }, Q = ({
15
+ }, X = ({
15
16
  iconConfig: e,
16
17
  rowData: n,
17
18
  rowId: r,
18
19
  field: a
19
20
  }) => {
20
21
  let t = null;
21
- const i = m(e.iconField, e.icon, n);
22
- if (typeof i == "string" ? t = H(i, { size: 16 }) : t = i, !t) return null;
23
- const o = m(e.backgroundColorField, e.backgroundColor, n), s = m(e.colorField, e.color, n) ?? "var(--color-foreground-icon)", f = m(e.tooltipField, e.tooltip, n), h = /* @__PURE__ */ c(
22
+ const o = m(e.iconField, e.icon, n);
23
+ if (typeof o == "string" ? t = M(o, { size: 16 }) : t = o, !t) return null;
24
+ const i = m(e.backgroundColorField, e.backgroundColor, n), d = m(e.colorField, e.color, n) ?? "var(--color-foreground-icon)", f = m(e.tooltipField, e.tooltip, n), g = /* @__PURE__ */ s(
24
25
  "div",
25
26
  {
26
27
  className: `flex shrink-0 items-center justify-center bg-[var(--icon-bg)] text-[var(--icon-fg)] ${e.onClick ? "cursor-pointer" : ""} ${e.showOnHover ? "max-w-0 min-w-0 overflow-hidden p-0 opacity-0 pointer-events-none group-hover:max-w-none group-hover:min-w-[18px] group-hover:p-0.5 group-hover:opacity-100 group-hover:pointer-events-auto" : "p-0.5 min-w-[18px]"}`,
27
28
  style: {
28
- "--icon-bg": o,
29
- "--icon-fg": s,
29
+ "--icon-bg": i,
30
+ "--icon-fg": d,
30
31
  borderRadius: "4px",
31
32
  minHeight: "18px"
32
33
  },
@@ -34,11 +35,11 @@ const M = (e, n, r, a) => {
34
35
  children: t
35
36
  }
36
37
  );
37
- return f ? /* @__PURE__ */ j(_, { children: [
38
- /* @__PURE__ */ c(z, { asChild: !0, children: h }),
39
- /* @__PURE__ */ c(G, { variant: "tertiary", side: e.tooltipSide || "top", children: f })
40
- ] }) : h;
41
- }, q = ({
38
+ return f ? /* @__PURE__ */ j(Q, { children: [
39
+ /* @__PURE__ */ s(q, { asChild: !0, children: g }),
40
+ /* @__PURE__ */ s(J, { variant: "tertiary", side: e.tooltipSide || "top", children: f })
41
+ ] }) : g;
42
+ }, Y = ({
42
43
  badgeConfig: e,
43
44
  rowData: n,
44
45
  rowId: r,
@@ -46,101 +47,112 @@ const M = (e, n, r, a) => {
46
47
  }) => {
47
48
  const t = m(e.labelField, e.label, n);
48
49
  if (!t) return null;
49
- const i = m(e.colorField, e.color, n), o = m(e.variantField, e.variant, n);
50
- return /* @__PURE__ */ c(
51
- V,
50
+ const o = m(e.colorField, e.color, n), i = m(e.variantField, e.variant, n);
51
+ return /* @__PURE__ */ s(
52
+ H,
52
53
  {
53
54
  className: "font-medium",
54
- color: U(i),
55
- variant: L(o),
55
+ color: A(o),
56
+ variant: z(i),
56
57
  onClick: e.onClick ? () => e.onClick?.({ rowId: r, field: a, rowData: n ?? {} }) : void 0,
57
58
  children: t
58
59
  }
59
60
  );
60
- }, A = (e) => {
61
+ }, Z = (e) => {
61
62
  const {
62
63
  value: n,
63
64
  data: r,
64
65
  node: a,
65
66
  colDef: t,
66
- onClick: i,
67
- redirectUrl: o,
68
- updateQueryParams: s,
67
+ onClick: o,
68
+ redirectUrl: i,
69
+ updateQueryParams: d,
69
70
  navigate: f,
70
- setSearchParams: h,
71
- rightSideContent: y,
72
- valueFormatter: k,
71
+ setSearchParams: g,
72
+ rightSideContent: k,
73
+ valueFormatter: h,
73
74
  disableOnPinnedRows: S = !0,
74
75
  disableLinkStyle: w,
75
- validationRules: $
76
- } = e, v = a.id ?? String(r?.id ?? ""), d = t?.field ?? "", R = r && typeof r == "object" && "_isPinned" in r && r._isPinned === !0, E = b(() => w || S && R || I($, r) ? !1 : !!(s || o || i), [w, S, R, s, o, i, $, r]), N = T(
77
- (u) => {
78
- if (u.stopPropagation(), s && h)
79
- h((l) => {
80
- const g = new URLSearchParams(l);
81
- return Object.entries(s).forEach(([x, C]) => {
82
- let p = String(C);
83
- p = p.replace(/\$\{value\}/g, String(n ?? "")), p = p.replace(/\$\{field\}/g, d), r && Object.keys(r).forEach((P) => {
84
- const O = new RegExp(`\\$\\{${P}\\}`, "g");
85
- p = p.replace(O, String(r[P] ?? ""));
86
- }), g.set(x, p);
87
- }), g;
76
+ validationRules: R,
77
+ setTooltip: N
78
+ } = e, $ = L(null), y = a.id ?? String(r?.id ?? ""), u = t?.field ?? "", T = r && typeof r == "object" && "_isPinned" in r && r._isPinned === !0, E = x(() => w || S && T || _(R, r) ? !1 : !!(d || i || o), [w, S, T, d, i, o, R, r]), B = U(
79
+ (c) => {
80
+ if (c.stopPropagation(), d && g)
81
+ g((l) => {
82
+ const v = new URLSearchParams(l);
83
+ return Object.entries(d).forEach(([b, V]) => {
84
+ let p = String(V);
85
+ p = p.replace(/\$\{value\}/g, String(n ?? "")), p = p.replace(/\$\{field\}/g, u), r && Object.keys(r).forEach((P) => {
86
+ const I = new RegExp(`\\$\\{${P}\\}`, "g");
87
+ p = p.replace(I, String(r[P] ?? ""));
88
+ }), v.set(b, p);
89
+ }), v;
88
90
  });
89
- else if (o && f) {
90
- const l = M(o, r, d, n);
91
+ else if (i && f) {
92
+ const l = W(i, r, u, n);
91
93
  f(l);
92
- } else i && i({ rowId: v, field: d, rowData: r ?? {}, value: n });
94
+ } else o && o({ rowId: y, field: u, rowData: r ?? {}, value: n });
93
95
  },
94
- [s, h, o, f, i, r, d, n, v]
95
- ), B = b(() => k ? k(n, r ?? {}) : String(n ?? ""), [n, k, r]), F = b(() => {
96
- if (!y?.items || y.items.length === 0) return null;
97
- const u = [];
98
- return y.items.forEach((l, g) => {
96
+ [d, g, i, f, o, r, u, n, y]
97
+ ), C = x(() => h ? h(n, r ?? {}) : String(n ?? ""), [n, h, r]), O = x(() => {
98
+ if (h) {
99
+ const c = h(n, r ?? {});
100
+ if (typeof c == "string" || typeof c == "number")
101
+ return String(c);
102
+ }
103
+ return String(n ?? "");
104
+ }, [n, h, r]);
105
+ G(N, O, $, "ellipsis");
106
+ const F = x(() => {
107
+ if (!k?.items || k.items.length === 0) return null;
108
+ const c = [];
109
+ return k.items.forEach((l, v) => {
99
110
  if (l.type === "icon" && l.icon)
100
- u.push(
101
- /* @__PURE__ */ c(
102
- Q,
111
+ c.push(
112
+ /* @__PURE__ */ s(
113
+ X,
103
114
  {
104
115
  iconConfig: l.icon,
105
116
  rowData: r,
106
- rowId: v,
107
- field: d
117
+ rowId: y,
118
+ field: u
108
119
  },
109
- `icon-${g}`
120
+ `icon-${v}`
110
121
  )
111
122
  );
112
123
  else if (l.type === "badge" && l.badge)
113
- u.push(
114
- /* @__PURE__ */ c(
115
- q,
124
+ c.push(
125
+ /* @__PURE__ */ s(
126
+ Y,
116
127
  {
117
128
  badgeConfig: l.badge,
118
129
  rowData: r,
119
- rowId: v,
120
- field: d
130
+ rowId: y,
131
+ field: u
121
132
  },
122
- `badge-${g}`
133
+ `badge-${v}`
123
134
  )
124
135
  );
125
136
  else if (l.type === "dynamic" && l.dynamic) {
126
- const x = typeof l.dynamic == "function" ? l.dynamic(r ?? {}) : l.dynamic;
127
- u.push(/* @__PURE__ */ c("span", { children: x }, `dyn-${g}`));
137
+ const b = typeof l.dynamic == "function" ? l.dynamic(r ?? {}) : l.dynamic;
138
+ c.push(/* @__PURE__ */ s("span", { children: b }, `dyn-${v}`));
128
139
  }
129
- }), u.length > 0 ? u : null;
130
- }, [y, r, v, d]);
140
+ }), c.length > 0 ? c : null;
141
+ }, [k, r, y, u]);
131
142
  return /* @__PURE__ */ j("div", { className: "w-full h-full flex items-center justify-between gap-2 group ag-cell-inner-padding", children: [
132
- /* @__PURE__ */ c(
143
+ /* @__PURE__ */ s(
133
144
  "div",
134
145
  {
146
+ ref: $,
135
147
  className: `flex-1 truncate min-w-0 ${E ? "text-brand cursor-pointer hover:underline font-medium" : ""}`,
136
- onClick: E ? N : void 0,
137
- children: B
148
+ onClick: E ? B : void 0,
149
+ children: C
138
150
  }
139
151
  ),
140
- F && /* @__PURE__ */ c("div", { className: "flex items-center gap-1 flex-shrink-0", children: F })
152
+ F && /* @__PURE__ */ s("div", { className: "flex items-center gap-1 flex-shrink-0", children: F })
141
153
  ] });
142
154
  };
143
- A.displayName = "LinkCellRenderer";
155
+ Z.displayName = "LinkCellRenderer";
144
156
  export {
145
- A as LinkCellRenderer
157
+ Z as LinkCellRenderer
146
158
  };
@@ -1,18 +1,18 @@
1
- import { jsx as e, jsxs as a, Fragment as Y } from "react/jsx-runtime";
2
- import { useRef as M, useState as F, useEffect as L } from "react";
3
- import { cn as f } from "../../../../lib/utils.js";
4
- import { useGridHeader as $ } from "./context/grid-header-context.js";
5
- import { HeaderInfo as ee } from "./components/header-info.js";
6
- import { Checkbox as te } from "../../../forms/checkbox/checkbox.js";
7
- import { useImpactNovaI18n as R } from "../../../../i18n/use-impact-nova-i18n.js";
8
- import { useAgGridTruncationTooltip as re } from "../use-ag-grid-truncation-tooltip.js";
9
- import { useIsHeaderSearchActive as ne } from "./header-search-active-state.js";
1
+ import { jsx as e, jsxs as c, Fragment as te } from "react/jsx-runtime";
2
+ import { useRef as M, useState as L, useEffect as R } from "react";
3
+ import { cn as g } from "../../../../lib/utils.js";
4
+ import { useGridHeader as re } from "./context/grid-header-context.js";
5
+ import { HeaderInfo as ne } from "./components/header-info.js";
6
+ import { Checkbox as oe } from "../../../forms/checkbox/checkbox.js";
7
+ import { useImpactNovaI18n as T } from "../../../../i18n/use-impact-nova-i18n.js";
8
+ import { useAgGridTruncationTooltip as ie } from "../use-ag-grid-truncation-tooltip.js";
9
+ import { useIsHeaderSearchActive as le } from "./header-search-active-state.js";
10
10
  import { subscribeGridApiEvent as A } from "../grid-api-event-subscription.js";
11
- import { subscribeColumnIndicatorSync as ie } from "../column-indicator-sync-bus.js";
12
- import { ColumnHeaderSettingsMenu as oe } from "./column-menu/column-header-settings-menu.js";
13
- import { HeaderSearchInput as le } from "./header-search-input.js";
14
- const se = () => /* @__PURE__ */ a(Y, { children: [
15
- /* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ a(
11
+ import { subscribeColumnIndicatorSync as se } from "../column-indicator-sync-bus.js";
12
+ import { ColumnHeaderSettingsMenu as ae } from "./column-menu/column-header-settings-menu.js";
13
+ import { HeaderSearchInput as ce } from "./header-search-input.js";
14
+ const de = () => /* @__PURE__ */ c(te, { children: [
15
+ /* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ c(
16
16
  "svg",
17
17
  {
18
18
  xmlns: "http://www.w3.org/2000/svg",
@@ -27,7 +27,7 @@ const se = () => /* @__PURE__ */ a(Y, { children: [
27
27
  ]
28
28
  }
29
29
  ) }),
30
- /* @__PURE__ */ e("span", { className: "sort-desc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ a(
30
+ /* @__PURE__ */ e("span", { className: "sort-desc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ c(
31
31
  "svg",
32
32
  {
33
33
  xmlns: "http://www.w3.org/2000/svg",
@@ -55,40 +55,40 @@ const se = () => /* @__PURE__ */ a(Y, { children: [
55
55
  }
56
56
  ) })
57
57
  ] });
58
- function ae(r) {
58
+ function he(r) {
59
59
  if (r.getGridOption("rowModelType") === "serverSide") {
60
- const d = r.getServerSideSelectionState?.();
61
- if (!d || !("selectAll" in d))
60
+ const h = r.getServerSideSelectionState?.();
61
+ if (!h || !("selectAll" in h))
62
62
  return { isChecked: !1, isIndeterminate: !1 };
63
- const { selectAll: c, toggledNodes: l } = d, n = !!(l && l.length > 0);
64
- return c && !n ? { isChecked: !0, isIndeterminate: !1 } : c && n ? { isChecked: !1, isIndeterminate: !0 } : !c && n ? { isChecked: !1, isIndeterminate: !0 } : { isChecked: !1, isIndeterminate: !1 };
63
+ const { selectAll: d, toggledNodes: l } = h, n = !!(l && l.length > 0);
64
+ return d && !n ? { isChecked: !0, isIndeterminate: !1 } : d && n ? { isChecked: !1, isIndeterminate: !0 } : !d && n ? { isChecked: !1, isIndeterminate: !0 } : { isChecked: !1, isIndeterminate: !1 };
65
65
  }
66
- const u = r.getSelectedRows().length, s = r.getDisplayedRowCount();
67
- return u === 0 ? { isChecked: !1, isIndeterminate: !1 } : u === s && s > 0 ? { isChecked: !0, isIndeterminate: !1 } : { isChecked: !1, isIndeterminate: !0 };
66
+ const m = r.getSelectedRows().length, a = r.getDisplayedRowCount();
67
+ return m === 0 ? { isChecked: !1, isIndeterminate: !1 } : m === a && a > 0 ? { isChecked: !0, isIndeterminate: !1 } : { isChecked: !1, isIndeterminate: !0 };
68
68
  }
69
- const ce = ({ api: r }) => {
70
- const { t } = R(), [u, s] = F(0);
71
- L(() => {
69
+ const ue = ({ api: r }) => {
70
+ const { t } = T(), [m, a] = L(0);
71
+ R(() => {
72
72
  const n = () => {
73
- s((p) => p + 1);
74
- }, C = A(
73
+ a((C) => C + 1);
74
+ }, x = A(
75
75
  r,
76
76
  "selectionChanged",
77
77
  n
78
- ), g = A(
78
+ ), p = A(
79
79
  r,
80
80
  "modelUpdated",
81
81
  n
82
82
  );
83
83
  return () => {
84
- C(), g();
84
+ x(), p();
85
85
  };
86
86
  }, [r]);
87
- const { isChecked: d, isIndeterminate: c } = ae(r);
87
+ const { isChecked: h, isIndeterminate: d } = he(r);
88
88
  return /* @__PURE__ */ e(
89
- te,
89
+ oe,
90
90
  {
91
- checked: c ? "indeterminate" : d,
91
+ checked: d ? "indeterminate" : h,
92
92
  onCheckedChange: (n) => {
93
93
  if (n === !0) {
94
94
  r.selectAll();
@@ -100,40 +100,40 @@ const ce = ({ api: r }) => {
100
100
  className: "m-0"
101
101
  }
102
102
  );
103
- }, ye = (r) => {
103
+ }, Ae = (r) => {
104
104
  const {
105
105
  displayName: t,
106
- setTooltip: u,
107
- enableSorting: s,
108
- enableMenu: d,
109
- progressSort: c,
106
+ setTooltip: m,
107
+ enableSorting: a,
108
+ enableMenu: h,
109
+ progressSort: d,
110
110
  column: l,
111
111
  api: n,
112
- handleInlineSearch: C,
113
- handleClearSearchInline: g,
114
- onColumnSearchClick: p,
115
- onAdvanceSearchClick: T,
116
- toggleAdvanceSearch: V,
117
- isSearchable: D = !1,
118
- advanceSearchEnabled: P = !1,
112
+ handleInlineSearch: x,
113
+ handleClearSearchInline: p,
114
+ onColumnSearchClick: C,
115
+ onAdvanceSearchClick: V,
116
+ toggleAdvanceSearch: D,
117
+ isSearchable: P = !1,
118
+ advanceSearchEnabled: B = !1,
119
119
  // Select params
120
120
  selectOptions: _,
121
- isMultiSelect: B,
121
+ isMultiSelect: G,
122
122
  onSelectScrollToBottom: Z,
123
123
  onSelectSearchChange: E,
124
- onSelectOpen: G,
124
+ onSelectOpen: O,
125
125
  isLoadingSelect: j,
126
126
  // Pattern parsing options
127
127
  enableSpaceSplitting: z,
128
- enableBooleanParsing: O,
129
- enableDateParsing: U
130
- } = r, I = M(null);
131
- re(u, t ?? "", I, "line-clamp", "leaf");
132
- const h = $(), { t: S } = R(), i = l.getColDef(), m = l.getColId(), [de, K] = F(0);
133
- L(() => ie(() => {
134
- K((b) => b + 1);
128
+ enableBooleanParsing: U,
129
+ enableDateParsing: K
130
+ } = r, k = M(null);
131
+ ie(m, t ?? "", k, "line-clamp", "leaf");
132
+ const u = re(), { t: w } = T(), o = l.getColDef(), f = l.getColId(), [me, q] = L(0);
133
+ R(() => se(() => {
134
+ q((s) => s + 1);
135
135
  }), []);
136
- const x = l.isFilterActive(), q = l.getSort(), w = l.getSortIndex(), J = !!q && w != null && w > 0, v = (i?.filter || "agTextColumnFilter") === "agNumberColumnFilter" || (Array.isArray(i?.type) ? i.type.some((o) => o === "number" || o === "numericColumn") : i?.type === "number" || i?.type === "numericColumn"), k = ne(h?.gridScopeId ?? "", m), H = M(null), N = ![
136
+ const b = l.isFilterActive(), J = l.getSort(), I = l.getSortIndex(), Q = !!J && I != null && I > 0, v = (o?.filter || "agTextColumnFilter") === "agNumberColumnFilter" || (Array.isArray(o?.type) ? o.type.some((i) => i === "number" || i === "numericColumn") : o?.type === "number" || o?.type === "numericColumn"), H = le(u?.gridScopeId ?? "", f), N = M(null), F = [
137
137
  "agTextColumnFilter",
138
138
  "agNumberColumnFilter",
139
139
  "agDateColumnFilter",
@@ -143,121 +143,123 @@ const ce = ({ api: r }) => {
143
143
  // Defaults to text/set
144
144
  void 0
145
145
  // Defaults to text
146
- ].includes(i?.filter), y = (o) => {
147
- o.stopPropagation(), s && c && c(o.shiftKey);
148
- }, Q = (o) => {
149
- if (o.stopPropagation(), p && p(r), N) {
150
- n.showColumnFilter ? n.showColumnFilter(m) : n.showColumnMenu(m);
146
+ ], S = o?.filter, W = S === !1 || S == null || S === "agGroupColumnFilter", X = !F.includes(S) && !W, y = (i) => {
147
+ i.stopPropagation(), a && d && d(i.shiftKey);
148
+ }, Y = (i) => {
149
+ i.stopPropagation(), C && C(r);
150
+ const s = l.getColDef().filter;
151
+ if (!(F.includes(s) || s === !1 || s == null || s === "agGroupColumnFilter")) {
152
+ n.showColumnFilter ? n.showColumnFilter(f) : n.showColumnMenu(f);
151
153
  return;
152
154
  }
153
- h && (k ? h.closeSearch() : h.openSearch(m));
154
- }, W = (o) => {
155
- o.preventDefault(), o.stopPropagation(), H.current?.openMenu();
156
- }, X = (o) => /* @__PURE__ */ e("span", { onClick: (b) => b.stopPropagation(), children: /* @__PURE__ */ e(
157
- ee,
155
+ (s === !1 || s == null || s === "agGroupColumnFilter") && (l.getColDef().filter = "agTextColumnFilter"), u && (H ? u.closeSearch() : u.openSearch(f));
156
+ }, $ = (i) => {
157
+ i.preventDefault(), i.stopPropagation(), N.current?.openMenu();
158
+ }, ee = (i) => /* @__PURE__ */ e("span", { onClick: (s) => s.stopPropagation(), children: /* @__PURE__ */ e(
159
+ ne,
158
160
  {
159
161
  ...r,
160
- className: o
162
+ className: i
161
163
  }
162
164
  ) });
163
- return k && h && !N ? /* @__PURE__ */ e(
164
- le,
165
+ return H && u && !X ? /* @__PURE__ */ e(
166
+ ce,
165
167
  {
166
168
  column: l,
167
169
  api: n,
168
170
  onClose: () => {
169
- h.closeSearch();
171
+ u.closeSearch();
170
172
  },
171
- handleInlineSearch: C,
172
- handleClearSearchInline: g ? () => g(r) : void 0,
173
- onAdvanceSearchClick: T,
174
- toggleAdvanceSearch: V,
175
- advanceSearchEnabled: P,
173
+ handleInlineSearch: x,
174
+ handleClearSearchInline: p ? () => p(r) : void 0,
175
+ onAdvanceSearchClick: V,
176
+ toggleAdvanceSearch: D,
177
+ advanceSearchEnabled: B,
176
178
  selectOptions: _,
177
- isMultiSelect: B,
179
+ isMultiSelect: G,
178
180
  onSelectScrollToBottom: Z,
179
181
  onSelectSearchChange: E,
180
- onSelectOpen: G,
182
+ onSelectOpen: O,
181
183
  isLoadingSelect: j,
182
184
  enableSpaceSplitting: z,
183
- enableBooleanParsing: O,
184
- enableDateParsing: U
185
+ enableBooleanParsing: U,
186
+ enableDateParsing: K
185
187
  }
186
- ) : /* @__PURE__ */ a(
188
+ ) : /* @__PURE__ */ c(
187
189
  "div",
188
190
  {
189
- className: f(
191
+ className: g(
190
192
  "ag-header-cell-label flex items-center w-full group min-w-0 h-full",
191
193
  v ? "flex-row-reverse" : "flex-row",
192
194
  // Center the content area if it's a selection column
193
- i?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
195
+ o?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
194
196
  ),
195
- "data-selection-column": i?.headerCheckboxSelection && (!t || t.trim() === "") ? "true" : void 0,
196
- onContextMenu: W,
197
+ "data-selection-column": o?.headerCheckboxSelection && (!t || t.trim() === "") ? "true" : void 0,
198
+ onContextMenu: $,
197
199
  children: [
198
- /* @__PURE__ */ a(
200
+ /* @__PURE__ */ c(
199
201
  "div",
200
202
  {
201
- className: f(
203
+ className: g(
202
204
  "ag-header-cell-text relative group flex min-w-0 items-center",
203
205
  v ? "flex-row-reverse" : "flex-row",
204
- !(i?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
205
- s ? "sortable cursor-pointer" : ""
206
+ !(o?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
207
+ a ? "sortable cursor-pointer" : ""
206
208
  ),
207
- onClick: s ? y : void 0,
209
+ onClick: a ? y : void 0,
208
210
  children: [
209
- i?.headerCheckboxSelection && /* @__PURE__ */ e(ce, { api: n }),
210
- t && t.trim() !== "" && t !== S("gridHeader.selection") && /* @__PURE__ */ a("div", { className: f(
211
+ o?.headerCheckboxSelection && /* @__PURE__ */ e(ue, { api: n }),
212
+ t && t.trim() !== "" && t !== w("gridHeader.selection") && /* @__PURE__ */ c("div", { className: g(
211
213
  "ag-grid-header-label-cluster",
212
214
  v && "flex-row-reverse"
213
215
  ), children: [
214
- /* @__PURE__ */ e("span", { ref: I, className: "ag-grid-header-label-text", children: t }),
215
- X(
216
+ /* @__PURE__ */ e("span", { ref: k, className: "ag-grid-header-label-text", children: t }),
217
+ ee(
216
218
  "shrink-0 text-content-tertiary hover:text-brand-variant-hover transition-colors"
217
219
  )
218
220
  ] })
219
221
  ]
220
222
  }
221
223
  ),
222
- !(i?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ a(
224
+ !(o?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ c(
223
225
  "div",
224
226
  {
225
- className: f(
227
+ className: g(
226
228
  "flex items-center shrink-0 group gap-1",
227
229
  v ? "flex-row-reverse" : "flex-row"
228
230
  ),
229
231
  children: [
230
- s && /* @__PURE__ */ a(
232
+ a && /* @__PURE__ */ c(
231
233
  "div",
232
234
  {
233
235
  className: "ag-sort-indicator-container cursor-pointer flex items-center",
234
236
  onClick: y,
235
237
  children: [
236
- J && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-content-tertiary mr-0.5", children: w + 1 }),
237
- /* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e(se, {}) })
238
+ Q && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-content-tertiary mr-0.5", children: I + 1 }),
239
+ /* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e(de, {}) })
238
240
  ]
239
241
  }
240
242
  ),
241
- D && /* @__PURE__ */ a(
243
+ P && /* @__PURE__ */ c(
242
244
  "span",
243
245
  {
244
- className: f(
246
+ className: g(
245
247
  "relative cursor-pointer flex items-center shrink-0 duration-200 text-content-tertiary hover:text-brand-variant-hover transition-colors",
246
- x ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden group-hover:opacity-100 group-hover:w-auto"
248
+ b ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden group-hover:opacity-100 group-hover:w-auto"
247
249
  ),
248
- onClick: Q,
249
- title: S(x ? "gridHeader.activeFilter" : "gridHeader.search"),
250
+ onClick: Y,
251
+ title: w(b ? "gridHeader.activeFilter" : "gridHeader.search"),
250
252
  children: [
251
253
  /* @__PURE__ */ e("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z", fill: "currentColor" }) }),
252
- x && /* @__PURE__ */ e("span", { className: "absolute -top-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border-2 bg-brand z-10" })
254
+ b && /* @__PURE__ */ e("span", { className: "absolute -top-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border-2 bg-brand z-10" })
253
255
  ]
254
256
  }
255
257
  ),
256
- d && !("suppressHeaderMenuButton" in (i ?? {}) && i.suppressHeaderMenuButton) && /* @__PURE__ */ e(
257
- oe,
258
+ h && !("suppressHeaderMenuButton" in (o ?? {}) && o.suppressHeaderMenuButton) && /* @__PURE__ */ e(
259
+ ae,
258
260
  {
259
- ref: H,
260
- columnId: m,
261
+ ref: N,
262
+ columnId: f,
261
263
  gridApi: n,
262
264
  displayName: t
263
265
  }
@@ -270,5 +272,5 @@ const ce = ({ api: r }) => {
270
272
  );
271
273
  };
272
274
  export {
273
- ye as CustomHeader
275
+ Ae as CustomHeader
274
276
  };
@@ -14,4 +14,5 @@ export * from './column-indicator';
14
14
  export * from './indicator-legend';
15
15
  export * from './column-savability';
16
16
  export { mergePartialOrderedColumnState } from './data-table-column-state';
17
+ export { useDataTableViewport } from './use-data-table-viewport';
17
18
  export type { SavedTableViewItem, TableViewTypeOption, DataTableSavedViewsProps, DataTableSavedViewsActionContext, DataTableSavedViewsCancelContext, } from '../data-table/data-table-saved-views.types';