authscape 1.0.530 → 1.0.534

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
@@ -1479,6 +1479,8 @@ var EditableDatagrid = function EditableDatagrid(_ref) {
1479
1479
  columns = _ref.columns,
1480
1480
  _ref$isCellEditable = _ref.isCellEditable,
1481
1481
  _isCellEditable = _ref$isCellEditable === void 0 ? null : _ref$isCellEditable,
1482
+ _ref$onCellClick = _ref.onCellClick,
1483
+ onCellClick = _ref$onCellClick === void 0 ? null : _ref$onCellClick,
1482
1484
  _ref$onCellEdited = _ref.onCellEdited,
1483
1485
  onCellEdited = _ref$onCellEdited === void 0 ? null : _ref$onCellEdited,
1484
1486
  _ref$params = _ref.params,
@@ -1613,6 +1615,7 @@ var EditableDatagrid = function EditableDatagrid(_ref) {
1613
1615
  },
1614
1616
  rowsPerPageOptions: rowsPerPage,
1615
1617
  disableSelectionOnClick: true,
1618
+ onCellClick: onCellClick,
1616
1619
  onCellEditCommit: handleCellEditCommit(),
1617
1620
  isCellEditable: function isCellEditable(params) {
1618
1621
  if (_isCellEditable != null) {
@@ -5165,7 +5168,7 @@ function MappedColumn(_ref) {
5165
5168
  }, "Matched"))), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
5166
5169
  variant: "body2",
5167
5170
  color: "text.secondary"
5168
- }, !isMapped && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "This column is matched"), isMapped && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "This column is not matched. If not matched it will not import"))), /*#__PURE__*/_react["default"].createElement(_CardActions["default"], {
5171
+ }, !isMapped && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "This column is matched with ", toName), isMapped && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "This column is not matched. If not matched it will not import"))), /*#__PURE__*/_react["default"].createElement(_CardActions["default"], {
5169
5172
  sx: {
5170
5173
  backgroundColor: isMapped ? notMatchedColor : matchedColor
5171
5174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.530",
3
+ "version": "1.0.534",
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, params = null, sx = {}, height="50vh", pageSize = 50, rowsPerPage = [25, 50, 100], rowHeight = 70, key = null, onRowClick = null}) => {
5
+ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns, isCellEditable = null, onCellClick = null, onCellEdited = null, params = null, sx = {}, height="50vh", pageSize = 50, rowsPerPage = [25, 50, 100], rowHeight = 70, key = null, onRowClick = null}) => {
6
6
 
7
7
  const [rows, setRows] = useState([]);
8
8
  const [totalRows, setTotalRows] = useState(0);
@@ -79,6 +79,7 @@ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns,
79
79
  onPageChange={(newPage) => setOffset(newPage)}
80
80
  rowsPerPageOptions={rowsPerPage}
81
81
  disableSelectionOnClick={true}
82
+ onCellClick={onCellClick}
82
83
  onCellEditCommit={handleCellEditCommit()}
83
84
  isCellEditable={(params) => {
84
85
 
@@ -36,7 +36,7 @@ export function MappedColumn({companyId, documentId, documentType, documentMappi
36
36
  }
37
37
  </Box>
38
38
  <Typography variant="body2" color="text.secondary">
39
- {!isMapped && <>This column is matched</>}
39
+ {!isMapped && <>This column is matched with {toName}</>}
40
40
  {isMapped && <>This column is not matched. If not matched it will not import</>}
41
41
 
42
42
  </Typography>