impact-nova 3.0.0-alpha.1 → 3.0.0-alpha.11

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 (192) hide show
  1. package/README.md +1 -1
  2. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  3. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  4. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
  5. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  6. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +0 -2
  7. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  11. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  12. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  13. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +29 -31
  14. package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +6 -8
  15. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  16. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  17. package/dist/components/data/ag-grid-react/index.js +115 -111
  18. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +6 -9
  19. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
  20. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  21. package/dist/components/data/expandable-list-item/index.js +20 -16
  22. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  23. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  24. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  25. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  26. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  27. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  28. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  29. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  32. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +2 -4
  33. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  34. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  35. package/dist/components/data-display/chart/chart.js +125 -112
  36. package/dist/components/data-display/chart/chart.utils.js +122 -92
  37. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  38. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  39. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  40. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  41. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  42. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  43. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  44. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  45. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  46. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  47. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  48. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  49. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  50. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  51. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  52. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  53. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  54. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  55. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  56. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  57. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  58. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  59. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  60. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  61. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  62. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  63. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  64. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  65. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  66. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  67. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  68. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  69. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  70. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  71. package/dist/components/feedback/popover/popover.js +1 -1
  72. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  73. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -19
  74. package/dist/components/feedback/tooltip/tab-tooltip-render.js +4 -7
  75. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  76. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  77. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  78. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
  79. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  80. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  81. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  82. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  83. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  84. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  85. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  86. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  87. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  88. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  89. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  90. package/dist/components/flows/iris-chat/index.js +58 -53
  91. package/dist/components/flows/iris-chat/iris-chat-artifact.js +48 -38
  92. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  93. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  94. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  95. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  96. package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
  97. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  98. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  99. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  100. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  101. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  102. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  103. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
  104. package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
  105. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  106. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  107. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  108. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  109. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  110. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  111. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  112. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  113. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  114. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  115. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  116. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  117. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  118. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  119. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  120. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  121. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  122. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  123. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  124. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  125. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  126. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  127. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  128. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  129. package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
  130. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  131. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  132. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  133. package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
  134. package/dist/components/forms/choice-card/choice-card.js +196 -199
  135. package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
  136. package/dist/components/forms/combobox/combobox.js +1 -1
  137. package/dist/components/forms/input/input.js +5 -5
  138. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  139. package/dist/components/forms/select/components/SelectTriggerValue.js +8 -9
  140. package/dist/components/forms/select/components/Submenu.js +2 -3
  141. package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
  142. package/dist/components/layout/header/header.js +1 -0
  143. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  144. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  145. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  146. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  147. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  148. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  149. package/dist/components/primitives/button/button.variants.js +1 -1
  150. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  151. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  152. package/dist/components/primitives/iris/iris.d.ts +3 -1
  153. package/dist/components/primitives/iris/iris.js +76 -84
  154. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  155. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  156. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  157. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  158. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  159. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  160. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  161. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  162. package/dist/components/primitives/stepper/stepper.js +92 -91
  163. package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
  164. package/dist/form-react/Fields/SelectField.js +66 -57
  165. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  166. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  167. package/dist/form-react/fields.d.ts +1 -0
  168. package/dist/form-react/fields.js +28 -26
  169. package/dist/form-react/index.d.ts +1 -1
  170. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  171. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  172. package/dist/form-react/types/fields.types.d.ts +48 -1
  173. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  174. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  175. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  176. package/dist/i18n/defaultMessages.d.ts +50 -0
  177. package/dist/i18n/defaultMessages.js +63 -14
  178. package/dist/i18n/index.d.ts +1 -1
  179. package/dist/i18n/locales/de.js +49 -0
  180. package/dist/i18n/locales/es.js +49 -0
  181. package/dist/i18n/locales/hi.js +49 -0
  182. package/dist/i18n/locales/kn.js +49 -0
  183. package/dist/impact-nova-components.css +195 -8
  184. package/dist/impact-nova.css +1 -1
  185. package/dist/index.js +356 -352
  186. package/dist/lib/alphabetical-sort.d.ts +3 -0
  187. package/dist/lib/alphabetical-sort.js +13 -0
  188. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  189. package/dist/llms/rules/installation.js +1 -1
  190. package/dist/llms/rules/requirements.js +1 -1
  191. package/dist/providers/app-providers.js +11 -13
  192. package/package.json +8 -2
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
@@ -157,6 +157,11 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
157
157
  * column model (sort, filter, search, pagination, SSRM) with card-row styling.
158
158
  */
159
159
  variant?: AgGridVisualVariant;
160
+ /**
161
+ * Viewport row shimmer while more pages load. Does **not** show AG Grid's
162
+ * centered overlay — use `loading` only when the grid has no rows yet.
163
+ */
164
+ rowLoading?: boolean;
160
165
  }
161
166
  /**
162
167
  * Filter operators for advanced filtering.
@@ -1,4 +1,4 @@
1
- const a = (r) => {
1
+ const l = (r) => {
2
2
  switch (r) {
3
3
  case "filled":
4
4
  return "solid";
@@ -42,7 +42,7 @@ const a = (r) => {
42
42
  return u;
43
43
  }, o = (r, u) => {
44
44
  if (!r?.disabled || !u) return !1;
45
- const { operator: e, conditions: n } = r.disabled, l = n.map((t) => {
45
+ const { operator: e, conditions: n } = r.disabled, a = n.map((t) => {
46
46
  const s = u[t.field];
47
47
  if (s == null) return !1;
48
48
  switch (t.condition) {
@@ -64,10 +64,10 @@ const a = (r) => {
64
64
  return !1;
65
65
  }
66
66
  });
67
- return e === "AND" ? l.every((t) => t === !0) : e === "OR" ? l.some((t) => t === !0) : !1;
67
+ return e === "AND" ? a.every((t) => t === !0) : e === "OR" ? a.some((t) => t === !0) : !1;
68
68
  }, f = (r, u, e, n) => {
69
- const l = r?.cellMetadata?.valueFormatter;
70
- if (l) return l;
69
+ const a = r?.cellMetadata?.valueFormatter;
70
+ if (a) return a;
71
71
  const t = u != null && typeof u == "object" ? u.rowMetadata : void 0;
72
72
  return t?.valueFormatter ? t.valueFormatter : e || n || null;
73
73
  }, d = (r, u) => {
@@ -87,10 +87,12 @@ const a = (r) => {
87
87
  return e;
88
88
  }
89
89
  }, b = (r, u, e, n) => {
90
- const l = n?.cellMetadata?._isDisabled;
91
- if (l === !0) return !1;
92
- if (l === !1) return !0;
93
- const s = (e != null && typeof e == "object" ? e.rowMetadata : void 0)?._isDisabled;
90
+ const a = n?.cellMetadata?._isDisabled;
91
+ if (n?.cellMetadata?.isLoading === !0 || a === !0) return !1;
92
+ if (a === !1) return !0;
93
+ const t = e != null && typeof e == "object" ? e.rowMetadata : void 0;
94
+ if (t?.isLoading === !0) return !1;
95
+ const s = t?._isDisabled;
94
96
  return s === !0 ? !1 : s === !1 ? !0 : u === !1 ? !1 : u === !0 ? !0 : r === !0;
95
97
  };
96
98
  export {
@@ -98,7 +100,7 @@ export {
98
100
  o as evaluateValidationRules,
99
101
  c as getFieldValue,
100
102
  i as mapBadgeColor,
101
- a as mapBadgeVariant,
103
+ l as mapBadgeVariant,
102
104
  b as resolveCellEditable,
103
105
  f as resolveValueFormatter
104
106
  };
@@ -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 c } from "react/jsx-runtime";
2
+ import { forwardRef as D, useState as O, useRef as h, useImperativeHandle as R, useCallback as i } 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 P } from "../../../../../lib/utils.js";
5
+ function k(t) {
6
+ if (typeof t.onValueChange == "function")
7
+ return t.onValueChange;
8
+ const a = t.colDef?.cellEditorParams, e = typeof a == "function" ? a(t) : a;
9
+ if (!e || typeof e != "object" || !("onValueChange" in e))
10
+ return;
11
+ const n = e.onValueChange;
12
+ if (typeof n == "function")
13
+ return n;
14
+ }
15
+ const L = D((t, a) => {
6
16
  const {
7
- value: l,
8
- options: v = [],
9
- placeholder: h = "Select...",
10
- isSearchable: S = !0,
17
+ value: e,
18
+ options: n = [],
19
+ placeholder: S = "Select...",
20
+ isSearchable: V = !0,
11
21
  isClearable: b = !0,
12
- stopEditing: i,
13
- onValueChange: u,
22
+ stopEditing: f,
14
23
  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) => ({
16
- value: e.value,
17
- label: e.label,
18
- isDisabled: e.isDisabled
19
- })), [s, f] = D(
20
- c != null ? String(c) : null
21
- ), m = O(!1);
22
- R(C, () => ({
24
+ } = t, d = k(t), M = w?.cellRendererParams?.triggerClassName, o = e && typeof e == "object" && "value" in e, m = o ? e.cellMetadata : void 0, s = o ? e.value : e, g = n.map((l) => ({
25
+ value: l.value,
26
+ label: l.label,
27
+ isDisabled: l.isDisabled
28
+ })), [N, C] = O(
29
+ s != null ? String(s) : null
30
+ ), p = h(
31
+ s != null ? String(s) : null
32
+ ), v = h(!1);
33
+ R(a, () => ({
23
34
  getValue() {
24
- return t ? {
25
- value: s,
26
- ...o !== void 0 && { cellMetadata: o }
27
- } : s;
35
+ const l = p.current;
36
+ return o ? {
37
+ value: l,
38
+ ...m !== void 0 && { cellMetadata: m }
39
+ } : l;
28
40
  },
29
41
  isCancelBeforeStart() {
30
42
  return !1;
@@ -33,29 +45,31 @@ 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(
42
- (e) => {
43
- const p = e ? e.value : null;
44
- f(p), u?.(p), a();
51
+ const x = g.find((l) => l.value === N) ?? null, r = i(() => {
52
+ v.current || (v.current = !0, f());
53
+ }, [f]), y = i(
54
+ (l) => {
55
+ const u = l ? l.value : null;
56
+ p.current = u, C(u), d?.(u), r();
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(
58
+ [r, C, d]
59
+ ), E = i(() => {
60
+ queueMicrotask(() => {
61
+ r();
62
+ });
63
+ }, [r]);
64
+ return /* @__PURE__ */ c("div", { className: "flex h-full w-full min-w-0 items-center ag-cell-inner-padding", children: /* @__PURE__ */ c("div", { className: P("min-w-0 flex-1", M), children: /* @__PURE__ */ c(
51
65
  j,
52
66
  {
53
- options: d,
54
- value: N,
55
- onChange: x,
56
- onMenuClose: V,
57
- placeholder: h,
58
- isSearchable: S,
67
+ options: g,
68
+ value: x,
69
+ onChange: y,
70
+ onMenuClose: E,
71
+ placeholder: S,
72
+ isSearchable: V,
59
73
  isClearable: b,
60
74
  isMulti: !1,
61
75
  defaultMenuIsOpen: !0,
@@ -64,7 +78,7 @@ const I = E((g, C) => {
64
78
  }
65
79
  ) }) });
66
80
  });
67
- I.displayName = "ListSelectCellEditor";
81
+ L.displayName = "ListSelectCellEditor";
68
82
  export {
69
- I as ListSelectCellEditor
83
+ L as ListSelectCellEditor
70
84
  };
@@ -1,37 +1,40 @@
1
- import { jsxs as O, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as y, useState as F, useRef as k, useImperativeHandle as B, useCallback as c } from "react";
3
- import { Select as H } from "../../../../forms/select/select.js";
4
- import { SelectAiInsightAffordance as L } from "../select-ai-insight-affordance.js";
5
- const P = y((g, b) => {
1
+ import { jsxs as F, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as k, useState as B, useRef as g, useImperativeHandle as H, useCallback as r } from "react";
3
+ import { Select as L } from "../../../../forms/select/select.js";
4
+ import { SelectAiInsightAffordance as P } from "../select-ai-insight-affordance.js";
5
+ const q = k((b, v) => {
6
6
  const {
7
7
  value: l,
8
- options: v = [],
8
+ options: S = [],
9
9
  placeholder: C = "Select...",
10
- isSearchable: S = !0,
11
- isClearable: w = !0,
12
- stopEditing: r,
13
- onValueChange: u,
14
- data: t,
15
- showAiInsight: x,
16
- aiInsightField: M,
17
- confidenceScore: V,
10
+ isSearchable: w = !0,
11
+ isClearable: x = !0,
12
+ stopEditing: u,
13
+ onValueChange: d,
14
+ data: n,
15
+ showAiInsight: M,
16
+ aiInsightField: V,
17
+ confidenceScore: R,
18
18
  confidenceScoreField: j,
19
19
  confidenceReason: D,
20
20
  confidenceReasonField: E,
21
21
  confidenceLabel: I
22
- } = g, n = l && typeof l == "object" && "value" in l, o = n ? l.cellMetadata : void 0, d = n ? l.value : l, f = v.map((e) => ({
22
+ } = b, o = l && typeof l == "object" && "value" in l, s = o ? l.cellMetadata : void 0, t = o ? l.value : l, f = S.map((e) => ({
23
23
  value: e.value,
24
24
  label: e.label,
25
25
  isDisabled: e.isDisabled
26
- })), [s, p] = F(
27
- d != null ? String(d) : null
28
- ), h = k(!1);
29
- B(b, () => ({
26
+ })), [N, p] = B(
27
+ t != null ? String(t) : null
28
+ ), m = g(
29
+ t != null ? String(t) : null
30
+ ), h = g(!1);
31
+ H(v, () => ({
30
32
  getValue() {
31
- return n ? {
32
- value: s,
33
- ...o !== void 0 && { cellMetadata: o }
34
- } : s;
33
+ const e = m.current;
34
+ return o ? {
35
+ value: e,
36
+ ...s !== void 0 && { cellMetadata: s }
37
+ } : e;
35
38
  },
36
39
  isCancelBeforeStart() {
37
40
  return !1;
@@ -43,33 +46,33 @@ const P = y((g, b) => {
43
46
  return !0;
44
47
  }
45
48
  }));
46
- const N = f.find((e) => e.value === s) ?? null, a = c(() => {
47
- h.current || (h.current = !0, r());
48
- }, [r]), R = c(
49
+ const A = f.find((e) => e.value === N) ?? null, a = r(() => {
50
+ h.current || (h.current = !0, u());
51
+ }, [u]), O = r(
49
52
  (e) => {
50
- const m = e ? e.value : null;
51
- p(m), u?.(m), a();
53
+ const c = e ? e.value : null;
54
+ m.current = c, p(c), d?.(c), a();
52
55
  },
53
- [a, u, p]
54
- ), A = c(() => {
56
+ [a, d, p]
57
+ ), y = r(() => {
55
58
  a();
56
59
  }, [a]);
57
- return /* @__PURE__ */ O(
60
+ return /* @__PURE__ */ F(
58
61
  "div",
59
62
  {
60
63
  className: "box-border flex h-full w-full min-w-0 items-center gap-2 ps-2 pe-2.5 ag-editable-cell-highlight",
61
64
  "data-component": "select-cell-editor",
62
65
  children: [
63
66
  /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i(
64
- H,
67
+ L,
65
68
  {
66
69
  options: f,
67
- value: N,
68
- onChange: R,
69
- onMenuClose: A,
70
+ value: A,
71
+ onChange: O,
72
+ onMenuClose: y,
70
73
  placeholder: C,
71
- isSearchable: S,
72
- isClearable: w,
74
+ isSearchable: w,
75
+ isClearable: x,
73
76
  isMulti: !1,
74
77
  defaultMenuIsOpen: !0,
75
78
  className: "!border-none !shadow-none !ring-0 !h-7 !rounded-[8px] !px-1.5",
@@ -77,24 +80,24 @@ const P = y((g, b) => {
77
80
  }
78
81
  ) }),
79
82
  /* @__PURE__ */ i(
80
- L,
83
+ P,
81
84
  {
82
- showAiInsight: x,
83
- aiInsightField: M,
84
- confidenceScore: V,
85
+ showAiInsight: M,
86
+ aiInsightField: V,
87
+ confidenceScore: R,
85
88
  confidenceScoreField: j,
86
89
  confidenceReason: D,
87
90
  confidenceReasonField: E,
88
91
  confidenceLabel: I,
89
- data: t && typeof t == "object" ? t : null,
90
- cellMetadata: o
92
+ data: n && typeof n == "object" ? n : null,
93
+ cellMetadata: s
91
94
  }
92
95
  )
93
96
  ]
94
97
  }
95
98
  );
96
99
  });
97
- P.displayName = "SelectCellEditor";
100
+ q.displayName = "SelectCellEditor";
98
101
  export {
99
- P as SelectCellEditor
102
+ q as SelectCellEditor
100
103
  };
@@ -4,8 +4,6 @@ import { Badge as V } from "../../../data-display/badge/badge.js";
4
4
  import { evaluateValidationRules as I, getFieldValue as m, mapBadgeVariant as L, mapBadgeColor as U } from "./cell-renderer-utils.js";
5
5
  import { resolveGridIcon as H } from "./gridIconResolver.js";
6
6
  import { Tooltip as _, TooltipTrigger as z, TooltipContent as G } from "../../../feedback/tooltip/tooltip.js";
7
- import "clsx";
8
- import "tailwind-merge";
9
7
  const M = (e, n, r, a) => {
10
8
  if (!n) return e;
11
9
  let t = e;
@@ -1,61 +1,59 @@
1
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as b } from "react/jsx-runtime";
2
2
  import { Cross as N, ChevronRight as D } from "impact-nova-icons";
3
- import { cn as r } from "../../../../lib/utils.js";
3
+ import { cn as o } from "../../../../lib/utils.js";
4
4
  import { selectTriggerVariants as j } from "../../../forms/select/select.variants.js";
5
- const C = (b) => {
5
+ import { readColDefEditable as C } from "../editable-utils.js";
6
+ const V = (c) => {
6
7
  const {
7
- value: l,
8
- options: g = [],
9
- placeholder: h = "Select...",
10
- disabled: i,
11
- isClearable: x = !0,
8
+ value: e,
9
+ options: h = [],
10
+ placeholder: x = "Select...",
11
+ disabled: a,
12
+ isClearable: g = !0,
12
13
  triggerClassName: w,
13
- colDef: o,
14
- data: s,
14
+ colDef: d,
15
+ data: i,
15
16
  setValue: v
16
- } = b, d = l && typeof l == "object" && "cellMetadata" in l ? l.cellMetadata?._isDisabled : void 0, f = s && typeof s == "object" && "rowMetadata" in s ? s.rowMetadata?._isDisabled : void 0;
17
- let e = !1;
18
- if (!i) {
19
- const a = o?._originalEditable;
20
- o?.editable === !1 ? e = !1 : d === !1 ? e = !0 : d === !0 ? e = !1 : f === !1 ? e = !0 : f === !0 ? e = !1 : e = a === !0 || o?.editable === !0;
21
- }
22
- const n = l && typeof l == "object" && "value" in l ? l.value : l, u = g.find((a) => a.value === String(n ?? ""))?.label ?? (n != null && n !== "" ? String(n) : ""), c = !u, y = x && e && !c && !i, p = (a) => {
23
- a.preventDefault(), a.stopPropagation(), v?.(null);
17
+ } = c, f = e && typeof e == "object" && "cellMetadata" in e ? e.cellMetadata?._isDisabled : void 0, m = i && typeof i == "object" && "rowMetadata" in i ? i.rowMetadata?._isDisabled : void 0;
18
+ let l = !1;
19
+ a || (d?.editable === !1 ? l = !1 : f === !1 ? l = !0 : f === !0 ? l = !1 : m === !1 ? l = !0 : m === !0 ? l = !1 : l = C(d, c));
20
+ const s = e && typeof e == "object" && "value" in e ? e.value : e, u = h.find((n) => n.value === String(s ?? ""))?.label ?? (s != null && s !== "" ? String(s) : ""), r = !u, y = g && l && !r && !a, p = (n) => {
21
+ n.preventDefault(), n.stopPropagation(), v?.(null);
24
22
  };
25
23
  return /* @__PURE__ */ t(
26
24
  "div",
27
25
  {
28
- className: r(
26
+ className: o(
29
27
  "flex h-full w-full min-w-0 items-center ag-cell-inner-padding",
30
- i && "cursor-not-allowed opacity-60",
31
- !i && e && "in-ag-editable-cell-highlight"
28
+ a && "cursor-not-allowed opacity-60",
29
+ !a && l && "in-ag-editable-cell-highlight"
32
30
  ),
33
- children: /* @__PURE__ */ t("div", { className: r("min-w-0 flex-1", w), children: /* @__PURE__ */ t(
31
+ children: /* @__PURE__ */ t("div", { className: o("min-w-0 flex-1", w), children: /* @__PURE__ */ t(
34
32
  "div",
35
33
  {
36
- className: r(
34
+ className: o(
37
35
  j({
38
36
  size: "default",
39
37
  error: !1,
40
- disabled: !!i,
41
- readOnly: !e,
38
+ disabled: !!a,
39
+ readOnly: !l,
42
40
  open: !1
43
41
  }),
44
42
  "w-full max-w-full"
45
43
  ),
46
44
  "data-component": "select-trigger",
47
- children: /* @__PURE__ */ m("div", { className: "flex w-full min-w-0 max-w-full items-center justify-between", children: [
45
+ children: /* @__PURE__ */ b("div", { className: "flex w-full min-w-0 max-w-full items-center justify-between", children: [
48
46
  /* @__PURE__ */ t(
49
47
  "span",
50
48
  {
51
- className: r(
49
+ className: o(
52
50
  "block min-w-0 truncate text-[14px] text-content",
53
- c ? "font-normal text-content-placeholder" : "font-normal"
51
+ r ? "font-normal text-content-placeholder" : "font-normal"
54
52
  ),
55
- children: c ? h : u
53
+ children: r ? x : u
56
54
  }
57
55
  ),
58
- e ? /* @__PURE__ */ m("div", { className: "flex shrink-0 items-center gap-1 text-content-icon", children: [
56
+ /* @__PURE__ */ b("div", { className: "flex shrink-0 items-center gap-1 text-content-icon", children: [
59
57
  y ? /* @__PURE__ */ t(
60
58
  "span",
61
59
  {
@@ -76,14 +74,14 @@ const C = (b) => {
76
74
  className: "rotate-90 shrink-0"
77
75
  }
78
76
  )
79
- ] }) : null
77
+ ] })
80
78
  ] })
81
79
  }
82
80
  ) })
83
81
  }
84
82
  );
85
83
  };
86
- C.displayName = "ListSelectDisplayRenderer";
84
+ V.displayName = "ListSelectDisplayRenderer";
87
85
  export {
88
- C as ListSelectDisplayRenderer
86
+ V as ListSelectDisplayRenderer
89
87
  };
@@ -9,6 +9,12 @@ export interface SelectDisplayRendererProps extends ICellRendererParams {
9
9
  placeholder?: string;
10
10
  /** Whether the field is disabled */
11
11
  disabled?: boolean;
12
+ /**
13
+ * In-flight persist / async load. Replaces the chevron with the same spinner
14
+ * Select uses for `isLoading`. Also resolved from `cellMetadata.isLoading`
15
+ * or `rowMetadata.isLoading`.
16
+ */
17
+ isLoading?: boolean;
12
18
  /**
13
19
  * Force-show the AI sparkle when insight metadata is absent.
14
20
  * Prefer `cellMetadata.aiInsight` / `aiInsightField` for per-row control.
@@ -55,6 +61,8 @@ export interface SelectDisplayRendererProps extends ICellRendererParams {
55
61
  * placeholder: 'Select...',
56
62
  * },
57
63
  * }
64
+ * // In-flight persist: `{ value: 'keep', cellMetadata: { isLoading: true } }`
65
+ * // or `rowMetadata: { isLoading: true }` — spinner replaces the chevron.
58
66
  * // Cell value with AI insight:
59
67
  * // { value: 'keep', cellMetadata: { aiInsight: true, confidenceScore: 98, confidenceReason: '...' } }
60
68
  * ```
@@ -1,79 +1,94 @@
1
- import { jsxs as m, jsx as d } from "react/jsx-runtime";
2
- import { ChevronRight as D } from "impact-nova-icons";
1
+ import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
+ import { LoadingSpinner as N, ChevronRight as R } from "impact-nova-icons";
3
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;
4
+ import { readColDefEditable as F } from "../editable-utils.js";
5
+ import { SelectAiInsightAffordance as C } from "./select-ai-insight-affordance.js";
6
+ function E(e) {
7
+ if (e && typeof e == "object" && "cellMetadata" in e)
8
+ return e.cellMetadata;
10
9
  }
11
- const F = (i) => {
10
+ function A(e) {
11
+ if (e && typeof e == "object" && "rowMetadata" in e)
12
+ return e.rowMetadata;
13
+ }
14
+ function g(e) {
15
+ return e.isLoading === !0 || E(e.value)?.isLoading === !0 ? !0 : A(e.data)?.isLoading === !0;
16
+ }
17
+ function I(e) {
18
+ const { value: t, data: a, disabled: d, colDef: i } = e;
19
+ if (d || g(e)) return !1;
20
+ const n = t && typeof t == "object" && "cellMetadata" in t ? t.cellMetadata?._isDisabled : void 0, l = a && typeof a == "object" && "rowMetadata" in a ? a.rowMetadata?._isDisabled : void 0;
21
+ return i?.editable === !1 ? !1 : n === !1 ? !0 : n === !0 ? !1 : l === !1 ? !0 : l === !0 ? !1 : F(i, e);
22
+ }
23
+ const O = (e) => {
12
24
  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,
25
+ value: t,
26
+ options: a = [],
27
+ placeholder: d = "Select...",
28
+ disabled: i,
29
+ data: n,
30
+ showAiInsight: l,
31
+ aiInsightField: h,
32
+ confidenceScore: v,
33
+ confidenceScoreField: y,
34
+ confidenceReason: w,
23
35
  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(
36
+ confidenceLabel: S
37
+ } = e, o = g(e), r = I(e), M = r || o, u = t && typeof t == "object" && "value" in t, j = u ? t.cellMetadata : void 0, c = u ? t.value : t, b = a.find((L) => L.value === String(c ?? ""))?.label ?? (c != null && c !== "" ? String(c) : ""), m = !b, D = n && typeof n == "object" ? n : null;
38
+ return /* @__PURE__ */ p(
27
39
  "div",
28
40
  {
29
41
  className: f(
30
42
  "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"
43
+ i && "opacity-60 cursor-not-allowed",
44
+ r && "in-ag-editable-cell-highlight"
33
45
  ),
34
46
  "data-component": "select-display-renderer",
47
+ "data-loading": o ? "true" : void 0,
48
+ "aria-busy": o || void 0,
35
49
  children: [
36
- /* @__PURE__ */ m(
50
+ /* @__PURE__ */ p(
37
51
  "div",
38
52
  {
39
53
  className: f(
40
54
  "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"
55
+ M ? "bg-canvas-elevated" : "bg-inherit",
56
+ r && "cursor-pointer"
42
57
  ),
43
58
  children: [
44
- /* @__PURE__ */ d(
59
+ /* @__PURE__ */ s(
45
60
  "span",
46
61
  {
47
62
  className: f(
48
63
  "truncate text-sm font-medium text-content",
49
- b && "text-content-empty"
64
+ m && "text-content-empty"
50
65
  ),
51
- children: b ? c : p
66
+ children: m ? d : b
52
67
  }
53
68
  ),
54
- s && /* @__PURE__ */ d(D, { className: "h-3.5 w-3.5 shrink-0 rotate-90 text-content-icon" })
69
+ o ? /* @__PURE__ */ s(N, { size: "14px", className: "shrink-0 text-content-icon" }) : r ? /* @__PURE__ */ s(R, { className: "h-3.5 w-3.5 shrink-0 rotate-90 text-content-icon" }) : null
55
70
  ]
56
71
  }
57
72
  ),
58
- /* @__PURE__ */ d(
59
- M,
73
+ /* @__PURE__ */ s(
74
+ C,
60
75
  {
61
- showAiInsight: n,
62
- aiInsightField: r,
63
- confidenceScore: h,
64
- confidenceScoreField: g,
65
- confidenceReason: v,
76
+ showAiInsight: l,
77
+ aiInsightField: h,
78
+ confidenceScore: v,
79
+ confidenceScoreField: y,
80
+ confidenceReason: w,
66
81
  confidenceReasonField: x,
67
- confidenceLabel: y,
68
- data: S,
69
- cellMetadata: w
82
+ confidenceLabel: S,
83
+ data: D,
84
+ cellMetadata: j
70
85
  }
71
86
  )
72
87
  ]
73
88
  }
74
89
  );
75
90
  };
76
- F.displayName = "SelectDisplayRenderer";
91
+ O.displayName = "SelectDisplayRenderer";
77
92
  export {
78
- F as SelectDisplayRenderer
93
+ O as SelectDisplayRenderer
79
94
  };
@@ -113,6 +113,8 @@ export interface SplitConfig {
113
113
  */
114
114
  export interface CellMetadata {
115
115
  _isDisabled?: boolean;
116
+ /** Persist / async in-flight — display spinner and block the editor. */
117
+ isLoading?: boolean;
116
118
  valueFormatter?: ValueFormatter;
117
119
  }
118
120
  /**
@@ -121,6 +123,8 @@ export interface CellMetadata {
121
123
  */
122
124
  export interface RowMetadata {
123
125
  _isDisabled?: boolean;
126
+ /** Persist / async in-flight — display spinner and block editors on the row. */
127
+ isLoading?: boolean;
124
128
  valueFormatter?: ValueFormatter;
125
129
  [key: string]: unknown;
126
130
  }