diff --git a/dist/fixed-data-table-base.css b/dist/fixed-data-table-base.css index a9d7647c..2e2e0cc9 100644 --- a/dist/fixed-data-table-base.css +++ b/dist/fixed-data-table-base.css @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. diff --git a/dist/fixed-data-table-base.min.css b/dist/fixed-data-table-base.min.css index e91e59cc..370a6dcf 100644 --- a/dist/fixed-data-table-base.min.css +++ b/dist/fixed-data-table-base.min.css @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. diff --git a/dist/fixed-data-table-style.css b/dist/fixed-data-table-style.css index 1f39feda..c106aec9 100644 --- a/dist/fixed-data-table-style.css +++ b/dist/fixed-data-table-style.css @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. diff --git a/dist/fixed-data-table-style.min.css b/dist/fixed-data-table-style.min.css index b92c2f8a..cf283254 100644 --- a/dist/fixed-data-table-style.min.css +++ b/dist/fixed-data-table-style.min.css @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. diff --git a/dist/fixed-data-table.css b/dist/fixed-data-table.css index 5ad6edb3..7115ff49 100644 --- a/dist/fixed-data-table.css +++ b/dist/fixed-data-table.css @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. diff --git a/dist/fixed-data-table.js b/dist/fixed-data-table.js index 97e0ea08..d6372375 100644 --- a/dist/fixed-data-table.js +++ b/dist/fixed-data-table.js @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. @@ -18,7 +18,7 @@ exports["FixedDataTable"] = factory(require("react")); else root["FixedDataTable"] = factory(root["React"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_31__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_30__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -176,8 +176,8 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; var FixedDataTable = __webpack_require__(26); - var FixedDataTableColumn = __webpack_require__(33); - var FixedDataTableColumnGroup = __webpack_require__(32); + var FixedDataTableColumn = __webpack_require__(32); + var FixedDataTableColumnGroup = __webpack_require__(31); var FixedDataTableRoot = { Column: FixedDataTableColumn, @@ -185,7 +185,7 @@ return /******/ (function(modules) { // webpackBootstrap Table: FixedDataTable }; - FixedDataTableRoot.version = '0.4.3'; + FixedDataTableRoot.version = '0.4.4'; module.exports = FixedDataTableRoot; @@ -213,22 +213,22 @@ return /******/ (function(modules) { // webpackBootstrap var FixedDataTableHelper = __webpack_require__(27); var React = __webpack_require__(29); - var ReactComponentWithPureRenderMixin = __webpack_require__(34); - var ReactWheelHandler = __webpack_require__(35); - var Scrollbar = __webpack_require__(43); - var FixedDataTableBufferedRows = __webpack_require__(55); - var FixedDataTableColumnResizeHandle = __webpack_require__(70); - var FixedDataTableRow = __webpack_require__(60); - var FixedDataTableScrollHelper = __webpack_require__(71); - var FixedDataTableWidthHelper = __webpack_require__(73); - - var cx = __webpack_require__(49); - var debounceCore = __webpack_require__(74); - var emptyFunction = __webpack_require__(36); - var invariant = __webpack_require__(54); - var joinClasses = __webpack_require__(69); - var shallowEqual = __webpack_require__(75); - var translateDOMPositionXY = __webpack_require__(50); + var ReactComponentWithPureRenderMixin = __webpack_require__(33); + var ReactWheelHandler = __webpack_require__(34); + var Scrollbar = __webpack_require__(42); + var FixedDataTableBufferedRows = __webpack_require__(54); + var FixedDataTableColumnResizeHandle = __webpack_require__(69); + var FixedDataTableRow = __webpack_require__(59); + var FixedDataTableScrollHelper = __webpack_require__(70); + var FixedDataTableWidthHelper = __webpack_require__(72); + + var cx = __webpack_require__(48); + var debounceCore = __webpack_require__(73); + var emptyFunction = __webpack_require__(35); + var invariant = __webpack_require__(53); + var joinClasses = __webpack_require__(68); + var shallowEqual = __webpack_require__(74); + var translateDOMPositionXY = __webpack_require__(49); var PropTypes = React.PropTypes; @@ -1270,8 +1270,8 @@ return /******/ (function(modules) { // webpackBootstrap var Locale = __webpack_require__(28); var React = __webpack_require__(29); - var FixedDataTableColumnGroup = __webpack_require__(32); - var FixedDataTableColumn = __webpack_require__(33); + var FixedDataTableColumnGroup = __webpack_require__(31); + var FixedDataTableColumn = __webpack_require__(32); var DIR_SIGN = Locale.isRTL() ? -1 : +1; // A cell up to 5px outside of the visible area will still be considered visible @@ -1408,23 +1408,22 @@ return /******/ (function(modules) { // webpackBootstrap var React; // Check for Atom! - if (typeof window === 'undefined' && typeof global === 'object' && global.atom) { + if (typeof global === 'object' && global.atom) { React = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"react-for-atom\""); e.code = 'MODULE_NOT_FOUND'; throw e; }())); } else { - React = __webpack_require__(31); + React = __webpack_require__(30); } module.exports = React; /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 30 */, -/* 31 */ +/* 30 */ /***/ function(module, exports) { - module.exports = __WEBPACK_EXTERNAL_MODULE_31__; + module.exports = __WEBPACK_EXTERNAL_MODULE_30__; /***/ }, -/* 32 */ +/* 31 */ /***/ function(module, exports, __webpack_require__) { /** @@ -1510,7 +1509,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableColumnGroup; /***/ }, -/* 33 */ +/* 32 */ /***/ function(module, exports, __webpack_require__) { /** @@ -1704,7 +1703,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableColumn; /***/ }, -/* 34 */ +/* 33 */ /***/ function(module, exports) { /** @@ -1780,7 +1779,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = ReactComponentWithPureRenderMixin; /***/ }, -/* 35 */ +/* 34 */ /***/ function(module, exports, __webpack_require__) { /** @@ -1804,9 +1803,9 @@ return /******/ (function(modules) { // webpackBootstrap function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - var emptyFunction = __webpack_require__(36); - var normalizeWheel = __webpack_require__(37); - var requestAnimationFramePolyfill = __webpack_require__(41); + var emptyFunction = __webpack_require__(35); + var normalizeWheel = __webpack_require__(36); + var requestAnimationFramePolyfill = __webpack_require__(40); var ReactWheelHandler = (function () { /** @@ -1890,7 +1889,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = ReactWheelHandler; /***/ }, -/* 36 */ +/* 35 */ /***/ function(module, exports) { /** @@ -1933,7 +1932,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = emptyFunction; /***/ }, -/* 37 */ +/* 36 */ /***/ function(module, exports, __webpack_require__) { /** @@ -1950,9 +1949,9 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var UserAgent_DEPRECATED = __webpack_require__(38); + var UserAgent_DEPRECATED = __webpack_require__(37); - var isEventSupported = __webpack_require__(39); + var isEventSupported = __webpack_require__(38); // Reasonable defaults var PIXEL_STEP = 10; @@ -2134,7 +2133,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = normalizeWheel; /***/ }, -/* 38 */ +/* 37 */ /***/ function(module, exports) { /** @@ -2417,7 +2416,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = UserAgent_DEPRECATED; /***/ }, -/* 39 */ +/* 38 */ /***/ function(module, exports, __webpack_require__) { /** @@ -2433,7 +2432,7 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var ExecutionEnvironment = __webpack_require__(40); + var ExecutionEnvironment = __webpack_require__(39); var useHasFeature; if (ExecutionEnvironment.canUseDOM) { @@ -2482,7 +2481,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isEventSupported; /***/ }, -/* 40 */ +/* 39 */ /***/ function(module, exports) { /** @@ -2525,7 +2524,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = ExecutionEnvironment; /***/ }, -/* 41 */ +/* 40 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -2541,8 +2540,8 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var emptyFunction = __webpack_require__(36); - var nativeRequestAnimationFrame = __webpack_require__(42); + var emptyFunction = __webpack_require__(35); + var nativeRequestAnimationFrame = __webpack_require__(41); var lastTime = 0; @@ -2566,7 +2565,7 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 42 */ +/* 41 */ /***/ function(module, exports) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -2588,7 +2587,7 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 43 */ +/* 42 */ /***/ function(module, exports, __webpack_require__) { /** @@ -2605,16 +2604,16 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var DOMMouseMoveTracker = __webpack_require__(44); - var Keys = __webpack_require__(47); + var DOMMouseMoveTracker = __webpack_require__(43); + var Keys = __webpack_require__(46); var React = __webpack_require__(29); - var ReactComponentWithPureRenderMixin = __webpack_require__(34); - var ReactWheelHandler = __webpack_require__(35); + var ReactComponentWithPureRenderMixin = __webpack_require__(33); + var ReactWheelHandler = __webpack_require__(34); - var cssVar = __webpack_require__(48); - var cx = __webpack_require__(49); - var emptyFunction = __webpack_require__(36); - var translateDOMPositionXY = __webpack_require__(50); + var cssVar = __webpack_require__(47); + var cx = __webpack_require__(48); + var emptyFunction = __webpack_require__(35); + var translateDOMPositionXY = __webpack_require__(49); var PropTypes = React.PropTypes; @@ -3039,7 +3038,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = Scrollbar; /***/ }, -/* 44 */ +/* 43 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3067,10 +3066,10 @@ return /******/ (function(modules) { // webpackBootstrap function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - var EventListener = __webpack_require__(45); + var EventListener = __webpack_require__(44); - var cancelAnimationFramePolyfill = __webpack_require__(46); - var requestAnimationFramePolyfill = __webpack_require__(41); + var cancelAnimationFramePolyfill = __webpack_require__(45); + var requestAnimationFramePolyfill = __webpack_require__(40); var DOMMouseMoveTracker = (function () { /** @@ -3203,7 +3202,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = DOMMouseMoveTracker; /***/ }, -/* 45 */ +/* 44 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3220,7 +3219,7 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var emptyFunction = __webpack_require__(36); + var emptyFunction = __webpack_require__(35); /** * Upstream version of event listener. Does not take into account specific @@ -3285,7 +3284,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = EventListener; /***/ }, -/* 46 */ +/* 45 */ /***/ function(module, exports) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -3311,7 +3310,7 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 47 */ +/* 46 */ /***/ function(module, exports) { /** @@ -3353,7 +3352,7 @@ return /******/ (function(modules) { // webpackBootstrap }; /***/ }, -/* 48 */ +/* 47 */ /***/ function(module, exports) { /** @@ -3398,7 +3397,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = cssVar; /***/ }, -/* 49 */ +/* 48 */ /***/ function(module, exports) { /** @@ -3457,7 +3456,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = cx; /***/ }, -/* 50 */ +/* 49 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -3474,9 +3473,9 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var BrowserSupportCore = __webpack_require__(51); + var BrowserSupportCore = __webpack_require__(50); - var getVendorPrefixedName = __webpack_require__(52); + var getVendorPrefixedName = __webpack_require__(51); var TRANSFORM = getVendorPrefixedName('transform'); var BACKFACE_VISIBILITY = getVendorPrefixedName('backfaceVisibility'); @@ -3511,7 +3510,7 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 51 */ +/* 50 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3527,7 +3526,7 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var getVendorPrefixedName = __webpack_require__(52); + var getVendorPrefixedName = __webpack_require__(51); var BrowserSupportCore = { /** @@ -3562,7 +3561,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = BrowserSupportCore; /***/ }, -/* 52 */ +/* 51 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3579,10 +3578,10 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var ExecutionEnvironment = __webpack_require__(40); + var ExecutionEnvironment = __webpack_require__(39); - var camelize = __webpack_require__(53); - var invariant = __webpack_require__(54); + var camelize = __webpack_require__(52); + var invariant = __webpack_require__(53); var memoized = {}; var prefixes = ['Webkit', 'ms', 'Moz', 'O']; @@ -3619,7 +3618,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = getVendorPrefixedName; /***/ }, -/* 53 */ +/* 52 */ /***/ function(module, exports) { /** @@ -3656,7 +3655,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = camelize; /***/ }, -/* 54 */ +/* 53 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3710,7 +3709,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = invariant; /***/ }, -/* 55 */ +/* 54 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3728,13 +3727,13 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; var React = __webpack_require__(29); - var FixedDataTableRowBuffer = __webpack_require__(56); - var FixedDataTableRow = __webpack_require__(60); + var FixedDataTableRowBuffer = __webpack_require__(55); + var FixedDataTableRow = __webpack_require__(59); - var cx = __webpack_require__(49); - var emptyFunction = __webpack_require__(36); - var joinClasses = __webpack_require__(69); - var translateDOMPositionXY = __webpack_require__(50); + var cx = __webpack_require__(48); + var emptyFunction = __webpack_require__(35); + var joinClasses = __webpack_require__(68); + var translateDOMPositionXY = __webpack_require__(49); var PropTypes = React.PropTypes; @@ -3871,7 +3870,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableBufferedRows; /***/ }, -/* 56 */ +/* 55 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3892,10 +3891,10 @@ return /******/ (function(modules) { // webpackBootstrap function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - var IntegerBufferSet = __webpack_require__(57); + var IntegerBufferSet = __webpack_require__(56); - var clamp = __webpack_require__(59); - var invariant = __webpack_require__(54); + var clamp = __webpack_require__(58); + var invariant = __webpack_require__(53); var MIN_BUFFER_ROWS = 3; var MAX_BUFFER_ROWS = 6; @@ -3999,7 +3998,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableRowBuffer; /***/ }, -/* 57 */ +/* 56 */ /***/ function(module, exports, __webpack_require__) { /** @@ -4020,9 +4019,9 @@ return /******/ (function(modules) { // webpackBootstrap function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - var Heap = __webpack_require__(58); + var Heap = __webpack_require__(57); - var invariant = __webpack_require__(54); + var invariant = __webpack_require__(53); // Data structure that allows to store values and assign positions to them // in a way to minimize changing positions of stored values when new ones are @@ -4184,7 +4183,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = IntegerBufferSet; /***/ }, -/* 58 */ +/* 57 */ /***/ function(module, exports) { /** @@ -4368,7 +4367,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = Heap; /***/ }, -/* 59 */ +/* 58 */ /***/ function(module, exports) { /** @@ -4404,7 +4403,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = clamp; /***/ }, -/* 60 */ +/* 59 */ /***/ function(module, exports, __webpack_require__) { /** @@ -4424,12 +4423,12 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var React = __webpack_require__(29); - var ReactComponentWithPureRenderMixin = __webpack_require__(34); - var FixedDataTableCellGroup = __webpack_require__(61); + var ReactComponentWithPureRenderMixin = __webpack_require__(33); + var FixedDataTableCellGroup = __webpack_require__(60); - var cx = __webpack_require__(49); - var joinClasses = __webpack_require__(69); - var translateDOMPositionXY = __webpack_require__(50); + var cx = __webpack_require__(48); + var joinClasses = __webpack_require__(68); + var translateDOMPositionXY = __webpack_require__(49); var PropTypes = React.PropTypes; @@ -4671,7 +4670,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableRow; /***/ }, -/* 61 */ +/* 60 */ /***/ function(module, exports, __webpack_require__) { /** @@ -4693,14 +4692,14 @@ return /******/ (function(modules) { // webpackBootstrap function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var FixedDataTableHelper = __webpack_require__(27); - var ImmutableObject = __webpack_require__(62); + var ImmutableObject = __webpack_require__(61); var React = __webpack_require__(29); - var ReactComponentWithPureRenderMixin = __webpack_require__(34); - var FixedDataTableCell = __webpack_require__(68); + var ReactComponentWithPureRenderMixin = __webpack_require__(33); + var FixedDataTableCell = __webpack_require__(67); - var cx = __webpack_require__(49); + var cx = __webpack_require__(48); var renderToString = FixedDataTableHelper.renderToString; - var translateDOMPositionXY = __webpack_require__(50); + var translateDOMPositionXY = __webpack_require__(49); var PropTypes = React.PropTypes; @@ -4906,7 +4905,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableCellGroup; /***/ }, -/* 62 */ +/* 61 */ /***/ function(module, exports, __webpack_require__) { /** @@ -4931,11 +4930,11 @@ return /******/ (function(modules) { // webpackBootstrap function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - var ImmutableValue = __webpack_require__(63); + var ImmutableValue = __webpack_require__(62); - var invariant = __webpack_require__(54); - var keyOf = __webpack_require__(65); - var mergeHelpers = __webpack_require__(66); + var invariant = __webpack_require__(53); + var keyOf = __webpack_require__(64); + var mergeHelpers = __webpack_require__(65); var checkMergeObjectArgs = mergeHelpers.checkMergeObjectArgs; var isTerminal = mergeHelpers.isTerminal; @@ -5112,7 +5111,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = ImmutableObject; /***/ }, -/* 63 */ +/* 62 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5137,9 +5136,9 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var invariant = __webpack_require__(54); - var isNode = __webpack_require__(64); - var keyOf = __webpack_require__(65); + var invariant = __webpack_require__(53); + var isNode = __webpack_require__(63); + var keyOf = __webpack_require__(64); var SECRET_KEY = keyOf({ _DONT_EVER_TYPE_THIS_SECRET_KEY: null }); @@ -5259,7 +5258,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = ImmutableValue; /***/ }, -/* 64 */ +/* 63 */ /***/ function(module, exports) { /** @@ -5287,7 +5286,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isNode; /***/ }, -/* 65 */ +/* 64 */ /***/ function(module, exports) { /** @@ -5327,7 +5326,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = keyOf; /***/ }, -/* 66 */ +/* 65 */ /***/ function(module, exports, __webpack_require__) { /** @@ -5345,8 +5344,8 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var invariant = __webpack_require__(54); - var keyMirror = __webpack_require__(67); + var invariant = __webpack_require__(53); + var keyMirror = __webpack_require__(66); /** * Maximum number of levels to traverse. Will catch circular structures. @@ -5451,7 +5450,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = mergeHelpers; /***/ }, -/* 67 */ +/* 66 */ /***/ function(module, exports, __webpack_require__) { /** @@ -5468,7 +5467,7 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var invariant = __webpack_require__(54); + var invariant = __webpack_require__(53); /** * Constructs an enumeration with keys equal to their value. @@ -5504,7 +5503,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = keyMirror; /***/ }, -/* 68 */ +/* 67 */ /***/ function(module, exports, __webpack_require__) { /** @@ -5522,11 +5521,11 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; var FixedDataTableHelper = __webpack_require__(27); - var ImmutableObject = __webpack_require__(62); + var ImmutableObject = __webpack_require__(61); var React = __webpack_require__(29); - var ReactComponentWithPureRenderMixin = __webpack_require__(34); - var cx = __webpack_require__(49); - var joinClasses = __webpack_require__(69); + var ReactComponentWithPureRenderMixin = __webpack_require__(33); + var cx = __webpack_require__(48); + var joinClasses = __webpack_require__(68); var DIR_SIGN = FixedDataTableHelper.DIR_SIGN; @@ -5707,7 +5706,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableCell; /***/ }, -/* 69 */ +/* 68 */ /***/ function(module, exports) { /** @@ -5751,7 +5750,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = joinClasses; /***/ }, -/* 70 */ +/* 69 */ /***/ function(module, exports, __webpack_require__) { /** @@ -5772,13 +5771,13 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var DOMMouseMoveTracker = __webpack_require__(44); + var DOMMouseMoveTracker = __webpack_require__(43); var Locale = __webpack_require__(28); var React = __webpack_require__(29); - var ReactComponentWithPureRenderMixin = __webpack_require__(34); + var ReactComponentWithPureRenderMixin = __webpack_require__(33); - var clamp = __webpack_require__(59); - var cx = __webpack_require__(49); + var clamp = __webpack_require__(58); + var cx = __webpack_require__(48); var PropTypes = React.PropTypes; @@ -5916,7 +5915,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableColumnResizeHandle; /***/ }, -/* 71 */ +/* 70 */ /***/ function(module, exports, __webpack_require__) { /** @@ -5937,8 +5936,8 @@ return /******/ (function(modules) { // webpackBootstrap function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - var PrefixIntervalTree = __webpack_require__(72); - var clamp = __webpack_require__(59); + var PrefixIntervalTree = __webpack_require__(71); + var clamp = __webpack_require__(58); var BUFFER_ROWS = 5; var NO_ROWS_SCROLL_RESULT = { @@ -6221,7 +6220,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableScrollHelper; /***/ }, -/* 72 */ +/* 71 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -6243,7 +6242,7 @@ return /******/ (function(modules) { // webpackBootstrap function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - var invariant = __webpack_require__(54); + var invariant = __webpack_require__(53); var parent = function parent(node) { return Math.floor(node / 2); @@ -6485,7 +6484,7 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 73 */ +/* 72 */ /***/ function(module, exports, __webpack_require__) { /** @@ -6623,7 +6622,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = FixedDataTableWidthHelper; /***/ }, -/* 74 */ +/* 73 */ /***/ function(module, exports) { /** @@ -6695,7 +6694,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = debounce; /***/ }, -/* 75 */ +/* 74 */ /***/ function(module, exports) { /** diff --git a/dist/fixed-data-table.min.css b/dist/fixed-data-table.min.css index 3ddbb6d8..e2b43ce0 100644 --- a/dist/fixed-data-table.min.css +++ b/dist/fixed-data-table.min.css @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. diff --git a/dist/fixed-data-table.min.js b/dist/fixed-data-table.min.js index 8499e98b..dddad489 100644 --- a/dist/fixed-data-table.min.js +++ b/dist/fixed-data-table.min.js @@ -1,5 +1,5 @@ /** - * FixedDataTable v0.4.3 + * FixedDataTable v0.4.4 * * Copyright (c) 2015, Facebook, Inc. * All rights reserved. @@ -9,6 +9,6 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.FixedDataTable=t(require("react")):e.FixedDataTable=t(e.React)}(this,function(e){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){o(1),o(5),o(7),o(9),o(11),o(13),o(15),o(17),o(19),o(21),o(23),e.exports=o(25)},function(e,t){},,,,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t){},,function(e,t,o){"use strict";var i=o(26),n=o(33),r=o(32),s={Column:n,ColumnGroup:r,Table:i};s.version="0.4.3",e.exports=s},function(e,t,o){"use strict";var i=Object.assign||function(e){for(var t=1;te&&this.state.scrollX>0||e>=0&&this.state.scrollXe&&this.state.scrollY>0||e>=0&&this.state.scrollYi?i:this.state.height>i&&this.props.ownerHeight?Math.max(i,this.props.ownerHeight):this.state.height+this.state.maxScrollY,e!==this._contentHeight&&this.props.onContentHeightChange&&this.props.onContentHeightChange(e),this._contentHeight=e},componentDidMount:function(){this._reportContentHeight()},componentWillReceiveProps:function(e){var t=e.scrollToRow;void 0!==t&&null!==t&&(this._rowToScrollTo=t);var o=e.scrollToColumn;void 0!==o&&null!==o&&(this._columnToScrollTo=o);var i=e.overflowX,n=e.overflowY;(i!==this.props.overflowX||n!==this.props.overflowY)&&(this._wheelHandler=new a(this._onWheel,"hidden"!==i,"hidden"!==n)),this.setState(this._calculateState(e,this.state))},componentDidUpdate:function(){this._reportContentHeight()},render:function(){var e,t=this.state,o=this.props;t.useGroupHeader&&(e=r.createElement(c,{key:"group_header",className:g(d("fixedDataTableLayout/header"),d("public/fixedDataTable/header")),data:t.groupHeaderData,width:t.width,height:t.groupHeaderHeight,index:0,zIndex:1,offsetTop:0,scrollLeft:t.scrollX,fixedColumns:t.groupHeaderFixedColumns,scrollableColumns:t.groupHeaderScrollableColumns}));var i=this.state.maxScrollY,n=t.maxScrollX>0&&"hidden"!==t.overflowX,s=i>0&&"hidden"!==t.overflowY,a=n?l.SIZE:0,u=t.height-a-2*T-t.footerHeight,f=t.useGroupHeader?t.groupHeaderHeight:0,p=f+t.headerHeight;u-=p;var m=0,v=null!=o.maxHeight?p+t.bodyHeight:p+u,_=v+t.footerHeight;void 0!==o.ownerHeight&&o.ownerHeightt.ownerHeight||t.scrollY or "),o.push(e))});var n=!1;o.length&&o[0].type.__TableColumnGroup__&&(n=!0);var r,s,a=t&&t.firstRowIndex||0,u=t&&t.firstRowOffset||0;r=t&&"hidden"!==e.overflowX?t.scrollX:e.scrollLeft,t&&"hidden"!==e.overflowY?s=t.scrollY:(d=this._scrollHelper.scrollTo(e.scrollTop),a=d.index,u=d.offset,s=d.position),void 0!==this._rowToScrollTo&&(d=this._scrollHelper.scrollRowIntoView(this._rowToScrollTo),a=d.index,u=d.offset,s=d.position,delete this._rowToScrollTo);var h=n?e.groupHeaderHeight:0;if(t&&e.rowsCount!==t.rowsCount){var c=(void 0===e.height?e.maxHeight:e.height)-(e.headerHeight||0)-(e.footerHeight||0)-(e.groupHeaderHeight||0);this._scrollHelper=new f(e.rowsCount,e.rowHeight,c,e.rowHeightGetter);var d=this._scrollHelper.scrollToRow(a,u);a=d.index,u=d.offset,s=d.position}else t&&e.rowHeightGetter!==t.rowHeightGetter&&this._scrollHelper.setRowHeightGetter(e.rowHeightGetter);var m;m=e.isColumnResizing?t&&t.columnResizingData:R;var v,g;if(n){var b=p.adjustColumnGroupWidths(o,e.width);v=b.columns,g=b.columnGroups}else v=p.adjustColumnWidths(o,e.width);var y=this._populateColumnsAndColumnData(v,g,t);if(void 0!==this._columnToScrollTo){var C=y.bodyFixedColumns.length;if(this._columnToScrollTo>=C){var H,D,S=0;for(H=0;HH;++H)D=y.bodyScrollableColumns[H],E+=D.props.width;var k=e.width-S,z=y.bodyScrollableColumns[M].props.width,O=E+z-k;O>r&&(r=O),r>E&&(r=E)}delete this._columnToScrollTo}var N=void 0===e.height,P=Math.round(N?e.maxHeight:e.height),I=e.footerHeight+e.headerHeight+h+2*T,F=P-I,L=this._scrollHelper.getContentHeight(),A=L+I,W=p.getTotalWidth(v),G=W>e.width&&"hidden"!==e.overflowX;G&&(F-=l.SIZE,A+=l.SIZE,I+=l.SIZE);var j=Math.max(0,W-e.width),V=Math.max(0,L-F);r=Math.min(r,j),s=Math.min(s,V),V||(N&&(P=A),F=A-I),this._scrollHelper.setViewportHeight(F);var Y=i({isColumnResizing:t&&t.isColumnResizing},y,e,{columns:v,columnGroups:g,columnResizingData:m,firstRowIndex:a,firstRowOffset:u,horizontalScrollbarVisible:G,maxScrollX:j,maxScrollY:V,reservedHeight:I,scrollContentHeight:L,scrollX:r,scrollY:s,bodyHeight:F,height:P,groupHeaderHeight:h,useGroupHeader:n});return t&&(t.headData&&Y.headData&&w(t.headData,Y.headData)&&(Y.headData=t.headData),t.groupHeaderData&&Y.groupHeaderData&&w(t.groupHeaderData,Y.groupHeaderData)&&(Y.groupHeaderData=t.groupHeaderData)),Y},_createGroupHeaderColumns:function(e){for(var t=[],o=0;oMath.abs(e)&&"hidden"!==this.props.overflowY){var i=this._scrollHelper.scrollBy(Math.round(t)),n=Math.max(0,i.contentHeight-this.state.bodyHeight);this.setState({firstRowIndex:i.index,firstRowOffset:i.offset,scrollY:i.position,scrollContentHeight:i.contentHeight,maxScrollY:n})}else e&&"hidden"!==this.props.overflowX&&(o+=e,o=0>o?0:o,o=o>this.state.maxScrollX?this.state.maxScrollX:o,this.setState({scrollX:o}));this._didScrollStop()}},_onHorizontalScroll:function(e){this.isMounted()&&e!==this.state.scrollX&&(this._isScrolling||this._didScrollStart(),this.setState({scrollX:e}),this._didScrollStop())},_onVerticalScroll:function(e){if(this.isMounted()&&e!==this.state.scrollY){this._isScrolling||this._didScrollStart();var t=this._scrollHelper.scrollTo(Math.round(e));this.setState({firstRowIndex:t.index,firstRowOffset:t.offset,scrollY:t.position,scrollContentHeight:t.contentHeight}),this._didScrollStop()}},_didScrollStart:function(){this.isMounted()&&!this._isScrolling&&(this._isScrolling=!0,this.props.onScrollStart&&this.props.onScrollStart(this.state.scrollX,this.state.scrollY))},_didScrollStop:function(){this.isMounted()&&this._isScrolling&&(this._isScrolling=!1,this.props.onScrollEnd&&this.props.onScrollEnd(this.state.scrollX,this.state.scrollY))}}),D=r.createClass({displayName:"HorizontalScrollbar",mixins:[s],propTypes:{contentSize:y.number.isRequired,offset:y.number.isRequired,onScroll:y.func.isRequired,position:y.number.isRequired,size:y.number.isRequired},render:function(){var e={height:l.SIZE,width:this.props.size},t={height:l.SIZE,position:"absolute",overflow:"hidden",width:this.props.size};return b(t,0,this.props.offset),r.createElement("div",{className:g(d("fixedDataTableLayout/horizontalScrollbar"),d("public/fixedDataTable/horizontalScrollbar")),style:e},r.createElement("div",{style:t},r.createElement(l,i({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}});e.exports=H},function(e,t,o){"use strict";function i(e){return null===e||void 0===e?"":String(e)}function n(e,t){a.Children.forEach(e,function(e){e.type===l?n(e.props.children,t):e.type===u&&t(e)})}function r(e,t){var o=[];return a.Children.forEach(e,function(e){var i=e;if(e.type===l){var r=!1,s=[];n(e.props.children,function(e){var o=t(e);o!==e&&(r=!0),s.push(o)}),r&&(i=a.cloneElement(e,{children:s}))}else e.type===u&&(i=t(e));o.push(i)}),o}var s=o(28),a=o(29),l=o(32),u=o(33),h=s.isRTL()?-1:1,c=5,f={DIR_SIGN:h,CELL_VISIBILITY_TOLERANCE:c,renderToString:i,forEachColumn:n,mapColumns:r};e.exports=f},function(e,t){"use strict";var o={isRTL:function(){return!1},getDirection:function(){return"LTR"}};e.exports=o},function(e,t,o){(function(t){"use strict";var i;i=o("undefined"==typeof window&&"object"==typeof t&&t.atom?!function(){var e=new Error('Cannot find module "react-for-atom"');throw e.code="MODULE_NOT_FOUND",e}():31),e.exports=i}).call(t,function(){return this}())},,function(t,o){t.exports=e},function(e,t,o){"use strict";var i=o(29),n=i.PropTypes,r=i.createClass({displayName:"FixedDataTableColumnGroup",statics:{__TableColumnGroup__:!0},propTypes:{align:n.oneOf(["left","center","right"]),fixed:n.bool,columnGroupData:n.object,label:n.string,groupHeaderRenderer:n.func},getDefaultProps:function(){return{fixed:!1}},render:function(){throw new Error("Component should never render")}});e.exports=r},function(e,t,o){"use strict";var i=o(29),n=i.PropTypes,r=i.createClass({displayName:"FixedDataTableColumn",statics:{__TableColumn__:!0},propTypes:{align:n.oneOf(["left","center","right"]),headerClassName:n.string,footerClassName:n.string,cellClassName:n.string,cellRenderer:n.func,cellDataGetter:n.func,dataKey:n.oneOfType([n.string,n.number]).isRequired,fixed:n.bool,headerRenderer:n.func,footerRenderer:n.func,columnData:n.object,label:n.string,width:n.number.isRequired,minWidth:n.number,maxWidth:n.number,flexGrow:n.number,isResizable:n.bool,allowCellsRecycling:n.bool},getDefaultProps:function(){return{allowCellsRecycling:!1,fixed:!1}},render:function(){throw new Error("Component should never render")}});e.exports=r},function(e,t){"use strict";function o(e,t){if(e===t)return!0;var o;for(o in e)if(e.hasOwnProperty(o)&&(!t.hasOwnProperty(o)||e[o]!==t[o]))return!1;for(o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}var i={shouldComponentUpdate:function(e,t){return!o(this.props,e)||!o(this.state,t)}};e.exports=i},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;oi?-1:1),n&&!o&&(o=1>n?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:n}}var n=o(38),r=o(39),s=10,a=40,l=800;i.getEventType=function(){return n.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=i},function(e,t){"use strict";function o(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){i=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,i&&document&&document.documentMode&&(i=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);l=w?parseFloat(w[1])+4:i,n=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,s=t[4]?parseFloat(t[4]):NaN,s?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else i=n=r=a=s=NaN;if(o){if(o[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=b?parseFloat(b[1].replace("_",".")):!0}else u=!1;h=!!o[2],c=!!o[3]}else u=h=c=!1}}var i,n,r,s,a,l,u,h,c,f,p,d,m,v,_,g=!1,w={ie:function(){return o()||i},ieCompatibilityMode:function(){return o()||l>i},ie64:function(){return w.ie()&&p},firefox:function(){return o()||n},opera:function(){return o()||r},webkit:function(){return o()||s},safari:function(){return w.webkit()},chrome:function(){return o()||a},windows:function(){return o()||h},osx:function(){return o()||u},linux:function(){return o()||c},iphone:function(){return o()||d},mobile:function(){return o()||d||m||f||_},nativeApp:function(){return o()||v},android:function(){return o()||f},ipad:function(){return o()||m}};e.exports=w},function(e,t,o){"use strict";function i(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,i=o in document;if(!i){var s=document.createElement("div");s.setAttribute(o,"return;"),i="function"==typeof s[o]}return!i&&n&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var n,r=o(40);r.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=i},function(e,t){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=i},function(e,t,o){(function(t){"use strict";var i=o(36),n=o(42),r=0,s=n||function(e){var o=Date.now(),i=Math.max(0,16-(o-r));return r=o+i,t.setTimeout(function(){e(Date.now())},i)};s(i),e.exports=s}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";var o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame;e.exports=o}).call(t,function(){return this}())},function(e,t,o){"use strict";var i=o(44),n=o(47),r=o(29),s=o(34),a=o(35),l=o(48),u=o(49),h=o(36),c=o(50),f=r.PropTypes,p={position:0,scrollable:!1},d=parseInt(l("scrollbar-face-margin"),10),m=2*d,v=30,_=40,g=null,w=r.createClass({displayName:"Scrollbar",mixins:[s],propTypes:{contentSize:f.number.isRequired,defaultPosition:f.number,isOpaque:f.bool,orientation:f.oneOf(["vertical","horizontal"]),onScroll:f.func,position:f.number,size:f.number.isRequired,trackColor:f.oneOf(["gray"]),zIndex:f.number,verticalTop:f.number},getInitialState:function(){var e=this.props;return this._calculateState(e.position||e.defaultPosition||0,e.size,e.contentSize,e.orientation)},componentWillReceiveProps:function(e){var t=e.position;void 0===t?this._setNextState(this._calculateState(this.state.position,e.size,e.contentSize,e.orientation)):this._setNextState(this._calculateState(t,e.size,e.contentSize,e.orientation),e)},getDefaultProps:function(){return{defaultPosition:0,isOpaque:!1,onScroll:h,orientation:"vertical",zIndex:99}},render:function(){if(!this.state.scrollable)return null;var e,t,o=this.props.size,i=this.state.isHorizontal,n=!i,s=this.state.focused||this.state.isDragging,a=this.state.faceSize,h=this.props.isOpaque,f=this.props.verticalTop||0,p=u({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":n,"ScrollbarLayout/mainHorizontal":i,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":h,"public/Scrollbar/mainActive":s}),v=u({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":i,"ScrollbarLayout/faceVertical":n,"public/Scrollbar/faceActive":s,"public/Scrollbar/face":!0}),_=this.state.position*this.state.scale+d;return i?(e={width:o},t={width:a-m},c(t,_,0)):(e={top:f,height:o},t={height:a-m},c(t,0,_)),e.zIndex=this.props.zIndex,"gray"===this.props.trackColor&&(e.backgroundColor=l("fbui-desktop-background-light")),r.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onWheel:this._wheelHandler.onWheel,className:p,style:e,tabIndex:0},r.createElement("div",{ref:"face",className:v,style:t}))},componentWillMount:function(){var e="horizontal"===this.props.orientation,t=e?this._onWheelX:this._onWheelY;this._wheelHandler=new a(t,this._shouldHandleX,this._shouldHandleY)},componentDidMount:function(){this._mouseMoveTracker=new i(this._onMouseMove,this._onMouseMoveEnd,document.documentElement),void 0!==this.props.position&&this.state.position!==this.props.position&&this._didScroll()},componentWillUnmount:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),g===this&&(g=null),delete this._mouseMoveTracker},scrollBy:function(e){this._onWheel(e)},_shouldHandleX:function(e){return"horizontal"===this.props.orientation?this._shouldHandleChange(e):!1},_shouldHandleY:function(e){return"horizontal"!==this.props.orientation?this._shouldHandleChange(e):!1},_shouldHandleChange:function(e){var t=this._calculateState(this.state.position+e,this.props.size,this.props.contentSize,this.props.orientation);return t.position!==this.state.position},_calculateState:function(e,t,o,i){if(1>t||t>=o)return p;var n=e+"_"+t+"_"+o+"_"+i;if(this._stateKey===n)return this._stateForKey;var r="horizontal"===i,s=t/o,a=t*s;v>a&&(s=(t-v)/(o-t),a=v);var l=!0,u=o-t;0>e?e=0:e>u&&(e=u);var h=this._mouseMoveTracker?this._mouseMoveTracker.isDragging():!1,c={faceSize:a,isDragging:h,isHorizontal:r,position:e,scale:s,scrollable:l};return this._stateKey=n,this._stateForKey=c,c},_onWheelY:function(e,t){this._onWheel(t)},_onWheelX:function(e,t){this._onWheel(e)},_onWheel:function(e){var t=this.props;this._setNextState(this._calculateState(this.state.position+e,t.size,t.contentSize,t.orientation))},_onMouseDown:function(e){var t;if(e.target!==r.findDOMNode(this.refs.face)){var o=e.nativeEvent,i=this.state.isHorizontal?o.offsetX||o.layerX:o.offsetY||o.layerY,n=this.props;i/=this.state.scale,t=this._calculateState(i-.5*this.state.faceSize/this.state.scale,n.size,n.contentSize,n.orientation)}else t={};t.focused=!0,this._setNextState(t),this._mouseMoveTracker.captureMouseMoves(e),r.findDOMNode(this).focus()},_onMouseMove:function(e,t){var o=this.props,i=this.state.isHorizontal?e:t;i/=this.state.scale,this._setNextState(this._calculateState(this.state.position+i,o.size,o.contentSize,o.orientation))},_onMouseMoveEnd:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),this.setState({isDragging:!1})},_onKeyDown:function(e){var t=e.keyCode;if(t!==n.TAB){var o=_,i=0;if(this.state.isHorizontal)switch(t){case n.HOME:i=-1,o=this.props.contentSize;break;case n.LEFT:i=-1;break;case n.RIGHT:i=1;break;default:return}if(!this.state.isHorizontal)switch(t){case n.SPACE:i=e.shiftKey?-1:1;break;case n.HOME:i=-1,o=this.props.contentSize;break;case n.UP:i=-1;break;case n.DOWN:i=1;break;case n.PAGE_UP:i=-1,o=this.props.size;break;case n.PAGE_DOWN:i=1,o=this.props.size;break;default:return}e.preventDefault();var r=this.props;this._setNextState(this._calculateState(this.state.position+o*i,r.size,r.contentSize,r.orientation))}},_onFocus:function(){this.setState({focused:!0})},_onBlur:function(){this.setState({focused:!1})},_blur:function(){if(this.isMounted())try{this._onBlur(),r.findDOMNode(this).blur()}catch(e){}},_setNextState:function(e,t){t=t||this.props;var o=t.position,i=this.state.position!==e.position;if(void 0===o){var n=i?this._didScroll:void 0;this.setState(e,n)}else{if(o!==e.position)return void(void 0!==e.position&&e.position!==this.state.position&&this.props.onScroll(e.position));this.setState(e)}i&&g!==this&&(g&&g._blur(),g=this)},_didScroll:function(){this.props.onScroll(this.state.position)}});w.KEYBOARD_SCROLL_AMOUNT=_,w.SIZE=parseInt(l("scrollbar-size"),10),e.exports=w},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;o0;)this._addRowToBuffer(t,this._viewportRowsBegin,this._viewportRowsEnd-1),t++,e--;return this._rows}},{key:"getRows",value:function(e,t){var o=t,i=o,n=e,r=Math.min(e+this._maxVisibleRowCount,this._rowsCount);for(this._viewportRowsBegin=e;r>n||i=r&&(i=this._bufferSet.replaceFurthestValuePosition(t,o,e)),null===i?(i=this._bufferSet.getNewPositionForValue(e),this._rows[i]=e):this._rows[i]=e}}]),e}();e.exports=h},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;o=e&&t>=n)return null;var r;e-i>n-t?(r=i,this._smallValues.pop()):(r=n,this._largeValues.pop());var a=this._valueToPositionMap[r];return delete this._valueToPositionMap[r],this._valueToPositionMap[o]=a,this._pushToHeaps(a,o),a}},{key:"_pushToHeaps",value:function(e,t){var o={position:e,value:t};this._smallValues.push(o),this._largeValues.push(o)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var e=Math.min(this._smallValues.size(),this._largeValues.size()),t=Math.max(this._smallValues.size(),this._largeValues.size());t>10*e&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var e=this._smallValues.size()t.value}}]),e}();e.exports=a},function(e,t){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return t>e}var n=function(){function e(e,t){for(var o=0;o0&&(this._items[0]=t,this._sinkDown(0)),e}}},{key:"push",value:function(e){this._items[this._size++]=e,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){return 0!==this._size?this._items[0]:void 0}},{key:"_heapify",value:function(){for(var e=Math.floor((this._size+1)/2);e>=0;e--)this._sinkDown(e)}},{key:"_bubbleUp",value:function(e){for(var t=this._items[e];e>0;){var o=Math.floor((e+1)/2)-1,i=this._items[o];if(this._comparator(i,t))return;this._items[o]=t,this._items[e]=i,e=o}}},{key:"_sinkDown",value:function(e){for(var t=this._items[e];;){var o=2*(e+1)-1,i=2*(e+1),n=-1;if(ot?e:t>o?o:t}e.exports=o},function(e,t,o){"use strict";var i=Object.assign||function(e){for(var t=1;t0){var t=a({"fixedDataTableRowLayout/fixedColumnsDivider":!0,"fixedDataTableRowLayout/columnsShadow":this.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":!0,"public/fixedDataTableRow/columnsShadow":this.props.scrollLeft>0}),o={left:e,height:this.props.height};return n.createElement("div",{className:t,style:o})}},_onClick:function(e){this.props.onClick(e,this.props.index,this.props.data)},_onDoubleClick:function(e){this.props.onDoubleClick(e,this.props.index,this.props.data)},_onMouseDown:function(e){this.props.onMouseDown(e,this.props.index,this.props.data)},_onMouseEnter:function(e){this.props.onMouseEnter(e,this.props.index,this.props.data)},_onMouseLeave:function(e){this.props.onMouseLeave(e,this.props.index,this.props.data)}}),f=n.createClass({displayName:"FixedDataTableRow",mixins:[r],propTypes:{height:h.number.isRequired,zIndex:h.number,offsetTop:h.number.isRequired,width:h.number.isRequired},render:function(){var e={width:this.props.width,height:this.props.height,zIndex:this.props.zIndex?this.props.zIndex:0};return u(e,0,this.props.offsetTop),n.createElement("div",{style:e,className:a("fixedDataTableRowLayout/rowWrapper")},n.createElement(c,i({},this.props,{offsetTop:void 0,zIndex:void 0})))}});e.exports=f},function(e,t,o){"use strict";function i(e,t){var o={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i]);return o}var n=Object.assign||function(e){for(var t=1;tn;n++){var s=t[n].props;if(!s.allowCellsRecycling||i-e.left<=e.width&&i-e.left+s.width>=0){var l="cell_"+n;o[n]=this._renderCell(e.data,e.rowIndex,e.rowHeight,s,i,l)}i+=s.width}var u=this._getColumnsWidth(t),c={height:e.height,position:"absolute",width:u,zIndex:e.zIndex};return f(c,-1*d*e.left,0),a.createElement("div",{className:h("fixedDataTableCellGroupLayout/cellGroup"),style:c},o)},_renderCell:function(e,t,o,i,n,r){var s,l=i.cellRenderer||c,h=i.columnData||m,f=i.dataKey,p=i.isFooterCell,d=i.isHeaderCell;if(d||p)s=null==e||null==e[f]?i.label:e[f];else{var v=i.cellDataGetter;s=v?v(f,e):e[f]}var _,g=i.isResizable&&this.props.onColumnResize,w=g?this.props.onColumnResize:null;return _=d||p?d?i.headerClassName:i.footerClassName:i.cellClassName,a.createElement(u,{align:i.align,cellData:s,cellDataKey:f,cellRenderer:l,className:_,columnData:h,height:o,isFooterCell:p,isHeaderCell:d,key:r,maxWidth:i.maxWidth,minWidth:i.minWidth,onColumnResize:w,rowData:e,rowIndex:t,width:i.width,left:n})},_getColumnsWidth:function(e){for(var t=0,o=0;oi;i++)r(e,t[i])}},{key:"deepFreezeRootNode",value:function(t){if(!a(t)){Object.freeze(t);for(var o in t)t.hasOwnProperty(o)&&e.recurseDeepFreeze(t[o]);Object.seal(t)}}},{key:"recurseDeepFreeze",value:function(t){if(!a(t)&&e.shouldRecurseFreeze(t)){Object.freeze(t);for(var o in t)t.hasOwnProperty(o)&&e.recurseDeepFreeze(t[o]);Object.seal(t)}}},{key:"shouldRecurseFreeze",value:function(t){return"object"==typeof t&&!(t instanceof e)&&null!==t}}]),e}();h._DONT_EVER_TYPE_THIS_SECRET_KEY=Math.random(),e.exports=h},function(e,t){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t){"use strict";var o=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=o},function(e,t,o){"use strict";var i=o(54),n=o(67),r=36,s=function(e){return"object"!=typeof e||e instanceof Date||null===e},a={MAX_MERGE_DEPTH:r,isTerminal:s,normalizeMergeArg:function(e){return void 0===e||null===e?{}:e},checkMergeArrayArgs:function(e,t){i(Array.isArray(e)&&Array.isArray(t),"Tried to merge arrays, instead got %s and %s.",e,t)},checkMergeObjectArgs:function(e,t){a.checkMergeObjectArg(e),a.checkMergeObjectArg(t)},checkMergeObjectArg:function(e){i(!s(e)&&!Array.isArray(e),"Tried to merge an object, instead got %s.",e)},checkMergeIntoObjectArg:function(e){i(!(s(e)&&"function"!=typeof e||Array.isArray(e)),"Tried to merge into an object, instead got %s.",e)},checkMergeLevel:function(e){i(r>e,"Maximum deep merge depth exceeded. You may be attempting to merge circular structures in an unsupported way.")},checkArrayStrategy:function(e){i(void 0===e||e in a.ArrayStrategies,"You must provide an array strategy to deep merge functions to instruct the deep merge how to resolve merging two arrays.")},ArrayStrategies:n({Clobber:!0,IndexByIndex:!0})};e.exports=a},function(e,t,o){"use strict";var i=o(54),n=function(e){var t,o={};i(e instanceof Object&&!Array.isArray(e),"keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(o[t]=t);return o};e.exports=n},function(e,t,o){"use strict";var i=o(27),n=o(62),r=o(29),s=o(34),a=o(49),l=o(69),u=i.DIR_SIGN,h=r.PropTypes,c=new n({align:"left",highlighted:!1,isFooterCell:!1,isHeaderCell:!1}),f=r.createClass({displayName:"FixedDataTableCell",mixins:[s],propTypes:{align:h.oneOf(["left","center","right"]),className:h.string,highlighted:h.bool,isFooterCell:h.bool,isHeaderCell:h.bool,width:h.number.isRequired,minWidth:h.number,maxWidth:h.number,height:h.number.isRequired,cellData:h.any,cellDataKey:h.oneOfType([h.string.isRequired,h.number.isRequired]),cellRenderer:h.func.isRequired,columnData:h.any,rowData:h.oneOfType([h.object.isRequired,h.array.isRequired]),rowIndex:h.number.isRequired,onColumnResize:h.func,left:h.number},getDefaultProps:function(){return c},render:function(){var e=this.props,t={height:e.height,width:e.width};1===u?t.left=e.left:t.right=e.left;var o,i=l(a({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":e.lastChild,"fixedDataTableCellLayout/alignRight":"right"===e.align,"fixedDataTableCellLayout/alignCenter":"center"===e.align,"public/fixedDataTableCell/alignRight":"right"===e.align,"public/fixedDataTableCell/highlighted":e.highlighted,"public/fixedDataTableCell/main":!0}),e.className);o=e.isHeaderCell||e.isFooterCell?e.cellRenderer(e.cellData,e.cellDataKey,e.columnData,e.rowData,e.width):e.cellRenderer(e.cellData,e.cellDataKey,e.rowData,e.rowIndex,e.columnData,e.width);var n=a("public/fixedDataTableCell/cellContent");o=r.isValidElement(o)?r.cloneElement(o,{className:l(o.props.className,n)}):r.createElement("div",{className:n},o);var s;if(e.onColumnResize){var h={height:e.height};s=r.createElement("div",{className:a("fixedDataTableCellLayout/columnResizerContainer"),style:h,onMouseDown:this._onColumnResizerMouseDown},r.createElement("div",{className:l(a("fixedDataTableCellLayout/columnResizerKnob"),a("public/fixedDataTableCell/columnResizerKnob")),style:h}))}var c={height:e.height,width:e.width};return r.createElement("div",{className:i,style:t},s,r.createElement("div",{className:l(a("fixedDataTableCellLayout/wrap1"),a("public/fixedDataTableCell/wrap1")),style:c},r.createElement("div",{className:l(a("fixedDataTableCellLayout/wrap2"),a("public/fixedDataTableCell/wrap2"))},r.createElement("div",{className:l(a("fixedDataTableCellLayout/wrap3"),a("public/fixedDataTableCell/wrap3"))},o))))},_onColumnResizerMouseDown:function(e){this.props.onColumnResize(this.props.left,this.props.width,this.props.minWidth,this.props.maxWidth,this.props.cellDataKey,e)}});e.exports=f},function(e,t){"use strict";function o(e){e||(e="");var t,o=arguments.length;if(o>1)for(var i=1;o>i;i++)t=arguments[i],t&&(e=(e?e+" ":"")+t);return e}e.exports=o},function(e,t,o){"use strict";var i=o(44),n=o(28),r=o(29),s=o(34),a=o(59),l=o(49),u=r.PropTypes,h=r.createClass({displayName:"FixedDataTableColumnResizeHandle",mixins:[s],propTypes:{visible:u.bool.isRequired,height:u.number.isRequired,leftOffset:u.number.isRequired,knobHeight:u.number.isRequired,initialWidth:u.number,minWidth:u.number,maxWidth:u.number,initialEvent:u.object,onColumnResizeEnd:u.func,columnKey:u.oneOfType([u.string,u.number])},getInitialState:function(){return{width:0,cursorDelta:0}},componentWillReceiveProps:function(e){e.initialEvent&&!this._mouseMoveTracker.isDragging()&&(this._mouseMoveTracker.captureMouseMoves(e.initialEvent),this.setState({width:e.initialWidth,cursorDelta:e.initialWidth}))},componentDidMount:function(){this._mouseMoveTracker=new i(this._onMove,this._onColumnResizeEnd,document.body)},componentWillUnmount:function(){this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null},render:function(){var e={width:this.state.width,height:this.props.height};return n.isRTL()?e.right=this.props.leftOffset:e.left=this.props.leftOffset,r.createElement("div",{className:l({"fixedDataTableColumnResizerLineLayout/main":!0,"fixedDataTableColumnResizerLineLayout/hiddenElem":!this.props.visible,"public/fixedDataTableColumnResizerLine/main":!0}),style:e},r.createElement("div",{className:l("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}}))},_onMove:function(e){n.isRTL()&&(e=-e);var t=this.state.cursorDelta+e,o=a(this.props.minWidth,t,this.props.maxWidth);this.setState({width:o,cursorDelta:t})},_onColumnResizeEnd:function(){this._mouseMoveTracker.releaseMouseMoves(),this.props.onColumnResizeEnd(this.state.width,this.props.columnKey)}});e.exports=h},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;oa;++a)this._storedHeights[a]=o;this._rowCount=t,this._position=0,this._contentHeight=t*o,this._defaultRowHeight=o,this._rowHeightGetter=s?s:function(){return o},this._viewportHeight=n,this.scrollRowIntoView=this.scrollRowIntoView.bind(this),this.setViewportHeight=this.setViewportHeight.bind(this),this.scrollBy=this.scrollBy.bind(this),this.scrollTo=this.scrollTo.bind(this),this.scrollToRow=this.scrollToRow.bind(this),this.setRowHeightGetter=this.setRowHeightGetter.bind(this),this.getContentHeight=this.getContentHeight.bind(this),this.getRowPosition=this.getRowPosition.bind(this),this._updateHeightsInViewport(0,0)}return n(e,[{key:"setRowHeightGetter",value:function(e){this._rowHeightGetter=e}},{key:"setViewportHeight",value:function(e){this._viewportHeight=e}},{key:"getContentHeight",value:function(){return this._contentHeight}},{key:"_updateHeightsInViewport",value:function(e,t){for(var o=t,i=e;o<=this._viewportHeight&&i=0&&t>=e-a;){var o=this._updateRowHeight(t);this._position+=o,t--}}},{key:"_updateRowHeight",value:function(e){if(0>e||e>=this._rowCount)return 0;var t=this._rowHeightGetter(e);if(t!==this._storedHeights[e]){var o=t-this._storedHeights[e];return this._rowOffsets.set(e,t),this._storedHeights[e]=t,this._contentHeight+=o,o}return 0}},{key:"getRowPosition",value:function(e){return this._updateRowHeight(e),this._rowOffsets.sumUntil(e)}},{key:"scrollBy",value:function(e){if(0===this._rowCount)return l;var t=this._rowOffsets.greatestLowerBound(this._position);t=s(0,t,Math.max(this._rowCount-1,0));var o=this._rowOffsets.sumUntil(t),i=t,n=this._position,r=this._updateRowHeight(i);0!==o&&(n+=r);var a=this._storedHeights[i]-(n-o);if(e>=0)for(;e>0&&ie?(n+=e,e=0):(e-=a,n+=a,i++),ie){e=-e;for(var u=this._storedHeights[i]-a;e>0&&i>=0;)if(u>e?(n-=e,e=0):(n-=u,e-=u,i--),i>=0){var h=this._updateRowHeight(i);u=this._storedHeights[i],n+=h}}var c=this._contentHeight-this._viewportHeight;n=s(0,n,c),this._position=n;var f=this._rowOffsets.greatestLowerBound(n);f=s(0,f,Math.max(this._rowCount-1,0)),o=this._rowOffsets.sumUntil(f);var p=o-n;return this._updateHeightsInViewport(f,p),this._updateHeightsAboveViewport(f),{index:f,offset:p,position:this._position,contentHeight:this._contentHeight}}},{key:"_getRowAtEndPosition",value:function(e){this._updateRowHeight(e);for(var t=e,o=this._storedHeights[t];o=0;)t--,t>=0&&(this._updateRowHeight(t),o+=this._storedHeights[t]);var i=this._rowOffsets.sumTo(e)-this._viewportHeight;return 0>i&&(i=0),i}},{key:"scrollTo",value:function(e){if(0===this._rowCount)return l;if(0>=e)return this._position=0,this._updateHeightsInViewport(0,0),{index:0,offset:0,position:this._position,contentHeight:this._contentHeight};if(e>=this._contentHeight-this._viewportHeight){var t=this._rowCount-1;e=this._getRowAtEndPosition(t)}this._position=e;var o=this._rowOffsets.greatestLowerBound(e);o=s(0,o,Math.max(this._rowCount-1,0));var i=this._rowOffsets.sumUntil(o),n=i-e;return this._updateHeightsInViewport(o,n),this._updateHeightsAboveViewport(o),{index:o,offset:n,position:this._position,contentHeight:this._contentHeight}}},{key:"scrollToRow",value:function(e,t){e=s(0,e,Math.max(this._rowCount-1,0)),t=s(-this._storedHeights[e],t,0);var o=this._rowOffsets.sumUntil(e);return this.scrollTo(o-t)}},{key:"scrollRowIntoView",value:function(e){e=s(0,e,Math.max(this._rowCount-1,0));var t=this._rowOffsets.sumUntil(e),o=t+this._storedHeights[e];if(tt;)t*=2;return t}var r=function(){ -function e(e,t){for(var o=0;o=0;--o)t[o]=0;return t},u=function(){function e(t){i(this,e),this._size=t.length,this._half=n(this._size),this._heap=new l(2*this._half);var o;for(o=0;o0;--o)this._heap[o]=this._heap[2*o]+this._heap[2*o+1]}return r(e,[{key:"set",value:function(e,t){s(e>=0&&e=0&&e=0&&e=0&&e=e,"Begin must precede end"),this.sumUntil(t)-this.sumUntil(e)}},{key:"greatestLowerBound",value:function(e){if(0>e)return-1;var t=1;if(this._heap[t]<=e)return this._size;for(;te?t=2*t:(t=2*t+1,e-=o)}return t-this._half}},{key:"greatestStrictLowerBound",value:function(e){if(0>=e)return-1;var t=1;if(this._heap[t]=e?t=2*t:(t=2*t+1,e-=o)}return t-this._half}},{key:"leastUpperBound",value:function(e){return this.greatestStrictLowerBound(e)+1}},{key:"leastStrictUpperBound",value:function(e){return this.greatestLowerBound(e)+1}}],[{key:"uniform",value:function(t,o){for(var i=[],n=t-1;n>=0;--n)i[n]=o;return new e(i)}},{key:"empty",value:function(t){return e.uniform(t,0)}}]),e}();e.exports=u}).call(t,function(){return this}())},function(e,t,o){"use strict";function i(e){for(var t=0,o=0;o=t)return{columns:e,width:i(e)};for(var o=n(e),r=t,s=[],a=0,u=0;uo?r(e,t-o).columns:e}var l=o(29),u={getTotalWidth:i,getTotalFlexGrow:n,distributeFlexWidth:r,adjustColumnWidths:a,adjustColumnGroupWidths:s};e.exports=u},function(e,t){"use strict";function o(e,t,o,i,n){function r(){for(var n=arguments.length,a=Array(n),l=0;n>l;l++)a[l]=arguments[l];r.reset();var u=function(){e.apply(o,a)};u.__SMmeta=e.__SMmeta,s=i(u,t)}i=i||setTimeout,n=n||clearTimeout;var s;return r.reset=function(){n(s)},r}e.exports=o},function(e,t){"use strict";function o(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),r=0;re&&this.state.scrollX>0||e>=0&&this.state.scrollXe&&this.state.scrollY>0||e>=0&&this.state.scrollYi?i:this.state.height>i&&this.props.ownerHeight?Math.max(i,this.props.ownerHeight):this.state.height+this.state.maxScrollY,e!==this._contentHeight&&this.props.onContentHeightChange&&this.props.onContentHeightChange(e),this._contentHeight=e},componentDidMount:function(){this._reportContentHeight()},componentWillReceiveProps:function(e){var t=e.scrollToRow;void 0!==t&&null!==t&&(this._rowToScrollTo=t);var o=e.scrollToColumn;void 0!==o&&null!==o&&(this._columnToScrollTo=o);var i=e.overflowX,n=e.overflowY;(i!==this.props.overflowX||n!==this.props.overflowY)&&(this._wheelHandler=new a(this._onWheel,"hidden"!==i,"hidden"!==n)),this.setState(this._calculateState(e,this.state))},componentDidUpdate:function(){this._reportContentHeight()},render:function(){var e,t=this.state,o=this.props;t.useGroupHeader&&(e=r.createElement(c,{key:"group_header",className:g(d("fixedDataTableLayout/header"),d("public/fixedDataTable/header")),data:t.groupHeaderData,width:t.width,height:t.groupHeaderHeight,index:0,zIndex:1,offsetTop:0,scrollLeft:t.scrollX,fixedColumns:t.groupHeaderFixedColumns,scrollableColumns:t.groupHeaderScrollableColumns}));var i=this.state.maxScrollY,n=t.maxScrollX>0&&"hidden"!==t.overflowX,s=i>0&&"hidden"!==t.overflowY,a=n?l.SIZE:0,u=t.height-a-2*T-t.footerHeight,f=t.useGroupHeader?t.groupHeaderHeight:0,p=f+t.headerHeight;u-=p;var m=0,v=null!=o.maxHeight?p+t.bodyHeight:p+u,_=v+t.footerHeight;void 0!==o.ownerHeight&&o.ownerHeightt.ownerHeight||t.scrollY or "),o.push(e))});var n=!1;o.length&&o[0].type.__TableColumnGroup__&&(n=!0);var r,s,a=t&&t.firstRowIndex||0,u=t&&t.firstRowOffset||0;r=t&&"hidden"!==e.overflowX?t.scrollX:e.scrollLeft,t&&"hidden"!==e.overflowY?s=t.scrollY:(d=this._scrollHelper.scrollTo(e.scrollTop),a=d.index,u=d.offset,s=d.position),void 0!==this._rowToScrollTo&&(d=this._scrollHelper.scrollRowIntoView(this._rowToScrollTo),a=d.index,u=d.offset,s=d.position,delete this._rowToScrollTo);var h=n?e.groupHeaderHeight:0;if(t&&e.rowsCount!==t.rowsCount){var c=(void 0===e.height?e.maxHeight:e.height)-(e.headerHeight||0)-(e.footerHeight||0)-(e.groupHeaderHeight||0);this._scrollHelper=new f(e.rowsCount,e.rowHeight,c,e.rowHeightGetter);var d=this._scrollHelper.scrollToRow(a,u);a=d.index,u=d.offset,s=d.position}else t&&e.rowHeightGetter!==t.rowHeightGetter&&this._scrollHelper.setRowHeightGetter(e.rowHeightGetter);var m;m=e.isColumnResizing?t&&t.columnResizingData:R;var v,g;if(n){var b=p.adjustColumnGroupWidths(o,e.width);v=b.columns,g=b.columnGroups}else v=p.adjustColumnWidths(o,e.width);var y=this._populateColumnsAndColumnData(v,g,t);if(void 0!==this._columnToScrollTo){var C=y.bodyFixedColumns.length;if(this._columnToScrollTo>=C){var H,D,S=0;for(H=0;HH;++H)D=y.bodyScrollableColumns[H],E+=D.props.width;var k=e.width-S,z=y.bodyScrollableColumns[M].props.width,O=E+z-k;O>r&&(r=O),r>E&&(r=E)}delete this._columnToScrollTo}var N=void 0===e.height,P=Math.round(N?e.maxHeight:e.height),I=e.footerHeight+e.headerHeight+h+2*T,F=P-I,L=this._scrollHelper.getContentHeight(),A=L+I,W=p.getTotalWidth(v),G=W>e.width&&"hidden"!==e.overflowX;G&&(F-=l.SIZE,A+=l.SIZE,I+=l.SIZE);var j=Math.max(0,W-e.width),V=Math.max(0,L-F);r=Math.min(r,j),s=Math.min(s,V),V||(N&&(P=A),F=A-I),this._scrollHelper.setViewportHeight(F);var Y=i({isColumnResizing:t&&t.isColumnResizing},y,e,{columns:v,columnGroups:g,columnResizingData:m,firstRowIndex:a,firstRowOffset:u,horizontalScrollbarVisible:G,maxScrollX:j,maxScrollY:V,reservedHeight:I,scrollContentHeight:L,scrollX:r,scrollY:s,bodyHeight:F,height:P,groupHeaderHeight:h,useGroupHeader:n});return t&&(t.headData&&Y.headData&&w(t.headData,Y.headData)&&(Y.headData=t.headData),t.groupHeaderData&&Y.groupHeaderData&&w(t.groupHeaderData,Y.groupHeaderData)&&(Y.groupHeaderData=t.groupHeaderData)),Y},_createGroupHeaderColumns:function(e){for(var t=[],o=0;oMath.abs(e)&&"hidden"!==this.props.overflowY){var i=this._scrollHelper.scrollBy(Math.round(t)),n=Math.max(0,i.contentHeight-this.state.bodyHeight);this.setState({firstRowIndex:i.index,firstRowOffset:i.offset,scrollY:i.position,scrollContentHeight:i.contentHeight,maxScrollY:n})}else e&&"hidden"!==this.props.overflowX&&(o+=e,o=0>o?0:o,o=o>this.state.maxScrollX?this.state.maxScrollX:o,this.setState({scrollX:o}));this._didScrollStop()}},_onHorizontalScroll:function(e){this.isMounted()&&e!==this.state.scrollX&&(this._isScrolling||this._didScrollStart(),this.setState({scrollX:e}),this._didScrollStop())},_onVerticalScroll:function(e){if(this.isMounted()&&e!==this.state.scrollY){this._isScrolling||this._didScrollStart();var t=this._scrollHelper.scrollTo(Math.round(e));this.setState({firstRowIndex:t.index,firstRowOffset:t.offset,scrollY:t.position,scrollContentHeight:t.contentHeight}),this._didScrollStop()}},_didScrollStart:function(){this.isMounted()&&!this._isScrolling&&(this._isScrolling=!0,this.props.onScrollStart&&this.props.onScrollStart(this.state.scrollX,this.state.scrollY))},_didScrollStop:function(){this.isMounted()&&this._isScrolling&&(this._isScrolling=!1,this.props.onScrollEnd&&this.props.onScrollEnd(this.state.scrollX,this.state.scrollY))}}),D=r.createClass({displayName:"HorizontalScrollbar",mixins:[s],propTypes:{contentSize:y.number.isRequired,offset:y.number.isRequired,onScroll:y.func.isRequired,position:y.number.isRequired,size:y.number.isRequired},render:function(){var e={height:l.SIZE,width:this.props.size},t={height:l.SIZE,position:"absolute",overflow:"hidden",width:this.props.size};return b(t,0,this.props.offset),r.createElement("div",{className:g(d("fixedDataTableLayout/horizontalScrollbar"),d("public/fixedDataTable/horizontalScrollbar")),style:e},r.createElement("div",{style:t},r.createElement(l,i({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}});e.exports=H},function(e,t,o){"use strict";function i(e){return null===e||void 0===e?"":String(e)}function n(e,t){a.Children.forEach(e,function(e){e.type===l?n(e.props.children,t):e.type===u&&t(e)})}function r(e,t){var o=[];return a.Children.forEach(e,function(e){var i=e;if(e.type===l){var r=!1,s=[];n(e.props.children,function(e){var o=t(e);o!==e&&(r=!0),s.push(o)}),r&&(i=a.cloneElement(e,{children:s}))}else e.type===u&&(i=t(e));o.push(i)}),o}var s=o(28),a=o(29),l=o(31),u=o(32),h=s.isRTL()?-1:1,c=5,f={DIR_SIGN:h,CELL_VISIBILITY_TOLERANCE:c,renderToString:i,forEachColumn:n,mapColumns:r};e.exports=f},function(e,t){"use strict";var o={isRTL:function(){return!1},getDirection:function(){return"LTR"}};e.exports=o},function(e,t,o){(function(t){"use strict";var i;i=o("object"==typeof t&&t.atom?!function(){var e=new Error('Cannot find module "react-for-atom"');throw e.code="MODULE_NOT_FOUND",e}():30),e.exports=i}).call(t,function(){return this}())},function(t,o){t.exports=e},function(e,t,o){"use strict";var i=o(29),n=i.PropTypes,r=i.createClass({displayName:"FixedDataTableColumnGroup",statics:{__TableColumnGroup__:!0},propTypes:{align:n.oneOf(["left","center","right"]),fixed:n.bool,columnGroupData:n.object,label:n.string,groupHeaderRenderer:n.func},getDefaultProps:function(){return{fixed:!1}},render:function(){throw new Error("Component should never render")}});e.exports=r},function(e,t,o){"use strict";var i=o(29),n=i.PropTypes,r=i.createClass({displayName:"FixedDataTableColumn",statics:{__TableColumn__:!0},propTypes:{align:n.oneOf(["left","center","right"]),headerClassName:n.string,footerClassName:n.string,cellClassName:n.string,cellRenderer:n.func,cellDataGetter:n.func,dataKey:n.oneOfType([n.string,n.number]).isRequired,fixed:n.bool,headerRenderer:n.func,footerRenderer:n.func,columnData:n.object,label:n.string,width:n.number.isRequired,minWidth:n.number,maxWidth:n.number,flexGrow:n.number,isResizable:n.bool,allowCellsRecycling:n.bool},getDefaultProps:function(){return{allowCellsRecycling:!1,fixed:!1}},render:function(){throw new Error("Component should never render")}});e.exports=r},function(e,t){"use strict";function o(e,t){if(e===t)return!0;var o;for(o in e)if(e.hasOwnProperty(o)&&(!t.hasOwnProperty(o)||e[o]!==t[o]))return!1;for(o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}var i={shouldComponentUpdate:function(e,t){return!o(this.props,e)||!o(this.state,t)}};e.exports=i},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;oi?-1:1),n&&!o&&(o=1>n?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:n}}var n=o(37),r=o(38),s=10,a=40,l=800;i.getEventType=function(){return n.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=i},function(e,t){"use strict";function o(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){i=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,i&&document&&document.documentMode&&(i=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);l=w?parseFloat(w[1])+4:i,n=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,s=t[4]?parseFloat(t[4]):NaN,s?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else i=n=r=a=s=NaN;if(o){if(o[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=b?parseFloat(b[1].replace("_",".")):!0}else u=!1;h=!!o[2],c=!!o[3]}else u=h=c=!1}}var i,n,r,s,a,l,u,h,c,f,p,d,m,v,_,g=!1,w={ie:function(){return o()||i},ieCompatibilityMode:function(){return o()||l>i},ie64:function(){return w.ie()&&p},firefox:function(){return o()||n},opera:function(){return o()||r},webkit:function(){return o()||s},safari:function(){return w.webkit()},chrome:function(){return o()||a},windows:function(){return o()||h},osx:function(){return o()||u},linux:function(){return o()||c},iphone:function(){return o()||d},mobile:function(){return o()||d||m||f||_},nativeApp:function(){return o()||v},android:function(){return o()||f},ipad:function(){return o()||m}};e.exports=w},function(e,t,o){"use strict";function i(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,i=o in document;if(!i){var s=document.createElement("div");s.setAttribute(o,"return;"),i="function"==typeof s[o]}return!i&&n&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var n,r=o(39);r.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=i},function(e,t){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=i},function(e,t,o){(function(t){"use strict";var i=o(35),n=o(41),r=0,s=n||function(e){var o=Date.now(),i=Math.max(0,16-(o-r));return r=o+i,t.setTimeout(function(){e(Date.now())},i)};s(i),e.exports=s}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";var o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame;e.exports=o}).call(t,function(){return this}())},function(e,t,o){"use strict";var i=o(43),n=o(46),r=o(29),s=o(33),a=o(34),l=o(47),u=o(48),h=o(35),c=o(49),f=r.PropTypes,p={position:0,scrollable:!1},d=parseInt(l("scrollbar-face-margin"),10),m=2*d,v=30,_=40,g=null,w=r.createClass({displayName:"Scrollbar",mixins:[s],propTypes:{contentSize:f.number.isRequired,defaultPosition:f.number,isOpaque:f.bool,orientation:f.oneOf(["vertical","horizontal"]),onScroll:f.func,position:f.number,size:f.number.isRequired,trackColor:f.oneOf(["gray"]),zIndex:f.number,verticalTop:f.number},getInitialState:function(){var e=this.props;return this._calculateState(e.position||e.defaultPosition||0,e.size,e.contentSize,e.orientation)},componentWillReceiveProps:function(e){var t=e.position;void 0===t?this._setNextState(this._calculateState(this.state.position,e.size,e.contentSize,e.orientation)):this._setNextState(this._calculateState(t,e.size,e.contentSize,e.orientation),e)},getDefaultProps:function(){return{defaultPosition:0,isOpaque:!1,onScroll:h,orientation:"vertical",zIndex:99}},render:function(){if(!this.state.scrollable)return null;var e,t,o=this.props.size,i=this.state.isHorizontal,n=!i,s=this.state.focused||this.state.isDragging,a=this.state.faceSize,h=this.props.isOpaque,f=this.props.verticalTop||0,p=u({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":n,"ScrollbarLayout/mainHorizontal":i,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":h,"public/Scrollbar/mainActive":s}),v=u({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":i,"ScrollbarLayout/faceVertical":n,"public/Scrollbar/faceActive":s,"public/Scrollbar/face":!0}),_=this.state.position*this.state.scale+d;return i?(e={width:o},t={width:a-m},c(t,_,0)):(e={top:f,height:o},t={height:a-m},c(t,0,_)),e.zIndex=this.props.zIndex,"gray"===this.props.trackColor&&(e.backgroundColor=l("fbui-desktop-background-light")),r.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onWheel:this._wheelHandler.onWheel,className:p,style:e,tabIndex:0},r.createElement("div",{ref:"face",className:v,style:t}))},componentWillMount:function(){var e="horizontal"===this.props.orientation,t=e?this._onWheelX:this._onWheelY;this._wheelHandler=new a(t,this._shouldHandleX,this._shouldHandleY)},componentDidMount:function(){this._mouseMoveTracker=new i(this._onMouseMove,this._onMouseMoveEnd,document.documentElement),void 0!==this.props.position&&this.state.position!==this.props.position&&this._didScroll()},componentWillUnmount:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),g===this&&(g=null),delete this._mouseMoveTracker},scrollBy:function(e){this._onWheel(e)},_shouldHandleX:function(e){return"horizontal"===this.props.orientation?this._shouldHandleChange(e):!1},_shouldHandleY:function(e){return"horizontal"!==this.props.orientation?this._shouldHandleChange(e):!1},_shouldHandleChange:function(e){var t=this._calculateState(this.state.position+e,this.props.size,this.props.contentSize,this.props.orientation);return t.position!==this.state.position},_calculateState:function(e,t,o,i){if(1>t||t>=o)return p;var n=e+"_"+t+"_"+o+"_"+i;if(this._stateKey===n)return this._stateForKey;var r="horizontal"===i,s=t/o,a=t*s;v>a&&(s=(t-v)/(o-t),a=v);var l=!0,u=o-t;0>e?e=0:e>u&&(e=u);var h=this._mouseMoveTracker?this._mouseMoveTracker.isDragging():!1,c={faceSize:a,isDragging:h,isHorizontal:r,position:e,scale:s,scrollable:l};return this._stateKey=n,this._stateForKey=c,c},_onWheelY:function(e,t){this._onWheel(t)},_onWheelX:function(e,t){this._onWheel(e)},_onWheel:function(e){var t=this.props;this._setNextState(this._calculateState(this.state.position+e,t.size,t.contentSize,t.orientation))},_onMouseDown:function(e){var t;if(e.target!==r.findDOMNode(this.refs.face)){var o=e.nativeEvent,i=this.state.isHorizontal?o.offsetX||o.layerX:o.offsetY||o.layerY,n=this.props;i/=this.state.scale,t=this._calculateState(i-.5*this.state.faceSize/this.state.scale,n.size,n.contentSize,n.orientation)}else t={};t.focused=!0,this._setNextState(t),this._mouseMoveTracker.captureMouseMoves(e),r.findDOMNode(this).focus()},_onMouseMove:function(e,t){var o=this.props,i=this.state.isHorizontal?e:t;i/=this.state.scale,this._setNextState(this._calculateState(this.state.position+i,o.size,o.contentSize,o.orientation))},_onMouseMoveEnd:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),this.setState({isDragging:!1})},_onKeyDown:function(e){var t=e.keyCode;if(t!==n.TAB){var o=_,i=0;if(this.state.isHorizontal)switch(t){case n.HOME:i=-1,o=this.props.contentSize;break;case n.LEFT:i=-1;break;case n.RIGHT:i=1;break;default:return}if(!this.state.isHorizontal)switch(t){case n.SPACE:i=e.shiftKey?-1:1;break;case n.HOME:i=-1,o=this.props.contentSize;break;case n.UP:i=-1;break;case n.DOWN:i=1;break;case n.PAGE_UP:i=-1,o=this.props.size;break;case n.PAGE_DOWN:i=1,o=this.props.size;break;default:return}e.preventDefault();var r=this.props;this._setNextState(this._calculateState(this.state.position+o*i,r.size,r.contentSize,r.orientation))}},_onFocus:function(){this.setState({focused:!0})},_onBlur:function(){this.setState({focused:!1})},_blur:function(){if(this.isMounted())try{this._onBlur(),r.findDOMNode(this).blur()}catch(e){}},_setNextState:function(e,t){t=t||this.props;var o=t.position,i=this.state.position!==e.position;if(void 0===o){var n=i?this._didScroll:void 0;this.setState(e,n)}else{if(o!==e.position)return void(void 0!==e.position&&e.position!==this.state.position&&this.props.onScroll(e.position));this.setState(e)}i&&g!==this&&(g&&g._blur(),g=this)},_didScroll:function(){this.props.onScroll(this.state.position)}});w.KEYBOARD_SCROLL_AMOUNT=_,w.SIZE=parseInt(l("scrollbar-size"),10),e.exports=w},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;o0;)this._addRowToBuffer(t,this._viewportRowsBegin,this._viewportRowsEnd-1),t++,e--;return this._rows}},{key:"getRows",value:function(e,t){var o=t,i=o,n=e,r=Math.min(e+this._maxVisibleRowCount,this._rowsCount);for(this._viewportRowsBegin=e;r>n||i=r&&(i=this._bufferSet.replaceFurthestValuePosition(t,o,e)),null===i?(i=this._bufferSet.getNewPositionForValue(e),this._rows[i]=e):this._rows[i]=e}}]),e}();e.exports=h},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;o=e&&t>=n)return null;var r;e-i>n-t?(r=i,this._smallValues.pop()):(r=n,this._largeValues.pop());var a=this._valueToPositionMap[r];return delete this._valueToPositionMap[r],this._valueToPositionMap[o]=a,this._pushToHeaps(a,o),a}},{key:"_pushToHeaps",value:function(e,t){var o={position:e,value:t};this._smallValues.push(o),this._largeValues.push(o)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var e=Math.min(this._smallValues.size(),this._largeValues.size()),t=Math.max(this._smallValues.size(),this._largeValues.size());t>10*e&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var e=this._smallValues.size()t.value}}]),e}();e.exports=a},function(e,t){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return t>e}var n=function(){function e(e,t){for(var o=0;o0&&(this._items[0]=t,this._sinkDown(0)),e}}},{key:"push",value:function(e){this._items[this._size++]=e,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){return 0!==this._size?this._items[0]:void 0}},{key:"_heapify",value:function(){for(var e=Math.floor((this._size+1)/2);e>=0;e--)this._sinkDown(e)}},{key:"_bubbleUp",value:function(e){for(var t=this._items[e];e>0;){var o=Math.floor((e+1)/2)-1,i=this._items[o];if(this._comparator(i,t))return;this._items[o]=t,this._items[e]=i,e=o}}},{key:"_sinkDown",value:function(e){for(var t=this._items[e];;){var o=2*(e+1)-1,i=2*(e+1),n=-1;if(ot?e:t>o?o:t}e.exports=o},function(e,t,o){"use strict";var i=Object.assign||function(e){for(var t=1;t0){var t=a({"fixedDataTableRowLayout/fixedColumnsDivider":!0,"fixedDataTableRowLayout/columnsShadow":this.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":!0,"public/fixedDataTableRow/columnsShadow":this.props.scrollLeft>0}),o={left:e,height:this.props.height};return n.createElement("div",{className:t,style:o})}},_onClick:function(e){this.props.onClick(e,this.props.index,this.props.data)},_onDoubleClick:function(e){this.props.onDoubleClick(e,this.props.index,this.props.data)},_onMouseDown:function(e){this.props.onMouseDown(e,this.props.index,this.props.data)},_onMouseEnter:function(e){this.props.onMouseEnter(e,this.props.index,this.props.data)},_onMouseLeave:function(e){this.props.onMouseLeave(e,this.props.index,this.props.data)}}),f=n.createClass({displayName:"FixedDataTableRow",mixins:[r],propTypes:{height:h.number.isRequired,zIndex:h.number,offsetTop:h.number.isRequired,width:h.number.isRequired},render:function(){var e={width:this.props.width,height:this.props.height,zIndex:this.props.zIndex?this.props.zIndex:0};return u(e,0,this.props.offsetTop),n.createElement("div",{style:e,className:a("fixedDataTableRowLayout/rowWrapper")},n.createElement(c,i({},this.props,{offsetTop:void 0,zIndex:void 0})))}});e.exports=f},function(e,t,o){"use strict";function i(e,t){var o={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i]);return o}var n=Object.assign||function(e){for(var t=1;tn;n++){var s=t[n].props;if(!s.allowCellsRecycling||i-e.left<=e.width&&i-e.left+s.width>=0){var l="cell_"+n;o[n]=this._renderCell(e.data,e.rowIndex,e.rowHeight,s,i,l)}i+=s.width}var u=this._getColumnsWidth(t),c={height:e.height,position:"absolute",width:u,zIndex:e.zIndex};return f(c,-1*d*e.left,0),a.createElement("div",{className:h("fixedDataTableCellGroupLayout/cellGroup"),style:c},o)},_renderCell:function(e,t,o,i,n,r){var s,l=i.cellRenderer||c,h=i.columnData||m,f=i.dataKey,p=i.isFooterCell,d=i.isHeaderCell;if(d||p)s=null==e||null==e[f]?i.label:e[f];else{var v=i.cellDataGetter;s=v?v(f,e):e[f]}var _,g=i.isResizable&&this.props.onColumnResize,w=g?this.props.onColumnResize:null;return _=d||p?d?i.headerClassName:i.footerClassName:i.cellClassName,a.createElement(u,{align:i.align,cellData:s,cellDataKey:f,cellRenderer:l,className:_,columnData:h,height:o,isFooterCell:p,isHeaderCell:d,key:r,maxWidth:i.maxWidth,minWidth:i.minWidth,onColumnResize:w,rowData:e,rowIndex:t,width:i.width,left:n})},_getColumnsWidth:function(e){for(var t=0,o=0;oi;i++)r(e,t[i])}},{key:"deepFreezeRootNode",value:function(t){if(!a(t)){Object.freeze(t);for(var o in t)t.hasOwnProperty(o)&&e.recurseDeepFreeze(t[o]);Object.seal(t)}}},{key:"recurseDeepFreeze",value:function(t){if(!a(t)&&e.shouldRecurseFreeze(t)){Object.freeze(t);for(var o in t)t.hasOwnProperty(o)&&e.recurseDeepFreeze(t[o]);Object.seal(t)}}},{key:"shouldRecurseFreeze",value:function(t){return"object"==typeof t&&!(t instanceof e)&&null!==t}}]),e}();h._DONT_EVER_TYPE_THIS_SECRET_KEY=Math.random(),e.exports=h},function(e,t){"use strict";function o(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=o},function(e,t){"use strict";var o=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=o},function(e,t,o){"use strict";var i=o(53),n=o(66),r=36,s=function(e){return"object"!=typeof e||e instanceof Date||null===e},a={MAX_MERGE_DEPTH:r,isTerminal:s,normalizeMergeArg:function(e){return void 0===e||null===e?{}:e},checkMergeArrayArgs:function(e,t){i(Array.isArray(e)&&Array.isArray(t),"Tried to merge arrays, instead got %s and %s.",e,t)},checkMergeObjectArgs:function(e,t){a.checkMergeObjectArg(e),a.checkMergeObjectArg(t)},checkMergeObjectArg:function(e){i(!s(e)&&!Array.isArray(e),"Tried to merge an object, instead got %s.",e)},checkMergeIntoObjectArg:function(e){i(!(s(e)&&"function"!=typeof e||Array.isArray(e)),"Tried to merge into an object, instead got %s.",e)},checkMergeLevel:function(e){i(r>e,"Maximum deep merge depth exceeded. You may be attempting to merge circular structures in an unsupported way.")},checkArrayStrategy:function(e){i(void 0===e||e in a.ArrayStrategies,"You must provide an array strategy to deep merge functions to instruct the deep merge how to resolve merging two arrays.")},ArrayStrategies:n({Clobber:!0,IndexByIndex:!0})};e.exports=a},function(e,t,o){"use strict";var i=o(53),n=function(e){var t,o={};i(e instanceof Object&&!Array.isArray(e),"keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(o[t]=t);return o};e.exports=n},function(e,t,o){"use strict";var i=o(27),n=o(61),r=o(29),s=o(33),a=o(48),l=o(68),u=i.DIR_SIGN,h=r.PropTypes,c=new n({align:"left",highlighted:!1,isFooterCell:!1,isHeaderCell:!1}),f=r.createClass({displayName:"FixedDataTableCell",mixins:[s],propTypes:{align:h.oneOf(["left","center","right"]),className:h.string,highlighted:h.bool,isFooterCell:h.bool,isHeaderCell:h.bool,width:h.number.isRequired,minWidth:h.number,maxWidth:h.number,height:h.number.isRequired,cellData:h.any,cellDataKey:h.oneOfType([h.string.isRequired,h.number.isRequired]),cellRenderer:h.func.isRequired,columnData:h.any,rowData:h.oneOfType([h.object.isRequired,h.array.isRequired]),rowIndex:h.number.isRequired,onColumnResize:h.func,left:h.number},getDefaultProps:function(){return c},render:function(){var e=this.props,t={height:e.height,width:e.width};1===u?t.left=e.left:t.right=e.left;var o,i=l(a({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":e.lastChild,"fixedDataTableCellLayout/alignRight":"right"===e.align,"fixedDataTableCellLayout/alignCenter":"center"===e.align,"public/fixedDataTableCell/alignRight":"right"===e.align,"public/fixedDataTableCell/highlighted":e.highlighted,"public/fixedDataTableCell/main":!0}),e.className);o=e.isHeaderCell||e.isFooterCell?e.cellRenderer(e.cellData,e.cellDataKey,e.columnData,e.rowData,e.width):e.cellRenderer(e.cellData,e.cellDataKey,e.rowData,e.rowIndex,e.columnData,e.width);var n=a("public/fixedDataTableCell/cellContent");o=r.isValidElement(o)?r.cloneElement(o,{className:l(o.props.className,n)}):r.createElement("div",{className:n},o);var s;if(e.onColumnResize){var h={height:e.height};s=r.createElement("div",{className:a("fixedDataTableCellLayout/columnResizerContainer"),style:h,onMouseDown:this._onColumnResizerMouseDown},r.createElement("div",{className:l(a("fixedDataTableCellLayout/columnResizerKnob"),a("public/fixedDataTableCell/columnResizerKnob")),style:h}))}var c={height:e.height,width:e.width};return r.createElement("div",{className:i,style:t},s,r.createElement("div",{className:l(a("fixedDataTableCellLayout/wrap1"),a("public/fixedDataTableCell/wrap1")),style:c},r.createElement("div",{className:l(a("fixedDataTableCellLayout/wrap2"),a("public/fixedDataTableCell/wrap2"))},r.createElement("div",{className:l(a("fixedDataTableCellLayout/wrap3"),a("public/fixedDataTableCell/wrap3"))},o))))},_onColumnResizerMouseDown:function(e){this.props.onColumnResize(this.props.left,this.props.width,this.props.minWidth,this.props.maxWidth,this.props.cellDataKey,e)}});e.exports=f},function(e,t){"use strict";function o(e){e||(e="");var t,o=arguments.length;if(o>1)for(var i=1;o>i;i++)t=arguments[i],t&&(e=(e?e+" ":"")+t);return e}e.exports=o},function(e,t,o){"use strict";var i=o(43),n=o(28),r=o(29),s=o(33),a=o(58),l=o(48),u=r.PropTypes,h=r.createClass({displayName:"FixedDataTableColumnResizeHandle",mixins:[s],propTypes:{visible:u.bool.isRequired,height:u.number.isRequired,leftOffset:u.number.isRequired,knobHeight:u.number.isRequired,initialWidth:u.number,minWidth:u.number,maxWidth:u.number,initialEvent:u.object,onColumnResizeEnd:u.func,columnKey:u.oneOfType([u.string,u.number])},getInitialState:function(){return{width:0,cursorDelta:0}},componentWillReceiveProps:function(e){e.initialEvent&&!this._mouseMoveTracker.isDragging()&&(this._mouseMoveTracker.captureMouseMoves(e.initialEvent),this.setState({width:e.initialWidth,cursorDelta:e.initialWidth}))},componentDidMount:function(){this._mouseMoveTracker=new i(this._onMove,this._onColumnResizeEnd,document.body)},componentWillUnmount:function(){this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null},render:function(){var e={width:this.state.width,height:this.props.height};return n.isRTL()?e.right=this.props.leftOffset:e.left=this.props.leftOffset,r.createElement("div",{className:l({"fixedDataTableColumnResizerLineLayout/main":!0,"fixedDataTableColumnResizerLineLayout/hiddenElem":!this.props.visible,"public/fixedDataTableColumnResizerLine/main":!0}),style:e},r.createElement("div",{className:l("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}}))},_onMove:function(e){n.isRTL()&&(e=-e);var t=this.state.cursorDelta+e,o=a(this.props.minWidth,t,this.props.maxWidth);this.setState({width:o,cursorDelta:t})},_onColumnResizeEnd:function(){this._mouseMoveTracker.releaseMouseMoves(),this.props.onColumnResizeEnd(this.state.width,this.props.columnKey)}});e.exports=h},function(e,t,o){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function e(e,t){for(var o=0;oa;++a)this._storedHeights[a]=o;this._rowCount=t,this._position=0,this._contentHeight=t*o,this._defaultRowHeight=o,this._rowHeightGetter=s?s:function(){return o},this._viewportHeight=n,this.scrollRowIntoView=this.scrollRowIntoView.bind(this),this.setViewportHeight=this.setViewportHeight.bind(this),this.scrollBy=this.scrollBy.bind(this),this.scrollTo=this.scrollTo.bind(this),this.scrollToRow=this.scrollToRow.bind(this),this.setRowHeightGetter=this.setRowHeightGetter.bind(this),this.getContentHeight=this.getContentHeight.bind(this),this.getRowPosition=this.getRowPosition.bind(this),this._updateHeightsInViewport(0,0)}return n(e,[{key:"setRowHeightGetter",value:function(e){this._rowHeightGetter=e}},{key:"setViewportHeight",value:function(e){this._viewportHeight=e}},{key:"getContentHeight",value:function(){return this._contentHeight}},{key:"_updateHeightsInViewport",value:function(e,t){for(var o=t,i=e;o<=this._viewportHeight&&i=0&&t>=e-a;){var o=this._updateRowHeight(t);this._position+=o,t--}}},{key:"_updateRowHeight",value:function(e){if(0>e||e>=this._rowCount)return 0;var t=this._rowHeightGetter(e);if(t!==this._storedHeights[e]){var o=t-this._storedHeights[e];return this._rowOffsets.set(e,t),this._storedHeights[e]=t,this._contentHeight+=o,o}return 0}},{key:"getRowPosition",value:function(e){return this._updateRowHeight(e),this._rowOffsets.sumUntil(e)}},{key:"scrollBy",value:function(e){if(0===this._rowCount)return l;var t=this._rowOffsets.greatestLowerBound(this._position);t=s(0,t,Math.max(this._rowCount-1,0));var o=this._rowOffsets.sumUntil(t),i=t,n=this._position,r=this._updateRowHeight(i);0!==o&&(n+=r);var a=this._storedHeights[i]-(n-o);if(e>=0)for(;e>0&&ie?(n+=e,e=0):(e-=a,n+=a,i++),ie){e=-e;for(var u=this._storedHeights[i]-a;e>0&&i>=0;)if(u>e?(n-=e,e=0):(n-=u,e-=u,i--),i>=0){var h=this._updateRowHeight(i);u=this._storedHeights[i],n+=h}}var c=this._contentHeight-this._viewportHeight;n=s(0,n,c),this._position=n;var f=this._rowOffsets.greatestLowerBound(n);f=s(0,f,Math.max(this._rowCount-1,0)),o=this._rowOffsets.sumUntil(f);var p=o-n;return this._updateHeightsInViewport(f,p),this._updateHeightsAboveViewport(f),{index:f,offset:p,position:this._position,contentHeight:this._contentHeight}}},{key:"_getRowAtEndPosition",value:function(e){this._updateRowHeight(e);for(var t=e,o=this._storedHeights[t];o=0;)t--,t>=0&&(this._updateRowHeight(t),o+=this._storedHeights[t]);var i=this._rowOffsets.sumTo(e)-this._viewportHeight;return 0>i&&(i=0),i}},{key:"scrollTo",value:function(e){if(0===this._rowCount)return l;if(0>=e)return this._position=0,this._updateHeightsInViewport(0,0),{index:0,offset:0,position:this._position,contentHeight:this._contentHeight};if(e>=this._contentHeight-this._viewportHeight){var t=this._rowCount-1;e=this._getRowAtEndPosition(t)}this._position=e;var o=this._rowOffsets.greatestLowerBound(e);o=s(0,o,Math.max(this._rowCount-1,0));var i=this._rowOffsets.sumUntil(o),n=i-e;return this._updateHeightsInViewport(o,n),this._updateHeightsAboveViewport(o),{index:o,offset:n,position:this._position,contentHeight:this._contentHeight}}},{key:"scrollToRow",value:function(e,t){e=s(0,e,Math.max(this._rowCount-1,0)),t=s(-this._storedHeights[e],t,0);var o=this._rowOffsets.sumUntil(e);return this.scrollTo(o-t)}},{key:"scrollRowIntoView",value:function(e){e=s(0,e,Math.max(this._rowCount-1,0));var t=this._rowOffsets.sumUntil(e),o=t+this._storedHeights[e];if(tt;)t*=2;return t}var r=function(){function e(e,t){for(var o=0;o=0;--o)t[o]=0;return t},u=function(){function e(t){i(this,e),this._size=t.length,this._half=n(this._size),this._heap=new l(2*this._half);var o;for(o=0;o0;--o)this._heap[o]=this._heap[2*o]+this._heap[2*o+1]}return r(e,[{key:"set",value:function(e,t){s(e>=0&&e=0&&e=0&&e=0&&e=e,"Begin must precede end"),this.sumUntil(t)-this.sumUntil(e)}},{key:"greatestLowerBound",value:function(e){if(0>e)return-1;var t=1;if(this._heap[t]<=e)return this._size;for(;te?t=2*t:(t=2*t+1,e-=o)}return t-this._half}},{key:"greatestStrictLowerBound",value:function(e){if(0>=e)return-1;var t=1;if(this._heap[t]=e?t=2*t:(t=2*t+1,e-=o)}return t-this._half}},{key:"leastUpperBound",value:function(e){return this.greatestStrictLowerBound(e)+1}},{key:"leastStrictUpperBound",value:function(e){return this.greatestLowerBound(e)+1}}],[{key:"uniform",value:function(t,o){for(var i=[],n=t-1;n>=0;--n)i[n]=o;return new e(i)}},{key:"empty",value:function(t){return e.uniform(t,0)}}]),e}();e.exports=u}).call(t,function(){return this}())},function(e,t,o){"use strict";function i(e){for(var t=0,o=0;o=t)return{columns:e,width:i(e)};for(var o=n(e),r=t,s=[],a=0,u=0;uo?r(e,t-o).columns:e}var l=o(29),u={getTotalWidth:i,getTotalFlexGrow:n,distributeFlexWidth:r,adjustColumnWidths:a,adjustColumnGroupWidths:s};e.exports=u},function(e,t){"use strict";function o(e,t,o,i,n){function r(){for(var n=arguments.length,a=Array(n),l=0;n>l;l++)a[l]=arguments[l];r.reset();var u=function(){e.apply(o,a)};u.__SMmeta=e.__SMmeta,s=i(u,t)}i=i||setTimeout,n=n||clearTimeout;var s;return r.reset=function(){n(s)},r}e.exports=o},function(e,t){"use strict";function o(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),r=0;r