impact-nova 3.0.0-alpha.13 → 3.0.0-alpha.14
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/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +50 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +66 -55
- package/dist/components/data/ag-grid-react/index.d.ts +5 -1
- package/dist/components/data/ag-grid-react/index.js +250 -201
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +21 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +46 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +59 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +139 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +17 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +49 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +44 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +73 -0
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +12 -2
- package/dist/components/data/data-table/index.d.ts +6 -0
- package/dist/components/data/data-table/index.js +63 -57
- package/dist/components/primitives/iris/iris.js +20 -18
- package/dist/impact-nova-components.css +71 -0
- package/dist/impact-nova-tokens.scss +2 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +314 -308
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +1 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as i, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p, useMemo as S, useCallback as b, useEffect as x, memo as A, useRef as N, useLayoutEffect as M } from "react";
|
|
3
3
|
import { AgGridWrapper as F } from "../ag-grid-react/index.js";
|
|
4
|
-
import { AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY as
|
|
4
|
+
import { AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY as L } from "../ag-grid-react/ag-grid-list.js";
|
|
5
|
+
import { isAgGridListVariant as B } from "../ag-grid-react/list-drag-grid-options.js";
|
|
5
6
|
import { cn as w } from "../../../lib/utils.js";
|
|
6
|
-
import { DataTableContext as
|
|
7
|
-
import { createDataTableSheetPortalStore as
|
|
8
|
-
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as
|
|
9
|
-
import { scheduleColumnTreePrewarm as
|
|
7
|
+
import { DataTableContext as z, DataTableSheetPortalStoreContext as j, useDataTable as k, useDataTableSheetPortal as y } from "./data-table-context.js";
|
|
8
|
+
import { createDataTableSheetPortalStore as W } from "./data-table-sheet-portal-store.js";
|
|
9
|
+
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as G, DATA_TABLE_SHEET_SLIDE_TRANSITION_MS as Y } from "./data-table-constants.js";
|
|
10
|
+
import { scheduleColumnTreePrewarm as V } from "./data-table-column-tree-cache.js";
|
|
10
11
|
import { scheduleColumnRuntimeStateGuard as X } from "./column-runtime-state-guard.js";
|
|
11
|
-
import { extractRuntimeColumnDefs as
|
|
12
|
+
import { extractRuntimeColumnDefs as $, mergeInitialGridRuntimeState as q } from "./data-table-column-def-pin.js";
|
|
12
13
|
const P = {
|
|
13
14
|
default: 46,
|
|
14
15
|
compact: 30,
|
|
15
16
|
comfort: 52
|
|
16
|
-
},
|
|
17
|
+
}, ue = ({
|
|
17
18
|
children: a,
|
|
18
19
|
className: r
|
|
19
20
|
}) => {
|
|
20
|
-
const [e, t] = p(null), [o, s] = p("medium"), [n, d] = p("full"), [l, u] = p("default"), m = S(() =>
|
|
21
|
+
const [e, t] = p(null), [o, s] = p("medium"), [n, d] = p("full"), [l, u] = p("default"), m = S(() => W(), []), f = b((c) => {
|
|
21
22
|
m.registerScopedSheetDepth(c);
|
|
22
23
|
}, [m]), g = b((c) => {
|
|
23
24
|
t(c);
|
|
@@ -25,7 +26,7 @@ const P = {
|
|
|
25
26
|
x(() => {
|
|
26
27
|
if (!e)
|
|
27
28
|
return;
|
|
28
|
-
const c =
|
|
29
|
+
const c = V(e), _ = X(e);
|
|
29
30
|
return () => {
|
|
30
31
|
c(), _();
|
|
31
32
|
};
|
|
@@ -55,8 +56,8 @@ const P = {
|
|
|
55
56
|
l
|
|
56
57
|
]
|
|
57
58
|
);
|
|
58
|
-
return /* @__PURE__ */ i(
|
|
59
|
-
|
|
59
|
+
return /* @__PURE__ */ i(z.Provider, { value: D, children: /* @__PURE__ */ i(
|
|
60
|
+
j.Provider,
|
|
60
61
|
{
|
|
61
62
|
value: m,
|
|
62
63
|
children: /* @__PURE__ */ i(
|
|
@@ -76,14 +77,14 @@ const P = {
|
|
|
76
77
|
)
|
|
77
78
|
}
|
|
78
79
|
) });
|
|
79
|
-
},
|
|
80
|
+
}, R = {
|
|
80
81
|
full: "full_no",
|
|
81
82
|
k: "thou",
|
|
82
83
|
m: "mil",
|
|
83
84
|
b: "bil",
|
|
84
85
|
full_precision: "full_precision"
|
|
85
|
-
},
|
|
86
|
-
const { setSheetTarget: r } =
|
|
86
|
+
}, J = A(function() {
|
|
87
|
+
const { setSheetTarget: r } = y();
|
|
87
88
|
return /* @__PURE__ */ i(
|
|
88
89
|
"div",
|
|
89
90
|
{
|
|
@@ -91,17 +92,17 @@ const P = {
|
|
|
91
92
|
className: "absolute inset-0 pointer-events-none z-[39] flex overflow-hidden"
|
|
92
93
|
}
|
|
93
94
|
);
|
|
94
|
-
}),
|
|
95
|
+
}), K = A(function({
|
|
95
96
|
className: r,
|
|
96
97
|
children: e
|
|
97
98
|
}) {
|
|
98
|
-
const { scopedSheetOpen: t } =
|
|
99
|
+
const { scopedSheetOpen: t } = y(), o = N(null), [s, n] = p(!1);
|
|
99
100
|
!t && s && n(!1), M(() => {
|
|
100
|
-
if (!t || (o.current?.clientHeight ?? 0) >=
|
|
101
|
+
if (!t || (o.current?.clientHeight ?? 0) >= G)
|
|
101
102
|
return;
|
|
102
103
|
const u = window.setTimeout(() => {
|
|
103
104
|
n(!0);
|
|
104
|
-
},
|
|
105
|
+
}, Y);
|
|
105
106
|
return () => {
|
|
106
107
|
window.clearTimeout(u);
|
|
107
108
|
};
|
|
@@ -115,14 +116,14 @@ const P = {
|
|
|
115
116
|
"relative flex-1 min-h-0 w-full bg-canvas-elevated rounded-b-[inherit] grid-rounded-bottom",
|
|
116
117
|
r
|
|
117
118
|
),
|
|
118
|
-
style: d ? { minHeight:
|
|
119
|
+
style: d ? { minHeight: G } : void 0,
|
|
119
120
|
children: [
|
|
120
121
|
e,
|
|
121
|
-
/* @__PURE__ */ i(
|
|
122
|
+
/* @__PURE__ */ i(J, {})
|
|
122
123
|
]
|
|
123
124
|
}
|
|
124
125
|
);
|
|
125
|
-
}),
|
|
126
|
+
}), Q = A(function({
|
|
126
127
|
resolvedRowHeight: r,
|
|
127
128
|
mergedContext: e,
|
|
128
129
|
onGridReady: t,
|
|
@@ -142,13 +143,13 @@ const P = {
|
|
|
142
143
|
}
|
|
143
144
|
);
|
|
144
145
|
});
|
|
145
|
-
function
|
|
146
|
+
function me(a) {
|
|
146
147
|
const {
|
|
147
148
|
registerApi: r,
|
|
148
149
|
rowHeight: e,
|
|
149
150
|
gridApi: t,
|
|
150
151
|
numericFormat: o
|
|
151
|
-
} =
|
|
152
|
+
} = k(), {
|
|
152
153
|
className: s,
|
|
153
154
|
onGridReady: n,
|
|
154
155
|
rowHeight: d,
|
|
@@ -159,11 +160,11 @@ function ce(a) {
|
|
|
159
160
|
maintainColumnOrder: g = !0,
|
|
160
161
|
variant: h = "table",
|
|
161
162
|
...H
|
|
162
|
-
} = a, D = P[e], c = d ?? (h
|
|
163
|
-
() =>
|
|
163
|
+
} = a, D = P[e], c = d ?? (B(h) ? L[e] : D), { runtimeColumnDefs: _, extractedRuntimeDefaults: v } = S(
|
|
164
|
+
() => $(u ?? void 0),
|
|
164
165
|
[u]
|
|
165
166
|
), C = S(
|
|
166
|
-
() =>
|
|
167
|
+
() => q(
|
|
167
168
|
m,
|
|
168
169
|
v,
|
|
169
170
|
f
|
|
@@ -172,7 +173,7 @@ function ce(a) {
|
|
|
172
173
|
), E = S(
|
|
173
174
|
() => ({
|
|
174
175
|
...l,
|
|
175
|
-
formatType:
|
|
176
|
+
formatType: R[o]
|
|
176
177
|
}),
|
|
177
178
|
[l, o]
|
|
178
179
|
);
|
|
@@ -183,7 +184,7 @@ function ce(a) {
|
|
|
183
184
|
const T = t.getGridOption("context") || {};
|
|
184
185
|
t.setGridOption("context", {
|
|
185
186
|
...T,
|
|
186
|
-
formatType:
|
|
187
|
+
formatType: R[o]
|
|
187
188
|
}), t.refreshCells({ force: !0 });
|
|
188
189
|
}
|
|
189
190
|
}, [o, t]);
|
|
@@ -193,8 +194,8 @@ function ce(a) {
|
|
|
193
194
|
},
|
|
194
195
|
[r, n]
|
|
195
196
|
);
|
|
196
|
-
return /* @__PURE__ */ i(
|
|
197
|
-
|
|
197
|
+
return /* @__PURE__ */ i(K, { className: s, children: /* @__PURE__ */ i(
|
|
198
|
+
Q,
|
|
198
199
|
{
|
|
199
200
|
...H,
|
|
200
201
|
variant: h,
|
|
@@ -207,7 +208,7 @@ function ce(a) {
|
|
|
207
208
|
}
|
|
208
209
|
) });
|
|
209
210
|
}
|
|
210
|
-
const
|
|
211
|
+
const de = ({
|
|
211
212
|
children: a,
|
|
212
213
|
className: r,
|
|
213
214
|
...e
|
|
@@ -224,7 +225,7 @@ const ue = ({
|
|
|
224
225
|
}
|
|
225
226
|
);
|
|
226
227
|
export {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
ue as DataTable,
|
|
229
|
+
me as DataTableContent,
|
|
230
|
+
de as DataTableToolbar
|
|
230
231
|
};
|
|
@@ -15,8 +15,9 @@ export type DataTableProps = {
|
|
|
15
15
|
export type DataTableContentProps<TData = unknown> = AgGridWrapperProps<TData> & {
|
|
16
16
|
className?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Visual skin forwarded to `AgGridWrapper`. `"list"` is card-row chrome
|
|
19
|
-
*
|
|
18
|
+
* Visual skin forwarded to `AgGridWrapper`. `"list"` is card-row chrome
|
|
19
|
+
* (48px card + 12px gap). Pass `onRowReorder` and `getRowId` on `"list"` to
|
|
20
|
+
* enable row drag — same component, not a second variant. Explicit `rowHeight` wins.
|
|
20
21
|
*/
|
|
21
22
|
variant?: AgGridWrapperProps<TData>["variant"];
|
|
22
23
|
/**
|
|
@@ -37,6 +38,15 @@ export type DataTableToolbarProps = {
|
|
|
37
38
|
/** Extra classes on the toolbar root (`data-component="data-table-toolbar"`). */
|
|
38
39
|
className?: string;
|
|
39
40
|
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'children' | 'className'>;
|
|
41
|
+
/**
|
|
42
|
+
* 40px muted heading above a list grid. Optional — skip it for a headerless list.
|
|
43
|
+
*/
|
|
44
|
+
export type DataTableListHeaderProps = {
|
|
45
|
+
title?: React.ReactNode;
|
|
46
|
+
description?: React.ReactNode;
|
|
47
|
+
actions?: React.ReactNode;
|
|
48
|
+
className?: string;
|
|
49
|
+
} & Omit<React.ComponentPropsWithoutRef<"div">, "title" | "children" | "className">;
|
|
40
50
|
/**
|
|
41
51
|
* Scoped settings panel state. Renders inside the `DataTable` container (not a viewport modal).
|
|
42
52
|
*
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export * from './data-table';
|
|
2
|
+
export { DataTableListHeader } from './data-table-list-header';
|
|
3
|
+
export type { DataTableListHeaderProps } from './data-table.types';
|
|
4
|
+
export { useListRowDropZones } from '../ag-grid-react/use-list-row-drop-zones';
|
|
5
|
+
export type { UseListRowDropZonesOptions } from '../ag-grid-react/use-list-row-drop-zones';
|
|
6
|
+
export type { ListRowReorderMeta, ListRowTransferMeta, ListRowDropCheck, } from '../ag-grid-react/list-row-move';
|
|
7
|
+
export { AG_GRID_LIST_RANK_GRADIENT } from '../ag-grid-react/ag-grid-list';
|
|
2
8
|
export * from './column-runtime-state-guard';
|
|
3
9
|
export * from './data-table-constants';
|
|
4
10
|
export * from './data-table-column-list';
|
|
@@ -1,60 +1,66 @@
|
|
|
1
|
-
import { DataTable as t, DataTableContent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
1
|
+
import { DataTable as t, DataTableContent as o, DataTableToolbar as r } from "./data-table.js";
|
|
2
|
+
import { DataTableListHeader as l } from "./data-table-list-header.js";
|
|
3
|
+
import { useListRowDropZones as n } from "../ag-grid-react/use-list-row-drop-zones.js";
|
|
4
|
+
import { AG_GRID_LIST_RANK_GRADIENT as S } from "../ag-grid-react/ag-grid-list.js";
|
|
5
|
+
import { deferColumnRuntimeStateGuard as i, isColumnRuntimeStateGuardDeferred as u, isColumnRuntimeStateGuardUpdating as p, rebuildColumnTreeCacheFromGrid as x, scheduleColumnRuntimeStateGuard as f } from "./column-runtime-state-guard.js";
|
|
6
|
+
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as d, DATA_TABLE_SHEET_SLIDE_TRANSITION_MS as _, TABLE_VIEWPORT_SHELL_EXPANDED_CLASS as h } from "./data-table-constants.js";
|
|
7
|
+
import { DataTableColumnList as E } from "./data-table-column-list.js";
|
|
8
|
+
import { DataTableContext as L, DataTableSheetPortalStoreContext as I, useDataTable as w, useDataTableSheetPortal as P, useDataTableSheetPortalStore as R } from "./data-table-context.js";
|
|
9
|
+
import { DataTableFormatOptions as V } from "./data-table-format-options.js";
|
|
10
|
+
import { DataTableSheet as H, DataTableSheetContent as M, DataTableSheetHeader as c, DataTableSheetTrigger as N } from "./data-table-sheet.js";
|
|
11
|
+
import { DataTableSheetBody as B, DataTableSheetSection as v, DataTableSheetTabPanel as y, DataTableSheetTabs as F, DataTableSheetTabsList as X } from "./data-table-sheet-layout.js";
|
|
12
|
+
import { useDataTableSheet as U, useDataTableSheetApi as W } from "./data-table-sheet-context.js";
|
|
13
|
+
import { DataTableViewMenuContent as j, DataTableViewMenuDensity as k, DataTableViewMenuSettingsItem as q, DataTableViewMenuTrigger as z, DataTableViewMenuViewportExpand as J } from "./data-table-view-menu.js";
|
|
14
|
+
import { DataTableSavedViews as Y } from "./data-table-saved-views.js";
|
|
15
|
+
import { PinSwitch as ee } from "./pin-switch.js";
|
|
16
|
+
import { ColumnIndicator as te } from "./column-indicator.js";
|
|
17
|
+
import { IndicatorLegend as re } from "./indicator-legend.js";
|
|
18
|
+
import { resolveColumnSavability as le } from "./column-savability.js";
|
|
19
|
+
import { mergePartialOrderedColumnState as ne } from "./data-table-column-state.js";
|
|
20
|
+
import { useDataTableViewport as Se } from "./use-data-table-viewport.js";
|
|
18
21
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
S as AG_GRID_LIST_RANK_GRADIENT,
|
|
23
|
+
te as ColumnIndicator,
|
|
24
|
+
d as DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX,
|
|
25
|
+
_ as DATA_TABLE_SHEET_SLIDE_TRANSITION_MS,
|
|
22
26
|
t as DataTable,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
27
|
+
E as DataTableColumnList,
|
|
28
|
+
o as DataTableContent,
|
|
29
|
+
L as DataTableContext,
|
|
30
|
+
V as DataTableFormatOptions,
|
|
31
|
+
l as DataTableListHeader,
|
|
32
|
+
Y as DataTableSavedViews,
|
|
33
|
+
H as DataTableSheet,
|
|
34
|
+
B as DataTableSheetBody,
|
|
35
|
+
M as DataTableSheetContent,
|
|
36
|
+
c as DataTableSheetHeader,
|
|
37
|
+
I as DataTableSheetPortalStoreContext,
|
|
38
|
+
v as DataTableSheetSection,
|
|
39
|
+
y as DataTableSheetTabPanel,
|
|
40
|
+
F as DataTableSheetTabs,
|
|
41
|
+
X as DataTableSheetTabsList,
|
|
42
|
+
N as DataTableSheetTrigger,
|
|
43
|
+
r as DataTableToolbar,
|
|
44
|
+
j as DataTableViewMenuContent,
|
|
45
|
+
k as DataTableViewMenuDensity,
|
|
46
|
+
q as DataTableViewMenuSettingsItem,
|
|
47
|
+
z as DataTableViewMenuTrigger,
|
|
48
|
+
J as DataTableViewMenuViewportExpand,
|
|
49
|
+
re as IndicatorLegend,
|
|
50
|
+
ee as PinSwitch,
|
|
51
|
+
h as TABLE_VIEWPORT_SHELL_EXPANDED_CLASS,
|
|
52
|
+
i as deferColumnRuntimeStateGuard,
|
|
53
|
+
u as isColumnRuntimeStateGuardDeferred,
|
|
54
|
+
p as isColumnRuntimeStateGuardUpdating,
|
|
55
|
+
ne as mergePartialOrderedColumnState,
|
|
56
|
+
x as rebuildColumnTreeCacheFromGrid,
|
|
57
|
+
le as resolveColumnSavability,
|
|
58
|
+
f as scheduleColumnRuntimeStateGuard,
|
|
59
|
+
w as useDataTable,
|
|
60
|
+
U as useDataTableSheet,
|
|
61
|
+
W as useDataTableSheetApi,
|
|
62
|
+
P as useDataTableSheetPortal,
|
|
63
|
+
R as useDataTableSheetPortalStore,
|
|
64
|
+
Se as useDataTableViewport,
|
|
65
|
+
n as useListRowDropZones
|
|
60
66
|
};
|
|
@@ -22,20 +22,20 @@ const G = {
|
|
|
22
22
|
size: i = "md",
|
|
23
23
|
shape: o = "default",
|
|
24
24
|
children: s,
|
|
25
|
-
type:
|
|
26
|
-
...
|
|
25
|
+
type: r = "button",
|
|
26
|
+
...e
|
|
27
27
|
}, a) => /* @__PURE__ */ t("span", { className: P({ shape: o }), children: /* @__PURE__ */ p(
|
|
28
28
|
w,
|
|
29
29
|
{
|
|
30
30
|
ref: a,
|
|
31
|
-
type:
|
|
31
|
+
type: r,
|
|
32
32
|
variant: "ghost",
|
|
33
33
|
size: V[i],
|
|
34
34
|
"data-component": "iris-button",
|
|
35
35
|
"data-size": i,
|
|
36
36
|
"data-shape": o,
|
|
37
37
|
className: l(k({ size: i }), n),
|
|
38
|
-
...
|
|
38
|
+
...e,
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ t(v, { size: G[i] }),
|
|
41
41
|
s ?? "Ask Iris"
|
|
@@ -49,8 +49,8 @@ const G = {
|
|
|
49
49
|
appearance: i = "outline",
|
|
50
50
|
size: o = "md",
|
|
51
51
|
shape: s = "default",
|
|
52
|
-
type:
|
|
53
|
-
"aria-label":
|
|
52
|
+
type: r = "button",
|
|
53
|
+
"aria-label": e = "Ask Iris",
|
|
54
54
|
...a
|
|
55
55
|
}, d) => {
|
|
56
56
|
const m = S({ appearance: i, shape: s }), c = i === "filled" ? /* @__PURE__ */ t(N, { size: 16, className: "text-brand-foreground" }) : /* @__PURE__ */ t(v, { size: 16 });
|
|
@@ -58,12 +58,12 @@ const G = {
|
|
|
58
58
|
"button",
|
|
59
59
|
{
|
|
60
60
|
ref: d,
|
|
61
|
-
type:
|
|
61
|
+
type: r,
|
|
62
62
|
"data-component": "iris-icon-button",
|
|
63
63
|
"data-appearance": i,
|
|
64
64
|
"data-size": o,
|
|
65
65
|
"data-shape": s,
|
|
66
|
-
"aria-label":
|
|
66
|
+
"aria-label": e,
|
|
67
67
|
className: l(j({ size: o }), n),
|
|
68
68
|
...a,
|
|
69
69
|
children: c
|
|
@@ -72,14 +72,14 @@ const G = {
|
|
|
72
72
|
w,
|
|
73
73
|
{
|
|
74
74
|
ref: d,
|
|
75
|
-
type:
|
|
75
|
+
type: r,
|
|
76
76
|
variant: "ghost",
|
|
77
77
|
size: y[o],
|
|
78
78
|
"data-component": "iris-icon-button",
|
|
79
79
|
"data-appearance": i,
|
|
80
80
|
"data-size": o,
|
|
81
81
|
"data-shape": s,
|
|
82
|
-
"aria-label":
|
|
82
|
+
"aria-label": e,
|
|
83
83
|
className: l(M({ size: o }), n),
|
|
84
84
|
...a,
|
|
85
85
|
children: c
|
|
@@ -93,11 +93,11 @@ const G = {
|
|
|
93
93
|
appearance: i = "loading",
|
|
94
94
|
children: o,
|
|
95
95
|
onAskInChat: s,
|
|
96
|
-
askInChatLabel:
|
|
97
|
-
overflowTooltipContent:
|
|
96
|
+
askInChatLabel: r = "Ask in chat",
|
|
97
|
+
overflowTooltipContent: e,
|
|
98
98
|
...a
|
|
99
99
|
}, d) => {
|
|
100
|
-
const m = i === "loading" || i === "status", c = i === "card", f =
|
|
100
|
+
const m = i === "loading" || i === "status", c = i === "card", f = e ?? (typeof o == "string" ? o : void 0), u = /* @__PURE__ */ p(
|
|
101
101
|
"div",
|
|
102
102
|
{
|
|
103
103
|
ref: d,
|
|
@@ -129,7 +129,7 @@ const G = {
|
|
|
129
129
|
children: i === "status" ? /* @__PURE__ */ t(A, { overflowTooltipContent: f, children: o }) : o
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
|
-
c && s && /* @__PURE__ */ t(w, { variant: "outline", size: "sm", className: "max-h-7 capitalize", onClick: s, children:
|
|
132
|
+
c && s && /* @__PURE__ */ t(w, { variant: "outline", size: "sm", className: "max-h-7 capitalize", onClick: s, children: r })
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
);
|
|
@@ -151,8 +151,8 @@ const G = {
|
|
|
151
151
|
iconSize: i = "md",
|
|
152
152
|
iconAppearance: o = "outline",
|
|
153
153
|
loadingLabel: s = "Gathering insights...",
|
|
154
|
-
onTriggerClick:
|
|
155
|
-
onAskInChat:
|
|
154
|
+
onTriggerClick: r,
|
|
155
|
+
onAskInChat: e,
|
|
156
156
|
askInChatLabel: a,
|
|
157
157
|
className: d,
|
|
158
158
|
children: m
|
|
@@ -182,7 +182,7 @@ const G = {
|
|
|
182
182
|
appearance: b ? "filled" : o,
|
|
183
183
|
"aria-expanded": f && h,
|
|
184
184
|
onClick: (I) => {
|
|
185
|
-
n === "idle" && (
|
|
185
|
+
n === "idle" && (r?.(), I.preventDefault());
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
) }),
|
|
@@ -197,7 +197,9 @@ const G = {
|
|
|
197
197
|
C,
|
|
198
198
|
{
|
|
199
199
|
appearance: "card",
|
|
200
|
-
onAskInChat:
|
|
200
|
+
onAskInChat: e ? () => {
|
|
201
|
+
e(), u(!1);
|
|
202
|
+
} : void 0,
|
|
201
203
|
askInChatLabel: a,
|
|
202
204
|
children: m
|
|
203
205
|
}
|
|
@@ -2047,12 +2047,25 @@ html.iris-agent-session *:not(.iris-agent-cursor):not(.iris-agent-cursor *):not(
|
|
|
2047
2047
|
background-color: var(--color-primary-soft);
|
|
2048
2048
|
}
|
|
2049
2049
|
|
|
2050
|
+
[data-component="ag-grid-react"][data-variant="list"][data-list-header="none"] .ag-header,
|
|
2051
|
+
[data-component="ag-grid-react"][data-variant="list"][data-list-header="none"] .ag-grid-pinned-top-rows {
|
|
2052
|
+
display: none;
|
|
2053
|
+
height: 0;
|
|
2054
|
+
min-height: 0;
|
|
2055
|
+
max-height: 0;
|
|
2056
|
+
margin: 0;
|
|
2057
|
+
overflow: hidden;
|
|
2058
|
+
border: none;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2050
2061
|
[data-component="ag-grid-react"][data-variant="list"] .ag-cell {
|
|
2051
2062
|
z-index: 1;
|
|
2052
2063
|
pointer-events: auto;
|
|
2053
2064
|
display: flex;
|
|
2054
2065
|
align-items: center;
|
|
2055
2066
|
box-sizing: border-box;
|
|
2067
|
+
min-width: 0;
|
|
2068
|
+
overflow: hidden;
|
|
2056
2069
|
height: calc(var(--ag-row-height, 60px) - var(--in-ag-list-gap));
|
|
2057
2070
|
max-height: calc(var(--ag-row-height, 60px) - var(--in-ag-list-gap));
|
|
2058
2071
|
background-color: transparent;
|
|
@@ -2235,3 +2248,61 @@ html.iris-agent-session *:not(.iris-agent-cursor):not(.iris-agent-cursor *):not(
|
|
|
2235
2248
|
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
2236
2249
|
}
|
|
2237
2250
|
}
|
|
2251
|
+
|
|
2252
|
+
/* List drag — opt-in layer on the list skin (`data-list-drag`, from `onRowReorder`
|
|
2253
|
+
or the `drag-list` alias). Per-row gradient comes from `listRowGradient`
|
|
2254
|
+
via --in-ag-list-row-gradient on the .ag-row. */
|
|
2255
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row::before {
|
|
2256
|
+
background-image: var(--in-ag-list-row-gradient, none);
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
/* Dragged row: whole card highlighted and dimmed. The original stays in place
|
|
2260
|
+
(suppressMoveWhenRowDragging) while the ghost follows the pointer. */
|
|
2261
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-dragging {
|
|
2262
|
+
opacity: 0.5;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-dragging::before {
|
|
2266
|
+
background-color: var(--color-primary-soft);
|
|
2267
|
+
border-color: var(--color-primary);
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
/* Drop target: primary stroke on the edge where the row will land (sits in the row gap).
|
|
2271
|
+
AG Grid's own full-slot indicator line is replaced. */
|
|
2272
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-above::after,
|
|
2273
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-below::after {
|
|
2274
|
+
display: none;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-above::before {
|
|
2278
|
+
box-shadow: 0 -2px 0 0 var(--color-primary);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-below::before {
|
|
2282
|
+
box-shadow: 0 2px 0 0 var(--color-primary);
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-inside::before {
|
|
2286
|
+
box-shadow: 0 2px 0 0 var(--color-primary);
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/* Pressing the drag handle focuses/range-selects its cell; keep the highlight on the whole row only. */
|
|
2290
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-cell.ag-cell[col-id="__drag-handle"],
|
|
2291
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-row-dragging .ag-cell.ag-cell {
|
|
2292
|
+
border-color: transparent;
|
|
2293
|
+
background-color: transparent;
|
|
2294
|
+
outline: none;
|
|
2295
|
+
box-shadow: none;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-cell.ag-cell[col-id="__drag-handle"]::after,
|
|
2299
|
+
[data-component="ag-grid-react"][data-list-drag="true"] .ag-cell.ag-cell[col-id="__drag-handle"]::before {
|
|
2300
|
+
display: none;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
/* Hide AG Grid's default text ghost. Drag-list feedback is the dimmed source row
|
|
2304
|
+
plus the drop-edge highlight; `listDragPreview` is opt-in on top of that. */
|
|
2305
|
+
body:has([data-component="ag-grid-react"][data-list-drag="true"]) .ag-dnd-ghost,
|
|
2306
|
+
body[data-in-list-drag="true"] .ag-dnd-ghost {
|
|
2307
|
+
opacity: 0;
|
|
2308
|
+
}
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
--color-badge-warning-filled: #ffe875;
|
|
80
80
|
--color-badge-warning-muted: #fdfae8;
|
|
81
81
|
--color-badge-warning-text: #8e7306;
|
|
82
|
+
--color-list-row-gradient-start: #f7f1fb;
|
|
82
83
|
|
|
83
84
|
/* —— Component-specific —— */
|
|
84
85
|
--color-button-primary-disabled: #c3c8d4;
|
|
@@ -369,6 +370,7 @@
|
|
|
369
370
|
--color-badge-warning-filled: #f59e0b;
|
|
370
371
|
--color-badge-warning-muted: #2d2410;
|
|
371
372
|
--color-badge-warning-text: #fcd34d;
|
|
373
|
+
--color-list-row-gradient-start: #3a2d42;
|
|
372
374
|
|
|
373
375
|
/* —— Component-specific —— */
|
|
374
376
|
--color-button-primary-disabled: #404040;
|