qbs-react-grid 1.1.21 → 1.1.22
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/es/qbsTable/CustomTableCell.js +3 -3
- package/es/qbsTable/QbsTable.js +1 -1
- package/es/qbsTable/commontypes.d.ts +1 -1
- package/lib/qbsTable/CustomTableCell.js +3 -3
- package/lib/qbsTable/QbsTable.js +1 -1
- package/lib/qbsTable/commontypes.d.ts +1 -1
- package/package.json +1 -1
- package/src/qbsTable/CustomTableCell.tsx +2 -2
- package/src/qbsTable/QbsTable.tsx +1 -1
- package/src/qbsTable/commontypes.ts +1 -1
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
var _excluded = ["rowData", "onChange", "checkedKeys", "dataKey", "dataTheme"],
|
|
4
4
|
_excluded2 = ["rowData", "dataKey", "expandedRowKeys", "onChange"],
|
|
5
5
|
_excluded3 = ["rowData", "renderCell", "toolTip", "dataKey", "onChange", "rowClick", "type", "path", "link"],
|
|
6
|
-
_excluded4 = ["rowData", "
|
|
6
|
+
_excluded4 = ["rowData", "getToolTip", "dataKey", "onChange", "rowClick", "getIcon", "path", "link"];
|
|
7
7
|
import React, { useState, useRef } from 'react';
|
|
8
8
|
import Cell from '../Cell';
|
|
9
9
|
import { handleCellFormat } from './utilities/handleFormatCell';
|
|
@@ -100,7 +100,7 @@ export var CustomTableCell = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
100
100
|
export var CustomRowStatus = /*#__PURE__*/React.memo(function (_ref5) {
|
|
101
101
|
var _path2;
|
|
102
102
|
var rowData = _ref5.rowData,
|
|
103
|
-
|
|
103
|
+
getToolTip = _ref5.getToolTip,
|
|
104
104
|
dataKey = _ref5.dataKey,
|
|
105
105
|
onChange = _ref5.onChange,
|
|
106
106
|
rowClick = _ref5.rowClick,
|
|
@@ -163,5 +163,5 @@ export var CustomRowStatus = /*#__PURE__*/React.memo(function (_ref5) {
|
|
|
163
163
|
style: {
|
|
164
164
|
position: 'fixed'
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, getToolTip === null || getToolTip === void 0 ? void 0 : getToolTip(rowData)))));
|
|
167
167
|
});
|
package/es/qbsTable/QbsTable.js
CHANGED
|
@@ -477,7 +477,7 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
477
477
|
rowClick: customRowStatus.onClick,
|
|
478
478
|
path: customRowStatus.getPath,
|
|
479
479
|
link: customRowStatus.link,
|
|
480
|
-
|
|
480
|
+
getToolTip: customRowStatus.getToolTip
|
|
481
481
|
})), columnsRendered, !actionProps || (actionProps === null || actionProps === void 0 ? void 0 : actionProps.length) === 0 && columnToggle && /*#__PURE__*/React.createElement(Column, {
|
|
482
482
|
width: 40,
|
|
483
483
|
fixed: "right"
|
|
@@ -102,7 +102,7 @@ export interface QbsTableProps {
|
|
|
102
102
|
getIcon?: (data: any) => ReactElement;
|
|
103
103
|
onClick?: (rowData: any) => void;
|
|
104
104
|
hidden?: boolean;
|
|
105
|
-
|
|
105
|
+
getToolTip?: (rowData: any) => string | ReactElement;
|
|
106
106
|
link?: boolean;
|
|
107
107
|
field?: boolean;
|
|
108
108
|
getPath?: (data: any) => string;
|
|
@@ -13,7 +13,7 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
13
13
|
var _excluded = ["rowData", "onChange", "checkedKeys", "dataKey", "dataTheme"],
|
|
14
14
|
_excluded2 = ["rowData", "dataKey", "expandedRowKeys", "onChange"],
|
|
15
15
|
_excluded3 = ["rowData", "renderCell", "toolTip", "dataKey", "onChange", "rowClick", "type", "path", "link"],
|
|
16
|
-
_excluded4 = ["rowData", "
|
|
16
|
+
_excluded4 = ["rowData", "getToolTip", "dataKey", "onChange", "rowClick", "getIcon", "path", "link"];
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
var CHECKBOX_LINE_HEIGHT = '36px';
|
|
@@ -111,7 +111,7 @@ exports.CustomTableCell = CustomTableCell;
|
|
|
111
111
|
var CustomRowStatus = /*#__PURE__*/_react["default"].memo(function (_ref5) {
|
|
112
112
|
var _path2;
|
|
113
113
|
var rowData = _ref5.rowData,
|
|
114
|
-
|
|
114
|
+
getToolTip = _ref5.getToolTip,
|
|
115
115
|
dataKey = _ref5.dataKey,
|
|
116
116
|
onChange = _ref5.onChange,
|
|
117
117
|
rowClick = _ref5.rowClick,
|
|
@@ -174,6 +174,6 @@ var CustomRowStatus = /*#__PURE__*/_react["default"].memo(function (_ref5) {
|
|
|
174
174
|
style: {
|
|
175
175
|
position: 'fixed'
|
|
176
176
|
}
|
|
177
|
-
},
|
|
177
|
+
}, getToolTip === null || getToolTip === void 0 ? void 0 : getToolTip(rowData)))));
|
|
178
178
|
});
|
|
179
179
|
exports.CustomRowStatus = CustomRowStatus;
|
package/lib/qbsTable/QbsTable.js
CHANGED
|
@@ -484,7 +484,7 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
484
484
|
rowClick: customRowStatus.onClick,
|
|
485
485
|
path: customRowStatus.getPath,
|
|
486
486
|
link: customRowStatus.link,
|
|
487
|
-
|
|
487
|
+
getToolTip: customRowStatus.getToolTip
|
|
488
488
|
})), columnsRendered, !actionProps || (actionProps === null || actionProps === void 0 ? void 0 : actionProps.length) === 0 && columnToggle && /*#__PURE__*/_react["default"].createElement(_Column["default"], {
|
|
489
489
|
width: 40,
|
|
490
490
|
fixed: "right"
|
|
@@ -102,7 +102,7 @@ export interface QbsTableProps {
|
|
|
102
102
|
getIcon?: (data: any) => ReactElement;
|
|
103
103
|
onClick?: (rowData: any) => void;
|
|
104
104
|
hidden?: boolean;
|
|
105
|
-
|
|
105
|
+
getToolTip?: (rowData: any) => string | ReactElement;
|
|
106
106
|
link?: boolean;
|
|
107
107
|
field?: boolean;
|
|
108
108
|
getPath?: (data: any) => string;
|
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ export const CustomTableCell: React.FC<any> = React.memo(
|
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
84
|
export const CustomRowStatus: React.FC<any> = React.memo(
|
|
85
|
-
({ rowData,
|
|
85
|
+
({ rowData, getToolTip, dataKey, onChange, rowClick, getIcon, path, link, ...props }) => {
|
|
86
86
|
const [dropdownPosition, setDropdownPosition] = useState('bottom-position');
|
|
87
87
|
const dropRef = useRef(null);
|
|
88
88
|
const menuButtonRef = useRef<HTMLElement>(null);
|
|
@@ -132,7 +132,7 @@ export const CustomRowStatus: React.FC<any> = React.memo(
|
|
|
132
132
|
className={`row-status-tooltip ${dropdownPosition}`}
|
|
133
133
|
style={{ position: 'fixed' }}
|
|
134
134
|
>
|
|
135
|
-
{
|
|
135
|
+
{getToolTip?.(rowData)}
|
|
136
136
|
</div>
|
|
137
137
|
</div>
|
|
138
138
|
</Cell>
|
|
@@ -520,7 +520,7 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
520
520
|
rowClick={customRowStatus.onClick}
|
|
521
521
|
path={customRowStatus.getPath}
|
|
522
522
|
link={customRowStatus.link}
|
|
523
|
-
|
|
523
|
+
getToolTip={customRowStatus.getToolTip}
|
|
524
524
|
/>
|
|
525
525
|
</Column>
|
|
526
526
|
)}
|
|
@@ -105,7 +105,7 @@ export interface QbsTableProps {
|
|
|
105
105
|
getIcon?: (data: any) => ReactElement;
|
|
106
106
|
onClick?: (rowData: any) => void;
|
|
107
107
|
hidden?: boolean;
|
|
108
|
-
|
|
108
|
+
getToolTip?: (rowData: any) => string | ReactElement;
|
|
109
109
|
link?: boolean;
|
|
110
110
|
field?: boolean;
|
|
111
111
|
getPath?: (data: any) => string;
|