@bento-core/table 1.0.1-CDS.3 → 1.0.1-CDS.5
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.
|
@@ -16,12 +16,19 @@ const CheckboxView = _ref => {
|
|
|
16
16
|
return /*#__PURE__*/_react.default.createElement(_core.TableCell, {
|
|
17
17
|
padding: "checkbox"
|
|
18
18
|
}, /*#__PURE__*/_react.default.createElement(_core.FormControlLabel, {
|
|
19
|
-
control: /*#__PURE__*/_react.default.createElement(
|
|
19
|
+
control: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
20
|
+
style: {
|
|
21
|
+
display: 'none'
|
|
22
|
+
}
|
|
23
|
+
}, "select all checkbox"), /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
|
|
20
24
|
color: "primary",
|
|
21
25
|
indeterminate: includeSelectedIds,
|
|
22
26
|
checked: includeSelectedIds,
|
|
23
|
-
onChange: event => toggleSelectAll(event, Ids, includeSelectedIds)
|
|
24
|
-
|
|
27
|
+
onChange: event => toggleSelectAll(event, Ids, includeSelectedIds),
|
|
28
|
+
inputProps: {
|
|
29
|
+
'aria-label': 'select all checkbox'
|
|
30
|
+
}
|
|
31
|
+
}))
|
|
25
32
|
}));
|
|
26
33
|
};
|
|
27
34
|
var _default = CheckboxView;
|
|
@@ -60,9 +60,13 @@ const CustomPagination = _ref => {
|
|
|
60
60
|
page: page,
|
|
61
61
|
onPageChange: onPageChange,
|
|
62
62
|
onRowsPerPageChange: onRowsPerPageChange,
|
|
63
|
+
labelRowsPerPage: /*#__PURE__*/_react.default.createElement("span", {
|
|
64
|
+
id: "rows-per-page-label"
|
|
65
|
+
}, "Rows per page:"),
|
|
63
66
|
SelectProps: {
|
|
64
67
|
inputProps: {
|
|
65
|
-
'aria-label': 'rows per page dropdown selector'
|
|
68
|
+
'aria-label': 'rows per page dropdown selector',
|
|
69
|
+
'aria-labelledby': 'rows-per-page-label'
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.1-CDS.
|
|
3
|
+
"version": "1.0.1-CDS.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
},
|
|
28
28
|
"author": "CTOS Bento Team",
|
|
29
29
|
"license": "ISC",
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "0cdcda5c7486dfebbe00c15140d1a67b3c867423"
|
|
31
31
|
}
|
|
@@ -13,12 +13,16 @@ const CheckboxView = ({
|
|
|
13
13
|
<TableCell padding="checkbox">
|
|
14
14
|
<FormControlLabel
|
|
15
15
|
control={(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
<>
|
|
17
|
+
<span style={{ display: 'none' }}>select all checkbox</span>
|
|
18
|
+
<Checkbox
|
|
19
|
+
color="primary"
|
|
20
|
+
indeterminate={includeSelectedIds}
|
|
21
|
+
checked={includeSelectedIds}
|
|
22
|
+
onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds)}
|
|
23
|
+
inputProps={{ 'aria-label': 'select all checkbox' }}
|
|
24
|
+
/>
|
|
25
|
+
</>
|
|
22
26
|
)}
|
|
23
27
|
/>
|
|
24
28
|
</TableCell>
|
|
@@ -50,7 +50,8 @@ const CustomPagination = ({
|
|
|
50
50
|
page={page}
|
|
51
51
|
onPageChange={onPageChange}
|
|
52
52
|
onRowsPerPageChange={onRowsPerPageChange}
|
|
53
|
-
|
|
53
|
+
labelRowsPerPage={<span id="rows-per-page-label">Rows per page:</span>}
|
|
54
|
+
SelectProps={{ inputProps: { 'aria-label': 'rows per page dropdown selector', 'aria-labelledby': 'rows-per-page-label' } }}
|
|
54
55
|
/>
|
|
55
56
|
</ThemeProvider>
|
|
56
57
|
);
|