impact-nova 2.5.17 → 2.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/README.md +27 -25
  2. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +28 -1
  3. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +0 -3
  4. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +31 -38
  5. package/dist/components/data/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
  6. package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +9 -0
  7. package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +22 -0
  8. package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +20 -0
  9. package/dist/components/data/ag-grid-react/chat/chat-column.js +81 -0
  10. package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +10 -0
  11. package/dist/components/data/ag-grid-react/chat/chat-composer.js +352 -0
  12. package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +17 -0
  13. package/dist/components/data/ag-grid-react/chat/chat-constants.js +22 -0
  14. package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +41 -0
  15. package/dist/components/data/ag-grid-react/chat/chat-format.js +94 -0
  16. package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +10 -0
  17. package/dist/components/data/ag-grid-react/chat/chat-host.js +651 -0
  18. package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +13 -0
  19. package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +2 -0
  20. package/dist/components/data/ag-grid-react/chat/chat-html.js +40 -0
  21. package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +13 -0
  22. package/dist/components/data/ag-grid-react/chat/chat-identity.js +24 -0
  23. package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +13 -0
  24. package/dist/components/data/ag-grid-react/chat/chat-menu.js +15 -0
  25. package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +17 -0
  26. package/dist/components/data/ag-grid-react/chat/chat-notify.js +124 -0
  27. package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +13 -0
  28. package/dist/components/data/ag-grid-react/chat/chat-persist.js +34 -0
  29. package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +13 -0
  30. package/dist/components/data/ag-grid-react/chat/chat-priority.js +79 -0
  31. package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +2 -0
  32. package/dist/components/data/ag-grid-react/chat/chat-summaries.js +24 -0
  33. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +72 -0
  34. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +713 -0
  35. package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +6 -0
  36. package/dist/components/data/ag-grid-react/chat/chat-toggle.js +25 -0
  37. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +13 -0
  38. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +26 -0
  39. package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +14 -0
  40. package/dist/components/data/ag-grid-react/chat/chat-window.js +82 -0
  41. package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +91 -0
  42. package/dist/components/data/ag-grid-react/chat/chat-workspace.js +555 -0
  43. package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +319 -0
  44. package/dist/components/data/ag-grid-react/chat/index.d.ts +6 -0
  45. package/dist/components/data/ag-grid-react/chat/index.js +24 -0
  46. package/dist/components/data/ag-grid-react/chat.story-data.d.ts +34 -0
  47. package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +4 -0
  48. package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +4 -0
  49. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +6 -0
  50. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +29 -0
  51. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +8 -0
  52. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +18 -0
  53. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +18 -0
  54. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +16 -0
  55. package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +11 -0
  56. package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +26 -0
  57. package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +12 -0
  58. package/dist/components/data/ag-grid-react/comments/comments-constants.js +21 -0
  59. package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +20 -0
  60. package/dist/components/data/ag-grid-react/comments/comments-format.js +49 -0
  61. package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +14 -0
  62. package/dist/components/data/ag-grid-react/comments/comments-generation.js +18 -0
  63. package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +10 -0
  64. package/dist/components/data/ag-grid-react/comments/comments-host.js +343 -0
  65. package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +18 -0
  66. package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +7 -0
  67. package/dist/components/data/ag-grid-react/comments/comments-identity.js +20 -0
  68. package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +29 -0
  69. package/dist/components/data/ag-grid-react/comments/comments-menu.js +35 -0
  70. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +22 -0
  71. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +98 -0
  72. package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +21 -0
  73. package/dist/components/data/ag-grid-react/comments/comments-overlay.js +406 -0
  74. package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +9 -0
  75. package/dist/components/data/ag-grid-react/comments/comments-panel.js +272 -0
  76. package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +11 -0
  77. package/dist/components/data/ag-grid-react/comments/comments-persist.js +19 -0
  78. package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +11 -0
  79. package/dist/components/data/ag-grid-react/comments/comments-reveal.js +31 -0
  80. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +18 -0
  81. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +22 -0
  82. package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +10 -0
  83. package/dist/components/data/ag-grid-react/comments/comments-window.js +62 -0
  84. package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +178 -0
  85. package/dist/components/data/ag-grid-react/comments/index.d.ts +5 -0
  86. package/dist/components/data/ag-grid-react/comments/index.js +15 -0
  87. package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +25 -0
  88. package/dist/components/data/ag-grid-react/comments.story-data.d.ts +37 -0
  89. package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +11 -0
  90. package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +21 -0
  91. package/dist/components/data/ag-grid-react/grid-cell-address.js +21 -0
  92. package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +34 -0
  93. package/dist/components/data/ag-grid-react/grid-row-reveal.js +33 -0
  94. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +75 -65
  95. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
  96. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
  97. package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
  98. package/dist/components/data/ag-grid-react/headers/header-search-input.js +122 -119
  99. package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +2 -1
  100. package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +25 -20
  101. package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
  102. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  103. package/dist/components/data/ag-grid-react/index.js +481 -254
  104. package/dist/components/data/ag-grid-react/notes/index.d.ts +2 -0
  105. package/dist/components/data/ag-grid-react/notes/index.js +1 -0
  106. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +25 -0
  107. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +32 -0
  108. package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +2 -0
  109. package/dist/components/data/ag-grid-react/notes/notes-constants.js +4 -0
  110. package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +12 -0
  111. package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +7 -0
  112. package/dist/components/data/ag-grid-react/nova-system-column.d.ts +7 -0
  113. package/dist/components/data/ag-grid-react/nova-system-column.js +18 -0
  114. package/dist/components/data/ag-grid-react/theme.js +6 -2
  115. package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +4 -0
  116. package/dist/components/data/ag-grid-react/value-formatters.d.ts +0 -19
  117. package/dist/components/data/ag-grid-react/value-formatters.js +88 -90
  118. package/dist/components/data/data-table/build-column-tree-from-grid.js +14 -13
  119. package/dist/components/data/data-table/data-table-column-def-pin.js +34 -31
  120. package/dist/components/data/data-table/data-table-context.js +5 -5
  121. package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
  122. package/dist/components/data/data-table/data-table-sheet.js +2 -1
  123. package/dist/components/data-display/calendar/calendar-config.js +22 -21
  124. package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
  125. package/dist/components/data-display/calendar/calendar-day-picker-view.js +36 -35
  126. package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
  127. package/dist/components/data-display/calendar/calendar-fiscal-labels.js +50 -62
  128. package/dist/components/data-display/calendar/calendar.js +138 -137
  129. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +23 -22
  130. package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +1 -0
  131. package/dist/components/data-display/calendar/use-calendar-i18n.js +10 -9
  132. package/dist/components/data-display/chart/chart.js +72 -72
  133. package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
  134. package/dist/components/data-display/chart/chart.utils.js +40 -31
  135. package/dist/components/feedback/sheet/sheet.js +1 -1
  136. package/dist/components/feedback/toast/toast.d.ts +1 -1
  137. package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
  138. package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
  139. package/dist/components/flows/filter-panel/filter-panel.js +65 -64
  140. package/dist/components/flows/filter-panel/filter-panel.types.d.ts +1 -0
  141. package/dist/components/forms/date-picker/date-picker.js +125 -126
  142. package/dist/components/forms/date-picker/date-range-picker.js +191 -192
  143. package/dist/components/forms/date-picker/multi-date-picker.js +66 -67
  144. package/dist/components/forms/date-picker/multi-week-picker.js +82 -83
  145. package/dist/components/forms/date-picker/use-picker-i18n.d.ts +6 -0
  146. package/dist/components/forms/date-picker/use-picker-i18n.js +11 -0
  147. package/dist/components/forms/date-picker/week-picker.js +146 -147
  148. package/dist/components/forms/date-picker/week-range-picker.js +158 -159
  149. package/dist/components/ui/local-raster-icons/message3d.webp.js +4 -0
  150. package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +1 -0
  151. package/dist/components/ui/local-raster-icons/rasterIcons.js +27 -25
  152. package/dist/form-react/Fields/WeekRangePicker.js +16 -16
  153. package/dist/form-react/fields.d.ts +0 -3
  154. package/dist/form-react/fields.js +29 -35
  155. package/dist/i18n/defaultMessages.d.ts +144 -0
  156. package/dist/i18n/defaultMessages.js +161 -19
  157. package/dist/i18n/format/collator.d.ts +1 -0
  158. package/dist/i18n/format/collator.js +7 -0
  159. package/dist/i18n/format/date-pattern.d.ts +5 -0
  160. package/dist/i18n/format/date-pattern.js +20 -0
  161. package/dist/i18n/format/format-date.d.ts +9 -0
  162. package/dist/i18n/format/format-date.js +56 -0
  163. package/dist/i18n/format/format-number.d.ts +20 -0
  164. package/dist/i18n/format/format-number.js +68 -0
  165. package/dist/i18n/format/formatter-cache.d.ts +9 -0
  166. package/dist/i18n/format/formatter-cache.js +66 -0
  167. package/dist/i18n/format/index.d.ts +6 -0
  168. package/dist/i18n/format/parse-number.d.ts +6 -0
  169. package/dist/i18n/format/parse-number.js +53 -0
  170. package/dist/i18n/getDateFnsLocale.d.ts +5 -4
  171. package/dist/i18n/getDateFnsLocale.js +46 -16
  172. package/dist/i18n/i18n.types.d.ts +13 -0
  173. package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
  174. package/dist/i18n/impact-nova-i18n-context.js +33 -25
  175. package/dist/i18n/impact-nova-i18n-defaults.js +8 -6
  176. package/dist/i18n/index.d.ts +4 -1
  177. package/dist/i18n/index.js +41 -16
  178. package/dist/i18n/locale-config.d.ts +28 -0
  179. package/dist/i18n/locale-config.js +32 -0
  180. package/dist/i18n/locales/de.js +142 -0
  181. package/dist/i18n/locales/es.js +142 -0
  182. package/dist/i18n/locales/hi.js +142 -0
  183. package/dist/i18n/locales/kn.js +142 -0
  184. package/dist/i18n/week-start.d.ts +6 -0
  185. package/dist/i18n/week-start.js +30 -0
  186. package/dist/impact-nova-components.css +249 -0
  187. package/dist/impact-nova-tokens.scss +6 -0
  188. package/dist/impact-nova.css +1 -1
  189. package/dist/index.d.ts +1 -1
  190. package/dist/index.js +624 -601
  191. package/dist/llms/index.js +26 -2
  192. package/dist/llms/rules/ag-grid.js +1 -1
  193. package/dist/llms/rules/best-practices.js +1 -1
  194. package/dist/llms/rules/data-table-chat.js +1 -0
  195. package/dist/llms/rules/data-table-comments.js +1 -0
  196. package/dist/llms/rules/data-table-notes.js +1 -0
  197. package/dist/llms/rules/installation.js +1 -1
  198. package/dist/llms/rules/migration.js +1 -1
  199. package/dist/llms/rules/real-world-patterns.js +1 -1
  200. package/dist/llms/rules/requirements.js +1 -1
  201. package/dist/llms/rules/troubleshooting.js +1 -1
  202. package/dist/providers/app-providers.d.ts +3 -1
  203. package/dist/providers/app-providers.js +22 -11
  204. package/package.json +13 -1
@@ -1,107 +1,178 @@
1
- import { jsxs as ye, jsx as F } from "react/jsx-runtime";
2
- import { lazy as be, useRef as L, useState as O, useId as xe, useEffect as q, useCallback as m, useMemo as f, Suspense as Se } from "react";
3
- import { ModuleRegistry as Fe, AllCommunityModule as Ae } from "ag-grid-community";
4
- import { AllEnterpriseModule as Ee } from "ag-grid-enterprise";
5
- import { AgGridReact as Ge } from "ag-grid-react";
6
- import { customAgGridTheme as Me } from "./theme.js";
7
- import { syncAgGridThemeMode as Re } from "./sync-ag-grid-theme-mode.js";
8
- import { CustomHeader as Te } from "./headers/custom-header.js";
9
- import { CustomHeaderGroup as z } from "./headers/custom-inner-header-group.js";
10
- import { mergeColumnGroupDefsWithDefault as we } from "./merge-column-group-defs.js";
11
- import { DefaultTextCellRenderer as ke } from "./cell-renderers/default-text-cell-renderer.js";
12
- import { GridHeaderContext as Ie } from "./headers/context/grid-header-context.js";
13
- import { convertToAgGridFilterModel as je, getMultiFilterIndices as Pe, convertFromAgGridFilterModel as De } from "./headers/utils/filter-utils.js";
14
- import { AG_GRID_VALUE_FORMATTERS as Le } from "./value-formatters.js";
15
- import { useGridAutoSizeStrategyOnResize as Oe } from "./useGridAutoSizeStrategyOnResize.js";
16
- import { subscribeGridApiEvent as ct, subscribeGridApiEvents as at } from "./grid-api-event-subscription.js";
17
- import { notifyColumnIndicatorSync as R } from "./notify-column-indicator-sync.js";
18
- import { setActiveSearchColumnId as H, clearHeaderSearchActiveState as He } from "./headers/header-search-active-state.js";
1
+ import { jsxs as xe, jsx as R } from "react/jsx-runtime";
2
+ import { lazy as ie, useRef as g, useState as ne, useId as ct, useMemo as y, useEffect as z, useCallback as u, Suspense as le } from "react";
3
+ import { ModuleRegistry as st, AllCommunityModule as at } from "ag-grid-community";
4
+ import { AllEnterpriseModule as ut } from "ag-grid-enterprise";
5
+ import { AgGridReact as dt } from "ag-grid-react";
6
+ import { useImpactNovaI18n as mt } from "../../../i18n/use-impact-nova-i18n.js";
7
+ import { isCommentPresenceClass as pt } from "./comments/comments-ag-grid-presence.js";
8
+ import { mergeCommentsContextMenuItems as ft } from "./comments/comments-menu.js";
9
+ import { COMMENTS_MISSING_ROW_ID_WARNING as Ie, IV_HAS_CELL_COMMENT as gt } from "./comments/comments-constants.js";
10
+ import { createNotesDataSource as Ct, noteOwnsCellPointer as Se } from "./notes/notes-ag-grid-adapter.js";
11
+ import { NOTES_MISSING_ROW_ID_WARNING as Ae } from "./notes/notes-constants.js";
12
+ import { mergeChatContextMenuItems as ht } from "./chat/chat-menu.js";
13
+ import { CHAT_MISSING_ROW_ID_WARNING as yt, IV_CHAT_COL_ID as bt } from "./chat/chat-constants.js";
14
+ import { createChatCellRenderer as vt, appendChatSystemColumn as xt, createChatSystemColumn as It, resolveChatColumnId as St } from "./chat/chat-column.js";
15
+ import { exportColumnColIds as Re, isNovaSystemColId as Fe } from "./nova-system-column.js";
16
+ import { customAgGridTheme as At } from "./theme.js";
17
+ import { syncAgGridThemeMode as Rt } from "./sync-ag-grid-theme-mode.js";
18
+ import { CustomHeader as Ft } from "./headers/custom-header.js";
19
+ import { CustomHeaderGroup as Me } from "./headers/custom-inner-header-group.js";
20
+ import { mergeColumnGroupDefsWithDefault as Mt } from "./merge-column-group-defs.js";
21
+ import { DefaultTextCellRenderer as Et } from "./cell-renderers/default-text-cell-renderer.js";
22
+ import { GridHeaderContext as Gt } from "./headers/context/grid-header-context.js";
23
+ import { convertToAgGridFilterModel as wt, getMultiFilterIndices as Tt, convertFromAgGridFilterModel as Nt } from "./headers/utils/filter-utils.js";
24
+ import { AG_GRID_VALUE_FORMATTERS as Dt } from "./value-formatters.js";
25
+ import { useGridAutoSizeStrategyOnResize as kt } from "./useGridAutoSizeStrategyOnResize.js";
26
+ import { subscribeGridApiEvent as xn, subscribeGridApiEvents as In } from "./grid-api-event-subscription.js";
27
+ import { notifyColumnIndicatorSync as J } from "./notify-column-indicator-sync.js";
28
+ import { setActiveSearchColumnId as oe, clearHeaderSearchActiveState as _t } from "./headers/header-search-active-state.js";
19
29
  /* empty css */
20
- import { useAgGridTruncationTooltip as dt } from "./use-ag-grid-truncation-tooltip.js";
21
- import { isAgGridHeaderLabelTooltipOverflowing as mt, isAgGridTextOverflowing as ft } from "./ag-grid-tooltip-overflow.js";
22
- const Ne = be(
23
- () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((s) => ({
24
- default: s.AdvancedFilterDialog
30
+ import { useAgGridTruncationTooltip as An } from "./use-ag-grid-truncation-tooltip.js";
31
+ import { isAgGridHeaderLabelTooltipOverflowing as Fn, isAgGridTextOverflowing as Mn } from "./ag-grid-tooltip-overflow.js";
32
+ import { formatPercent as jt, formatCurrency as Ht } from "../../../i18n/format/format-number.js";
33
+ const Lt = ie(
34
+ () => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
35
+ default: c.AdvancedFilterDialog
36
+ }))
37
+ ), Pt = ie(
38
+ () => import("./comments/comments-host.js").then((c) => ({
39
+ default: c.CommentsHost
40
+ }))
41
+ ), Wt = ie(
42
+ () => import("./chat/chat-host.js").then((c) => ({
43
+ default: c.ChatHost
25
44
  }))
26
45
  );
27
- Fe.registerModules([Ae, Ee]);
28
- const S = "", N = "", J = (s) => {
29
- if (!s) return;
30
- const o = s.cellRendererParams?.splits;
31
- if (Array.isArray(o) && o.length > 0) return o;
32
- const l = s.cellEditorParams?.splits;
33
- if (Array.isArray(l) && l.length > 0) return l;
34
- }, X = (s, o) => {
35
- const l = [];
36
- for (const y of o) {
37
- const g = y?.field?.split(".").pop();
38
- if (!g) {
39
- l.push("");
46
+ st.registerModules([at, ut]);
47
+ const O = "", re = "", Ee = (c) => {
48
+ if (!c) return;
49
+ const i = c.cellRendererParams?.splits;
50
+ if (Array.isArray(i) && i.length > 0) return i;
51
+ const s = c.cellEditorParams?.splits;
52
+ if (Array.isArray(s) && s.length > 0) return s;
53
+ }, Ge = (c, i) => {
54
+ const s = [];
55
+ for (const D of i) {
56
+ const F = D?.field?.split(".").pop();
57
+ if (!F) {
58
+ s.push("");
40
59
  continue;
41
60
  }
42
- const a = s[g];
43
- if (a == null) {
44
- l.push("");
61
+ const d = c[F];
62
+ if (d == null) {
63
+ s.push("");
45
64
  continue;
46
65
  }
47
- if (typeof a == "object" && "value" in a) {
48
- const u = a.value;
49
- l.push(u == null ? "" : String(u));
66
+ if (typeof d == "object" && "value" in d) {
67
+ const m = d.value;
68
+ s.push(m == null ? "" : String(m));
50
69
  continue;
51
70
  }
52
- if (typeof a != "object") {
53
- l.push(String(a));
71
+ if (typeof d != "object") {
72
+ s.push(String(d));
54
73
  continue;
55
74
  }
56
- l.push("");
75
+ s.push("");
57
76
  }
58
- return l;
59
- }, B = (s) => {
77
+ return s;
78
+ }, we = (c) => {
60
79
  if (typeof navigator < "u" && navigator.clipboard?.writeText) {
61
- navigator.clipboard.writeText(s).catch(() => Q(s));
80
+ navigator.clipboard.writeText(c).catch(() => Te(c));
62
81
  return;
63
82
  }
64
- Q(s);
65
- }, Q = (s) => {
83
+ Te(c);
84
+ }, Te = (c) => {
66
85
  if (typeof document > "u") return;
67
- const o = document.createElement("textarea");
68
- o.value = s, o.setAttribute("readonly", ""), o.style.position = "fixed", o.style.top = "0", o.style.left = "0", o.style.opacity = "0", o.style.pointerEvents = "none", document.body.appendChild(o);
86
+ const i = document.createElement("textarea");
87
+ i.value = c, i.setAttribute("readonly", ""), i.style.position = "fixed", i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.pointerEvents = "none", document.body.appendChild(i);
69
88
  try {
70
- o.select(), document.execCommand("copy");
89
+ i.select(), document.execCommand("copy");
71
90
  } finally {
72
- document.body.removeChild(o);
91
+ document.body.removeChild(i);
73
92
  }
74
93
  };
75
- function lt({
76
- children: s,
77
- defaultColDef: o,
78
- defaultColGroupDef: l,
79
- columnDefs: y,
80
- valueFormatters: g,
81
- onGridReady: a,
82
- onGridPreDestroyed: u,
83
- onFilterChanged: b,
84
- onSelectionChanged: h,
85
- onModelUpdated: A,
86
- ensureDomOrder: T = !1,
87
- autoSizeStrategy: w,
88
- tooltipShowMode: k = "whenTruncated",
89
- tooltipShowDelay: I = 500,
90
- tooltipHideDelay: Y = 5e3,
91
- tooltipInteraction: Z = !0,
92
- themeOverride: ee,
94
+ function yn({
95
+ children: c,
96
+ defaultColDef: i,
97
+ defaultColGroupDef: s,
98
+ columnDefs: D,
99
+ valueFormatters: F,
100
+ onGridReady: d,
101
+ onGridPreDestroyed: m,
102
+ onFilterChanged: k,
103
+ onSelectionChanged: M,
104
+ onModelUpdated: K,
105
+ onCellMouseOver: v,
106
+ onCellMouseOut: E,
107
+ onCellClicked: _,
108
+ getContextMenuItems: G,
109
+ comments: j,
110
+ notes: X,
111
+ chat: p,
112
+ ensureDomOrder: Ne = !1,
113
+ autoSizeStrategy: ce,
114
+ tooltipShowMode: De = "whenTruncated",
115
+ tooltipShowDelay: ke = 500,
116
+ tooltipHideDelay: _e = 5e3,
117
+ tooltipInteraction: je = !0,
118
+ themeOverride: He,
93
119
  ...C
94
120
  }) {
95
- const c = L(null), j = L(null), [W, _] = O(null), K = xe(), v = L(K);
96
- v.current = K, Oe(W, j, w), q(() => {
121
+ const a = g(null), H = g(null), [x, se] = ne(null), ae = ct(), w = g(ae);
122
+ w.current = ae;
123
+ const { t: b, locale: ue, dateLocale: de, numberLocale: me, messages: U } = mt(), I = j != null, S = X != null, f = p != null, T = g(null), B = g(null), L = g(j);
124
+ L.current = j;
125
+ const P = g(X);
126
+ P.current = X;
127
+ const W = g(p);
128
+ W.current = p;
129
+ const pe = g(!1), fe = g(!1), ge = g(!1), V = g(void 0), Q = y(
130
+ () => ({
131
+ ...C.context,
132
+ locale: ue,
133
+ dateLocale: de,
134
+ numberLocale: me,
135
+ booleanYes: U.dataTable.booleanYes,
136
+ booleanNo: U.dataTable.booleanNo
137
+ }),
138
+ [C.context, ue, de, me, U.dataTable.booleanYes, U.dataTable.booleanNo]
139
+ );
140
+ z(() => {
141
+ x && (x.setGridOption("context", Q), x.refreshCells({ force: !0 }));
142
+ }, [x, Q]);
143
+ const Le = y(() => {
144
+ if (S)
145
+ return Ct(
146
+ {
147
+ getNote: (e) => P.current.getNote(e),
148
+ setNote: (e, t) => P.current.setNote(e, t)
149
+ },
150
+ () => {
151
+ fe.current || (fe.current = !0, console.warn(Ae));
152
+ }
153
+ );
154
+ }, [S]);
155
+ z(() => {
156
+ if (!C.getRowId) {
157
+ if (I) {
158
+ console.warn(Ie);
159
+ return;
160
+ }
161
+ if (S) {
162
+ console.warn(Ae);
163
+ return;
164
+ }
165
+ f && !ge.current && (ge.current = !0, console.warn(yt));
166
+ }
167
+ }, [f, I, S, C.getRowId]), kt(x, H, ce), z(() => {
97
168
  const e = document.documentElement, t = () => {
98
- Re(e.classList.contains("dark") ? "dark" : "light", e);
169
+ Rt(e.classList.contains("dark") ? "dark" : "light", e);
99
170
  };
100
171
  t();
101
172
  const n = new MutationObserver(t);
102
173
  return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
103
174
  }, []);
104
- const [te, U] = O(!1), [re, V] = O(null), ne = m(() => [], []), oe = f(() => ({
175
+ const [Pe, Ce] = ne(!1), [We, he] = ne(null), Oe = u(() => [], []), Ke = y(() => ({
105
176
  numericColumn: {
106
177
  cellClass: "ag-right-aligned-cell",
107
178
  headerClass: "ag-right-aligned-header",
@@ -111,90 +182,106 @@ function lt({
111
182
  cellClass: "ag-right-aligned-cell",
112
183
  headerClass: "ag-right-aligned-header",
113
184
  filter: "agNumberColumnFilter",
114
- valueFormatter: (e) => e.value != null ? `$${Number(e.value).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : ""
185
+ valueFormatter: (e) => e.value != null ? Ht(Number(e.value), e.context?.numberLocale ?? "en", "USD", {
186
+ minimumFractionDigits: 2,
187
+ maximumFractionDigits: 2
188
+ }) : ""
115
189
  },
116
190
  percentage: {
117
191
  cellClass: "ag-right-aligned-cell",
118
192
  headerClass: "ag-right-aligned-header",
119
193
  filter: "agNumberColumnFilter",
120
- valueFormatter: (e) => e.value != null ? `${Number(e.value).toFixed(2)}%` : ""
194
+ valueFormatter: (e) => e.value != null ? jt(Number(e.value) / 100, e.context?.numberLocale ?? "en", {
195
+ minimumFractionDigits: 2,
196
+ maximumFractionDigits: 2
197
+ }) : ""
121
198
  },
122
199
  dateColumn: {
123
200
  filter: "agDateColumnFilter"
124
201
  }
125
- }), []), P = f(() => ({
126
- gridScopeId: v.current,
202
+ }), []), Z = y(() => ({
203
+ gridScopeId: w.current,
127
204
  openSearch: (e) => {
128
- if (!c.current) return;
129
- const t = c.current.getGridOption("context") || {};
130
- c.current.setGridOption("context", { ...t, activeSearchColumnId: e }), H(v.current, e), R(c.current);
205
+ if (!a.current) return;
206
+ const t = a.current.getGridOption("context") || {};
207
+ a.current.setGridOption("context", { ...t, activeSearchColumnId: e }), oe(w.current, e), J(a.current);
131
208
  },
132
209
  closeSearch: () => {
133
- if (!c.current) return;
134
- const e = c.current.getGridOption("context") || {};
135
- c.current.setGridOption("context", { ...e, activeSearchColumnId: null }), H(v.current, null), R(c.current);
210
+ if (!a.current) return;
211
+ const e = a.current.getGridOption("context") || {};
212
+ a.current.setGridOption("context", { ...e, activeSearchColumnId: null }), oe(w.current, null), J(a.current);
136
213
  },
137
214
  openAdvancedFilter: (e) => {
138
- V(e || null), U(!0);
215
+ he(e || null), Ce(!0);
139
216
  },
140
217
  closeAdvancedFilter: () => {
141
- U(!1), V(null);
218
+ Ce(!1), he(null);
142
219
  },
143
220
  applyAdvancedFilter: (e) => {
144
- if (!c.current) return;
145
- const t = je(e);
146
- c.current.setFilterModel(t), c.current.onFilterChanged(), R(c.current);
221
+ if (!a.current) return;
222
+ const t = wt(e);
223
+ a.current.setFilterModel(t), a.current.onFilterChanged(), J(a.current);
147
224
  }
148
- }), []), le = m((e) => {
149
- c.current = e.api, _(e.api);
225
+ }), []), Ue = u((e) => {
226
+ a.current = e.api, se(e.api), V.current = Re(
227
+ e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
228
+ );
150
229
  const t = e.api.getGridOption("context") || {};
151
230
  e.api.setGridOption("context", {
152
231
  ...t,
153
232
  activeSearchColumnId: null,
154
- headerSearchScopeId: v.current
155
- }), H(v.current, null), a && a(e);
156
- }, [a]), ie = m(
233
+ headerSearchScopeId: w.current
234
+ }), oe(w.current, null);
235
+ const n = W.current;
236
+ if (n && n.column !== !1 && n.colId == null) {
237
+ const l = typeof n.column == "object" ? n.column.pinned : void 0, r = l === void 0 ? "right" : l;
238
+ (r === "left" || r === "right") && e.api.setColumnsPinned([bt], r);
239
+ }
240
+ d && d(e);
241
+ }, [d]), Ve = u(
157
242
  (e) => {
158
- He(v.current), c.current = null, _(null), u?.(e);
243
+ _t(w.current), a.current = null, se(null), m?.(e);
159
244
  },
160
- [u]
161
- ), se = m(
245
+ [m]
246
+ ), Ye = u(
162
247
  (e) => {
163
- R(e.api), b?.(e);
248
+ J(e.api), k?.(e);
164
249
  },
165
- [b]
166
- ), ce = m(
250
+ [k]
251
+ ), qe = u(
167
252
  (e) => {
168
- h?.(e);
253
+ M?.(e);
169
254
  },
170
- [h]
171
- ), ae = m(
255
+ [M]
256
+ ), ze = u(
172
257
  (e) => {
173
- A?.(e);
258
+ V.current = Re(
259
+ e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
260
+ ), K?.(e);
174
261
  },
175
- [A]
262
+ [K]
176
263
  );
177
- q(() => {
178
- const e = j.current;
264
+ z(() => {
265
+ const e = H.current;
179
266
  if (!e) return;
180
267
  const t = (n) => {
181
268
  if (n.key !== "Enter" && n.key !== " ") return;
182
- const i = n.target;
183
- if (!i.classList.contains("ag-cell") && !i.classList.contains("ag-header-cell")) return;
184
- const r = i.querySelector(
269
+ const l = n.target;
270
+ if (!l.classList.contains("ag-cell") && !l.classList.contains("ag-header-cell")) return;
271
+ const r = l.querySelector(
185
272
  'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
186
273
  );
187
274
  r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
188
275
  };
189
276
  return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
190
277
  }, []);
191
- const ue = f(() => ({
192
- headerComponent: Te,
278
+ const Je = y(() => ({
279
+ headerComponent: Ft,
193
280
  // Default cell renderer wraps text in a span so display:flex centering
194
281
  // and text-overflow:ellipsis both work (ellipsis doesn't work on
195
282
  // anonymous flex text nodes, but works on flex child elements).
196
- cellRenderer: ke,
197
- ...o,
283
+ cellRenderer: Et,
284
+ ...i,
198
285
  suppressHeaderKeyboardEvent: (e) => {
199
286
  const { event: t } = e, n = t.target;
200
287
  if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
@@ -202,49 +289,87 @@ function lt({
202
289
  if (t.key === "Enter" || t.key === " ") {
203
290
  const r = n.closest(".ag-header-cell");
204
291
  if (r) {
205
- const d = r.querySelector('[role="checkbox"], button, [role="switch"], input');
206
- if (d)
207
- return t.preventDefault(), d.click(), !0;
292
+ const o = r.querySelector('[role="checkbox"], button, [role="switch"], input');
293
+ if (o)
294
+ return t.preventDefault(), o.click(), !0;
208
295
  }
209
296
  }
210
- return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
297
+ return i?.suppressHeaderKeyboardEvent?.(e) ?? !1;
211
298
  },
212
299
  headerComponentParams: {
213
- ...o?.headerComponentParams
214
- }
215
- }), [o]), D = f(() => ({
216
- ...l,
300
+ ...i?.headerComponentParams
301
+ },
302
+ ...I ? {
303
+ cellClassRules: {
304
+ ...i?.cellClassRules,
305
+ [gt]: (e) => {
306
+ const t = L.current;
307
+ return t ? pt(e, t.hasIndicator, () => {
308
+ pe.current || (pe.current = !0, console.warn(Ie));
309
+ }) : !1;
310
+ }
311
+ }
312
+ } : {}
313
+ }), [i, I]), $ = y(() => ({
314
+ ...s,
217
315
  headerGroupComponentParams: {
218
- ...l?.headerGroupComponentParams,
219
- innerHeaderGroupComponent: l?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
316
+ ...s?.headerGroupComponentParams,
317
+ innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
220
318
  }
221
- }), [l]), de = f(
222
- () => we(y ?? void 0, D),
223
- [y, D]
224
- ), pe = f(() => ({
225
- ...Le,
319
+ }), [s]), ye = f && p != null && p.column !== !1 && p.colId == null, be = typeof p?.column == "object" ? p.column.pinned : void 0, ve = typeof p?.column == "object" ? p.column.width : void 0, ee = y(() => {
320
+ if (f)
321
+ return vt(() => {
322
+ const e = W.current;
323
+ return {
324
+ hasConversation: (t) => e.hasConversation(t),
325
+ unreadCount: (t) => e.unreadCount?.(t) ?? 0,
326
+ priority: (t) => e.priority?.(t),
327
+ label: (t, n) => {
328
+ const l = e.getRowTitle?.(t) ?? t;
329
+ return n > 0 ? b("chat.cellLabelUnread", { title: l, count: n }) : b("chat.cellLabel", { title: l });
330
+ }
331
+ };
332
+ });
333
+ }, [f, b]), Xe = y(
334
+ () => {
335
+ const e = Mt(D ?? void 0, $);
336
+ return !ye || !ee ? e : xt(
337
+ e ?? [],
338
+ It({
339
+ headerName: b("chat.columnHeader"),
340
+ cellRenderer: ee,
341
+ pinned: be,
342
+ width: ve
343
+ })
344
+ );
345
+ },
346
+ [ee, be, ve, D, ye, $, b]
347
+ ), Be = y(() => ({
348
+ ...Dt,
226
349
  // Always available - value formatters
227
- CustomInnerHeaderGroup: z,
228
- CustomHeaderGroup: z,
350
+ CustomInnerHeaderGroup: Me,
351
+ CustomHeaderGroup: Me,
229
352
  ...C.components,
230
353
  // User components override
231
- ...g
354
+ ...F
232
355
  // Optional custom formatters override defaults
233
- }), [g, C.components]), me = m((e) => {
234
- const t = e.value;
235
- if (t == null || typeof t != "object") return t;
236
- const n = J(e.column?.getColDef());
237
- if (n && n.length > 0) {
238
- const r = X(t, n);
239
- if (n.length === 1) {
240
- const d = n[0]?.field?.split(".").pop(), x = d ? t[d] : void 0;
241
- return x && typeof x == "object" && "value" in x ? x.value ?? "" : r[0];
356
+ }), [F, C.components]), Qe = u((e) => {
357
+ const t = e.column?.getColId?.();
358
+ if (Fe(t)) return "";
359
+ const n = e.value;
360
+ if (n == null || typeof n != "object") return n;
361
+ const l = Ee(e.column?.getColDef());
362
+ if (l && l.length > 0) {
363
+ const o = Ge(n, l);
364
+ if (l.length === 1) {
365
+ const N = l[0]?.field?.split(".").pop(), A = N ? n[N] : void 0;
366
+ return A && typeof A == "object" && "value" in A ? A.value ?? "" : o[0];
242
367
  }
243
- return N + r.join(S);
368
+ return re + o.join(O);
244
369
  }
245
- const i = Object.entries(t).map(([, r]) => r && typeof r == "object" && "value" in r ? r.value : typeof r != "object" && typeof r < "u" ? r : null).filter((r) => r != null);
246
- return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(S);
247
- }, []), fe = m((e) => {
370
+ const r = Object.entries(n).map(([, o]) => o && typeof o == "object" && "value" in o ? o.value : typeof o != "object" && typeof o < "u" ? o : null).filter((o) => o != null);
371
+ return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(O);
372
+ }, []), Ze = u((e) => {
248
373
  if (typeof e.value == "string") {
249
374
  const t = e.value.trim();
250
375
  if (t.startsWith("{") || t.startsWith("["))
@@ -255,142 +380,244 @@ function lt({
255
380
  }
256
381
  }
257
382
  return e.value;
258
- }, []), ge = m((e) => {
383
+ }, []), $e = u((e) => {
259
384
  const t = e?.data ?? "";
260
- if (!t.includes(S) && !t.includes(N)) {
261
- B(t);
385
+ if (!t.includes(O) && !t.includes(re)) {
386
+ we(t);
262
387
  return;
263
388
  }
264
- const n = [], i = t.split(`
389
+ const n = [], l = t.split(`
265
390
  `);
266
- for (let r = 0; r < i.length; r++) {
267
- const d = i[r];
268
- if (d.length === 0 && r === i.length - 1) {
391
+ for (let r = 0; r < l.length; r++) {
392
+ const o = l[r];
393
+ if (o.length === 0 && r === l.length - 1) {
269
394
  n.push("");
270
395
  continue;
271
396
  }
272
- const G = d.split(" ").map((p) => p.startsWith(N) ? { isSplit: !0, slots: p.slice(1).split(S) } : { isSplit: !1, slots: p.split(S) }), $ = Math.max(1, ...G.map((p) => p.slots.length));
273
- if ($ === 1) {
274
- n.push(G.map((p) => p.slots[0] ?? "").join(" "));
397
+ const A = o.split(" ").map((h) => h.startsWith(re) ? { isSplit: !0, slots: h.slice(1).split(O) } : { isSplit: !1, slots: h.split(O) }), te = Math.max(1, ...A.map((h) => h.slots.length));
398
+ if (te === 1) {
399
+ n.push(A.map((h) => h.slots[0] ?? "").join(" "));
275
400
  continue;
276
401
  }
277
- for (let p = 0; p < $; p++) {
278
- const ve = G.map((M) => !M.isSplit && M.slots.length === 1 ? M.slots[0] : M.slots[p] ?? "");
279
- n.push(ve.join(" "));
402
+ for (let h = 0; h < te; h++) {
403
+ const it = A.map((q) => !q.isSplit && q.slots.length === 1 ? q.slots[0] : q.slots[h] ?? "");
404
+ n.push(it.join(" "));
280
405
  }
281
406
  }
282
- B(n.join(`
407
+ we(n.join(`
283
408
  `));
284
- }, []), E = m((e) => {
285
- const t = e.value;
286
- if (t == null) return "";
287
- if (typeof t != "object") return String(t);
288
- const n = J(e.column?.getColDef());
289
- if (n && n.length > 0) {
290
- const r = X(t, n);
291
- return n.length === 1 ? r[0] : r.join(`
409
+ }, []), Y = u((e) => {
410
+ const t = e.column?.getColId?.();
411
+ if (Fe(t)) return "";
412
+ const n = e.value;
413
+ if (n == null) return "";
414
+ if (typeof n != "object") return String(n);
415
+ const l = Ee(e.column?.getColDef());
416
+ if (l && l.length > 0) {
417
+ const o = Ge(n, l);
418
+ return l.length === 1 ? o[0] : o.join(`
292
419
  `);
293
420
  }
294
- const i = [];
295
- for (const r of Object.values(t)) {
296
- if (r && typeof r == "object" && "value" in r) {
297
- const d = r.value;
298
- if (d == null) continue;
299
- i.push(String(d));
421
+ const r = [];
422
+ for (const o of Object.values(n)) {
423
+ if (o && typeof o == "object" && "value" in o) {
424
+ const N = o.value;
425
+ if (N == null) continue;
426
+ r.push(String(N));
300
427
  continue;
301
428
  }
302
- r != null && typeof r != "object" && i.push(String(r));
429
+ o != null && typeof o != "object" && r.push(String(o));
303
430
  }
304
- return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
431
+ return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(`
305
432
  `);
306
- }, []), he = f(() => ({
307
- processCellCallback: E,
308
- ...C.defaultCsvExportParams ?? {}
309
- }), [E, C.defaultCsvExportParams]), Ce = f(() => ({
310
- processCellCallback: E,
311
- ...C.defaultExcelExportParams ?? {}
312
- }), [E, C.defaultExcelExportParams]);
313
- return /* @__PURE__ */ ye(Ie.Provider, { value: P, children: [
314
- /* @__PURE__ */ F("div", { ref: j, "data-component": "ag-grid-react", style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ F(
315
- Ge,
433
+ }, []), et = y(() => {
434
+ const e = C.defaultCsvExportParams ?? {};
435
+ return {
436
+ processCellCallback: Y,
437
+ ...e,
438
+ ...f && !("columnKeys" in e) ? {
439
+ get columnKeys() {
440
+ return V.current;
441
+ }
442
+ } : {}
443
+ };
444
+ }, [f, Y, C.defaultCsvExportParams]), tt = y(() => {
445
+ const e = C.defaultExcelExportParams ?? {};
446
+ return {
447
+ processCellCallback: Y,
448
+ ...e,
449
+ ...f && !("columnKeys" in e) ? {
450
+ get columnKeys() {
451
+ return V.current;
452
+ }
453
+ } : {}
454
+ };
455
+ }, [f, Y, C.defaultExcelExportParams]), nt = u(
456
+ (e) => {
457
+ v?.(e), !Se(P.current, L.current?.commentMode, e) && T.current?.onCellMouseOver(e);
458
+ },
459
+ [v]
460
+ ), ot = u(
461
+ (e) => {
462
+ E?.(e), T.current?.onCellMouseOut(e);
463
+ },
464
+ [E]
465
+ ), rt = u(
466
+ (e) => {
467
+ _?.(e);
468
+ const t = W.current, n = t ? St(t) : void 0;
469
+ if (n && e.column?.getColId() === n) {
470
+ B.current?.onCellClicked(e);
471
+ return;
472
+ }
473
+ Se(P.current, L.current?.commentMode, e) || T.current?.onCellClicked(e);
474
+ },
475
+ [_]
476
+ ), lt = u(
477
+ (e) => {
478
+ const t = (G ? G(e) : e.defaultItems) ?? [];
479
+ let n = Array.isArray(t) ? t : [];
480
+ const l = L.current;
481
+ l && (n = ft({
482
+ items: n,
483
+ config: l,
484
+ address: e.node?.id && e.column ? { rowId: e.node.id, colId: e.column.getColId() } : void 0,
485
+ labels: {
486
+ addComment: b("comments.addComment"),
487
+ openComment: b("comments.openComment"),
488
+ deleteThread: b("comments.deleteThread")
489
+ },
490
+ onAdd: (o) => T.current?.openAt(o, "composer"),
491
+ onOpen: (o) => T.current?.openAt(o, "expanded"),
492
+ onDeleteThread: (o) => T.current?.openAt(o, "expanded"),
493
+ preserveNativeNoteItems: S
494
+ }));
495
+ const r = W.current;
496
+ return r && (n = ht({
497
+ items: n,
498
+ config: r,
499
+ rowId: e.node?.id ?? void 0,
500
+ openLabel: b("chat.openChat"),
501
+ onOpen: (o) => B.current?.openRow(o)
502
+ })), n;
503
+ },
504
+ [S, b, G]
505
+ );
506
+ return /* @__PURE__ */ xe(Gt.Provider, { value: Z, children: [
507
+ /* @__PURE__ */ xe(
508
+ "div",
316
509
  {
317
- theme: ee ?? Me,
318
- defaultColDef: ue,
319
- columnDefs: de,
320
- cellSelection: !0,
321
- defaultColGroupDef: D,
322
- onGridReady: le,
323
- onGridPreDestroyed: ie,
324
- onFilterChanged: se,
325
- onSelectionChanged: ce,
326
- onModelUpdated: ae,
327
- tooltipShowMode: k,
328
- tooltipShowDelay: I,
329
- tooltipHideDelay: Y,
330
- tooltipInteraction: Z,
331
- processCellForClipboard: me,
332
- processCellFromClipboard: fe,
333
- sendToClipboard: ge,
334
- ensureDomOrder: T,
335
- suppressHeaderFocus: !1,
336
- suppressFocusAfterRefresh: !0,
337
- suppressGroupRowsSticky: !0,
338
- hidePaddedHeaderRows: !0,
339
- suppressServerSideFullWidthLoadingRow: !0,
340
- columnTypes: oe,
341
- autoSizeStrategy: w,
342
- ...C,
343
- components: pe,
344
- defaultCsvExportParams: he,
345
- defaultExcelExportParams: Ce,
346
- getMainMenuItems: ne
510
+ ref: H,
511
+ "data-component": "ag-grid-react",
512
+ ...I ? { "data-iv-comments": "" } : {},
513
+ ...S ? { "data-iv-notes": "" } : {},
514
+ ...f ? { "data-iv-chat": "" } : {},
515
+ ...j?.commentMode ? { "data-iv-comment-mode": "" } : {},
516
+ style: { width: "100%", height: "100%", position: I || f ? "relative" : void 0 },
517
+ children: [
518
+ /* @__PURE__ */ R(
519
+ dt,
520
+ {
521
+ theme: He ?? At,
522
+ defaultColDef: Je,
523
+ columnDefs: Xe,
524
+ cellSelection: !0,
525
+ defaultColGroupDef: $,
526
+ onGridReady: Ue,
527
+ onGridPreDestroyed: Ve,
528
+ onFilterChanged: Ye,
529
+ onSelectionChanged: qe,
530
+ onModelUpdated: ze,
531
+ tooltipShowMode: De,
532
+ tooltipShowDelay: ke,
533
+ tooltipHideDelay: _e,
534
+ tooltipInteraction: je,
535
+ processCellForClipboard: Qe,
536
+ processCellFromClipboard: Ze,
537
+ sendToClipboard: $e,
538
+ ensureDomOrder: Ne,
539
+ suppressHeaderFocus: !1,
540
+ suppressFocusAfterRefresh: !0,
541
+ suppressGroupRowsSticky: !0,
542
+ hidePaddedHeaderRows: !0,
543
+ suppressServerSideFullWidthLoadingRow: !0,
544
+ columnTypes: Ke,
545
+ autoSizeStrategy: ce,
546
+ ...C,
547
+ context: Q,
548
+ components: Be,
549
+ defaultCsvExportParams: et,
550
+ defaultExcelExportParams: tt,
551
+ getMainMenuItems: Oe,
552
+ ...I || f ? {
553
+ ...I ? {
554
+ onCellMouseOver: nt,
555
+ onCellMouseOut: ot
556
+ } : {
557
+ ...v ? { onCellMouseOver: v } : {},
558
+ ...E ? { onCellMouseOut: E } : {}
559
+ },
560
+ onCellClicked: rt,
561
+ getContextMenuItems: lt
562
+ } : {
563
+ ...v ? { onCellMouseOver: v } : {},
564
+ ...E ? { onCellMouseOut: E } : {},
565
+ ..._ ? { onCellClicked: _ } : {},
566
+ ...G ? { getContextMenuItems: G } : {}
567
+ },
568
+ ...S ? { notesDataSource: Le } : {}
569
+ }
570
+ ),
571
+ j ? /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(Pt, { ref: T, comments: j, gridApi: x, containerRef: H }) }) : null,
572
+ p ? /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(Wt, { ref: B, chat: p, gridApi: x, containerRef: H }) }) : null
573
+ ]
347
574
  }
348
- ) }),
349
- s,
350
- /* @__PURE__ */ F(
351
- We,
575
+ ),
576
+ c,
577
+ /* @__PURE__ */ R(
578
+ Ot,
352
579
  {
353
- isOpen: te,
354
- columnId: re,
355
- gridApi: W,
356
- onClose: P.closeAdvancedFilter,
357
- onApply: P.applyAdvancedFilter
580
+ isOpen: Pe,
581
+ columnId: We,
582
+ gridApi: x,
583
+ onClose: Z.closeAdvancedFilter,
584
+ onApply: Z.applyAdvancedFilter
358
585
  }
359
586
  )
360
587
  ] });
361
588
  }
362
- function We({
363
- isOpen: s,
364
- columnId: o,
365
- gridApi: l,
366
- onClose: y,
367
- onApply: g
589
+ function Ot({
590
+ isOpen: c,
591
+ columnId: i,
592
+ gridApi: s,
593
+ onClose: D,
594
+ onApply: F
368
595
  }) {
369
- if (!s || !o || !l) return null;
370
- const a = l.getColumn(o);
371
- if (!a) return null;
372
- const u = a.getColDef(), b = u.headerComponentParams, h = Pe(u), A = h.text !== -1 || h.number !== -1 || h.date !== -1, T = h.set !== -1, k = u.filter === "agMultiColumnFilter" && (A || T) ? "multi" : u.filter === "agNumberColumnFilter" ? "number" : u.filter === "agDateColumnFilter" ? "date" : u.filter === "agSetColumnFilter" || b?.selectOptions ? "select" : "text", I = De(l.getFilterModel());
373
- return /* @__PURE__ */ F(Se, { fallback: null, children: /* @__PURE__ */ F(
374
- Ne,
596
+ if (!c || !i || !s) return null;
597
+ const d = s.getColumn(i);
598
+ if (!d) return null;
599
+ const m = d.getColDef(), k = m.headerComponentParams, M = Tt(m), K = M.text !== -1 || M.number !== -1 || M.date !== -1, v = M.set !== -1, _ = m.filter === "agMultiColumnFilter" && (K || v) ? "multi" : m.filter === "agNumberColumnFilter" ? "number" : m.filter === "agDateColumnFilter" ? "date" : m.filter === "agSetColumnFilter" || k?.selectOptions ? "select" : "text", G = Nt(s.getFilterModel());
600
+ return /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(
601
+ Lt,
375
602
  {
376
- isOpen: s,
377
- onClose: y,
378
- onApply: g,
379
- columnId: o,
380
- columnLabel: u.headerName || o,
381
- columnType: k,
382
- selectOptions: b?.selectOptions,
383
- isMultiSelect: b?.isMultiSelect,
384
- initialModel: I,
385
- api: l
603
+ isOpen: c,
604
+ onClose: D,
605
+ onApply: F,
606
+ columnId: i,
607
+ columnLabel: m.headerName || i,
608
+ columnType: _,
609
+ selectOptions: k?.selectOptions,
610
+ isMultiSelect: k?.isMultiSelect,
611
+ initialModel: G,
612
+ api: s
386
613
  }
387
614
  ) });
388
615
  }
389
616
  export {
390
- lt as AgGridWrapper,
391
- mt as isAgGridHeaderLabelTooltipOverflowing,
392
- ft as isAgGridTextOverflowing,
393
- ct as subscribeGridApiEvent,
394
- at as subscribeGridApiEvents,
395
- dt as useAgGridTruncationTooltip
617
+ yn as AgGridWrapper,
618
+ Fn as isAgGridHeaderLabelTooltipOverflowing,
619
+ Mn as isAgGridTextOverflowing,
620
+ xn as subscribeGridApiEvent,
621
+ In as subscribeGridApiEvents,
622
+ An as useAgGridTruncationTooltip
396
623
  };