@uxf/data-grid 11.24.0 → 11.24.1
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/package.json +1 -1
- package/table/table.js +3 -2
package/package.json
CHANGED
package/table/table.js
CHANGED
|
@@ -34,8 +34,9 @@ const react_data_grid_1 = __importDefault(require("react-data-grid"));
|
|
|
34
34
|
const select_row_checkbox_1 = require("./components/select-row-checkbox");
|
|
35
35
|
const use_rdg_visuals_1 = require("./hooks/use-rdg-visuals");
|
|
36
36
|
const use_react_data_grid_columns_1 = require("./hooks/use-react-data-grid-columns");
|
|
37
|
+
const no_rows_fallback_1 = require("./no-rows-fallback");
|
|
37
38
|
const defaultKeyExtractor = (r) => r.id;
|
|
38
|
-
const DefaultNoRowsFallback =
|
|
39
|
+
const DefaultNoRowsFallback = no_rows_fallback_1.NoRowsFallback;
|
|
39
40
|
/** @deprecated will be remove, use DataGridTableV2 */
|
|
40
41
|
function Table(props) {
|
|
41
42
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -84,7 +85,7 @@ function Table(props) {
|
|
|
84
85
|
rows: props.data,
|
|
85
86
|
});
|
|
86
87
|
return (react_1.default.createElement(show_1.Show, { when: isMounted },
|
|
87
|
-
react_1.default.createElement(react_data_grid_1.default, {
|
|
88
|
+
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 })));
|
|
88
89
|
}
|
|
89
90
|
exports.Table = Table;
|
|
90
91
|
/** @deprecated will be remove, use DataGridTableV2 */
|