@insticc/react-datagrid-2 1.1.20 → 1.1.22
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/README.md +2084 -1042
- package/build/index.js +10 -4
- package/build/wrapper/index.js +2 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DataGrid", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _index["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
3
12
|
var _index = _interopRequireDefault(require("./wrapper/index.js"));
|
|
4
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
5
|
-
module.exports = {
|
|
6
|
-
DataGrid: _index["default"]
|
|
7
|
-
};
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
package/build/wrapper/index.js
CHANGED
|
@@ -256,7 +256,8 @@ var DataGrid = function DataGrid(_ref) {
|
|
|
256
256
|
var cellClass = column.cellClass,
|
|
257
257
|
CustomCell = column.Cell,
|
|
258
258
|
type = column.type;
|
|
259
|
-
var
|
|
259
|
+
var typeFn = type ? _DefaultCellTypes.DEFAULT_CELL_TYPES[type] : null;
|
|
260
|
+
var typeValue = typeof typeFn === "function" ? typeFn(props) : null;
|
|
260
261
|
if (typeValue) content = typeValue;
|
|
261
262
|
if (CustomCell) content = /*#__PURE__*/_react["default"].createElement(CustomCell, _extends({}, props, {
|
|
262
263
|
typeValue: typeValue
|