New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-data-grid

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-data-grid - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

164

react-data-grid/index.d.ts

@@ -48,7 +48,7 @@ // Type definitions for react-data-grid 4.0

*/
columns?: Array<Column<T>>
columns?: Array<Column<T>> | undefined
/**
* Called when the grid is scrolled
*/
onScroll?:(scrollState:ScrollState) => void
onScroll?:((scrollState:ScrollState) => void) | undefined
/**

@@ -59,3 +59,3 @@ * Invoked when the user changes the value of a single cell.

*/
onRowUpdated?: (e: RowUpdateEvent<T>) => void
onRowUpdated?: ((e: RowUpdateEvent<T>) => void) | undefined
/**

@@ -66,3 +66,3 @@ * Invoked when the user pulls down the drag handle of an editable cell.

*/
onCellsDragged?: (e: CellDragEvent) => void
onCellsDragged?: ((e: CellDragEvent) => void) | undefined
/**

@@ -72,5 +72,5 @@ * Invoked when the user clicks on one cell to expand it.

*/
onCellExpand?: (e:CellExpandEvent<T>) => void
onCellExpand?: ((e:CellExpandEvent<T>) => void) | undefined
getSubRowDetails?: (row: T) => SubRowDetails
getSubRowDetails?: ((row: T) => SubRowDetails) | undefined

@@ -82,3 +82,3 @@ /**

*/
onDragHandleDoubleClick?: (e: DragHandleDoubleClickEvent<T>) => void
onDragHandleDoubleClick?: ((e: DragHandleDoubleClickEvent<T>) => void) | undefined
/**

@@ -89,3 +89,3 @@ * Invoked when the user copies a value from one cell and pastes it into another (in the same column).

*/
onCellCopyPaste?: (e: CellCopyPasteEvent) => void
onCellCopyPaste?: ((e: CellCopyPasteEvent) => void) | undefined
/**

@@ -95,3 +95,3 @@ * Invoked after the user updates the grid rows in any way.

*/
onGridRowsUpdated?: (e: GridRowsUpdatedEvent<T>) => void
onGridRowsUpdated?: ((e: GridRowsUpdatedEvent<T>) => void) | undefined

@@ -102,3 +102,3 @@ /**

*/
toolbar?: React.ReactElement
toolbar?: React.ReactElement | undefined
/**

@@ -108,3 +108,3 @@ * A context menu to disiplay when the user right-clicks a cell.

*/
contextMenu?: React.ReactElement
contextMenu?: React.ReactElement | undefined
/**

@@ -114,3 +114,3 @@ * A react component to customize how rows are rendered.

*/
rowRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
rowRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined

@@ -120,3 +120,3 @@ /**

*/
rowGroupRenderer?: React.ComponentType
rowGroupRenderer?: React.ComponentType | undefined

@@ -126,3 +126,3 @@ /**

*/
emptyRowsView?: React.ComponentClass<any> | React.StatelessComponent<any>
emptyRowsView?: React.ComponentClass<any> | React.StatelessComponent<any> | undefined

@@ -132,3 +132,3 @@ /**

*/
minWidth?: number
minWidth?: number | undefined
/**

@@ -138,3 +138,3 @@ * The minimum height of the entire grid in pixels.

*/
minHeight?: number
minHeight?: number | undefined
/**

@@ -144,3 +144,3 @@ * The height of each individual row in pixels.

*/
rowHeight?: number
rowHeight?: number | undefined
/**

@@ -150,3 +150,3 @@ * The height of the header row in pixels.

*/
headerRowHeight?: number
headerRowHeight?: number | undefined
/**

@@ -156,3 +156,3 @@ * The height of the header filter row in pixels.

*/
headerFiltersHeight?: number
headerFiltersHeight?: number | undefined
/**

@@ -162,3 +162,3 @@ * The minimum width of each column in pixels.

*/
minColumnWidth?: number
minColumnWidth?: number | undefined
/**

@@ -169,3 +169,3 @@ * Invoked when a column has been resized.

*/
onColumnResize?: (index: number, width: number) => void
onColumnResize?: ((index: number, width: number) => void) | undefined

@@ -179,3 +179,3 @@ /**

*/
cellNavigationMode?: 'none' | 'loopOverRow' | 'changeRow'
cellNavigationMode?: 'none' | 'loopOverRow' | 'changeRow' | undefined

@@ -188,3 +188,3 @@ /**

*/
onGridSort?: (sortColumn: string, sortDirection: 'ASC' | 'DESC' | 'NONE') => void
onGridSort?: ((sortColumn: string, sortDirection: 'ASC' | 'DESC' | 'NONE') => void) | undefined

@@ -194,3 +194,3 @@ /**

*/
sortDirection?: 'ASC' | 'DESC' | 'NONE'
sortDirection?: 'ASC' | 'DESC' | 'NONE' | undefined

@@ -200,3 +200,3 @@ /**

*/
sortColumn?: string
sortColumn?: string | undefined

@@ -208,3 +208,3 @@ /**

*/
onAddFilter?: (filter: Filter) => void
onAddFilter?: ((filter: Filter) => void) | undefined
/**

@@ -214,3 +214,3 @@ * Called when the user clears all filters.

*/
onClearFilters?: () => void
onClearFilters?: (() => void) | undefined

@@ -223,3 +223,3 @@ /**

*/
enableRowSelect?: boolean | 'single' | 'multi'
enableRowSelect?: boolean | 'single' | 'multi' | undefined
/**

@@ -229,3 +229,3 @@ * Called when a row is selected.

*/
onRowSelect?: (rows: Array<T>) => void
onRowSelect?: ((rows: Array<T>) => void) | undefined
/**

@@ -236,3 +236,3 @@ * A property that's unique to every row.

*/
rowKey?: string
rowKey?: string | undefined

@@ -243,3 +243,3 @@ /**

*/
enableCellSelect?: boolean
enableCellSelect?: boolean | undefined

@@ -250,3 +250,3 @@ /**

*/
enableDragAndDrop?: boolean
enableDragAndDrop?: boolean | undefined

@@ -257,3 +257,3 @@ /**

*/
onCellSelected?: (coordinates: {rowIdx: number, idx: number}) => void
onCellSelected?: ((coordinates: {rowIdx: number, idx: number}) => void) | undefined
/**

@@ -263,3 +263,3 @@ * Called when a cell is deselected.

*/
onCellDeSelected?: (coordinates: {rowIdx: number, idx: number}) => void
onCellDeSelected?: ((coordinates: {rowIdx: number, idx: number}) => void) | undefined

@@ -270,3 +270,3 @@ /**

*/
rowScrollTimeout?: number
rowScrollTimeout?: number | undefined
/**

@@ -276,12 +276,12 @@ * Options object for selecting rows

rowSelection?: {
showCheckbox?: boolean
enableShiftSelect?: boolean
onRowsSelected?: (rows: Array<SelectionParams<T>>) => void,
onRowsDeselected?: (rows: Array<SelectionParams<T>>) => void,
showCheckbox?: boolean | undefined
enableShiftSelect?: boolean | undefined
onRowsSelected?: ((rows: Array<SelectionParams<T>>) => void) | undefined,
onRowsDeselected?: ((rows: Array<SelectionParams<T>>) => void) | undefined,
selectBy?: {
indexes?: Array<number>;
keys?: { rowKey: string, values: Array<any> };
isSelectedKey?: string;
}
}
indexes?: Array<number> | undefined;
keys?: { rowKey: string, values: Array<any> } | undefined;
isSelectedKey?: string | undefined;
} | undefined
} | undefined
/**

@@ -291,3 +291,3 @@ * A custom formatter for the select all checkbox cell

*/
selectAllRenderer?: React.ComponentClass<any> | React.StatelessComponent<any>;
selectAllRenderer?: React.ComponentClass<any> | React.StatelessComponent<any> | undefined;
/**

@@ -297,3 +297,3 @@ * A custom formatter for select row column

*/
rowActionsCell?: React.ComponentClass<any> | React.StatelessComponent<any>;
rowActionsCell?: React.ComponentClass<any> | React.StatelessComponent<any> | undefined;
/**

@@ -305,3 +305,3 @@ * An event function called when a row is clicked.

*/
onRowClick?: (rowIdx: number, row: T) => void
onRowClick?: ((rowIdx: number, row: T) => void) | undefined

@@ -312,3 +312,3 @@ /**

*/
onRowExpandToggle?: (props: OnRowExpandToggle ) => void
onRowExpandToggle?: ((props: OnRowExpandToggle ) => void) | undefined

@@ -321,5 +321,5 @@ /**

*/
getValidFilterValues?: (columnKey: string) => Array<any>
getValidFilterValues?: ((columnKey: string) => Array<any>) | undefined
getCellActions?: (column: Column<T>, row: T) => (ActionButton | ActionMenu)[]
getCellActions?: ((column: Column<T>, row: T) => (ActionButton | ActionMenu)[]) | undefined
}

@@ -358,3 +358,3 @@

*/
width?: number
width?: number | undefined
/**

@@ -364,3 +364,3 @@ * Whether this column can be resized by the user.

*/
resizable?: boolean
resizable?: boolean | undefined
/**

@@ -370,3 +370,3 @@ * Whether this column should stay fixed on the left as the user scrolls horizontally.

*/
locked?: boolean
locked?: boolean | undefined
/**

@@ -376,3 +376,3 @@ * Whether this column can be edited.

*/
editable?: boolean
editable?: boolean | undefined
/**

@@ -382,3 +382,3 @@ * Whether the rows in the grid can be sorted by this column.

*/
sortable?: boolean
sortable?: boolean | undefined
/**

@@ -388,7 +388,7 @@ * Whether the rows in the grid can be filtered by this column.

*/
filterable?: boolean;
filterable?: boolean | undefined;
/**
* A custom formatter for this column's filter.
*/
filterRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>;
filterRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined;
/**

@@ -401,11 +401,11 @@ * The editor for this column. Several editors are available in "react-data-grid/addons".

| React.ComponentClass<EditorBaseProps>
| React.StatelessComponent<EditorBaseProps>;
| React.StatelessComponent<EditorBaseProps> | undefined;
/**
* A custom read-only formatter for this column. An image formatter is available in "react-data-grid/addons".
*/
formatter?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
formatter?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined
/**
* A custom formatter for this column's header.
*/
headerRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
headerRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined
/**

@@ -419,11 +419,11 @@ * Events to be bound to the cells in this specific column.

[name: string]: ColumnEventCallback
};
} | undefined;
/**
* Retrieve meta data about the row, optionally provide column as a second argument
*/
getRowMetaData?: (rowdata: T, column?: Column<T>) => any;
getRowMetaData?: ((rowdata: T, column?: Column<T>) => any) | undefined;
/**
* A class name to be applied to the cells in the column
*/
cellClass?: string;
cellClass?: string | undefined;
/**

@@ -433,3 +433,3 @@ * Whether this column can be dragged (re-arranged).

*/
draggable?: boolean;
draggable?: boolean | undefined;
}

@@ -544,3 +544,3 @@ enum SCROLL_DIRECTION {

*/
canExpand?: boolean;
canExpand?: boolean | undefined;
/**

@@ -557,7 +557,7 @@ * Sets the field/column that will be use to expand the subrows.

*/
children?: T[];
treeDepth?: number;
siblingIndex?: number;
numberSiblings?: number;
group?: boolean;
children?: T[] | undefined;
treeDepth?: number | undefined;
siblingIndex?: number | undefined;
numberSiblings?: number | undefined;
group?: boolean | undefined;
}

@@ -725,14 +725,14 @@

interface AutoCompleteEditorProps {
onCommit?: () => void;
options?: Array<{ id: any; title: string }>;
onCommit?: (() => void) | undefined;
options?: Array<{ id: any; title: string }> | undefined;
label?: any;
value?: any;
height?: number;
valueParams?: string[];
column?: AdazzleReactDataGrid.ExcelColumn;
resultIdentifier?: string;
search?: string;
onKeyDown?: () => void;
onFocus?: () => void;
editorDisplayValue?: (column: AdazzleReactDataGrid.ExcelColumn, value: any) => string;
height?: number | undefined;
valueParams?: string[] | undefined;
column?: AdazzleReactDataGrid.ExcelColumn | undefined;
resultIdentifier?: string | undefined;
search?: string | undefined;
onKeyDown?: (() => void) | undefined;
onFocus?: (() => void) | undefined;
editorDisplayValue?: ((column: AdazzleReactDataGrid.ExcelColumn, value: any) => string) | undefined;
}

@@ -742,4 +742,4 @@

options: Array<string | { id: number; caption: string }>;
column?: AdazzleReactDataGrid.ExcelColumn;
value?: any[];
column?: AdazzleReactDataGrid.ExcelColumn | undefined;
value?: any[] | undefined;
}

@@ -746,0 +746,0 @@

{
"name": "@types/react-data-grid",
"version": "4.0.5",
"version": "4.0.6",
"description": "TypeScript definitions for react-data-grid",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-data-grid",
"license": "MIT",

@@ -39,4 +40,4 @@ "contributors": [

},
"typesPublisherContentHash": "28a1a623db397e487ce26bc5b1be755569ba21a4d547f2b239e509d73334f749",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "b9f0ecf8a7e8629e7c48bf08a4ebe966f92c75b648f902f764758a5935dafebb",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 15 Nov 2019 23:01:02 GMT
* Last updated: Thu, 08 Jul 2021 20:20:35 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -17,2 +17,2 @@ * Global values: `AdazzleReactDataGrid`, `AdazzleReactDataGridPlugins`

# Credits
These definitions were written by Simon Gellis (https://github.com/SupernaviX), Kieran Peat (https://github.com/KieranPeat), Martin Novak (https://github.com/martinnov92), and Sebastijan Grabar (https://github.com/baso53).
These definitions were written by [Simon Gellis](https://github.com/SupernaviX), [Kieran Peat](https://github.com/KieranPeat), [Martin Novak](https://github.com/martinnov92), and [Sebastijan Grabar](https://github.com/baso53).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc