impact-nova 3.0.0-alpha.13 → 3.0.0-alpha.15
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/forms/choice-card/choice-card.js +99 -97
- package/dist/components/forms/choice-card/choice-card.variants.js +22 -1
- 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
|
@@ -12,5 +12,7 @@ export declare const AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY: {
|
|
|
12
12
|
};
|
|
13
13
|
/** Visible header bar height. Gap under the bar is CSS margin on the pinned header, not extra headerHeight — stuffing 12px into headerHeight made the bar read as 52px. */
|
|
14
14
|
export declare const AG_GRID_LIST_HEADER_HEIGHT_PX = 40;
|
|
15
|
-
export type { AgGridVisualVariant } from './ag-grid.types';
|
|
15
|
+
export type { AgGridVisualVariant, AgGridListHeaderMode } from './ag-grid.types';
|
|
16
|
+
/** Token-based rank wash: solid through the 68px handle, fade across the rank cell. */
|
|
17
|
+
export declare const AG_GRID_LIST_RANK_GRADIENT = "linear-gradient(to right, var(--color-list-row-gradient-start) 0px, var(--color-list-row-gradient-start) 68px, transparent 218px)";
|
|
16
18
|
export declare const customAgGridListTheme: import('ag-stack').Theme<unknown>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ListRowReorderMeta, ListRowTransferMeta } from './list-row-move';
|
|
2
|
+
import { BadgeColor } from './cell-renderers/types';
|
|
3
|
+
export declare const KEY_ATTRIBUTES_TOP_CAP = 5;
|
|
4
|
+
/** Demo-only: top-list row with a disabled drag handle (Storybook verification). */
|
|
5
|
+
export declare const KEY_ATTRIBUTES_DEMO_DRAG_DISABLED_ID = "brand";
|
|
6
|
+
/** Demo-only: bench → top transfer rejected by `canDropRow` (Storybook verification). */
|
|
7
|
+
export declare const KEY_ATTRIBUTES_DEMO_TRANSFER_REJECTED_ID = "closure";
|
|
8
|
+
export interface KeyAttributeRecord {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface KeyAttributeRow extends KeyAttributeRecord {
|
|
13
|
+
rank: string;
|
|
14
|
+
defaultRank: string;
|
|
15
|
+
rankColor: BadgeColor;
|
|
16
|
+
note: string;
|
|
17
|
+
}
|
|
18
|
+
export interface KeyAttributesBoardState {
|
|
19
|
+
topIds: string[];
|
|
20
|
+
benchIds: string[];
|
|
21
|
+
}
|
|
22
|
+
export declare const KEY_ATTRIBUTE_CATALOG: KeyAttributeRecord[];
|
|
23
|
+
export declare const INITIAL_KEY_ATTRIBUTES_BOARD: KeyAttributesBoardState;
|
|
24
|
+
export declare function originalRankById(catalog?: KeyAttributeRecord[]): Record<string, number>;
|
|
25
|
+
export declare function deriveKeyAttributeRows(options: {
|
|
26
|
+
ids: string[];
|
|
27
|
+
catalog?: KeyAttributeRecord[];
|
|
28
|
+
originalRank?: Record<string, number>;
|
|
29
|
+
ranked: boolean;
|
|
30
|
+
/** Continue a single ranking across lists. Bench uses the top-list length. */
|
|
31
|
+
rankOffset?: number;
|
|
32
|
+
}): KeyAttributeRow[];
|
|
33
|
+
export declare function reorderKeyAttributesBoard(state: KeyAttributesBoardState, listId: 'top' | 'bench', meta: ListRowReorderMeta<KeyAttributeRow>): KeyAttributesBoardState;
|
|
34
|
+
/**
|
|
35
|
+
* Cross-list drop with a fixed Top N. The dropped row stays on the list the user
|
|
36
|
+
* targeted. Bench → top inserts at the slot (clamped so it cannot overflow itself)
|
|
37
|
+
* and the previous last top row becomes #N+1. Top → bench closes the hole and
|
|
38
|
+
* promotes the first remaining bench row until `top.length === cap`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function transferKeyAttributesBoard(state: KeyAttributesBoardState, meta: ListRowTransferMeta<KeyAttributeRow>, cap?: number): KeyAttributesBoardState;
|
|
41
|
+
export declare function applyKeyAttributesDrag(options: {
|
|
42
|
+
ids: string[];
|
|
43
|
+
draggedId: string;
|
|
44
|
+
overId: string | undefined;
|
|
45
|
+
position: 'above' | 'below';
|
|
46
|
+
}): ListRowReorderMeta<string> | null;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { customAgGridTheme as o } from "./theme.js";
|
|
2
|
-
const
|
|
3
|
-
default:
|
|
2
|
+
const t = 48, r = 12, e = t + r, s = {
|
|
3
|
+
default: e,
|
|
4
4
|
compact: 30 + r,
|
|
5
5
|
comfort: 52 + r
|
|
6
|
-
},
|
|
6
|
+
}, _ = 40, G = "linear-gradient(to right, var(--color-list-row-gradient-start) 0px, var(--color-list-row-gradient-start) 68px, transparent 218px)", I = o.withParams({
|
|
7
7
|
columnBorder: !1,
|
|
8
8
|
rowBorder: !1,
|
|
9
9
|
headerColumnBorder: !1,
|
|
10
10
|
headerRowBorder: !1,
|
|
11
11
|
wrapperBorder: !1,
|
|
12
|
-
headerHeight:
|
|
12
|
+
headerHeight: _,
|
|
13
13
|
// Card hover/selection is list CSS (::before on .ag-row); avoid full-slot theme overlay.
|
|
14
14
|
rowHoverColor: "transparent"
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
t as AG_GRID_LIST_CARD_HEIGHT_PX,
|
|
18
|
+
_ as AG_GRID_LIST_HEADER_HEIGHT_PX,
|
|
19
|
+
G as AG_GRID_LIST_RANK_GRADIENT,
|
|
19
20
|
r as AG_GRID_LIST_ROW_GAP_PX,
|
|
20
21
|
s as AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
e as AG_GRID_LIST_ROW_HEIGHT_PX,
|
|
23
|
+
I as customAgGridListTheme
|
|
23
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function KeyAttributesBoard(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ListRowDropCheck, ListRowReorderMeta } from './list-row-move';
|
|
2
3
|
import { ColDef, ColGroupDef, IHeaderParams, IHeaderGroupParams, Column, ValueFormatterParams } from 'ag-grid-community';
|
|
3
4
|
import { Theme } from 'ag-grid-enterprise';
|
|
4
5
|
import { FiscalPickerProps } from '../../forms/date-picker/date-picker.types';
|
|
@@ -9,8 +10,14 @@ export interface ImpactNovaColDef<TData = unknown> extends ColDef<TData> {
|
|
|
9
10
|
/** Original column-level editable before addRowDataEditableCheck wraps the callback */
|
|
10
11
|
_originalEditable?: boolean;
|
|
11
12
|
}
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Visual skin for `AgGridWrapper` / `DataTableContent`.
|
|
15
|
+
* `"list"` is the card-row skin. Pass `onRowReorder` (and `getRowId`) on that
|
|
16
|
+
* skin to enable row drag — there is no separate drag component or variant.
|
|
17
|
+
*/
|
|
13
18
|
export type AgGridVisualVariant = 'table' | 'list';
|
|
19
|
+
/** Column header bar for list skins. `"none"` hides AG Grid headers (`headerHeight: 0`). */
|
|
20
|
+
export type AgGridListHeaderMode = 'columns' | 'none';
|
|
14
21
|
/**
|
|
15
22
|
* Extended header component params for custom header
|
|
16
23
|
* Extends IHeaderParams to include all AG Grid header properties plus custom ones
|
|
@@ -153,10 +160,50 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
|
|
|
153
160
|
*/
|
|
154
161
|
themeOverride?: Theme;
|
|
155
162
|
/**
|
|
156
|
-
* Visual skin. `"table"` is
|
|
157
|
-
* column model
|
|
163
|
+
* Visual skin. `"table"` (default) is grid chrome. `"list"` is card-row styling
|
|
164
|
+
* on the same column model. Row drag is not a second variant — pass `onRowReorder`
|
|
165
|
+
* and `getRowId` on `"list"` (handles, drop, Alt+Arrow).
|
|
158
166
|
*/
|
|
159
167
|
variant?: AgGridVisualVariant;
|
|
168
|
+
/**
|
|
169
|
+
* List + `onRowReorder` only. Custom card that follows the cursor while a row is dragged
|
|
170
|
+
* (replaces AG Grid's text ghost). Receives the dragged row's data, read once at drag start.
|
|
171
|
+
*/
|
|
172
|
+
listDragPreview?: (params: {
|
|
173
|
+
data: TData;
|
|
174
|
+
}) => ReactNode;
|
|
175
|
+
/**
|
|
176
|
+
* List skin only. Background gradient on each row card.
|
|
177
|
+
* Pass a CSS `background-image` string, or a function per row. Return `undefined` for a plain card.
|
|
178
|
+
*
|
|
179
|
+
* @example "linear-gradient(to right, var(--color-primary-soft), transparent 220px)"
|
|
180
|
+
*/
|
|
181
|
+
listRowGradient?: string | ((params: {
|
|
182
|
+
data: TData | undefined;
|
|
183
|
+
rowIndex: number | null;
|
|
184
|
+
}) => string | undefined);
|
|
185
|
+
/**
|
|
186
|
+
* List skin only. `"columns"` (default) keeps the AG Grid header bar. `"none"` hides it
|
|
187
|
+
* so a `DataTableListHeader` (or no heading) can sit above the cards.
|
|
188
|
+
*/
|
|
189
|
+
listHeader?: AgGridListHeaderMode;
|
|
190
|
+
/**
|
|
191
|
+
* List skin only. Enables row drag. After drop or Alt+Arrow, called with the next `rows`
|
|
192
|
+
* in full `rowData` order (including when a quick filter is active). You own the data:
|
|
193
|
+
* set state from `meta.rows`. Requires `getRowId`.
|
|
194
|
+
*
|
|
195
|
+
* @example onRowReorder={({ rows }) => setRows(rows)}
|
|
196
|
+
*/
|
|
197
|
+
onRowReorder?: (meta: ListRowReorderMeta<TData>) => void;
|
|
198
|
+
/** List + `onRowReorder` only. Disable the handle for a given row. */
|
|
199
|
+
isRowDragDisabled?: (data: TData | undefined) => boolean;
|
|
200
|
+
/** List + `onRowReorder` only. Accessible name for the row drag handle. */
|
|
201
|
+
getRowDragHandleLabel?: (data: TData | undefined) => string;
|
|
202
|
+
/**
|
|
203
|
+
* List + `onRowReorder` only. Return false to ignore the drop and hide the indicator.
|
|
204
|
+
* Cross-list transfers use the same check via `useListRowDropZones`.
|
|
205
|
+
*/
|
|
206
|
+
canDropRow?: (params: ListRowDropCheck<TData>) => boolean;
|
|
160
207
|
/**
|
|
161
208
|
* Viewport row shimmer while more pages load. Does **not** show AG Grid's
|
|
162
209
|
* centered overlay — use `loading` only when the grid has no rows yet.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColDef, ColGroupDef } from 'ag-grid-community';
|
|
2
|
+
export declare const AG_GRID_DRAG_HANDLE_WIDTH_PX = 68;
|
|
3
|
+
/** Prepends the custom drag-handle column unless a column already sets `rowDrag`. */
|
|
4
|
+
export declare function buildDragListColumnDefs<TData>(options: {
|
|
5
|
+
columnDefs: Array<ColDef<TData> | ColGroupDef<TData>> | null | undefined;
|
|
6
|
+
isRowDragDisabled?: (data: TData | undefined) => boolean;
|
|
7
|
+
getRowDragHandleLabel?: (data: TData | undefined) => string;
|
|
8
|
+
}): Array<ColDef<TData> | ColGroupDef<TData>> | null | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DragHandleCellRenderer as n, AG_GRID_DRAG_HANDLE_COL_ID as i } from "./cell-renderers/drag-handle-cell-renderer.js";
|
|
2
|
+
const l = 68;
|
|
3
|
+
function a(r) {
|
|
4
|
+
return r.some((e) => "children" in e && e.children ? a(e.children) : "rowDrag" in e && e.rowDrag !== void 0);
|
|
5
|
+
}
|
|
6
|
+
function t(r) {
|
|
7
|
+
const { columnDefs: e } = r;
|
|
8
|
+
return !e || a(e) ? e : [{
|
|
9
|
+
colId: i,
|
|
10
|
+
headerName: "",
|
|
11
|
+
width: l,
|
|
12
|
+
maxWidth: l,
|
|
13
|
+
minWidth: l,
|
|
14
|
+
sortable: !1,
|
|
15
|
+
filter: !1,
|
|
16
|
+
resizable: !1,
|
|
17
|
+
suppressMovable: !0,
|
|
18
|
+
cellRenderer: n,
|
|
19
|
+
cellRendererParams: {
|
|
20
|
+
isRowDragDisabled: r.isRowDragDisabled,
|
|
21
|
+
getRowDragHandleLabel: r.getRowDragHandleLabel
|
|
22
|
+
}
|
|
23
|
+
}, ...e];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
l as AG_GRID_DRAG_HANDLE_WIDTH_PX,
|
|
27
|
+
t as buildDragListColumnDefs
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
import { CustomCellRendererProps } from 'ag-grid-react';
|
|
3
|
+
type RegisterRowDragger = ICellRendererParams['registerRowDragger'] | undefined;
|
|
4
|
+
export interface DragHandleProps {
|
|
5
|
+
registerRowDragger: RegisterRowDragger;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Drag icon registered as the AG Grid row dragger. Shared by the handle column and row-only lists. */
|
|
10
|
+
export declare function DragHandle({ registerRowDragger, disabled, label }: DragHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface DragHandleCellRendererParams {
|
|
12
|
+
isRowDragDisabled?: (data: unknown) => boolean;
|
|
13
|
+
getRowDragHandleLabel?: (data: unknown) => string;
|
|
14
|
+
}
|
|
15
|
+
/** Row drag handle for list drag (`variant="list"` + `onRowReorder`). */
|
|
16
|
+
export declare function DragHandleCellRenderer(props: CustomCellRendererProps & DragHandleCellRendererParams): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const AG_GRID_DRAG_HANDLE_COL_ID = "__drag-handle";
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as t, useEffect as l } from "react";
|
|
3
|
+
import { Drag as i } from "impact-nova-icons";
|
|
4
|
+
function d({ registerRowDragger: r, disabled: e = !1, label: a = "Drag to reorder" }) {
|
|
5
|
+
const n = t(null);
|
|
6
|
+
return l(() => {
|
|
7
|
+
e || !n.current || r?.(n.current, 0, void 0, !0);
|
|
8
|
+
}, [e, r]), /* @__PURE__ */ o(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
ref: n,
|
|
12
|
+
role: "button",
|
|
13
|
+
tabIndex: e ? -1 : 0,
|
|
14
|
+
"aria-label": a,
|
|
15
|
+
"aria-disabled": e || void 0,
|
|
16
|
+
"aria-roledescription": "sortable",
|
|
17
|
+
"data-component": "ag-grid-drag-handle",
|
|
18
|
+
className: e ? "inline-flex shrink-0 cursor-not-allowed opacity-50" : "inline-flex shrink-0 cursor-grab active:cursor-grabbing",
|
|
19
|
+
children: /* @__PURE__ */ o(i, { size: "14px", className: "text-secondary-foreground" })
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
function f(r) {
|
|
24
|
+
const e = r.isRowDragDisabled?.(r.data) ?? !1, a = r.getRowDragHandleLabel?.(r.data) ?? "Drag to reorder";
|
|
25
|
+
return /* @__PURE__ */ o(d, { registerRowDragger: e ? void 0 : r.registerRowDragger, disabled: e, label: a });
|
|
26
|
+
}
|
|
27
|
+
const u = "__drag-handle";
|
|
28
|
+
export {
|
|
29
|
+
u as AG_GRID_DRAG_HANDLE_COL_ID,
|
|
30
|
+
d as DragHandle,
|
|
31
|
+
f as DragHandleCellRenderer
|
|
32
|
+
};
|
package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as O, useRef as b, useImperativeHandle as R, useCallback as r } from "react";
|
|
3
3
|
import { Select as j } from "../../../../forms/select/select.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
function
|
|
4
|
+
import { cn as k } from "../../../../../lib/utils.js";
|
|
5
|
+
function L(t) {
|
|
6
6
|
if (typeof t.onValueChange == "function")
|
|
7
7
|
return t.onValueChange;
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
8
|
+
const n = t.colDef?.cellEditorParams, l = typeof n == "function" ? n(t) : n;
|
|
9
|
+
if (!l || typeof l != "object" || !("onValueChange" in l))
|
|
10
10
|
return;
|
|
11
|
-
const
|
|
12
|
-
if (typeof
|
|
13
|
-
return
|
|
11
|
+
const a = l.onValueChange;
|
|
12
|
+
if (typeof a == "function")
|
|
13
|
+
return a;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const B = E((t, n) => {
|
|
16
16
|
const {
|
|
17
|
-
value:
|
|
18
|
-
options:
|
|
17
|
+
value: l,
|
|
18
|
+
options: a = [],
|
|
19
19
|
placeholder: S = "Select...",
|
|
20
20
|
isSearchable: V = !0,
|
|
21
|
-
isClearable:
|
|
22
|
-
stopEditing:
|
|
23
|
-
colDef:
|
|
24
|
-
} = t,
|
|
25
|
-
value:
|
|
26
|
-
label:
|
|
27
|
-
isDisabled:
|
|
21
|
+
isClearable: w = !0,
|
|
22
|
+
stopEditing: d,
|
|
23
|
+
colDef: M
|
|
24
|
+
} = t, m = L(t), D = M?.cellRendererParams?.triggerClassName, u = l && typeof l == "object" && "value" in l, g = u ? l.cellMetadata : void 0, o = u ? l.value : l, p = a.map((e) => ({
|
|
25
|
+
value: e.value,
|
|
26
|
+
label: e.label,
|
|
27
|
+
isDisabled: e.isDisabled
|
|
28
28
|
})), [N, C] = O(
|
|
29
|
-
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
),
|
|
33
|
-
R(
|
|
29
|
+
o != null ? String(o) : null
|
|
30
|
+
), v = b(
|
|
31
|
+
o != null ? String(o) : null
|
|
32
|
+
), h = b(!1);
|
|
33
|
+
R(n, () => ({
|
|
34
34
|
getValue() {
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
value:
|
|
38
|
-
...
|
|
39
|
-
} :
|
|
35
|
+
const e = v.current;
|
|
36
|
+
return u ? {
|
|
37
|
+
value: e,
|
|
38
|
+
...g !== void 0 && { cellMetadata: g }
|
|
39
|
+
} : e;
|
|
40
40
|
},
|
|
41
41
|
isCancelBeforeStart() {
|
|
42
42
|
return !1;
|
|
@@ -48,37 +48,48 @@ const L = D((t, a) => {
|
|
|
48
48
|
return !0;
|
|
49
49
|
}
|
|
50
50
|
}));
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
(
|
|
55
|
-
const
|
|
56
|
-
|
|
51
|
+
const P = p.find((e) => e.value === N) ?? null, s = r(() => {
|
|
52
|
+
h.current || (h.current = !0, d());
|
|
53
|
+
}, [d]), x = r(
|
|
54
|
+
(e) => {
|
|
55
|
+
const c = e ? e.value : null;
|
|
56
|
+
v.current = c, C(c), m?.(c), s();
|
|
57
57
|
},
|
|
58
|
-
[
|
|
59
|
-
),
|
|
58
|
+
[s, C, m]
|
|
59
|
+
), y = r(() => {
|
|
60
60
|
queueMicrotask(() => {
|
|
61
|
-
|
|
61
|
+
s();
|
|
62
62
|
});
|
|
63
|
-
}, [
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
}, [s]), i = r((e) => {
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
}, []);
|
|
66
|
+
return /* @__PURE__ */ f(
|
|
67
|
+
"div",
|
|
66
68
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
className: "flex h-full w-full min-w-0 items-center ag-cell-inner-padding",
|
|
70
|
+
onPointerDown: i,
|
|
71
|
+
onMouseDown: i,
|
|
72
|
+
onClick: i,
|
|
73
|
+
children: /* @__PURE__ */ f("div", { className: k("min-w-0 flex-1", D), children: /* @__PURE__ */ f(
|
|
74
|
+
j,
|
|
75
|
+
{
|
|
76
|
+
options: p,
|
|
77
|
+
value: P,
|
|
78
|
+
onChange: x,
|
|
79
|
+
onMenuClose: y,
|
|
80
|
+
placeholder: S,
|
|
81
|
+
isSearchable: V,
|
|
82
|
+
isClearable: w,
|
|
83
|
+
isMulti: !1,
|
|
84
|
+
defaultMenuIsOpen: !0,
|
|
85
|
+
className: "w-full max-w-full",
|
|
86
|
+
parentClassName: "w-full max-w-full gap-0"
|
|
87
|
+
}
|
|
88
|
+
) })
|
|
78
89
|
}
|
|
79
|
-
)
|
|
90
|
+
);
|
|
80
91
|
});
|
|
81
|
-
|
|
92
|
+
B.displayName = "ListSelectCellEditor";
|
|
82
93
|
export {
|
|
83
|
-
|
|
94
|
+
B as ListSelectCellEditor
|
|
84
95
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
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, rowLoading, className, ...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, listRowGradient, listDragPreview, listHeader, onRowReorder, isRowDragDisabled, getRowDragHandleLabel, canDropRow, 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';
|
|
8
|
+
export { useListRowDropZones } from './use-list-row-drop-zones';
|
|
9
|
+
export type { UseListRowDropZonesOptions } from './use-list-row-drop-zones';
|
|
10
|
+
export type { ListRowReorderMeta, ListRowTransferMeta, ListRowDropCheck, } from './list-row-move';
|
|
11
|
+
export { AG_GRID_LIST_RANK_GRADIENT } from './ag-grid-list';
|
|
8
12
|
export { isAgGridTextOverflowing, isAgGridHeaderLabelTooltipOverflowing, type AgGridTooltipOverflowMode, } from './ag-grid-tooltip-overflow';
|