material-table
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,3 @@ | ||
import _objectSpread from "@babel/runtime/helpers/objectSpread"; | ||
/* eslint-disable no-unused-vars */ | ||
@@ -53,5 +55,5 @@ import * as React from 'react'; | ||
if (typeof this.props.columnDef.cellStyle === 'function') { | ||
cellStyle = Object.assign(cellStyle, this.props.columnDef.cellStyle(this.props.value)); | ||
cellStyle = _objectSpread({}, cellStyle, this.props.columnDef.cellStyle(this.props.value)); | ||
} else { | ||
cellStyle = Object.assign(cellStyle, this.props.columnDef.cellStyle); | ||
cellStyle = _objectSpread({}, cellStyle, this.props.columnDef.cellStyle); | ||
} | ||
@@ -58,0 +60,0 @@ |
@@ -19,3 +19,3 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread"; | ||
const calculatedProps = this.getProps(props); | ||
this.state = Object.assign({ | ||
this.state = _objectSpread({ | ||
columns: [], | ||
@@ -62,3 +62,3 @@ currentPage: 0, | ||
calculatedProps.options = Object.assign(MaterialTable.defaultProps.options, calculatedProps.options); | ||
calculatedProps.options = _objectSpread({}, MaterialTable.defaultProps.options, calculatedProps.options); | ||
return calculatedProps; | ||
@@ -154,3 +154,3 @@ } | ||
if (value.toString().toUpperCase().includes(this.state.searchText.toUpperCase())) { | ||
if (value && value.toString().toUpperCase().includes(this.state.searchText.toUpperCase())) { | ||
result = true; | ||
@@ -249,3 +249,3 @@ } | ||
}), | ||
localization: Object.assign(MaterialTable.defaultProps.localization, this.props.localization) | ||
localization: _objectSpread({}, MaterialTable.defaultProps.localization, this.props.localization) | ||
}), React.createElement("div", { | ||
@@ -256,3 +256,3 @@ style: { | ||
}, React.createElement(Table, null, React.createElement(MTableHeader, { | ||
localization: Object.assign(MaterialTable.defaultProps.localization, this.props.localization), | ||
localization: _objectSpread({}, MaterialTable.defaultProps.localization, this.props.localization), | ||
columns: this.state.columns, | ||
@@ -259,0 +259,0 @@ hasSelection: props.options.selection, |
@@ -18,3 +18,3 @@ import * as React from 'react'; | ||
onClick: (event: any, data: any) => void; | ||
iconProps: IconProps | ||
iconProps?: IconProps | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "material-table", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Datatable for React based on https://material-ui.com/api/table/ with additional features", | ||
@@ -5,0 +5,0 @@ "main": "dist/material-table.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41215
1006