@bento-core/table 1.0.1-ins.17 → 1.0.1-ins.19
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/header/CustomCell.js +5 -1
- package/dist/util/Types.js +5 -2
- package/package.json +1 -1
- package/src/header/CustomCell.js +1 -0
- package/src/util/Types.js +2 -0
|
@@ -60,7 +60,11 @@ const CustomHeaderCell = _ref => {
|
|
|
60
60
|
hideSortIcon: sortBy !== dataField,
|
|
61
61
|
direction: sortBy === dataField ? sortOrder : 'asc',
|
|
62
62
|
onClick: toggleSort
|
|
63
|
-
}, headerType === _Types.headerTypes.CUSTOM_ELEM && customColHeaderRender ? customColHeaderRender(column) : header))
|
|
63
|
+
}, headerType === _Types.headerTypes.CUSTOM_ELEM && customColHeaderRender ? customColHeaderRender(column) : header)), /*#__PURE__*/_react.default.createElement("img", {
|
|
64
|
+
src: "https://raw.githubusercontent.com/google/material-design-icons/master/src/action/help/materialicons/24px.svg",
|
|
65
|
+
alt: "tooltipIcon",
|
|
66
|
+
title: "TEST"
|
|
67
|
+
}));
|
|
64
68
|
};
|
|
65
69
|
var _default = CustomHeaderCell;
|
|
66
70
|
exports.default = _default;
|
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.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;
|
|
6
|
+
exports.headerTypes = exports.dataFormatTypes = exports.cellTypes = exports.cellStyles = exports.actionCellTypes = exports.TRANSFORM_LINK = 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';
|
|
@@ -26,6 +26,8 @@ const FORMAT_BYTES = 'FORMAT_BYTES';
|
|
|
26
26
|
exports.FORMAT_BYTES = FORMAT_BYTES;
|
|
27
27
|
const TRANSFORM = 'TRANSFORM';
|
|
28
28
|
exports.TRANSFORM = TRANSFORM;
|
|
29
|
+
const TRANSFORM_LINK = 'TRANSFORM_LINK';
|
|
30
|
+
exports.TRANSFORM_LINK = TRANSFORM_LINK;
|
|
29
31
|
const cellTypes = {
|
|
30
32
|
CUSTOM_ELEM,
|
|
31
33
|
LINK,
|
|
@@ -39,7 +41,8 @@ const cellTypes = {
|
|
|
39
41
|
};
|
|
40
42
|
exports.cellTypes = cellTypes;
|
|
41
43
|
const cellStyles = {
|
|
42
|
-
TRANSFORM
|
|
44
|
+
TRANSFORM,
|
|
45
|
+
TRANSFORM_LINK
|
|
43
46
|
};
|
|
44
47
|
exports.cellStyles = cellStyles;
|
|
45
48
|
const actionCellTypes = [CHECKBOX, DELETE];
|
package/package.json
CHANGED
package/src/header/CustomCell.js
CHANGED
|
@@ -63,6 +63,7 @@ const CustomHeaderCell = ({
|
|
|
63
63
|
? customColHeaderRender(column) : header}
|
|
64
64
|
</TableSortLabel>
|
|
65
65
|
</Tooltip>
|
|
66
|
+
<img src="https://raw.githubusercontent.com/google/material-design-icons/master/src/action/help/materialicons/24px.svg" alt="tooltipIcon" title="TEST" />
|
|
66
67
|
</TableCell>
|
|
67
68
|
);
|
|
68
69
|
};
|
package/src/util/Types.js
CHANGED
|
@@ -9,6 +9,7 @@ export const DEFAULT = 'DEFAULT';
|
|
|
9
9
|
export const FORMAT_DATA = 'FORMAT_DATA';
|
|
10
10
|
export const FORMAT_BYTES = 'FORMAT_BYTES';
|
|
11
11
|
export const TRANSFORM = 'TRANSFORM';
|
|
12
|
+
export const TRANSFORM_LINK = 'TRANSFORM_LINK';
|
|
12
13
|
|
|
13
14
|
export const cellTypes = {
|
|
14
15
|
CUSTOM_ELEM,
|
|
@@ -24,6 +25,7 @@ export const cellTypes = {
|
|
|
24
25
|
|
|
25
26
|
export const cellStyles = {
|
|
26
27
|
TRANSFORM,
|
|
28
|
+
TRANSFORM_LINK,
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
export const actionCellTypes = [CHECKBOX, DELETE];
|