Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function VirtualTable(props) {
classCallCheck(this, VirtualTable);
var _this = possibleConstructorReturn(this, (VirtualTable.__proto__ || Object.getPrototypeOf(VirtualTable)).call(this, props));
var height = props.height,
estimatedRowHeight = props.estimatedRowHeight;
_this.layoutRenderComponent = dxReactCore.createRenderComponent(VirtualTableLayout$1, { height: height, estimatedRowHeight: estimatedRowHeight });
return _this;
}
function VirtualTable(props) {
classCallCheck(this, VirtualTable);
var _this = possibleConstructorReturn(this, (VirtualTable.__proto__ || Object.getPrototypeOf(VirtualTable)).call(this, props));
var height = props.height,
estimatedRowHeight = props.estimatedRowHeight;
_this.layoutRenderComponent = createRenderComponent(VirtualTableLayout$1, { height: height, estimatedRowHeight: estimatedRowHeight });
return _this;
}
onClick: this.onClick,
getMessage: getMessage
}) : React.createElement(
'div',
{ className: classes.plainTitle },
columnTitle
),
resizingEnabled && React.createElement(ResizingControl, {
onWidthChange: onWidthChange,
onWidthDraft: onWidthDraft,
onWidthDraftCancel: onWidthDraftCancel
})
);
return draggingEnabled ? React.createElement(
dxReactCore.DragSource,
{
ref: function ref(element) {
_this2.cellRef = element;
},
payload: [{ type: 'column', columnName: column.name }],
onStart: function onStart() {
return _this2.setState({ dragging: true });
},
onEnd: function onEnd() {
return _this2.cellRef && _this2.setState({ dragging: false });
}
},
cellLayout
) : cellLayout;
}
}]);
value: function render() {
var _classNames, _classNames2, _classNames3;
var classes = this.props.classes;
var resizing = this.state.resizing;
return React.createElement(
dxReactCore.Draggable,
{
onStart: this.onResizeStart,
onUpdate: this.onResizeUpdate,
onEnd: this.onResizeEnd
},
React.createElement(
'div',
{
className: classNames((_classNames = {}, defineProperty(_classNames, classes.resizeHandle, true), defineProperty(_classNames, classes.resizeHandleActive, resizing), _classNames))
},
React.createElement('div', {
className: classNames((_classNames2 = {}, defineProperty(_classNames2, classes.resizeHandleLine, true), defineProperty(_classNames2, classes.resizeHandleFirstLine, true), _classNames2))
}),
React.createElement('div', {
className: classNames((_classNames3 = {}, defineProperty(_classNames3, classes.resizeHandleLine, true), defineProperty(_classNames3, classes.resizeHandleSecondLine, true), _classNames3))
})
var TableContainer$1 = function TableContainer(_ref) {
var onOver = _ref.onOver,
onLeave = _ref.onLeave,
onDrop = _ref.onDrop,
children = _ref.children;
return React.createElement(
dxReactCore.DropTarget,
{
onOver: onOver,
onLeave: onLeave,
onDrop: onDrop
},
children
);
};