diff --git a/docs/blueprint-landing.css b/docs/blueprint-landing.css index b9b37b31cd..1dde90e656 100644 --- a/docs/blueprint-landing.css +++ b/docs/blueprint-landing.css @@ -4824,38 +4824,48 @@ label.pt-label { .pt-disabled.pt-select::after { color: rgba(92, 112, 128, 0.5); } -.pt-numeric-input .pt-button-group.pt-vertical > .pt-button { - min-width: 30px; - min-height: 30px; - line-height: 30px; +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { + min-height: 16px; } + +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { + min-height: 15px; } + +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { + border-radius: 0 3px 0 0; } + +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { + border-radius: 0 0 3px 0; } + +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button[class*="pt-icon-"]::before { display: block; - min-height: 15px; - line-height: 15px; } - .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { - border-radius: 0 3px 0 0; - height: 16px; } - .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { - border-radius: 0 0 3px 0; - height: 15px; } - .pt-numeric-input .pt-button-group.pt-vertical > .pt-button[class*="pt-icon-"]::before { - display: block; - height: 14px; - overflow: hidden; - line-height: 14px; } + height: 14px; + overflow: hidden; + line-height: 14px; } -.pt-numeric-input .pt-button-group:first-child.pt-vertical > .pt-button:first-child { +.pt-numeric-input .pt-button-group.pt-vertical:first-child > .pt-button:first-child { border-radius: 3px 0 0 0; } -.pt-numeric-input .pt-button-group:first-child.pt-vertical > .pt-button:last-child { +.pt-numeric-input .pt-button-group.pt-vertical:first-child > .pt-button:last-child { border-radius: 0 0 0 3px; } +.pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:first-child { + min-height: 21px; } + +.pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:last-child { + min-height: 20px; } + .pt-dark .pt-numeric-input .pt-button-group.pt-vertical > .pt-button { - min-height: 14px; line-height: 14px; } .pt-dark .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { - height: 15px; } + min-height: 15px; } .pt-dark .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { - height: 14px; } + min-height: 14px; } + +.pt-dark .pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:first-child { + min-height: 20px; } + +.pt-dark .pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:last-child { + min-height: 19px; } form { display: block; } @@ -7013,7 +7023,6 @@ header { margin-bottom: 100px; box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.1); background: #ffffff; - background-image: -webkit-linear-gradient(left, #ffffff, #ebf1f5); background-image: linear-gradient(to right, #ffffff, #ebf1f5); overflow: hidden; padding: 90px 0; } @@ -7067,7 +7076,6 @@ header { .pt-getting-started { position: relative; box-shadow: 0 1px 0 rgba(16, 22, 26, 0.8); - background-image: -webkit-radial-gradient(ellipse farthest-side at center -300px, rgba(32, 43, 51, 0) 0%, #202b33 100%); background-image: radial-gradient(ellipse farthest-side at center -300px, rgba(32, 43, 51, 0) 0%, #202b33 100%); padding: 90px 0; } .pt-getting-started::before, .pt-getting-started::after { @@ -7121,7 +7129,6 @@ header { .pt-about { background-color: #182026; - background-image: -webkit-radial-gradient(ellipse farthest-side at center 700px, #182026 0%, #10161a 100%); background-image: radial-gradient(ellipse farthest-side at center 700px, #182026 0%, #10161a 100%); padding: 90px 0 0; text-align: center; } @@ -7154,7 +7161,6 @@ header { text-align: left; } .pt-copyright::before { display: block; - background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%); background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%); height: 1px; content: ""; } @@ -7182,7 +7188,6 @@ header { padding-bottom: 80px; } .pt-info .pt-description { margin-bottom: 80px; - background-image: -webkit-linear-gradient(top, #ffffff, #ebf1f5); background-image: linear-gradient(to bottom, #ffffff, #ebf1f5); padding-top: 50px; padding-bottom: 250px; } diff --git a/docs/blueprint-landing.js b/docs/blueprint-landing.js index 0a035f7cca..c1f1999af8 100644 --- a/docs/blueprint-landing.js +++ b/docs/blueprint-landing.js @@ -94,9 +94,9 @@ "use strict"; var core_1 = __webpack_require__(17); core_1.FocusStyleManager.onlyShowFocusOnTabs(); - var Logo = __webpack_require__(288); + var Logo = __webpack_require__(290); Logo.init(document.querySelector("header canvas.pt-logo"), document.querySelector("header canvas.pt-logo-background")); - var SVGs = __webpack_require__(289); + var SVGs = __webpack_require__(291); SVGs.init(document.querySelector(".pt-wireframes")); var copyright = ".pt-copyright .pt-container > div:first-child"; document.querySelector(copyright).innerHTML = "\u00A9 2014\u2013" + new Date().getFullYear() + " Palantir Technologies"; @@ -120,9 +120,9 @@ __export(__webpack_require__(18)); __export(__webpack_require__(21)); __export(__webpack_require__(68)); - var iconClasses_1 = __webpack_require__(286); + var iconClasses_1 = __webpack_require__(288); exports.IconClasses = iconClasses_1.IconClasses; - var iconStrings_1 = __webpack_require__(287); + var iconStrings_1 = __webpack_require__(289); exports.IconContents = iconStrings_1.IconContents; //# sourceMappingURL=index.js.map @@ -390,6 +390,7 @@ var __values; var __read; var __spread; + var __await; var __asyncGenerator; var __asyncDelegator; var __asyncValues; @@ -527,24 +528,26 @@ return ar; }; + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), q = [], c, i; - return i = { next: verb("next"), "throw": verb("throw"), "return": verb("return") }, i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { return function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]), next(); }); }; } - function next() { if (!c && q.length) resume((c = q.shift())[0], c[1]); } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(c[3], e); } } - function step(r) { r.done ? settle(c[2], r) : r.value[0] === "yield" ? settle(c[2], { value: r.value[1], done: false }) : Promise.resolve(r.value[1]).then(r.value[0] === "delegate" ? delegate : fulfill, reject); } - function delegate(r) { step(r.done ? r : { value: ["yield", r.value], done: false }); } + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } - function settle(f, v) { c = void 0, f(v), next(); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } }; __asyncDelegator = function (o) { - var i = { next: verb("next"), "throw": verb("throw", function (e) { throw e; }), "return": verb("return", function (v) { return { value: v, done: true }; }) }; - return o = __asyncValues(o), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { return function (v) { return { value: ["delegate", (o[n] || f).call(o, v)], done: false }; }; } + var i, p; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } }; __asyncValues = function (o) { @@ -565,6 +568,7 @@ exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); + exporter("__await", __await); exporter("__asyncGenerator", __asyncGenerator); exporter("__asyncDelegator", __asyncDelegator); exporter("__asyncValues", __asyncValues); @@ -863,6 +867,10 @@ process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); @@ -5541,46 +5549,46 @@ } var contextMenu = __webpack_require__(70); exports.ContextMenu = contextMenu; - __export(__webpack_require__(238)); - __export(__webpack_require__(243)); - __export(__webpack_require__(239)); - __export(__webpack_require__(244)); + __export(__webpack_require__(240)); __export(__webpack_require__(245)); - __export(__webpack_require__(248)); - __export(__webpack_require__(242)); - __export(__webpack_require__(249)); - __export(__webpack_require__(252)); - __export(__webpack_require__(253)); + __export(__webpack_require__(241)); + __export(__webpack_require__(246)); + __export(__webpack_require__(247)); + __export(__webpack_require__(250)); + __export(__webpack_require__(244)); + __export(__webpack_require__(251)); __export(__webpack_require__(254)); __export(__webpack_require__(255)); __export(__webpack_require__(256)); - __export(__webpack_require__(246)); - __export(__webpack_require__(263)); - __export(__webpack_require__(247)); - __export(__webpack_require__(264)); - __export(__webpack_require__(221)); + __export(__webpack_require__(257)); + __export(__webpack_require__(258)); + __export(__webpack_require__(248)); __export(__webpack_require__(265)); - __export(__webpack_require__(217)); + __export(__webpack_require__(249)); __export(__webpack_require__(266)); - __export(__webpack_require__(235)); + __export(__webpack_require__(221)); __export(__webpack_require__(267)); + __export(__webpack_require__(217)); __export(__webpack_require__(268)); + __export(__webpack_require__(237)); __export(__webpack_require__(269)); - __export(__webpack_require__(272)); - __export(__webpack_require__(241)); - __export(__webpack_require__(273)); + __export(__webpack_require__(270)); + __export(__webpack_require__(271)); __export(__webpack_require__(274)); + __export(__webpack_require__(243)); __export(__webpack_require__(275)); __export(__webpack_require__(276)); __export(__webpack_require__(277)); __export(__webpack_require__(278)); __export(__webpack_require__(279)); + __export(__webpack_require__(280)); __export(__webpack_require__(281)); - __export(__webpack_require__(282)); __export(__webpack_require__(283)); - __export(__webpack_require__(236)); __export(__webpack_require__(284)); __export(__webpack_require__(285)); + __export(__webpack_require__(238)); + __export(__webpack_require__(286)); + __export(__webpack_require__(287)); //# sourceMappingURL=index.js.map @@ -24145,8 +24153,8 @@ var TetherUtils = __webpack_require__(65); var Utils = __webpack_require__(59); var overlay_1 = __webpack_require__(221); - var tooltip_1 = __webpack_require__(236); - var Arrows = __webpack_require__(237); + var tooltip_1 = __webpack_require__(238); + var Arrows = __webpack_require__(239); var SVG_SHADOW_PATH = "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378" + "-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"; var SVG_ARROW_PATH = "M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005" + @@ -26487,7 +26495,7 @@ var Classes = __webpack_require__(66); var Keys = __webpack_require__(67); var utils_1 = __webpack_require__(59); - var portal_1 = __webpack_require__(235); + var portal_1 = __webpack_require__(237); var Overlay = Overlay_1 = (function (_super) { tslib_1.__extends(Overlay, _super); function Overlay(props, context) { @@ -26689,81 +26697,69 @@ /* 222 */ /***/ function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(223); + 'use strict'; -/***/ }, -/* 223 */ -/***/ function(module, exports, __webpack_require__) { + exports.__esModule = true; - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ + 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; }; - 'use strict'; + var _react = __webpack_require__(24); - var _assign = __webpack_require__(27); + var _react2 = _interopRequireDefault(_react); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _propTypes = __webpack_require__(223); - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _propTypes2 = _interopRequireDefault(_propTypes); - 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 _TransitionGroup = __webpack_require__(225); - var React = __webpack_require__(25); - var propTypesFactory = __webpack_require__(53); - var PropTypes = propTypesFactory(React.isValidElement); + var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup); - var ReactTransitionGroup = __webpack_require__(224); - var ReactCSSTransitionGroupChild = __webpack_require__(227); + var _CSSTransitionGroupChild = __webpack_require__(229); - function createTransitionTimeoutPropValidator(transitionType) { - var timeoutPropName = 'transition' + transitionType + 'Timeout'; - var enabledPropName = 'transition' + transitionType; + var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild); - return function (props) { - // If the transition is enabled - if (props[enabledPropName]) { - // If no timeout duration is provided - if (props[timeoutPropName] == null) { - return new Error(timeoutPropName + ' wasn\'t supplied to ReactCSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); + var _PropTypes = __webpack_require__(236); - // If the duration isn't a number - } else if (typeof props[timeoutPropName] !== 'number') { - return new Error(timeoutPropName + ' must be a number (in milliseconds)'); - } - } - }; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /** - * An easy way to perform CSS transitions and animations when a React component - * enters or leaves the DOM. - * See https://facebook.github.io/react/docs/animation.html#high-level-api-reactcsstransitiongroup - */ + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var ReactCSSTransitionGroup = function (_React$Component) { - _inherits(ReactCSSTransitionGroup, _React$Component); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + 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 propTypes = { + transitionName: _PropTypes.nameShape.isRequired, + + transitionAppear: _propTypes2.default.bool, + transitionEnter: _propTypes2.default.bool, + transitionLeave: _propTypes2.default.bool, + transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'), + transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'), + transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave') + }; + + var defaultProps = { + transitionAppear: false, + transitionEnter: true, + transitionLeave: true + }; - function ReactCSSTransitionGroup() { + var CSSTransitionGroup = function (_React$Component) { + _inherits(CSSTransitionGroup, _React$Component); + + function CSSTransitionGroup() { var _temp, _this, _ret; - _classCallCheck(this, ReactCSSTransitionGroup); + _classCallCheck(this, CSSTransitionGroup); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) { - // We need to provide this childFactory so that - // ReactCSSTransitionGroupChild can receive updates to name, enter, and - // leave while it is leaving. - return React.createElement(ReactCSSTransitionGroupChild, { + return _react2.default.createElement(_CSSTransitionGroupChild2.default, { name: _this.props.transitionName, appear: _this.props.transitionAppear, enter: _this.props.transitionEnter, @@ -26775,32 +26771,63 @@ }, _temp), _possibleConstructorReturn(_this, _ret); } - ReactCSSTransitionGroup.prototype.render = function render() { - return React.createElement(ReactTransitionGroup, _assign({}, this.props, { childFactory: this._wrapChild })); + // We need to provide this childFactory so that + // ReactCSSTransitionGroupChild can receive updates to name, enter, and + // leave while it is leaving. + + + CSSTransitionGroup.prototype.render = function render() { + return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild })); }; - return ReactCSSTransitionGroup; - }(React.Component); + return CSSTransitionGroup; + }(_react2.default.Component); - ReactCSSTransitionGroup.displayName = 'ReactCSSTransitionGroup'; - ReactCSSTransitionGroup.propTypes = { - transitionName: ReactCSSTransitionGroupChild.propTypes.name, + CSSTransitionGroup.displayName = 'CSSTransitionGroup'; - transitionAppear: PropTypes.bool, - transitionEnter: PropTypes.bool, - transitionLeave: PropTypes.bool, - transitionAppearTimeout: createTransitionTimeoutPropValidator('Appear'), - transitionEnterTimeout: createTransitionTimeoutPropValidator('Enter'), - transitionLeaveTimeout: createTransitionTimeoutPropValidator('Leave') - }; - ReactCSSTransitionGroup.defaultProps = { - transitionAppear: false, - transitionEnter: true, - transitionLeave: true - }; + CSSTransitionGroup.propTypes = propTypes; + CSSTransitionGroup.defaultProps = defaultProps; - module.exports = ReactCSSTransitionGroup; + exports.default = CSSTransitionGroup; + module.exports = exports['default']; + +/***/ }, +/* 223 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + + if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(54)(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(224)(); + } + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) /***/ }, /* 224 */ @@ -26813,100 +26840,172 @@ * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. - * */ 'use strict'; - var _assign = __webpack_require__(27); + var emptyFunction = __webpack_require__(35); + var invariant = __webpack_require__(31); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + module.exports = function() { + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + function shim() { + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; - 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; } + return ReactPropTypes; + }; - var React = __webpack_require__(25); - var ReactTransitionChildMapping = __webpack_require__(225); - var propTypesFactory = __webpack_require__(53); - var PropTypes = propTypesFactory(React.isValidElement); +/***/ }, +/* 225 */ +/***/ function(module, exports, __webpack_require__) { - var emptyFunction = __webpack_require__(35); + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; - /** - * A basis for animations. When children are declaratively added or removed, - * special lifecycle hooks are called. - * See https://facebook.github.io/react/docs/animation.html#low-level-api-reacttransitiongroup - */ + exports.__esModule = true; - var ReactTransitionGroup = function (_React$Component) { - _inherits(ReactTransitionGroup, _React$Component); + 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; }; - function ReactTransitionGroup() { - var _temp, _this, _ret; + var _chainFunction = __webpack_require__(226); - _classCallCheck(this, ReactTransitionGroup); + var _chainFunction2 = _interopRequireDefault(_chainFunction); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _react = __webpack_require__(24); + + var _react2 = _interopRequireDefault(_react); + + var _propTypes = __webpack_require__(223); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + var _warning = __webpack_require__(227); + + var _warning2 = _interopRequireDefault(_warning); + + var _ChildMapping = __webpack_require__(228); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + 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; } - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { - // TODO: can we get useful debug information to show at this point? - children: ReactTransitionChildMapping.getChildMapping(_this.props.children) - }, _this.performAppear = function (key) { + var propTypes = { + component: _propTypes2.default.any, + childFactory: _propTypes2.default.func, + children: _propTypes2.default.node + }; + + var defaultProps = { + component: 'span', + childFactory: function childFactory(child) { + return child; + } + }; + + var TransitionGroup = function (_React$Component) { + _inherits(TransitionGroup, _React$Component); + + function TransitionGroup(props, context) { + _classCallCheck(this, TransitionGroup); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + + _this.performAppear = function (key) { _this.currentlyTransitioningKeys[key] = true; - var component = _this.refs[key]; + var component = _this.childRefs[key]; if (component.componentWillAppear) { component.componentWillAppear(_this._handleDoneAppearing.bind(_this, key)); } else { _this._handleDoneAppearing(key); } - }, _this._handleDoneAppearing = function (key) { - var component = _this.refs[key]; - if (component.componentDidAppear) { + }; + + _this._handleDoneAppearing = function (key) { + var component = _this.childRefs[key]; + if (component && component.componentDidAppear) { component.componentDidAppear(); } delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = ReactTransitionChildMapping.getChildMapping(_this.props.children); + var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) { // This was removed before it had fully appeared. Remove it. _this.performLeave(key); } - }, _this.performEnter = function (key) { + }; + + _this.performEnter = function (key) { _this.currentlyTransitioningKeys[key] = true; - var component = _this.refs[key]; + var component = _this.childRefs[key]; if (component.componentWillEnter) { component.componentWillEnter(_this._handleDoneEntering.bind(_this, key)); } else { _this._handleDoneEntering(key); } - }, _this._handleDoneEntering = function (key) { - var component = _this.refs[key]; - if (component.componentDidEnter) { + }; + + _this._handleDoneEntering = function (key) { + var component = _this.childRefs[key]; + if (component && component.componentDidEnter) { component.componentDidEnter(); } delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = ReactTransitionChildMapping.getChildMapping(_this.props.children); + var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) { // This was removed before it had fully entered. Remove it. _this.performLeave(key); } - }, _this.performLeave = function (key) { + }; + + _this.performLeave = function (key) { _this.currentlyTransitioningKeys[key] = true; - var component = _this.refs[key]; + var component = _this.childRefs[key]; if (component.componentWillLeave) { component.componentWillLeave(_this._handleDoneLeaving.bind(_this, key)); } else { @@ -26915,37 +27014,46 @@ // is done. _this._handleDoneLeaving(key); } - }, _this._handleDoneLeaving = function (key) { - var component = _this.refs[key]; + }; - if (component.componentDidLeave) { + _this._handleDoneLeaving = function (key) { + var component = _this.childRefs[key]; + + if (component && component.componentDidLeave) { component.componentDidLeave(); } delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = ReactTransitionChildMapping.getChildMapping(_this.props.children); + var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); if (currentChildMapping && currentChildMapping.hasOwnProperty(key)) { // This entered again before it fully left. Add it again. _this.performEnter(key); } else { _this.setState(function (state) { - var newChildren = _assign({}, state.children); + var newChildren = _extends({}, state.children); delete newChildren[key]; return { children: newChildren }; }); } - }, _temp), _possibleConstructorReturn(_this, _ret); + }; + + _this.childRefs = Object.create(null); + + _this.state = { + children: (0, _ChildMapping.getChildMapping)(props.children) + }; + return _this; } - ReactTransitionGroup.prototype.componentWillMount = function componentWillMount() { + TransitionGroup.prototype.componentWillMount = function componentWillMount() { this.currentlyTransitioningKeys = {}; this.keysToEnter = []; this.keysToLeave = []; }; - ReactTransitionGroup.prototype.componentDidMount = function componentDidMount() { + TransitionGroup.prototype.componentDidMount = function componentDidMount() { var initialChildMapping = this.state.children; for (var key in initialChildMapping) { if (initialChildMapping[key]) { @@ -26954,34 +27062,32 @@ } }; - ReactTransitionGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var nextChildMapping = ReactTransitionChildMapping.getChildMapping(nextProps.children); + TransitionGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var nextChildMapping = (0, _ChildMapping.getChildMapping)(nextProps.children); var prevChildMapping = this.state.children; this.setState({ - children: ReactTransitionChildMapping.mergeChildMappings(prevChildMapping, nextChildMapping) + children: (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping) }); - var key; - - for (key in nextChildMapping) { + for (var key in nextChildMapping) { var hasPrev = prevChildMapping && prevChildMapping.hasOwnProperty(key); if (nextChildMapping[key] && !hasPrev && !this.currentlyTransitioningKeys[key]) { this.keysToEnter.push(key); } } - for (key in prevChildMapping) { - var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(key); - if (prevChildMapping[key] && !hasNext && !this.currentlyTransitioningKeys[key]) { - this.keysToLeave.push(key); + for (var _key in prevChildMapping) { + var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(_key); + if (prevChildMapping[_key] && !hasNext && !this.currentlyTransitioningKeys[_key]) { + this.keysToLeave.push(_key); } } // If we want to someday check for reordering, we could do it here. }; - ReactTransitionGroup.prototype.componentDidUpdate = function componentDidUpdate() { + TransitionGroup.prototype.componentDidUpdate = function componentDidUpdate() { var keysToEnter = this.keysToEnter; this.keysToEnter = []; keysToEnter.forEach(this.performEnter); @@ -26991,24 +27097,50 @@ keysToLeave.forEach(this.performLeave); }; - ReactTransitionGroup.prototype.render = function render() { + TransitionGroup.prototype.render = function render() { + var _this2 = this; + // TODO: we could get rid of the need for the wrapper node // by cloning a single child var childrenToRender = []; - for (var key in this.state.children) { - var child = this.state.children[key]; + + var _loop = function _loop(key) { + var child = _this2.state.children[key]; if (child) { + var isCallbackRef = typeof child.ref !== 'string'; + var factoryChild = _this2.props.childFactory(child); + var ref = function ref(r) { + _this2.childRefs[key] = r; + }; + + process.env.NODE_ENV !== 'production' ? (0, _warning2.default)(isCallbackRef, 'string refs are not supported on children of TransitionGroup and will be ignored. ' + 'Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute') : void 0; + + // Always chaining the refs leads to problems when the childFactory + // wraps the child. The child ref callback gets called twice with the + // wrapper and the child. So we only need to chain the ref if the + // factoryChild is not different from child. + if (factoryChild === child && isCallbackRef) { + ref = (0, _chainFunction2.default)(child.ref, ref); + } + // You may need to apply reactive updates to a child as it is leaving. // The normal React way to do it won't work since the child will have // already been removed. In case you need this behavior you can provide // a childFactory function to wrap every child, even the ones that are // leaving. - childrenToRender.push(React.cloneElement(this.props.childFactory(child), { ref: key, key: key })); + childrenToRender.push(_react2.default.cloneElement(factoryChild, { + key: key, + ref: ref + })); } + }; + + for (var key in this.state.children) { + _loop(key); } - // Do not forward ReactTransitionGroup props to primitive DOM nodes - var props = _assign({}, this.props); + // Do not forward TransitionGroup props to primitive DOM nodes + var props = _extends({}, this.props); delete props.transitionLeave; delete props.transitionName; delete props.transitionAppear; @@ -27019,326 +27151,304 @@ delete props.transitionAppearTimeout; delete props.component; - return React.createElement(this.props.component, props, childrenToRender); + return _react2.default.createElement(this.props.component, props, childrenToRender); }; - return ReactTransitionGroup; - }(React.Component); + return TransitionGroup; + }(_react2.default.Component); + + TransitionGroup.displayName = 'TransitionGroup'; - ReactTransitionGroup.displayName = 'ReactTransitionGroup'; - ReactTransitionGroup.propTypes = { - component: PropTypes.any, - childFactory: PropTypes.func - }; - ReactTransitionGroup.defaultProps = { - component: 'span', - childFactory: emptyFunction.thatReturnsArgument - }; + TransitionGroup.propTypes = propTypes; + TransitionGroup.defaultProps = defaultProps; - module.exports = ReactTransitionGroup; + exports.default = TransitionGroup; + module.exports = exports['default']; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) /***/ }, -/* 225 */ +/* 226 */ +/***/ function(module, exports) { + + + module.exports = function chain(){ + var len = arguments.length + var args = []; + + for (var i = 0; i < len; i++) + args[i] = arguments[i] + + args = args.filter(function(fn){ return fn != null }) + + if (args.length === 0) return undefined + if (args.length === 1) return args[0] + + return args.reduce(function(current, next){ + return function chainedFunction() { + current.apply(this, arguments); + next.apply(this, arguments); + }; + }) + } + + +/***/ }, +/* 227 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. + * Copyright 2014-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. - * */ 'use strict'; - var flattenChildren = __webpack_require__(226); + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - var ReactTransitionChildMapping = { - /** - * Given `this.props.children`, return an object mapping key to child. Just - * simple syntactic sugar around flattenChildren(). - * - * @param {*} children `this.props.children` - * @param {number=} selfDebugID Optional debugID of the current internal instance. - * @return {object} Mapping of key to child - */ - getChildMapping: function (children, selfDebugID) { - if (!children) { - return children; - } + var warning = function() {}; - if (process.env.NODE_ENV !== 'production') { - return flattenChildren(children, selfDebugID); + if (process.env.NODE_ENV !== 'production') { + warning = function(condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; } - - return flattenChildren(children); - }, - - /** - * When you're adding or removing children some may be added or removed in the - * same render pass. We want to show *both* since we want to simultaneously - * animate elements in and out. This function takes a previous set of keys - * and a new set of keys and merges them with its best guess of the correct - * ordering. In the future we may expose some of the utilities in - * ReactMultiChild to make this easy, but for now React itself does not - * directly have this concept of the union of prevChildren and nextChildren - * so we implement it here. - * - * @param {object} prev prev children as returned from - * `ReactTransitionChildMapping.getChildMapping()`. - * @param {object} next next children as returned from - * `ReactTransitionChildMapping.getChildMapping()`. - * @return {object} a key set that contains all keys in `prev` and all keys - * in `next` in a reasonable order. - */ - mergeChildMappings: function (prev, next) { - prev = prev || {}; - next = next || {}; - - function getValueForKey(key) { - if (next.hasOwnProperty(key)) { - return next[key]; - } else { - return prev[key]; - } + if (format === undefined) { + throw new Error( + '`warning(condition, format, ...args)` requires a warning ' + + 'message argument' + ); } - // For each key of `next`, the list of keys to insert before that key in - // the combined list - var nextKeysPending = {}; - - var pendingKeys = []; - for (var prevKey in prev) { - if (next.hasOwnProperty(prevKey)) { - if (pendingKeys.length) { - nextKeysPending[prevKey] = pendingKeys; - pendingKeys = []; - } - } else { - pendingKeys.push(prevKey); - } + if (format.length < 10 || (/^[s\W]*$/).test(format)) { + throw new Error( + 'The warning format should be able to uniquely identify this ' + + 'warning. Please, use a more descriptive format than: ' + format + ); } - var i; - var childMapping = {}; - for (var nextKey in next) { - if (nextKeysPending.hasOwnProperty(nextKey)) { - for (i = 0; i < nextKeysPending[nextKey].length; i++) { - var pendingNextKey = nextKeysPending[nextKey][i]; - childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); - } + if (!condition) { + var argIndex = 0; + var message = 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } - childMapping[nextKey] = getValueForKey(nextKey); - } - - // Finally, add the keys which didn't appear before any key in `next` - for (i = 0; i < pendingKeys.length; i++) { - childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); + try { + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch(x) {} } + }; + } - return childMapping; - } - }; + module.exports = warning; - module.exports = ReactTransitionChildMapping; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) /***/ }, -/* 226 */ +/* 228 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - 'use strict'; - var KeyEscapeUtils = __webpack_require__(40); - var traverseAllChildren = __webpack_require__(38); - var warning = __webpack_require__(34); + exports.__esModule = true; + exports.getChildMapping = getChildMapping; + exports.mergeChildMappings = mergeChildMappings; - var ReactComponentTreeHook; + var _react = __webpack_require__(24); - if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') { - // Temporary hack. - // Inline requires don't work well with Jest: - // https://github.com/facebook/react/issues/7240 - // Remove the inline requires when we don't need them anymore: - // https://github.com/facebook/react/pull/7178 - ReactComponentTreeHook = __webpack_require__(49); + /** + * Given `this.props.children`, return an object mapping key to child. + * + * @param {*} children `this.props.children` + * @return {object} Mapping of key to child + */ + function getChildMapping(children) { + if (!children) { + return children; + } + var result = {}; + _react.Children.map(children, function (child) { + return child; + }).forEach(function (child) { + result[child.key] = child; + }); + return result; } /** - * @param {function} traverseContext Context passed through traversal. - * @param {?ReactComponent} child React child component. - * @param {!string} name String name of key path to child. - * @param {number=} selfDebugID Optional debugID of the current internal instance. + * When you're adding or removing children some may be added or removed in the + * same render pass. We want to show *both* since we want to simultaneously + * animate elements in and out. This function takes a previous set of keys + * and a new set of keys and merges them with its best guess of the correct + * ordering. In the future we may expose some of the utilities in + * ReactMultiChild to make this easy, but for now React itself does not + * directly have this concept of the union of prevChildren and nextChildren + * so we implement it here. + * + * @param {object} prev prev children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @param {object} next next children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @return {object} a key set that contains all keys in `prev` and all keys + * in `next` in a reasonable order. */ - function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) { - // We found a component instance. - if (traverseContext && typeof traverseContext === 'object') { - var result = traverseContext; - var keyUnique = result[name] === undefined; - if (process.env.NODE_ENV !== 'production') { - if (!ReactComponentTreeHook) { - ReactComponentTreeHook = __webpack_require__(49); - } - if (!keyUnique) { - process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; - } + function mergeChildMappings(prev, next) { + prev = prev || {}; + next = next || {}; + + function getValueForKey(key) { + if (next.hasOwnProperty(key)) { + return next[key]; } - if (keyUnique && child != null) { - result[name] = child; + + return prev[key]; + } + + // For each key of `next`, the list of keys to insert before that key in + // the combined list + var nextKeysPending = {}; + + var pendingKeys = []; + for (var prevKey in prev) { + if (next.hasOwnProperty(prevKey)) { + if (pendingKeys.length) { + nextKeysPending[prevKey] = pendingKeys; + pendingKeys = []; + } + } else { + pendingKeys.push(prevKey); } } - } - /** - * Flattens children that are typically specified as `props.children`. Any null - * children will not be included in the resulting object. - * @return {!object} flattened children keyed by name. - */ - function flattenChildren(children, selfDebugID) { - if (children == null) { - return children; + var i = void 0; + var childMapping = {}; + for (var nextKey in next) { + if (nextKeysPending.hasOwnProperty(nextKey)) { + for (i = 0; i < nextKeysPending[nextKey].length; i++) { + var pendingNextKey = nextKeysPending[nextKey][i]; + childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); + } + } + childMapping[nextKey] = getValueForKey(nextKey); } - var result = {}; - if (process.env.NODE_ENV !== 'production') { - traverseAllChildren(children, function (traverseContext, child, name) { - return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID); - }, result); - } else { - traverseAllChildren(children, flattenSingleChildIntoContext, result); + // Finally, add the keys which didn't appear before any key in `next` + for (i = 0; i < pendingKeys.length; i++) { + childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); } - return result; - } - module.exports = flattenChildren; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) + return childMapping; + } /***/ }, -/* 227 */ +/* 229 */ /***/ function(module, exports, __webpack_require__) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + exports.__esModule = true; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + 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; }; - 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 _addClass = __webpack_require__(230); - var React = __webpack_require__(25); - var ReactAddonsDOMDependencies = __webpack_require__(228); + var _addClass2 = _interopRequireDefault(_addClass); - var propTypesFactory = __webpack_require__(53); - var PropTypes = propTypesFactory(React.isValidElement); + var _removeClass = __webpack_require__(232); - var CSSCore = __webpack_require__(233); - var ReactTransitionEvents = __webpack_require__(234); + var _removeClass2 = _interopRequireDefault(_removeClass); - var onlyChild = __webpack_require__(58); + var _requestAnimationFrame = __webpack_require__(233); - var TICK = 17; + var _requestAnimationFrame2 = _interopRequireDefault(_requestAnimationFrame); - var ReactCSSTransitionGroupChild = function (_React$Component) { - _inherits(ReactCSSTransitionGroupChild, _React$Component); + var _properties = __webpack_require__(235); - function ReactCSSTransitionGroupChild() { - var _temp, _this, _ret; + var _react = __webpack_require__(24); - _classCallCheck(this, ReactCSSTransitionGroupChild); + var _react2 = _interopRequireDefault(_react); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _propTypes = __webpack_require__(223); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._isMounted = false, _this.transition = function (animationType, finishCallback, userSpecifiedDelay) { - var node = ReactAddonsDOMDependencies.getReactDOM().findDOMNode(_this); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (!node) { - if (finishCallback) { - finishCallback(); - } - return; - } + var _reactDom = __webpack_require__(71); - var className = _this.props.name[animationType] || _this.props.name + '-' + animationType; - var activeClassName = _this.props.name[animationType + 'Active'] || className + '-active'; - var timeout = null; + var _PropTypes = __webpack_require__(236); - var endListener = function (e) { - if (e && e.target !== node) { - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - clearTimeout(timeout); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - CSSCore.removeClass(node, className); - CSSCore.removeClass(node, activeClassName); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - ReactTransitionEvents.removeEndEventListener(node, endListener); + 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; } - // Usually this optional callback is used for informing an owner of - // a leave animation and telling it to remove the child. - if (finishCallback) { - finishCallback(); - } - }; + var events = []; + if (_properties.transitionEnd) events.push(_properties.transitionEnd); + if (_properties.animationEnd) events.push(_properties.animationEnd); - CSSCore.addClass(node, className); + function addEndListener(node, listener) { + if (events.length) { + events.forEach(function (e) { + return node.addEventListener(e, listener, false); + }); + } else { + setTimeout(listener, 0); + } - // Need to do this to actually trigger a transition. - _this.queueClassAndNode(activeClassName, node); + return function () { + if (!events.length) return; + events.forEach(function (e) { + return node.removeEventListener(e, listener, false); + }); + }; + } - // If the user specified a timeout delay. - if (userSpecifiedDelay) { - // Clean-up the animation after the specified delay - timeout = setTimeout(endListener, userSpecifiedDelay); - _this.transitionTimeouts.push(timeout); - } else { - // DEPRECATED: this listener will be removed in a future version of react - ReactTransitionEvents.addEndEventListener(node, endListener); - } - }, _this.queueClassAndNode = function (className, node) { - _this.classNameAndNodeQueue.push({ - className: className, - node: node - }); + var propTypes = { + children: _propTypes2.default.node, + name: _PropTypes.nameShape.isRequired, - if (!_this.timeout) { - _this.timeout = setTimeout(_this.flushClassNameAndNodeQueue, TICK); - } - }, _this.flushClassNameAndNodeQueue = function () { - if (_this._isMounted) { - _this.classNameAndNodeQueue.forEach(function (obj) { - CSSCore.addClass(obj.node, obj.className); - }); - } - _this.classNameAndNodeQueue.length = 0; - _this.timeout = null; - }, _this.componentWillAppear = function (done) { + // Once we require timeouts to be specified, we can remove the + // boolean flags (appear etc.) and just accept a number + // or a bool for the timeout flags (appearTimeout etc.) + appear: _propTypes2.default.bool, + enter: _propTypes2.default.bool, + leave: _propTypes2.default.bool, + appearTimeout: _propTypes2.default.number, + enterTimeout: _propTypes2.default.number, + leaveTimeout: _propTypes2.default.number + }; + + var CSSTransitionGroupChild = function (_React$Component) { + _inherits(CSSTransitionGroupChild, _React$Component); + + function CSSTransitionGroupChild() { + var _temp, _this, _ret; + + _classCallCheck(this, CSSTransitionGroupChild); + + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.componentWillAppear = function (done) { if (_this.props.appear) { _this.transition('appear', done, _this.props.appearTimeout); } else { @@ -27359,17 +27469,13 @@ }, _temp), _possibleConstructorReturn(_this, _ret); } - ReactCSSTransitionGroupChild.prototype.componentWillMount = function componentWillMount() { + CSSTransitionGroupChild.prototype.componentWillMount = function componentWillMount() { this.classNameAndNodeQueue = []; this.transitionTimeouts = []; }; - ReactCSSTransitionGroupChild.prototype.componentDidMount = function componentDidMount() { - this._isMounted = true; - }; - - ReactCSSTransitionGroupChild.prototype.componentWillUnmount = function componentWillUnmount() { - this._isMounted = false; + CSSTransitionGroupChild.prototype.componentWillUnmount = function componentWillUnmount() { + this.unmounted = true; if (this.timeout) { clearTimeout(this.timeout); @@ -27381,1468 +27487,397 @@ this.classNameAndNodeQueue.length = 0; }; - ReactCSSTransitionGroupChild.prototype.render = function render() { - return onlyChild(this.props.children); - }; - - return ReactCSSTransitionGroupChild; - }(React.Component); - - ReactCSSTransitionGroupChild.propTypes = { - name: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({ - enter: PropTypes.string, - leave: PropTypes.string, - active: PropTypes.string - }), PropTypes.shape({ - enter: PropTypes.string, - enterActive: PropTypes.string, - leave: PropTypes.string, - leaveActive: PropTypes.string, - appear: PropTypes.string, - appearActive: PropTypes.string - })]).isRequired, - - // Once we require timeouts to be specified, we can remove the - // boolean flags (appear etc.) and just accept a number - // or a bool for the timeout flags (appearTimeout etc.) - appear: PropTypes.bool, - enter: PropTypes.bool, - leave: PropTypes.bool, - appearTimeout: PropTypes.number, - enterTimeout: PropTypes.number, - leaveTimeout: PropTypes.number - }; - - - module.exports = ReactCSSTransitionGroupChild; - -/***/ }, -/* 228 */ -/***/ function(module, exports, __webpack_require__) { - - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - - 'use strict'; - - var ReactDOM = __webpack_require__(72); - - exports.getReactDOM = function () { - return ReactDOM; - }; - - if (process.env.NODE_ENV !== 'production') { - var ReactPerf; - var ReactTestUtils; - - exports.getReactPerf = function () { - if (!ReactPerf) { - ReactPerf = __webpack_require__(229); - } - return ReactPerf; - }; - - exports.getReactTestUtils = function () { - if (!ReactTestUtils) { - ReactTestUtils = __webpack_require__(230); - } - return ReactTestUtils; - }; - } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) - -/***/ }, -/* 229 */ -/***/ function(module, exports, __webpack_require__) { - - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2016-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - - 'use strict'; - - var _assign = __webpack_require__(27); - - var _extends = _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 ReactDebugTool = __webpack_require__(102); - var warning = __webpack_require__(34); - var alreadyWarned = false; - - function roundFloat(val) { - var base = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2; - - var n = Math.pow(10, base); - return Math.floor(val * n) / n; - } - - // Flow type definition of console.table is too strict right now, see - // https://github.com/facebook/flow/pull/2353 for updates - function consoleTable(table) { - console.table(table); - } - - function warnInProduction() { - if (alreadyWarned) { - return; - } - alreadyWarned = true; - if (typeof console !== 'undefined') { - console.error('ReactPerf is not supported in the production builds of React. ' + 'To collect measurements, please use the development build of React instead.'); - } - } - - function getLastMeasurements() { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return []; - } - - return ReactDebugTool.getFlushHistory(); - } - - function getExclusive() { - var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements(); - - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return []; - } - - var aggregatedStats = {}; - var affectedIDs = {}; - - function updateAggregatedStats(treeSnapshot, instanceID, timerType, applyUpdate) { - var displayName = treeSnapshot[instanceID].displayName; - - var key = displayName; - var stats = aggregatedStats[key]; - if (!stats) { - affectedIDs[key] = {}; - stats = aggregatedStats[key] = { - key: key, - instanceCount: 0, - counts: {}, - durations: {}, - totalDuration: 0 - }; - } - if (!stats.durations[timerType]) { - stats.durations[timerType] = 0; - } - if (!stats.counts[timerType]) { - stats.counts[timerType] = 0; - } - affectedIDs[key][instanceID] = true; - applyUpdate(stats); - } - - flushHistory.forEach(function (flush) { - var measurements = flush.measurements, - treeSnapshot = flush.treeSnapshot; - - measurements.forEach(function (measurement) { - var duration = measurement.duration, - instanceID = measurement.instanceID, - timerType = measurement.timerType; - - updateAggregatedStats(treeSnapshot, instanceID, timerType, function (stats) { - stats.totalDuration += duration; - stats.durations[timerType] += duration; - stats.counts[timerType]++; - }); - }); - }); - - return Object.keys(aggregatedStats).map(function (key) { - return _extends({}, aggregatedStats[key], { - instanceCount: Object.keys(affectedIDs[key]).length - }); - }).sort(function (a, b) { - return b.totalDuration - a.totalDuration; - }); - } - - function getInclusive() { - var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements(); - - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return []; - } - - var aggregatedStats = {}; - var affectedIDs = {}; - - function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) { - var _treeSnapshot$instanc = treeSnapshot[instanceID], - displayName = _treeSnapshot$instanc.displayName, - ownerID = _treeSnapshot$instanc.ownerID; - - var owner = treeSnapshot[ownerID]; - var key = (owner ? owner.displayName + ' > ' : '') + displayName; - var stats = aggregatedStats[key]; - if (!stats) { - affectedIDs[key] = {}; - stats = aggregatedStats[key] = { - key: key, - instanceCount: 0, - inclusiveRenderDuration: 0, - renderCount: 0 - }; - } - affectedIDs[key][instanceID] = true; - applyUpdate(stats); - } - - var isCompositeByID = {}; - flushHistory.forEach(function (flush) { - var measurements = flush.measurements; - - measurements.forEach(function (measurement) { - var instanceID = measurement.instanceID, - timerType = measurement.timerType; - - if (timerType !== 'render') { - return; - } - isCompositeByID[instanceID] = true; - }); - }); - - flushHistory.forEach(function (flush) { - var measurements = flush.measurements, - treeSnapshot = flush.treeSnapshot; + CSSTransitionGroupChild.prototype.transition = function transition(animationType, finishCallback, timeout) { + var node = (0, _reactDom.findDOMNode)(this); - measurements.forEach(function (measurement) { - var duration = measurement.duration, - instanceID = measurement.instanceID, - timerType = measurement.timerType; - - if (timerType !== 'render') { - return; + if (!node) { + if (finishCallback) { + finishCallback(); } - updateAggregatedStats(treeSnapshot, instanceID, function (stats) { - stats.renderCount++; - }); - var nextParentID = instanceID; - while (nextParentID) { - // As we traverse parents, only count inclusive time towards composites. - // We know something is a composite if its render() was called. - if (isCompositeByID[nextParentID]) { - updateAggregatedStats(treeSnapshot, nextParentID, function (stats) { - stats.inclusiveRenderDuration += duration; - }); - } - nextParentID = treeSnapshot[nextParentID].parentID; - } - }); - }); - - return Object.keys(aggregatedStats).map(function (key) { - return _extends({}, aggregatedStats[key], { - instanceCount: Object.keys(affectedIDs[key]).length - }); - }).sort(function (a, b) { - return b.inclusiveRenderDuration - a.inclusiveRenderDuration; - }); - } - - function getWasted() { - var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements(); - - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return []; - } - - var aggregatedStats = {}; - var affectedIDs = {}; - - function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) { - var _treeSnapshot$instanc2 = treeSnapshot[instanceID], - displayName = _treeSnapshot$instanc2.displayName, - ownerID = _treeSnapshot$instanc2.ownerID; - - var owner = treeSnapshot[ownerID]; - var key = (owner ? owner.displayName + ' > ' : '') + displayName; - var stats = aggregatedStats[key]; - if (!stats) { - affectedIDs[key] = {}; - stats = aggregatedStats[key] = { - key: key, - instanceCount: 0, - inclusiveRenderDuration: 0, - renderCount: 0 - }; + return; } - affectedIDs[key][instanceID] = true; - applyUpdate(stats); - } - flushHistory.forEach(function (flush) { - var measurements = flush.measurements, - treeSnapshot = flush.treeSnapshot, - operations = flush.operations; + var className = this.props.name[animationType] || this.props.name + '-' + animationType; + var activeClassName = this.props.name[animationType + 'Active'] || className + '-active'; + var timer = null; + var removeListeners = void 0; - var isDefinitelyNotWastedByID = {}; + (0, _addClass2.default)(node, className); - // Find host components associated with an operation in this batch. - // Mark all components in their parent tree as definitely not wasted. - operations.forEach(function (operation) { - var instanceID = operation.instanceID; + // Need to do this to actually trigger a transition. + this.queueClassAndNode(activeClassName, node); - var nextParentID = instanceID; - while (nextParentID) { - isDefinitelyNotWastedByID[nextParentID] = true; - nextParentID = treeSnapshot[nextParentID].parentID; - } - }); - - // Find composite components that rendered in this batch. - // These are potential candidates for being wasted renders. - var renderedCompositeIDs = {}; - measurements.forEach(function (measurement) { - var instanceID = measurement.instanceID, - timerType = measurement.timerType; - - if (timerType !== 'render') { + // Clean-up the animation after the specified delay + var finish = function finish(e) { + if (e && e.target !== node) { return; } - renderedCompositeIDs[instanceID] = true; - }); - measurements.forEach(function (measurement) { - var duration = measurement.duration, - instanceID = measurement.instanceID, - timerType = measurement.timerType; + clearTimeout(timer); + if (removeListeners) removeListeners(); - if (timerType !== 'render') { - return; - } + (0, _removeClass2.default)(node, className); + (0, _removeClass2.default)(node, activeClassName); - // If there was a DOM update below this component, or it has just been - // mounted, its render() is not considered wasted. - var updateCount = treeSnapshot[instanceID].updateCount; + if (removeListeners) removeListeners(); - if (isDefinitelyNotWastedByID[instanceID] || updateCount === 0) { - return; + // Usually this optional callback is used for informing an owner of + // a leave animation and telling it to remove the child. + if (finishCallback) { + finishCallback(); } + }; - // We consider this render() wasted. - updateAggregatedStats(treeSnapshot, instanceID, function (stats) { - stats.renderCount++; - }); + if (timeout) { + timer = setTimeout(finish, timeout); + this.transitionTimeouts.push(timer); + } else if (_properties.transitionEnd) { + removeListeners = addEndListener(node, finish); + } + }; - var nextParentID = instanceID; - while (nextParentID) { - // Any parents rendered during this batch are considered wasted - // unless we previously marked them as dirty. - var isWasted = renderedCompositeIDs[nextParentID] && !isDefinitelyNotWastedByID[nextParentID]; - if (isWasted) { - updateAggregatedStats(treeSnapshot, nextParentID, function (stats) { - stats.inclusiveRenderDuration += duration; - }); - } - nextParentID = treeSnapshot[nextParentID].parentID; - } - }); - }); + CSSTransitionGroupChild.prototype.queueClassAndNode = function queueClassAndNode(className, node) { + var _this2 = this; - return Object.keys(aggregatedStats).map(function (key) { - return _extends({}, aggregatedStats[key], { - instanceCount: Object.keys(affectedIDs[key]).length + this.classNameAndNodeQueue.push({ + className: className, + node: node }); - }).sort(function (a, b) { - return b.inclusiveRenderDuration - a.inclusiveRenderDuration; - }); - } - - function getOperations() { - var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements(); - - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return []; - } - var stats = []; - flushHistory.forEach(function (flush, flushIndex) { - var operations = flush.operations, - treeSnapshot = flush.treeSnapshot; - - operations.forEach(function (operation) { - var instanceID = operation.instanceID, - type = operation.type, - payload = operation.payload; - var _treeSnapshot$instanc3 = treeSnapshot[instanceID], - displayName = _treeSnapshot$instanc3.displayName, - ownerID = _treeSnapshot$instanc3.ownerID; - - var owner = treeSnapshot[ownerID]; - var key = (owner ? owner.displayName + ' > ' : '') + displayName; - - stats.push({ - flushIndex: flushIndex, - instanceID: instanceID, - key: key, - type: type, - ownerID: ownerID, - payload: payload + if (!this.rafHandle) { + this.rafHandle = (0, _requestAnimationFrame2.default)(function () { + return _this2.flushClassNameAndNodeQueue(); }); - }); - }); - return stats; - } - - function printExclusive(flushHistory) { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return; - } - - var stats = getExclusive(flushHistory); - var table = stats.map(function (item) { - var key = item.key, - instanceCount = item.instanceCount, - totalDuration = item.totalDuration; - - var renderCount = item.counts.render || 0; - var renderDuration = item.durations.render || 0; - return { - 'Component': key, - 'Total time (ms)': roundFloat(totalDuration), - 'Instance count': instanceCount, - 'Total render time (ms)': roundFloat(renderDuration), - 'Average render time (ms)': renderCount ? roundFloat(renderDuration / renderCount) : undefined, - 'Render count': renderCount, - 'Total lifecycle time (ms)': roundFloat(totalDuration - renderDuration) - }; - }); - consoleTable(table); - } - - function printInclusive(flushHistory) { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return; - } - - var stats = getInclusive(flushHistory); - var table = stats.map(function (item) { - var key = item.key, - instanceCount = item.instanceCount, - inclusiveRenderDuration = item.inclusiveRenderDuration, - renderCount = item.renderCount; - - return { - 'Owner > Component': key, - 'Inclusive render time (ms)': roundFloat(inclusiveRenderDuration), - 'Instance count': instanceCount, - 'Render count': renderCount - }; - }); - consoleTable(table); - } - - function printWasted(flushHistory) { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return; - } - - var stats = getWasted(flushHistory); - var table = stats.map(function (item) { - var key = item.key, - instanceCount = item.instanceCount, - inclusiveRenderDuration = item.inclusiveRenderDuration, - renderCount = item.renderCount; - - return { - 'Owner > Component': key, - 'Inclusive wasted time (ms)': roundFloat(inclusiveRenderDuration), - 'Instance count': instanceCount, - 'Render count': renderCount - }; - }); - consoleTable(table); - } - - function printOperations(flushHistory) { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return; - } - - var stats = getOperations(flushHistory); - var table = stats.map(function (stat) { - return { - 'Owner > Node': stat.key, - 'Operation': stat.type, - 'Payload': typeof stat.payload === 'object' ? JSON.stringify(stat.payload) : stat.payload, - 'Flush index': stat.flushIndex, - 'Owner Component ID': stat.ownerID, - 'DOM Component ID': stat.instanceID - }; - }); - consoleTable(table); - } - - var warnedAboutPrintDOM = false; - function printDOM(measurements) { - process.env.NODE_ENV !== 'production' ? warning(warnedAboutPrintDOM, '`ReactPerf.printDOM(...)` is deprecated. Use ' + '`ReactPerf.printOperations(...)` instead.') : void 0; - warnedAboutPrintDOM = true; - return printOperations(measurements); - } - - var warnedAboutGetMeasurementsSummaryMap = false; - function getMeasurementsSummaryMap(measurements) { - process.env.NODE_ENV !== 'production' ? warning(warnedAboutGetMeasurementsSummaryMap, '`ReactPerf.getMeasurementsSummaryMap(...)` is deprecated. Use ' + '`ReactPerf.getWasted(...)` instead.') : void 0; - warnedAboutGetMeasurementsSummaryMap = true; - return getWasted(measurements); - } + } + }; - function start() { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return; - } + CSSTransitionGroupChild.prototype.flushClassNameAndNodeQueue = function flushClassNameAndNodeQueue() { + if (!this.unmounted) { + this.classNameAndNodeQueue.forEach(function (obj) { + // This is for to force a repaint, + // which is necessary in order to transition styles when adding a class name. + /* eslint-disable no-unused-expressions */ + obj.node.scrollTop; + /* eslint-enable no-unused-expressions */ + (0, _addClass2.default)(obj.node, obj.className); + }); + } + this.classNameAndNodeQueue.length = 0; + this.rafHandle = null; + }; - ReactDebugTool.beginProfiling(); - } + CSSTransitionGroupChild.prototype.render = function render() { + var props = _extends({}, this.props); + delete props.name; + delete props.appear; + delete props.enter; + delete props.leave; + delete props.appearTimeout; + delete props.enterTimeout; + delete props.leaveTimeout; + delete props.children; + return _react2.default.cloneElement(_react2.default.Children.only(this.props.children), props); + }; - function stop() { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return; - } + return CSSTransitionGroupChild; + }(_react2.default.Component); - ReactDebugTool.endProfiling(); - } + CSSTransitionGroupChild.displayName = 'CSSTransitionGroupChild'; - function isRunning() { - if (!(process.env.NODE_ENV !== 'production')) { - warnInProduction(); - return false; - } - return ReactDebugTool.isProfiling(); - } - - var ReactPerfAnalysis = { - getLastMeasurements: getLastMeasurements, - getExclusive: getExclusive, - getInclusive: getInclusive, - getWasted: getWasted, - getOperations: getOperations, - printExclusive: printExclusive, - printInclusive: printInclusive, - printWasted: printWasted, - printOperations: printOperations, - start: start, - stop: stop, - isRunning: isRunning, - // Deprecated: - printDOM: printDOM, - getMeasurementsSummaryMap: getMeasurementsSummaryMap - }; + CSSTransitionGroupChild.propTypes = propTypes; - module.exports = ReactPerfAnalysis; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) + exports.default = CSSTransitionGroupChild; + module.exports = exports['default']; /***/ }, /* 230 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - var _prodInvariant = __webpack_require__(74), - _assign = __webpack_require__(27); - - var EventConstants = __webpack_require__(231); - var EventPluginHub = __webpack_require__(81); - var EventPluginRegistry = __webpack_require__(82); - var EventPropagators = __webpack_require__(80); - var React = __webpack_require__(25); - var ReactDOM = __webpack_require__(72); - var ReactDOMComponentTree = __webpack_require__(73); - var ReactBrowserEventEmitter = __webpack_require__(144); - var ReactInstanceMap = __webpack_require__(155); - var ReactUpdates = __webpack_require__(95); - var SyntheticEvent = __webpack_require__(92); - var ReactShallowRenderer = __webpack_require__(232); - - var findDOMNode = __webpack_require__(211); - var invariant = __webpack_require__(31); - var warning = __webpack_require__(34); - - var topLevelTypes = EventConstants.topLevelTypes; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = addClass; - function Event(suffix) {} + var _hasClass = __webpack_require__(231); - // In react 16+ shallowRenderer will not be accessible via ReactTestUtils.createRenderer() - // Instead it will be available via react-test-renderer/shallow - // Maintain backwards compat for 15.5.0 release, but warn about using the deprecated method - var hasWarnedAboutCreateRenderer = false; - function createRendererWithWarning() { - process.env.NODE_ENV !== 'production' ? warning(hasWarnedAboutCreateRenderer, 'Shallow renderer has been moved to react-test-renderer/shallow. ' + 'Update references to remove this warning.') : void 0; - hasWarnedAboutCreateRenderer = true; + var _hasClass2 = _interopRequireDefault(_hasClass); - return new ReactShallowRenderer(); - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /** - * @class ReactTestUtils - */ - - function findAllInRenderedTreeInternal(inst, test) { - if (!inst || !inst.getPublicInstance) { - return []; - } - var publicInst = inst.getPublicInstance(); - var ret = test(publicInst) ? [publicInst] : []; - var currentElement = inst._currentElement; - if (ReactTestUtils.isDOMComponent(publicInst)) { - var renderedChildren = inst._renderedChildren; - var key; - for (key in renderedChildren) { - if (!renderedChildren.hasOwnProperty(key)) { - continue; - } - ret = ret.concat(findAllInRenderedTreeInternal(renderedChildren[key], test)); - } - } else if (React.isValidElement(currentElement) && typeof currentElement.type === 'function') { - ret = ret.concat(findAllInRenderedTreeInternal(inst._renderedComponent, test)); - } - return ret; + function addClass(element, className) { + if (element.classList) element.classList.add(className);else if (!(0, _hasClass2.default)(element)) element.className = element.className + ' ' + className; } + module.exports = exports['default']; - /** - * Utilities for making it easy to test React components. - * - * See https://facebook.github.io/react/docs/test-utils.html - * - * Todo: Support the entire DOM.scry query syntax. For now, these simple - * utilities will suffice for testing purposes. - * @lends ReactTestUtils - */ - var ReactTestUtils = { - renderIntoDocument: function (element) { - var div = document.createElement('div'); - // None of our tests actually require attaching the container to the - // DOM, and doing so creates a mess that we rely on test isolation to - // clean up, so we're going to stop honoring the name of this method - // (and probably rename it eventually) if no problems arise. - // document.documentElement.appendChild(div); - return ReactDOM.render(element, div); - }, - - isElement: function (element) { - return React.isValidElement(element); - }, - - isElementOfType: function (inst, convenienceConstructor) { - return React.isValidElement(inst) && inst.type === convenienceConstructor; - }, - - isDOMComponent: function (inst) { - return !!(inst && inst.nodeType === 1 && inst.tagName); - }, - - isDOMComponentElement: function (inst) { - return !!(inst && React.isValidElement(inst) && !!inst.tagName); - }, - - isCompositeComponent: function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - // Accessing inst.setState warns; just return false as that'll be what - // this returns when we have DOM nodes as refs directly - return false; - } - return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; - }, - - isCompositeComponentWithType: function (inst, type) { - if (!ReactTestUtils.isCompositeComponent(inst)) { - return false; - } - var internalInstance = ReactInstanceMap.get(inst); - var constructor = internalInstance._currentElement.type; - - return constructor === type; - }, - - isCompositeComponentElement: function (inst) { - if (!React.isValidElement(inst)) { - return false; - } - // We check the prototype of the type that will get mounted, not the - // instance itself. This is a future proof way of duck typing. - var prototype = inst.type.prototype; - return typeof prototype.render === 'function' && typeof prototype.setState === 'function'; - }, - - isCompositeComponentElementWithType: function (inst, type) { - var internalInstance = ReactInstanceMap.get(inst); - var constructor = internalInstance._currentElement.type; - - return !!(ReactTestUtils.isCompositeComponentElement(inst) && constructor === type); - }, - - getRenderedChildOfCompositeComponent: function (inst) { - if (!ReactTestUtils.isCompositeComponent(inst)) { - return null; - } - var internalInstance = ReactInstanceMap.get(inst); - return internalInstance._renderedComponent.getPublicInstance(); - }, - - findAllInRenderedTree: function (inst, test) { - if (!inst) { - return []; - } - !ReactTestUtils.isCompositeComponent(inst) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findAllInRenderedTree(...): instance must be a composite component') : _prodInvariant('10') : void 0; - return findAllInRenderedTreeInternal(ReactInstanceMap.get(inst), test); - }, - - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the class name matching `className`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithClass: function (root, classNames) { - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - var className = inst.className; - if (typeof className !== 'string') { - // SVG, probably. - className = inst.getAttribute('class') || ''; - } - var classList = className.split(/\s+/); - - if (!Array.isArray(classNames)) { - !(classNames !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.') : _prodInvariant('11') : void 0; - classNames = classNames.split(/\s+/); - } - return classNames.every(function (name) { - return classList.indexOf(name) !== -1; - }); - } - return false; - }); - }, +/***/ }, +/* 231 */ +/***/ function(module, exports) { - /** - * Like scryRenderedDOMComponentsWithClass but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithClass: function (root, className) { - var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className); - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); - } - return all[0]; - }, + "use strict"; - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the tag name matching `tagName`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithTag: function (root, tagName) { - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); - }); - }, + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = hasClass; + function hasClass(element, className) { + if (element.classList) return !!className && element.classList.contains(className);else return (" " + element.className + " ").indexOf(" " + className + " ") !== -1; + } + module.exports = exports["default"]; - /** - * Like scryRenderedDOMComponentsWithTag but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithTag: function (root, tagName) { - var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); - } - return all[0]; - }, +/***/ }, +/* 232 */ +/***/ function(module, exports) { - /** - * Finds all instances of components with type equal to `componentType`. - * @return {array} an array of all the matches. - */ - scryRenderedComponentsWithType: function (root, componentType) { - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isCompositeComponentWithType(inst, componentType); - }); - }, + 'use strict'; - /** - * Same as `scryRenderedComponentsWithType` but expects there to be one result - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactComponent} The one match. - */ - findRenderedComponentWithType: function (root, componentType) { - var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType); - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); - } - return all[0]; - }, + module.exports = function removeClass(element, className) { + if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); + }; - /** - * Pass a mocked component module to this method to augment it with - * useful methods that allow it to be used as a dummy React component. - * Instead of rendering as usual, the component will become a simple - *
containing any provided children. - * - * @param {object} module the mock function object exported from a - * module that defines the component to be mocked - * @param {?string} mockTagName optional dummy root tag name to return - * from render method (overrides - * module.mockTagName if provided) - * @return {object} the ReactTestUtils object (for chaining) - */ - mockComponent: function (module, mockTagName) { - mockTagName = mockTagName || module.mockTagName || 'div'; +/***/ }, +/* 233 */ +/***/ function(module, exports, __webpack_require__) { - module.prototype.render.mockImplementation(function () { - return React.createElement(mockTagName, null, this.props.children); - }); + 'use strict'; - return this; - }, + Object.defineProperty(exports, "__esModule", { + value: true + }); - /** - * Simulates a top level event being dispatched from a raw event that occurred - * on an `Element` node. - * @param {Object} topLevelType A type from `EventConstants.topLevelTypes` - * @param {!Element} node The dom to simulate an event occurring on. - * @param {?Event} fakeNativeEvent Fake native event to use in SyntheticEvent. - */ - simulateNativeEventOnNode: function (topLevelType, node, fakeNativeEvent) { - fakeNativeEvent.target = node; - ReactBrowserEventEmitter.ReactEventListener.dispatchEvent(topLevelType, fakeNativeEvent); - }, + var _inDOM = __webpack_require__(234); - /** - * Simulates a top level event being dispatched from a raw event that occurred - * on the `ReactDOMComponent` `comp`. - * @param {Object} topLevelType A type from `EventConstants.topLevelTypes`. - * @param {!ReactDOMComponent} comp - * @param {?Event} fakeNativeEvent Fake native event to use in SyntheticEvent. - */ - simulateNativeEventOnDOMComponent: function (topLevelType, comp, fakeNativeEvent) { - ReactTestUtils.simulateNativeEventOnNode(topLevelType, findDOMNode(comp), fakeNativeEvent); - }, + var _inDOM2 = _interopRequireDefault(_inDOM); - nativeTouchData: function (x, y) { - return { - touches: [{ pageX: x, pageY: y }] - }; - }, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - createRenderer: createRendererWithWarning, + var vendors = ['', 'webkit', 'moz', 'o', 'ms']; + var cancel = 'clearTimeout'; + var raf = fallback; + var compatRaf = void 0; - Simulate: null, - SimulateNative: {} + var getKey = function getKey(vendor, k) { + return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + 'AnimationFrame'; }; - /** - * Exports: - * - * - `ReactTestUtils.Simulate.click(Element/ReactDOMComponent)` - * - `ReactTestUtils.Simulate.mouseMove(Element/ReactDOMComponent)` - * - `ReactTestUtils.Simulate.change(Element/ReactDOMComponent)` - * - ... (All keys from event plugin `eventTypes` objects) - */ - function makeSimulator(eventType) { - return function (domComponentOrNode, eventData) { - var node; - !!React.isValidElement(domComponentOrNode) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0; - if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { - node = findDOMNode(domComponentOrNode); - } else if (domComponentOrNode.tagName) { - node = domComponentOrNode; - } - - var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType]; - - var fakeNativeEvent = new Event(); - fakeNativeEvent.target = node; - fakeNativeEvent.type = eventType.toLowerCase(); + if (_inDOM2.default) { + vendors.some(function (vendor) { + var rafKey = getKey(vendor, 'request'); - // We don't use SyntheticEvent.getPooled in order to not have to worry about - // properly destroying any properties assigned from `eventData` upon release - var event = new SyntheticEvent(dispatchConfig, ReactDOMComponentTree.getInstanceFromNode(node), fakeNativeEvent, node); - // Since we aren't using pooling, always persist the event. This will make - // sure it's marked and won't warn when setting additional properties. - event.persist(); - _assign(event, eventData); - - if (dispatchConfig.phasedRegistrationNames) { - EventPropagators.accumulateTwoPhaseDispatches(event); - } else { - EventPropagators.accumulateDirectDispatches(event); + if (rafKey in window) { + cancel = getKey(vendor, 'cancel'); + return raf = function raf(cb) { + return window[rafKey](cb); + }; } - - ReactUpdates.batchedUpdates(function () { - EventPluginHub.enqueueEvents(event); - EventPluginHub.processEventQueue(true); - }); - }; + }); } - function buildSimulators() { - ReactTestUtils.Simulate = {}; + /* https://github.com/component/raf */ + var prev = new Date().getTime(); + function fallback(fn) { + var curr = new Date().getTime(), + ms = Math.max(0, 16 - (curr - prev)), + req = setTimeout(fn, ms); - var eventType; - for (eventType in EventPluginRegistry.eventNameDispatchConfigs) { - /** - * @param {!Element|ReactDOMComponent} domComponentOrNode - * @param {?object} eventData Fake event data to use in SyntheticEvent. - */ - ReactTestUtils.Simulate[eventType] = makeSimulator(eventType); - } + prev = curr; + return req; } - // Rebuild ReactTestUtils.Simulate whenever event plugins are injected - var oldInjectEventPluginOrder = EventPluginHub.injection.injectEventPluginOrder; - EventPluginHub.injection.injectEventPluginOrder = function () { - oldInjectEventPluginOrder.apply(this, arguments); - buildSimulators(); + compatRaf = function compatRaf(cb) { + return raf(cb); }; - var oldInjectEventPlugins = EventPluginHub.injection.injectEventPluginsByName; - EventPluginHub.injection.injectEventPluginsByName = function () { - oldInjectEventPlugins.apply(this, arguments); - buildSimulators(); + compatRaf.cancel = function (id) { + window[cancel] && typeof window[cancel] === 'function' && window[cancel](id); }; - - buildSimulators(); - - /** - * Exports: - * - * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)` - * - ... (All keys from `EventConstants.topLevelTypes`) - * - * Note: Top level event types are a subset of the entire set of handler types - * (which include a broader set of "synthetic" events). For example, onDragDone - * is a synthetic event. Except when testing an event plugin or React's event - * handling code specifically, you probably want to use ReactTestUtils.Simulate - * to dispatch synthetic events. - */ - - function makeNativeSimulator(eventType) { - return function (domComponentOrNode, nativeEventData) { - var fakeNativeEvent = new Event(eventType); - _assign(fakeNativeEvent, nativeEventData); - if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { - ReactTestUtils.simulateNativeEventOnDOMComponent(eventType, domComponentOrNode, fakeNativeEvent); - } else if (domComponentOrNode.tagName) { - // Will allow on actual dom nodes. - ReactTestUtils.simulateNativeEventOnNode(eventType, domComponentOrNode, fakeNativeEvent); - } - }; - } - - Object.keys(topLevelTypes).forEach(function (eventType) { - // Event type is stored as 'topClick' - we transform that to 'click' - var convenienceName = eventType.indexOf('top') === 0 ? eventType.charAt(3).toLowerCase() + eventType.substr(4) : eventType; - /** - * @param {!Element|ReactDOMComponent} domComponentOrNode - * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent. - */ - ReactTestUtils.SimulateNative[convenienceName] = makeNativeSimulator(eventType); - }); - - module.exports = ReactTestUtils; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) + exports.default = compatRaf; + module.exports = exports['default']; /***/ }, -/* 231 */ +/* 234 */ /***/ function(module, exports) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - /** - * Types of raw signals from the browser caught at the top level. - */ - var topLevelTypes = { - topAbort: null, - topAnimationEnd: null, - topAnimationIteration: null, - topAnimationStart: null, - topBlur: null, - topCanPlay: null, - topCanPlayThrough: null, - topChange: null, - topClick: null, - topCompositionEnd: null, - topCompositionStart: null, - topCompositionUpdate: null, - topContextMenu: null, - topCopy: null, - topCut: null, - topDoubleClick: null, - topDrag: null, - topDragEnd: null, - topDragEnter: null, - topDragExit: null, - topDragLeave: null, - topDragOver: null, - topDragStart: null, - topDrop: null, - topDurationChange: null, - topEmptied: null, - topEncrypted: null, - topEnded: null, - topError: null, - topFocus: null, - topInput: null, - topInvalid: null, - topKeyDown: null, - topKeyPress: null, - topKeyUp: null, - topLoad: null, - topLoadedData: null, - topLoadedMetadata: null, - topLoadStart: null, - topMouseDown: null, - topMouseMove: null, - topMouseOut: null, - topMouseOver: null, - topMouseUp: null, - topPaste: null, - topPause: null, - topPlay: null, - topPlaying: null, - topProgress: null, - topRateChange: null, - topReset: null, - topScroll: null, - topSeeked: null, - topSeeking: null, - topSelectionChange: null, - topStalled: null, - topSubmit: null, - topSuspend: null, - topTextInput: null, - topTimeUpdate: null, - topTouchCancel: null, - topTouchEnd: null, - topTouchMove: null, - topTouchStart: null, - topTransitionEnd: null, - topVolumeChange: null, - topWaiting: null, - topWheel: null - }; - - var EventConstants = { - topLevelTypes: topLevelTypes - }; - - module.exports = EventConstants; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + module.exports = exports['default']; /***/ }, -/* 232 */ +/* 235 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - var _prodInvariant = __webpack_require__(74), - _assign = __webpack_require__(27); - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - var React = __webpack_require__(25); - var ReactCompositeComponent = __webpack_require__(158); - var ReactDefaultBatchingStrategy = __webpack_require__(179); - var ReactReconciler = __webpack_require__(98); - var ReactReconcileTransaction = __webpack_require__(184); - var ReactUpdates = __webpack_require__(95); - - var emptyObject = __webpack_require__(43); - var getNextDebugID = __webpack_require__(166); - var invariant = __webpack_require__(31); - - function injectDefaults() { - ReactUpdates.injection.injectReconcileTransaction(ReactReconcileTransaction); - ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy); - } - - var NoopInternalComponent = function () { - function NoopInternalComponent(element) { - _classCallCheck(this, NoopInternalComponent); - - this._renderedOutput = element; - this._currentElement = element; - - if (process.env.NODE_ENV !== 'production') { - this._debugID = getNextDebugID(); - } - } - - NoopInternalComponent.prototype.mountComponent = function mountComponent() {}; - - NoopInternalComponent.prototype.receiveComponent = function receiveComponent(element) { - this._renderedOutput = element; - this._currentElement = element; - }; - - NoopInternalComponent.prototype.unmountComponent = function unmountComponent() {}; - - NoopInternalComponent.prototype.getHostNode = function getHostNode() { - return undefined; - }; - - NoopInternalComponent.prototype.getPublicInstance = function getPublicInstance() { - return null; - }; - - return NoopInternalComponent; - }(); - - var ShallowComponentWrapper = function (element) { - // TODO: Consolidate with instantiateReactComponent - if (process.env.NODE_ENV !== 'production') { - this._debugID = getNextDebugID(); - } - - this.construct(element); - }; - _assign(ShallowComponentWrapper.prototype, ReactCompositeComponent, { - _constructComponent: ReactCompositeComponent._constructComponentWithoutOwner, - _instantiateReactComponent: function (element) { - return new NoopInternalComponent(element); - }, - _replaceNodeWithMarkup: function () {}, - _renderValidatedComponent: ReactCompositeComponent._renderValidatedComponentWithoutOwnerOrContext + Object.defineProperty(exports, "__esModule", { + value: true }); - - function _batchedRender(renderer, element, context) { - var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true); - renderer._render(element, transaction, context); - ReactUpdates.ReactReconcileTransaction.release(transaction); - } - - var ReactShallowRenderer = function () { - function ReactShallowRenderer() { - _classCallCheck(this, ReactShallowRenderer); - - this._instance = null; - } - - ReactShallowRenderer.prototype.getMountedInstance = function getMountedInstance() { - return this._instance ? this._instance._instance : null; - }; - - ReactShallowRenderer.prototype.render = function render(element, context) { - // Ensure we've done the default injections. This might not be true in the - // case of a simple test that only requires React and the TestUtils in - // conjunction with an inline-requires transform. - injectDefaults(); - - !React.isValidElement(element) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Invalid component element.%s', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : _prodInvariant('12', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : void 0; - !(typeof element.type !== 'string') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Shallow rendering works only with custom components, not primitives (%s). Instead of calling `.render(el)` and inspecting the rendered output, look at `el.props` directly instead.', element.type) : _prodInvariant('13', element.type) : void 0; - - if (!context) { - context = emptyObject; - } - ReactUpdates.batchedUpdates(_batchedRender, this, element, context); - - return this.getRenderOutput(); - }; - - ReactShallowRenderer.prototype.getRenderOutput = function getRenderOutput() { - return this._instance && this._instance._renderedComponent && this._instance._renderedComponent._renderedOutput || null; - }; - - ReactShallowRenderer.prototype.unmount = function unmount() { - if (this._instance) { - ReactReconciler.unmountComponent(this._instance, false); - } - }; - - ReactShallowRenderer.prototype._render = function _render(element, transaction, context) { - if (this._instance) { - ReactReconciler.receiveComponent(this._instance, element, transaction, context); - } else { - var instance = new ShallowComponentWrapper(element); - ReactReconciler.mountComponent(instance, transaction, null, null, context, 0); - this._instance = instance; + exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; + + var _inDOM = __webpack_require__(234); + + var _inDOM2 = _interopRequireDefault(_inDOM); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var transform = 'transform'; + var prefix = void 0, + transitionEnd = void 0, + animationEnd = void 0; + var transitionProperty = void 0, + transitionDuration = void 0, + transitionTiming = void 0, + transitionDelay = void 0; + var animationName = void 0, + animationDuration = void 0, + animationTiming = void 0, + animationDelay = void 0; + + if (_inDOM2.default) { + var _getTransitionPropert = getTransitionProperties(); + + prefix = _getTransitionPropert.prefix; + exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; + exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; + + + exports.transform = transform = prefix + '-' + transform; + exports.transitionProperty = transitionProperty = prefix + '-transition-property'; + exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; + exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; + exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; + + exports.animationName = animationName = prefix + '-animation-name'; + exports.animationDuration = animationDuration = prefix + '-animation-duration'; + exports.animationTiming = animationTiming = prefix + '-animation-delay'; + exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; + } + + exports.transform = transform; + exports.transitionProperty = transitionProperty; + exports.transitionTiming = transitionTiming; + exports.transitionDelay = transitionDelay; + exports.transitionDuration = transitionDuration; + exports.transitionEnd = transitionEnd; + exports.animationName = animationName; + exports.animationDuration = animationDuration; + exports.animationTiming = animationTiming; + exports.animationDelay = animationDelay; + exports.animationEnd = animationEnd; + exports.default = { + transform: transform, + end: transitionEnd, + property: transitionProperty, + timing: transitionTiming, + delay: transitionDelay, + duration: transitionDuration + }; + + + function getTransitionProperties() { + var style = document.createElement('div').style; + + var vendorMap = { + O: function O(e) { + return 'o' + e.toLowerCase(); + }, + Moz: function Moz(e) { + return e.toLowerCase(); + }, + Webkit: function Webkit(e) { + return 'webkit' + e; + }, + ms: function ms(e) { + return 'MS' + e; } }; - return ReactShallowRenderer; - }(); + var vendors = Object.keys(vendorMap); - ReactShallowRenderer.createRenderer = function () { - return new ReactShallowRenderer(); - }; + var transitionEnd = void 0, + animationEnd = void 0; + var prefix = ''; - module.exports = ReactShallowRenderer; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) + for (var i = 0; i < vendors.length; i++) { + var vendor = vendors[i]; -/***/ }, -/* 233 */ -/***/ function(module, exports, __webpack_require__) { - - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; - - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @typechecks - */ - - var invariant = __webpack_require__(31); - - /** - * The CSSCore module specifies the API (and implements most of the methods) - * that should be used when dealing with the display of elements (via their - * CSS classes and visibility on screen. It is an API focused on mutating the - * display and not reading it as no logical state should be encoded in the - * display of elements. - */ - - /* Slow implementation for browsers that don't natively support .matches() */ - function matchesSelector_SLOW(element, selector) { - var root = element; - while (root.parentNode) { - root = root.parentNode; - } - - var all = root.querySelectorAll(selector); - return Array.prototype.indexOf.call(all, element) !== -1; - } - - var CSSCore = { - - /** - * Adds the class passed in to the element if it doesn't already have it. - * - * @param {DOMElement} element the element to set the class on - * @param {string} className the CSS className - * @return {DOMElement} the element passed in - */ - addClass: function addClass(element, className) { - !!/\s/.test(className) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'CSSCore.addClass takes only a single class name. "%s" contains ' + 'multiple classes.', className) : invariant(false) : void 0; - - if (className) { - if (element.classList) { - element.classList.add(className); - } else if (!CSSCore.hasClass(element, className)) { - element.className = element.className + ' ' + className; - } - } - return element; - }, - - /** - * Removes the class passed in from the element - * - * @param {DOMElement} element the element to set the class on - * @param {string} className the CSS className - * @return {DOMElement} the element passed in - */ - removeClass: function removeClass(element, className) { - !!/\s/.test(className) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'CSSCore.removeClass takes only a single class name. "%s" contains ' + 'multiple classes.', className) : invariant(false) : void 0; - - if (className) { - if (element.classList) { - element.classList.remove(className); - } else if (CSSCore.hasClass(element, className)) { - element.className = element.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ') // multiple spaces to one - .replace(/^\s*|\s*$/g, ''); // trim the ends - } + if (vendor + 'TransitionProperty' in style) { + prefix = '-' + vendor.toLowerCase(); + transitionEnd = vendorMap[vendor]('TransitionEnd'); + animationEnd = vendorMap[vendor]('AnimationEnd'); + break; } - return element; - }, - - /** - * Helper to add or remove a class from an element based on a condition. - * - * @param {DOMElement} element the element to set the class on - * @param {string} className the CSS className - * @param {*} bool condition to whether to add or remove the class - * @return {DOMElement} the element passed in - */ - conditionClass: function conditionClass(element, className, bool) { - return (bool ? CSSCore.addClass : CSSCore.removeClass)(element, className); - }, + } - /** - * Tests whether the element has the class specified. - * - * @param {DOMNode|DOMWindow} element the element to check the class on - * @param {string} className the CSS className - * @return {boolean} true if the element has the class, false if not - */ - hasClass: function hasClass(element, className) { - !!/\s/.test(className) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'CSS.hasClass takes only a single class name.') : invariant(false) : void 0; - if (element.classList) { - return !!className && element.classList.contains(className); - } - return (' ' + element.className + ' ').indexOf(' ' + className + ' ') > -1; - }, + if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; - /** - * Tests whether the element matches the selector specified - * - * @param {DOMNode|DOMWindow} element the element that we are querying - * @param {string} selector the CSS selector - * @return {boolean} true if the element matches the selector, false if not - */ - matchesSelector: function matchesSelector(element, selector) { - var matchesImpl = element.matches || element.webkitMatchesSelector || element.mozMatchesSelector || element.msMatchesSelector || function (s) { - return matchesSelector_SLOW(element, s); - }; - return matchesImpl.call(element, selector); - } + if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; - }; + style = null; - module.exports = CSSCore; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(26))) + return { animationEnd: animationEnd, transitionEnd: transitionEnd, prefix: prefix }; + } /***/ }, -/* 234 */ +/* 236 */ /***/ function(module, exports, __webpack_require__) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - var ExecutionEnvironment = __webpack_require__(87); - - var getVendorPrefixedEventName = __webpack_require__(146); + exports.__esModule = true; + exports.nameShape = undefined; + exports.transitionTimeout = transitionTimeout; - var endEvents = []; + var _react = __webpack_require__(24); - function detectEvents() { - var animEnd = getVendorPrefixedEventName('animationend'); - var transEnd = getVendorPrefixedEventName('transitionend'); + var _react2 = _interopRequireDefault(_react); - if (animEnd) { - endEvents.push(animEnd); - } - - if (transEnd) { - endEvents.push(transEnd); - } - } + var _propTypes = __webpack_require__(223); - if (ExecutionEnvironment.canUseDOM) { - detectEvents(); - } + var _propTypes2 = _interopRequireDefault(_propTypes); - // We use the raw {add|remove}EventListener() call because EventListener - // does not know how to remove event listeners and we really should - // clean up. Also, these events are not triggered in older browsers - // so we should be A-OK here. + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function addEventListener(node, eventName, eventListener) { - node.addEventListener(eventName, eventListener, false); - } + function transitionTimeout(transitionType) { + var timeoutPropName = 'transition' + transitionType + 'Timeout'; + var enabledPropName = 'transition' + transitionType; - function removeEventListener(node, eventName, eventListener) { - node.removeEventListener(eventName, eventListener, false); - } + return function (props) { + // If the transition is enabled + if (props[enabledPropName]) { + // If no timeout duration is provided + if (props[timeoutPropName] == null) { + return new Error(timeoutPropName + ' wasn\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); - var ReactTransitionEvents = { - addEndEventListener: function (node, eventListener) { - if (endEvents.length === 0) { - // If CSS transitions are not supported, trigger an "end animation" - // event immediately. - window.setTimeout(eventListener, 0); - return; + // If the duration isn't a number + } else if (typeof props[timeoutPropName] !== 'number') { + return new Error(timeoutPropName + ' must be a number (in milliseconds)'); + } } - endEvents.forEach(function (endEvent) { - addEventListener(node, endEvent, eventListener); - }); - }, - removeEndEventListener: function (node, eventListener) { - if (endEvents.length === 0) { - return; - } - endEvents.forEach(function (endEvent) { - removeEventListener(node, endEvent, eventListener); - }); - } - }; + return null; + }; + } - module.exports = ReactTransitionEvents; + var nameShape = exports.nameShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({ + enter: _propTypes2.default.string, + leave: _propTypes2.default.string, + active: _propTypes2.default.string + }), _propTypes2.default.shape({ + enter: _propTypes2.default.string, + enterActive: _propTypes2.default.string, + leave: _propTypes2.default.string, + leaveActive: _propTypes2.default.string, + appear: _propTypes2.default.string, + appearActive: _propTypes2.default.string + })]); /***/ }, -/* 235 */ +/* 237 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28898,7 +27933,7 @@ /***/ }, -/* 236 */ +/* 238 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28956,7 +27991,7 @@ /***/ }, -/* 237 */ +/* 239 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -29038,7 +28073,7 @@ /***/ }, -/* 238 */ +/* 240 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29054,8 +28089,8 @@ var React = __webpack_require__(24); var common_1 = __webpack_require__(21); var errors_1 = __webpack_require__(60); - var buttons_1 = __webpack_require__(239); - var dialog_1 = __webpack_require__(242); + var buttons_1 = __webpack_require__(241); + var dialog_1 = __webpack_require__(244); var Alert = (function (_super) { tslib_1.__extends(Alert, _super); function Alert() { @@ -29105,7 +28140,7 @@ /***/ }, -/* 239 */ +/* 241 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29121,7 +28156,7 @@ // tslint:disable max-classes-per-file var React = __webpack_require__(24); var props_1 = __webpack_require__(64); - var abstractButton_1 = __webpack_require__(240); + var abstractButton_1 = __webpack_require__(242); var Button = (function (_super) { tslib_1.__extends(Button, _super); function Button() { @@ -29155,7 +28190,7 @@ /***/ }, -/* 240 */ +/* 242 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29172,7 +28207,7 @@ var Classes = __webpack_require__(66); var Keys = __webpack_require__(67); var utils_1 = __webpack_require__(59); - var spinner_1 = __webpack_require__(241); + var spinner_1 = __webpack_require__(243); var AbstractButton = (function (_super) { tslib_1.__extends(AbstractButton, _super); function AbstractButton() { @@ -29256,7 +28291,7 @@ /***/ }, -/* 241 */ +/* 243 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29324,7 +28359,7 @@ /***/ }, -/* 242 */ +/* 244 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29401,7 +28436,7 @@ /***/ }, -/* 243 */ +/* 245 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29427,7 +28462,7 @@ /***/ }, -/* 244 */ +/* 246 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29586,7 +28621,7 @@ /***/ }, -/* 245 */ +/* 247 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29603,8 +28638,8 @@ var Classes = __webpack_require__(66); var Errors = __webpack_require__(60); var position_1 = __webpack_require__(63); - var menu_1 = __webpack_require__(246); - var menuItem_1 = __webpack_require__(247); + var menu_1 = __webpack_require__(248); + var menuItem_1 = __webpack_require__(249); var popover_1 = __webpack_require__(217); var CollapseFrom; (function (CollapseFrom) { @@ -29678,7 +28713,7 @@ /***/ }, -/* 246 */ +/* 248 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29711,7 +28746,7 @@ /***/ }, -/* 247 */ +/* 249 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29731,7 +28766,7 @@ var Errors = __webpack_require__(60); var position_1 = __webpack_require__(63); var popover_1 = __webpack_require__(217); - var menu_1 = __webpack_require__(246); + var menu_1 = __webpack_require__(248); var REACT_CONTEXT_TYPES = { alignLeft: function (obj, key) { if (obj[key] != null && typeof obj[key] !== "boolean") { @@ -29884,7 +28919,7 @@ /***/ }, -/* 248 */ +/* 250 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29940,7 +28975,7 @@ /***/ }, -/* 249 */ +/* 251 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29959,7 +28994,7 @@ var Classes = __webpack_require__(66); var Keys = __webpack_require__(67); var utils_1 = __webpack_require__(59); - var compatibility_1 = __webpack_require__(250); + var compatibility_1 = __webpack_require__(252); var BUFFER_WIDTH_EDGE = 5; var BUFFER_WIDTH_IE = 30; var EditableText = (function (_super) { @@ -30036,12 +29071,13 @@ } } }; + var value = (props.value == null) ? props.defaultValue : props.value; _this.state = { inputHeight: 0, inputWidth: 0, isEditing: props.isEditing === true && props.disabled === false, - lastValue: getValue(props), - value: getValue(props), + lastValue: value, + value: value, }; return _this; } @@ -30087,7 +29123,10 @@ this.updateInputDimensions(); }; EditableText.prototype.componentWillReceiveProps = function (nextProps) { - var state = { value: getValue(nextProps) }; + var state = {}; + if (nextProps.value != null) { + state.value = nextProps.value; + } if (nextProps.isEditing != null) { state.isEditing = nextProps.isEditing; } @@ -30168,9 +29207,6 @@ PureRender ], EditableText); exports.EditableText = EditableText; - function getValue(props) { - return props.value == null ? props.defaultValue : props.value; - } function getFontSize(element) { var fontSize = getComputedStyle(element).fontSize; return fontSize === "" ? 0 : parseInt(fontSize.slice(0, -2), 10); @@ -30210,7 +29246,7 @@ /***/ }, -/* 250 */ +/* 252 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30224,13 +29260,13 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(251)); + __export(__webpack_require__(253)); //# sourceMappingURL=index.js.map /***/ }, -/* 251 */ +/* 253 */ /***/ function(module, exports) { /* @@ -30257,7 +29293,7 @@ /***/ }, -/* 252 */ +/* 254 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30369,7 +29405,7 @@ /***/ }, -/* 253 */ +/* 255 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30456,7 +29492,7 @@ /***/ }, -/* 254 */ +/* 256 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30473,8 +29509,8 @@ var React = __webpack_require__(24); var common_1 = __webpack_require__(21); var Errors = __webpack_require__(60); - var buttons_1 = __webpack_require__(239); - var inputGroup_1 = __webpack_require__(253); + var buttons_1 = __webpack_require__(241); + var inputGroup_1 = __webpack_require__(255); var IncrementDirection; (function (IncrementDirection) { IncrementDirection[IncrementDirection["DOWN"] = -1] = "DOWN"; @@ -30484,6 +29520,9 @@ tslib_1.__extends(NumericInput, _super); function NumericInput(props, context) { var _this = _super.call(this, props, context) || this; + // updating these flags need not trigger re-renders, so don't include them in this.state. + _this.didPasteEventJustOccur = false; + _this.shouldSelectAfterUpdate = false; _this.inputRef = function (input) { _this.inputElement = input; }; @@ -30522,13 +29561,26 @@ // Callbacks - Input // ================= _this.handleInputFocus = function (e) { - _this.setState({ isInputGroupFocused: true, shouldSelectAfterUpdate: _this.props.selectAllOnFocus }); + _this.shouldSelectAfterUpdate = _this.props.selectAllOnFocus; + _this.setState({ isInputGroupFocused: true }); common_1.Utils.safeInvoke(_this.props.onFocus, e); }; _this.handleInputBlur = function (e) { // explicitly set `shouldSelectAfterUpdate` to `false` to prevent focus // hoarding on IE11 (#704) - _this.setState({ isInputGroupFocused: false, shouldSelectAfterUpdate: false }); + _this.shouldSelectAfterUpdate = false; + var baseStateChange = { isInputGroupFocused: false }; + if (_this.props.clampValueOnBlur) { + var value = e.target.value; + var sanitizedValue = _this.getSanitizedValue(value); + _this.setState(tslib_1.__assign({}, baseStateChange, { value: sanitizedValue })); + if (value !== sanitizedValue) { + _this.invokeOnValueChangeCallback(sanitizedValue); + } + } + else { + _this.setState(baseStateChange); + } common_1.Utils.safeInvoke(_this.props.onBlur, e); }; _this.handleInputKeyDown = function (e) { @@ -30580,11 +29632,11 @@ else { nextValue = value; } - _this.setState({ shouldSelectAfterUpdate: false, value: nextValue }); - _this.invokeOnChangeCallbacks(nextValue); + _this.shouldSelectAfterUpdate = false; + _this.setState({ value: nextValue }); + _this.invokeOnValueChangeCallback(nextValue); }; _this.state = { - shouldSelectAfterUpdate: false, stepMaxPrecision: _this.getStepMaxPrecision(props), value: _this.getValueOrEmptyValue(props.value), }; @@ -30604,18 +29656,20 @@ // outside of the new bounds, then clamp the value to the new valid range. if (didBoundsChange && sanitizedValue !== this.state.value) { this.setState({ stepMaxPrecision: stepMaxPrecision, value: sanitizedValue }); - this.invokeOnChangeCallbacks(sanitizedValue); + this.invokeOnValueChangeCallback(sanitizedValue); } else { this.setState({ stepMaxPrecision: stepMaxPrecision, value: value }); } }; NumericInput.prototype.render = function () { - var _a = this.props, buttonPosition = _a.buttonPosition, className = _a.className; + var _a = this.props, buttonPosition = _a.buttonPosition, className = _a.className, large = _a.large; var inputGroupHtmlProps = common_1.removeNonHTMLProps(this.props, [ "allowNumericCharactersOnly", "buttonPosition", + "clampValueOnBlur", "className", + "large", "majorStepSize", "minorStepSize", "onValueChange", @@ -30623,7 +29677,7 @@ "selectAllOnIncrement", "stepSize", ], true); - var inputGroup = (React.createElement(inputGroup_1.InputGroup, tslib_1.__assign({}, inputGroupHtmlProps, { intent: this.props.intent, inputRef: this.inputRef, key: "input-group", leftIconName: this.props.leftIconName, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onKeyPress: this.handleInputKeyPress, onPaste: this.handleInputPaste, value: this.state.value }))); + var inputGroup = (React.createElement(inputGroup_1.InputGroup, tslib_1.__assign({}, inputGroupHtmlProps, { className: classNames((_b = {}, _b[common_1.Classes.LARGE] = large, _b)), intent: this.props.intent, inputRef: this.inputRef, key: "input-group", leftIconName: this.props.leftIconName, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onKeyPress: this.handleInputKeyPress, onPaste: this.handleInputPaste, value: this.state.value }))); // the strict null check here is intentional; an undefined value should // fall back to the default button position on the right side. if (buttonPosition === "none" || buttonPosition === null) { @@ -30642,17 +29696,21 @@ var inputElems = (buttonPosition === common_1.Position.LEFT) ? [buttonGroup, inputGroup] : [inputGroup, buttonGroup]; - return (React.createElement("div", { className: classNames(common_1.Classes.NUMERIC_INPUT, common_1.Classes.CONTROL_GROUP, className) }, inputElems)); + var classes = classNames(common_1.Classes.NUMERIC_INPUT, common_1.Classes.CONTROL_GROUP, (_c = {}, + _c[common_1.Classes.LARGE] = large, + _c), className); + return (React.createElement("div", { className: classes }, inputElems)); } + var _b, _c; }; NumericInput.prototype.componentDidUpdate = function () { - if (this.state.shouldSelectAfterUpdate) { + if (this.shouldSelectAfterUpdate) { this.inputElement.setSelectionRange(0, this.state.value.length); } }; NumericInput.prototype.validateProps = function (nextProps) { var majorStepSize = nextProps.majorStepSize, max = nextProps.max, min = nextProps.min, minorStepSize = nextProps.minorStepSize, stepSize = nextProps.stepSize; - if (min && max && min >= max) { + if (min != null && max != null && min >= max) { throw new Error(Errors.NUMERIC_INPUT_MIN_MAX); } if (stepSize == null) { @@ -30686,7 +29744,7 @@ }; return (React.createElement(buttons_1.Button, { disabled: this.props.disabled || this.props.readOnly, iconName: iconName, intent: this.props.intent, key: key, onBlur: this.handleButtonBlur, onClick: onClick, onFocus: this.handleButtonFocus, onKeyUp: onKeyUp })); }; - NumericInput.prototype.invokeOnChangeCallbacks = function (value) { + NumericInput.prototype.invokeOnValueChangeCallback = function (value) { var valueAsString = value; var valueAsNumber = +value; // coerces non-numeric strings to NaN common_1.Utils.safeInvoke(this.props.onValueChange, valueAsNumber, valueAsString); @@ -30696,9 +29754,10 @@ NumericInput.prototype.incrementValue = function (delta /*, e: React.FormEvent*/) { // pretend we're incrementing from 0 if currValue is empty var currValue = this.state.value || NumericInput_1.VALUE_ZERO; - var nextValue = this.getSanitizedValue(currValue, delta, this.props.min, this.props.max); - this.setState({ shouldSelectAfterUpdate: this.props.selectAllOnIncrement, value: nextValue }); - this.invokeOnChangeCallbacks(nextValue); + var nextValue = this.getSanitizedValue(currValue, delta); + this.shouldSelectAfterUpdate = this.props.selectAllOnIncrement; + this.setState({ value: nextValue }); + this.invokeOnValueChangeCallback(nextValue); }; NumericInput.prototype.getIncrementDelta = function (direction, isShiftKeyPressed, isAltKeyPressed) { var _a = this.props, majorStepSize = _a.majorStepSize, minorStepSize = _a.minorStepSize, stepSize = _a.stepSize; @@ -30714,6 +29773,8 @@ }; NumericInput.prototype.getSanitizedValue = function (value, delta, min, max) { if (delta === void 0) { delta = 0; } + if (min === void 0) { min = this.props.min; } + if (max === void 0) { max = this.props.max; } if (!this.isValueNumeric(value)) { return NumericInput_1.VALUE_EMPTY; } @@ -30786,6 +29847,8 @@ NumericInput.defaultProps = { allowNumericCharactersOnly: true, buttonPosition: common_1.Position.RIGHT, + clampValueOnBlur: false, + large: false, majorStepSize: 10, minorStepSize: 0.1, selectAllOnFocus: false, @@ -30820,7 +29883,7 @@ /***/ }, -/* 255 */ +/* 257 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30836,7 +29899,7 @@ var abstractComponent_1 = __webpack_require__(22); var Classes = __webpack_require__(66); var Errors = __webpack_require__(60); - var controls_1 = __webpack_require__(252); + var controls_1 = __webpack_require__(254); var counter = 0; function nextName() { return RadioGroup.displayName + "-" + counter++; } var RadioGroup = (function (_super) { @@ -30896,7 +29959,7 @@ /***/ }, -/* 256 */ +/* 258 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30911,19 +29974,19 @@ var react_1 = __webpack_require__(24); var React = __webpack_require__(24); var common_1 = __webpack_require__(21); - var hotkey_1 = __webpack_require__(257); - var hotkey_2 = __webpack_require__(257); + var hotkey_1 = __webpack_require__(259); + var hotkey_2 = __webpack_require__(259); exports.Hotkey = hotkey_2.Hotkey; - var keyCombo_1 = __webpack_require__(258); + var keyCombo_1 = __webpack_require__(260); exports.KeyCombo = keyCombo_1.KeyCombo; - var hotkeysTarget_1 = __webpack_require__(260); + var hotkeysTarget_1 = __webpack_require__(262); exports.HotkeysTarget = hotkeysTarget_1.HotkeysTarget; - var hotkeyParser_1 = __webpack_require__(259); + var hotkeyParser_1 = __webpack_require__(261); exports.comboMatches = hotkeyParser_1.comboMatches; exports.getKeyCombo = hotkeyParser_1.getKeyCombo; exports.getKeyComboString = hotkeyParser_1.getKeyComboString; exports.parseKeyCombo = hotkeyParser_1.parseKeyCombo; - var hotkeysDialog_1 = __webpack_require__(262); + var hotkeysDialog_1 = __webpack_require__(264); exports.hideHotkeysDialog = hotkeysDialog_1.hideHotkeysDialog; exports.setHotkeysDialogProps = hotkeysDialog_1.setHotkeysDialogProps; var errors_1 = __webpack_require__(60); @@ -30975,7 +30038,7 @@ /***/ }, -/* 257 */ +/* 259 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30989,7 +30052,7 @@ var tslib_1 = __webpack_require__(23); var React = __webpack_require__(24); var common_1 = __webpack_require__(21); - var keyCombo_1 = __webpack_require__(258); + var keyCombo_1 = __webpack_require__(260); var Hotkey = (function (_super) { tslib_1.__extends(Hotkey, _super); function Hotkey() { @@ -31020,7 +30083,7 @@ /***/ }, -/* 258 */ +/* 260 */ /***/ function(module, exports, __webpack_require__) { /** @@ -31033,7 +30096,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(23); var React = __webpack_require__(24); - var hotkeyParser_1 = __webpack_require__(259); + var hotkeyParser_1 = __webpack_require__(261); var KeyIcons = { alt: "pt-icon-key-option", ctrl: "pt-icon-key-control", @@ -31079,7 +30142,7 @@ /***/ }, -/* 259 */ +/* 261 */ /***/ function(module, exports) { /* @@ -31353,7 +30416,7 @@ /***/ }, -/* 260 */ +/* 262 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31366,7 +30429,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(24); var utils_1 = __webpack_require__(59); - var hotkeysEvents_1 = __webpack_require__(261); + var hotkeysEvents_1 = __webpack_require__(263); function HotkeysTarget(constructor) { var _a = constructor.prototype, componentWillMount = _a.componentWillMount, componentDidMount = _a.componentDidMount, componentWillUnmount = _a.componentWillUnmount, render = _a.render, renderHotkeys = _a.renderHotkeys; if (!utils_1.isFunction(renderHotkeys)) { @@ -31432,7 +30495,7 @@ /***/ }, -/* 261 */ +/* 263 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31445,9 +30508,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = __webpack_require__(24); var utils_1 = __webpack_require__(59); - var hotkey_1 = __webpack_require__(257); - var hotkeyParser_1 = __webpack_require__(259); - var hotkeysDialog_1 = __webpack_require__(262); + var hotkey_1 = __webpack_require__(259); + var hotkeyParser_1 = __webpack_require__(261); + var hotkeysDialog_1 = __webpack_require__(264); var SHOW_DIALOG_KEY = "?"; var HotkeyScope; (function (HotkeyScope) { @@ -31542,7 +30605,7 @@ /***/ }, -/* 262 */ +/* 264 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31559,8 +30622,8 @@ var ReactDOM = __webpack_require__(71); var common_1 = __webpack_require__(21); var components_1 = __webpack_require__(68); - var hotkey_1 = __webpack_require__(257); - var hotkeys_1 = __webpack_require__(256); + var hotkey_1 = __webpack_require__(259); + var hotkeys_1 = __webpack_require__(258); var HotkeysDialog = (function () { function HotkeysDialog() { var _this = this; @@ -31666,7 +30729,7 @@ /***/ }, -/* 263 */ +/* 265 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31708,7 +30771,7 @@ /***/ }, -/* 264 */ +/* 266 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31779,7 +30842,7 @@ /***/ }, -/* 265 */ +/* 267 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31839,7 +30902,7 @@ /***/ }, -/* 266 */ +/* 268 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31870,7 +30933,7 @@ /***/ }, -/* 267 */ +/* 269 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31913,7 +30976,7 @@ /***/ }, -/* 268 */ +/* 270 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31926,7 +30989,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(23); var React = __webpack_require__(24); - var tooltip_1 = __webpack_require__(236); + var tooltip_1 = __webpack_require__(238); var SVGTooltip = (function (_super) { tslib_1.__extends(SVGTooltip, _super); function SVGTooltip() { @@ -31944,7 +31007,7 @@ /***/ }, -/* 269 */ +/* 271 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31961,8 +31024,8 @@ var Classes = __webpack_require__(66); var Errors = __webpack_require__(60); var utils_1 = __webpack_require__(59); - var coreSlider_1 = __webpack_require__(270); - var handle_1 = __webpack_require__(271); + var coreSlider_1 = __webpack_require__(272); + var handle_1 = __webpack_require__(273); var RangeEnd; (function (RangeEnd) { RangeEnd[RangeEnd["LEFT"] = 0] = "LEFT"; @@ -32064,7 +31127,7 @@ /***/ }, -/* 270 */ +/* 272 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32198,7 +31261,7 @@ /***/ }, -/* 271 */ +/* 273 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32353,7 +31416,7 @@ /***/ }, -/* 272 */ +/* 274 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32368,8 +31431,8 @@ var React = __webpack_require__(24); var Classes = __webpack_require__(66); var utils_1 = __webpack_require__(59); - var coreSlider_1 = __webpack_require__(270); - var handle_1 = __webpack_require__(271); + var coreSlider_1 = __webpack_require__(272); + var handle_1 = __webpack_require__(273); var Slider = (function (_super) { tslib_1.__extends(Slider, _super); function Slider() { @@ -32422,7 +31485,7 @@ /***/ }, -/* 273 */ +/* 275 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32438,7 +31501,7 @@ var React = __webpack_require__(24); var Classes = __webpack_require__(66); // import * to avoid "cannot be named" error on factory - var spinner = __webpack_require__(241); + var spinner = __webpack_require__(243); var SVGSpinner = (function (_super) { tslib_1.__extends(SVGSpinner, _super); function SVGSpinner() { @@ -32457,7 +31520,7 @@ /***/ }, -/* 274 */ +/* 276 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32498,7 +31561,7 @@ /***/ }, -/* 275 */ +/* 277 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32519,9 +31582,9 @@ var Errors = __webpack_require__(60); var Keys = __webpack_require__(67); var Utils = __webpack_require__(59); - var tab_1 = __webpack_require__(274); - var tabList_1 = __webpack_require__(276); - var tabPanel_1 = __webpack_require__(277); + var tab_1 = __webpack_require__(276); + var tabList_1 = __webpack_require__(278); + var tabPanel_1 = __webpack_require__(279); var TAB_CSS_SELECTOR = "li[role=tab]"; var Tabs = (function (_super) { tslib_1.__extends(Tabs, _super); @@ -32808,7 +31871,7 @@ /***/ }, -/* 276 */ +/* 278 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32859,7 +31922,7 @@ /***/ }, -/* 277 */ +/* 279 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32896,7 +31959,7 @@ /***/ }, -/* 278 */ +/* 280 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32940,7 +32003,7 @@ /***/ }, -/* 279 */ +/* 281 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32959,8 +32022,8 @@ var Classes = __webpack_require__(66); var Keys = __webpack_require__(67); var utils_1 = __webpack_require__(59); - var tab2_1 = __webpack_require__(278); - var tabTitle_1 = __webpack_require__(280); + var tab2_1 = __webpack_require__(280); + var tabTitle_1 = __webpack_require__(282); exports.Expander = function () { return React.createElement("div", { className: "pt-flex-expander" }); }; var TAB_SELECTOR = "." + Classes.TAB; var Tabs2 = (function (_super) { @@ -32997,12 +32060,9 @@ } }; _this.handleTabClick = function (newTabId) { - var selectedTabId = _this.state.selectedTabId; - if (newTabId !== selectedTabId) { - utils_1.safeInvoke(_this.props.onChange, newTabId, selectedTabId); - if (_this.props.selectedTabId === undefined) { - _this.setState({ selectedTabId: newTabId }); - } + utils_1.safeInvoke(_this.props.onChange, newTabId, _this.state.selectedTabId); + if (_this.props.selectedTabId === undefined) { + _this.setState({ selectedTabId: newTabId }); } }; _this.renderTabPanel = function (tab) { @@ -33140,7 +32200,7 @@ /***/ }, -/* 280 */ +/* 282 */ /***/ function(module, exports, __webpack_require__) { /* @@ -33189,7 +32249,7 @@ /***/ }, -/* 281 */ +/* 283 */ /***/ function(module, exports, __webpack_require__) { /* @@ -33236,7 +32296,7 @@ /***/ }, -/* 282 */ +/* 284 */ /***/ function(module, exports, __webpack_require__) { /* @@ -33254,7 +32314,7 @@ var abstractComponent_1 = __webpack_require__(22); var Classes = __webpack_require__(66); var utils_1 = __webpack_require__(59); - var buttons_1 = __webpack_require__(239); + var buttons_1 = __webpack_require__(241); var Toast = (function (_super) { tslib_1.__extends(Toast, _super); function Toast() { @@ -33334,7 +32394,7 @@ /***/ }, -/* 283 */ +/* 285 */ /***/ function(module, exports, __webpack_require__) { /* @@ -33357,7 +32417,7 @@ var position_1 = __webpack_require__(63); var utils_1 = __webpack_require__(59); var overlay_1 = __webpack_require__(221); - var toast_1 = __webpack_require__(282); + var toast_1 = __webpack_require__(284); var Toaster = Toaster_1 = (function (_super) { tslib_1.__extends(Toaster, _super); function Toaster() { @@ -33467,7 +32527,7 @@ /***/ }, -/* 284 */ +/* 286 */ /***/ function(module, exports, __webpack_require__) { /* @@ -33483,7 +32543,7 @@ var React = __webpack_require__(24); var Classes = __webpack_require__(66); var utils_1 = __webpack_require__(59); - var treeNode_1 = __webpack_require__(285); + var treeNode_1 = __webpack_require__(287); var Tree = (function (_super) { tslib_1.__extends(Tree, _super); function Tree() { @@ -33560,7 +32620,7 @@ /***/ }, -/* 285 */ +/* 287 */ /***/ function(module, exports, __webpack_require__) { /* @@ -33576,7 +32636,7 @@ var React = __webpack_require__(24); var Classes = __webpack_require__(66); var utils_1 = __webpack_require__(59); - var collapse_1 = __webpack_require__(244); + var collapse_1 = __webpack_require__(246); var TreeNode = (function (_super) { tslib_1.__extends(TreeNode, _super); function TreeNode() { @@ -33648,7 +32708,7 @@ /***/ }, -/* 286 */ +/* 288 */ /***/ function(module, exports) { /* @@ -34058,7 +33118,7 @@ /***/ }, -/* 287 */ +/* 289 */ /***/ function(module, exports) { /* @@ -34468,7 +33528,7 @@ /***/ }, -/* 288 */ +/* 290 */ /***/ function(module, exports) { /** @@ -35562,7 +34622,7 @@ /***/ }, -/* 289 */ +/* 291 */ /***/ function(module, exports, __webpack_require__) { /** @@ -35574,20 +34634,20 @@ "use strict"; // tslint:disable no-var-requires var HERO_SVGS = { - "alert": __webpack_require__(290), - "buttons": __webpack_require__(291), - "calendar": __webpack_require__(292), - "checkboxes": __webpack_require__(293), - "file-upload": __webpack_require__(294), - "input-groups": __webpack_require__(295), - "inputs": __webpack_require__(296), - "labels": __webpack_require__(297), - "radios": __webpack_require__(298), - "select-menus": __webpack_require__(299), - "sliders": __webpack_require__(300), - "switches": __webpack_require__(301), - "time-selections": __webpack_require__(302), - "toggles": __webpack_require__(303), + "alert": __webpack_require__(292), + "buttons": __webpack_require__(293), + "calendar": __webpack_require__(294), + "checkboxes": __webpack_require__(295), + "file-upload": __webpack_require__(296), + "input-groups": __webpack_require__(297), + "inputs": __webpack_require__(298), + "labels": __webpack_require__(299), + "radios": __webpack_require__(300), + "select-menus": __webpack_require__(301), + "sliders": __webpack_require__(302), + "switches": __webpack_require__(303), + "time-selections": __webpack_require__(304), + "toggles": __webpack_require__(305), }; var injectSVG = function (elem, id) { var wrapper = document.createElement("div"); @@ -35604,85 +34664,85 @@ /***/ }, -/* 290 */ +/* 292 */ /***/ function(module, exports) { module.exports = "\n \n ALERT\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 291 */ +/* 293 */ /***/ function(module, exports) { module.exports = "\n \n BUTTONS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 292 */ +/* 294 */ /***/ function(module, exports) { module.exports = "\n \n CALENDAR\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 293 */ +/* 295 */ /***/ function(module, exports) { module.exports = "\n \n CHECKBOXES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 294 */ +/* 296 */ /***/ function(module, exports) { module.exports = "\n \n UPLOAD\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 295 */ +/* 297 */ /***/ function(module, exports) { module.exports = "\n \n INPUTS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 296 */ +/* 298 */ /***/ function(module, exports) { module.exports = "\n \n INPUTS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 297 */ +/* 299 */ /***/ function(module, exports) { module.exports = "\n \n LABELS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 298 */ +/* 300 */ /***/ function(module, exports) { module.exports = "\n \n RADIOS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 299 */ +/* 301 */ /***/ function(module, exports) { module.exports = "\n \n SELECT MENUS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 300 */ +/* 302 */ /***/ function(module, exports) { module.exports = "\n \n SLIDERS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 301 */ +/* 303 */ /***/ function(module, exports) { module.exports = "\n \n SWITCHES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 302 */ +/* 304 */ /***/ function(module, exports) { module.exports = "\n \n TIME SELECTIONS\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }, -/* 303 */ +/* 305 */ /***/ function(module, exports) { module.exports = "\n \n TOGGLES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" diff --git a/docs/docs/site-docs.css b/docs/docs/site-docs.css index 6ef521f8d8..1139beb8a5 100644 --- a/docs/docs/site-docs.css +++ b/docs/docs/site-docs.css @@ -4648,35 +4648,37 @@ label.pt-label.pt-disabled, pointer-events: none; } .pt-disabled.pt-select::after { color: rgba(92, 112, 128, 0.5); } -.pt-numeric-input .pt-button-group.pt-vertical > .pt-button { - min-width: 30px; - min-height: 30px; - line-height: 30px; - display: block; - min-height: 15px; - line-height: 15px; } .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { - border-radius: 0 3px 0 0; - height: 16px; } + min-height: 16px; } +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { + min-height: 15px; } +.pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { + border-radius: 0 3px 0 0; } .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { - border-radius: 0 0 3px 0; - height: 15px; } + border-radius: 0 0 3px 0; } .pt-numeric-input .pt-button-group.pt-vertical > .pt-button[class*="pt-icon-"]::before { - display: block; - height: 14px; - overflow: hidden; - line-height: 14px; } -.pt-numeric-input .pt-button-group:first-child.pt-vertical > .pt-button:first-child { + display: block; + height: 14px; + overflow: hidden; + line-height: 14px; } +.pt-numeric-input .pt-button-group.pt-vertical:first-child > .pt-button:first-child { border-radius: 3px 0 0 0; } -.pt-numeric-input .pt-button-group:first-child.pt-vertical > .pt-button:last-child { +.pt-numeric-input .pt-button-group.pt-vertical:first-child > .pt-button:last-child { border-radius: 0 0 0 3px; } +.pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:first-child { + min-height: 21px; } +.pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:last-child { + min-height: 20px; } .pt-dark .pt-numeric-input .pt-button-group.pt-vertical > .pt-button { - min-height: 14px; line-height: 14px; } .pt-dark .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:first-child { - height: 15px; } + min-height: 15px; } .pt-dark .pt-numeric-input .pt-button-group.pt-vertical > .pt-button:last-child { - height: 14px; } + min-height: 14px; } +.pt-dark .pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:first-child { + min-height: 20px; } +.pt-dark .pt-numeric-input.pt-large .pt-button-group.pt-vertical > .pt-button:last-child { + min-height: 19px; } form { display: block; } .pt-key { @@ -6865,7 +6867,7 @@ table.pt-table.pt-interactive tbody tr:hover td { .bp-table-column-headers { box-shadow: 0 1px 0 0 rgba(16, 22, 26, 0.15); } .bp-table-row-headers { - box-shadow: 1px 0 0 rgba(16, 22, 26, 0.15), inset 0 1px 0 rgba(16, 22, 26, 0.15); } + box-shadow: inset 0 1px 0 rgba(16, 22, 26, 0.15); } .bp-table-cell { box-shadow: inset -1px 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15); } .bp-table-horizontal-cell-divider { @@ -6881,12 +6883,12 @@ table.pt-table.pt-interactive tbody tr:hover td { .bp-table-column-headers .bp-table-header.bp-table-last-in-row::before { right: 0; } .bp-table-row-headers .bp-table-header { - box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.15); } + box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.15), 1px 0 0 rgba(16, 22, 26, 0.15); } .bp-table-row-headers .bp-table-header::before { right: 0; bottom: 1px; } .bp-table-row-headers .bp-table-header.bp-table-last-in-column { - box-shadow: 0 1px 0 rgba(16, 22, 26, 0.15); } + box-shadow: 1px 0 0 0 rgba(16, 22, 26, 0.15), 0 1px 0 0 rgba(16, 22, 26, 0.15); } .bp-table-row-headers .bp-table-header.bp-table-last-in-column::before { bottom: 0; } .bp-table-body .bp-table-last-in-row { @@ -6906,7 +6908,7 @@ table.pt-table.pt-interactive tbody tr:hover td { .pt-dark .bp-table-column-headers { box-shadow: 0 1px 0 0 rgba(16, 22, 26, 0.4); } .pt-dark .bp-table-row-headers { - box-shadow: 1px 0 0 rgba(16, 22, 26, 0.4), inset 0 1px 0 rgba(16, 22, 26, 0.4); } + box-shadow: inset 0 1px 0 rgba(16, 22, 26, 0.4); } .pt-dark .bp-table-cell { box-shadow: inset -1px 0 0 rgba(16, 22, 26, 0.4), inset 0 -1px 0 rgba(16, 22, 26, 0.4); } .pt-dark .bp-table-horizontal-cell-divider { @@ -6922,12 +6924,12 @@ table.pt-table.pt-interactive tbody tr:hover td { .pt-dark .bp-table-column-headers .bp-table-header.bp-table-last-in-row::before { right: 0; } .pt-dark .bp-table-row-headers .bp-table-header { - box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.4); } + box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.4), 1px 0 0 rgba(16, 22, 26, 0.4); } .pt-dark .bp-table-row-headers .bp-table-header::before { right: 0; bottom: 1px; } .pt-dark .bp-table-row-headers .bp-table-header.bp-table-last-in-column { - box-shadow: 0 1px 0 rgba(16, 22, 26, 0.4); } + box-shadow: 1px 0 0 0 rgba(16, 22, 26, 0.4), 0 1px 0 0 rgba(16, 22, 26, 0.4); } .pt-dark .bp-table-row-headers .bp-table-header.bp-table-last-in-column::before { bottom: 0; } .pt-dark .bp-table-body .bp-table-last-in-row { @@ -7677,7 +7679,7 @@ and https://github.com/palantir/blueprint/blob/master/PATENTS .docs-navigator .pt-menu { min-width: 220px; } .docs-navigator .pt-menu { - max-height: 240px; + max-height: 245px; overflow: auto; } .docs-navigator .pt-menu-item:not(.pt-active) { background: inherit; } diff --git a/docs/docs/site-docs.js b/docs/docs/site-docs.js index 7bc94b0b32..5d7eaf6efd 100644 --- a/docs/docs/site-docs.js +++ b/docs/docs/site-docs.js @@ -51,16 +51,16 @@ var React = __webpack_require__(3); var ReactDOM = __webpack_require__(33); var docs_1 = __webpack_require__(171); - var blueprintDocs_1 = __webpack_require__(289); - var ReactDocs = __webpack_require__(292); - var reactExamples_1 = __webpack_require__(301); - var docs = __webpack_require__(523); - var releases = __webpack_require__(524) + var blueprintDocs_1 = __webpack_require__(295); + var ReactDocs = __webpack_require__(298); + var reactExamples_1 = __webpack_require__(307); + var docs = __webpack_require__(547); + var releases = __webpack_require__(548) .map(function (pkg) { pkg.url = "https://www.npmjs.com/package/" + pkg.name; return pkg; }); - var versions = __webpack_require__(525) + var versions = __webpack_require__(549) .map(function (version) { return ({ url: "https://palantir.github.io/blueprint/docs/" + version, version: version, @@ -21606,8 +21606,8 @@ __webpack_require__(2); __export(__webpack_require__(172)); __export(__webpack_require__(175)); - __export(__webpack_require__(277)); - __export(__webpack_require__(279)); + __export(__webpack_require__(283)); + __export(__webpack_require__(285)); @@ -21715,6 +21715,7 @@ var __values; var __read; var __spread; + var __await; var __asyncGenerator; var __asyncDelegator; var __asyncValues; @@ -21852,24 +21853,26 @@ return ar; }; + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), q = [], c, i; - return i = { next: verb("next"), "throw": verb("throw"), "return": verb("return") }, i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { return function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]), next(); }); }; } - function next() { if (!c && q.length) resume((c = q.shift())[0], c[1]); } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(c[3], e); } } - function step(r) { r.done ? settle(c[2], r) : r.value[0] === "yield" ? settle(c[2], { value: r.value[1], done: false }) : Promise.resolve(r.value[1]).then(r.value[0] === "delegate" ? delegate : fulfill, reject); } - function delegate(r) { step(r.done ? r : { value: ["yield", r.value], done: false }); } + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } - function settle(f, v) { c = void 0, f(v), next(); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } }; __asyncDelegator = function (o) { - var i = { next: verb("next"), "throw": verb("throw", function (e) { throw e; }), "return": verb("return", function (v) { return { value: v, done: true }; }) }; - return o = __asyncValues(o), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { return function (v) { return { value: ["delegate", (o[n] || f).call(o, v)], done: false }; }; } + var i, p; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } }; __asyncValues = function (o) { @@ -21890,6 +21893,7 @@ exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); + exporter("__await", __await); exporter("__asyncGenerator", __asyncGenerator); exporter("__asyncDelegator", __asyncDelegator); exporter("__asyncValues", __asyncValues); @@ -21967,10 +21971,10 @@ var client_1 = __webpack_require__(176); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var utils_1 = __webpack_require__(266); - var navigator_1 = __webpack_require__(267); - var navMenu_1 = __webpack_require__(274); - var page_1 = __webpack_require__(275); + var utils_1 = __webpack_require__(272); + var navigator_1 = __webpack_require__(273); + var navMenu_1 = __webpack_require__(280); + var page_1 = __webpack_require__(281); var Documentation = (function (_super) { tslib_1.__extends(Documentation, _super); function Documentation(props) { @@ -22212,9 +22216,9 @@ __export(__webpack_require__(179)); __export(__webpack_require__(182)); __export(__webpack_require__(194)); - var iconClasses_1 = __webpack_require__(264); + var iconClasses_1 = __webpack_require__(270); exports.IconClasses = iconClasses_1.IconClasses; - var iconStrings_1 = __webpack_require__(265); + var iconStrings_1 = __webpack_require__(271); exports.IconContents = iconStrings_1.IconContents; @@ -22476,6 +22480,7 @@ var __values; var __read; var __spread; + var __await; var __asyncGenerator; var __asyncDelegator; var __asyncValues; @@ -22613,24 +22618,26 @@ return ar; }; + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), q = [], c, i; - return i = { next: verb("next"), "throw": verb("throw"), "return": verb("return") }, i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { return function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]), next(); }); }; } - function next() { if (!c && q.length) resume((c = q.shift())[0], c[1]); } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(c[3], e); } } - function step(r) { r.done ? settle(c[2], r) : r.value[0] === "yield" ? settle(c[2], { value: r.value[1], done: false }) : Promise.resolve(r.value[1]).then(r.value[0] === "delegate" ? delegate : fulfill, reject); } - function delegate(r) { step(r.done ? r : { value: ["yield", r.value], done: false }); } + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } - function settle(f, v) { c = void 0, f(v), next(); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } }; __asyncDelegator = function (o) { - var i = { next: verb("next"), "throw": verb("throw", function (e) { throw e; }), "return": verb("return", function (v) { return { value: v, done: true }; }) }; - return o = __asyncValues(o), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { return function (v) { return { value: ["delegate", (o[n] || f).call(o, v)], done: false }; }; } + var i, p; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } }; __asyncValues = function (o) { @@ -22651,6 +22658,7 @@ exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); + exporter("__await", __await); exporter("__asyncGenerator", __asyncGenerator); exporter("__asyncDelegator", __asyncDelegator); exporter("__asyncValues", __asyncValues); @@ -23340,46 +23348,46 @@ } var contextMenu = __webpack_require__(195); exports.ContextMenu = contextMenu; - __export(__webpack_require__(216)); - __export(__webpack_require__(221)); - __export(__webpack_require__(217)); __export(__webpack_require__(222)); + __export(__webpack_require__(227)); __export(__webpack_require__(223)); + __export(__webpack_require__(228)); + __export(__webpack_require__(229)); + __export(__webpack_require__(232)); __export(__webpack_require__(226)); - __export(__webpack_require__(220)); - __export(__webpack_require__(227)); + __export(__webpack_require__(233)); + __export(__webpack_require__(236)); + __export(__webpack_require__(237)); + __export(__webpack_require__(238)); + __export(__webpack_require__(239)); + __export(__webpack_require__(240)); __export(__webpack_require__(230)); + __export(__webpack_require__(247)); __export(__webpack_require__(231)); - __export(__webpack_require__(232)); - __export(__webpack_require__(233)); - __export(__webpack_require__(234)); - __export(__webpack_require__(224)); - __export(__webpack_require__(241)); - __export(__webpack_require__(225)); - __export(__webpack_require__(242)); + __export(__webpack_require__(248)); __export(__webpack_require__(203)); - __export(__webpack_require__(243)); + __export(__webpack_require__(249)); __export(__webpack_require__(196)); - __export(__webpack_require__(244)); - __export(__webpack_require__(213)); - __export(__webpack_require__(245)); - __export(__webpack_require__(246)); - __export(__webpack_require__(247)); __export(__webpack_require__(250)); __export(__webpack_require__(219)); __export(__webpack_require__(251)); __export(__webpack_require__(252)); __export(__webpack_require__(253)); - __export(__webpack_require__(254)); - __export(__webpack_require__(255)); __export(__webpack_require__(256)); + __export(__webpack_require__(225)); __export(__webpack_require__(257)); + __export(__webpack_require__(258)); __export(__webpack_require__(259)); __export(__webpack_require__(260)); __export(__webpack_require__(261)); - __export(__webpack_require__(214)); __export(__webpack_require__(262)); __export(__webpack_require__(263)); + __export(__webpack_require__(265)); + __export(__webpack_require__(266)); + __export(__webpack_require__(267)); + __export(__webpack_require__(220)); + __export(__webpack_require__(268)); + __export(__webpack_require__(269)); @@ -23506,8 +23514,8 @@ var TetherUtils = __webpack_require__(191); var Utils = __webpack_require__(185); var overlay_1 = __webpack_require__(203); - var tooltip_1 = __webpack_require__(214); - var Arrows = __webpack_require__(215); + var tooltip_1 = __webpack_require__(220); + var Arrows = __webpack_require__(221); var SVG_SHADOW_PATH = "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378" + "-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"; var SVG_ARROW_PATH = "M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005" + @@ -26033,7 +26041,7 @@ var Classes = __webpack_require__(192); var Keys = __webpack_require__(193); var utils_1 = __webpack_require__(185); - var portal_1 = __webpack_require__(213); + var portal_1 = __webpack_require__(219); var Overlay = Overlay_1 = (function (_super) { tslib_1.__extends(Overlay, _super); function Overlay(props, context) { @@ -26234,81 +26242,69 @@ /* 204 */ /***/ function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(205); - -/***/ }, -/* 205 */ -/***/ function(module, exports, __webpack_require__) { - - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - var _assign = __webpack_require__(5); + exports.__esModule = true; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + 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; }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + var _react = __webpack_require__(3); - 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 _react2 = _interopRequireDefault(_react); - var React = __webpack_require__(4); - var propTypesFactory = __webpack_require__(27); - var PropTypes = propTypesFactory(React.isValidElement); + var _propTypes = __webpack_require__(205); - var ReactTransitionGroup = __webpack_require__(206); - var ReactCSSTransitionGroupChild = __webpack_require__(209); + var _propTypes2 = _interopRequireDefault(_propTypes); - function createTransitionTimeoutPropValidator(transitionType) { - var timeoutPropName = 'transition' + transitionType + 'Timeout'; - var enabledPropName = 'transition' + transitionType; + var _TransitionGroup = __webpack_require__(207); - return function (props) { - // If the transition is enabled - if (props[enabledPropName]) { - // If no timeout duration is provided - if (props[timeoutPropName] == null) { - return new Error(timeoutPropName + ' wasn\'t supplied to ReactCSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); + var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup); - // If the duration isn't a number - } else if (typeof props[timeoutPropName] !== 'number') { - return new Error(timeoutPropName + ' must be a number (in milliseconds)'); - } - } - }; - } + var _CSSTransitionGroupChild = __webpack_require__(211); - /** - * An easy way to perform CSS transitions and animations when a React component - * enters or leaves the DOM. - * See https://facebook.github.io/react/docs/animation.html#high-level-api-reactcsstransitiongroup - */ + var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild); - var ReactCSSTransitionGroup = function (_React$Component) { - _inherits(ReactCSSTransitionGroup, _React$Component); + var _PropTypes = __webpack_require__(218); - function ReactCSSTransitionGroup() { + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + 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 propTypes = { + transitionName: _PropTypes.nameShape.isRequired, + + transitionAppear: _propTypes2.default.bool, + transitionEnter: _propTypes2.default.bool, + transitionLeave: _propTypes2.default.bool, + transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'), + transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'), + transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave') + }; + + var defaultProps = { + transitionAppear: false, + transitionEnter: true, + transitionLeave: true + }; + + var CSSTransitionGroup = function (_React$Component) { + _inherits(CSSTransitionGroup, _React$Component); + + function CSSTransitionGroup() { var _temp, _this, _ret; - _classCallCheck(this, ReactCSSTransitionGroup); + _classCallCheck(this, CSSTransitionGroup); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) { - // We need to provide this childFactory so that - // ReactCSSTransitionGroupChild can receive updates to name, enter, and - // leave while it is leaving. - return React.createElement(ReactCSSTransitionGroupChild, { + return _react2.default.createElement(_CSSTransitionGroupChild2.default, { name: _this.props.transitionName, appear: _this.props.transitionAppear, enter: _this.props.transitionEnter, @@ -26320,35 +26316,29 @@ }, _temp), _possibleConstructorReturn(_this, _ret); } - ReactCSSTransitionGroup.prototype.render = function render() { - return React.createElement(ReactTransitionGroup, _assign({}, this.props, { childFactory: this._wrapChild })); + // We need to provide this childFactory so that + // ReactCSSTransitionGroupChild can receive updates to name, enter, and + // leave while it is leaving. + + + CSSTransitionGroup.prototype.render = function render() { + return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild })); }; - return ReactCSSTransitionGroup; - }(React.Component); + return CSSTransitionGroup; + }(_react2.default.Component); - ReactCSSTransitionGroup.displayName = 'ReactCSSTransitionGroup'; - ReactCSSTransitionGroup.propTypes = { - transitionName: ReactCSSTransitionGroupChild.propTypes.name, + CSSTransitionGroup.displayName = 'CSSTransitionGroup'; - transitionAppear: PropTypes.bool, - transitionEnter: PropTypes.bool, - transitionLeave: PropTypes.bool, - transitionAppearTimeout: createTransitionTimeoutPropValidator('Appear'), - transitionEnterTimeout: createTransitionTimeoutPropValidator('Enter'), - transitionLeaveTimeout: createTransitionTimeoutPropValidator('Leave') - }; - ReactCSSTransitionGroup.defaultProps = { - transitionAppear: false, - transitionEnter: true, - transitionLeave: true - }; + CSSTransitionGroup.propTypes = propTypes; + CSSTransitionGroup.defaultProps = defaultProps; - module.exports = ReactCSSTransitionGroup; + exports.default = CSSTransitionGroup; + module.exports = exports['default']; /***/ }, -/* 206 */ +/* 205 */ /***/ function(module, exports, __webpack_require__) { /** @@ -26358,100 +26348,208 @@ * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. + */ + + if (false) { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(206)(); + } + + +/***/ }, +/* 206 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; - var _assign = __webpack_require__(5); + var emptyFunction = __webpack_require__(13); + var invariant = __webpack_require__(9); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + module.exports = function() { + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + function shim() { + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim + }; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; - 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; } + return ReactPropTypes; + }; + + +/***/ }, +/* 207 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; - var React = __webpack_require__(4); - var ReactTransitionChildMapping = __webpack_require__(207); + exports.__esModule = true; - var propTypesFactory = __webpack_require__(27); - var PropTypes = propTypesFactory(React.isValidElement); + 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 emptyFunction = __webpack_require__(13); + var _chainFunction = __webpack_require__(208); - /** - * A basis for animations. When children are declaratively added or removed, - * special lifecycle hooks are called. - * See https://facebook.github.io/react/docs/animation.html#low-level-api-reacttransitiongroup - */ + var _chainFunction2 = _interopRequireDefault(_chainFunction); - var ReactTransitionGroup = function (_React$Component) { - _inherits(ReactTransitionGroup, _React$Component); + var _react = __webpack_require__(3); - function ReactTransitionGroup() { - var _temp, _this, _ret; + var _react2 = _interopRequireDefault(_react); - _classCallCheck(this, ReactTransitionGroup); + var _propTypes = __webpack_require__(205); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _propTypes2 = _interopRequireDefault(_propTypes); + + var _warning = __webpack_require__(209); + + var _warning2 = _interopRequireDefault(_warning); + + var _ChildMapping = __webpack_require__(210); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + 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 propTypes = { + component: _propTypes2.default.any, + childFactory: _propTypes2.default.func, + children: _propTypes2.default.node + }; + + var defaultProps = { + component: 'span', + childFactory: function childFactory(child) { + return child; + } + }; + + var TransitionGroup = function (_React$Component) { + _inherits(TransitionGroup, _React$Component); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { - // TODO: can we get useful debug information to show at this point? - children: ReactTransitionChildMapping.getChildMapping(_this.props.children) - }, _this.performAppear = function (key) { + function TransitionGroup(props, context) { + _classCallCheck(this, TransitionGroup); + + var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); + + _this.performAppear = function (key) { _this.currentlyTransitioningKeys[key] = true; - var component = _this.refs[key]; + var component = _this.childRefs[key]; if (component.componentWillAppear) { component.componentWillAppear(_this._handleDoneAppearing.bind(_this, key)); } else { _this._handleDoneAppearing(key); } - }, _this._handleDoneAppearing = function (key) { - var component = _this.refs[key]; - if (component.componentDidAppear) { + }; + + _this._handleDoneAppearing = function (key) { + var component = _this.childRefs[key]; + if (component && component.componentDidAppear) { component.componentDidAppear(); } delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = ReactTransitionChildMapping.getChildMapping(_this.props.children); + var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) { // This was removed before it had fully appeared. Remove it. _this.performLeave(key); } - }, _this.performEnter = function (key) { + }; + + _this.performEnter = function (key) { _this.currentlyTransitioningKeys[key] = true; - var component = _this.refs[key]; + var component = _this.childRefs[key]; if (component.componentWillEnter) { component.componentWillEnter(_this._handleDoneEntering.bind(_this, key)); } else { _this._handleDoneEntering(key); } - }, _this._handleDoneEntering = function (key) { - var component = _this.refs[key]; - if (component.componentDidEnter) { + }; + + _this._handleDoneEntering = function (key) { + var component = _this.childRefs[key]; + if (component && component.componentDidEnter) { component.componentDidEnter(); } delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = ReactTransitionChildMapping.getChildMapping(_this.props.children); + var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) { // This was removed before it had fully entered. Remove it. _this.performLeave(key); } - }, _this.performLeave = function (key) { + }; + + _this.performLeave = function (key) { _this.currentlyTransitioningKeys[key] = true; - var component = _this.refs[key]; + var component = _this.childRefs[key]; if (component.componentWillLeave) { component.componentWillLeave(_this._handleDoneLeaving.bind(_this, key)); } else { @@ -26460,37 +26558,46 @@ // is done. _this._handleDoneLeaving(key); } - }, _this._handleDoneLeaving = function (key) { - var component = _this.refs[key]; + }; + + _this._handleDoneLeaving = function (key) { + var component = _this.childRefs[key]; - if (component.componentDidLeave) { + if (component && component.componentDidLeave) { component.componentDidLeave(); } delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = ReactTransitionChildMapping.getChildMapping(_this.props.children); + var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); if (currentChildMapping && currentChildMapping.hasOwnProperty(key)) { // This entered again before it fully left. Add it again. _this.performEnter(key); } else { _this.setState(function (state) { - var newChildren = _assign({}, state.children); + var newChildren = _extends({}, state.children); delete newChildren[key]; return { children: newChildren }; }); } - }, _temp), _possibleConstructorReturn(_this, _ret); + }; + + _this.childRefs = Object.create(null); + + _this.state = { + children: (0, _ChildMapping.getChildMapping)(props.children) + }; + return _this; } - ReactTransitionGroup.prototype.componentWillMount = function componentWillMount() { + TransitionGroup.prototype.componentWillMount = function componentWillMount() { this.currentlyTransitioningKeys = {}; this.keysToEnter = []; this.keysToLeave = []; }; - ReactTransitionGroup.prototype.componentDidMount = function componentDidMount() { + TransitionGroup.prototype.componentDidMount = function componentDidMount() { var initialChildMapping = this.state.children; for (var key in initialChildMapping) { if (initialChildMapping[key]) { @@ -26499,34 +26606,32 @@ } }; - ReactTransitionGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var nextChildMapping = ReactTransitionChildMapping.getChildMapping(nextProps.children); + TransitionGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var nextChildMapping = (0, _ChildMapping.getChildMapping)(nextProps.children); var prevChildMapping = this.state.children; this.setState({ - children: ReactTransitionChildMapping.mergeChildMappings(prevChildMapping, nextChildMapping) + children: (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping) }); - var key; - - for (key in nextChildMapping) { + for (var key in nextChildMapping) { var hasPrev = prevChildMapping && prevChildMapping.hasOwnProperty(key); if (nextChildMapping[key] && !hasPrev && !this.currentlyTransitioningKeys[key]) { this.keysToEnter.push(key); } } - for (key in prevChildMapping) { - var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(key); - if (prevChildMapping[key] && !hasNext && !this.currentlyTransitioningKeys[key]) { - this.keysToLeave.push(key); + for (var _key in prevChildMapping) { + var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(_key); + if (prevChildMapping[_key] && !hasNext && !this.currentlyTransitioningKeys[_key]) { + this.keysToLeave.push(_key); } } // If we want to someday check for reordering, we could do it here. }; - ReactTransitionGroup.prototype.componentDidUpdate = function componentDidUpdate() { + TransitionGroup.prototype.componentDidUpdate = function componentDidUpdate() { var keysToEnter = this.keysToEnter; this.keysToEnter = []; keysToEnter.forEach(this.performEnter); @@ -26536,24 +26641,50 @@ keysToLeave.forEach(this.performLeave); }; - ReactTransitionGroup.prototype.render = function render() { + TransitionGroup.prototype.render = function render() { + var _this2 = this; + // TODO: we could get rid of the need for the wrapper node // by cloning a single child var childrenToRender = []; - for (var key in this.state.children) { - var child = this.state.children[key]; + + var _loop = function _loop(key) { + var child = _this2.state.children[key]; if (child) { + var isCallbackRef = typeof child.ref !== 'string'; + var factoryChild = _this2.props.childFactory(child); + var ref = function ref(r) { + _this2.childRefs[key] = r; + }; + + false ? (0, _warning2.default)(isCallbackRef, 'string refs are not supported on children of TransitionGroup and will be ignored. ' + 'Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute') : void 0; + + // Always chaining the refs leads to problems when the childFactory + // wraps the child. The child ref callback gets called twice with the + // wrapper and the child. So we only need to chain the ref if the + // factoryChild is not different from child. + if (factoryChild === child && isCallbackRef) { + ref = (0, _chainFunction2.default)(child.ref, ref); + } + // You may need to apply reactive updates to a child as it is leaving. // The normal React way to do it won't work since the child will have // already been removed. In case you need this behavior you can provide // a childFactory function to wrap every child, even the ones that are // leaving. - childrenToRender.push(React.cloneElement(this.props.childFactory(child), { ref: key, key: key })); + childrenToRender.push(_react2.default.cloneElement(factoryChild, { + key: key, + ref: ref + })); } + }; + + for (var key in this.state.children) { + _loop(key); } - // Do not forward ReactTransitionGroup props to primitive DOM nodes - var props = _assign({}, this.props); + // Do not forward TransitionGroup props to primitive DOM nodes + var props = _extends({}, this.props); delete props.transitionLeave; delete props.transitionName; delete props.transitionAppear; @@ -26564,325 +26695,302 @@ delete props.transitionAppearTimeout; delete props.component; - return React.createElement(this.props.component, props, childrenToRender); + return _react2.default.createElement(this.props.component, props, childrenToRender); }; - return ReactTransitionGroup; - }(React.Component); + return TransitionGroup; + }(_react2.default.Component); + + TransitionGroup.displayName = 'TransitionGroup'; - ReactTransitionGroup.displayName = 'ReactTransitionGroup'; - ReactTransitionGroup.propTypes = { - component: PropTypes.any, - childFactory: PropTypes.func - }; - ReactTransitionGroup.defaultProps = { - component: 'span', - childFactory: emptyFunction.thatReturnsArgument - }; + TransitionGroup.propTypes = propTypes; + TransitionGroup.defaultProps = defaultProps; - module.exports = ReactTransitionGroup; + exports.default = TransitionGroup; + module.exports = exports['default']; /***/ }, -/* 207 */ +/* 208 */ +/***/ function(module, exports) { + + + module.exports = function chain(){ + var len = arguments.length + var args = []; + + for (var i = 0; i < len; i++) + args[i] = arguments[i] + + args = args.filter(function(fn){ return fn != null }) + + if (args.length === 0) return undefined + if (args.length === 1) return args[0] + + return args.reduce(function(current, next){ + return function chainedFunction() { + current.apply(this, arguments); + next.apply(this, arguments); + }; + }) + } + + +/***/ }, +/* 209 */ /***/ function(module, exports, __webpack_require__) { /** - * Copyright 2013-present, Facebook, Inc. + * Copyright 2014-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. - * */ 'use strict'; - var flattenChildren = __webpack_require__(208); + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ - var ReactTransitionChildMapping = { - /** - * Given `this.props.children`, return an object mapping key to child. Just - * simple syntactic sugar around flattenChildren(). - * - * @param {*} children `this.props.children` - * @param {number=} selfDebugID Optional debugID of the current internal instance. - * @return {object} Mapping of key to child - */ - getChildMapping: function (children, selfDebugID) { - if (!children) { - return children; - } + var warning = function() {}; - if (false) { - return flattenChildren(children, selfDebugID); + if (false) { + warning = function(condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) { + args[key - 2] = arguments[key]; } - - return flattenChildren(children); - }, - - /** - * When you're adding or removing children some may be added or removed in the - * same render pass. We want to show *both* since we want to simultaneously - * animate elements in and out. This function takes a previous set of keys - * and a new set of keys and merges them with its best guess of the correct - * ordering. In the future we may expose some of the utilities in - * ReactMultiChild to make this easy, but for now React itself does not - * directly have this concept of the union of prevChildren and nextChildren - * so we implement it here. - * - * @param {object} prev prev children as returned from - * `ReactTransitionChildMapping.getChildMapping()`. - * @param {object} next next children as returned from - * `ReactTransitionChildMapping.getChildMapping()`. - * @return {object} a key set that contains all keys in `prev` and all keys - * in `next` in a reasonable order. - */ - mergeChildMappings: function (prev, next) { - prev = prev || {}; - next = next || {}; - - function getValueForKey(key) { - if (next.hasOwnProperty(key)) { - return next[key]; - } else { - return prev[key]; - } + if (format === undefined) { + throw new Error( + '`warning(condition, format, ...args)` requires a warning ' + + 'message argument' + ); } - // For each key of `next`, the list of keys to insert before that key in - // the combined list - var nextKeysPending = {}; - - var pendingKeys = []; - for (var prevKey in prev) { - if (next.hasOwnProperty(prevKey)) { - if (pendingKeys.length) { - nextKeysPending[prevKey] = pendingKeys; - pendingKeys = []; - } - } else { - pendingKeys.push(prevKey); - } + if (format.length < 10 || (/^[s\W]*$/).test(format)) { + throw new Error( + 'The warning format should be able to uniquely identify this ' + + 'warning. Please, use a more descriptive format than: ' + format + ); } - var i; - var childMapping = {}; - for (var nextKey in next) { - if (nextKeysPending.hasOwnProperty(nextKey)) { - for (i = 0; i < nextKeysPending[nextKey].length; i++) { - var pendingNextKey = nextKeysPending[nextKey][i]; - childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); - } + if (!condition) { + var argIndex = 0; + var message = 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } - childMapping[nextKey] = getValueForKey(nextKey); - } - - // Finally, add the keys which didn't appear before any key in `next` - for (i = 0; i < pendingKeys.length; i++) { - childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); + try { + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch(x) {} } + }; + } - return childMapping; - } - }; - - module.exports = ReactTransitionChildMapping; + module.exports = warning; + /***/ }, -/* 208 */ +/* 210 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ - 'use strict'; - var KeyEscapeUtils = __webpack_require__(18); - var traverseAllChildren = __webpack_require__(16); - var warning = __webpack_require__(12); + exports.__esModule = true; + exports.getChildMapping = getChildMapping; + exports.mergeChildMappings = mergeChildMappings; - var ReactComponentTreeHook; + var _react = __webpack_require__(3); - if (typeof process !== 'undefined' && ({"NODE_ENV":"production"}) && ("production") === 'test') { - // Temporary hack. - // Inline requires don't work well with Jest: - // https://github.com/facebook/react/issues/7240 - // Remove the inline requires when we don't need them anymore: - // https://github.com/facebook/react/pull/7178 - ReactComponentTreeHook = __webpack_require__(127); + /** + * Given `this.props.children`, return an object mapping key to child. + * + * @param {*} children `this.props.children` + * @return {object} Mapping of key to child + */ + function getChildMapping(children) { + if (!children) { + return children; + } + var result = {}; + _react.Children.map(children, function (child) { + return child; + }).forEach(function (child) { + result[child.key] = child; + }); + return result; } /** - * @param {function} traverseContext Context passed through traversal. - * @param {?ReactComponent} child React child component. - * @param {!string} name String name of key path to child. - * @param {number=} selfDebugID Optional debugID of the current internal instance. + * When you're adding or removing children some may be added or removed in the + * same render pass. We want to show *both* since we want to simultaneously + * animate elements in and out. This function takes a previous set of keys + * and a new set of keys and merges them with its best guess of the correct + * ordering. In the future we may expose some of the utilities in + * ReactMultiChild to make this easy, but for now React itself does not + * directly have this concept of the union of prevChildren and nextChildren + * so we implement it here. + * + * @param {object} prev prev children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @param {object} next next children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @return {object} a key set that contains all keys in `prev` and all keys + * in `next` in a reasonable order. */ - function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) { - // We found a component instance. - if (traverseContext && typeof traverseContext === 'object') { - var result = traverseContext; - var keyUnique = result[name] === undefined; - if (false) { - if (!ReactComponentTreeHook) { - ReactComponentTreeHook = require('./ReactComponentTreeHook'); - } - if (!keyUnique) { - process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; - } + function mergeChildMappings(prev, next) { + prev = prev || {}; + next = next || {}; + + function getValueForKey(key) { + if (next.hasOwnProperty(key)) { + return next[key]; } - if (keyUnique && child != null) { - result[name] = child; + + return prev[key]; + } + + // For each key of `next`, the list of keys to insert before that key in + // the combined list + var nextKeysPending = {}; + + var pendingKeys = []; + for (var prevKey in prev) { + if (next.hasOwnProperty(prevKey)) { + if (pendingKeys.length) { + nextKeysPending[prevKey] = pendingKeys; + pendingKeys = []; + } + } else { + pendingKeys.push(prevKey); } } - } - /** - * Flattens children that are typically specified as `props.children`. Any null - * children will not be included in the resulting object. - * @return {!object} flattened children keyed by name. - */ - function flattenChildren(children, selfDebugID) { - if (children == null) { - return children; + var i = void 0; + var childMapping = {}; + for (var nextKey in next) { + if (nextKeysPending.hasOwnProperty(nextKey)) { + for (i = 0; i < nextKeysPending[nextKey].length; i++) { + var pendingNextKey = nextKeysPending[nextKey][i]; + childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); + } + } + childMapping[nextKey] = getValueForKey(nextKey); } - var result = {}; - if (false) { - traverseAllChildren(children, function (traverseContext, child, name) { - return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID); - }, result); - } else { - traverseAllChildren(children, flattenSingleChildIntoContext, result); + // Finally, add the keys which didn't appear before any key in `next` + for (i = 0; i < pendingKeys.length; i++) { + childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); } - return result; - } - module.exports = flattenChildren; - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(114))) + return childMapping; + } /***/ }, -/* 209 */ +/* 211 */ /***/ function(module, exports, __webpack_require__) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + exports.__esModule = true; - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + 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; }; - 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 _addClass = __webpack_require__(212); - var React = __webpack_require__(4); - var ReactAddonsDOMDependencies = __webpack_require__(210); + var _addClass2 = _interopRequireDefault(_addClass); - var propTypesFactory = __webpack_require__(27); - var PropTypes = propTypesFactory(React.isValidElement); + var _removeClass = __webpack_require__(214); - var CSSCore = __webpack_require__(211); - var ReactTransitionEvents = __webpack_require__(212); + var _removeClass2 = _interopRequireDefault(_removeClass); - var onlyChild = __webpack_require__(32); + var _requestAnimationFrame = __webpack_require__(215); - var TICK = 17; + var _requestAnimationFrame2 = _interopRequireDefault(_requestAnimationFrame); - var ReactCSSTransitionGroupChild = function (_React$Component) { - _inherits(ReactCSSTransitionGroupChild, _React$Component); + var _properties = __webpack_require__(217); - function ReactCSSTransitionGroupChild() { - var _temp, _this, _ret; + var _react = __webpack_require__(3); - _classCallCheck(this, ReactCSSTransitionGroupChild); + var _react2 = _interopRequireDefault(_react); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + var _propTypes = __webpack_require__(205); - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._isMounted = false, _this.transition = function (animationType, finishCallback, userSpecifiedDelay) { - var node = ReactAddonsDOMDependencies.getReactDOM().findDOMNode(_this); + var _propTypes2 = _interopRequireDefault(_propTypes); - if (!node) { - if (finishCallback) { - finishCallback(); - } - return; - } + var _reactDom = __webpack_require__(33); - var className = _this.props.name[animationType] || _this.props.name + '-' + animationType; - var activeClassName = _this.props.name[animationType + 'Active'] || className + '-active'; - var timeout = null; + var _PropTypes = __webpack_require__(218); - var endListener = function (e) { - if (e && e.target !== node) { - return; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - clearTimeout(timeout); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - CSSCore.removeClass(node, className); - CSSCore.removeClass(node, activeClassName); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - ReactTransitionEvents.removeEndEventListener(node, endListener); + 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; } - // Usually this optional callback is used for informing an owner of - // a leave animation and telling it to remove the child. - if (finishCallback) { - finishCallback(); - } - }; + var events = []; + if (_properties.transitionEnd) events.push(_properties.transitionEnd); + if (_properties.animationEnd) events.push(_properties.animationEnd); - CSSCore.addClass(node, className); + function addEndListener(node, listener) { + if (events.length) { + events.forEach(function (e) { + return node.addEventListener(e, listener, false); + }); + } else { + setTimeout(listener, 0); + } - // Need to do this to actually trigger a transition. - _this.queueClassAndNode(activeClassName, node); + return function () { + if (!events.length) return; + events.forEach(function (e) { + return node.removeEventListener(e, listener, false); + }); + }; + } - // If the user specified a timeout delay. - if (userSpecifiedDelay) { - // Clean-up the animation after the specified delay - timeout = setTimeout(endListener, userSpecifiedDelay); - _this.transitionTimeouts.push(timeout); - } else { - // DEPRECATED: this listener will be removed in a future version of react - ReactTransitionEvents.addEndEventListener(node, endListener); - } - }, _this.queueClassAndNode = function (className, node) { - _this.classNameAndNodeQueue.push({ - className: className, - node: node - }); + var propTypes = { + children: _propTypes2.default.node, + name: _PropTypes.nameShape.isRequired, - if (!_this.timeout) { - _this.timeout = setTimeout(_this.flushClassNameAndNodeQueue, TICK); - } - }, _this.flushClassNameAndNodeQueue = function () { - if (_this._isMounted) { - _this.classNameAndNodeQueue.forEach(function (obj) { - CSSCore.addClass(obj.node, obj.className); - }); - } - _this.classNameAndNodeQueue.length = 0; - _this.timeout = null; - }, _this.componentWillAppear = function (done) { + // Once we require timeouts to be specified, we can remove the + // boolean flags (appear etc.) and just accept a number + // or a bool for the timeout flags (appearTimeout etc.) + appear: _propTypes2.default.bool, + enter: _propTypes2.default.bool, + leave: _propTypes2.default.bool, + appearTimeout: _propTypes2.default.number, + enterTimeout: _propTypes2.default.number, + leaveTimeout: _propTypes2.default.number + }; + + var CSSTransitionGroupChild = function (_React$Component) { + _inherits(CSSTransitionGroupChild, _React$Component); + + function CSSTransitionGroupChild() { + var _temp, _this, _ret; + + _classCallCheck(this, CSSTransitionGroupChild); + + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.componentWillAppear = function (done) { if (_this.props.appear) { _this.transition('appear', done, _this.props.appearTimeout); } else { @@ -26903,17 +27011,13 @@ }, _temp), _possibleConstructorReturn(_this, _ret); } - ReactCSSTransitionGroupChild.prototype.componentWillMount = function componentWillMount() { + CSSTransitionGroupChild.prototype.componentWillMount = function componentWillMount() { this.classNameAndNodeQueue = []; this.transitionTimeouts = []; }; - ReactCSSTransitionGroupChild.prototype.componentDidMount = function componentDidMount() { - this._isMounted = true; - }; - - ReactCSSTransitionGroupChild.prototype.componentWillUnmount = function componentWillUnmount() { - this._isMounted = false; + CSSTransitionGroupChild.prototype.componentWillUnmount = function componentWillUnmount() { + this.unmounted = true; if (this.timeout) { clearTimeout(this.timeout); @@ -26925,287 +27029,397 @@ this.classNameAndNodeQueue.length = 0; }; - ReactCSSTransitionGroupChild.prototype.render = function render() { - return onlyChild(this.props.children); - }; + CSSTransitionGroupChild.prototype.transition = function transition(animationType, finishCallback, timeout) { + var node = (0, _reactDom.findDOMNode)(this); - return ReactCSSTransitionGroupChild; - }(React.Component); - - ReactCSSTransitionGroupChild.propTypes = { - name: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({ - enter: PropTypes.string, - leave: PropTypes.string, - active: PropTypes.string - }), PropTypes.shape({ - enter: PropTypes.string, - enterActive: PropTypes.string, - leave: PropTypes.string, - leaveActive: PropTypes.string, - appear: PropTypes.string, - appearActive: PropTypes.string - })]).isRequired, + if (!node) { + if (finishCallback) { + finishCallback(); + } + return; + } - // Once we require timeouts to be specified, we can remove the - // boolean flags (appear etc.) and just accept a number - // or a bool for the timeout flags (appearTimeout etc.) - appear: PropTypes.bool, - enter: PropTypes.bool, - leave: PropTypes.bool, - appearTimeout: PropTypes.number, - enterTimeout: PropTypes.number, - leaveTimeout: PropTypes.number - }; + var className = this.props.name[animationType] || this.props.name + '-' + animationType; + var activeClassName = this.props.name[animationType + 'Active'] || className + '-active'; + var timer = null; + var removeListeners = void 0; + (0, _addClass2.default)(node, className); - module.exports = ReactCSSTransitionGroupChild; - -/***/ }, -/* 210 */ -/***/ function(module, exports, __webpack_require__) { - - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ + // Need to do this to actually trigger a transition. + this.queueClassAndNode(activeClassName, node); - 'use strict'; + // Clean-up the animation after the specified delay + var finish = function finish(e) { + if (e && e.target !== node) { + return; + } - var ReactDOM = __webpack_require__(34); + clearTimeout(timer); + if (removeListeners) removeListeners(); - exports.getReactDOM = function () { - return ReactDOM; - }; + (0, _removeClass2.default)(node, className); + (0, _removeClass2.default)(node, activeClassName); - if (false) { - var ReactPerf; - var ReactTestUtils; + if (removeListeners) removeListeners(); - exports.getReactPerf = function () { - if (!ReactPerf) { - ReactPerf = require('react-dom/lib/ReactPerf'); + // Usually this optional callback is used for informing an owner of + // a leave animation and telling it to remove the child. + if (finishCallback) { + finishCallback(); + } + }; + + if (timeout) { + timer = setTimeout(finish, timeout); + this.transitionTimeouts.push(timer); + } else if (_properties.transitionEnd) { + removeListeners = addEndListener(node, finish); } - return ReactPerf; }; - exports.getReactTestUtils = function () { - if (!ReactTestUtils) { - ReactTestUtils = require('react-dom/lib/ReactTestUtils'); + CSSTransitionGroupChild.prototype.queueClassAndNode = function queueClassAndNode(className, node) { + var _this2 = this; + + this.classNameAndNodeQueue.push({ + className: className, + node: node + }); + + if (!this.rafHandle) { + this.rafHandle = (0, _requestAnimationFrame2.default)(function () { + return _this2.flushClassNameAndNodeQueue(); + }); } - return ReactTestUtils; }; - } + + CSSTransitionGroupChild.prototype.flushClassNameAndNodeQueue = function flushClassNameAndNodeQueue() { + if (!this.unmounted) { + this.classNameAndNodeQueue.forEach(function (obj) { + // This is for to force a repaint, + // which is necessary in order to transition styles when adding a class name. + /* eslint-disable no-unused-expressions */ + obj.node.scrollTop; + /* eslint-enable no-unused-expressions */ + (0, _addClass2.default)(obj.node, obj.className); + }); + } + this.classNameAndNodeQueue.length = 0; + this.rafHandle = null; + }; + + CSSTransitionGroupChild.prototype.render = function render() { + var props = _extends({}, this.props); + delete props.name; + delete props.appear; + delete props.enter; + delete props.leave; + delete props.appearTimeout; + delete props.enterTimeout; + delete props.leaveTimeout; + delete props.children; + return _react2.default.cloneElement(_react2.default.Children.only(this.props.children), props); + }; + + return CSSTransitionGroupChild; + }(_react2.default.Component); + + CSSTransitionGroupChild.displayName = 'CSSTransitionGroupChild'; + + + CSSTransitionGroupChild.propTypes = propTypes; + + exports.default = CSSTransitionGroupChild; + module.exports = exports['default']; /***/ }, -/* 211 */ +/* 212 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @typechecks - */ + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = addClass; - var invariant = __webpack_require__(9); + var _hasClass = __webpack_require__(213); - /** - * The CSSCore module specifies the API (and implements most of the methods) - * that should be used when dealing with the display of elements (via their - * CSS classes and visibility on screen. It is an API focused on mutating the - * display and not reading it as no logical state should be encoded in the - * display of elements. - */ + var _hasClass2 = _interopRequireDefault(_hasClass); - /* Slow implementation for browsers that don't natively support .matches() */ - function matchesSelector_SLOW(element, selector) { - var root = element; - while (root.parentNode) { - root = root.parentNode; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var all = root.querySelectorAll(selector); - return Array.prototype.indexOf.call(all, element) !== -1; + function addClass(element, className) { + if (element.classList) element.classList.add(className);else if (!(0, _hasClass2.default)(element)) element.className = element.className + ' ' + className; } + module.exports = exports['default']; + +/***/ }, +/* 213 */ +/***/ function(module, exports) { + + "use strict"; - var CSSCore = { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = hasClass; + function hasClass(element, className) { + if (element.classList) return !!className && element.classList.contains(className);else return (" " + element.className + " ").indexOf(" " + className + " ") !== -1; + } + module.exports = exports["default"]; + +/***/ }, +/* 214 */ +/***/ function(module, exports) { + + 'use strict'; - /** - * Adds the class passed in to the element if it doesn't already have it. - * - * @param {DOMElement} element the element to set the class on - * @param {string} className the CSS className - * @return {DOMElement} the element passed in - */ - addClass: function addClass(element, className) { - !!/\s/.test(className) ? false ? invariant(false, 'CSSCore.addClass takes only a single class name. "%s" contains ' + 'multiple classes.', className) : invariant(false) : void 0; + module.exports = function removeClass(element, className) { + if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); + }; + +/***/ }, +/* 215 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; - if (className) { - if (element.classList) { - element.classList.add(className); - } else if (!CSSCore.hasClass(element, className)) { - element.className = element.className + ' ' + className; - } - } - return element; - }, + Object.defineProperty(exports, "__esModule", { + value: true + }); - /** - * Removes the class passed in from the element - * - * @param {DOMElement} element the element to set the class on - * @param {string} className the CSS className - * @return {DOMElement} the element passed in - */ - removeClass: function removeClass(element, className) { - !!/\s/.test(className) ? false ? invariant(false, 'CSSCore.removeClass takes only a single class name. "%s" contains ' + 'multiple classes.', className) : invariant(false) : void 0; + var _inDOM = __webpack_require__(216); - if (className) { - if (element.classList) { - element.classList.remove(className); - } else if (CSSCore.hasClass(element, className)) { - element.className = element.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ') // multiple spaces to one - .replace(/^\s*|\s*$/g, ''); // trim the ends - } - } - return element; - }, + var _inDOM2 = _interopRequireDefault(_inDOM); - /** - * Helper to add or remove a class from an element based on a condition. - * - * @param {DOMElement} element the element to set the class on - * @param {string} className the CSS className - * @param {*} bool condition to whether to add or remove the class - * @return {DOMElement} the element passed in - */ - conditionClass: function conditionClass(element, className, bool) { - return (bool ? CSSCore.addClass : CSSCore.removeClass)(element, className); - }, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /** - * Tests whether the element has the class specified. - * - * @param {DOMNode|DOMWindow} element the element to check the class on - * @param {string} className the CSS className - * @return {boolean} true if the element has the class, false if not - */ - hasClass: function hasClass(element, className) { - !!/\s/.test(className) ? false ? invariant(false, 'CSS.hasClass takes only a single class name.') : invariant(false) : void 0; - if (element.classList) { - return !!className && element.classList.contains(className); + var vendors = ['', 'webkit', 'moz', 'o', 'ms']; + var cancel = 'clearTimeout'; + var raf = fallback; + var compatRaf = void 0; + + var getKey = function getKey(vendor, k) { + return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + 'AnimationFrame'; + }; + + if (_inDOM2.default) { + vendors.some(function (vendor) { + var rafKey = getKey(vendor, 'request'); + + if (rafKey in window) { + cancel = getKey(vendor, 'cancel'); + return raf = function raf(cb) { + return window[rafKey](cb); + }; } - return (' ' + element.className + ' ').indexOf(' ' + className + ' ') > -1; - }, + }); + } - /** - * Tests whether the element matches the selector specified - * - * @param {DOMNode|DOMWindow} element the element that we are querying - * @param {string} selector the CSS selector - * @return {boolean} true if the element matches the selector, false if not - */ - matchesSelector: function matchesSelector(element, selector) { - var matchesImpl = element.matches || element.webkitMatchesSelector || element.mozMatchesSelector || element.msMatchesSelector || function (s) { - return matchesSelector_SLOW(element, s); - }; - return matchesImpl.call(element, selector); - } + /* https://github.com/component/raf */ + var prev = new Date().getTime(); + function fallback(fn) { + var curr = new Date().getTime(), + ms = Math.max(0, 16 - (curr - prev)), + req = setTimeout(fn, ms); + prev = curr; + return req; + } + + compatRaf = function compatRaf(cb) { + return raf(cb); }; + compatRaf.cancel = function (id) { + window[cancel] && typeof window[cancel] === 'function' && window[cancel](id); + }; + exports.default = compatRaf; + module.exports = exports['default']; + +/***/ }, +/* 216 */ +/***/ function(module, exports) { + + 'use strict'; - module.exports = CSSCore; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + module.exports = exports['default']; /***/ }, -/* 212 */ +/* 217 */ /***/ function(module, exports, __webpack_require__) { - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - 'use strict'; - var ExecutionEnvironment = __webpack_require__(49); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; + + var _inDOM = __webpack_require__(216); + + var _inDOM2 = _interopRequireDefault(_inDOM); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var transform = 'transform'; + var prefix = void 0, + transitionEnd = void 0, + animationEnd = void 0; + var transitionProperty = void 0, + transitionDuration = void 0, + transitionTiming = void 0, + transitionDelay = void 0; + var animationName = void 0, + animationDuration = void 0, + animationTiming = void 0, + animationDelay = void 0; + + if (_inDOM2.default) { + var _getTransitionPropert = getTransitionProperties(); + + prefix = _getTransitionPropert.prefix; + exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; + exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; + + + exports.transform = transform = prefix + '-' + transform; + exports.transitionProperty = transitionProperty = prefix + '-transition-property'; + exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; + exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; + exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; + + exports.animationName = animationName = prefix + '-animation-name'; + exports.animationDuration = animationDuration = prefix + '-animation-duration'; + exports.animationTiming = animationTiming = prefix + '-animation-delay'; + exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; + } + + exports.transform = transform; + exports.transitionProperty = transitionProperty; + exports.transitionTiming = transitionTiming; + exports.transitionDelay = transitionDelay; + exports.transitionDuration = transitionDuration; + exports.transitionEnd = transitionEnd; + exports.animationName = animationName; + exports.animationDuration = animationDuration; + exports.animationTiming = animationTiming; + exports.animationDelay = animationDelay; + exports.animationEnd = animationEnd; + exports.default = { + transform: transform, + end: transitionEnd, + property: transitionProperty, + timing: transitionTiming, + delay: transitionDelay, + duration: transitionDuration + }; - var getVendorPrefixedEventName = __webpack_require__(103); - var endEvents = []; + function getTransitionProperties() { + var style = document.createElement('div').style; + + var vendorMap = { + O: function O(e) { + return 'o' + e.toLowerCase(); + }, + Moz: function Moz(e) { + return e.toLowerCase(); + }, + Webkit: function Webkit(e) { + return 'webkit' + e; + }, + ms: function ms(e) { + return 'MS' + e; + } + }; - function detectEvents() { - var animEnd = getVendorPrefixedEventName('animationend'); - var transEnd = getVendorPrefixedEventName('transitionend'); + var vendors = Object.keys(vendorMap); - if (animEnd) { - endEvents.push(animEnd); - } + var transitionEnd = void 0, + animationEnd = void 0; + var prefix = ''; - if (transEnd) { - endEvents.push(transEnd); + for (var i = 0; i < vendors.length; i++) { + var vendor = vendors[i]; + + if (vendor + 'TransitionProperty' in style) { + prefix = '-' + vendor.toLowerCase(); + transitionEnd = vendorMap[vendor]('TransitionEnd'); + animationEnd = vendorMap[vendor]('AnimationEnd'); + break; + } } - } - if (ExecutionEnvironment.canUseDOM) { - detectEvents(); - } + if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; - // We use the raw {add|remove}EventListener() call because EventListener - // does not know how to remove event listeners and we really should - // clean up. Also, these events are not triggered in older browsers - // so we should be A-OK here. + if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; - function addEventListener(node, eventName, eventListener) { - node.addEventListener(eventName, eventListener, false); - } + style = null; - function removeEventListener(node, eventName, eventListener) { - node.removeEventListener(eventName, eventListener, false); + return { animationEnd: animationEnd, transitionEnd: transitionEnd, prefix: prefix }; } + +/***/ }, +/* 218 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; - var ReactTransitionEvents = { - addEndEventListener: function (node, eventListener) { - if (endEvents.length === 0) { - // If CSS transitions are not supported, trigger an "end animation" - // event immediately. - window.setTimeout(eventListener, 0); - return; - } - endEvents.forEach(function (endEvent) { - addEventListener(node, endEvent, eventListener); - }); - }, + exports.__esModule = true; + exports.nameShape = undefined; + exports.transitionTimeout = transitionTimeout; - removeEndEventListener: function (node, eventListener) { - if (endEvents.length === 0) { - return; + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _propTypes = __webpack_require__(205); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function transitionTimeout(transitionType) { + var timeoutPropName = 'transition' + transitionType + 'Timeout'; + var enabledPropName = 'transition' + transitionType; + + return function (props) { + // If the transition is enabled + if (props[enabledPropName]) { + // If no timeout duration is provided + if (props[timeoutPropName] == null) { + return new Error(timeoutPropName + ' wasn\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); + + // If the duration isn't a number + } else if (typeof props[timeoutPropName] !== 'number') { + return new Error(timeoutPropName + ' must be a number (in milliseconds)'); + } } - endEvents.forEach(function (endEvent) { - removeEventListener(node, endEvent, eventListener); - }); - } - }; - module.exports = ReactTransitionEvents; + return null; + }; + } + + var nameShape = exports.nameShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({ + enter: _propTypes2.default.string, + leave: _propTypes2.default.string, + active: _propTypes2.default.string + }), _propTypes2.default.shape({ + enter: _propTypes2.default.string, + enterActive: _propTypes2.default.string, + leave: _propTypes2.default.string, + leaveActive: _propTypes2.default.string, + appear: _propTypes2.default.string, + appearActive: _propTypes2.default.string + })]); /***/ }, -/* 213 */ +/* 219 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27260,7 +27474,7 @@ /***/ }, -/* 214 */ +/* 220 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27317,7 +27531,7 @@ /***/ }, -/* 215 */ +/* 221 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -27398,7 +27612,7 @@ /***/ }, -/* 216 */ +/* 222 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27414,8 +27628,8 @@ var React = __webpack_require__(3); var common_1 = __webpack_require__(182); var errors_1 = __webpack_require__(186); - var buttons_1 = __webpack_require__(217); - var dialog_1 = __webpack_require__(220); + var buttons_1 = __webpack_require__(223); + var dialog_1 = __webpack_require__(226); var Alert = (function (_super) { tslib_1.__extends(Alert, _super); function Alert() { @@ -27464,7 +27678,7 @@ /***/ }, -/* 217 */ +/* 223 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27480,7 +27694,7 @@ // tslint:disable max-classes-per-file var React = __webpack_require__(3); var props_1 = __webpack_require__(190); - var abstractButton_1 = __webpack_require__(218); + var abstractButton_1 = __webpack_require__(224); var Button = (function (_super) { tslib_1.__extends(Button, _super); function Button() { @@ -27513,7 +27727,7 @@ /***/ }, -/* 218 */ +/* 224 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27530,7 +27744,7 @@ var Classes = __webpack_require__(192); var Keys = __webpack_require__(193); var utils_1 = __webpack_require__(185); - var spinner_1 = __webpack_require__(219); + var spinner_1 = __webpack_require__(225); var AbstractButton = (function (_super) { tslib_1.__extends(AbstractButton, _super); function AbstractButton() { @@ -27613,7 +27827,7 @@ /***/ }, -/* 219 */ +/* 225 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27680,7 +27894,7 @@ /***/ }, -/* 220 */ +/* 226 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27756,7 +27970,7 @@ /***/ }, -/* 221 */ +/* 227 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27781,7 +27995,7 @@ /***/ }, -/* 222 */ +/* 228 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27939,7 +28153,7 @@ /***/ }, -/* 223 */ +/* 229 */ /***/ function(module, exports, __webpack_require__) { /* @@ -27956,8 +28170,8 @@ var Classes = __webpack_require__(192); var Errors = __webpack_require__(186); var position_1 = __webpack_require__(189); - var menu_1 = __webpack_require__(224); - var menuItem_1 = __webpack_require__(225); + var menu_1 = __webpack_require__(230); + var menuItem_1 = __webpack_require__(231); var popover_1 = __webpack_require__(196); var CollapseFrom; (function (CollapseFrom) { @@ -28030,7 +28244,7 @@ /***/ }, -/* 224 */ +/* 230 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28062,7 +28276,7 @@ /***/ }, -/* 225 */ +/* 231 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28082,7 +28296,7 @@ var Errors = __webpack_require__(186); var position_1 = __webpack_require__(189); var popover_1 = __webpack_require__(196); - var menu_1 = __webpack_require__(224); + var menu_1 = __webpack_require__(230); var REACT_CONTEXT_TYPES = { alignLeft: function (obj, key) { if (obj[key] != null && typeof obj[key] !== "boolean") { @@ -28234,7 +28448,7 @@ /***/ }, -/* 226 */ +/* 232 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28289,7 +28503,7 @@ /***/ }, -/* 227 */ +/* 233 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28308,7 +28522,7 @@ var Classes = __webpack_require__(192); var Keys = __webpack_require__(193); var utils_1 = __webpack_require__(185); - var compatibility_1 = __webpack_require__(228); + var compatibility_1 = __webpack_require__(234); var BUFFER_WIDTH_EDGE = 5; var BUFFER_WIDTH_IE = 30; var EditableText = (function (_super) { @@ -28385,12 +28599,13 @@ } } }; + var value = (props.value == null) ? props.defaultValue : props.value; _this.state = { inputHeight: 0, inputWidth: 0, isEditing: props.isEditing === true && props.disabled === false, - lastValue: getValue(props), - value: getValue(props), + lastValue: value, + value: value, }; return _this; } @@ -28436,7 +28651,10 @@ this.updateInputDimensions(); }; EditableText.prototype.componentWillReceiveProps = function (nextProps) { - var state = { value: getValue(nextProps) }; + var state = {}; + if (nextProps.value != null) { + state.value = nextProps.value; + } if (nextProps.isEditing != null) { state.isEditing = nextProps.isEditing; } @@ -28517,9 +28735,6 @@ PureRender ], EditableText); exports.EditableText = EditableText; - function getValue(props) { - return props.value == null ? props.defaultValue : props.value; - } function getFontSize(element) { var fontSize = getComputedStyle(element).fontSize; return fontSize === "" ? 0 : parseInt(fontSize.slice(0, -2), 10); @@ -28558,7 +28773,7 @@ /***/ }, -/* 228 */ +/* 234 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28572,12 +28787,12 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(229)); + __export(__webpack_require__(235)); /***/ }, -/* 229 */ +/* 235 */ /***/ function(module, exports) { /* @@ -28603,7 +28818,7 @@ /***/ }, -/* 230 */ +/* 236 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28714,7 +28929,7 @@ /***/ }, -/* 231 */ +/* 237 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28800,7 +29015,7 @@ /***/ }, -/* 232 */ +/* 238 */ /***/ function(module, exports, __webpack_require__) { /* @@ -28817,8 +29032,8 @@ var React = __webpack_require__(3); var common_1 = __webpack_require__(182); var Errors = __webpack_require__(186); - var buttons_1 = __webpack_require__(217); - var inputGroup_1 = __webpack_require__(231); + var buttons_1 = __webpack_require__(223); + var inputGroup_1 = __webpack_require__(237); var IncrementDirection; (function (IncrementDirection) { IncrementDirection[IncrementDirection["DOWN"] = -1] = "DOWN"; @@ -28828,6 +29043,9 @@ tslib_1.__extends(NumericInput, _super); function NumericInput(props, context) { var _this = _super.call(this, props, context) || this; + // updating these flags need not trigger re-renders, so don't include them in this.state. + _this.didPasteEventJustOccur = false; + _this.shouldSelectAfterUpdate = false; _this.inputRef = function (input) { _this.inputElement = input; }; @@ -28866,13 +29084,26 @@ // Callbacks - Input // ================= _this.handleInputFocus = function (e) { - _this.setState({ isInputGroupFocused: true, shouldSelectAfterUpdate: _this.props.selectAllOnFocus }); + _this.shouldSelectAfterUpdate = _this.props.selectAllOnFocus; + _this.setState({ isInputGroupFocused: true }); common_1.Utils.safeInvoke(_this.props.onFocus, e); }; _this.handleInputBlur = function (e) { // explicitly set `shouldSelectAfterUpdate` to `false` to prevent focus // hoarding on IE11 (#704) - _this.setState({ isInputGroupFocused: false, shouldSelectAfterUpdate: false }); + _this.shouldSelectAfterUpdate = false; + var baseStateChange = { isInputGroupFocused: false }; + if (_this.props.clampValueOnBlur) { + var value = e.target.value; + var sanitizedValue = _this.getSanitizedValue(value); + _this.setState(tslib_1.__assign({}, baseStateChange, { value: sanitizedValue })); + if (value !== sanitizedValue) { + _this.invokeOnValueChangeCallback(sanitizedValue); + } + } + else { + _this.setState(baseStateChange); + } common_1.Utils.safeInvoke(_this.props.onBlur, e); }; _this.handleInputKeyDown = function (e) { @@ -28924,11 +29155,11 @@ else { nextValue = value; } - _this.setState({ shouldSelectAfterUpdate: false, value: nextValue }); - _this.invokeOnChangeCallbacks(nextValue); + _this.shouldSelectAfterUpdate = false; + _this.setState({ value: nextValue }); + _this.invokeOnValueChangeCallback(nextValue); }; _this.state = { - shouldSelectAfterUpdate: false, stepMaxPrecision: _this.getStepMaxPrecision(props), value: _this.getValueOrEmptyValue(props.value), }; @@ -28948,18 +29179,20 @@ // outside of the new bounds, then clamp the value to the new valid range. if (didBoundsChange && sanitizedValue !== this.state.value) { this.setState({ stepMaxPrecision: stepMaxPrecision, value: sanitizedValue }); - this.invokeOnChangeCallbacks(sanitizedValue); + this.invokeOnValueChangeCallback(sanitizedValue); } else { this.setState({ stepMaxPrecision: stepMaxPrecision, value: value }); } }; NumericInput.prototype.render = function () { - var _a = this.props, buttonPosition = _a.buttonPosition, className = _a.className; + var _a = this.props, buttonPosition = _a.buttonPosition, className = _a.className, large = _a.large; var inputGroupHtmlProps = common_1.removeNonHTMLProps(this.props, [ "allowNumericCharactersOnly", "buttonPosition", + "clampValueOnBlur", "className", + "large", "majorStepSize", "minorStepSize", "onValueChange", @@ -28967,7 +29200,7 @@ "selectAllOnIncrement", "stepSize", ], true); - var inputGroup = (React.createElement(inputGroup_1.InputGroup, tslib_1.__assign({}, inputGroupHtmlProps, { intent: this.props.intent, inputRef: this.inputRef, key: "input-group", leftIconName: this.props.leftIconName, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onKeyPress: this.handleInputKeyPress, onPaste: this.handleInputPaste, value: this.state.value }))); + var inputGroup = (React.createElement(inputGroup_1.InputGroup, tslib_1.__assign({}, inputGroupHtmlProps, { className: classNames((_b = {}, _b[common_1.Classes.LARGE] = large, _b)), intent: this.props.intent, inputRef: this.inputRef, key: "input-group", leftIconName: this.props.leftIconName, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onKeyPress: this.handleInputKeyPress, onPaste: this.handleInputPaste, value: this.state.value }))); // the strict null check here is intentional; an undefined value should // fall back to the default button position on the right side. if (buttonPosition === "none" || buttonPosition === null) { @@ -28986,17 +29219,21 @@ var inputElems = (buttonPosition === common_1.Position.LEFT) ? [buttonGroup, inputGroup] : [inputGroup, buttonGroup]; - return (React.createElement("div", { className: classNames(common_1.Classes.NUMERIC_INPUT, common_1.Classes.CONTROL_GROUP, className) }, inputElems)); + var classes = classNames(common_1.Classes.NUMERIC_INPUT, common_1.Classes.CONTROL_GROUP, (_c = {}, + _c[common_1.Classes.LARGE] = large, + _c), className); + return (React.createElement("div", { className: classes }, inputElems)); } + var _b, _c; }; NumericInput.prototype.componentDidUpdate = function () { - if (this.state.shouldSelectAfterUpdate) { + if (this.shouldSelectAfterUpdate) { this.inputElement.setSelectionRange(0, this.state.value.length); } }; NumericInput.prototype.validateProps = function (nextProps) { var majorStepSize = nextProps.majorStepSize, max = nextProps.max, min = nextProps.min, minorStepSize = nextProps.minorStepSize, stepSize = nextProps.stepSize; - if (min && max && min >= max) { + if (min != null && max != null && min >= max) { throw new Error(Errors.NUMERIC_INPUT_MIN_MAX); } if (stepSize == null) { @@ -29030,7 +29267,7 @@ }; return (React.createElement(buttons_1.Button, { disabled: this.props.disabled || this.props.readOnly, iconName: iconName, intent: this.props.intent, key: key, onBlur: this.handleButtonBlur, onClick: onClick, onFocus: this.handleButtonFocus, onKeyUp: onKeyUp })); }; - NumericInput.prototype.invokeOnChangeCallbacks = function (value) { + NumericInput.prototype.invokeOnValueChangeCallback = function (value) { var valueAsString = value; var valueAsNumber = +value; // coerces non-numeric strings to NaN common_1.Utils.safeInvoke(this.props.onValueChange, valueAsNumber, valueAsString); @@ -29040,9 +29277,10 @@ NumericInput.prototype.incrementValue = function (delta /*, e: React.FormEvent*/) { // pretend we're incrementing from 0 if currValue is empty var currValue = this.state.value || NumericInput_1.VALUE_ZERO; - var nextValue = this.getSanitizedValue(currValue, delta, this.props.min, this.props.max); - this.setState({ shouldSelectAfterUpdate: this.props.selectAllOnIncrement, value: nextValue }); - this.invokeOnChangeCallbacks(nextValue); + var nextValue = this.getSanitizedValue(currValue, delta); + this.shouldSelectAfterUpdate = this.props.selectAllOnIncrement; + this.setState({ value: nextValue }); + this.invokeOnValueChangeCallback(nextValue); }; NumericInput.prototype.getIncrementDelta = function (direction, isShiftKeyPressed, isAltKeyPressed) { var _a = this.props, majorStepSize = _a.majorStepSize, minorStepSize = _a.minorStepSize, stepSize = _a.stepSize; @@ -29058,6 +29296,8 @@ }; NumericInput.prototype.getSanitizedValue = function (value, delta, min, max) { if (delta === void 0) { delta = 0; } + if (min === void 0) { min = this.props.min; } + if (max === void 0) { max = this.props.max; } if (!this.isValueNumeric(value)) { return NumericInput_1.VALUE_EMPTY; } @@ -29130,6 +29370,8 @@ NumericInput.defaultProps = { allowNumericCharactersOnly: true, buttonPosition: common_1.Position.RIGHT, + clampValueOnBlur: false, + large: false, majorStepSize: 10, minorStepSize: 0.1, selectAllOnFocus: false, @@ -29163,7 +29405,7 @@ /***/ }, -/* 233 */ +/* 239 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29179,7 +29421,7 @@ var abstractComponent_1 = __webpack_require__(183); var Classes = __webpack_require__(192); var Errors = __webpack_require__(186); - var controls_1 = __webpack_require__(230); + var controls_1 = __webpack_require__(236); var counter = 0; function nextName() { return RadioGroup.displayName + "-" + counter++; } var RadioGroup = (function (_super) { @@ -29238,7 +29480,7 @@ /***/ }, -/* 234 */ +/* 240 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29253,19 +29495,19 @@ var react_1 = __webpack_require__(3); var React = __webpack_require__(3); var common_1 = __webpack_require__(182); - var hotkey_1 = __webpack_require__(235); - var hotkey_2 = __webpack_require__(235); + var hotkey_1 = __webpack_require__(241); + var hotkey_2 = __webpack_require__(241); exports.Hotkey = hotkey_2.Hotkey; - var keyCombo_1 = __webpack_require__(236); + var keyCombo_1 = __webpack_require__(242); exports.KeyCombo = keyCombo_1.KeyCombo; - var hotkeysTarget_1 = __webpack_require__(238); + var hotkeysTarget_1 = __webpack_require__(244); exports.HotkeysTarget = hotkeysTarget_1.HotkeysTarget; - var hotkeyParser_1 = __webpack_require__(237); + var hotkeyParser_1 = __webpack_require__(243); exports.comboMatches = hotkeyParser_1.comboMatches; exports.getKeyCombo = hotkeyParser_1.getKeyCombo; exports.getKeyComboString = hotkeyParser_1.getKeyComboString; exports.parseKeyCombo = hotkeyParser_1.parseKeyCombo; - var hotkeysDialog_1 = __webpack_require__(240); + var hotkeysDialog_1 = __webpack_require__(246); exports.hideHotkeysDialog = hotkeysDialog_1.hideHotkeysDialog; exports.setHotkeysDialogProps = hotkeysDialog_1.setHotkeysDialogProps; var errors_1 = __webpack_require__(186); @@ -29316,7 +29558,7 @@ /***/ }, -/* 235 */ +/* 241 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29330,7 +29572,7 @@ var tslib_1 = __webpack_require__(184); var React = __webpack_require__(3); var common_1 = __webpack_require__(182); - var keyCombo_1 = __webpack_require__(236); + var keyCombo_1 = __webpack_require__(242); var Hotkey = (function (_super) { tslib_1.__extends(Hotkey, _super); function Hotkey() { @@ -29360,7 +29602,7 @@ /***/ }, -/* 236 */ +/* 242 */ /***/ function(module, exports, __webpack_require__) { /** @@ -29373,7 +29615,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(184); var React = __webpack_require__(3); - var hotkeyParser_1 = __webpack_require__(237); + var hotkeyParser_1 = __webpack_require__(243); var KeyIcons = { alt: "pt-icon-key-option", ctrl: "pt-icon-key-control", @@ -29418,7 +29660,7 @@ /***/ }, -/* 237 */ +/* 243 */ /***/ function(module, exports) { /* @@ -29691,7 +29933,7 @@ /***/ }, -/* 238 */ +/* 244 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29704,7 +29946,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); var utils_1 = __webpack_require__(185); - var hotkeysEvents_1 = __webpack_require__(239); + var hotkeysEvents_1 = __webpack_require__(245); function HotkeysTarget(constructor) { var _a = constructor.prototype, componentWillMount = _a.componentWillMount, componentDidMount = _a.componentDidMount, componentWillUnmount = _a.componentWillUnmount, render = _a.render, renderHotkeys = _a.renderHotkeys; if (!utils_1.isFunction(renderHotkeys)) { @@ -29769,7 +30011,7 @@ /***/ }, -/* 239 */ +/* 245 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29782,9 +30024,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = __webpack_require__(3); var utils_1 = __webpack_require__(185); - var hotkey_1 = __webpack_require__(235); - var hotkeyParser_1 = __webpack_require__(237); - var hotkeysDialog_1 = __webpack_require__(240); + var hotkey_1 = __webpack_require__(241); + var hotkeyParser_1 = __webpack_require__(243); + var hotkeysDialog_1 = __webpack_require__(246); var SHOW_DIALOG_KEY = "?"; var HotkeyScope; (function (HotkeyScope) { @@ -29878,7 +30120,7 @@ /***/ }, -/* 240 */ +/* 246 */ /***/ function(module, exports, __webpack_require__) { /* @@ -29895,8 +30137,8 @@ var ReactDOM = __webpack_require__(33); var common_1 = __webpack_require__(182); var components_1 = __webpack_require__(194); - var hotkey_1 = __webpack_require__(235); - var hotkeys_1 = __webpack_require__(234); + var hotkey_1 = __webpack_require__(241); + var hotkeys_1 = __webpack_require__(240); var HotkeysDialog = (function () { function HotkeysDialog() { var _this = this; @@ -30001,7 +30243,7 @@ /***/ }, -/* 241 */ +/* 247 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30042,7 +30284,7 @@ /***/ }, -/* 242 */ +/* 248 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30112,7 +30354,7 @@ /***/ }, -/* 243 */ +/* 249 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30171,7 +30413,7 @@ /***/ }, -/* 244 */ +/* 250 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30201,7 +30443,7 @@ /***/ }, -/* 245 */ +/* 251 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30243,7 +30485,7 @@ /***/ }, -/* 246 */ +/* 252 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30256,7 +30498,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(184); var React = __webpack_require__(3); - var tooltip_1 = __webpack_require__(214); + var tooltip_1 = __webpack_require__(220); var SVGTooltip = (function (_super) { tslib_1.__extends(SVGTooltip, _super); function SVGTooltip() { @@ -30273,7 +30515,7 @@ /***/ }, -/* 247 */ +/* 253 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30290,8 +30532,8 @@ var Classes = __webpack_require__(192); var Errors = __webpack_require__(186); var utils_1 = __webpack_require__(185); - var coreSlider_1 = __webpack_require__(248); - var handle_1 = __webpack_require__(249); + var coreSlider_1 = __webpack_require__(254); + var handle_1 = __webpack_require__(255); var RangeEnd; (function (RangeEnd) { RangeEnd[RangeEnd["LEFT"] = 0] = "LEFT"; @@ -30392,7 +30634,7 @@ /***/ }, -/* 248 */ +/* 254 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30525,7 +30767,7 @@ /***/ }, -/* 249 */ +/* 255 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30679,7 +30921,7 @@ /***/ }, -/* 250 */ +/* 256 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30694,8 +30936,8 @@ var React = __webpack_require__(3); var Classes = __webpack_require__(192); var utils_1 = __webpack_require__(185); - var coreSlider_1 = __webpack_require__(248); - var handle_1 = __webpack_require__(249); + var coreSlider_1 = __webpack_require__(254); + var handle_1 = __webpack_require__(255); var Slider = (function (_super) { tslib_1.__extends(Slider, _super); function Slider() { @@ -30747,7 +30989,7 @@ /***/ }, -/* 251 */ +/* 257 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30763,7 +31005,7 @@ var React = __webpack_require__(3); var Classes = __webpack_require__(192); // import * to avoid "cannot be named" error on factory - var spinner = __webpack_require__(219); + var spinner = __webpack_require__(225); var SVGSpinner = (function (_super) { tslib_1.__extends(SVGSpinner, _super); function SVGSpinner() { @@ -30781,7 +31023,7 @@ /***/ }, -/* 252 */ +/* 258 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30821,7 +31063,7 @@ /***/ }, -/* 253 */ +/* 259 */ /***/ function(module, exports, __webpack_require__) { /* @@ -30842,9 +31084,9 @@ var Errors = __webpack_require__(186); var Keys = __webpack_require__(193); var Utils = __webpack_require__(185); - var tab_1 = __webpack_require__(252); - var tabList_1 = __webpack_require__(254); - var tabPanel_1 = __webpack_require__(255); + var tab_1 = __webpack_require__(258); + var tabList_1 = __webpack_require__(260); + var tabPanel_1 = __webpack_require__(261); var TAB_CSS_SELECTOR = "li[role=tab]"; var Tabs = (function (_super) { tslib_1.__extends(Tabs, _super); @@ -31130,7 +31372,7 @@ /***/ }, -/* 254 */ +/* 260 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31180,7 +31422,7 @@ /***/ }, -/* 255 */ +/* 261 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31216,7 +31458,7 @@ /***/ }, -/* 256 */ +/* 262 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31259,7 +31501,7 @@ /***/ }, -/* 257 */ +/* 263 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31278,8 +31520,8 @@ var Classes = __webpack_require__(192); var Keys = __webpack_require__(193); var utils_1 = __webpack_require__(185); - var tab2_1 = __webpack_require__(256); - var tabTitle_1 = __webpack_require__(258); + var tab2_1 = __webpack_require__(262); + var tabTitle_1 = __webpack_require__(264); exports.Expander = function () { return React.createElement("div", { className: "pt-flex-expander" }); }; var TAB_SELECTOR = "." + Classes.TAB; var Tabs2 = (function (_super) { @@ -31316,12 +31558,9 @@ } }; _this.handleTabClick = function (newTabId) { - var selectedTabId = _this.state.selectedTabId; - if (newTabId !== selectedTabId) { - utils_1.safeInvoke(_this.props.onChange, newTabId, selectedTabId); - if (_this.props.selectedTabId === undefined) { - _this.setState({ selectedTabId: newTabId }); - } + utils_1.safeInvoke(_this.props.onChange, newTabId, _this.state.selectedTabId); + if (_this.props.selectedTabId === undefined) { + _this.setState({ selectedTabId: newTabId }); } }; _this.renderTabPanel = function (tab) { @@ -31458,7 +31697,7 @@ /***/ }, -/* 258 */ +/* 264 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31506,7 +31745,7 @@ /***/ }, -/* 259 */ +/* 265 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31552,7 +31791,7 @@ /***/ }, -/* 260 */ +/* 266 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31570,7 +31809,7 @@ var abstractComponent_1 = __webpack_require__(183); var Classes = __webpack_require__(192); var utils_1 = __webpack_require__(185); - var buttons_1 = __webpack_require__(217); + var buttons_1 = __webpack_require__(223); var Toast = (function (_super) { tslib_1.__extends(Toast, _super); function Toast() { @@ -31649,7 +31888,7 @@ /***/ }, -/* 261 */ +/* 267 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31672,7 +31911,7 @@ var position_1 = __webpack_require__(189); var utils_1 = __webpack_require__(185); var overlay_1 = __webpack_require__(203); - var toast_1 = __webpack_require__(260); + var toast_1 = __webpack_require__(266); var Toaster = Toaster_1 = (function (_super) { tslib_1.__extends(Toaster, _super); function Toaster() { @@ -31781,7 +32020,7 @@ /***/ }, -/* 262 */ +/* 268 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31797,7 +32036,7 @@ var React = __webpack_require__(3); var Classes = __webpack_require__(192); var utils_1 = __webpack_require__(185); - var treeNode_1 = __webpack_require__(263); + var treeNode_1 = __webpack_require__(269); var Tree = (function (_super) { tslib_1.__extends(Tree, _super); function Tree() { @@ -31873,7 +32112,7 @@ /***/ }, -/* 263 */ +/* 269 */ /***/ function(module, exports, __webpack_require__) { /* @@ -31889,7 +32128,7 @@ var React = __webpack_require__(3); var Classes = __webpack_require__(192); var utils_1 = __webpack_require__(185); - var collapse_1 = __webpack_require__(222); + var collapse_1 = __webpack_require__(228); var TreeNode = (function (_super) { tslib_1.__extends(TreeNode, _super); function TreeNode() { @@ -31960,7 +32199,7 @@ /***/ }, -/* 264 */ +/* 270 */ /***/ function(module, exports) { /* @@ -32369,7 +32608,7 @@ /***/ }, -/* 265 */ +/* 271 */ /***/ function(module, exports) { /* @@ -32778,7 +33017,7 @@ /***/ }, -/* 266 */ +/* 272 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32857,7 +33096,7 @@ /***/ }, -/* 267 */ +/* 273 */ /***/ function(module, exports, __webpack_require__) { /* @@ -32871,25 +33110,31 @@ var tslib_1 = __webpack_require__(173); var core_1 = __webpack_require__(178); var classNames = __webpack_require__(174); - var fuzzaldrin_plus_1 = __webpack_require__(268); + var fuzzaldrin_plus_1 = __webpack_require__(274); var React = __webpack_require__(3); var react_dom_1 = __webpack_require__(33); - var utils_1 = __webpack_require__(266); + var utils_1 = __webpack_require__(272); var baseExample_1 = __webpack_require__(172); + var MENU_PADDING = 5; // $pt-grid-size / 2; var Navigator = (function (_super) { tslib_1.__extends(Navigator, _super); function Navigator() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.state = { + matches: [], query: "", selectedIndex: 0, }; + _this.refHandlers = { + input: function (ref) { return _this.inputRef = ref; }, + menu: function (ref) { return _this.menuRef = ref; }, + }; // this guy must be defined before he's used in handleQueryChange // and it just makes sense to be up here with state init // tslint:disable:member-ordering _this.resetState = function (query) { if (query === void 0) { query = ""; } - return _this.setState({ query: query, selectedIndex: 0 }); + return _this.setState({ matches: _this.getMatches(query), query: query, selectedIndex: 0 }); }; _this.handleQueryChange = baseExample_1.handleStringChange(_this.resetState); _this.handleKeyDown = utils_1.createKeyEventHandler((_a = {}, @@ -32908,9 +33153,6 @@ _this.inputRef.focus(); } }; - _this.handleSetSearchInputRef = function (ref) { - _this.inputRef = ref; - }; _this.handlePopoverInteraction = function (nextOpenState) { if (!nextOpenState) { _this.resetState(); @@ -32928,7 +33170,7 @@ } Navigator.prototype.render = function () { return (React.createElement(core_1.Popover, { autoFocus: false, enforceFocus: false, className: "docs-navigator", content: this.renderPopover(), onInteraction: this.handlePopoverInteraction, inline: true, isOpen: this.state.query.length > 0, popoverClassName: core_1.Classes.MINIMAL, position: core_1.Position.BOTTOM_LEFT }, - React.createElement(core_1.InputGroup, { autoFocus: true, inputRef: this.handleSetSearchInputRef, leftIconName: "search", onChange: this.handleQueryChange, onKeyDown: this.handleKeyDown, placeholder: "Search...", type: "search", value: this.state.query }))); + React.createElement(core_1.InputGroup, { autoFocus: true, inputRef: this.refHandlers.input, leftIconName: "search", onChange: this.handleQueryChange, onKeyDown: this.handleKeyDown, placeholder: "Search...", type: "search", value: this.state.query }))); }; Navigator.prototype.renderHotkeys = function () { return React.createElement(core_1.Hotkeys, null, @@ -32944,15 +33186,29 @@ _this.sections.push({ filterKey: filterKey, path: path, route: route, title: title }); }); }; - Navigator.prototype.getMatches = function () { - return fuzzaldrin_plus_1.filter(this.sections, this.state.query, { - key: "filterKey", - }); + Navigator.prototype.componentDidUpdate = function () { + if (this.shouldCheckSelectedInViewport && this.menuRef != null) { + var selectedElement = this.menuRef.querySelector("." + core_1.Classes.INTENT_PRIMARY); + var selectedTop = selectedElement.offsetTop, selectedHeight = selectedElement.offsetHeight; + var _a = this.menuRef, menuScrollTop = _a.scrollTop, menuHeight = _a.clientHeight; + if (selectedTop + selectedHeight > menuScrollTop + menuHeight) { + // offscreen bottom: scroll such that one full item is visible above + menu padding + this.menuRef.scrollTop = selectedTop - selectedHeight - MENU_PADDING; + } + else if (selectedTop < menuScrollTop) { + // offscreen top: scroll such that one full item is visible below + menu padding + this.menuRef.scrollTop = selectedTop - menuHeight + selectedHeight * 2 + MENU_PADDING; + } + // reset the flag + this.shouldCheckSelectedInViewport = false; + } + }; + Navigator.prototype.getMatches = function (query) { + return fuzzaldrin_plus_1.filter(this.sections, query, { key: "filterKey" }); }; Navigator.prototype.renderPopover = function () { var _this = this; - var matches = this.getMatches(); - var selectedIndex = Math.min(matches.length, this.state.selectedIndex); + var _a = this.state, matches = _a.matches, selectedIndex = _a.selectedIndex; var items = matches.map(function (section, index) { var isSelected = index === selectedIndex; var classes = classNames(core_1.Classes.MENU_ITEM, core_1.Classes.POPOVER_DISMISS, (_a = {}, @@ -32975,12 +33231,18 @@ " to reset."), ]; } - return React.createElement(core_1.Menu, null, items); + return React.createElement("div", { className: core_1.Classes.MENU, ref: this.refHandlers.menu }, items); }; Navigator.prototype.selectNext = function (direction) { var _this = this; if (direction === void 0) { direction = 1; } - return function () { return _this.setState(tslib_1.__assign({}, _this.state, { selectedIndex: Math.max(0, _this.state.selectedIndex + direction) })); }; + return function () { + // indicate that the selected item may need to be scrolled into view after update. + // this is not possible with mouse hover cuz you can't hover on something off screen. + _this.shouldCheckSelectedInViewport = true; + var _a = _this.state, matches = _a.matches, selectedIndex = _a.selectedIndex; + _this.setState(tslib_1.__assign({}, _this.state, { selectedIndex: core_1.Utils.clamp(selectedIndex + direction, 0, matches.length - 1) })); + }; }; return Navigator; }(React.PureComponent)); @@ -32992,21 +33254,21 @@ /***/ }, -/* 268 */ +/* 274 */ /***/ function(module, exports, __webpack_require__) { (function() { var PathSeparator, filter, legacy_scorer, matcher, prepQueryCache, scorer; - scorer = __webpack_require__(269); + scorer = __webpack_require__(275); - legacy_scorer = __webpack_require__(271); + legacy_scorer = __webpack_require__(277); - filter = __webpack_require__(272); + filter = __webpack_require__(278); - matcher = __webpack_require__(273); + matcher = __webpack_require__(279); - PathSeparator = __webpack_require__(270).sep; + PathSeparator = __webpack_require__(276).sep; prepQueryCache = null; @@ -33081,13 +33343,13 @@ /***/ }, -/* 269 */ +/* 275 */ /***/ function(module, exports, __webpack_require__) { (function() { var AcronymResult, PathSeparator, Query, basenameScore, coreChars, countDir, doScore, emptyAcronymResult, file_coeff, isMatch, isSeparator, isWordEnd, isWordStart, miss_coeff, opt_char_re, pos_bonus, scoreAcronyms, scoreCharacter, scoreConsecutives, scoreExact, scoreExactMatch, scorePattern, scorePosition, scoreSize, tau_depth, tau_size, truncatedUpperCase, wm; - PathSeparator = __webpack_require__(270).sep; + PathSeparator = __webpack_require__(276).sep; wm = 150; @@ -33474,7 +33736,7 @@ /***/ }, -/* 270 */ +/* 276 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. @@ -33705,13 +33967,13 @@ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(114))) /***/ }, -/* 271 */ +/* 277 */ /***/ function(module, exports, __webpack_require__) { (function() { var PathSeparator, queryIsLastPathSegment; - PathSeparator = __webpack_require__(270).sep; + PathSeparator = __webpack_require__(276).sep; exports.basenameScore = function(string, query, score) { var base, depth, index, lastCharacter, segmentCount, slashCount; @@ -33839,15 +34101,15 @@ /***/ }, -/* 272 */ +/* 278 */ /***/ function(module, exports, __webpack_require__) { (function() { var PathSeparator, legacy_scorer, pluckCandidates, scorer, sortCandidates; - scorer = __webpack_require__(269); + scorer = __webpack_require__(275); - legacy_scorer = __webpack_require__(271); + legacy_scorer = __webpack_require__(277); pluckCandidates = function(a) { return a.candidate; @@ -33857,7 +34119,7 @@ return b.score - a.score; }; - PathSeparator = __webpack_require__(270).sep; + PathSeparator = __webpack_require__(276).sep; module.exports = function(candidates, query, _arg) { var allowErrors, bAllowErrors, bKey, candidate, coreQuery, key, legacy, maxInners, maxResults, prepQuery, queryHasSlashes, score, scoredCandidates, spotLeft, string, _i, _j, _len, _len1, _ref; @@ -33918,15 +34180,15 @@ /***/ }, -/* 273 */ +/* 279 */ /***/ function(module, exports, __webpack_require__) { (function() { var PathSeparator, scorer; - PathSeparator = __webpack_require__(270).sep; + PathSeparator = __webpack_require__(276).sep; - scorer = __webpack_require__(269); + scorer = __webpack_require__(275); exports.basenameMatch = function(subject, subject_lw, prepQuery) { var basePos, depth, end; @@ -34071,7 +34333,7 @@ /***/ }, -/* 274 */ +/* 280 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34124,7 +34386,7 @@ /***/ }, -/* 275 */ +/* 281 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34136,7 +34398,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); - var block_1 = __webpack_require__(276); + var block_1 = __webpack_require__(282); exports.Page = function (_a) { var tagRenderers = _a.tagRenderers, page = _a.page; var pageContents = block_1.renderContentsBlock(page.contents, tagRenderers, page); @@ -34146,7 +34408,7 @@ /***/ }, -/* 276 */ +/* 282 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34182,7 +34444,7 @@ /***/ }, -/* 277 */ +/* 283 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34196,13 +34458,13 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(278)); - __export(__webpack_require__(266)); + __export(__webpack_require__(284)); + __export(__webpack_require__(272)); /***/ }, -/* 278 */ +/* 284 */ /***/ function(module, exports) { /* @@ -34252,7 +34514,7 @@ /***/ }, -/* 279 */ +/* 285 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34266,18 +34528,18 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(280)); - __export(__webpack_require__(282)); - __export(__webpack_require__(283)); - __export(__webpack_require__(284)); __export(__webpack_require__(286)); - __export(__webpack_require__(287)); __export(__webpack_require__(288)); + __export(__webpack_require__(289)); + __export(__webpack_require__(290)); + __export(__webpack_require__(292)); + __export(__webpack_require__(293)); + __export(__webpack_require__(294)); /***/ }, -/* 280 */ +/* 286 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34290,7 +34552,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(173); var React = __webpack_require__(3); - var modifierTable_1 = __webpack_require__(281); + var modifierTable_1 = __webpack_require__(287); var MODIFIER_PLACEHOLDER = /\{\{([\.\:]?)modifier\}\}/g; var DEFAULT_MODIFIER = { documentation: "Default", @@ -34342,7 +34604,7 @@ /***/ }, -/* 281 */ +/* 287 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34374,7 +34636,7 @@ /***/ }, -/* 282 */ +/* 288 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34385,7 +34647,7 @@ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tags = __webpack_require__(279); + var tags = __webpack_require__(285); function createDefaultRenderers(docs) { var css = new tags.CssTagRenderer(docs); var heading = new tags.HeadingTagRenderer(); @@ -34403,7 +34665,7 @@ /***/ }, -/* 283 */ +/* 289 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34435,7 +34697,7 @@ /***/ }, -/* 284 */ +/* 290 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34447,8 +34709,8 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); - var propsStore_1 = __webpack_require__(278); - var interfaceTable_1 = __webpack_require__(285); + var propsStore_1 = __webpack_require__(284); + var interfaceTable_1 = __webpack_require__(291); var InterfaceTagRenderer = (function () { function InterfaceTagRenderer(docs) { var _this = this; @@ -34467,7 +34729,7 @@ /***/ }, -/* 285 */ +/* 291 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34481,7 +34743,7 @@ var core_1 = __webpack_require__(178); var classNames = __webpack_require__(174); var React = __webpack_require__(3); - var block_1 = __webpack_require__(276); + var block_1 = __webpack_require__(282); // HACKHACK support `code` blocks until we get real markdown parsing in ts-quick-docs function dirtyMarkdown(text) { return { __html: text.replace("<", "<") @@ -34552,7 +34814,7 @@ /***/ }, -/* 286 */ +/* 292 */ /***/ function(module, exports) { /* @@ -34574,7 +34836,7 @@ /***/ }, -/* 287 */ +/* 293 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34615,7 +34877,7 @@ /***/ }, -/* 288 */ +/* 294 */ /***/ function(module, exports, __webpack_require__) { /* @@ -34662,7 +34924,7 @@ /***/ }, -/* 289 */ +/* 295 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -34671,7 +34933,7 @@ var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); var React = __webpack_require__(3); - var navbarActions_1 = __webpack_require__(290); + var navbarActions_1 = __webpack_require__(296); var DARK_THEME = "pt-dark"; var LIGHT_THEME = ""; var THEME_LOCAL_STORAGE_KEY = "pt-blueprint-theme"; @@ -34718,14 +34980,14 @@ /***/ }, -/* 290 */ +/* 296 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(291); + var classNames = __webpack_require__(297); var React = __webpack_require__(3); var NavbarActions = (function (_super) { tslib_1.__extends(NavbarActions, _super); @@ -34763,7 +35025,7 @@ /***/ }, -/* 291 */ +/* 297 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -34817,7 +35079,7 @@ /***/ }, -/* 292 */ +/* 298 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -34825,22 +35087,22 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(293)); - __export(__webpack_require__(295)); - __export(__webpack_require__(298)); __export(__webpack_require__(299)); + __export(__webpack_require__(301)); + __export(__webpack_require__(304)); + __export(__webpack_require__(305)); /***/ }, -/* 293 */ +/* 299 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var classNames = __webpack_require__(291); + var classNames = __webpack_require__(297); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var clickToCopy_1 = __webpack_require__(294); + var clickToCopy_1 = __webpack_require__(300); function expand(color) { return [color + "1", color + "2", color + "3", color + "4", color + "5"]; } @@ -34918,13 +35180,13 @@ /***/ }, -/* 294 */ +/* 300 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); - var classNames = __webpack_require__(291); + var classNames = __webpack_require__(297); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); @@ -34974,18 +35236,18 @@ /***/ }, -/* 295 */ +/* 301 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); - var chroma = __webpack_require__(296); - var classNames = __webpack_require__(291); + var chroma = __webpack_require__(302); + var classNames = __webpack_require__(297); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var colorPalettes_1 = __webpack_require__(293); + var colorPalettes_1 = __webpack_require__(299); var MIN_STEPS = 3; var MAX_STEPS = 20; var QUALITATIVE = [ @@ -35124,7 +35386,7 @@ /***/ }, -/* 296 */ +/* 302 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) { @@ -37593,10 +37855,10 @@ }).call(this); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(297)(module))) + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(303)(module))) /***/ }, -/* 297 */ +/* 303 */ /***/ function(module, exports) { module.exports = function(module) { @@ -37612,16 +37874,16 @@ /***/ }, -/* 298 */ +/* 304 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); - var classNames = __webpack_require__(291); + var classNames = __webpack_require__(297); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var clickToCopy_1 = __webpack_require__(294); + var clickToCopy_1 = __webpack_require__(300); var GITHUB_PATH = "https://github.com/palantir/blueprint/blob/master/resources/icons"; var Icon = (function (_super) { tslib_1.__extends(Icon, _super); @@ -37655,7 +37917,7 @@ /***/ }, -/* 299 */ +/* 305 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -37663,7 +37925,7 @@ var tslib_1 = __webpack_require__(1); var React = __webpack_require__(3); var docs_1 = __webpack_require__(171); - var icon_1 = __webpack_require__(298); + var icon_1 = __webpack_require__(304); var ICONS_PER_ROW = 5; ; var Icons = (function (_super) { @@ -37725,7 +37987,7 @@ Icons.defaultProps = { iconFilter: isIconFiltered, iconRenderer: renderIcon, - icons: __webpack_require__(300), + icons: __webpack_require__(306), }; exports.Icons = Icons; function isIconFiltered(query, icon) { @@ -37737,7 +37999,7 @@ /***/ }, -/* 300 */ +/* 306 */ /***/ function(module, exports) { module.exports = [ @@ -40502,17 +40764,17 @@ ]; /***/ }, -/* 301 */ +/* 307 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(1); var React = __webpack_require__(3); - var CoreExamples = __webpack_require__(302); - var DateExamples = __webpack_require__(337); - var TableExamples = __webpack_require__(470); - var blueprintDocs_1 = __webpack_require__(289); + var CoreExamples = __webpack_require__(308); + var DateExamples = __webpack_require__(343); + var TableExamples = __webpack_require__(494); + var blueprintDocs_1 = __webpack_require__(295); var SRC_HREF_BASE = "https://github.com/palantir/blueprint/blob/master/packages"; exports.reactExamples = {}; function addPackageExamples(packageName, packageExamples) { @@ -40535,7 +40797,7 @@ /***/ }, -/* 302 */ +/* 308 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -40543,40 +40805,40 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(303)); - __export(__webpack_require__(304)); - __export(__webpack_require__(308)); __export(__webpack_require__(309)); __export(__webpack_require__(310)); - __export(__webpack_require__(311)); - __export(__webpack_require__(313)); __export(__webpack_require__(314)); __export(__webpack_require__(315)); __export(__webpack_require__(316)); __export(__webpack_require__(317)); - __export(__webpack_require__(318)); __export(__webpack_require__(319)); __export(__webpack_require__(320)); __export(__webpack_require__(321)); __export(__webpack_require__(322)); - __export(__webpack_require__(312)); __export(__webpack_require__(323)); __export(__webpack_require__(324)); __export(__webpack_require__(325)); __export(__webpack_require__(326)); __export(__webpack_require__(327)); + __export(__webpack_require__(328)); + __export(__webpack_require__(318)); __export(__webpack_require__(329)); __export(__webpack_require__(330)); __export(__webpack_require__(331)); __export(__webpack_require__(332)); __export(__webpack_require__(333)); - __export(__webpack_require__(334)); __export(__webpack_require__(335)); __export(__webpack_require__(336)); + __export(__webpack_require__(337)); + __export(__webpack_require__(338)); + __export(__webpack_require__(339)); + __export(__webpack_require__(340)); + __export(__webpack_require__(341)); + __export(__webpack_require__(342)); /***/ }, -/* 303 */ +/* 309 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -40630,7 +40892,7 @@ /***/ }, -/* 304 */ +/* 310 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -40640,7 +40902,7 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var intentSelect_1 = __webpack_require__(305); + var intentSelect_1 = __webpack_require__(311); var ButtonsExample = (function (_super) { tslib_1.__extends(ButtonsExample, _super); function ButtonsExample() { @@ -40707,13 +40969,13 @@ /***/ }, -/* 305 */ +/* 311 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(306); - var intent_1 = __webpack_require__(307); + var Classes = __webpack_require__(312); + var intent_1 = __webpack_require__(313); var React = __webpack_require__(3); var INTENTS = [ { label: "None", value: intent_1.Intent.NONE }, @@ -40729,12 +40991,12 @@ /***/ }, -/* 306 */ +/* 312 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var intent_1 = __webpack_require__(307); + var intent_1 = __webpack_require__(313); exports.DARK = "pt-dark"; exports.ACTIVE = "pt-active"; exports.MINIMAL = "pt-minimal"; @@ -40895,7 +41157,7 @@ /***/ }, -/* 307 */ +/* 313 */ /***/ function(module, exports) { "use strict"; @@ -40911,7 +41173,7 @@ /***/ }, -/* 308 */ +/* 314 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -40955,7 +41217,7 @@ /***/ }, -/* 309 */ +/* 315 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41014,7 +41276,7 @@ /***/ }, -/* 310 */ +/* 316 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41055,7 +41317,7 @@ /***/ }, -/* 311 */ +/* 317 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41063,7 +41325,7 @@ var tslib_1 = __webpack_require__(184); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var overlayExample_1 = __webpack_require__(312); + var overlayExample_1 = __webpack_require__(318); var DialogExample = (function (_super) { tslib_1.__extends(DialogExample, _super); function DialogExample() { @@ -41091,7 +41353,7 @@ /***/ }, -/* 312 */ +/* 318 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41165,7 +41427,7 @@ /***/ }, -/* 313 */ +/* 319 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41239,7 +41501,7 @@ /***/ }, -/* 314 */ +/* 320 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41272,16 +41534,18 @@ /***/ }, -/* 315 */ +/* 321 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(184); + var classNames = __webpack_require__(197); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var intentSelect_1 = __webpack_require__(305); + var intentSelect_1 = __webpack_require__(311); + var INPUT_ID = "EditableTextExample-max-length"; var EditableTextExample = (function (_super) { tslib_1.__extends(EditableTextExample, _super); function EditableTextExample() { @@ -41290,43 +41554,36 @@ confirmOnEnterKey: false, report: "", selectAllOnFocus: false, - title: "", }; _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); - _this.handleMaxLengthChange = docs_1.handleStringChange(function (maxLengthInput) { - var invalidMaxLength = (+maxLengthInput === 0 || isNaN(+maxLengthInput)) && (maxLengthInput.length !== 0); - if (invalidMaxLength) { - return; - } - if (maxLengthInput.length === 0) { + _this.toggleSelectAll = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); + _this.toggleSwap = docs_1.handleBooleanChange(function (confirmOnEnterKey) { return _this.setState({ confirmOnEnterKey: confirmOnEnterKey }); }); + _this.handleReportChange = function (report) { return _this.setState({ report: report }); }; + _this.handleMaxLengthChange = function (maxLength) { + if (maxLength === 0) { _this.setState({ maxLength: undefined }); } else { - var maxLength = +maxLengthInput; var report = _this.state.report.slice(0, maxLength); - var title = _this.state.title.slice(0, maxLength); - _this.setState({ maxLength: maxLength, report: report, title: title }); + _this.setState({ maxLength: maxLength, report: report }); } - }); - _this.toggleSelectAll = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); - _this.toggleSwap = docs_1.handleBooleanChange(function (confirmOnEnterKey) { return _this.setState({ confirmOnEnterKey: confirmOnEnterKey }); }); - _this.handleReportChange = function (report) { return _this.setState({ report: report }); }; - _this.handleTitleChange = function (title) { return _this.setState({ title: title }); }; + }; return _this; } EditableTextExample.prototype.renderExample = function () { return React.createElement("div", { className: "docs-editable-text-example" }, React.createElement("h1", null, - React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, placeholder: "Edit title...", selectAllOnFocus: this.state.selectAllOnFocus, value: this.state.title, onChange: this.handleTitleChange })), - React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, maxLines: 12, minLines: 3, multiline: true, placeholder: "Edit report...", selectAllOnFocus: this.state.selectAllOnFocus, confirmOnEnterKey: this.state.confirmOnEnterKey, value: this.state.report, onChange: this.handleReportChange })); + React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, placeholder: "Edit title...", selectAllOnFocus: this.state.selectAllOnFocus })), + React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, maxLines: 12, minLines: 3, multiline: true, placeholder: "Edit report... (controlled)", selectAllOnFocus: this.state.selectAllOnFocus, confirmOnEnterKey: this.state.confirmOnEnterKey, value: this.state.report, onChange: this.handleReportChange })); }; EditableTextExample.prototype.renderOptions = function () { return [ [ React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleIntentChange }), - React.createElement("label", { className: core_1.Classes.LABEL, key: "maxlength" }, - "Max length", - React.createElement("input", { className: core_1.Classes.INPUT, placeholder: "Unlimited", onChange: this.handleMaxLengthChange, value: this.state.maxLength !== undefined ? this.state.maxLength.toString() : "" })), + React.createElement("div", { className: core_1.Classes.FORM_GROUP, key: "maxlength" }, + React.createElement("label", { className: core_1.Classes.LABEL, htmlFor: INPUT_ID }, "Max length"), + React.createElement(core_1.NumericInput, { id: INPUT_ID, className: classNames(core_1.Classes.FORM_CONTENT, core_1.Classes.FILL), min: 0, max: 300, onValueChange: this.handleMaxLengthChange, placeholder: "Unlimited", value: this.state.maxLength || "" })), + ], [ React.createElement(core_1.Switch, { checked: this.state.selectAllOnFocus, label: "Select all on focus", key: "focus", onChange: this.toggleSelectAll }), React.createElement(core_1.Switch, { checked: this.state.confirmOnEnterKey, label: "Swap keypress for confirm and newline (multiline only)", key: "swap", onChange: this.toggleSwap }), ], @@ -41338,7 +41595,7 @@ /***/ }, -/* 316 */ +/* 322 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41384,7 +41641,7 @@ /***/ }, -/* 317 */ +/* 323 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41589,7 +41846,7 @@ /***/ }, -/* 318 */ +/* 324 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41632,7 +41889,7 @@ /***/ }, -/* 319 */ +/* 325 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41688,7 +41945,7 @@ /***/ }, -/* 320 */ +/* 326 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41698,7 +41955,7 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var intentSelect_1 = __webpack_require__(305); + var intentSelect_1 = __webpack_require__(311); var MIN_VALUES = [ { label: "None", value: null }, { label: "-10", value: -10 }, @@ -41732,6 +41989,7 @@ selectAllOnIncrement: false, showDisabled: false, showFullWidth: false, + showLargeSize: false, showLeftIcon: false, showReadOnly: false, stepSizeIndex: 0, @@ -41747,6 +42005,7 @@ _this.toggleLeftIcon = docs_1.handleBooleanChange(function (showLeftIcon) { return _this.setState({ showLeftIcon: showLeftIcon }); }); _this.toggleReadOnly = docs_1.handleBooleanChange(function (showReadOnly) { return _this.setState({ showReadOnly: showReadOnly }); }); _this.toggleFullWidth = docs_1.handleBooleanChange(function (showFullWidth) { return _this.setState({ showFullWidth: showFullWidth }); }); + _this.toggleLargeSize = docs_1.handleBooleanChange(function (showLargeSize) { return _this.setState({ showLargeSize: showLargeSize }); }); _this.toggleNumericCharsOnly = docs_1.handleBooleanChange(function (numericCharsOnly) { return _this.setState({ numericCharsOnly: numericCharsOnly }); }); _this.toggleSelectAllOnFocus = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); _this.toggleSelectAllOnIncrement = docs_1.handleBooleanChange(function (selectAllOnIncrement) { @@ -41758,7 +42017,7 @@ return _this; } NumericInputBasicExample.prototype.renderOptions = function () { - var _a = this.state, buttonPositionIndex = _a.buttonPositionIndex, intent = _a.intent, maxValueIndex = _a.maxValueIndex, minValueIndex = _a.minValueIndex, numericCharsOnly = _a.numericCharsOnly, selectAllOnFocus = _a.selectAllOnFocus, selectAllOnIncrement = _a.selectAllOnIncrement, showDisabled = _a.showDisabled, showFullWidth = _a.showFullWidth, showReadOnly = _a.showReadOnly, showLeftIcon = _a.showLeftIcon; + var _a = this.state, buttonPositionIndex = _a.buttonPositionIndex, intent = _a.intent, maxValueIndex = _a.maxValueIndex, minValueIndex = _a.minValueIndex, numericCharsOnly = _a.numericCharsOnly, selectAllOnFocus = _a.selectAllOnFocus, selectAllOnIncrement = _a.selectAllOnIncrement, showDisabled = _a.showDisabled, showFullWidth = _a.showFullWidth, showLargeSize = _a.showLargeSize, showReadOnly = _a.showReadOnly, showLeftIcon = _a.showLeftIcon; return [ [ React.createElement("label", { className: core_1.Classes.LABEL, key: "modifierslabel" }, "Modifiers"), @@ -41769,6 +42028,7 @@ this.renderSwitch("Read-only", showReadOnly, this.toggleReadOnly), this.renderSwitch("Left icon", showLeftIcon, this.toggleLeftIcon), this.renderSwitch("Full width", showFullWidth, this.toggleFullWidth), + this.renderSwitch("Large", showLargeSize, this.toggleLargeSize), ], [ this.renderSelectMenu("Minimum value", minValueIndex, MIN_VALUES, this.handleMinValueChange), this.renderSelectMenu("Maximum value", maxValueIndex, MAX_VALUES, this.handleMaxValueChange), @@ -41779,7 +42039,7 @@ ]; }; NumericInputBasicExample.prototype.renderExample = function () { - return (React.createElement(core_1.NumericInput, { allowNumericCharactersOnly: this.state.numericCharsOnly, buttonPosition: BUTTON_POSITIONS[this.state.buttonPositionIndex].value, className: classNames((_a = {}, _a[core_1.Classes.FILL] = this.state.showFullWidth, _a)), intent: this.state.intent, min: MIN_VALUES[this.state.minValueIndex].value, max: MAX_VALUES[this.state.maxValueIndex].value, disabled: this.state.showDisabled, readOnly: this.state.showReadOnly, leftIconName: this.state.showLeftIcon ? "dollar" : null, placeholder: "Enter a number...", selectAllOnFocus: this.state.selectAllOnFocus, selectAllOnIncrement: this.state.selectAllOnIncrement, onValueChange: this.handleValueChange, value: this.state.value })); + return (React.createElement(core_1.NumericInput, { allowNumericCharactersOnly: this.state.numericCharsOnly, buttonPosition: BUTTON_POSITIONS[this.state.buttonPositionIndex].value, className: classNames((_a = {}, _a[core_1.Classes.FILL] = this.state.showFullWidth, _a)), intent: this.state.intent, large: this.state.showLargeSize, min: MIN_VALUES[this.state.minValueIndex].value, max: MAX_VALUES[this.state.maxValueIndex].value, disabled: this.state.showDisabled, readOnly: this.state.showReadOnly, leftIconName: this.state.showLeftIcon ? "dollar" : null, placeholder: "Enter a number...", selectAllOnFocus: this.state.selectAllOnFocus, selectAllOnIncrement: this.state.selectAllOnIncrement, onValueChange: this.handleValueChange, value: this.state.value })); var _a; }; NumericInputBasicExample.prototype.renderSwitch = function (label, checked, onChange) { @@ -41802,7 +42062,7 @@ /***/ }, -/* 321 */ +/* 327 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41926,7 +42186,7 @@ /***/ }, -/* 322 */ +/* 328 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -41953,7 +42213,7 @@ /***/ }, -/* 323 */ +/* 329 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42129,7 +42389,7 @@ /***/ }, -/* 324 */ +/* 330 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42138,7 +42398,7 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var intentSelect_1 = __webpack_require__(305); + var intentSelect_1 = __webpack_require__(311); var ProgressExample = (function (_super) { tslib_1.__extends(ProgressExample, _super); function ProgressExample() { @@ -42173,7 +42433,7 @@ /***/ }, -/* 325 */ +/* 331 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42202,7 +42462,7 @@ /***/ }, -/* 326 */ +/* 332 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42247,7 +42507,7 @@ /***/ }, -/* 327 */ +/* 333 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42256,8 +42516,8 @@ var classNames = __webpack_require__(197); var React = __webpack_require__(3); var docs_1 = __webpack_require__(171); - var Classes = __webpack_require__(306); - var text_1 = __webpack_require__(328); + var Classes = __webpack_require__(312); + var text_1 = __webpack_require__(334); var TextExample = (function (_super) { tslib_1.__extends(TextExample, _super); function TextExample() { @@ -42283,7 +42543,7 @@ /***/ }, -/* 328 */ +/* 334 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42292,7 +42552,7 @@ var classNames = __webpack_require__(197); var PureRender = __webpack_require__(198); var React = __webpack_require__(3); - var Classes = __webpack_require__(306); + var Classes = __webpack_require__(312); var Text = (function (_super) { tslib_1.__extends(Text, _super); function Text() { @@ -42335,7 +42595,7 @@ /***/ }, -/* 329 */ +/* 335 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42344,7 +42604,7 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var progressExample_1 = __webpack_require__(324); + var progressExample_1 = __webpack_require__(330); var SIZES = [ { label: "Default", value: "" }, { label: "Small", value: core_1.Classes.SMALL }, @@ -42377,7 +42637,7 @@ /***/ }, -/* 330 */ +/* 336 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42429,7 +42689,7 @@ /***/ }, -/* 331 */ +/* 337 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42502,7 +42762,7 @@ /***/ }, -/* 332 */ +/* 338 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42564,7 +42824,7 @@ /***/ }, -/* 333 */ +/* 339 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42608,7 +42868,7 @@ /***/ }, -/* 334 */ +/* 340 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42739,7 +42999,7 @@ /***/ }, -/* 335 */ +/* 341 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42797,7 +43057,7 @@ /***/ }, -/* 336 */ +/* 342 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42889,7 +43149,7 @@ /***/ }, -/* 337 */ +/* 343 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -42897,27 +43157,27 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(338)); - __export(__webpack_require__(465)); - __export(__webpack_require__(466)); - __export(__webpack_require__(467)); - __export(__webpack_require__(468)); - __export(__webpack_require__(469)); + __export(__webpack_require__(344)); + __export(__webpack_require__(489)); + __export(__webpack_require__(490)); + __export(__webpack_require__(491)); + __export(__webpack_require__(492)); + __export(__webpack_require__(493)); /***/ }, -/* 338 */ +/* 344 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); var React = __webpack_require__(3); - var src_1 = __webpack_require__(340); - var formatSelect_1 = __webpack_require__(463); - var precisionSelect_1 = __webpack_require__(464); + var src_1 = __webpack_require__(346); + var formatSelect_1 = __webpack_require__(487); + var precisionSelect_1 = __webpack_require__(488); var DateInputExample = (function (_super) { tslib_1.__extends(DateInputExample, _super); function DateInputExample() { @@ -42960,7 +43220,7 @@ /***/ }, -/* 339 */ +/* 345 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global) {/*! ***************************************************************************** @@ -42990,6 +43250,7 @@ var __values; var __read; var __spread; + var __await; var __asyncGenerator; var __asyncDelegator; var __asyncValues; @@ -43127,24 +43388,26 @@ return ar; }; + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), q = [], c, i; - return i = { next: verb("next"), "throw": verb("throw"), "return": verb("return") }, i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { return function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]), next(); }); }; } - function next() { if (!c && q.length) resume((c = q.shift())[0], c[1]); } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(c[3], e); } } - function step(r) { r.done ? settle(c[2], r) : r.value[0] === "yield" ? settle(c[2], { value: r.value[1], done: false }) : Promise.resolve(r.value[1]).then(r.value[0] === "delegate" ? delegate : fulfill, reject); } - function delegate(r) { step(r.done ? r : { value: ["yield", r.value], done: false }); } + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } - function settle(f, v) { c = void 0, f(v), next(); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } }; __asyncDelegator = function (o) { - var i = { next: verb("next"), "throw": verb("throw", function (e) { throw e; }), "return": verb("return", function (v) { return { value: v, done: true }; }) }; - return o = __asyncValues(o), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { return function (v) { return { value: ["delegate", (o[n] || f).call(o, v)], done: false }; }; } + var i, p; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } }; __asyncValues = function (o) { @@ -43165,83 +43428,2279 @@ exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); + exporter("__await", __await); exporter("__asyncGenerator", __asyncGenerator); exporter("__asyncDelegator", __asyncDelegator); exporter("__asyncValues", __asyncValues); }); - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 346 */ +/***/ function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var classes = __webpack_require__(347); + var react_day_picker_1 = __webpack_require__(348); + exports.IDatePickerLocaleUtils = react_day_picker_1.LocaleUtils; + exports.Classes = classes; + var dateUtils_1 = __webpack_require__(367); + exports.DateRangeBoundary = dateUtils_1.DateRangeBoundary; + var dateInput_1 = __webpack_require__(474); + exports.DateInput = dateInput_1.DateInput; + var datePicker_1 = __webpack_require__(477); + exports.DatePicker = datePicker_1.DatePicker; + exports.DatePickerFactory = datePicker_1.DatePickerFactory; + var dateTimePicker_1 = __webpack_require__(481); + exports.DateTimePicker = dateTimePicker_1.DateTimePicker; + var dateRangeInput_1 = __webpack_require__(483); + exports.DateRangeInput = dateRangeInput_1.DateRangeInput; + var dateRangePicker_1 = __webpack_require__(484); + exports.DateRangePicker = dateRangePicker_1.DateRangePicker; + exports.DateRangePickerFactory = dateRangePicker_1.DateRangePickerFactory; + var timePicker_1 = __webpack_require__(482); + exports.TimePicker = timePicker_1.TimePicker; + exports.TimePickerFactory = timePicker_1.TimePickerFactory; + exports.TimePickerPrecision = timePicker_1.TimePickerPrecision; + + +/***/ }, +/* 347 */ +/***/ function(module, exports) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DATEPICKER = "pt-datepicker"; + exports.DATEPICKER_CAPTION = "pt-datepicker-caption"; + exports.DATEPICKER_CAPTION_CARET = "pt-datepicker-caption-caret"; + exports.DATEPICKER_CAPTION_SELECT = "pt-datepicker-caption-select"; + exports.DATEPICKER_DAY = "DayPicker-Day"; + exports.DATEPICKER_DAY_DISABLED = "DayPicker-Day--disabled"; + exports.DATEPICKER_DAY_OUTSIDE = "DayPicker-Day--outside"; + exports.DATEPICKER_DAY_SELECTED = "DayPicker-Day--selected"; + exports.DATEPICKER_FOOTER = "pt-datepicker-footer"; + exports.DATEPICKER_MONTH_SELECT = "pt-datepicker-month-select"; + exports.DATEPICKER_YEAR_SELECT = "pt-datepicker-year-select"; + exports.DATERANGEPICKER = "pt-daterangepicker"; + exports.DATERANGEPICKER_CONTIGUOUS = "pt-daterangepicker-contiguous"; + exports.DATERANGEPICKER_SINGLE_MONTH = "pt-daterangepicker-single-month"; + exports.DATERANGEPICKER_DAY_SELECTED_RANGE = "DayPicker-Day--selected-range"; + exports.DATERANGEPICKER_DAY_HOVERED_RANGE = "DayPicker-Day--hovered-range"; + exports.DATERANGEPICKER_SHORTCUTS = "pt-daterangepicker-shortcuts"; + exports.DATETIMEPICKER = "pt-datetimepicker"; + exports.TIMEPICKER = "pt-timepicker"; + exports.TIMEPICKER_ARROW_BUTTON = "pt-timepicker-arrow-button"; + exports.TIMEPICKER_ARROW_ROW = "pt-timepicker-arrow-row"; + exports.TIMEPICKER_DIVIDER_TEXT = "pt-timepicker-divider-text"; + exports.TIMEPICKER_HOUR = "pt-timepicker-hour"; + exports.TIMEPICKER_INPUT = "pt-timepicker-input"; + exports.TIMEPICKER_INPUT_ROW = "pt-timepicker-input-row"; + exports.TIMEPICKER_MILLISECOND = "pt-timepicker-millisecond"; + exports.TIMEPICKER_MINUTE = "pt-timepicker-minute"; + exports.TIMEPICKER_SECOND = "pt-timepicker-second"; + + +/***/ }, +/* 348 */ +/***/ function(module, exports, __webpack_require__) { + + /* eslint-disable no-var */ + /* eslint-env node */ + + var DayPicker = __webpack_require__(349); + var DateUtils = __webpack_require__(361); + var LocaleUtils = __webpack_require__(362); + var ModifiersUtils = __webpack_require__(365); + var Weekday = __webpack_require__(364); + var Navbar = __webpack_require__(356); + var PropTypes = __webpack_require__(351); + + module.exports = DayPicker.default || DayPicker; + module.exports.DateUtils = DateUtils.default || DateUtils; + module.exports.LocaleUtils = LocaleUtils.default || LocaleUtils; + module.exports.ModifiersUtils = ModifiersUtils.default || ModifiersUtils; + module.exports.WeekdayPropTypes = Weekday.WeekdayPropTypes; + module.exports.NavbarPropTypes = Navbar.NavbarPropTypes; + module.exports.PropTypes = PropTypes; + + +/***/ }, +/* 349 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true, + }); + + 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 _createClass = (function() { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ('value' in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + return function(Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + })(); + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _Caption = __webpack_require__(350); + + var _Caption2 = _interopRequireDefault(_Caption); + + var _Navbar = __webpack_require__(356); + + var _Navbar2 = _interopRequireDefault(_Navbar); + + var _Month = __webpack_require__(358); + + var _Month2 = _interopRequireDefault(_Month); + + var _Day = __webpack_require__(363); + + var _Day2 = _interopRequireDefault(_Day); + + var _Weekday = __webpack_require__(364); + + var _Weekday2 = _interopRequireDefault(_Weekday); + + var _Helpers = __webpack_require__(360); + + var Helpers = _interopRequireWildcard(_Helpers); + + var _DateUtils = __webpack_require__(361); + + var DateUtils = _interopRequireWildcard(_DateUtils); + + var _LocaleUtils = __webpack_require__(362); + + var LocaleUtils = _interopRequireWildcard(_LocaleUtils); + + var _ModifiersUtils = __webpack_require__(365); + + var ModifiersUtils = _interopRequireWildcard(_ModifiersUtils); + + var _classNames = __webpack_require__(357); + + var _classNames2 = _interopRequireDefault(_classNames); + + var _keys = __webpack_require__(366); + + var _keys2 = _interopRequireDefault(_keys); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireWildcard(obj) { + if (obj && obj.__esModule) { + return obj; + } else { + var newObj = {}; + if (obj != null) { + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) + newObj[key] = obj[key]; + } + } + newObj.default = obj; + return newObj; + } + } + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + 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; + } + + function _toConsumableArray(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + return arr2; + } else { + return Array.from(arr); + } + } + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError('Cannot call a class as a function'); + } + } + + function _possibleConstructorReturn(self, call) { + if (!self) { + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + } + return call && (typeof call === 'object' || typeof call === 'function') + ? call + : self; + } + + 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 DayPicker = (function(_Component) { + _inherits(DayPicker, _Component); + + function DayPicker(props) { + _classCallCheck(this, DayPicker); + + /* istanbul ignore next */ + // for the ignore above see: https://github.com/gotwarlost/istanbul/issues/690 + + var _this = _possibleConstructorReturn( + this, + (DayPicker.__proto__ || Object.getPrototypeOf(DayPicker)) + .call(this, props) + ); + + _initialiseProps.call(_this); + + _this.renderDayInMonth = _this.renderDayInMonth.bind(_this); + _this.showNextMonth = _this.showNextMonth.bind(_this); + _this.showPreviousMonth = _this.showPreviousMonth.bind(_this); + + _this.handleKeyDown = _this.handleKeyDown.bind(_this); + _this.handleDayClick = _this.handleDayClick.bind(_this); + _this.handleDayKeyDown = _this.handleDayKeyDown.bind(_this); + + _this.state = _this.getStateFromProps(props); + return _this; + } + + _createClass(DayPicker, [ + { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps) { + if (this.props.month !== nextProps.month) { + this.setState(this.getStateFromProps(nextProps)); + } + }, + }, + { + key: 'getDayNodes', + value: function getDayNodes() { + var outsideClassName = void 0; + if (this.props.classNames === _classNames2.default) { + // When using CSS modules prefix the modifier as required by the BEM syntax + outsideClassName = + this.props.classNames.day + '--' + this.props.classNames.outside; + } else { + outsideClassName = '' + this.props.classNames.outside; + } + var dayQuery = this.props.classNames.day.replace(/ /g, '.'); + var outsideDayQuery = outsideClassName.replace(/ /g, '.'); + var selector = '.' + dayQuery + ':not(.' + outsideDayQuery + ')'; + return this.dayPicker.querySelectorAll(selector); + }, + }, + { + key: 'getNextNavigableMonth', + value: function getNextNavigableMonth() { + return DateUtils.addMonths( + this.state.currentMonth, + this.props.numberOfMonths + ); + }, + }, + { + key: 'getPreviousNavigableMonth', + value: function getPreviousNavigableMonth() { + return DateUtils.addMonths(this.state.currentMonth, -1); + }, + }, + { + key: 'allowPreviousMonth', + value: function allowPreviousMonth() { + var previousMonth = DateUtils.addMonths(this.state.currentMonth, -1); + return this.allowMonth(previousMonth); + }, + }, + { + key: 'allowNextMonth', + value: function allowNextMonth() { + var nextMonth = DateUtils.addMonths( + this.state.currentMonth, + this.props.numberOfMonths + ); + return this.allowMonth(nextMonth); + }, + }, + { + key: 'allowMonth', + value: function allowMonth(d) { + var _props = this.props, + fromMonth = _props.fromMonth, + toMonth = _props.toMonth, + canChangeMonth = _props.canChangeMonth; + + if ( + !canChangeMonth || + (fromMonth && Helpers.getMonthsDiff(fromMonth, d) < 0) || + (toMonth && Helpers.getMonthsDiff(toMonth, d) > 0) + ) { + return false; + } + return true; + }, + }, + { + key: 'allowYearChange', + value: function allowYearChange() { + return this.props.canChangeMonth; + }, + }, + { + key: 'showMonth', + value: function showMonth(d, callback) { + var _this2 = this; + + if (!this.allowMonth(d)) { + return; + } + this.setState({ currentMonth: Helpers.startOfMonth(d) }, function() { + if (callback) { + callback(); + } + if (_this2.props.onMonthChange) { + _this2.props.onMonthChange(_this2.state.currentMonth); + } + }); + }, + }, + { + key: 'showNextMonth', + value: function showNextMonth(callback) { + if (!this.allowNextMonth()) { + return; + } + var deltaMonths = this.props.pagedNavigation + ? this.props.numberOfMonths + : 1; + var nextMonth = DateUtils.addMonths( + this.state.currentMonth, + deltaMonths + ); + this.showMonth(nextMonth, callback); + }, + }, + { + key: 'showPreviousMonth', + value: function showPreviousMonth(callback) { + if (!this.allowPreviousMonth()) { + return; + } + var deltaMonths = this.props.pagedNavigation + ? this.props.numberOfMonths + : 1; + var previousMonth = DateUtils.addMonths( + this.state.currentMonth, + -deltaMonths + ); + this.showMonth(previousMonth, callback); + }, + }, + { + key: 'showNextYear', + value: function showNextYear() { + if (!this.allowYearChange()) { + return; + } + var nextMonth = DateUtils.addMonths(this.state.currentMonth, 12); + this.showMonth(nextMonth); + }, + }, + { + key: 'showPreviousYear', + value: function showPreviousYear() { + if (!this.allowYearChange()) { + return; + } + var nextMonth = DateUtils.addMonths(this.state.currentMonth, -12); + this.showMonth(nextMonth); + }, + }, + { + key: 'focusFirstDayOfMonth', + value: function focusFirstDayOfMonth() { + this.getDayNodes()[0].focus(); + }, + }, + { + key: 'focusLastDayOfMonth', + value: function focusLastDayOfMonth() { + var dayNodes = this.getDayNodes(); + dayNodes[dayNodes.length - 1].focus(); + }, + }, + { + key: 'focusPreviousDay', + value: function focusPreviousDay(dayNode) { + var _this3 = this; + + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [] + .concat(_toConsumableArray(dayNodes)) + .indexOf(dayNode); + + if (dayNodeIndex === 0) { + this.showPreviousMonth(function() { + return _this3.focusLastDayOfMonth(); + }); + } else { + dayNodes[dayNodeIndex - 1].focus(); + } + }, + }, + { + key: 'focusNextDay', + value: function focusNextDay(dayNode) { + var _this4 = this; + + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [] + .concat(_toConsumableArray(dayNodes)) + .indexOf(dayNode); + + if (dayNodeIndex === dayNodes.length - 1) { + this.showNextMonth(function() { + return _this4.focusFirstDayOfMonth(); + }); + } else { + dayNodes[dayNodeIndex + 1].focus(); + } + }, + }, + { + key: 'focusNextWeek', + value: function focusNextWeek(dayNode) { + var _this5 = this; + + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [] + .concat(_toConsumableArray(dayNodes)) + .indexOf(dayNode); + var isInLastWeekOfMonth = dayNodeIndex > dayNodes.length - 8; + + if (isInLastWeekOfMonth) { + this.showNextMonth(function() { + var daysAfterIndex = dayNodes.length - dayNodeIndex; + var nextMonthDayNodeIndex = 7 - daysAfterIndex; + _this5.getDayNodes()[nextMonthDayNodeIndex].focus(); + }); + } else { + dayNodes[dayNodeIndex + 7].focus(); + } + }, + }, + { + key: 'focusPreviousWeek', + value: function focusPreviousWeek(dayNode) { + var _this6 = this; + + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [] + .concat(_toConsumableArray(dayNodes)) + .indexOf(dayNode); + var isInFirstWeekOfMonth = dayNodeIndex <= 6; + + if (isInFirstWeekOfMonth) { + this.showPreviousMonth(function() { + var previousMonthDayNodes = _this6.getDayNodes(); + var startOfLastWeekOfMonth = previousMonthDayNodes.length - 7; + var previousMonthDayNodeIndex = + startOfLastWeekOfMonth + dayNodeIndex; + previousMonthDayNodes[previousMonthDayNodeIndex].focus(); + }); + } else { + dayNodes[dayNodeIndex - 7].focus(); + } + }, + + // Event handlers + }, + { + key: 'handleKeyDown', + value: function handleKeyDown(e) { + e.persist(); + + switch (e.keyCode) { + case _keys2.default.LEFT: + this.showPreviousMonth(); + break; + case _keys2.default.RIGHT: + this.showNextMonth(); + break; + case _keys2.default.UP: + this.showPreviousYear(); + break; + case _keys2.default.DOWN: + this.showNextYear(); + break; + default: + break; + } + + if (this.props.onKeyDown) { + this.props.onKeyDown(e); + } + }, + }, + { + key: 'handleDayKeyDown', + value: function handleDayKeyDown(day, modifiers, e) { + e.persist(); + switch (e.keyCode) { + case _keys2.default.LEFT: + Helpers.cancelEvent(e); + this.focusPreviousDay(e.target); + break; + case _keys2.default.RIGHT: + Helpers.cancelEvent(e); + this.focusNextDay(e.target); + break; + case _keys2.default.UP: + Helpers.cancelEvent(e); + this.focusPreviousWeek(e.target); + break; + case _keys2.default.DOWN: + Helpers.cancelEvent(e); + this.focusNextWeek(e.target); + break; + case _keys2.default.ENTER: + case _keys2.default.SPACE: + Helpers.cancelEvent(e); + if (this.props.onDayClick) { + this.handleDayClick(day, modifiers, e); + } + break; + default: + break; + } + if (this.props.onDayKeyDown) { + this.props.onDayKeyDown(day, modifiers, e); + } + }, + }, + { + key: 'handleDayClick', + value: function handleDayClick(day, modifiers, e) { + e.persist(); + if (modifiers.outside) { + this.handleOutsideDayClick(day); + } + this.props.onDayClick(day, modifiers, e); + }, + }, + { + key: 'handleOutsideDayClick', + value: function handleOutsideDayClick(day) { + var currentMonth = this.state.currentMonth; + var numberOfMonths = this.props.numberOfMonths; + + var diffInMonths = Helpers.getMonthsDiff(currentMonth, day); + if (diffInMonths > 0 && diffInMonths >= numberOfMonths) { + this.showNextMonth(); + } else if (diffInMonths < 0) { + this.showPreviousMonth(); + } + }, + }, + { + key: 'renderNavbar', + value: function renderNavbar() { + var _props2 = this.props, + labels = _props2.labels, + locale = _props2.locale, + localeUtils = _props2.localeUtils, + canChangeMonth = _props2.canChangeMonth, + navbarElement = _props2.navbarElement, + attributes = _objectWithoutProperties(_props2, [ + 'labels', + 'locale', + 'localeUtils', + 'canChangeMonth', + 'navbarElement', + ]); + + if (!canChangeMonth) return null; + + var props = { + classNames: this.props.classNames, + className: this.props.classNames.navBar, + nextMonth: this.getNextNavigableMonth(), + previousMonth: this.getPreviousNavigableMonth(), + showPreviousButton: this.allowPreviousMonth(), + showNextButton: this.allowNextMonth(), + onNextClick: this.showNextMonth, + onPreviousClick: this.showPreviousMonth, + dir: attributes.dir, + labels: labels, + locale: locale, + localeUtils: localeUtils, + }; + return _react2.default.isValidElement(navbarElement) + ? _react2.default.cloneElement(navbarElement, props) + : _react2.default.createElement(navbarElement, props); + }, + }, + { + key: 'renderDayInMonth', + value: function renderDayInMonth(day, month) { + var propModifiers = Helpers.getModifiersFromProps(this.props); + var dayModifiers = ModifiersUtils.getModifiersForDay( + day, + propModifiers + ); + if ( + DateUtils.isSameDay(day, new Date()) && + !Object.prototype.hasOwnProperty.call( + propModifiers, + this.props.classNames.today + ) + ) { + dayModifiers.push(this.props.classNames.today); + } + if (day.getMonth() !== month.getMonth()) { + dayModifiers.push(this.props.classNames.outside); + } + + var isOutside = day.getMonth() !== month.getMonth(); + var tabIndex = null; + if (this.props.onDayClick && !isOutside) { + tabIndex = -1; + // Focus on the first day of the month + if (day.getDate() === 1) { + tabIndex = this.props.tabIndex; + } + } + var key = '' + day.getFullYear() + day.getMonth() + day.getDate(); + var modifiers = {}; + dayModifiers.forEach(function(modifier) { + modifiers[modifier] = true; + }); + + return _react2.default.createElement( + _Day2.default, + { + key: '' + (isOutside ? 'outside-' : '') + key, + classNames: this.props.classNames, + day: day, + modifiers: modifiers, + modifiersStyles: this.props.modifiersStyles, + empty: isOutside && + !this.props.enableOutsideDays && + !this.props.fixedWeeks, + tabIndex: tabIndex, + ariaLabel: this.props.localeUtils.formatDay(day, this.props.locale), + ariaDisabled: isOutside || dayModifiers.indexOf('disabled') > -1, + ariaSelected: dayModifiers.indexOf('selected') > -1, + onMouseEnter: this.props.onDayMouseEnter, + onMouseLeave: this.props.onDayMouseLeave, + onKeyDown: this.handleDayKeyDown, + onTouchStart: this.props.onDayTouchStart, + onTouchEnd: this.props.onDayTouchEnd, + onFocus: this.props.onDayFocus, + onClick: this.props.onDayClick ? this.handleDayClick : undefined, + }, + this.props.renderDay(day, modifiers) + ); + }, + }, + { + key: 'renderMonths', + value: function renderMonths() { + var months = []; + var firstDayOfWeek = Helpers.getFirstDayOfWeekFromProps(this.props); + + for (var i = 0; i < this.props.numberOfMonths; i += 1) { + var month = DateUtils.addMonths(this.state.currentMonth, i); + + months.push( + _react2.default.createElement( + _Month2.default, + { + key: i, + classNames: this.props.classNames, + month: month, + months: this.props.months, + weekdayElement: this.props.weekdayElement, + captionElement: this.props.captionElement, + fixedWeeks: this.props.fixedWeeks, + weekdaysShort: this.props.weekdaysShort, + weekdaysLong: this.props.weekdaysLong, + locale: this.props.locale, + localeUtils: this.props.localeUtils, + firstDayOfWeek: firstDayOfWeek, + onCaptionClick: this.props.onCaptionClick, + }, + this.renderDayInMonth + ) + ); + } + + if (this.props.reverseMonths) { + months.reverse(); + } + return months; + }, + }, + { + key: 'render', + value: function render() { + var _this7 = this; + + var className = this.props.classNames.container; + + if (!this.props.onDayClick) { + className = + className + ' ' + this.props.classNames.interactionDisabled; + } + if (this.props.className) { + className = className + ' ' + this.props.className; + } + + return _react2.default.createElement( + 'div', + _extends({}, this.props.containerProps, { + className: className, + ref: function ref(el) { + _this7.dayPicker = el; + }, + role: 'application', + lang: this.props.locale, + tabIndex: this.props.canChangeMonth && this.props.tabIndex, + onKeyDown: this.handleKeyDown, + onFocus: this.props.onFocus, + onBlur: this.props.onBlur, + }), + this.renderNavbar(), + this.renderMonths() + ); + }, + }, + ]); + + return DayPicker; + })(_react.Component); + + DayPicker.VERSION = '5.4.3'; + DayPicker.propTypes = { + // Rendering months + initialMonth: _PropTypes2.default.instanceOf(Date), + month: _PropTypes2.default.instanceOf(Date), + numberOfMonths: _PropTypes2.default.number, + fromMonth: _PropTypes2.default.instanceOf(Date), + toMonth: _PropTypes2.default.instanceOf(Date), + canChangeMonth: _PropTypes2.default.bool, + reverseMonths: _PropTypes2.default.bool, + pagedNavigation: _PropTypes2.default.bool, + + // Modifiers + selectedDays: _PropTypes2.default.oneOfType([ + _PropTypes.ModifierPropType, + _PropTypes2.default.arrayOf(_PropTypes.ModifierPropType), + ]), + disabledDays: _PropTypes2.default.oneOfType([ + _PropTypes.ModifierPropType, + _PropTypes2.default.arrayOf(_PropTypes.ModifierPropType), + ]), + + modifiers: _PropTypes2.default.object, + modifiersStyles: _PropTypes2.default.object, + + // Localization + dir: _PropTypes2.default.string, + firstDayOfWeek: _PropTypes2.default.oneOf([0, 1, 2, 3, 4, 5, 6]), + labels: _PropTypes2.default.shape({ + nextMonth: _PropTypes2.default.string.isRequired, + previousMonth: _PropTypes2.default.string.isRequired, + }).isRequired, + locale: _PropTypes2.default.string, + localeUtils: _PropTypes2.default.localeUtils, + months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + + // Customization + enableOutsideDays: _PropTypes2.default.bool, + fixedWeeks: _PropTypes2.default.bool, + + // CSS and HTML + classNames: _PropTypes2.default.shape({ + body: _PropTypes2.default.string, + container: _PropTypes2.default.string, + day: _PropTypes2.default.string.isRequired, + disabled: _PropTypes2.default.string.isRequired, + interactionDisabled: _PropTypes2.default.string, + month: _PropTypes2.default.string, + navBar: _PropTypes2.default.string, + outside: _PropTypes2.default.string.isRequired, + selected: _PropTypes2.default.string.isRequired, + today: _PropTypes2.default.string.isRequired, + week: _PropTypes2.default.string, + }), + className: _PropTypes2.default.string, + containerProps: _PropTypes2.default.object, + tabIndex: _PropTypes2.default.number, + + // Custom elements + renderDay: _PropTypes2.default.func, + weekdayElement: _PropTypes2.default.oneOfType([ + _PropTypes2.default.element, + _PropTypes2.default.func, + _PropTypes2.default.instanceOf(_react.Component), + ]), + navbarElement: _PropTypes2.default.oneOfType([ + _PropTypes2.default.element, + _PropTypes2.default.func, + _PropTypes2.default.instanceOf(_react.Component), + ]), + captionElement: _PropTypes2.default.oneOfType([ + _PropTypes2.default.element, + _PropTypes2.default.func, + _PropTypes2.default.instanceOf(_react.Component), + ]), + + // Events + onBlur: _PropTypes2.default.func, + onFocus: _PropTypes2.default.func, + onKeyDown: _PropTypes2.default.func, + onDayClick: _PropTypes2.default.func, + onDayKeyDown: _PropTypes2.default.func, + onDayMouseEnter: _PropTypes2.default.func, + onDayMouseLeave: _PropTypes2.default.func, + onDayTouchStart: _PropTypes2.default.func, + onDayTouchEnd: _PropTypes2.default.func, + onDayFocus: _PropTypes2.default.func, + onMonthChange: _PropTypes2.default.func, + onCaptionClick: _PropTypes2.default.func, + }; + DayPicker.defaultProps = { + classNames: _classNames2.default, + tabIndex: 0, + initialMonth: new Date(), + numberOfMonths: 1, + labels: { + previousMonth: 'Previous Month', + nextMonth: 'Next Month', + }, + locale: 'en', + localeUtils: LocaleUtils, + enableOutsideDays: false, + fixedWeeks: false, + canChangeMonth: true, + reverseMonths: false, + pagedNavigation: false, + renderDay: function renderDay(day) { + return day.getDate(); + }, + weekdayElement: _react2.default.createElement(_Weekday2.default, null), + navbarElement: _react2.default.createElement(_Navbar2.default, { + classNames: _classNames2.default, + }), + captionElement: _react2.default.createElement(_Caption2.default, { + classNames: _classNames2.default, + }), + }; + + var _initialiseProps = function _initialiseProps() { + this.getStateFromProps = function(props) { + var initialMonth = Helpers.startOfMonth(props.month || props.initialMonth); + var currentMonth = initialMonth; + + if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) { + var diffInMonths = Helpers.getMonthsDiff(props.fromMonth, currentMonth); + currentMonth = DateUtils.addMonths( + props.fromMonth, + Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths + ); + } + return { currentMonth: currentMonth }; + }; + + this.dayPicker = null; + }; + + exports.default = DayPicker; + + +/***/ }, +/* 350 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Caption; + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Caption(_ref) { + var classNames = _ref.classNames, + date = _ref.date, + months = _ref.months, + locale = _ref.locale, + localeUtils = _ref.localeUtils, + onClick = _ref.onClick; + + return _react2.default.createElement( + 'div', + { className: classNames.caption, onClick: onClick, role: 'heading' }, + months ? months[date.getMonth()] + ' ' + date.getFullYear() : localeUtils.formatMonthTitle(date, locale) + ); + } + + Caption.propTypes = { + date: _PropTypes2.default.instanceOf(Date), + months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + locale: _PropTypes2.default.string, + localeUtils: _PropTypes2.default.localeUtils, + onClick: _PropTypes2.default.func, + classNames: _PropTypes2.default.shape({ + caption: _PropTypes2.default.string.isRequired + }).isRequired + }; + + +/***/ }, +/* 351 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ModifierPropType = undefined; + + 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 _propTypes = __webpack_require__(352); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var PrimitiveTypes = _extends({ + localeUtils: _propTypes2.default.shape({ + formatMonthTitle: _propTypes2.default.func, + formatWeekdayShort: _propTypes2.default.func, + formatWeekdayLong: _propTypes2.default.func, + getFirstDayOfWeek: _propTypes2.default.func + }), + range: _propTypes2.default.shape({ + from: _propTypes2.default.instanceOf(Date), + to: _propTypes2.default.instanceOf(Date) + }), + after: _propTypes2.default.shape({ + after: _propTypes2.default.instanceOf(Date) + }), + before: _propTypes2.default.shape({ + before: _propTypes2.default.instanceOf(Date) + }) + }, _propTypes2.default); + + var ModifierPropType = exports.ModifierPropType = _propTypes2.default.oneOfType([PrimitiveTypes.after, PrimitiveTypes.before, PrimitiveTypes.range, _propTypes2.default.func, _propTypes2.default.array]); + + exports.default = PrimitiveTypes; + + +/***/ }, +/* 352 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + + if (false) { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(353)(); + } + + +/***/ }, +/* 353 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + + 'use strict'; + + var emptyFunction = __webpack_require__(354); + var invariant = __webpack_require__(355); + + module.exports = function() { + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + function shim() { + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + +/***/ }, +/* 354 */ +/***/ function(module, exports) { + + "use strict"; + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } + + /** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; + +/***/ }, +/* 355 */ +/***/ function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + + 'use strict'; + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var validateFormat = function validateFormat(format) {}; + + if (false) { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; + } + + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + } + + module.exports = invariant; + +/***/ }, +/* 356 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.NavbarPropTypes = undefined; + exports.default = Navbar; + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + var _classNames = __webpack_require__(357); + + var _classNames2 = _interopRequireDefault(_classNames); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Navbar(_ref) { + var classNames = _ref.classNames, + className = _ref.className, + showPreviousButton = _ref.showPreviousButton, + showNextButton = _ref.showNextButton, + onPreviousClick = _ref.onPreviousClick, + onNextClick = _ref.onNextClick, + labels = _ref.labels, + dir = _ref.dir; + + var previousClickHandler = dir === 'rtl' ? onNextClick : onPreviousClick; + var nextClickHandler = dir === 'rtl' ? onPreviousClick : onNextClick; + + var previousButton = showPreviousButton && _react2.default.createElement('span', { + role: 'button', + 'aria-label': labels.previousMonth, + key: 'previous', + className: classNames.navButtonPrev, + onClick: function onClick() { + return previousClickHandler(); + } + }); + + var nextButton = showNextButton && _react2.default.createElement('span', { + role: 'button', + 'aria-label': labels.nextMonth, + key: 'right', + className: classNames.navButtonNext, + onClick: function onClick() { + return nextClickHandler(); + } + }); + + return _react2.default.createElement( + 'div', + { className: className || classNames.navBar }, + dir === 'rtl' ? [nextButton, previousButton] : [previousButton, nextButton] + ); + } + + var NavbarPropTypes = exports.NavbarPropTypes = { + classNames: _PropTypes2.default.shape({ + navBar: _PropTypes2.default.string.isRequired, + navButtonPrev: _PropTypes2.default.string.isRequired, + navButtonNext: _PropTypes2.default.string.isRequired + }), + className: _PropTypes2.default.string, + showPreviousButton: _PropTypes2.default.bool, + showNextButton: _PropTypes2.default.bool, + onPreviousClick: _PropTypes2.default.func, + onNextClick: _PropTypes2.default.func, + dir: _PropTypes2.default.string, + labels: _PropTypes2.default.shape({ + previousMonth: _PropTypes2.default.string.isRequired, + nextMonth: _PropTypes2.default.string.isRequired + }) + }; + + Navbar.propTypes = NavbarPropTypes; + + Navbar.defaultProps = { + classNames: _classNames2.default, + dir: 'ltr', + labels: { + previousMonth: 'Previous Month', + nextMonth: 'Next Month' + }, + showPreviousButton: true, + showNextButton: true + }; + + +/***/ }, +/* 357 */ +/***/ function(module, exports) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + // Proxy object to map classnames when css modules are not used + + exports.default = { + container: 'DayPicker', + interactionDisabled: 'DayPicker--interactionDisabled', + month: 'DayPicker-Month', + navBar: 'DayPicker-NavBar', + navButtonPrev: 'DayPicker-NavButton DayPicker-NavButton--prev', + navButtonNext: 'DayPicker-NavButton DayPicker-NavButton--next', + caption: 'DayPicker-Caption', + weekdays: 'DayPicker-Weekdays', + weekdaysRow: 'DayPicker-WeekdaysRow', + weekday: 'DayPicker-Weekday', + body: 'DayPicker-Body', + week: 'DayPicker-Week', + day: 'DayPicker-Day', + + // default modifiers + today: 'today', + selected: 'selected', + disabled: 'disabled', + outside: 'outside' + }; + + +/***/ }, +/* 358 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true, + }); + exports.default = Month; + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + var _Weekdays = __webpack_require__(359); + + var _Weekdays2 = _interopRequireDefault(_Weekdays); + + var _Helpers = __webpack_require__(360); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + function Month(_ref) { + var classNames = _ref.classNames, + month = _ref.month, + months = _ref.months, + fixedWeeks = _ref.fixedWeeks, + captionElement = _ref.captionElement, + weekdayElement = _ref.weekdayElement, + locale = _ref.locale, + localeUtils = _ref.localeUtils, + weekdaysLong = _ref.weekdaysLong, + weekdaysShort = _ref.weekdaysShort, + firstDayOfWeek = _ref.firstDayOfWeek, + onCaptionClick = _ref.onCaptionClick, + children = _ref.children; + + var captionProps = { + date: month, + classNames: classNames, + months: months, + localeUtils: localeUtils, + locale: locale, + onClick: onCaptionClick + ? function(e) { + return onCaptionClick(month, e); + } + : undefined, + }; + var caption = _react2.default.isValidElement(captionElement) + ? _react2.default.cloneElement(captionElement, captionProps) + : _react2.default.createElement(captionElement, captionProps); + + var weeks = (0, _Helpers.getWeekArray)(month, firstDayOfWeek, fixedWeeks); + return _react2.default.createElement( + 'div', + { className: classNames.month, role: 'grid' }, + caption, + _react2.default.createElement(_Weekdays2.default, { + classNames: classNames, + weekdaysShort: weekdaysShort, + weekdaysLong: weekdaysLong, + firstDayOfWeek: firstDayOfWeek, + locale: locale, + localeUtils: localeUtils, + weekdayElement: weekdayElement, + }), + _react2.default.createElement( + 'div', + { className: classNames.body, role: 'rowgroup' }, + weeks.map(function(week) { + return _react2.default.createElement( + 'div', + { key: week[0].getTime(), className: classNames.week, role: 'row' }, + week.map(function(day) { + return children(day, month); + }) + ); + }) + ) + ); + } + + Month.propTypes = { + classNames: _PropTypes2.default.shape({ + month: _PropTypes2.default.string.isRequired, + body: _PropTypes2.default.string.isRequired, + week: _PropTypes2.default.string.isRequired, + }).isRequired, + + month: _PropTypes2.default.instanceOf(Date).isRequired, + months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + + fixedWeeks: _PropTypes2.default.bool, + captionElement: _PropTypes2.default.oneOfType([ + _PropTypes2.default.element, + _PropTypes2.default.func, + _PropTypes2.default.instanceOf(_react2.default.Component), + ]).isRequired, + weekdayElement: _PropTypes2.default.oneOfType([ + _PropTypes2.default.element, + _PropTypes2.default.func, + _PropTypes2.default.instanceOf(_react2.default.Component), + ]), + + locale: _PropTypes2.default.string.isRequired, + localeUtils: _PropTypes2.default.localeUtils.isRequired, + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + firstDayOfWeek: _PropTypes2.default.number.isRequired, + + onCaptionClick: _PropTypes2.default.func, + + children: _PropTypes2.default.func.isRequired, + }; + + +/***/ }, +/* 359 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Weekdays; + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Weekdays(_ref) { + var classNames = _ref.classNames, + firstDayOfWeek = _ref.firstDayOfWeek, + weekdaysLong = _ref.weekdaysLong, + weekdaysShort = _ref.weekdaysShort, + locale = _ref.locale, + localeUtils = _ref.localeUtils, + weekdayElement = _ref.weekdayElement; + + var days = []; + for (var i = 0; i < 7; i += 1) { + var weekday = (i + firstDayOfWeek) % 7; + var elementProps = { + key: i, + className: classNames.weekday, + weekday: weekday, + weekdaysLong: weekdaysLong, + weekdaysShort: weekdaysShort, + localeUtils: localeUtils, + locale: locale + }; + var element = _react2.default.isValidElement(weekdayElement) ? _react2.default.cloneElement(weekdayElement, elementProps) : _react2.default.createElement(weekdayElement, elementProps); + days.push(element); + } + + return _react2.default.createElement( + 'div', + { className: classNames.weekdays, role: 'rowgroup' }, + _react2.default.createElement( + 'div', + { className: classNames.weekdaysRow, role: 'row' }, + days + ) + ); + } + + Weekdays.propTypes = { + classNames: _PropTypes2.default.shape({ + weekday: _PropTypes2.default.string.isRequired, + weekdays: _PropTypes2.default.string.isRequired, + weekdaysRow: _PropTypes2.default.string.isRequired + }).isRequired, + + firstDayOfWeek: _PropTypes2.default.number.isRequired, + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + locale: _PropTypes2.default.string.isRequired, + localeUtils: _PropTypes2.default.localeUtils.isRequired, + weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]) + }; + + +/***/ }, +/* 360 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + 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; }; + + exports.cancelEvent = cancelEvent; + exports.getFirstDayOfMonth = getFirstDayOfMonth; + exports.getDaysInMonth = getDaysInMonth; + exports.getModifiersFromProps = getModifiersFromProps; + exports.getFirstDayOfWeekFromProps = getFirstDayOfWeekFromProps; + exports.isRangeOfDates = isRangeOfDates; + exports.getMonthsDiff = getMonthsDiff; + exports.getWeekArray = getWeekArray; + exports.startOfMonth = startOfMonth; + + var _DateUtils = __webpack_require__(361); + + var _LocaleUtils = __webpack_require__(362); + + function cancelEvent(e) { + e.preventDefault(); + e.stopPropagation(); + } + + function getFirstDayOfMonth(d) { + return new Date(d.getFullYear(), d.getMonth(), 1, 12); + } + + function getDaysInMonth(d) { + var resultDate = getFirstDayOfMonth(d); + + resultDate.setMonth(resultDate.getMonth() + 1); + resultDate.setDate(resultDate.getDate() - 1); + + return resultDate.getDate(); + } + + function getModifiersFromProps(props) { + var modifiers = _extends({}, props.modifiers); + if (props.selectedDays) { + modifiers[props.classNames.selected] = props.selectedDays; + } + if (props.disabledDays) { + modifiers[props.classNames.disabled] = props.disabledDays; + } + return modifiers; + } + + function getFirstDayOfWeekFromProps(props) { + var firstDayOfWeek = props.firstDayOfWeek, + _props$locale = props.locale, + locale = _props$locale === undefined ? 'en' : _props$locale, + _props$localeUtils = props.localeUtils, + localeUtils = _props$localeUtils === undefined ? {} : _props$localeUtils; + + if (!isNaN(firstDayOfWeek)) { + return firstDayOfWeek; + } + if (localeUtils.getFirstDayOfWeek) { + return localeUtils.getFirstDayOfWeek(locale); + } + return 0; + } + + function isRangeOfDates(value) { + return !!(value && value.from && value.to); + } + + function getMonthsDiff(d1, d2) { + return d2.getMonth() - d1.getMonth() + 12 * (d2.getFullYear() - d1.getFullYear()); + } + + function getWeekArray(d) { + var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _LocaleUtils.getFirstDayOfWeek)(); + var fixedWeeks = arguments[2]; + + var daysInMonth = getDaysInMonth(d); + var dayArray = []; + + var week = []; + var weekArray = []; + + for (var i = 1; i <= daysInMonth; i += 1) { + dayArray.push(new Date(d.getFullYear(), d.getMonth(), i, 12)); + } + + dayArray.forEach(function (day) { + if (week.length > 0 && day.getDay() === firstDayOfWeek) { + weekArray.push(week); + week = []; + } + week.push(day); + if (dayArray.indexOf(day) === dayArray.length - 1) { + weekArray.push(week); + } + }); + + // unshift days to start the first week + var firstWeek = weekArray[0]; + for (var _i = 7 - firstWeek.length; _i > 0; _i -= 1) { + var outsideDate = (0, _DateUtils.clone)(firstWeek[0]); + outsideDate.setDate(firstWeek[0].getDate() - 1); + firstWeek.unshift(outsideDate); + } + + // push days until the end of the last week + var lastWeek = weekArray[weekArray.length - 1]; + for (var _i2 = lastWeek.length; _i2 < 7; _i2 += 1) { + var _outsideDate = (0, _DateUtils.clone)(lastWeek[lastWeek.length - 1]); + _outsideDate.setDate(lastWeek[lastWeek.length - 1].getDate() + 1); + lastWeek.push(_outsideDate); + } + + // add extra weeks to reach 6 weeks + if (fixedWeeks && weekArray.length < 6) { + var lastExtraWeek = void 0; + + for (var _i3 = weekArray.length; _i3 < 6; _i3 += 1) { + lastExtraWeek = weekArray[weekArray.length - 1]; + var lastDay = lastExtraWeek[lastExtraWeek.length - 1]; + var extraWeek = []; + + for (var j = 0; j < 7; j += 1) { + var _outsideDate2 = (0, _DateUtils.clone)(lastDay); + _outsideDate2.setDate(lastDay.getDate() + j + 1); + extraWeek.push(_outsideDate2); + } + + weekArray.push(extraWeek); + } + } + + return weekArray; + } + + function startOfMonth(d) { + var newDate = (0, _DateUtils.clone)(d); + newDate.setDate(1); + newDate.setHours(12, 0, 0, 0); // always set noon to avoid time zone issues + return newDate; + } + + +/***/ }, +/* 361 */ +/***/ function(module, exports) { + + 'use strict'; + + Object.defineProperty(exports, '__esModule', { + value: true, + }); + exports.clone = clone; + exports.addMonths = addMonths; + exports.isSameDay = isSameDay; + exports.isDayBefore = isDayBefore; + exports.isDayAfter = isDayAfter; + exports.isPastDay = isPastDay; + exports.isFutureDay = isFutureDay; + exports.isDayBetween = isDayBetween; + exports.addDayToRange = addDayToRange; + exports.isDayInRange = isDayInRange; + /** + * Clone a date object. + * + * @param {Date} d The date to clone + * @return {Date} The cloned date + */ + function clone(d) { + return new Date(d.getTime()); + } + + /** + * Return `d` as a new date with `n` months added. + * @param {[type]} d + * @param {[type]} n + */ + function addMonths(d, n) { + var newDate = clone(d); + newDate.setMonth(d.getMonth() + n); + return newDate; + } + + /** + * Return `true` if two dates are the same day, ignoring the time. + * + * @param {Date} d1 + * @param {Date} d2 + * @return {Boolean} + */ + function isSameDay(d1, d2) { + if (!d1 || !d2) { + return false; + } + return ( + d1.getDate() === d2.getDate() && + d1.getMonth() === d2.getMonth() && + d1.getFullYear() === d2.getFullYear() + ); + } + + /** + * Returns `true` if the first day is before the second day. + * + * @export + * @param {Date} d1 + * @param {Date} d2 + * @returns {Boolean} + */ + function isDayBefore(d1, d2) { + var day1 = clone(d1).setHours(0, 0, 0, 0); + var day2 = clone(d2).setHours(0, 0, 0, 0); + return day1 < day2; + } + + /** + * Returns `true` if the first day is after the second day. + * + * @export + * @param {Date} d1 + * @param {Date} d2 + * @returns {Boolean} + */ + function isDayAfter(d1, d2) { + var day1 = clone(d1).setHours(0, 0, 0, 0); + var day2 = clone(d2).setHours(0, 0, 0, 0); + return day1 > day2; + } + + /** + * Return `true` if a day is in the past, e.g. yesterday or any day + * before yesterday. + * + * @param {Date} d + * @return {Boolean} + */ + function isPastDay(d) { + var today = new Date(); + today.setHours(0, 0, 0, 0); + return isDayBefore(d, today); + } + + /** + * Return `true` if a day is in the future, e.g. tomorrow or any day + * after tomorrow. + * + * @param {Date} d + * @return {Boolean} + */ + function isFutureDay(d) { + var tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000); + tomorrow.setHours(0, 0, 0, 0); + return d >= tomorrow; + } + + /** + * Return `true` if day `d` is between days `d1` and `d2`, + * without including them. + * + * @param {Date} d + * @param {Date} d1 + * @param {Date} d2 + * @return {Boolean} + */ + function isDayBetween(d, d1, d2) { + var date = clone(d); + date.setHours(0, 0, 0, 0); + return ( + (isDayAfter(date, d1) && isDayBefore(date, d2)) || + (isDayAfter(date, d2) && isDayBefore(date, d1)) + ); + } + + /** + * Add a day to a range and return a new range. A range is an object with + * `from` and `to` days. + * + * @param {Date} day + * @param {Object} range + * @return {Object} Returns a new range object + */ + function addDayToRange(day) { + var range = arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : { from: null, to: null }; + var from = range.from, to = range.to; + + if (!from) { + from = day; + } else if (from && to && isSameDay(from, to) && isSameDay(day, from)) { + from = null; + to = null; + } else if (to && isDayBefore(day, from)) { + from = day; + } else if (to && isSameDay(day, to)) { + from = day; + to = day; + } else { + to = day; + if (isDayBefore(to, from)) { + to = from; + from = day; + } + } + + return { from: from, to: to }; + } + + /** + * Return `true` if a day is included in a range of days. + * + * @param {Date} day + * @param {Object} range + * @return {Boolean} + */ + function isDayInRange(day, range) { + var from = range.from, to = range.to; + + return ( + (from && isSameDay(day, from)) || + (to && isSameDay(day, to)) || + (from && to && isDayBetween(day, from, to)) + ); + } + + exports.default = { + addDayToRange: addDayToRange, + addMonths: addMonths, + clone: clone, + isDayAfter: isDayAfter, + isDayBefore: isDayBefore, + isDayBetween: isDayBetween, + isDayInRange: isDayInRange, + isFutureDay: isFutureDay, + isPastDay: isPastDay, + isSameDay: isSameDay, + }; + /***/ }, -/* 340 */ +/* 362 */ +/***/ function(module, exports) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.formatDay = formatDay; + exports.formatMonthTitle = formatMonthTitle; + exports.formatWeekdayShort = formatWeekdayShort; + exports.formatWeekdayLong = formatWeekdayLong; + exports.getFirstDayOfWeek = getFirstDayOfWeek; + exports.getMonths = getMonths; + var WEEKDAYS_LONG = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; + + var WEEKDAYS_SHORT = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; + + var MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; + + function formatDay(day) { + return day.toDateString(); + } + + function formatMonthTitle(d) { + return MONTHS[d.getMonth()] + ' ' + d.getFullYear(); + } + + function formatWeekdayShort(i) { + return WEEKDAYS_SHORT[i]; + } + + function formatWeekdayLong(i) { + return WEEKDAYS_LONG[i]; + } + + function getFirstDayOfWeek() { + return 0; + } + + function getMonths() { + return MONTHS; + } + + exports.default = { + formatDay: formatDay, + formatMonthTitle: formatMonthTitle, + formatWeekdayShort: formatWeekdayShort, + formatWeekdayLong: formatWeekdayLong, + getFirstDayOfWeek: getFirstDayOfWeek, + getMonths: getMonths + }; + + +/***/ }, +/* 363 */ /***/ function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var classes = __webpack_require__(341); - exports.Classes = classes; - var dateUtils_1 = __webpack_require__(342); - exports.DateRangeBoundary = dateUtils_1.DateRangeBoundary; - var dateInput_1 = __webpack_require__(449); - exports.DateInput = dateInput_1.DateInput; - var datePicker_1 = __webpack_require__(452); - exports.DatePicker = datePicker_1.DatePicker; - exports.DatePickerFactory = datePicker_1.DatePickerFactory; - var dateTimePicker_1 = __webpack_require__(457); - exports.DateTimePicker = dateTimePicker_1.DateTimePicker; - var dateRangeInput_1 = __webpack_require__(459); - exports.DateRangeInput = dateRangeInput_1.DateRangeInput; - var dateRangePicker_1 = __webpack_require__(460); - exports.DateRangePicker = dateRangePicker_1.DateRangePicker; - exports.DateRangePickerFactory = dateRangePicker_1.DateRangePickerFactory; - var timePicker_1 = __webpack_require__(458); - exports.TimePicker = timePicker_1.TimePicker; - exports.TimePickerFactory = timePicker_1.TimePickerFactory; - exports.TimePickerPrecision = timePicker_1.TimePickerPrecision; + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Day; + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _classNames = __webpack_require__(357); + + var _classNames2 = _interopRequireDefault(_classNames); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function handleEvent(handler, day, modifiers) { + if (!handler) { + return undefined; + } + return function (e) { + e.persist(); + handler(day, modifiers, e); + }; + } /* eslint-disable jsx-a11y/no-static-element-interactions, react/forbid-prop-types */ + + function Day(_ref) { + var classNames = _ref.classNames, + modifiersStyles = _ref.modifiersStyles, + day = _ref.day, + tabIndex = _ref.tabIndex, + empty = _ref.empty, + modifiers = _ref.modifiers, + onMouseEnter = _ref.onMouseEnter, + onMouseLeave = _ref.onMouseLeave, + onClick = _ref.onClick, + onKeyDown = _ref.onKeyDown, + onTouchStart = _ref.onTouchStart, + onTouchEnd = _ref.onTouchEnd, + onFocus = _ref.onFocus, + ariaLabel = _ref.ariaLabel, + ariaDisabled = _ref.ariaDisabled, + ariaSelected = _ref.ariaSelected, + children = _ref.children; + + var className = classNames.day; + if (classNames !== _classNames2.default) { + // When using CSS modules prefix the modifier as required by the BEM syntax + className += ' ' + Object.keys(modifiers).join(' '); + } else { + className += Object.keys(modifiers).map(function (modifier) { + return ' ' + className + '--' + modifier; + }).join(''); + } + + var style = void 0; + if (modifiersStyles) { + Object.keys(modifiers).filter(function (modifier) { + return !!modifiersStyles[modifier]; + }).forEach(function (modifier) { + style = Object.assign({}, style, modifiersStyles[modifier]); + }); + } + + if (empty) { + return _react2.default.createElement('div', { role: 'gridcell', 'aria-disabled': true, className: className, style: style }); + } + + return _react2.default.createElement( + 'div', + { + className: className, + tabIndex: tabIndex || 0, + style: style, + role: 'gridcell', + 'aria-label': ariaLabel, + 'aria-disabled': ariaDisabled.toString(), + 'aria-selected': ariaSelected.toString(), + onClick: handleEvent(onClick, day, modifiers), + onKeyDown: handleEvent(onKeyDown, day, modifiers), + onMouseEnter: handleEvent(onMouseEnter, day, modifiers), + onMouseLeave: handleEvent(onMouseLeave, day, modifiers), + onTouchEnd: handleEvent(onTouchEnd, day, modifiers), + onTouchStart: handleEvent(onTouchStart, day, modifiers), + onFocus: handleEvent(onFocus, day, modifiers) + }, + children + ); + } + + Day.propTypes = { + classNames: _PropTypes2.default.shape({ + day: _PropTypes2.default.string.isRequired + }).isRequired, + + day: _PropTypes2.default.instanceOf(Date).isRequired, + children: _PropTypes2.default.node.isRequired, + + ariaDisabled: _PropTypes2.default.bool, + ariaLabel: _PropTypes2.default.string, + ariaSelected: _PropTypes2.default.bool, + empty: _PropTypes2.default.bool, + modifiers: _PropTypes2.default.object, + modifiersStyles: _PropTypes2.default.object, + onClick: _PropTypes2.default.func, + onKeyDown: _PropTypes2.default.func, + onMouseEnter: _PropTypes2.default.func, + onMouseLeave: _PropTypes2.default.func, + onTouchEnd: _PropTypes2.default.func, + onTouchStart: _PropTypes2.default.func, + onFocus: _PropTypes2.default.func, + tabIndex: _PropTypes2.default.number + }; + + Day.defaultProps = { + modifiers: {}, + empty: false + }; /***/ }, -/* 341 */ +/* 364 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.WeekdayPropTypes = undefined; + exports.default = Weekday; + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _PropTypes = __webpack_require__(351); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Weekday(_ref) { + var weekday = _ref.weekday, + className = _ref.className, + weekdaysLong = _ref.weekdaysLong, + weekdaysShort = _ref.weekdaysShort, + localeUtils = _ref.localeUtils, + locale = _ref.locale; + + var title = void 0; + if (weekdaysLong) { + title = weekdaysLong[weekday]; + } else { + title = localeUtils.formatWeekdayLong(weekday, locale); + } + var content = void 0; + if (weekdaysShort) { + content = weekdaysShort[weekday]; + } else { + content = localeUtils.formatWeekdayShort(weekday, locale); + } + + return _react2.default.createElement( + 'div', + { className: className, role: 'columnheader' }, + _react2.default.createElement( + 'abbr', + { title: title }, + content + ) + ); + } + + var WeekdayPropTypes = exports.WeekdayPropTypes = { + weekday: _PropTypes2.default.number, + className: _PropTypes2.default.string, + locale: _PropTypes2.default.string, + localeUtils: _PropTypes2.default.localeUtils, + + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string) + }; + + Weekday.propTypes = WeekdayPropTypes; + + +/***/ }, +/* 365 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.dayMatchesModifier = dayMatchesModifier; + exports.getModifiersForDay = getModifiersForDay; + + var _DateUtils = __webpack_require__(361); + + var _Helpers = __webpack_require__(360); + + /** + * Return `true` if a date matches the specified modifier. + * + * @export + * @param {Date} day + * @param {Any} modifier + * @return {Boolean} + */ + function dayMatchesModifier(day, modifier) { + if (!modifier) { + return false; + } + var arr = Array.isArray(modifier) ? modifier : [modifier]; + return arr.some(function (mod) { + if (!mod) { + return false; + } + if (mod instanceof Date) { + return (0, _DateUtils.isSameDay)(day, mod); + } + if ((0, _Helpers.isRangeOfDates)(mod)) { + return (0, _DateUtils.isDayInRange)(day, mod); + } + if (mod.after) { + return (0, _DateUtils.isDayAfter)(day, mod.after); + } + if (mod.before) { + return (0, _DateUtils.isDayBefore)(day, mod.before); + } + if (typeof mod === 'function') { + return mod(day); + } + return false; + }); + } + + /** + * Return the modifiers matching the given day for the given + * object of modifiers. + * + * @export + * @param {Date} day + * @param {Object} [modifiersObj={}] + * @return {Array} + */ + function getModifiersForDay(day) { + var modifiersObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + return Object.keys(modifiersObj).reduce(function (modifiers, modifierName) { + var value = modifiersObj[modifierName]; + if (dayMatchesModifier(day, value)) { + modifiers.push(modifierName); + } + return modifiers; + }, []); + } + + exports.default = { dayMatchesModifier: dayMatchesModifier, getModifiersForDay: getModifiersForDay }; + + +/***/ }, +/* 366 */ /***/ function(module, exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DATEPICKER = "pt-datepicker"; - exports.DATEPICKER_CAPTION = "pt-datepicker-caption"; - exports.DATEPICKER_CAPTION_CARET = "pt-datepicker-caption-caret"; - exports.DATEPICKER_CAPTION_SELECT = "pt-datepicker-caption-select"; - exports.DATEPICKER_DAY = "DayPicker-Day"; - exports.DATEPICKER_DAY_DISABLED = "DayPicker-Day--disabled"; - exports.DATEPICKER_DAY_OUTSIDE = "DayPicker-Day--outside"; - exports.DATEPICKER_DAY_SELECTED = "DayPicker-Day--selected"; - exports.DATEPICKER_FOOTER = "pt-datepicker-footer"; - exports.DATEPICKER_MONTH_SELECT = "pt-datepicker-month-select"; - exports.DATEPICKER_YEAR_SELECT = "pt-datepicker-year-select"; - exports.DATERANGEPICKER = "pt-daterangepicker"; - exports.DATERANGEPICKER_CONTIGUOUS = "pt-daterangepicker-contiguous"; - exports.DATERANGEPICKER_SINGLE_MONTH = "pt-daterangepicker-single-month"; - exports.DATERANGEPICKER_DAY_SELECTED_RANGE = "DayPicker-Day--selected-range"; - exports.DATERANGEPICKER_DAY_HOVERED_RANGE = "DayPicker-Day--hovered-range"; - exports.DATERANGEPICKER_SHORTCUTS = "pt-daterangepicker-shortcuts"; - exports.DATETIMEPICKER = "pt-datetimepicker"; - exports.TIMEPICKER = "pt-timepicker"; - exports.TIMEPICKER_ARROW_BUTTON = "pt-timepicker-arrow-button"; - exports.TIMEPICKER_ARROW_ROW = "pt-timepicker-arrow-row"; - exports.TIMEPICKER_DIVIDER_TEXT = "pt-timepicker-divider-text"; - exports.TIMEPICKER_HOUR = "pt-timepicker-hour"; - exports.TIMEPICKER_INPUT = "pt-timepicker-input"; - exports.TIMEPICKER_INPUT_ROW = "pt-timepicker-input-row"; - exports.TIMEPICKER_MILLISECOND = "pt-timepicker-millisecond"; - exports.TIMEPICKER_MINUTE = "pt-timepicker-minute"; - exports.TIMEPICKER_SECOND = "pt-timepicker-second"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = { + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40, + ENTER: 13, + SPACE: 32 + }; /***/ }, -/* 342 */ +/* 367 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var moment = __webpack_require__(343); + var moment = __webpack_require__(368); var DateRangeBoundary; (function (DateRangeBoundary) { DateRangeBoundary[DateRangeBoundary["START"] = 0] = "START"; @@ -43439,7 +45898,7 @@ /***/ }, -/* 343 */ +/* 368 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {//! moment.js @@ -45238,7 +47697,7 @@ module && module.exports) { try { oldLocale = globalLocale._abbr; - __webpack_require__(344)("./" + name); + __webpack_require__(369)("./" + name); // because defineLocale currently also sets the global locale, we // want to undo that for lazy loaded locales locale_locales__getSetGlobalLocale(oldLocale); @@ -47676,221 +50135,221 @@ return _moment; })); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(297)(module))) + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(303)(module))) /***/ }, -/* 344 */ +/* 369 */ /***/ function(module, exports, __webpack_require__) { var map = { - "./af": 345, - "./af.js": 345, - "./ar": 346, - "./ar-ly": 347, - "./ar-ly.js": 347, - "./ar-ma": 348, - "./ar-ma.js": 348, - "./ar-sa": 349, - "./ar-sa.js": 349, - "./ar-tn": 350, - "./ar-tn.js": 350, - "./ar.js": 346, - "./az": 351, - "./az.js": 351, - "./be": 352, - "./be.js": 352, - "./bg": 353, - "./bg.js": 353, - "./bn": 354, - "./bn.js": 354, - "./bo": 355, - "./bo.js": 355, - "./br": 356, - "./br.js": 356, - "./bs": 357, - "./bs.js": 357, - "./ca": 358, - "./ca.js": 358, - "./cs": 359, - "./cs.js": 359, - "./cv": 360, - "./cv.js": 360, - "./cy": 361, - "./cy.js": 361, - "./da": 362, - "./da.js": 362, - "./de": 363, - "./de-at": 364, - "./de-at.js": 364, - "./de.js": 363, - "./dv": 365, - "./dv.js": 365, - "./el": 366, - "./el.js": 366, - "./en-au": 367, - "./en-au.js": 367, - "./en-ca": 368, - "./en-ca.js": 368, - "./en-gb": 369, - "./en-gb.js": 369, - "./en-ie": 370, - "./en-ie.js": 370, - "./en-nz": 371, - "./en-nz.js": 371, - "./eo": 372, - "./eo.js": 372, - "./es": 373, - "./es-do": 374, - "./es-do.js": 374, - "./es.js": 373, - "./et": 375, - "./et.js": 375, - "./eu": 376, - "./eu.js": 376, - "./fa": 377, - "./fa.js": 377, - "./fi": 378, - "./fi.js": 378, - "./fo": 379, - "./fo.js": 379, - "./fr": 380, - "./fr-ca": 381, - "./fr-ca.js": 381, - "./fr-ch": 382, - "./fr-ch.js": 382, - "./fr.js": 380, - "./fy": 383, - "./fy.js": 383, - "./gd": 384, - "./gd.js": 384, - "./gl": 385, - "./gl.js": 385, - "./he": 386, - "./he.js": 386, - "./hi": 387, - "./hi.js": 387, - "./hr": 388, - "./hr.js": 388, - "./hu": 389, - "./hu.js": 389, - "./hy-am": 390, - "./hy-am.js": 390, - "./id": 391, - "./id.js": 391, - "./is": 392, - "./is.js": 392, - "./it": 393, - "./it.js": 393, - "./ja": 394, - "./ja.js": 394, - "./jv": 395, - "./jv.js": 395, - "./ka": 396, - "./ka.js": 396, - "./kk": 397, - "./kk.js": 397, - "./km": 398, - "./km.js": 398, - "./ko": 399, - "./ko.js": 399, - "./ky": 400, - "./ky.js": 400, - "./lb": 401, - "./lb.js": 401, - "./lo": 402, - "./lo.js": 402, - "./lt": 403, - "./lt.js": 403, - "./lv": 404, - "./lv.js": 404, - "./me": 405, - "./me.js": 405, - "./mi": 406, - "./mi.js": 406, - "./mk": 407, - "./mk.js": 407, - "./ml": 408, - "./ml.js": 408, - "./mr": 409, - "./mr.js": 409, - "./ms": 410, - "./ms-my": 411, - "./ms-my.js": 411, - "./ms.js": 410, - "./my": 412, - "./my.js": 412, - "./nb": 413, - "./nb.js": 413, - "./ne": 414, - "./ne.js": 414, - "./nl": 415, - "./nl.js": 415, - "./nn": 416, - "./nn.js": 416, - "./pa-in": 417, - "./pa-in.js": 417, - "./pl": 418, - "./pl.js": 418, - "./pt": 419, - "./pt-br": 420, - "./pt-br.js": 420, - "./pt.js": 419, - "./ro": 421, - "./ro.js": 421, - "./ru": 422, - "./ru.js": 422, - "./se": 423, - "./se.js": 423, - "./si": 424, - "./si.js": 424, - "./sk": 425, - "./sk.js": 425, - "./sl": 426, - "./sl.js": 426, - "./sq": 427, - "./sq.js": 427, - "./sr": 428, - "./sr-cyrl": 429, - "./sr-cyrl.js": 429, - "./sr.js": 428, - "./ss": 430, - "./ss.js": 430, - "./sv": 431, - "./sv.js": 431, - "./sw": 432, - "./sw.js": 432, - "./ta": 433, - "./ta.js": 433, - "./te": 434, - "./te.js": 434, - "./th": 435, - "./th.js": 435, - "./tl-ph": 436, - "./tl-ph.js": 436, - "./tlh": 437, - "./tlh.js": 437, - "./tr": 438, - "./tr.js": 438, - "./tzl": 439, - "./tzl.js": 439, - "./tzm": 440, - "./tzm-latn": 441, - "./tzm-latn.js": 441, - "./tzm.js": 440, - "./uk": 442, - "./uk.js": 442, - "./uz": 443, - "./uz.js": 443, - "./vi": 444, - "./vi.js": 444, - "./x-pseudo": 445, - "./x-pseudo.js": 445, - "./zh-cn": 446, - "./zh-cn.js": 446, - "./zh-hk": 447, - "./zh-hk.js": 447, - "./zh-tw": 448, - "./zh-tw.js": 448 + "./af": 370, + "./af.js": 370, + "./ar": 371, + "./ar-ly": 372, + "./ar-ly.js": 372, + "./ar-ma": 373, + "./ar-ma.js": 373, + "./ar-sa": 374, + "./ar-sa.js": 374, + "./ar-tn": 375, + "./ar-tn.js": 375, + "./ar.js": 371, + "./az": 376, + "./az.js": 376, + "./be": 377, + "./be.js": 377, + "./bg": 378, + "./bg.js": 378, + "./bn": 379, + "./bn.js": 379, + "./bo": 380, + "./bo.js": 380, + "./br": 381, + "./br.js": 381, + "./bs": 382, + "./bs.js": 382, + "./ca": 383, + "./ca.js": 383, + "./cs": 384, + "./cs.js": 384, + "./cv": 385, + "./cv.js": 385, + "./cy": 386, + "./cy.js": 386, + "./da": 387, + "./da.js": 387, + "./de": 388, + "./de-at": 389, + "./de-at.js": 389, + "./de.js": 388, + "./dv": 390, + "./dv.js": 390, + "./el": 391, + "./el.js": 391, + "./en-au": 392, + "./en-au.js": 392, + "./en-ca": 393, + "./en-ca.js": 393, + "./en-gb": 394, + "./en-gb.js": 394, + "./en-ie": 395, + "./en-ie.js": 395, + "./en-nz": 396, + "./en-nz.js": 396, + "./eo": 397, + "./eo.js": 397, + "./es": 398, + "./es-do": 399, + "./es-do.js": 399, + "./es.js": 398, + "./et": 400, + "./et.js": 400, + "./eu": 401, + "./eu.js": 401, + "./fa": 402, + "./fa.js": 402, + "./fi": 403, + "./fi.js": 403, + "./fo": 404, + "./fo.js": 404, + "./fr": 405, + "./fr-ca": 406, + "./fr-ca.js": 406, + "./fr-ch": 407, + "./fr-ch.js": 407, + "./fr.js": 405, + "./fy": 408, + "./fy.js": 408, + "./gd": 409, + "./gd.js": 409, + "./gl": 410, + "./gl.js": 410, + "./he": 411, + "./he.js": 411, + "./hi": 412, + "./hi.js": 412, + "./hr": 413, + "./hr.js": 413, + "./hu": 414, + "./hu.js": 414, + "./hy-am": 415, + "./hy-am.js": 415, + "./id": 416, + "./id.js": 416, + "./is": 417, + "./is.js": 417, + "./it": 418, + "./it.js": 418, + "./ja": 419, + "./ja.js": 419, + "./jv": 420, + "./jv.js": 420, + "./ka": 421, + "./ka.js": 421, + "./kk": 422, + "./kk.js": 422, + "./km": 423, + "./km.js": 423, + "./ko": 424, + "./ko.js": 424, + "./ky": 425, + "./ky.js": 425, + "./lb": 426, + "./lb.js": 426, + "./lo": 427, + "./lo.js": 427, + "./lt": 428, + "./lt.js": 428, + "./lv": 429, + "./lv.js": 429, + "./me": 430, + "./me.js": 430, + "./mi": 431, + "./mi.js": 431, + "./mk": 432, + "./mk.js": 432, + "./ml": 433, + "./ml.js": 433, + "./mr": 434, + "./mr.js": 434, + "./ms": 435, + "./ms-my": 436, + "./ms-my.js": 436, + "./ms.js": 435, + "./my": 437, + "./my.js": 437, + "./nb": 438, + "./nb.js": 438, + "./ne": 439, + "./ne.js": 439, + "./nl": 440, + "./nl.js": 440, + "./nn": 441, + "./nn.js": 441, + "./pa-in": 442, + "./pa-in.js": 442, + "./pl": 443, + "./pl.js": 443, + "./pt": 444, + "./pt-br": 445, + "./pt-br.js": 445, + "./pt.js": 444, + "./ro": 446, + "./ro.js": 446, + "./ru": 447, + "./ru.js": 447, + "./se": 448, + "./se.js": 448, + "./si": 449, + "./si.js": 449, + "./sk": 450, + "./sk.js": 450, + "./sl": 451, + "./sl.js": 451, + "./sq": 452, + "./sq.js": 452, + "./sr": 453, + "./sr-cyrl": 454, + "./sr-cyrl.js": 454, + "./sr.js": 453, + "./ss": 455, + "./ss.js": 455, + "./sv": 456, + "./sv.js": 456, + "./sw": 457, + "./sw.js": 457, + "./ta": 458, + "./ta.js": 458, + "./te": 459, + "./te.js": 459, + "./th": 460, + "./th.js": 460, + "./tl-ph": 461, + "./tl-ph.js": 461, + "./tlh": 462, + "./tlh.js": 462, + "./tr": 463, + "./tr.js": 463, + "./tzl": 464, + "./tzl.js": 464, + "./tzm": 465, + "./tzm-latn": 466, + "./tzm-latn.js": 466, + "./tzm.js": 465, + "./uk": 467, + "./uk.js": 467, + "./uz": 468, + "./uz.js": 468, + "./vi": 469, + "./vi.js": 469, + "./x-pseudo": 470, + "./x-pseudo.js": 470, + "./zh-cn": 471, + "./zh-cn.js": 471, + "./zh-hk": 472, + "./zh-hk.js": 472, + "./zh-tw": 473, + "./zh-tw.js": 473 }; function webpackContext(req) { return __webpack_require__(webpackContextResolve(req)); @@ -47903,11 +50362,11 @@ }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; - webpackContext.id = 344; + webpackContext.id = 369; /***/ }, -/* 345 */ +/* 370 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -47915,7 +50374,7 @@ //! author : Werner Mollentze : https://github.com/wernerm ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -47984,7 +50443,7 @@ })); /***/ }, -/* 346 */ +/* 371 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -47994,7 +50453,7 @@ //! author : forabi https://github.com/forabi ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48125,7 +50584,7 @@ })); /***/ }, -/* 347 */ +/* 372 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48133,7 +50592,7 @@ //! author : Ali Hmer: https://github.com/kikoanis ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48251,7 +50710,7 @@ })); /***/ }, -/* 348 */ +/* 373 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48260,7 +50719,7 @@ //! author : Abdel Said : https://github.com/abdelsaid ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48315,7 +50774,7 @@ })); /***/ }, -/* 349 */ +/* 374 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48323,7 +50782,7 @@ //! author : Suhail Alkowaileet : https://github.com/xsoh ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48423,7 +50882,7 @@ })); /***/ }, -/* 350 */ +/* 375 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48431,7 +50890,7 @@ //! author : Nader Toukabri : https://github.com/naderio ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48486,7 +50945,7 @@ })); /***/ }, -/* 351 */ +/* 376 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48494,7 +50953,7 @@ //! author : topchiyev : https://github.com/topchiyev ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48595,7 +51054,7 @@ })); /***/ }, -/* 352 */ +/* 377 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48605,7 +51064,7 @@ //! Author : Menelion Elensúle : https://github.com/Oire ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48733,7 +51192,7 @@ })); /***/ }, -/* 353 */ +/* 378 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48741,7 +51200,7 @@ //! author : Krasen Borisov : https://github.com/kraz ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48827,7 +51286,7 @@ })); /***/ }, -/* 354 */ +/* 379 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48835,7 +51294,7 @@ //! author : Kaushik Gandhi : https://github.com/kaushikgandhi ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -48950,7 +51409,7 @@ })); /***/ }, -/* 355 */ +/* 380 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -48958,7 +51417,7 @@ //! author : Thupten N. Chakrishar : https://github.com/vajradog ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49073,7 +51532,7 @@ })); /***/ }, -/* 356 */ +/* 381 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49081,7 +51540,7 @@ //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49185,7 +51644,7 @@ })); /***/ }, -/* 357 */ +/* 382 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49194,7 +51653,7 @@ //! based on (hr) translation by Bojan Marković ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49332,7 +51791,7 @@ })); /***/ }, -/* 358 */ +/* 383 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49340,7 +51799,7 @@ //! author : Juan G. Hurtado : https://github.com/juanghurtado ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49417,7 +51876,7 @@ })); /***/ }, -/* 359 */ +/* 384 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49425,7 +51884,7 @@ //! author : petrbela : https://github.com/petrbela ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49593,7 +52052,7 @@ })); /***/ }, -/* 360 */ +/* 385 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49601,7 +52060,7 @@ //! author : Anatoly Mironov : https://github.com/mirontoli ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49660,7 +52119,7 @@ })); /***/ }, -/* 361 */ +/* 386 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49669,7 +52128,7 @@ //! author : https://github.com/ryangreaves ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49745,7 +52204,7 @@ })); /***/ }, -/* 362 */ +/* 387 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49753,7 +52212,7 @@ //! author : Ulrik Nielsen : https://github.com/mrbase ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49809,7 +52268,7 @@ })); /***/ }, -/* 363 */ +/* 388 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49819,7 +52278,7 @@ //! author : Mikolaj Dadela : https://github.com/mik01aj ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49891,7 +52350,7 @@ })); /***/ }, -/* 364 */ +/* 389 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49902,7 +52361,7 @@ //! author : Mikolaj Dadela : https://github.com/mik01aj ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -49974,7 +52433,7 @@ })); /***/ }, -/* 365 */ +/* 390 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -49982,7 +52441,7 @@ //! author : Jawish Hameed : https://github.com/jawish ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50077,7 +52536,7 @@ })); /***/ }, -/* 366 */ +/* 391 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50085,7 +52544,7 @@ //! author : Aggelos Karalias : https://github.com/mehiel ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50179,7 +52638,7 @@ })); /***/ }, -/* 367 */ +/* 392 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50187,7 +52646,7 @@ //! author : Jared Morse : https://github.com/jarcoal ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50250,7 +52709,7 @@ })); /***/ }, -/* 368 */ +/* 393 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50258,7 +52717,7 @@ //! author : Jonathan Abourbih : https://github.com/jonbca ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50317,7 +52776,7 @@ })); /***/ }, -/* 369 */ +/* 394 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50325,7 +52784,7 @@ //! author : Chris Gedrim : https://github.com/chrisgedrim ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50388,7 +52847,7 @@ })); /***/ }, -/* 370 */ +/* 395 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50396,7 +52855,7 @@ //! author : Chris Cartlidge : https://github.com/chriscartlidge ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50459,7 +52918,7 @@ })); /***/ }, -/* 371 */ +/* 396 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50467,7 +52926,7 @@ //! author : Luke McGregor : https://github.com/lukemcgregor ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50530,7 +52989,7 @@ })); /***/ }, -/* 372 */ +/* 397 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50540,7 +52999,7 @@ //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni! ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50607,7 +53066,7 @@ })); /***/ }, -/* 373 */ +/* 398 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50615,7 +53074,7 @@ //! author : Julio Napurí : https://github.com/julionc ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50692,14 +53151,14 @@ })); /***/ }, -/* 374 */ +/* 399 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration //! locale : Spanish (Dominican Republic) [es-do] ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50776,7 +53235,7 @@ })); /***/ }, -/* 375 */ +/* 400 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50785,7 +53244,7 @@ //! improvements : Illimar Tambek : https://github.com/ragulka ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50860,7 +53319,7 @@ })); /***/ }, -/* 376 */ +/* 401 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50868,7 +53327,7 @@ //! author : Eneko Illarramendi : https://github.com/eillarra ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -50930,7 +53389,7 @@ })); /***/ }, -/* 377 */ +/* 402 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -50938,7 +53397,7 @@ //! author : Ebrahim Byagowi : https://github.com/ebraminio ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51040,7 +53499,7 @@ })); /***/ }, -/* 378 */ +/* 403 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51048,7 +53507,7 @@ //! author : Tarmo Aidantausta : https://github.com/bleadof ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51151,7 +53610,7 @@ })); /***/ }, -/* 379 */ +/* 404 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51159,7 +53618,7 @@ //! author : Ragnar Johannesen : https://github.com/ragnar123 ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51215,7 +53674,7 @@ })); /***/ }, -/* 380 */ +/* 405 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51223,7 +53682,7 @@ //! author : John Fischer : https://github.com/jfroffice ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51283,7 +53742,7 @@ })); /***/ }, -/* 381 */ +/* 406 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51291,7 +53750,7 @@ //! author : Jonathan Abourbih : https://github.com/jonbca ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51347,7 +53806,7 @@ })); /***/ }, -/* 382 */ +/* 407 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51355,7 +53814,7 @@ //! author : Gaspard Bucher : https://github.com/gaspard ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51415,7 +53874,7 @@ })); /***/ }, -/* 383 */ +/* 408 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51423,7 +53882,7 @@ //! author : Robin van der Vliet : https://github.com/robin0van0der0v ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51492,7 +53951,7 @@ })); /***/ }, -/* 384 */ +/* 409 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51500,7 +53959,7 @@ //! author : Jon Ashdown : https://github.com/jonashdown ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51572,7 +54031,7 @@ })); /***/ }, -/* 385 */ +/* 410 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51580,7 +54039,7 @@ //! author : Juan G. Hurtado : https://github.com/juanghurtado ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51653,7 +54112,7 @@ })); /***/ }, -/* 386 */ +/* 411 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51663,7 +54122,7 @@ //! author : Tal Ater : https://github.com/TalAter ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51756,7 +54215,7 @@ })); /***/ }, -/* 387 */ +/* 412 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51764,7 +54223,7 @@ //! author : Mayank Singhal : https://github.com/mayanksinghal ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -51884,7 +54343,7 @@ })); /***/ }, -/* 388 */ +/* 413 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -51892,7 +54351,7 @@ //! author : Bojan Marković : https://github.com/bmarkovic ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52033,7 +54492,7 @@ })); /***/ }, -/* 389 */ +/* 414 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52041,7 +54500,7 @@ //! author : Adam Brunner : https://github.com/adambrunner ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52146,7 +54605,7 @@ })); /***/ }, -/* 390 */ +/* 415 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52154,7 +54613,7 @@ //! author : Armendarabyan : https://github.com/armendarabyan ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52245,7 +54704,7 @@ })); /***/ }, -/* 391 */ +/* 416 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52254,7 +54713,7 @@ //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52332,7 +54791,7 @@ })); /***/ }, -/* 392 */ +/* 417 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52340,7 +54799,7 @@ //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52463,7 +54922,7 @@ })); /***/ }, -/* 393 */ +/* 418 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52472,7 +54931,7 @@ //! author: Mattia Larentis: https://github.com/nostalgiaz ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52537,7 +54996,7 @@ })); /***/ }, -/* 394 */ +/* 419 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52545,7 +55004,7 @@ //! author : LI Long : https://github.com/baryon ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52617,7 +55076,7 @@ })); /***/ }, -/* 395 */ +/* 420 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52626,7 +55085,7 @@ //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52704,7 +55163,7 @@ })); /***/ }, -/* 396 */ +/* 421 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52712,7 +55171,7 @@ //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52797,7 +55256,7 @@ })); /***/ }, -/* 397 */ +/* 422 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52805,7 +55264,7 @@ //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52888,7 +55347,7 @@ })); /***/ }, -/* 398 */ +/* 423 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52896,7 +55355,7 @@ //! author : Kruy Vanna : https://github.com/kruyvanna ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -52950,7 +55409,7 @@ })); /***/ }, -/* 399 */ +/* 424 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -52959,7 +55418,7 @@ //! author : Jeeeyul Lee ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53019,7 +55478,7 @@ })); /***/ }, -/* 400 */ +/* 425 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53027,7 +55486,7 @@ //! author : Chyngyz Arystan uulu : https://github.com/chyngyz ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53111,7 +55570,7 @@ })); /***/ }, -/* 401 */ +/* 426 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53120,7 +55579,7 @@ //! author : David Raison : https://github.com/kwisatz ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53252,7 +55711,7 @@ })); /***/ }, -/* 402 */ +/* 427 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53260,7 +55719,7 @@ //! author : Ryan Hart : https://github.com/ryanhart2 ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53326,7 +55785,7 @@ })); /***/ }, -/* 403 */ +/* 428 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53334,7 +55793,7 @@ //! author : Mindaugas Mozūras : https://github.com/mmozuras ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53447,7 +55906,7 @@ })); /***/ }, -/* 404 */ +/* 429 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53456,7 +55915,7 @@ //! author : Jānis Elmeris : https://github.com/JanisE ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53548,7 +56007,7 @@ })); /***/ }, -/* 405 */ +/* 430 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53556,7 +56015,7 @@ //! author : Miodrag Nikač : https://github.com/miodragnikac ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53663,7 +56122,7 @@ })); /***/ }, -/* 406 */ +/* 431 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53671,7 +56130,7 @@ //! author : John Corrigan : https://github.com/johnideal ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53731,7 +56190,7 @@ })); /***/ }, -/* 407 */ +/* 432 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53739,7 +56198,7 @@ //! author : Borislav Mickov : https://github.com/B0k0 ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53825,7 +56284,7 @@ })); /***/ }, -/* 408 */ +/* 433 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53833,7 +56292,7 @@ //! author : Floyd Pink : https://github.com/floydpink ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -53910,7 +56369,7 @@ })); /***/ }, -/* 409 */ +/* 434 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -53919,7 +56378,7 @@ //! author : Vivek Athalye : https://github.com/vnathalye ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54073,7 +56532,7 @@ })); /***/ }, -/* 410 */ +/* 435 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54081,7 +56540,7 @@ //! author : Weldan Jamili : https://github.com/weldan ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54159,7 +56618,7 @@ })); /***/ }, -/* 411 */ +/* 436 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54168,7 +56627,7 @@ //! author : Weldan Jamili : https://github.com/weldan ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54246,7 +56705,7 @@ })); /***/ }, -/* 412 */ +/* 437 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54256,7 +56715,7 @@ //! author : Tin Aung Lin : https://github.com/thanyawzinmin ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54345,7 +56804,7 @@ })); /***/ }, -/* 413 */ +/* 438 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54354,7 +56813,7 @@ //! Sigurd Gartmann : https://github.com/sigurdga ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54412,7 +56871,7 @@ })); /***/ }, -/* 414 */ +/* 439 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54420,7 +56879,7 @@ //! author : suvash : https://github.com/suvash ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54539,7 +56998,7 @@ })); /***/ }, -/* 415 */ +/* 440 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54548,7 +57007,7 @@ //! author : Jacob Middag : https://github.com/middagj ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54629,7 +57088,7 @@ })); /***/ }, -/* 416 */ +/* 441 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54637,7 +57096,7 @@ //! author : https://github.com/mechuwind ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54693,7 +57152,7 @@ })); /***/ }, -/* 417 */ +/* 442 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54701,7 +57160,7 @@ //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54821,7 +57280,7 @@ })); /***/ }, -/* 418 */ +/* 443 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54829,7 +57288,7 @@ //! author : Rafal Hirsz : https://github.com/evoL ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54930,7 +57389,7 @@ })); /***/ }, -/* 419 */ +/* 444 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -54938,7 +57397,7 @@ //! author : Jefferson : https://github.com/jalex79 ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -54999,7 +57458,7 @@ })); /***/ }, -/* 420 */ +/* 445 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55007,7 +57466,7 @@ //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55064,7 +57523,7 @@ })); /***/ }, -/* 421 */ +/* 446 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55073,7 +57532,7 @@ //! author : Valentin Agachi : https://github.com/avaly ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55143,7 +57602,7 @@ })); /***/ }, -/* 422 */ +/* 447 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55153,7 +57612,7 @@ //! author : Коренберг Марк : https://github.com/socketpair ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55330,7 +57789,7 @@ })); /***/ }, -/* 423 */ +/* 448 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55338,7 +57797,7 @@ //! authors : Bård Rolstad Henriksen : https://github.com/karamell ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55395,7 +57854,7 @@ })); /***/ }, -/* 424 */ +/* 449 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55403,7 +57862,7 @@ //! author : Sampath Sitinamaluwa : https://github.com/sampathsris ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55470,7 +57929,7 @@ })); /***/ }, -/* 425 */ +/* 450 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55479,7 +57938,7 @@ //! based on work of petrbela : https://github.com/petrbela ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55624,7 +58083,7 @@ })); /***/ }, -/* 426 */ +/* 451 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55632,7 +58091,7 @@ //! author : Robert Sedovšek : https://github.com/sedovsek ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55790,7 +58249,7 @@ })); /***/ }, -/* 427 */ +/* 452 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55800,7 +58259,7 @@ //! author : Oerd Cukalla : https://github.com/oerd ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55864,7 +58323,7 @@ })); /***/ }, -/* 428 */ +/* 453 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55872,7 +58331,7 @@ //! author : Milan Janačković : https://github.com/milan-j ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -55978,7 +58437,7 @@ })); /***/ }, -/* 429 */ +/* 454 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -55986,7 +58445,7 @@ //! author : Milan Janačković : https://github.com/milan-j ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56092,7 +58551,7 @@ })); /***/ }, -/* 430 */ +/* 455 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56100,7 +58559,7 @@ //! author : Nicolai Davies : https://github.com/nicolaidavies ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56185,7 +58644,7 @@ })); /***/ }, -/* 431 */ +/* 456 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56193,7 +58652,7 @@ //! author : Jens Alm : https://github.com/ulmus ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56258,7 +58717,7 @@ })); /***/ }, -/* 432 */ +/* 457 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56266,7 +58725,7 @@ //! author : Fahad Kassim : https://github.com/fadsel ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56321,7 +58780,7 @@ })); /***/ }, -/* 433 */ +/* 458 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56329,7 +58788,7 @@ //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56454,7 +58913,7 @@ })); /***/ }, -/* 434 */ +/* 459 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56462,7 +58921,7 @@ //! author : Krishna Chaitanya Thota : https://github.com/kcthota ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56547,7 +59006,7 @@ })); /***/ }, -/* 435 */ +/* 460 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56555,7 +59014,7 @@ //! author : Kridsada Thanabulpong : https://github.com/sirn ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56618,7 +59077,7 @@ })); /***/ }, -/* 436 */ +/* 461 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56626,7 +59085,7 @@ //! author : Dan Hagman : https://github.com/hagmandan ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56684,7 +59143,7 @@ })); /***/ }, -/* 437 */ +/* 462 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56692,7 +59151,7 @@ //! author : Dominika Kruk : https://github.com/amaranthrose ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56808,7 +59267,7 @@ })); /***/ }, -/* 438 */ +/* 463 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56817,7 +59276,7 @@ //! Burak Yiğit Kaya: https://github.com/BYK ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56902,7 +59361,7 @@ })); /***/ }, -/* 439 */ +/* 464 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -56911,7 +59370,7 @@ //! author : Iustì Canun ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -56997,7 +59456,7 @@ })); /***/ }, -/* 440 */ +/* 465 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57005,7 +59464,7 @@ //! author : Abdel Said : https://github.com/abdelsaid ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57059,7 +59518,7 @@ })); /***/ }, -/* 441 */ +/* 466 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57067,7 +59526,7 @@ //! author : Abdel Said : https://github.com/abdelsaid ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57121,7 +59580,7 @@ })); /***/ }, -/* 442 */ +/* 467 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57130,7 +59589,7 @@ //! Author : Menelion Elensúle : https://github.com/Oire ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57271,7 +59730,7 @@ })); /***/ }, -/* 443 */ +/* 468 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57279,7 +59738,7 @@ //! author : Sardor Muminov : https://github.com/muminoff ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57333,7 +59792,7 @@ })); /***/ }, -/* 444 */ +/* 469 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57341,7 +59800,7 @@ //! author : Bang Nguyen : https://github.com/bangnk ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57416,7 +59875,7 @@ })); /***/ }, -/* 445 */ +/* 470 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57424,7 +59883,7 @@ //! author : Andrew Hood : https://github.com/andrewhood125 ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57488,7 +59947,7 @@ })); /***/ }, -/* 446 */ +/* 471 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57497,7 +59956,7 @@ //! author : Zeno Zeng : https://github.com/zenozeng ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57619,7 +60078,7 @@ })); /***/ }, -/* 447 */ +/* 472 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57629,7 +60088,7 @@ //! author : Konstantin : https://github.com/skfd ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57728,7 +60187,7 @@ })); /***/ }, -/* 448 */ +/* 473 */ /***/ function(module, exports, __webpack_require__) { //! moment.js locale configuration @@ -57737,7 +60196,7 @@ //! author : Chris Lam : https://github.com/hehachris ;(function (global, factory) { - true ? factory(__webpack_require__(343)) : + true ? factory(__webpack_require__(368)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; @@ -57836,21 +60295,21 @@ })); /***/ }, -/* 449 */ +/* 474 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); - var classNames = __webpack_require__(450); - var moment = __webpack_require__(343); + var tslib_1 = __webpack_require__(345); + var classNames = __webpack_require__(475); + var moment = __webpack_require__(368); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var dateUtils_1 = __webpack_require__(342); - var errors_1 = __webpack_require__(451); - var datePicker_1 = __webpack_require__(452); - var datePickerCore_1 = __webpack_require__(456); - var dateTimePicker_1 = __webpack_require__(457); + var dateUtils_1 = __webpack_require__(367); + var errors_1 = __webpack_require__(476); + var datePicker_1 = __webpack_require__(477); + var datePickerCore_1 = __webpack_require__(480); + var dateTimePicker_1 = __webpack_require__(481); var DateInput = (function (_super) { tslib_1.__extends(DateInput, _super); function DateInput(props, context) { @@ -58028,7 +60487,7 @@ /***/ }, -/* 450 */ +/* 475 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -58082,7 +60541,7 @@ /***/ }, -/* 451 */ +/* 476 */ /***/ function(module, exports) { "use strict"; @@ -58104,29 +60563,29 @@ /***/ }, -/* 452 */ +/* 477 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(450); + var classNames = __webpack_require__(475); var React = __webpack_require__(3); - var ReactDayPicker = __webpack_require__(453); - var Classes = __webpack_require__(341); - var DateUtils = __webpack_require__(342); - var Errors = __webpack_require__(451); - var datePickerCaption_1 = __webpack_require__(454); - var datePickerCore_1 = __webpack_require__(456); + var ReactDayPicker = __webpack_require__(348); + var Classes = __webpack_require__(347); + var DateUtils = __webpack_require__(367); + var Errors = __webpack_require__(476); + var datePickerCaption_1 = __webpack_require__(478); + var datePickerCore_1 = __webpack_require__(480); var DatePicker = (function (_super) { tslib_1.__extends(DatePicker, _super); function DatePicker(props, context) { var _this = _super.call(this, props, context) || this; _this.ignoreNextMonthChange = false; _this.disabledDays = function (day) { return !DateUtils.isDayInRange(day, [_this.props.minDate, _this.props.maxDate]); }; - _this.selectedDays = function (day) { return DateUtils.areSameDay(_this.state.value, day); }; - _this.handleDayClick = function (_e, day, modifiers) { + _this.renderCaption = function (props) { return (React.createElement(datePickerCaption_1.DatePickerCaption, tslib_1.__assign({}, props, { maxDate: _this.props.maxDate, minDate: _this.props.minDate, onMonthChange: _this.handleMonthSelectChange, onYearChange: _this.handleYearSelectChange }))); }; + _this.handleDayClick = function (day, modifiers) { var newValue = day; if (_this.props.canClearSelection && modifiers.selected) { newValue = null; @@ -58250,7 +60709,7 @@ var _a = this.props, className = _a.className, locale = _a.locale, localeUtils = _a.localeUtils, maxDate = _a.maxDate, minDate = _a.minDate, showActionsBar = _a.showActionsBar; var _b = this.state, displayMonth = _b.displayMonth, displayYear = _b.displayYear; return (React.createElement("div", { className: classNames(Classes.DATEPICKER, className) }, - React.createElement(ReactDayPicker, { canChangeMonth: true, captionElement: this.renderCaption(), disabledDays: this.disabledDays, enableOutsideDays: true, fromMonth: minDate, initialMonth: new Date(displayYear, displayMonth), locale: locale, localeUtils: localeUtils, modifiers: this.props.modifiers, onDayClick: this.handleDayClick, onMonthChange: this.handleMonthChange, selectedDays: this.selectedDays, toMonth: maxDate }), + React.createElement(ReactDayPicker, { canChangeMonth: true, captionElement: this.renderCaption, disabledDays: this.disabledDays, enableOutsideDays: true, fromMonth: minDate, locale: locale, localeUtils: localeUtils, modifiers: this.props.modifiers, month: new Date(displayYear, displayMonth), onDayClick: this.handleDayClick, onMonthChange: this.handleMonthChange, selectedDays: this.state.value, toMonth: maxDate }), showActionsBar ? this.renderOptionsBar() : null)); }; DatePicker.prototype.componentWillReceiveProps = function (nextProps) { @@ -58283,10 +60742,6 @@ throw new Error(Errors.DATEPICKER_VALUE_INVALID); } }; - DatePicker.prototype.renderCaption = function () { - var _a = this.props, maxDate = _a.maxDate, minDate = _a.minDate; - return (React.createElement(datePickerCaption_1.DatePickerCaption, { maxDate: maxDate, minDate: minDate, onMonthChange: this.handleMonthSelectChange, onYearChange: this.handleYearSelectChange })); - }; DatePicker.prototype.renderOptionsBar = function () { return (React.createElement("div", { className: Classes.DATEPICKER_FOOTER }, React.createElement(core_1.Button, { className: "pt-minimal pt-datepicker-footer-button", onClick: this.handleTodayClick, text: "Today" }), @@ -58328,24 +60783,17 @@ /***/ }, -/* 453 */ -/***/ function(module, exports, __webpack_require__) { - - !function(e,t){ true?module.exports=t(__webpack_require__(3)):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.DayPicker=t(require("react")):e.DayPicker=t(e.React)}(this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){var n=o(10),r=o(3),a=o(4),s=o(7),i=o(6),l=o(2);e.exports=n["default"]||n,e.exports.DateUtils=r["default"]||r,e.exports.LocaleUtils=a["default"]||a,e.exports.WeekdayPropTypes=s.WeekdayPropTypes,e.exports.NavbarPropTypes=i.NavbarPropTypes,e.exports.PropTypes=l},function(t,o){t.exports=e},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1);t["default"]={localeUtils:n.PropTypes.shape({formatMonthTitle:n.PropTypes.func,formatWeekdayShort:n.PropTypes.func,formatWeekdayLong:n.PropTypes.func,getFirstDayOfWeek:n.PropTypes.func})}},function(e,t){"use strict";function o(e){return new Date(e.getTime())}function n(e,t){var n=o(e);return n.setMonth(e.getMonth()+t),n}function r(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function a(e){var t=new Date;return t.setHours(0,0,0,0),e=t}function i(e,t,n){var r=o(e),a=o(t),s=o(n);return r.setHours(0,0,0,0),a.setHours(0,0,0,0),s.setHours(0,0,0,0),a1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},o=t.from,n=t.to;return o?o&&n&&r(o,n)&&r(e,o)?(o=null,n=null):n&&e1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce(function(o,n){var r=t[n];return r(e)&&o.push(n),o},[])}function c(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}function p(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.getFirstDayOfWeek)(),o=arguments[2],n=s(e),r=[],a=[],i=[],l=1;l<=n;l+=1)r.push(new Date(e.getFullYear(),e.getMonth(),l,12));r.forEach(function(e){a.length>0&&e.getDay()===t&&(i.push(a),a=[]),a.push(e),r.indexOf(e)===r.length-1&&i.push(a)});for(var u=i[0],c=7-u.length;c>0;c-=1){var p=(0,y.clone)(u[0]);p.setDate(u[0].getDate()-1),u.unshift(p)}for(var f=i[i.length-1],h=f.length;h<7;h+=1){var v=(0,y.clone)(f[f.length-1]);v.setDate(f[f.length-1].getDate()+1),f.push(v)}if(o&&i.length<6)for(var P=void 0,g=i.length;g<6;g+=1){P=i[i.length-1];for(var D=P[P.length-1],k=[],M=0;M<7;M+=1){var m=(0,y.clone)(D);m.setDate(D.getDate()+M+1),k.push(m)}i.push(k)}return i}function f(e){var t=(0,y.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t}Object.defineProperty(t,"__esModule",{value:!0});var h=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}function s(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var o=this;this.allowMonth(e)&&this.setState({currentMonth:b.startOfMonth(e)},function(){t&&t(),o.props.onMonthChange&&o.props.onMonthChange(o.state.currentMonth)})}},{key:"showNextMonth",value:function(e){if(this.allowNextMonth()){var t=this.props.pagedNavigation?this.props.numberOfMonths:1,o=N.addMonths(this.state.currentMonth,t);this.showMonth(o,e)}}},{key:"showPreviousMonth",value:function(e){if(this.allowPreviousMonth()){var t=this.props.pagedNavigation?this.props.numberOfMonths:1,o=N.addMonths(this.state.currentMonth,-t);this.showMonth(o,e)}}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=N.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=N.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focusFirstDayOfMonth",value:function(){this.getDayNodes()[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=this.getDayNodes();e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,o=this.getDayNodes(),n=[].concat(s(o)).indexOf(e);0===n?this.showPreviousMonth(function(){return t.focusLastDayOfMonth()}):o[n-1].focus()}},{key:"focusNextDay",value:function(e){var t=this,o=this.getDayNodes(),n=[].concat(s(o)).indexOf(e);n===o.length-1?this.showNextMonth(function(){return t.focusFirstDayOfMonth()}):o[n+1].focus()}},{key:"focusNextWeek",value:function(e){var t=this,o=this.getDayNodes(),n=[].concat(s(o)).indexOf(e),r=n>o.length-8;r?this.showNextMonth(function(){var e=o.length-n,r=7-e;t.getDayNodes()[r].focus()}):o[n+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,o=this.getDayNodes(),n=[].concat(s(o)).indexOf(e),r=n<=6;r?this.showPreviousMonth(function(){var e=t.getDayNodes(),o=e.length-7,r=o+n;e[r].focus()}):o[n-7].focus()}},{key:"handleKeyDown",value:function(e){switch(e.persist(),e.keyCode){case W["default"].LEFT:this.showPreviousMonth();break;case W["default"].RIGHT:this.showNextMonth();break;case W["default"].UP:this.showPreviousYear();break;case W["default"].DOWN:this.showNextYear()}this.props.onKeyDown&&this.props.onKeyDown(e)}},{key:"handleDayKeyDown",value:function(e,t,o){switch(e.persist(),e.keyCode){case W["default"].LEFT:b.cancelEvent(e),this.focusPreviousDay(e.target);break;case W["default"].RIGHT:b.cancelEvent(e),this.focusNextDay(e.target);break;case W["default"].UP:b.cancelEvent(e),this.focusPreviousWeek(e.target);break;case W["default"].DOWN:b.cancelEvent(e),this.focusNextWeek(e.target);break;case W["default"].ENTER:case W["default"].SPACE:b.cancelEvent(e),this.props.onDayClick&&this.handleDayClick(e,t,o)}this.props.onDayKeyDown&&this.props.onDayKeyDown(e,t,o)}},{key:"handleDayClick",value:function(e,t,o){e.persist(),o.outside&&this.handleOutsideDayClick(t),this.props.onDayClick(e,t,o)}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,o=this.props.numberOfMonths,n=b.getMonthsDiff(t,e);n>0&&n>=o?this.showNextMonth():n<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.locale,o=e.localeUtils,n=e.canChangeMonth,r=e.navbarElement,s=a(e,["locale","localeUtils","canChangeMonth","navbarElement"]);if(!n)return null;var i={className:"DayPicker-NavBar",nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:s.dir,locale:t,localeUtils:o};return h["default"].cloneElement(r,i)}},{key:"renderDayInMonth",value:function(e,t){var o=[];N.isSameDay(e,new Date)&&o.push("today"),e.getMonth()!==t.getMonth()&&o.push("outside"),o=[].concat(s(o),s(b.getModifiersForDay(e,b.getModifiersFromProps(this.props))));var n=e.getMonth()!==t.getMonth(),r=null;this.props.onDayClick&&!n&&(r=-1,1===e.getDate()&&(r=this.props.tabIndex));var a=""+e.getFullYear()+e.getMonth()+e.getDate();return h["default"].createElement(M["default"],{key:""+(n?"outside-":"")+a,day:e,modifiers:o,empty:n&&!this.props.enableOutsideDays&&!this.props.fixedWeeks,tabIndex:r,ariaLabel:this.props.localeUtils.formatDay(e,this.props.locale),ariaDisabled:n||o.indexOf("disabled")>-1,ariaSelected:o.indexOf("selected")>-1,onMouseEnter:this.props.onDayMouseEnter,onMouseLeave:this.props.onDayMouseLeave,onKeyDown:this.handleDayKeyDown,onTouchStart:this.props.onDayTouchStart,onTouchEnd:this.props.onDayTouchEnd,onFocus:this.props.onDayFocus,onClick:this.props.onDayClick?this.handleDayClick:void 0},this.props.renderDay(e))}},{key:"renderMonths",value:function(){for(var e=[],t=b.getFirstDayOfWeekFromProps(this.props),o=0;o1&&e.fromMonth){var n=b.getMonthsDiff(e.fromMonth,o);o=N.addMonths(e.fromMonth,Math.floor(n/e.numberOfMonths)*e.numberOfMonths)}return{currentMonth:o}},this.dayPicker=null};t["default"]=F},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=e.month,o=e.months,n=e.weekdaysLong,r=e.weekdaysShort,a=e.locale,i=e.localeUtils,l=e.captionElement,u=e.onCaptionClick,f=e.children,h=e.firstDayOfWeek,y=e.className,d=e.wrapperClassName,v=e.weekClassName,P=e.weekdayElement,g=e.fixedWeeks,D={date:t,months:o,localeUtils:i,locale:a,onClick:u?function(e){return u(e,t)}:void 0},k=(0,p.getWeekArray)(t,h,g);return s["default"].createElement("div",{className:y},s["default"].cloneElement(l,D),s["default"].createElement(c["default"],{weekdaysShort:r,weekdaysLong:n,firstDayOfWeek:h,locale:a,localeUtils:i,weekdayElement:P}),s["default"].createElement("div",{className:d,role:"grid"},k.map(function(e,o){return s["default"].createElement("div",{key:o,className:v,role:"gridcell"},e.map(function(e){return f(e,t)}))})))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var a=o(1),s=n(a),i=o(2),l=n(i),u=o(12),c=n(u),p=o(5);r.propTypes={month:a.PropTypes.instanceOf(Date).isRequired,months:s["default"].PropTypes.arrayOf(s["default"].PropTypes.string),captionElement:a.PropTypes.node.isRequired,firstDayOfWeek:a.PropTypes.number.isRequired,weekdaysLong:a.PropTypes.arrayOf(a.PropTypes.string),weekdaysShort:a.PropTypes.arrayOf(a.PropTypes.string),locale:a.PropTypes.string.isRequired,localeUtils:l["default"].localeUtils.isRequired,onCaptionClick:a.PropTypes.func,children:a.PropTypes.func.isRequired,className:a.PropTypes.string,wrapperClassName:a.PropTypes.string,weekClassName:a.PropTypes.string,weekdayElement:a.PropTypes.element,fixedWeeks:a.PropTypes.bool}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){for(var t=e.firstDayOfWeek,o=e.weekdaysLong,n=e.weekdaysShort,r=e.locale,a=e.localeUtils,i=e.weekdayElement,l=[],u=0;u<7;u+=1){var c=(u+t)%7,p={key:u,className:"DayPicker-Weekday",weekday:c,weekdaysLong:o,weekdaysShort:n,localeUtils:a,locale:r},f=s["default"].cloneElement(i,p);l.push(f)}return s["default"].createElement("div",{className:"DayPicker-Weekdays",role:"rowgroup"},s["default"].createElement("div",{className:"DayPicker-WeekdaysRow",role:"columnheader"},l))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var a=o(1),s=n(a),i=o(2),l=n(i);r.propTypes={firstDayOfWeek:a.PropTypes.number.isRequired,weekdaysLong:a.PropTypes.arrayOf(a.PropTypes.string),weekdaysShort:a.PropTypes.arrayOf(a.PropTypes.string),locale:a.PropTypes.string.isRequired,localeUtils:l["default"].localeUtils.isRequired,weekdayElement:a.PropTypes.element}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={LEFT:37,UP:38,RIGHT:39,DOWN:40,ENTER:13,SPACE:32}}])}); - - -/***/ }, -/* 454 */ +/* 478 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(450); + var classNames = __webpack_require__(475); var React = __webpack_require__(3); - var Classes = __webpack_require__(341); - var Utils = __webpack_require__(455); + var Classes = __webpack_require__(347); + var Utils = __webpack_require__(479); var DatePickerCaption = (function (_super) { tslib_1.__extends(DatePickerCaption, _super); function DatePickerCaption() { @@ -58415,7 +60863,7 @@ /***/ }, -/* 455 */ +/* 479 */ /***/ function(module, exports) { "use strict"; @@ -58447,7 +60895,7 @@ /***/ }, -/* 456 */ +/* 480 */ /***/ function(module, exports) { "use strict"; @@ -58499,19 +60947,19 @@ /***/ }, -/* 457 */ +/* 481 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); - var classNames = __webpack_require__(450); + var tslib_1 = __webpack_require__(345); + var classNames = __webpack_require__(475); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var Classes = __webpack_require__(341); - var DateUtils = __webpack_require__(342); - var datePicker_1 = __webpack_require__(452); - var timePicker_1 = __webpack_require__(458); + var Classes = __webpack_require__(347); + var DateUtils = __webpack_require__(367); + var datePicker_1 = __webpack_require__(477); + var timePicker_1 = __webpack_require__(482); var DateTimePicker = (function (_super) { tslib_1.__extends(DateTimePicker, _super); function DateTimePicker(props, context) { @@ -58562,18 +61010,18 @@ /***/ }, -/* 458 */ +/* 482 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(450); + var classNames = __webpack_require__(475); var React = __webpack_require__(3); - var Classes = __webpack_require__(341); - var DateUtils = __webpack_require__(342); - var Utils = __webpack_require__(455); + var Classes = __webpack_require__(347); + var DateUtils = __webpack_require__(367); + var Utils = __webpack_require__(479); var TimePickerPrecision; (function (TimePickerPrecision) { TimePickerPrecision[TimePickerPrecision["MINUTE"] = 0] = "MINUTE"; @@ -58850,20 +61298,20 @@ /***/ }, -/* 459 */ +/* 483 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); - var classNames = __webpack_require__(450); - var moment = __webpack_require__(343); + var tslib_1 = __webpack_require__(345); + var classNames = __webpack_require__(475); + var moment = __webpack_require__(368); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var dateUtils_1 = __webpack_require__(342); - var Errors = __webpack_require__(451); - var datePickerCore_1 = __webpack_require__(456); - var dateRangePicker_1 = __webpack_require__(460); + var dateUtils_1 = __webpack_require__(367); + var Errors = __webpack_require__(476); + var datePickerCore_1 = __webpack_require__(480); + var dateRangePicker_1 = __webpack_require__(484); ; ; var DateRangeInput = (function (_super) { @@ -59440,24 +61888,24 @@ /***/ }, -/* 460 */ +/* 484 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(450); + var classNames = __webpack_require__(475); var React = __webpack_require__(3); - var DayPicker = __webpack_require__(453); - var DateClasses = __webpack_require__(341); - var DateUtils = __webpack_require__(342); - var dateUtils_1 = __webpack_require__(342); - var Errors = __webpack_require__(451); - var monthAndYear_1 = __webpack_require__(461); - var datePickerCaption_1 = __webpack_require__(454); - var datePickerCore_1 = __webpack_require__(456); - var dateRangeSelectionStrategy_1 = __webpack_require__(462); + var DayPicker = __webpack_require__(348); + var DateClasses = __webpack_require__(347); + var DateUtils = __webpack_require__(367); + var dateUtils_1 = __webpack_require__(367); + var Errors = __webpack_require__(476); + var monthAndYear_1 = __webpack_require__(485); + var datePickerCaption_1 = __webpack_require__(478); + var datePickerCore_1 = __webpack_require__(480); + var dateRangeSelectionStrategy_1 = __webpack_require__(486); var DateRangePicker = (function (_super) { tslib_1.__extends(DateRangePicker, _super); function DateRangePicker(props, context) { @@ -59495,14 +61943,10 @@ return DateUtils.areSameDay(hoverValue[1], day); }, _a); - _this.states = { - disabledDays: function (day) { return !DateUtils.isDayInRange(day, [_this.props.minDate, _this.props.maxDate]); }, - selectedDays: function (day) { - var _a = _this.state.value, start = _a[0], end = _a[1]; - return DateUtils.areSameDay(start, day) || DateUtils.areSameDay(end, day); - }, - }; - _this.handleDayMouseEnter = function (_e, day, modifiers) { + _this.renderSingleCaption = function (captionProps) { return (React.createElement(datePickerCaption_1.DatePickerCaption, tslib_1.__assign({}, captionProps, { maxDate: _this.props.maxDate, minDate: _this.props.minDate, onMonthChange: _this.handleLeftMonthSelectChange, onYearChange: _this.handleLeftYearSelectChange }))); }; + _this.renderLeftCaption = function (captionProps) { return (React.createElement(datePickerCaption_1.DatePickerCaption, tslib_1.__assign({}, captionProps, { maxDate: DateUtils.getDatePreviousMonth(_this.props.maxDate), minDate: _this.props.minDate, onMonthChange: _this.handleLeftMonthSelectChange, onYearChange: _this.handleLeftYearSelectChange }))); }; + _this.renderRightCaption = function (captionProps) { return (React.createElement(datePickerCaption_1.DatePickerCaption, tslib_1.__assign({}, captionProps, { maxDate: _this.props.maxDate, minDate: DateUtils.getDateNextMonth(_this.props.minDate), onMonthChange: _this.handleRightMonthSelectChange, onYearChange: _this.handleRightYearSelectChange }))); }; + _this.handleDayMouseEnter = function (day, modifiers) { if (modifiers.disabled) { return; } @@ -59510,20 +61954,20 @@ _this.setState({ hoverValue: dateRange }); core_1.Utils.safeInvoke(_this.props.onHoverChange, dateRange, day, boundary); }; - _this.handleDayMouseLeave = function (_e, day, modifiers) { + _this.handleDayMouseLeave = function (day, modifiers) { if (modifiers.disabled) { return; } _this.setState({ hoverValue: undefined }); core_1.Utils.safeInvoke(_this.props.onHoverChange, undefined, day, undefined); }; - _this.handleDayClick = function (e, day, modifiers) { + _this.handleDayClick = function (day, modifiers) { if (modifiers.disabled) { _this.forceUpdate(); return; } var nextValue = dateRangeSelectionStrategy_1.DateRangeSelectionStrategy.getNextState(_this.state.value, day, _this.props.allowSingleDayRange, _this.props.boundaryToModify).dateRange; - _this.handleDayMouseEnter(e, day, modifiers); + _this.handleDayMouseEnter(day, modifiers); _this.handleNextState(nextValue); }; _this.handleLeftMonthChange = function (newDate) { @@ -59622,23 +62066,33 @@ var _a = this.props, className = _a.className, contiguousCalendarMonths = _a.contiguousCalendarMonths, locale = _a.locale, localeUtils = _a.localeUtils, maxDate = _a.maxDate, minDate = _a.minDate; var isShowingOneMonth = DateUtils.areSameMonth(this.props.minDate, this.props.maxDate); var _b = this.state, leftView = _b.leftView, rightView = _b.rightView; - var _c = this.states, disabledDays = _c.disabledDays, selectedDays = _c.selectedDays; + var disabledDays = [{ before: this.props.minDate }, { after: this.props.maxDate }]; + var dayPickerBaseProps = { + disabledDays: disabledDays, + locale: locale, + localeUtils: localeUtils, + modifiers: modifiers, + onDayClick: this.handleDayClick, + onDayMouseEnter: this.handleDayMouseEnter, + onDayMouseLeave: this.handleDayMouseLeave, + selectedDays: this.state.value, + }; if (contiguousCalendarMonths || isShowingOneMonth) { - var classes = classNames(DateClasses.DATEPICKER, DateClasses.DATERANGEPICKER, className, (_d = {}, - _d[DateClasses.DATERANGEPICKER_CONTIGUOUS] = contiguousCalendarMonths, - _d[DateClasses.DATERANGEPICKER_SINGLE_MONTH] = isShowingOneMonth, - _d)); + var classes = classNames(DateClasses.DATEPICKER, DateClasses.DATERANGEPICKER, className, (_c = {}, + _c[DateClasses.DATERANGEPICKER_CONTIGUOUS] = contiguousCalendarMonths, + _c[DateClasses.DATERANGEPICKER_SINGLE_MONTH] = isShowingOneMonth, + _c)); return (React.createElement("div", { className: classes }, this.maybeRenderShortcuts(), - React.createElement(DayPicker, { captionElement: this.renderSingleCaption(), disabledDays: disabledDays, fromMonth: minDate, initialMonth: leftView.getFullDate(), locale: locale, localeUtils: localeUtils, modifiers: modifiers, numberOfMonths: isShowingOneMonth ? 1 : 2, onDayClick: this.handleDayClick, onDayMouseEnter: this.handleDayMouseEnter, onDayMouseLeave: this.handleDayMouseLeave, onMonthChange: this.handleLeftMonthChange, selectedDays: selectedDays, toMonth: maxDate }))); + React.createElement(DayPicker, tslib_1.__assign({}, dayPickerBaseProps, { captionElement: this.renderSingleCaption, fromMonth: minDate, month: leftView.getFullDate(), numberOfMonths: isShowingOneMonth ? 1 : 2, onMonthChange: this.handleLeftMonthChange, toMonth: maxDate })))); } else { return (React.createElement("div", { className: classNames(DateClasses.DATEPICKER, DateClasses.DATERANGEPICKER, className) }, this.maybeRenderShortcuts(), - React.createElement(DayPicker, { canChangeMonth: true, captionElement: this.renderLeftCaption(), disabledDays: disabledDays, fromMonth: minDate, initialMonth: leftView.getFullDate(), locale: locale, localeUtils: localeUtils, modifiers: modifiers, onDayClick: this.handleDayClick, onMonthChange: this.handleLeftMonthChange, selectedDays: selectedDays, toMonth: DateUtils.getDatePreviousMonth(maxDate) }), - React.createElement(DayPicker, { canChangeMonth: true, captionElement: this.renderRightCaption(), disabledDays: disabledDays, fromMonth: DateUtils.getDateNextMonth(minDate), initialMonth: rightView.getFullDate(), locale: locale, localeUtils: localeUtils, modifiers: modifiers, onDayClick: this.handleDayClick, onMonthChange: this.handleRightMonthChange, selectedDays: selectedDays, toMonth: maxDate }))); + React.createElement(DayPicker, tslib_1.__assign({}, dayPickerBaseProps, { canChangeMonth: true, captionElement: this.renderLeftCaption, fromMonth: minDate, month: leftView.getFullDate(), onMonthChange: this.handleLeftMonthChange, toMonth: DateUtils.getDatePreviousMonth(maxDate) })), + React.createElement(DayPicker, tslib_1.__assign({}, dayPickerBaseProps, { canChangeMonth: true, captionElement: this.renderRightCaption, fromMonth: DateUtils.getDateNextMonth(minDate), month: rightView.getFullDate(), onMonthChange: this.handleRightMonthChange, toMonth: maxDate })))); } - var _d; + var _c; }; DateRangePicker.prototype.componentWillReceiveProps = function (nextProps) { _super.prototype.componentWillReceiveProps.call(this, nextProps); @@ -59681,18 +62135,6 @@ var shortcutElements = shortcuts.map(function (s, i) { return (React.createElement(core_1.MenuItem, { className: core_1.Classes.POPOVER_DISMISS_OVERRIDE, key: i, onClick: _this.getShorcutClickHandler(s.dateRange), text: s.label })); }); return (React.createElement(core_1.Menu, { className: DateClasses.DATERANGEPICKER_SHORTCUTS }, shortcutElements)); }; - DateRangePicker.prototype.renderSingleCaption = function () { - var _a = this.props, maxDate = _a.maxDate, minDate = _a.minDate; - return (React.createElement(datePickerCaption_1.DatePickerCaption, { maxDate: maxDate, minDate: minDate, onMonthChange: this.handleLeftMonthSelectChange, onYearChange: this.handleLeftYearSelectChange })); - }; - DateRangePicker.prototype.renderLeftCaption = function () { - var _a = this.props, maxDate = _a.maxDate, minDate = _a.minDate; - return (React.createElement(datePickerCaption_1.DatePickerCaption, { maxDate: DateUtils.getDatePreviousMonth(maxDate), minDate: minDate, onMonthChange: this.handleLeftMonthSelectChange, onYearChange: this.handleLeftYearSelectChange })); - }; - DateRangePicker.prototype.renderRightCaption = function () { - var _a = this.props, maxDate = _a.maxDate, minDate = _a.minDate; - return (React.createElement(datePickerCaption_1.DatePickerCaption, { maxDate: maxDate, minDate: DateUtils.getDateNextMonth(minDate), onMonthChange: this.handleRightMonthSelectChange, onYearChange: this.handleRightYearSelectChange })); - }; DateRangePicker.prototype.getShorcutClickHandler = function (nextValue) { var _this = this; return function () { return _this.handleNextState(nextValue); }; @@ -59824,12 +62266,12 @@ /***/ }, -/* 461 */ +/* 485 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var dateUtils_1 = __webpack_require__(342); + var dateUtils_1 = __webpack_require__(367); var MonthAndYear = (function () { function MonthAndYear(month, year) { if (month !== null && year !== null) { @@ -59886,12 +62328,12 @@ /***/ }, -/* 462 */ +/* 486 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var dateUtils_1 = __webpack_require__(342); + var dateUtils_1 = __webpack_require__(367); ; var DateRangeSelectionStrategy = (function () { function DateRangeSelectionStrategy() { @@ -60028,7 +62470,7 @@ /***/ }, -/* 463 */ +/* 487 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -60044,14 +62486,14 @@ /***/ }, -/* 464 */ +/* 488 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = __webpack_require__(178); var React = __webpack_require__(3); - var src_1 = __webpack_require__(340); + var src_1 = __webpack_require__(346); exports.PrecisionSelect = function (props) { return (React.createElement("label", { className: core_1.Classes.LABEL }, props.label == null ? props.label : "Precision", React.createElement("div", { className: core_1.Classes.SELECT }, @@ -60063,18 +62505,18 @@ /***/ }, -/* 465 */ +/* 489 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var classNames = __webpack_require__(450); - var moment = __webpack_require__(343); + var classNames = __webpack_require__(475); + var moment = __webpack_require__(368); var React = __webpack_require__(3); - var src_1 = __webpack_require__(340); + var src_1 = __webpack_require__(346); var FORMAT = "dddd, LL"; exports.Moment = function (_a) { var date = _a.date, _b = _a.format, format = _b === void 0 ? FORMAT : _b; @@ -60116,17 +62558,17 @@ /***/ }, -/* 466 */ +/* 490 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); var React = __webpack_require__(3); - var src_1 = __webpack_require__(340); - var formatSelect_1 = __webpack_require__(463); + var src_1 = __webpack_require__(346); + var formatSelect_1 = __webpack_require__(487); var DateRangeInputExample = (function (_super) { tslib_1.__extends(DateRangeInputExample, _super); function DateRangeInputExample() { @@ -60172,17 +62614,17 @@ /***/ }, -/* 467 */ +/* 491 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); var React = __webpack_require__(3); - var src_1 = __webpack_require__(340); - var datePickerExample_1 = __webpack_require__(465); + var src_1 = __webpack_require__(346); + var datePickerExample_1 = __webpack_require__(489); var DateRangePickerExample = (function (_super) { tslib_1.__extends(DateRangePickerExample, _super); function DateRangePickerExample() { @@ -60225,17 +62667,17 @@ /***/ }, -/* 468 */ +/* 492 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); var React = __webpack_require__(3); - var src_1 = __webpack_require__(340); - var datePickerExample_1 = __webpack_require__(465); + var src_1 = __webpack_require__(346); + var datePickerExample_1 = __webpack_require__(489); var DateTimePickerExample = (function (_super) { tslib_1.__extends(DateTimePickerExample, _super); function DateTimePickerExample() { @@ -60257,17 +62699,17 @@ /***/ }, -/* 469 */ +/* 493 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(339); + var tslib_1 = __webpack_require__(345); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); var React = __webpack_require__(3); - var precisionSelect_1 = __webpack_require__(464); - var src_1 = __webpack_require__(340); + var precisionSelect_1 = __webpack_require__(488); + var src_1 = __webpack_require__(346); var TimePickerExample = (function (_super) { tslib_1.__extends(TimePickerExample, _super); function TimePickerExample() { @@ -60304,7 +62746,7 @@ /***/ }, -/* 470 */ +/* 494 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -60312,27 +62754,27 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(471)); - __export(__webpack_require__(516)); - __export(__webpack_require__(517)); - __export(__webpack_require__(518)); - __export(__webpack_require__(519)); - __export(__webpack_require__(520)); - __export(__webpack_require__(521)); + __export(__webpack_require__(495)); + __export(__webpack_require__(540)); + __export(__webpack_require__(541)); + __export(__webpack_require__(542)); + __export(__webpack_require__(543)); + __export(__webpack_require__(544)); + __export(__webpack_require__(545)); /***/ }, -/* 471 */ +/* 495 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); - var bigSpaceRocks = __webpack_require__(515); + var src_1 = __webpack_require__(497); + var bigSpaceRocks = __webpack_require__(539); exports.CellsLoadingConfiguration = { ALL: "all", FIRST_COLUMN: "first-column", @@ -60422,7 +62864,7 @@ /***/ }, -/* 472 */ +/* 496 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global) {/*! ***************************************************************************** @@ -60452,6 +62894,7 @@ var __values; var __read; var __spread; + var __await; var __asyncGenerator; var __asyncDelegator; var __asyncValues; @@ -60589,24 +63032,26 @@ return ar; }; + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), q = [], c, i; - return i = { next: verb("next"), "throw": verb("throw"), "return": verb("return") }, i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { return function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]), next(); }); }; } - function next() { if (!c && q.length) resume((c = q.shift())[0], c[1]); } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(c[3], e); } } - function step(r) { r.done ? settle(c[2], r) : r.value[0] === "yield" ? settle(c[2], { value: r.value[1], done: false }) : Promise.resolve(r.value[1]).then(r.value[0] === "delegate" ? delegate : fulfill, reject); } - function delegate(r) { step(r.done ? r : { value: ["yield", r.value], done: false }); } + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } - function settle(f, v) { c = void 0, f(v), next(); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } }; __asyncDelegator = function (o) { - var i = { next: verb("next"), "throw": verb("throw", function (e) { throw e; }), "return": verb("return", function (v) { return { value: v, done: true }; }) }; - return o = __asyncValues(o), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { return function (v) { return { value: ["delegate", (o[n] || f).call(o, v)], done: false }; }; } + var i, p; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } }; __asyncValues = function (o) { @@ -60627,6 +63072,7 @@ exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); + exporter("__await", __await); exporter("__asyncGenerator", __asyncGenerator); exporter("__asyncDelegator", __asyncDelegator); exporter("__asyncValues", __asyncValues); @@ -60634,57 +63080,57 @@ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 473 */ +/* 497 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - __webpack_require__(474); - var cell_1 = __webpack_require__(475); + __webpack_require__(498); + var cell_1 = __webpack_require__(499); exports.Cell = cell_1.Cell; - var editableCell_1 = __webpack_require__(483); + var editableCell_1 = __webpack_require__(507); exports.EditableCell = editableCell_1.EditableCell; - var jsonFormat_1 = __webpack_require__(487); + var jsonFormat_1 = __webpack_require__(511); exports.JSONFormat = jsonFormat_1.JSONFormat; - var truncatedFormat_1 = __webpack_require__(488); + var truncatedFormat_1 = __webpack_require__(512); exports.TruncatedPopoverMode = truncatedFormat_1.TruncatedPopoverMode; exports.TruncatedFormat = truncatedFormat_1.TruncatedFormat; - var column_1 = __webpack_require__(489); + var column_1 = __webpack_require__(513); exports.Column = column_1.Column; - var index_1 = __webpack_require__(490); + var index_1 = __webpack_require__(514); exports.Clipboard = index_1.Clipboard; exports.Grid = index_1.Grid; exports.Rect = index_1.Rect; exports.Utils = index_1.Utils; - var draggable_1 = __webpack_require__(484); + var draggable_1 = __webpack_require__(508); exports.Draggable = draggable_1.Draggable; - var menus_1 = __webpack_require__(496); + var menus_1 = __webpack_require__(520); exports.CopyCellsMenuItem = menus_1.CopyCellsMenuItem; - var resizeHandle_1 = __webpack_require__(499); + var resizeHandle_1 = __webpack_require__(523); exports.Orientation = resizeHandle_1.Orientation; exports.ResizeHandle = resizeHandle_1.ResizeHandle; - var selectable_1 = __webpack_require__(500); + var selectable_1 = __webpack_require__(524); exports.DragSelectable = selectable_1.DragSelectable; - var columnHeaderCell_1 = __webpack_require__(501); + var columnHeaderCell_1 = __webpack_require__(525); exports.ColumnHeaderCell = columnHeaderCell_1.ColumnHeaderCell; exports.HorizontalCellDivider = columnHeaderCell_1.HorizontalCellDivider; - var rowHeaderCell_1 = __webpack_require__(502); + var rowHeaderCell_1 = __webpack_require__(526); exports.RowHeaderCell = rowHeaderCell_1.RowHeaderCell; - var editableName_1 = __webpack_require__(503); + var editableName_1 = __webpack_require__(527); exports.EditableName = editableName_1.EditableName; - var regions_1 = __webpack_require__(493); + var regions_1 = __webpack_require__(517); exports.ColumnLoadingOption = regions_1.ColumnLoadingOption; exports.RegionCardinality = regions_1.RegionCardinality; exports.Regions = regions_1.Regions; exports.RowLoadingOption = regions_1.RowLoadingOption; exports.SelectionModes = regions_1.SelectionModes; exports.TableLoadingOption = regions_1.TableLoadingOption; - var table_1 = __webpack_require__(504); + var table_1 = __webpack_require__(528); exports.Table = table_1.Table; /***/ }, -/* 474 */ +/* 498 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, process) { /*! @@ -64533,18 +66979,18 @@ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(114))) /***/ }, -/* 475 */ +/* 499 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); + var Classes = __webpack_require__(505); var core_1 = __webpack_require__(178); - var loadableContent_1 = __webpack_require__(482); + var loadableContent_1 = __webpack_require__(506); exports.emptyCellRenderer = function () { return React.createElement(Cell, null); }; var Cell = (function (_super) { tslib_1.__extends(Cell, _super); @@ -64580,7 +67026,7 @@ /***/ }, -/* 476 */ +/* 500 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -64634,7 +67080,7 @@ /***/ }, -/* 477 */ +/* 501 */ /***/ function(module, exports, __webpack_require__) { /** @@ -64643,8 +67089,8 @@ */ 'use strict'; - var warning = __webpack_require__(478); - var shallowEqual = __webpack_require__(480); + var warning = __webpack_require__(502); + var shallowEqual = __webpack_require__(504); @@ -64706,7 +67152,7 @@ /***/ }, -/* 478 */ +/* 502 */ /***/ function(module, exports, __webpack_require__) { /** @@ -64721,7 +67167,7 @@ 'use strict'; - var emptyFunction = __webpack_require__(479); + var emptyFunction = __webpack_require__(503); /** * Similar to invariant but only logs a warning if the condition is not met. @@ -64777,7 +67223,7 @@ module.exports = warning; /***/ }, -/* 479 */ +/* 503 */ /***/ function(module, exports) { "use strict"; @@ -64820,7 +67266,7 @@ module.exports = emptyFunction; /***/ }, -/* 480 */ +/* 504 */ /***/ function(module, exports) { /** @@ -64892,7 +67338,7 @@ module.exports = shallowEqual; /***/ }, -/* 481 */ +/* 505 */ /***/ function(module, exports) { "use strict"; @@ -64993,13 +67439,13 @@ /***/ }, -/* 482 */ +/* 506 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var LoadableContent = (function (_super) { @@ -65033,19 +67479,19 @@ /***/ }, -/* 483 */ +/* 507 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); var ReactDOM = __webpack_require__(33); var core_1 = __webpack_require__(178); - var Classes = __webpack_require__(481); - var draggable_1 = __webpack_require__(484); - var cell_1 = __webpack_require__(475); + var Classes = __webpack_require__(505); + var draggable_1 = __webpack_require__(508); + var cell_1 = __webpack_require__(499); var EditableCell = (function (_super) { tslib_1.__extends(EditableCell, _super); function EditableCell() { @@ -65099,17 +67545,17 @@ /***/ }, -/* 484 */ +/* 508 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); var ReactDOM = __webpack_require__(33); - var utils_1 = __webpack_require__(485); - var dragEvents_1 = __webpack_require__(486); + var utils_1 = __webpack_require__(509); + var dragEvents_1 = __webpack_require__(510); var REATTACH_PROPS_KEYS = [ "stopPropagation", "preventDefault", @@ -65148,12 +67594,12 @@ /***/ }, -/* 485 */ +/* 509 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var classNames = __webpack_require__(476); + var classNames = __webpack_require__(500); var React = __webpack_require__(3); ; var CSS_FONT_PROPERTIES = [ @@ -65353,7 +67799,7 @@ /***/ }, -/* 486 */ +/* 510 */ /***/ function(module, exports) { "use strict"; @@ -65496,16 +67942,16 @@ /***/ }, -/* 487 */ +/* 511 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); - var truncatedFormat_1 = __webpack_require__(488); + var Classes = __webpack_require__(505); + var truncatedFormat_1 = __webpack_require__(512); var JSONFormat = (function (_super) { tslib_1.__extends(JSONFormat, _super); function JSONFormat() { @@ -65543,16 +67989,16 @@ /***/ }, -/* 488 */ +/* 512 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(476); + var classNames = __webpack_require__(500); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); + var Classes = __webpack_require__(505); var TruncatedPopoverMode; (function (TruncatedPopoverMode) { TruncatedPopoverMode[TruncatedPopoverMode["ALWAYS"] = 0] = "ALWAYS"; @@ -65638,15 +68084,15 @@ /***/ }, -/* 489 */ +/* 513 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var cell_1 = __webpack_require__(475); + var cell_1 = __webpack_require__(499); var Column = (function (_super) { tslib_1.__extends(Column, _super); function Column() { @@ -65664,25 +68110,25 @@ /***/ }, -/* 490 */ +/* 514 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var clipboard_1 = __webpack_require__(491); + var clipboard_1 = __webpack_require__(515); exports.Clipboard = clipboard_1.Clipboard; - var grid_1 = __webpack_require__(492); + var grid_1 = __webpack_require__(516); exports.Grid = grid_1.Grid; - var rect_1 = __webpack_require__(494); + var rect_1 = __webpack_require__(518); exports.Rect = rect_1.Rect; - var roundSize_1 = __webpack_require__(495); + var roundSize_1 = __webpack_require__(519); exports.RoundSize = roundSize_1.RoundSize; - var utils_1 = __webpack_require__(485); + var utils_1 = __webpack_require__(509); exports.Utils = utils_1.Utils; /***/ }, -/* 491 */ +/* 515 */ /***/ function(module, exports) { "use strict"; @@ -65751,16 +68197,16 @@ /***/ }, -/* 492 */ +/* 516 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var regions_1 = __webpack_require__(493); - var Classes = __webpack_require__(481); - var rect_1 = __webpack_require__(494); - var utils_1 = __webpack_require__(485); + var tslib_1 = __webpack_require__(496); + var regions_1 = __webpack_require__(517); + var Classes = __webpack_require__(505); + var rect_1 = __webpack_require__(518); + var utils_1 = __webpack_require__(509); var Grid = (function () { function Grid(rowHeights, columnWidths, bleed, ghostHeight, ghostWidth) { if (bleed === void 0) { bleed = Grid.DEFAULT_BLEED; } @@ -66015,13 +68461,13 @@ /***/ }, -/* 493 */ +/* 517 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(481); - var utils_1 = __webpack_require__(485); + var Classes = __webpack_require__(505); + var utils_1 = __webpack_require__(509); var RegionCardinality; (function (RegionCardinality) { RegionCardinality[RegionCardinality["CELLS"] = 0] = "CELLS"; @@ -66441,7 +68887,7 @@ /***/ }, -/* 494 */ +/* 518 */ /***/ function(module, exports) { "use strict"; @@ -66514,14 +68960,14 @@ /***/ }, -/* 495 */ +/* 519 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); + var Classes = __webpack_require__(505); var RoundSize = (function (_super) { tslib_1.__extends(RoundSize, _super); function RoundSize() { @@ -66555,7 +69001,7 @@ /***/ }, -/* 496 */ +/* 520 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -66563,22 +69009,22 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(497)); - __export(__webpack_require__(498)); + __export(__webpack_require__(521)); + __export(__webpack_require__(522)); /***/ }, -/* 497 */ +/* 521 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var core_1 = __webpack_require__(178); - var PureRender = __webpack_require__(477); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var clipboard_1 = __webpack_require__(491); - var regions_1 = __webpack_require__(493); + var clipboard_1 = __webpack_require__(515); + var regions_1 = __webpack_require__(517); var CopyCellsMenuItem = (function (_super) { tslib_1.__extends(CopyCellsMenuItem, _super); function CopyCellsMenuItem() { @@ -66606,12 +69052,12 @@ /***/ }, -/* 498 */ +/* 522 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var regions_1 = __webpack_require__(493); + var regions_1 = __webpack_require__(517); var MenuContext = (function () { function MenuContext(target, selectedRegions, numRows, numCols) { this.target = target; @@ -66638,17 +69084,17 @@ /***/ }, -/* 499 */ +/* 523 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); - var draggable_1 = __webpack_require__(484); + var Classes = __webpack_require__(505); + var draggable_1 = __webpack_require__(508); var Orientation; (function (Orientation) { Orientation[Orientation["HORIZONTAL"] = 1] = "HORIZONTAL"; @@ -66725,19 +69171,19 @@ /***/ }, -/* 500 */ +/* 524 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var core_1 = __webpack_require__(178); - var PureRender = __webpack_require__(477); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var utils_1 = __webpack_require__(485); - var dragEvents_1 = __webpack_require__(486); - var draggable_1 = __webpack_require__(484); - var regions_1 = __webpack_require__(493); + var utils_1 = __webpack_require__(509); + var dragEvents_1 = __webpack_require__(510); + var draggable_1 = __webpack_require__(508); + var regions_1 = __webpack_require__(517); var DragSelectable = DragSelectable_1 = (function (_super) { tslib_1.__extends(DragSelectable, _super); function DragSelectable() { @@ -66866,18 +69312,18 @@ /***/ }, -/* 501 */ +/* 525 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var Classes = __webpack_require__(481); - var loadableContent_1 = __webpack_require__(482); + var Classes = __webpack_require__(505); + var loadableContent_1 = __webpack_require__(506); function HorizontalCellDivider() { return React.createElement("div", { className: Classes.TABLE_HORIZONTAL_CELL_DIVIDER }); } @@ -66971,18 +69417,18 @@ /***/ }, -/* 502 */ +/* 526 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); - var Classes = __webpack_require__(481); - var loadableContent_1 = __webpack_require__(482); + var Classes = __webpack_require__(505); + var loadableContent_1 = __webpack_require__(506); var RowHeaderCell = (function (_super) { tslib_1.__extends(RowHeaderCell, _super); function RowHeaderCell() { @@ -67022,17 +69468,17 @@ /***/ }, -/* 503 */ +/* 527 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var core_1 = __webpack_require__(178); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); + var Classes = __webpack_require__(505); var EditableName = (function (_super) { tslib_1.__extends(EditableName, _super); function EditableName() { @@ -67051,32 +69497,32 @@ /***/ }, -/* 504 */ +/* 528 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var core_1 = __webpack_require__(178); var core_2 = __webpack_require__(178); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var column_1 = __webpack_require__(489); - var Classes = __webpack_require__(481); - var clipboard_1 = __webpack_require__(491); - var grid_1 = __webpack_require__(492); - var rect_1 = __webpack_require__(494); - var utils_1 = __webpack_require__(485); - var columnHeader_1 = __webpack_require__(505); - var columnHeaderCell_1 = __webpack_require__(501); - var rowHeader_1 = __webpack_require__(508); - var resizeSensor_1 = __webpack_require__(509); - var guides_1 = __webpack_require__(510); - var regions_1 = __webpack_require__(511); - var locator_1 = __webpack_require__(512); - var regions_2 = __webpack_require__(493); - var tableBody_1 = __webpack_require__(513); + var column_1 = __webpack_require__(513); + var Classes = __webpack_require__(505); + var clipboard_1 = __webpack_require__(515); + var grid_1 = __webpack_require__(516); + var rect_1 = __webpack_require__(518); + var utils_1 = __webpack_require__(509); + var columnHeader_1 = __webpack_require__(529); + var columnHeaderCell_1 = __webpack_require__(525); + var rowHeader_1 = __webpack_require__(532); + var resizeSensor_1 = __webpack_require__(533); + var guides_1 = __webpack_require__(534); + var regions_1 = __webpack_require__(535); + var locator_1 = __webpack_require__(536); + var regions_2 = __webpack_require__(517); + var tableBody_1 = __webpack_require__(537); var Table = Table_1 = (function (_super) { tslib_1.__extends(Table, _super); function Table(props, context) { @@ -67517,9 +69963,20 @@ var hotkeys = [this.maybeRenderCopyHotkey(), this.maybeRenderSelectAllHotkey(), this.maybeRenderFocusHotkeys()]; return (React.createElement(core_2.Hotkeys, null, hotkeys.filter(function (element) { return element !== undefined; }))); }; - Table.prototype.resizeRowsByTallestCell = function (columnIndex) { + Table.prototype.resizeRowsByTallestCell = function (columnIndices) { var locator = this.state.locator; - var tallest = locator.getTallestVisibleCellInColumn(columnIndex); + var tallest = 0; + if (columnIndices == null) { + var viewportColumnIndices = this.grid.getColumnIndicesInRect(this.state.viewportRect); + for (var col = viewportColumnIndices.columnIndexStart; col <= viewportColumnIndices.columnIndexEnd; col++) { + tallest = Math.max(tallest, locator.getTallestVisibleCellInColumn(col)); + } + } + else { + var columnIndicesArray = Array.isArray(columnIndices) ? columnIndices : [columnIndices]; + var tallestByColumns = columnIndicesArray.map(function (col) { return locator.getTallestVisibleCellInColumn(col); }); + tallest = Math.max.apply(Math, tallestByColumns); + } var rowHeights = Array(this.state.rowHeights.length).fill(tallest); this.invalidateGrid(); this.setState({ rowHeights: rowHeights }); @@ -67727,23 +70184,23 @@ /***/ }, -/* 505 */ +/* 529 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); - var index_1 = __webpack_require__(490); - var reorderable_1 = __webpack_require__(506); - var resizable_1 = __webpack_require__(507); - var resizeHandle_1 = __webpack_require__(499); - var selectable_1 = __webpack_require__(500); - var regions_1 = __webpack_require__(493); - var columnHeaderCell_1 = __webpack_require__(501); + var Classes = __webpack_require__(505); + var index_1 = __webpack_require__(514); + var reorderable_1 = __webpack_require__(530); + var resizable_1 = __webpack_require__(531); + var resizeHandle_1 = __webpack_require__(523); + var selectable_1 = __webpack_require__(524); + var regions_1 = __webpack_require__(517); + var columnHeaderCell_1 = __webpack_require__(525); var ColumnHeader = (function (_super) { tslib_1.__extends(ColumnHeader, _super); function ColumnHeader() { @@ -67877,17 +70334,17 @@ /***/ }, -/* 506 */ +/* 530 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var utils_1 = __webpack_require__(485); - var draggable_1 = __webpack_require__(484); - var regions_1 = __webpack_require__(493); + var utils_1 = __webpack_require__(509); + var draggable_1 = __webpack_require__(508); + var regions_1 = __webpack_require__(517); var DragReorderable = (function (_super) { tslib_1.__extends(DragReorderable, _super); function DragReorderable() { @@ -67960,16 +70417,16 @@ /***/ }, -/* 507 */ +/* 531 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var index_1 = __webpack_require__(490); - var resizeHandle_1 = __webpack_require__(499); + var index_1 = __webpack_require__(514); + var resizeHandle_1 = __webpack_require__(523); var Resizable = (function (_super) { tslib_1.__extends(Resizable, _super); function Resizable(props, context) { @@ -68050,23 +70507,23 @@ /***/ }, -/* 508 */ +/* 532 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); - var PureRender = __webpack_require__(477); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); - var roundSize_1 = __webpack_require__(495); - var reorderable_1 = __webpack_require__(506); - var resizable_1 = __webpack_require__(507); - var resizeHandle_1 = __webpack_require__(499); - var selectable_1 = __webpack_require__(500); - var regions_1 = __webpack_require__(493); - var rowHeaderCell_1 = __webpack_require__(502); + var Classes = __webpack_require__(505); + var roundSize_1 = __webpack_require__(519); + var reorderable_1 = __webpack_require__(530); + var resizable_1 = __webpack_require__(531); + var resizeHandle_1 = __webpack_require__(523); + var selectable_1 = __webpack_require__(524); + var regions_1 = __webpack_require__(517); + var rowHeaderCell_1 = __webpack_require__(526); var RowHeader = (function (_super) { tslib_1.__extends(RowHeader, _super); function RowHeader() { @@ -68191,12 +70648,12 @@ /***/ }, -/* 509 */ +/* 533 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(481); + var Classes = __webpack_require__(505); var ResizeSensor = (function () { function ResizeSensor() { } @@ -68269,16 +70726,16 @@ /***/ }, -/* 510 */ +/* 534 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); - var utils_1 = __webpack_require__(485); + var Classes = __webpack_require__(505); + var utils_1 = __webpack_require__(509); var GuideLayer = (function (_super) { tslib_1.__extends(GuideLayer, _super); function GuideLayer() { @@ -68324,17 +70781,17 @@ /***/ }, -/* 511 */ +/* 535 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); var React = __webpack_require__(3); - var Classes = __webpack_require__(481); - var utils_1 = __webpack_require__(485); - var regions_1 = __webpack_require__(493); + var Classes = __webpack_require__(505); + var utils_1 = __webpack_require__(509); + var regions_1 = __webpack_require__(517); var UPDATE_PROPS_KEYS = [ "className", ]; @@ -68369,14 +70826,14 @@ /***/ }, -/* 512 */ +/* 536 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(481); - var rect_1 = __webpack_require__(494); - var utils_1 = __webpack_require__(485); + var Classes = __webpack_require__(505); + var rect_1 = __webpack_require__(518); + var utils_1 = __webpack_require__(509); var Locator = (function () { function Locator(tableElement, bodyElement, grid) { var _this = this; @@ -68486,22 +70943,22 @@ /***/ }, -/* 513 */ +/* 537 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); - var classNames = __webpack_require__(476); + var tslib_1 = __webpack_require__(496); + var classNames = __webpack_require__(500); var React = __webpack_require__(3); - var cell_1 = __webpack_require__(475); - var Classes = __webpack_require__(481); - var contextMenuTargetWrapper_1 = __webpack_require__(514); - var rect_1 = __webpack_require__(494); - var utils_1 = __webpack_require__(485); - var menus_1 = __webpack_require__(496); - var selectable_1 = __webpack_require__(500); - var regions_1 = __webpack_require__(493); + var cell_1 = __webpack_require__(499); + var Classes = __webpack_require__(505); + var contextMenuTargetWrapper_1 = __webpack_require__(538); + var rect_1 = __webpack_require__(518); + var utils_1 = __webpack_require__(509); + var menus_1 = __webpack_require__(520); + var selectable_1 = __webpack_require__(524); + var regions_1 = __webpack_require__(517); var UPDATE_PROPS_KEYS = [ "grid", "locator", @@ -68587,14 +71044,14 @@ /***/ }, -/* 514 */ +/* 538 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var core_1 = __webpack_require__(178); - var PureRender = __webpack_require__(477); + var PureRender = __webpack_require__(501); var React = __webpack_require__(3); var ContextMenuTargetWrapper = (function (_super) { tslib_1.__extends(ContextMenuTargetWrapper, _super); @@ -68618,7 +71075,7 @@ /***/ }, -/* 515 */ +/* 539 */ /***/ function(module, exports) { module.exports = [ @@ -68801,17 +71258,17 @@ ]; /***/ }, -/* 516 */ +/* 540 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); - var bigSpaceRocks = __webpack_require__(515); + var src_1 = __webpack_require__(497); + var bigSpaceRocks = __webpack_require__(539); var ColumnLoadingExample = (function (_super) { tslib_1.__extends(ColumnLoadingExample, _super); function ColumnLoadingExample() { @@ -68866,15 +71323,15 @@ /***/ }, -/* 517 */ +/* 541 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); + var src_1 = __webpack_require__(497); var TableDollarExample = (function (_super) { tslib_1.__extends(TableDollarExample, _super); function TableDollarExample() { @@ -68891,16 +71348,16 @@ /***/ }, -/* 518 */ +/* 542 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); + var src_1 = __webpack_require__(497); var TableEditableExample = (function (_super) { tslib_1.__extends(TableEditableExample, _super); function TableEditableExample() { @@ -68992,15 +71449,15 @@ /***/ }, -/* 519 */ +/* 543 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); + var src_1 = __webpack_require__(497); var LOCAL_TIMEZONE_OFFSET_MSEC = new Date().getTimezoneOffset() * 60 * 1000; var TIME_ZONES = [ ["-12:00", -12.0, "Etc/GMT+12"], @@ -69090,17 +71547,17 @@ /***/ }, -/* 520 */ +/* 544 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); - var bigSpaceRocks = __webpack_require__(515); + var src_1 = __webpack_require__(497); + var bigSpaceRocks = __webpack_require__(539); var TableLoadingExample = (function (_super) { tslib_1.__extends(TableLoadingExample, _super); function TableLoadingExample() { @@ -69161,17 +71618,17 @@ /***/ }, -/* 521 */ +/* 545 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(472); + var tslib_1 = __webpack_require__(496); var React = __webpack_require__(3); var core_1 = __webpack_require__(178); var docs_1 = __webpack_require__(171); - var src_1 = __webpack_require__(473); - var sumo = __webpack_require__(522); + var src_1 = __webpack_require__(497); + var sumo = __webpack_require__(546); var AbstractSortableColumn = (function () { function AbstractSortableColumn(name, index) { this.name = name; @@ -69333,7 +71790,7 @@ /***/ }, -/* 522 */ +/* 546 */ /***/ function(module, exports) { module.exports = [ @@ -70090,7 +72547,7 @@ ]; /***/ }, -/* 523 */ +/* 547 */ /***/ function(module, exports) { module.exports = { @@ -73568,7 +76025,7 @@ "level": 2, "route": "core/components/tooltip.javascript-api" }, - "

The Tooltip component is available in the @blueprintjs/core package.\nMake sure to review the general usage docs for JS components.

\n

When creating a tooltip, you must specify both:

\n
    \n
  • its content, by setting the content prop, and
  • \n
  • its target, as a single child element or as plain text
  • \n
\n

When the user hovers over the target, the content is displayed in a tooltip above the target.

\n

Content can be a string or a single JSX.Element (typically used to format said string),\nbut you should keep it simple. If you need more space, consider using a popover instead of a tooltip.

\n
\n
Button targets
\n Buttons make great tooltip targets, but the disabled attribute will prevent all events so the enclosing Tooltip\n will not know when to respond. Use AnchorButton instead;\n see the callout here for more details.\n
\n\n", + "

The Tooltip component is available in the @blueprintjs/core package.\nMake sure to review the general usage docs for JS components.

\n

When creating a tooltip, you must specify both:

\n
    \n
  • its content, by setting the content prop, and
  • \n
  • its target, as a single child element or as plain text
  • \n
\n

When the user hovers over the target, the content is displayed in a tooltip above the target.

\n

Content can be a string or a single JSX.Element (typically used to format said string),\nbut you should keep it simple. If you need more space, consider using a popover instead of a tooltip.

\n
\n
Button targets
\n Buttons make great tooltip targets, but the disabled attribute will prevent all events so the enclosing Tooltip\n will not know when to respond. Use AnchorButton instead;\n see the callout here for more details.\n
\n\n", { "tag": "interface", "value": "ITooltipProps" @@ -73609,7 +76066,7 @@ }, "

If the trigger for a tooltip is nested inside a .pt-dark container, the tooltip will\nautomatically have the dark theme applied as well.

\n

You can also explicitly apply the dark theme to a tooltip by adding the prop\ntooltipClassName="pt-dark".

\n" ], - "contentsRaw": "@# Tooltips\n\nTooltips display a small string of text next to a target element.\n\n@reactExample TooltipExample\n\n@## JavaScript API\n\nThe `Tooltip` component is available in the __@blueprintjs/core__ package.\nMake sure to review the [general usage docs for JS components](#blueprint.usage).\n\nWhen creating a tooltip, you must specify both:\n- its _content_, by setting the `content` prop, and\n- its _target_, as a single child element or as plain text\n\nWhen the user hovers over the target, the content is displayed in a tooltip above the target.\n\nContent can be a `string` or a single `JSX.Element` (typically used to format said string),\nbut you should keep it simple. If you need more space, consider using a popover instead of a tooltip.\n\n
\n
Button targets
\n Buttons make great tooltip targets, but the `disabled` attribute will prevent all events so the enclosing `Tooltip`\n will not know when to respond. Use [`AnchorButton`](#ore/components/button.anchor-button) instead;\n see the [callout here](#ore/components/button.javascript-api) for more details.\n
\n\n@interface ITooltipProps\n\n@### Controlled mode\n\nThe `Tooltip` component supports controlled mode in exactly the same way the `Popover` component\ndoes. Please refer to the [controlled mode documentation](#core/components/popover.controlled-mode) for\n`Popover` for details.\n\n@### Inline tooltips\n\nInline tooltips (with `inline={true}`) do not have a set width, and therefore will not break long\ncontent into multiple lines. This is enforced with `white-space: nowrap`.\n\nIf you want to create an inline tooltip with content spanning multiple lines, you must override the\ndefault styles and set an appropriate size for `.pt-tooltip`.\n\n@### Combining with popover\n\nYou can give a single target both a popover and a tooltip. You must put the `Tooltip` inside the\n`Popover` (and the target inside the `Tooltip`).\n\nThis order is required because when the popover is open, the tooltip is disabled, to prevent both\nelements from appearing at the same time.\n\n```tsx\nPopover!} position={Position.RIGHT}>\n \n \n \n\n```\n\n@### SVG tooltip\n\n`SVGTooltip` is a convenience component provided for SVG contexts. It is a simple wrapper around\n`Tooltip` that sets `rootElementTag=\"g\"`.\n\n@### Dark theme\n\nIf the trigger for a tooltip is nested inside a `.pt-dark` container, the tooltip will\nautomatically have the dark theme applied as well.\n\nYou can also explicitly apply the dark theme to a tooltip by adding the prop\n`tooltipClassName=\"pt-dark\"`.\n", + "contentsRaw": "@# Tooltips\n\nTooltips display a small string of text next to a target element.\n\n@reactExample TooltipExample\n\n@## JavaScript API\n\nThe `Tooltip` component is available in the __@blueprintjs/core__ package.\nMake sure to review the [general usage docs for JS components](#blueprint.usage).\n\nWhen creating a tooltip, you must specify both:\n- its _content_, by setting the `content` prop, and\n- its _target_, as a single child element or as plain text\n\nWhen the user hovers over the target, the content is displayed in a tooltip above the target.\n\nContent can be a `string` or a single `JSX.Element` (typically used to format said string),\nbut you should keep it simple. If you need more space, consider using a popover instead of a tooltip.\n\n
\n
Button targets
\n Buttons make great tooltip targets, but the `disabled` attribute will prevent all events so the enclosing `Tooltip`\n will not know when to respond. Use [`AnchorButton`](#ore/components/button.anchor-button) instead;\n see the [callout here](#core/components/button.javascript-api) for more details.\n
\n\n@interface ITooltipProps\n\n@### Controlled mode\n\nThe `Tooltip` component supports controlled mode in exactly the same way the `Popover` component\ndoes. Please refer to the [controlled mode documentation](#core/components/popover.controlled-mode) for\n`Popover` for details.\n\n@### Inline tooltips\n\nInline tooltips (with `inline={true}`) do not have a set width, and therefore will not break long\ncontent into multiple lines. This is enforced with `white-space: nowrap`.\n\nIf you want to create an inline tooltip with content spanning multiple lines, you must override the\ndefault styles and set an appropriate size for `.pt-tooltip`.\n\n@### Combining with popover\n\nYou can give a single target both a popover and a tooltip. You must put the `Tooltip` inside the\n`Popover` (and the target inside the `Tooltip`).\n\nThis order is required because when the popover is open, the tooltip is disabled, to prevent both\nelements from appearing at the same time.\n\n```tsx\nPopover!} position={Position.RIGHT}>\n \n \n \n\n```\n\n@### SVG tooltip\n\n`SVGTooltip` is a convenience component provided for SVG contexts. It is a simple wrapper around\n`Tooltip` that sets `rootElementTag=\"g\"`.\n\n@### Dark theme\n\nIf the trigger for a tooltip is nested inside a `.pt-dark` container, the tooltip will\nautomatically have the dark theme applied as well.\n\nYou can also explicitly apply the dark theme to a tooltip by adding the prop\n`tooltipClassName=\"pt-dark\"`.\n", "metadata": {} }, "tree": { @@ -74412,7 +76869,7 @@ "level": 3, "route": "blueprint.npm-installation" }, - "
    \n
  1. Install the core package with an NPM client like npm or yarn, pulling in all relevant\ndependencies:

    \n
    npm install --save @blueprintjs/core
  2. \n
  3. If you see UNMET PEER DEPENDENCY errors, you should manually install React:

    \n
    npm install --save react react-dom react-addons-css-transition-group
  4. \n
  5. After installation, you'll be able to import the React components in your application:

    \n
    // extract specific components
    import { Intent, Spinner, DatePickerFactory } from "@blueprintjs/core";
    // or just take everything!
    import * as Blueprint from "@blueprintjs/core";
     
    // using JSX:
    const mySpinner = <Spinner intent={Intent.PRIMARY} />;
     
    // using the namespace import:
    const anotherSpinner = <Blueprint.Spinner intent={Blueprint.Intent.PRIMARY}/>;
     
    // use factories for React.createElement shorthand if you're not using JSX.
    // every component provides a corresponding <Name>Factory.
    const myDatePicker = DatePickerFactory();
  6. \n
  7. Don't forget to include the main CSS file from each Blueprint package! Additionally, the\nresources/ directory contains supporting media such as fonts and images.

    \n
    <!-- in plain old reliable HTML -->
    <!DOCTYPE HTML>
    <html>
     <head>
       ...
       <!-- include dependencies manually -->
       <link href="path/to/node_modules/normalize.css/normalize.css" rel="stylesheet" />
       <link href="path/to/node_modules/@blueprintjs/core/dist/blueprint.css" rel="stylesheet" />
       ...
     </head>
     ...
    </html>
    // or, using node-style package resolution in a CSS file: 
    // (dependencies' stylesheets should be resolved automatically) 
    @import "~@blueprintjs/core";
  8. \n
\n", + "
    \n
  1. Install the core package with an NPM client like npm or yarn, pulling in all relevant\ndependencies:

    \n
    npm install --save @blueprintjs/core
  2. \n
  3. If you see UNMET PEER DEPENDENCY errors, you should manually install React:

    \n
    npm install --save react react-dom react-transition-group
  4. \n
  5. After installation, you'll be able to import the React components in your application:

    \n
    // extract specific components
    import { Intent, Spinner, DatePickerFactory } from "@blueprintjs/core";
    // or just take everything!
    import * as Blueprint from "@blueprintjs/core";
     
    // using JSX:
    const mySpinner = <Spinner intent={Intent.PRIMARY} />;
     
    // using the namespace import:
    const anotherSpinner = <Blueprint.Spinner intent={Blueprint.Intent.PRIMARY}/>;
     
    // use factories for React.createElement shorthand if you're not using JSX.
    // every component provides a corresponding <Name>Factory.
    const myDatePicker = DatePickerFactory();
  6. \n
  7. Don't forget to include the main CSS file from each Blueprint package! Additionally, the\nresources/ directory contains supporting media such as fonts and images.

    \n
    <!-- in plain old reliable HTML -->
    <!DOCTYPE HTML>
    <html>
     <head>
       ...
       <!-- include dependencies manually -->
       <link href="path/to/node_modules/normalize.css/normalize.css" rel="stylesheet" />
       <link href="path/to/node_modules/@blueprintjs/core/dist/blueprint.css" rel="stylesheet" />
       ...
     </head>
     ...
    </html>
    // or, using node-style package resolution in a CSS file: 
    // (dependencies' stylesheets should be resolved automatically) 
    @import "~@blueprintjs/core";
  8. \n
\n", { "tag": "heading", "value": "CDN consumption", @@ -74433,14 +76890,14 @@ "level": 3, "route": "blueprint.typescript" }, - "

Blueprint is written in TypeScript and therefore its own .d.ts type definitions are distributed in\nthe NPM package and should be resolved automatically by the compiler. However, you'll need to\ninstall typings for Blueprint's dependencies before you can consume it:

\n
# required for all @blueprintjs packages:
npm install --save @types/pure-render-decorator @types/react @types/react-dom @types/react-addons-css-transition-group
 
# @blueprintjs/datetime requires:
npm install --save @types/moment
 
# @blueprintjs/table requires:
npm install --save @types/es6-shim
\n For more information, see the TypeScript Handbook for\n guidance on consuming declaration files.\n
\n\n", + "

Blueprint is written in TypeScript and therefore its own .d.ts type definitions are distributed in\nthe NPM package and should be resolved automatically by the compiler. However, you'll need to\ninstall typings for Blueprint's dependencies before you can consume it:

\n
# required for all @blueprintjs packages:
npm install --save @types/pure-render-decorator @types/react @types/react-dom @types/react-transition-group
 
# @blueprintjs/datetime requires:
npm install --save @types/moment
 
# @blueprintjs/table requires:
npm install --save @types/es6-shim
\n For more information, see the TypeScript Handbook for\n guidance on consuming declaration files.\n
\n\n", { "tag": "heading", "value": "Vanilla JS APIs", "level": 3, "route": "blueprint.vanilla-js-apis" }, - "

JS components are built using React, but that does not limit their usage to just React applications.\nYou can render any component in any JavaScript application with ReactDOM.render. Think of it like\nusing a jQuery plugin.

\n
const myContainerElement = document.querySelector(".my-container");
 
// with JSX
ReactDOM.render(
    <Spinner className="pt-intent-primary pt-small" />,
    myContainerElement
);
 
// with vanilla JS, use the factory
ReactDOM.render(
    SpinnerFactory({
        className: "pt-intent-primary pt-small"
    }),
    myContainerElement
);

To remove the component from the DOM and clean up, unmount it:

\n
ReactDOM.unmountComponentAtNode(myContainerElement);

Check out the React API docs for more details.

\n

You'll need to install React v15.x or v0.14.x alongside Blueprint.

\n
npm install --save @blueprintjs/core react react-dom react-addons-css-transition-group

Import components from the @blueprintjs/core module into your project.\nDon't forget to include the main CSS stylesheet too!

\n

Review the general usage docs for more complete installation instructions.

\n", + "

JS components are built using React, but that does not limit their usage to just React applications.\nYou can render any component in any JavaScript application with ReactDOM.render. Think of it like\nusing a jQuery plugin.

\n
const myContainerElement = document.querySelector(".my-container");
 
// with JSX
ReactDOM.render(
    <Spinner className="pt-intent-primary pt-small" />,
    myContainerElement
);
 
// with vanilla JS, use the factory
ReactDOM.render(
    SpinnerFactory({
        className: "pt-intent-primary pt-small"
    }),
    myContainerElement
);

To remove the component from the DOM and clean up, unmount it:

\n
ReactDOM.unmountComponentAtNode(myContainerElement);

Check out the React API docs for more details.

\n

You'll need to install React v15.x or v0.14.x alongside Blueprint.

\n
npm install --save @blueprintjs/core react react-dom react-transition-group

Import components from the @blueprintjs/core module into your project.\nDon't forget to include the main CSS stylesheet too!

\n

Review the general usage docs for more complete installation instructions.

\n", { "tag": "heading", "value": "Understanding TypeScript", @@ -74456,7 +76913,7 @@ }, "

Most dev-related information is on our GitHub wiki,\nincluding our coding guidelines\nand our development practices.

\n" ], - "contentsRaw": "@# Blueprint\n\nBlueprint is a React-based UI toolkit for the web.\n\nDevelopment and issue tracking occurs in [github.com/palantir/blueprint](https://github.com/palantir/blueprint).\n\nReleases are tagged and documented [here on GitHub](https://github.com/palantir/blueprint/releases).\n\nUse the [__blueprintjs__ tag on Stack Overflow](http://stackoverflow.com/questions/tagged/blueprintjs)\nfor support requests.\n\n@## Browser support\n\n**Blueprint supports Chrome, Firefox, Safari, IE 11, and Microsoft Edge.**\n\nYou may experience degraded visuals in IE.\nIE 10 and below are unsupported due to their lack of support for CSS Flexbox Layout.\nThese browsers were deprecated by Microsoft (end of support) in [January 2016](https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support).\n\n@## Usage\n\nBlueprint is available as a collection of NPM packages under the `@blueprintjs` scope. The full\npackage list and their latest versions appear under the _Releases_ dropdown above.\n\nEach package contains a CSS file and a collection of CommonJS modules exposing React components.\nThe `main` module exports all symbols from all modules so you don't have to import individual files\n(though you can if you want to). The JavaScript components are stable and their APIs adhere to\n[semantic versioning](http://semver.org/).\n\n@### NPM installation\n\n1. Install the core package with an NPM client like `npm` or `yarn`, pulling in all relevant\ndependencies:\n\n ```sh\n npm install --save @blueprintjs/core\n ```\n\n1. If you see `UNMET PEER DEPENDENCY` errors, you should manually install React:\n\n ```sh\n npm install --save react react-dom react-addons-css-transition-group\n ```\n\n1. After installation, you'll be able to import the React components in your application:\n\n ```tsx\n // extract specific components\n import { Intent, Spinner, DatePickerFactory } from \"@blueprintjs/core\";\n // or just take everything!\n import * as Blueprint from \"@blueprintjs/core\";\n\n // using JSX:\n const mySpinner = ;\n\n // using the namespace import:\n const anotherSpinner = ;\n\n // use factories for React.createElement shorthand if you're not using JSX.\n // every component provides a corresponding Factory.\n const myDatePicker = DatePickerFactory();\n ```\n\n1. Don't forget to include the main CSS file from each Blueprint package! Additionally, the\n`resources/` directory contains supporting media such as fonts and images.\n\n ```html\n \n \n \n \n ...\n \n \n \n ...\n \n ...\n \n ```\n\n ```css.scss\n // or, using node-style package resolution in a CSS file:\n // (dependencies' stylesheets should be resolved automatically)\n @import \"~@blueprintjs/core\";\n ```\n\n@### CDN consumption\n\nBlueprint supports the venerable [unpkg CDN](https://unpkg.com). Each package provides a UMD\n`dist/[name].bundle.js` file containing the bundled source code. The UMD wrapper exposes each\nlibrary on the `Blueprint` global variable: `Blueprint.Core`, `Blueprint.Datetime`, etc.\n\nThese bundles _do not include_ external dependencies; your application will need to ensure that\n`normalize.css`, `React`, `classnames`, and `Tether` are available at runtime.\n\n```html\n\n\n \n \n \n Blueprint Starter Kit\n \n \n \n \n \n \n \n \n \n\n
\n \n \n\n```\n\n@### DOM4\n\nBlueprint relies on a handful of DOM Level 4 API methods: `el.query`, `el.queryAll`, and\n`el.closest()`. `@blueprintjs/core` depends on a [polyfill library called `dom4`][dom4] to ensure\nthese methods are available. This module is conditionally loaded if Blueprint is used in a browser\nenvironment.\n\n[dom4]: https://webreflection.github.io/dom4/\n\n@### TypeScript\n\nBlueprint is written in TypeScript and therefore its own `.d.ts` type definitions are distributed in\nthe NPM package and should be resolved automatically by the compiler. However, you'll need to\ninstall typings for Blueprint's dependencies before you can consume it:\n\n```sh\n# required for all @blueprintjs packages:\nnpm install --save @types/pure-render-decorator @types/react @types/react-dom @types/react-addons-css-transition-group\n\n# @blueprintjs/datetime requires:\nnpm install --save @types/moment\n\n# @blueprintjs/table requires:\nnpm install --save @types/es6-shim\n```\n\n
\n For more information, see the TypeScript Handbook for\n [guidance on consuming declaration files][handbook].\n
\n\n[handbook]: https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html\n\n@### Vanilla JS APIs\n\nJS components are built using React, but that does not limit their usage to just React applications.\nYou can render any component in any JavaScript application with `ReactDOM.render`. Think of it like\nusing a jQuery plugin.\n\n```tsx\nconst myContainerElement = document.querySelector(\".my-container\");\n\n// with JSX\nReactDOM.render(\n ,\n myContainerElement\n);\n\n// with vanilla JS, use the factory\nReactDOM.render(\n SpinnerFactory({\n className: \"pt-intent-primary pt-small\"\n }),\n myContainerElement\n);\n```\n\nTo remove the component from the DOM and clean up, unmount it:\n\n```tsx\nReactDOM.unmountComponentAtNode(myContainerElement);\n```\n\nCheck out the [React API docs](https://facebook.github.io/react/docs/react-api.html) for more details.\n\n\nYou'll need to install React `v15.x` or `v0.14.x` alongside Blueprint.\n\n```sh\nnpm install --save @blueprintjs/core react react-dom react-addons-css-transition-group\n```\n\nImport components from the `@blueprintjs/core` module into your project.\nDon't forget to include the main CSS stylesheet too!\n\n**Review the [general usage docs](#blueprint.usage) for more complete installation instructions.**\n\n@## Understanding TypeScript\n\nBlueprint is written in [TypeScript](https://www.typescriptlang.org/), a statically typed superset\nof JavaScript that compiles to plain JavaScript. All the code samples throughout this site and\nall interactive examples are also written in TypeScript. TypeScript code looks exactly like ES2015+\ncode with the addition of type signatures, which typically appear after colons and are colored\ngold in our syntax theme.\n\n```ts\n// variables\nconst variableName: varType;\nconst name: string;\nconst disabled: boolean;\n\n// functions (and function variables)\nfunction funcName(arg1: argType, arg2: argType): returnType { }\nconst funcName: (arg1: argType) => returnType;\nfunction split(str: string, delim: string): string[] { }\nfunction map(array: T[], iterator: (item: T, index: number) => U): U[];\n\n// interfaces describe plain objects\n// (we use the convention that interfaces begin with \"I\")\ninterface IOption {\n label: string;\n value: string;\n}\nconst option: IOption = { label: \"Name\", value: \"gilad\" };\n```\n\n**You do not need to use TypeScript to consume Blueprint** (but major \"props\" if you do). Familiarity\nwith the syntax is suggested so you can follow our examples\n([the handbook](https://www.typescriptlang.org/docs/handbook/basic-types.html) has good documentation\nfor getting started). Simply ignoring the type annotations in your head will produce valid ES2015 code.\n\n@## Development & contributions\n\nMost dev-related information is on [our GitHub wiki](https://github.com/palantir/blueprint/wiki),\nincluding our [coding guidelines](https://github.com/palantir/blueprint/wiki/Coding-guidelines)\nand our [development practices](https://github.com/palantir/blueprint/wiki/Development-Practices).\n", + "contentsRaw": "@# Blueprint\n\nBlueprint is a React-based UI toolkit for the web.\n\nDevelopment and issue tracking occurs in [github.com/palantir/blueprint](https://github.com/palantir/blueprint).\n\nReleases are tagged and documented [here on GitHub](https://github.com/palantir/blueprint/releases).\n\nUse the [__blueprintjs__ tag on Stack Overflow](http://stackoverflow.com/questions/tagged/blueprintjs)\nfor support requests.\n\n@## Browser support\n\n**Blueprint supports Chrome, Firefox, Safari, IE 11, and Microsoft Edge.**\n\nYou may experience degraded visuals in IE.\nIE 10 and below are unsupported due to their lack of support for CSS Flexbox Layout.\nThese browsers were deprecated by Microsoft (end of support) in [January 2016](https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support).\n\n@## Usage\n\nBlueprint is available as a collection of NPM packages under the `@blueprintjs` scope. The full\npackage list and their latest versions appear under the _Releases_ dropdown above.\n\nEach package contains a CSS file and a collection of CommonJS modules exposing React components.\nThe `main` module exports all symbols from all modules so you don't have to import individual files\n(though you can if you want to). The JavaScript components are stable and their APIs adhere to\n[semantic versioning](http://semver.org/).\n\n@### NPM installation\n\n1. Install the core package with an NPM client like `npm` or `yarn`, pulling in all relevant\ndependencies:\n\n ```sh\n npm install --save @blueprintjs/core\n ```\n\n1. If you see `UNMET PEER DEPENDENCY` errors, you should manually install React:\n\n ```sh\n npm install --save react react-dom react-transition-group\n ```\n\n1. After installation, you'll be able to import the React components in your application:\n\n ```tsx\n // extract specific components\n import { Intent, Spinner, DatePickerFactory } from \"@blueprintjs/core\";\n // or just take everything!\n import * as Blueprint from \"@blueprintjs/core\";\n\n // using JSX:\n const mySpinner = ;\n\n // using the namespace import:\n const anotherSpinner = ;\n\n // use factories for React.createElement shorthand if you're not using JSX.\n // every component provides a corresponding Factory.\n const myDatePicker = DatePickerFactory();\n ```\n\n1. Don't forget to include the main CSS file from each Blueprint package! Additionally, the\n`resources/` directory contains supporting media such as fonts and images.\n\n ```html\n \n \n \n \n ...\n \n \n \n ...\n \n ...\n \n ```\n\n ```css.scss\n // or, using node-style package resolution in a CSS file:\n // (dependencies' stylesheets should be resolved automatically)\n @import \"~@blueprintjs/core\";\n ```\n\n@### CDN consumption\n\nBlueprint supports the venerable [unpkg CDN](https://unpkg.com). Each package provides a UMD\n`dist/[name].bundle.js` file containing the bundled source code. The UMD wrapper exposes each\nlibrary on the `Blueprint` global variable: `Blueprint.Core`, `Blueprint.Datetime`, etc.\n\nThese bundles _do not include_ external dependencies; your application will need to ensure that\n`normalize.css`, `React`, `classnames`, and `Tether` are available at runtime.\n\n```html\n\n\n \n \n \n Blueprint Starter Kit\n \n \n \n \n \n \n \n \n \n\n
\n \n \n\n```\n\n@### DOM4\n\nBlueprint relies on a handful of DOM Level 4 API methods: `el.query`, `el.queryAll`, and\n`el.closest()`. `@blueprintjs/core` depends on a [polyfill library called `dom4`][dom4] to ensure\nthese methods are available. This module is conditionally loaded if Blueprint is used in a browser\nenvironment.\n\n[dom4]: https://webreflection.github.io/dom4/\n\n@### TypeScript\n\nBlueprint is written in TypeScript and therefore its own `.d.ts` type definitions are distributed in\nthe NPM package and should be resolved automatically by the compiler. However, you'll need to\ninstall typings for Blueprint's dependencies before you can consume it:\n\n```sh\n# required for all @blueprintjs packages:\nnpm install --save @types/pure-render-decorator @types/react @types/react-dom @types/react-transition-group\n\n# @blueprintjs/datetime requires:\nnpm install --save @types/moment\n\n# @blueprintjs/table requires:\nnpm install --save @types/es6-shim\n```\n\n
\n For more information, see the TypeScript Handbook for\n [guidance on consuming declaration files][handbook].\n
\n\n[handbook]: https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html\n\n@### Vanilla JS APIs\n\nJS components are built using React, but that does not limit their usage to just React applications.\nYou can render any component in any JavaScript application with `ReactDOM.render`. Think of it like\nusing a jQuery plugin.\n\n```tsx\nconst myContainerElement = document.querySelector(\".my-container\");\n\n// with JSX\nReactDOM.render(\n ,\n myContainerElement\n);\n\n// with vanilla JS, use the factory\nReactDOM.render(\n SpinnerFactory({\n className: \"pt-intent-primary pt-small\"\n }),\n myContainerElement\n);\n```\n\nTo remove the component from the DOM and clean up, unmount it:\n\n```tsx\nReactDOM.unmountComponentAtNode(myContainerElement);\n```\n\nCheck out the [React API docs](https://facebook.github.io/react/docs/react-api.html) for more details.\n\n\nYou'll need to install React `v15.x` or `v0.14.x` alongside Blueprint.\n\n```sh\nnpm install --save @blueprintjs/core react react-dom react-transition-group\n```\n\nImport components from the `@blueprintjs/core` module into your project.\nDon't forget to include the main CSS stylesheet too!\n\n**Review the [general usage docs](#blueprint.usage) for more complete installation instructions.**\n\n@## Understanding TypeScript\n\nBlueprint is written in [TypeScript](https://www.typescriptlang.org/), a statically typed superset\nof JavaScript that compiles to plain JavaScript. All the code samples throughout this site and\nall interactive examples are also written in TypeScript. TypeScript code looks exactly like ES2015+\ncode with the addition of type signatures, which typically appear after colons and are colored\ngold in our syntax theme.\n\n```ts\n// variables\nconst variableName: varType;\nconst name: string;\nconst disabled: boolean;\n\n// functions (and function variables)\nfunction funcName(arg1: argType, arg2: argType): returnType { }\nconst funcName: (arg1: argType) => returnType;\nfunction split(str: string, delim: string): string[] { }\nfunction map(array: T[], iterator: (item: T, index: number) => U): U[];\n\n// interfaces describe plain objects\n// (we use the convention that interfaces begin with \"I\")\ninterface IOption {\n label: string;\n value: string;\n}\nconst option: IOption = { label: \"Name\", value: \"gilad\" };\n```\n\n**You do not need to use TypeScript to consume Blueprint** (but major \"props\" if you do). Familiarity\nwith the syntax is suggested so you can follow our examples\n([the handbook](https://www.typescriptlang.org/docs/handbook/basic-types.html) has good documentation\nfor getting started). Simply ignoring the type annotations in your head will produce valid ES2015 code.\n\n@## Development & contributions\n\nMost dev-related information is on [our GitHub wiki](https://github.com/palantir/blueprint/wiki),\nincluding our [coding guidelines](https://github.com/palantir/blueprint/wiki/Coding-guidelines)\nand our [development practices](https://github.com/palantir/blueprint/wiki/Development-Practices).\n", "metadata": {} }, "table-js": { @@ -79603,9 +82060,9 @@ { "documentation": { "contents": [ - "

Whether the popover will flip to the opposite side of the target element if there is not\nenough room in the viewport. This is equivalent to:

\n
const tetherOptions = {
     constraints: { attachment: "together", to: "scrollParent" },
};
" + "

Whether the popover will flip to the opposite side of the target element if there is not\nenough room in the viewport. This is equivalent to:

\n
const tetherOptions = {
     constraints: [{ attachment: "together", to: "scrollParent" }]
};
" ], - "contentsRaw": "Whether the popover will flip to the opposite side of the target element if there is not\nenough room in the viewport. This is equivalent to:\n```\nconst tetherOptions = {\n constraints: { attachment: \"together\", to: \"scrollParent\" },\n};\n```", + "contentsRaw": "Whether the popover will flip to the opposite side of the target element if there is not\nenough room in the viewport. This is equivalent to:\n```\nconst tetherOptions = {\n constraints: [{ attachment: \"together\", to: \"scrollParent\" }]\n};\n```", "metadata": {} }, "fileName": "packages/core/dist/components/popover/popover.d.ts", @@ -80435,6 +82892,22 @@ "type": "Position.RIGHT | Position.LEFT | \"none\"", "optional": true }, + { + "documentation": { + "contents": [ + "

Whether the value should be clamped to [min, max] on blur.\nThe value will be clamped to each bound only if the bound is defined.\nNote that native input[type="number"] controls do NOT clamp on blur.

\n" + ], + "contentsRaw": "Whether the value should be clamped to `[min, max]` on blur.\nThe value will be clamped to each bound only if the bound is defined.\nNote that native `input[type=\"number\"]` controls do *NOT* clamp on blur.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/forms/numericInput.d.ts", + "name": "clampValueOnBlur", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, { "documentation": { "contents": [ @@ -80451,6 +82924,22 @@ "type": "boolean", "optional": true }, + { + "documentation": { + "contents": [ + "

If set to true, the input will display with larger styling.\nThis is equivalent to setting pt-large via className on the\nparent .pt-control-group and on the child .pt-input-group.

\n" + ], + "contentsRaw": "If set to `true`, the input will display with larger styling.\nThis is equivalent to setting `pt-large` via className on the\nparent `.pt-control-group` and on the child `.pt-input-group`.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/forms/numericInput.d.ts", + "name": "large", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, { "documentation": { "contents": [ @@ -92241,128 +94730,6 @@ "type": "\"pt-timepicker-second\"", "properties": [] }, - "IDatePickerLocaleUtils": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "IDatePickerLocaleUtils", - "tags": {}, - "type": "interface", - "properties": [ - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "formatDay", - "tags": {}, - "type": "(day: Date, locale: string) => string", - "optional": false - }, - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "formatMonthTitle", - "tags": {}, - "type": "(month: Date, locale: string) => string", - "optional": false - }, - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "formatWeekdayLong", - "tags": {}, - "type": "(weekday: number, locale: string) => string", - "optional": false - }, - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "formatWeekdayShort", - "tags": {}, - "type": "(weekday: number, locale: string) => string", - "optional": false - }, - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "getFirstDayOfWeek", - "tags": {}, - "type": "(locale: string) => number", - "optional": false - }, - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "getMonths", - "tags": {}, - "type": "(locale: string) => string[]", - "optional": false - } - ] - }, - "IDatePickerDayModifiers": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "IDatePickerDayModifiers", - "tags": {}, - "type": "interface", - "properties": [ - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "disabled", - "tags": {}, - "type": "boolean", - "optional": true - }, - { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/datetime/dist/datePickerCore.d.ts", - "name": "selected", - "tags": {}, - "type": "boolean", - "optional": true - } - ] - }, "IDatePickerModifiers": { "documentation": { "contents": [], @@ -92425,7 +94792,7 @@ "fileName": "packages/datetime/dist/datePickerCore.d.ts", "name": "localeUtils", "tags": {}, - "type": "IDatePickerLocaleUtils", + "type": "DayPicker.LocaleUtils", "optional": true }, { @@ -97875,34 +100242,34 @@ }; /***/ }, -/* 524 */ +/* 548 */ /***/ function(module, exports) { module.exports = [ { "name": "@blueprintjs/core", - "version": "1.16.0" + "version": "1.17.0" }, { "name": "@blueprintjs/datetime", - "version": "1.14.1" + "version": "1.15.0" }, { "name": "@blueprintjs/docs", - "version": "1.0.0" + "version": "1.1.0" }, { "name": "@blueprintjs/table", - "version": "1.13.0" + "version": "1.14.0" } ]; /***/ }, -/* 525 */ +/* 549 */ /***/ function(module, exports) { module.exports = [ - "1.16.0" + "1.17.0" ]; /***/ } diff --git a/package.json b/package.json index b229484ac5..3a4ff93373 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blueprint", - "version": "1.16.0", + "version": "1.17.0", "private": true, "description": "A React UI toolkit for the web.", "scripts": { diff --git a/packages/core/package.json b/packages/core/package.json index 959a17b453..8949ffe45e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/core", - "version": "1.16.0", + "version": "1.17.0", "description": "Core styles & components", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/datetime/package.json b/packages/datetime/package.json index c21206e169..69491e62cc 100644 --- a/packages/datetime/package.json +++ b/packages/datetime/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/datetime", - "version": "1.14.1", + "version": "1.15.0", "description": "Components for interacting with dates and times", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/docs/package.json b/packages/docs/package.json index 97b50b3cb8..86a659aea6 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/docs", - "version": "1.0.0", + "version": "1.1.0", "description": "Blueprint theme for documentalist", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/site-docs/package.json b/packages/site-docs/package.json index e03c8b3cfc..620a25f429 100644 --- a/packages/site-docs/package.json +++ b/packages/site-docs/package.json @@ -1,13 +1,13 @@ { "name": "blueprintjs.com/docs", - "version": "1.16.0", + "version": "1.17.0", "description": "Blueprint Docs", "private": true, "dependencies": { - "@blueprintjs/core": "^1.16.0", - "@blueprintjs/datetime": "^1.14.1", - "@blueprintjs/docs": "^1.0.0", - "@blueprintjs/table": "^1.13.0", + "@blueprintjs/core": "^1.17.0", + "@blueprintjs/datetime": "^1.15.0", + "@blueprintjs/docs": "^1.1.0", + "@blueprintjs/table": "^1.14.0", "bourbon": "4.2.2", "chroma-js": "1.1.1", "classnames": "2.2.5", diff --git a/packages/table/package.json b/packages/table/package.json index 4829e5253b..76e7752050 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/table", - "version": "1.13.0", + "version": "1.14.0", "description": "Scalable interactive table component", "main": "dist/index.js", "typings": "dist/index.d.ts",