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

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 (212) 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.types.d.ts +5 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  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 +56 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  11. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  12. package/dist/components/data/ag-grid-react/index.js +115 -111
  13. package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
  14. package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
  15. package/dist/impact-nova-components.css +85 -0
  16. package/dist/impact-nova.css +1 -1
  17. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  18. package/dist/llms/rules/installation.js +1 -1
  19. package/dist/llms/rules/requirements.js +1 -1
  20. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  21. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  22. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  23. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  24. package/dist/node_modules/bail/index.js +7 -0
  25. package/dist/node_modules/ccount/index.js +12 -0
  26. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  27. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  28. package/dist/node_modules/devlop/lib/default.js +8 -0
  29. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  30. package/dist/node_modules/extend/index.js +43 -0
  31. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  32. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  33. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  34. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  35. package/dist/node_modules/is-plain-obj/index.js +9 -0
  36. package/dist/node_modules/longest-streak/index.js +12 -0
  37. package/dist/node_modules/markdown-table/index.js +75 -0
  38. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  39. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  40. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  41. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  42. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  43. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  44. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  45. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  46. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  47. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  76. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  77. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  78. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  79. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  80. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  81. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  82. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  83. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  84. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  85. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  86. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  87. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  88. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  89. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  90. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  91. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  92. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  93. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  94. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  95. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  96. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  97. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  98. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  99. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  100. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  101. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  102. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  103. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  104. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  105. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  106. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  107. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  108. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  109. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  110. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  111. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  112. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  113. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  114. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  115. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  116. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  117. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  118. package/dist/node_modules/micromark/lib/parse.js +32 -0
  119. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  120. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  144. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  145. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  146. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  147. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  148. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  149. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  150. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  151. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  152. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  153. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  154. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  155. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  156. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  157. package/dist/node_modules/micromark-util-character/index.js +39 -0
  158. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  159. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  160. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  161. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  162. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  163. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  164. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  165. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  166. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  167. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  168. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  169. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  170. package/dist/node_modules/property-information/index.js +12 -0
  171. package/dist/node_modules/property-information/lib/aria.js +61 -0
  172. package/dist/node_modules/property-information/lib/find.js +33 -0
  173. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  174. package/dist/node_modules/property-information/lib/html.js +378 -0
  175. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  176. package/dist/node_modules/property-information/lib/svg.js +568 -0
  177. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  178. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  179. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  180. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  181. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  182. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  183. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  184. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  185. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  186. package/dist/node_modules/property-information/lib/xml.js +11 -0
  187. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  188. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  189. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  190. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  191. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  192. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  193. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  194. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  195. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  196. package/dist/node_modules/trim-lines/index.js +28 -0
  197. package/dist/node_modules/trough/lib/index.js +60 -0
  198. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  199. package/dist/node_modules/unified/lib/index.js +529 -0
  200. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  201. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  202. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  203. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  204. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  205. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  206. package/dist/node_modules/vfile/lib/index.js +406 -0
  207. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  208. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  209. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  210. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  211. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  212. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
4
+ export {
5
+ e as getDefaultExportFromCjs
6
+ };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/style-to-js/cjs/index.js";
3
+ var t = o();
4
+ const a = /* @__PURE__ */ r(t);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
2
+ import { __require as r } from "../node_modules/extend/index.js";
3
+ var t = r();
4
+ const a = /* @__PURE__ */ e(t);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -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
  };
@@ -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,93 @@
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 { SelectAiInsightAffordance as E } from "./select-ai-insight-affordance.js";
5
+ function F(e) {
6
+ if (e && typeof e == "object" && "cellMetadata" in e)
7
+ return e.cellMetadata;
10
8
  }
11
- const F = (i) => {
9
+ function A(e) {
10
+ if (e && typeof e == "object" && "rowMetadata" in e)
11
+ return e.rowMetadata;
12
+ }
13
+ function h(e) {
14
+ return e.isLoading === !0 || F(e.value)?.isLoading === !0 ? !0 : A(e.data)?.isLoading === !0;
15
+ }
16
+ function C(e) {
17
+ const { value: t, data: a, disabled: d, colDef: i } = e;
18
+ if (d || h(e)) return !1;
19
+ 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, u = i?._originalEditable;
20
+ return i?.editable === !1 ? !1 : n === !1 ? !0 : n === !0 ? !1 : l === !1 ? !0 : l === !0 ? !1 : u === !0 || i?.editable === !0;
21
+ }
22
+ const I = (e) => {
12
23
  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,
24
+ value: t,
25
+ options: a = [],
26
+ placeholder: d = "Select...",
27
+ disabled: i,
28
+ data: n,
29
+ showAiInsight: l,
30
+ aiInsightField: u,
31
+ confidenceScore: v,
32
+ confidenceScoreField: y,
33
+ confidenceReason: w,
23
34
  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(
35
+ confidenceLabel: S
36
+ } = e, o = h(e), r = C(e), M = r || o, b = t && typeof t == "object" && "value" in t, j = b ? t.cellMetadata : void 0, c = b ? t.value : t, m = a.find((L) => L.value === String(c ?? ""))?.label ?? (c != null && c !== "" ? String(c) : ""), g = !m, D = n && typeof n == "object" ? n : null;
37
+ return /* @__PURE__ */ p(
27
38
  "div",
28
39
  {
29
40
  className: f(
30
41
  "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"
42
+ i && "opacity-60 cursor-not-allowed",
43
+ r && "in-ag-editable-cell-highlight"
33
44
  ),
34
45
  "data-component": "select-display-renderer",
46
+ "data-loading": o ? "true" : void 0,
47
+ "aria-busy": o || void 0,
35
48
  children: [
36
- /* @__PURE__ */ m(
49
+ /* @__PURE__ */ p(
37
50
  "div",
38
51
  {
39
52
  className: f(
40
53
  "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"
54
+ M ? "bg-canvas-elevated" : "bg-inherit",
55
+ r && "cursor-pointer"
42
56
  ),
43
57
  children: [
44
- /* @__PURE__ */ d(
58
+ /* @__PURE__ */ s(
45
59
  "span",
46
60
  {
47
61
  className: f(
48
62
  "truncate text-sm font-medium text-content",
49
- b && "text-content-empty"
63
+ g && "text-content-empty"
50
64
  ),
51
- children: b ? c : p
65
+ children: g ? d : m
52
66
  }
53
67
  ),
54
- s && /* @__PURE__ */ d(D, { className: "h-3.5 w-3.5 shrink-0 rotate-90 text-content-icon" })
68
+ 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
69
  ]
56
70
  }
57
71
  ),
58
- /* @__PURE__ */ d(
59
- M,
72
+ /* @__PURE__ */ s(
73
+ E,
60
74
  {
61
- showAiInsight: n,
62
- aiInsightField: r,
63
- confidenceScore: h,
64
- confidenceScoreField: g,
65
- confidenceReason: v,
75
+ showAiInsight: l,
76
+ aiInsightField: u,
77
+ confidenceScore: v,
78
+ confidenceScoreField: y,
79
+ confidenceReason: w,
66
80
  confidenceReasonField: x,
67
- confidenceLabel: y,
68
- data: S,
69
- cellMetadata: w
81
+ confidenceLabel: S,
82
+ data: D,
83
+ cellMetadata: j
70
84
  }
71
85
  )
72
86
  ]
73
87
  }
74
88
  );
75
89
  };
76
- F.displayName = "SelectDisplayRenderer";
90
+ I.displayName = "SelectDisplayRenderer";
77
91
  export {
78
- F as SelectDisplayRenderer
92
+ I as SelectDisplayRenderer
79
93
  };
@@ -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
  }
@@ -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, variant, ...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, rowLoading, className, ...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';