Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
adirhaz1z committed Apr 11, 2021
1 parent 0198128 commit 77f6742
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 63 deletions.
1 change: 1 addition & 0 deletions dist/commonjs/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ var Grid =
var childrenToDisplay = this._childrenToDisplay;
var showNoContentRenderer =
childrenToDisplay.length === 0 && height > 0 && width > 0;
console.log(this.props['onBlur']);
return /*#__PURE__*/ React.createElement(
'div',
(0, _extends2['default'])(
Expand Down
1 change: 1 addition & 0 deletions dist/commonjs/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ var List =
'ReactVirtualized__List',
className,
);
console.log(this.props);
return /*#__PURE__*/ React.createElement(
_Grid['default'],
(0, _extends2['default'])({}, this.props, {
Expand Down
1 change: 1 addition & 0 deletions dist/es/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ var Grid =
var childrenToDisplay = this._childrenToDisplay;
var showNoContentRenderer =
childrenToDisplay.length === 0 && height > 0 && width > 0;
console.log(this.props['onBlur']);
return /*#__PURE__*/ React.createElement(
'div',
_extends(
Expand Down
1 change: 1 addition & 0 deletions dist/es/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ var List =
scrollToIndex = _this$props.scrollToIndex,
width = _this$props.width;
var classNames = clsx('ReactVirtualized__List', className);
console.log(this.props);
return /*#__PURE__*/ React.createElement(
Grid,
_extends({}, this.props, {
Expand Down
128 changes: 67 additions & 61 deletions dist/umd/react-virtualized.js
Original file line number Diff line number Diff line change
Expand Up @@ -4759,58 +4759,61 @@
var childrenToDisplay = this._childrenToDisplay,
showNoContentRenderer =
0 === childrenToDisplay.length && 0 < height && 0 < width;
return React.createElement(
'div',
_extends(
{
ref: this._setScrollingContainerRef,
},
containerProps,
{
'aria-label': this.props['aria-label'],
'aria-readonly': this.props['aria-readonly'],
'aria-activedescendant': this.props[
'aria-activedescendant'
],
className: clsx('ReactVirtualized__Grid', className),
id: id,
onScroll: this._onScroll,
role: role,
style: _objectSpread2(
_objectSpread2({}, gridStyle),
style,
),
onFocus: this.props.onFocus,
onBlur: this.props.onBlur,
tabIndex: tabIndex,
},
),
0 < childrenToDisplay.length &&
React.createElement(
'div',
return (
console.log(this.props.onBlur),
React.createElement(
'div',
_extends(
{
className:
'ReactVirtualized__Grid__innerScrollContainer',
id: 'virtualized-grid-container',
role: containerRole,
ref: this._setScrollingContainerRef,
},
containerProps,
{
'aria-label': this.props['aria-label'],
'aria-readonly': this.props['aria-readonly'],
'aria-activedescendant': this.props[
'aria-activedescendant'
],
className: clsx('ReactVirtualized__Grid', className),
id: id,
onScroll: this._onScroll,
role: role,
style: _objectSpread2(
{
width: autoContainerWidth
? 'auto'
: totalColumnsWidth,
height: totalRowsHeight,
maxWidth: totalColumnsWidth,
maxHeight: totalRowsHeight,
overflow: 'hidden',
pointerEvents: isScrolling ? 'none' : '',
position: 'relative',
},
containerStyle,
_objectSpread2({}, gridStyle),
style,
),
onFocus: this.props.onFocus,
onBlur: this.props.onBlur,
tabIndex: tabIndex,
},
childrenToDisplay,
),
showNoContentRenderer && noContentRenderer(),
0 < childrenToDisplay.length &&
React.createElement(
'div',
{
className:
'ReactVirtualized__Grid__innerScrollContainer',
id: 'virtualized-grid-container',
role: containerRole,
style: _objectSpread2(
{
width: autoContainerWidth
? 'auto'
: totalColumnsWidth,
height: totalRowsHeight,
maxWidth: totalColumnsWidth,
maxHeight: totalRowsHeight,
overflow: 'hidden',
pointerEvents: isScrolling ? 'none' : '',
position: 'relative',
},
containerStyle,
),
},
childrenToDisplay,
),
showNoContentRenderer && noContentRenderer(),
)
);
},
},
Expand Down Expand Up @@ -5921,20 +5924,23 @@
scrollToIndex = _this$props.scrollToIndex,
width = _this$props.width,
classNames = clsx('ReactVirtualized__List', className);
return React.createElement(
Grid,
_extends({}, this.props, {
autoContainerWidth: !0,
cellRenderer: this._cellRenderer,
className: classNames,
columnWidth: width,
columnCount: 1,
noContentRenderer: noRowsRenderer,
onScroll: this._onScroll,
onSectionRendered: this._onSectionRendered,
ref: this._setRef,
scrollToRow: scrollToIndex,
}),
return (
console.log(this.props),
React.createElement(
Grid,
_extends({}, this.props, {
autoContainerWidth: !0,
cellRenderer: this._cellRenderer,
className: classNames,
columnWidth: width,
columnCount: 1,
noContentRenderer: noRowsRenderer,
onScroll: this._onScroll,
onSectionRendered: this._onSectionRendered,
ref: this._setRef,
scrollToRow: scrollToIndex,
}),
)
);
},
},
Expand Down
2 changes: 1 addition & 1 deletion source/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ class Grid extends React.PureComponent<Props, State> {

const showNoContentRenderer =
childrenToDisplay.length === 0 && height > 0 && width > 0;

console.log(this.props['onBlur']);
return (
<div
ref={this._setScrollingContainerRef}
Expand Down
2 changes: 1 addition & 1 deletion source/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default class List extends React.PureComponent<Props> {
const {className, noRowsRenderer, scrollToIndex, width} = this.props;

const classNames = clsx('ReactVirtualized__List', className);

console.log(this.props);
return (
<Grid
{...this.props}
Expand Down

0 comments on commit 77f6742

Please sign in to comment.