@bento-core/table 1.0.1-ins.14 → 1.0.1-ins.16
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/dist/body/DisplayBodyCell.js +1 -1
- package/dist/index.js +6 -0
- package/dist/toolbar/ManageColumnView.js +1 -1
- package/dist/util/Types.js +7 -1
- package/package.json +1 -1
- package/src/body/DisplayBodyCell.js +1 -1
- package/src/index.js +1 -0
- package/src/toolbar/ManageColumnView.js +1 -1
- package/src/util/Types.js +5 -0
|
@@ -82,7 +82,7 @@ const DisplayCell = _ref3 => {
|
|
|
82
82
|
column
|
|
83
83
|
} = _ref3;
|
|
84
84
|
return /*#__PURE__*/_react.default.createElement(_core.TableCell, {
|
|
85
|
-
className: column.
|
|
85
|
+
className: column.className
|
|
86
86
|
}, /*#__PURE__*/_react.default.createElement(ViewCell, {
|
|
87
87
|
row: row,
|
|
88
88
|
column: column
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "TableView", {
|
|
|
15
15
|
return _TableView.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "cellStyles", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _Types.cellStyles;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "cellTypes", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function get() {
|
|
@@ -69,7 +69,7 @@ const ManageColumnView = _ref => {
|
|
|
69
69
|
}), column.icon && /*#__PURE__*/_react.default.createElement("img", {
|
|
70
70
|
src: column.icon,
|
|
71
71
|
alt: column.header,
|
|
72
|
-
className: column.
|
|
72
|
+
className: column.dataField
|
|
73
73
|
}), /*#__PURE__*/_react.default.createElement(_core.Typography, null, column.header))))));
|
|
74
74
|
};
|
|
75
75
|
const styles = () => ({
|
package/dist/util/Types.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.headerTypes = exports.dataFormatTypes = exports.cellTypes = exports.actionCellTypes = exports.LINK = exports.FORMAT_DATA_CELLS = exports.FORMAT_DATA = exports.FORMAT_BYTES = exports.EXTERNAL_LINK = exports.DISPLAY = exports.DELETE = exports.DEFAULT = exports.ComponentTypes = exports.CUSTOM_ELEM = exports.CONDITIONAL_EXTERNAL_LINK = exports.CHECKBOX = void 0;
|
|
6
|
+
exports.headerTypes = exports.dataFormatTypes = exports.cellTypes = exports.cellStyles = exports.actionCellTypes = exports.TRANSFORM = exports.LINK = exports.FORMAT_DATA_CELLS = exports.FORMAT_DATA = exports.FORMAT_BYTES = exports.EXTERNAL_LINK = exports.DISPLAY = exports.DELETE = exports.DEFAULT = exports.ComponentTypes = exports.CUSTOM_ELEM = exports.CONDITIONAL_EXTERNAL_LINK = exports.CHECKBOX = void 0;
|
|
7
7
|
const CHECKBOX = 'CHECKBOX';
|
|
8
8
|
exports.CHECKBOX = CHECKBOX;
|
|
9
9
|
const DELETE = 'DELETE';
|
|
@@ -24,6 +24,8 @@ const FORMAT_DATA = 'FORMAT_DATA';
|
|
|
24
24
|
exports.FORMAT_DATA = FORMAT_DATA;
|
|
25
25
|
const FORMAT_BYTES = 'FORMAT_BYTES';
|
|
26
26
|
exports.FORMAT_BYTES = FORMAT_BYTES;
|
|
27
|
+
const TRANSFORM = 'TRANSFORM';
|
|
28
|
+
exports.TRANSFORM = TRANSFORM;
|
|
27
29
|
const cellTypes = {
|
|
28
30
|
CUSTOM_ELEM,
|
|
29
31
|
LINK,
|
|
@@ -36,6 +38,10 @@ const cellTypes = {
|
|
|
36
38
|
FORMAT_DATA
|
|
37
39
|
};
|
|
38
40
|
exports.cellTypes = cellTypes;
|
|
41
|
+
const cellStyles = {
|
|
42
|
+
TRANSFORM
|
|
43
|
+
};
|
|
44
|
+
exports.cellStyles = cellStyles;
|
|
39
45
|
const actionCellTypes = [CHECKBOX, DELETE];
|
|
40
46
|
exports.actionCellTypes = actionCellTypes;
|
|
41
47
|
const FORMAT_DATA_CELLS = [FORMAT_BYTES];
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -89,7 +89,7 @@ const ManageColumnView = ({
|
|
|
89
89
|
className="checkBox"
|
|
90
90
|
/>
|
|
91
91
|
{column.icon && (
|
|
92
|
-
<img src={column.icon} alt={column.header} className={column.
|
|
92
|
+
<img src={column.icon} alt={column.header} className={column.dataField} />
|
|
93
93
|
)}
|
|
94
94
|
<Typography>{column.header}</Typography>
|
|
95
95
|
</ListItem>
|
package/src/util/Types.js
CHANGED
|
@@ -8,6 +8,7 @@ export const DISPLAY = 'DISPLAY';
|
|
|
8
8
|
export const DEFAULT = 'DEFAULT';
|
|
9
9
|
export const FORMAT_DATA = 'FORMAT_DATA';
|
|
10
10
|
export const FORMAT_BYTES = 'FORMAT_BYTES';
|
|
11
|
+
export const TRANSFORM = 'TRANSFORM';
|
|
11
12
|
|
|
12
13
|
export const cellTypes = {
|
|
13
14
|
CUSTOM_ELEM,
|
|
@@ -21,6 +22,10 @@ export const cellTypes = {
|
|
|
21
22
|
FORMAT_DATA,
|
|
22
23
|
};
|
|
23
24
|
|
|
25
|
+
export const cellStyles = {
|
|
26
|
+
TRANSFORM,
|
|
27
|
+
};
|
|
28
|
+
|
|
24
29
|
export const actionCellTypes = [CHECKBOX, DELETE];
|
|
25
30
|
|
|
26
31
|
export const FORMAT_DATA_CELLS = [FORMAT_BYTES];
|