fixed-data-table-2
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -28,11 +28,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -44,5 +48,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(ColumnResizerLine); | ||
function ColumnResizerLine() { | ||
var _getPrototypeOf2; | ||
var _this; | ||
@@ -56,3 +60,3 @@ | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ColumnResizerLine)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
@@ -132,3 +136,3 @@ _defineProperty(_assertThisInitialized(_this), "state", | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])({ | ||
@@ -140,3 +144,3 @@ 'fixedDataTableColumnResizerLineLayout/main': true, | ||
style: style | ||
}, _react["default"].createElement("div", { | ||
}, /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('fixedDataTableColumnResizerLineLayout/mouseArea'), | ||
@@ -143,0 +147,0 @@ style: { |
@@ -54,11 +54,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -118,2 +122,4 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(FixedDataTable); | ||
function FixedDataTable(_props) { | ||
@@ -124,3 +130,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTable).call(this, _props)); | ||
_this = _super.call(this, _props); | ||
@@ -217,3 +223,3 @@ _defineProperty(_assertThisInitialized(_this), "_shouldHandleTouchX", function ( | ||
var props = _this.props; | ||
return _react["default"].createElement(_FixedDataTableBufferedRows["default"], { | ||
return /*#__PURE__*/_react["default"].createElement(_FixedDataTableBufferedRows["default"], { | ||
ariaRowIndexOffset: ariaRowIndexOffset, | ||
@@ -452,3 +458,4 @@ isScrolling: props.scrolling, | ||
onVerticalScroll = _this$props7.onVerticalScroll, | ||
ownerHeight = _this$props7.tableSize.ownerHeight; | ||
ownerHeight = _this$props7.tableSize.ownerHeight, | ||
scrolling = _this$props7.scrolling; | ||
var oldEndRowIndex = prevProps.endRowIndex, | ||
@@ -458,3 +465,4 @@ oldFirstRowIndex = prevProps.firstRowIndex, | ||
oldScrollY = prevProps.scrollY, | ||
oldOwnerHeight = prevProps.tableSize.ownerHeight; // check if scroll values have changed - we have an extra check on NaN because (NaN !== NaN) | ||
oldOwnerHeight = prevProps.tableSize.ownerHeight, | ||
oldScrolling = prevProps.scrolling; // check if scroll values have changed - we have an extra check on NaN because (NaN !== NaN) | ||
@@ -470,3 +478,3 @@ var ownerHeightChanged = ownerHeight !== oldOwnerHeight && !((0, _isNaN["default"])(ownerHeight) && (0, _isNaN["default"])(oldOwnerHeight)); | ||
if (!_this.props.scrolling && onScrollStart) { | ||
if (!oldScrolling && scrolling && onScrollStart) { | ||
onScrollStart(oldScrollX, oldScrollY, oldFirstRowIndex, oldEndRowIndex); | ||
@@ -722,3 +730,3 @@ } | ||
if (groupHeaderHeight > 0) { | ||
groupHeader = _react["default"].createElement(_FixedDataTableRow["default"], { | ||
groupHeader = /*#__PURE__*/_react["default"].createElement(_FixedDataTableRow["default"], { | ||
key: "group_header", | ||
@@ -761,3 +769,3 @@ ariaRowIndex: ariaGroupHeaderIndex, | ||
var dragKnob = _react["default"].createElement(_ColumnResizerLine["default"], { | ||
var dragKnob = /*#__PURE__*/_react["default"].createElement(_ColumnResizerLine["default"], { | ||
height: componentHeight, | ||
@@ -780,3 +788,3 @@ initialWidth: columnResizingData.width || 0, | ||
if (footerHeight) { | ||
footer = _react["default"].createElement(_FixedDataTableRow["default"], { | ||
footer = /*#__PURE__*/_react["default"].createElement(_FixedDataTableRow["default"], { | ||
key: "footer", | ||
@@ -805,3 +813,3 @@ ariaRowIndex: ariaFooterIndex, | ||
var header = _react["default"].createElement(_FixedDataTableRow["default"], { | ||
var header = /*#__PURE__*/_react["default"].createElement(_FixedDataTableRow["default"], { | ||
key: "header", | ||
@@ -838,3 +846,3 @@ ariaRowIndex: ariaHeaderIndex, | ||
if (scrollY) { | ||
topShadow = _react["default"].createElement("div", { | ||
topShadow = /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('fixedDataTableLayout/topShadow'), (0, _cx["default"])('public/fixedDataTable/topShadow')), | ||
@@ -853,3 +861,3 @@ style: { | ||
if (ownerScrollAvailable || scrollY < maxScrollY) { | ||
bottomShadow = _react["default"].createElement("div", { | ||
bottomShadow = /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('fixedDataTableLayout/bottomShadow'), (0, _cx["default"])('public/fixedDataTable/bottomShadow')), | ||
@@ -874,3 +882,3 @@ style: { | ||
return _react["default"].createElement("div", _extends({ | ||
return /*#__PURE__*/_react["default"].createElement("div", _extends({ | ||
className: (0, _joinClasses["default"])(tableClassName, (0, _cx["default"])('fixedDataTableLayout/main'), (0, _cx["default"])('public/fixedDataTable/main')), | ||
@@ -890,3 +898,3 @@ role: "grid", | ||
} | ||
}), _react["default"].createElement("div", { | ||
}), /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('fixedDataTableLayout/rowsContainer'), | ||
@@ -893,0 +901,0 @@ style: { |
@@ -34,2 +34,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -39,8 +45,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -51,2 +55,4 @@ | ||
var _super = _createSuper(FixedDataTableBufferedRows); | ||
function FixedDataTableBufferedRows(props) { | ||
@@ -57,3 +63,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableBufferedRows).call(this, props)); | ||
_this = _super.call(this, props); | ||
_this._staticRowArray = []; | ||
@@ -118,3 +124,3 @@ _this._initialRender = true; | ||
return _react["default"].createElement("div", null, this._staticRowArray); | ||
return /*#__PURE__*/_react["default"].createElement("div", null, this._staticRowArray); | ||
} | ||
@@ -155,3 +161,3 @@ /** | ||
var visible = (0, _inRange["default"])(rowIndex, this.props.firstViewportRowIndex, this.props.endViewportRowIndex); | ||
return _react["default"].createElement(_FixedDataTableRow["default"], _extends({ | ||
return /*#__PURE__*/_react["default"].createElement(_FixedDataTableRow["default"], _extends({ | ||
key: key, | ||
@@ -158,0 +164,0 @@ index: rowIndex, |
@@ -40,11 +40,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -56,5 +60,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(FixedDataTableCell); | ||
function FixedDataTableCell() { | ||
var _getPrototypeOf2; | ||
var _this; | ||
@@ -68,3 +72,3 @@ | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FixedDataTableCell)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
@@ -188,3 +192,3 @@ _defineProperty(_assertThisInitialized(_this), "state", { | ||
}; | ||
columnResizerComponent = _react["default"].createElement("div", { | ||
columnResizerComponent = /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('fixedDataTableCellLayout/columnResizerContainer'), | ||
@@ -196,3 +200,3 @@ style: columnResizerStyle, | ||
onTouchMove: this.props.touchEnabled ? this._suppressEvent : null | ||
}, _react["default"].createElement("div", { | ||
}, /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('fixedDataTableCellLayout/columnResizerKnob'), (0, _cx["default"])('public/fixedDataTableCell/columnResizerKnob')), | ||
@@ -207,3 +211,3 @@ style: columnResizerStyle | ||
//header row | ||
columnReorderComponent = _react["default"].createElement(_FixedDataTableColumnReorderHandle["default"], _extends({ | ||
columnReorderComponent = /*#__PURE__*/_react["default"].createElement(_FixedDataTableColumnReorderHandle["default"], _extends({ | ||
columnKey: this.columnKey, | ||
@@ -229,12 +233,12 @@ touchEnabled: this.props.touchEnabled, | ||
if (_react["default"].isValidElement(props.cell)) { | ||
content = _react["default"].cloneElement(props.cell, cellProps); | ||
if ( /*#__PURE__*/_react["default"].isValidElement(props.cell)) { | ||
content = /*#__PURE__*/_react["default"].cloneElement(props.cell, cellProps); | ||
} else if (typeof props.cell === 'function') { | ||
content = props.cell(cellProps); | ||
} else { | ||
content = _react["default"].createElement(_FixedDataTableCellDefault["default"], cellProps, props.cell); | ||
content = /*#__PURE__*/_react["default"].createElement(_FixedDataTableCellDefault["default"], cellProps, props.cell); | ||
} | ||
var role = isHeaderOrFooter ? 'columnheader' : 'gridcell'; | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: className, | ||
@@ -241,0 +245,0 @@ style: style, |
@@ -36,2 +36,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -41,8 +47,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -76,6 +80,8 @@ | ||
var _super = _createSuper(FixedDataTableCellDefault); | ||
function FixedDataTableCellDefault() { | ||
_classCallCheck(this, FixedDataTableCellDefault); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableCellDefault).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -102,10 +108,10 @@ | ||
return _react["default"].createElement("div", _extends({}, props, { | ||
return /*#__PURE__*/_react["default"].createElement("div", _extends({}, props, { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('fixedDataTableCellLayout/wrap1'), (0, _cx["default"])('public/fixedDataTableCell/wrap1'), className), | ||
style: innerStyle | ||
}), _react["default"].createElement("div", { | ||
}), /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('fixedDataTableCellLayout/wrap2'), (0, _cx["default"])('public/fixedDataTableCell/wrap2')) | ||
}, _react["default"].createElement("div", { | ||
}, /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('fixedDataTableCellLayout/wrap3'), (0, _cx["default"])('public/fixedDataTableCell/wrap3')) | ||
}, _react["default"].createElement("div", { | ||
}, /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('public/fixedDataTableCell/cellContent') | ||
@@ -112,0 +118,0 @@ }, children)))); |
@@ -47,11 +47,15 @@ /** | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -63,2 +67,4 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(FixedDataTableCellGroupImpl); | ||
/** | ||
@@ -74,3 +80,3 @@ * PropTypes are disabled in this component, because having them on slows | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableCellGroupImpl).call(this, props)); | ||
_this = _super.call(this, props); | ||
@@ -102,3 +108,3 @@ _defineProperty(_assertThisInitialized(_this), "_renderCell", function ( | ||
var pureRendering = columnProps.pureRendering || false; | ||
return _react["default"].createElement(_FixedDataTableCell["default"], { | ||
return /*#__PURE__*/_react["default"].createElement(_FixedDataTableCell["default"], { | ||
isScrolling: _this.props.isScrolling, | ||
@@ -173,3 +179,3 @@ isHeaderOrFooter: _this.props.isHeaderOrFooter, | ||
(0, _FixedDataTableTranslateDOMPosition["default"])(style, -1 * props.left, 0, this._initialRender, this.props.isRTL); | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('fixedDataTableCellGroupLayout/cellGroup'), | ||
@@ -213,5 +219,5 @@ style: style | ||
var _super2 = _createSuper(FixedDataTableCellGroup); | ||
function FixedDataTableCellGroup() { | ||
var _getPrototypeOf2; | ||
var _this2; | ||
@@ -225,3 +231,3 @@ | ||
_this2 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FixedDataTableCellGroup)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this2 = _super2.call.apply(_super2, [this].concat(args)); | ||
@@ -277,6 +283,6 @@ _defineProperty(_assertThisInitialized(_this2), "_onColumnResize", function ( | ||
var onColumnResize = props.onColumnResize ? this._onColumnResize : null; | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
style: style, | ||
className: (0, _cx["default"])('fixedDataTableCellGroupLayout/cellGroupWrapper') | ||
}, _react["default"].createElement(FixedDataTableCellGroupImpl, _extends({}, props, { | ||
}, /*#__PURE__*/_react["default"].createElement(FixedDataTableCellGroupImpl, _extends({}, props, { | ||
onColumnResize: onColumnResize | ||
@@ -283,0 +289,0 @@ }))); |
@@ -22,2 +22,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -27,8 +33,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -42,6 +46,8 @@ | ||
var _super = _createSuper(FixedDataTableColumn); | ||
function FixedDataTableColumn() { | ||
_classCallCheck(this, FixedDataTableColumn); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableColumn).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -48,0 +54,0 @@ |
@@ -22,2 +22,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -27,8 +33,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -42,6 +46,8 @@ | ||
var _super = _createSuper(FixedDataTableColumnGroup); | ||
function FixedDataTableColumnGroup() { | ||
_classCallCheck(this, FixedDataTableColumnGroup); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableColumnGroup).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -48,0 +54,0 @@ |
@@ -28,11 +28,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -44,5 +48,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(FixedDataTableColumnReorderHandle); | ||
function FixedDataTableColumnReorderHandle() { | ||
var _getPrototypeOf2; | ||
var _this; | ||
@@ -56,3 +60,3 @@ | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FixedDataTableColumnReorderHandle)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
@@ -157,3 +161,3 @@ _defineProperty(_assertThisInitialized(_this), "state", | ||
}; | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])({ | ||
@@ -160,0 +164,0 @@ 'fixedDataTableCellLayout/columnReorderContainer': true, |
@@ -46,11 +46,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -62,2 +66,4 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(FixedDataTableContainer); | ||
function FixedDataTableContainer(props) { | ||
@@ -68,3 +74,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableContainer).call(this, props)); | ||
_this = _super.call(this, props); | ||
_this.update = _this.update.bind(_assertThisInitialized(_this)); | ||
@@ -108,3 +114,3 @@ _this.reduxStore = _FixedDataTableStore["default"].get(); | ||
value: function render() { | ||
var fdt = _react["default"].createElement(_FixedDataTable["default"], _extends({}, this.props, this.state, { | ||
var fdt = /*#__PURE__*/_react["default"].createElement(_FixedDataTable["default"], _extends({}, this.props, this.state, { | ||
scrollActions: this.scrollActions, | ||
@@ -116,3 +122,3 @@ columnActions: this.columnActions | ||
if (this.props.defaultScrollbars) { | ||
return _react["default"].createElement(_ScrollContainer["default"], this.props, fdt); | ||
return /*#__PURE__*/_react["default"].createElement(_ScrollContainer["default"], this.props, fdt); | ||
} | ||
@@ -119,0 +125,0 @@ |
@@ -52,3 +52,3 @@ /** | ||
var version = '1.1.1'; | ||
var version = '1.1.2'; | ||
exports.version = version; |
@@ -51,11 +51,15 @@ /** | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -75,5 +79,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(FixedDataTableRowImpl); | ||
function FixedDataTableRowImpl() { | ||
var _getPrototypeOf2; | ||
var _this; | ||
@@ -87,3 +91,3 @@ | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FixedDataTableRowImpl)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
@@ -105,4 +109,4 @@ _defineProperty(_assertThisInitialized(_this), "mouseLeaveIndex", null); | ||
if (_react["default"].isValidElement(_this.props.rowExpanded)) { | ||
rowExpanded = _react["default"].cloneElement(_this.props.rowExpanded, rowExpandedProps); | ||
if ( /*#__PURE__*/_react["default"].isValidElement(_this.props.rowExpanded)) { | ||
rowExpanded = /*#__PURE__*/_react["default"].cloneElement(_this.props.rowExpanded, rowExpandedProps); | ||
} else if (typeof _this.props.rowExpanded === 'function') { | ||
@@ -138,3 +142,3 @@ rowExpanded = _this.props.rowExpanded(rowExpandedProps); | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: className, | ||
@@ -161,3 +165,3 @@ style: style | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: className, | ||
@@ -178,3 +182,3 @@ style: style | ||
}; | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: className, | ||
@@ -287,3 +291,3 @@ style: style | ||
var fixedColumns = _react["default"].createElement(_FixedDataTableCellGroup["default"], { | ||
var fixedColumns = /*#__PURE__*/_react["default"].createElement(_FixedDataTableCellGroup["default"], { | ||
key: "fixed_cells", | ||
@@ -315,3 +319,3 @@ isScrolling: this.props.isScrolling, | ||
var fixedRightColumns = _react["default"].createElement(_FixedDataTableCellGroup["default"], { | ||
var fixedRightColumns = /*#__PURE__*/_react["default"].createElement(_FixedDataTableCellGroup["default"], { | ||
key: "fixed_right_cells", | ||
@@ -340,3 +344,3 @@ isScrolling: this.props.isScrolling, | ||
var scrollableColumns = _react["default"].createElement(_FixedDataTableCellGroup["default"], { | ||
var scrollableColumns = /*#__PURE__*/_react["default"].createElement(_FixedDataTableCellGroup["default"], { | ||
key: "scrollable_cells", | ||
@@ -386,3 +390,3 @@ isScrolling: this.props.isScrolling, | ||
}; | ||
scrollbarSpacer = _react["default"].createElement("div", { | ||
scrollbarSpacer = /*#__PURE__*/_react["default"].createElement("div", { | ||
style: spacerStyles, | ||
@@ -393,3 +397,3 @@ className: (0, _cx["default"])('public/fixedDataTable/scrollbarSpacer') | ||
return _react["default"].createElement("div", _extends({ | ||
return /*#__PURE__*/_react["default"].createElement("div", _extends({ | ||
className: (0, _joinClasses["default"])(className, this.props.className), | ||
@@ -410,5 +414,5 @@ role: 'row', | ||
style: style | ||
}), _react["default"].createElement("div", { | ||
}), /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('fixedDataTableRowLayout/body') | ||
}, fixedColumns, scrollableColumns, columnsLeftShadow, fixedRightColumns, fixedRightColumnsShadow, scrollbarSpacer), rowExpanded && _react["default"].createElement("div", { | ||
}, fixedColumns, scrollableColumns, columnsLeftShadow, fixedRightColumns, fixedRightColumnsShadow, scrollbarSpacer), rowExpanded && /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _cx["default"])('fixedDataTableRowLayout/rowExpanded'), | ||
@@ -558,2 +562,4 @@ style: rowExpandedStyle | ||
var _super2 = _createSuper(FixedDataTableRow); | ||
function FixedDataTableRow(props) { | ||
@@ -564,3 +570,3 @@ var _this2; | ||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(FixedDataTableRow).call(this, props)); | ||
_this2 = _super2.call(this, props); | ||
_this2._initialRender = true; | ||
@@ -594,6 +600,6 @@ return _this2; | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
style: style, | ||
className: (0, _cx["default"])('fixedDataTableRowLayout/rowWrapper') | ||
}, _react["default"].createElement(FixedDataTableRowImpl, rowProps)); | ||
}, /*#__PURE__*/_react["default"].createElement(FixedDataTableRowImpl, rowProps)); | ||
} | ||
@@ -600,0 +606,0 @@ }]); |
@@ -51,3 +51,3 @@ /** | ||
var eventName = 'on' + eventNameSuffix; | ||
var isSupported = eventName in document; | ||
var isSupported = (eventName in document); | ||
@@ -54,0 +54,0 @@ if (!isSupported) { |
@@ -36,11 +36,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -64,2 +68,4 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(Scrollbar); | ||
function Scrollbar(_props) | ||
@@ -72,3 +78,3 @@ /*object*/ | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(Scrollbar).call(this, _props)); | ||
_this = _super.call(this, _props); | ||
@@ -521,3 +527,3 @@ _defineProperty(_assertThisInitialized(_this), "_onRefFace", function (ref) { | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
onFocus: this._onFocus, | ||
@@ -534,3 +540,3 @@ onBlur: this._onBlur, | ||
ref: this._onRefRoot | ||
}, _react["default"].createElement("div", { | ||
}, /*#__PURE__*/_react["default"].createElement("div", { | ||
ref: this._onRefFace, | ||
@@ -537,0 +543,0 @@ className: faceClassName, |
@@ -32,11 +32,15 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -48,5 +52,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _super = _createSuper(ScrollContainer); | ||
function ScrollContainer() { | ||
var _getPrototypeOf2; | ||
var _this; | ||
@@ -60,3 +64,3 @@ | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollContainer)).call.apply(_getPrototypeOf2, [this].concat(_args))); | ||
_this = _super.call.apply(_super, [this].concat(_args)); | ||
@@ -91,3 +95,3 @@ _defineProperty(_assertThisInitialized(_this), "state", {}); | ||
value: function render() { | ||
var scrollbarY = !(0, _isEmpty["default"])(this.state) && _react["default"].createElement(_Scrollbar["default"], { | ||
var scrollbarY = !(0, _isEmpty["default"])(this.state) && /*#__PURE__*/_react["default"].createElement(_Scrollbar["default"], { | ||
size: this.state.viewportHeight, | ||
@@ -102,3 +106,3 @@ contentSize: this.state.contentHeight, | ||
var scrollbarX = !(0, _isEmpty["default"])(this.state) && _react["default"].createElement(HorizontalScrollbar, { | ||
var scrollbarX = !(0, _isEmpty["default"])(this.state) && /*#__PURE__*/_react["default"].createElement(HorizontalScrollbar, { | ||
contentSize: this.state.contentWidth, | ||
@@ -113,3 +117,3 @@ offset: this.state.scrollbarXOffsetTop, | ||
return _react["default"].cloneElement(this.props.children, { | ||
return /*#__PURE__*/_react["default"].cloneElement(this.props.children, { | ||
onScrollBarsUpdate: this._onScrollBarsUpdate, | ||
@@ -128,6 +132,8 @@ scrollbarX: scrollbarX, | ||
var _super2 = _createSuper(HorizontalScrollbar); | ||
function HorizontalScrollbar() { | ||
_classCallCheck(this, HorizontalScrollbar); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(HorizontalScrollbar).apply(this, arguments)); | ||
return _super2.apply(this, arguments); | ||
} | ||
@@ -153,8 +159,8 @@ | ||
}; | ||
return _react["default"].createElement("div", { | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
className: (0, _joinClasses["default"])((0, _cx["default"])('public/fixedDataTable/horizontalScrollbar')), | ||
style: outerContainerStyle | ||
}, _react["default"].createElement("div", { | ||
}, /*#__PURE__*/_react["default"].createElement("div", { | ||
style: innerContainerStyle | ||
}, _react["default"].createElement(_Scrollbar["default"], _extends({}, this.props, { | ||
}, /*#__PURE__*/_react["default"].createElement(_Scrollbar["default"], _extends({}, this.props, { | ||
isOpaque: true, | ||
@@ -161,0 +167,0 @@ orientation: "horizontal", |
{ | ||
"name": "fixed-data-table-2", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A React table component designed to allow presenting thousands of rows of data.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2353907
23696