@uxf/data-grid
Advanced tools
Comparing version 11.24.0 to 11.24.1
{ | ||
"name": "@uxf/data-grid", | ||
"version": "11.24.0", | ||
"version": "11.24.1", | ||
"description": "UXF DataGrid", | ||
@@ -5,0 +5,0 @@ "homepage": "https://gitlab.com/uxf-npm/data-grid#readme", |
@@ -37,4 +37,5 @@ "use strict"; | ||
const use_react_data_grid_columns_1 = require("./hooks/use-react-data-grid-columns"); | ||
const no_rows_fallback_1 = require("./no-rows-fallback"); | ||
const defaultKeyExtractor = (r) => r.id; | ||
const DefaultNoRowsFallback = () => react_1.default.createElement("div", null, "no rows"); | ||
const DefaultNoRowsFallback = no_rows_fallback_1.NoRowsFallback; | ||
/** @deprecated will be remove, use DataGridTableV2 */ | ||
@@ -88,3 +89,3 @@ function Table(props) { | ||
return (react_1.default.createElement(show_1.Show, { when: isMounted }, | ||
react_1.default.createElement(react_data_grid_1.default, { ref: rdgVisuals.ref, style: reactDataGridStyles, className: rdgVisuals.className, columns: columns, rows: props.data, enableVirtualization: false, onSortColumnsChange: onSortColumnChange, sortColumns: sortColumns, rowHeight: rdgVisuals.rowHeight, headerRowHeight: rdgVisuals.headerRowHeight, rowClass: props.rowClass, rowKeyGetter: (_e = props.keyExtractor) !== null && _e !== void 0 ? _e : defaultKeyExtractor, selectedRows: new Set((_g = (_f = props.state.selectedRows) === null || _f === void 0 ? void 0 : _f.map(keyExtractor)) !== null && _g !== void 0 ? _g : []), onSelectedRowsChange: onSelectRows, renderers: components }))); | ||
react_1.default.createElement(react_data_grid_1.default, { className: rdgVisuals.className, columns: columns, enableVirtualization: false, headerRowHeight: rdgVisuals.headerRowHeight, onSelectedRowsChange: onSelectRows, onSortColumnsChange: onSortColumnChange, ref: rdgVisuals.ref, renderers: components, rowClass: props.rowClass, rowHeight: rdgVisuals.rowHeight, rowKeyGetter: (_e = props.keyExtractor) !== null && _e !== void 0 ? _e : defaultKeyExtractor, rows: props.data, selectedRows: new Set((_g = (_f = props.state.selectedRows) === null || _f === void 0 ? void 0 : _f.map(keyExtractor)) !== null && _g !== void 0 ? _g : []), sortColumns: sortColumns, style: reactDataGridStyles }))); | ||
} | ||
@@ -91,0 +92,0 @@ exports.Table = Table; |
233853
4980