impact-nova 2.6.0-alpha.0 → 2.6.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 (316) hide show
  1. package/README.md +25 -27
  2. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +3 -28
  3. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +3 -0
  4. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +38 -31
  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/headers/advanced-filter/advanced-filter-dialog.js +65 -75
  7. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
  8. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
  9. package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
  10. package/dist/components/data/ag-grid-react/headers/components/header-info.d.ts +9 -3
  11. package/dist/components/data/ag-grid-react/headers/components/header-info.js +69 -61
  12. package/dist/components/data/ag-grid-react/headers/components/info-modal.js +8 -8
  13. package/dist/components/data/ag-grid-react/headers/header-search-input.js +119 -122
  14. package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +1 -2
  15. package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +20 -25
  16. package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
  17. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  18. package/dist/components/data/ag-grid-react/index.js +254 -481
  19. package/dist/components/data/ag-grid-react/theme.js +2 -6
  20. package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +0 -4
  21. package/dist/components/data/ag-grid-react/value-formatters.d.ts +19 -0
  22. package/dist/components/data/ag-grid-react/value-formatters.js +90 -88
  23. package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +2 -0
  24. package/dist/components/data/data-table/build-column-tree-from-grid.js +64 -58
  25. package/dist/components/data/data-table/column-picker-authority.d.ts +35 -0
  26. package/dist/components/data/data-table/column-picker-authority.js +118 -0
  27. package/dist/components/data/data-table/column-picker-drop-validation.d.ts +7 -0
  28. package/dist/components/data/data-table/column-picker-drop-validation.js +37 -0
  29. package/dist/components/data/data-table/column-savability.d.ts +3 -0
  30. package/dist/components/data/data-table/column-savability.js +10 -0
  31. package/dist/components/data/data-table/data-table-column-apply.d.ts +2 -0
  32. package/dist/components/data/data-table/data-table-column-apply.js +84 -73
  33. package/dist/components/data/data-table/data-table-column-def-pin.js +31 -34
  34. package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +10 -0
  35. package/dist/components/data/data-table/data-table-column-list-tree-apply.js +79 -0
  36. package/dist/components/data/data-table/data-table-column-list.js +122 -64
  37. package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +12 -6
  38. package/dist/components/data/data-table/data-table-column-tree-cache.js +250 -131
  39. package/dist/components/data/data-table/data-table-context.js +5 -5
  40. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +27 -0
  41. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +196 -0
  42. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +1 -0
  43. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +7 -0
  44. package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
  45. package/dist/components/data/data-table/data-table-sheet.js +1 -2
  46. package/dist/components/data/data-table/index.d.ts +2 -0
  47. package/dist/components/data/data-table/index.js +32 -28
  48. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +5 -0
  49. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +28 -10
  50. package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +12 -0
  51. package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +12 -0
  52. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +10 -0
  53. package/dist/components/data/data-table/use-data-table-column-list-sync.js +250 -196
  54. package/dist/components/data/nested-list/components/NestedListContent.d.ts +10 -2
  55. package/dist/components/data/nested-list/components/NestedListContent.js +253 -138
  56. package/dist/components/data/nested-list/components/SortableItem.d.ts +2 -1
  57. package/dist/components/data/nested-list/components/SortableItem.js +62 -60
  58. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +10 -20
  59. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +44 -233
  60. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +24 -0
  61. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +128 -0
  62. package/dist/components/data/nested-list/nested-list-constants.d.ts +4 -1
  63. package/dist/components/data/nested-list/nested-list-constants.js +10 -4
  64. package/dist/components/data/nested-list/nested-list-display-utils.d.ts +11 -0
  65. package/dist/components/data/nested-list/nested-list-display-utils.js +74 -0
  66. package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +31 -0
  67. package/dist/components/data/nested-list/nested-list-drop-engine.js +209 -0
  68. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +26 -0
  69. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +67 -0
  70. package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +4 -0
  71. package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +43 -0
  72. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +3 -0
  73. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +34 -0
  74. package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +9 -0
  75. package/dist/components/data/nested-list/nested-list-row-estimates.js +14 -0
  76. package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +36 -0
  77. package/dist/components/data/nested-list/nested-list-scroll-anchor.js +47 -0
  78. package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +59 -0
  79. package/dist/components/data/nested-list/nested-list-virtual-drop.js +341 -0
  80. package/dist/components/data/nested-list/nested-list.js +322 -336
  81. package/dist/components/data/nested-list/nested-list.types.d.ts +17 -0
  82. package/dist/components/data-display/calendar/calendar-available-view.d.ts +6 -2
  83. package/dist/components/data-display/calendar/calendar-available-view.js +18 -19
  84. package/dist/components/data-display/calendar/calendar-config.js +21 -22
  85. package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
  86. package/dist/components/data-display/calendar/calendar-day-picker-view.js +35 -36
  87. package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
  88. package/dist/components/data-display/calendar/calendar-fiscal-labels.js +62 -50
  89. package/dist/components/data-display/calendar/calendar-quarter-utils.js +12 -12
  90. package/dist/components/data-display/calendar/calendar-week-utils.d.ts +6 -0
  91. package/dist/components/data-display/calendar/calendar-week-utils.js +33 -33
  92. package/dist/components/data-display/calendar/calendar-year-panes.js +68 -58
  93. package/dist/components/data-display/calendar/calendar-year-utils.d.ts +13 -0
  94. package/dist/components/data-display/calendar/calendar-year-utils.js +59 -50
  95. package/dist/components/data-display/calendar/calendar.js +156 -153
  96. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +22 -23
  97. package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +0 -1
  98. package/dist/components/data-display/calendar/use-calendar-i18n.js +9 -10
  99. package/dist/components/data-display/chart/chart.js +72 -72
  100. package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
  101. package/dist/components/data-display/chart/chart.utils.js +31 -40
  102. package/dist/components/feedback/sheet/sheet.js +1 -1
  103. package/dist/components/feedback/toast/toast.d.ts +1 -1
  104. package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
  105. package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
  106. package/dist/components/flows/filter-panel/filter-panel.js +64 -65
  107. package/dist/components/flows/filter-panel/filter-panel.types.d.ts +0 -1
  108. package/dist/components/flows/guidance/guidance-layer.js +34 -31
  109. package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +29 -20
  110. package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
  111. package/dist/components/flows/guidance/renderers/announcement-renderer.js +74 -28
  112. package/dist/components/flows/guidance/renderers/guidance-action-tap-icon.d.ts +5 -0
  113. package/dist/components/flows/guidance/renderers/guidance-action-tap-icon.js +68 -0
  114. package/dist/components/flows/guidance/renderers/guidance-announcement-surface.d.ts +5 -0
  115. package/dist/components/flows/guidance/renderers/guidance-announcement-surface.js +76 -0
  116. package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +43 -2
  117. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +322 -99
  118. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +3 -0
  119. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +189 -148
  120. package/dist/components/flows/guidance/renderers/guidance-shortcut-display.d.ts +9 -0
  121. package/dist/components/flows/guidance/renderers/guidance-shortcut-display.js +36 -0
  122. package/dist/components/flows/guidance/renderers/guidance-tour-overlay.d.ts +2 -1
  123. package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +152 -89
  124. package/dist/components/forms/date-picker/date-picker.js +126 -125
  125. package/dist/components/forms/date-picker/date-range-picker.js +192 -191
  126. package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +6 -6
  127. package/dist/components/forms/date-picker/fiscal-pass-through.js +7 -3
  128. package/dist/components/forms/date-picker/multi-date-picker.js +67 -66
  129. package/dist/components/forms/date-picker/multi-quarter-picker.js +87 -87
  130. package/dist/components/forms/date-picker/multi-week-picker.js +83 -82
  131. package/dist/components/forms/date-picker/multi-year-picker.js +81 -81
  132. package/dist/components/forms/date-picker/quarter-range-picker.js +84 -84
  133. package/dist/components/forms/date-picker/week-picker.js +175 -174
  134. package/dist/components/forms/date-picker/week-range-picker.js +214 -213
  135. package/dist/components/forms/date-picker/year-range-picker.js +79 -79
  136. package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +0 -1
  137. package/dist/components/ui/local-raster-icons/rasterIcons.js +25 -27
  138. package/dist/form-react/Fields/ChipsField.js +49 -48
  139. package/dist/form-react/Fields/DateRangeField.js +25 -25
  140. package/dist/form-react/Fields/MonthRangeField.js +57 -57
  141. package/dist/form-react/Fields/MultiMonthPickerField.js +28 -26
  142. package/dist/form-react/Fields/MultiWeekPickerField.js +41 -38
  143. package/dist/form-react/Fields/MultiYearPickerField.js +45 -45
  144. package/dist/form-react/Fields/SelectField.js +24 -26
  145. package/dist/form-react/Fields/TextFieldWithBackendValidation.js +27 -26
  146. package/dist/form-react/Fields/WeekRangePicker.js +18 -16
  147. package/dist/form-react/Fields/YearPickerField.js +27 -27
  148. package/dist/form-react/Fields/YearRangePickerField.js +29 -29
  149. package/dist/form-react/fields.d.ts +3 -0
  150. package/dist/form-react/fields.js +35 -29
  151. package/dist/form-react/types/fields.types.d.ts +39 -0
  152. package/dist/form-react/utils/date.utils.d.ts +52 -2
  153. package/dist/form-react/utils/date.utils.js +198 -62
  154. package/dist/i18n/defaultMessages.d.ts +5 -143
  155. package/dist/i18n/defaultMessages.js +25 -163
  156. package/dist/i18n/getDateFnsLocale.d.ts +4 -5
  157. package/dist/i18n/getDateFnsLocale.js +16 -46
  158. package/dist/i18n/i18n.types.d.ts +0 -13
  159. package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
  160. package/dist/i18n/impact-nova-i18n-context.js +25 -33
  161. package/dist/i18n/impact-nova-i18n-defaults.js +6 -8
  162. package/dist/i18n/index.d.ts +1 -4
  163. package/dist/i18n/index.js +16 -41
  164. package/dist/i18n/locales/de.js +3 -141
  165. package/dist/i18n/locales/es.js +3 -141
  166. package/dist/i18n/locales/hi.js +3 -141
  167. package/dist/i18n/locales/kn.js +3 -141
  168. package/dist/impact-nova-components.css +0 -249
  169. package/dist/impact-nova-tokens.scss +22 -6
  170. package/dist/impact-nova.css +1 -1
  171. package/dist/index.d.ts +1 -1
  172. package/dist/index.js +603 -622
  173. package/dist/lib/fiscal-calendar/index.d.ts +2 -2
  174. package/dist/lib/fiscal-calendar/index.js +26 -24
  175. package/dist/lib/fiscal-calendar/week-selection.d.ts +5 -0
  176. package/dist/lib/fiscal-calendar/week-selection.js +56 -49
  177. package/dist/lib/guidance/engine/guidance-engine.d.ts +9 -0
  178. package/dist/lib/guidance/engine/guidance-engine.js +127 -65
  179. package/dist/lib/guidance/engine/manifest-validator.js +37 -30
  180. package/dist/lib/guidance/targets/target-resolver.d.ts +1 -1
  181. package/dist/lib/guidance/targets/target-resolver.js +32 -30
  182. package/dist/lib/guidance/types/guidance.types.d.ts +41 -0
  183. package/dist/lib/hash/fnv1a128.d.ts +16 -0
  184. package/dist/lib/hash/fnv1a128.js +21 -0
  185. package/dist/llms/index.js +2 -26
  186. package/dist/llms/rules/ag-grid.js +1 -1
  187. package/dist/llms/rules/best-practices.js +1 -1
  188. package/dist/llms/rules/installation.js +1 -1
  189. package/dist/llms/rules/migration.js +1 -1
  190. package/dist/llms/rules/real-world-patterns.js +1 -1
  191. package/dist/llms/rules/requirements.js +1 -1
  192. package/dist/llms/rules/troubleshooting.js +1 -1
  193. package/dist/providers/app-providers.d.ts +1 -3
  194. package/dist/providers/app-providers.js +11 -22
  195. package/package.json +2 -13
  196. package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +0 -9
  197. package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +0 -22
  198. package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +0 -20
  199. package/dist/components/data/ag-grid-react/chat/chat-column.js +0 -81
  200. package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +0 -10
  201. package/dist/components/data/ag-grid-react/chat/chat-composer.js +0 -352
  202. package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +0 -17
  203. package/dist/components/data/ag-grid-react/chat/chat-constants.js +0 -22
  204. package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +0 -41
  205. package/dist/components/data/ag-grid-react/chat/chat-format.js +0 -94
  206. package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +0 -10
  207. package/dist/components/data/ag-grid-react/chat/chat-host.js +0 -651
  208. package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +0 -13
  209. package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +0 -2
  210. package/dist/components/data/ag-grid-react/chat/chat-html.js +0 -40
  211. package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +0 -13
  212. package/dist/components/data/ag-grid-react/chat/chat-identity.js +0 -24
  213. package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +0 -13
  214. package/dist/components/data/ag-grid-react/chat/chat-menu.js +0 -15
  215. package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +0 -17
  216. package/dist/components/data/ag-grid-react/chat/chat-notify.js +0 -124
  217. package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +0 -13
  218. package/dist/components/data/ag-grid-react/chat/chat-persist.js +0 -34
  219. package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +0 -13
  220. package/dist/components/data/ag-grid-react/chat/chat-priority.js +0 -79
  221. package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +0 -2
  222. package/dist/components/data/ag-grid-react/chat/chat-summaries.js +0 -24
  223. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +0 -72
  224. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +0 -713
  225. package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +0 -6
  226. package/dist/components/data/ag-grid-react/chat/chat-toggle.js +0 -25
  227. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +0 -13
  228. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +0 -26
  229. package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +0 -14
  230. package/dist/components/data/ag-grid-react/chat/chat-window.js +0 -82
  231. package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +0 -91
  232. package/dist/components/data/ag-grid-react/chat/chat-workspace.js +0 -555
  233. package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +0 -319
  234. package/dist/components/data/ag-grid-react/chat/index.d.ts +0 -6
  235. package/dist/components/data/ag-grid-react/chat/index.js +0 -24
  236. package/dist/components/data/ag-grid-react/chat.story-data.d.ts +0 -34
  237. package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +0 -4
  238. package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +0 -4
  239. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +0 -6
  240. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +0 -29
  241. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +0 -8
  242. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +0 -18
  243. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +0 -18
  244. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +0 -16
  245. package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +0 -11
  246. package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +0 -26
  247. package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +0 -12
  248. package/dist/components/data/ag-grid-react/comments/comments-constants.js +0 -21
  249. package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +0 -20
  250. package/dist/components/data/ag-grid-react/comments/comments-format.js +0 -49
  251. package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +0 -14
  252. package/dist/components/data/ag-grid-react/comments/comments-generation.js +0 -18
  253. package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +0 -10
  254. package/dist/components/data/ag-grid-react/comments/comments-host.js +0 -343
  255. package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +0 -18
  256. package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +0 -7
  257. package/dist/components/data/ag-grid-react/comments/comments-identity.js +0 -20
  258. package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +0 -29
  259. package/dist/components/data/ag-grid-react/comments/comments-menu.js +0 -35
  260. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +0 -22
  261. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +0 -98
  262. package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +0 -21
  263. package/dist/components/data/ag-grid-react/comments/comments-overlay.js +0 -406
  264. package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +0 -9
  265. package/dist/components/data/ag-grid-react/comments/comments-panel.js +0 -272
  266. package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +0 -11
  267. package/dist/components/data/ag-grid-react/comments/comments-persist.js +0 -19
  268. package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +0 -11
  269. package/dist/components/data/ag-grid-react/comments/comments-reveal.js +0 -31
  270. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +0 -18
  271. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +0 -22
  272. package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +0 -10
  273. package/dist/components/data/ag-grid-react/comments/comments-window.js +0 -62
  274. package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +0 -178
  275. package/dist/components/data/ag-grid-react/comments/index.d.ts +0 -5
  276. package/dist/components/data/ag-grid-react/comments/index.js +0 -15
  277. package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +0 -25
  278. package/dist/components/data/ag-grid-react/comments.story-data.d.ts +0 -37
  279. package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +0 -11
  280. package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +0 -21
  281. package/dist/components/data/ag-grid-react/grid-cell-address.js +0 -21
  282. package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +0 -34
  283. package/dist/components/data/ag-grid-react/grid-row-reveal.js +0 -33
  284. package/dist/components/data/ag-grid-react/notes/index.d.ts +0 -2
  285. package/dist/components/data/ag-grid-react/notes/index.js +0 -1
  286. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +0 -25
  287. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +0 -32
  288. package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +0 -2
  289. package/dist/components/data/ag-grid-react/notes/notes-constants.js +0 -4
  290. package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +0 -12
  291. package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +0 -7
  292. package/dist/components/data/ag-grid-react/nova-system-column.d.ts +0 -7
  293. package/dist/components/data/ag-grid-react/nova-system-column.js +0 -18
  294. package/dist/components/forms/date-picker/use-picker-i18n.d.ts +0 -6
  295. package/dist/components/forms/date-picker/use-picker-i18n.js +0 -11
  296. package/dist/components/ui/local-raster-icons/message3d.webp.js +0 -4
  297. package/dist/i18n/format/collator.d.ts +0 -1
  298. package/dist/i18n/format/collator.js +0 -7
  299. package/dist/i18n/format/date-pattern.d.ts +0 -5
  300. package/dist/i18n/format/date-pattern.js +0 -20
  301. package/dist/i18n/format/format-date.d.ts +0 -9
  302. package/dist/i18n/format/format-date.js +0 -56
  303. package/dist/i18n/format/format-number.d.ts +0 -20
  304. package/dist/i18n/format/format-number.js +0 -68
  305. package/dist/i18n/format/formatter-cache.d.ts +0 -9
  306. package/dist/i18n/format/formatter-cache.js +0 -66
  307. package/dist/i18n/format/index.d.ts +0 -6
  308. package/dist/i18n/format/parse-number.d.ts +0 -6
  309. package/dist/i18n/format/parse-number.js +0 -53
  310. package/dist/i18n/locale-config.d.ts +0 -28
  311. package/dist/i18n/locale-config.js +0 -32
  312. package/dist/i18n/week-start.d.ts +0 -6
  313. package/dist/i18n/week-start.js +0 -30
  314. package/dist/llms/rules/data-table-chat.js +0 -1
  315. package/dist/llms/rules/data-table-comments.js +0 -1
  316. package/dist/llms/rules/data-table-notes.js +0 -1
@@ -1,178 +1,107 @@
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";
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";
29
19
  /* empty css */
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
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
44
25
  }))
45
26
  );
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("");
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("");
59
40
  continue;
60
41
  }
61
- const d = c[F];
62
- if (d == null) {
63
- s.push("");
42
+ const a = s[g];
43
+ if (a == null) {
44
+ l.push("");
64
45
  continue;
65
46
  }
66
- if (typeof d == "object" && "value" in d) {
67
- const m = d.value;
68
- s.push(m == null ? "" : String(m));
47
+ if (typeof a == "object" && "value" in a) {
48
+ const u = a.value;
49
+ l.push(u == null ? "" : String(u));
69
50
  continue;
70
51
  }
71
- if (typeof d != "object") {
72
- s.push(String(d));
52
+ if (typeof a != "object") {
53
+ l.push(String(a));
73
54
  continue;
74
55
  }
75
- s.push("");
56
+ l.push("");
76
57
  }
77
- return s;
78
- }, we = (c) => {
58
+ return l;
59
+ }, B = (s) => {
79
60
  if (typeof navigator < "u" && navigator.clipboard?.writeText) {
80
- navigator.clipboard.writeText(c).catch(() => Te(c));
61
+ navigator.clipboard.writeText(s).catch(() => Q(s));
81
62
  return;
82
63
  }
83
- Te(c);
84
- }, Te = (c) => {
64
+ Q(s);
65
+ }, Q = (s) => {
85
66
  if (typeof document > "u") return;
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);
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);
88
69
  try {
89
- i.select(), document.execCommand("copy");
70
+ o.select(), document.execCommand("copy");
90
71
  } finally {
91
- document.body.removeChild(i);
72
+ document.body.removeChild(o);
92
73
  }
93
74
  };
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,
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,
119
93
  ...C
120
94
  }) {
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(() => {
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(() => {
168
97
  const e = document.documentElement, t = () => {
169
- Rt(e.classList.contains("dark") ? "dark" : "light", e);
98
+ Re(e.classList.contains("dark") ? "dark" : "light", e);
170
99
  };
171
100
  t();
172
101
  const n = new MutationObserver(t);
173
102
  return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
174
103
  }, []);
175
- const [Pe, Ce] = ne(!1), [We, he] = ne(null), Oe = u(() => [], []), Ke = y(() => ({
104
+ const [te, U] = O(!1), [re, V] = O(null), ne = m(() => [], []), oe = f(() => ({
176
105
  numericColumn: {
177
106
  cellClass: "ag-right-aligned-cell",
178
107
  headerClass: "ag-right-aligned-header",
@@ -182,106 +111,90 @@ function yn({
182
111
  cellClass: "ag-right-aligned-cell",
183
112
  headerClass: "ag-right-aligned-header",
184
113
  filter: "agNumberColumnFilter",
185
- valueFormatter: (e) => e.value != null ? Ht(Number(e.value), e.context?.numberLocale ?? "en", "USD", {
186
- minimumFractionDigits: 2,
187
- maximumFractionDigits: 2
188
- }) : ""
114
+ valueFormatter: (e) => e.value != null ? `$${Number(e.value).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : ""
189
115
  },
190
116
  percentage: {
191
117
  cellClass: "ag-right-aligned-cell",
192
118
  headerClass: "ag-right-aligned-header",
193
119
  filter: "agNumberColumnFilter",
194
- valueFormatter: (e) => e.value != null ? jt(Number(e.value) / 100, e.context?.numberLocale ?? "en", {
195
- minimumFractionDigits: 2,
196
- maximumFractionDigits: 2
197
- }) : ""
120
+ valueFormatter: (e) => e.value != null ? `${Number(e.value).toFixed(2)}%` : ""
198
121
  },
199
122
  dateColumn: {
200
123
  filter: "agDateColumnFilter"
201
124
  }
202
- }), []), Z = y(() => ({
203
- gridScopeId: w.current,
125
+ }), []), P = f(() => ({
126
+ gridScopeId: v.current,
204
127
  openSearch: (e) => {
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);
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);
208
131
  },
209
132
  closeSearch: () => {
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);
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);
213
136
  },
214
137
  openAdvancedFilter: (e) => {
215
- he(e || null), Ce(!0);
138
+ V(e || null), U(!0);
216
139
  },
217
140
  closeAdvancedFilter: () => {
218
- Ce(!1), he(null);
141
+ U(!1), V(null);
219
142
  },
220
143
  applyAdvancedFilter: (e) => {
221
- if (!a.current) return;
222
- const t = wt(e);
223
- a.current.setFilterModel(t), a.current.onFilterChanged(), J(a.current);
144
+ if (!c.current) return;
145
+ const t = je(e);
146
+ c.current.setFilterModel(t), c.current.onFilterChanged(), R(c.current);
224
147
  }
225
- }), []), Ue = u((e) => {
226
- a.current = e.api, se(e.api), V.current = Re(
227
- e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
228
- );
148
+ }), []), le = m((e) => {
149
+ c.current = e.api, _(e.api);
229
150
  const t = e.api.getGridOption("context") || {};
230
151
  e.api.setGridOption("context", {
231
152
  ...t,
232
153
  activeSearchColumnId: null,
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(
154
+ headerSearchScopeId: v.current
155
+ }), H(v.current, null), a && a(e);
156
+ }, [a]), ie = m(
242
157
  (e) => {
243
- _t(w.current), a.current = null, se(null), m?.(e);
158
+ He(v.current), c.current = null, _(null), u?.(e);
244
159
  },
245
- [m]
246
- ), Ye = u(
160
+ [u]
161
+ ), se = m(
247
162
  (e) => {
248
- J(e.api), k?.(e);
163
+ R(e.api), b?.(e);
249
164
  },
250
- [k]
251
- ), qe = u(
165
+ [b]
166
+ ), ce = m(
252
167
  (e) => {
253
- M?.(e);
168
+ h?.(e);
254
169
  },
255
- [M]
256
- ), ze = u(
170
+ [h]
171
+ ), ae = m(
257
172
  (e) => {
258
- V.current = Re(
259
- e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
260
- ), K?.(e);
173
+ A?.(e);
261
174
  },
262
- [K]
175
+ [A]
263
176
  );
264
- z(() => {
265
- const e = H.current;
177
+ q(() => {
178
+ const e = j.current;
266
179
  if (!e) return;
267
180
  const t = (n) => {
268
181
  if (n.key !== "Enter" && n.key !== " ") return;
269
- const l = n.target;
270
- if (!l.classList.contains("ag-cell") && !l.classList.contains("ag-header-cell")) return;
271
- const r = l.querySelector(
182
+ const i = n.target;
183
+ if (!i.classList.contains("ag-cell") && !i.classList.contains("ag-header-cell")) return;
184
+ const r = i.querySelector(
272
185
  'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
273
186
  );
274
187
  r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
275
188
  };
276
189
  return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
277
190
  }, []);
278
- const Je = y(() => ({
279
- headerComponent: Ft,
191
+ const ue = f(() => ({
192
+ headerComponent: Te,
280
193
  // Default cell renderer wraps text in a span so display:flex centering
281
194
  // and text-overflow:ellipsis both work (ellipsis doesn't work on
282
195
  // anonymous flex text nodes, but works on flex child elements).
283
- cellRenderer: Et,
284
- ...i,
196
+ cellRenderer: ke,
197
+ ...o,
285
198
  suppressHeaderKeyboardEvent: (e) => {
286
199
  const { event: t } = e, n = t.target;
287
200
  if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
@@ -289,87 +202,49 @@ function yn({
289
202
  if (t.key === "Enter" || t.key === " ") {
290
203
  const r = n.closest(".ag-header-cell");
291
204
  if (r) {
292
- const o = r.querySelector('[role="checkbox"], button, [role="switch"], input');
293
- if (o)
294
- return t.preventDefault(), o.click(), !0;
205
+ const d = r.querySelector('[role="checkbox"], button, [role="switch"], input');
206
+ if (d)
207
+ return t.preventDefault(), d.click(), !0;
295
208
  }
296
209
  }
297
- return i?.suppressHeaderKeyboardEvent?.(e) ?? !1;
210
+ return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
298
211
  },
299
212
  headerComponentParams: {
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,
213
+ ...o?.headerComponentParams
214
+ }
215
+ }), [o]), D = f(() => ({
216
+ ...l,
315
217
  headerGroupComponentParams: {
316
- ...s?.headerGroupComponentParams,
317
- innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
218
+ ...l?.headerGroupComponentParams,
219
+ innerHeaderGroupComponent: l?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
318
220
  }
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,
221
+ }), [l]), de = f(
222
+ () => we(y ?? void 0, D),
223
+ [y, D]
224
+ ), pe = f(() => ({
225
+ ...Le,
349
226
  // Always available - value formatters
350
- CustomInnerHeaderGroup: Me,
351
- CustomHeaderGroup: Me,
227
+ CustomInnerHeaderGroup: z,
228
+ CustomHeaderGroup: z,
352
229
  ...C.components,
353
230
  // User components override
354
- ...F
231
+ ...g
355
232
  // Optional custom formatters override defaults
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];
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];
367
242
  }
368
- return re + o.join(O);
243
+ return N + r.join(S);
369
244
  }
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) => {
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) => {
373
248
  if (typeof e.value == "string") {
374
249
  const t = e.value.trim();
375
250
  if (t.startsWith("{") || t.startsWith("["))
@@ -380,244 +255,142 @@ function yn({
380
255
  }
381
256
  }
382
257
  return e.value;
383
- }, []), $e = u((e) => {
258
+ }, []), ge = m((e) => {
384
259
  const t = e?.data ?? "";
385
- if (!t.includes(O) && !t.includes(re)) {
386
- we(t);
260
+ if (!t.includes(S) && !t.includes(N)) {
261
+ B(t);
387
262
  return;
388
263
  }
389
- const n = [], l = t.split(`
264
+ const n = [], i = t.split(`
390
265
  `);
391
- for (let r = 0; r < l.length; r++) {
392
- const o = l[r];
393
- if (o.length === 0 && r === l.length - 1) {
266
+ for (let r = 0; r < i.length; r++) {
267
+ const d = i[r];
268
+ if (d.length === 0 && r === i.length - 1) {
394
269
  n.push("");
395
270
  continue;
396
271
  }
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(" "));
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(" "));
400
275
  continue;
401
276
  }
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(" "));
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(" "));
405
280
  }
406
281
  }
407
- we(n.join(`
282
+ B(n.join(`
408
283
  `));
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(`
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(`
419
292
  `);
420
293
  }
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));
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));
427
300
  continue;
428
301
  }
429
- o != null && typeof o != "object" && r.push(String(o));
302
+ r != null && typeof r != "object" && i.push(String(r));
430
303
  }
431
- return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(`
304
+ return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
432
305
  `);
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",
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,
509
316
  {
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
- ]
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
574
347
  }
575
- ),
576
- c,
577
- /* @__PURE__ */ R(
578
- Ot,
348
+ ) }),
349
+ s,
350
+ /* @__PURE__ */ F(
351
+ We,
579
352
  {
580
- isOpen: Pe,
581
- columnId: We,
582
- gridApi: x,
583
- onClose: Z.closeAdvancedFilter,
584
- onApply: Z.applyAdvancedFilter
353
+ isOpen: te,
354
+ columnId: re,
355
+ gridApi: W,
356
+ onClose: P.closeAdvancedFilter,
357
+ onApply: P.applyAdvancedFilter
585
358
  }
586
359
  )
587
360
  ] });
588
361
  }
589
- function Ot({
590
- isOpen: c,
591
- columnId: i,
592
- gridApi: s,
593
- onClose: D,
594
- onApply: F
362
+ function We({
363
+ isOpen: s,
364
+ columnId: o,
365
+ gridApi: l,
366
+ onClose: y,
367
+ onApply: g
595
368
  }) {
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,
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,
602
375
  {
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
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
613
386
  }
614
387
  ) });
615
388
  }
616
389
  export {
617
- yn as AgGridWrapper,
618
- Fn as isAgGridHeaderLabelTooltipOverflowing,
619
- Mn as isAgGridTextOverflowing,
620
- xn as subscribeGridApiEvent,
621
- In as subscribeGridApiEvents,
622
- An as useAgGridTruncationTooltip
390
+ lt as AgGridWrapper,
391
+ mt as isAgGridHeaderLabelTooltipOverflowing,
392
+ ft as isAgGridTextOverflowing,
393
+ ct as subscribeGridApiEvent,
394
+ at as subscribeGridApiEvents,
395
+ dt as useAgGridTruncationTooltip
623
396
  };