@bento-core/table 1.0.0-c3dc.10 → 1.0.0-c3dc.12
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.
|
@@ -25,7 +25,8 @@ const ActionHeaderCell = _ref => {
|
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_CheckBoxView.default, {
|
|
26
26
|
includeSelectedIds: includeSelectedIds,
|
|
27
27
|
toggleSelectAll: toggleSelectAll,
|
|
28
|
-
Ids: Ids
|
|
28
|
+
Ids: Ids,
|
|
29
|
+
rows: rows
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
if (_Types.cellTypes.DELETE === cellType) {
|
|
@@ -17,7 +17,8 @@ const CheckboxView = _ref => {
|
|
|
17
17
|
let {
|
|
18
18
|
includeSelectedIds,
|
|
19
19
|
toggleSelectAll,
|
|
20
|
-
Ids
|
|
20
|
+
Ids,
|
|
21
|
+
rows
|
|
21
22
|
} = _ref;
|
|
22
23
|
return /*#__PURE__*/_react.default.createElement(_core.TableCell, {
|
|
23
24
|
padding: "checkbox"
|
|
@@ -29,7 +30,7 @@ const CheckboxView = _ref => {
|
|
|
29
30
|
color: "primary",
|
|
30
31
|
indeterminate: includeSelectedIds,
|
|
31
32
|
checked: includeSelectedIds,
|
|
32
|
-
onChange: event => toggleSelectAll(event, Ids, includeSelectedIds)
|
|
33
|
+
onChange: event => toggleSelectAll(event, Ids, includeSelectedIds, rows)
|
|
33
34
|
})));
|
|
34
35
|
};
|
|
35
36
|
var _default = CheckboxView;
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ const CheckboxView = ({
|
|
|
10
10
|
includeSelectedIds,
|
|
11
11
|
toggleSelectAll,
|
|
12
12
|
Ids,
|
|
13
|
+
rows,
|
|
13
14
|
}) => (
|
|
14
15
|
<TableCell padding="checkbox">
|
|
15
16
|
<span style={{ display: 'none' }}>Select all</span>
|
|
@@ -18,7 +19,7 @@ const CheckboxView = ({
|
|
|
18
19
|
color="primary"
|
|
19
20
|
indeterminate={includeSelectedIds}
|
|
20
21
|
checked={includeSelectedIds}
|
|
21
|
-
onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds)}
|
|
22
|
+
onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds, rows)}
|
|
22
23
|
/>
|
|
23
24
|
</TableCell>
|
|
24
25
|
);
|
|
@@ -43,7 +43,11 @@ export function convertToCSV(jsonse, keysToInclude, header) {
|
|
|
43
43
|
line += entry[keyName] !== null ? `"${entry[keyName]}"` : ' ';
|
|
44
44
|
}
|
|
45
45
|
} else {
|
|
46
|
-
|
|
46
|
+
let newLine = entry[keyName];
|
|
47
|
+
if (entry[keyName].includes('"')) {
|
|
48
|
+
newLine = entry[keyName].replace(/"/g, '""');
|
|
49
|
+
}
|
|
50
|
+
line += entry[keyName] !== null ? `"${newLine}"` : ' ';
|
|
47
51
|
}
|
|
48
52
|
return line;
|
|
49
53
|
});
|