qbs-react-grid 1.2.4 → 1.2.6
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/QbsTable.js
CHANGED
|
@@ -8,6 +8,7 @@ import Pagination from '../Pagination';
|
|
|
8
8
|
import Table from '../Table';
|
|
9
9
|
import { ActionCell, CheckCell, CustomRowStatus, CustomTableCell, ExpandCell } from './CustomTableCell';
|
|
10
10
|
import ToolBar from './Toolbar';
|
|
11
|
+
import CardComponent from './utilities/CardComponent';
|
|
11
12
|
import ColumToggle from './utilities/ColumShowHide';
|
|
12
13
|
import debounce from './utilities/debounce';
|
|
13
14
|
import { deepEqual } from './utilities/deepEqual';
|
|
@@ -17,7 +18,6 @@ import { SettingsIcon } from './utilities/icons';
|
|
|
17
18
|
// import 'qbs-react-table/dist/css/qbs-react-grid.css';
|
|
18
19
|
|
|
19
20
|
import '../../dist/css/qbs-react-grid.css';
|
|
20
|
-
import CardComponent from './utilities/CardComponent';
|
|
21
21
|
var CHECKBOX_LINE_HEIGHT = '36px';
|
|
22
22
|
var COLUMN_WIDTH = 250;
|
|
23
23
|
var QbsTable = function QbsTable(_ref) {
|
|
@@ -422,7 +422,12 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
422
422
|
className: "qbs-table " + classes.tableContainerClass,
|
|
423
423
|
"data-theme": dataTheme
|
|
424
424
|
}, toolbar && /*#__PURE__*/React.createElement(ToolBar, toolbarProps), /*#__PURE__*/React.createElement("div", {
|
|
425
|
-
className: "qbs-table-border-wrap"
|
|
425
|
+
className: "qbs-table-border-wrap",
|
|
426
|
+
style: {
|
|
427
|
+
overflow: !tableViewToggle ? 'auto' : '',
|
|
428
|
+
maxHeight: !tableViewToggle ? height : '',
|
|
429
|
+
minHeight: !tableViewToggle ? height : ''
|
|
430
|
+
}
|
|
426
431
|
}, tableViewToggle ? /*#__PURE__*/React.createElement(Table, {
|
|
427
432
|
height: autoHeight ? undefined : height,
|
|
428
433
|
key: tableKey,
|
package/lib/qbsTable/QbsTable.js
CHANGED
|
@@ -13,13 +13,13 @@ var _Pagination = _interopRequireDefault(require("../Pagination"));
|
|
|
13
13
|
var _Table = _interopRequireDefault(require("../Table"));
|
|
14
14
|
var _CustomTableCell = require("./CustomTableCell");
|
|
15
15
|
var _Toolbar = _interopRequireDefault(require("./Toolbar"));
|
|
16
|
+
var _CardComponent = _interopRequireDefault(require("./utilities/CardComponent"));
|
|
16
17
|
var _ColumShowHide = _interopRequireDefault(require("./utilities/ColumShowHide"));
|
|
17
18
|
var _debounce = _interopRequireDefault(require("./utilities/debounce"));
|
|
18
19
|
var _deepEqual = require("./utilities/deepEqual");
|
|
19
20
|
var _empty = _interopRequireDefault(require("./utilities/empty"));
|
|
20
21
|
var _icons = require("./utilities/icons");
|
|
21
22
|
require("../../dist/css/qbs-react-grid.css");
|
|
22
|
-
var _CardComponent = _interopRequireDefault(require("./utilities/CardComponent"));
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
25
|
// import 'qbs-react-table/dist/css/qbs-react-grid.css';
|
|
@@ -428,7 +428,12 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
428
428
|
className: "qbs-table " + classes.tableContainerClass,
|
|
429
429
|
"data-theme": dataTheme
|
|
430
430
|
}, toolbar && /*#__PURE__*/_react["default"].createElement(_Toolbar["default"], toolbarProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
431
|
-
className: "qbs-table-border-wrap"
|
|
431
|
+
className: "qbs-table-border-wrap",
|
|
432
|
+
style: {
|
|
433
|
+
overflow: !tableViewToggle ? 'auto' : '',
|
|
434
|
+
maxHeight: !tableViewToggle ? height : '',
|
|
435
|
+
minHeight: !tableViewToggle ? height : ''
|
|
436
|
+
}
|
|
432
437
|
}, tableViewToggle ? /*#__PURE__*/_react["default"].createElement(_Table["default"], {
|
|
433
438
|
height: autoHeight ? undefined : height,
|
|
434
439
|
key: tableKey,
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ExpandCell
|
|
16
16
|
} from './CustomTableCell';
|
|
17
17
|
import ToolBar from './Toolbar';
|
|
18
|
+
import CardComponent from './utilities/CardComponent';
|
|
18
19
|
import ColumToggle from './utilities/ColumShowHide';
|
|
19
20
|
import debounce from './utilities/debounce';
|
|
20
21
|
import { deepEqual } from './utilities/deepEqual';
|
|
@@ -24,7 +25,6 @@ import { SettingsIcon } from './utilities/icons';
|
|
|
24
25
|
// import 'qbs-react-table/dist/css/qbs-react-grid.css';
|
|
25
26
|
|
|
26
27
|
import '../../dist/css/qbs-react-grid.css';
|
|
27
|
-
import CardComponent from './utilities/CardComponent';
|
|
28
28
|
|
|
29
29
|
const CHECKBOX_LINE_HEIGHT = '36px';
|
|
30
30
|
const COLUMN_WIDTH = 250;
|
|
@@ -449,7 +449,14 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
449
449
|
return (
|
|
450
450
|
<div className={`qbs-table ${classes.tableContainerClass}`} data-theme={dataTheme}>
|
|
451
451
|
{toolbar && <ToolBar {...toolbarProps} />}
|
|
452
|
-
<div
|
|
452
|
+
<div
|
|
453
|
+
className="qbs-table-border-wrap"
|
|
454
|
+
style={{
|
|
455
|
+
overflow: !tableViewToggle ? 'auto' : '',
|
|
456
|
+
maxHeight: !tableViewToggle ? height : '',
|
|
457
|
+
minHeight: !tableViewToggle ? height : ''
|
|
458
|
+
}}
|
|
459
|
+
>
|
|
453
460
|
{tableViewToggle ? (
|
|
454
461
|
<Table
|
|
455
462
|
height={autoHeight ? undefined : height}
|