impact-nova 2.6.3 → 3.0.0-alpha.1

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 (456) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/utilities.js +4 -0
  6. package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
  7. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
  8. package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
  9. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
  11. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
  13. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
  14. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
  16. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -0
  17. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
  18. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
  19. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
  20. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
  21. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
  22. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
  23. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
  24. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
  25. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +31 -29
  26. package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +8 -6
  27. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  28. package/dist/components/data/ag-grid-react/index.js +162 -146
  29. package/dist/components/data/data-table/data-table.js +85 -82
  30. package/dist/components/data/data-table/data-table.types.d.ts +5 -0
  31. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +8 -6
  32. package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
  33. package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
  34. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
  35. package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
  36. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
  37. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
  38. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
  39. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
  40. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +4 -2
  41. package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
  42. package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
  43. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
  44. package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
  45. package/dist/components/data-display/chart/chart.js +100 -93
  46. package/dist/components/data-display/chart/chart.types.d.ts +10 -0
  47. package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
  48. package/dist/components/data-display/chart/chart.utils.js +132 -35
  49. package/dist/components/data-display/chart/index.js +15 -13
  50. package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
  51. package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
  52. package/dist/components/data-display/globe-map/globe-map.js +161 -0
  53. package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
  54. package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
  55. package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
  56. package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
  57. package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
  58. package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
  59. package/dist/components/data-display/globe-map/index.d.ts +2 -0
  60. package/dist/components/data-display/globe-map/index.js +10 -0
  61. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
  62. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
  63. package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
  64. package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
  65. package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
  66. package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
  67. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
  68. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
  69. package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
  70. package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
  71. package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
  72. package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
  73. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
  74. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
  75. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
  76. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
  77. package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
  78. package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
  79. package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
  80. package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
  81. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
  82. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
  83. package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
  84. package/dist/components/data-display/hex-tilemap/index.js +12 -0
  85. package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
  86. package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
  87. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
  88. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
  89. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
  90. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
  91. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
  92. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
  93. package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
  94. package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
  95. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
  96. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
  97. package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
  98. package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
  99. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
  100. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
  101. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
  102. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
  103. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
  104. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
  105. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
  106. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
  107. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
  108. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
  109. package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
  110. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
  111. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
  112. package/dist/components/data-display/notch-card/index.d.ts +2 -0
  113. package/dist/components/data-display/notch-card/index.js +6 -0
  114. package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
  115. package/dist/components/data-display/notch-card/notch-card.js +151 -0
  116. package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
  117. package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
  118. package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
  119. package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
  120. package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
  121. package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
  122. package/dist/components/feedback/hover-card/hover-card.js +28 -24
  123. package/dist/components/feedback/popover/popover.js +1 -1
  124. package/dist/components/feedback/tooltip/button-icon-tooltip.js +8 -6
  125. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
  126. package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
  127. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
  128. package/dist/components/feedback/tooltip/tab-tooltip-render.js +6 -4
  129. package/dist/components/flows/filter-strip/index.d.ts +1 -0
  130. package/dist/components/flows/filter-strip/index.js +4 -2
  131. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
  132. package/dist/components/flows/iris-chat/index.d.ts +10 -0
  133. package/dist/components/flows/iris-chat/index.js +55 -0
  134. package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
  135. package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
  136. package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
  137. package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
  138. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
  139. package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
  140. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
  141. package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
  142. package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
  143. package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
  144. package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
  145. package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
  146. package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
  147. package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
  148. package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
  149. package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
  150. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
  151. package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
  152. package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
  153. package/dist/components/flows/iris-chat/iris-chat.js +336 -0
  154. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
  155. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
  156. package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
  157. package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
  158. package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
  159. package/dist/components/flows/wizard/index.d.ts +2 -2
  160. package/dist/components/flows/wizard/index.js +17 -13
  161. package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
  162. package/dist/components/flows/wizard/wizard-context.js +15 -7
  163. package/dist/components/flows/wizard/wizard.d.ts +22 -4
  164. package/dist/components/flows/wizard/wizard.js +278 -174
  165. package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
  166. package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
  167. package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
  168. package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
  169. package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
  170. package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
  171. package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
  172. package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
  173. package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
  174. package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
  175. package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
  176. package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
  177. package/dist/components/forms/choice-card/choice-card.js +651 -170
  178. package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
  179. package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
  180. package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
  181. package/dist/components/forms/choice-card/index.d.ts +2 -1
  182. package/dist/components/forms/choice-card/index.js +27 -10
  183. package/dist/components/forms/combobox/combobox.js +1 -1
  184. package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
  185. package/dist/components/layout/header/header.d.ts +3 -2
  186. package/dist/components/layout/header/header.js +67 -47
  187. package/dist/components/layout/header/header.types.d.ts +1 -0
  188. package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
  189. package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
  190. package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
  191. package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
  192. package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
  193. package/dist/components/primitives/iris/iris-control-context.js +44 -0
  194. package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
  195. package/dist/components/primitives/iris/iris-control-region.js +102 -0
  196. package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
  197. package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
  198. package/dist/components/primitives/iris/iris-control.variants.js +20 -0
  199. package/dist/components/primitives/iris/iris.d.ts +24 -0
  200. package/dist/components/primitives/iris/iris.js +232 -0
  201. package/dist/components/primitives/iris/iris.types.d.ts +35 -0
  202. package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
  203. package/dist/components/primitives/iris/iris.variants.js +120 -0
  204. package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
  205. package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
  206. package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
  207. package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
  208. package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
  209. package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
  210. package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
  211. package/dist/components/primitives/stepper/internals/step-model.js +10 -0
  212. package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
  213. package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
  214. package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
  215. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
  216. package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
  217. package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
  218. package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
  219. package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
  220. package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
  221. package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
  222. package/dist/components/primitives/stepper/stepper.d.ts +1 -0
  223. package/dist/components/primitives/stepper/stepper.js +134 -52
  224. package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
  225. package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
  226. package/dist/components/primitives/stepper/stepper.variants.js +165 -5
  227. package/dist/components/primitives/tabs/tabs.d.ts +4 -1
  228. package/dist/components/primitives/tabs/tabs.js +131 -59
  229. package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
  230. package/dist/i18n/defaultMessages.d.ts +100 -0
  231. package/dist/i18n/defaultMessages.js +118 -21
  232. package/dist/i18n/index.d.ts +1 -1
  233. package/dist/i18n/locales/de.js +99 -2
  234. package/dist/i18n/locales/es.js +99 -2
  235. package/dist/i18n/locales/hi.js +99 -2
  236. package/dist/i18n/locales/kn.js +99 -2
  237. package/dist/impact-nova-components.css +972 -2
  238. package/dist/impact-nova-tokens.scss +109 -1
  239. package/dist/impact-nova.css +1 -1
  240. package/dist/index.d.ts +1 -1
  241. package/dist/index.js +585 -551
  242. package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
  243. package/dist/lib/virtualized/directional-range-extractor.js +39 -0
  244. package/dist/lib/virtualized/index.d.ts +3 -0
  245. package/dist/lib/virtualized/index.js +35 -27
  246. package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
  247. package/dist/lib/virtualized/scroll-seek.js +61 -0
  248. package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
  249. package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
  250. package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
  251. package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
  252. package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
  253. package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
  254. package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
  255. package/dist/lib/virtualized/useVirtualizedList.js +89 -87
  256. package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
  257. package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
  258. package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
  259. package/dist/llms/rules/installation.js +1 -1
  260. package/dist/llms/rules/requirements.js +1 -1
  261. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  262. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  263. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  264. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  265. package/dist/node_modules/bail/index.js +7 -0
  266. package/dist/node_modules/ccount/index.js +12 -0
  267. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  268. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  269. package/dist/node_modules/devlop/lib/default.js +8 -0
  270. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  271. package/dist/node_modules/extend/index.js +43 -0
  272. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  273. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  274. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  275. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  276. package/dist/node_modules/is-plain-obj/index.js +9 -0
  277. package/dist/node_modules/longest-streak/index.js +12 -0
  278. package/dist/node_modules/markdown-table/index.js +75 -0
  279. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  280. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  281. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  282. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  283. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  284. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  285. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  286. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  287. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  288. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  289. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  290. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  291. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  292. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  293. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  294. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  295. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  296. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  297. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  298. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  299. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  300. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  301. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  302. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  303. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  304. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  305. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  306. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  307. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  308. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  309. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  310. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  311. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  312. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  314. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  315. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  316. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  317. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  318. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  319. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  320. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  321. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  322. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  323. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  324. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  325. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  326. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  327. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  328. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  329. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  330. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  331. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  332. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  333. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  334. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  335. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  336. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  337. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  338. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  339. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  340. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  341. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  342. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  343. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  344. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  345. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  346. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  347. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  348. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  349. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  350. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  351. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  352. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  353. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  354. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  355. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  356. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  357. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  358. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  359. package/dist/node_modules/micromark/lib/parse.js +32 -0
  360. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  361. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  362. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  363. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  364. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  365. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  366. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  367. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  368. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  369. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  370. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  371. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  372. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  373. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  374. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  375. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  376. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  377. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  378. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  379. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  380. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  381. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  382. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  383. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  384. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  385. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  386. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  387. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  388. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  389. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  390. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  391. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  392. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  393. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  394. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  395. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  396. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  397. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  398. package/dist/node_modules/micromark-util-character/index.js +39 -0
  399. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  400. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  401. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  402. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  403. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  404. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  405. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  406. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  407. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  408. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  409. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  410. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  411. package/dist/node_modules/property-information/index.js +12 -0
  412. package/dist/node_modules/property-information/lib/aria.js +61 -0
  413. package/dist/node_modules/property-information/lib/find.js +33 -0
  414. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  415. package/dist/node_modules/property-information/lib/html.js +378 -0
  416. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  417. package/dist/node_modules/property-information/lib/svg.js +568 -0
  418. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  419. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  420. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  421. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  422. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  423. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  424. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  425. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  426. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  427. package/dist/node_modules/property-information/lib/xml.js +11 -0
  428. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  429. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  430. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  431. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  432. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  433. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  434. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  435. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  436. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  437. package/dist/node_modules/trim-lines/index.js +28 -0
  438. package/dist/node_modules/trough/lib/index.js +60 -0
  439. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  440. package/dist/node_modules/unified/lib/index.js +529 -0
  441. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  442. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  443. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  444. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  445. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  446. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  447. package/dist/node_modules/vfile/lib/index.js +406 -0
  448. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  449. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  450. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  451. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  452. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  453. package/dist/providers/app-providers.js +13 -11
  454. package/dist/tailwind.config.js +3 -1
  455. package/dist/theme/tailwind-colors.js +2 -1
  456. package/package.json +39 -4
@@ -0,0 +1,28 @@
1
+ export interface SelectAiInsightMetadata {
2
+ /** When true, show the AI sparkle affordance next to the select */
3
+ aiInsight?: boolean;
4
+ /** Confidence 0–100 shown in the hover card */
5
+ confidenceScore?: number;
6
+ /** Supporting copy under the confidence badge */
7
+ confidenceReason?: string;
8
+ }
9
+ export interface SelectAiInsightAffordanceProps {
10
+ showAiInsight?: boolean;
11
+ aiInsightField?: string;
12
+ confidenceScore?: number;
13
+ confidenceScoreField?: string;
14
+ confidenceReason?: string;
15
+ confidenceReasonField?: string;
16
+ confidenceLabel?: string;
17
+ data?: Record<string, unknown> | null;
18
+ cellMetadata?: SelectAiInsightMetadata;
19
+ className?: string;
20
+ }
21
+ /**
22
+ * Iris sparkle + optional confidence HoverCard for select cells.
23
+ * Stops mouse events from bubbling so AG Grid does not start cell edit.
24
+ */
25
+ export declare function SelectAiInsightAffordance(props: SelectAiInsightAffordanceProps): import("react/jsx-runtime").JSX.Element | null;
26
+ export declare namespace SelectAiInsightAffordance {
27
+ var displayName: string;
28
+ }
@@ -0,0 +1,96 @@
1
+ import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
+ import { Badge as f } from "../../../data-display/badge/badge.js";
3
+ import { HoverCard as u, HoverCardTrigger as m, HoverCardContent as g } from "../../../feedback/hover-card/hover-card.js";
4
+ import { IrisAlanGradientIcon as h } from "../../../primitives/iris/iris-alan-gradient-icon.js";
5
+ import { cn as s } from "../../../../lib/utils.js";
6
+ import { getFieldValue as l } from "./cell-renderer-utils.js";
7
+ function v(e) {
8
+ return e.showAiInsight === !0 || e.cellMetadata?.aiInsight === !0 ? !0 : l(e.aiInsightField, void 0, e.data) === !0;
9
+ }
10
+ function b(e) {
11
+ if (typeof e.cellMetadata?.confidenceScore == "number")
12
+ return e.cellMetadata.confidenceScore;
13
+ const t = l(
14
+ e.confidenceScoreField,
15
+ e.confidenceScore,
16
+ e.data
17
+ );
18
+ return typeof t == "number" ? t : void 0;
19
+ }
20
+ function y(e) {
21
+ if (typeof e.cellMetadata?.confidenceReason == "string" && e.cellMetadata.confidenceReason.length > 0)
22
+ return e.cellMetadata.confidenceReason;
23
+ const t = l(
24
+ e.confidenceReasonField,
25
+ e.confidenceReason,
26
+ e.data
27
+ );
28
+ return typeof t == "string" && t.length > 0 ? t : void 0;
29
+ }
30
+ function A(e) {
31
+ const t = e.confidenceLabel ?? "Confidence Score";
32
+ if (!v(e)) return null;
33
+ const i = b(e), c = y(e), d = i != null || c != null, r = /* @__PURE__ */ o(
34
+ "button",
35
+ {
36
+ type: "button",
37
+ "data-component": "select-display-ai-insight",
38
+ className: s(
39
+ "relative z-[2] inline-flex size-6 shrink-0 items-center justify-center rounded-sm text-content-icon",
40
+ "hover:bg-canvas-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stroke-focus",
41
+ "motion-reduce:transition-none",
42
+ e.className
43
+ ),
44
+ "aria-label": i != null ? `${t} ${i}%` : "AI insight",
45
+ onMouseDown: (n) => {
46
+ n.preventDefault(), n.stopPropagation();
47
+ },
48
+ onClick: (n) => {
49
+ n.preventDefault(), n.stopPropagation();
50
+ },
51
+ onPointerDown: (n) => {
52
+ n.stopPropagation();
53
+ },
54
+ children: /* @__PURE__ */ o(h, { size: 14 })
55
+ }
56
+ );
57
+ return d ? /* @__PURE__ */ a(u, { openDelay: 200, closeDelay: 100, children: [
58
+ /* @__PURE__ */ o(m, { asChild: !0, children: r }),
59
+ /* @__PURE__ */ a(
60
+ g,
61
+ {
62
+ align: "end",
63
+ side: "top",
64
+ sideOffset: 8,
65
+ collisionPadding: 12,
66
+ className: "z-[9999] w-80 max-w-[min(20rem,calc(100vw-1.5rem))] p-3",
67
+ "data-component": "select-display-confidence-card",
68
+ onMouseDown: (n) => n.stopPropagation(),
69
+ onClick: (n) => n.stopPropagation(),
70
+ onPointerDown: (n) => n.stopPropagation(),
71
+ children: [
72
+ i != null && /* @__PURE__ */ a(f, { variant: "outline", color: "success", size: "sm", shape: "circle", children: [
73
+ t,
74
+ " - ",
75
+ i,
76
+ "%"
77
+ ] }),
78
+ c != null && /* @__PURE__ */ o(
79
+ "p",
80
+ {
81
+ className: s(
82
+ "text-sm text-content leading-snug",
83
+ i != null && "mt-2"
84
+ ),
85
+ children: c
86
+ }
87
+ )
88
+ ]
89
+ }
90
+ )
91
+ ] }) : r;
92
+ }
93
+ A.displayName = "SelectAiInsightAffordance";
94
+ export {
95
+ A as SelectAiInsightAffordance
96
+ };
@@ -1,5 +1,7 @@
1
1
  import { ICellRendererParams } from 'ag-grid-community';
2
2
  import { SelectOption } from './types';
3
+ import { SelectAiInsightMetadata } from './select-ai-insight-affordance';
4
+ export type { SelectAiInsightMetadata };
3
5
  export interface SelectDisplayRendererProps extends ICellRendererParams {
4
6
  /** Available options for the select */
5
7
  options?: SelectOption[];
@@ -7,6 +9,23 @@ export interface SelectDisplayRendererProps extends ICellRendererParams {
7
9
  placeholder?: string;
8
10
  /** Whether the field is disabled */
9
11
  disabled?: boolean;
12
+ /**
13
+ * Force-show the AI sparkle when insight metadata is absent.
14
+ * Prefer `cellMetadata.aiInsight` / `aiInsightField` for per-row control.
15
+ */
16
+ showAiInsight?: boolean;
17
+ /** Row field that resolves to a boolean for the AI sparkle */
18
+ aiInsightField?: string;
19
+ /** Static confidence score (0–100); overridden by cellMetadata / field */
20
+ confidenceScore?: number;
21
+ /** Row field for confidence score */
22
+ confidenceScoreField?: string;
23
+ /** Static confidence reason copy */
24
+ confidenceReason?: string;
25
+ /** Row field for confidence reason */
26
+ confidenceReasonField?: string;
27
+ /** Confidence badge label prefix (default: "Confidence Score") */
28
+ confidenceLabel?: string;
10
29
  }
11
30
  /**
12
31
  * SelectDisplayRenderer - Lightweight styled div that looks like a select/dropdown.
@@ -15,28 +34,29 @@ export interface SelectDisplayRendererProps extends ICellRendererParams {
15
34
  * zero React state. Shows the label of the currently selected option with a
16
35
  * chevron icon. When clicked, AG Grid activates the paired `SelectCellEditor`.
17
36
  *
37
+ * Optional AI insight affordance: when `aiInsight` metadata (or `showAiInsight`)
38
+ * is set, an Iris sparkle appears. Hovering it opens a confidence HoverCard
39
+ * (score badge + reason) without entering edit mode.
40
+ *
18
41
  * Usage in colDef:
19
42
  * ```ts
20
43
  * {
21
- * field: 'status',
44
+ * field: 'recommendation',
22
45
  * cellRenderer: SelectDisplayRenderer,
23
46
  * cellEditor: SelectCellEditor,
24
47
  * editable: true,
25
48
  * singleClickEdit: true,
26
49
  * cellRendererParams: {
27
50
  * options: [
28
- * { label: 'Active', value: 'active' },
29
- * { label: 'Inactive', value: 'inactive' },
30
- * ],
31
- * placeholder: 'Select status...',
32
- * },
33
- * cellEditorParams: {
34
- * options: [
35
- * { label: 'Active', value: 'active' },
36
- * { label: 'Inactive', value: 'inactive' },
51
+ * { label: 'Keep', value: 'keep' },
52
+ * { label: 'Shop', value: 'shop' },
53
+ * { label: 'Drop', value: 'drop' },
37
54
  * ],
55
+ * placeholder: 'Select...',
38
56
  * },
39
57
  * }
58
+ * // Cell value with AI insight:
59
+ * // { value: 'keep', cellMetadata: { aiInsight: true, confidenceScore: 98, confidenceReason: '...' } }
40
60
  * ```
41
61
  */
42
62
  export declare const SelectDisplayRenderer: {
@@ -1,31 +1,79 @@
1
- import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
- import { ChevronRight as g } from "impact-nova-icons";
3
- const h = (u) => {
4
- const { value: e, options: p = [], placeholder: b = "Select...", disabled: o, colDef: i, data: l } = u, c = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, r = l && typeof l == "object" && "rowMetadata" in l ? l.rowMetadata?._isDisabled : void 0;
5
- let t = !1;
6
- if (!o) {
7
- const s = i?._originalEditable;
8
- i?.editable === !1 ? t = !1 : c === !1 ? t = !0 : c === !0 ? t = !1 : r === !1 ? t = !0 : r === !0 ? t = !1 : t = s === !0 || i?.editable === !0;
9
- }
10
- const a = e && typeof e == "object" && "value" in e ? e.value : e, d = p.find((s) => s.value === String(a ?? ""))?.label ?? (a != null && a !== "" ? String(a) : ""), f = !d;
11
- return /* @__PURE__ */ n(
1
+ import { jsxs as m, jsx as d } from "react/jsx-runtime";
2
+ import { ChevronRight as D } from "impact-nova-icons";
3
+ import { cn as f } from "../../../../lib/utils.js";
4
+ import { SelectAiInsightAffordance as M } from "./select-ai-insight-affordance.js";
5
+ function E(i) {
6
+ const { value: e, data: t, disabled: c, colDef: l } = i;
7
+ if (c) return !1;
8
+ const a = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, n = t && typeof t == "object" && "rowMetadata" in t ? t.rowMetadata?._isDisabled : void 0, r = l?._originalEditable;
9
+ return l?.editable === !1 ? !1 : a === !1 ? !0 : a === !0 ? !1 : n === !1 ? !0 : n === !0 ? !1 : r === !0 || l?.editable === !0;
10
+ }
11
+ const F = (i) => {
12
+ const {
13
+ value: e,
14
+ options: t = [],
15
+ placeholder: c = "Select...",
16
+ disabled: l,
17
+ data: a,
18
+ showAiInsight: n,
19
+ aiInsightField: r,
20
+ confidenceScore: h,
21
+ confidenceScoreField: g,
22
+ confidenceReason: v,
23
+ confidenceReasonField: x,
24
+ confidenceLabel: y
25
+ } = i, s = E(i), u = e && typeof e == "object" && "value" in e, w = u ? e.cellMetadata : void 0, o = u ? e.value : e, p = t.find((j) => j.value === String(o ?? ""))?.label ?? (o != null && o !== "" ? String(o) : ""), b = !p, S = a && typeof a == "object" ? a : null;
26
+ return /* @__PURE__ */ m(
12
27
  "div",
13
28
  {
14
- className: `w-full h-full flex items-center ag-cell-inner-padding ${o ? "opacity-60 cursor-not-allowed" : t ? "in-ag-editable-cell-highlight" : ""}`,
15
- children: /* @__PURE__ */ m(
16
- "div",
17
- {
18
- className: `flex w-full items-center justify-between rounded-[8px] px-1.5 h-7 ${t ? "bg-canvas-elevated cursor-pointer" : "bg-inherit"}`,
19
- children: [
20
- /* @__PURE__ */ n("span", { className: `truncate text-sm font-medium text-content ${f ? "text-content-empty" : ""}`, children: f ? b : d }),
21
- t && /* @__PURE__ */ n(g, { className: "h-3.5 w-3.5 shrink-0 rotate-90 text-content-icon" })
22
- ]
23
- }
24
- )
29
+ className: f(
30
+ "box-border flex h-full w-full min-w-0 items-center gap-2 ps-2 pe-2.5",
31
+ l && "opacity-60 cursor-not-allowed",
32
+ s && "in-ag-editable-cell-highlight"
33
+ ),
34
+ "data-component": "select-display-renderer",
35
+ children: [
36
+ /* @__PURE__ */ m(
37
+ "div",
38
+ {
39
+ className: f(
40
+ "flex h-7 min-w-0 flex-1 items-center justify-between rounded-[8px] px-1.5",
41
+ s ? "bg-canvas-elevated cursor-pointer" : "bg-inherit"
42
+ ),
43
+ children: [
44
+ /* @__PURE__ */ d(
45
+ "span",
46
+ {
47
+ className: f(
48
+ "truncate text-sm font-medium text-content",
49
+ b && "text-content-empty"
50
+ ),
51
+ children: b ? c : p
52
+ }
53
+ ),
54
+ s && /* @__PURE__ */ d(D, { className: "h-3.5 w-3.5 shrink-0 rotate-90 text-content-icon" })
55
+ ]
56
+ }
57
+ ),
58
+ /* @__PURE__ */ d(
59
+ M,
60
+ {
61
+ showAiInsight: n,
62
+ aiInsightField: r,
63
+ confidenceScore: h,
64
+ confidenceScoreField: g,
65
+ confidenceReason: v,
66
+ confidenceReasonField: x,
67
+ confidenceLabel: y,
68
+ data: S,
69
+ cellMetadata: w
70
+ }
71
+ )
72
+ ]
25
73
  }
26
74
  );
27
75
  };
28
- h.displayName = "SelectDisplayRenderer";
76
+ F.displayName = "SelectDisplayRenderer";
29
77
  export {
30
- h as SelectDisplayRenderer
78
+ F as SelectDisplayRenderer
31
79
  };
@@ -0,0 +1,42 @@
1
+ import { ICellRendererParams } from 'ag-grid-community';
2
+ export interface StyleDescriptionCellValue {
3
+ label?: string;
4
+ /** CSS color for the swatch (token or data-driven hex from the API) */
5
+ swatchColor?: string;
6
+ imageUrl?: string;
7
+ imageAlt?: string;
8
+ }
9
+ export interface StyleDescriptionDisplayRendererProps extends ICellRendererParams {
10
+ /** Row field for the style label (fallback when value is a plain string) */
11
+ labelField?: string;
12
+ /** Row field for swatch color */
13
+ swatchColorField?: string;
14
+ /** Row field for product thumbnail URL */
15
+ imageUrlField?: string;
16
+ /** Row field for image alt text */
17
+ imageAltField?: string;
18
+ /** Shown when label is empty (default em dash) */
19
+ emptyLabel?: string;
20
+ className?: string;
21
+ }
22
+ /**
23
+ * StyleDescriptionDisplayRenderer — swatch + label + thumbnail in one cell.
24
+ *
25
+ * Matches Hindsight By Item “Style Description” (color chip, style name,
26
+ * product image with empty fallback). Display-only; no editor pairing.
27
+ *
28
+ * Usage in colDef:
29
+ * ```ts
30
+ * {
31
+ * field: 'styleDescription',
32
+ * cellRenderer: StyleDescriptionDisplayRenderer,
33
+ * cellClass: AG_CELL_NO_PADDING,
34
+ * // value: { label: 'Ribbed Jeans', swatchColor: '#7f1d1d', imageUrl: '...' }
35
+ * // or cellRendererParams: { labelField, swatchColorField, imageUrlField }
36
+ * }
37
+ * ```
38
+ */
39
+ export declare const StyleDescriptionDisplayRenderer: {
40
+ (props: StyleDescriptionDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
41
+ displayName: string;
42
+ };
@@ -0,0 +1,86 @@
1
+ import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
+ import { Image as p } from "impact-nova-icons";
3
+ import { Avatar as y, AvatarImage as f, AvatarFallback as g } from "../../../data-display/avatar/avatar.js";
4
+ import { cn as d } from "../../../../lib/utils.js";
5
+ import { getFieldValue as n } from "./cell-renderer-utils.js";
6
+ function b(a) {
7
+ const { value: t, data: i } = a;
8
+ if (t && typeof t == "object" && !Array.isArray(t)) {
9
+ const e = t;
10
+ if (e.value && typeof e.value == "object" && !Array.isArray(e.value))
11
+ return e.value;
12
+ if ("label" in e || "swatchColor" in e || "imageUrl" in e)
13
+ return e;
14
+ }
15
+ const r = typeof t == "string" || typeof t == "number" ? String(t) : void 0;
16
+ return {
17
+ label: n(a.labelField, r, i) ?? void 0,
18
+ swatchColor: n(a.swatchColorField, void 0, i) ?? void 0,
19
+ imageUrl: n(a.imageUrlField, void 0, i) ?? void 0,
20
+ imageAlt: n(a.imageAltField, void 0, i) ?? void 0
21
+ };
22
+ }
23
+ const h = (a) => {
24
+ const { className: t, emptyLabel: i = "—" } = a, { label: r, swatchColor: e, imageUrl: s, imageAlt: u } = b(a), o = r != null && String(r).trim().length > 0, m = o ? String(r) : i;
25
+ return !o && !e && !s ? /* @__PURE__ */ l(
26
+ "div",
27
+ {
28
+ className: d(
29
+ "w-full h-full flex items-center justify-center ag-cell-inner-padding text-content-empty text-sm",
30
+ t
31
+ ),
32
+ "data-component": "style-description-display",
33
+ children: i
34
+ }
35
+ ) : /* @__PURE__ */ c(
36
+ "div",
37
+ {
38
+ className: d(
39
+ "w-full h-full flex items-center gap-2 ag-cell-inner-padding min-w-0",
40
+ t
41
+ ),
42
+ "data-component": "style-description-display",
43
+ children: [
44
+ /* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
45
+ e ? /* @__PURE__ */ l(
46
+ "span",
47
+ {
48
+ className: "box-border size-4 shrink-0 rounded-sm border border-stroke bg-muted",
49
+ style: { backgroundColor: e },
50
+ title: e,
51
+ "aria-hidden": !0,
52
+ "data-component": "style-description-swatch"
53
+ }
54
+ ) : null,
55
+ /* @__PURE__ */ l(
56
+ "span",
57
+ {
58
+ className: d(
59
+ "truncate text-sm font-medium",
60
+ o ? "text-content" : "text-content-empty"
61
+ ),
62
+ children: m
63
+ }
64
+ )
65
+ ] }),
66
+ /* @__PURE__ */ l("div", { className: "ms-auto flex shrink-0 items-center border-s border-stroke ps-2", children: /* @__PURE__ */ c(
67
+ y,
68
+ {
69
+ size: "sm",
70
+ shape: "square",
71
+ className: "size-8 rounded-md text-[0]",
72
+ "data-component": "style-description-image",
73
+ children: [
74
+ s ? /* @__PURE__ */ l(f, { src: s, alt: u ?? m }) : null,
75
+ /* @__PURE__ */ l(g, { className: "rounded-md bg-muted text-content-icon", children: /* @__PURE__ */ l(p, { size: 16, "aria-hidden": !0, className: "text-content-icon" }) })
76
+ ]
77
+ }
78
+ ) })
79
+ ]
80
+ }
81
+ );
82
+ };
83
+ h.displayName = "StyleDescriptionDisplayRenderer";
84
+ export {
85
+ h as StyleDescriptionDisplayRenderer
86
+ };
@@ -2,7 +2,9 @@ import { jsx as r, jsxs as g, Fragment as Z } from "react/jsx-runtime";
2
2
  import { useState as w } from "react";
3
3
  import { Dialog as I, DialogContent as ee, DialogHeader as te, DialogTitle as le, DialogClose as oe, DialogBody as ne, DialogFooter as re } from "../../../../feedback/dialog/dialog.js";
4
4
  import { Button as y } from "../../../../primitives/button/button.js";
5
- import { Tooltip as ae, TooltipTrigger as se, TooltipContent as ie } from "../../../../feedback/tooltip/tooltip.js";
5
+ import { Tooltip as ae, TooltipTrigger as ie, TooltipContent as se } from "../../../../feedback/tooltip/tooltip.js";
6
+ import "clsx";
7
+ import "tailwind-merge";
6
8
  import { Cross as ce } from "impact-nova-icons";
7
9
  import { useImpactNovaI18n as ue } from "../../../../../i18n/use-impact-nova-i18n.js";
8
10
  import { ColumnFilterSection as $ } from "./column-filter-section.js";
@@ -13,7 +15,7 @@ const M = (k) => {
13
15
  return k.forEach((p) => {
14
16
  p.columnId && (m[p.columnId] || (m[p.columnId] = []), m[p.columnId].push(p));
15
17
  }), m;
16
- }, Fe = ({
18
+ }, Re = ({
17
19
  isOpen: k,
18
20
  onClose: m,
19
21
  onApply: p,
@@ -37,19 +39,19 @@ const M = (k) => {
37
39
  l && Object.keys(l).forEach((n) => {
38
40
  if (!e.some((t) => t.columnId === n)) {
39
41
  const t = l[n];
40
- let s = null;
42
+ let i = null;
41
43
  if (t.filterType === "date") {
42
- const i = t, T = u.getColumn(n)?.getColDef()?.headerComponentParams?.datePickerVariant, f = T === "week" || T === "month", X = i.type === "inRange" && f ? "equals" : i.type || "equals";
43
- s = {
44
+ const s = t, T = u.getColumn(n)?.getColDef()?.headerComponentParams?.datePickerVariant, f = T === "week" || T === "month", X = s.type === "inRange" && f ? "equals" : s.type || "equals";
45
+ i = {
44
46
  id: F(),
45
47
  columnId: n,
46
48
  columnType: "date",
47
49
  operator: X,
48
- value: i.dateFrom || "",
49
- valueTo: i.dateTo || ""
50
+ value: s.dateFrom || "",
51
+ valueTo: s.dateTo || ""
50
52
  };
51
53
  } else if (t.filterType === "text")
52
- s = {
54
+ i = {
53
55
  id: F(),
54
56
  columnId: n,
55
57
  columnType: "text",
@@ -57,7 +59,7 @@ const M = (k) => {
57
59
  value: t.filter ?? ""
58
60
  };
59
61
  else if (t.filterType === "number")
60
- s = {
62
+ i = {
61
63
  id: F(),
62
64
  columnId: n,
63
65
  columnType: "number",
@@ -65,29 +67,29 @@ const M = (k) => {
65
67
  value: String(t.filter)
66
68
  };
67
69
  else if (t.filterType === "set")
68
- s = {
70
+ i = {
69
71
  id: F(),
70
72
  columnId: n,
71
73
  columnType: "select",
72
74
  operator: "equals",
73
75
  value: (t.values ?? []).filter(
74
- (i) => i != null
76
+ (s) => s != null
75
77
  )
76
78
  };
77
79
  else if (t.filterType === "multi") {
78
- const i = t.filterModels?.find((h) => h && h.filterType === "set");
79
- i && (s = {
80
+ const s = t.filterModels?.find((h) => h && h.filterType === "set");
81
+ s && (i = {
80
82
  id: F(),
81
83
  columnId: n,
82
84
  columnType: "multi",
83
85
  // or select?
84
86
  operator: "equals",
85
- value: (i.values ?? []).filter(
87
+ value: (s.values ?? []).filter(
86
88
  (h) => h != null
87
89
  )
88
90
  });
89
91
  }
90
- s && e.push(s);
92
+ i && e.push(i);
91
93
  }
92
94
  });
93
95
  }
@@ -99,12 +101,12 @@ const M = (k) => {
99
101
  })), U = JSON.stringify({ allRules: v, columnLogic: D }) !== JSON.stringify(R), B = (e) => v.filter((o) => o.columnId === e), N = (e, o) => {
100
102
  S((l) => {
101
103
  const c = /* @__PURE__ */ new Set(), n = [];
102
- l.forEach((s) => {
103
- c.has(s.columnId) || (c.add(s.columnId), n.push(s.columnId));
104
+ l.forEach((i) => {
105
+ c.has(i.columnId) || (c.add(i.columnId), n.push(i.columnId));
104
106
  }), c.has(e) || n.push(e);
105
107
  const t = [];
106
- return n.forEach((s) => {
107
- s === e ? t.push(...o) : t.push(...l.filter((i) => i.columnId === s));
108
+ return n.forEach((i) => {
109
+ i === e ? t.push(...o) : t.push(...l.filter((s) => s.columnId === i));
108
110
  }), t;
109
111
  });
110
112
  }, _ = (e) => D[e] || "OR", E = (e, o) => {
@@ -125,11 +127,11 @@ const M = (k) => {
125
127
  const c = l.getColDef(), n = [];
126
128
  let t = l.getParent();
127
129
  for (; t; ) {
128
- const i = t.getColGroupDef();
129
- i && i.headerName && n.unshift(i.headerName), t = t.getParent();
130
+ const s = t.getColGroupDef();
131
+ s && s.headerName && n.unshift(s.headerName), t = t.getParent();
130
132
  }
131
- const s = c?.headerName || e;
132
- return n.push(s), n.join(" > ");
133
+ const i = c?.headerName || e;
134
+ return n.push(i), n.join(" > ");
133
135
  };
134
136
  return /* @__PURE__ */ r(I, { open: k, onOpenChange: m, children: /* @__PURE__ */ g(ee, { className: "w-[800px] max-w-[95vw] max-h-[90vh] flex flex-col p-0", hideClose: !0, children: [
135
137
  /* @__PURE__ */ g(te, { className: "flex flex-row items-center justify-between px-4 py-3 pe-4", children: [
@@ -151,7 +153,7 @@ const M = (k) => {
151
153
  }
152
154
  ),
153
155
  /* @__PURE__ */ g(ae, { children: [
154
- /* @__PURE__ */ r(se, { asChild: !0, children: /* @__PURE__ */ r(
156
+ /* @__PURE__ */ r(ie, { asChild: !0, children: /* @__PURE__ */ r(
155
157
  "span",
156
158
  {
157
159
  style: {
@@ -174,7 +176,7 @@ const M = (k) => {
174
176
  )
175
177
  }
176
178
  ) }),
177
- x && /* @__PURE__ */ r(ie, { variant: "tertiary", children: d("advancedFilter.allFiltersDisabledTooltip") })
179
+ x && /* @__PURE__ */ r(se, { variant: "tertiary", children: d("advancedFilter.allFiltersDisabledTooltip") })
178
180
  ] })
179
181
  ] }),
180
182
  /* @__PURE__ */ r(y, { variant: "ghost", onClick: W, className: "!text-brand", children: d("advancedFilter.clearAll") })
@@ -204,7 +206,7 @@ const M = (k) => {
204
206
  const f = u.getColumn(e);
205
207
  f && (l = f.getColDef());
206
208
  }
207
- const c = l?.headerComponentParams, n = l?.headerName || e, t = V(e, n), s = l?.filter === "agNumberColumnFilter" ? "number" : l?.filter === "agDateColumnFilter" ? "date" : l?.filter === "agMultiColumnFilter" ? "multi" : l?.filter === "agSetColumnFilter" || c?.selectOptions ? "select" : "text", i = c?.selectOptions, h = c?.isMultiSelect, T = c?.dateDisplayFormat || j;
209
+ const c = l?.headerComponentParams, n = l?.headerName || e, t = V(e, n), i = l?.filter === "agNumberColumnFilter" ? "number" : l?.filter === "agDateColumnFilter" ? "date" : l?.filter === "agMultiColumnFilter" ? "multi" : l?.filter === "agSetColumnFilter" || c?.selectOptions ? "select" : "text", s = c?.selectOptions, h = c?.isMultiSelect, T = c?.dateDisplayFormat || j;
208
210
  return /* @__PURE__ */ g("div", { children: [
209
211
  o > 0 && /* @__PURE__ */ r("hr", { className: "border-stroke-hairline mb-6" }),
210
212
  /* @__PURE__ */ r(
@@ -212,8 +214,8 @@ const M = (k) => {
212
214
  {
213
215
  columnId: e,
214
216
  columnLabel: t,
215
- columnType: s,
216
- selectOptions: i,
217
+ columnType: i,
218
+ selectOptions: s,
217
219
  isMultiSelect: h,
218
220
  rules: B(e),
219
221
  logic: _(e),
@@ -242,5 +244,5 @@ const M = (k) => {
242
244
  ] }) });
243
245
  };
244
246
  export {
245
- Fe as AdvancedFilterDialog
247
+ Re as AdvancedFilterDialog
246
248
  };
@@ -1,13 +1,15 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as a } from "react";
3
- import { Tooltip as p, TooltipTrigger as l, TooltipContent as c } from "../../../../feedback/tooltip/tooltip.js";
4
- const f = ({ content: r, children: e, side: o = "bottom" }) => {
3
+ import { Tooltip as p, TooltipTrigger as l, TooltipContent as m } from "../../../../feedback/tooltip/tooltip.js";
4
+ import "clsx";
5
+ import "tailwind-merge";
6
+ const T = ({ content: e, children: r, side: o = "bottom" }) => {
5
7
  const [n, i] = a(!1);
6
8
  return n ? /* @__PURE__ */ s(p, { children: [
7
- /* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t("span", { children: e }) }),
8
- /* @__PURE__ */ t(c, { side: o, variant: "tertiary", children: /* @__PURE__ */ t("p", { children: r }) })
9
- ] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children: e });
9
+ /* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t("span", { children: r }) }),
10
+ /* @__PURE__ */ t(m, { side: o, variant: "tertiary", children: /* @__PURE__ */ t("p", { children: e }) })
11
+ ] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children: r });
10
12
  };
11
13
  export {
12
- f as LazyTooltip
14
+ T as LazyTooltip
13
15
  };
@@ -1,7 +1,7 @@
1
1
  import { AgGridWrapperProps } from './ag-grid.types';
2
2
  import { subscribeGridApiEvent, subscribeGridApiEvents } from './grid-api-event-subscription';
3
3
  export { subscribeGridApiEvent, subscribeGridApiEvents };
4
- export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, ...restProps }: AgGridWrapperProps<TData> & {
4
+ export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, variant, ...restProps }: AgGridWrapperProps<TData> & {
5
5
  className?: string;
6
6
  }): import("react/jsx-runtime").JSX.Element;
7
7
  export { useAgGridTruncationTooltip } from './use-ag-grid-truncation-tooltip';