impact-nova 3.0.0-alpha.12 → 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/headers/custom-header.js +109 -107
- 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/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- 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
|
};
|
|
@@ -3,7 +3,8 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
function I({
|
|
7
8
|
tags: o,
|
|
8
9
|
title: l = "Attributes",
|
|
9
10
|
maxVisibleTags: n = 4,
|
|
@@ -70,5 +71,5 @@ function w({
|
|
|
70
71
|
);
|
|
71
72
|
}
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
I as ExpandableListItemAttributes
|
|
74
75
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
const m = 128;
|
|
5
|
-
function
|
|
6
|
+
function f({
|
|
6
7
|
columns: i,
|
|
7
8
|
sectionId: l = "metrics"
|
|
8
9
|
}) {
|
|
@@ -50,5 +51,5 @@ function x({
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
f as ExpandableListItemMetrics
|
|
54
55
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
3
|
+
import "react";
|
|
4
|
+
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
4
5
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
5
6
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
6
7
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -9,5 +10,5 @@ const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
9
10
|
] });
|
|
10
11
|
export {
|
|
11
12
|
h as defaultAccordionTooltipRender,
|
|
12
|
-
|
|
13
|
+
p as defaultTabTooltipRender
|
|
13
14
|
};
|
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Person as G, Monitor as U, PriorityAlert as q, Locked as O, Reset as B } from "impact-nova-icons";
|
|
4
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
+
import { Kbd as $ } from "../../primitives/kbd/kbd.js";
|
|
6
|
+
import { keybindingToString as H } from "../../primitives/kbd/keybinding-display.js";
|
|
5
7
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
6
|
-
import { ModuleRegistry as
|
|
7
|
-
import { AllEnterpriseModule as
|
|
8
|
-
import { DataTable as
|
|
8
|
+
import { ModuleRegistry as V, AllCommunityModule as J } from "ag-grid-community";
|
|
9
|
+
import { AllEnterpriseModule as Q } from "ag-grid-enterprise";
|
|
10
|
+
import { DataTable as X, DataTableContent as Y } from "../../data/data-table/data-table.js";
|
|
9
11
|
import { AG_CELL_NO_PADDING as F } from "../../data/ag-grid-react/cell-renderers/index.js";
|
|
10
|
-
import { Kbd as X } from "../../primitives/kbd/kbd.js";
|
|
11
|
-
import { keybindingToString as Y } from "../../primitives/kbd/keybinding-display.js";
|
|
12
12
|
import { useCommandPalette as Z } from "./use-command-palette.js";
|
|
13
13
|
import { COMMAND_SOURCE_LABELS as m, keybindingFromEvent as W, isReservedShortcut as ee } from "./utils.js";
|
|
14
14
|
import { BadgeCellRenderer as te } from "../../data/ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
15
|
-
|
|
15
|
+
V.registerModules([J, Q]);
|
|
16
16
|
function re(a) {
|
|
17
17
|
const t = a.data;
|
|
18
18
|
return t ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
@@ -69,7 +69,7 @@ function ne(a) {
|
|
|
69
69
|
"flex items-center justify-end h-full w-full text-end",
|
|
70
70
|
t.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r($, { keybinding: t.keybinding, size: "sm" })
|
|
73
73
|
}
|
|
74
74
|
) : t.customisable ? /* @__PURE__ */ r(
|
|
75
75
|
"button",
|
|
@@ -133,7 +133,7 @@ function le({
|
|
|
133
133
|
description: e.description || "",
|
|
134
134
|
category: e.category || "General",
|
|
135
135
|
keybinding: i,
|
|
136
|
-
keybindingDisplay: i ?
|
|
136
|
+
keybindingDisplay: i ? H(i) : "",
|
|
137
137
|
scope: e.scope,
|
|
138
138
|
source: D,
|
|
139
139
|
sourceColor: T ? "primary" : "neutral",
|
|
@@ -278,10 +278,10 @@ function le({
|
|
|
278
278
|
u?.type === "conflict" ? /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5 shrink-0" }) : u?.type === "reserved" ? /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5 shrink-0" }) : c ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
279
279
|
/* @__PURE__ */ r("span", { children: u ? u.text : L })
|
|
280
280
|
] }) : null;
|
|
281
|
-
return /* @__PURE__ */ h(
|
|
281
|
+
return /* @__PURE__ */ h(X, { className: p("flex flex-col w-full h-full border-t-0", a), children: [
|
|
282
282
|
s ? s(E) : E,
|
|
283
283
|
/* @__PURE__ */ r(
|
|
284
|
-
|
|
284
|
+
Y,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|
|
@@ -6,8 +6,8 @@ import { cn as o } from "../../../lib/utils.js";
|
|
|
6
6
|
import { MultiColorFilter as F, Cross as P, InfoBadge as u } from "impact-nova-icons";
|
|
7
7
|
import { Button as D } from "../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as c, TooltipTrigger as f, TooltipContent as h } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Kbd as S } from "../../primitives/kbd/kbd.js";
|
|
10
|
+
import { OverflowTooltip as j } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
11
11
|
import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useOverlayHostDismissNestedLayersOnNavigation as I } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
13
|
import { preventDismissOnTooltipOutside as x } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
@@ -145,14 +145,14 @@ const O = ({
|
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
147
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
j,
|
|
149
149
|
{
|
|
150
150
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
151
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
152
|
t.label,
|
|
153
153
|
" ",
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
S,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
import { isInvertedSelection as h, isOptionArray as d } from "../utils/select.js";
|
|
5
|
-
function
|
|
6
|
+
function C({
|
|
6
7
|
isMulti: u,
|
|
7
8
|
isDisabled: p,
|
|
8
9
|
internalValue: o,
|
|
@@ -52,5 +53,5 @@ function w({
|
|
|
52
53
|
);
|
|
53
54
|
}
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
C as SelectTriggerValue
|
|
56
57
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-popover";
|
|
3
3
|
import { Checkbox as P } from "../../checkbox/checkbox.js";
|
|
4
|
+
import "react";
|
|
4
5
|
import { OverflowTooltip as y } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
5
6
|
import { ChevronRight as A, Checkmark as O } from "impact-nova-icons";
|
|
6
7
|
import { cn as v } from "../../../../lib/utils.js";
|
|
7
8
|
import { useOverlayPortalContainer as T } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
8
9
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as _ } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
9
10
|
import { useSuppressOptionClickForTextSelection as E } from "../hooks/useSuppressOptionClickForTextSelection.js";
|
|
10
|
-
const
|
|
11
|
+
const R = ({
|
|
11
12
|
parentOption: n,
|
|
12
13
|
isMulti: u,
|
|
13
14
|
isReadOnly: l,
|
|
@@ -105,5 +106,5 @@ const G = ({
|
|
|
105
106
|
] });
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
R as Submenu
|
|
109
110
|
};
|