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.
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
- package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +115 -111
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
- package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
- package/dist/impact-nova-components.css +85 -0
- package/dist/impact-nova.css +1 -1
- package/dist/lib/overflow/is-text-overflowing.js +24 -6
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/package.json +1 -1
|
@@ -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
|
|
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,
|
|
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" ?
|
|
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
|
|
70
|
-
if (
|
|
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
|
|
91
|
-
if (
|
|
92
|
-
if (
|
|
93
|
-
const
|
|
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
|
-
|
|
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
|
|
2
|
-
import { ChevronRight as
|
|
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
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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:
|
|
14
|
-
options:
|
|
15
|
-
placeholder:
|
|
16
|
-
disabled:
|
|
17
|
-
data:
|
|
18
|
-
showAiInsight:
|
|
19
|
-
aiInsightField:
|
|
20
|
-
confidenceScore:
|
|
21
|
-
confidenceScoreField:
|
|
22
|
-
confidenceReason:
|
|
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:
|
|
25
|
-
} =
|
|
26
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
32
|
-
|
|
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__ */
|
|
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
|
-
|
|
54
|
+
M ? "bg-canvas-elevated" : "bg-inherit",
|
|
55
|
+
r && "cursor-pointer"
|
|
42
56
|
),
|
|
43
57
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ s(
|
|
45
59
|
"span",
|
|
46
60
|
{
|
|
47
61
|
className: f(
|
|
48
62
|
"truncate text-sm font-medium text-content",
|
|
49
|
-
|
|
63
|
+
g && "text-content-empty"
|
|
50
64
|
),
|
|
51
|
-
children:
|
|
65
|
+
children: g ? d : m
|
|
52
66
|
}
|
|
53
67
|
),
|
|
54
|
-
s
|
|
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__ */
|
|
59
|
-
|
|
72
|
+
/* @__PURE__ */ s(
|
|
73
|
+
E,
|
|
60
74
|
{
|
|
61
|
-
showAiInsight:
|
|
62
|
-
aiInsightField:
|
|
63
|
-
confidenceScore:
|
|
64
|
-
confidenceScoreField:
|
|
65
|
-
confidenceReason:
|
|
75
|
+
showAiInsight: l,
|
|
76
|
+
aiInsightField: u,
|
|
77
|
+
confidenceScore: v,
|
|
78
|
+
confidenceScoreField: y,
|
|
79
|
+
confidenceReason: w,
|
|
66
80
|
confidenceReasonField: x,
|
|
67
|
-
confidenceLabel:
|
|
68
|
-
data:
|
|
69
|
-
cellMetadata:
|
|
81
|
+
confidenceLabel: S,
|
|
82
|
+
data: D,
|
|
83
|
+
cellMetadata: j
|
|
70
84
|
}
|
|
71
85
|
)
|
|
72
86
|
]
|
|
73
87
|
}
|
|
74
88
|
);
|
|
75
89
|
};
|
|
76
|
-
|
|
90
|
+
I.displayName = "SelectDisplayRenderer";
|
|
77
91
|
export {
|
|
78
|
-
|
|
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';
|