impact-nova 2.1.0-alpha.3 → 2.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +3 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +6 -0
  3. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +15 -21
  4. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +1 -1
  5. package/dist/components/data/ag-grid-react/cell-renderers/default-text-cell-renderer.d.ts +1 -2
  6. package/dist/components/data/ag-grid-react/cell-renderers/default-text-cell-renderer.js +12 -6
  7. package/dist/components/data/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +19 -19
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +1 -1
  9. package/dist/components/data/ag-grid-react/cell-renderers/switch-display-renderer.js +15 -15
  10. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +1 -1
  11. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +33 -33
  12. package/dist/components/data/ag-grid-react/headers/components/header-info.js +66 -62
  13. package/dist/components/data/ag-grid-react/headers/components/info-modal.js +6 -6
  14. package/dist/components/data/ag-grid-react/headers/components/section-renderers.js +18 -18
  15. package/dist/components/data/ag-grid-react/headers/custom-header-group.js +40 -29
  16. package/dist/components/data/ag-grid-react/headers/custom-header.js +102 -98
  17. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  18. package/dist/components/data/ag-grid-react/index.js +156 -148
  19. package/dist/components/data/ag-grid-react/theme.js +3 -0
  20. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.d.ts +5 -0
  21. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.js +13 -0
  22. package/dist/components/data/ag-grid-react/useGridAutoSizeStrategyOnResize.js +8 -5
  23. package/dist/components/data/data-table/data-table-column-apply.d.ts +16 -0
  24. package/dist/components/data/data-table/data-table-column-apply.js +18 -0
  25. package/dist/components/data/data-table/data-table-column-list.d.ts +13 -3
  26. package/dist/components/data/data-table/data-table-column-list.js +198 -191
  27. package/dist/components/data/data-table/data-table-constants.d.ts +3 -4
  28. package/dist/components/data/data-table/data-table-context.d.ts +3 -6
  29. package/dist/components/data/data-table/data-table-context.js +21 -10
  30. package/dist/components/data/data-table/data-table-saved-views.js +26 -26
  31. package/dist/components/data/data-table/data-table-sheet-portal-store.d.ts +13 -0
  32. package/dist/components/data/data-table/data-table-sheet-portal-store.js +36 -0
  33. package/dist/components/data/data-table/data-table-sheet.d.ts +3 -6
  34. package/dist/components/data/data-table/data-table-sheet.js +1 -1
  35. package/dist/components/data/data-table/data-table-view-menu.js +40 -40
  36. package/dist/components/data/data-table/data-table.d.ts +8 -10
  37. package/dist/components/data/data-table/data-table.js +131 -113
  38. package/dist/components/data/data-table/data-table.types.d.ts +35 -0
  39. package/dist/components/data/data-table/index.js +28 -27
  40. package/dist/components/data/data-table/indicator-legend.js +6 -6
  41. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +8 -0
  42. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +72 -0
  43. package/dist/components/data/expandable-list-item/expandable-list-item-context.d.ts +13 -0
  44. package/dist/components/data/expandable-list-item/expandable-list-item-context.js +25 -0
  45. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.d.ts +6 -0
  46. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +41 -0
  47. package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +31 -0
  48. package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +233 -0
  49. package/dist/components/data/expandable-list-item/expandable-list-item-preset.d.ts +18 -0
  50. package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +133 -0
  51. package/dist/components/data/expandable-list-item/expandable-list-item.d.ts +5 -0
  52. package/dist/components/data/{expandable-sku/expandable-sku.types.d.ts → expandable-list-item/expandable-list-item.types.d.ts} +7 -7
  53. package/dist/components/data/expandable-list-item/index.d.ts +5 -0
  54. package/dist/components/data/expandable-list-item/index.js +19 -0
  55. package/dist/components/data/nested-list/components/NestedListHeader.js +11 -11
  56. package/dist/components/data/nested-list/components/SortableItem.js +2 -2
  57. package/dist/components/data-display/avatar/avatar.types.d.ts +2 -0
  58. package/dist/components/data-display/badge/badge.types.d.ts +2 -0
  59. package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +11 -11
  60. package/dist/components/data-display/calendar/calendar-month-picker-panel.js +7 -7
  61. package/dist/components/data-display/calendar/calendar-week-number-cell.js +31 -31
  62. package/dist/components/data-display/card/card.js +8 -8
  63. package/dist/components/data-display/chart/chart.types.d.ts +9 -0
  64. package/dist/components/data-display/skeleton/skeleton.js +6 -6
  65. package/dist/components/data-display/statistics-card/statistics-card.js +14 -14
  66. package/dist/components/feedback/alert-dialog/alert-dialog.js +19 -19
  67. package/dist/components/feedback/dialog/dialog.js +1 -1
  68. package/dist/components/feedback/drawer/drawer.js +18 -18
  69. package/dist/components/feedback/dropdown-menu/dropdown-menu.js +68 -55
  70. package/dist/components/feedback/popover/popover.js +8 -1
  71. package/dist/components/feedback/sheet/sheet.js +1 -1
  72. package/dist/components/feedback/tooltip/tooltip.js +22 -22
  73. package/dist/components/feedback/tooltip/tooltip.variants.js +1 -1
  74. package/dist/components/flows/command-palette/command-palette.js +104 -104
  75. package/dist/components/flows/command-palette/shortcut-settings.js +34 -34
  76. package/dist/components/flows/filter-strip/filter-tag-list.js +4 -4
  77. package/dist/components/flows/notification-panel/notification-list.js +17 -17
  78. package/dist/components/flows/notification-panel/notification-panel.js +4 -4
  79. package/dist/components/flows/notification-panel/notification-panel.types.d.ts +3 -0
  80. package/dist/components/flows/wizard/wizard.js +8 -8
  81. package/dist/components/forms/combobox/combobox.js +20 -20
  82. package/dist/components/forms/date-picker/date-picker.js +17 -17
  83. package/dist/components/forms/date-picker/date-range-picker.js +3 -3
  84. package/dist/components/forms/date-picker/month-picker.js +1 -1
  85. package/dist/components/forms/date-picker/month-range-picker.js +42 -42
  86. package/dist/components/forms/date-picker/week-picker.js +15 -15
  87. package/dist/components/forms/date-picker/week-range-picker.js +3 -3
  88. package/dist/components/forms/file-upload/file-upload.js +33 -33
  89. package/dist/components/forms/input/input.js +8 -8
  90. package/dist/components/forms/input/input.variants.js +3 -3
  91. package/dist/components/forms/select/components/SelectMenuPanel.d.ts +1 -2
  92. package/dist/components/forms/select/components/SelectMenuPanel.js +17 -19
  93. package/dist/components/forms/select/components/SelectTrigger.d.ts +9 -6
  94. package/dist/components/forms/select/components/SelectTrigger.js +119 -116
  95. package/dist/components/forms/select/components/Submenu.js +7 -7
  96. package/dist/components/forms/select/hooks/useSelectKeyboardHandlers.d.ts +1 -1
  97. package/dist/components/forms/select/select.js +88 -88
  98. package/dist/components/forms/select/select.variants.js +5 -5
  99. package/dist/components/layout/sidebar/sidebar.d.ts +7 -50
  100. package/dist/components/layout/sidebar/sidebar.js +12 -11
  101. package/dist/components/layout/sidebar/sidebar.types.d.ts +35 -1
  102. package/dist/components/primitives/button-group/button-group.js +32 -32
  103. package/dist/components/primitives/chips/chips.variants.js +5 -5
  104. package/dist/components/primitives/empty-container/empty-container.types.d.ts +3 -0
  105. package/dist/components/primitives/kbd/kbd.variants.js +3 -3
  106. package/dist/components/primitives/stepper/stepper.js +6 -6
  107. package/dist/components/primitives/tag/tag.variants.js +2 -2
  108. package/dist/impact-nova-components.css +97 -0
  109. package/dist/impact-nova-tokens.scss +2 -0
  110. package/dist/impact-nova.css +1 -1
  111. package/dist/index.d.ts +1 -1
  112. package/dist/index.js +446 -413
  113. package/dist/lib/compose-refs.d.ts +8 -0
  114. package/dist/lib/compose-refs.js +14 -0
  115. package/dist/lib/primitives/field.types.d.ts +8 -2
  116. package/dist/lib/virtualized/index.d.ts +3 -0
  117. package/dist/lib/virtualized/index.js +33 -16
  118. package/dist/lib/virtualized/useVirtualizedList.d.ts +2 -0
  119. package/dist/lib/virtualized/useVirtualizedList.js +115 -109
  120. package/dist/lib/virtualized/virtualized-list-context.d.ts +12 -0
  121. package/dist/lib/virtualized/virtualized-list-context.js +21 -0
  122. package/dist/lib/virtualized/virtualized-list-parts.d.ts +51 -0
  123. package/dist/lib/virtualized/virtualized-list-parts.js +175 -0
  124. package/dist/lib/virtualized/virtualized-list-utils.d.ts +5 -0
  125. package/dist/lib/virtualized/virtualized-list-utils.js +6 -0
  126. package/dist/llms/rules/installation.js +1 -1
  127. package/dist/llms/rules/migration.js +1 -1
  128. package/dist/llms/rules/real-world-patterns.js +1 -1
  129. package/dist/llms/rules/requirements.js +1 -1
  130. package/package.json +24 -15
  131. package/tailwind.config.js +1 -0
  132. package/dist/components/data/ag-grid-react/headers/components/truncated-text.d.ts +0 -15
  133. package/dist/components/data/ag-grid-react/headers/components/truncated-text.js +0 -27
  134. package/dist/components/data/expandable-sku/expandable-sku.d.ts +0 -38
  135. package/dist/components/data/expandable-sku/expandable-sku.js +0 -245
  136. package/dist/components/data/expandable-sku/index.d.ts +0 -2
  137. package/dist/components/data/expandable-sku/index.js +0 -4
@@ -3,23 +3,23 @@ import "react";
3
3
  import { Badge as o } from "../../../../data-display/badge/badge.js";
4
4
  import { cn as i } from "../../../../../lib/utils.js";
5
5
  const d = ({ section: t }) => {
6
- const r = t.variant || "paragraph", { label: n, content: l } = t.data || {}, a = i(
7
- r === "heading" ? "text-lg font-semibold text-content" : r === "caption" ? "text-xs text-content-muted" : "text-sm text-content-tertiary leading-relaxed"
6
+ const n = t.variant || "paragraph", { label: r, content: l } = t.data || {}, a = i(
7
+ n === "heading" ? "text-lg font-semibold text-content" : n === "caption" ? "text-xs text-secondary-foreground" : "text-sm text-content-tertiary leading-relaxed"
8
8
  );
9
9
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
10
- n && /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-medium", children: n }),
10
+ r && /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-medium", children: r }),
11
11
  /* @__PURE__ */ e("p", { className: a, children: l })
12
12
  ] });
13
13
  }, x = ({ section: t }) => {
14
- const r = t.data?.items || [];
15
- return /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-x-8 gap-y-4", children: r.map((n, l) => /* @__PURE__ */ s("div", { className: "flex flex-col gap-1 min-w-[120px]", children: [
16
- /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-normal", children: n.label }),
17
- /* @__PURE__ */ e("span", { className: "text-sm text-content font-semibold", children: String(n.value) })
18
- ] }, `${n.label}-${l}`)) });
14
+ const n = t.data?.items || [];
15
+ return /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-x-8 gap-y-4", children: n.map((r, l) => /* @__PURE__ */ s("div", { className: "flex flex-col gap-1 min-w-[120px]", children: [
16
+ /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-normal", children: r.label }),
17
+ /* @__PURE__ */ e("span", { className: "text-sm text-content font-semibold", children: String(r.value) })
18
+ ] }, `${r.label}-${l}`)) });
19
19
  }, m = ({ section: t }) => {
20
- const { label: r, items: n = [] } = t.data || {}, l = n.filter((a) => a.label && a.label.trim().length > 0);
20
+ const { label: n, items: r = [] } = t.data || {}, l = r.filter((a) => a.label && a.label.trim().length > 0);
21
21
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
22
- r && /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-medium", children: r }),
22
+ n && /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-medium", children: n }),
23
23
  /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: l.map((a, c) => /* @__PURE__ */ e(
24
24
  o,
25
25
  {
@@ -31,9 +31,9 @@ const d = ({ section: t }) => {
31
31
  )) })
32
32
  ] });
33
33
  }, p = ({ section: t }) => {
34
- const { label: r, text: n, url: l } = t.data || {};
34
+ const { label: n, text: r, url: l } = t.data || {};
35
35
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
36
- r && /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-medium", children: r }),
36
+ n && /* @__PURE__ */ e("span", { className: "text-xs text-content-tertiary font-medium", children: n }),
37
37
  /* @__PURE__ */ e(
38
38
  "a",
39
39
  {
@@ -41,12 +41,12 @@ const d = ({ section: t }) => {
41
41
  target: "_blank",
42
42
  rel: "noopener noreferrer",
43
43
  className: "text-sm text-brand hover:underline font-medium inline-flex items-center gap-1",
44
- children: n
44
+ children: r
45
45
  }
46
46
  )
47
47
  ] });
48
48
  }, N = ({ section: t }) => {
49
- const r = () => {
49
+ const n = () => {
50
50
  switch (t.type) {
51
51
  case "TEXT":
52
52
  return /* @__PURE__ */ e(d, { section: t });
@@ -59,14 +59,14 @@ const d = ({ section: t }) => {
59
59
  default:
60
60
  return null;
61
61
  }
62
- }, n = (l) => {
62
+ }, r = (l) => {
63
63
  const { separator: a } = t;
64
64
  return a ? a === !0 || a === l || a === "both" : !1;
65
65
  };
66
66
  return /* @__PURE__ */ s("div", { className: "w-full", children: [
67
- n("top") && /* @__PURE__ */ e("div", { className: "h-px bg-stroke-hairline my-6" }),
68
- r(),
69
- n("bottom") && /* @__PURE__ */ e("div", { className: "h-px bg-stroke-hairline my-6" })
67
+ r("top") && /* @__PURE__ */ e("div", { className: "h-px bg-stroke-hairline my-6" }),
68
+ n(),
69
+ r("bottom") && /* @__PURE__ */ e("div", { className: "h-px bg-stroke-hairline my-6" })
70
70
  ] });
71
71
  };
72
72
  export {
@@ -1,47 +1,58 @@
1
- import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
- import { ChevronRight as x } from "impact-nova-icons";
3
- import { cn as g } from "../../../../lib/utils.js";
4
- import { HeaderInfo as h } from "./components/header-info.js";
5
- import { TruncatedText as E } from "./components/truncated-text.js";
6
- import { useGridHeader as N } from "./context/grid-header-context.js";
7
- function H(o) {
1
+ import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
+ import { useRef as h } from "react";
3
+ import { ChevronRight as E } from "impact-nova-icons";
4
+ import { cn as N } from "../../../../lib/utils.js";
5
+ import { HeaderInfo as b } from "./components/header-info.js";
6
+ import { useGridHeader as C } from "./context/grid-header-context.js";
7
+ import { useAgGridTruncationTooltip as G } from "../use-ag-grid-truncation-tooltip.js";
8
+ function w(r) {
8
9
  const {
9
10
  displayName: d,
10
- showInfoIcon: l = !1,
11
+ setTooltip: p,
12
+ showInfoIcon: c = !1,
11
13
  columnGroup: e,
12
14
  setExpanded: a
13
- } = o, r = N(), c = e ? e.isExpanded() : !1, s = e ? e.isExpandable() : !1, p = (t) => {
14
- t && t.stopPropagation(), a && e && a(!e.isExpanded());
15
- }, m = (t) => {
16
- if (t.preventDefault(), t.stopPropagation(), r && e) {
17
- const u = e.getGroupId() || "group";
18
- r.openMenu(u, t.currentTarget, "group");
15
+ } = r, s = h(null), t = d || "";
16
+ G(p, t, s, "ellipsis");
17
+ const i = C(), m = e ? e.isExpanded() : !1, l = e ? e.isExpandable() : !1, f = (n) => {
18
+ n && n.stopPropagation(), a && e && a(!e.isExpanded());
19
+ }, u = (n) => {
20
+ if (n.preventDefault(), n.stopPropagation(), i && e) {
21
+ const x = e.getGroupId() || "group";
22
+ i.openMenu(x, n.currentTarget, "group");
19
23
  }
20
- }, i = d || "";
21
- return !i && l === !1 ? null : /* @__PURE__ */ f(
24
+ };
25
+ return !t && c === !1 ? null : /* @__PURE__ */ g(
22
26
  "div",
23
27
  {
24
- className: "ag-header-group-cell-label ag-sticky-label flex items-center h-full cursor-pointer select-none",
25
- onClick: s ? p : void 0,
26
- onContextMenu: m,
28
+ className: "ag-header-group-cell-label ag-sticky-label flex items-center h-full min-w-0 cursor-pointer select-none",
29
+ onClick: l ? f : void 0,
30
+ onContextMenu: u,
27
31
  role: "presentation",
28
32
  children: [
29
- /* @__PURE__ */ n(
30
- E,
33
+ /* @__PURE__ */ o(
34
+ "span",
31
35
  {
32
- text: i,
33
- className: "ag-header-group-text font-bold text-content"
36
+ ref: s,
37
+ className: "ag-header-group-text min-w-0 flex-1 truncate font-bold text-content",
38
+ children: t
34
39
  }
35
40
  ),
36
- /* @__PURE__ */ n(h, { ...o, className: "ml-1" }),
37
- s && /* @__PURE__ */ n("span", { className: g(
38
- "ag-header-icon ag-header-expand-icon ml-[6px] flex items-center justify-center transition-transform duration-200",
39
- c ? "ag-header-expand-icon-expanded rotate-180" : "ag-header-expand-icon-collapsed"
40
- ), children: /* @__PURE__ */ n(x, { size: 16, className: "text-content-tertiary" }) })
41
+ /* @__PURE__ */ o(b, { ...r, className: "ml-1 shrink-0" }),
42
+ l && /* @__PURE__ */ o(
43
+ "span",
44
+ {
45
+ className: N(
46
+ "ag-header-icon ag-header-expand-icon ml-[6px] shrink-0 flex items-center justify-center",
47
+ m ? "ag-header-expand-icon-expanded rotate-180" : "ag-header-expand-icon-collapsed"
48
+ ),
49
+ children: /* @__PURE__ */ o(E, { size: 16, className: "text-content-tertiary" })
50
+ }
51
+ )
41
52
  ]
42
53
  }
43
54
  );
44
55
  }
45
56
  export {
46
- H as CustomHeaderGroup
57
+ w as CustomHeaderGroup
47
58
  };
@@ -1,13 +1,14 @@
1
- import { jsx as e, jsxs as c, Fragment as q } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as d, Fragment as q } from "react/jsx-runtime";
2
+ import { useRef as J } from "react";
2
3
  import { cn as u } from "../../../../lib/utils.js";
3
- import { useGridHeader as J } from "./context/grid-header-context.js";
4
- import { HeaderInfo as Q } from "./components/header-info.js";
5
- import { Checkbox as U } from "../../../forms/checkbox/checkbox.js";
6
- import { useImpactNovaI18n as H } from "../../../../i18n/use-impact-nova-i18n.js";
7
- import { TruncatedText as W } from "./components/truncated-text.js";
8
- import { HeaderSearchInput as X } from "./header-search-input.js";
9
- const Y = () => /* @__PURE__ */ c(q, { children: [
10
- /* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ c(
4
+ import { useGridHeader as Q } from "./context/grid-header-context.js";
5
+ import { HeaderInfo as U } from "./components/header-info.js";
6
+ import { Checkbox as W } from "../../../forms/checkbox/checkbox.js";
7
+ import { useImpactNovaI18n as I } from "../../../../i18n/use-impact-nova-i18n.js";
8
+ import { useAgGridTruncationTooltip as X } from "../use-ag-grid-truncation-tooltip.js";
9
+ import { HeaderSearchInput as Y } from "./header-search-input.js";
10
+ const ee = () => /* @__PURE__ */ d(q, { children: [
11
+ /* @__PURE__ */ e("span", { className: "sort-asc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ d(
11
12
  "svg",
12
13
  {
13
14
  xmlns: "http://www.w3.org/2000/svg",
@@ -22,7 +23,7 @@ const Y = () => /* @__PURE__ */ c(q, { children: [
22
23
  ]
23
24
  }
24
25
  ) }),
25
- /* @__PURE__ */ e("span", { className: "sort-desc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ c(
26
+ /* @__PURE__ */ e("span", { className: "sort-desc-icon inline-flex transition-colors text-content-tertiary hover:text-brand-variant-hover", children: /* @__PURE__ */ d(
26
27
  "svg",
27
28
  {
28
29
  xmlns: "http://www.w3.org/2000/svg",
@@ -50,25 +51,25 @@ const Y = () => /* @__PURE__ */ c(q, { children: [
50
51
  }
51
52
  ) })
52
53
  ] });
53
- function ee(o) {
54
+ function te(o) {
54
55
  if (o.getGridOption("rowModelType") === "serverSide") {
55
- const d = o.getServerSideSelectionState?.();
56
- if (!d || !("selectAll" in d))
56
+ const f = o.getServerSideSelectionState?.();
57
+ if (!f || !("selectAll" in f))
57
58
  return { isChecked: !1, isIndeterminate: !1 };
58
- const { selectAll: i, toggledNodes: l } = d, g = !!(l && l.length > 0);
59
- return i && !g ? { isChecked: !0, isIndeterminate: !1 } : i && g ? { isChecked: !1, isIndeterminate: !0 } : !i && g ? { isChecked: !1, isIndeterminate: !0 } : { isChecked: !1, isIndeterminate: !1 };
59
+ const { selectAll: c, toggledNodes: s } = f, i = !!(s && s.length > 0);
60
+ return c && !i ? { isChecked: !0, isIndeterminate: !1 } : c && i ? { isChecked: !1, isIndeterminate: !0 } : !c && i ? { isChecked: !1, isIndeterminate: !0 } : { isChecked: !1, isIndeterminate: !1 };
60
61
  }
61
- const s = o.getSelectedRows().length, m = o.getDisplayedRowCount();
62
- return s === 0 ? { isChecked: !1, isIndeterminate: !1 } : s === m && m > 0 ? { isChecked: !0, isIndeterminate: !1 } : { isChecked: !1, isIndeterminate: !0 };
62
+ const m = o.getSelectedRows().length, a = o.getDisplayedRowCount();
63
+ return m === 0 ? { isChecked: !1, isIndeterminate: !1 } : m === a && a > 0 ? { isChecked: !0, isIndeterminate: !1 } : { isChecked: !1, isIndeterminate: !0 };
63
64
  }
64
- const te = ({ api: o }) => {
65
- const { t } = H(), { isChecked: s, isIndeterminate: m } = ee(o);
65
+ const re = ({ api: o }) => {
66
+ const { t } = I(), { isChecked: m, isIndeterminate: a } = te(o);
66
67
  return /* @__PURE__ */ e(
67
- U,
68
+ W,
68
69
  {
69
- checked: m ? "indeterminate" : s,
70
- onCheckedChange: (i) => {
71
- if (i === !0) {
70
+ checked: a ? "indeterminate" : m,
71
+ onCheckedChange: (c) => {
72
+ if (c === !0) {
72
73
  o.selectAll();
73
74
  return;
74
75
  }
@@ -78,33 +79,36 @@ const te = ({ api: o }) => {
78
79
  className: "m-0"
79
80
  }
80
81
  );
81
- }, ue = (o) => {
82
+ }, ge = (o) => {
82
83
  const {
83
84
  displayName: t,
84
- enableSorting: s,
85
- enableMenu: m,
86
- progressSort: d,
87
- column: i,
88
- api: l,
89
- handleInlineSearch: g,
85
+ setTooltip: m,
86
+ enableSorting: a,
87
+ enableMenu: f,
88
+ progressSort: c,
89
+ column: s,
90
+ api: i,
91
+ handleInlineSearch: N,
90
92
  handleClearSearchInline: x,
91
93
  onColumnSearchClick: w,
92
- onAdvanceSearchClick: I,
93
- toggleAdvanceSearch: y,
94
- isSearchable: N = !1,
95
- advanceSearchEnabled: M = !1,
94
+ onAdvanceSearchClick: y,
95
+ toggleAdvanceSearch: M,
96
+ isSearchable: A = !1,
97
+ advanceSearchEnabled: T = !1,
96
98
  // Select params
97
- selectOptions: A,
98
- isMultiSelect: F,
99
- onSelectScrollToBottom: L,
100
- onSelectSearchChange: T,
101
- onSelectOpen: V,
102
- isLoadingSelect: P,
99
+ selectOptions: F,
100
+ isMultiSelect: L,
101
+ onSelectScrollToBottom: V,
102
+ onSelectSearchChange: P,
103
+ onSelectOpen: B,
104
+ isLoadingSelect: D,
103
105
  // Pattern parsing options
104
- enableSpaceSplitting: B,
105
- enableBooleanParsing: D,
106
- enableDateParsing: _
107
- } = o, a = J(), { t: C } = H(), n = i.getColDef(), h = i.getColId(), v = i.isFilterActive(), Z = i.getSort(), p = i.getSortIndex(), R = !!Z, j = p != null && (p > 0 || l.getColumnState().filter((r) => r.sort).length > 1), O = R && j, f = (n?.filter || "agTextColumnFilter") === "agNumberColumnFilter" || (Array.isArray(n?.type) ? n.type.some((r) => r === "number" || r === "numericColumn") : n?.type === "number" || n?.type === "numericColumn"), S = l.getGridOption("context")?.activeSearchColumnId === h, z = a?.activeMenuColumnId === h, b = ![
106
+ enableSpaceSplitting: _,
107
+ enableBooleanParsing: Z,
108
+ enableDateParsing: R
109
+ } = o, S = J(null);
110
+ X(m, t ?? "", S, "line-clamp");
111
+ const l = Q(), { t: C } = I(), n = s.getColDef(), h = s.getColId(), p = s.isFilterActive(), j = s.getSort(), v = s.getSortIndex(), G = !!j && v != null && v > 0, g = (n?.filter || "agTextColumnFilter") === "agNumberColumnFilter" || (Array.isArray(n?.type) ? n.type.some((r) => r === "number" || r === "numericColumn") : n?.type === "number" || n?.type === "numericColumn"), b = i.getGridOption("context")?.activeSearchColumnId === h, O = l?.activeMenuColumnId === h, k = ![
108
112
  "agTextColumnFilter",
109
113
  "agNumberColumnFilter",
110
114
  "agDateColumnFilter",
@@ -114,55 +118,55 @@ const te = ({ api: o }) => {
114
118
  // Defaults to text/set
115
119
  void 0
116
120
  // Defaults to text
117
- ].includes(n?.filter), k = (r) => {
118
- r.stopPropagation(), s && d && d(r.shiftKey);
119
- }, E = (r) => {
120
- if (r.stopPropagation(), w && w(o), b) {
121
- l.showColumnFilter ? l.showColumnFilter(h) : l.showColumnMenu(h);
121
+ ].includes(n?.filter), H = (r) => {
122
+ r.stopPropagation(), a && c && c(r.shiftKey);
123
+ }, z = (r) => {
124
+ if (r.stopPropagation(), w && w(o), k) {
125
+ i.showColumnFilter ? i.showColumnFilter(h) : i.showColumnMenu(h);
122
126
  return;
123
127
  }
124
- a && (S ? a.closeSearch() : a.openSearch(h));
125
- }, G = (r) => {
126
- r.preventDefault(), r.stopPropagation(), a && a.openMenu(h, r.currentTarget, "column");
128
+ l && (b ? l.closeSearch() : l.openSearch(h));
129
+ }, E = (r) => {
130
+ r.preventDefault(), r.stopPropagation(), l && l.openMenu(h, r.currentTarget, "column");
127
131
  }, $ = (r) => /* @__PURE__ */ e("span", { onClick: (K) => K.stopPropagation(), children: /* @__PURE__ */ e(
128
- Q,
132
+ U,
129
133
  {
130
134
  ...o,
131
135
  className: r
132
136
  }
133
137
  ) });
134
- return S && a && !b ? /* @__PURE__ */ e(
135
- X,
138
+ return b && l && !k ? /* @__PURE__ */ e(
139
+ Y,
136
140
  {
137
- column: i,
138
- api: l,
139
- onClose: () => a.closeSearch(),
140
- handleInlineSearch: g,
141
+ column: s,
142
+ api: i,
143
+ onClose: () => l.closeSearch(),
144
+ handleInlineSearch: N,
141
145
  handleClearSearchInline: x ? () => x(o) : void 0,
142
- onAdvanceSearchClick: I,
143
- toggleAdvanceSearch: y,
144
- advanceSearchEnabled: M,
145
- selectOptions: A,
146
- isMultiSelect: F,
147
- onSelectScrollToBottom: L,
148
- onSelectSearchChange: T,
149
- onSelectOpen: V,
150
- isLoadingSelect: P,
151
- enableSpaceSplitting: B,
152
- enableBooleanParsing: D,
153
- enableDateParsing: _
146
+ onAdvanceSearchClick: y,
147
+ toggleAdvanceSearch: M,
148
+ advanceSearchEnabled: T,
149
+ selectOptions: F,
150
+ isMultiSelect: L,
151
+ onSelectScrollToBottom: V,
152
+ onSelectSearchChange: P,
153
+ onSelectOpen: B,
154
+ isLoadingSelect: D,
155
+ enableSpaceSplitting: _,
156
+ enableBooleanParsing: Z,
157
+ enableDateParsing: R
154
158
  }
155
- ) : /* @__PURE__ */ c(
159
+ ) : /* @__PURE__ */ d(
156
160
  "div",
157
161
  {
158
162
  className: u(
159
163
  "ag-header-cell-label flex items-center w-full group min-w-0 h-full",
160
- f ? "flex-row-reverse" : "flex-row",
164
+ g ? "flex-row-reverse" : "flex-row",
161
165
  // Center the content area if it's a selection column
162
166
  n?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center" : ""
163
167
  ),
164
168
  "data-selection-column": n?.headerCheckboxSelection && (!t || t.trim() === "") ? "true" : void 0,
165
- onContextMenu: G,
169
+ onContextMenu: E,
166
170
  children: [
167
171
  /* @__PURE__ */ e(
168
172
  "div",
@@ -170,73 +174,73 @@ const te = ({ api: o }) => {
170
174
  className: u(
171
175
  "ag-header-cell-text relative group flex min-w-0",
172
176
  // Use items-start for non-numeric to allow 2-line text expansion
173
- f ? "items-center" : "items-start",
177
+ g ? "items-center" : "items-start",
174
178
  // Remove flex-1 if we are centering via parent's justify-center
175
179
  !(n?.headerCheckboxSelection && (!t || t.trim() === "")) && "flex-1",
176
- f ? "flex-row-reverse" : "flex-row",
177
- s ? "sortable cursor-pointer" : ""
180
+ g ? "flex-row-reverse" : "flex-row",
181
+ a ? "sortable cursor-pointer" : ""
178
182
  ),
179
- onClick: s ? k : void 0,
180
- children: /* @__PURE__ */ c("div", { className: u(
183
+ onClick: a ? H : void 0,
184
+ children: /* @__PURE__ */ d("div", { className: u(
181
185
  "flex min-w-0",
182
186
  // Use items-start for non-numeric to allow 2-line text expansion
183
- f ? "flex-row-reverse items-center" : "flex-row items-start",
187
+ g ? "flex-row-reverse items-center" : "flex-row items-start",
184
188
  // If it's a checkbox-only header, ensure it shrinks to content for centering
185
189
  n?.headerCheckboxSelection && (!t || t.trim() === "") ? "justify-center items-center" : "gap-1 flex-1"
186
190
  ), children: [
187
- n?.headerCheckboxSelection && /* @__PURE__ */ e(te, { api: l }),
188
- t && t.trim() !== "" && t !== C("gridHeader.selection") && /* @__PURE__ */ e(W, { text: t }),
191
+ n?.headerCheckboxSelection && /* @__PURE__ */ e(re, { api: i }),
192
+ t && t.trim() !== "" && t !== C("gridHeader.selection") && /* @__PURE__ */ e("span", { ref: S, className: "line-clamp-2 break-words", children: t }),
189
193
  t && t.trim() !== "" && $(u(
190
194
  "text-content-tertiary hover:text-brand-variant-hover transition-colors",
191
- f ? "mr-1" : "ml-1"
195
+ g ? "mr-1" : "ml-1"
192
196
  ))
193
197
  ] })
194
198
  }
195
199
  ),
196
- !(n?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ c(
200
+ !(n?.headerCheckboxSelection && (!t || t.trim() === "")) && /* @__PURE__ */ d(
197
201
  "div",
198
202
  {
199
203
  className: u(
200
204
  "flex items-center shrink-0 group gap-1",
201
- f ? "flex-row-reverse" : "flex-row"
205
+ g ? "flex-row-reverse" : "flex-row"
202
206
  ),
203
207
  children: [
204
- s && /* @__PURE__ */ c(
208
+ a && /* @__PURE__ */ d(
205
209
  "div",
206
210
  {
207
211
  className: "ag-sort-indicator-container cursor-pointer flex items-center",
208
- onClick: k,
212
+ onClick: H,
209
213
  children: [
210
- O && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-content-tertiary mr-0.5", children: p + 1 }),
211
- /* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e(Y, {}) })
214
+ G && /* @__PURE__ */ e("span", { className: "ag-sort-order text-[10px] font-bold text-content-tertiary mr-0.5", children: v + 1 }),
215
+ /* @__PURE__ */ e("span", { className: "ag-sort-indicator-icon", children: /* @__PURE__ */ e(ee, {}) })
212
216
  ]
213
217
  }
214
218
  ),
215
- N && /* @__PURE__ */ c(
219
+ A && /* @__PURE__ */ d(
216
220
  "span",
217
221
  {
218
222
  className: u(
219
223
  "relative cursor-pointer flex items-center shrink-0 duration-200 text-content-tertiary hover:text-brand-variant-hover transition-colors",
220
- v ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden group-hover:opacity-100 group-hover:w-auto"
224
+ p ? "opacity-100 w-auto" : "opacity-0 w-0 overflow-hidden group-hover:opacity-100 group-hover:w-auto"
221
225
  ),
222
- onClick: E,
223
- title: C(v ? "gridHeader.activeFilter" : "gridHeader.search"),
226
+ onClick: z,
227
+ title: C(p ? "gridHeader.activeFilter" : "gridHeader.search"),
224
228
  children: [
225
229
  /* @__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" }) }),
226
- v && /* @__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" })
230
+ p && /* @__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" })
227
231
  ]
228
232
  }
229
233
  ),
230
- m && !("suppressHeaderMenuButton" in (n ?? {}) && n.suppressHeaderMenuButton) && /* @__PURE__ */ e("div", { className: "custom-ag-header-icons relative", children: /* @__PURE__ */ e(
234
+ f && !("suppressHeaderMenuButton" in (n ?? {}) && n.suppressHeaderMenuButton) && /* @__PURE__ */ e("div", { className: "custom-ag-header-icons relative", children: /* @__PURE__ */ e(
231
235
  "button",
232
236
  {
233
237
  className: u(
234
238
  "custom-ag-menu-icon-button cursor-pointer flex items-center shrink-0 overflow-hidden transition-colors duration-200 outline-none focus:outline-none focus:ring-0 text-content-tertiary hover:text-brand-variant-hover",
235
- z ? "opacity-100 w-auto" : "w-0 opacity-0 group-hover:w-auto group-hover:opacity-100"
239
+ O ? "opacity-100 w-auto" : "w-0 opacity-0 group-hover:w-auto group-hover:opacity-100"
236
240
  ),
237
241
  "aria-label": `${t} ${C("gridHeader.columnSettings")}`,
238
242
  onClick: (r) => {
239
- r.stopPropagation(), a && a.openMenu(h, r.currentTarget);
243
+ r.stopPropagation(), l && l.openMenu(h, r.currentTarget);
240
244
  },
241
245
  children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ e("path", { d: "M14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18ZM14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12ZM14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6Z", fill: "currentColor" }) })
242
246
  }
@@ -249,5 +253,5 @@ const te = ({ api: o }) => {
249
253
  );
250
254
  };
251
255
  export {
252
- ue as CustomHeader
256
+ ge as CustomHeader
253
257
  };
@@ -1,6 +1,6 @@
1
1
  import { AgGridWrapperProps } from './ag-grid.types';
2
2
  import { subscribeGridApiEvent, subscribeGridApiEvents } from './grid-api-event-subscription';
3
3
  export { subscribeGridApiEvent, subscribeGridApiEvents };
4
- export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, ...restProps }: AgGridWrapperProps<TData> & {
4
+ export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, ...restProps }: AgGridWrapperProps<TData> & {
5
5
  className?: string;
6
6
  }): import("react/jsx-runtime").JSX.Element;