@bento-core/table 1.0.0-alpha.0 → 1.0.1-ccdihub.0
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.
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _core = require("@material-ui/core");
|
|
9
|
+
var _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel"));
|
|
9
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
11
|
const CheckboxView = _ref => {
|
|
11
12
|
let {
|
|
@@ -14,10 +15,13 @@ const CheckboxView = _ref => {
|
|
|
14
15
|
} = _ref;
|
|
15
16
|
return /*#__PURE__*/_react.default.createElement(_core.TableCell, {
|
|
16
17
|
padding: "checkbox"
|
|
17
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
|
|
19
|
+
control: /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
|
|
20
|
+
disableRipple: true,
|
|
21
|
+
onClick: event => onRowSelectChange(event, row),
|
|
22
|
+
checked: row.isChecked
|
|
23
|
+
}),
|
|
24
|
+
label: "Table-Checkbox-Item"
|
|
21
25
|
}));
|
|
22
26
|
};
|
|
23
27
|
var _default = CheckboxView;
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.1-ccdihub.0",
|
|
5
4
|
"main": "dist/index.js",
|
|
6
5
|
"scripts": {
|
|
7
6
|
"build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
|
|
8
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
8
|
"lint": "eslint src"
|
|
10
9
|
},
|
|
11
|
-
"repository":
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/CBIIT/bento-frontend.git"
|
|
13
|
+
},
|
|
12
14
|
"publishConfig": {
|
|
13
15
|
"access": "public"
|
|
14
16
|
},
|
|
@@ -22,5 +24,9 @@
|
|
|
22
24
|
},
|
|
23
25
|
"author": "CTOS Bento Team",
|
|
24
26
|
"license": "ISC",
|
|
25
|
-
"
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/CBIIT/bento-frontend/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/CBIIT/bento-frontend#readme",
|
|
31
|
+
"description": ""
|
|
26
32
|
}
|
|
@@ -3,16 +3,22 @@ import {
|
|
|
3
3
|
Checkbox,
|
|
4
4
|
TableCell,
|
|
5
5
|
} from '@material-ui/core';
|
|
6
|
+
import FormControlLabel from '@material-ui/core/FormControlLabel';
|
|
6
7
|
|
|
7
8
|
const CheckboxView = ({
|
|
8
9
|
row,
|
|
9
10
|
onRowSelectChange,
|
|
10
11
|
}) => (
|
|
11
12
|
<TableCell padding="checkbox">
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
<FormControlLabel
|
|
14
|
+
control={(
|
|
15
|
+
<Checkbox
|
|
16
|
+
disableRipple
|
|
17
|
+
onClick={(event) => onRowSelectChange(event, row)}
|
|
18
|
+
checked={row.isChecked}
|
|
19
|
+
/>
|
|
20
|
+
)}
|
|
21
|
+
label="Table-Checkbox-Item"
|
|
16
22
|
/>
|
|
17
23
|
</TableCell>
|
|
18
24
|
);
|