@infinite-table/infinite-react 10.1.4 → 10.2.0
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/README.md +9 -5
- package/index.css +1 -1
- package/index.d.ts +158 -135
- package/index.dev.js +889 -568
- package/index.dev.mjs +899 -578
- package/index.js +8 -8
- package/index.mjs +8 -8
- package/package.json +2 -2
- package/theme/balsam.css +209 -19
- package/theme/default.css +13 -9
- package/theme/minimalist.css +205 -33
- package/theme/ocean.css +205 -29
- package/theme/paper.css +649 -0
- package/theme/shadcn.css +102 -7
- package/theme/sheet.css +489 -0
- package/theme/terminal.css +473 -0
package/index.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
import React__default, { CSSProperties,
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { CSSProperties, HTMLAttributes, MutableRefObject, ComponentType, HTMLProps, RefCallback, KeyboardEvent, MouseEvent, ReactNode, FocusEvent, EffectCallback, DependencyList } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The UI-framework types that the shared type declarations are written
|
|
6
|
+
* against: nodes, components, inline styles, DOM props, events and refs.
|
|
7
|
+
*
|
|
8
|
+
* This is the React flavour. Each framework build resolves this module to
|
|
9
|
+
* its own sibling (FrameworkTypes.vue.ts, ...) via `moduleSuffixes` (see
|
|
10
|
+
* tsconfig.vue.json) and the esbuild framework-resolve-plugin, so the public
|
|
11
|
+
* types of a build only ever mention that build's framework.
|
|
12
|
+
*
|
|
13
|
+
* Shared code must import these from here - never from 'react' directly and
|
|
14
|
+
* never through the global `React` namespace.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Anything the framework can render.
|
|
19
|
+
*/
|
|
20
|
+
type Renderable = React.ReactNode | React.JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* A component passed as an override, eg in the `components` prop.
|
|
23
|
+
*/
|
|
24
|
+
type ComponentOverride<P> = (props: P) => React.JSX.Element | null;
|
|
3
25
|
|
|
4
26
|
type ManagedComponentStateContextValue<T_STATE, T_ACTIONS> = {
|
|
5
27
|
getComponentState: () => T_STATE;
|
|
@@ -306,7 +328,7 @@ type TreeDataSourceOnlyProps<T> = {
|
|
|
306
328
|
type DataSourcePropsNotAvailableInTreeDataSource = keyof Pick<DataSourceProps<any>, 'groupBy' | 'defaultGroupBy' | 'nodesKey' | 'defaultGroupRowsState' | 'groupRowsState' | 'onGroupRowsStateChange' | 'onGroupByChange' | 'collapseGroupRowsOnDataFunctionChange' | 'livePagination' | 'onLivePaginationCursorChange' | 'filterFunction' | 'onPivotByChange' | 'pivotBy' | 'defaultPivotBy' | 'selectionMode' | 'rowSelection' | 'defaultRowSelection'>;
|
|
307
329
|
type TreeDataSourceProps<T> = Omit<DataSourceProps<T>, DataSourcePropsNotAvailableInTreeDataSource> & TreeDataSourceOnlyProps<T>;
|
|
308
330
|
|
|
309
|
-
declare function TreeDataSource<T>(props: TreeDataSourceProps<T>): React
|
|
331
|
+
declare function TreeDataSource<T>(props: TreeDataSourceProps<T>): React.JSX.Element;
|
|
310
332
|
|
|
311
333
|
type NodePath = any[];
|
|
312
334
|
type TreeSelectionStateObject = {
|
|
@@ -929,7 +951,7 @@ type ForwardPropsToStateFnResult<TYPE_PROPS, TYPE_RESULT, COMPONENT_SETUP_STATE>
|
|
|
929
951
|
type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE = {}, COMPONENT_DERIVED_STATE = {}, T_ACTIONS = {}, T_PARENT_STATE = {}> = {
|
|
930
952
|
debugName?: string | ((props: T_PROPS) => string);
|
|
931
953
|
initSetupState?: (props: T_PROPS) => COMPONENT_SETUP_STATE;
|
|
932
|
-
Context?: React
|
|
954
|
+
Context?: React.Context<ManagedComponentStateContextValue<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE, ComponentStateGeneratedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>>>;
|
|
933
955
|
layoutEffect?: boolean;
|
|
934
956
|
forwardProps?: (setupState: COMPONENT_SETUP_STATE, props: T_PROPS) => ForwardPropsToStateFnResult<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE>;
|
|
935
957
|
allowedControlledPropOverrides?: Record<keyof T_PROPS, true>;
|
|
@@ -958,14 +980,14 @@ type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_S
|
|
|
958
980
|
updatedProps: Partial<T_PROPS> | null;
|
|
959
981
|
parentState: T_PARENT_STATE | null;
|
|
960
982
|
}) => COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
961
|
-
getReducerActions?: (dispatch: React
|
|
983
|
+
getReducerActions?: (dispatch: React.Dispatch<any>) => T_ACTIONS;
|
|
962
984
|
getParentState?: () => T_PARENT_STATE;
|
|
963
985
|
cleanup?: (state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE) => void;
|
|
964
986
|
onControlledPropertyChange?: (name: string, newValue: any, oldValue: any) => void | ((value: any, oldValue: any) => any);
|
|
965
987
|
};
|
|
966
988
|
declare function buildManagedComponent<T_PROPS extends object, COMPONENT_MAPPED_STATE extends object, COMPONENT_SETUP_STATE extends object = {}, COMPONENT_DERIVED_STATE extends object = {}, T_ACTIONS = {}, T_PARENT_STATE = {}>(config: ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE, COMPONENT_DERIVED_STATE, T_ACTIONS, T_PARENT_STATE>): {
|
|
967
|
-
ManagedComponentContextProvider: React
|
|
968
|
-
children?: React
|
|
989
|
+
ManagedComponentContextProvider: React.NamedExoticComponent<T_PROPS & {
|
|
990
|
+
children?: React.ReactNode;
|
|
969
991
|
}>;
|
|
970
992
|
useManagedComponent: (props: T_PROPS) => {
|
|
971
993
|
contextValue: {
|
|
@@ -975,10 +997,10 @@ declare function buildManagedComponent<T_PROPS extends object, COMPONENT_MAPPED_
|
|
|
975
997
|
replaceState: (newState: COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE) => void;
|
|
976
998
|
assignState: (newState: Partial<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>) => void;
|
|
977
999
|
};
|
|
978
|
-
ContextComponent: React
|
|
1000
|
+
ContextComponent: React.Context<ManagedComponentStateContextValue<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE, ComponentStateGeneratedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>>>;
|
|
979
1001
|
};
|
|
980
1002
|
};
|
|
981
|
-
declare function useManagedComponentState<COMPONENT_STATE>(Context?: React
|
|
1003
|
+
declare function useManagedComponentState<COMPONENT_STATE>(Context?: React.Context<ManagedComponentStateContextValue<COMPONENT_STATE, ComponentStateActions<COMPONENT_STATE>>>): ManagedComponentStateContextValue<COMPONENT_STATE, ComponentStateGeneratedActions<COMPONENT_STATE>>;
|
|
982
1004
|
|
|
983
1005
|
type PerfMarkerDetails = {
|
|
984
1006
|
name: string;
|
|
@@ -1044,18 +1066,6 @@ interface RowInfoStore<T> {
|
|
|
1044
1066
|
clear(): void;
|
|
1045
1067
|
}
|
|
1046
1068
|
|
|
1047
|
-
/**
|
|
1048
|
-
* The type of a UI node the grid can render.
|
|
1049
|
-
*
|
|
1050
|
-
* NOTE (multi-framework): this file is the single intentional React type leak
|
|
1051
|
-
* in the shared tree. When the first non-React framework lands (Phase 2 of the
|
|
1052
|
-
* multi-framework plan), this gains framework siblings (Renderable.vue.ts, ...)
|
|
1053
|
-
* resolved via `moduleSuffixes` (see tsconfig.react.json / tsconfig.vue.json)
|
|
1054
|
-
* and the esbuild framework-resolve-plugin. Shared code must only treat
|
|
1055
|
-
* Renderable as an opaque value to pass around — never inspect it.
|
|
1056
|
-
*/
|
|
1057
|
-
type Renderable = React$1.ReactNode | React$1.JSX.Element;
|
|
1058
|
-
|
|
1059
1069
|
type DiscriminatedUnion<A, B> = (A & {
|
|
1060
1070
|
[K in keyof B]?: undefined;
|
|
1061
1071
|
}) | (B & {
|
|
@@ -1107,15 +1117,14 @@ type Prettify<T> = {
|
|
|
1107
1117
|
|
|
1108
1118
|
type MenuIconProps = {
|
|
1109
1119
|
lineWidth?: number;
|
|
1110
|
-
lineStyle?:
|
|
1111
|
-
style?:
|
|
1120
|
+
lineStyle?: CSSProperties;
|
|
1121
|
+
style?: CSSProperties;
|
|
1112
1122
|
className?: string;
|
|
1113
|
-
domProps?:
|
|
1123
|
+
domProps?: HTMLAttributes<HTMLDivElement>;
|
|
1114
1124
|
reserveSpaceWhenHidden?: boolean;
|
|
1115
1125
|
menuVisible?: boolean;
|
|
1116
|
-
children?:
|
|
1126
|
+
children?: Renderable;
|
|
1117
1127
|
};
|
|
1118
|
-
declare function MenuIcon(props: MenuIconProps): React$1.JSX.Element;
|
|
1119
1128
|
|
|
1120
1129
|
type InfiniteTableToggleGroupRowFn = (groupKeys: any[]) => void;
|
|
1121
1130
|
type InfiniteTableToggleTreeNodeFn = (nodePath: any[]) => void;
|
|
@@ -1147,7 +1156,7 @@ type InfiniteTableColumnHeaderParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedC
|
|
|
1147
1156
|
};
|
|
1148
1157
|
} & ({
|
|
1149
1158
|
domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
|
|
1150
|
-
htmlElementRef:
|
|
1159
|
+
htmlElementRef: MutableRefObject<HTMLElement | null>;
|
|
1151
1160
|
renderLocation: 'column-header';
|
|
1152
1161
|
} | {
|
|
1153
1162
|
renderLocation: 'grouping-toolbar' | 'column-menu' | 'column-filter';
|
|
@@ -1162,7 +1171,7 @@ type InfiniteTableColumnRenderBag = {
|
|
|
1162
1171
|
};
|
|
1163
1172
|
type InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
1164
1173
|
domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
|
|
1165
|
-
htmlElementRef:
|
|
1174
|
+
htmlElementRef: MutableRefObject<HTMLElement | null>;
|
|
1166
1175
|
rowIndexInHorizontalLayoutPage: null | number;
|
|
1167
1176
|
horizontalLayoutPageIndex: null | number;
|
|
1168
1177
|
value: string | number | Renderable;
|
|
@@ -1262,9 +1271,9 @@ type InfiniteTableColumnStylingFnParams<T> = {
|
|
|
1262
1271
|
rowHasSelectedCells: boolean;
|
|
1263
1272
|
editError: InfiniteTableColumnRenderParamBase<T>['editError'];
|
|
1264
1273
|
} & InfiniteTableRowInfoDataDiscriminator<T>;
|
|
1265
|
-
type InfiniteTableColumnStyleFn<T> = (params: InfiniteTableColumnStylingFnParams<T>) => undefined |
|
|
1274
|
+
type InfiniteTableColumnStyleFn<T> = (params: InfiniteTableColumnStylingFnParams<T>) => undefined | CSSProperties;
|
|
1266
1275
|
type InfiniteTableColumnHeaderClassNameFn<T> = (params: InfiniteTableColumnHeaderParam<T>) => undefined | string;
|
|
1267
|
-
type InfiniteTableColumnHeaderStyleFn<T> = (params: InfiniteTableColumnHeaderParam<T>) => undefined |
|
|
1276
|
+
type InfiniteTableColumnHeaderStyleFn<T> = (params: InfiniteTableColumnHeaderParam<T>) => undefined | CSSProperties;
|
|
1268
1277
|
type InfiniteTableColumnClassNameFn<T> = (params: InfiniteTableColumnStylingFnParams<T>) => undefined | string;
|
|
1269
1278
|
type InfiniteTableColumnStyle<T> = CSSProperties | InfiniteTableColumnStyleFn<T>;
|
|
1270
1279
|
type InfiniteTableColumnAlign<T> = InfiniteTableColumnAlignValues | InfiniteTableColumnAlignFn<T>;
|
|
@@ -1380,12 +1389,12 @@ type InfiniteTableColumn<DATA_TYPE> = {
|
|
|
1380
1389
|
renderMenuIcon?: boolean | InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
|
|
1381
1390
|
renderHeaderSelectionCheckBox?: boolean | InfiniteTableColumnHeaderRenderFunction<DATA_TYPE>;
|
|
1382
1391
|
components?: {
|
|
1383
|
-
ColumnCell?:
|
|
1384
|
-
HeaderCell?:
|
|
1385
|
-
Editor?:
|
|
1386
|
-
FilterEditor?:
|
|
1387
|
-
FilterOperatorSwitch?:
|
|
1388
|
-
MenuIcon?:
|
|
1392
|
+
ColumnCell?: ComponentType<HTMLProps<HTMLDivElement>>;
|
|
1393
|
+
HeaderCell?: ComponentType<HTMLProps<HTMLDivElement>>;
|
|
1394
|
+
Editor?: ComponentType<HTMLProps<HTMLDivElement>>;
|
|
1395
|
+
FilterEditor?: ComponentType<HTMLProps<HTMLDivElement>>;
|
|
1396
|
+
FilterOperatorSwitch?: ComponentType<HTMLProps<HTMLDivElement>>;
|
|
1397
|
+
MenuIcon?: ComponentType<MenuIconProps>;
|
|
1389
1398
|
};
|
|
1390
1399
|
};
|
|
1391
1400
|
type InfiniteTableGeneratedGroupColumn<T> = Omit<InfiniteTableColumn<T>, 'defaultSortable'> & {
|
|
@@ -1459,7 +1468,7 @@ type InfiniteTableBaseCellProps<T> = {
|
|
|
1459
1468
|
align?: InfiniteTableColumnAlignValues;
|
|
1460
1469
|
horizontalLayoutPageIndex: number | null;
|
|
1461
1470
|
rowId?: any;
|
|
1462
|
-
renderChildren:
|
|
1471
|
+
renderChildren: Renderable | (() => Renderable);
|
|
1463
1472
|
width: number;
|
|
1464
1473
|
cssEllipsis?: boolean;
|
|
1465
1474
|
contentStyle?: CSSProperties;
|
|
@@ -1469,7 +1478,7 @@ type InfiniteTableBaseCellProps<T> = {
|
|
|
1469
1478
|
beforeChildren?: Renderable;
|
|
1470
1479
|
afterChildren?: Renderable;
|
|
1471
1480
|
cssPosition?: CSSProperties['position'];
|
|
1472
|
-
domRef?:
|
|
1481
|
+
domRef?: RefCallback<HTMLElement>;
|
|
1473
1482
|
repaintId?: number | string;
|
|
1474
1483
|
};
|
|
1475
1484
|
type InfiniteTableCellProps<T> = ({
|
|
@@ -1478,6 +1487,8 @@ type InfiniteTableCellProps<T> = ({
|
|
|
1478
1487
|
cellType: 'body';
|
|
1479
1488
|
} & InfiniteTableBaseCellProps<T>);
|
|
1480
1489
|
|
|
1490
|
+
declare function MenuIcon(props: MenuIconProps): React.JSX.Element;
|
|
1491
|
+
|
|
1481
1492
|
declare function useInfiniteHeaderCell<T>(): {
|
|
1482
1493
|
dragging: boolean;
|
|
1483
1494
|
column: InfiniteTableComputedColumn<T>;
|
|
@@ -1504,11 +1515,11 @@ declare function useInfiniteHeaderCell<T>(): {
|
|
|
1504
1515
|
};
|
|
1505
1516
|
} & {
|
|
1506
1517
|
domRef: InfiniteTableCellProps<DATA_TYPE>["domRef"];
|
|
1507
|
-
htmlElementRef: React
|
|
1518
|
+
htmlElementRef: React.MutableRefObject<HTMLElement | null>;
|
|
1508
1519
|
renderLocation: "column-header";
|
|
1509
1520
|
} & {
|
|
1510
1521
|
domRef: InfiniteTableCellProps<DATA_TYPE_1>["domRef"];
|
|
1511
|
-
htmlElementRef: React
|
|
1522
|
+
htmlElementRef: React.MutableRefObject<HTMLElement | null>;
|
|
1512
1523
|
renderLocation: "column-header";
|
|
1513
1524
|
};
|
|
1514
1525
|
|
|
@@ -1549,7 +1560,7 @@ declare function HScrollSyncContent(props: HTMLAttributes<HTMLDivElement> & {
|
|
|
1549
1560
|
maxWidth?: 'viewport' | 'column';
|
|
1550
1561
|
minWidth?: 'viewport' | 'column';
|
|
1551
1562
|
scrollable?: boolean;
|
|
1552
|
-
}): React
|
|
1563
|
+
}): React.JSX.Element;
|
|
1553
1564
|
|
|
1554
1565
|
declare function useGridScroll(onScroll: (scrollPosition: ScrollPosition) => void, deps: any[]): void;
|
|
1555
1566
|
|
|
@@ -1568,21 +1579,21 @@ declare function HostDefault(props: {
|
|
|
1568
1579
|
active: boolean;
|
|
1569
1580
|
orientation: 'horizontal' | 'vertical';
|
|
1570
1581
|
rejectDrop: boolean;
|
|
1571
|
-
domProps?: React
|
|
1572
|
-
}): React
|
|
1582
|
+
domProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
1583
|
+
}): React.JSX.Element;
|
|
1573
1584
|
declare function PlaceholderDefault<T = any>(props: {
|
|
1574
1585
|
draggingInProgress: boolean;
|
|
1575
1586
|
active: boolean;
|
|
1576
1587
|
groupBy: DataSourcePropGroupBy<T>;
|
|
1577
|
-
}): React
|
|
1588
|
+
}): React.ReactNode;
|
|
1578
1589
|
declare function GroupingToolbarItemDefault<T = any>(props: {
|
|
1579
|
-
domProps?: React
|
|
1590
|
+
domProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
1580
1591
|
column: InfiniteTableComputedColumn<T> | undefined;
|
|
1581
1592
|
field: string | number | undefined;
|
|
1582
1593
|
active: boolean;
|
|
1583
|
-
label: React
|
|
1594
|
+
label: React.ReactNode;
|
|
1584
1595
|
onClear: () => void;
|
|
1585
|
-
}): React
|
|
1596
|
+
}): React.JSX.Element;
|
|
1586
1597
|
|
|
1587
1598
|
type GroupingToolbarProps = {
|
|
1588
1599
|
orientation?: 'horizontal' | 'vertical';
|
|
@@ -1590,15 +1601,15 @@ type GroupingToolbarProps = {
|
|
|
1590
1601
|
draggingInProgress: boolean;
|
|
1591
1602
|
active: boolean;
|
|
1592
1603
|
groupBy: DataSourcePropGroupBy<T>;
|
|
1593
|
-
}) => React
|
|
1594
|
-
domProps?: React
|
|
1604
|
+
}) => React.ReactNode;
|
|
1605
|
+
domProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
1595
1606
|
components?: {
|
|
1596
1607
|
Host?: typeof HostDefault;
|
|
1597
1608
|
Placeholder?: typeof PlaceholderDefault;
|
|
1598
1609
|
ToolbarItem?: typeof GroupingToolbarItemDefault;
|
|
1599
1610
|
};
|
|
1600
1611
|
};
|
|
1601
|
-
declare function GroupingToolbar<T = any>(props: GroupingToolbarProps): React
|
|
1612
|
+
declare function GroupingToolbar<T = any>(props: GroupingToolbarProps): React.JSX.Element;
|
|
1602
1613
|
|
|
1603
1614
|
type InfiniteTableHeaderProps<_T> = {
|
|
1604
1615
|
allowColumnHideWhileDragging?: boolean;
|
|
@@ -1608,7 +1619,7 @@ type InfiniteTableBodyProps<_T> = {
|
|
|
1608
1619
|
rowHoverClassName?: string | string[];
|
|
1609
1620
|
};
|
|
1610
1621
|
|
|
1611
|
-
declare function InfiniteTableBody<T>(props: InfiniteTableBodyProps<T>): React
|
|
1622
|
+
declare function InfiniteTableBody<T>(props: InfiniteTableBodyProps<T>): React.JSX.Element;
|
|
1612
1623
|
declare namespace InfiniteTableBody {
|
|
1613
1624
|
var rowHoverClassName: string[];
|
|
1614
1625
|
}
|
|
@@ -1618,13 +1629,13 @@ declare function useInfiniteTableApi<T>(): InfiniteTableApi<T>;
|
|
|
1618
1629
|
declare function useInfiniteColumnApi<T = unknown>(columnId: string): InfiniteTableColumnApi<T> | null;
|
|
1619
1630
|
|
|
1620
1631
|
declare const InfiniteTableClassName: string;
|
|
1621
|
-
declare const InfiniteTableComponent: React
|
|
1632
|
+
declare const InfiniteTableComponent: React.MemoExoticComponent<(<T>() => React.JSX.Element)>;
|
|
1622
1633
|
type InfiniteTableComponent = {
|
|
1623
|
-
<T>(props: InfiniteTableProps<T>): React
|
|
1634
|
+
<T>(props: InfiniteTableProps<T>): React.JSX.Element;
|
|
1624
1635
|
licenseKey?: string;
|
|
1625
|
-
Header: <T = any>(props: InfiniteTableHeaderProps<T>) => React
|
|
1636
|
+
Header: <T = any>(props: InfiniteTableHeaderProps<T>) => React.JSX.Element | null;
|
|
1626
1637
|
Body: typeof InfiniteTableBody;
|
|
1627
|
-
Footer: () => React
|
|
1638
|
+
Footer: () => React.JSX.Element | null;
|
|
1628
1639
|
HScrollSyncContent: typeof HScrollSyncContent;
|
|
1629
1640
|
GroupingToolbar: typeof GroupingToolbar;
|
|
1630
1641
|
};
|
|
@@ -2217,11 +2228,11 @@ type CellContextMenuLocation = {
|
|
|
2217
2228
|
colIndex: number;
|
|
2218
2229
|
};
|
|
2219
2230
|
type CellContextMenuLocationWithEvent = CellContextMenuLocation & {
|
|
2220
|
-
event:
|
|
2231
|
+
event: MouseEvent;
|
|
2221
2232
|
target: HTMLElement;
|
|
2222
2233
|
};
|
|
2223
2234
|
type ContextMenuLocationWithEvent = Partial<CellContextMenuLocation> & {
|
|
2224
|
-
event:
|
|
2235
|
+
event: MouseEvent;
|
|
2225
2236
|
target: HTMLElement;
|
|
2226
2237
|
};
|
|
2227
2238
|
interface InfiniteTableSetupState<T> {
|
|
@@ -2409,7 +2420,7 @@ interface InfiniteTableMappedState<T> {
|
|
|
2409
2420
|
rowHeight: number | ((rowInfo: InfiniteTableRowInfo<T>) => number);
|
|
2410
2421
|
rowDetailHeight: number | ((rowInfo: InfiniteTableRowInfo<T>) => number);
|
|
2411
2422
|
columnHeaderHeight: number;
|
|
2412
|
-
licenseKey:
|
|
2423
|
+
licenseKey: InfiniteTableProps<T>['licenseKey'];
|
|
2413
2424
|
columnVisibility: InfiniteTablePropColumnVisibility;
|
|
2414
2425
|
columnGroupVisibility: NonUndefined<InfiniteTableProps<T>['columnGroupVisibility']>;
|
|
2415
2426
|
columnSizing: InfiniteTablePropColumnSizing;
|
|
@@ -2928,7 +2939,7 @@ type OnCellClickContext<T> = InfiniteTableCellClickEventHandlerContext<T> & Infi
|
|
|
2928
2939
|
interface InfiniteTableContextValue<T> extends InfiniteTableStableContextValue<T> {
|
|
2929
2940
|
state: InfiniteTableState<T>;
|
|
2930
2941
|
computed: InfiniteTableComputedValues<T>;
|
|
2931
|
-
children?:
|
|
2942
|
+
children?: Renderable;
|
|
2932
2943
|
}
|
|
2933
2944
|
interface InfiniteTableStableContextValue<T> {
|
|
2934
2945
|
api: InfiniteTableApi<T>;
|
|
@@ -3858,7 +3869,7 @@ interface DataSourceAction<T> {
|
|
|
3858
3869
|
|
|
3859
3870
|
declare const withSelectedLeafNodesOnly: (callback: (treeSelectionObject: TreeSelectionStateObject) => void) => DataSourcePropOnTreeSelectionChange_MultiNode;
|
|
3860
3871
|
|
|
3861
|
-
declare function TreeGrid<T>(props: TreeGridProps<T>): React
|
|
3872
|
+
declare function TreeGrid<T>(props: TreeGridProps<T>): React.JSX.Element;
|
|
3862
3873
|
|
|
3863
3874
|
declare const defaultFilterTypes: Record<string, DataSourceFilterType<any>>;
|
|
3864
3875
|
|
|
@@ -6048,7 +6059,7 @@ declare const useManagedDataSource: (props: object) => {
|
|
|
6048
6059
|
rowDisabledState: never;
|
|
6049
6060
|
}>) => void;
|
|
6050
6061
|
};
|
|
6051
|
-
ContextComponent: React
|
|
6062
|
+
ContextComponent: React.Context<ManagedComponentStateContextValue<{
|
|
6052
6063
|
logger: DebugLogger;
|
|
6053
6064
|
forceRerenderTimestamp: number;
|
|
6054
6065
|
devToolsDetected: never;
|
|
@@ -6896,7 +6907,7 @@ declare const useManagedDataSource: (props: object) => {
|
|
|
6896
6907
|
rowDisabledState: never;
|
|
6897
6908
|
}>>>;
|
|
6898
6909
|
};
|
|
6899
|
-
declare function DataSource<T>(props: DataSourceProps<T>): React
|
|
6910
|
+
declare function DataSource<T>(props: DataSourceProps<T>): React.JSX.Element;
|
|
6900
6911
|
declare function useRowInfoReducers(): Record<string, any> | undefined;
|
|
6901
6912
|
|
|
6902
6913
|
type AggregationReducer<T, AggregationResultType = any> = DataSourceAggregationReducer<T, AggregationResultType> & {
|
|
@@ -7302,9 +7313,8 @@ type InfiniteCheckBoxProps = {
|
|
|
7302
7313
|
checked?: InfiniteCheckBoxPropChecked;
|
|
7303
7314
|
defaultChecked?: InfiniteCheckBoxPropChecked;
|
|
7304
7315
|
onChange?: (checked: InfiniteCheckBoxPropChecked) => void;
|
|
7305
|
-
domProps?:
|
|
7316
|
+
domProps?: HTMLProps<HTMLElement>;
|
|
7306
7317
|
};
|
|
7307
|
-
declare function InfiniteCheckBox(props: InfiniteCheckBoxProps): React$1.JSX.Element;
|
|
7308
7318
|
|
|
7309
7319
|
type ArrayWithAtLeast3<T> = [T, T, T, ...T[]];
|
|
7310
7320
|
|
|
@@ -7411,13 +7421,13 @@ type OverlayParams = {
|
|
|
7411
7421
|
*
|
|
7412
7422
|
* @param portalContainer
|
|
7413
7423
|
*/
|
|
7414
|
-
declare function useOverlayPortal(content: ReactNode, portalContainer?: ElementContainerGetter | null | false): string | number | bigint | boolean | React
|
|
7424
|
+
declare function useOverlayPortal(content: ReactNode, portalContainer?: ElementContainerGetter | null | false): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
7415
7425
|
type UpdateOverlayContentFn = (content: ReactNode | (() => ReactNode), options?: {
|
|
7416
7426
|
skipRealign?: boolean;
|
|
7417
7427
|
}) => void;
|
|
7418
7428
|
type ShowOverlayFn = (content: ReactNode | (() => ReactNode), params: OverlayShowParams) => UpdateOverlayContentFn;
|
|
7419
7429
|
declare function useOverlay(params: OverlayParams): {
|
|
7420
|
-
portal: string | number | bigint | boolean | React
|
|
7430
|
+
portal: string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
7421
7431
|
hideOverlay: (id: string) => void;
|
|
7422
7432
|
clearAll: () => void;
|
|
7423
7433
|
rerenderOverlays: () => void;
|
|
@@ -7541,7 +7551,7 @@ type MenuItemObject = {
|
|
|
7541
7551
|
menu?: MenuItemSubMenu | (() => MenuItemSubMenu);
|
|
7542
7552
|
style?: CSSProperties;
|
|
7543
7553
|
className?: string;
|
|
7544
|
-
onClick?: (event:
|
|
7554
|
+
onClick?: (event: MouseEvent) => void;
|
|
7545
7555
|
onAction?: (params: MenuItemActionContext) => void;
|
|
7546
7556
|
hideMenuOnAction?: boolean;
|
|
7547
7557
|
[k: string]: any;
|
|
@@ -7578,10 +7588,10 @@ type InfiniteTableRowStylingFnParams<T> = {
|
|
|
7578
7588
|
visibleColumnIds: string[];
|
|
7579
7589
|
allColumnIds: string[];
|
|
7580
7590
|
} & InfiniteTableRowInfoDataDiscriminator<T>;
|
|
7581
|
-
type InfiniteTableRowStyleFn<T> = (params: InfiniteTableRowStylingFnParams<T>) => undefined |
|
|
7591
|
+
type InfiniteTableRowStyleFn<T> = (params: InfiniteTableRowStylingFnParams<T>) => undefined | CSSProperties;
|
|
7582
7592
|
type InfiniteTableRowClassNameFn<T> = (params: InfiniteTableRowStylingFnParams<T>) => string | undefined;
|
|
7583
7593
|
type InfiniteTableCellClassNameFn<T> = InfiniteTableColumn<T>['className'];
|
|
7584
|
-
type InfiniteTablePropRowStyle<T> =
|
|
7594
|
+
type InfiniteTablePropRowStyle<T> = CSSProperties | InfiniteTableRowStyleFn<T>;
|
|
7585
7595
|
type InfiniteTablePropCellStyle<T> = InfiniteTableColumn<T>['style'];
|
|
7586
7596
|
type InfiniteTablePropRepaintCellsKeyFnParams<T> = {
|
|
7587
7597
|
rowInfo: InfiniteTableRowInfo<T>;
|
|
@@ -7825,11 +7835,11 @@ type InfiniteTableColumnGroupHeaderRenderParams = {
|
|
|
7825
7835
|
horizontalLayoutPageIndex: number | null;
|
|
7826
7836
|
};
|
|
7827
7837
|
type InfiniteTableColumnGroupHeaderRenderFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => Renderable;
|
|
7828
|
-
type InfiniteTableColumnGroupStyleFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) =>
|
|
7838
|
+
type InfiniteTableColumnGroupStyleFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => CSSProperties;
|
|
7829
7839
|
type InfiniteTableColumnGroup = {
|
|
7830
7840
|
columnGroup?: string;
|
|
7831
7841
|
header?: Renderable | InfiniteTableColumnGroupHeaderRenderFunction;
|
|
7832
|
-
style?:
|
|
7842
|
+
style?: CSSProperties | InfiniteTableColumnGroupStyleFunction;
|
|
7833
7843
|
};
|
|
7834
7844
|
type InfiniteTableComputedColumnGroup = InfiniteTableColumnGroup & {
|
|
7835
7845
|
id: string;
|
|
@@ -7870,15 +7880,15 @@ type RowDetailComponentProps<T = any> = {
|
|
|
7870
7880
|
cache: RowDetailCacheStorageForCurrentRow<RowDetailCacheEntry>;
|
|
7871
7881
|
};
|
|
7872
7882
|
interface InfiniteTablePropComponents<T = any> {
|
|
7873
|
-
LoadMask?:
|
|
7874
|
-
children?:
|
|
7875
|
-
}
|
|
7876
|
-
CheckBox?:
|
|
7877
|
-
Menu?:
|
|
7878
|
-
children?:
|
|
7879
|
-
}
|
|
7880
|
-
MenuIcon?:
|
|
7881
|
-
RowDetail?:
|
|
7883
|
+
LoadMask?: ComponentOverride<LoadMaskProps & {
|
|
7884
|
+
children?: Renderable | undefined;
|
|
7885
|
+
}>;
|
|
7886
|
+
CheckBox?: ComponentOverride<InfiniteCheckBoxProps>;
|
|
7887
|
+
Menu?: ComponentOverride<MenuProps & {
|
|
7888
|
+
children?: Renderable | undefined;
|
|
7889
|
+
}>;
|
|
7890
|
+
MenuIcon?: ComponentOverride<MenuIconProps>;
|
|
7891
|
+
RowDetail?: ComponentOverride<RowDetailComponentProps<T>>;
|
|
7882
7892
|
}
|
|
7883
7893
|
type ScrollStopInfo = {
|
|
7884
7894
|
scrollTop: number;
|
|
@@ -7931,7 +7941,7 @@ interface InfiniteTableProps<T> {
|
|
|
7931
7941
|
debugId?: string;
|
|
7932
7942
|
columns: InfiniteTablePropColumns<T>;
|
|
7933
7943
|
pivotColumns?: InfiniteTablePropColumns<T, InfiniteTablePivotColumn<T>>;
|
|
7934
|
-
children?:
|
|
7944
|
+
children?: Renderable;
|
|
7935
7945
|
loadingText?: Renderable;
|
|
7936
7946
|
components?: InfiniteTablePropComponents<T>;
|
|
7937
7947
|
wrapRowsHorizontally?: boolean;
|
|
@@ -8021,15 +8031,15 @@ interface InfiniteTableProps<T> {
|
|
|
8021
8031
|
columnHeaderHeight?: number | string;
|
|
8022
8032
|
onKeyDown?: (context: InfiniteTablePublicContext<T> & {
|
|
8023
8033
|
actions: InfiniteTableEventHandlerContext<T>['actions'];
|
|
8024
|
-
}, event:
|
|
8025
|
-
onCellClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event:
|
|
8026
|
-
onCellDoubleClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event:
|
|
8034
|
+
}, event: KeyboardEvent) => void | InfiniteTablePropOnKeyDownResult;
|
|
8035
|
+
onCellClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event: MouseEvent) => void;
|
|
8036
|
+
onCellDoubleClick?: (context: InfiniteTablePublicContext<T> & InfiniteTableCellContext<T>, event: MouseEvent) => void | InfiniteTablePropOnCellDoubleClickResult;
|
|
8027
8037
|
onContextMenu?: (context: InfiniteTablePublicContext<T> & {
|
|
8028
|
-
event:
|
|
8029
|
-
} & Partial<InfiniteTableRowInfoDataDiscriminatorWithColumn<T>>, event:
|
|
8038
|
+
event: MouseEvent;
|
|
8039
|
+
} & Partial<InfiniteTableRowInfoDataDiscriminatorWithColumn<T>>, event: MouseEvent) => void;
|
|
8030
8040
|
onCellContextMenu?: (context: InfiniteTablePublicContext<T> & InfiniteTableRowInfoDataDiscriminatorWithColumn<T> & {
|
|
8031
|
-
event:
|
|
8032
|
-
}, event:
|
|
8041
|
+
event: MouseEvent;
|
|
8042
|
+
}, event: MouseEvent) => void;
|
|
8033
8043
|
/**
|
|
8034
8044
|
* Properties to be sent directly to the DOM element underlying InfiniteTable.
|
|
8035
8045
|
*
|
|
@@ -8037,7 +8047,7 @@ interface InfiniteTableProps<T> {
|
|
|
8037
8047
|
* on some event handlers (eg: onKeyDown), you might want to use dedicated props that give you access
|
|
8038
8048
|
* to component state as well.
|
|
8039
8049
|
*/
|
|
8040
|
-
domProps?:
|
|
8050
|
+
domProps?: HTMLAttributes<HTMLDivElement>;
|
|
8041
8051
|
/**
|
|
8042
8052
|
* A unique identifier for the table instance. Will not be passed to the DOM.
|
|
8043
8053
|
*/
|
|
@@ -8071,8 +8081,8 @@ interface InfiniteTableProps<T> {
|
|
|
8071
8081
|
headerOptions?: InfiniteTablePropHeaderOptions;
|
|
8072
8082
|
focusedClassName?: string;
|
|
8073
8083
|
focusedWithinClassName?: string;
|
|
8074
|
-
focusedStyle?:
|
|
8075
|
-
focusedWithinStyle?:
|
|
8084
|
+
focusedStyle?: CSSProperties;
|
|
8085
|
+
focusedWithinStyle?: CSSProperties;
|
|
8076
8086
|
columnCssEllipsis?: boolean;
|
|
8077
8087
|
columnHeaderCssEllipsis?: boolean;
|
|
8078
8088
|
columnDefaultWidth?: number;
|
|
@@ -8083,10 +8093,10 @@ interface InfiniteTableProps<T> {
|
|
|
8083
8093
|
resizableColumns?: boolean;
|
|
8084
8094
|
virtualizeColumns?: InfiniteTablePropVirtualizeColumns<T>;
|
|
8085
8095
|
virtualizeRows?: boolean;
|
|
8086
|
-
onSelfFocus?: (event:
|
|
8087
|
-
onSelfBlur?: (event:
|
|
8088
|
-
onFocusWithin?: (event:
|
|
8089
|
-
onBlurWithin?: (event:
|
|
8096
|
+
onSelfFocus?: (event: FocusEvent<HTMLDivElement>) => void;
|
|
8097
|
+
onSelfBlur?: (event: FocusEvent<HTMLDivElement>) => void;
|
|
8098
|
+
onFocusWithin?: (event: FocusEvent<HTMLDivElement>) => void;
|
|
8099
|
+
onBlurWithin?: (event: FocusEvent<HTMLDivElement>) => void;
|
|
8090
8100
|
/**
|
|
8091
8101
|
* When a column is hidden by using the column menu, the column menu will stay open,
|
|
8092
8102
|
* so it needs (generally) to be realigned to the correct location. This prop
|
|
@@ -8105,13 +8115,23 @@ interface InfiniteTableProps<T> {
|
|
|
8105
8115
|
columnOrder?: InfiniteTablePropColumnOrder;
|
|
8106
8116
|
onColumnOrderChange?: (columnOrder: InfiniteTablePropColumnOrderNormalized) => void;
|
|
8107
8117
|
onRowHeightChange?: (rowHeight: number) => void;
|
|
8108
|
-
onRowMouseEnter?: (context: InfiniteTableRowContext<T>, event:
|
|
8109
|
-
onRowMouseLeave?: (context: InfiniteTableRowContext<T>, event:
|
|
8118
|
+
onRowMouseEnter?: (context: InfiniteTableRowContext<T>, event: MouseEvent) => void;
|
|
8119
|
+
onRowMouseLeave?: (context: InfiniteTableRowContext<T>, event: MouseEvent) => void;
|
|
8110
8120
|
onReady?: ({ api, dataSourceApi, }: {
|
|
8111
8121
|
api: InfiniteTableApi<T>;
|
|
8112
8122
|
dataSourceApi: DataSourceApi<T>;
|
|
8113
8123
|
}) => void;
|
|
8114
|
-
rowProps?:
|
|
8124
|
+
rowProps?: HTMLProps<HTMLDivElement> | ((rowArgs: InfiniteTableRowStylingFnParams<T>) => HTMLProps<HTMLDivElement>);
|
|
8125
|
+
/**
|
|
8126
|
+
* The license key for Infinite Table.
|
|
8127
|
+
*
|
|
8128
|
+
* When not specified (`undefined`), the global `InfiniteTable.licenseKey` is used.
|
|
8129
|
+
* If specified, this key will be used.
|
|
8130
|
+
* If the license key is invalid it will show a "Invalid Infinite Table license. See console for details. Powered by Infinite Table" footer
|
|
8131
|
+
* If the license key is empty (either undefined or empty string) the grid shows the "Powered by Infinite Table" footer.
|
|
8132
|
+
*
|
|
8133
|
+
* So you will be better of with an empty license rather than an invalid one.
|
|
8134
|
+
*/
|
|
8115
8135
|
licenseKey?: string;
|
|
8116
8136
|
scrollTopKey?: string | number;
|
|
8117
8137
|
autoSizeColumnsKey?: InfiniteTablePropAutoSizeColumnsKey;
|
|
@@ -8145,10 +8165,10 @@ type GetContextMenuItemsReturnType = MenuProps['items'] | null | {
|
|
|
8145
8165
|
columns: MenuColumn[];
|
|
8146
8166
|
};
|
|
8147
8167
|
type InfiniteTablePropGetCellContextMenuItems<T> = (info: InfiniteTableRowInfoDataDiscriminatorWithColumn<T> & {
|
|
8148
|
-
event:
|
|
8168
|
+
event: MouseEvent;
|
|
8149
8169
|
}, params: InfiniteTablePublicContext<T>) => Promise<GetContextMenuItemsReturnType> | GetContextMenuItemsReturnType;
|
|
8150
8170
|
type InfiniteTablePropGetContextMenuItems<T> = (param: {
|
|
8151
|
-
event:
|
|
8171
|
+
event: MouseEvent;
|
|
8152
8172
|
} & Partial<InfiniteTableRowInfoDataDiscriminatorWithColumn<T>>, params: InfiniteTablePublicContext<T>) => Promise<GetContextMenuItemsReturnType> | GetContextMenuItemsReturnType;
|
|
8153
8173
|
type InfiniteTablePropGetFilterOperatorMenuItems<T> = (defaultItems: Exclude<MenuProps['items'], undefined>, params: {
|
|
8154
8174
|
column: InfiniteTableComputedColumn<T>;
|
|
@@ -8202,7 +8222,7 @@ declare function debounce(fn: Function, { wait }: {
|
|
|
8202
8222
|
wait: number;
|
|
8203
8223
|
}): (...args: any[]) => void;
|
|
8204
8224
|
|
|
8205
|
-
type DataSourceChildren<T> = React
|
|
8225
|
+
type DataSourceChildren<T> = React.ReactNode | ((values: DataSourceState<T>) => React.ReactNode);
|
|
8206
8226
|
|
|
8207
8227
|
declare function useDataSourceInternal<T, PROPS_TYPE = DataSourceProps<T>>(props: Omit<PROPS_TYPE, 'children'>): {
|
|
8208
8228
|
DataSource: ({ children }: {
|
|
@@ -8269,7 +8289,7 @@ type DataClientOptions = {
|
|
|
8269
8289
|
cache?: boolean;
|
|
8270
8290
|
};
|
|
8271
8291
|
|
|
8272
|
-
declare function Menu(props: MenuProps & HTMLProps<HTMLDivElement>): React
|
|
8292
|
+
declare function Menu(props: MenuProps & HTMLProps<HTMLDivElement>): React.JSX.Element;
|
|
8273
8293
|
declare namespace Menu {
|
|
8274
8294
|
var __is_infinite_menu_component: boolean;
|
|
8275
8295
|
}
|
|
@@ -8286,8 +8306,8 @@ type DragDropProviderContextValue = DragDropSourceAndTarget & {
|
|
|
8286
8306
|
};
|
|
8287
8307
|
declare const useDragDropProvider: () => DragDropProviderContextValue;
|
|
8288
8308
|
declare const DragDropProvider: (props: {
|
|
8289
|
-
children: React
|
|
8290
|
-
}) => React
|
|
8309
|
+
children: React.ReactNode | ((context: DragDropProviderContextValue) => React.ReactNode);
|
|
8310
|
+
}) => React.JSX.Element;
|
|
8291
8311
|
|
|
8292
8312
|
type EventHandler<T extends (...args: any[]) => void> = T;
|
|
8293
8313
|
declare class EventEmitter<Events extends Record<string, (...args: any[]) => void>> {
|
|
@@ -8390,16 +8410,7 @@ declare class DragInteractionTarget extends EventEmitter<DragInteractionTargetEv
|
|
|
8390
8410
|
drop(params: DragInteractionTargetMoveEvent): void;
|
|
8391
8411
|
}
|
|
8392
8412
|
|
|
8393
|
-
|
|
8394
|
-
dragItemId: string | number | null;
|
|
8395
|
-
onDragItemPointerDown: (e: React$1.PointerEvent) => void;
|
|
8396
|
-
draggingInProgress: boolean;
|
|
8397
|
-
dragListId: string;
|
|
8398
|
-
dragSourceListId: string | null;
|
|
8399
|
-
dropTargetListId: string | null;
|
|
8400
|
-
status: 'accepted' | 'rejected';
|
|
8401
|
-
};
|
|
8402
|
-
declare const useDragListContext: () => DragListContextValue;
|
|
8413
|
+
declare const DRAG_ITEM_ATTRIBUTE = "data-drag-item-id";
|
|
8403
8414
|
type DragProxySetupParams = {
|
|
8404
8415
|
dragItemNode: HTMLElement;
|
|
8405
8416
|
dragItemId: string;
|
|
@@ -8428,6 +8439,23 @@ type DragProxyMoveParams = {
|
|
|
8428
8439
|
dx: number;
|
|
8429
8440
|
dy: number;
|
|
8430
8441
|
};
|
|
8442
|
+
/**
|
|
8443
|
+
* Creates the default proxy element: clones the node, applies fixed-position
|
|
8444
|
+
* styles, and appends it to document.body.
|
|
8445
|
+
*/
|
|
8446
|
+
declare function createDefaultProxy(dragItemNode: HTMLElement, initialRect: DOMRect): HTMLElement;
|
|
8447
|
+
declare function defaultDragProxyMove({ proxyElement, dx, dy, }: DragProxyMoveParams): void;
|
|
8448
|
+
|
|
8449
|
+
type DragListContextValue = {
|
|
8450
|
+
dragItemId: string | number | null;
|
|
8451
|
+
onDragItemPointerDown: (e: React.PointerEvent) => void;
|
|
8452
|
+
draggingInProgress: boolean;
|
|
8453
|
+
dragListId: string;
|
|
8454
|
+
dragSourceListId: string | null;
|
|
8455
|
+
dropTargetListId: string | null;
|
|
8456
|
+
status: 'accepted' | 'rejected';
|
|
8457
|
+
};
|
|
8458
|
+
declare const useDragListContext: () => DragListContextValue;
|
|
8431
8459
|
type DragProxyRenderParams = {
|
|
8432
8460
|
/**
|
|
8433
8461
|
* The id of the item being dragged. `null` on the final cleanup call
|
|
@@ -8438,11 +8466,11 @@ type DragProxyRenderParams = {
|
|
|
8438
8466
|
dx: number;
|
|
8439
8467
|
dy: number;
|
|
8440
8468
|
/** Must be passed to the root element of the rendered proxy. */
|
|
8441
|
-
ref: React
|
|
8469
|
+
ref: React.RefCallback<HTMLElement>;
|
|
8442
8470
|
};
|
|
8443
8471
|
type DragListProps = {
|
|
8444
8472
|
dragListId: string;
|
|
8445
|
-
children: (domProps: React
|
|
8473
|
+
children: (domProps: React.HTMLProps<HTMLDivElement>, context: DragListContextValue) => React.ReactNode;
|
|
8446
8474
|
orientation: 'horizontal' | 'vertical';
|
|
8447
8475
|
acceptDropsFrom?: string[];
|
|
8448
8476
|
removeOnDropOutside?: boolean;
|
|
@@ -8502,22 +8530,16 @@ type DragListProps = {
|
|
|
8502
8530
|
* The original DOM node is hidden automatically.
|
|
8503
8531
|
* Called with dragItemId: null on drop/cancel — return null to unmount.
|
|
8504
8532
|
*/
|
|
8505
|
-
renderDragProxy?: (params: DragProxyRenderParams) => React
|
|
8533
|
+
renderDragProxy?: (params: DragProxyRenderParams) => React.ReactNode;
|
|
8506
8534
|
/**
|
|
8507
8535
|
* When true, the space occupied by the dragged item in the source list
|
|
8508
8536
|
* is preserved (not collapsed) while dragging outside the list.
|
|
8509
8537
|
*/
|
|
8510
8538
|
preserveDragSpace?: boolean;
|
|
8511
8539
|
};
|
|
8512
|
-
/**
|
|
8513
|
-
* Creates the default proxy element: clones the node, applies fixed-position
|
|
8514
|
-
* styles, and appends it to document.body.
|
|
8515
|
-
*/
|
|
8516
|
-
declare function createDefaultProxy(dragItemNode: HTMLElement, initialRect: DOMRect): HTMLElement;
|
|
8517
|
-
declare function defaultDragProxyMove({ proxyElement, dx, dy, }: DragProxyMoveParams): void;
|
|
8518
8540
|
declare const DragList: {
|
|
8519
|
-
(props: DragListProps): React
|
|
8520
|
-
DraggableItem: (props: DraggableItemProps) => React
|
|
8541
|
+
(props: DragListProps): React.JSX.Element;
|
|
8542
|
+
DraggableItem: (props: DraggableItemProps) => React.JSX.Element;
|
|
8521
8543
|
};
|
|
8522
8544
|
type DragItemContextValue = {
|
|
8523
8545
|
dragItemId: string | number;
|
|
@@ -8530,9 +8552,8 @@ type DragItemContextValue = {
|
|
|
8530
8552
|
type DraggableItemProps = {
|
|
8531
8553
|
id: string | number;
|
|
8532
8554
|
dragListId?: string;
|
|
8533
|
-
children: React
|
|
8555
|
+
children: React.ReactNode | ((domProps: React.HTMLAttributes<HTMLDivElement>, context: DragItemContextValue) => React.ReactNode);
|
|
8534
8556
|
};
|
|
8535
|
-
declare const DRAG_ITEM_ATTRIBUTE = "data-drag-item-id";
|
|
8536
8557
|
|
|
8537
8558
|
type AutoScrollerConfig = {
|
|
8538
8559
|
startFromPercentage: number;
|
|
@@ -8574,8 +8595,10 @@ declare function useEffectWithChanges<T>(fn: (changes: Record<keyof T, any>, pre
|
|
|
8574
8595
|
declare function useLayoutEffectWithChanges<T>(fn: (changes: Record<keyof T, any>, prevValues: Record<string, any>) => void | (() => void), deps: Record<keyof T, any>): void;
|
|
8575
8596
|
declare function useEffectWithObject(fn: EffectCallback, deps: Record<string, any>): void;
|
|
8576
8597
|
|
|
8577
|
-
declare function
|
|
8578
|
-
|
|
8598
|
+
declare function InfiniteCheckBox(props: InfiniteCheckBoxProps): React.JSX.Element;
|
|
8599
|
+
|
|
8600
|
+
declare function StringFilterEditor<T>(): React.JSX.Element;
|
|
8601
|
+
declare function NumberFilterEditor<T>(): React.JSX.Element;
|
|
8579
8602
|
|
|
8580
8603
|
declare const keyboardShortcuts: {
|
|
8581
8604
|
instantEdit: InfiniteTablePropKeyboardShorcut;
|
|
@@ -8635,21 +8658,21 @@ type FlashingCellOptions = {
|
|
|
8635
8658
|
flashDuration?: number;
|
|
8636
8659
|
flashClassName?: string;
|
|
8637
8660
|
render?: (props: {
|
|
8638
|
-
children: React
|
|
8661
|
+
children: React.ReactNode;
|
|
8639
8662
|
oldValue: any;
|
|
8640
|
-
}) => React
|
|
8663
|
+
}) => React.ReactNode;
|
|
8641
8664
|
};
|
|
8642
|
-
declare const createFlashingColumnCellComponent: (options?: FlashingCellOptions) => React
|
|
8643
|
-
declare const FlashingColumnCell: React
|
|
8665
|
+
declare const createFlashingColumnCellComponent: (options?: FlashingCellOptions) => React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8666
|
+
declare const FlashingColumnCell: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8644
8667
|
|
|
8645
8668
|
type MatrixDebuggerProps = {
|
|
8646
8669
|
debugTarget: string;
|
|
8647
8670
|
};
|
|
8648
|
-
declare function INTERNAL_MatrixDebugger(props: MatrixDebuggerProps): React
|
|
8671
|
+
declare function INTERNAL_MatrixDebugger(props: MatrixDebuggerProps): React.JSX.Element | null;
|
|
8649
8672
|
|
|
8650
8673
|
declare const components: {
|
|
8651
8674
|
CheckBox: typeof InfiniteCheckBox;
|
|
8652
|
-
LoadMask: (props: LoadMaskProps) => React
|
|
8675
|
+
LoadMask: (props: LoadMaskProps) => React.JSX.Element;
|
|
8653
8676
|
MenuIcon: typeof MenuIcon;
|
|
8654
8677
|
StringFilterEditor: typeof StringFilterEditor;
|
|
8655
8678
|
NumberFilterEditor: typeof NumberFilterEditor;
|