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,5 +1,5 @@
1
- import { themeQuartz as o, iconSetMaterial as e } from "ag-grid-enterprise";
2
- const d = o.withPart(e).withParams({
1
+ import { themeQuartz as e, iconSetMaterial as o } from "ag-grid-enterprise";
2
+ const d = e.withPart(o).withParams({
3
3
  accentColor: "#4259EE",
4
4
  backgroundColor: "#FFFFFF",
5
5
  borderColor: "#D9DDE7",
@@ -57,8 +57,6 @@ const d = o.withPart(e).withParams({
57
57
  menuBorder: !1,
58
58
  tooltipBorder: !1,
59
59
  pinnedRowBorder: !1,
60
- noteIndicatorColor: "#E1BC29",
61
- noteIndicatorSize: 12,
62
60
  browserColorScheme: "light"
63
61
  }, "light").withParams({
64
62
  accentColor: "#E5E5E5",
@@ -118,8 +116,6 @@ const d = o.withPart(e).withParams({
118
116
  menuBorder: !1,
119
117
  tooltipBorder: !1,
120
118
  pinnedRowBorder: !1,
121
- noteIndicatorColor: "#F59E0B",
122
- noteIndicatorSize: 12,
123
119
  browserColorScheme: "dark"
124
120
  }, "dark");
125
121
  export {
@@ -6,10 +6,6 @@ export interface FormatterGridContext {
6
6
  currency?: string;
7
7
  decimals?: number;
8
8
  locale?: string;
9
- dateLocale?: string;
10
- numberLocale?: string;
11
- booleanYes?: string;
12
- booleanNo?: string;
13
9
  [key: string]: unknown;
14
10
  }
15
11
  export interface BackendFormatterConfigBase {
@@ -1,3 +1,22 @@
1
1
  import { ValueFormatterParams } from 'ag-grid-community';
2
+ /**
3
+ * AG Grid value formatters registry
4
+ * Use with AgGridWrapper's valueFormatters prop
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * <AgGridWrapper
9
+ * valueFormatters={AG_GRID_VALUE_FORMATTERS}
10
+ * context={{ currency: 'EUR', decimals: 0 }}
11
+ * columnDefs={[
12
+ * { field: 'price', valueFormatter: 'currency' },
13
+ * { field: 'discount', valueFormatter: 'percentage' },
14
+ * ]}
15
+ * />
16
+ * ```
17
+ */
2
18
  export declare const AG_GRID_VALUE_FORMATTERS: Record<string, (params: ValueFormatterParams) => string>;
19
+ /**
20
+ * Type-safe formatter names
21
+ */
3
22
  export type AGGridFormatterName = keyof typeof AG_GRID_VALUE_FORMATTERS;
@@ -1,108 +1,110 @@
1
- import { getBackendFormatterColDef as m, getNullDisplay as a, getFormatterConfig as S } from "./value-formatter.types.js";
2
- import { DEFAULT_LOCALE as T } from "../../../i18n/locale-config.js";
3
- import { formatDateTime as L, formatDate as _ } from "../../../i18n/format/format-date.js";
4
- import { formatPercent as N, formatCompactNumber as b, formatNumber as d, formatCurrency as x } from "../../../i18n/format/format-number.js";
5
- import { getNumberFormat as V } from "../../../i18n/format/formatter-cache.js";
6
- function s(t) {
7
- return t.context;
8
- }
9
- function g(t, e) {
10
- return t || e?.numberLocale || e?.locale || T;
11
- }
12
- function $(t, e) {
13
- return t || e?.dateLocale || e?.locale || T;
14
- }
15
- function D(t) {
16
- return t === "thou" || t === "mil" || t === "bil" ? t : null;
17
- }
18
- const C = (t) => {
19
- const e = S(m(t)), o = s(t);
1
+ import { getBackendFormatterColDef as s, getNullDisplay as a, getFormatterConfig as b } from "./value-formatter.types.js";
2
+ const d = (t, e) => {
3
+ let o, n;
4
+ return e === "bil" ? (o = t / 1e9, n = "B") : e === "mil" ? (o = t / 1e6, n = "M") : (o = t / 1e3, n = "K"), isNaN(o) || !isFinite(o) ? `0.0${n}` : o.toFixed(1) + n;
5
+ }, N = (t, e) => !e || e === "full_no" || e === "full_precision" ? null : d(t, e), f = (t) => t.context, v = (t) => {
6
+ const e = b(s(t)), o = f(t);
20
7
  if (t.value == null) return a(e, o);
21
- const n = e.currency || "USD", c = g(e.locale, o), i = o?.formatType || e.formatType, r = Number(t.value);
22
- if (isNaN(r)) return String(t.value);
23
- const l = D(i);
24
- if (l) {
25
- const u = b(Math.abs(r), c, l), y = V(c, { style: "currency", currency: n }).formatToParts(0).find((F) => F.type === "currency")?.value || n;
26
- return `${r < 0 ? "-" : ""}${y}${u}`;
8
+ const n = e.currency || "USD", r = e.locale || "en-US", c = o?.formatType || e.formatType, i = Number(t.value);
9
+ if (isNaN(i)) return String(t.value);
10
+ const u = N(Math.abs(i), c);
11
+ if (u) {
12
+ const l = i < 0 ? "-" : "", m = new Intl.NumberFormat(r, {
13
+ style: "currency",
14
+ currency: n
15
+ }).formatToParts(0).find((F) => F.type === "currency")?.value || n;
16
+ return `${l}${m}${u}`;
27
17
  }
28
- return i === "full_precision" ? x(r, c, n, {
29
- minimumFractionDigits: 2,
30
- maximumFractionDigits: 20
31
- }) : x(r, c, n);
32
- }, h = (t) => {
33
- const e = S(m(t)), o = s(t);
18
+ if (c === "full_precision") {
19
+ const l = i < 0 ? "-" : "", m = new Intl.NumberFormat(r, { style: "currency", currency: n }).formatToParts(0).find((F) => F.type === "currency")?.value || n;
20
+ return `${l}${m}${new Intl.NumberFormat(r, { minimumFractionDigits: 2, maximumFractionDigits: 20 }).format(Math.abs(i))}`;
21
+ }
22
+ return new Intl.NumberFormat(r, {
23
+ style: "currency",
24
+ currency: n
25
+ }).format(i);
26
+ }, D = (t) => {
27
+ const e = b(s(t)), o = f(t);
34
28
  if (t.value == null) return a(e, o);
35
- const n = e.symbol || "$", c = e.position || "prefix", i = e.decimals ?? 2, r = g(e.locale, o), l = o?.formatType || e.formatType, u = Number(t.value);
36
- if (isNaN(u)) return String(t.value);
37
- const y = D(l);
38
- let f;
39
- return y ? f = `${u < 0 ? "-" : ""}${b(Math.abs(u), r, y)}` : l === "full_precision" ? f = d(u, r, {
40
- minimumFractionDigits: i,
41
- maximumFractionDigits: 20
42
- }) : f = d(u, r, {
43
- minimumFractionDigits: i,
44
- maximumFractionDigits: i
45
- }), c === "prefix" ? `${n}${f}` : `${f}${n}`;
46
- }, A = (t) => {
47
- const e = m(t), o = s(t);
29
+ const n = e.symbol || "$", r = e.position || "prefix", c = e.decimals ?? 2, i = e.locale || "en-US", u = o?.formatType || e.formatType, l = Number(t.value);
30
+ if (isNaN(l)) return String(t.value);
31
+ const g = N(Math.abs(l), u);
32
+ let m;
33
+ return g ? m = `${l < 0 ? "-" : ""}${g}` : u === "full_precision" ? m = `${l < 0 ? "-" : ""}${new Intl.NumberFormat(i, { minimumFractionDigits: c, maximumFractionDigits: 20 }).format(Math.abs(l))}` : m = new Intl.NumberFormat(i, {
34
+ minimumFractionDigits: c,
35
+ maximumFractionDigits: c
36
+ }).format(l), r === "prefix" ? `${n}${m}` : `${m}${n}`;
37
+ }, x = (t) => {
38
+ const e = s(t), o = f(t);
48
39
  if (t.value == null) return a(e, o);
49
- const n = e.decimals ?? 0, c = g(e.locale, o), i = o?.formatType || e.formatType, r = Number(t.value);
50
- if (isNaN(r)) return String(t.value);
51
- const l = D(i);
52
- return l ? `${r < 0 ? "-" : ""}${b(Math.abs(r), c, l)}` : i === "full_precision" ? d(r, c, {
53
- minimumFractionDigits: n,
54
- maximumFractionDigits: 20
55
- }) : d(r, c, {
40
+ const n = e.decimals ?? 0, r = e.locale || "en-US", c = o?.formatType || e.formatType, i = Number(t.value);
41
+ if (isNaN(i)) return String(t.value);
42
+ const u = N(Math.abs(i), c);
43
+ return u ? `${i < 0 ? "-" : ""}${u}` : c === "full_precision" ? `${i < 0 ? "-" : ""}${new Intl.NumberFormat(r, { minimumFractionDigits: n, maximumFractionDigits: 20 }).format(Math.abs(i))}` : new Intl.NumberFormat(r, {
56
44
  minimumFractionDigits: n,
57
45
  maximumFractionDigits: n
58
- });
59
- }, v = (t) => {
60
- const e = m(t), o = s(t);
46
+ }).format(i);
47
+ }, y = (t) => {
48
+ const e = s(t), o = f(t);
61
49
  if (t.value == null) return a(e, o);
62
50
  const n = Number(t.value);
63
51
  if (isNaN(n)) return String(t.value);
64
- const c = g(e.locale, o);
65
- return b(n, c, "auto");
66
- }, M = (t) => {
67
- const e = m(t), o = s(t);
52
+ const r = Math.abs(n), c = n < 0 ? "-" : "";
53
+ return r >= 1e9 ? `${c}${(r / 1e9).toFixed(1)}B` : r >= 1e6 ? `${c}${(r / 1e6).toFixed(1)}M` : r >= 1e3 ? `${c}${(r / 1e3).toFixed(1)}K` : new Intl.NumberFormat("en-US", {
54
+ maximumFractionDigits: 2
55
+ }).format(n);
56
+ }, $ = (t) => {
57
+ const e = s(t), o = f(t);
68
58
  if (t.value == null) return a(e, o);
69
59
  const n = Number(t.value);
70
60
  if (isNaN(n)) return String(t.value);
71
- const c = e.decimals ?? 2, i = e.divideBy ?? 100, r = o?.formatType || e.formatType, l = g(e.locale, o), u = n / i;
72
- return r === "full_precision" ? N(u, l, {
61
+ const r = e.decimals ?? 2, c = e.divideBy ?? 100, i = o?.formatType || e.formatType, u = n / c;
62
+ return i === "full_precision" ? new Intl.NumberFormat("en-US", {
63
+ style: "percent",
73
64
  minimumFractionDigits: 2,
74
65
  maximumFractionDigits: 20
75
- }) : N(u, l, {
76
- minimumFractionDigits: c,
77
- maximumFractionDigits: c
78
- });
79
- }, E = (t) => {
80
- const e = m(t), o = s(t);
66
+ }).format(u) : new Intl.NumberFormat("en-US", {
67
+ style: "percent",
68
+ minimumFractionDigits: r,
69
+ maximumFractionDigits: r
70
+ }).format(u);
71
+ }, S = (t) => {
72
+ const e = s(t), o = f(t);
81
73
  if (!t.value) return a(e, o);
82
- const n = e.dateStyle || "medium", c = $(e.locale, o);
83
- return _(t.value, c, { dateStyle: n }) || String(t.value);
84
- }, B = (t) => {
85
- const e = m(t), o = s(t);
74
+ const n = e.dateStyle || "medium", r = e.locale || "en-US", c = new Date(t.value);
75
+ return isNaN(c.getTime()) ? String(t.value) : new Intl.DateTimeFormat(r, {
76
+ dateStyle: n
77
+ }).format(c);
78
+ }, T = (t) => {
79
+ const e = s(t), o = f(t);
86
80
  if (!t.value) return a(e, o);
87
- const n = e.dateStyle || "medium", c = e.timeStyle || "short", i = $(e.locale, o);
88
- return L(t.value, i, { dateStyle: n, timeStyle: c }) || String(t.value);
89
- }, R = (t) => {
90
- const e = m(t), o = s(t);
81
+ const n = e.dateStyle || "medium", r = e.timeStyle || "short", c = e.locale || "en-US", i = new Date(t.value);
82
+ return isNaN(i.getTime()) ? String(t.value) : new Intl.DateTimeFormat(c, {
83
+ dateStyle: n,
84
+ timeStyle: r
85
+ }).format(i);
86
+ }, w = (t) => {
87
+ const e = s(t), o = f(t);
91
88
  if (t.value == null) return a(e, o);
92
- const n = e.trueValue || o?.booleanYes || "Yes", c = e.falseValue || o?.booleanNo || "No";
93
- return t.value ? n : c;
94
- }, Y = {
95
- currency: C,
96
- currencySymbol: h,
97
- number: A,
98
- compact: v,
99
- compactNumber: v,
100
- largeNumber: v,
101
- percentage: M,
102
- date: E,
103
- dateTime: B,
104
- boolean: R
89
+ const n = e.trueValue || "Yes", r = e.falseValue || "No";
90
+ return t.value ? n : r;
91
+ }, M = {
92
+ // Currency formatters
93
+ currency: v,
94
+ currencySymbol: D,
95
+ // Number formatters
96
+ number: x,
97
+ compact: y,
98
+ compactNumber: y,
99
+ largeNumber: y,
100
+ // Percentage formatter
101
+ percentage: $,
102
+ // Date formatters
103
+ date: S,
104
+ dateTime: T,
105
+ // Boolean formatter
106
+ boolean: w
105
107
  };
106
108
  export {
107
- Y as AG_GRID_VALUE_FORMATTERS
109
+ M as AG_GRID_VALUE_FORMATTERS
108
110
  };
@@ -3,7 +3,9 @@ import { NestedListItem } from '../nested-list/nested-list.types';
3
3
  export interface ColumnItemData extends Record<string, unknown> {
4
4
  hasSortApplied?: boolean;
5
5
  hasFilterApplied?: boolean;
6
+ isNonSavable?: boolean;
6
7
  pinned?: 'left' | 'right' | null;
8
+ columnGroupChain?: readonly string[];
7
9
  }
8
10
  export interface BuildColumnTreeLabels {
9
11
  frozenColumns: string;
@@ -1,88 +1,94 @@
1
- import { isNovaSystemColId as T } from "../ag-grid-react/nova-system-column.js";
2
- import { resolveColumnPinnedFromGridState as B } from "./data-table-column-apply.js";
3
- function H(l) {
4
- const u = [];
1
+ import { resolveColumnPinnedFromGridState as E } from "./data-table-column-apply.js";
2
+ import { isPickerEligibleColumnId as H } from "./data-table-picker-column-eligibility.js";
3
+ import { resolveColumnSavability as q } from "./column-savability.js";
4
+ function K(l) {
5
+ const a = [];
5
6
  let c = l.getOriginalParent();
6
7
  for (; c; ) {
7
- const a = c.getColGroupDef();
8
- a?.headerName && a?.children && u.push(c), c = c.getOriginalParent();
8
+ const u = c.getColGroupDef();
9
+ u?.headerName && u?.children && a.push(c), c = c.getOriginalParent();
9
10
  }
10
- return u.reverse(), u;
11
+ return a.reverse(), a;
11
12
  }
12
- function K(l, u) {
13
- const c = l.getColumnState(), a = l.getGridOption("context"), z = typeof a?.activeSearchColumnId == "string" ? a.activeSearchColumnId : null, _ = l.getAllGridColumns?.() ?? l.getColumns() ?? [], F = new Map(
14
- _.map((e) => [e.getColId(), e])
15
- ), f = [], h = [], D = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
13
+ function A(l, a) {
14
+ const c = l.getColumnState(), u = l.getGridOption("context"), _ = typeof u?.activeSearchColumnId == "string" ? u.activeSearchColumnId : null, F = l.getAllGridColumns?.() ?? l.getColumns() ?? [], M = new Map(
15
+ F.map((o) => [o.getColId(), o])
16
+ ), f = [], h = [], v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
16
17
  m.set(f, "f"), m.set(h, "s");
17
- let M = 0;
18
- const x = (e) => {
19
- let o = m.get(e);
20
- return o === void 0 && (o = `n${M++}`, m.set(e, o)), o;
21
- }, O = (e, o) => {
22
- const n = e.getGroupId(), i = x(o), r = `${n}::${i}`, t = D.get(r);
23
- if (t && t.list === o && o[o.length - 1] === t.node)
24
- return t.node;
25
- const s = G.get(r) || 0;
26
- G.set(r, s + 1);
27
- const I = e.getColGroupDef(), d = {
28
- id: s === 0 ? `${n}__${i}` : `${n}__${i}__${s}`,
29
- label: I?.headerName || n,
18
+ let x = 0;
19
+ const O = (o) => {
20
+ let e = m.get(o);
21
+ return e === void 0 && (e = `n${x++}`, m.set(o, e)), e;
22
+ }, P = (o, e) => {
23
+ const t = o.getGroupId(), i = O(e), r = `${t}::${i}`, n = v.get(r);
24
+ if (n && n.list === e && e[e.length - 1] === n.node)
25
+ return n.node;
26
+ const s = S.get(r) || 0;
27
+ S.set(r, s + 1);
28
+ const k = o.getColGroupDef(), d = {
29
+ id: s === 0 ? `${t}__${i}` : `${t}__${i}__${s}`,
30
+ label: k?.headerName || t,
30
31
  checked: !0,
31
32
  children: [],
32
33
  category: "group"
33
34
  };
34
- return o.push(d), D.set(r, { list: o, node: d }), d;
35
+ return e.push(d), v.set(r, { list: e, node: d }), d;
35
36
  };
36
- let p = 0, S = 0, C = 0, v = 0;
37
- c.forEach((e) => {
38
- const o = F.get(e.colId) ?? l.getColumn(e.colId);
39
- if (!o) return;
40
- const n = o.getColDef(), i = n.headerName;
41
- if (i != null && i.trim() === "" || e.colId === "ag-Grid-SelectionColumn" || T(e.colId))
37
+ let g = 0, y = 0, I = 0, N = 0;
38
+ c.forEach((o) => {
39
+ const e = M.get(o.colId) ?? l.getColumn(o.colId);
40
+ if (!e) return;
41
+ const t = e.getColDef(), i = t.headerName;
42
+ if (i != null && i.trim() === "" || !H(o.colId))
42
43
  return;
43
- const r = n.headerName;
44
- let t = typeof r == "string" && r.trim() !== "" ? r : l.getDisplayNameForColumn(o, "header");
45
- if ((!t || t.trim() === "") && (t = n.field ?? e.colId), !t || t.trim() === "")
44
+ const r = t.headerName;
45
+ let n = typeof r == "string" && r.trim() !== "" ? r : l.getDisplayNameForColumn(e, "header");
46
+ if ((!n || n.trim() === "") && (n = t.field ?? o.colId), !n || n.trim() === "")
46
47
  return;
47
- const s = !e.hide, I = !!e.sort, y = o.isFilterActive() || z === e.colId, d = B(e, o), b = {
48
- id: e.colId,
49
- label: t,
48
+ const s = !o.hide, k = !!o.sort, $ = e.isFilterActive() || _ === o.colId, d = E(o, e), w = !q(e), p = {
49
+ id: o.colId,
50
+ label: n,
50
51
  checked: s,
51
52
  data: {
52
- hasSortApplied: I,
53
- hasFilterApplied: y,
53
+ hasSortApplied: k,
54
+ hasFilterApplied: $,
55
+ isNonSavable: w,
54
56
  pinned: d
55
57
  }
56
58
  };
57
- d ? (p++, s && S++) : (C++, s && v++);
58
- const N = d ? f : h, $ = H(o);
59
- if ($.length > 0) {
60
- let w = N, k = null;
61
- for (const P of $)
62
- k = O(P, w), w = k.children;
63
- k.children.push(b);
59
+ d ? (g++, s && y++) : (I++, s && N++);
60
+ const z = d ? f : h, G = K(e), T = G.map((C) => C.getGroupId());
61
+ if (G.length > 0) {
62
+ p.data = {
63
+ ...p.data,
64
+ columnGroupChain: T
65
+ };
66
+ let C = z, D = null;
67
+ for (const B of G)
68
+ D = P(B, C), C = D.children;
69
+ D.children.push(p);
64
70
  } else
65
- N.push(b);
71
+ z.push(p);
66
72
  });
67
- const g = (e) => {
68
- let o = e.length > 0;
69
- for (const n of e)
70
- n.children && (n.checked = g(n.children)), n.checked || (o = !1);
71
- return o;
73
+ const b = (o) => {
74
+ let e = o.length > 0;
75
+ for (const t of o)
76
+ t.children && (t.checked = b(t.children)), t.checked || (e = !1);
77
+ return e;
72
78
  };
73
- return g(f), g(h), [
79
+ return b(f), b(h), [
74
80
  {
75
81
  id: "root-frozen",
76
- label: u.frozenColumns,
77
- checked: p > 0 && S === p,
82
+ label: a.frozenColumns,
83
+ checked: g > 0 && y === g,
78
84
  children: f,
79
85
  category: "structure",
80
86
  isDragDisabled: !0
81
87
  },
82
88
  {
83
89
  id: "root-scrollable",
84
- label: u.scrollableColumns,
85
- checked: C > 0 && v === C,
90
+ label: a.scrollableColumns,
91
+ checked: I > 0 && N === I,
86
92
  children: h,
87
93
  category: "structure",
88
94
  isDragDisabled: !0
@@ -90,5 +96,5 @@ function K(l, u) {
90
96
  ];
91
97
  }
92
98
  export {
93
- K as buildColumnTreeFromGrid
99
+ A as buildColumnTreeFromGrid
94
100
  };
@@ -0,0 +1,35 @@
1
+ import { ColumnState, GridApi } from 'ag-grid-community';
2
+ import { NormalizedColumnPin } from './data-table-column-apply';
3
+ export interface GroupNodeMeta {
4
+ groupId: string;
5
+ label: string;
6
+ parentGroupId: string | null;
7
+ }
8
+ export interface ColumnLeafMeta {
9
+ columnId: string;
10
+ label: string;
11
+ groupChain: string[];
12
+ }
13
+ export interface ColumnPickerAuthority {
14
+ readonly orderedColumnIds: readonly string[];
15
+ readonly visibilityByColumnId: ReadonlyMap<string, boolean>;
16
+ readonly pinByColumnId: ReadonlyMap<string, NormalizedColumnPin>;
17
+ readonly labelByColumnId: ReadonlyMap<string, string>;
18
+ readonly groupMetadata: ReadonlyMap<string, GroupNodeMeta>;
19
+ readonly columnGroupChain: ReadonlyMap<string, string[]>;
20
+ readonly sortAppliedByColumnId: ReadonlyMap<string, boolean>;
21
+ readonly filterAppliedByColumnId: ReadonlyMap<string, boolean>;
22
+ readonly nonSavableByColumnId: ReadonlyMap<string, boolean>;
23
+ readonly revision: number;
24
+ }
25
+ export declare function buildAuthorityFromGrid(gridApi: GridApi): ColumnPickerAuthority | null;
26
+ export declare function toggleColumnVisibility(authority: ColumnPickerAuthority, columnId: string, isVisible: boolean): ColumnPickerAuthority;
27
+ export declare function toggleAllColumnsVisibility(authority: ColumnPickerAuthority, isVisible: boolean): ColumnPickerAuthority;
28
+ export declare function toggleColumnsVisibility(authority: ColumnPickerAuthority, columnIds: readonly string[], isVisible: boolean): ColumnPickerAuthority;
29
+ export declare function reorderColumn(authority: ColumnPickerAuthority, fromIndex: number, toIndex: number): ColumnPickerAuthority;
30
+ export declare function updateColumnPin(authority: ColumnPickerAuthority, columnId: string, pin: NormalizedColumnPin): ColumnPickerAuthority;
31
+ export declare function buildColumnStateFromAuthority(authority: ColumnPickerAuthority): ColumnState[];
32
+ export declare function fingerprintAuthority(authority: ColumnPickerAuthority): {
33
+ layout: string;
34
+ visibility: string;
35
+ };
@@ -0,0 +1,118 @@
1
+ import { resolveColumnPinnedFromGridState as P } from "./data-table-column-apply.js";
2
+ import { isPickerEligibleColumnId as F } from "./data-table-picker-column-eligibility.js";
3
+ import { buildColumnIndicatorMapsFromGrid as S } from "./patch-column-tree-indicators-from-grid.js";
4
+ import { resolveColumnSavability as V } from "./column-savability.js";
5
+ import { Fnv1a128Hasher as N } from "../../../lib/hash/fnv1a128.js";
6
+ let d = 0;
7
+ function E(n) {
8
+ const o = n.getColumnState(), i = n.getAllGridColumns?.() ?? n.getColumns?.() ?? [], e = new Map(
9
+ i.map((t) => [t.getColId(), t])
10
+ ), l = [], y = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
11
+ for (const t of o) {
12
+ const r = e.get(t.colId) ?? n.getColumn(t.colId);
13
+ if (!r) continue;
14
+ const a = r.getColDef(), p = a.headerName;
15
+ if (p != null && p.trim() === "" || !F(t.colId))
16
+ continue;
17
+ const C = a.headerName;
18
+ let s = typeof C == "string" && C.trim() !== "" ? C : n.getDisplayNameForColumn(r, "header");
19
+ if ((!s || s.trim() === "") && (s = a.field ?? t.colId), !s || s.trim() === "")
20
+ continue;
21
+ const D = P(t, r);
22
+ l.push(t.colId), y.set(t.colId, !t.hide), g.set(t.colId, D), b.set(t.colId, s), B.set(t.colId, !V(r));
23
+ const h = [];
24
+ let u = r.getOriginalParent();
25
+ for (; u; ) {
26
+ const I = u.getColGroupDef();
27
+ if (I?.headerName && I?.children) {
28
+ const m = u.getGroupId();
29
+ if (h.unshift(m), !c.has(m)) {
30
+ const f = u.getOriginalParent();
31
+ let M = null;
32
+ for (; f; ) {
33
+ const G = f.getColGroupDef();
34
+ if (G?.headerName && G?.children) {
35
+ M = f.getGroupId();
36
+ break;
37
+ }
38
+ }
39
+ c.set(m, {
40
+ groupId: m,
41
+ label: I.headerName,
42
+ parentGroupId: M
43
+ });
44
+ }
45
+ }
46
+ u = u.getOriginalParent();
47
+ }
48
+ v.set(t.colId, h);
49
+ }
50
+ if (l.length === 0)
51
+ return null;
52
+ const w = S(n);
53
+ return {
54
+ orderedColumnIds: l,
55
+ visibilityByColumnId: y,
56
+ pinByColumnId: g,
57
+ labelByColumnId: b,
58
+ groupMetadata: c,
59
+ columnGroupChain: v,
60
+ sortAppliedByColumnId: w.sortAppliedByColumnId,
61
+ filterAppliedByColumnId: w.filterAppliedByColumnId,
62
+ nonSavableByColumnId: B,
63
+ revision: ++d
64
+ };
65
+ }
66
+ function j(n, o, i) {
67
+ const e = new Map(n.visibilityByColumnId);
68
+ return e.set(o, i), { ...n, visibilityByColumnId: e, revision: ++d };
69
+ }
70
+ function q(n, o) {
71
+ const i = /* @__PURE__ */ new Map();
72
+ for (const e of n.orderedColumnIds)
73
+ i.set(e, o);
74
+ return { ...n, visibilityByColumnId: i, revision: ++d };
75
+ }
76
+ function z(n, o, i) {
77
+ const e = new Map(n.visibilityByColumnId);
78
+ for (const l of o)
79
+ e.set(l, i);
80
+ return { ...n, visibilityByColumnId: e, revision: ++d };
81
+ }
82
+ function J(n, o, i) {
83
+ if (o === i) return n;
84
+ const e = [...n.orderedColumnIds], [l] = e.splice(o, 1);
85
+ return e.splice(i, 0, l), { ...n, orderedColumnIds: e, revision: ++d };
86
+ }
87
+ function K(n, o, i) {
88
+ const e = new Map(n.pinByColumnId);
89
+ return e.set(o, i), { ...n, pinByColumnId: e, revision: ++d };
90
+ }
91
+ function L(n) {
92
+ return n.orderedColumnIds.map((o) => ({
93
+ colId: o,
94
+ hide: !n.visibilityByColumnId.get(o),
95
+ pinned: n.pinByColumnId.get(o) ?? null
96
+ }));
97
+ }
98
+ function Q(n) {
99
+ const o = new N(), i = new N();
100
+ for (const e of n.orderedColumnIds) {
101
+ const l = n.pinByColumnId.get(e) ?? "0";
102
+ o.update(e).update(":").update(l === null ? "0" : l).update("|"), i.update(e).update(":").update(n.visibilityByColumnId.get(e) ? "1" : "0").update("|");
103
+ }
104
+ return {
105
+ layout: o.digest(),
106
+ visibility: i.digest()
107
+ };
108
+ }
109
+ export {
110
+ E as buildAuthorityFromGrid,
111
+ L as buildColumnStateFromAuthority,
112
+ Q as fingerprintAuthority,
113
+ J as reorderColumn,
114
+ q as toggleAllColumnsVisibility,
115
+ j as toggleColumnVisibility,
116
+ z as toggleColumnsVisibility,
117
+ K as updateColumnPin
118
+ };
@@ -0,0 +1,7 @@
1
+ import { NestedListItem } from '../nested-list/nested-list.types';
2
+ export declare function isValidColumnPickerGroupDrop(options: {
3
+ items: NestedListItem[];
4
+ activeItemId: string;
5
+ overItemId: string;
6
+ insertAfter?: boolean;
7
+ }): boolean;
@@ -0,0 +1,37 @@
1
+ import { findNestedListItemById as c, findNestedListParentId as i } from "../nested-list/nested-list-drop-engine.js";
2
+ import { NESTED_LIST_SECTION_IDS as l } from "../nested-list/nested-list-constants.js";
3
+ function f(t) {
4
+ const e = t.indexOf("__");
5
+ return e === -1 ? t : t.slice(0, e);
6
+ }
7
+ function m(t) {
8
+ return t?.data?.columnGroupChain ?? [];
9
+ }
10
+ function h(t, e) {
11
+ const n = [];
12
+ let r = i(t, e);
13
+ for (; r && !l.has(r); ) {
14
+ const o = c(t, r);
15
+ (o?.category === "group" || o?.children) && n.unshift(f(r)), r = i(t, r);
16
+ }
17
+ return n;
18
+ }
19
+ function v(t, e) {
20
+ return t.length !== e.length ? !1 : t.every((n, r) => n === e[r]);
21
+ }
22
+ function C(t) {
23
+ const { items: e, activeItemId: n, overItemId: r, insertAfter: o } = t, I = c(e, n), u = m(I);
24
+ if (u.length === 0)
25
+ return !0;
26
+ const d = i(e, n), p = i(e, r);
27
+ if (d === p)
28
+ return !0;
29
+ const a = c(e, r);
30
+ if (a?.category !== "group" || o === !1)
31
+ return !0;
32
+ const s = h(e, r);
33
+ return s.push(f(a.id)), v(u, s);
34
+ }
35
+ export {
36
+ C as isValidColumnPickerGroupDrop
37
+ };
@@ -0,0 +1,3 @@
1
+ import { Column } from 'ag-grid-community';
2
+ /** Returns `true` when the column may be stored in saved views (default). */
3
+ export declare function resolveColumnSavability(column: Column): boolean;
@@ -0,0 +1,10 @@
1
+ function t(e) {
2
+ if (e && typeof e == "object")
3
+ return e;
4
+ }
5
+ function n(e) {
6
+ return t(e.getColDef().context)?.isSavable !== !1;
7
+ }
8
+ export {
9
+ n as resolveColumnSavability
10
+ };