impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22

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 (314) hide show
  1. package/README.md +1 -1
  2. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
  3. package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
  4. package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
  5. package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
  6. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
  7. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
  8. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
  11. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
  16. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +53 -49
  17. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
  18. package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
  19. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
  20. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  21. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
  22. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
  23. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
  24. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  25. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  26. package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
  27. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  28. package/dist/components/data/ag-grid-react/index.d.ts +6 -1
  29. package/dist/components/data/ag-grid-react/index.js +316 -248
  30. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
  31. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
  32. package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
  33. package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
  34. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
  35. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
  36. package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
  37. package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
  38. package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
  39. package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
  40. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  41. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  42. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
  43. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
  44. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
  45. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
  46. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
  47. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
  48. package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
  49. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
  50. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
  51. package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
  52. package/dist/components/data/data-table/column-picker-authority.js +9 -9
  53. package/dist/components/data/data-table/data-table-column-apply.js +30 -29
  54. package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
  55. package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
  56. package/dist/components/data/data-table/data-table-list-header.js +31 -0
  57. package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
  58. package/dist/components/data/data-table/data-table-overlay.js +18 -0
  59. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
  60. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
  61. package/dist/components/data/data-table/data-table.js +35 -34
  62. package/dist/components/data/data-table/data-table.types.d.ts +13 -2
  63. package/dist/components/data/data-table/index.d.ts +10 -0
  64. package/dist/components/data/data-table/index.js +64 -52
  65. package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
  66. package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
  67. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  68. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  69. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  70. package/dist/components/data/expandable-list-item/index.js +20 -16
  71. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  72. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  73. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  74. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  75. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  76. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  77. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  78. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  79. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  80. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  81. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
  82. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
  83. package/dist/components/data/scenario-comparison/index.d.ts +3 -0
  84. package/dist/components/data/scenario-comparison/index.js +6 -0
  85. package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
  86. package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
  87. package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
  88. package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
  89. package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
  90. package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
  91. package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
  92. package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
  93. package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
  94. package/dist/components/data-display/badge/index.d.ts +2 -0
  95. package/dist/components/data-display/badge/index.js +4 -2
  96. package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
  97. package/dist/components/data-display/badge/trophy-icon.js +28 -0
  98. package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
  99. package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
  100. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  101. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  102. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +1 -1
  103. package/dist/components/data-display/chart/chart.js +171 -143
  104. package/dist/components/data-display/chart/chart.types.d.ts +17 -0
  105. package/dist/components/data-display/chart/chart.utils.js +122 -92
  106. package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
  107. package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
  108. package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
  109. package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
  110. package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
  111. package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
  112. package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
  113. package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
  114. package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
  115. package/dist/components/data-display/heatmap-grid/index.js +14 -0
  116. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
  117. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
  118. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
  119. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
  120. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
  121. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
  122. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
  123. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
  124. package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
  125. package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
  126. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  127. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  128. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  129. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  130. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  131. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  132. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  133. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  134. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  135. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  136. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  137. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  138. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  139. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  140. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  141. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  142. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  143. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  144. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  145. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  146. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  147. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  148. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  149. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  150. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  151. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  152. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  153. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  154. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  155. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  156. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  157. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  158. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  159. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  160. package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
  161. package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
  162. package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
  163. package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
  164. package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
  165. package/dist/components/feedback/find-bar/find-bar.js +266 -0
  166. package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
  167. package/dist/components/feedback/find-bar/index.d.ts +4 -0
  168. package/dist/components/feedback/find-bar/index.js +11 -0
  169. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  170. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  171. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  172. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  173. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  174. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  175. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  176. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  177. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  178. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  179. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  180. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  181. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  182. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  183. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  184. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  185. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  186. package/dist/components/flows/iris-chat/index.js +58 -53
  187. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  188. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  189. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  190. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  191. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  192. package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
  193. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  194. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  195. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  196. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  197. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  198. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  199. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
  200. package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
  201. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  202. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  203. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  204. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  205. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  206. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  207. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  208. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  209. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  210. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  211. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  212. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  213. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  214. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  215. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  216. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  217. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  218. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  219. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  220. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  221. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  222. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  223. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  224. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  225. package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
  226. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  227. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  228. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  229. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  230. package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
  231. package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
  232. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  233. package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
  234. package/dist/components/forms/choice-card/choice-card.js +470 -381
  235. package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
  236. package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
  237. package/dist/components/forms/input/input.js +5 -5
  238. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  239. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  240. package/dist/components/forms/select/components/Submenu.js +3 -2
  241. package/dist/components/layout/header/header.js +1 -0
  242. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  243. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  244. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  245. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  246. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  247. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  248. package/dist/components/primitives/button/button.variants.js +1 -1
  249. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  250. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  251. package/dist/components/primitives/iris/iris.d.ts +3 -1
  252. package/dist/components/primitives/iris/iris.js +85 -91
  253. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  254. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  255. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  256. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  257. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  258. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  259. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  260. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  261. package/dist/components/primitives/stepper/stepper.js +99 -97
  262. package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
  263. package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
  264. package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
  265. package/dist/components/primitives/tabs/tabs.js +178 -112
  266. package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
  267. package/dist/form-react/Fields/SelectField.js +66 -57
  268. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  269. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  270. package/dist/form-react/fields.d.ts +1 -0
  271. package/dist/form-react/fields.js +28 -26
  272. package/dist/form-react/index.d.ts +1 -1
  273. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  274. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  275. package/dist/form-react/types/fields.types.d.ts +48 -1
  276. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  277. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  278. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  279. package/dist/i18n/defaultMessages.d.ts +75 -0
  280. package/dist/i18n/defaultMessages.js +112 -42
  281. package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
  282. package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
  283. package/dist/i18n/index.d.ts +1 -1
  284. package/dist/i18n/locales/de.js +71 -1
  285. package/dist/i18n/locales/es.js +71 -1
  286. package/dist/i18n/locales/hi.js +71 -1
  287. package/dist/i18n/locales/kn.js +71 -1
  288. package/dist/impact-nova-components.css +372 -14
  289. package/dist/impact-nova-tokens.scss +4 -0
  290. package/dist/impact-nova.css +1 -1
  291. package/dist/index.d.ts +1 -0
  292. package/dist/index.js +627 -601
  293. package/dist/lib/alphabetical-sort.d.ts +3 -0
  294. package/dist/lib/alphabetical-sort.js +13 -0
  295. package/dist/lib/guidance/engine/guidance-engine.js +26 -27
  296. package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
  297. package/dist/lib/guidance/engine/step-navigation.js +16 -9
  298. package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
  299. package/dist/lib/virtualized/index.d.ts +2 -0
  300. package/dist/lib/virtualized/index.js +35 -31
  301. package/dist/lib/virtualized/list-index.d.ts +5 -0
  302. package/dist/lib/virtualized/list-index.js +13 -0
  303. package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
  304. package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
  305. package/dist/lib/virtualized/types.d.ts +4 -2
  306. package/dist/lib/virtualized/useRowState.js +60 -56
  307. package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
  308. package/dist/llms/rules/ag-grid.js +1 -1
  309. package/dist/llms/rules/installation.js +1 -1
  310. package/dist/llms/rules/real-world-patterns.js +1 -1
  311. package/dist/llms/rules/requirements.js +1 -1
  312. package/dist/tailwind.config.js +3 -0
  313. package/dist/theme/tailwind-colors.js +3 -0
  314. package/package.json +27 -4
package/README.md CHANGED
@@ -315,7 +315,7 @@ Impact Nova provides a rich set of components structured for any enterprise use-
315
315
  ### 📊 Data Display
316
316
 
317
317
  - Avatar, Badge, Tag, Chips
318
- - Calendar, Chart
318
+ - Calendar, Chart, Stereo Scatter (`molecule` and `crystal`)
319
319
  - Empty Container, Notification Panel
320
320
  - Table (AG Grid), Data Table
321
321
  - Product Tile, Value With Unit
@@ -12,5 +12,7 @@ export declare const AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY: {
12
12
  };
13
13
  /** Visible header bar height. Gap under the bar is CSS margin on the pinned header, not extra headerHeight — stuffing 12px into headerHeight made the bar read as 52px. */
14
14
  export declare const AG_GRID_LIST_HEADER_HEIGHT_PX = 40;
15
- export type { AgGridVisualVariant } from './ag-grid.types';
15
+ export type { AgGridVisualVariant, AgGridListHeaderMode } from './ag-grid.types';
16
+ /** Token-based rank wash: solid through the 68px handle, fade across the rank cell. */
17
+ export declare const AG_GRID_LIST_RANK_GRADIENT = "linear-gradient(to right, var(--color-list-row-gradient-start) 0px, var(--color-list-row-gradient-start) 68px, transparent 218px)";
16
18
  export declare const customAgGridListTheme: import('ag-stack').Theme<unknown>;
@@ -0,0 +1,46 @@
1
+ import { ListRowReorderMeta, ListRowTransferMeta } from './list-row-move';
2
+ import { BadgeColor } from './cell-renderers/types';
3
+ export declare const KEY_ATTRIBUTES_TOP_CAP = 5;
4
+ /** Demo-only: top-list row with a disabled drag handle (Storybook verification). */
5
+ export declare const KEY_ATTRIBUTES_DEMO_DRAG_DISABLED_ID = "brand";
6
+ /** Demo-only: bench → top transfer rejected by `canDropRow` (Storybook verification). */
7
+ export declare const KEY_ATTRIBUTES_DEMO_TRANSFER_REJECTED_ID = "closure";
8
+ export interface KeyAttributeRecord {
9
+ id: string;
10
+ name: string;
11
+ }
12
+ export interface KeyAttributeRow extends KeyAttributeRecord {
13
+ rank: string;
14
+ defaultRank: string;
15
+ rankColor: BadgeColor;
16
+ note: string;
17
+ }
18
+ export interface KeyAttributesBoardState {
19
+ topIds: string[];
20
+ benchIds: string[];
21
+ }
22
+ export declare const KEY_ATTRIBUTE_CATALOG: KeyAttributeRecord[];
23
+ export declare const INITIAL_KEY_ATTRIBUTES_BOARD: KeyAttributesBoardState;
24
+ export declare function originalRankById(catalog?: KeyAttributeRecord[]): Record<string, number>;
25
+ export declare function deriveKeyAttributeRows(options: {
26
+ ids: string[];
27
+ catalog?: KeyAttributeRecord[];
28
+ originalRank?: Record<string, number>;
29
+ ranked: boolean;
30
+ /** Continue a single ranking across lists. Bench uses the top-list length. */
31
+ rankOffset?: number;
32
+ }): KeyAttributeRow[];
33
+ export declare function reorderKeyAttributesBoard(state: KeyAttributesBoardState, listId: 'top' | 'bench', meta: ListRowReorderMeta<KeyAttributeRow>): KeyAttributesBoardState;
34
+ /**
35
+ * Cross-list drop with a fixed Top N. The dropped row stays on the list the user
36
+ * targeted. Bench → top inserts at the slot (clamped so it cannot overflow itself)
37
+ * and the previous last top row becomes #N+1. Top → bench closes the hole and
38
+ * promotes the first remaining bench row until `top.length === cap`.
39
+ */
40
+ export declare function transferKeyAttributesBoard(state: KeyAttributesBoardState, meta: ListRowTransferMeta<KeyAttributeRow>, cap?: number): KeyAttributesBoardState;
41
+ export declare function applyKeyAttributesDrag(options: {
42
+ ids: string[];
43
+ draggedId: string;
44
+ overId: string | undefined;
45
+ position: 'above' | 'below';
46
+ }): ListRowReorderMeta<string> | null;
@@ -1,23 +1,24 @@
1
1
  import { customAgGridTheme as o } from "./theme.js";
2
- const e = 48, r = 12, _ = e + r, s = {
3
- default: _,
2
+ const t = 48, r = 12, e = t + r, s = {
3
+ default: e,
4
4
  compact: 30 + r,
5
5
  comfort: 52 + r
6
- }, t = 40, a = o.withParams({
6
+ }, _ = 40, G = "linear-gradient(to right, var(--color-list-row-gradient-start) 0px, var(--color-list-row-gradient-start) 68px, transparent 218px)", I = o.withParams({
7
7
  columnBorder: !1,
8
8
  rowBorder: !1,
9
9
  headerColumnBorder: !1,
10
10
  headerRowBorder: !1,
11
11
  wrapperBorder: !1,
12
- headerHeight: t,
12
+ headerHeight: _,
13
13
  // Card hover/selection is list CSS (::before on .ag-row); avoid full-slot theme overlay.
14
14
  rowHoverColor: "transparent"
15
15
  });
16
16
  export {
17
- e as AG_GRID_LIST_CARD_HEIGHT_PX,
18
- t as AG_GRID_LIST_HEADER_HEIGHT_PX,
17
+ t as AG_GRID_LIST_CARD_HEIGHT_PX,
18
+ _ as AG_GRID_LIST_HEADER_HEIGHT_PX,
19
+ G as AG_GRID_LIST_RANK_GRADIENT,
19
20
  r as AG_GRID_LIST_ROW_GAP_PX,
20
21
  s as AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY,
21
- _ as AG_GRID_LIST_ROW_HEIGHT_PX,
22
- a as customAgGridListTheme
22
+ e as AG_GRID_LIST_ROW_HEIGHT_PX,
23
+ I as customAgGridListTheme
23
24
  };
@@ -0,0 +1 @@
1
+ export declare function KeyAttributesBoard(): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,24 @@
1
1
  import { ReactNode } from 'react';
2
+ import { ListRowDropCheck, ListRowReorderMeta } from './list-row-move';
2
3
  import { ColDef, ColGroupDef, IHeaderParams, IHeaderGroupParams, Column, ValueFormatterParams } from 'ag-grid-community';
3
4
  import { Theme } from 'ag-grid-enterprise';
4
5
  import { FiscalPickerProps } from '../../forms/date-picker/date-picker.types';
5
6
  import { FiscalCalendarConfig } from '../../../lib/fiscal-calendar';
6
7
  import { AgGridReactProps } from 'ag-grid-react';
8
+ import { NumericColumnHeaderAlignment } from './numeric-column-header-alignment';
7
9
  /** ColDef extended with Impact Nova runtime metadata set during column processing */
8
10
  export interface ImpactNovaColDef<TData = unknown> extends ColDef<TData> {
9
11
  /** Original column-level editable before addRowDataEditableCheck wraps the callback */
10
12
  _originalEditable?: boolean;
11
13
  }
12
- /** Visual skin for `AgGridWrapper` / `DataTableContent`. */
14
+ /**
15
+ * Visual skin for `AgGridWrapper` / `DataTableContent`.
16
+ * `"list"` is the card-row skin. Pass `onRowReorder` (and `getRowId`) on that
17
+ * skin to enable row drag — there is no separate drag component or variant.
18
+ */
13
19
  export type AgGridVisualVariant = 'table' | 'list';
20
+ /** Column header bar for list skins. `"none"` hides AG Grid headers (`headerHeight: 0`). */
21
+ export type AgGridListHeaderMode = 'columns' | 'none';
14
22
  /**
15
23
  * Extended header component params for custom header
16
24
  * Extends IHeaderParams to include all AG Grid header properties plus custom ones
@@ -153,15 +161,69 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
153
161
  */
154
162
  themeOverride?: Theme;
155
163
  /**
156
- * Visual skin. `"table"` is the default grid chrome. `"list"` keeps the same
157
- * column model (sort, filter, search, pagination, SSRM) with card-row styling.
164
+ * Visual skin. `"table"` (default) is grid chrome. `"list"` is card-row styling
165
+ * on the same column model. Row drag is not a second variant — pass `onRowReorder`
166
+ * and `getRowId` on `"list"` (handles, drop, Alt+Arrow).
158
167
  */
159
168
  variant?: AgGridVisualVariant;
169
+ /**
170
+ * List + `onRowReorder` only. Custom card that follows the cursor while a row is dragged
171
+ * (replaces AG Grid's text ghost). Receives the dragged row's data, read once at drag start.
172
+ */
173
+ listDragPreview?: (params: {
174
+ data: TData;
175
+ }) => ReactNode;
176
+ /**
177
+ * List skin only. Background gradient on each row card.
178
+ * Pass a CSS `background-image` string, or a function per row. Return `undefined` for a plain card.
179
+ *
180
+ * @example "linear-gradient(to right, var(--color-primary-soft), transparent 220px)"
181
+ */
182
+ listRowGradient?: string | ((params: {
183
+ data: TData | undefined;
184
+ rowIndex: number | null;
185
+ }) => string | undefined);
186
+ /**
187
+ * List skin only. `"columns"` (default) keeps the AG Grid header bar. `"none"` hides it
188
+ * so a `DataTableListHeader` (or no heading) can sit above the cards.
189
+ */
190
+ listHeader?: AgGridListHeaderMode;
191
+ /**
192
+ * List skin only. Enables row drag. After drop or Alt+Arrow, called with the next `rows`
193
+ * in full `rowData` order (including when a quick filter is active). You own the data:
194
+ * set state from `meta.rows`. Requires `getRowId`.
195
+ *
196
+ * @example onRowReorder={({ rows }) => setRows(rows)}
197
+ */
198
+ onRowReorder?: (meta: ListRowReorderMeta<TData>) => void;
199
+ /**
200
+ * List + `onRowReorder` only. Alt+Arrow at the first or last displayed row,
201
+ * where a within-list move is impossible.
202
+ */
203
+ onRowMoveBeyondEdge?: (meta: {
204
+ rowId: string;
205
+ direction: 'up' | 'down';
206
+ row: TData;
207
+ }) => void;
208
+ /** List + `onRowReorder` only. Disable the handle for a given row. */
209
+ isRowDragDisabled?: (data: TData | undefined) => boolean;
210
+ /** List + `onRowReorder` only. Accessible name for the row drag handle. */
211
+ getRowDragHandleLabel?: (data: TData | undefined) => string;
212
+ /**
213
+ * List + `onRowReorder` only. Return false to ignore the drop and hide the indicator.
214
+ * Cross-list transfers use the same check via `useListRowDropZones`.
215
+ */
216
+ canDropRow?: (params: ListRowDropCheck<TData>) => boolean;
160
217
  /**
161
218
  * Viewport row shimmer while more pages load. Does **not** show AG Grid's
162
219
  * centered overlay — use `loading` only when the grid has no rows yet.
163
220
  */
164
221
  rowLoading?: boolean;
222
+ /**
223
+ * Numeric column header alignment. Cells stay right-aligned via `ag-right-aligned-cell`.
224
+ * Default `right` preserves existing apps (ItemSmart). Pass `left` for label-style headers.
225
+ */
226
+ numericColumnHeaderAlignment?: NumericColumnHeaderAlignment;
165
227
  }
166
228
  /**
167
229
  * Filter operators for advanced filtering.
@@ -0,0 +1,8 @@
1
+ import { ColDef, ColGroupDef } from 'ag-grid-community';
2
+ export declare const AG_GRID_DRAG_HANDLE_WIDTH_PX = 68;
3
+ /** Prepends the custom drag-handle column unless a column already sets `rowDrag`. */
4
+ export declare function buildDragListColumnDefs<TData>(options: {
5
+ columnDefs: Array<ColDef<TData> | ColGroupDef<TData>> | null | undefined;
6
+ isRowDragDisabled?: (data: TData | undefined) => boolean;
7
+ getRowDragHandleLabel?: (data: TData | undefined) => string;
8
+ }): Array<ColDef<TData> | ColGroupDef<TData>> | null | undefined;
@@ -0,0 +1,28 @@
1
+ import { DragHandleCellRenderer as n, AG_GRID_DRAG_HANDLE_COL_ID as i } from "./cell-renderers/drag-handle-cell-renderer.js";
2
+ const l = 68;
3
+ function a(r) {
4
+ return r.some((e) => "children" in e && e.children ? a(e.children) : "rowDrag" in e && e.rowDrag !== void 0);
5
+ }
6
+ function t(r) {
7
+ const { columnDefs: e } = r;
8
+ return !e || a(e) ? e : [{
9
+ colId: i,
10
+ headerName: "",
11
+ width: l,
12
+ maxWidth: l,
13
+ minWidth: l,
14
+ sortable: !1,
15
+ filter: !1,
16
+ resizable: !1,
17
+ suppressMovable: !0,
18
+ cellRenderer: n,
19
+ cellRendererParams: {
20
+ isRowDragDisabled: r.isRowDragDisabled,
21
+ getRowDragHandleLabel: r.getRowDragHandleLabel
22
+ }
23
+ }, ...e];
24
+ }
25
+ export {
26
+ l as AG_GRID_DRAG_HANDLE_WIDTH_PX,
27
+ t as buildDragListColumnDefs
28
+ };
@@ -11,6 +11,8 @@ export interface BadgeCellRendererProps extends ICellRendererParams {
11
11
  isIconField?: string;
12
12
  /** Icon element to display inside the badge */
13
13
  icon?: React.ReactNode;
14
+ /** Named icon from the badge registry, for example `trophy`. */
15
+ iconName?: string;
14
16
  iconField?: string;
15
17
  /** Badge label (overrides cell value) */
16
18
  badgeLabel?: string;
@@ -1,23 +1,24 @@
1
- import { jsx as d, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
2
  import { Badge as g } from "../../../data-display/badge/badge.js";
3
- import { getFieldValue as l, mapBadgeColor as f, mapBadgeVariant as u } from "./cell-renderer-utils.js";
4
- const h = (e) => {
5
- const { data: i, value: n } = e, a = l(e.badgeLabelField, e.badgeLabel, i) ?? (n != null ? String(n) : void 0), c = l(e.variantField, e.variant, i) ?? "filled", r = l(e.colorField, e.color, i) ?? "default", o = l(e.isIconField, e.isIcon, i), t = l(e.iconField, e.icon, i), s = l(e.sizeField, e.size, i);
6
- return a ? /* @__PURE__ */ d("div", { className: "w-full h-full flex items-center justify-start ag-cell-inner-padding", children: /* @__PURE__ */ d(
3
+ import { BadgeNamedIcon as f } from "./badge-icon-registry.js";
4
+ import { getFieldValue as a, mapBadgeColor as u, mapBadgeVariant as h } from "./cell-renderer-utils.js";
5
+ const v = (e) => {
6
+ const { data: i, value: t } = e, l = a(e.badgeLabelField, e.badgeLabel, i) ?? (t != null ? String(t) : void 0), c = a(e.variantField, e.variant, i) ?? "filled", o = a(e.colorField, e.color, i) ?? "default", m = a(e.isIconField, e.isIcon, i), d = a(e.iconField, e.icon, i), r = a(e.sizeField, e.size, i);
7
+ return l ? /* @__PURE__ */ n("div", { className: "w-full h-full flex items-center justify-start ag-cell-inner-padding", children: /* @__PURE__ */ n(
7
8
  g,
8
9
  {
9
- variant: u(c),
10
- color: f(r),
11
- size: s === "small" ? "sm" : "md",
10
+ variant: h(c),
11
+ color: u(o),
12
+ size: r === "small" ? "sm" : "md",
12
13
  style: { fontSize: "inherit", lineHeight: "inherit" },
13
- children: o && t ? /* @__PURE__ */ m("span", { className: "flex items-center gap-1", children: [
14
- t,
15
- a
16
- ] }) : a
14
+ children: m && (e.iconName || d) ? /* @__PURE__ */ s("span", { className: "flex items-center gap-1", children: [
15
+ e.iconName ? /* @__PURE__ */ n(f, { name: e.iconName }) : d,
16
+ l
17
+ ] }) : l
17
18
  }
18
19
  ) }) : null;
19
20
  };
20
- h.displayName = "BadgeCellRenderer";
21
+ v.displayName = "BadgeCellRenderer";
21
22
  export {
22
- h as BadgeCellRenderer
23
+ v as BadgeCellRenderer
23
24
  };
@@ -0,0 +1,10 @@
1
+ import { ReactElement, ComponentType, SVGProps } from 'react';
2
+ type BadgeIcon = ComponentType<SVGProps<SVGSVGElement> & {
3
+ size?: number | string;
4
+ }>;
5
+ export declare function resolveBadgeIcon(iconName: string | undefined): BadgeIcon | null;
6
+ /** Module-level renderer so AG Grid cells never create a component during render. */
7
+ export declare function BadgeNamedIcon(props: {
8
+ name?: string;
9
+ }): ReactElement | null;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ import { createElement as o } from "react";
2
+ import { Trophy as t } from "../../../data-display/badge/trophy-icon.js";
3
+ const u = {
4
+ trophy: t
5
+ }, e = /* @__PURE__ */ new Set();
6
+ function a(n) {
7
+ if (!n) return null;
8
+ const r = u[n];
9
+ return r || (e.has(n) || (e.add(n), console.warn(`Unknown badge iconName: ${n}`)), null);
10
+ }
11
+ function f(n) {
12
+ return n.name === "trophy" ? o(t) : (a(n.name), null);
13
+ }
14
+ export {
15
+ f as BadgeNamedIcon,
16
+ a as resolveBadgeIcon
17
+ };
@@ -0,0 +1,18 @@
1
+ import { ICellRendererParams } from 'ag-grid-community';
2
+ import { CustomCellRendererProps } from 'ag-grid-react';
3
+ type RegisterRowDragger = ICellRendererParams['registerRowDragger'] | undefined;
4
+ export interface DragHandleProps {
5
+ registerRowDragger: RegisterRowDragger;
6
+ disabled?: boolean;
7
+ label?: string;
8
+ }
9
+ /** Drag icon registered as the AG Grid row dragger. Shared by the handle column and row-only lists. */
10
+ export declare function DragHandle({ registerRowDragger, disabled, label }: DragHandleProps): import("react/jsx-runtime").JSX.Element;
11
+ export interface DragHandleCellRendererParams {
12
+ isRowDragDisabled?: (data: unknown) => boolean;
13
+ getRowDragHandleLabel?: (data: unknown) => string;
14
+ }
15
+ /** Row drag handle for list drag (`variant="list"` + `onRowReorder`). */
16
+ export declare function DragHandleCellRenderer(props: CustomCellRendererProps & DragHandleCellRendererParams): import("react/jsx-runtime").JSX.Element;
17
+ export declare const AG_GRID_DRAG_HANDLE_COL_ID = "__drag-handle";
18
+ export {};
@@ -0,0 +1,32 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useRef as t, useEffect as l } from "react";
3
+ import { Drag as i } from "impact-nova-icons";
4
+ function d({ registerRowDragger: r, disabled: e = !1, label: a = "Drag to reorder" }) {
5
+ const n = t(null);
6
+ return l(() => {
7
+ e || !n.current || r?.(n.current, 0, void 0, !0);
8
+ }, [e, r]), /* @__PURE__ */ o(
9
+ "span",
10
+ {
11
+ ref: n,
12
+ role: "button",
13
+ tabIndex: e ? -1 : 0,
14
+ "aria-label": a,
15
+ "aria-disabled": e || void 0,
16
+ "aria-roledescription": "sortable",
17
+ "data-component": "ag-grid-drag-handle",
18
+ className: e ? "inline-flex shrink-0 cursor-not-allowed opacity-50" : "inline-flex shrink-0 cursor-grab active:cursor-grabbing",
19
+ children: /* @__PURE__ */ o(i, { size: "14px", className: "text-secondary-foreground" })
20
+ }
21
+ );
22
+ }
23
+ function f(r) {
24
+ const e = r.isRowDragDisabled?.(r.data) ?? !1, a = r.getRowDragHandleLabel?.(r.data) ?? "Drag to reorder";
25
+ return /* @__PURE__ */ o(d, { registerRowDragger: e ? void 0 : r.registerRowDragger, disabled: e, label: a });
26
+ }
27
+ const u = "__drag-handle";
28
+ export {
29
+ u as AG_GRID_DRAG_HANDLE_COL_ID,
30
+ d as DragHandle,
31
+ f as DragHandleCellRenderer
32
+ };
@@ -1,30 +1,42 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as E, useState as D, useRef as O, useImperativeHandle as R, useCallback as r } from "react";
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as E, useState as O, useRef as b, useImperativeHandle as R, useCallback as r } from "react";
3
3
  import { Select as j } from "../../../../forms/select/select.js";
4
- import { cn as y } from "../../../../../lib/utils.js";
5
- const I = E((g, C) => {
4
+ import { cn as k } from "../../../../../lib/utils.js";
5
+ function L(t) {
6
+ if (typeof t.onValueChange == "function")
7
+ return t.onValueChange;
8
+ const n = t.colDef?.cellEditorParams, l = typeof n == "function" ? n(t) : n;
9
+ if (!l || typeof l != "object" || !("onValueChange" in l))
10
+ return;
11
+ const a = l.onValueChange;
12
+ if (typeof a == "function")
13
+ return a;
14
+ }
15
+ const B = E((t, n) => {
6
16
  const {
7
17
  value: l,
8
- options: v = [],
9
- placeholder: h = "Select...",
10
- isSearchable: S = !0,
11
- isClearable: b = !0,
12
- stopEditing: i,
13
- onValueChange: u,
14
- colDef: w
15
- } = g, M = w?.cellRendererParams?.triggerClassName, t = l && typeof l == "object" && "value" in l, o = t ? l.cellMetadata : void 0, c = t ? l.value : l, d = v.map((e) => ({
18
+ options: a = [],
19
+ placeholder: S = "Select...",
20
+ isSearchable: V = !0,
21
+ isClearable: w = !0,
22
+ stopEditing: d,
23
+ colDef: M
24
+ } = t, m = L(t), D = M?.cellRendererParams?.triggerClassName, u = l && typeof l == "object" && "value" in l, g = u ? l.cellMetadata : void 0, o = u ? l.value : l, p = a.map((e) => ({
16
25
  value: e.value,
17
26
  label: e.label,
18
27
  isDisabled: e.isDisabled
19
- })), [s, f] = D(
20
- c != null ? String(c) : null
21
- ), m = O(!1);
22
- R(C, () => ({
28
+ })), [N, C] = O(
29
+ o != null ? String(o) : null
30
+ ), v = b(
31
+ o != null ? String(o) : null
32
+ ), h = b(!1);
33
+ R(n, () => ({
23
34
  getValue() {
24
- return t ? {
25
- value: s,
26
- ...o !== void 0 && { cellMetadata: o }
27
- } : s;
35
+ const e = v.current;
36
+ return u ? {
37
+ value: e,
38
+ ...g !== void 0 && { cellMetadata: g }
39
+ } : e;
28
40
  },
29
41
  isCancelBeforeStart() {
30
42
  return !1;
@@ -33,38 +45,51 @@ const I = E((g, C) => {
33
45
  return !1;
34
46
  },
35
47
  isPopup() {
36
- return !1;
48
+ return !0;
37
49
  }
38
50
  }));
39
- const N = d.find((e) => e.value === s) ?? null, a = r(() => {
40
- m.current || (m.current = !0, i());
41
- }, [i]), x = r(
51
+ const P = p.find((e) => e.value === N) ?? null, s = r(() => {
52
+ h.current || (h.current = !0, d());
53
+ }, [d]), x = r(
42
54
  (e) => {
43
- const p = e ? e.value : null;
44
- f(p), u?.(p), a();
55
+ const c = e ? e.value : null;
56
+ v.current = c, C(c), m?.(c), s();
45
57
  },
46
- [a, f, u]
47
- ), V = r(() => {
48
- a();
49
- }, [a]);
50
- return /* @__PURE__ */ n("div", { className: "flex h-full w-full min-w-0 items-center ag-cell-inner-padding", children: /* @__PURE__ */ n("div", { className: y("min-w-0 flex-1", M), children: /* @__PURE__ */ n(
51
- j,
58
+ [s, C, m]
59
+ ), y = r(() => {
60
+ queueMicrotask(() => {
61
+ s();
62
+ });
63
+ }, [s]), i = r((e) => {
64
+ e.stopPropagation();
65
+ }, []);
66
+ return /* @__PURE__ */ f(
67
+ "div",
52
68
  {
53
- options: d,
54
- value: N,
55
- onChange: x,
56
- onMenuClose: V,
57
- placeholder: h,
58
- isSearchable: S,
59
- isClearable: b,
60
- isMulti: !1,
61
- defaultMenuIsOpen: !0,
62
- className: "w-full max-w-full",
63
- parentClassName: "w-full max-w-full gap-0"
69
+ className: "flex h-full w-full min-w-0 items-center ag-cell-inner-padding",
70
+ onPointerDown: i,
71
+ onMouseDown: i,
72
+ onClick: i,
73
+ children: /* @__PURE__ */ f("div", { className: k("min-w-0 flex-1", D), children: /* @__PURE__ */ f(
74
+ j,
75
+ {
76
+ options: p,
77
+ value: P,
78
+ onChange: x,
79
+ onMenuClose: y,
80
+ placeholder: S,
81
+ isSearchable: V,
82
+ isClearable: w,
83
+ isMulti: !1,
84
+ defaultMenuIsOpen: !0,
85
+ className: "w-full max-w-full",
86
+ parentClassName: "w-full max-w-full gap-0"
87
+ }
88
+ ) })
64
89
  }
65
- ) }) });
90
+ );
66
91
  });
67
- I.displayName = "ListSelectCellEditor";
92
+ B.displayName = "ListSelectCellEditor";
68
93
  export {
69
- I as ListSelectCellEditor
94
+ B as ListSelectCellEditor
70
95
  };