authscape 1.0.258 → 1.0.260

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/index.js CHANGED
@@ -985,7 +985,9 @@ var EditableDatagrid = function EditableDatagrid(_ref) {
985
985
  _ref$rowsPerPage = _ref.rowsPerPage,
986
986
  rowsPerPage = _ref$rowsPerPage === void 0 ? [25, 50, 100] : _ref$rowsPerPage,
987
987
  _ref$rowHeight = _ref.rowHeight,
988
- rowHeight = _ref$rowHeight === void 0 ? 70 : _ref$rowHeight;
988
+ rowHeight = _ref$rowHeight === void 0 ? 70 : _ref$rowHeight,
989
+ _ref$onRowClick = _ref.onRowClick,
990
+ onRowClick = _ref$onRowClick === void 0 ? null : _ref$onRowClick;
989
991
  var _useState = (0, _react.useState)([]),
990
992
  _useState2 = _slicedToArray(_useState, 2),
991
993
  rows = _useState2[0],
@@ -1075,6 +1077,7 @@ var EditableDatagrid = function EditableDatagrid(_ref) {
1075
1077
  sx: sx,
1076
1078
  columns: columns,
1077
1079
  rowCount: totalRows,
1080
+ onRowClick: onRowClick,
1078
1081
  paginationMode: "server",
1079
1082
  getRowHeight: function getRowHeight() {
1080
1083
  return rowHeight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.258",
3
+ "version": "1.0.260",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import React, {useEffect, useState} from 'react';
2
2
  import { DataGrid, GridActionsCellItem } from "@mui/x-data-grid";
3
3
  import { Box } from '@mui/material';
4
4
 
5
- export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns, isCellEditable = null, onCellEdited = null, sx = {}, height="50vh", pageSize = 50, rowsPerPage = [25, 50, 100], rowHeight = 70}) => {
5
+ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns, isCellEditable = null, onCellEdited = null, sx = {}, height="50vh", pageSize = 50, rowsPerPage = [25, 50, 100], rowHeight = 70, onRowClick = null}) => {
6
6
 
7
7
  const [rows, setRows] = useState([]);
8
8
  const [totalRows, setTotalRows] = useState(0);
@@ -57,11 +57,13 @@ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns,
57
57
  sx={sx}
58
58
  columns={columns}
59
59
  rowCount={totalRows}
60
+ onRowClick={onRowClick}
60
61
  paginationMode="server"
61
62
  getRowHeight={() => {
62
63
  return rowHeight;
63
64
  }}
64
65
  pageSize={pageSize}
66
+
65
67
  onPageChange={(newPage) => setOffset(newPage)}
66
68
  rowsPerPageOptions={rowsPerPage}
67
69
  disableSelectionOnClick={true}