@@ -5295,146 +5679,81 @@
// return element.offsetParent;
// }
// 统一的 offsetParent 方法
-
-
- var doc = utils.getDocument(element);
+ var doc = _utils2['default'].getDocument(element);
var body = doc.body;
- var parent;
- var positionStyle = utils.css(element, 'position');
+ var parent = void 0;
+ var positionStyle = _utils2['default'].css(element, 'position');
var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
if (!skipStatic) {
- return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
+ return element.nodeName.toLowerCase() === 'html' ? null : element.parentNode;
}
- for (parent = getParent(element); parent && parent !== body; parent = getParent(parent)) {
- positionStyle = utils.css(parent, 'position');
-
+ for (parent = element.parentNode; parent && parent !== body; parent = parent.parentNode) {
+ positionStyle = _utils2['default'].css(parent, 'position');
if (positionStyle !== 'static') {
return parent;
}
}
-
return null;
}
- var getParent$1 = utils.getParent;
+ exports['default'] = getOffsetParent;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 58 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports['default'] = isAncestorFixed;
+
+ var _utils = __webpack_require__(54);
+
+ var _utils2 = _interopRequireDefault(_utils);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
function isAncestorFixed(element) {
- if (utils.isWindow(element) || element.nodeType === 9) {
+ if (_utils2['default'].isWindow(element) || element.nodeType === 9) {
return false;
}
- var doc = utils.getDocument(element);
+ var doc = _utils2['default'].getDocument(element);
var body = doc.body;
var parent = null;
-
- for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) {
- var positionStyle = utils.css(parent, 'position');
-
+ for (parent = element.parentNode; parent && parent !== body; parent = parent.parentNode) {
+ var positionStyle = _utils2['default'].css(parent, 'position');
if (positionStyle === 'fixed') {
return true;
}
}
-
return false;
}
+ module.exports = exports['default'];
+
+/***/ }),
+/* 59 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
- /**
- * 获得元素的显示部分的区域
- */
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
- function getVisibleRectForElement(element) {
- var visibleRect = {
- left: 0,
- right: Infinity,
- top: 0,
- bottom: Infinity
- };
- var el = getOffsetParent(element);
- var doc = utils.getDocument(element);
- var win = doc.defaultView || doc.parentWindow;
- var body = doc.body;
- var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for
- // all scrollable containers.
+ var _utils = __webpack_require__(54);
- while (el) {
- // clientWidth is zero for inline block elements in ie.
- if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
- // viewport. In some browsers, el.offsetParent may be
- // document.documentElement, so check for that too.
- el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
- var pos = utils.offset(el); // add border
+ var _utils2 = _interopRequireDefault(_utils);
- pos.left += el.clientLeft;
- pos.top += el.clientTop;
- visibleRect.top = Math.max(visibleRect.top, pos.top);
- visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar
- pos.left + el.clientWidth);
- visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
- visibleRect.left = Math.max(visibleRect.left, pos.left);
- } else if (el === body || el === documentElement) {
- break;
- }
-
- el = getOffsetParent(el);
- } // Set element position to fixed
- // make sure absolute element itself don't affect it's visible area
- // https://github.com/ant-design/ant-design/issues/7601
-
-
- var originalPosition = null;
-
- if (!utils.isWindow(element) && element.nodeType !== 9) {
- originalPosition = element.style.position;
- var position = utils.css(element, 'position');
-
- if (position === 'absolute') {
- element.style.position = 'fixed';
- }
- }
-
- var scrollX = utils.getWindowScrollLeft(win);
- var scrollY = utils.getWindowScrollTop(win);
- var viewportWidth = utils.viewportWidth(win);
- var viewportHeight = utils.viewportHeight(win);
- var documentWidth = documentElement.scrollWidth;
- var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
- // We should cut this ourself.
-
- var bodyStyle = window.getComputedStyle(body);
-
- if (bodyStyle.overflowX === 'hidden') {
- documentWidth = win.innerWidth;
- }
-
- if (bodyStyle.overflowY === 'hidden') {
- documentHeight = win.innerHeight;
- } // Reset element position after calculate the visible area
-
-
- if (element.style) {
- element.style.position = originalPosition;
- }
-
- if (isAncestorFixed(element)) {
- // Clip by viewport's size.
- visibleRect.left = Math.max(visibleRect.left, scrollX);
- visibleRect.top = Math.max(visibleRect.top, scrollY);
- visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
- visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
- } else {
- // Clip by document's size.
- var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
- visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
- var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
- visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
- }
-
- return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
- }
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
- var pos = utils.clone(elFuturePos);
+ var pos = _utils2['default'].clone(elFuturePos);
var size = {
width: elRegion.width,
height: elRegion.height
@@ -5442,70 +5761,131 @@
if (overflow.adjustX && pos.left < visibleRect.left) {
pos.left = visibleRect.left;
- } // Left edge inside and right edge outside viewport, try to resize it.
-
+ }
+ // Left edge inside and right edge outside viewport, try to resize it.
if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
size.width -= pos.left + size.width - visibleRect.right;
- } // Right edge outside viewport, try to move it.
-
+ }
+ // Right edge outside viewport, try to move it.
if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
// 保证左边界和可视区域左边界对齐
pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
- } // Top edge outside viewport, try to move it.
-
+ }
+ // Top edge outside viewport, try to move it.
if (overflow.adjustY && pos.top < visibleRect.top) {
pos.top = visibleRect.top;
- } // Top edge inside and bottom edge outside viewport, try to resize it.
-
+ }
+ // Top edge inside and bottom edge outside viewport, try to resize it.
if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
size.height -= pos.top + size.height - visibleRect.bottom;
- } // Bottom edge outside viewport, try to move it.
-
+ }
+ // Bottom edge outside viewport, try to move it.
if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
// 保证上边界和可视区域上边界对齐
pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
}
- return utils.mix(pos, size);
+ return _utils2['default'].mix(pos, size);
}
+ exports['default'] = adjustForViewport;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 60 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _utils = __webpack_require__(54);
+
+ var _utils2 = _interopRequireDefault(_utils);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
function getRegion(node) {
- var offset;
- var w;
- var h;
-
- if (!utils.isWindow(node) && node.nodeType !== 9) {
- offset = utils.offset(node);
- w = utils.outerWidth(node);
- h = utils.outerHeight(node);
+ var offset = void 0;
+ var w = void 0;
+ var h = void 0;
+ if (!_utils2['default'].isWindow(node) && node.nodeType !== 9) {
+ offset = _utils2['default'].offset(node);
+ w = _utils2['default'].outerWidth(node);
+ h = _utils2['default'].outerHeight(node);
} else {
- var win = utils.getWindow(node);
+ var win = _utils2['default'].getWindow(node);
offset = {
- left: utils.getWindowScrollLeft(win),
- top: utils.getWindowScrollTop(win)
+ left: _utils2['default'].getWindowScrollLeft(win),
+ top: _utils2['default'].getWindowScrollTop(win)
};
- w = utils.viewportWidth(win);
- h = utils.viewportHeight(win);
+ w = _utils2['default'].viewportWidth(win);
+ h = _utils2['default'].viewportHeight(win);
}
-
offset.width = w;
offset.height = h;
return offset;
}
+ exports['default'] = getRegion;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 61 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _getAlignOffset = __webpack_require__(62);
+
+ var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
+ var p1 = (0, _getAlignOffset2['default'])(refNodeRegion, points[1]);
+ var p2 = (0, _getAlignOffset2['default'])(elRegion, points[0]);
+ var diff = [p2.left - p1.left, p2.top - p1.top];
+
+ return {
+ left: elRegion.left - diff[0] + offset[0] - targetOffset[0],
+ top: elRegion.top - diff[1] + offset[1] - targetOffset[1]
+ };
+ }
+
+ exports['default'] = getElFuturePos;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 62 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
/**
* 获取 node 上的 align 对齐点 相对于页面的坐标
*/
+
function getAlignOffset(region, align) {
var V = align.charAt(0);
var H = align.charAt(1);
var w = region.width;
var h = region.height;
+
var x = region.left;
var y = region.top;
@@ -5527,286 +5907,47 @@
};
}
- function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
- var p1 = getAlignOffset(refNodeRegion, points[1]);
- var p2 = getAlignOffset(elRegion, points[0]);
- var diff = [p2.left - p1.left, p2.top - p1.top];
- return {
- left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),
- top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])
- };
- }
+ exports['default'] = getAlignOffset;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 63 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
- /**
- * align dom node flexibly
- * @author yiminghe@gmail.com
- */
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
- function isFailX(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
- }
+ 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 isFailY(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
- }
+ var _utils = __webpack_require__(54);
- function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
- }
+ var _utils2 = _interopRequireDefault(_utils);
- function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
- }
+ var _align = __webpack_require__(53);
- function flip(points, reg, map) {
- var ret = [];
- utils.each(points, function (p) {
- ret.push(p.replace(reg, function (m) {
- return map[m];
- }));
- });
- return ret;
- }
+ var _align2 = _interopRequireDefault(_align);
- function flipOffset(offset, index) {
- offset[index] = -offset[index];
- return offset;
- }
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
- function convertOffset(str, offsetLen) {
- var n;
-
- if (/%$/.test(str)) {
- n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
- } else {
- n = parseInt(str, 10);
- }
-
- return n || 0;
- }
-
- function normalizeOffset(offset, el) {
- offset[0] = convertOffset(offset[0], el.width);
- offset[1] = convertOffset(offset[1], el.height);
- }
- /**
- * @param el
- * @param tgtRegion 参照节点所占的区域: { left, top, width, height }
- * @param align
- */
-
-
- function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
- var points = align.points;
- var offset = align.offset || [0, 0];
- var targetOffset = align.targetOffset || [0, 0];
- var overflow = align.overflow;
- var source = align.source || el;
- offset = [].concat(offset);
- targetOffset = [].concat(targetOffset);
- overflow = overflow || {};
- var newOverflowCfg = {};
- var fail = 0; // 当前节点可以被放置的显示区域
-
- var visibleRect = getVisibleRectForElement(source); // 当前节点所占的区域, left/top/width/height
-
- var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比
-
- normalizeOffset(offset, elRegion);
- normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置
-
- var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域
-
- var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整
-
- if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
- if (overflow.adjustX) {
- // 如果横向不能放下
- if (isFailX(elFuturePos, elRegion, visibleRect)) {
- // 对齐位置反下
- var newPoints = flip(points, /[lr]/gi, {
- l: 'r',
- r: 'l'
- }); // 偏移量也反下
-
- var newOffset = flipOffset(offset, 0);
- var newTargetOffset = flipOffset(targetOffset, 0);
- var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
-
- if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
- fail = 1;
- points = newPoints;
- offset = newOffset;
- targetOffset = newTargetOffset;
- }
- }
- }
-
- if (overflow.adjustY) {
- // 如果纵向不能放下
- if (isFailY(elFuturePos, elRegion, visibleRect)) {
- // 对齐位置反下
- var _newPoints = flip(points, /[tb]/gi, {
- t: 'b',
- b: 't'
- }); // 偏移量也反下
-
-
- var _newOffset = flipOffset(offset, 1);
-
- var _newTargetOffset = flipOffset(targetOffset, 1);
-
- var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
-
- if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
- fail = 1;
- points = _newPoints;
- offset = _newOffset;
- targetOffset = _newTargetOffset;
- }
- }
- } // 如果失败,重新计算当前节点将要被放置的位置
-
-
- if (fail) {
- elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
- utils.mix(newElRegion, elFuturePos);
- }
-
- var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
- var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下:
- // 1. 复原修改过的定位参数
-
- if (isStillFailX || isStillFailY) {
- points = align.points;
- offset = align.offset || [0, 0];
- targetOffset = align.targetOffset || [0, 0];
- } // 2. 只有指定了可以调整当前方向才调整
-
-
- newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
- newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度
-
- if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
- newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
- }
- } // need judge to in case set fixed with in css on height auto element
-
-
- if (newElRegion.width !== elRegion.width) {
- utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
- }
-
- if (newElRegion.height !== elRegion.height) {
- utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
- } // https://github.com/kissyteam/kissy/issues/190
- // 相对于屏幕位置没变,而 left/top 变了
- // 例如
-
-
- utils.offset(source, {
- left: newElRegion.left,
- top: newElRegion.top
- }, {
- useCssRight: align.useCssRight,
- useCssBottom: align.useCssBottom,
- useCssTransform: align.useCssTransform,
- ignoreShake: align.ignoreShake
- });
- return {
- points: points,
- offset: offset,
- targetOffset: targetOffset,
- overflow: newOverflowCfg
- };
- }
- /**
- * 2012-04-26 yiminghe@gmail.com
- * - 优化智能对齐算法
- * - 慎用 resizeXX
- *
- * 2011-07-13 yiminghe@gmail.com note:
- * - 增加智能对齐,以及大小调整选项
- **/
-
- function isOutOfVisibleRect(target) {
- var visibleRect = getVisibleRectForElement(target);
- var targetRegion = getRegion(target);
- return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
- }
-
- function alignElement(el, refNode, align) {
- var target = align.target || refNode;
- var refNodeRegion = getRegion(target);
- var isTargetNotOutOfVisible = !isOutOfVisibleRect(target);
- return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
- }
-
- alignElement.__getOffsetParent = getOffsetParent;
- alignElement.__getVisibleRectForElement = getVisibleRectForElement;
-
- function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
-
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
-
- return keys;
- }
-
- function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
-
- if (i % 2) {
- ownKeys(source, true).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(source).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
-
- return target;
- }
-
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
- }
/**
* `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
* If client position provided, will internal convert to page position.
*/
function alignPoint(el, tgtPoint, align) {
- var pageX;
- var pageY;
- var doc = utils.getDocument(el);
+ var pageX = void 0;
+ var pageY = void 0;
+
+ var doc = _utils2['default'].getDocument(el);
var win = doc.defaultView || doc.parentWindow;
- var scrollX = utils.getWindowScrollLeft(win);
- var scrollY = utils.getWindowScrollTop(win);
- var viewportWidth = utils.viewportWidth(win);
- var viewportHeight = utils.viewportHeight(win);
+
+ var scrollX = _utils2['default'].getWindowScrollLeft(win);
+ var scrollY = _utils2['default'].getWindowScrollTop(win);
+ var viewportWidth = _utils2['default'].viewportWidth(win);
+ var viewportHeight = _utils2['default'].viewportHeight(win);
if ('pageX' in tgtPoint) {
pageX = tgtPoint.pageX;
@@ -5826,21 +5967,20 @@
width: 0,
height: 0
};
- var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point
+ var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight;
+
+ // Provide default target point
var points = [align.points[0], 'cc'];
- return doAlign(el, tgtRegion, _objectSpread({}, align, {
- points: points
- }), pointInView);
+
+ return (0, _align2['default'])(el, tgtRegion, _extends({}, align, { points: points }), pointInView);
}
- exports.alignElement = alignElement;
- exports.alignPoint = alignPoint;
- exports.default = alignElement;
-
+ exports['default'] = alignPoint;
+ module.exports = exports['default'];
/***/ }),
-/* 52 */
+/* 64 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -5961,7 +6101,7 @@
module.exports = exports['default'];
/***/ }),
-/* 53 */
+/* 65 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -5970,7 +6110,7 @@
value: true
});
- var _Message = __webpack_require__(54);
+ var _Message = __webpack_require__(66);
var _Message2 = _interopRequireDefault(_Message);
@@ -5980,7 +6120,7 @@
module.exports = exports['default'];
/***/ }),
-/* 54 */
+/* 66 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -5995,7 +6135,7 @@
var _react2 = _interopRequireDefault(_react);
- var _beeNotification = __webpack_require__(55);
+ var _beeNotification = __webpack_require__(67);
var _beeNotification2 = _interopRequireDefault(_beeNotification);
@@ -6003,44 +6143,38 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _warning = __webpack_require__(32);
-
- var _warning2 = _interopRequireDefault(_warning);
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var defaultDuration = 1.5;
var newDuration = void 0;
- var defaultTop = 24;
+ var defaultTop = 0;
var defaultBottom = 48;
var bottom = 90;
var padding = 30;
- var width = 240;
+ var width = 200;
var messageInstance = void 0;
var key = 1;
var clsPrefix = 'u-message';
var noop = function noop() {};
- var notificationStyle_copy = {};
- var messageStyle_copy = {};
- var positionType = ['topRight', 'bottomRight', 'top', 'bottom', 'topLeft', 'bottomLeft', ''];
- var defaultStyle = {};
var positionObj = {
"top": {
- messageStyle: {},
+ messageStyle: {
+ width: "100%"
+ },
notificationStyle: {
top: defaultTop,
- left: '50%',
- transform: 'translateX( -50%)'
+ width: "100%"
},
transitionName: 'top'
},
"bottom": {
- messageStyle: {},
+ messageStyle: {
+ width: "100%"
+ },
notificationStyle: {
bottom: defaultBottom,
- left: '50%',
- transform: 'translateX( -50%)'
+ width: "100%"
},
transitionName: 'bottom'
},
@@ -6102,29 +6236,29 @@
}
switch (position) {
case 'top':
- notificationStyle_copy.top = defaultTop;
+ positionObj[position].notificationStyle.top = defaultTop;
break;
case 'bottom':
- notificationStyle_copy.bottom = defaultBottom;
+ positionObj[position].notificationStyle.bottom = defaultBottom;
break;
case 'bottomRight':
- notificationStyle_copy.bottom = bottom;
+ positionObj[position].notificationStyle.bottom = bottom;
break;
case 'bottomLeft':
- notificationStyle_copy.bottom = bottom;
+ positionObj[position].notificationStyle.bottom = bottom;
break;
default:
break;
}
if (position !== 'top' && position !== 'bottom') {
- messageStyle_copy.width = width;
+ positionObj[position].messageStyle.width = width;
}
- var style = JSON.stringify(notificationStyle_copy) == "{}" ? positionObj[position].notificationStyle : notificationStyle_copy;
+ var style = positionObj[position].notificationStyle;
var instanceObj = {
clsPrefix: clsPrefix,
transitionName: clsPrefix + '-' + positionObj[position].transitionName,
- style: _extends({}, style, defaultStyle), // 覆盖原来的样式
- position: position
+ style: style, // 覆盖原来的样式
+ position: ''
};
if (typeof keyboard === 'boolean') {
instanceObj.keyboard = keyboard;
@@ -6138,33 +6272,22 @@
});
}
- function notice(content, duration_arg, type, onClose, position, style, keyboard, onEscapeKeyUp, showIcon) {
- if (positionType.findIndex(function (item) {
- return item === position;
- }) < 0) {
- (0, _warning2["default"])(false, 'Failed prop type: Invalid prop `position` supplied to `Message`, expected one of ["top","bottom","topRight","topLeft","bottomRight","bottomLeft"].');
- return;
- }
- var duration = duration_arg !== undefined ? duration_arg : defaultDuration;
- notificationStyle_copy = _extends({}, positionObj[position].notificationStyle);
- messageStyle_copy = _extends({}, positionObj[position].messageStyle);
-
+ function notice(content, duration, type, onClose, position, style, keyboard, onEscapeKeyUp, showIcon) {
var iconType = {
info: 'uf uf-i-c-2',
success: 'uf uf-correct',
- danger: 'uf uf-exc-c',
+ danger: 'uf uf-close-c',
warning: 'uf uf-exc-t',
light: 'uf uf-notification',
- dark: 'uf uf-notification',
+ dark: 'uf uf-bubble',
news: 'uf uf-bell',
infolight: 'uf uf-i-c-2',
successlight: 'uf uf-correct',
- dangerlight: 'uf uf-exc-c',
+ dangerlight: 'uf uf-close-c',
warninglight: 'uf uf-exc-t'
}[type];
- var positionStyle = JSON.stringify(messageStyle_copy) == "{}" ? positionObj[position].messageStyle : messageStyle_copy;
- defaultStyle = _extends({}, positionStyle, style);
+ var positionStyle = positionObj[position].messageStyle;
getMessageInstance(position, function (instance) {
instance.notice({
key: key,
@@ -6206,11 +6329,11 @@
}
var content = obj.content || '';
var duration = typeof obj.duration == 'undefined' ? defaultDuration : obj.duration;
- var color = obj.color || 'light';
+ var color = obj.color || 'dark';
var onClose = obj.onClose || noop;
var position = obj.position || "top";
var style = obj.style || {};
- var showIcon = obj.showIcon || true;
+ var showIcon = obj.showIcon || false;
return notice(content, duration, color, onClose, position, style, obj.keyboard, obj.onEscapeKeyUp, showIcon);
},
config: function config(options) {
@@ -6238,23 +6361,13 @@
if (messageInstance) {
messageInstance.destroy();
messageInstance = null;
- defaultDuration = 1.5;
- newDuration = undefined;
- defaultTop = 24;
- defaultBottom = 48;
- bottom = 90;
- padding = 30;
- width = 240;
- notificationStyle_copy = null;
- messageStyle_copy = null;
- defaultStyle = null;
}
}
};
module.exports = exports['default'];
/***/ }),
-/* 55 */
+/* 67 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -6263,7 +6376,7 @@
value: true
});
- var _Notification = __webpack_require__(56);
+ var _Notification = __webpack_require__(68);
var _Notification2 = _interopRequireDefault(_Notification);
@@ -6273,7 +6386,7 @@
module.exports = exports['default'];
/***/ }),
-/* 56 */
+/* 68 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -6296,7 +6409,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _beeAnimate = __webpack_require__(57);
+ var _beeAnimate = __webpack_require__(69);
var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
@@ -6304,11 +6417,11 @@
var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
- var _ownerDocument = __webpack_require__(62);
+ var _ownerDocument = __webpack_require__(74);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _addEventListener = __webpack_require__(64);
+ var _addEventListener = __webpack_require__(76);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
@@ -6316,7 +6429,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _Notice = __webpack_require__(66);
+ var _Notice = __webpack_require__(78);
var _Notice2 = _interopRequireDefault(_Notice);
@@ -6343,7 +6456,7 @@
show: _propTypes2["default"].bool,
clsPrefix: _propTypes2["default"].string,
style: _propTypes2["default"].object,
- position: _propTypes2["default"].oneOf(['topRight', 'bottomRight', 'top', 'bottom', 'topLeft', 'bottomLeft', '']),
+ position: _propTypes2["default"].oneOf(['topRight', 'bottomRight', '']),
transitionName: _propTypes2["default"].string,
keyboard: _propTypes2["default"].bool, // 按esc键是否关闭notice
onEscapeKeyUp: _propTypes2["default"].func, // 设置esc键特殊钩子函数
@@ -6431,8 +6544,8 @@
});
};
- /**
- * 处理绑定在document上的keyup事件
+ /**
+ * 处理绑定在document上的keyup事件
*/
@@ -6519,7 +6632,7 @@
module.exports = exports['default'];
/***/ }),
-/* 57 */
+/* 69 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -6528,7 +6641,7 @@
value: true
});
- var _Animate = __webpack_require__(58);
+ var _Animate = __webpack_require__(70);
var _Animate2 = _interopRequireDefault(_Animate);
@@ -6538,7 +6651,7 @@
module.exports = exports['default'];
/***/ }),
-/* 58 */
+/* 70 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -6555,13 +6668,13 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _ChildrenUtils = __webpack_require__(59);
+ var _ChildrenUtils = __webpack_require__(71);
- var _AnimateChild = __webpack_require__(60);
+ var _AnimateChild = __webpack_require__(72);
var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
- var _util = __webpack_require__(61);
+ var _util = __webpack_require__(73);
var _util2 = _interopRequireDefault(_util);
@@ -6918,7 +7031,7 @@
module.exports = exports['default'];
/***/ }),
-/* 59 */
+/* 71 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7040,7 +7153,7 @@
}
/***/ }),
-/* 60 */
+/* 72 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7065,7 +7178,7 @@
var _tinperBeeCore = __webpack_require__(27);
- var _util = __webpack_require__(61);
+ var _util = __webpack_require__(73);
var _util2 = _interopRequireDefault(_util);
@@ -7183,7 +7296,7 @@
module.exports = exports['default'];
/***/ }),
-/* 61 */
+/* 73 */
/***/ (function(module, exports) {
"use strict";
@@ -7215,7 +7328,7 @@
module.exports = exports["default"];
/***/ }),
-/* 62 */
+/* 74 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7232,7 +7345,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _ownerDocument = __webpack_require__(63);
+ var _ownerDocument = __webpack_require__(75);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -7241,7 +7354,7 @@
module.exports = exports['default'];
/***/ }),
-/* 63 */
+/* 75 */
/***/ (function(module, exports) {
"use strict";
@@ -7256,7 +7369,7 @@
module.exports = exports["default"];
/***/ }),
-/* 64 */
+/* 76 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7279,7 +7392,7 @@
var _on2 = _interopRequireDefault(_on);
- var _off = __webpack_require__(65);
+ var _off = __webpack_require__(77);
var _off2 = _interopRequireDefault(_off);
@@ -7288,7 +7401,7 @@
module.exports = exports['default'];
/***/ }),
-/* 65 */
+/* 77 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -7317,7 +7430,7 @@
module.exports = exports["default"];
/***/ }),
-/* 66 */
+/* 78 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7338,10 +7451,6 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _beeIcon = __webpack_require__(67);
-
- var _beeIcon2 = _interopRequireDefault(_beeIcon);
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
@@ -7447,11 +7556,7 @@
closable ? _react2["default"].createElement(
'a',
{ tabIndex: '0', onClick: this.close, className: componentClass + '-close' },
- _react2["default"].createElement(
- 'span',
- { className: componentClass + '-close-x' },
- _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-close' })
- )
+ _react2["default"].createElement('span', { className: componentClass + '-close-x' })
) : null
);
};
@@ -7468,110 +7573,12 @@
module.exports = exports['default'];
/***/ }),
-/* 67 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Icon = __webpack_require__(68);
-
- var _Icon2 = _interopRequireDefault(_Icon);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Icon2["default"];
- module.exports = exports['default'];
-
-/***/ }),
-/* 68 */
-/***/ (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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _classnames = __webpack_require__(5);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); }
-
- var propTypes = {
- type: _propTypes2["default"].string
-
- };
- /**
- * badge 默认显示内容1
- */
- var defaultProps = {
- clsPrefix: 'uf'
- };
-
- var Icon = function (_Component) {
- _inherits(Icon, _Component);
-
- function Icon(props) {
- _classCallCheck(this, Icon);
-
- return _possibleConstructorReturn(this, _Component.call(this, props));
- }
-
- Icon.prototype.render = function render() {
- var _props = this.props,
- type = _props.type,
- className = _props.className,
- clsPrefix = _props.clsPrefix,
- others = _objectWithoutProperties(_props, ['type', 'className', 'clsPrefix']);
-
- var clsObj = {};
-
- var classNames = (0, _classnames2["default"])(clsPrefix, type);
-
- return _react2["default"].createElement('i', _extends({}, others, { className: (0, _classnames2["default"])(classNames, className) }));
- };
-
- return Icon;
- }(_react.Component);
-
- Icon.defaultProps = defaultProps;
- Icon.propTypes = propTypes;
-
- exports["default"] = Icon;
- module.exports = exports['default'];
-
-/***/ }),
-/* 69 */
+/* 79 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- var deselectCurrent = __webpack_require__(70);
+ var deselectCurrent = __webpack_require__(80);
var defaultMessage = "Copy to clipboard: #{key}, Enter";
@@ -7666,7 +7673,7 @@
/***/ }),
-/* 70 */
+/* 80 */
/***/ (function(module, exports) {
@@ -7711,7 +7718,7 @@
/***/ }),
-/* 71 */
+/* 81 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7858,7 +7865,7 @@
module.exports = exports['default'];
/***/ }),
-/* 72 */
+/* 82 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7867,7 +7874,7 @@
value: true
});
- var _Drawer = __webpack_require__(73);
+ var _Drawer = __webpack_require__(83);
var _Drawer2 = _interopRequireDefault(_Drawer);
@@ -7877,7 +7884,7 @@
module.exports = exports['default'];
/***/ }),
-/* 73 */
+/* 83 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -7902,9 +7909,9 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _common = __webpack_require__(74);
+ var _common = __webpack_require__(84);
- var _reactTransitionGroup = __webpack_require__(75);
+ var _reactTransitionGroup = __webpack_require__(85);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -8180,7 +8187,7 @@
module.exports = exports['default'];
/***/ }),
-/* 74 */
+/* 84 */
/***/ (function(module, exports) {
'use strict';
@@ -8207,18 +8214,18 @@
}
/***/ }),
-/* 75 */
+/* 85 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- var _CSSTransition = _interopRequireDefault(__webpack_require__(76));
+ var _CSSTransition = _interopRequireDefault(__webpack_require__(86));
- var _ReplaceTransition = _interopRequireDefault(__webpack_require__(83));
+ var _ReplaceTransition = _interopRequireDefault(__webpack_require__(93));
- var _TransitionGroup = _interopRequireDefault(__webpack_require__(84));
+ var _TransitionGroup = _interopRequireDefault(__webpack_require__(94));
- var _Transition = _interopRequireDefault(__webpack_require__(80));
+ var _Transition = _interopRequireDefault(__webpack_require__(90));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -8230,7 +8237,7 @@
};
/***/ }),
-/* 76 */
+/* 86 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -8240,15 +8247,15 @@
var PropTypes = _interopRequireWildcard(__webpack_require__(6));
- var _addClass = _interopRequireDefault(__webpack_require__(77));
+ var _addClass = _interopRequireDefault(__webpack_require__(87));
- var _removeClass = _interopRequireDefault(__webpack_require__(79));
+ var _removeClass = _interopRequireDefault(__webpack_require__(89));
var _react = _interopRequireDefault(__webpack_require__(1));
- var _Transition = _interopRequireDefault(__webpack_require__(80));
+ var _Transition = _interopRequireDefault(__webpack_require__(90));
- var _PropTypes = __webpack_require__(82);
+ var _PropTypes = __webpack_require__(92);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -8600,7 +8607,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 77 */
+/* 87 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -8610,7 +8617,7 @@
exports.__esModule = true;
exports.default = addClass;
- var _hasClass = _interopRequireDefault(__webpack_require__(78));
+ var _hasClass = _interopRequireDefault(__webpack_require__(88));
function addClass(element, className) {
if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
@@ -8619,7 +8626,7 @@
module.exports = exports["default"];
/***/ }),
-/* 78 */
+/* 88 */
/***/ (function(module, exports) {
"use strict";
@@ -8634,7 +8641,7 @@
module.exports = exports["default"];
/***/ }),
-/* 79 */
+/* 89 */
/***/ (function(module, exports) {
'use strict';
@@ -8648,7 +8655,7 @@
};
/***/ }),
-/* 80 */
+/* 90 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -8662,9 +8669,9 @@
var _reactDom = _interopRequireDefault(__webpack_require__(2));
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _PropTypes = __webpack_require__(82);
+ var _PropTypes = __webpack_require__(92);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -9263,7 +9270,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 81 */
+/* 91 */
/***/ (function(module, exports) {
'use strict';
@@ -9431,7 +9438,7 @@
/***/ }),
-/* 82 */
+/* 92 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -9465,7 +9472,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 83 */
+/* 93 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -9479,7 +9486,7 @@
var _reactDom = __webpack_require__(2);
- var _TransitionGroup = _interopRequireDefault(__webpack_require__(84));
+ var _TransitionGroup = _interopRequireDefault(__webpack_require__(94));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -9621,7 +9628,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 84 */
+/* 94 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -9633,9 +9640,9 @@
var _react = _interopRequireDefault(__webpack_require__(1));
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _ChildMapping = __webpack_require__(85);
+ var _ChildMapping = __webpack_require__(95);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -9835,7 +9842,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 85 */
+/* 95 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -9990,7 +9997,7 @@
}
/***/ }),
-/* 86 */
+/* 96 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -9999,7 +10006,7 @@
value: true
});
- var _Clipboard = __webpack_require__(87);
+ var _Clipboard = __webpack_require__(97);
var _Clipboard2 = _interopRequireDefault(_Clipboard);
@@ -10009,7 +10016,7 @@
module.exports = exports['default'];
/***/ }),
-/* 87 */
+/* 97 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -10022,7 +10029,7 @@
var _react2 = _interopRequireDefault(_react);
- var _clipboard = __webpack_require__(88);
+ var _clipboard = __webpack_require__(98);
var _clipboard2 = _interopRequireDefault(_clipboard);
@@ -10030,7 +10037,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -10038,7 +10045,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _beeTooltip = __webpack_require__(96);
+ var _beeTooltip = __webpack_require__(108);
var _beeTooltip2 = _interopRequireDefault(_beeTooltip);
@@ -10046,21 +10053,21 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _tool = __webpack_require__(120);
+ var _tool = __webpack_require__(132);
- var _i18n = __webpack_require__(121);
+ var _i18n = __webpack_require__(133);
var _i18n2 = _interopRequireDefault(_i18n);
- var _beeModal = __webpack_require__(122);
+ var _beeModal = __webpack_require__(134);
var _beeModal2 = _interopRequireDefault(_beeModal);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _beeButton = __webpack_require__(264);
+ var _beeButton = __webpack_require__(260);
var _beeButton2 = _interopRequireDefault(_beeButton);
@@ -10168,7 +10175,7 @@
return _react2["default"].createElement(
_beeTooltip2["default"],
- { className: 'u-clipboard-tooltip',
+ {
positionTop: '20px',
overlay: tootipContent,
placement: 'top' },
@@ -10232,12 +10239,12 @@
module.exports = exports['default'];
/***/ }),
-/* 88 */
+/* 98 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, __webpack_require__(89), __webpack_require__(91), __webpack_require__(92)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, __webpack_require__(99), __webpack_require__(101), __webpack_require__(102)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));
} else {
@@ -10444,12 +10451,12 @@
});
/***/ }),
-/* 89 */
+/* 99 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, __webpack_require__(90)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, __webpack_require__(100)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, require('select'));
} else {
@@ -10678,7 +10685,7 @@
});
/***/ }),
-/* 90 */
+/* 100 */
/***/ (function(module, exports) {
function select(element) {
@@ -10727,7 +10734,7 @@
/***/ }),
-/* 91 */
+/* 101 */
/***/ (function(module, exports) {
function E () {
@@ -10800,11 +10807,11 @@
/***/ }),
-/* 92 */
+/* 102 */
/***/ (function(module, exports, __webpack_require__) {
- var is = __webpack_require__(93);
- var delegate = __webpack_require__(94);
+ var is = __webpack_require__(103);
+ var delegate = __webpack_require__(104);
/**
* Validates all params and calls the right
@@ -10901,7 +10908,7 @@
/***/ }),
-/* 93 */
+/* 103 */
/***/ (function(module, exports) {
/**
@@ -10956,10 +10963,10 @@
/***/ }),
-/* 94 */
+/* 104 */
/***/ (function(module, exports, __webpack_require__) {
- var closest = __webpack_require__(95);
+ var closest = __webpack_require__(105);
/**
* Delegates event to a selector.
@@ -11040,7 +11047,7 @@
/***/ }),
-/* 95 */
+/* 105 */
/***/ (function(module, exports) {
var DOCUMENT_NODE_TYPE = 9;
@@ -11079,7 +11086,7 @@
/***/ }),
-/* 96 */
+/* 106 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -11088,7 +11095,105 @@
value: true
});
- var _Tooltip = __webpack_require__(97);
+ var _Icon = __webpack_require__(107);
+
+ var _Icon2 = _interopRequireDefault(_Icon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Icon2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 107 */
+/***/ (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 _react = __webpack_require__(1);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _classnames = __webpack_require__(5);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _propTypes = __webpack_require__(6);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ type: _propTypes2["default"].string
+
+ };
+ /**
+ * badge 默认显示内容1
+ */
+ var defaultProps = {
+ clsPrefix: 'uf'
+ };
+
+ var Icon = function (_Component) {
+ _inherits(Icon, _Component);
+
+ function Icon(props) {
+ _classCallCheck(this, Icon);
+
+ return _possibleConstructorReturn(this, _Component.call(this, props));
+ }
+
+ Icon.prototype.render = function render() {
+ var _props = this.props,
+ type = _props.type,
+ className = _props.className,
+ clsPrefix = _props.clsPrefix,
+ others = _objectWithoutProperties(_props, ['type', 'className', 'clsPrefix']);
+
+ var clsObj = {};
+
+ var classNames = (0, _classnames2["default"])(clsPrefix, type);
+
+ return _react2["default"].createElement('i', _extends({}, others, { className: (0, _classnames2["default"])(classNames, className) }));
+ };
+
+ return Icon;
+ }(_react.Component);
+
+ Icon.defaultProps = defaultProps;
+ Icon.propTypes = propTypes;
+
+ exports["default"] = Icon;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 108 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Tooltip = __webpack_require__(109);
var _Tooltip2 = _interopRequireDefault(_Tooltip);
@@ -11098,7 +11203,7 @@
module.exports = exports['default'];
/***/ }),
-/* 97 */
+/* 109 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -11121,7 +11226,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _OverlayTrigger = __webpack_require__(98);
+ var _OverlayTrigger = __webpack_require__(110);
var _OverlayTrigger2 = _interopRequireDefault(_OverlayTrigger);
@@ -11140,33 +11245,33 @@
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) : _defaults(subClass, superClass); }
var propTypes = {
- /**
- * @required
+ /**
+ * @required
*/
id: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]),
inverse: _propTypes2["default"].bool,
visible: _propTypes2["default"].bool,
onVisibleChange: _propTypes2["default"].func,
- /**
- * 相对目标元素显示上下左右的位置
+ /**
+ * 相对目标元素显示上下左右的位置
*/
- placement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']),
+ placement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left']),
- /**
- * 绝对定位上边距.
+ /**
+ * 绝对定位上边距.
*/
positionTop: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
- /**
- * 绝对定位左边距
+ /**
+ * 绝对定位左边距
*/
positionLeft: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
- /**
- * 与目标Top的距离
+ /**
+ * 与目标Top的距离
*/
arrowOffsetTop: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
- /**
- * 与目标Left的距离
+ /**
+ * 与目标Left的距离
*/
arrowOffsetLeft: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])
};
@@ -11176,23 +11281,25 @@
clsPrefix: 'u-tooltip'
};
function OverlayNode(props) {
- var id = props.id,
- className = props.className,
+ var className = props.className,
classNames = props.classNames,
style = props.style,
- overlay = props.overlay;
+ overlay = props.overlay,
+ arrowOffsetTop = props.arrowOffsetTop,
+ arrowOffsetLeft = props.arrowOffsetLeft;
return _react2["default"].createElement(
'div',
{
- id: id,
- role: 'tooltip',
className: (0, _classnames2["default"])(className, classNames),
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
style: style
},
- overlay ? _react2["default"].createElement('div', { className: 'tooltip-arrow' }) : '',
+ overlay ? _react2["default"].createElement('div', { className: 'tooltip-arrow', style: {
+ top: arrowOffsetTop,
+ left: arrowOffsetLeft
+ } }) : '',
overlay ? _react2["default"].createElement(
'div',
{ className: 'tooltip-inner' },
@@ -11210,29 +11317,17 @@
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
_this.onMouseEnter = function () {
- var trigger = _this.props.trigger;
-
- if (trigger === 'click') return;
_this.setState({
isHoverShow: true
});
};
_this.onMouseLeave = function () {
- var trigger = _this.props.trigger;
-
- if (trigger === 'click') return;
_this.setState({
isHoverShow: false
});
};
- _this.handleOnHide = function () {
- var onHide = _this.props.onHide;
-
- onHide && onHide(false);
- };
-
var initState = {
isHoverShow: false
};
@@ -11258,13 +11353,13 @@
}
};
- /**
- * @desc 鼠标划入时候的事件
+ /**
+ * @desc 鼠标划入时候的事件
*/
- /**
- * @desc 鼠标划出时候的事件
+ /**
+ * @desc 鼠标划出时候的事件
*/
@@ -11274,7 +11369,8 @@
var _props2 = this.props,
placement = _props2.placement,
- id = _props2.id,
+ positionTop = _props2.positionTop,
+ positionLeft = _props2.positionLeft,
arrowOffsetTop = _props2.arrowOffsetTop,
arrowOffsetLeft = _props2.arrowOffsetLeft,
className = _props2.className,
@@ -11283,10 +11379,15 @@
clsPrefix = _props2.clsPrefix,
overlay = _props2.overlay,
inverse = _props2.inverse,
- others = _objectWithoutProperties(_props2, ['placement', 'id', 'arrowOffsetTop', 'arrowOffsetLeft', 'className', 'style', 'children', 'clsPrefix', 'overlay', 'inverse']);
+ others = _objectWithoutProperties(_props2, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', 'arrowOffsetLeft', 'className', 'style', 'children', 'clsPrefix', 'overlay', 'inverse']);
var classes = (_classes = {}, _defineProperty(_classes, placement, true), _defineProperty(_classes, 'inverse', inverse), _classes);
+ var outerStyle = _extends({
+ top: positionTop,
+ left: positionLeft
+ }, style);
+
var arrowStyle = {
top: arrowOffsetTop,
left: arrowOffsetLeft
@@ -11295,43 +11396,26 @@
var classNames = (0, _classnames2["default"])(clsPrefix, classes);
var overlayNode = _react2["default"].createElement(OverlayNode, {
- id: id,
className: className,
classNames: classNames,
overlay: overlay,
onMouseEnter: this.onMouseEnter,
onMouseLeave: this.onMouseLeave,
- style: style,
- arrowOffsetTop: arrowOffsetTop,
- arrowOffsetLeft: arrowOffsetLeft
+ style: true,
+ arrowOffsetTop: true,
+ arrowOffsetLeft: true
});
return 'visible' in this.props ? _react2["default"].createElement(
_OverlayTrigger2["default"],
- _extends({
- visible: this.state.visible,
- ref: function ref(_ref) {
+ _extends({ visible: this.state.visible, ref: function ref(_ref) {
return _this2.trigger = _ref;
- },
- shouldUpdatePosition: true,
- placement: placement
- }, others, {
- overlay: overlayNode,
- onHide: this.handleOnHide
- }),
+ }, shouldUpdatePosition: true, placement: placement }, others, { overlay: overlayNode }),
children
) : _react2["default"].createElement(
_OverlayTrigger2["default"],
- _extends({
- isHoverShow: this.state.isHoverShow,
- ref: function ref(_ref2) {
+ _extends({ isHoverShow: this.state.isHoverShow, ref: function ref(_ref2) {
return _this2.trigger = _ref2;
- },
- shouldUpdatePosition: true,
- placement: placement
- }, others, {
- overlay: overlayNode,
- onHide: this.handleOnHide
- }),
+ }, shouldUpdatePosition: true, placement: placement }, others, { overlay: overlayNode }),
children
);
};
@@ -11346,7 +11430,7 @@
module.exports = exports['default'];
/***/ }),
-/* 98 */
+/* 110 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -11357,7 +11441,7 @@
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 _contains = __webpack_require__(99);
+ var _contains = __webpack_require__(111);
var _contains2 = _interopRequireDefault(_contains);
@@ -11377,15 +11461,15 @@
var _warning2 = _interopRequireDefault(_warning);
- var _Portal = __webpack_require__(100);
+ var _Portal = __webpack_require__(112);
var _Portal2 = _interopRequireDefault(_Portal);
- var _Overlay = __webpack_require__(102);
+ var _Overlay = __webpack_require__(114);
var _Overlay2 = _interopRequireDefault(_Overlay);
- var _createChainedFunction = __webpack_require__(119);
+ var _createChainedFunction = __webpack_require__(131);
var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
@@ -11481,11 +11565,11 @@
/**
* @private
*/
- onHide: _propTypes2["default"].func,
+ onHide: _propTypes2["default"].oneOf([null]),
/**
* @private
*/
- show: _propTypes2["default"].bool
+ show: _propTypes2["default"].oneOf([null])
});
var defaultProps = {
@@ -11641,7 +11725,6 @@
OverlayTrigger.prototype.hide = function hide() {
this.setState({ show: false });
- this.props.onHide && this.props.onHide();
};
OverlayTrigger.prototype.makeOverlay = function makeOverlay(overlay, props) {
@@ -11693,12 +11776,7 @@
}
if (isOneOf('hover', trigger) && !('visible' in this.props)) {
- // warning(!(trigger === 'hover'),
- // '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' +
- // 'visibility of the overlay to just mouse users. Consider also ' +
- // 'including the `"focus"` trigger so that touch and keyboard only ' +
- // 'users can see the overlay as well.'
- // );
+ (0, _warning2["default"])(!(trigger === 'hover'), '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' + 'visibility of the overlay to just mouse users. Consider also ' + 'including the `"focus"` trigger so that touch and keyboard only ' + 'users can see the overlay as well.');
triggerProps.onMouseOver = (0, _createChainedFunction2["default"])(childProps.onMouseOver, onMouseOver, this.handleMouseOver);
triggerProps.onMouseOut = (0, _createChainedFunction2["default"])(childProps.onMouseOut, onMouseOut, this.handleMouseOut);
@@ -11737,7 +11815,7 @@
module.exports = exports['default'];
/***/ }),
-/* 99 */
+/* 111 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -11775,7 +11853,7 @@
module.exports = exports["default"];
/***/ }),
-/* 100 */
+/* 112 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -11796,11 +11874,11 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _ownerDocument = __webpack_require__(62);
+ var _ownerDocument = __webpack_require__(74);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _getContainer = __webpack_require__(101);
+ var _getContainer = __webpack_require__(113);
var _getContainer2 = _interopRequireDefault(_getContainer);
@@ -11820,16 +11898,16 @@
var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
var propTypes = {
- /**
- * 存放子组件的容器
+ /**
+ * 存放子组件的容器
*/
container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func])
};
var defaultProps = {};
- /**
- * Portal组件是将子组件渲染
+ /**
+ * Portal组件是将子组件渲染
*/
var Portal = function (_Component) {
@@ -11907,8 +11985,8 @@
return null;
};
- /**
- * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
+ /**
+ * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
*/
Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {
@@ -11918,8 +11996,8 @@
this.portalContainerNode.appendChild(this.overlayTarget);
}
};
- /**
- * 将要添加的子元素从容器中移除,并把变量置为null
+ /**
+ * 将要添加的子元素从容器中移除,并把变量置为null
*/
@@ -11930,8 +12008,8 @@
}
this.portalContainerNode = null;
};
- /**
- * 手动渲染_overlayTarget
+ /**
+ * 手动渲染_overlayTarget
*/
@@ -11949,8 +12027,8 @@
this.unmountOverlayTarget();
}
};
- /**
- * 销毁_overlayTarget组件。并把_overlayInstance置为null
+ /**
+ * 销毁_overlayTarget组件。并把_overlayInstance置为null
*/
@@ -11983,7 +12061,7 @@
module.exports = exports['default'];
/***/ }),
-/* 101 */
+/* 113 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -11999,11 +12077,11 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
+ /**
+ * 获取容器组件
+ * @param {[type]} container [description]
+ * @param {[type]} defaultContainer [description]
+ * @return {[type]} [description]
*/
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : container;
@@ -12012,7 +12090,7 @@
module.exports = exports['default'];
/***/ }),
-/* 102 */
+/* 114 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -12035,13 +12113,13 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _BaseOverlay = __webpack_require__(103);
+ var _BaseOverlay = __webpack_require__(115);
var _BaseOverlay2 = _interopRequireDefault(_BaseOverlay);
var _tinperBeeCore = __webpack_require__(27);
- var _Fade = __webpack_require__(117);
+ var _Fade = __webpack_require__(129);
var _Fade2 = _interopRequireDefault(_Fade);
@@ -12155,8 +12233,7 @@
return _react2["default"].createElement(
_BaseOverlay2["default"],
_extends({}, props, {
- transition: transition,
- onHide: props.onHide
+ transition: transition
}),
child
);
@@ -12172,7 +12249,7 @@
module.exports = exports['default'];
/***/ }),
-/* 103 */
+/* 115 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -12195,15 +12272,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _Portal = __webpack_require__(100);
+ var _Portal = __webpack_require__(112);
var _Portal2 = _interopRequireDefault(_Portal);
- var _Position = __webpack_require__(104);
+ var _Position = __webpack_require__(116);
var _Position2 = _interopRequireDefault(_Position);
- var _RootCloseWrapper = __webpack_require__(116);
+ var _RootCloseWrapper = __webpack_require__(128);
var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);
@@ -12430,7 +12507,7 @@
module.exports = exports['default'];
/***/ }),
-/* 104 */
+/* 116 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -12459,27 +12536,27 @@
var _tinperBeeCore = __webpack_require__(27);
- var _requestAnimationFrame = __webpack_require__(105);
+ var _requestAnimationFrame = __webpack_require__(117);
var _requestAnimationFrame2 = _interopRequireDefault(_requestAnimationFrame);
- var _calculatePosition = __webpack_require__(106);
+ var _calculatePosition = __webpack_require__(118);
var _calculatePosition2 = _interopRequireDefault(_calculatePosition);
- var _getContainer = __webpack_require__(101);
+ var _getContainer = __webpack_require__(113);
var _getContainer2 = _interopRequireDefault(_getContainer);
- var _ownerDocument = __webpack_require__(62);
+ var _ownerDocument = __webpack_require__(74);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _ownerWindow = __webpack_require__(114);
+ var _ownerWindow = __webpack_require__(126);
var _ownerWindow2 = _interopRequireDefault(_ownerWindow);
- var _addEventListener = __webpack_require__(64);
+ var _addEventListener = __webpack_require__(76);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
@@ -12748,7 +12825,7 @@
module.exports = exports['default'];
/***/ }),
-/* 105 */
+/* 117 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -12807,7 +12884,7 @@
module.exports = exports["default"];
/***/ }),
-/* 106 */
+/* 118 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -12817,19 +12894,19 @@
});
exports["default"] = calculatePosition;
- var _offset = __webpack_require__(107);
+ var _offset = __webpack_require__(119);
var _offset2 = _interopRequireDefault(_offset);
- var _position = __webpack_require__(109);
+ var _position = __webpack_require__(121);
var _position2 = _interopRequireDefault(_position);
- var _scrollTop = __webpack_require__(112);
+ var _scrollTop = __webpack_require__(124);
var _scrollTop2 = _interopRequireDefault(_scrollTop);
- var _ownerDocument = __webpack_require__(62);
+ var _ownerDocument = __webpack_require__(74);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -12983,7 +13060,7 @@
module.exports = exports['default'];
/***/ }),
-/* 107 */
+/* 119 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -12993,11 +13070,11 @@
exports.__esModule = true;
exports.default = offset;
- var _contains = _interopRequireDefault(__webpack_require__(99));
+ var _contains = _interopRequireDefault(__webpack_require__(111));
- var _isWindow = _interopRequireDefault(__webpack_require__(108));
+ var _isWindow = _interopRequireDefault(__webpack_require__(120));
- var _ownerDocument = _interopRequireDefault(__webpack_require__(63));
+ var _ownerDocument = _interopRequireDefault(__webpack_require__(75));
function offset(node) {
var doc = (0, _ownerDocument.default)(node),
@@ -13026,7 +13103,7 @@
module.exports = exports["default"];
/***/ }),
-/* 108 */
+/* 120 */
/***/ (function(module, exports) {
"use strict";
@@ -13041,7 +13118,7 @@
module.exports = exports["default"];
/***/ }),
-/* 109 */
+/* 121 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -13051,15 +13128,15 @@
exports.__esModule = true;
exports.default = position;
- var _extends2 = _interopRequireDefault(__webpack_require__(110));
+ var _extends2 = _interopRequireDefault(__webpack_require__(122));
- var _offset = _interopRequireDefault(__webpack_require__(107));
+ var _offset = _interopRequireDefault(__webpack_require__(119));
- var _offsetParent = _interopRequireDefault(__webpack_require__(111));
+ var _offsetParent = _interopRequireDefault(__webpack_require__(123));
- var _scrollTop = _interopRequireDefault(__webpack_require__(112));
+ var _scrollTop = _interopRequireDefault(__webpack_require__(124));
- var _scrollLeft = _interopRequireDefault(__webpack_require__(113));
+ var _scrollLeft = _interopRequireDefault(__webpack_require__(125));
var _style = _interopRequireDefault(__webpack_require__(18));
@@ -13095,7 +13172,7 @@
module.exports = exports["default"];
/***/ }),
-/* 110 */
+/* 122 */
/***/ (function(module, exports) {
function _extends() {
@@ -13119,7 +13196,7 @@
module.exports = _extends;
/***/ }),
-/* 111 */
+/* 123 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -13129,7 +13206,7 @@
exports.__esModule = true;
exports.default = offsetParent;
- var _ownerDocument = _interopRequireDefault(__webpack_require__(63));
+ var _ownerDocument = _interopRequireDefault(__webpack_require__(75));
var _style = _interopRequireDefault(__webpack_require__(18));
@@ -13151,7 +13228,7 @@
module.exports = exports["default"];
/***/ }),
-/* 112 */
+/* 124 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -13161,7 +13238,7 @@
exports.__esModule = true;
exports.default = scrollTop;
- var _isWindow = _interopRequireDefault(__webpack_require__(108));
+ var _isWindow = _interopRequireDefault(__webpack_require__(120));
function scrollTop(node, val) {
var win = (0, _isWindow.default)(node);
@@ -13172,7 +13249,7 @@
module.exports = exports["default"];
/***/ }),
-/* 113 */
+/* 125 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -13182,7 +13259,7 @@
exports.__esModule = true;
exports.default = scrollTop;
- var _isWindow = _interopRequireDefault(__webpack_require__(108));
+ var _isWindow = _interopRequireDefault(__webpack_require__(120));
function scrollTop(node, val) {
var win = (0, _isWindow.default)(node);
@@ -13193,7 +13270,7 @@
module.exports = exports["default"];
/***/ }),
-/* 114 */
+/* 126 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -13210,7 +13287,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _ownerWindow = __webpack_require__(115);
+ var _ownerWindow = __webpack_require__(127);
var _ownerWindow2 = _interopRequireDefault(_ownerWindow);
@@ -13219,7 +13296,7 @@
module.exports = exports['default'];
/***/ }),
-/* 115 */
+/* 127 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -13229,7 +13306,7 @@
exports.__esModule = true;
exports.default = ownerWindow;
- var _ownerDocument = _interopRequireDefault(__webpack_require__(63));
+ var _ownerDocument = _interopRequireDefault(__webpack_require__(75));
function ownerWindow(node) {
var doc = (0, _ownerDocument.default)(node);
@@ -13239,7 +13316,7 @@
module.exports = exports["default"];
/***/ }),
-/* 116 */
+/* 128 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -13248,7 +13325,7 @@
value: true
});
- var _contains = __webpack_require__(99);
+ var _contains = __webpack_require__(111);
var _contains2 = _interopRequireDefault(_contains);
@@ -13264,11 +13341,11 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _addEventListener = __webpack_require__(64);
+ var _addEventListener = __webpack_require__(76);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
- var _ownerDocument = __webpack_require__(62);
+ var _ownerDocument = __webpack_require__(74);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -13285,12 +13362,12 @@
var propTypes = {
onRootClose: _propTypes2["default"].func,
children: _propTypes2["default"].element,
- /**
- * 是否禁用
+ /**
+ * 是否禁用
*/
disabled: _propTypes2["default"].bool,
- /**
- * 触发事件选择
+ /**
+ * 触发事件选择
*/
event: _propTypes2["default"].oneOf(['click', 'mousedown'])
};
@@ -13401,7 +13478,7 @@
module.exports = exports['default'];
/***/ }),
-/* 117 */
+/* 129 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -13424,7 +13501,7 @@
var _react2 = _interopRequireDefault(_react);
- var _Transition = __webpack_require__(118);
+ var _Transition = __webpack_require__(130);
var _Transition2 = _interopRequireDefault(_Transition);
@@ -13439,51 +13516,51 @@
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) : _defaults(subClass, superClass); }
var propTypes = {
- /**
- * Show the component; triggers the fade in or fade out animation
+ /**
+ * Show the component; triggers the fade in or fade out animation
*/
"in": _propTypes2["default"].bool,
- /**
- * Unmount the component (remove it from the DOM) when it is faded out
+ /**
+ * Unmount the component (remove it from the DOM) when it is faded out
*/
unmountOnExit: _propTypes2["default"].bool,
- /**
- * Run the fade in animation when the component mounts, if it is initially
- * shown
+ /**
+ * Run the fade in animation when the component mounts, if it is initially
+ * shown
*/
transitionAppear: _propTypes2["default"].bool,
- /**
- * Duration of the fade animation in milliseconds, to ensure that finishing
- * callbacks are fired even if the original browser transition end events are
- * canceled
+ /**
+ * Duration of the fade animation in milliseconds, to ensure that finishing
+ * callbacks are fired even if the original browser transition end events are
+ * canceled
*/
timeout: _propTypes2["default"].number,
- /**
- * Callback fired before the component fades in
+ /**
+ * Callback fired before the component fades in
*/
onEnter: _propTypes2["default"].func,
- /**
- * Callback fired after the component starts to fade in
+ /**
+ * Callback fired after the component starts to fade in
*/
onEntering: _propTypes2["default"].func,
- /**
- * Callback fired after the has component faded in
+ /**
+ * Callback fired after the has component faded in
*/
onEntered: _propTypes2["default"].func,
- /**
- * Callback fired before the component fades out
+ /**
+ * Callback fired before the component fades out
*/
onExit: _propTypes2["default"].func,
- /**
- * Callback fired after the component starts to fade out
+ /**
+ * Callback fired after the component starts to fade out
*/
onExiting: _propTypes2["default"].func,
- /**
- * Callback fired after the component has faded out
+ /**
+ * Callback fired after the component has faded out
*/
onExited: _propTypes2["default"].func
};
@@ -13522,7 +13599,7 @@
module.exports = exports['default'];
/***/ }),
-/* 118 */
+/* 130 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -13580,65 +13657,65 @@
var EXITING = exports.EXITING = 4;
var propTypes = {
- /**
- * 是否触发动画
+ /**
+ * 是否触发动画
*/
"in": _propTypes2["default"].bool,
- /**
- * 不显示的时候是否移除组件
+ /**
+ * 不显示的时候是否移除组件
*/
unmountOnExit: _propTypes2["default"].bool,
- /**
- * 如果设置为默认显示,挂载时显示动画
+ /**
+ * 如果设置为默认显示,挂载时显示动画
*/
transitionAppear: _propTypes2["default"].bool,
- /**
- * 设置超时时间,防止出现问题,可设置为>=动画时间
+ /**
+ * 设置超时时间,防止出现问题,可设置为>=动画时间
*/
timeout: _propTypes2["default"].number,
- /**
- * 退出组件时添加的class
+ /**
+ * 退出组件时添加的class
*/
exitedClassName: _propTypes2["default"].string,
- /**
- * 退出组件中添加的class
+ /**
+ * 退出组件中添加的class
*/
exitingClassName: _propTypes2["default"].string,
- /**
- * 进入动画后添加的class
+ /**
+ * 进入动画后添加的class
*/
enteredClassName: _propTypes2["default"].string,
- /**
- * 进入动画时添加的class
+ /**
+ * 进入动画时添加的class
*/
enteringClassName: _propTypes2["default"].string,
- /**
- * 进入动画开始时的钩子函数
+ /**
+ * 进入动画开始时的钩子函数
*/
onEnter: _propTypes2["default"].func,
- /**
- * 进入动画中的钩子函数
+ /**
+ * 进入动画中的钩子函数
*/
onEntering: _propTypes2["default"].func,
- /**
- * 进入动画后的钩子函数
+ /**
+ * 进入动画后的钩子函数
*/
onEntered: _propTypes2["default"].func,
- /**
- * 退出动画开始时的钩子函数
+ /**
+ * 退出动画开始时的钩子函数
*/
onExit: _propTypes2["default"].func,
- /**
- * 退出动画中的钩子函数
+ /**
+ * 退出动画中的钩子函数
*/
onExiting: _propTypes2["default"].func,
- /**
- * 退出动画后的钩子函数
+ /**
+ * 退出动画后的钩子函数
*/
onExited: _propTypes2["default"].func
};
@@ -13658,8 +13735,8 @@
onExited: noop
};
- /**
- * 动画组件
+ /**
+ * 动画组件
*/
var Transition = function (_Component) {
@@ -13871,7 +13948,7 @@
exports["default"] = Transition;
/***/ }),
-/* 119 */
+/* 131 */
/***/ (function(module, exports) {
'use strict';
@@ -13879,14 +13956,14 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
- /**
- * Safe chained function
- *
- * Will only create a new function if needed,
- * otherwise will pass back existing functions or null.
- *
- * @param {function} functions to chain
- * @returns {function|null}
+ /**
+ * Safe chained function
+ *
+ * Will only create a new function if needed,
+ * otherwise will pass back existing functions or null.
+ *
+ * @param {function} functions to chain
+ * @returns {function|null}
*/
function createChainedFunction() {
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
@@ -13919,7 +13996,7 @@
module.exports = exports['default'];
/***/ }),
-/* 120 */
+/* 132 */
/***/ (function(module, exports) {
'use strict';
@@ -13962,7 +14039,7 @@
}
/***/ }),
-/* 121 */
+/* 133 */
/***/ (function(module, exports) {
'use strict';
@@ -13995,7 +14072,7 @@
};
/***/ }),
-/* 122 */
+/* 134 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -14010,15 +14087,15 @@
var _react2 = _interopRequireDefault(_react);
- var _Modal = __webpack_require__(123);
+ var _Modal = __webpack_require__(135);
var _Modal2 = _interopRequireDefault(_Modal);
- var _confirm = __webpack_require__(263);
+ var _confirm = __webpack_require__(259);
var _confirm2 = _interopRequireDefault(_confirm);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -14045,7 +14122,7 @@
_Modal2["default"].error = function (props) {
var config = _extends({
type: 'error',
- icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-exc-c' }),
+ icon: _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-close-bold' }),
okCancel: false
}, props);
return (0, _confirm2["default"])(config);
@@ -14080,7 +14157,7 @@
module.exports = exports['default'];
/***/ }),
-/* 123 */
+/* 135 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -14100,11 +14177,11 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _events = __webpack_require__(124);
+ var _events = __webpack_require__(136);
var _events2 = _interopRequireDefault(_events);
- var _ownerDocument = __webpack_require__(63);
+ var _ownerDocument = __webpack_require__(75);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -14112,14 +14189,10 @@
var _inDOM2 = _interopRequireDefault(_inDOM);
- var _scrollbarSize = __webpack_require__(128);
+ var _scrollbarSize = __webpack_require__(140);
var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
- var _scrollTop = __webpack_require__(112);
-
- var _scrollTop2 = _interopRequireDefault(_scrollTop);
-
var _react = __webpack_require__(1);
var _react2 = _interopRequireDefault(_react);
@@ -14128,11 +14201,11 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _Modal = __webpack_require__(129);
+ var _Modal = __webpack_require__(141);
var _Modal2 = _interopRequireDefault(_Modal);
- var _isOverflowing = __webpack_require__(135);
+ var _isOverflowing = __webpack_require__(144);
var _isOverflowing2 = _interopRequireDefault(_isOverflowing);
@@ -14140,23 +14213,23 @@
var _beeTransition = __webpack_require__(11);
- var _ModalBody = __webpack_require__(140);
+ var _ModalBody = __webpack_require__(148);
var _ModalBody2 = _interopRequireDefault(_ModalBody);
- var _ModalDialog = __webpack_require__(141);
+ var _ModalDialog = __webpack_require__(149);
var _ModalDialog2 = _interopRequireDefault(_ModalDialog);
- var _ModalFooter = __webpack_require__(260);
+ var _ModalFooter = __webpack_require__(256);
var _ModalFooter2 = _interopRequireDefault(_ModalFooter);
- var _ModalHeader = __webpack_require__(261);
+ var _ModalHeader = __webpack_require__(257);
var _ModalHeader2 = _interopRequireDefault(_ModalHeader);
- var _ModalTitle = __webpack_require__(262);
+ var _ModalTitle = __webpack_require__(258);
var _ModalTitle2 = _interopRequireDefault(_ModalTitle);
@@ -14237,7 +14310,7 @@
onExited: _propTypes2["default"].func,
containerClassName: _propTypes2["default"].string
- }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].Object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2));
+ }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _extends2));
var defaultProps = _extends({}, _Modal2["default"].defaultProps, {
backdropClosable: true,
@@ -14245,8 +14318,7 @@
dialogComponentClass: _ModalDialog2["default"],
draggable: false,
resizable: false,
- clsPrefix: 'u-modal',
- className: ''
+ clsPrefix: 'u-modal'
});
var ModalFuncProps = {
@@ -14286,27 +14358,14 @@
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
- _this.clearCenteredCls = function () {
- var centered = _this.state.centered;
-
- if (!centered) {
- return;
- }
- _this.offsetTop = _this.getOffsetTop();
- _this.setState({
- centered: false
- });
- };
-
- _this.state = {
- style: {},
- centered: props.centered
- };
- _this.offsetTop = 0;
_this.handleEntering = _this.handleEntering.bind(_this);
_this.handleExited = _this.handleExited.bind(_this);
_this.handleWindowResize = _this.handleWindowResize.bind(_this);
_this.handleDialogClick = _this.handleDialogClick.bind(_this);
+
+ _this.state = {
+ style: {}
+ };
return _this;
}
@@ -14355,10 +14414,7 @@
var dialogHeight = dialogNode.scrollHeight;
var document = (0, _ownerDocument2["default"])(dialogNode);
- var bodyIsOverflowing = false;
- if (this.props.container) {
- bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container));
- }
+ var bodyIsOverflowing = (0, _isOverflowing2["default"])(_reactDom2["default"].findDOMNode(this.props.container || document.body));
var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;
this.setState({
@@ -14368,16 +14424,6 @@
}
});
};
- //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象
- //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确
-
-
- //计算 ModalDialog 的 offsetTop
- Modal.prototype.getOffsetTop = function getOffsetTop() {
- var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0];
- var topPos = modalDialog && modalDialog.offsetTop;
- return topPos;
- };
Modal.prototype.render = function render() {
var _this2 = this;
@@ -14400,16 +14446,7 @@
backdropClassName = _props.backdropClassName,
containerClassName = _props.containerClassName,
draggable = _props.draggable,
- resizeClassName = _props.resizeClassName,
- bounds = _props.bounds,
- container = _props.container,
- props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container']);
-
- var centered = this.state.centered;
-
- var dialogMarginTop = 30;
- //ResizeStart 时,计算 ModalDialog 的 offsetTop
- var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null;
+ props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable']);
var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]),
_splitComponent2 = _slicedToArray(_splitComponent, 2),
@@ -14420,12 +14457,9 @@
var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true);
var containerClasses = _defineProperty({}, clsPrefix + '-open', true);
- if (!!centered) {
- className += ' ' + clsPrefix + '-centered';
- }
if (Number(width)) width += 'px';
- var styleRes = _extends({}, this.state.style, style, topPosStyle);
+ var styleRes = _extends({}, this.state.style, style);
if (width) {
_extends(styleRes, { width: width });
}
@@ -14439,7 +14473,7 @@
onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering),
onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited),
backdrop: backdrop,
- backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName),
+ backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName),
containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName),
transition: animation ? _beeTransition.Fade : undefined,
dialogTransitionTimeout: Modal.TRANSITION_DURATION,
@@ -14452,10 +14486,7 @@
className: (0, _classnames2["default"])(className, inClassName, backdropClassName),
onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null,
size: size,
- draggable: draggable,
- bounds: bounds,
- resizeClassName: resizeClassName,
- clearCenteredCls: this.clearCenteredCls
+ draggable: draggable
}),
children
)
@@ -14493,7 +14524,7 @@
exports["default"] = Modal;
/***/ }),
-/* 124 */
+/* 136 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -14507,15 +14538,15 @@
exports.on = _on.default;
- var _off = _interopRequireDefault(__webpack_require__(65));
+ var _off = _interopRequireDefault(__webpack_require__(77));
exports.off = _off.default;
- var _filter = _interopRequireDefault(__webpack_require__(125));
+ var _filter = _interopRequireDefault(__webpack_require__(137));
exports.filter = _filter.default;
- var _listen = _interopRequireDefault(__webpack_require__(127));
+ var _listen = _interopRequireDefault(__webpack_require__(139));
exports.listen = _listen.default;
var _default = {
@@ -14527,7 +14558,7 @@
exports.default = _default;
/***/ }),
-/* 125 */
+/* 137 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -14537,9 +14568,9 @@
exports.__esModule = true;
exports.default = filterEvents;
- var _contains = _interopRequireDefault(__webpack_require__(99));
+ var _contains = _interopRequireDefault(__webpack_require__(111));
- var _querySelectorAll = _interopRequireDefault(__webpack_require__(126));
+ var _querySelectorAll = _interopRequireDefault(__webpack_require__(138));
function filterEvents(selector, handler) {
return function filterHandler(e) {
@@ -14555,7 +14586,7 @@
module.exports = exports["default"];
/***/ }),
-/* 126 */
+/* 138 */
/***/ (function(module, exports) {
"use strict";
@@ -14591,7 +14622,7 @@
module.exports = exports["default"];
/***/ }),
-/* 127 */
+/* 139 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -14605,7 +14636,7 @@
var _on = _interopRequireDefault(__webpack_require__(16));
- var _off = _interopRequireDefault(__webpack_require__(65));
+ var _off = _interopRequireDefault(__webpack_require__(77));
var listen = function listen() {};
@@ -14623,7 +14654,7 @@
module.exports = exports["default"];
/***/ }),
-/* 128 */
+/* 140 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -14658,7 +14689,7 @@
module.exports = exports["default"];
/***/ }),
-/* 129 */
+/* 141 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -14684,23 +14715,23 @@
var _tinperBeeCore = __webpack_require__(27);
- var _Portal = __webpack_require__(130);
+ var _Portal = __webpack_require__(112);
var _Portal2 = _interopRequireDefault(_Portal);
- var _ModalManager = __webpack_require__(133);
+ var _ModalManager = __webpack_require__(142);
var _ModalManager2 = _interopRequireDefault(_ModalManager);
- var _ownerDocument = __webpack_require__(131);
+ var _ownerDocument = __webpack_require__(74);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _addEventListener = __webpack_require__(137);
+ var _addEventListener = __webpack_require__(76);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
- var _addFocusListener = __webpack_require__(138);
+ var _addFocusListener = __webpack_require__(146);
var _addFocusListener2 = _interopRequireDefault(_addFocusListener);
@@ -14708,15 +14739,15 @@
var _inDOM2 = _interopRequireDefault(_inDOM);
- var _activeElement = __webpack_require__(139);
+ var _activeElement = __webpack_require__(147);
var _activeElement2 = _interopRequireDefault(_activeElement);
- var _contains = __webpack_require__(99);
+ var _contains = __webpack_require__(111);
var _contains2 = _interopRequireDefault(_contains);
- var _getContainer = __webpack_require__(132);
+ var _getContainer = __webpack_require__(113);
var _getContainer2 = _interopRequireDefault(_getContainer);
@@ -14732,129 +14763,129 @@
var modalManager = new _ModalManager2["default"]();
- /**
- * 模态框
+ /**
+ * 模态框
*/
var propTypes = _extends({}, _Portal2["default"].propTypes, {
- /**
- * 是否显示
+ /**
+ * 是否显示
*/
show: _propTypes2["default"].bool,
- /**
- * 容器
+ /**
+ * 容器
*/
container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]),
- /**
- * 当模态框打开时的钩子函数
+ /**
+ * 当模态框打开时的钩子函数
*/
onShow: _propTypes2["default"].func,
- /**
- * 当show参数为false时触发的模态框关闭时的钩子函数
+ /**
+ * 当show参数为false时触发的模态框关闭时的钩子函数
*/
onHide: _propTypes2["default"].func,
- /**
- * 是否包含背景
+ /**
+ * 是否包含背景
*/
backdrop: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].oneOf(['static'])]),
- /**
- *返回背景组件的函数
+ /**
+ *返回背景组件的函数
*/
renderBackdrop: _propTypes2["default"].func,
- /**
- * 设置esc键特殊钩子函数
+ /**
+ * 设置esc键特殊钩子函数
*/
onEscapeKeyUp: _propTypes2["default"].func,
- /**
- * 当点击背景时触发的函数
+ /**
+ * 当点击背景时触发的函数
*/
onBackdropClick: _propTypes2["default"].func,
- /**
- * 背景的style
+ /**
+ * 背景的style
*/
backdropStyle: _propTypes2["default"].object,
- /**
- * 背景的class
+ /**
+ * 背景的class
*/
backdropClassName: _propTypes2["default"].string,
- /**
- *容器的class
+ /**
+ *容器的class
*/
containerClassName: _propTypes2["default"].string,
- /**
- * 按esc键是否关闭模态框
+ /**
+ * 按esc键是否关闭模态框
*/
keyboard: _propTypes2["default"].bool,
- /**
- * 动画组件
+ /**
+ * 动画组件
*/
transition: _tinperBeeCore.elementType,
- /**
- * 设置动画超时时间
+ /**
+ * 设置动画超时时间
*/
dialogTransitionTimeout: _propTypes2["default"].number,
- /**
- * 设置背景动画超时时间
+ /**
+ * 设置背景动画超时时间
*/
backdropTransitionTimeout: _propTypes2["default"].number,
- /**
- * 是否自动设置焦点
+ /**
+ * 是否自动设置焦点
*/
autoFocus: _propTypes2["default"].bool,
- /**
- * 防止焦点离开模态框
+ /**
+ * 防止焦点离开模态框
*/
enforceFocus: _propTypes2["default"].bool,
- /**
- * 模态框进入时的钩子函数
+ /**
+ * 模态框进入时的钩子函数
*/
onEnter: _propTypes2["default"].func,
- /**
- * 模态框开始进入时的钩子函数
+ /**
+ * 模态框开始进入时的钩子函数
*/
onEntering: _propTypes2["default"].func,
- /**
- * 模态框进入后的钩子函数
+ /**
+ * 模态框进入后的钩子函数
*/
onEntered: _propTypes2["default"].func,
- /**
- * 模态框退出时的钩子函数
+ /**
+ * 模态框退出时的钩子函数
*/
onExit: _propTypes2["default"].func,
- /**
- * 模态框开始退出时的钩子函数
+ /**
+ * 模态框开始退出时的钩子函数
*/
onExiting: _propTypes2["default"].func,
- /**
- * 模态框推出后的钩子函数
+ /**
+ * 模态框推出后的钩子函数
*/
onExited: _propTypes2["default"].func,
- /**
- *管理model状态的实例
+ /**
+ *管理model状态的实例
*/
manager: _propTypes2["default"].object.isRequired
});
@@ -15202,270 +15233,7 @@
module.exports = exports['default'];
/***/ }),
-/* 130 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _ownerDocument = __webpack_require__(131);
-
- var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
-
- var _getContainer = __webpack_require__(132);
-
- var _getContainer2 = _interopRequireDefault(_getContainer);
-
- var _tinperBeeCore = __webpack_require__(27);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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) : _defaults(subClass, superClass); }
-
- var isReact16 = _reactDom2["default"].createPortal !== undefined;
- var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
-
- var propTypes = {
- /**
- * 存放子组件的容器
- */
- container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func])
- };
-
- var defaultProps = {};
-
- /**
- * Portal组件是将子组件渲染
- */
-
- var Portal = function (_Component) {
- _inherits(Portal, _Component);
-
- function Portal(props) {
- _classCallCheck(this, Portal);
-
- var _this = _possibleConstructorReturn(this, _Component.call(this, props));
-
- _this.getMountNode = _this.getMountNode.bind(_this);
- _this.getOverlayDOMNode = _this.getOverlayDOMNode.bind(_this);
- _this.mountOverlayTarget = _this.mountOverlayTarget.bind(_this);
- _this.unmountOverlayTarget = _this.unmountOverlayTarget.bind(_this);
- _this.renderOverlay = _this.renderOverlay.bind(_this);
- _this.unrenderOverlay = _this.unrenderOverlay.bind(_this);
-
- _this.overlayTarget = isReact16 ? document.createElement('div') : null;
- return _this;
- }
-
- Portal.prototype.componentDidMount = function componentDidMount() {
- if (isReact16) {
- this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body);
- this.portalContainerNode.appendChild(this.overlayTarget);
- } else {
- this.renderOverlay();
- }
-
- this.mounted = true;
- };
-
- Portal.prototype.componentDidUpdate = function componentDidUpdate() {
- if (isReact16) {
- var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children);
- if (overlay === null) {
- this.unrenderOverlay();
- this.unmountOverlayTarget();
- } else {}
- } else {
- this.renderOverlay();
- }
- };
- //this._overlayTarget为当前的要添加的子组件, this._portalContainerNode要添加组件的容器元素
-
-
- Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- if (this.overlayTarget && nextProps.container !== this.props.container) {
- this.portalContainerNode.removeChild(this.overlayTarget);
- this.portalContainerNode = (0, _getContainer2["default"])(nextProps.container, (0, _ownerDocument2["default"])(this).body);
- this.portalContainerNode.appendChild(this.overlayTarget);
- }
- };
-
- Portal.prototype.componentWillUnmount = function componentWillUnmount() {
- this.unrenderOverlay();
- this.unmountOverlayTarget();
-
- this.mounted = false;
- };
-
- Portal.prototype.getMountNode = function getMountNode() {
- return this.overlayTarget;
- };
-
- Portal.prototype.getOverlayDOMNode = function getOverlayDOMNode() {
- if (!this.mounted) {
- throw new Error('getOverlayDOMNode(): A component must be mounted to have a DOM node.');
- }
-
- if (this.overlayInstance) {
- return _reactDom2["default"].findDOMNode(this.overlayInstance);
- }
-
- return null;
- };
-
- /**
- * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
- */
-
- Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {
- if (!this.overlayTarget) {
- this.overlayTarget = document.createElement('div');
- this.portalContainerNode = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body);
- this.portalContainerNode.appendChild(this.overlayTarget);
- }
- };
- /**
- * 将要添加的子元素从容器中移除,并把变量置为null
- */
-
-
- Portal.prototype.unmountOverlayTarget = function unmountOverlayTarget() {
- if (this.overlayTarget) {
- this.portalContainerNode.removeChild(this.overlayTarget);
- this.overlayTarget = null;
- }
- this.portalContainerNode = null;
- };
- /**
- * 手动渲染_overlayTarget
- */
-
-
- Portal.prototype.renderOverlay = function renderOverlay() {
-
- var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children);
-
- // Save reference for future access.
- if (overlay !== null) {
- this.mountOverlayTarget();
- this.overlayInstance = _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, overlay, this.overlayTarget);
- } else {
- // Unrender if the component is null for transitions to null
- this.unrenderOverlay();
- this.unmountOverlayTarget();
- }
- };
- /**
- * 销毁_overlayTarget组件。并把_overlayInstance置为null
- */
-
-
- Portal.prototype.unrenderOverlay = function unrenderOverlay() {
- if (this.overlayTarget) {
- !isReact16 && _reactDom2["default"].unmountComponentAtNode(this.overlayTarget);
- this.overlayInstance = null;
- }
- };
-
- Portal.prototype.render = function render() {
- if (!isReact16) {
- return null;
- }
-
- var overlay = !this.props.children ? null : _react2["default"].Children.only(this.props.children);
-
- return _reactDom2["default"].createPortal(overlay, this.overlayTarget);
- };
-
- return Portal;
- }(_react.Component);
-
- ;
-
- Portal.propTypes = propTypes;
- Portal.defaultProps = defaultProps;
-
- exports["default"] = Portal;
- module.exports = exports['default'];
-
-/***/ }),
-/* 131 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- exports["default"] = function (componentOrElement) {
- return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement));
- };
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _ownerDocument = __webpack_require__(63);
-
- var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- module.exports = exports['default'];
-
-/***/ }),
-/* 132 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = getContainer;
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
- */
- function getContainer(container, defaultContainer) {
- container = typeof container === 'function' ? container() : container;
- return _reactDom2["default"].findDOMNode(container) || defaultContainer;
- }
- module.exports = exports['default'];
-
-/***/ }),
-/* 133 */
+/* 142 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -15478,19 +15246,19 @@
var _style2 = _interopRequireDefault(_style);
- var _class = __webpack_require__(134);
+ var _class = __webpack_require__(143);
var _class2 = _interopRequireDefault(_class);
- var _scrollbarSize = __webpack_require__(128);
+ var _scrollbarSize = __webpack_require__(140);
var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
- var _isOverflowing = __webpack_require__(135);
+ var _isOverflowing = __webpack_require__(144);
var _isOverflowing2 = _interopRequireDefault(_isOverflowing);
- var _manageAriaHidden = __webpack_require__(136);
+ var _manageAriaHidden = __webpack_require__(145);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -15539,8 +15307,8 @@
return container.style[key] = style[key];
});
}
- /**
- * 容器的正确状态管理和那些容器中的模态。
+ /**
+ * 容器的正确状态管理和那些容器中的模态。
*/
var ModalManager = function () {
@@ -15646,7 +15414,7 @@
module.exports = exports['default'];
/***/ }),
-/* 134 */
+/* 143 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -15656,15 +15424,15 @@
exports.__esModule = true;
exports.default = void 0;
- var _addClass = _interopRequireDefault(__webpack_require__(77));
+ var _addClass = _interopRequireDefault(__webpack_require__(87));
exports.addClass = _addClass.default;
- var _removeClass = _interopRequireDefault(__webpack_require__(79));
+ var _removeClass = _interopRequireDefault(__webpack_require__(89));
exports.removeClass = _removeClass.default;
- var _hasClass = _interopRequireDefault(__webpack_require__(78));
+ var _hasClass = _interopRequireDefault(__webpack_require__(88));
exports.hasClass = _hasClass.default;
var _default = {
@@ -15675,7 +15443,7 @@
exports.default = _default;
/***/ }),
-/* 135 */
+/* 144 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -15685,11 +15453,11 @@
});
exports["default"] = isOverflowing;
- var _isWindow = __webpack_require__(108);
+ var _isWindow = __webpack_require__(120);
var _isWindow2 = _interopRequireDefault(_isWindow);
- var _ownerDocument = __webpack_require__(63);
+ var _ownerDocument = __webpack_require__(75);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -15715,12 +15483,13 @@
function isOverflowing(container) {
var win = (0, _isWindow2["default"])(container);
- return win || isBody(container) ? false : container.scrollHeight > container.clientHeight;
+
+ return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight;
}
module.exports = exports['default'];
/***/ }),
-/* 136 */
+/* 145 */
/***/ (function(module, exports) {
'use strict';
@@ -15774,39 +15543,7 @@
}
/***/ }),
-/* 137 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- exports["default"] = function (node, event, handler, capture) {
- (0, _on2["default"])(node, event, handler, capture);
-
- return {
- remove: function remove() {
- (0, _off2["default"])(node, event, handler, capture);
- }
- };
- };
-
- var _on = __webpack_require__(16);
-
- var _on2 = _interopRequireDefault(_on);
-
- var _off = __webpack_require__(65);
-
- var _off2 = _interopRequireDefault(_off);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- module.exports = exports['default'];
-
-/***/ }),
-/* 138 */
+/* 146 */
/***/ (function(module, exports) {
'use strict';
@@ -15815,11 +15552,11 @@
value: true
});
exports["default"] = addFocusListener;
- /**
- * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
- * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8
- *
- * We only allow one Listener at a time to avoid stack overflows
+ /**
+ * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
+ * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8
+ *
+ * We only allow one Listener at a time to avoid stack overflows
*/
function addFocusListener(handler) {
var useFocusin = !document.addEventListener;
@@ -15842,7 +15579,7 @@
module.exports = exports['default'];
/***/ }),
-/* 139 */
+/* 147 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -15852,7 +15589,7 @@
exports.__esModule = true;
exports.default = activeElement;
- var _ownerDocument = _interopRequireDefault(__webpack_require__(63));
+ var _ownerDocument = _interopRequireDefault(__webpack_require__(75));
function activeElement(doc) {
if (doc === void 0) {
@@ -15869,7 +15606,7 @@
module.exports = exports["default"];
/***/ }),
-/* 140 */
+/* 148 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -15945,7 +15682,7 @@
module.exports = exports['default'];
/***/ }),
-/* 141 */
+/* 149 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -15972,11 +15709,11 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _beeDnd = __webpack_require__(142);
+ var _beeDnd = __webpack_require__(150);
var _beeDnd2 = _interopRequireDefault(_beeDnd);
- var _reResizable = __webpack_require__(259);
+ var _reResizable = __webpack_require__(255);
var _reResizable2 = _interopRequireDefault(_reResizable);
@@ -16006,8 +15743,7 @@
var defaultProps = {
minHeight: 150,
minWidth: 200,
- clsPrefix: 'u-modal',
- bounds: null
+ clsPrefix: 'u-modal'
};
var ModalDialog = function (_React$Component) {
@@ -16023,8 +15759,6 @@
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
- draging: false,
- draged: false,
original: {
x: 0,
y: 0
@@ -16034,14 +15768,9 @@
}, _this.onStart = function () {
var draggable = _this.props.draggable;
- _this.setState({
- draging: true
- });
return draggable;
}, _this.onStop = function (e, delta) {
_this.setState({
- draged: true,
- draging: false,
original: {
x: delta.x,
y: delta.y
@@ -16051,7 +15780,6 @@
var onResizeStart = _this.props.onResizeStart;
typeof onResizeStart === "function" && onResizeStart(e, dir, elementRef);
- _this.props.clearCenteredCls && _this.props.clearCenteredCls();
}, _this.onResize = function (e, direction, elementRef, delta) {
var onResize = _this.props.onResize;
var original = _this.state.original;
@@ -16134,68 +15862,19 @@
size = Number(value);
}
return size;
- }, _this.renderModalContent = function () {
- var _this$props = _this.props,
- clsPrefix = _this$props.clsPrefix,
- children = _this$props.children,
- resizable = _this$props.resizable,
- contentStyle = _this$props.contentStyle,
- minHeight = _this$props.minHeight,
- minWidth = _this$props.minWidth,
- resizeClassName = _this$props.resizeClassName;
- var _this$state = _this.state,
- maxWidth = _this$state.maxWidth,
- maxHeight = _this$state.maxHeight;
-
- if (!resizable) {
- return _react2["default"].createElement(
- 'div',
- { style: contentStyle, className: (0, _classnames2["default"])([clsPrefix + '-content']), role: 'document', ref: function ref(_ref) {
- return _this.resize = _ref;
- } },
- children
- );
- }
- return _react2["default"].createElement(
- _reResizable2["default"],
- {
- className: resizeClassName,
- ref: function ref(c) {
- if (c) {
- _this.resizable = c;
- }
- },
- onResizeStart: _this.onResizeStart,
- onResize: _this.onResize,
- onResizeStop: _this.onResizeStop,
- minWidth: _this.handleWH(minWidth),
- minHeight: _this.handleWH(minHeight),
- maxWidth: _this.handleWH(maxWidth),
- maxHeight: _this.handleWH(maxHeight)
- },
- _react2["default"].createElement(
- 'div',
- { style: _extends({}, contentStyle, { height: "100%" }), className: (0, _classnames2["default"])([clsPrefix + '-content']), role: 'document', ref: function ref(_ref2) {
- return _this.resize = _ref2;
- } },
- children
- )
- );
}, _temp), _possibleConstructorReturn(_this, _ret);
}
ModalDialog.prototype.componentDidUpdate = function componentDidUpdate() {
- if (this.props.resizable) {
- var _getMaxSizesFromProps = this.getMaxSizesFromProps(),
- maxWidth = _getMaxSizesFromProps.maxWidth,
- maxHeight = _getMaxSizesFromProps.maxHeight;
+ var _getMaxSizesFromProps = this.getMaxSizesFromProps(),
+ maxWidth = _getMaxSizesFromProps.maxWidth,
+ maxHeight = _getMaxSizesFromProps.maxHeight;
- if (maxWidth != this.state.maxWidth) {
- this.setState({
- maxWidth: maxWidth,
- maxHeight: maxHeight
- });
- }
+ if (maxWidth != this.state.maxWidth) {
+ this.setState({
+ maxWidth: maxWidth,
+ maxHeight: maxHeight
+ });
}
};
@@ -16232,18 +15911,14 @@
children = _props.children,
draggable = _props.draggable,
resizable = _props.resizable,
- resizeClassName = _props.resizeClassName,
minHeight = _props.minHeight,
minWidth = _props.minWidth,
- bounds = _props.bounds,
- props = _objectWithoutProperties(_props, ['dialogClassName', 'className', 'clsPrefix', 'size', 'style', 'contentStyle', 'children', 'draggable', 'resizable', 'resizeClassName', 'minHeight', 'minWidth', 'bounds']);
+ props = _objectWithoutProperties(_props, ['dialogClassName', 'className', 'clsPrefix', 'size', 'style', 'contentStyle', 'children', 'draggable', 'resizable', 'minHeight', 'minWidth']);
var _state = this.state,
original = _state.original,
maxWidth = _state.maxWidth,
- maxHeight = _state.maxHeight,
- draging = _state.draging,
- draged = _state.draged;
+ maxHeight = _state.maxHeight;
var uClassName = _defineProperty({}, '' + clsPrefix, true);
@@ -16257,9 +15932,6 @@
if (draggable) {
dialogClasses[clsPrefix + '-draggable'] = true;
}
- if (draging) dialogClasses[clsPrefix + '-draging'] = true;
-
- if (draged) dialogClasses[clsPrefix + '-draged'] = true;
return _react2["default"].createElement(
'div',
@@ -16275,19 +15947,47 @@
_react2["default"].createElement(
'div',
{ className: (0, _classnames2["default"])(dialogClassName, dialogClasses), style: style },
- draggable ? _react2["default"].createElement(
+ _react2["default"].createElement(
_beeDnd2["default"],
{
handle: '.dnd-handle',
cancel: '.dnd-cancel',
- bounds: bounds //防止拖拽时,Header 被导航栏覆盖
- , onStart: this.onStart,
+ onStart: this.onStart,
onStop: this.onStop,
position: original,
list: []
},
- this.renderModalContent()
- ) : this.renderModalContent()
+ resizable ? _react2["default"].createElement(
+ _reResizable2["default"],
+ {
+ ref: function ref(c) {
+ if (c) {
+ _this2.resizable = c;
+ }
+ },
+ onResizeStart: this.onResizeStart,
+ onResize: this.onResize,
+ onResizeStop: this.onResizeStop,
+ minWidth: this.handleWH(minWidth),
+ minHeight: this.handleWH(minHeight),
+ maxWidth: this.handleWH(maxWidth),
+ maxHeight: this.handleWH(maxHeight)
+ },
+ _react2["default"].createElement(
+ 'div',
+ { style: _extends({}, contentStyle, { height: "100%" }), className: (0, _classnames2["default"])([clsPrefix + '-content']), role: 'document', ref: function ref(_ref) {
+ return _this2.resize = _ref;
+ } },
+ children
+ )
+ ) : _react2["default"].createElement(
+ 'div',
+ { style: contentStyle, className: (0, _classnames2["default"])([clsPrefix + '-content']), role: 'document', ref: function ref(_ref2) {
+ return _this2.resize = _ref2;
+ } },
+ children
+ )
+ )
)
);
};
@@ -16302,7 +16002,7 @@
module.exports = exports['default'];
/***/ }),
-/* 142 */
+/* 150 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -16311,7 +16011,7 @@
value: true
});
- var _Dnd = __webpack_require__(143);
+ var _Dnd = __webpack_require__(151);
var _Dnd2 = _interopRequireDefault(_Dnd);
@@ -16321,7 +16021,7 @@
module.exports = exports['default'];
/***/ }),
-/* 143 */
+/* 151 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -16336,9 +16036,9 @@
var _react2 = _interopRequireDefault(_react);
- var _reactBeautifulDnd = __webpack_require__(144);
+ var _reactBeautifulDnd = __webpack_require__(152);
- var _reactDraggable = __webpack_require__(242);
+ var _reactDraggable = __webpack_require__(250);
var _reactDraggable2 = _interopRequireDefault(_reactDraggable);
@@ -16346,22 +16046,18 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _lodash = __webpack_require__(243);
+ var _lodash = __webpack_require__(251);
var _lodash2 = _interopRequireDefault(_lodash);
- var _SortList = __webpack_require__(244);
+ var _SortList = __webpack_require__(252);
var _SortList2 = _interopRequireDefault(_SortList);
- var _Between = __webpack_require__(246);
+ var _Between = __webpack_require__(254);
var _Between2 = _interopRequireDefault(_Between);
- var _GridLayout = __webpack_require__(247);
-
- var _GridLayout2 = _interopRequireDefault(_GridLayout);
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
@@ -16473,12 +16169,11 @@
Dnd.DragDropContext = _reactBeautifulDnd.DragDropContext;
Dnd.Droppable = _reactBeautifulDnd.Droppable;
Dnd.Draggable = _reactBeautifulDnd.Draggable;
- Dnd.GridLayout = _GridLayout2["default"];
exports["default"] = Dnd;
module.exports = exports['default'];
/***/ }),
-/* 144 */
+/* 152 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
@@ -16487,20 +16182,20 @@
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
- var _extends = _interopDefault(__webpack_require__(145));
- var invariant = _interopDefault(__webpack_require__(184));
- var cssBoxModel = __webpack_require__(185);
- var _Object$keys = _interopDefault(__webpack_require__(186));
- var memoizeOne = _interopDefault(__webpack_require__(190));
- var redux = __webpack_require__(191);
- var _Object$assign = _interopDefault(__webpack_require__(146));
- var rafSchd = _interopDefault(__webpack_require__(195));
- var _inheritsLoose = _interopDefault(__webpack_require__(196));
+ var _extends = _interopDefault(__webpack_require__(153));
+ var invariant = _interopDefault(__webpack_require__(192));
+ var cssBoxModel = __webpack_require__(193);
+ var _Object$keys = _interopDefault(__webpack_require__(194));
+ var memoizeOne = _interopDefault(__webpack_require__(198));
+ var redux = __webpack_require__(199);
+ var _Object$assign = _interopDefault(__webpack_require__(154));
+ var rafSchd = _interopDefault(__webpack_require__(203));
+ var _inheritsLoose = _interopDefault(__webpack_require__(204));
var React = __webpack_require__(1);
var React__default = _interopDefault(React);
var PropTypes = _interopDefault(__webpack_require__(6));
- var reactRedux = __webpack_require__(203);
- var reactMotion = __webpack_require__(228);
+ var reactRedux = __webpack_require__(211);
+ var reactMotion = __webpack_require__(236);
var vertical = {
direction: 'vertical',
@@ -22922,10 +22617,10 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 145 */
+/* 153 */
/***/ (function(module, exports, __webpack_require__) {
- var _Object$assign = __webpack_require__(146);
+ var _Object$assign = __webpack_require__(154);
function _extends() {
module.exports = _extends = _Object$assign || function (target) {
@@ -22948,38 +22643,38 @@
module.exports = _extends;
/***/ }),
-/* 146 */
+/* 154 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(147);
+ module.exports = __webpack_require__(155);
/***/ }),
-/* 147 */
+/* 155 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(148);
- module.exports = __webpack_require__(151).Object.assign;
+ __webpack_require__(156);
+ module.exports = __webpack_require__(159).Object.assign;
/***/ }),
-/* 148 */
+/* 156 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.1 Object.assign(target, source)
- var $export = __webpack_require__(149);
+ var $export = __webpack_require__(157);
- $export($export.S + $export.F, 'Object', { assign: __webpack_require__(165) });
+ $export($export.S + $export.F, 'Object', { assign: __webpack_require__(173) });
/***/ }),
-/* 149 */
+/* 157 */
/***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(150);
- var core = __webpack_require__(151);
- var ctx = __webpack_require__(152);
- var hide = __webpack_require__(154);
- var has = __webpack_require__(164);
+ var global = __webpack_require__(158);
+ var core = __webpack_require__(159);
+ var ctx = __webpack_require__(160);
+ var hide = __webpack_require__(162);
+ var has = __webpack_require__(172);
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
@@ -23040,7 +22735,7 @@
/***/ }),
-/* 150 */
+/* 158 */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
@@ -23052,19 +22747,19 @@
/***/ }),
-/* 151 */
+/* 159 */
/***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.9' };
+ var core = module.exports = { version: '2.6.5' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
-/* 152 */
+/* 160 */
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
- var aFunction = __webpack_require__(153);
+ var aFunction = __webpack_require__(161);
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
@@ -23086,7 +22781,7 @@
/***/ }),
-/* 153 */
+/* 161 */
/***/ (function(module, exports) {
module.exports = function (it) {
@@ -23096,12 +22791,12 @@
/***/ }),
-/* 154 */
+/* 162 */
/***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__(155);
- var createDesc = __webpack_require__(163);
- module.exports = __webpack_require__(159) ? function (object, key, value) {
+ var dP = __webpack_require__(163);
+ var createDesc = __webpack_require__(171);
+ module.exports = __webpack_require__(167) ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
@@ -23110,15 +22805,15 @@
/***/ }),
-/* 155 */
+/* 163 */
/***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__(156);
- var IE8_DOM_DEFINE = __webpack_require__(158);
- var toPrimitive = __webpack_require__(162);
+ var anObject = __webpack_require__(164);
+ var IE8_DOM_DEFINE = __webpack_require__(166);
+ var toPrimitive = __webpack_require__(170);
var dP = Object.defineProperty;
- exports.f = __webpack_require__(159) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+ exports.f = __webpack_require__(167) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
@@ -23132,10 +22827,10 @@
/***/ }),
-/* 156 */
+/* 164 */
/***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(157);
+ var isObject = __webpack_require__(165);
module.exports = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
@@ -23143,7 +22838,7 @@
/***/ }),
-/* 157 */
+/* 165 */
/***/ (function(module, exports) {
module.exports = function (it) {
@@ -23152,26 +22847,26 @@
/***/ }),
-/* 158 */
+/* 166 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__(159) && !__webpack_require__(160)(function () {
- return Object.defineProperty(__webpack_require__(161)('div'), 'a', { get: function () { return 7; } }).a != 7;
+ module.exports = !__webpack_require__(167) && !__webpack_require__(168)(function () {
+ return Object.defineProperty(__webpack_require__(169)('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
-/* 159 */
+/* 167 */
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__(160)(function () {
+ module.exports = !__webpack_require__(168)(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
-/* 160 */
+/* 168 */
/***/ (function(module, exports) {
module.exports = function (exec) {
@@ -23184,11 +22879,11 @@
/***/ }),
-/* 161 */
+/* 169 */
/***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__(157);
- var document = __webpack_require__(150).document;
+ var isObject = __webpack_require__(165);
+ var document = __webpack_require__(158).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
@@ -23197,11 +22892,11 @@
/***/ }),
-/* 162 */
+/* 170 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__(157);
+ var isObject = __webpack_require__(165);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
@@ -23215,7 +22910,7 @@
/***/ }),
-/* 163 */
+/* 171 */
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
@@ -23229,7 +22924,7 @@
/***/ }),
-/* 164 */
+/* 172 */
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
@@ -23239,21 +22934,20 @@
/***/ }),
-/* 165 */
+/* 173 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 19.1.2.1 Object.assign(target, source, ...)
- var DESCRIPTORS = __webpack_require__(159);
- var getKeys = __webpack_require__(166);
- var gOPS = __webpack_require__(181);
- var pIE = __webpack_require__(182);
- var toObject = __webpack_require__(183);
- var IObject = __webpack_require__(169);
+ var getKeys = __webpack_require__(174);
+ var gOPS = __webpack_require__(189);
+ var pIE = __webpack_require__(190);
+ var toObject = __webpack_require__(191);
+ var IObject = __webpack_require__(177);
var $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
- module.exports = !$assign || __webpack_require__(160)(function () {
+ module.exports = !$assign || __webpack_require__(168)(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
@@ -23274,21 +22968,18 @@
var length = keys.length;
var j = 0;
var key;
- while (length > j) {
- key = keys[j++];
- if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
- }
+ while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
} return T;
} : $assign;
/***/ }),
-/* 166 */
+/* 174 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__(167);
- var enumBugKeys = __webpack_require__(180);
+ var $keys = __webpack_require__(175);
+ var enumBugKeys = __webpack_require__(188);
module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
@@ -23296,13 +22987,13 @@
/***/ }),
-/* 167 */
+/* 175 */
/***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(164);
- var toIObject = __webpack_require__(168);
- var arrayIndexOf = __webpack_require__(172)(false);
- var IE_PROTO = __webpack_require__(176)('IE_PROTO');
+ var has = __webpack_require__(172);
+ var toIObject = __webpack_require__(176);
+ var arrayIndexOf = __webpack_require__(180)(false);
+ var IE_PROTO = __webpack_require__(184)('IE_PROTO');
module.exports = function (object, names) {
var O = toIObject(object);
@@ -23319,23 +23010,23 @@
/***/ }),
-/* 168 */
+/* 176 */
/***/ (function(module, exports, __webpack_require__) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__(169);
- var defined = __webpack_require__(171);
+ var IObject = __webpack_require__(177);
+ var defined = __webpack_require__(179);
module.exports = function (it) {
return IObject(defined(it));
};
/***/ }),
-/* 169 */
+/* 177 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__(170);
+ var cof = __webpack_require__(178);
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
@@ -23343,7 +23034,7 @@
/***/ }),
-/* 170 */
+/* 178 */
/***/ (function(module, exports) {
var toString = {}.toString;
@@ -23354,7 +23045,7 @@
/***/ }),
-/* 171 */
+/* 179 */
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
@@ -23365,14 +23056,14 @@
/***/ }),
-/* 172 */
+/* 180 */
/***/ (function(module, exports, __webpack_require__) {
// false -> Array#indexOf
// true -> Array#includes
- var toIObject = __webpack_require__(168);
- var toLength = __webpack_require__(173);
- var toAbsoluteIndex = __webpack_require__(175);
+ var toIObject = __webpack_require__(176);
+ var toLength = __webpack_require__(181);
+ var toAbsoluteIndex = __webpack_require__(183);
module.exports = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIObject($this);
@@ -23394,11 +23085,11 @@
/***/ }),
-/* 173 */
+/* 181 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
- var toInteger = __webpack_require__(174);
+ var toInteger = __webpack_require__(182);
var min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
@@ -23406,7 +23097,7 @@
/***/ }),
-/* 174 */
+/* 182 */
/***/ (function(module, exports) {
// 7.1.4 ToInteger
@@ -23418,10 +23109,10 @@
/***/ }),
-/* 175 */
+/* 183 */
/***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(174);
+ var toInteger = __webpack_require__(182);
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
@@ -23431,22 +23122,22 @@
/***/ }),
-/* 176 */
+/* 184 */
/***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__(177)('keys');
- var uid = __webpack_require__(179);
+ var shared = __webpack_require__(185)('keys');
+ var uid = __webpack_require__(187);
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/ }),
-/* 177 */
+/* 185 */
/***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__(151);
- var global = __webpack_require__(150);
+ var core = __webpack_require__(159);
+ var global = __webpack_require__(158);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
@@ -23454,20 +23145,20 @@
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
- mode: __webpack_require__(178) ? 'pure' : 'global',
+ mode: __webpack_require__(186) ? 'pure' : 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});
/***/ }),
-/* 178 */
+/* 186 */
/***/ (function(module, exports) {
module.exports = true;
/***/ }),
-/* 179 */
+/* 187 */
/***/ (function(module, exports) {
var id = 0;
@@ -23478,7 +23169,7 @@
/***/ }),
-/* 180 */
+/* 188 */
/***/ (function(module, exports) {
// IE 8- don't enum bug keys
@@ -23488,32 +23179,32 @@
/***/ }),
-/* 181 */
+/* 189 */
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
-/* 182 */
+/* 190 */
/***/ (function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/ }),
-/* 183 */
+/* 191 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
- var defined = __webpack_require__(171);
+ var defined = __webpack_require__(179);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
-/* 184 */
+/* 192 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
@@ -23537,7 +23228,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 185 */
+/* 193 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
@@ -23546,7 +23237,7 @@
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
- var invariant = _interopDefault(__webpack_require__(184));
+ var invariant = _interopDefault(__webpack_require__(192));
var getRect = function getRect(_ref) {
var top = _ref.top,
@@ -23628,11 +23319,7 @@
var parse = function parse(raw) {
var value = raw.slice(0, -2);
var suffix = raw.slice(-2);
-
- if (suffix !== 'px') {
- return 0;
- }
-
+ !(suffix === 'px') ? process.env.NODE_ENV !== "production" ? invariant(false, "Expected value to be a pixel value.\n Expected form: 10px\n Actual value: " + raw + "\n ") : invariant(false) : void 0;
var result = Number(value);
!!isNaN(result) ? process.env.NODE_ENV !== "production" ? invariant(false, "Could not parse value [raw: " + raw + ", without suffix: " + value + "]") : invariant(false) : void 0;
return result;
@@ -23697,40 +23384,40 @@
return calculateBox(borderBox, styles);
};
- exports.calculateBox = calculateBox;
- exports.createBox = createBox;
- exports.expand = expand;
- exports.getBox = getBox;
exports.getRect = getRect;
- exports.offset = offset;
+ exports.expand = expand;
exports.shrink = shrink;
+ exports.createBox = createBox;
+ exports.offset = offset;
exports.withScroll = withScroll;
+ exports.calculateBox = calculateBox;
+ exports.getBox = getBox;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 186 */
+/* 194 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(187);
+ module.exports = __webpack_require__(195);
/***/ }),
-/* 187 */
+/* 195 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(188);
- module.exports = __webpack_require__(151).Object.keys;
+ __webpack_require__(196);
+ module.exports = __webpack_require__(159).Object.keys;
/***/ }),
-/* 188 */
+/* 196 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 Object.keys(O)
- var toObject = __webpack_require__(183);
- var $keys = __webpack_require__(166);
+ var toObject = __webpack_require__(191);
+ var $keys = __webpack_require__(174);
- __webpack_require__(189)('keys', function () {
+ __webpack_require__(197)('keys', function () {
return function keys(it) {
return $keys(toObject(it));
};
@@ -23738,13 +23425,13 @@
/***/ }),
-/* 189 */
+/* 197 */
/***/ (function(module, exports, __webpack_require__) {
// most Object methods by ES6 should accept primitives
- var $export = __webpack_require__(149);
- var core = __webpack_require__(151);
- var fails = __webpack_require__(160);
+ var $export = __webpack_require__(157);
+ var core = __webpack_require__(159);
+ var fails = __webpack_require__(168);
module.exports = function (KEY, exec) {
var fn = (core.Object || {})[KEY] || Object[KEY];
var exp = {};
@@ -23754,7 +23441,7 @@
/***/ }),
-/* 190 */
+/* 198 */
/***/ (function(module, exports) {
'use strict';
@@ -23774,7 +23461,7 @@
var calledOnce = false;
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
- return isEqual(newArg, lastArgs[index], index);
+ return isEqual(newArg, lastArgs[index]);
};
var result = function result() {
@@ -23800,7 +23487,7 @@
/***/ }),
-/* 191 */
+/* 199 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
@@ -23809,7 +23496,7 @@
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
- var $$observable = _interopDefault(__webpack_require__(192));
+ var $$observable = _interopDefault(__webpack_require__(200));
/**
* These are private action types reserved by Redux.
@@ -23874,7 +23561,7 @@
var _ref2;
if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
- throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');
+ throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function');
}
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
@@ -23899,13 +23586,6 @@
var currentListeners = [];
var nextListeners = currentListeners;
var isDispatching = false;
- /**
- * This makes a shallow copy of currentListeners so we can use
- * nextListeners as a temporary list while dispatching.
- *
- * This prevents any bugs around consumers calling
- * subscribe/unsubscribe in the middle of a dispatch.
- */
function ensureCanMutateNextListeners() {
if (nextListeners === currentListeners) {
@@ -24051,11 +23731,7 @@
throw new Error('Expected the nextReducer to be a function.');
}
- currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
- // Any reducers that existed in both the new and old rootReducer
- // will receive the previous state. This effectively populates
- // the new state tree with any relevant data from the old one.
-
+ currentReducer = nextReducer;
dispatch({
type: ActionTypes.REPLACE
});
@@ -24225,9 +23901,7 @@
}
}
- var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
- // keys multiple times.
-
+ var finalReducerKeys = Object.keys(finalReducers);
var unexpectedKeyCache;
if (process.env.NODE_ENV !== 'production') {
@@ -24292,8 +23966,8 @@
* may be invoked directly. This is just a convenience method, as you can call
* `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
*
- * For convenience, you can also pass an action creator as the first argument,
- * and get a dispatch wrapped function in return.
+ * For convenience, you can also pass a single function as the first argument,
+ * and get a function in return.
*
* @param {Function|Object} actionCreators An object whose values are action
* creator functions. One handy way to obtain it is to use ES6 `import * as`
@@ -24318,9 +23992,11 @@
throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
}
+ var keys = Object.keys(actionCreators);
var boundActionCreators = {};
- for (var key in actionCreators) {
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i];
var actionCreator = actionCreators[key];
if (typeof actionCreator === 'function') {
@@ -24346,34 +24022,20 @@
return obj;
}
- function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
-
- if (Object.getOwnPropertySymbols) {
- keys.push.apply(keys, Object.getOwnPropertySymbols(object));
- }
-
- if (enumerableOnly) keys = keys.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- return keys;
- }
-
- function _objectSpread2(target) {
+ function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
+ var ownKeys = Object.keys(source);
- if (i % 2) {
- ownKeys(source, true).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(source).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
+ if (typeof Object.getOwnPropertySymbols === 'function') {
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
+ }));
}
+
+ ownKeys.forEach(function (key) {
+ _defineProperty(target, key, source[key]);
+ });
}
return target;
@@ -24438,7 +24100,7 @@
var store = createStore.apply(void 0, arguments);
var _dispatch = function dispatch() {
- throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
+ throw new Error("Dispatching while constructing your middleware is not allowed. " + "Other middleware would not be applied to this dispatch.");
};
var middlewareAPI = {
@@ -24451,7 +24113,7 @@
return middleware(middlewareAPI);
});
_dispatch = compose.apply(void 0, chain)(store.dispatch);
- return _objectSpread2({}, store, {
+ return _objectSpread({}, store, {
dispatch: _dispatch
});
};
@@ -24469,17 +24131,17 @@
warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
}
- exports.__DO_NOT_USE__ActionTypes = ActionTypes;
- exports.applyMiddleware = applyMiddleware;
- exports.bindActionCreators = bindActionCreators;
- exports.combineReducers = combineReducers;
- exports.compose = compose;
exports.createStore = createStore;
+ exports.combineReducers = combineReducers;
+ exports.bindActionCreators = bindActionCreators;
+ exports.applyMiddleware = applyMiddleware;
+ exports.compose = compose;
+ exports.__DO_NOT_USE__ActionTypes = ActionTypes;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 192 */
+/* 200 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global, module) {'use strict';
@@ -24488,7 +24150,7 @@
value: true
});
- var _ponyfill = __webpack_require__(194);
+ var _ponyfill = __webpack_require__(202);
var _ponyfill2 = _interopRequireDefault(_ponyfill);
@@ -24511,10 +24173,10 @@
var result = (0, _ponyfill2['default'])(root);
exports['default'] = result;
- /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(193)(module)))
+ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(201)(module)))
/***/ }),
-/* 193 */
+/* 201 */
/***/ (function(module, exports) {
module.exports = function(module) {
@@ -24530,7 +24192,7 @@
/***/ }),
-/* 194 */
+/* 202 */
/***/ (function(module, exports) {
'use strict';
@@ -24558,17 +24220,17 @@
};
/***/ }),
-/* 195 */
+/* 203 */
/***/ (function(module, exports) {
'use strict';
- var rafSchd = function rafSchd(fn) {
+ var index = (function (fn) {
var lastArgs = [];
var frameId = null;
var wrapperFn = function wrapperFn() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
@@ -24580,7 +24242,7 @@
frameId = requestAnimationFrame(function () {
frameId = null;
- fn.apply(void 0, lastArgs);
+ fn.apply(undefined, lastArgs);
});
};
@@ -24593,17 +24255,19 @@
frameId = null;
};
- return wrapperFn;
- };
+ var resultFn = wrapperFn;
- module.exports = rafSchd;
+ return resultFn;
+ });
+
+ module.exports = index;
/***/ }),
-/* 196 */
+/* 204 */
/***/ (function(module, exports, __webpack_require__) {
- var _Object$create = __webpack_require__(197);
+ var _Object$create = __webpack_require__(205);
function _inheritsLoose(subClass, superClass) {
subClass.prototype = _Object$create(superClass.prototype);
@@ -24614,53 +24278,53 @@
module.exports = _inheritsLoose;
/***/ }),
-/* 197 */
+/* 205 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(198);
+ module.exports = __webpack_require__(206);
/***/ }),
-/* 198 */
+/* 206 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(199);
- var $Object = __webpack_require__(151).Object;
+ __webpack_require__(207);
+ var $Object = __webpack_require__(159).Object;
module.exports = function create(P, D) {
return $Object.create(P, D);
};
/***/ }),
-/* 199 */
+/* 207 */
/***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__(149);
+ var $export = __webpack_require__(157);
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- $export($export.S, 'Object', { create: __webpack_require__(200) });
+ $export($export.S, 'Object', { create: __webpack_require__(208) });
/***/ }),
-/* 200 */
+/* 208 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__(156);
- var dPs = __webpack_require__(201);
- var enumBugKeys = __webpack_require__(180);
- var IE_PROTO = __webpack_require__(176)('IE_PROTO');
+ var anObject = __webpack_require__(164);
+ var dPs = __webpack_require__(209);
+ var enumBugKeys = __webpack_require__(188);
+ var IE_PROTO = __webpack_require__(184)('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__(161)('iframe');
+ var iframe = __webpack_require__(169)('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
- __webpack_require__(202).appendChild(iframe);
+ __webpack_require__(210).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
@@ -24687,14 +24351,14 @@
/***/ }),
-/* 201 */
+/* 209 */
/***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__(155);
- var anObject = __webpack_require__(156);
- var getKeys = __webpack_require__(166);
+ var dP = __webpack_require__(163);
+ var anObject = __webpack_require__(164);
+ var getKeys = __webpack_require__(174);
- module.exports = __webpack_require__(159) ? Object.defineProperties : function defineProperties(O, Properties) {
+ module.exports = __webpack_require__(167) ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = getKeys(Properties);
var length = keys.length;
@@ -24706,40 +24370,40 @@
/***/ }),
-/* 202 */
+/* 210 */
/***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__(150).document;
+ var document = __webpack_require__(158).document;
module.exports = document && document.documentElement;
/***/ }),
-/* 203 */
+/* 211 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _interopRequireDefault = __webpack_require__(14);
- var _interopRequireWildcard = __webpack_require__(204);
+ var _interopRequireWildcard = __webpack_require__(212);
exports.__esModule = true;
- var _Provider = _interopRequireWildcard(__webpack_require__(205));
+ var _Provider = _interopRequireWildcard(__webpack_require__(213));
exports.Provider = _Provider.default;
exports.createProvider = _Provider.createProvider;
- var _connectAdvanced = _interopRequireDefault(__webpack_require__(209));
+ var _connectAdvanced = _interopRequireDefault(__webpack_require__(217));
exports.connectAdvanced = _connectAdvanced.default;
- var _connect = _interopRequireDefault(__webpack_require__(218));
+ var _connect = _interopRequireDefault(__webpack_require__(226));
exports.connect = _connect.default;
/***/ }),
-/* 204 */
+/* 212 */
/***/ (function(module, exports) {
function _interopRequireWildcard(obj) {
@@ -24770,7 +24434,7 @@
module.exports = _interopRequireWildcard;
/***/ }),
-/* 205 */
+/* 213 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -24781,15 +24445,15 @@
exports.createProvider = createProvider;
exports.default = void 0;
- var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(206));
+ var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(214));
var _react = __webpack_require__(1);
var _propTypes = _interopRequireDefault(__webpack_require__(6));
- var _PropTypes = __webpack_require__(207);
+ var _PropTypes = __webpack_require__(215);
- var _warning = _interopRequireDefault(__webpack_require__(208));
+ var _warning = _interopRequireDefault(__webpack_require__(216));
var didWarnAboutReceivingStore = false;
@@ -24860,7 +24524,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 206 */
+/* 214 */
/***/ (function(module, exports) {
function _inheritsLoose(subClass, superClass) {
@@ -24872,7 +24536,7 @@
module.exports = _inheritsLoose;
/***/ }),
-/* 207 */
+/* 215 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -24902,7 +24566,7 @@
exports.storeShape = storeShape;
/***/ }),
-/* 208 */
+/* 216 */
/***/ (function(module, exports) {
"use strict";
@@ -24936,7 +24600,7 @@
}
/***/ }),
-/* 209 */
+/* 217 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -24946,25 +24610,25 @@
exports.__esModule = true;
exports.default = connectAdvanced;
- var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(206));
+ var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(214));
- var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(210));
+ var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(218));
- var _extends2 = _interopRequireDefault(__webpack_require__(110));
+ var _extends2 = _interopRequireDefault(__webpack_require__(122));
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(211));
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(219));
- var _hoistNonReactStatics = _interopRequireDefault(__webpack_require__(212));
+ var _hoistNonReactStatics = _interopRequireDefault(__webpack_require__(220));
- var _invariant = _interopRequireDefault(__webpack_require__(216));
+ var _invariant = _interopRequireDefault(__webpack_require__(221));
var _react = __webpack_require__(1);
- var _reactIs = __webpack_require__(213);
+ var _reactIs = __webpack_require__(222);
- var _Subscription = _interopRequireDefault(__webpack_require__(217));
+ var _Subscription = _interopRequireDefault(__webpack_require__(225));
- var _PropTypes = __webpack_require__(207);
+ var _PropTypes = __webpack_require__(215);
var hotReloadingVersion = 0;
var dummyState = {};
@@ -25249,7 +24913,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 210 */
+/* 218 */
/***/ (function(module, exports) {
function _assertThisInitialized(self) {
@@ -25263,7 +24927,7 @@
module.exports = _assertThisInitialized;
/***/ }),
-/* 211 */
+/* 219 */
/***/ (function(module, exports) {
function _objectWithoutPropertiesLoose(source, excluded) {
@@ -25284,8 +24948,8 @@
module.exports = _objectWithoutPropertiesLoose;
/***/ }),
-/* 212 */
-/***/ (function(module, exports, __webpack_require__) {
+/* 220 */
+/***/ (function(module, exports) {
'use strict';
@@ -25293,15 +24957,12 @@
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
- var ReactIs = __webpack_require__(213);
var REACT_STATICS = {
childContextTypes: true,
- contextType: true,
contextTypes: true,
defaultProps: true,
displayName: true,
getDefaultProps: true,
- getDerivedStateFromError: true,
getDerivedStateFromProps: true,
mixins: true,
propTypes: true,
@@ -25318,43 +24979,15 @@
arity: true
};
- var FORWARD_REF_STATICS = {
- '$$typeof': true,
- render: true,
- defaultProps: true,
- displayName: true,
- propTypes: true
- };
-
- var MEMO_STATICS = {
- '$$typeof': true,
- compare: true,
- defaultProps: true,
- displayName: true,
- propTypes: true,
- type: true
- };
-
- var TYPE_STATICS = {};
- TYPE_STATICS[ReactIs.ForwardRef] = FORWARD_REF_STATICS;
-
- function getStatics(component) {
- if (ReactIs.isMemo(component)) {
- return MEMO_STATICS;
- }
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
- }
-
var defineProperty = Object.defineProperty;
var getOwnPropertyNames = Object.getOwnPropertyNames;
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var getPrototypeOf = Object.getPrototypeOf;
- var objectPrototype = Object.prototype;
+ var objectPrototype = getPrototypeOf && getPrototypeOf(Object);
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
- if (typeof sourceComponent !== 'string') {
- // don't hoist over string (html) components
+ if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
if (objectPrototype) {
var inheritedComponent = getPrototypeOf(sourceComponent);
@@ -25369,15 +25002,11 @@
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
}
- var targetStatics = getStatics(targetComponent);
- var sourceStatics = getStatics(sourceComponent);
-
for (var i = 0; i < keys.length; ++i) {
var key = keys[i];
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
+ if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
- try {
- // Avoid failures from read-only properties
+ try { // Avoid failures from read-only properties
defineProperty(targetComponent, key, descriptor);
} catch (e) {}
}
@@ -25393,21 +25022,77 @@
/***/ }),
-/* 213 */
+/* 221 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /* WEBPACK VAR INJECTION */(function(process) {/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+ '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 invariant = function(condition, format, a, b, c, d, e, f) {
+ if (process.env.NODE_ENV !== 'production') {
+ if (format === undefined) {
+ throw new Error('invariant requires an error message argument');
+ }
+ }
+
+ 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;
+
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
+
+/***/ }),
+/* 222 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
if (process.env.NODE_ENV === 'production') {
- module.exports = __webpack_require__(214);
+ module.exports = __webpack_require__(223);
} else {
- module.exports = __webpack_require__(215);
+ module.exports = __webpack_require__(224);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 214 */
+/* 223 */
/***/ (function(module, exports) {
/** @license React v16.8.6
@@ -25428,7 +25113,7 @@
/***/ }),
-/* 215 */
+/* 224 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.8.6
@@ -25662,63 +25347,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 216 */
-/***/ (function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(process) {/**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
- '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 invariant = function(condition, format, a, b, c, d, e, f) {
- if (process.env.NODE_ENV !== 'production') {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument');
- }
- }
-
- 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;
-
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
-
-/***/ }),
-/* 217 */
+/* 225 */
/***/ (function(module, exports) {
"use strict";
@@ -25815,7 +25444,7 @@
exports.default = Subscription;
/***/ }),
-/* 218 */
+/* 226 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -25826,21 +25455,21 @@
exports.createConnect = createConnect;
exports.default = void 0;
- var _extends2 = _interopRequireDefault(__webpack_require__(110));
+ var _extends2 = _interopRequireDefault(__webpack_require__(122));
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(211));
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(219));
- var _connectAdvanced = _interopRequireDefault(__webpack_require__(209));
+ var _connectAdvanced = _interopRequireDefault(__webpack_require__(217));
- var _shallowEqual = _interopRequireDefault(__webpack_require__(219));
+ var _shallowEqual = _interopRequireDefault(__webpack_require__(227));
- var _mapDispatchToProps = _interopRequireDefault(__webpack_require__(220));
+ var _mapDispatchToProps = _interopRequireDefault(__webpack_require__(228));
- var _mapStateToProps = _interopRequireDefault(__webpack_require__(224));
+ var _mapStateToProps = _interopRequireDefault(__webpack_require__(232));
- var _mergeProps = _interopRequireDefault(__webpack_require__(225));
+ var _mergeProps = _interopRequireDefault(__webpack_require__(233));
- var _selectorFactory = _interopRequireDefault(__webpack_require__(226));
+ var _selectorFactory = _interopRequireDefault(__webpack_require__(234));
/*
connect is a facade over connectAdvanced. It turns its args into a compatible
@@ -25935,7 +25564,7 @@
exports.default = _default;
/***/ }),
-/* 219 */
+/* 227 */
/***/ (function(module, exports) {
"use strict";
@@ -25973,7 +25602,7 @@
}
/***/ }),
-/* 220 */
+/* 228 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -25984,9 +25613,9 @@
exports.whenMapDispatchToPropsIsObject = whenMapDispatchToPropsIsObject;
exports.default = void 0;
- var _redux = __webpack_require__(191);
+ var _redux = __webpack_require__(199);
- var _wrapMapToProps = __webpack_require__(221);
+ var _wrapMapToProps = __webpack_require__(229);
function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
return typeof mapDispatchToProps === 'function' ? (0, _wrapMapToProps.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : undefined;
@@ -26010,7 +25639,7 @@
exports.default = _default;
/***/ }),
-/* 221 */
+/* 229 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -26022,7 +25651,7 @@
exports.getDependsOnOwnProps = getDependsOnOwnProps;
exports.wrapMapToPropsFunc = wrapMapToPropsFunc;
- var _verifyPlainObject = _interopRequireDefault(__webpack_require__(222));
+ var _verifyPlainObject = _interopRequireDefault(__webpack_require__(230));
function wrapMapToPropsConstant(getConstant) {
return function initConstantSelector(dispatch, options) {
@@ -26092,7 +25721,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 222 */
+/* 230 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -26102,9 +25731,9 @@
exports.__esModule = true;
exports.default = verifyPlainObject;
- var _isPlainObject = _interopRequireDefault(__webpack_require__(223));
+ var _isPlainObject = _interopRequireDefault(__webpack_require__(231));
- var _warning = _interopRequireDefault(__webpack_require__(208));
+ var _warning = _interopRequireDefault(__webpack_require__(216));
function verifyPlainObject(value, displayName, methodName) {
if (!(0, _isPlainObject.default)(value)) {
@@ -26113,7 +25742,7 @@
}
/***/ }),
-/* 223 */
+/* 231 */
/***/ (function(module, exports) {
"use strict";
@@ -26139,7 +25768,7 @@
}
/***/ }),
-/* 224 */
+/* 232 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -26149,7 +25778,7 @@
exports.whenMapStateToPropsIsMissing = whenMapStateToPropsIsMissing;
exports.default = void 0;
- var _wrapMapToProps = __webpack_require__(221);
+ var _wrapMapToProps = __webpack_require__(229);
function whenMapStateToPropsIsFunction(mapStateToProps) {
return typeof mapStateToProps === 'function' ? (0, _wrapMapToProps.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : undefined;
@@ -26165,7 +25794,7 @@
exports.default = _default;
/***/ }),
-/* 225 */
+/* 233 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -26179,9 +25808,9 @@
exports.whenMergePropsIsOmitted = whenMergePropsIsOmitted;
exports.default = void 0;
- var _extends2 = _interopRequireDefault(__webpack_require__(110));
+ var _extends2 = _interopRequireDefault(__webpack_require__(122));
- var _verifyPlainObject = _interopRequireDefault(__webpack_require__(222));
+ var _verifyPlainObject = _interopRequireDefault(__webpack_require__(230));
function defaultMergeProps(stateProps, dispatchProps, ownProps) {
return (0, _extends2.default)({}, ownProps, stateProps, dispatchProps);
@@ -26225,7 +25854,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 226 */
+/* 234 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {"use strict";
@@ -26237,9 +25866,9 @@
exports.pureFinalPropsSelectorFactory = pureFinalPropsSelectorFactory;
exports.default = finalPropsSelectorFactory;
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(211));
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(219));
- var _verifySubselectors = _interopRequireDefault(__webpack_require__(227));
+ var _verifySubselectors = _interopRequireDefault(__webpack_require__(235));
function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
return function impureFinalPropsSelector(state, ownProps) {
@@ -26330,7 +25959,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 227 */
+/* 235 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -26340,7 +25969,7 @@
exports.__esModule = true;
exports.default = verifySubselectors;
- var _warning = _interopRequireDefault(__webpack_require__(208));
+ var _warning = _interopRequireDefault(__webpack_require__(216));
function verify(selector, methodName, displayName) {
if (!selector) {
@@ -26359,7 +25988,7 @@
}
/***/ }),
-/* 228 */
+/* 236 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -26368,38 +25997,38 @@
function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; }
- var _Motion = __webpack_require__(229);
+ var _Motion = __webpack_require__(237);
exports.Motion = _interopRequire(_Motion);
- var _StaggeredMotion = __webpack_require__(236);
+ var _StaggeredMotion = __webpack_require__(244);
exports.StaggeredMotion = _interopRequire(_StaggeredMotion);
- var _TransitionMotion = __webpack_require__(237);
+ var _TransitionMotion = __webpack_require__(245);
exports.TransitionMotion = _interopRequire(_TransitionMotion);
- var _spring = __webpack_require__(239);
+ var _spring = __webpack_require__(247);
exports.spring = _interopRequire(_spring);
- var _presets = __webpack_require__(240);
+ var _presets = __webpack_require__(248);
exports.presets = _interopRequire(_presets);
- var _stripStyle = __webpack_require__(231);
+ var _stripStyle = __webpack_require__(239);
exports.stripStyle = _interopRequire(_stripStyle);
// deprecated, dummy warning function
- var _reorderKeys = __webpack_require__(241);
+ var _reorderKeys = __webpack_require__(249);
exports.reorderKeys = _interopRequire(_reorderKeys);
/***/ }),
-/* 229 */
+/* 237 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -26416,27 +26045,27 @@
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 _mapToZero = __webpack_require__(230);
+ var _mapToZero = __webpack_require__(238);
var _mapToZero2 = _interopRequireDefault(_mapToZero);
- var _stripStyle = __webpack_require__(231);
+ var _stripStyle = __webpack_require__(239);
var _stripStyle2 = _interopRequireDefault(_stripStyle);
- var _stepper3 = __webpack_require__(232);
+ var _stepper3 = __webpack_require__(240);
var _stepper4 = _interopRequireDefault(_stepper3);
- var _performanceNow = __webpack_require__(233);
+ var _performanceNow = __webpack_require__(241);
var _performanceNow2 = _interopRequireDefault(_performanceNow);
- var _raf = __webpack_require__(234);
+ var _raf = __webpack_require__(242);
var _raf2 = _interopRequireDefault(_raf);
- var _shouldStopAnimation = __webpack_require__(235);
+ var _shouldStopAnimation = __webpack_require__(243);
var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);
@@ -26671,7 +26300,7 @@
// config)
/***/ }),
-/* 230 */
+/* 238 */
/***/ (function(module, exports) {
@@ -26695,7 +26324,7 @@
module.exports = exports['default'];
/***/ }),
-/* 231 */
+/* 239 */
/***/ (function(module, exports) {
@@ -26721,7 +26350,7 @@
module.exports = exports['default'];
/***/ }),
-/* 232 */
+/* 240 */
/***/ (function(module, exports) {
@@ -26769,7 +26398,7 @@
// array reference around.
/***/ }),
-/* 233 */
+/* 241 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
@@ -26812,10 +26441,10 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 234 */
+/* 242 */
/***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(233)
+ /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(241)
, root = typeof window === 'undefined' ? global : window
, vendors = ['moz', 'webkit']
, suffix = 'AnimationFrame'
@@ -26894,7 +26523,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }),
-/* 235 */
+/* 243 */
/***/ (function(module, exports) {
@@ -26930,7 +26559,7 @@
module.exports = exports['default'];
/***/ }),
-/* 236 */
+/* 244 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -26947,27 +26576,27 @@
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 _mapToZero = __webpack_require__(230);
+ var _mapToZero = __webpack_require__(238);
var _mapToZero2 = _interopRequireDefault(_mapToZero);
- var _stripStyle = __webpack_require__(231);
+ var _stripStyle = __webpack_require__(239);
var _stripStyle2 = _interopRequireDefault(_stripStyle);
- var _stepper3 = __webpack_require__(232);
+ var _stepper3 = __webpack_require__(240);
var _stepper4 = _interopRequireDefault(_stepper3);
- var _performanceNow = __webpack_require__(233);
+ var _performanceNow = __webpack_require__(241);
var _performanceNow2 = _interopRequireDefault(_performanceNow);
- var _raf = __webpack_require__(234);
+ var _raf = __webpack_require__(242);
var _raf2 = _interopRequireDefault(_raf);
- var _shouldStopAnimation = __webpack_require__(235);
+ var _shouldStopAnimation = __webpack_require__(243);
var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);
@@ -27223,7 +26852,7 @@
// config)
/***/ }),
-/* 237 */
+/* 245 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -27240,31 +26869,31 @@
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 _mapToZero = __webpack_require__(230);
+ var _mapToZero = __webpack_require__(238);
var _mapToZero2 = _interopRequireDefault(_mapToZero);
- var _stripStyle = __webpack_require__(231);
+ var _stripStyle = __webpack_require__(239);
var _stripStyle2 = _interopRequireDefault(_stripStyle);
- var _stepper3 = __webpack_require__(232);
+ var _stepper3 = __webpack_require__(240);
var _stepper4 = _interopRequireDefault(_stepper3);
- var _mergeDiff = __webpack_require__(238);
+ var _mergeDiff = __webpack_require__(246);
var _mergeDiff2 = _interopRequireDefault(_mergeDiff);
- var _performanceNow = __webpack_require__(233);
+ var _performanceNow = __webpack_require__(241);
var _performanceNow2 = _interopRequireDefault(_performanceNow);
- var _raf = __webpack_require__(234);
+ var _raf = __webpack_require__(242);
var _raf2 = _interopRequireDefault(_raf);
- var _shouldStopAnimation = __webpack_require__(235);
+ var _shouldStopAnimation = __webpack_require__(243);
var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);
@@ -27750,7 +27379,7 @@
// In reality currentStyle should be 400
/***/ }),
-/* 238 */
+/* 246 */
/***/ (function(module, exports) {
@@ -27863,7 +27492,7 @@
// to loop through and find a key's index each time), but I no longer care
/***/ }),
-/* 239 */
+/* 247 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -27876,7 +27505,7 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
- var _presets = __webpack_require__(240);
+ var _presets = __webpack_require__(248);
var _presets2 = _interopRequireDefault(_presets);
@@ -27891,7 +27520,7 @@
module.exports = exports['default'];
/***/ }),
-/* 240 */
+/* 248 */
/***/ (function(module, exports) {
"use strict";
@@ -27906,7 +27535,7 @@
module.exports = exports["default"];
/***/ }),
-/* 241 */
+/* 249 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
@@ -27929,7 +27558,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 242 */
+/* 250 */
/***/ (function(module, exports, __webpack_require__) {
(function (global, factory) {
@@ -30152,7 +29781,7 @@
/***/ }),
-/* 243 */
+/* 251 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global, module) {/**
@@ -32004,10 +31633,10 @@
module.exports = isEqual;
- /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(193)(module)))
+ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(201)(module)))
/***/ }),
-/* 244 */
+/* 252 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -32024,15 +31653,19 @@
var _react2 = _interopRequireDefault(_react);
- var _reactBeautifulDnd = __webpack_require__(144);
+ var _reactDom = __webpack_require__(2);
- var _util = __webpack_require__(245);
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _reactBeautifulDnd = __webpack_require__(152);
+
+ var _util = __webpack_require__(253);
var _classnames = __webpack_require__(5);
var _classnames2 = _interopRequireDefault(_classnames);
- var _lodash = __webpack_require__(243);
+ var _lodash = __webpack_require__(251);
var _lodash2 = _interopRequireDefault(_lodash);
@@ -32157,7 +31790,7 @@
module.exports = exports['default'];
/***/ }),
-/* 245 */
+/* 253 */
/***/ (function(module, exports) {
'use strict';
@@ -32206,7 +31839,7 @@
};
/***/ }),
-/* 246 */
+/* 254 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -32227,15 +31860,15 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _reactBeautifulDnd = __webpack_require__(144);
+ var _reactBeautifulDnd = __webpack_require__(152);
- var _util = __webpack_require__(245);
+ var _util = __webpack_require__(253);
var _classnames = __webpack_require__(5);
var _classnames2 = _interopRequireDefault(_classnames);
- var _lodash = __webpack_require__(243);
+ var _lodash = __webpack_require__(251);
var _lodash2 = _interopRequireDefault(_lodash);
@@ -32468,2639 +32101,12 @@
exports["default"] = Between;
module.exports = exports['default'];
-/***/ }),
-/* 247 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _reactGridLayout = __webpack_require__(248);
-
- var _reactGridLayout2 = _interopRequireDefault(_reactGridLayout);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _reactGridLayout2["default"];
- module.exports = exports['default'];
-
-/***/ }),
-/* 248 */
-/***/ (function(module, exports, __webpack_require__) {
-
- module.exports = __webpack_require__(249).default;
- module.exports.utils = __webpack_require__(250);
- module.exports.Responsive = __webpack_require__(256).default;
- module.exports.Responsive.utils = __webpack_require__(257);
- module.exports.WidthProvider = __webpack_require__(258).default;
-
-
-/***/ }),
-/* 249 */
-/***/ (function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(process) {"use strict";
-
- exports.__esModule = 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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _lodash = __webpack_require__(243);
-
- var _lodash2 = _interopRequireDefault(_lodash);
-
- var _classnames = __webpack_require__(5);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _utils = __webpack_require__(250);
-
- var _GridItem = __webpack_require__(251);
-
- var _GridItem2 = _interopRequireDefault(_GridItem);
-
- 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; }
-
- // End Types
-
- /**
- * A reactive, fluid grid layout with draggable, resizable components.
- */
-
- // Types
- var ReactGridLayout = function (_React$Component) {
- _inherits(ReactGridLayout, _React$Component);
-
- // TODO publish internal ReactClass displayName transform
- function ReactGridLayout(props, context) {
- _classCallCheck(this, ReactGridLayout);
-
- var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
-
- _initialiseProps.call(_this);
-
- (0, _utils.autoBindHandlers)(_this, ["onDragStart", "onDrag", "onDragStop", "onResizeStart", "onResize", "onResizeStop"]);
- return _this;
- }
-
- ReactGridLayout.prototype.componentDidMount = function componentDidMount() {
- this.setState({ mounted: true });
- // Possibly call back with layout on mount. This should be done after correcting the layout width
- // to ensure we don't rerender with the wrong width.
- this.onLayoutMaybeChanged(this.state.layout, this.props.layout);
- };
-
- ReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- var newLayoutBase = void 0;
- // Legacy support for compactType
- // Allow parent to set layout directly.
- if (!(0, _lodash2.default)(nextProps.layout, this.props.layout) || nextProps.compactType !== this.props.compactType) {
- newLayoutBase = nextProps.layout;
- } else if (!(0, _utils.childrenEqual)(this.props.children, nextProps.children)) {
- // If children change, also regenerate the layout. Use our state
- // as the base in case because it may be more up to date than
- // what is in props.
- newLayoutBase = this.state.layout;
- }
-
- // We need to regenerate the layout.
- if (newLayoutBase) {
- var newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, this.compactType(nextProps));
- var _oldLayout = this.state.layout;
- this.setState({ layout: newLayout });
- this.onLayoutMaybeChanged(newLayout, _oldLayout);
- }
- };
-
- /**
- * Calculates a pixel value for the container.
- * @return {String} Container height in pixels.
- */
-
-
- ReactGridLayout.prototype.containerHeight = function containerHeight() {
- if (!this.props.autoSize) return;
- var nbRow = (0, _utils.bottom)(this.state.layout);
- var containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];
- return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + "px";
- };
-
- ReactGridLayout.prototype.compactType = function compactType(props) {
- if (!props) props = this.props;
- return props.verticalCompact === false ? null : props.compactType;
- };
-
- /**
- * When dragging starts
- * @param {String} i Id of the child
- * @param {Number} x X position of the move
- * @param {Number} y Y position of the move
- * @param {Event} e The mousedown event
- * @param {Element} node The current dragging DOM element
- */
-
-
- ReactGridLayout.prototype.onDragStart = function onDragStart(i, x, y, _ref) {
- var e = _ref.e,
- node = _ref.node;
- var layout = this.state.layout;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- this.setState({
- oldDragItem: (0, _utils.cloneLayoutItem)(l),
- oldLayout: this.state.layout
- });
-
- return this.props.onDragStart(layout, l, l, null, e, node);
- };
-
- /**
- * Each drag movement create a new dragelement and move the element to the dragged location
- * @param {String} i Id of the child
- * @param {Number} x X position of the move
- * @param {Number} y Y position of the move
- * @param {Event} e The mousedown event
- * @param {Element} node The current dragging DOM element
- */
-
-
- ReactGridLayout.prototype.onDrag = function onDrag(i, x, y, _ref2) {
- var e = _ref2.e,
- node = _ref2.node;
- var oldDragItem = this.state.oldDragItem;
- var layout = this.state.layout;
- var cols = this.props.cols;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- // Create placeholder (display only)
- var placeholder = {
- w: l.w,
- h: l.h,
- x: l.x,
- y: l.y,
- placeholder: true,
- i: i
- };
-
- // Move the element to the dragged location.
- var isUserAction = true;
- layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, this.props.preventCollision, this.compactType(), cols);
-
- this.props.onDrag(layout, oldDragItem, l, placeholder, e, node);
-
- this.setState({
- layout: (0, _utils.compact)(layout, this.compactType(), cols),
- activeDrag: placeholder
- });
- };
-
- /**
- * When dragging stops, figure out which position the element is closest to and update its x and y.
- * @param {String} i Index of the child.
- * @param {Number} x X position of the move
- * @param {Number} y Y position of the move
- * @param {Event} e The mousedown event
- * @param {Element} node The current dragging DOM element
- */
-
-
- ReactGridLayout.prototype.onDragStop = function onDragStop(i, x, y, _ref3) {
- var e = _ref3.e,
- node = _ref3.node;
- var oldDragItem = this.state.oldDragItem;
- var layout = this.state.layout;
- var _props = this.props,
- cols = _props.cols,
- preventCollision = _props.preventCollision;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- // Move the element here
- var isUserAction = true;
- layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, this.compactType(), cols);
-
- this.props.onDragStop(layout, oldDragItem, l, null, e, node);
-
- // Set state
- var newLayout = (0, _utils.compact)(layout, this.compactType(), cols);
- var oldLayout = this.state.oldLayout;
-
- this.setState({
- activeDrag: null,
- layout: newLayout,
- oldDragItem: null,
- oldLayout: null
- });
-
- this.onLayoutMaybeChanged(newLayout, oldLayout);
- };
-
- ReactGridLayout.prototype.onLayoutMaybeChanged = function onLayoutMaybeChanged(newLayout, oldLayout) {
- if (!oldLayout) oldLayout = this.state.layout;
- if (!(0, _lodash2.default)(oldLayout, newLayout)) {
- this.props.onLayoutChange(newLayout);
- }
- };
-
- ReactGridLayout.prototype.onResizeStart = function onResizeStart(i, w, h, _ref4) {
- var e = _ref4.e,
- node = _ref4.node;
- var layout = this.state.layout;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- this.setState({
- oldResizeItem: (0, _utils.cloneLayoutItem)(l),
- oldLayout: this.state.layout
- });
-
- this.props.onResizeStart(layout, l, l, null, e, node);
- };
-
- ReactGridLayout.prototype.onResize = function onResize(i, w, h, _ref5) {
- var e = _ref5.e,
- node = _ref5.node;
- var _state = this.state,
- layout = _state.layout,
- oldResizeItem = _state.oldResizeItem;
- var _props2 = this.props,
- cols = _props2.cols,
- preventCollision = _props2.preventCollision;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- // Something like quad tree should be used
- // to find collisions faster
- var hasCollisions = void 0;
- if (preventCollision) {
- var collisions = (0, _utils.getAllCollisions)(layout, _extends({}, l, { w: w, h: h })).filter(function (layoutItem) {
- return layoutItem.i !== l.i;
- });
- hasCollisions = collisions.length > 0;
-
- // If we're colliding, we need adjust the placeholder.
- if (hasCollisions) {
- // adjust w && h to maximum allowed space
- var leastX = Infinity,
- leastY = Infinity;
- collisions.forEach(function (layoutItem) {
- if (layoutItem.x > l.x) leastX = Math.min(leastX, layoutItem.x);
- if (layoutItem.y > l.y) leastY = Math.min(leastY, layoutItem.y);
- });
-
- if (Number.isFinite(leastX)) l.w = leastX - l.x;
- if (Number.isFinite(leastY)) l.h = leastY - l.y;
- }
- }
-
- if (!hasCollisions) {
- // Set new width and height.
- l.w = w;
- l.h = h;
- }
-
- // Create placeholder element (display only)
- var placeholder = {
- w: l.w,
- h: l.h,
- x: l.x,
- y: l.y,
- static: true,
- i: i
- };
-
- this.props.onResize(layout, oldResizeItem, l, placeholder, e, node);
-
- // Re-compact the layout and set the drag placeholder.
- this.setState({
- layout: (0, _utils.compact)(layout, this.compactType(), cols),
- activeDrag: placeholder
- });
- };
-
- ReactGridLayout.prototype.onResizeStop = function onResizeStop(i, w, h, _ref6) {
- var e = _ref6.e,
- node = _ref6.node;
- var _state2 = this.state,
- layout = _state2.layout,
- oldResizeItem = _state2.oldResizeItem;
- var cols = this.props.cols;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
-
- this.props.onResizeStop(layout, oldResizeItem, l, null, e, node);
-
- // Set state
- var newLayout = (0, _utils.compact)(layout, this.compactType(), cols);
- var oldLayout = this.state.oldLayout;
-
- this.setState({
- activeDrag: null,
- layout: newLayout,
- oldResizeItem: null,
- oldLayout: null
- });
-
- this.onLayoutMaybeChanged(newLayout, oldLayout);
- };
-
- /**
- * Create a placeholder object.
- * @return {Element} Placeholder div.
- */
-
-
- ReactGridLayout.prototype.placeholder = function placeholder() {
- var activeDrag = this.state.activeDrag;
-
- if (!activeDrag) return null;
- var _props3 = this.props,
- width = _props3.width,
- cols = _props3.cols,
- margin = _props3.margin,
- containerPadding = _props3.containerPadding,
- rowHeight = _props3.rowHeight,
- maxRows = _props3.maxRows,
- useCSSTransforms = _props3.useCSSTransforms;
-
- // {...this.state.activeDrag} is pretty slow, actually
-
- return _react2.default.createElement(
- _GridItem2.default,
- {
- w: activeDrag.w,
- h: activeDrag.h,
- x: activeDrag.x,
- y: activeDrag.y,
- i: activeDrag.i,
- className: "react-grid-placeholder",
- containerWidth: width,
- cols: cols,
- margin: margin,
- containerPadding: containerPadding || margin,
- maxRows: maxRows,
- rowHeight: rowHeight,
- isDraggable: false,
- isResizable: false,
- useCSSTransforms: useCSSTransforms
- },
- _react2.default.createElement("div", null)
- );
- };
-
- /**
- * Given a grid item, set its style attributes & surround in a
.
- * @param {Element} child React element.
- * @return {Element} Element wrapped in draggable and properly placed.
- */
-
-
- ReactGridLayout.prototype.processGridItem = function processGridItem(child) {
- if (!child || !child.key) return;
- var l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key));
- if (!l) return null;
- var _props4 = this.props,
- width = _props4.width,
- cols = _props4.cols,
- margin = _props4.margin,
- containerPadding = _props4.containerPadding,
- rowHeight = _props4.rowHeight,
- maxRows = _props4.maxRows,
- isDraggable = _props4.isDraggable,
- isResizable = _props4.isResizable,
- useCSSTransforms = _props4.useCSSTransforms,
- draggableCancel = _props4.draggableCancel,
- draggableHandle = _props4.draggableHandle;
- var mounted = this.state.mounted;
-
- // Parse 'static'. Any properties defined directly on the grid item will take precedence.
-
- var draggable = Boolean(!l.static && isDraggable && (l.isDraggable || l.isDraggable == null));
- var resizable = Boolean(!l.static && isResizable && (l.isResizable || l.isResizable == null));
-
- return _react2.default.createElement(
- _GridItem2.default,
- {
- containerWidth: width,
- cols: cols,
- margin: margin,
- containerPadding: containerPadding || margin,
- maxRows: maxRows,
- rowHeight: rowHeight,
- cancel: draggableCancel,
- handle: draggableHandle,
- onDragStop: this.onDragStop,
- onDragStart: this.onDragStart,
- onDrag: this.onDrag,
- onResizeStart: this.onResizeStart,
- onResize: this.onResize,
- onResizeStop: this.onResizeStop,
- isDraggable: draggable,
- isResizable: resizable,
- useCSSTransforms: useCSSTransforms && mounted,
- usePercentages: !mounted,
- w: l.w,
- h: l.h,
- x: l.x,
- y: l.y,
- i: l.i,
- minH: l.minH,
- minW: l.minW,
- maxH: l.maxH,
- maxW: l.maxW,
- "static": l.static
- },
- child
- );
- };
-
- ReactGridLayout.prototype.render = function render() {
- var _this2 = this;
-
- var _props5 = this.props,
- className = _props5.className,
- style = _props5.style;
-
-
- var mergedClassName = (0, _classnames2.default)("react-grid-layout", className);
- var mergedStyle = _extends({
- height: this.containerHeight()
- }, style);
-
- return _react2.default.createElement(
- "div",
- { className: mergedClassName, style: mergedStyle },
- _react2.default.Children.map(this.props.children, function (child) {
- return _this2.processGridItem(child);
- }),
- this.placeholder()
- );
- };
-
- return ReactGridLayout;
- }(_react2.default.Component);
-
- ReactGridLayout.displayName = "ReactGridLayout";
- ReactGridLayout.propTypes = {
- //
- // Basic props
- //
- className: _propTypes2.default.string,
- style: _propTypes2.default.object,
-
- // This can be set explicitly. If it is not set, it will automatically
- // be set to the container width. Note that resizes will *not* cause this to adjust.
- // If you need that behavior, use WidthProvider.
- width: _propTypes2.default.number,
-
- // If true, the container height swells and contracts to fit contents
- autoSize: _propTypes2.default.bool,
- // # of cols.
- cols: _propTypes2.default.number,
-
- // A selector that will not be draggable.
- draggableCancel: _propTypes2.default.string,
- // A selector for the draggable handler
- draggableHandle: _propTypes2.default.string,
-
- // Deprecated
- verticalCompact: function verticalCompact(props) {
- if (props.verticalCompact === false && process.env.NODE_ENV !== "production") {
- console.warn(
- // eslint-disable-line no-console
- "`verticalCompact` on is deprecated and will be removed soon. " + 'Use `compactType`: "horizontal" | "vertical" | null.');
- }
- },
- // Choose vertical or hotizontal compaction
- compactType: _propTypes2.default.oneOf(["vertical", "horizontal"]),
-
- // layout is an array of object with the format:
- // {x: Number, y: Number, w: Number, h: Number, i: String}
- layout: function layout(props) {
- var layout = props.layout;
- // I hope you're setting the data-grid property on the grid items
- if (layout === undefined) return;
- (0, _utils.validateLayout)(layout, "layout");
- },
-
- //
- // Grid Dimensions
- //
-
- // Margin between items [x, y] in px
- margin: _propTypes2.default.arrayOf(_propTypes2.default.number),
- // Padding inside the container [x, y] in px
- containerPadding: _propTypes2.default.arrayOf(_propTypes2.default.number),
- // Rows have a static height, but you can change this based on breakpoints if you like
- rowHeight: _propTypes2.default.number,
- // Default Infinity, but you can specify a max here if you like.
- // Note that this isn't fully fleshed out and won't error if you specify a layout that
- // extends beyond the row capacity. It will, however, not allow users to drag/resize
- // an item past the barrier. They can push items beyond the barrier, though.
- // Intentionally not documented for this reason.
- maxRows: _propTypes2.default.number,
-
- //
- // Flags
- //
- isDraggable: _propTypes2.default.bool,
- isResizable: _propTypes2.default.bool,
- // If true, grid items won't change position when being dragged over.
- preventCollision: _propTypes2.default.bool,
- // Use CSS transforms instead of top/left
- useCSSTransforms: _propTypes2.default.bool,
-
- //
- // Callbacks
- //
-
- // Callback so you can save the layout. Calls after each drag & resize stops.
- onLayoutChange: _propTypes2.default.func,
-
- // Calls when drag starts. Callback is of the signature (layout, oldItem, newItem, placeholder, e, ?node).
- // All callbacks below have the same signature. 'start' and 'stop' callbacks omit the 'placeholder'.
- onDragStart: _propTypes2.default.func,
- // Calls on each drag movement.
- onDrag: _propTypes2.default.func,
- // Calls when drag is complete.
- onDragStop: _propTypes2.default.func,
- //Calls when resize starts.
- onResizeStart: _propTypes2.default.func,
- // Calls when resize movement happens.
- onResize: _propTypes2.default.func,
- // Calls when resize is complete.
- onResizeStop: _propTypes2.default.func,
-
- //
- // Other validations
- //
-
- // Children must not have duplicate keys.
- children: function children(props, propName) {
- var children = props[propName];
-
- // Check children keys for duplicates. Throw if found.
- var keys = {};
- _react2.default.Children.forEach(children, function (child) {
- if (keys[child.key]) {
- throw new Error('Duplicate child key "' + child.key + '" found! This will cause problems in ReactGridLayout.');
- }
- keys[child.key] = true;
- });
- }
- };
- ReactGridLayout.defaultProps = {
- autoSize: true,
- cols: 12,
- className: "",
- style: {},
- draggableHandle: "",
- draggableCancel: "",
- containerPadding: null,
- rowHeight: 150,
- maxRows: Infinity, // infinite vertical growth
- layout: [],
- margin: [10, 10],
- isDraggable: true,
- isResizable: true,
- useCSSTransforms: true,
- verticalCompact: true,
- compactType: "vertical",
- preventCollision: false,
- onLayoutChange: _utils.noop,
- onDragStart: _utils.noop,
- onDrag: _utils.noop,
- onDragStop: _utils.noop,
- onResizeStart: _utils.noop,
- onResize: _utils.noop,
- onResizeStop: _utils.noop
- };
-
- var _initialiseProps = function _initialiseProps() {
- this.state = {
- activeDrag: null,
- layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols,
- // Legacy support for verticalCompact: false
- this.compactType()),
- mounted: false,
- oldDragItem: null,
- oldLayout: null,
- oldResizeItem: null
- };
- };
-
- exports.default = ReactGridLayout;
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
-
-/***/ }),
-/* 250 */
-/***/ (function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(process) {"use strict";
-
- exports.__esModule = true;
- exports.noop = 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; };
-
- exports.bottom = bottom;
- exports.cloneLayout = cloneLayout;
- exports.cloneLayoutItem = cloneLayoutItem;
- exports.childrenEqual = childrenEqual;
- exports.collides = collides;
- exports.compact = compact;
- exports.compactItem = compactItem;
- exports.correctBounds = correctBounds;
- exports.getLayoutItem = getLayoutItem;
- exports.getFirstCollision = getFirstCollision;
- exports.getAllCollisions = getAllCollisions;
- exports.getStatics = getStatics;
- exports.moveElement = moveElement;
- exports.moveElementAwayFromCollision = moveElementAwayFromCollision;
- exports.perc = perc;
- exports.setTransform = setTransform;
- exports.setTopLeft = setTopLeft;
- exports.sortLayoutItems = sortLayoutItems;
- exports.sortLayoutItemsByRowCol = sortLayoutItemsByRowCol;
- exports.sortLayoutItemsByColRow = sortLayoutItemsByColRow;
- exports.synchronizeLayoutWithChildren = synchronizeLayoutWithChildren;
- exports.validateLayout = validateLayout;
- exports.autoBindHandlers = autoBindHandlers;
-
- var _lodash = __webpack_require__(243);
-
- var _lodash2 = _interopRequireDefault(_lodash);
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- // All callbacks are of the signature (layout, oldItem, newItem, placeholder, e).
- var isProduction = process.env.NODE_ENV === "production";
- var DEBUG = false;
-
- /**
- * Return the bottom coordinate of the layout.
- *
- * @param {Array} layout Layout array.
- * @return {Number} Bottom coordinate.
- */
- function bottom(layout) {
- var max = 0,
- bottomY = void 0;
- for (var _i = 0, len = layout.length; _i < len; _i++) {
- bottomY = layout[_i].y + layout[_i].h;
- if (bottomY > max) max = bottomY;
- }
- return max;
- }
-
- function cloneLayout(layout) {
- var newLayout = Array(layout.length);
- for (var _i2 = 0, len = layout.length; _i2 < len; _i2++) {
- newLayout[_i2] = cloneLayoutItem(layout[_i2]);
- }
- return newLayout;
- }
-
- // Fast path to cloning, since this is monomorphic
- function cloneLayoutItem(layoutItem) {
- return {
- w: layoutItem.w,
- h: layoutItem.h,
- x: layoutItem.x,
- y: layoutItem.y,
- i: layoutItem.i,
- minW: layoutItem.minW,
- maxW: layoutItem.maxW,
- minH: layoutItem.minH,
- maxH: layoutItem.maxH,
- moved: Boolean(layoutItem.moved),
- static: Boolean(layoutItem.static),
- // These can be null
- isDraggable: layoutItem.isDraggable,
- isResizable: layoutItem.isResizable
- };
- }
-
- /**
- * Comparing React `children` is a bit difficult. This is a good way to compare them.
- * This will catch differences in keys, order, and length.
- */
- function childrenEqual(a, b) {
- return (0, _lodash2.default)(_react2.default.Children.map(a, function (c) {
- return c.key;
- }), _react2.default.Children.map(b, function (c) {
- return c.key;
- }));
- }
-
- /**
- * Given two layoutitems, check if they collide.
- */
- function collides(l1, l2) {
- if (l1 === l2) return false; // same element
- if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2
- if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2
- if (l1.y + l1.h <= l2.y) return false; // l1 is above l2
- if (l1.y >= l2.y + l2.h) return false; // l1 is below l2
- return true; // boxes overlap
- }
-
- /**
- * Given a layout, compact it. This involves going down each y coordinate and removing gaps
- * between items.
- *
- * @param {Array} layout Layout.
- * @param {Boolean} verticalCompact Whether or not to compact the layout
- * vertically.
- * @return {Array} Compacted Layout.
- */
- function compact(layout, compactType, cols) {
- // Statics go in the compareWith array right away so items flow around them.
- var compareWith = getStatics(layout);
- // We go through the items by row and column.
- var sorted = sortLayoutItems(layout, compactType);
- // Holding for new items.
- var out = Array(layout.length);
-
- for (var _i3 = 0, len = sorted.length; _i3 < len; _i3++) {
- var l = cloneLayoutItem(sorted[_i3]);
-
- // Don't move static elements
- if (!l.static) {
- l = compactItem(compareWith, l, compactType, cols, sorted);
-
- // Add to comparison array. We only collide with items before this one.
- // Statics are already in this array.
- compareWith.push(l);
- }
-
- // Add to output array to make sure they still come out in the right order.
- out[layout.indexOf(sorted[_i3])] = l;
-
- // Clear moved flag, if it exists.
- l.moved = false;
- }
-
- return out;
- }
-
- var heightWidth = { x: "w", y: "h" };
- /**
- * Before moving item down, it will check if the movement will cause collisions and move those items down before.
- */
- function resolveCompactionCollision(layout, item, moveToCoord, axis) {
- var sizeProp = heightWidth[axis];
- item[axis] += 1;
- var itemIndex = layout.indexOf(item);
-
- // Go through each item we collide with.
- for (var _i4 = itemIndex + 1; _i4 < layout.length; _i4++) {
- var otherItem = layout[_i4];
- // Ignore static items
- if (otherItem.static) continue;
-
- // Optimization: we can break early if we know we're past this el
- // We can do this b/c it's a sorted layout
- if (otherItem.y > item.y + item.h) break;
-
- if (collides(item, otherItem)) {
- resolveCompactionCollision(layout, otherItem, moveToCoord + item[sizeProp], axis);
- }
- }
-
- item[axis] = moveToCoord;
- }
-
- /**
- * Compact an item in the layout.
- */
- function compactItem(compareWith, l, compactType, cols, fullLayout) {
- var compactV = compactType === "vertical";
- var compactH = compactType === "horizontal";
- if (compactV) {
- // Bottom 'y' possible is the bottom of the layout.
- // This allows you to do nice stuff like specify {y: Infinity}
- // This is here because the layout must be sorted in order to get the correct bottom `y`.
- l.y = Math.min(bottom(compareWith), l.y);
- // Move the element up as far as it can go without colliding.
- while (l.y > 0 && !getFirstCollision(compareWith, l)) {
- l.y--;
- }
- } else if (compactH) {
- l.y = Math.min(bottom(compareWith), l.y);
- // Move the element left as far as it can go without colliding.
- while (l.x > 0 && !getFirstCollision(compareWith, l)) {
- l.x--;
- }
- }
-
- // Move it down, and keep moving it down if it's colliding.
- var collides = void 0;
- while (collides = getFirstCollision(compareWith, l)) {
- if (compactH) {
- resolveCompactionCollision(fullLayout, l, collides.x + collides.w, "x");
- } else {
- resolveCompactionCollision(fullLayout, l, collides.y + collides.h, "y");
- }
- // Since we can't grow without bounds horizontally, if we've overflown, let's move it down and try again.
- if (compactH && l.x + l.w > cols) {
- l.x = cols - l.w;
- l.y++;
- }
- }
- return l;
- }
-
- /**
- * Given a layout, make sure all elements fit within its bounds.
- *
- * @param {Array} layout Layout array.
- * @param {Number} bounds Number of columns.
- */
- function correctBounds(layout, bounds) {
- var collidesWith = getStatics(layout);
- for (var _i5 = 0, len = layout.length; _i5 < len; _i5++) {
- var l = layout[_i5];
- // Overflows right
- if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;
- // Overflows left
- if (l.x < 0) {
- l.x = 0;
- l.w = bounds.cols;
- }
- if (!l.static) collidesWith.push(l);else {
- // If this is static and collides with other statics, we must move it down.
- // We have to do something nicer than just letting them overlap.
- while (getFirstCollision(collidesWith, l)) {
- l.y++;
- }
- }
- }
- return layout;
- }
-
- /**
- * Get a layout item by ID. Used so we can override later on if necessary.
- *
- * @param {Array} layout Layout array.
- * @param {String} id ID
- * @return {LayoutItem} Item at ID.
- */
- function getLayoutItem(layout, id) {
- for (var _i6 = 0, len = layout.length; _i6 < len; _i6++) {
- if (layout[_i6].i === id) return layout[_i6];
- }
- }
-
- /**
- * Returns the first item this layout collides with.
- * It doesn't appear to matter which order we approach this from, although
- * perhaps that is the wrong thing to do.
- *
- * @param {Object} layoutItem Layout item.
- * @return {Object|undefined} A colliding layout item, or undefined.
- */
- function getFirstCollision(layout, layoutItem) {
- for (var _i7 = 0, len = layout.length; _i7 < len; _i7++) {
- if (collides(layout[_i7], layoutItem)) return layout[_i7];
- }
- }
-
- function getAllCollisions(layout, layoutItem) {
- return layout.filter(function (l) {
- return collides(l, layoutItem);
- });
- }
-
- /**
- * Get all static elements.
- * @param {Array} layout Array of layout objects.
- * @return {Array} Array of static layout items..
- */
- function getStatics(layout) {
- return layout.filter(function (l) {
- return l.static;
- });
- }
-
- /**
- * Move an element. Responsible for doing cascading movements of other elements.
- *
- * @param {Array} layout Full layout to modify.
- * @param {LayoutItem} l element to move.
- * @param {Number} [x] X position in grid units.
- * @param {Number} [y] Y position in grid units.
- */
- function moveElement(layout, l, x, y, isUserAction, preventCollision, compactType, cols) {
- if (l.static) return layout;
-
- // Short-circuit if nothing to do.
- if (l.y === y && l.x === x) return layout;
-
- log("Moving element " + l.i + " to [" + String(x) + "," + String(y) + "] from [" + l.x + "," + l.y + "]");
- var oldX = l.x;
- var oldY = l.y;
-
- // This is quite a bit faster than extending the object
- if (typeof x === 'number') l.x = x;
- if (typeof y === 'number') l.y = y;
- l.moved = true;
-
- // If this collides with anything, move it.
- // When doing this comparison, we have to sort the items we compare with
- // to ensure, in the case of multiple collisions, that we're getting the
- // nearest collision.
- var sorted = sortLayoutItems(layout, compactType);
- var movingUp = compactType === "vertical" && typeof y === 'number' ? oldY >= y : compactType === "horizontal" && typeof x === 'number' ? oldX >= x : false;
- if (movingUp) sorted = sorted.reverse();
- var collisions = getAllCollisions(sorted, l);
-
- // There was a collision; abort
- if (preventCollision && collisions.length) {
- log("Collision prevented on " + l.i + ", reverting.");
- l.x = oldX;
- l.y = oldY;
- l.moved = false;
- return layout;
- }
-
- // Move each item that collides away from this element.
- for (var _i8 = 0, len = collisions.length; _i8 < len; _i8++) {
- var collision = collisions[_i8];
- log("Resolving collision between " + l.i + " at [" + l.x + "," + l.y + "] and " + collision.i + " at [" + collision.x + "," + collision.y + "]");
-
- // Short circuit so we can't infinite loop
- if (collision.moved) continue;
-
- // Don't move static items - we have to move *this* element away
- if (collision.static) {
- layout = moveElementAwayFromCollision(layout, collision, l, isUserAction, compactType, cols);
- } else {
- layout = moveElementAwayFromCollision(layout, l, collision, isUserAction, compactType, cols);
- }
- }
-
- return layout;
- }
-
- /**
- * This is where the magic needs to happen - given a collision, move an element away from the collision.
- * We attempt to move it up if there's room, otherwise it goes below.
- *
- * @param {Array} layout Full layout to modify.
- * @param {LayoutItem} collidesWith Layout item we're colliding with.
- * @param {LayoutItem} itemToMove Layout item we're moving.
- */
- function moveElementAwayFromCollision(layout, collidesWith, itemToMove, isUserAction, compactType, cols) {
- var compactH = compactType === "horizontal";
- var compactV = compactType === "vertical";
- var preventCollision = false; // we're already colliding
-
- // If there is enough space above the collision to put this element, move it there.
- // We only do this on the main collision as this can get funky in cascades and cause
- // unwanted swapping behavior.
- if (isUserAction) {
- // Reset isUserAction flag because we're not in the main collision anymore.
- isUserAction = false;
-
- // Make a mock item so we don't modify the item here, only modify in moveElement.
- var fakeItem = {
- x: compactH ? Math.max(collidesWith.x - itemToMove.w, 0) : itemToMove.x,
- y: compactV ? Math.max(collidesWith.y - itemToMove.h, 0) : itemToMove.y,
- w: itemToMove.w,
- h: itemToMove.h,
- i: "-1"
- };
-
- // No collision? If so, we can go up there; otherwise, we'll end up moving down as normal
- if (!getFirstCollision(layout, fakeItem)) {
- log("Doing reverse collision on " + itemToMove.i + " up to [" + fakeItem.x + "," + fakeItem.y + "].");
- return moveElement(layout, itemToMove, compactH ? fakeItem.x : undefined, compactV ? fakeItem.y : undefined, isUserAction, preventCollision, compactType, cols);
- }
- }
-
- return moveElement(layout, itemToMove, compactH ? itemToMove.x + 1 : undefined, compactV ? itemToMove.y + 1 : undefined, isUserAction, preventCollision, compactType, cols);
- }
-
- /**
- * Helper to convert a number to a percentage string.
- *
- * @param {Number} num Any number
- * @return {String} That number as a percentage.
- */
- function perc(num) {
- return num * 100 + "%";
- }
-
- function setTransform(_ref) {
- var top = _ref.top,
- left = _ref.left,
- width = _ref.width,
- height = _ref.height;
-
- // Replace unitless items with px
- var translate = "translate(" + left + "px," + top + "px)";
- return {
- transform: translate,
- WebkitTransform: translate,
- MozTransform: translate,
- msTransform: translate,
- OTransform: translate,
- width: width + "px",
- height: height + "px",
- position: "absolute"
- };
- }
-
- function setTopLeft(_ref2) {
- var top = _ref2.top,
- left = _ref2.left,
- width = _ref2.width,
- height = _ref2.height;
-
- return {
- top: top + "px",
- left: left + "px",
- width: width + "px",
- height: height + "px",
- position: "absolute"
- };
- }
-
- /**
- * Get layout items sorted from top left to right and down.
- *
- * @return {Array} Array of layout objects.
- * @return {Array} Layout, sorted static items first.
- */
- function sortLayoutItems(layout, compactType) {
- if (compactType === "horizontal") return sortLayoutItemsByColRow(layout);else return sortLayoutItemsByRowCol(layout);
- }
-
- function sortLayoutItemsByRowCol(layout) {
- return [].concat(layout).sort(function (a, b) {
- if (a.y > b.y || a.y === b.y && a.x > b.x) {
- return 1;
- } else if (a.y === b.y && a.x === b.x) {
- // Without this, we can get different sort results in IE vs. Chrome/FF
- return 0;
- }
- return -1;
- });
- }
-
- function sortLayoutItemsByColRow(layout) {
- return [].concat(layout).sort(function (a, b) {
- if (a.x > b.x || a.x === b.x && a.y > b.y) {
- return 1;
- }
- return -1;
- });
- }
-
- /**
- * Generate a layout using the initialLayout and children as a template.
- * Missing entries will be added, extraneous ones will be truncated.
- *
- * @param {Array} initialLayout Layout passed in through props.
- * @param {String} breakpoint Current responsive breakpoint.
- * @param {?String} compact Compaction option.
- * @return {Array} Working layout.
- */
- function synchronizeLayoutWithChildren(initialLayout, children, cols, compactType) {
- initialLayout = initialLayout || [];
-
- // Generate one layout item per child.
- var layout = [];
- _react2.default.Children.forEach(children, function (child, i) {
- // Don't overwrite if it already exists.
- var exists = getLayoutItem(initialLayout, String(child.key));
- if (exists) {
- layout[i] = cloneLayoutItem(exists);
- } else {
- if (!isProduction && child.props._grid) {
- console.warn("`_grid` properties on children have been deprecated as of React 15.2. " + // eslint-disable-line
- "Please use `data-grid` or add your properties directly to the `layout`.");
- }
- var g = child.props["data-grid"] || child.props._grid;
-
- // Hey, this item has a data-grid property, use it.
- if (g) {
- if (!isProduction) {
- validateLayout([g], "ReactGridLayout.children");
- }
- layout[i] = cloneLayoutItem(_extends({}, g, { i: child.key }));
- } else {
- // Nothing provided: ensure this is added to the bottom
- layout[i] = cloneLayoutItem({
- w: 1,
- h: 1,
- x: 0,
- y: bottom(layout),
- i: String(child.key)
- });
- }
- }
- });
-
- // Correct the layout.
- layout = correctBounds(layout, { cols: cols });
- layout = compact(layout, compactType, cols);
-
- return layout;
- }
-
- /**
- * Validate a layout. Throws errors.
- *
- * @param {Array} layout Array of layout items.
- * @param {String} [contextName] Context name for errors.
- * @throw {Error} Validation error.
- */
- function validateLayout(layout) {
- var contextName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Layout";
-
- var subProps = ["x", "y", "w", "h"];
- if (!Array.isArray(layout)) throw new Error(contextName + " must be an array!");
- for (var _i9 = 0, len = layout.length; _i9 < len; _i9++) {
- var item = layout[_i9];
- for (var j = 0; j < subProps.length; j++) {
- if (typeof item[subProps[j]] !== "number") {
- throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "]." + subProps[j] + " must be a number!");
- }
- }
- if (item.i && typeof item.i !== "string") {
- throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].i must be a string!");
- }
- if (item.static !== undefined && typeof item.static !== "boolean") {
- throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].static must be a boolean!");
- }
- }
- }
-
- // Flow can't really figure this out, so we just use Object
- function autoBindHandlers(el, fns) {
- fns.forEach(function (key) {
- return el[key] = el[key].bind(el);
- });
- }
-
- function log() {
- var _console;
-
- if (!DEBUG) return;
- // eslint-disable-next-line no-console
- (_console = console).log.apply(_console, arguments);
- }
-
- var noop = exports.noop = function noop() {};
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
-
-/***/ }),
-/* 251 */
-/***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- exports.__esModule = 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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactDraggable = __webpack_require__(242);
-
- var _reactResizable = __webpack_require__(252);
-
- var _utils = __webpack_require__(250);
-
- var _classnames = __webpack_require__(5);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- 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; }
-
- /**
- * An individual item within a ReactGridLayout.
- */
- var GridItem = function (_React$Component) {
- _inherits(GridItem, _React$Component);
-
- function GridItem() {
- var _temp, _this, _ret;
-
- _classCallCheck(this, GridItem);
-
- 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.state = {
- resizing: null,
- dragging: null,
- className: ""
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- // Helper for generating column width
- GridItem.prototype.calcColWidth = function calcColWidth() {
- var _props = this.props,
- margin = _props.margin,
- containerPadding = _props.containerPadding,
- containerWidth = _props.containerWidth,
- cols = _props.cols;
-
- return (containerWidth - margin[0] * (cols - 1) - containerPadding[0] * 2) / cols;
- };
-
- /**
- * Return position on the page given an x, y, w, h.
- * left, top, width, height are all in pixels.
- * @param {Number} x X coordinate in grid units.
- * @param {Number} y Y coordinate in grid units.
- * @param {Number} w W coordinate in grid units.
- * @param {Number} h H coordinate in grid units.
- * @return {Object} Object containing coords.
- */
-
-
- GridItem.prototype.calcPosition = function calcPosition(x, y, w, h, state) {
- var _props2 = this.props,
- margin = _props2.margin,
- containerPadding = _props2.containerPadding,
- rowHeight = _props2.rowHeight;
-
- var colWidth = this.calcColWidth();
-
- var out = {
- left: Math.round((colWidth + margin[0]) * x + containerPadding[0]),
- top: Math.round((rowHeight + margin[1]) * y + containerPadding[1]),
- // 0 * Infinity === NaN, which causes problems with resize constraints;
- // Fix this if it occurs.
- // Note we do it here rather than later because Math.round(Infinity) causes deopt
- width: w === Infinity ? w : Math.round(colWidth * w + Math.max(0, w - 1) * margin[0]),
- height: h === Infinity ? h : Math.round(rowHeight * h + Math.max(0, h - 1) * margin[1])
- };
-
- if (state && state.resizing) {
- out.width = Math.round(state.resizing.width);
- out.height = Math.round(state.resizing.height);
- }
-
- if (state && state.dragging) {
- out.top = Math.round(state.dragging.top);
- out.left = Math.round(state.dragging.left);
- }
-
- return out;
- };
-
- /**
- * Translate x and y coordinates from pixels to grid units.
- * @param {Number} top Top position (relative to parent) in pixels.
- * @param {Number} left Left position (relative to parent) in pixels.
- * @return {Object} x and y in grid units.
- */
-
-
- GridItem.prototype.calcXY = function calcXY(top, left) {
- var _props3 = this.props,
- margin = _props3.margin,
- cols = _props3.cols,
- rowHeight = _props3.rowHeight,
- w = _props3.w,
- h = _props3.h,
- maxRows = _props3.maxRows;
-
- var colWidth = this.calcColWidth();
-
- // left = colWidth * x + margin * (x + 1)
- // l = cx + m(x+1)
- // l = cx + mx + m
- // l - m = cx + mx
- // l - m = x(c + m)
- // (l - m) / (c + m) = x
- // x = (left - margin) / (coldWidth + margin)
- var x = Math.round((left - margin[0]) / (colWidth + margin[0]));
- var y = Math.round((top - margin[1]) / (rowHeight + margin[1]));
-
- // Capping
- x = Math.max(Math.min(x, cols - w), 0);
- y = Math.max(Math.min(y, maxRows - h), 0);
-
- return { x: x, y: y };
- };
-
- /**
- * Given a height and width in pixel values, calculate grid units.
- * @param {Number} height Height in pixels.
- * @param {Number} width Width in pixels.
- * @return {Object} w, h as grid units.
- */
-
-
- GridItem.prototype.calcWH = function calcWH(_ref) {
- var height = _ref.height,
- width = _ref.width;
- var _props4 = this.props,
- margin = _props4.margin,
- maxRows = _props4.maxRows,
- cols = _props4.cols,
- rowHeight = _props4.rowHeight,
- x = _props4.x,
- y = _props4.y;
-
- var colWidth = this.calcColWidth();
-
- // width = colWidth * w - (margin * (w - 1))
- // ...
- // w = (width + margin) / (colWidth + margin)
- var w = Math.round((width + margin[0]) / (colWidth + margin[0]));
- var h = Math.round((height + margin[1]) / (rowHeight + margin[1]));
-
- // Capping
- w = Math.max(Math.min(w, cols - x), 0);
- h = Math.max(Math.min(h, maxRows - y), 0);
- return { w: w, h: h };
- };
-
- /**
- * This is where we set the grid item's absolute placement. It gets a little tricky because we want to do it
- * well when server rendering, and the only way to do that properly is to use percentage width/left because
- * we don't know exactly what the browser viewport is.
- * Unfortunately, CSS Transforms, which are great for performance, break in this instance because a percentage
- * left is relative to the item itself, not its container! So we cannot use them on the server rendering pass.
- *
- * @param {Object} pos Position object with width, height, left, top.
- * @return {Object} Style object.
- */
-
-
- GridItem.prototype.createStyle = function createStyle(pos) {
- var _props5 = this.props,
- usePercentages = _props5.usePercentages,
- containerWidth = _props5.containerWidth,
- useCSSTransforms = _props5.useCSSTransforms;
-
-
- var style = void 0;
- // CSS Transforms support (default)
- if (useCSSTransforms) {
- style = (0, _utils.setTransform)(pos);
- } else {
- // top,left (slow)
- style = (0, _utils.setTopLeft)(pos);
-
- // This is used for server rendering.
- if (usePercentages) {
- style.left = (0, _utils.perc)(pos.left / containerWidth);
- style.width = (0, _utils.perc)(pos.width / containerWidth);
- }
- }
-
- return style;
- };
-
- /**
- * Mix a Draggable instance into a child.
- * @param {Element} child Child element.
- * @return {Element} Child wrapped in Draggable.
- */
-
-
- GridItem.prototype.mixinDraggable = function mixinDraggable(child) {
- return _react2.default.createElement(
- _reactDraggable.DraggableCore,
- {
- onStart: this.onDragHandler("onDragStart"),
- onDrag: this.onDragHandler("onDrag"),
- onStop: this.onDragHandler("onDragStop"),
- handle: this.props.handle,
- cancel: ".react-resizable-handle" + (this.props.cancel ? "," + this.props.cancel : "")
- },
- child
- );
- };
-
- /**
- * Mix a Resizable instance into a child.
- * @param {Element} child Child element.
- * @param {Object} position Position object (pixel values)
- * @return {Element} Child wrapped in Resizable.
- */
-
-
- GridItem.prototype.mixinResizable = function mixinResizable(child, position) {
- var _props6 = this.props,
- cols = _props6.cols,
- x = _props6.x,
- minW = _props6.minW,
- minH = _props6.minH,
- maxW = _props6.maxW,
- maxH = _props6.maxH;
-
- // This is the max possible width - doesn't go to infinity because of the width of the window
-
- var maxWidth = this.calcPosition(0, 0, cols - x, 0).width;
-
- // Calculate min/max constraints using our min & maxes
- var mins = this.calcPosition(0, 0, minW, minH);
- var maxes = this.calcPosition(0, 0, maxW, maxH);
- var minConstraints = [mins.width, mins.height];
- var maxConstraints = [Math.min(maxes.width, maxWidth), Math.min(maxes.height, Infinity)];
- return _react2.default.createElement(
- _reactResizable.Resizable,
- {
- width: position.width,
- height: position.height,
- minConstraints: minConstraints,
- maxConstraints: maxConstraints,
- onResizeStop: this.onResizeHandler("onResizeStop"),
- onResizeStart: this.onResizeHandler("onResizeStart"),
- onResize: this.onResizeHandler("onResize")
- },
- child
- );
- };
-
- /**
- * Wrapper around drag events to provide more useful data.
- * All drag events call the function with the given handler name,
- * with the signature (index, x, y).
- *
- * @param {String} handlerName Handler name to wrap.
- * @return {Function} Handler function.
- */
-
-
- GridItem.prototype.onDragHandler = function onDragHandler(handlerName) {
- var _this2 = this;
-
- return function (e, _ref2) {
- var node = _ref2.node,
- deltaX = _ref2.deltaX,
- deltaY = _ref2.deltaY;
-
- var handler = _this2.props[handlerName];
- if (!handler) return;
-
- var newPosition = { top: 0, left: 0 };
-
- // Get new XY
- switch (handlerName) {
- case "onDragStart":
- {
- // TODO: this wont work on nested parents
- var offsetParent = node.offsetParent;
-
- if (!offsetParent) return;
- var parentRect = offsetParent.getBoundingClientRect();
- var clientRect = node.getBoundingClientRect();
- newPosition.left = clientRect.left - parentRect.left + offsetParent.scrollLeft;
- newPosition.top = clientRect.top - parentRect.top + offsetParent.scrollTop;
- _this2.setState({ dragging: newPosition });
- break;
- }
- case "onDrag":
- if (!_this2.state.dragging) throw new Error("onDrag called before onDragStart.");
- newPosition.left = _this2.state.dragging.left + deltaX;
- newPosition.top = _this2.state.dragging.top + deltaY;
- _this2.setState({ dragging: newPosition });
- break;
- case "onDragStop":
- if (!_this2.state.dragging) throw new Error("onDragEnd called before onDragStart.");
- newPosition.left = _this2.state.dragging.left;
- newPosition.top = _this2.state.dragging.top;
- _this2.setState({ dragging: null });
- break;
- default:
- throw new Error("onDragHandler called with unrecognized handlerName: " + handlerName);
- }
-
- var _calcXY = _this2.calcXY(newPosition.top, newPosition.left),
- x = _calcXY.x,
- y = _calcXY.y;
-
- return handler.call(_this2, _this2.props.i, x, y, { e: e, node: node, newPosition: newPosition });
- };
- };
-
- /**
- * Wrapper around drag events to provide more useful data.
- * All drag events call the function with the given handler name,
- * with the signature (index, x, y).
- *
- * @param {String} handlerName Handler name to wrap.
- * @return {Function} Handler function.
- */
-
-
- GridItem.prototype.onResizeHandler = function onResizeHandler(handlerName) {
- var _this3 = this;
-
- return function (e, _ref3) {
- var node = _ref3.node,
- size = _ref3.size;
-
- var handler = _this3.props[handlerName];
- if (!handler) return;
- var _props7 = _this3.props,
- cols = _props7.cols,
- x = _props7.x,
- i = _props7.i,
- maxW = _props7.maxW,
- minW = _props7.minW,
- maxH = _props7.maxH,
- minH = _props7.minH;
-
- // Get new XY
-
- var _calcWH = _this3.calcWH(size),
- w = _calcWH.w,
- h = _calcWH.h;
-
- // Cap w at numCols
-
-
- w = Math.min(w, cols - x);
- // Ensure w is at least 1
- w = Math.max(w, 1);
-
- // Min/max capping
- w = Math.max(Math.min(w, maxW), minW);
- h = Math.max(Math.min(h, maxH), minH);
-
- _this3.setState({ resizing: handlerName === "onResizeStop" ? null : size });
-
- handler.call(_this3, i, w, h, { e: e, node: node, size: size });
- };
- };
-
- GridItem.prototype.render = function render() {
- var _props8 = this.props,
- x = _props8.x,
- y = _props8.y,
- w = _props8.w,
- h = _props8.h,
- isDraggable = _props8.isDraggable,
- isResizable = _props8.isResizable,
- useCSSTransforms = _props8.useCSSTransforms;
-
-
- var pos = this.calcPosition(x, y, w, h, this.state);
- var child = _react2.default.Children.only(this.props.children);
-
- // Create the child element. We clone the existing element but modify its className and style.
- var newChild = _react2.default.cloneElement(child, {
- className: (0, _classnames2.default)("react-grid-item", child.props.className, this.props.className, {
- static: this.props.static,
- resizing: Boolean(this.state.resizing),
- "react-draggable": isDraggable,
- "react-draggable-dragging": Boolean(this.state.dragging),
- cssTransforms: useCSSTransforms
- }),
- // We can set the width and height on the child, but unfortunately we can't set the position.
- style: _extends({}, this.props.style, child.props.style, this.createStyle(pos))
- });
-
- // Resizable support. This is usually on but the user can toggle it off.
- if (isResizable) newChild = this.mixinResizable(newChild, pos);
-
- // Draggable support. This is always on, except for with placeholders.
- if (isDraggable) newChild = this.mixinDraggable(newChild);
-
- return newChild;
- };
-
- return GridItem;
- }(_react2.default.Component);
-
- GridItem.propTypes = {
- // Children must be only a single element
- children: _propTypes2.default.element,
-
- // General grid attributes
- cols: _propTypes2.default.number.isRequired,
- containerWidth: _propTypes2.default.number.isRequired,
- rowHeight: _propTypes2.default.number.isRequired,
- margin: _propTypes2.default.array.isRequired,
- maxRows: _propTypes2.default.number.isRequired,
- containerPadding: _propTypes2.default.array.isRequired,
-
- // These are all in grid units
- x: _propTypes2.default.number.isRequired,
- y: _propTypes2.default.number.isRequired,
- w: _propTypes2.default.number.isRequired,
- h: _propTypes2.default.number.isRequired,
-
- // All optional
- minW: function minW(props, propName) {
- var value = props[propName];
- if (typeof value !== "number") return new Error("minWidth not Number");
- if (value > props.w || value > props.maxW) return new Error("minWidth larger than item width/maxWidth");
- },
-
- maxW: function maxW(props, propName) {
- var value = props[propName];
- if (typeof value !== "number") return new Error("maxWidth not Number");
- if (value < props.w || value < props.minW) return new Error("maxWidth smaller than item width/minWidth");
- },
-
- minH: function minH(props, propName) {
- var value = props[propName];
- if (typeof value !== "number") return new Error("minHeight not Number");
- if (value > props.h || value > props.maxH) return new Error("minHeight larger than item height/maxHeight");
- },
-
- maxH: function maxH(props, propName) {
- var value = props[propName];
- if (typeof value !== "number") return new Error("maxHeight not Number");
- if (value < props.h || value < props.minH) return new Error("maxHeight smaller than item height/minHeight");
- },
-
- // ID is nice to have for callbacks
- i: _propTypes2.default.string.isRequired,
-
- // Functions
- onDragStop: _propTypes2.default.func,
- onDragStart: _propTypes2.default.func,
- onDrag: _propTypes2.default.func,
- onResizeStop: _propTypes2.default.func,
- onResizeStart: _propTypes2.default.func,
- onResize: _propTypes2.default.func,
-
- // Flags
- isDraggable: _propTypes2.default.bool.isRequired,
- isResizable: _propTypes2.default.bool.isRequired,
- static: _propTypes2.default.bool,
-
- // Use CSS transforms instead of top/left
- useCSSTransforms: _propTypes2.default.bool.isRequired,
-
- // Others
- className: _propTypes2.default.string,
- // Selector for draggable handle
- handle: _propTypes2.default.string,
- // Selector for draggable cancel (see react-draggable)
- cancel: _propTypes2.default.string
- };
- GridItem.defaultProps = {
- className: "",
- cancel: "",
- handle: "",
- minH: 1,
- minW: 1,
- maxH: Infinity,
- maxW: Infinity
- };
- exports.default = GridItem;
-
-/***/ }),
-/* 252 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
- module.exports = function() {
- throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
- };
-
- module.exports.Resizable = __webpack_require__(253).default;
- module.exports.ResizableBox = __webpack_require__(255).default;
-
-
-/***/ }),
-/* 253 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- exports.__esModule = 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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactDraggable = __webpack_require__(242);
-
- var _cloneElement = __webpack_require__(254);
-
- var _cloneElement2 = _interopRequireDefault(_cloneElement);
-
- 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 _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 Resizable = function (_React$Component) {
- _inherits(Resizable, _React$Component);
-
- function Resizable() {
- var _temp, _this, _ret;
-
- _classCallCheck(this, Resizable);
-
- 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.state = {
- resizing: false,
- width: _this.props.width, height: _this.props.height,
- slackW: 0, slackH: 0
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- Resizable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- // If parent changes height/width, set that in our state.
- if (!this.state.resizing && (nextProps.width !== this.props.width || nextProps.height !== this.props.height)) {
- this.setState({
- width: nextProps.width,
- height: nextProps.height
- });
- }
- };
-
- Resizable.prototype.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) {
- height = width / aspectRatio;
- width = height * aspectRatio;
- return [width, height];
- };
-
- // If you do this, be careful of constraints
-
-
- Resizable.prototype.runConstraints = function runConstraints(width, height) {
- var _ref = [this.props.minConstraints, this.props.maxConstraints],
- min = _ref[0],
- max = _ref[1];
-
-
- if (this.props.lockAspectRatio) {
- var ratio = this.state.width / this.state.height;
- height = width / ratio;
- width = height * ratio;
- }
-
- if (!min && !max) return [width, height];
-
- var oldW = width,
- oldH = height;
-
- // Add slack to the values used to calculate bound position. This will ensure that if
- // we start removing slack, the element won't react to it right away until it's been
- // completely removed.
-
- var _state = this.state,
- slackW = _state.slackW,
- slackH = _state.slackH;
-
- width += slackW;
- height += slackH;
-
- if (min) {
- width = Math.max(min[0], width);
- height = Math.max(min[1], height);
- }
- if (max) {
- width = Math.min(max[0], width);
- height = Math.min(max[1], height);
- }
-
- // If the numbers changed, we must have introduced some slack. Record it for the next iteration.
- slackW += oldW - width;
- slackH += oldH - height;
- if (slackW !== this.state.slackW || slackH !== this.state.slackH) {
- this.setState({ slackW: slackW, slackH: slackH });
- }
-
- return [width, height];
- };
-
- /**
- * Wrapper around drag events to provide more useful data.
- *
- * @param {String} handlerName Handler name to wrap.
- * @return {Function} Handler function.
- */
-
-
- Resizable.prototype.resizeHandler = function resizeHandler(handlerName, axis) {
- var _this2 = this;
-
- return function (e, _ref2) {
- var node = _ref2.node,
- deltaX = _ref2.deltaX,
- deltaY = _ref2.deltaY;
-
-
- // Axis restrictions
- var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && ['n', 's'].indexOf(axis) === -1;
- var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && ['e', 'w'].indexOf(axis) === -1;
-
- // reverse delta if using top or left drag handles
- if (canDragX && axis[axis.length - 1] === 'w') {
- deltaX = -deltaX;
- }
- if (canDragY && axis[0] === 'n') {
- deltaY = -deltaY;
- }
-
- // Update w/h
- var width = _this2.state.width + (canDragX ? deltaX : 0);
- var height = _this2.state.height + (canDragY ? deltaY : 0);
-
- // Early return if no change
- var widthChanged = width !== _this2.state.width,
- heightChanged = height !== _this2.state.height;
- if (handlerName === 'onResize' && !widthChanged && !heightChanged) return;
-
- // Set the appropriate state for this handler.
- var _runConstraints = _this2.runConstraints(width, height);
-
- width = _runConstraints[0];
- height = _runConstraints[1];
- var newState = {};
- if (handlerName === 'onResizeStart') {
- newState.resizing = true;
- } else if (handlerName === 'onResizeStop') {
- newState.resizing = false;
- newState.slackW = newState.slackH = 0;
- } else {
- // Early return if no change after constraints
- if (width === _this2.state.width && height === _this2.state.height) return;
- newState.width = width;
- newState.height = height;
- }
-
- var hasCb = typeof _this2.props[handlerName] === 'function';
- if (hasCb) {
- // $FlowIgnore isn't refining this correctly to SyntheticEvent
- if (typeof e.persist === 'function') e.persist();
- _this2.setState(newState, function () {
- return _this2.props[handlerName](e, { node: node, size: { width: width, height: height }, handle: axis });
- });
- } else {
- _this2.setState(newState);
- }
- };
- };
-
- Resizable.prototype.renderResizeHandle = function renderResizeHandle(resizeHandle) {
- var handle = this.props.handle;
-
- if (handle) {
- if (typeof handle === 'function') {
- return handle(resizeHandle);
- }
- return handle;
- }
- return _react2.default.createElement('span', { className: 'react-resizable-handle react-resizable-handle-' + resizeHandle });
- };
-
- Resizable.prototype.render = function render() {
- var _this3 = this;
-
- // eslint-disable-next-line no-unused-vars
- var _props = this.props,
- children = _props.children,
- draggableOpts = _props.draggableOpts,
- width = _props.width,
- height = _props.height,
- handleSize = _props.handleSize,
- lockAspectRatio = _props.lockAspectRatio,
- axis = _props.axis,
- minConstraints = _props.minConstraints,
- maxConstraints = _props.maxConstraints,
- onResize = _props.onResize,
- onResizeStop = _props.onResizeStop,
- onResizeStart = _props.onResizeStart,
- resizeHandles = _props.resizeHandles,
- p = _objectWithoutProperties(_props, ['children', 'draggableOpts', 'width', 'height', 'handleSize', 'lockAspectRatio', 'axis', 'minConstraints', 'maxConstraints', 'onResize', 'onResizeStop', 'onResizeStart', 'resizeHandles']);
-
- var className = p.className ? p.className + ' react-resizable' : 'react-resizable';
-
- // What we're doing here is getting the child of this element, and cloning it with this element's props.
- // We are then defining its children as:
- // Its original children (resizable's child's children), and
- // One or more draggable handles.
- return (0, _cloneElement2.default)(children, _extends({}, p, {
- className: className,
- children: [children.props.children, resizeHandles.map(function (h) {
- return _react2.default.createElement(
- _reactDraggable.DraggableCore,
- _extends({}, draggableOpts, {
- key: 'resizableHandle-' + h,
- onStop: _this3.resizeHandler('onResizeStop', h),
- onStart: _this3.resizeHandler('onResizeStart', h),
- onDrag: _this3.resizeHandler('onResize', h)
- }),
- _this3.renderResizeHandle(h)
- );
- })]
- }));
- };
-
- return Resizable;
- }(_react2.default.Component);
-
- Resizable.propTypes = {
- //
- // Required Props
- //
-
- // Require that one and only one child be present.
- children: _propTypes2.default.element.isRequired,
-
- // Initial w/h
- width: _propTypes2.default.number.isRequired,
- height: _propTypes2.default.number.isRequired,
-
- //
- // Optional props
- //
-
- // Custom resize handle
- handle: _propTypes2.default.element,
-
- // If you change this, be sure to update your css
- handleSize: _propTypes2.default.array,
-
- // Defines which resize handles should be rendered (default: 'se')
- // Allows for any combination of:
- // 's' - South handle (bottom-center)
- // 'w' - West handle (left-center)
- // 'e' - East handle (right-center)
- // 'n' - North handle (top-center)
- // 'sw' - Southwest handle (bottom-left)
- // 'nw' - Northwest handle (top-left)
- // 'se' - Southeast handle (bottom-right)
- // 'ne' - Northeast handle (top-center)
- resizeHandles: _propTypes2.default.arrayOf(_propTypes2.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),
-
- // If true, will only allow width/height to move in lockstep
- lockAspectRatio: _propTypes2.default.bool,
-
- // Restricts resizing to a particular axis (default: 'both')
- // 'both' - allows resizing by width or height
- // 'x' - only allows the width to be changed
- // 'y' - only allows the height to be changed
- // 'none' - disables resizing altogether
- axis: _propTypes2.default.oneOf(['both', 'x', 'y', 'none']),
-
- // Min/max size
- minConstraints: _propTypes2.default.arrayOf(_propTypes2.default.number),
- maxConstraints: _propTypes2.default.arrayOf(_propTypes2.default.number),
-
- // Callbacks
- onResizeStop: _propTypes2.default.func,
- onResizeStart: _propTypes2.default.func,
- onResize: _propTypes2.default.func,
-
- // These will be passed wholesale to react-draggable's DraggableCore
- draggableOpts: _propTypes2.default.object
- };
- Resizable.defaultProps = {
- handleSize: [20, 20],
- lockAspectRatio: false,
- axis: 'both',
- minConstraints: [20, 20],
- maxConstraints: [Infinity, Infinity],
- resizeHandles: ['se']
- };
- exports.default = Resizable;
-
-/***/ }),
-/* 254 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- // React.addons.cloneWithProps look-alike that merges style & className.
- module.exports = function cloneElement(element, props) {
- if (props.style && element.props.style) {
- props.style = _extends({}, element.props.style, props.style);
- }
- if (props.className && element.props.className) {
- props.className = element.props.className + ' ' + props.className;
- }
- return _react2.default.cloneElement(element, props);
- };
-
/***/ }),
/* 255 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- exports.__esModule = 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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _Resizable = __webpack_require__(253);
-
- var _Resizable2 = _interopRequireDefault(_Resizable);
-
- 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 _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; }
-
- // An example use of Resizable.
- var ResizableBox = function (_React$Component) {
- _inherits(ResizableBox, _React$Component);
-
- function ResizableBox() {
- var _temp, _this, _ret;
-
- _classCallCheck(this, ResizableBox);
-
- 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.state = {
- width: _this.props.width,
- height: _this.props.height
- }, _this.onResize = function (e, data) {
- var size = data.size;
- var width = size.width,
- height = size.height;
-
-
- if (_this.props.onResize) {
- e.persist && e.persist();
- _this.setState(size, function () {
- return _this.props.onResize && _this.props.onResize(e, data);
- });
- } else {
- _this.setState(size);
- }
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- ResizableBox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- if (nextProps.width !== this.props.width || nextProps.height !== this.props.height) {
- this.setState({
- width: nextProps.width,
- height: nextProps.height
- });
- }
- };
-
- ResizableBox.prototype.render = function render() {
- // Basic wrapper around a Resizable instance.
- // If you use Resizable directly, you are responsible for updating the child component
- // with a new width and height.
- var _props = this.props,
- handle = _props.handle,
- handleSize = _props.handleSize,
- onResize = _props.onResize,
- onResizeStart = _props.onResizeStart,
- onResizeStop = _props.onResizeStop,
- draggableOpts = _props.draggableOpts,
- minConstraints = _props.minConstraints,
- maxConstraints = _props.maxConstraints,
- lockAspectRatio = _props.lockAspectRatio,
- axis = _props.axis,
- width = _props.width,
- height = _props.height,
- resizeHandles = _props.resizeHandles,
- props = _objectWithoutProperties(_props, ['handle', 'handleSize', 'onResize', 'onResizeStart', 'onResizeStop', 'draggableOpts', 'minConstraints', 'maxConstraints', 'lockAspectRatio', 'axis', 'width', 'height', 'resizeHandles']);
-
- return _react2.default.createElement(
- _Resizable2.default,
- {
- handle: handle,
- handleSize: handleSize,
- width: this.state.width,
- height: this.state.height,
- onResizeStart: onResizeStart,
- onResize: this.onResize,
- onResizeStop: onResizeStop,
- draggableOpts: draggableOpts,
- minConstraints: minConstraints,
- maxConstraints: maxConstraints,
- lockAspectRatio: lockAspectRatio,
- axis: axis,
- resizeHandles: resizeHandles
- },
- _react2.default.createElement('div', _extends({ style: { width: this.state.width + 'px', height: this.state.height + 'px' } }, props))
- );
- };
-
- return ResizableBox;
- }(_react2.default.Component);
-
- ResizableBox.propTypes = {
- height: _propTypes2.default.number,
- width: _propTypes2.default.number
- };
- ResizableBox.defaultProps = {
- handleSize: [20, 20]
- };
- exports.default = ResizableBox;
-
-/***/ }),
-/* 256 */
-/***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- exports.__esModule = 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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _lodash = __webpack_require__(243);
-
- var _lodash2 = _interopRequireDefault(_lodash);
-
- var _utils = __webpack_require__(250);
-
- var _responsiveUtils = __webpack_require__(257);
-
- var _ReactGridLayout = __webpack_require__(249);
-
- var _ReactGridLayout2 = _interopRequireDefault(_ReactGridLayout);
-
- 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 _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 type = function type(obj) {
- return Object.prototype.toString.call(obj);
- };
-
- var ResponsiveReactGridLayout = function (_React$Component) {
- _inherits(ResponsiveReactGridLayout, _React$Component);
-
- function ResponsiveReactGridLayout() {
- var _temp, _this, _ret;
-
- _classCallCheck(this, ResponsiveReactGridLayout);
-
- 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.state = _this.generateInitialState(), _this.onLayoutChange = function (layout) {
- var _extends2;
-
- _this.props.onLayoutChange(layout, _extends({}, _this.props.layouts, (_extends2 = {}, _extends2[_this.state.breakpoint] = layout, _extends2)));
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
- // This should only include propTypes needed in this code; RGL itself
- // will do validation of the rest props passed to it.
-
-
- ResponsiveReactGridLayout.prototype.generateInitialState = function generateInitialState() {
- var _props = this.props,
- width = _props.width,
- breakpoints = _props.breakpoints,
- layouts = _props.layouts,
- cols = _props.cols;
-
- var breakpoint = (0, _responsiveUtils.getBreakpointFromWidth)(breakpoints, width);
- var colNo = (0, _responsiveUtils.getColsFromBreakpoint)(breakpoint, cols);
- // verticalCompact compatibility, now deprecated
- var compactType = this.props.verticalCompact === false ? null : this.props.compactType;
- // Get the initial layout. This can tricky; we try to generate one however possible if one doesn't exist
- // for this layout.
- var initialLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(layouts, breakpoints, breakpoint, breakpoint, colNo, compactType);
-
- return {
- layout: initialLayout,
- breakpoint: breakpoint,
- cols: colNo
- };
- };
-
- ResponsiveReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- // Allow parent to set width or breakpoint directly.
- if (nextProps.width != this.props.width || nextProps.breakpoint !== this.props.breakpoint || !(0, _lodash2.default)(nextProps.breakpoints, this.props.breakpoints) || !(0, _lodash2.default)(nextProps.cols, this.props.cols)) {
- this.onWidthChange(nextProps);
- } else if (!(0, _lodash2.default)(nextProps.layouts, this.props.layouts)) {
- // Allow parent to set layouts directly.
- var _state = this.state,
- _breakpoint = _state.breakpoint,
- _cols = _state.cols;
-
- // Since we're setting an entirely new layout object, we must generate a new responsive layout
- // if one does not exist.
-
- var newLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(nextProps.layouts, nextProps.breakpoints, _breakpoint, _breakpoint, _cols, nextProps.compactType);
- this.setState({ layout: newLayout });
- }
- };
-
- // wrap layouts so we do not need to pass layouts to child
-
-
- /**
- * When the width changes work through breakpoints and reset state with the new width & breakpoint.
- * Width changes are necessary to figure out the widget widths.
- */
- ResponsiveReactGridLayout.prototype.onWidthChange = function onWidthChange(nextProps) {
- var breakpoints = nextProps.breakpoints,
- cols = nextProps.cols,
- layouts = nextProps.layouts,
- compactType = nextProps.compactType;
-
- var newBreakpoint = nextProps.breakpoint || (0, _responsiveUtils.getBreakpointFromWidth)(nextProps.breakpoints, nextProps.width);
-
- var lastBreakpoint = this.state.breakpoint;
-
- // Breakpoint change
- if (lastBreakpoint !== newBreakpoint || this.props.breakpoints !== breakpoints || this.props.cols !== cols) {
- // Preserve the current layout if the current breakpoint is not present in the next layouts.
- if (!(lastBreakpoint in layouts)) layouts[lastBreakpoint] = (0, _utils.cloneLayout)(this.state.layout);
-
- // Find or generate a new layout.
- var newCols = (0, _responsiveUtils.getColsFromBreakpoint)(newBreakpoint, cols);
- var _layout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(layouts, breakpoints, newBreakpoint, lastBreakpoint, newCols, compactType);
-
- // This adds missing items.
- _layout = (0, _utils.synchronizeLayoutWithChildren)(_layout, nextProps.children, newCols, compactType);
-
- // Store the new layout.
- layouts[newBreakpoint] = _layout;
-
- // callbacks
- this.props.onLayoutChange(_layout, layouts);
- this.props.onBreakpointChange(newBreakpoint, newCols);
- this.props.onWidthChange(nextProps.width, nextProps.margin, newCols, nextProps.containerPadding);
-
- this.setState({
- breakpoint: newBreakpoint,
- layout: _layout,
- cols: newCols
- });
- }
- };
-
- ResponsiveReactGridLayout.prototype.render = function render() {
- /* eslint-disable no-unused-vars */
- var _props2 = this.props,
- breakpoint = _props2.breakpoint,
- breakpoints = _props2.breakpoints,
- cols = _props2.cols,
- layouts = _props2.layouts,
- onBreakpointChange = _props2.onBreakpointChange,
- onLayoutChange = _props2.onLayoutChange,
- onWidthChange = _props2.onWidthChange,
- other = _objectWithoutProperties(_props2, ["breakpoint", "breakpoints", "cols", "layouts", "onBreakpointChange", "onLayoutChange", "onWidthChange"]);
- /* eslint-enable no-unused-vars */
-
- return _react2.default.createElement(_ReactGridLayout2.default, _extends({}, other, {
- onLayoutChange: this.onLayoutChange,
- layout: this.state.layout,
- cols: this.state.cols
- }));
- };
-
- return ResponsiveReactGridLayout;
- }(_react2.default.Component);
-
- ResponsiveReactGridLayout.propTypes = {
- //
- // Basic props
- //
-
- // Optional, but if you are managing width yourself you may want to set the breakpoint
- // yourself as well.
- breakpoint: _propTypes2.default.string,
-
- // {name: pxVal}, e.g. {lg: 1200, md: 996, sm: 768, xs: 480}
- breakpoints: _propTypes2.default.object,
-
- // # of cols. This is a breakpoint -> cols map
- cols: _propTypes2.default.object,
-
- // layouts is an object mapping breakpoints to layouts.
- // e.g. {lg: Layout, md: Layout, ...}
- layouts: function layouts(props, propName) {
- if (type(props[propName]) !== "[object Object]") {
- throw new Error("Layout property must be an object. Received: " + type(props[propName]));
- }
- Object.keys(props[propName]).forEach(function (key) {
- if (!(key in props.breakpoints)) {
- throw new Error("Each key in layouts must align with a key in breakpoints.");
- }
- (0, _utils.validateLayout)(props.layouts[key], "layouts." + key);
- });
- },
-
-
- // The width of this component.
- // Required in this propTypes stanza because generateInitialState() will fail without it.
- width: _propTypes2.default.number.isRequired,
-
- //
- // Callbacks
- //
-
- // Calls back with breakpoint and new # cols
- onBreakpointChange: _propTypes2.default.func,
-
- // Callback so you can save the layout.
- // Calls back with (currentLayout, allLayouts). allLayouts are keyed by breakpoint.
- onLayoutChange: _propTypes2.default.func,
-
- // Calls back with (containerWidth, margin, cols, containerPadding)
- onWidthChange: _propTypes2.default.func
- };
- ResponsiveReactGridLayout.defaultProps = {
- breakpoints: { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 },
- cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
- layouts: {},
- onBreakpointChange: _utils.noop,
- onLayoutChange: _utils.noop,
- onWidthChange: _utils.noop
- };
- exports.default = ResponsiveReactGridLayout;
-
-/***/ }),
-/* 257 */
-/***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- exports.__esModule = true;
- exports.getBreakpointFromWidth = getBreakpointFromWidth;
- exports.getColsFromBreakpoint = getColsFromBreakpoint;
- exports.findOrGenerateResponsiveLayout = findOrGenerateResponsiveLayout;
- exports.sortBreakpoints = sortBreakpoints;
-
- var _utils = __webpack_require__(250);
-
- /**
- * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).
- *
- * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})
- * @param {Number} width Screen width.
- * @return {String} Highest breakpoint that is less than width.
- */
- function getBreakpointFromWidth(breakpoints, width) {
- var sorted = sortBreakpoints(breakpoints);
- var matching = sorted[0];
- for (var i = 1, len = sorted.length; i < len; i++) {
- var breakpointName = sorted[i];
- if (width > breakpoints[breakpointName]) matching = breakpointName;
- }
- return matching;
- }
-
- /**
- * Given a breakpoint, get the # of cols set for it.
- * @param {String} breakpoint Breakpoint name.
- * @param {Object} cols Map of breakpoints to cols.
- * @return {Number} Number of cols.
- */
-
-
- function getColsFromBreakpoint(breakpoint, cols) {
- if (!cols[breakpoint]) {
- throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint " + breakpoint + " is missing!");
- }
- return cols[breakpoint];
- }
-
- /**
- * Given existing layouts and a new breakpoint, find or generate a new layout.
- *
- * This finds the layout above the new one and generates from it, if it exists.
- *
- * @param {Object} layouts Existing layouts.
- * @param {Array} breakpoints All breakpoints.
- * @param {String} breakpoint New breakpoint.
- * @param {String} breakpoint Last breakpoint (for fallback).
- * @param {Number} cols Column count at new breakpoint.
- * @param {Boolean} verticalCompact Whether or not to compact the layout
- * vertically.
- * @return {Array} New layout.
- */
- function findOrGenerateResponsiveLayout(layouts, breakpoints, breakpoint, lastBreakpoint, cols, compactType) {
- // If it already exists, just return it.
- if (layouts[breakpoint]) return (0, _utils.cloneLayout)(layouts[breakpoint]);
- // Find or generate the next layout
- var layout = layouts[lastBreakpoint];
- var breakpointsSorted = sortBreakpoints(breakpoints);
- var breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));
- for (var i = 0, len = breakpointsAbove.length; i < len; i++) {
- var b = breakpointsAbove[i];
- if (layouts[b]) {
- layout = layouts[b];
- break;
- }
- }
- layout = (0, _utils.cloneLayout)(layout || []); // clone layout so we don't modify existing items
- return (0, _utils.compact)((0, _utils.correctBounds)(layout, { cols: cols }), compactType, cols);
- }
-
- /**
- * Given breakpoints, return an array of breakpoints sorted by width. This is usually
- * e.g. ['xxs', 'xs', 'sm', ...]
- *
- * @param {Object} breakpoints Key/value pair of breakpoint names to widths.
- * @return {Array} Sorted breakpoints.
- */
- function sortBreakpoints(breakpoints) {
- var keys = Object.keys(breakpoints);
- return keys.sort(function (a, b) {
- return breakpoints[a] - breakpoints[b];
- });
- }
-
-/***/ }),
-/* 258 */
-/***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- exports.__esModule = 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.default = WidthProvider;
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- 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 _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; }
-
- /*
- * A simple HOC that provides facility for listening to container resizes.
- */
- function WidthProvider(ComposedComponent) {
- var _class, _temp2;
-
- return _temp2 = _class = function (_React$Component) {
- _inherits(WidthProvider, _React$Component);
-
- function WidthProvider() {
- var _temp, _this, _ret;
-
- _classCallCheck(this, WidthProvider);
-
- 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.state = {
- width: 1280
- }, _this.mounted = false, _this.onWindowResize = function () {
- if (!_this.mounted) return;
- // eslint-disable-next-line
- var node = _reactDom2.default.findDOMNode(_this); // Flow casts this to Text | Element
- if (node instanceof HTMLElement) _this.setState({ width: node.offsetWidth });
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- WidthProvider.prototype.componentDidMount = function componentDidMount() {
- this.mounted = true;
-
- window.addEventListener("resize", this.onWindowResize);
- // Call to properly set the breakpoint and resize the elements.
- // Note that if you're doing a full-width element, this can get a little wonky if a scrollbar
- // appears because of the grid. In that case, fire your own resize event, or set `overflow: scroll` on your body.
- this.onWindowResize();
- };
-
- WidthProvider.prototype.componentWillUnmount = function componentWillUnmount() {
- this.mounted = false;
- window.removeEventListener("resize", this.onWindowResize);
- };
-
- WidthProvider.prototype.render = function render() {
- var _props = this.props,
- measureBeforeMount = _props.measureBeforeMount,
- rest = _objectWithoutProperties(_props, ["measureBeforeMount"]);
-
- if (measureBeforeMount && !this.mounted) {
- return _react2.default.createElement("div", { className: this.props.className, style: this.props.style });
- }
-
- return _react2.default.createElement(ComposedComponent, _extends({}, rest, this.state));
- };
-
- return WidthProvider;
- }(_react2.default.Component), _class.defaultProps = {
- measureBeforeMount: false
- }, _class.propTypes = {
- // If true, will not render children until mounted. Useful for getting the exact width before
- // rendering, to prevent any unsightly resizing.
- measureBeforeMount: _propTypes2.default.bool
- }, _temp2;
- }
-
-/***/ }),
-/* 259 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
var React = __webpack_require__(1);
var classCallCheck = function (instance, Constructor) {
@@ -35844,7 +32850,7 @@
/***/ }),
-/* 260 */
+/* 256 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -35920,7 +32926,7 @@
module.exports = exports['default'];
/***/ }),
-/* 261 */
+/* 257 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36040,7 +33046,7 @@
module.exports = exports['default'];
/***/ }),
-/* 262 */
+/* 258 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36117,7 +33123,7 @@
module.exports = exports['default'];
/***/ }),
-/* 263 */
+/* 259 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36142,15 +33148,15 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _Modal = __webpack_require__(123);
+ var _Modal = __webpack_require__(135);
var _Modal2 = _interopRequireDefault(_Modal);
- var _beeButton = __webpack_require__(264);
+ var _beeButton = __webpack_require__(260);
var _beeButton2 = _interopRequireDefault(_beeButton);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -36328,7 +33334,7 @@
module.exports = exports['default'];
/***/ }),
-/* 264 */
+/* 260 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36337,7 +33343,7 @@
value: true
});
- var _Button = __webpack_require__(265);
+ var _Button = __webpack_require__(261);
var _Button2 = _interopRequireDefault(_Button);
@@ -36347,7 +33353,7 @@
module.exports = exports['default'];
/***/ }),
-/* 265 */
+/* 261 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36522,7 +33528,7 @@
module.exports = exports['default'];
/***/ }),
-/* 266 */
+/* 262 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36531,7 +33537,7 @@
value: true
});
- var _FormControl = __webpack_require__(267);
+ var _FormControl = __webpack_require__(263);
var _FormControl2 = _interopRequireDefault(_FormControl);
@@ -36541,7 +33547,7 @@
module.exports = exports['default'];
/***/ }),
-/* 267 */
+/* 263 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36560,7 +33566,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -36588,16 +33594,14 @@
onChange: _propTypes2["default"].func,
onBlur: _propTypes2["default"].func,
showClose: _propTypes2["default"].bool,
- focusSelect: _propTypes2["default"].bool,
- debounceDelay: _propTypes2["default"].number
+ focusSelect: _propTypes2["default"].bool
};
var defaultProps = {
componentClass: 'input',
clsPrefix: 'u-form-control',
type: 'text',
- size: 'md',
- debounceDelay: 0
+ size: 'md'
};
var FormControl = function (_React$Component) {
@@ -36622,10 +33626,6 @@
};
_this.handleChange = function (e) {
- var now = new Date().getTime();
- if (now - _this.lastScrollCall < _this.props.debounceDelay) return;
- _this.lastScrollCall = now;
-
var onChange = _this.props.onChange;
var value = _this.input.value;
@@ -36832,14 +33832,14 @@
module.exports = exports['default'];
/***/ }),
-/* 268 */
+/* 264 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- var Table = __webpack_require__(269);
- var Column = __webpack_require__(604);
- var ColumnGroup = __webpack_require__(605);
+ var Table = __webpack_require__(265);
+ var Column = __webpack_require__(586);
+ var ColumnGroup = __webpack_require__(587);
Table.Column = Column;
Table.ColumnGroup = ColumnGroup;
@@ -36847,7 +33847,7 @@
module.exports = Table;
/***/ }),
-/* 269 */
+/* 265 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -36870,17 +33870,17 @@
var _componentClasses2 = _interopRequireDefault(_componentClasses);
- var _TableRow = __webpack_require__(270);
+ var _TableRow = __webpack_require__(266);
var _TableRow2 = _interopRequireDefault(_TableRow);
- var _TableHeader = __webpack_require__(289);
+ var _TableHeader = __webpack_require__(285);
var _TableHeader2 = _interopRequireDefault(_TableHeader);
- var _utils = __webpack_require__(271);
+ var _utils = __webpack_require__(267);
- var _shallowequal = __webpack_require__(288);
+ var _shallowequal = __webpack_require__(284);
var _shallowequal2 = _interopRequireDefault(_shallowequal);
@@ -36888,27 +33888,27 @@
var _addEventListener2 = _interopRequireDefault(_addEventListener);
- var _ColumnManager = __webpack_require__(603);
+ var _ColumnManager = __webpack_require__(585);
var _ColumnManager2 = _interopRequireDefault(_ColumnManager);
- var _createStore = __webpack_require__(606);
+ var _createStore = __webpack_require__(588);
var _createStore2 = _interopRequireDefault(_createStore);
- var _beeLoading = __webpack_require__(607);
+ var _beeLoading = __webpack_require__(589);
var _beeLoading2 = _interopRequireDefault(_beeLoading);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
- var _i18n = __webpack_require__(602);
+ var _i18n = __webpack_require__(584);
var _i18n2 = _interopRequireDefault(_i18n);
- var _tool = __webpack_require__(120);
+ var _tool = __webpack_require__(132);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -37248,6 +34248,7 @@
this.resetScrollX();
}
// fix:模态框中使用table,计算的滚动条宽度为0的bug
+ // fix:表格首次渲染时 display:none,再显示时,未重新计算,导致表行出现错位的bug
if (this.scrollbarWidth <= 0 && this.props.scroll.y) {
this.scrollbarWidth = (0, _utils.measureScrollbar)();
}
@@ -37615,37 +34616,37 @@
});
};
- /**
- * 行拖拽开始时触发
- * @param currentKey 当前拖拽目标的key
+ /**
+ * 行拖拽开始时触发
+ * @param currentKey 当前拖拽目标的key
*/
- /**
- * 行拖拽结束时触发
- * @param currentKey 当前拖拽目标的key
- * @param targetKey 拖拽结束时,目标位置的key
+ /**
+ * 行拖拽结束时触发
+ * @param currentKey 当前拖拽目标的key
+ * @param targetKey 拖拽结束时,目标位置的key
*/
- /**
- * 数组元素交换位置
- * @param {array} arr 数组
- * @param {number} index1 添加项目的位置
- * @param {number} index2 删除项目的位置
+ /**
+ * 数组元素交换位置
+ * @param {array} arr 数组
+ * @param {number} index1 添加项目的位置
+ * @param {number} index2 删除项目的位置
*/
- /**
- *
- *
- * @param {*} data
- * @param {*} visible
- * @param {*} indent 层级
- * @param {*} columns
- * @param {*} fixed
- * @param {number} [rootIndex=-1] 祖级节点
- * @returns
- * @memberof Table
+ /**
+ *
+ *
+ * @param {*} data
+ * @param {*} visible
+ * @param {*} indent 层级
+ * @param {*} columns
+ * @param {*} fixed
+ * @param {number} [rootIndex=-1] 祖级节点
+ * @returns
+ * @memberof Table
*/
Table.prototype.getRowsByData = function getRowsByData(data, visible, indent, columns, fixed) {
var rootIndex = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : -1;
@@ -38428,7 +35429,7 @@
module.exports = exports['default'];
/***/ }),
-/* 270 */
+/* 266 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -38445,13 +35446,13 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _utils = __webpack_require__(271);
+ var _utils = __webpack_require__(267);
- var _TableCell = __webpack_require__(285);
+ var _TableCell = __webpack_require__(281);
var _TableCell2 = _interopRequireDefault(_TableCell);
- var _ExpandIcon = __webpack_require__(287);
+ var _ExpandIcon = __webpack_require__(283);
var _ExpandIcon2 = _interopRequireDefault(_ExpandIcon);
@@ -38795,18 +35796,18 @@
}
};
- /**
- * 事件初始化
+ /**
+ * 事件初始化
*/
- /**
- * 事件移除,提供性能以及内存泄漏等问题。
+ /**
+ * 事件移除,提供性能以及内存泄漏等问题。
*/
- /**
- * 事件绑定和移除函数
+ /**
+ * 事件绑定和移除函数
*/
TableRow.prototype.eventListen = function eventListen(events, type, eventSource) {
for (var i = 0; i < events.length; i++) {
@@ -38819,45 +35820,45 @@
}
};
- /**
- * 开始调整交换列的事件
+ /**
+ * 开始调整交换列的事件
*/
- /**
- * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】
- * @memberof TableHeader
+ /**
+ * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】
+ * @memberof TableHeader
*/
- /**
- * 获取当前触摸的Dom节点
+ /**
+ * 获取当前触摸的Dom节点
*/
- /**
- * 开始调整交换行的事件
+ /**
+ * 开始调整交换行的事件
*/
- /**
- * 手指移开时触发
+ /**
+ * 手指移开时触发
*/
- /**
- *同步当前拖拽到阴影
- * @memberof TableRow
+ /**
+ *同步当前拖拽到阴影
+ * @memberof TableRow
*/
- /**
- * 同步自己,也需要同步当前行的行显示
+ /**
+ * 同步自己,也需要同步当前行的行显示
*/
- /**
- * 设置同步的style
+ /**
+ * 设置同步的style
*/
@@ -39089,7 +36090,7 @@
module.exports = exports['default'];
/***/ }),
-/* 271 */
+/* 267 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -39118,7 +36119,7 @@
var _warning2 = _interopRequireDefault(_warning);
- var _parseInt = __webpack_require__(272);
+ var _parseInt = __webpack_require__(268);
var _parseInt2 = _interopRequireDefault(_parseInt);
@@ -39413,11 +36414,11 @@
};
/***/ }),
-/* 272 */
+/* 268 */
/***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(273),
- toString = __webpack_require__(275);
+ var root = __webpack_require__(269),
+ toString = __webpack_require__(271);
/** Used to match leading and trailing whitespace. */
var reTrimStart = /^\s+/;
@@ -39462,10 +36463,10 @@
/***/ }),
-/* 273 */
+/* 269 */
/***/ (function(module, exports, __webpack_require__) {
- var freeGlobal = __webpack_require__(274);
+ var freeGlobal = __webpack_require__(270);
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
@@ -39477,7 +36478,7 @@
/***/ }),
-/* 274 */
+/* 270 */
/***/ (function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
@@ -39488,10 +36489,10 @@
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }),
-/* 275 */
+/* 271 */
/***/ (function(module, exports, __webpack_require__) {
- var baseToString = __webpack_require__(276);
+ var baseToString = __webpack_require__(272);
/**
* Converts `value` to a string. An empty string is returned for `null`
@@ -39522,13 +36523,13 @@
/***/ }),
-/* 276 */
+/* 272 */
/***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(277),
- arrayMap = __webpack_require__(278),
- isArray = __webpack_require__(279),
- isSymbol = __webpack_require__(280);
+ var Symbol = __webpack_require__(273),
+ arrayMap = __webpack_require__(274),
+ isArray = __webpack_require__(275),
+ isSymbol = __webpack_require__(276);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
@@ -39565,10 +36566,10 @@
/***/ }),
-/* 277 */
+/* 273 */
/***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(273);
+ var root = __webpack_require__(269);
/** Built-in value references. */
var Symbol = root.Symbol;
@@ -39577,7 +36578,7 @@
/***/ }),
-/* 278 */
+/* 274 */
/***/ (function(module, exports) {
/**
@@ -39604,7 +36605,7 @@
/***/ }),
-/* 279 */
+/* 275 */
/***/ (function(module, exports) {
/**
@@ -39636,11 +36637,11 @@
/***/ }),
-/* 280 */
+/* 276 */
/***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(281),
- isObjectLike = __webpack_require__(284);
+ var baseGetTag = __webpack_require__(277),
+ isObjectLike = __webpack_require__(280);
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
@@ -39671,12 +36672,12 @@
/***/ }),
-/* 281 */
+/* 277 */
/***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(277),
- getRawTag = __webpack_require__(282),
- objectToString = __webpack_require__(283);
+ var Symbol = __webpack_require__(273),
+ getRawTag = __webpack_require__(278),
+ objectToString = __webpack_require__(279);
/** `Object#toString` result references. */
var nullTag = '[object Null]',
@@ -39705,10 +36706,10 @@
/***/ }),
-/* 282 */
+/* 278 */
/***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(277);
+ var Symbol = __webpack_require__(273);
/** Used for built-in method references. */
var objectProto = Object.prototype;
@@ -39757,7 +36758,7 @@
/***/ }),
-/* 283 */
+/* 279 */
/***/ (function(module, exports) {
/** Used for built-in method references. */
@@ -39785,7 +36786,7 @@
/***/ }),
-/* 284 */
+/* 280 */
/***/ (function(module, exports) {
/**
@@ -39820,7 +36821,7 @@
/***/ }),
-/* 285 */
+/* 281 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -39837,7 +36838,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _objectPath = __webpack_require__(286);
+ var _objectPath = __webpack_require__(282);
var _objectPath2 = _interopRequireDefault(_objectPath);
@@ -39980,7 +36981,7 @@
module.exports = exports['default'];
/***/ }),
-/* 286 */
+/* 282 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory){
@@ -40278,7 +37279,7 @@
/***/ }),
-/* 287 */
+/* 283 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -40295,7 +37296,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _shallowequal = __webpack_require__(288);
+ var _shallowequal = __webpack_require__(284);
var _shallowequal2 = _interopRequireDefault(_shallowequal);
@@ -40377,7 +37378,7 @@
module.exports = exports['default'];
/***/ }),
-/* 288 */
+/* 284 */
/***/ (function(module, exports) {
//
@@ -40429,7 +37430,7 @@
/***/ }),
-/* 289 */
+/* 285 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -40452,11 +37453,11 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _throttleDebounce = __webpack_require__(290);
+ var _throttleDebounce = __webpack_require__(286);
- var _utils = __webpack_require__(271);
+ var _utils = __webpack_require__(267);
- var _FilterType = __webpack_require__(291);
+ var _FilterType = __webpack_require__(287);
var _FilterType2 = _interopRequireDefault(_FilterType);
@@ -40947,10 +37948,10 @@
this.eventListen([{ key: 'mouseup', fun: this.bodyonLineMouseUp }], 'remove', document.body);
};
- /**
- * 获取table的属性存放在this.table 中。(公用方法)
- * @returns
- * @memberof TableHeader
+ /**
+ * 获取table的属性存放在this.table 中。(公用方法)
+ * @returns
+ * @memberof TableHeader
*/
@@ -40991,8 +37992,8 @@
}
};
- /**
- * 事件初始化
+ /**
+ * 事件初始化
*/
@@ -41022,8 +38023,8 @@
}
};
- /**
- * 拖拽列宽事件的监听
+ /**
+ * 拖拽列宽事件的监听
*/
@@ -41033,8 +38034,8 @@
this.eventListen(events, '', this.table.tr[0]); //表示把事件添加到th元素上
};
- /**
- * 删除拖动改变列宽的事件监听
+ /**
+ * 删除拖动改变列宽的事件监听
*/
@@ -41061,39 +38062,39 @@
}
};
- /**
- *
- *根据 data-type 来获取当前拖拽的对象的Object,如果为null表示拖动的对象并非是online
- * @memberof TableHeader
+ /**
+ *
+ *根据 data-type 来获取当前拖拽的对象的Object,如果为null表示拖动的对象并非是online
+ * @memberof TableHeader
*/
- /**
- * 调整列宽的down事件
- * @memberof TableHeader
+ /**
+ * 调整列宽的down事件
+ * @memberof TableHeader
*/
- /**
- * 根据当前节点查找到有data-type类型的容器返回。
- * @memberof TableHeader
+ /**
+ * 根据当前节点查找到有data-type类型的容器返回。
+ * @memberof TableHeader
*/
- /**
- * 判断当前的target 是否是 th,如果不是,直接递归查找。
- * @memberof TableHeader
+ /**
+ * 判断当前的target 是否是 th,如果不是,直接递归查找。
+ * @memberof TableHeader
*/
- /**
- * 调整列宽的move事件
- * @memberof TableHeader
+ /**
+ * 调整列宽的move事件
+ * @memberof TableHeader
*/
- /**
- * 调整列宽的up事件
- * @memberof TableHeader
+ /**
+ * 调整列宽的up事件
+ * @memberof TableHeader
*/
@@ -41109,24 +38110,24 @@
this.clearThsDr();
};
- /**
- * 当前对象上绑定全局事件,用于拖拽区域以外时的事件处理
- * @param {*} events
- * @param {*} type
- * @memberof TableHeader
+ /**
+ * 当前对象上绑定全局事件,用于拖拽区域以外时的事件处理
+ * @param {*} events
+ * @param {*} type
+ * @memberof TableHeader
*/
- /**
- *相关滚动条联动操作
- *
- * @memberof TableHeader
+ /**
+ *相关滚动条联动操作
+ *
+ * @memberof TableHeader
*/
//---拖拽交换列代码----start-----
- /**
- * 添加换列的事件监听
+ /**
+ * 添加换列的事件监听
*/
TableHeader.prototype.dragAbleEventInit = function dragAbleEventInit() {
if (!this.props.draggable) return;
@@ -41138,8 +38139,8 @@
this.eventListen(events, '', this.table.tr[0]); //表示把事件添加到th元素上
};
- /**
- * 删除换列的事件监听
+ /**
+ * 删除换列的事件监听
*/
@@ -41148,22 +38149,22 @@
this.eventListen(events, 'remove', this.table.tr[0]);
};
- /**
- * 开始调整交换列的事件
+ /**
+ * 开始调整交换列的事件
*/
- /**
- * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】
- * @memberof TableHeader
+ /**
+ * 在一个拖动过程中,释放鼠标键时触发此事件。【目标事件】
+ * @memberof TableHeader
*/
- /**
- * 获取当前th上的对象数据
- * @param {*} e
- * @returns
- * @memberof TableHeader
+ /**
+ * 获取当前th上的对象数据
+ * @param {*} e
+ * @returns
+ * @memberof TableHeader
*/
TableHeader.prototype.getCurrentEventData = function getCurrentEventData(th) {
if (!th) {
@@ -41182,11 +38183,11 @@
}
};
- /**
- * 根据当前鼠标点击的节点,进行递归遍历,最终找到th
- * @param {*} element
- * @returns | 对象
- * @memberof TableHeader
+ /**
+ * 根据当前鼠标点击的节点,进行递归遍历,最终找到th
+ * @param {*} element
+ * @returns | 对象
+ * @memberof TableHeader
*/
@@ -41203,18 +38204,18 @@
//---拖拽列交换----end-----
- /**
- * 过滤输入后或下拉条件的回调函数
+ /**
+ * 过滤输入后或下拉条件的回调函数
*/
- /**
- * 过滤行清除回调
+ /**
+ * 过滤行清除回调
*/
- /**
- * 过滤渲染的组件类型
+ /**
+ * 过滤渲染的组件类型
*/
@@ -41328,7 +38329,7 @@
module.exports = exports["default"];
/***/ }),
-/* 290 */
+/* 286 */
/***/ (function(module, exports) {
'use strict';
@@ -41475,7 +38476,7 @@
/***/ }),
-/* 291 */
+/* 287 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -41494,27 +38495,27 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _beeDatepicker = __webpack_require__(292);
+ var _beeDatepicker = __webpack_require__(288);
var _beeDatepicker2 = _interopRequireDefault(_beeDatepicker);
- var _zh_CN = __webpack_require__(535);
+ var _zh_CN = __webpack_require__(518);
var _zh_CN2 = _interopRequireDefault(_zh_CN);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _beeSelect = __webpack_require__(543);
+ var _beeSelect = __webpack_require__(526);
var _beeSelect2 = _interopRequireDefault(_beeSelect);
- var _beeInputNumber = __webpack_require__(579);
+ var _beeInputNumber = __webpack_require__(562);
var _beeInputNumber2 = _interopRequireDefault(_beeInputNumber);
- var _FilterDropDown = __webpack_require__(582);
+ var _FilterDropDown = __webpack_require__(564);
var _FilterDropDown2 = _interopRequireDefault(_FilterDropDown);
@@ -41823,39 +38824,39 @@
return _this;
}
- /**
- * 清除过滤条件
- *
+ /**
+ * 清除过滤条件
+ *
*/
- /**
- * 设置输入文本的值
- *
+ /**
+ * 设置输入文本的值
+ *
*/
- /**
- * 输入框回车执行回调
- *
+ /**
+ * 输入框回车执行回调
+ *
*/
- /**
- * 更改修改值
- *
+ /**
+ * 更改修改值
+ *
*/
- /**
- * 下拉条件的回调
- *
- * @param {*} key 字段
- * @param {*} value 值1,2,3...6
+ /**
+ * 下拉条件的回调
+ *
+ * @param {*} key 字段
+ * @param {*} value 值1,2,3...6
*/
- /**
- * 修改数值型的值
- *
+ /**
+ * 修改数值型的值
+ *
*/
//清除数值
@@ -41872,11 +38873,11 @@
//设置日期值
//组件渲染
- /**
- * 根据不同的类型生成对应的组件类型包含一些参数的适应
- *
- * @param {*} rendertype 参数类型,包括['text','dropdown','date','daterange','number']
- * @returns
+ /**
+ * 根据不同的类型生成对应的组件类型包含一些参数的适应
+ *
+ * @param {*} rendertype 参数类型,包括['text','dropdown','date','daterange','number']
+ * @returns
*/
@@ -41901,7 +38902,7 @@
module.exports = exports['default'];
/***/ }),
-/* 292 */
+/* 288 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -41914,23 +38915,23 @@
var _react2 = _interopRequireDefault(_react);
- var _DatePicker = __webpack_require__(293);
+ var _DatePicker = __webpack_require__(289);
var _DatePicker2 = _interopRequireDefault(_DatePicker);
- var _MonthPicker = __webpack_require__(536);
+ var _MonthPicker = __webpack_require__(519);
var _MonthPicker2 = _interopRequireDefault(_MonthPicker);
- var _RangePicker = __webpack_require__(538);
+ var _RangePicker = __webpack_require__(521);
var _RangePicker2 = _interopRequireDefault(_RangePicker);
- var _WeekPicker = __webpack_require__(541);
+ var _WeekPicker = __webpack_require__(524);
var _WeekPicker2 = _interopRequireDefault(_WeekPicker);
- var _YearPicker = __webpack_require__(542);
+ var _YearPicker = __webpack_require__(525);
var _YearPicker2 = _interopRequireDefault(_YearPicker);
@@ -41945,7 +38946,7 @@
module.exports = exports['default'];
/***/ }),
-/* 293 */
+/* 289 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -41956,7 +38957,7 @@
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 _rcCalendar = __webpack_require__(294);
+ var _rcCalendar = __webpack_require__(290);
var _rcCalendar2 = _interopRequireDefault(_rcCalendar);
@@ -41970,23 +38971,23 @@
var _tinperBeeCore = __webpack_require__(27);
- var _Picker = __webpack_require__(446);
+ var _Picker = __webpack_require__(442);
var _Picker2 = _interopRequireDefault(_Picker);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _Panel = __webpack_require__(526);
+ var _Panel = __webpack_require__(509);
var _Panel2 = _interopRequireDefault(_Panel);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -41994,11 +38995,11 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _beeInputGroup = __webpack_require__(530);
+ var _beeInputGroup = __webpack_require__(513);
var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
- var _zh_CN = __webpack_require__(535);
+ var _zh_CN = __webpack_require__(518);
var _zh_CN2 = _interopRequireDefault(_zh_CN);
@@ -42028,11 +39029,9 @@
_initialiseProps.call(_this);
- var value = props.value && (0, _moment2["default"])(props.value),
- defaultValue = props.defaultValue && (0, _moment2["default"])(props.defaultValue);
_this.state = {
type: "month",
- value: value || defaultValue || _moment2["default"].Moment,
+ value: props.value || props.defaultValue || _moment2["default"].Moment,
open: props.open || false,
inputValue: props.value && _this.getValue(props.value) || props.defaultValue && _this.getValue(props.defaultValue) || '',
showClose: false
@@ -42044,7 +39043,7 @@
DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
if ("value" in nextProps) {
this.setState({
- value: nextProps.value && (0, _moment2["default"])(nextProps.value)
+ value: nextProps.value
});
}
if ("open" in nextProps) {
@@ -42066,8 +39065,7 @@
var state = this.state;
var props = this.props;
- var showClose = props.showClose,
- defaultPanelShown = props.defaultPanelShown;
+ var showClose = props.showClose;
var value = state.value;
var pickerChangeHandler = {};
@@ -42106,7 +39104,7 @@
var classes = (0, _classnames2["default"])(props.className, "datepicker-container");
return _react2["default"].createElement(
"div",
- { className: classes, onMouseEnter: this.onBlur },
+ { className: classes },
_react2["default"].createElement(
_Picker2["default"],
_extends({
@@ -42115,7 +39113,7 @@
onOpenChange: this.onOpenChange,
calendar: calendar,
mode: 'year',
- open: 'defaultPanelShown' in props ? defaultPanelShown : this.state.open,
+ open: this.state.open,
value: state.value
}),
function () {
@@ -42248,7 +39246,7 @@
this.handleChange = function (value) {
var props = _this3.props;
_this3.setState({
- value: value && _extends(value, { _type: 'date' }) || value,
+ value: _extends(value, { _type: 'date' }),
inputValue: value && _this3.getValue(value) || ''
});
if (timerDatePicker) {
@@ -42358,11 +39356,6 @@
}
_this3.props.onDateInputBlur && _this3.props.onDateInputBlur(e, value);
};
-
- this.onBlur = function () {
- var value = _this3.state.value;
- _this3.props.onChange && _this3.props.onChange(value, value && _this3.getValue(value) || '');
- };
};
DatePicker.defaultProps = {
@@ -42387,7 +39380,7 @@
module.exports = exports["default"];
/***/ }),
-/* 294 */
+/* 290 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -42396,7 +39389,7 @@
value: true
});
- var _Calendar = __webpack_require__(295);
+ var _Calendar = __webpack_require__(291);
var _Calendar2 = _interopRequireDefault(_Calendar);
@@ -42406,7 +39399,7 @@
module.exports = exports['default'];
/***/ }),
-/* 295 */
+/* 291 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -42429,37 +39422,37 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _DateTable = __webpack_require__(297);
+ var _DateTable = __webpack_require__(293);
var _DateTable2 = _interopRequireDefault(_DateTable);
- var _CalendarHeader = __webpack_require__(431);
+ var _CalendarHeader = __webpack_require__(427);
var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);
- var _CalendarFooter = __webpack_require__(438);
+ var _CalendarFooter = __webpack_require__(434);
var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);
- var _CalendarMixin = __webpack_require__(442);
+ var _CalendarMixin = __webpack_require__(438);
- var _CommonMixin = __webpack_require__(443);
+ var _CommonMixin = __webpack_require__(439);
- var _DateInput = __webpack_require__(435);
+ var _DateInput = __webpack_require__(431);
var _DateInput2 = _interopRequireDefault(_DateInput);
- var _util = __webpack_require__(430);
+ var _util = __webpack_require__(426);
- var _toTime = __webpack_require__(445);
+ var _toTime = __webpack_require__(441);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -42589,8 +39582,7 @@
'div',
{
tabIndex: this.props.focusablePanel ? 0 : undefined,
- className: prefixCls + '-date-panel',
- onMouseOver: this.onMouseOver
+ className: prefixCls + '-date-panel'
},
_react2["default"].createElement(_CalendarHeader2["default"], {
locale: locale,
@@ -42837,10 +39829,6 @@
this.goTime = function (direction, unit) {
_this2.setValue((0, _toTime.goTime)(_this2.state.value, direction, unit));
};
-
- this.onMouseOver = function (e) {
- e.stopPropagation();
- };
};
(0, _reactLifecyclesCompat.polyfill)(Calendar);
@@ -42849,7 +39837,7 @@
module.exports = exports['default'];
/***/ }),
-/* 296 */
+/* 292 */
/***/ (function(module, exports) {
'use strict';
@@ -43378,7 +40366,7 @@
module.exports = exports['default'];
/***/ }),
-/* 297 */
+/* 293 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -43391,11 +40379,11 @@
var _react2 = _interopRequireDefault(_react);
- var _DateTHead = __webpack_require__(298);
+ var _DateTHead = __webpack_require__(294);
var _DateTHead2 = _interopRequireDefault(_DateTHead);
- var _DateTBody = __webpack_require__(429);
+ var _DateTBody = __webpack_require__(425);
var _DateTBody2 = _interopRequireDefault(_DateTBody);
@@ -43436,7 +40424,7 @@
module.exports = exports['default'];
/***/ }),
-/* 298 */
+/* 294 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -43449,11 +40437,11 @@
var _react2 = _interopRequireDefault(_react);
- var _DateConstants = __webpack_require__(299);
+ var _DateConstants = __webpack_require__(295);
var _DateConstants2 = _interopRequireDefault(_DateConstants);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -43542,7 +40530,7 @@
module.exports = exports['default'];
/***/ }),
-/* 299 */
+/* 295 */
/***/ (function(module, exports) {
"use strict";
@@ -43557,7 +40545,7 @@
module.exports = exports["default"];
/***/ }),
-/* 300 */
+/* 296 */
/***/ (function(module, exports, __webpack_require__) {
var require;/* WEBPACK VAR INJECTION */(function(module) {//! moment.js
@@ -45412,7 +42400,7 @@
try {
oldLocale = globalLocale._abbr;
var aliasedRequire = require;
- __webpack_require__(301)("./" + name);
+ __webpack_require__(297)("./" + name);
getSetGlobalLocale(oldLocale);
} catch (e) {}
}
@@ -48163,267 +45151,267 @@
})));
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(193)(module)))
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(201)(module)))
/***/ }),
-/* 301 */
+/* 297 */
/***/ (function(module, exports, __webpack_require__) {
var map = {
- "./af": 302,
- "./af.js": 302,
- "./ar": 303,
- "./ar-dz": 304,
- "./ar-dz.js": 304,
- "./ar-kw": 305,
- "./ar-kw.js": 305,
- "./ar-ly": 306,
- "./ar-ly.js": 306,
- "./ar-ma": 307,
- "./ar-ma.js": 307,
- "./ar-sa": 308,
- "./ar-sa.js": 308,
- "./ar-tn": 309,
- "./ar-tn.js": 309,
- "./ar.js": 303,
- "./az": 310,
- "./az.js": 310,
- "./be": 311,
- "./be.js": 311,
- "./bg": 312,
- "./bg.js": 312,
- "./bm": 313,
- "./bm.js": 313,
- "./bn": 314,
- "./bn.js": 314,
- "./bo": 315,
- "./bo.js": 315,
- "./br": 316,
- "./br.js": 316,
- "./bs": 317,
- "./bs.js": 317,
- "./ca": 318,
- "./ca.js": 318,
- "./cs": 319,
- "./cs.js": 319,
- "./cv": 320,
- "./cv.js": 320,
- "./cy": 321,
- "./cy.js": 321,
- "./da": 322,
- "./da.js": 322,
- "./de": 323,
- "./de-at": 324,
- "./de-at.js": 324,
- "./de-ch": 325,
- "./de-ch.js": 325,
- "./de.js": 323,
- "./dv": 326,
- "./dv.js": 326,
- "./el": 327,
- "./el.js": 327,
- "./en-SG": 328,
- "./en-SG.js": 328,
- "./en-au": 329,
- "./en-au.js": 329,
- "./en-ca": 330,
- "./en-ca.js": 330,
- "./en-gb": 331,
- "./en-gb.js": 331,
- "./en-ie": 332,
- "./en-ie.js": 332,
- "./en-il": 333,
- "./en-il.js": 333,
- "./en-nz": 334,
- "./en-nz.js": 334,
- "./eo": 335,
- "./eo.js": 335,
- "./es": 336,
- "./es-do": 337,
- "./es-do.js": 337,
- "./es-us": 338,
- "./es-us.js": 338,
- "./es.js": 336,
- "./et": 339,
- "./et.js": 339,
- "./eu": 340,
- "./eu.js": 340,
- "./fa": 341,
- "./fa.js": 341,
- "./fi": 342,
- "./fi.js": 342,
- "./fo": 343,
- "./fo.js": 343,
- "./fr": 344,
- "./fr-ca": 345,
- "./fr-ca.js": 345,
- "./fr-ch": 346,
- "./fr-ch.js": 346,
- "./fr.js": 344,
- "./fy": 347,
- "./fy.js": 347,
- "./ga": 348,
- "./ga.js": 348,
- "./gd": 349,
- "./gd.js": 349,
- "./gl": 350,
- "./gl.js": 350,
- "./gom-latn": 351,
- "./gom-latn.js": 351,
- "./gu": 352,
- "./gu.js": 352,
- "./he": 353,
- "./he.js": 353,
- "./hi": 354,
- "./hi.js": 354,
- "./hr": 355,
- "./hr.js": 355,
- "./hu": 356,
- "./hu.js": 356,
- "./hy-am": 357,
- "./hy-am.js": 357,
- "./id": 358,
- "./id.js": 358,
- "./is": 359,
- "./is.js": 359,
- "./it": 360,
- "./it-ch": 361,
- "./it-ch.js": 361,
- "./it.js": 360,
- "./ja": 362,
- "./ja.js": 362,
- "./jv": 363,
- "./jv.js": 363,
- "./ka": 364,
- "./ka.js": 364,
- "./kk": 365,
- "./kk.js": 365,
- "./km": 366,
- "./km.js": 366,
- "./kn": 367,
- "./kn.js": 367,
- "./ko": 368,
- "./ko.js": 368,
- "./ku": 369,
- "./ku.js": 369,
- "./ky": 370,
- "./ky.js": 370,
- "./lb": 371,
- "./lb.js": 371,
- "./lo": 372,
- "./lo.js": 372,
- "./lt": 373,
- "./lt.js": 373,
- "./lv": 374,
- "./lv.js": 374,
- "./me": 375,
- "./me.js": 375,
- "./mi": 376,
- "./mi.js": 376,
- "./mk": 377,
- "./mk.js": 377,
- "./ml": 378,
- "./ml.js": 378,
- "./mn": 379,
- "./mn.js": 379,
- "./mr": 380,
- "./mr.js": 380,
- "./ms": 381,
- "./ms-my": 382,
- "./ms-my.js": 382,
- "./ms.js": 381,
- "./mt": 383,
- "./mt.js": 383,
- "./my": 384,
- "./my.js": 384,
- "./nb": 385,
- "./nb.js": 385,
- "./ne": 386,
- "./ne.js": 386,
- "./nl": 387,
- "./nl-be": 388,
- "./nl-be.js": 388,
- "./nl.js": 387,
- "./nn": 389,
- "./nn.js": 389,
- "./pa-in": 390,
- "./pa-in.js": 390,
- "./pl": 391,
- "./pl.js": 391,
- "./pt": 392,
- "./pt-br": 393,
- "./pt-br.js": 393,
- "./pt.js": 392,
- "./ro": 394,
- "./ro.js": 394,
- "./ru": 395,
- "./ru.js": 395,
- "./sd": 396,
- "./sd.js": 396,
- "./se": 397,
- "./se.js": 397,
- "./si": 398,
- "./si.js": 398,
- "./sk": 399,
- "./sk.js": 399,
- "./sl": 400,
- "./sl.js": 400,
- "./sq": 401,
- "./sq.js": 401,
- "./sr": 402,
- "./sr-cyrl": 403,
- "./sr-cyrl.js": 403,
- "./sr.js": 402,
- "./ss": 404,
- "./ss.js": 404,
- "./sv": 405,
- "./sv.js": 405,
- "./sw": 406,
- "./sw.js": 406,
- "./ta": 407,
- "./ta.js": 407,
- "./te": 408,
- "./te.js": 408,
- "./tet": 409,
- "./tet.js": 409,
- "./tg": 410,
- "./tg.js": 410,
- "./th": 411,
- "./th.js": 411,
- "./tl-ph": 412,
- "./tl-ph.js": 412,
- "./tlh": 413,
- "./tlh.js": 413,
- "./tr": 414,
- "./tr.js": 414,
- "./tzl": 415,
- "./tzl.js": 415,
- "./tzm": 416,
- "./tzm-latn": 417,
- "./tzm-latn.js": 417,
- "./tzm.js": 416,
- "./ug-cn": 418,
- "./ug-cn.js": 418,
- "./uk": 419,
- "./uk.js": 419,
- "./ur": 420,
- "./ur.js": 420,
- "./uz": 421,
- "./uz-latn": 422,
- "./uz-latn.js": 422,
- "./uz.js": 421,
- "./vi": 423,
- "./vi.js": 423,
- "./x-pseudo": 424,
- "./x-pseudo.js": 424,
- "./yo": 425,
- "./yo.js": 425,
- "./zh-cn": 426,
- "./zh-cn.js": 426,
- "./zh-hk": 427,
- "./zh-hk.js": 427,
- "./zh-tw": 428,
- "./zh-tw.js": 428
+ "./af": 298,
+ "./af.js": 298,
+ "./ar": 299,
+ "./ar-dz": 300,
+ "./ar-dz.js": 300,
+ "./ar-kw": 301,
+ "./ar-kw.js": 301,
+ "./ar-ly": 302,
+ "./ar-ly.js": 302,
+ "./ar-ma": 303,
+ "./ar-ma.js": 303,
+ "./ar-sa": 304,
+ "./ar-sa.js": 304,
+ "./ar-tn": 305,
+ "./ar-tn.js": 305,
+ "./ar.js": 299,
+ "./az": 306,
+ "./az.js": 306,
+ "./be": 307,
+ "./be.js": 307,
+ "./bg": 308,
+ "./bg.js": 308,
+ "./bm": 309,
+ "./bm.js": 309,
+ "./bn": 310,
+ "./bn.js": 310,
+ "./bo": 311,
+ "./bo.js": 311,
+ "./br": 312,
+ "./br.js": 312,
+ "./bs": 313,
+ "./bs.js": 313,
+ "./ca": 314,
+ "./ca.js": 314,
+ "./cs": 315,
+ "./cs.js": 315,
+ "./cv": 316,
+ "./cv.js": 316,
+ "./cy": 317,
+ "./cy.js": 317,
+ "./da": 318,
+ "./da.js": 318,
+ "./de": 319,
+ "./de-at": 320,
+ "./de-at.js": 320,
+ "./de-ch": 321,
+ "./de-ch.js": 321,
+ "./de.js": 319,
+ "./dv": 322,
+ "./dv.js": 322,
+ "./el": 323,
+ "./el.js": 323,
+ "./en-SG": 324,
+ "./en-SG.js": 324,
+ "./en-au": 325,
+ "./en-au.js": 325,
+ "./en-ca": 326,
+ "./en-ca.js": 326,
+ "./en-gb": 327,
+ "./en-gb.js": 327,
+ "./en-ie": 328,
+ "./en-ie.js": 328,
+ "./en-il": 329,
+ "./en-il.js": 329,
+ "./en-nz": 330,
+ "./en-nz.js": 330,
+ "./eo": 331,
+ "./eo.js": 331,
+ "./es": 332,
+ "./es-do": 333,
+ "./es-do.js": 333,
+ "./es-us": 334,
+ "./es-us.js": 334,
+ "./es.js": 332,
+ "./et": 335,
+ "./et.js": 335,
+ "./eu": 336,
+ "./eu.js": 336,
+ "./fa": 337,
+ "./fa.js": 337,
+ "./fi": 338,
+ "./fi.js": 338,
+ "./fo": 339,
+ "./fo.js": 339,
+ "./fr": 340,
+ "./fr-ca": 341,
+ "./fr-ca.js": 341,
+ "./fr-ch": 342,
+ "./fr-ch.js": 342,
+ "./fr.js": 340,
+ "./fy": 343,
+ "./fy.js": 343,
+ "./ga": 344,
+ "./ga.js": 344,
+ "./gd": 345,
+ "./gd.js": 345,
+ "./gl": 346,
+ "./gl.js": 346,
+ "./gom-latn": 347,
+ "./gom-latn.js": 347,
+ "./gu": 348,
+ "./gu.js": 348,
+ "./he": 349,
+ "./he.js": 349,
+ "./hi": 350,
+ "./hi.js": 350,
+ "./hr": 351,
+ "./hr.js": 351,
+ "./hu": 352,
+ "./hu.js": 352,
+ "./hy-am": 353,
+ "./hy-am.js": 353,
+ "./id": 354,
+ "./id.js": 354,
+ "./is": 355,
+ "./is.js": 355,
+ "./it": 356,
+ "./it-ch": 357,
+ "./it-ch.js": 357,
+ "./it.js": 356,
+ "./ja": 358,
+ "./ja.js": 358,
+ "./jv": 359,
+ "./jv.js": 359,
+ "./ka": 360,
+ "./ka.js": 360,
+ "./kk": 361,
+ "./kk.js": 361,
+ "./km": 362,
+ "./km.js": 362,
+ "./kn": 363,
+ "./kn.js": 363,
+ "./ko": 364,
+ "./ko.js": 364,
+ "./ku": 365,
+ "./ku.js": 365,
+ "./ky": 366,
+ "./ky.js": 366,
+ "./lb": 367,
+ "./lb.js": 367,
+ "./lo": 368,
+ "./lo.js": 368,
+ "./lt": 369,
+ "./lt.js": 369,
+ "./lv": 370,
+ "./lv.js": 370,
+ "./me": 371,
+ "./me.js": 371,
+ "./mi": 372,
+ "./mi.js": 372,
+ "./mk": 373,
+ "./mk.js": 373,
+ "./ml": 374,
+ "./ml.js": 374,
+ "./mn": 375,
+ "./mn.js": 375,
+ "./mr": 376,
+ "./mr.js": 376,
+ "./ms": 377,
+ "./ms-my": 378,
+ "./ms-my.js": 378,
+ "./ms.js": 377,
+ "./mt": 379,
+ "./mt.js": 379,
+ "./my": 380,
+ "./my.js": 380,
+ "./nb": 381,
+ "./nb.js": 381,
+ "./ne": 382,
+ "./ne.js": 382,
+ "./nl": 383,
+ "./nl-be": 384,
+ "./nl-be.js": 384,
+ "./nl.js": 383,
+ "./nn": 385,
+ "./nn.js": 385,
+ "./pa-in": 386,
+ "./pa-in.js": 386,
+ "./pl": 387,
+ "./pl.js": 387,
+ "./pt": 388,
+ "./pt-br": 389,
+ "./pt-br.js": 389,
+ "./pt.js": 388,
+ "./ro": 390,
+ "./ro.js": 390,
+ "./ru": 391,
+ "./ru.js": 391,
+ "./sd": 392,
+ "./sd.js": 392,
+ "./se": 393,
+ "./se.js": 393,
+ "./si": 394,
+ "./si.js": 394,
+ "./sk": 395,
+ "./sk.js": 395,
+ "./sl": 396,
+ "./sl.js": 396,
+ "./sq": 397,
+ "./sq.js": 397,
+ "./sr": 398,
+ "./sr-cyrl": 399,
+ "./sr-cyrl.js": 399,
+ "./sr.js": 398,
+ "./ss": 400,
+ "./ss.js": 400,
+ "./sv": 401,
+ "./sv.js": 401,
+ "./sw": 402,
+ "./sw.js": 402,
+ "./ta": 403,
+ "./ta.js": 403,
+ "./te": 404,
+ "./te.js": 404,
+ "./tet": 405,
+ "./tet.js": 405,
+ "./tg": 406,
+ "./tg.js": 406,
+ "./th": 407,
+ "./th.js": 407,
+ "./tl-ph": 408,
+ "./tl-ph.js": 408,
+ "./tlh": 409,
+ "./tlh.js": 409,
+ "./tr": 410,
+ "./tr.js": 410,
+ "./tzl": 411,
+ "./tzl.js": 411,
+ "./tzm": 412,
+ "./tzm-latn": 413,
+ "./tzm-latn.js": 413,
+ "./tzm.js": 412,
+ "./ug-cn": 414,
+ "./ug-cn.js": 414,
+ "./uk": 415,
+ "./uk.js": 415,
+ "./ur": 416,
+ "./ur.js": 416,
+ "./uz": 417,
+ "./uz-latn": 418,
+ "./uz-latn.js": 418,
+ "./uz.js": 417,
+ "./vi": 419,
+ "./vi.js": 419,
+ "./x-pseudo": 420,
+ "./x-pseudo.js": 420,
+ "./yo": 421,
+ "./yo.js": 421,
+ "./zh-cn": 422,
+ "./zh-cn.js": 422,
+ "./zh-hk": 423,
+ "./zh-hk.js": 423,
+ "./zh-tw": 424,
+ "./zh-tw.js": 424
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
@@ -48436,17 +45424,17 @@
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
- webpackContext.id = 301;
+ webpackContext.id = 297;
/***/ }),
-/* 302 */
+/* 298 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -48517,13 +45505,13 @@
/***/ }),
-/* 303 */
+/* 299 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -48656,13 +45644,13 @@
/***/ }),
-/* 304 */
+/* 300 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -48719,13 +45707,13 @@
/***/ }),
-/* 305 */
+/* 301 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -48782,13 +45770,13 @@
/***/ }),
-/* 306 */
+/* 302 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -48908,13 +45896,13 @@
/***/ }),
-/* 307 */
+/* 303 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -48971,13 +45959,13 @@
/***/ }),
-/* 308 */
+/* 304 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49079,13 +46067,13 @@
/***/ }),
-/* 309 */
+/* 305 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49142,13 +46130,13 @@
/***/ }),
-/* 310 */
+/* 306 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49251,13 +46239,13 @@
/***/ }),
-/* 311 */
+/* 307 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49387,13 +46375,13 @@
/***/ }),
-/* 312 */
+/* 308 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49481,13 +46469,13 @@
/***/ }),
-/* 313 */
+/* 309 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49543,13 +46531,13 @@
/***/ }),
-/* 314 */
+/* 310 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49666,13 +46654,13 @@
/***/ }),
-/* 315 */
+/* 311 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49789,13 +46777,13 @@
/***/ }),
-/* 316 */
+/* 312 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -49901,13 +46889,13 @@
/***/ }),
-/* 317 */
+/* 313 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50056,13 +47044,13 @@
/***/ }),
-/* 318 */
+/* 314 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50148,13 +47136,13 @@
/***/ }),
-/* 319 */
+/* 315 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50324,13 +47312,13 @@
/***/ }),
-/* 320 */
+/* 316 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50391,13 +47379,13 @@
/***/ }),
-/* 321 */
+/* 317 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50475,13 +47463,13 @@
/***/ }),
-/* 322 */
+/* 318 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50539,13 +47527,13 @@
/***/ }),
-/* 323 */
+/* 319 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50619,13 +47607,13 @@
/***/ }),
-/* 324 */
+/* 320 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50699,13 +47687,13 @@
/***/ }),
-/* 325 */
+/* 321 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50779,13 +47767,13 @@
/***/ }),
-/* 326 */
+/* 322 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50882,13 +47870,13 @@
/***/ }),
-/* 327 */
+/* 323 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -50986,13 +47974,13 @@
/***/ }),
-/* 328 */
+/* 324 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51057,13 +48045,13 @@
/***/ }),
-/* 329 */
+/* 325 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51128,13 +48116,13 @@
/***/ }),
-/* 330 */
+/* 326 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51195,13 +48183,13 @@
/***/ }),
-/* 331 */
+/* 327 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51266,13 +48254,13 @@
/***/ }),
-/* 332 */
+/* 328 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51337,13 +48325,13 @@
/***/ }),
-/* 333 */
+/* 329 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51403,13 +48391,13 @@
/***/ }),
-/* 334 */
+/* 330 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51474,13 +48462,13 @@
/***/ }),
-/* 335 */
+/* 331 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51549,13 +48537,13 @@
/***/ }),
-/* 336 */
+/* 332 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51645,13 +48633,13 @@
/***/ }),
-/* 337 */
+/* 333 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51741,13 +48729,13 @@
/***/ }),
-/* 338 */
+/* 334 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51837,13 +48825,13 @@
/***/ }),
-/* 339 */
+/* 335 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51921,13 +48909,13 @@
/***/ }),
-/* 340 */
+/* 336 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -51991,13 +48979,13 @@
/***/ }),
-/* 341 */
+/* 337 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52101,13 +49089,13 @@
/***/ }),
-/* 342 */
+/* 338 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52214,13 +49202,13 @@
/***/ }),
-/* 343 */
+/* 339 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52278,13 +49266,13 @@
/***/ }),
-/* 344 */
+/* 340 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52365,13 +49353,13 @@
/***/ }),
-/* 345 */
+/* 341 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52443,13 +49431,13 @@
/***/ }),
-/* 346 */
+/* 342 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52525,13 +49513,13 @@
/***/ }),
-/* 347 */
+/* 343 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52604,13 +49592,13 @@
/***/ }),
-/* 348 */
+/* 344 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52685,13 +49673,13 @@
/***/ }),
-/* 349 */
+/* 345 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52765,13 +49753,13 @@
/***/ }),
-/* 350 */
+/* 346 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52846,13 +49834,13 @@
/***/ }),
-/* 351 */
+/* 347 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -52973,13 +49961,13 @@
/***/ }),
-/* 352 */
+/* 348 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53101,13 +50089,13 @@
/***/ }),
-/* 353 */
+/* 349 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53202,13 +50190,13 @@
/***/ }),
-/* 354 */
+/* 350 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53330,13 +50318,13 @@
/***/ }),
-/* 355 */
+/* 351 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53488,13 +50476,13 @@
/***/ }),
-/* 356 */
+/* 352 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53602,13 +50590,13 @@
/***/ }),
-/* 357 */
+/* 353 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53701,13 +50689,13 @@
/***/ }),
-/* 358 */
+/* 354 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53787,13 +50775,13 @@
/***/ }),
-/* 359 */
+/* 355 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53923,13 +50911,13 @@
/***/ }),
-/* 360 */
+/* 356 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -53996,13 +50984,13 @@
/***/ }),
-/* 361 */
+/* 357 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54069,13 +51057,13 @@
/***/ }),
-/* 362 */
+/* 358 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54165,13 +51153,13 @@
/***/ }),
-/* 363 */
+/* 359 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54251,13 +51239,13 @@
/***/ }),
-/* 364 */
+/* 360 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54344,13 +51332,13 @@
/***/ }),
-/* 365 */
+/* 361 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54435,13 +51423,13 @@
/***/ }),
-/* 366 */
+/* 362 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54549,13 +51537,13 @@
/***/ }),
-/* 367 */
+/* 363 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54679,13 +51667,13 @@
/***/ }),
-/* 368 */
+/* 364 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54764,13 +51752,13 @@
/***/ }),
-/* 369 */
+/* 365 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54887,13 +51875,13 @@
/***/ }),
-/* 370 */
+/* 366 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -54978,13 +51966,13 @@
/***/ }),
-/* 371 */
+/* 367 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55118,13 +52106,13 @@
/***/ }),
-/* 372 */
+/* 368 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55192,13 +52180,13 @@
/***/ }),
-/* 373 */
+/* 369 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55314,13 +52302,13 @@
/***/ }),
-/* 374 */
+/* 370 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55415,13 +52403,13 @@
/***/ }),
-/* 375 */
+/* 371 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55531,13 +52519,13 @@
/***/ }),
-/* 376 */
+/* 372 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55599,13 +52587,13 @@
/***/ }),
-/* 377 */
+/* 373 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55693,13 +52681,13 @@
/***/ }),
-/* 378 */
+/* 374 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55778,13 +52766,13 @@
/***/ }),
-/* 379 */
+/* 375 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -55886,13 +52874,13 @@
/***/ }),
-/* 380 */
+/* 376 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56050,13 +53038,13 @@
/***/ }),
-/* 381 */
+/* 377 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56136,13 +53124,13 @@
/***/ }),
-/* 382 */
+/* 378 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56222,13 +53210,13 @@
/***/ }),
-/* 383 */
+/* 379 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56286,13 +53274,13 @@
/***/ }),
-/* 384 */
+/* 380 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56383,13 +53371,13 @@
/***/ }),
-/* 385 */
+/* 381 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56449,13 +53437,13 @@
/***/ }),
-/* 386 */
+/* 382 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56576,13 +53564,13 @@
/***/ }),
-/* 387 */
+/* 383 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56667,13 +53655,13 @@
/***/ }),
-/* 388 */
+/* 384 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56758,13 +53746,13 @@
/***/ }),
-/* 389 */
+/* 385 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56822,13 +53810,13 @@
/***/ }),
-/* 390 */
+/* 386 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -56950,13 +53938,13 @@
/***/ }),
-/* 391 */
+/* 387 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57080,13 +54068,13 @@
/***/ }),
-/* 392 */
+/* 388 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57149,13 +54137,13 @@
/***/ }),
-/* 393 */
+/* 389 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57214,13 +54202,13 @@
/***/ }),
-/* 394 */
+/* 390 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57293,13 +54281,13 @@
/***/ }),
-/* 395 */
+/* 391 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57479,13 +54467,13 @@
/***/ }),
-/* 396 */
+/* 392 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57581,13 +54569,13 @@
/***/ }),
-/* 397 */
+/* 393 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57645,13 +54633,13 @@
/***/ }),
-/* 398 */
+/* 394 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57720,13 +54708,13 @@
/***/ }),
-/* 399 */
+/* 395 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -57880,13 +54868,13 @@
/***/ }),
-/* 400 */
+/* 396 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58057,13 +55045,13 @@
/***/ }),
-/* 401 */
+/* 397 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58129,13 +55117,13 @@
/***/ }),
-/* 402 */
+/* 398 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58244,13 +55232,13 @@
/***/ }),
-/* 403 */
+/* 399 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58359,13 +55347,13 @@
/***/ }),
-/* 404 */
+/* 400 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58451,13 +55439,13 @@
/***/ }),
-/* 405 */
+/* 401 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58524,13 +55512,13 @@
/***/ }),
-/* 406 */
+/* 402 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58587,13 +55575,13 @@
/***/ }),
-/* 407 */
+/* 403 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58720,13 +55708,13 @@
/***/ }),
-/* 408 */
+/* 404 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58813,13 +55801,13 @@
/***/ }),
-/* 409 */
+/* 405 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -58884,13 +55872,13 @@
/***/ }),
-/* 410 */
+/* 406 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59004,13 +55992,13 @@
/***/ }),
-/* 411 */
+/* 407 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59075,13 +56063,13 @@
/***/ }),
-/* 412 */
+/* 408 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59141,13 +56129,13 @@
/***/ }),
-/* 413 */
+/* 409 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59267,12 +56255,12 @@
/***/ }),
-/* 414 */
+/* 410 */
/***/ (function(module, exports, __webpack_require__) {
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59365,13 +56353,13 @@
/***/ }),
-/* 415 */
+/* 411 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59460,13 +56448,13 @@
/***/ }),
-/* 416 */
+/* 412 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59522,13 +56510,13 @@
/***/ }),
-/* 417 */
+/* 413 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59584,13 +56572,13 @@
/***/ }),
-/* 418 */
+/* 414 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js language configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59707,13 +56695,13 @@
/***/ }),
-/* 419 */
+/* 415 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59865,13 +56853,13 @@
/***/ }),
-/* 420 */
+/* 416 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -59967,13 +56955,13 @@
/***/ }),
-/* 421 */
+/* 417 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60029,13 +57017,13 @@
/***/ }),
-/* 422 */
+/* 418 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60091,13 +57079,13 @@
/***/ }),
-/* 423 */
+/* 419 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60174,13 +57162,13 @@
/***/ }),
-/* 424 */
+/* 420 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60246,13 +57234,13 @@
/***/ }),
-/* 425 */
+/* 421 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60310,13 +57298,13 @@
/***/ }),
-/* 426 */
+/* 422 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60424,13 +57412,13 @@
/***/ }),
-/* 427 */
+/* 423 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60531,13 +57519,13 @@
/***/ }),
-/* 428 */
+/* 424 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
;(function (global, factory) {
- true ? factory(__webpack_require__(300)) :
+ true ? factory(__webpack_require__(296)) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
@@ -60638,7 +57626,7 @@
/***/ }),
-/* 429 */
+/* 425 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -60659,11 +57647,11 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _DateConstants = __webpack_require__(299);
+ var _DateConstants = __webpack_require__(295);
var _DateConstants2 = _interopRequireDefault(_DateConstants);
- var _util = __webpack_require__(430);
+ var _util = __webpack_require__(426);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -60939,7 +57927,7 @@
module.exports = exports['default'];
/***/ }),
-/* 430 */
+/* 426 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -60961,7 +57949,7 @@
exports.isAllowedDate = isAllowedDate;
exports.formatDate = formatDate;
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -60981,9 +57969,7 @@
function getTodayTime(value) {
var today = (0, _moment2["default"])();
- if (typeof value !== 'undefined') {
- today.locale(value.locale()).utcOffset(value.utcOffset());
- }
+ today.locale(value.locale()).utcOffset(value.utcOffset());
return today;
}
@@ -61069,7 +58055,7 @@
}
/***/ }),
-/* 431 */
+/* 427 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -61086,19 +58072,19 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _mapSelf = __webpack_require__(432);
+ var _mapSelf = __webpack_require__(428);
var _mapSelf2 = _interopRequireDefault(_mapSelf);
- var _MonthPanel = __webpack_require__(433);
+ var _MonthPanel = __webpack_require__(429);
var _MonthPanel2 = _interopRequireDefault(_MonthPanel);
- var _YearPanel = __webpack_require__(436);
+ var _YearPanel = __webpack_require__(432);
var _YearPanel2 = _interopRequireDefault(_YearPanel);
- var _DecadePanel = __webpack_require__(437);
+ var _DecadePanel = __webpack_require__(433);
var _DecadePanel2 = _interopRequireDefault(_DecadePanel);
@@ -61292,7 +58278,7 @@
var prefixCls = props.prefixCls;
var locale = props.locale;
var value = props.value;
- var localeData = value.localeData && value.localeData();
+ var localeData = value.localeData();
var monthBeforeYear = locale.monthBeforeYear;
var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
@@ -61361,7 +58347,7 @@
module.exports = exports['default'];
/***/ }),
-/* 432 */
+/* 428 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -61388,7 +58374,7 @@
module.exports = exports['default'];
/***/ }),
-/* 433 */
+/* 429 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -61405,17 +58391,17 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _MonthTable = __webpack_require__(434);
+ var _MonthTable = __webpack_require__(430);
var _MonthTable2 = _interopRequireDefault(_MonthTable);
- var _DateInput = __webpack_require__(435);
+ var _DateInput = __webpack_require__(431);
var _DateInput2 = _interopRequireDefault(_DateInput);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -61586,7 +58572,7 @@
module.exports = exports['default'];
/***/ }),
-/* 434 */
+/* 430 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -61607,7 +58593,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _index = __webpack_require__(430);
+ var _index = __webpack_require__(426);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -61772,7 +58758,7 @@
module.exports = exports['default'];
/***/ }),
-/* 435 */
+/* 431 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -61793,15 +58779,17 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _tinperBeeCore = __webpack_require__(27);
+ var _KeyCode = __webpack_require__(292);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _KeyCode2 = _interopRequireDefault(_KeyCode);
- var _moment = __webpack_require__(300);
+ var _reactLifecyclesCompat = __webpack_require__(91);
+
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
- var _util = __webpack_require__(430);
+ var _util = __webpack_require__(426);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -61953,7 +58941,7 @@
if (!str) {
onChange(null);
_this2.setState({
- // invalid: false,
+ invalid: false,
str: str
});
return;
@@ -61963,7 +58951,7 @@
var parsed = (0, _moment2["default"])(str, format, true);
if (!parsed.isValid()) {
_this2.setState({
- // invalid: true,
+ invalid: true,
str: str
});
return;
@@ -61974,7 +58962,7 @@
if (!value || disabledDate && disabledDate(value)) {
_this2.setState({
- // invalid: true,
+ invalid: true,
str: str
});
return;
@@ -61982,7 +58970,7 @@
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
_this2.setState({
- // invalid: false,
+ invalid: false,
str: str
});
onChange(value);
@@ -61994,47 +58982,6 @@
};
this.onBlur = function (e) {
- var str = e.target.value;
- var _props2 = _this2.props,
- disabledDate = _props2.disabledDate,
- format = _props2.format,
- onChange = _props2.onChange,
- selectedValue = _props2.selectedValue;
-
- // 没有内容,合法并直接退出
-
- if (!str) {
- _this2.setState({
- invalid: false
- });
- return;
- }
-
- // 不合法直接退出
- var parsed = (0, _moment2["default"])(str, format, true);
- if (!parsed.isValid()) {
- _this2.setState({
- invalid: true
- });
- return;
- }
-
- var value = _this2.props.value.clone();
- value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
-
- if (!value || disabledDate && disabledDate(value)) {
- _this2.setState({
- invalid: true
- });
- return;
- }
-
- if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
- _this2.setState({
- invalid: false
- });
- }
-
_this2.setState(function (prevState, prevProps) {
return {
hasFocus: false,
@@ -62045,33 +58992,19 @@
};
this.onKeyDown = function (e) {
- var _props3 = _this2.props,
- onSelect = _props3.onSelect,
- value = _props3.value,
- onKeyDown = _props3.onKeyDown,
- format = _props3.format,
- isRange = _props3.isRange;
+ var _props2 = _this2.props,
+ onSelect = _props2.onSelect,
+ value = _props2.value,
+ onKeyDown = _props2.onKeyDown,
+ format = _props2.format,
+ isRange = _props2.isRange;
var str = e.target.value;
var parsed = (0, _moment2["default"])(str, format, true);
- if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) {
+ if (e.keyCode === _KeyCode2["default"].ENTER) {
if (parsed.isValid() && onSelect) {
isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183
}
- // 没有内容,回填默认值,并关闭面板
- if (!str) {
- _this2.setState({
- invalid: false
- });
- onSelect && onSelect((0, _moment2["default"])());
- return;
- }
- // 有内容,判断是否合法
- if (!parsed.isValid()) {
- _this2.setState({
- invalid: true
- });
- }
}
// if (e.keyCode === KeyCode.ENTER && onSelect) {
// onSelect(value.clone());
@@ -62100,7 +59033,7 @@
module.exports = exports['default'];
/***/ }),
-/* 436 */
+/* 432 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62121,15 +59054,15 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _DecadePanel = __webpack_require__(437);
+ var _DecadePanel = __webpack_require__(433);
var _DecadePanel2 = _interopRequireDefault(_DecadePanel);
- var _DateInput = __webpack_require__(435);
+ var _DateInput = __webpack_require__(431);
var _DateInput2 = _interopRequireDefault(_DateInput);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -62407,7 +59340,7 @@
module.exports = exports['default'];
/***/ }),
-/* 437 */
+/* 433 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62619,7 +59552,7 @@
module.exports = exports['default'];
/***/ }),
-/* 438 */
+/* 434 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62642,7 +59575,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _mapSelf = __webpack_require__(432);
+ var _mapSelf = __webpack_require__(428);
var _mapSelf2 = _interopRequireDefault(_mapSelf);
@@ -62650,15 +59583,15 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _TodayButton = __webpack_require__(439);
+ var _TodayButton = __webpack_require__(435);
var _TodayButton2 = _interopRequireDefault(_TodayButton);
- var _OkButton = __webpack_require__(440);
+ var _OkButton = __webpack_require__(436);
var _OkButton2 = _interopRequireDefault(_OkButton);
- var _TimePickerButton = __webpack_require__(441);
+ var _TimePickerButton = __webpack_require__(437);
var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);
@@ -62755,7 +59688,7 @@
module.exports = exports['default'];
/***/ }),
-/* 439 */
+/* 435 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62769,7 +59702,7 @@
var _react2 = _interopRequireDefault(_react);
- var _util = __webpack_require__(430);
+ var _util = __webpack_require__(426);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -62801,7 +59734,7 @@
module.exports = exports['default'];
/***/ }),
-/* 440 */
+/* 436 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62815,7 +59748,7 @@
var _react2 = _interopRequireDefault(_react);
- var _beeButton = __webpack_require__(264);
+ var _beeButton = __webpack_require__(260);
var _beeButton2 = _interopRequireDefault(_beeButton);
@@ -62845,7 +59778,7 @@
module.exports = exports['default'];
/***/ }),
-/* 441 */
+/* 437 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62895,7 +59828,7 @@
module.exports = exports['default'];
/***/ }),
-/* 442 */
+/* 438 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -62918,11 +59851,11 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
- var _index = __webpack_require__(430);
+ var _index = __webpack_require__(426);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -63051,7 +59984,7 @@
};
/***/ }),
-/* 443 */
+/* 439 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -63065,7 +59998,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _en_US = __webpack_require__(444);
+ var _en_US = __webpack_require__(440);
var _en_US2 = _interopRequireDefault(_en_US);
@@ -63160,7 +60093,7 @@
};
/***/ }),
-/* 444 */
+/* 440 */
/***/ (function(module, exports) {
'use strict';
@@ -63202,7 +60135,7 @@
module.exports = exports['default'];
/***/ }),
-/* 445 */
+/* 441 */
/***/ (function(module, exports) {
'use strict';
@@ -63237,7 +60170,7 @@
}
/***/ }),
-/* 446 */
+/* 442 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -63258,21 +60191,21 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _createChainedFunction = __webpack_require__(447);
+ var _createChainedFunction = __webpack_require__(443);
var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
- var _placements = __webpack_require__(448);
+ var _placements = __webpack_require__(444);
var _placements2 = _interopRequireDefault(_placements);
- var _rcTrigger = __webpack_require__(449);
+ var _rcTrigger = __webpack_require__(445);
var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
@@ -63516,7 +60449,7 @@
module.exports = exports['default'];
/***/ }),
-/* 447 */
+/* 443 */
/***/ (function(module, exports) {
"use strict";
@@ -63550,7 +60483,7 @@
module.exports = exports['default'];
/***/ }),
-/* 448 */
+/* 444 */
/***/ (function(module, exports) {
'use strict';
@@ -63596,26 +60529,26 @@
module.exports = exports['default'];
/***/ }),
-/* 449 */
+/* 445 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -63629,25 +60562,19 @@
var _reactDom = __webpack_require__(2);
- var _contains = __webpack_require__(490);
+ var _contains = __webpack_require__(486);
var _contains2 = _interopRequireDefault(_contains);
- var _addEventListener = __webpack_require__(491);
+ var _addEventListener = __webpack_require__(487);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
- var _Popup = __webpack_require__(492);
-
- var _Popup2 = _interopRequireDefault(_Popup);
-
- var _utils = __webpack_require__(523);
-
- var _ContainerRender = __webpack_require__(524);
+ var _ContainerRender = __webpack_require__(488);
var _ContainerRender2 = _interopRequireDefault(_ContainerRender);
- var _Portal = __webpack_require__(525);
+ var _Portal = __webpack_require__(493);
var _Portal2 = _interopRequireDefault(_Portal);
@@ -63655,6 +60582,12 @@
var _classnames2 = _interopRequireDefault(_classnames);
+ var _utils = __webpack_require__(494);
+
+ var _Popup = __webpack_require__(495);
+
+ var _Popup2 = _interopRequireDefault(_Popup);
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function noop() {}
@@ -63671,6 +60604,12 @@
var IS_REACT_16 = !!_reactDom.createPortal;
+ var contextTypes = {
+ rcTrigger: _propTypes2['default'].shape({
+ onPopupMouseDown: _propTypes2['default'].func
+ })
+ };
+
var Trigger = function (_React$Component) {
(0, _inherits3['default'])(Trigger, _React$Component);
@@ -63696,6 +60635,14 @@
return _this;
}
+ Trigger.prototype.getChildContext = function getChildContext() {
+ return {
+ rcTrigger: {
+ onPopupMouseDown: this.onPopupMouseDown
+ }
+ };
+ };
+
Trigger.prototype.componentWillMount = function componentWillMount() {
var _this2 = this;
@@ -63769,6 +60716,7 @@
Trigger.prototype.componentWillUnmount = function componentWillUnmount() {
this.clearDelayTimer();
this.clearOutsideHandler();
+ clearTimeout(this.mouseDownTimeout);
};
Trigger.prototype.getPopupDomNode = function getPopupDomNode() {
@@ -64077,6 +61025,8 @@
stretch: _propTypes2['default'].string,
alignPoint: _propTypes2['default'].bool // Maybe we can support user pass position in the future
};
+ Trigger.contextTypes = contextTypes;
+ Trigger.childContextTypes = contextTypes;
Trigger.defaultProps = {
prefixCls: 'rc-trigger-popup',
getPopupClassNameFromAlign: returnEmptyString,
@@ -64201,14 +61151,30 @@
}
};
+ this.onPopupMouseDown = function () {
+ var _context$rcTrigger = _this5.context.rcTrigger,
+ rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger;
+
+ _this5.hasPopupMouseDown = true;
+
+ clearTimeout(_this5.mouseDownTimeout);
+ _this5.mouseDownTimeout = setTimeout(function () {
+ _this5.hasPopupMouseDown = false;
+ }, 0);
+
+ if (rcTrigger.onPopupMouseDown) {
+ rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments);
+ }
+ };
+
this.onDocumentClick = function (event) {
if (_this5.props.mask && !_this5.props.maskClosable) {
return;
}
+
var target = event.target;
var root = (0, _reactDom.findDOMNode)(_this5);
- var popupNode = _this5.getPopupDomNode();
- if (!(0, _contains2['default'])(root, target) && !(0, _contains2['default'])(popupNode, target)) {
+ if (!(0, _contains2['default'])(root, target) && !_this5.hasPopupMouseDown) {
_this5.close();
}
};
@@ -64267,6 +61233,9 @@
mouseProps.onMouseLeave = _this5.onPopupMouseLeave;
}
+ mouseProps.onMouseDown = _this5.onPopupMouseDown;
+ mouseProps.onTouchStart = _this5.onPopupMouseDown;
+
return _react2['default'].createElement(
_Popup2['default'],
(0, _extends3['default'])({
@@ -64338,14 +61307,14 @@
module.exports = exports['default'];
/***/ }),
-/* 450 */
+/* 446 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
- var _assign = __webpack_require__(451);
+ var _assign = __webpack_require__(447);
var _assign2 = _interopRequireDefault(_assign);
@@ -64366,13 +61335,13 @@
};
/***/ }),
-/* 451 */
+/* 447 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(147), __esModule: true };
+ module.exports = { "default": __webpack_require__(155), __esModule: true };
/***/ }),
-/* 452 */
+/* 448 */
/***/ (function(module, exports) {
"use strict";
@@ -64386,14 +61355,14 @@
};
/***/ }),
-/* 453 */
+/* 449 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
- var _typeof2 = __webpack_require__(454);
+ var _typeof2 = __webpack_require__(450);
var _typeof3 = _interopRequireDefault(_typeof2);
@@ -64408,18 +61377,18 @@
};
/***/ }),
-/* 454 */
+/* 450 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
- var _iterator = __webpack_require__(455);
+ var _iterator = __webpack_require__(451);
var _iterator2 = _interopRequireDefault(_iterator);
- var _symbol = __webpack_require__(471);
+ var _symbol = __webpack_require__(467);
var _symbol2 = _interopRequireDefault(_symbol);
@@ -64434,29 +61403,29 @@
};
/***/ }),
-/* 455 */
+/* 451 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(456), __esModule: true };
+ module.exports = { "default": __webpack_require__(452), __esModule: true };
/***/ }),
-/* 456 */
+/* 452 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(457);
- __webpack_require__(466);
- module.exports = __webpack_require__(470).f('iterator');
+ __webpack_require__(453);
+ __webpack_require__(462);
+ module.exports = __webpack_require__(466).f('iterator');
/***/ }),
-/* 457 */
+/* 453 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- var $at = __webpack_require__(458)(true);
+ var $at = __webpack_require__(454)(true);
// 21.1.3.27 String.prototype[@@iterator]()
- __webpack_require__(459)(String, 'String', function (iterated) {
+ __webpack_require__(455)(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
@@ -64472,11 +61441,11 @@
/***/ }),
-/* 458 */
+/* 454 */
/***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__(174);
- var defined = __webpack_require__(171);
+ var toInteger = __webpack_require__(182);
+ var defined = __webpack_require__(179);
// true -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
@@ -64495,19 +61464,19 @@
/***/ }),
-/* 459 */
+/* 455 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- var LIBRARY = __webpack_require__(178);
- var $export = __webpack_require__(149);
- var redefine = __webpack_require__(460);
- var hide = __webpack_require__(154);
- var Iterators = __webpack_require__(461);
- var $iterCreate = __webpack_require__(462);
- var setToStringTag = __webpack_require__(463);
- var getPrototypeOf = __webpack_require__(465);
- var ITERATOR = __webpack_require__(464)('iterator');
+ var LIBRARY = __webpack_require__(186);
+ var $export = __webpack_require__(157);
+ var redefine = __webpack_require__(456);
+ var hide = __webpack_require__(162);
+ var Iterators = __webpack_require__(457);
+ var $iterCreate = __webpack_require__(458);
+ var setToStringTag = __webpack_require__(459);
+ var getPrototypeOf = __webpack_require__(461);
+ var ITERATOR = __webpack_require__(460)('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
@@ -64570,31 +61539,31 @@
/***/ }),
-/* 460 */
+/* 456 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(154);
+ module.exports = __webpack_require__(162);
/***/ }),
-/* 461 */
+/* 457 */
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
-/* 462 */
+/* 458 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- var create = __webpack_require__(200);
- var descriptor = __webpack_require__(163);
- var setToStringTag = __webpack_require__(463);
+ var create = __webpack_require__(208);
+ var descriptor = __webpack_require__(171);
+ var setToStringTag = __webpack_require__(459);
var IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__(154)(IteratorPrototype, __webpack_require__(464)('iterator'), function () { return this; });
+ __webpack_require__(162)(IteratorPrototype, __webpack_require__(460)('iterator'), function () { return this; });
module.exports = function (Constructor, NAME, next) {
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
@@ -64603,12 +61572,12 @@
/***/ }),
-/* 463 */
+/* 459 */
/***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__(155).f;
- var has = __webpack_require__(164);
- var TAG = __webpack_require__(464)('toStringTag');
+ var def = __webpack_require__(163).f;
+ var has = __webpack_require__(172);
+ var TAG = __webpack_require__(460)('toStringTag');
module.exports = function (it, tag, stat) {
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
@@ -64616,12 +61585,12 @@
/***/ }),
-/* 464 */
+/* 460 */
/***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__(177)('wks');
- var uid = __webpack_require__(179);
- var Symbol = __webpack_require__(150).Symbol;
+ var store = __webpack_require__(185)('wks');
+ var uid = __webpack_require__(187);
+ var Symbol = __webpack_require__(158).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
@@ -64633,13 +61602,13 @@
/***/ }),
-/* 465 */
+/* 461 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__(164);
- var toObject = __webpack_require__(183);
- var IE_PROTO = __webpack_require__(176)('IE_PROTO');
+ var has = __webpack_require__(172);
+ var toObject = __webpack_require__(191);
+ var IE_PROTO = __webpack_require__(184)('IE_PROTO');
var ObjectProto = Object.prototype;
module.exports = Object.getPrototypeOf || function (O) {
@@ -64652,14 +61621,14 @@
/***/ }),
-/* 466 */
+/* 462 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(467);
- var global = __webpack_require__(150);
- var hide = __webpack_require__(154);
- var Iterators = __webpack_require__(461);
- var TO_STRING_TAG = __webpack_require__(464)('toStringTag');
+ __webpack_require__(463);
+ var global = __webpack_require__(158);
+ var hide = __webpack_require__(162);
+ var Iterators = __webpack_require__(457);
+ var TO_STRING_TAG = __webpack_require__(460)('toStringTag');
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
@@ -64677,20 +61646,20 @@
/***/ }),
-/* 467 */
+/* 463 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- var addToUnscopables = __webpack_require__(468);
- var step = __webpack_require__(469);
- var Iterators = __webpack_require__(461);
- var toIObject = __webpack_require__(168);
+ var addToUnscopables = __webpack_require__(464);
+ var step = __webpack_require__(465);
+ var Iterators = __webpack_require__(457);
+ var toIObject = __webpack_require__(176);
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__(459)(Array, 'Array', function (iterated, kind) {
+ module.exports = __webpack_require__(455)(Array, 'Array', function (iterated, kind) {
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
@@ -64717,14 +61686,14 @@
/***/ }),
-/* 468 */
+/* 464 */
/***/ (function(module, exports) {
module.exports = function () { /* empty */ };
/***/ }),
-/* 469 */
+/* 465 */
/***/ (function(module, exports) {
module.exports = function (done, value) {
@@ -64733,62 +61702,60 @@
/***/ }),
-/* 470 */
+/* 466 */
/***/ (function(module, exports, __webpack_require__) {
- exports.f = __webpack_require__(464);
+ exports.f = __webpack_require__(460);
/***/ }),
-/* 471 */
+/* 467 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(472), __esModule: true };
+ module.exports = { "default": __webpack_require__(468), __esModule: true };
/***/ }),
-/* 472 */
+/* 468 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(473);
- __webpack_require__(481);
- __webpack_require__(482);
- __webpack_require__(483);
- module.exports = __webpack_require__(151).Symbol;
+ __webpack_require__(469);
+ __webpack_require__(477);
+ __webpack_require__(478);
+ __webpack_require__(479);
+ module.exports = __webpack_require__(159).Symbol;
/***/ }),
-/* 473 */
+/* 469 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// ECMAScript 6 symbols shim
- var global = __webpack_require__(150);
- var has = __webpack_require__(164);
- var DESCRIPTORS = __webpack_require__(159);
- var $export = __webpack_require__(149);
- var redefine = __webpack_require__(460);
- var META = __webpack_require__(474).KEY;
- var $fails = __webpack_require__(160);
- var shared = __webpack_require__(177);
- var setToStringTag = __webpack_require__(463);
- var uid = __webpack_require__(179);
- var wks = __webpack_require__(464);
- var wksExt = __webpack_require__(470);
- var wksDefine = __webpack_require__(475);
- var enumKeys = __webpack_require__(476);
- var isArray = __webpack_require__(477);
- var anObject = __webpack_require__(156);
- var isObject = __webpack_require__(157);
- var toObject = __webpack_require__(183);
- var toIObject = __webpack_require__(168);
- var toPrimitive = __webpack_require__(162);
- var createDesc = __webpack_require__(163);
- var _create = __webpack_require__(200);
- var gOPNExt = __webpack_require__(478);
- var $GOPD = __webpack_require__(480);
- var $GOPS = __webpack_require__(181);
- var $DP = __webpack_require__(155);
- var $keys = __webpack_require__(166);
+ var global = __webpack_require__(158);
+ var has = __webpack_require__(172);
+ var DESCRIPTORS = __webpack_require__(167);
+ var $export = __webpack_require__(157);
+ var redefine = __webpack_require__(456);
+ var META = __webpack_require__(470).KEY;
+ var $fails = __webpack_require__(168);
+ var shared = __webpack_require__(185);
+ var setToStringTag = __webpack_require__(459);
+ var uid = __webpack_require__(187);
+ var wks = __webpack_require__(460);
+ var wksExt = __webpack_require__(466);
+ var wksDefine = __webpack_require__(471);
+ var enumKeys = __webpack_require__(472);
+ var isArray = __webpack_require__(473);
+ var anObject = __webpack_require__(164);
+ var isObject = __webpack_require__(165);
+ var toIObject = __webpack_require__(176);
+ var toPrimitive = __webpack_require__(170);
+ var createDesc = __webpack_require__(171);
+ var _create = __webpack_require__(208);
+ var gOPNExt = __webpack_require__(474);
+ var $GOPD = __webpack_require__(476);
+ var $DP = __webpack_require__(163);
+ var $keys = __webpack_require__(174);
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
@@ -64803,7 +61770,7 @@
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
- var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
+ var USE_NATIVE = typeof $Symbol == 'function';
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
@@ -64911,11 +61878,11 @@
$GOPD.f = $getOwnPropertyDescriptor;
$DP.f = $defineProperty;
- __webpack_require__(479).f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__(182).f = $propertyIsEnumerable;
- $GOPS.f = $getOwnPropertySymbols;
+ __webpack_require__(475).f = gOPNExt.f = $getOwnPropertyNames;
+ __webpack_require__(190).f = $propertyIsEnumerable;
+ __webpack_require__(189).f = $getOwnPropertySymbols;
- if (DESCRIPTORS && !__webpack_require__(178)) {
+ if (DESCRIPTORS && !__webpack_require__(186)) {
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
}
@@ -64964,16 +61931,6 @@
getOwnPropertySymbols: $getOwnPropertySymbols
});
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
- var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
-
- $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
- return $GOPS.f(toObject(it));
- }
- });
-
// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
var S = $Symbol();
@@ -64999,7 +61956,7 @@
});
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(154)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
+ $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(162)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
@@ -65009,18 +61966,18 @@
/***/ }),
-/* 474 */
+/* 470 */
/***/ (function(module, exports, __webpack_require__) {
- var META = __webpack_require__(179)('meta');
- var isObject = __webpack_require__(157);
- var has = __webpack_require__(164);
- var setDesc = __webpack_require__(155).f;
+ var META = __webpack_require__(187)('meta');
+ var isObject = __webpack_require__(165);
+ var has = __webpack_require__(172);
+ var setDesc = __webpack_require__(163).f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
- var FREEZE = !__webpack_require__(160)(function () {
+ var FREEZE = !__webpack_require__(168)(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
@@ -65068,14 +62025,14 @@
/***/ }),
-/* 475 */
+/* 471 */
/***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(150);
- var core = __webpack_require__(151);
- var LIBRARY = __webpack_require__(178);
- var wksExt = __webpack_require__(470);
- var defineProperty = __webpack_require__(155).f;
+ var global = __webpack_require__(158);
+ var core = __webpack_require__(159);
+ var LIBRARY = __webpack_require__(186);
+ var wksExt = __webpack_require__(466);
+ var defineProperty = __webpack_require__(163).f;
module.exports = function (name) {
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
@@ -65083,13 +62040,13 @@
/***/ }),
-/* 476 */
+/* 472 */
/***/ (function(module, exports, __webpack_require__) {
// all enumerable object keys, includes symbols
- var getKeys = __webpack_require__(166);
- var gOPS = __webpack_require__(181);
- var pIE = __webpack_require__(182);
+ var getKeys = __webpack_require__(174);
+ var gOPS = __webpack_require__(189);
+ var pIE = __webpack_require__(190);
module.exports = function (it) {
var result = getKeys(it);
var getSymbols = gOPS.f;
@@ -65104,23 +62061,23 @@
/***/ }),
-/* 477 */
+/* 473 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
- var cof = __webpack_require__(170);
+ var cof = __webpack_require__(178);
module.exports = Array.isArray || function isArray(arg) {
return cof(arg) == 'Array';
};
/***/ }),
-/* 478 */
+/* 474 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__(168);
- var gOPN = __webpack_require__(479).f;
+ var toIObject = __webpack_require__(176);
+ var gOPN = __webpack_require__(475).f;
var toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -65140,12 +62097,12 @@
/***/ }),
-/* 479 */
+/* 475 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__(167);
- var hiddenKeys = __webpack_require__(180).concat('length', 'prototype');
+ var $keys = __webpack_require__(175);
+ var hiddenKeys = __webpack_require__(188).concat('length', 'prototype');
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return $keys(O, hiddenKeys);
@@ -65153,18 +62110,18 @@
/***/ }),
-/* 480 */
+/* 476 */
/***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__(182);
- var createDesc = __webpack_require__(163);
- var toIObject = __webpack_require__(168);
- var toPrimitive = __webpack_require__(162);
- var has = __webpack_require__(164);
- var IE8_DOM_DEFINE = __webpack_require__(158);
+ var pIE = __webpack_require__(190);
+ var createDesc = __webpack_require__(171);
+ var toIObject = __webpack_require__(176);
+ var toPrimitive = __webpack_require__(170);
+ var has = __webpack_require__(172);
+ var IE8_DOM_DEFINE = __webpack_require__(166);
var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__(159) ? gOPD : function getOwnPropertyDescriptor(O, P) {
+ exports.f = __webpack_require__(167) ? gOPD : function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
@@ -65175,42 +62132,42 @@
/***/ }),
-/* 481 */
+/* 477 */
/***/ (function(module, exports) {
/***/ }),
-/* 482 */
+/* 478 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(475)('asyncIterator');
+ __webpack_require__(471)('asyncIterator');
/***/ }),
-/* 483 */
+/* 479 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(475)('observable');
+ __webpack_require__(471)('observable');
/***/ }),
-/* 484 */
+/* 480 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
- var _setPrototypeOf = __webpack_require__(485);
+ var _setPrototypeOf = __webpack_require__(481);
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
- var _create = __webpack_require__(489);
+ var _create = __webpack_require__(485);
var _create2 = _interopRequireDefault(_create);
- var _typeof2 = __webpack_require__(454);
+ var _typeof2 = __webpack_require__(450);
var _typeof3 = _interopRequireDefault(_typeof2);
@@ -65233,36 +62190,36 @@
};
/***/ }),
-/* 485 */
+/* 481 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(486), __esModule: true };
+ module.exports = { "default": __webpack_require__(482), __esModule: true };
/***/ }),
-/* 486 */
+/* 482 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(487);
- module.exports = __webpack_require__(151).Object.setPrototypeOf;
+ __webpack_require__(483);
+ module.exports = __webpack_require__(159).Object.setPrototypeOf;
/***/ }),
-/* 487 */
+/* 483 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.19 Object.setPrototypeOf(O, proto)
- var $export = __webpack_require__(149);
- $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(488).set });
+ var $export = __webpack_require__(157);
+ $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(484).set });
/***/ }),
-/* 488 */
+/* 484 */
/***/ (function(module, exports, __webpack_require__) {
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
- var isObject = __webpack_require__(157);
- var anObject = __webpack_require__(156);
+ var isObject = __webpack_require__(165);
+ var anObject = __webpack_require__(164);
var check = function (O, proto) {
anObject(O);
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
@@ -65271,7 +62228,7 @@
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
function (test, buggy, set) {
try {
- set = __webpack_require__(152)(Function.call, __webpack_require__(480).f(Object.prototype, '__proto__').set, 2);
+ set = __webpack_require__(160)(Function.call, __webpack_require__(476).f(Object.prototype, '__proto__').set, 2);
set(test, []);
buggy = !(test instanceof Array);
} catch (e) { buggy = true; }
@@ -65287,13 +62244,13 @@
/***/ }),
-/* 489 */
+/* 485 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(198), __esModule: true };
+ module.exports = { "default": __webpack_require__(206), __esModule: true };
/***/ }),
-/* 490 */
+/* 486 */
/***/ (function(module, exports) {
"use strict";
@@ -65316,7 +62273,7 @@
module.exports = exports['default'];
/***/ }),
-/* 491 */
+/* 487 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -65345,27 +62302,363 @@
}
module.exports = exports['default'];
+/***/ }),
+/* 488 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(448);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(489);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(449);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(480);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(1);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(2);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(6);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var ContainerRender = function (_React$Component) {
+ (0, _inherits3['default'])(ContainerRender, _React$Component);
+
+ function ContainerRender() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ (0, _classCallCheck3['default'])(this, ContainerRender);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = ContainerRender.__proto__ || Object.getPrototypeOf(ContainerRender)).call.apply(_ref, [this].concat(args))), _this), _this.removeContainer = function () {
+ if (_this.container) {
+ _reactDom2['default'].unmountComponentAtNode(_this.container);
+ _this.container.parentNode.removeChild(_this.container);
+ _this.container = null;
+ }
+ }, _this.renderComponent = function (props, ready) {
+ var _this$props = _this.props,
+ visible = _this$props.visible,
+ getComponent = _this$props.getComponent,
+ forceRender = _this$props.forceRender,
+ getContainer = _this$props.getContainer,
+ parent = _this$props.parent;
+
+ if (visible || parent._component || forceRender) {
+ if (!_this.container) {
+ _this.container = getContainer();
+ }
+ _reactDom2['default'].unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {
+ if (ready) {
+ ready.call(this);
+ }
+ });
+ }
+ }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
+ }
+
+ (0, _createClass3['default'])(ContainerRender, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ if (this.props.autoMount) {
+ this.renderComponent();
+ }
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate() {
+ if (this.props.autoMount) {
+ this.renderComponent();
+ }
+ }
+ }, {
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ if (this.props.autoDestroy) {
+ this.removeContainer();
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ return this.props.children({
+ renderComponent: this.renderComponent,
+ removeContainer: this.removeContainer
+ });
+ }
+ }]);
+ return ContainerRender;
+ }(_react2['default'].Component);
+
+ ContainerRender.propTypes = {
+ autoMount: _propTypes2['default'].bool,
+ autoDestroy: _propTypes2['default'].bool,
+ visible: _propTypes2['default'].bool,
+ forceRender: _propTypes2['default'].bool,
+ parent: _propTypes2['default'].any,
+ getComponent: _propTypes2['default'].func.isRequired,
+ getContainer: _propTypes2['default'].func.isRequired,
+ children: _propTypes2['default'].func.isRequired
+ };
+ ContainerRender.defaultProps = {
+ autoMount: true,
+ autoDestroy: true,
+ forceRender: false
+ };
+ exports['default'] = ContainerRender;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 489 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _defineProperty = __webpack_require__(490);
+
+ var _defineProperty2 = _interopRequireDefault(_defineProperty);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = 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;
+ (0, _defineProperty2.default)(target, descriptor.key, descriptor);
+ }
+ }
+
+ return function (Constructor, protoProps, staticProps) {
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
+ if (staticProps) defineProperties(Constructor, staticProps);
+ return Constructor;
+ };
+ }();
+
+/***/ }),
+/* 490 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(491), __esModule: true };
+
+/***/ }),
+/* 491 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(492);
+ var $Object = __webpack_require__(159).Object;
+ module.exports = function defineProperty(it, key, desc) {
+ return $Object.defineProperty(it, key, desc);
+ };
+
+
/***/ }),
/* 492 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var $export = __webpack_require__(157);
+ // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
+ $export($export.S + $export.F * !__webpack_require__(167), 'Object', { defineProperty: __webpack_require__(163).f });
+
+
+/***/ }),
+/* 493 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(448);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(489);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(449);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(480);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(1);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(2);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(6);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var Portal = function (_React$Component) {
+ (0, _inherits3['default'])(Portal, _React$Component);
+
+ function Portal() {
+ (0, _classCallCheck3['default'])(this, Portal);
+ return (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(Portal, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ this.createContainer();
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate(prevProps) {
+ var didUpdate = this.props.didUpdate;
+
+ if (didUpdate) {
+ didUpdate(prevProps);
+ }
+ }
+ }, {
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ this.removeContainer();
+ }
+ }, {
+ key: 'createContainer',
+ value: function createContainer() {
+ this._container = this.props.getContainer();
+ this.forceUpdate();
+ }
+ }, {
+ key: 'removeContainer',
+ value: function removeContainer() {
+ if (this._container) {
+ this._container.parentNode.removeChild(this._container);
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ if (this._container) {
+ return _reactDom2['default'].createPortal(this.props.children, this._container);
+ }
+ return null;
+ }
+ }]);
+ return Portal;
+ }(_react2['default'].Component);
+
+ Portal.propTypes = {
+ getContainer: _propTypes2['default'].func.isRequired,
+ children: _propTypes2['default'].node.isRequired,
+ didUpdate: _propTypes2['default'].func
+ };
+ exports['default'] = Portal;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 494 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _classCallCheck2 = __webpack_require__(452);
+ exports.getAlignFromPlacement = getAlignFromPlacement;
+ exports.getAlignPopupClassName = getAlignPopupClassName;
+ exports.saveRef = saveRef;
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function isPointsEq(a1, a2, isAlignPoint) {
+ if (isAlignPoint) {
+ return a1[0] === a2[0];
+ }
+ return a1[0] === a2[0] && a1[1] === a2[1];
+ }
+
+ function getAlignFromPlacement(builtinPlacements, placementStr, align) {
+ var baseAlign = builtinPlacements[placementStr] || {};
+ return (0, _extends3['default'])({}, baseAlign, align);
+ }
+
+ function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
+ var points = align.points;
+ for (var placement in builtinPlacements) {
+ if (builtinPlacements.hasOwnProperty(placement)) {
+ if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
+ return prefixCls + '-placement-' + placement;
+ }
+ }
+ }
+ return '';
+ }
+
+ function saveRef(name, component) {
+ this[name] = component;
+ }
+
+/***/ }),
+/* 495 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ exports.__esModule = true;
+
+ var _extends2 = __webpack_require__(446);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -65381,27 +62674,23 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _rcAlign = __webpack_require__(493);
+ var _rcAlign = __webpack_require__(496);
var _rcAlign2 = _interopRequireDefault(_rcAlign);
- var _rcAnimate = __webpack_require__(500);
+ var _rcAnimate = __webpack_require__(499);
var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
- var _raf = __webpack_require__(234);
-
- var _raf2 = _interopRequireDefault(_raf);
-
- var _PopupInner = __webpack_require__(520);
+ var _PopupInner = __webpack_require__(506);
var _PopupInner2 = _interopRequireDefault(_PopupInner);
- var _LazyRenderBox = __webpack_require__(521);
+ var _LazyRenderBox = __webpack_require__(507);
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
- var _utils = __webpack_require__(523);
+ var _utils = __webpack_require__(494);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -65488,7 +62777,9 @@
stretch = _props.stretch,
children = _props.children,
onMouseEnter = _props.onMouseEnter,
- onMouseLeave = _props.onMouseLeave;
+ onMouseLeave = _props.onMouseLeave,
+ onMouseDown = _props.onMouseDown,
+ onTouchStart = _props.onTouchStart;
var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));
var hiddenClassName = prefixCls + '-hidden';
@@ -65514,11 +62805,11 @@
// Delay force align to makes ui smooth
if (!stretchChecked) {
sizeStyle.visibility = 'hidden';
- (0, _raf2['default'])(function () {
+ setTimeout(function () {
if (_this2.alignInstance) {
_this2.alignInstance.forceAlign();
}
- });
+ }, 0);
}
}
@@ -65530,9 +62821,10 @@
ref: savePopupRef,
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave,
+ onMouseDown: onMouseDown,
+ onTouchStart: onTouchStart,
style: newStyle
};
-
if (destroyPopupOnHide) {
return _react2['default'].createElement(
_rcAnimate2['default'],
@@ -65540,8 +62832,7 @@
component: '',
exclusive: true,
transitionAppear: true,
- transitionName: this.getTransitionName(),
- onLeave: this.onAnimateLeaved
+ transitionName: this.getTransitionName()
},
visible ? _react2['default'].createElement(
_rcAlign2['default'],
@@ -65571,8 +62862,7 @@
exclusive: true,
transitionAppear: true,
transitionName: this.getTransitionName(),
- showProp: 'xVisible',
- onLeave: this.onAnimateLeaved
+ showProp: 'xVisible'
},
_react2['default'].createElement(
_rcAlign2['default'],
@@ -65654,12 +62944,14 @@
getClassNameFromAlign: _propTypes2['default'].func,
onAlign: _propTypes2['default'].func,
getRootDomNode: _propTypes2['default'].func,
- onMouseEnter: _propTypes2['default'].func,
align: _propTypes2['default'].any,
destroyPopupOnHide: _propTypes2['default'].bool,
className: _propTypes2['default'].string,
prefixCls: _propTypes2['default'].string,
+ onMouseEnter: _propTypes2['default'].func,
onMouseLeave: _propTypes2['default'].func,
+ onMouseDown: _propTypes2['default'].func,
+ onTouchStart: _propTypes2['default'].func,
stretch: _propTypes2['default'].string,
children: _propTypes2['default'].node,
point: _propTypes2['default'].shape({
@@ -65683,23 +62975,24 @@
props.onAlign(popupDomNode, align);
};
- this.onAnimateLeaved = function () {
- var stretch = _this3.props.stretch;
- var stretchChecked = _this3.state.stretchChecked;
-
- if (stretch && stretchChecked) {
- _this3.setState({ stretchChecked: false });
- }
- };
-
this.setStretchSize = function () {
- var getRootDomNode = _this3.props.getRootDomNode;
+ var _props2 = _this3.props,
+ stretch = _props2.stretch,
+ getRootDomNode = _props2.getRootDomNode,
+ visible = _props2.visible;
var _state2 = _this3.state,
stretchChecked = _state2.stretchChecked,
targetHeight = _state2.targetHeight,
targetWidth = _state2.targetWidth;
+ if (!stretch || !visible) {
+ if (stretchChecked) {
+ _this3.setState({ stretchChecked: false });
+ }
+ return;
+ }
+
var $ele = getRootDomNode();
if (!$ele) return;
@@ -65733,7 +63026,7 @@
module.exports = exports['default'];
/***/ }),
-/* 493 */
+/* 496 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -65742,7 +63035,7 @@
value: true
});
- var _Align = __webpack_require__(494);
+ var _Align = __webpack_require__(497);
var _Align2 = _interopRequireDefault(_Align);
@@ -65753,7 +63046,7 @@
module.exports = exports['default'];
/***/ }),
-/* 494 */
+/* 497 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -65762,19 +63055,19 @@
value: true
});
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _createClass2 = __webpack_require__(495);
+ var _createClass2 = __webpack_require__(489);
var _createClass3 = _interopRequireDefault(_createClass2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -65792,11 +63085,11 @@
var _domAlign = __webpack_require__(51);
- var _addEventListener = __webpack_require__(491);
+ var _addEventListener = __webpack_require__(487);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
- var _util = __webpack_require__(499);
+ var _util = __webpack_require__(498);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -65988,66 +63281,8 @@
exports['default'] = Align;
module.exports = exports['default'];
-/***/ }),
-/* 495 */
-/***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- exports.__esModule = true;
-
- var _defineProperty = __webpack_require__(496);
-
- var _defineProperty2 = _interopRequireDefault(_defineProperty);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = 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;
- (0, _defineProperty2.default)(target, descriptor.key, descriptor);
- }
- }
-
- return function (Constructor, protoProps, staticProps) {
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
- if (staticProps) defineProperties(Constructor, staticProps);
- return Constructor;
- };
- }();
-
-/***/ }),
-/* 496 */
-/***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(497), __esModule: true };
-
-/***/ }),
-/* 497 */
-/***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(498);
- var $Object = __webpack_require__(151).Object;
- module.exports = function defineProperty(it, key, desc) {
- return $Object.defineProperty(it, key, desc);
- };
-
-
/***/ }),
/* 498 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var $export = __webpack_require__(149);
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- $export($export.S + $export.F * !__webpack_require__(159), 'Object', { defineProperty: __webpack_require__(155).f });
-
-
-/***/ }),
-/* 499 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -66061,7 +63296,7 @@
exports.isSimilarValue = isSimilarValue;
exports.restoreFocus = restoreFocus;
- var _contains = __webpack_require__(490);
+ var _contains = __webpack_require__(486);
var _contains2 = _interopRequireDefault(_contains);
@@ -66120,36 +63355,7 @@
}
/***/ }),
-/* 500 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.CSSMotion = exports.AnimateChild = undefined;
-
- var _Animate = __webpack_require__(501);
-
- var _Animate2 = _interopRequireDefault(_Animate);
-
- var _AnimateChild = __webpack_require__(505);
-
- var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
-
- var _CSSMotion = __webpack_require__(518);
-
- var _CSSMotion2 = _interopRequireDefault(_CSSMotion);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- exports.AnimateChild = _AnimateChild2['default'];
- exports.CSSMotion = _CSSMotion2['default'];
- exports['default'] = _Animate2['default'];
-
-/***/ }),
-/* 501 */
+/* 499 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -66158,28 +63364,30 @@
value: true
});
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _defineProperty2 = __webpack_require__(500);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _createClass2 = __webpack_require__(495);
+ var _createClass2 = __webpack_require__(489);
var _createClass3 = _interopRequireDefault(_createClass2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
- exports.genAnimate = genAnimate;
-
var _react = __webpack_require__(1);
var _react2 = _interopRequireDefault(_react);
@@ -66188,1621 +63396,367 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _ChildrenUtils = __webpack_require__(501);
- var _toArray = __webpack_require__(502);
-
- var _toArray2 = _interopRequireDefault(_toArray);
-
- var _warning = __webpack_require__(503);
-
- var _warning2 = _interopRequireDefault(_warning);
-
- var _AnimateChild = __webpack_require__(505);
+ var _AnimateChild = __webpack_require__(502);
var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
- var _util = __webpack_require__(516);
+ var _animate = __webpack_require__(505);
+
+ var _animate2 = _interopRequireDefault(_animate);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var defaultKey = 'rc_animate_' + Date.now();
- var clonePropList = ['children'];
- /**
- * Default use `AnimateChild` as component.
- * Here can also pass customize `ChildComponent` for test usage.
- */
- function genAnimate(ChildComponent) {
- var Animate = function (_React$Component) {
- (0, _inherits3['default'])(Animate, _React$Component);
-
- function Animate() {
- var _ref;
-
- var _temp, _this, _ret;
-
- (0, _classCallCheck3['default'])(this, Animate);
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = Animate.__proto__ || Object.getPrototypeOf(Animate)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
- appeared: true,
- mergedChildren: []
- }, _this.onChildLeaved = function (key) {
- // Remove child which not exist anymore
- if (!_this.hasChild(key)) {
- var mergedChildren = _this.state.mergedChildren;
-
- _this.setState({
- mergedChildren: mergedChildren.filter(function (node) {
- return node.key !== key;
- })
- });
- }
- }, _this.hasChild = function (key) {
- var children = _this.props.children;
-
-
- return (0, _toArray2['default'])(children).some(function (node) {
- return node && node.key === key;
- });
- }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
+ function getChildrenFromProps(props) {
+ var children = props.children;
+ if (_react2['default'].isValidElement(children)) {
+ if (!children.key) {
+ return _react2['default'].cloneElement(children, {
+ key: defaultKey
+ });
}
- // [Legacy] Not sure usage
- // commit: https://github.com/react-component/animate/commit/0a1cbfd647407498b10a8c6602a2dea80b42e324
- // eslint-disable-line
+ }
+ return children;
+ }
- (0, _createClass3['default'])(Animate, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- // No need to re-render
- this.state.appeared = false;
- }
- }, {
- key: 'render',
- value: function render() {
- var _this2 = this;
+ function noop() {}
- var _state = this.state,
- appeared = _state.appeared,
- mergedChildren = _state.mergedChildren;
- var _props = this.props,
- Component = _props.component,
- componentProps = _props.componentProps,
- className = _props.className,
- style = _props.style,
- showProp = _props.showProp;
+ var Animate = function (_React$Component) {
+ (0, _inherits3['default'])(Animate, _React$Component);
+ // eslint-disable-line
- var $children = mergedChildren.map(function (node) {
- if (mergedChildren.length > 1 && !node.key) {
- (0, _warning2['default'])(false, 'must set key for children');
- return null;
- }
+ function Animate(props) {
+ (0, _classCallCheck3['default'])(this, Animate);
- var show = true;
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props));
- if (!_this2.hasChild(node.key)) {
- show = false;
- } else if (showProp) {
- show = node.props[showProp];
- }
+ _initialiseProps.call(_this);
- var key = node.key || defaultKey;
+ _this.currentlyAnimatingKeys = {};
+ _this.keysToEnter = [];
+ _this.keysToLeave = [];
- return _react2['default'].createElement(
- ChildComponent,
- (0, _extends3['default'])({}, _this2.props, {
- appeared: appeared,
- show: show,
- className: node.props.className,
- style: node.props.style,
- key: key,
+ _this.state = {
+ children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props))
+ };
- animateKey: node.key // Keep trans origin key
- , onChildLeaved: _this2.onChildLeaved
- }),
- node
- );
+ _this.childrenRefs = {};
+ return _this;
+ }
+
+ (0, _createClass3['default'])(Animate, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
+
+ var showProp = this.props.showProp;
+ var children = this.state.children;
+ if (showProp) {
+ children = children.filter(function (child) {
+ return !!child.props[showProp];
});
-
- // Wrap with component
- if (Component) {
- var passedProps = this.props;
- if (typeof Component === 'string') {
- passedProps = (0, _extends3['default'])({
- className: className,
- style: style
- }, componentProps);
- }
-
- return _react2['default'].createElement(
- Component,
- passedProps,
- $children
- );
- }
-
- return $children[0] || null;
}
- }], [{
- key: 'getDerivedStateFromProps',
- value: function getDerivedStateFromProps(nextProps, prevState) {
- var _prevState$prevProps = prevState.prevProps,
- prevProps = _prevState$prevProps === undefined ? {} : _prevState$prevProps;
-
- var newState = {
- prevProps: (0, _util.cloneProps)(nextProps, clonePropList)
- };
- var showProp = nextProps.showProp;
-
-
- function processState(propName, updater) {
- if (prevProps[propName] !== nextProps[propName]) {
- updater(nextProps[propName]);
- return true;
- }
- return false;
+ children.forEach(function (child) {
+ if (child) {
+ _this2.performAppear(child.key);
}
+ });
+ }
+ }, {
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(nextProps) {
+ var _this3 = this;
- processState('children', function (children) {
- var currentChildren = (0, _toArray2['default'])(children).filter(function (node) {
- return node;
- });
- var prevChildren = prevState.mergedChildren.filter(function (node) {
- // Remove prev child if not show anymore
- if (currentChildren.every(function (_ref2) {
- var key = _ref2.key;
- return key !== node.key;
- }) && showProp && !node.props[showProp]) {
- return false;
+ this.nextProps = nextProps;
+ var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps));
+ var props = this.props;
+ // exclusive needs immediate response
+ if (props.exclusive) {
+ Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {
+ _this3.stop(key);
+ });
+ }
+ var showProp = props.showProp;
+ var currentlyAnimatingKeys = this.currentlyAnimatingKeys;
+ // last props children if exclusive
+ var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children;
+ // in case destroy in showProp mode
+ var newChildren = [];
+ if (showProp) {
+ currentChildren.forEach(function (currentChild) {
+ var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key);
+ var newChild = void 0;
+ if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {
+ newChild = _react2['default'].cloneElement(nextChild || currentChild, (0, _defineProperty3['default'])({}, showProp, true));
+ } else {
+ newChild = nextChild;
+ }
+ if (newChild) {
+ newChildren.push(newChild);
+ }
+ });
+ nextChildren.forEach(function (nextChild) {
+ if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) {
+ newChildren.push(nextChild);
+ }
+ });
+ } else {
+ newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren);
+ }
+
+ // need render to avoid update
+ this.setState({
+ children: newChildren
+ });
+
+ nextChildren.forEach(function (child) {
+ var key = child && child.key;
+ if (child && currentlyAnimatingKeys[key]) {
+ return;
+ }
+ var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);
+ if (showProp) {
+ var showInNext = child.props[showProp];
+ if (hasPrev) {
+ var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);
+ if (!showInNow && showInNext) {
+ _this3.keysToEnter.push(key);
}
- return true;
- });
+ } else if (showInNext) {
+ _this3.keysToEnter.push(key);
+ }
+ } else if (!hasPrev) {
+ _this3.keysToEnter.push(key);
+ }
+ });
- // Merge prev children to keep the animation
- newState.mergedChildren = (0, _util.mergeChildren)(prevChildren, currentChildren);
- });
-
- return newState;
+ currentChildren.forEach(function (child) {
+ var key = child && child.key;
+ if (child && currentlyAnimatingKeys[key]) {
+ return;
+ }
+ var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key);
+ if (showProp) {
+ var showInNow = child.props[showProp];
+ if (hasNext) {
+ var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp);
+ if (!showInNext && showInNow) {
+ _this3.keysToLeave.push(key);
+ }
+ } else if (showInNow) {
+ _this3.keysToLeave.push(key);
+ }
+ } else if (!hasNext) {
+ _this3.keysToLeave.push(key);
+ }
+ });
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate() {
+ var keysToEnter = this.keysToEnter;
+ this.keysToEnter = [];
+ keysToEnter.forEach(this.performEnter);
+ var keysToLeave = this.keysToLeave;
+ this.keysToLeave = [];
+ keysToLeave.forEach(this.performLeave);
+ }
+ }, {
+ key: 'isValidChildByKey',
+ value: function isValidChildByKey(currentChildren, key) {
+ var showProp = this.props.showProp;
+ if (showProp) {
+ return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);
}
- }]);
- return Animate;
- }(_react2['default'].Component);
-
- Animate.isAnimate = true;
- Animate.propTypes = {
- component: _propTypes2['default'].any,
- componentProps: _propTypes2['default'].object,
- animation: _propTypes2['default'].object,
- transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
- transitionEnter: _propTypes2['default'].bool,
- transitionAppear: _propTypes2['default'].bool,
- exclusive: _propTypes2['default'].bool,
- transitionLeave: _propTypes2['default'].bool,
- onEnd: _propTypes2['default'].func,
- onEnter: _propTypes2['default'].func,
- onLeave: _propTypes2['default'].func,
- onAppear: _propTypes2['default'].func,
- showProp: _propTypes2['default'].string,
- children: _propTypes2['default'].node,
- style: _propTypes2['default'].object,
- className: _propTypes2['default'].string
- };
- Animate.defaultProps = {
- animation: {},
- component: 'span',
- componentProps: {},
- transitionEnter: true,
- transitionLeave: true,
- transitionAppear: false
- };
-
-
- (0, _reactLifecyclesCompat.polyfill)(Animate);
+ return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);
+ }
+ }, {
+ key: 'stop',
+ value: function stop(key) {
+ delete this.currentlyAnimatingKeys[key];
+ var component = this.childrenRefs[key];
+ if (component) {
+ component.stop();
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this4 = this;
+ var props = this.props;
+ this.nextProps = props;
+ var stateChildren = this.state.children;
+ var children = null;
+ if (stateChildren) {
+ children = stateChildren.map(function (child) {
+ if (child === null || child === undefined) {
+ return child;
+ }
+ if (!child.key) {
+ throw new Error('must set key for children');
+ }
+ return _react2['default'].createElement(
+ _AnimateChild2['default'],
+ {
+ key: child.key,
+ ref: function ref(node) {
+ _this4.childrenRefs[child.key] = node;
+ },
+ animation: props.animation,
+ transitionName: props.transitionName,
+ transitionEnter: props.transitionEnter,
+ transitionAppear: props.transitionAppear,
+ transitionLeave: props.transitionLeave
+ },
+ child
+ );
+ });
+ }
+ var Component = props.component;
+ if (Component) {
+ var passedProps = props;
+ if (typeof Component === 'string') {
+ passedProps = (0, _extends3['default'])({
+ className: props.className,
+ style: props.style
+ }, props.componentProps);
+ }
+ return _react2['default'].createElement(
+ Component,
+ passedProps,
+ children
+ );
+ }
+ return children[0] || null;
+ }
+ }]);
return Animate;
- }
+ }(_react2['default'].Component);
- exports['default'] = genAnimate(_AnimateChild2['default']);
-
-/***/ }),
-/* 502 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
+ Animate.isAnimate = true;
+ Animate.propTypes = {
+ component: _propTypes2['default'].any,
+ componentProps: _propTypes2['default'].object,
+ animation: _propTypes2['default'].object,
+ transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
+ transitionEnter: _propTypes2['default'].bool,
+ transitionAppear: _propTypes2['default'].bool,
+ exclusive: _propTypes2['default'].bool,
+ transitionLeave: _propTypes2['default'].bool,
+ onEnd: _propTypes2['default'].func,
+ onEnter: _propTypes2['default'].func,
+ onLeave: _propTypes2['default'].func,
+ onAppear: _propTypes2['default'].func,
+ showProp: _propTypes2['default'].string,
+ children: _propTypes2['default'].node
+ };
+ Animate.defaultProps = {
+ animation: {},
+ component: 'span',
+ componentProps: {},
+ transitionEnter: true,
+ transitionLeave: true,
+ transitionAppear: false,
+ onEnd: noop,
+ onEnter: noop,
+ onLeave: noop,
+ onAppear: noop
+ };
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports['default'] = toArray;
+ var _initialiseProps = function _initialiseProps() {
+ var _this5 = this;
- var _react = __webpack_require__(1);
+ this.performEnter = function (key) {
+ // may already remove by exclusive
+ if (_this5.childrenRefs[key]) {
+ _this5.currentlyAnimatingKeys[key] = true;
+ _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter'));
+ }
+ };
- var _react2 = _interopRequireDefault(_react);
+ this.performAppear = function (key) {
+ if (_this5.childrenRefs[key]) {
+ _this5.currentlyAnimatingKeys[key] = true;
+ _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear'));
+ }
+ };
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+ this.handleDoneAdding = function (key, type) {
+ var props = _this5.props;
+ delete _this5.currentlyAnimatingKeys[key];
+ // if update on exclusive mode, skip check
+ if (props.exclusive && props !== _this5.nextProps) {
+ return;
+ }
+ var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));
+ if (!_this5.isValidChildByKey(currentChildren, key)) {
+ // exclusive will not need this
+ _this5.performLeave(key);
+ } else if (type === 'appear') {
+ if (_animate2['default'].allowAppearCallback(props)) {
+ props.onAppear(key);
+ props.onEnd(key, true);
+ }
+ } else if (_animate2['default'].allowEnterCallback(props)) {
+ props.onEnter(key);
+ props.onEnd(key, true);
+ }
+ };
- function toArray(children) {
- var ret = [];
- _react2['default'].Children.forEach(children, function (c) {
- ret.push(c);
- });
- return ret;
- }
+ this.performLeave = function (key) {
+ // may already remove by exclusive
+ if (_this5.childrenRefs[key]) {
+ _this5.currentlyAnimatingKeys[key] = true;
+ _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key));
+ }
+ };
+
+ this.handleDoneLeaving = function (key) {
+ var props = _this5.props;
+ delete _this5.currentlyAnimatingKeys[key];
+ // if update on exclusive mode, skip check
+ if (props.exclusive && props !== _this5.nextProps) {
+ return;
+ }
+ var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));
+ // in case state change is too fast
+ if (_this5.isValidChildByKey(currentChildren, key)) {
+ _this5.performEnter(key);
+ } else {
+ var end = function end() {
+ if (_animate2['default'].allowLeaveCallback(props)) {
+ props.onLeave(key);
+ props.onEnd(key, false);
+ }
+ };
+ if (!(0, _ChildrenUtils.isSameChildren)(_this5.state.children, currentChildren, props.showProp)) {
+ _this5.setState({
+ children: currentChildren
+ }, end);
+ } else {
+ end();
+ }
+ }
+ };
+ };
+
+ exports['default'] = Animate;
module.exports = exports['default'];
/***/ }),
-/* 503 */
-/***/ (function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(process) {/**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
- 'use strict';
-
- var emptyFunction = __webpack_require__(504);
-
- /**
- * 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 warning = emptyFunction;
-
- if (process.env.NODE_ENV !== 'production') {
- var printWarning = function printWarning(format) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // 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) {}
- };
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return; // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
-
- printWarning.apply(undefined, [format].concat(args));
- }
- };
- }
-
- module.exports = warning;
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
-
-/***/ }),
-/* 504 */
-/***/ (function(module, exports) {
-
- "use strict";
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- *
- */
-
- 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;
-
-/***/ }),
-/* 505 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _toArray2 = __webpack_require__(506);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _classCallCheck2 = __webpack_require__(452);
-
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
- var _createClass2 = __webpack_require__(495);
-
- var _createClass3 = _interopRequireDefault(_createClass2);
-
- var _possibleConstructorReturn2 = __webpack_require__(453);
-
- var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
- var _inherits2 = __webpack_require__(484);
-
- var _inherits3 = _interopRequireDefault(_inherits2);
-
- exports.genAnimateChild = genAnimateChild;
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactLifecyclesCompat = __webpack_require__(81);
-
- var _classnames = __webpack_require__(5);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _componentClasses = __webpack_require__(47);
-
- var _componentClasses2 = _interopRequireDefault(_componentClasses);
-
- var _raf = __webpack_require__(234);
-
- var _raf2 = _interopRequireDefault(_raf);
-
- var _util = __webpack_require__(516);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- var clonePropList = ['appeared', 'show', 'exclusive', 'children', 'animation'];
-
- /**
- * AnimateChild only accept one child node.
- * `transitionSupport` is used for none transition test case.
- * Default we use browser transition event support check.
- */
- function genAnimateChild(transitionSupport) {
- var AnimateChild = function (_React$Component) {
- (0, _inherits3['default'])(AnimateChild, _React$Component);
-
- function AnimateChild() {
- (0, _classCallCheck3['default'])(this, AnimateChild);
-
- // [Legacy] Since old code addListener on the element.
- // To avoid break the behaviour that component not handle animation/transition
- // also can handle the animate, let keep the logic.
- var _this = (0, _possibleConstructorReturn3['default'])(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).call(this));
-
- _this.state = {
- child: null,
-
- eventQueue: [],
- eventActive: false
- };
-
- _this.onDomUpdated = function () {
- var eventActive = _this.state.eventActive;
- var _this$props = _this.props,
- transitionName = _this$props.transitionName,
- animation = _this$props.animation,
- onChildLeaved = _this$props.onChildLeaved,
- animateKey = _this$props.animateKey;
-
-
- var $ele = _this.getDomElement();
-
- // Skip if dom element not ready
- if (!$ele) return;
-
- // [Legacy] Add animation/transition event by dom level
- if (transitionSupport && _this.$prevEle !== $ele) {
- _this.cleanDomEvent();
-
- _this.$prevEle = $ele;
- _this.$prevEle.addEventListener(_util.animationEndName, _this.onMotionEnd);
- _this.$prevEle.addEventListener(_util.transitionEndName, _this.onMotionEnd);
- }
-
- var currentEvent = _this.getCurrentEvent();
- if (currentEvent.empty) {
- // Additional process the leave event
- if (currentEvent.lastEventType === 'leave') {
- onChildLeaved(animateKey);
- }
- return;
- }
-
- var eventType = currentEvent.eventType,
- restQueue = currentEvent.restQueue;
-
- var nodeClasses = (0, _componentClasses2['default'])($ele);
-
- // [Legacy] Since origin code use js to set `className`.
- // This caused that any component without support `className` can be forced set.
- // Let's keep the logic.
- function legacyAppendClass() {
- if (!transitionSupport) return;
-
- var basicClassName = (0, _util.getTransitionName)(transitionName, '' + eventType);
- if (basicClassName) nodeClasses.add(basicClassName);
-
- if (eventActive) {
- var activeClassName = (0, _util.getTransitionName)(transitionName, eventType + '-active');
- if (activeClassName) nodeClasses.add(activeClassName);
- }
- }
-
- if (_this.currentEvent && _this.currentEvent.type === eventType) {
- legacyAppendClass();
- return;
- }
-
- // Clear timeout for legacy check
- clearTimeout(_this.timeout);
-
- // Clean up last event environment
- if (_this.currentEvent && _this.currentEvent.animateObj && _this.currentEvent.animateObj.stop) {
- _this.currentEvent.animateObj.stop();
- }
-
- // Clean up last transition class
- if (_this.currentEvent) {
- var basicClassName = (0, _util.getTransitionName)(transitionName, '' + _this.currentEvent.type);
- var activeClassName = (0, _util.getTransitionName)(transitionName, _this.currentEvent.type + '-active');
- if (basicClassName) nodeClasses.remove(basicClassName);
- if (activeClassName) nodeClasses.remove(activeClassName);
- }
-
- // New event come
- _this.currentEvent = {
- type: eventType
- };
-
- var animationHandler = (animation || {})[eventType];
- // =============== Check if has customize animation ===============
- if (animationHandler) {
- _this.currentEvent.animateObj = animationHandler($ele, function () {
- _this.onMotionEnd({ target: $ele });
- });
-
- // Do next step if not animate object provided
- if (!_this.currentEvent || !_this.currentEvent.animateObj) {
- _this.nextEvent(restQueue);
- }
-
- // ==================== Use transition instead ====================
- } else if (transitionSupport) {
- legacyAppendClass();
- if (!eventActive) {
- // Trigger `eventActive` in next frame
- (0, _raf2['default'])(function () {
- if (_this.currentEvent && _this.currentEvent.type === eventType && !_this._destroy) {
- _this.setState({ eventActive: true }, function () {
- // [Legacy] Handle timeout if browser transition event not handle
- var transitionDelay = (0, _util.getStyleValue)($ele, 'transition-delay') || 0;
- var transitionDuration = (0, _util.getStyleValue)($ele, 'transition-duration') || 0;
- var animationDelay = (0, _util.getStyleValue)($ele, 'animation-delay') || 0;
- var animationDuration = (0, _util.getStyleValue)($ele, 'animation-duration') || 0;
- var totalTime = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);
-
- if (totalTime >= 0) {
- _this.timeout = setTimeout(function () {
- _this.onMotionEnd({ target: $ele });
- }, totalTime * 1000);
- }
- });
- }
- });
- }
-
- // ======================= Just next action =======================
- } else {
- _this.onMotionEnd({ target: $ele });
- }
- };
-
- _this.onMotionEnd = function (_ref) {
- var target = _ref.target;
- var _this$props2 = _this.props,
- transitionName = _this$props2.transitionName,
- onChildLeaved = _this$props2.onChildLeaved,
- animateKey = _this$props2.animateKey,
- onAppear = _this$props2.onAppear,
- onEnter = _this$props2.onEnter,
- onLeave = _this$props2.onLeave,
- onEnd = _this$props2.onEnd;
-
- var currentEvent = _this.getCurrentEvent();
- if (currentEvent.empty) return;
-
- // Clear timeout for legacy check
- clearTimeout(_this.timeout);
-
- var restQueue = currentEvent.restQueue;
-
-
- var $ele = _this.getDomElement();
- if (!_this.currentEvent || $ele !== target) return;
-
- if (_this.currentEvent.animateObj && _this.currentEvent.animateObj.stop) {
- _this.currentEvent.animateObj.stop();
- }
-
- // [Legacy] Same as above, we need call js to remove the class
- if (transitionSupport && _this.currentEvent) {
- var basicClassName = (0, _util.getTransitionName)(transitionName, _this.currentEvent.type);
- var activeClassName = (0, _util.getTransitionName)(transitionName, _this.currentEvent.type + '-active');
-
- var nodeClasses = (0, _componentClasses2['default'])($ele);
- if (basicClassName) nodeClasses.remove(basicClassName);
- if (activeClassName) nodeClasses.remove(activeClassName);
- }
-
- // Additional process the leave event
- if (_this.currentEvent && _this.currentEvent.type === 'leave') {
- onChildLeaved(animateKey);
- }
-
- // [Legacy] Trigger on event when it's last event
- if (_this.currentEvent && !restQueue.length) {
- if (_this.currentEvent.type === 'appear' && onAppear) {
- onAppear(animateKey);
- } else if (_this.currentEvent.type === 'enter' && onEnter) {
- onEnter(animateKey);
- } else if (_this.currentEvent.type === 'leave' && onLeave) {
- onLeave(animateKey);
- }
-
- if (onEnd) {
- // OnEnd(key, isShow)
- onEnd(animateKey, _this.currentEvent.type !== 'leave');
- }
- }
-
- _this.currentEvent = null;
-
- // Next queue
- _this.nextEvent(restQueue);
- };
-
- _this.getDomElement = function () {
- if (_this._destroy) return null;
- return _reactDom2['default'].findDOMNode(_this);
- };
-
- _this.getCurrentEvent = function () {
- var _this$state$eventQueu = _this.state.eventQueue,
- eventQueue = _this$state$eventQueu === undefined ? [] : _this$state$eventQueu;
- var _this$props3 = _this.props,
- animation = _this$props3.animation,
- exclusive = _this$props3.exclusive,
- transitionAppear = _this$props3.transitionAppear,
- transitionEnter = _this$props3.transitionEnter,
- transitionLeave = _this$props3.transitionLeave;
-
-
- function hasEventHandler(eventType) {
- return eventType === 'appear' && (transitionAppear || animation.appear) || eventType === 'enter' && (transitionEnter || animation.enter) || eventType === 'leave' && (transitionLeave || animation.leave);
- }
-
- var event = null;
- // If is exclusive, only check the last event
- if (exclusive) {
- var eventType = eventQueue[eventQueue.length - 1];
- if (hasEventHandler(eventType)) {
- event = {
- eventType: eventType,
- restQueue: []
- };
- }
- } else {
- // Loop check the queue until find match
- var cloneQueue = eventQueue.slice();
- while (cloneQueue.length) {
- var _cloneQueue = cloneQueue,
- _cloneQueue2 = (0, _toArray3['default'])(_cloneQueue),
- _eventType = _cloneQueue2[0],
- restQueue = _cloneQueue2.slice(1);
-
- if (hasEventHandler(_eventType)) {
- event = {
- eventType: _eventType,
- restQueue: restQueue
- };
- break;
- }
- cloneQueue = restQueue;
- }
- }
-
- if (!event) {
- event = {
- empty: true,
- lastEventType: eventQueue[eventQueue.length - 1]
- };
- }
-
- return event;
- };
-
- _this.nextEvent = function (restQueue) {
- // Next queue
- if (!_this._destroy) {
- _this.setState({
- eventQueue: restQueue,
- eventActive: false
- });
- }
- };
-
- _this.cleanDomEvent = function () {
- if (_this.$prevEle && transitionSupport) {
- _this.$prevEle.removeEventListener(_util.animationEndName, _this.onMotionEnd);
- _this.$prevEle.removeEventListener(_util.transitionEndName, _this.onMotionEnd);
- }
- };
-
- _this.$prevEle = null;
-
- _this.currentEvent = null;
- _this.timeout = null;
- return _this;
- }
-
- (0, _createClass3['default'])(AnimateChild, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- this.onDomUpdated();
- }
- }, {
- key: 'componentDidUpdate',
- value: function componentDidUpdate() {
- this.onDomUpdated();
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- clearTimeout(this.timeout);
- this._destroy = true;
- this.cleanDomEvent();
- }
- }, {
- key: 'render',
- value: function render() {
- var _state = this.state,
- child = _state.child,
- eventActive = _state.eventActive;
- var _props = this.props,
- showProp = _props.showProp,
- transitionName = _props.transitionName;
-
- var _ref2 = child.props || {},
- className = _ref2.className;
-
- var currentEvent = this.getCurrentEvent();
-
- // Class name
- var connectClassName = transitionSupport && this.currentEvent ? (0, _classnames2['default'])(className, (0, _util.getTransitionName)(transitionName, this.currentEvent.type), eventActive && (0, _util.getTransitionName)(transitionName, this.currentEvent.type + '-active')) : className;
-
- var show = true;
-
- // Keep show when is in transition or has customize animate
- if (transitionSupport && (!currentEvent.empty || this.currentEvent && this.currentEvent.animateObj)) {
- show = true;
- } else {
- show = child.props[showProp];
- }
-
- // Clone child
- var newChildProps = {
- className: connectClassName
- };
-
- if (showProp) {
- newChildProps[showProp] = show;
- }
-
- return _react2['default'].cloneElement(child, newChildProps);
- }
- }], [{
- key: 'getDerivedStateFromProps',
- value: function getDerivedStateFromProps(nextProps, prevState) {
- var _prevState$prevProps = prevState.prevProps,
- prevProps = _prevState$prevProps === undefined ? {} : _prevState$prevProps;
- var appeared = nextProps.appeared;
-
-
- var newState = {
- prevProps: (0, _util.cloneProps)(nextProps, clonePropList)
- };
-
- function processState(propName, updater) {
- if (prevProps[propName] !== nextProps[propName]) {
- if (updater) {
- updater(nextProps[propName]);
- }
- return true;
- }
- return false;
- }
-
- function pushEvent(eventType) {
- var eventQueue = newState.eventQueue || prevState.eventQueue.slice();
- var matchIndex = eventQueue.indexOf(eventType);
-
- // Clean the rest event if eventType match
- if (matchIndex !== -1) {
- eventQueue = eventQueue.slice(0, matchIndex);
- }
-
- eventQueue.push(eventType);
- newState.eventQueue = eventQueue;
- }
-
- // Child update. Only set child.
- processState('children', function (child) {
- newState.child = child;
- });
-
- processState('appeared', function (isAppeared) {
- if (isAppeared) {
- pushEvent('appear');
- }
- });
-
- // Show update
- processState('show', function (show) {
- if (!appeared) {
- if (show) {
- pushEvent('enter');
- } else {
- pushEvent('leave');
- }
- }
- });
-
- return newState;
- }
- }]);
- return AnimateChild;
- }(_react2['default'].Component);
-
- AnimateChild.propTypes = {
- transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
- transitionAppear: _propTypes2['default'].bool,
- transitionEnter: _propTypes2['default'].bool,
- transitionLeave: _propTypes2['default'].bool,
- exclusive: _propTypes2['default'].bool,
- appeared: _propTypes2['default'].bool,
- showProp: _propTypes2['default'].string,
-
- animateKey: _propTypes2['default'].any,
- animation: _propTypes2['default'].object,
- onChildLeaved: _propTypes2['default'].func,
-
- onEnd: _propTypes2['default'].func,
- onAppear: _propTypes2['default'].func,
- onEnter: _propTypes2['default'].func,
- onLeave: _propTypes2['default'].func
- };
-
-
- (0, _reactLifecyclesCompat.polyfill)(AnimateChild);
-
- return AnimateChild;
- }
-
- exports['default'] = genAnimateChild(_util.supportTransition);
-
-/***/ }),
-/* 506 */
+/* 500 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
- var _from = __webpack_require__(507);
-
- var _from2 = _interopRequireDefault(_from);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = function (arr) {
- return Array.isArray(arr) ? arr : (0, _from2.default)(arr);
- };
-
-/***/ }),
-/* 507 */
-/***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(508), __esModule: true };
-
-/***/ }),
-/* 508 */
-/***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(457);
- __webpack_require__(509);
- module.exports = __webpack_require__(151).Array.from;
-
-
-/***/ }),
-/* 509 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
- var ctx = __webpack_require__(152);
- var $export = __webpack_require__(149);
- var toObject = __webpack_require__(183);
- var call = __webpack_require__(510);
- var isArrayIter = __webpack_require__(511);
- var toLength = __webpack_require__(173);
- var createProperty = __webpack_require__(512);
- var getIterFn = __webpack_require__(513);
-
- $export($export.S + $export.F * !__webpack_require__(515)(function (iter) { Array.from(iter); }), 'Array', {
- // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
- from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
- var O = toObject(arrayLike);
- var C = typeof this == 'function' ? this : Array;
- var aLen = arguments.length;
- var mapfn = aLen > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var index = 0;
- var iterFn = getIterFn(O);
- var length, result, step, iterator;
- if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
- // if object isn't iterable or it's array with default iterator - use simple case
- if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
- for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
- createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
- }
- } else {
- length = toLength(O.length);
- for (result = new C(length); length > index; index++) {
- createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
- }
- }
- result.length = index;
- return result;
- }
- });
-
-
-/***/ }),
-/* 510 */
-/***/ (function(module, exports, __webpack_require__) {
-
- // call something on iterator step with safe closing on error
- var anObject = __webpack_require__(156);
- module.exports = function (iterator, fn, value, entries) {
- try {
- return entries ? fn(anObject(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (e) {
- var ret = iterator['return'];
- if (ret !== undefined) anObject(ret.call(iterator));
- throw e;
- }
- };
-
-
-/***/ }),
-/* 511 */
-/***/ (function(module, exports, __webpack_require__) {
-
- // check on default Array iterator
- var Iterators = __webpack_require__(461);
- var ITERATOR = __webpack_require__(464)('iterator');
- var ArrayProto = Array.prototype;
-
- module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
- };
-
-
-/***/ }),
-/* 512 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
- var $defineProperty = __webpack_require__(155);
- var createDesc = __webpack_require__(163);
-
- module.exports = function (object, index, value) {
- if (index in object) $defineProperty.f(object, index, createDesc(0, value));
- else object[index] = value;
- };
-
-
-/***/ }),
-/* 513 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var classof = __webpack_require__(514);
- var ITERATOR = __webpack_require__(464)('iterator');
- var Iterators = __webpack_require__(461);
- module.exports = __webpack_require__(151).getIteratorMethod = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
- };
-
-
-/***/ }),
-/* 514 */
-/***/ (function(module, exports, __webpack_require__) {
-
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__(170);
- var TAG = __webpack_require__(464)('toStringTag');
- // ES3 wrong here
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
-
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
- };
-
- module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
- };
-
-
-/***/ }),
-/* 515 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var ITERATOR = __webpack_require__(464)('iterator');
- var SAFE_CLOSING = false;
-
- try {
- var riter = [7][ITERATOR]();
- riter['return'] = function () { SAFE_CLOSING = true; };
- // eslint-disable-next-line no-throw-literal
- Array.from(riter, function () { throw 2; });
- } catch (e) { /* empty */ }
-
- module.exports = function (exec, skipClosing) {
- if (!skipClosing && !SAFE_CLOSING) return false;
- var safe = false;
- try {
- var arr = [7];
- var iter = arr[ITERATOR]();
- iter.next = function () { return { done: safe = true }; };
- arr[ITERATOR] = function () { return iter; };
- exec(arr);
- } catch (e) { /* empty */ }
- return safe;
- };
-
-
-/***/ }),
-/* 516 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.supportTransition = exports.transitionEndName = exports.animationEndName = undefined;
- exports.getStyleProperty = getStyleProperty;
- exports.getStyleValue = getStyleValue;
- exports.getVendorPrefixes = getVendorPrefixes;
- exports.getVendorPrefixedEventName = getVendorPrefixedEventName;
- exports.mergeChildren = mergeChildren;
- exports.cloneProps = cloneProps;
- exports.getTransitionName = getTransitionName;
-
- var _toArray = __webpack_require__(502);
-
- var _toArray2 = _interopRequireDefault(_toArray);
-
- var _ExecutionEnvironment = __webpack_require__(517);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- // =================== Style ====================
- var stylePrefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
-
- function getStyleProperty(node, name) {
- // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
- var style = window.getComputedStyle(node, null);
- var ret = '';
- for (var i = 0; i < stylePrefixes.length; i++) {
- ret = style.getPropertyValue(stylePrefixes[i] + name);
- if (ret) {
- break;
- }
- }
- return ret;
- }
-
- function getStyleValue(node, name) {
- return parseFloat(getStyleProperty(node, name));
- }
-
- // ================= Transition =================
- // Event wrapper. Copy from react source code
- function makePrefixMap(styleProp, eventName) {
- var prefixes = {};
-
- prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
- prefixes['Webkit' + styleProp] = 'webkit' + eventName;
- prefixes['Moz' + styleProp] = 'moz' + eventName;
- prefixes['ms' + styleProp] = 'MS' + eventName;
- prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();
-
- return prefixes;
- }
-
- function getVendorPrefixes(domSupport, win) {
- var prefixes = {
- animationend: makePrefixMap('Animation', 'AnimationEnd'),
- transitionend: makePrefixMap('Transition', 'TransitionEnd')
- };
-
- if (domSupport) {
- if (!('AnimationEvent' in win)) {
- delete prefixes.animationend.animation;
- }
-
- if (!('TransitionEvent' in win)) {
- delete prefixes.transitionend.transition;
- }
- }
-
- return prefixes;
- }
-
- var vendorPrefixes = getVendorPrefixes(_ExecutionEnvironment.canUseDOM, typeof window !== 'undefined' ? window : {});
-
- var style = {};
-
- if (_ExecutionEnvironment.canUseDOM) {
- style = document.createElement('div').style;
- }
-
- var prefixedEventNames = {};
-
- function getVendorPrefixedEventName(eventName) {
- if (prefixedEventNames[eventName]) {
- return prefixedEventNames[eventName];
- }
-
- var prefixMap = vendorPrefixes[eventName];
-
- if (prefixMap) {
- var stylePropList = Object.keys(prefixMap);
- var len = stylePropList.length;
- for (var i = 0; i < len; i += 1) {
- var styleProp = stylePropList[i];
- if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) {
- prefixedEventNames[eventName] = prefixMap[styleProp];
- return prefixedEventNames[eventName];
- }
- }
- }
-
- return '';
- }
-
- var animationEndName = exports.animationEndName = getVendorPrefixedEventName('animationend');
- var transitionEndName = exports.transitionEndName = getVendorPrefixedEventName('transitionend');
- var supportTransition = exports.supportTransition = !!(animationEndName && transitionEndName);
-
- // ==================== Node ====================
- /**
- * [Legacy] Find the same children in both prev & next list.
- * Insert not find one before the find one, otherwise in the end. For example:
- * - prev: [1,2,3]
- * - next: [2,4]
- * -> [1,2,4,3]
- */
- function mergeChildren(prev, next) {
- var prevList = (0, _toArray2['default'])(prev);
- var nextList = (0, _toArray2['default'])(next);
-
- // Skip if is single children
- if (prevList.length === 1 && nextList.length === 1 && prevList[0].key === nextList[0].key) {
- return nextList;
- }
-
- var mergeList = [];
- var nextChildrenMap = {};
- var missMatchChildrenList = [];
-
- // Fill matched prev node into next node map
- prevList.forEach(function (prevNode) {
- if (prevNode && nextList.some(function (_ref) {
- var key = _ref.key;
- return key === prevNode.key;
- })) {
- if (missMatchChildrenList.length) {
- nextChildrenMap[prevNode.key] = missMatchChildrenList;
- missMatchChildrenList = [];
- }
- } else {
- missMatchChildrenList.push(prevNode);
- }
- });
-
- // Insert prev node before the matched next node
- nextList.forEach(function (nextNode) {
- if (nextNode && nextChildrenMap[nextNode.key]) {
- mergeList = mergeList.concat(nextChildrenMap[nextNode.key]);
- }
- mergeList.push(nextNode);
- });
-
- mergeList = mergeList.concat(missMatchChildrenList);
-
- return mergeList;
- }
-
- function cloneProps(props, propList) {
- var newProps = {};
- propList.forEach(function (prop) {
- if (prop in props) {
- newProps[prop] = props[prop];
- }
- });
-
- return newProps;
- }
-
- function getTransitionName(transitionName, transitionType) {
- if (!transitionName) return null;
-
- if (typeof transitionName === 'object') {
- var type = transitionType.replace(/-\w/g, function (match) {
- return match[1].toUpperCase();
- });
- return transitionName[type];
- }
-
- return transitionName + '-' + transitionType;
- }
-
-/***/ }),
-/* 517 */
-/***/ (function(module, exports) {
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
- 'use strict';
-
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
-
- /**
- * Simple, lightweight module assisting with the detection and context of
- * Worker. Helps avoid circular dependencies and allows code to reason about
- * whether or not they are in a Worker, even if they never include the main
- * `ReactWorker` dependency.
- */
- var ExecutionEnvironment = {
-
- canUseDOM: canUseDOM,
-
- canUseWorkers: typeof Worker !== 'undefined',
-
- canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
-
- canUseViewport: canUseDOM && !!window.screen,
-
- isInWorker: !canUseDOM // For now, this is true - might change in the future.
-
- };
-
- module.exports = ExecutionEnvironment;
-
-/***/ }),
-/* 518 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _defineProperty2 = __webpack_require__(519);
-
- var _defineProperty3 = _interopRequireDefault(_defineProperty2);
-
- var _extends2 = __webpack_require__(450);
-
- var _extends3 = _interopRequireDefault(_extends2);
-
- var _classCallCheck2 = __webpack_require__(452);
-
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
- var _createClass2 = __webpack_require__(495);
-
- var _createClass3 = _interopRequireDefault(_createClass2);
-
- var _possibleConstructorReturn2 = __webpack_require__(453);
-
- var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
- var _inherits2 = __webpack_require__(484);
-
- var _inherits3 = _interopRequireDefault(_inherits2);
-
- exports.genCSSMotion = genCSSMotion;
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactLifecyclesCompat = __webpack_require__(81);
-
- var _classnames = __webpack_require__(5);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _raf = __webpack_require__(234);
-
- var _raf2 = _interopRequireDefault(_raf);
-
- var _util = __webpack_require__(516);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- var STATUS_NONE = 'none';
- var STATUS_APPEAR = 'appear';
- var STATUS_ENTER = 'enter';
- var STATUS_LEAVE = 'leave';
-
- /**
- * `transitionSupport` is used for none transition test case.
- * Default we use browser transition event support check.
- */
- function genCSSMotion(transitionSupport) {
- var CSSMotion = function (_React$Component) {
- (0, _inherits3['default'])(CSSMotion, _React$Component);
-
- function CSSMotion() {
- (0, _classCallCheck3['default'])(this, CSSMotion);
-
- var _this = (0, _possibleConstructorReturn3['default'])(this, (CSSMotion.__proto__ || Object.getPrototypeOf(CSSMotion)).call(this));
-
- _this.onDomUpdate = function () {
- var _this$state = _this.state,
- status = _this$state.status,
- newStatus = _this$state.newStatus;
- var _this$props = _this.props,
- onAppearStart = _this$props.onAppearStart,
- onEnterStart = _this$props.onEnterStart,
- onLeaveStart = _this$props.onLeaveStart,
- onAppearActive = _this$props.onAppearActive,
- onEnterActive = _this$props.onEnterActive,
- onLeaveActive = _this$props.onLeaveActive,
- motionAppear = _this$props.motionAppear,
- motionEnter = _this$props.motionEnter,
- motionLeave = _this$props.motionLeave;
-
-
- if (!transitionSupport) {
- return;
- }
-
- // Event injection
- var $ele = _reactDom2['default'].findDOMNode(_this);
- if (_this.$ele !== $ele) {
- _this.removeEventListener(_this.$ele);
- _this.addEventListener($ele);
- _this.$ele = $ele;
- }
-
- // Init status
- if (newStatus && status === STATUS_APPEAR && motionAppear) {
- _this.updateStatus(onAppearStart, null, null, function () {
- _this.updateActiveStatus(onAppearActive, STATUS_APPEAR);
- });
- } else if (newStatus && status === STATUS_ENTER && motionEnter) {
- _this.updateStatus(onEnterStart, null, null, function () {
- _this.updateActiveStatus(onEnterActive, STATUS_ENTER);
- });
- } else if (newStatus && status === STATUS_LEAVE && motionLeave) {
- _this.updateStatus(onLeaveStart, null, null, function () {
- _this.updateActiveStatus(onLeaveActive, STATUS_LEAVE);
- });
- }
- };
-
- _this.onMotionEnd = function (event) {
- var _this$state2 = _this.state,
- status = _this$state2.status,
- statusActive = _this$state2.statusActive;
- var _this$props2 = _this.props,
- onAppearEnd = _this$props2.onAppearEnd,
- onEnterEnd = _this$props2.onEnterEnd,
- onLeaveEnd = _this$props2.onLeaveEnd;
-
- if (status === STATUS_APPEAR && statusActive) {
- _this.updateStatus(onAppearEnd, { status: STATUS_NONE }, event);
- } else if (status === STATUS_ENTER && statusActive) {
- _this.updateStatus(onEnterEnd, { status: STATUS_NONE }, event);
- } else if (status === STATUS_LEAVE && statusActive) {
- _this.updateStatus(onLeaveEnd, { status: STATUS_NONE }, event);
- }
- };
-
- _this.addEventListener = function ($ele) {
- if (!$ele) return;
-
- $ele.addEventListener(_util.transitionEndName, _this.onMotionEnd);
- $ele.addEventListener(_util.animationEndName, _this.onMotionEnd);
- };
-
- _this.removeEventListener = function ($ele) {
- if (!$ele) return;
-
- $ele.removeEventListener(_util.transitionEndName, _this.onMotionEnd);
- $ele.removeEventListener(_util.animationEndName, _this.onMotionEnd);
- };
-
- _this.updateStatus = function (styleFunc, additionalState, event, callback) {
- var statusStyle = styleFunc ? styleFunc(_reactDom2['default'].findDOMNode(_this), event) : null;
-
- if (statusStyle === false || _this._destroyed) return;
-
- var nextStep = void 0;
- if (callback) {
- nextStep = function nextStep() {
- _this.nextFrame(callback);
- };
- }
-
- _this.setState((0, _extends3['default'])({
- statusStyle: typeof statusStyle === 'object' ? statusStyle : null,
- newStatus: false
- }, additionalState), nextStep); // Trigger before next frame & after `componentDidMount`
- };
-
- _this.updateActiveStatus = function (styleFunc, currentStatus) {
- // `setState` use `postMessage` to trigger at the end of frame.
- // Let's use requestAnimationFrame to update new state in next frame.
- _this.nextFrame(function () {
- var status = _this.state.status;
-
- if (status !== currentStatus) return;
-
- _this.updateStatus(styleFunc, { statusActive: true });
- });
- };
-
- _this.nextFrame = function (func) {
- _this.cancelNextFrame();
- _this.raf = (0, _raf2['default'])(func);
- };
-
- _this.cancelNextFrame = function () {
- if (_this.raf) {
- _raf2['default'].cancel(_this.raf);
- _this.raf = null;
- }
- };
-
- _this.state = {
- status: STATUS_NONE,
- statusActive: false,
- newStatus: false,
- statusStyle: null
- };
- _this.$ele = null;
- _this.raf = null;
- return _this;
- }
-
- (0, _createClass3['default'])(CSSMotion, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- this.onDomUpdate();
- }
- }, {
- key: 'componentDidUpdate',
- value: function componentDidUpdate() {
- this.onDomUpdate();
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- this._destroyed = true;
- this.removeEventListener(this.$ele);
- this.cancelNextFrame();
- }
- }, {
- key: 'render',
- value: function render() {
- var _classNames;
-
- var _state = this.state,
- status = _state.status,
- statusActive = _state.statusActive,
- statusStyle = _state.statusStyle;
- var _props = this.props,
- children = _props.children,
- motionName = _props.motionName,
- visible = _props.visible;
-
-
- if (!children) return null;
-
- if (status === STATUS_NONE || !transitionSupport) {
- return visible ? children({}) : null;
- }
-
- return children({
- className: (0, _classnames2['default'])((_classNames = {}, (0, _defineProperty3['default'])(_classNames, (0, _util.getTransitionName)(motionName, status), status !== STATUS_NONE), (0, _defineProperty3['default'])(_classNames, (0, _util.getTransitionName)(motionName, status + '-active'), status !== STATUS_NONE && statusActive), (0, _defineProperty3['default'])(_classNames, motionName, typeof motionName === 'string'), _classNames)),
- style: statusStyle
- });
- }
- }], [{
- key: 'getDerivedStateFromProps',
- value: function getDerivedStateFromProps(props, _ref) {
- var prevProps = _ref.prevProps;
-
- if (!transitionSupport) return {};
-
- var visible = props.visible,
- motionAppear = props.motionAppear,
- motionEnter = props.motionEnter,
- motionLeave = props.motionLeave,
- motionLeaveImmediately = props.motionLeaveImmediately;
-
- var newState = {
- prevProps: props
- };
-
- // Appear
- if (!prevProps && visible && motionAppear) {
- newState.status = STATUS_APPEAR;
- newState.statusActive = false;
- newState.newStatus = true;
- }
-
- // Enter
- if (prevProps && !prevProps.visible && visible && motionEnter) {
- newState.status = STATUS_ENTER;
- newState.statusActive = false;
- newState.newStatus = true;
- }
-
- // Leave
- if (prevProps && prevProps.visible && !visible && motionLeave || !prevProps && motionLeaveImmediately && !visible && motionLeave) {
- newState.status = STATUS_LEAVE;
- newState.statusActive = false;
- newState.newStatus = true;
- }
-
- return newState;
- }
- }]);
- return CSSMotion;
- }(_react2['default'].Component);
-
- CSSMotion.propTypes = {
- visible: _propTypes2['default'].bool,
- children: _propTypes2['default'].func,
- motionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
- motionAppear: _propTypes2['default'].bool,
- motionEnter: _propTypes2['default'].bool,
- motionLeave: _propTypes2['default'].bool,
- motionLeaveImmediately: _propTypes2['default'].bool, // Trigger leave motion immediately
- onAppearStart: _propTypes2['default'].func,
- onAppearActive: _propTypes2['default'].func,
- onAppearEnd: _propTypes2['default'].func,
- onEnterStart: _propTypes2['default'].func,
- onEnterActive: _propTypes2['default'].func,
- onEnterEnd: _propTypes2['default'].func,
- onLeaveStart: _propTypes2['default'].func,
- onLeaveActive: _propTypes2['default'].func,
- onLeaveEnd: _propTypes2['default'].func
- };
- CSSMotion.defaultProps = {
- visible: true,
- motionEnter: true,
- motionAppear: true,
- motionLeave: true
- };
-
-
- (0, _reactLifecyclesCompat.polyfill)(CSSMotion);
-
- return CSSMotion;
- }
-
- exports['default'] = genCSSMotion(_util.supportTransition);
-
-/***/ }),
-/* 519 */
-/***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- exports.__esModule = true;
-
- var _defineProperty = __webpack_require__(496);
+ var _defineProperty = __webpack_require__(490);
var _defineProperty2 = _interopRequireDefault(_defineProperty);
@@ -67824,22 +63778,661 @@
};
/***/ }),
-/* 520 */
+/* 501 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.toArrayChildren = toArrayChildren;
+ exports.findChildInChildrenByKey = findChildInChildrenByKey;
+ exports.findShownChildInChildrenByKey = findShownChildInChildrenByKey;
+ exports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey;
+ exports.isSameChildren = isSameChildren;
+ exports.mergeChildren = mergeChildren;
+
+ var _react = __webpack_require__(1);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function toArrayChildren(children) {
+ var ret = [];
+ _react2['default'].Children.forEach(children, function (child) {
+ ret.push(child);
+ });
+ return ret;
+ }
+
+ function findChildInChildrenByKey(children, key) {
+ var ret = null;
+ if (children) {
+ children.forEach(function (child) {
+ if (ret) {
+ return;
+ }
+ if (child && child.key === key) {
+ ret = child;
+ }
+ });
+ }
+ return ret;
+ }
+
+ function findShownChildInChildrenByKey(children, key, showProp) {
+ var ret = null;
+ if (children) {
+ children.forEach(function (child) {
+ if (child && child.key === key && child.props[showProp]) {
+ if (ret) {
+ throw new Error('two child with same key for children');
+ }
+ ret = child;
+ }
+ });
+ }
+ return ret;
+ }
+
+ function findHiddenChildInChildrenByKey(children, key, showProp) {
+ var found = 0;
+ if (children) {
+ children.forEach(function (child) {
+ if (found) {
+ return;
+ }
+ found = child && child.key === key && !child.props[showProp];
+ });
+ }
+ return found;
+ }
+
+ function isSameChildren(c1, c2, showProp) {
+ var same = c1.length === c2.length;
+ if (same) {
+ c1.forEach(function (child, index) {
+ var child2 = c2[index];
+ if (child && child2) {
+ if (child && !child2 || !child && child2) {
+ same = false;
+ } else if (child.key !== child2.key) {
+ same = false;
+ } else if (showProp && child.props[showProp] !== child2.props[showProp]) {
+ same = false;
+ }
+ }
+ });
+ }
+ return same;
+ }
+
+ function mergeChildren(prev, next) {
+ var ret = [];
+
+ // For each key of `next`, the list of keys to insert before that key in
+ // the combined list
+ var nextChildrenPending = {};
+ var pendingChildren = [];
+ prev.forEach(function (child) {
+ if (child && findChildInChildrenByKey(next, child.key)) {
+ if (pendingChildren.length) {
+ nextChildrenPending[child.key] = pendingChildren;
+ pendingChildren = [];
+ }
+ } else {
+ pendingChildren.push(child);
+ }
+ });
+
+ next.forEach(function (child) {
+ if (child && Object.prototype.hasOwnProperty.call(nextChildrenPending, child.key)) {
+ ret = ret.concat(nextChildrenPending[child.key]);
+ }
+ ret.push(child);
+ });
+
+ ret = ret.concat(pendingChildren);
+
+ return ret;
+ }
+
+/***/ }),
+/* 502 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(448);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(489);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(449);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(480);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(1);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(2);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(6);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _cssAnimation = __webpack_require__(503);
+
+ var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
+
+ var _animate = __webpack_require__(505);
+
+ var _animate2 = _interopRequireDefault(_animate);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var transitionMap = {
+ enter: 'transitionEnter',
+ appear: 'transitionAppear',
+ leave: 'transitionLeave'
+ };
+
+ var AnimateChild = function (_React$Component) {
+ (0, _inherits3['default'])(AnimateChild, _React$Component);
+
+ function AnimateChild() {
+ (0, _classCallCheck3['default'])(this, AnimateChild);
+ return (0, _possibleConstructorReturn3['default'])(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(AnimateChild, [{
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ this.stop();
+ }
+ }, {
+ key: 'componentWillEnter',
+ value: function componentWillEnter(done) {
+ if (_animate2['default'].isEnterSupported(this.props)) {
+ this.transition('enter', done);
+ } else {
+ done();
+ }
+ }
+ }, {
+ key: 'componentWillAppear',
+ value: function componentWillAppear(done) {
+ if (_animate2['default'].isAppearSupported(this.props)) {
+ this.transition('appear', done);
+ } else {
+ done();
+ }
+ }
+ }, {
+ key: 'componentWillLeave',
+ value: function componentWillLeave(done) {
+ if (_animate2['default'].isLeaveSupported(this.props)) {
+ this.transition('leave', done);
+ } else {
+ // always sync, do not interupt with react component life cycle
+ // update hidden -> animate hidden ->
+ // didUpdate -> animate leave -> unmount (if animate is none)
+ done();
+ }
+ }
+ }, {
+ key: 'transition',
+ value: function transition(animationType, finishCallback) {
+ var _this2 = this;
+
+ var node = _reactDom2['default'].findDOMNode(this);
+ var props = this.props;
+ var transitionName = props.transitionName;
+ var nameIsObj = typeof transitionName === 'object';
+ this.stop();
+ var end = function end() {
+ _this2.stopper = null;
+ finishCallback();
+ };
+ if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) {
+ var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType;
+ var activeName = name + '-active';
+ if (nameIsObj && transitionName[animationType + 'Active']) {
+ activeName = transitionName[animationType + 'Active'];
+ }
+ this.stopper = (0, _cssAnimation2['default'])(node, {
+ name: name,
+ active: activeName
+ }, end);
+ } else {
+ this.stopper = props.animation[animationType](node, end);
+ }
+ }
+ }, {
+ key: 'stop',
+ value: function stop() {
+ var stopper = this.stopper;
+ if (stopper) {
+ this.stopper = null;
+ stopper.stop();
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ return this.props.children;
+ }
+ }]);
+ return AnimateChild;
+ }(_react2['default'].Component);
+
+ AnimateChild.propTypes = {
+ children: _propTypes2['default'].any
+ };
+ exports['default'] = AnimateChild;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 503 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.isCssAnimationSupported = undefined;
+
+ var _typeof2 = __webpack_require__(450);
+
+ var _typeof3 = _interopRequireDefault(_typeof2);
+
+ var _Event = __webpack_require__(504);
+
+ var _Event2 = _interopRequireDefault(_Event);
+
+ var _componentClasses = __webpack_require__(47);
+
+ var _componentClasses2 = _interopRequireDefault(_componentClasses);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var isCssAnimationSupported = _Event2['default'].endEvents.length !== 0;
+ var capitalPrefixes = ['Webkit', 'Moz', 'O',
+ // ms is special .... !
+ 'ms'];
+ var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
+
+ function getStyleProperty(node, name) {
+ // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
+ var style = window.getComputedStyle(node, null);
+ var ret = '';
+ for (var i = 0; i < prefixes.length; i++) {
+ ret = style.getPropertyValue(prefixes[i] + name);
+ if (ret) {
+ break;
+ }
+ }
+ return ret;
+ }
+
+ function fixBrowserByTimeout(node) {
+ if (isCssAnimationSupported) {
+ var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;
+ var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;
+ var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;
+ var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;
+ var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);
+ // sometimes, browser bug
+ node.rcEndAnimTimeout = setTimeout(function () {
+ node.rcEndAnimTimeout = null;
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+ }, time * 1000 + 200);
+ }
+ }
+
+ function clearBrowserBugTimeout(node) {
+ if (node.rcEndAnimTimeout) {
+ clearTimeout(node.rcEndAnimTimeout);
+ node.rcEndAnimTimeout = null;
+ }
+ }
+
+ var cssAnimation = function cssAnimation(node, transitionName, endCallback) {
+ var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : (0, _typeof3['default'])(transitionName)) === 'object';
+ var className = nameIsObj ? transitionName.name : transitionName;
+ var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';
+ var end = endCallback;
+ var start = void 0;
+ var active = void 0;
+ var nodeClasses = (0, _componentClasses2['default'])(node);
+
+ if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {
+ end = endCallback.end;
+ start = endCallback.start;
+ active = endCallback.active;
+ }
+
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+
+ node.rcEndListener = function (e) {
+ if (e && e.target !== node) {
+ return;
+ }
+
+ if (node.rcAnimTimeout) {
+ clearTimeout(node.rcAnimTimeout);
+ node.rcAnimTimeout = null;
+ }
+
+ clearBrowserBugTimeout(node);
+
+ nodeClasses.remove(className);
+ nodeClasses.remove(activeClassName);
+
+ _Event2['default'].removeEndEventListener(node, node.rcEndListener);
+ node.rcEndListener = null;
+
+ // Usually this optional end is used for informing an owner of
+ // a leave animation and telling it to remove the child.
+ if (end) {
+ end();
+ }
+ };
+
+ _Event2['default'].addEndEventListener(node, node.rcEndListener);
+
+ if (start) {
+ start();
+ }
+ nodeClasses.add(className);
+
+ node.rcAnimTimeout = setTimeout(function () {
+ node.rcAnimTimeout = null;
+ nodeClasses.add(activeClassName);
+ if (active) {
+ setTimeout(active, 0);
+ }
+ fixBrowserByTimeout(node);
+ // 30ms for firefox
+ }, 30);
+
+ return {
+ stop: function stop() {
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+ }
+ };
+ };
+
+ cssAnimation.style = function (node, style, callback) {
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+
+ node.rcEndListener = function (e) {
+ if (e && e.target !== node) {
+ return;
+ }
+
+ if (node.rcAnimTimeout) {
+ clearTimeout(node.rcAnimTimeout);
+ node.rcAnimTimeout = null;
+ }
+
+ clearBrowserBugTimeout(node);
+
+ _Event2['default'].removeEndEventListener(node, node.rcEndListener);
+ node.rcEndListener = null;
+
+ // Usually this optional callback is used for informing an owner of
+ // a leave animation and telling it to remove the child.
+ if (callback) {
+ callback();
+ }
+ };
+
+ _Event2['default'].addEndEventListener(node, node.rcEndListener);
+
+ node.rcAnimTimeout = setTimeout(function () {
+ for (var s in style) {
+ if (style.hasOwnProperty(s)) {
+ node.style[s] = style[s];
+ }
+ }
+ node.rcAnimTimeout = null;
+ fixBrowserByTimeout(node);
+ }, 0);
+ };
+
+ cssAnimation.setTransition = function (node, p, value) {
+ var property = p;
+ var v = value;
+ if (value === undefined) {
+ v = property;
+ property = '';
+ }
+ property = property || '';
+ capitalPrefixes.forEach(function (prefix) {
+ node.style[prefix + 'Transition' + property] = v;
+ });
+ };
+
+ cssAnimation.isCssAnimationSupported = isCssAnimationSupported;
+
+ exports.isCssAnimationSupported = isCssAnimationSupported;
+ exports['default'] = cssAnimation;
+
+/***/ }),
+/* 504 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var START_EVENT_NAME_MAP = {
+ transitionstart: {
+ transition: 'transitionstart',
+ WebkitTransition: 'webkitTransitionStart',
+ MozTransition: 'mozTransitionStart',
+ OTransition: 'oTransitionStart',
+ msTransition: 'MSTransitionStart'
+ },
+
+ animationstart: {
+ animation: 'animationstart',
+ WebkitAnimation: 'webkitAnimationStart',
+ MozAnimation: 'mozAnimationStart',
+ OAnimation: 'oAnimationStart',
+ msAnimation: 'MSAnimationStart'
+ }
+ };
+
+ var END_EVENT_NAME_MAP = {
+ transitionend: {
+ transition: 'transitionend',
+ WebkitTransition: 'webkitTransitionEnd',
+ MozTransition: 'mozTransitionEnd',
+ OTransition: 'oTransitionEnd',
+ msTransition: 'MSTransitionEnd'
+ },
+
+ animationend: {
+ animation: 'animationend',
+ WebkitAnimation: 'webkitAnimationEnd',
+ MozAnimation: 'mozAnimationEnd',
+ OAnimation: 'oAnimationEnd',
+ msAnimation: 'MSAnimationEnd'
+ }
+ };
+
+ var startEvents = [];
+ var endEvents = [];
+
+ function detectEvents() {
+ var testEl = document.createElement('div');
+ var style = testEl.style;
+
+ if (!('AnimationEvent' in window)) {
+ delete START_EVENT_NAME_MAP.animationstart.animation;
+ delete END_EVENT_NAME_MAP.animationend.animation;
+ }
+
+ if (!('TransitionEvent' in window)) {
+ delete START_EVENT_NAME_MAP.transitionstart.transition;
+ delete END_EVENT_NAME_MAP.transitionend.transition;
+ }
+
+ function process(EVENT_NAME_MAP, events) {
+ for (var baseEventName in EVENT_NAME_MAP) {
+ if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
+ var baseEvents = EVENT_NAME_MAP[baseEventName];
+ for (var styleName in baseEvents) {
+ if (styleName in style) {
+ events.push(baseEvents[styleName]);
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ process(START_EVENT_NAME_MAP, startEvents);
+ process(END_EVENT_NAME_MAP, endEvents);
+ }
+
+ if (typeof window !== 'undefined' && typeof document !== 'undefined') {
+ detectEvents();
+ }
+
+ function addEventListener(node, eventName, eventListener) {
+ node.addEventListener(eventName, eventListener, false);
+ }
+
+ function removeEventListener(node, eventName, eventListener) {
+ node.removeEventListener(eventName, eventListener, false);
+ }
+
+ var TransitionEvents = {
+ // Start events
+ startEvents: startEvents,
+
+ addStartEventListener: function addStartEventListener(node, eventListener) {
+ if (startEvents.length === 0) {
+ window.setTimeout(eventListener, 0);
+ return;
+ }
+ startEvents.forEach(function (startEvent) {
+ addEventListener(node, startEvent, eventListener);
+ });
+ },
+ removeStartEventListener: function removeStartEventListener(node, eventListener) {
+ if (startEvents.length === 0) {
+ return;
+ }
+ startEvents.forEach(function (startEvent) {
+ removeEventListener(node, startEvent, eventListener);
+ });
+ },
+
+
+ // End events
+ endEvents: endEvents,
+
+ addEndEventListener: function addEndEventListener(node, eventListener) {
+ if (endEvents.length === 0) {
+ window.setTimeout(eventListener, 0);
+ return;
+ }
+ endEvents.forEach(function (endEvent) {
+ addEventListener(node, endEvent, eventListener);
+ });
+ },
+ removeEndEventListener: function removeEndEventListener(node, eventListener) {
+ if (endEvents.length === 0) {
+ return;
+ }
+ endEvents.forEach(function (endEvent) {
+ removeEventListener(node, endEvent, eventListener);
+ });
+ }
+ };
+
+ exports['default'] = TransitionEvents;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 505 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var util = {
+ isAppearSupported: function isAppearSupported(props) {
+ return props.transitionName && props.transitionAppear || props.animation.appear;
+ },
+ isEnterSupported: function isEnterSupported(props) {
+ return props.transitionName && props.transitionEnter || props.animation.enter;
+ },
+ isLeaveSupported: function isLeaveSupported(props) {
+ return props.transitionName && props.transitionLeave || props.animation.leave;
+ },
+ allowAppearCallback: function allowAppearCallback(props) {
+ return props.transitionAppear || props.animation.appear;
+ },
+ allowEnterCallback: function allowEnterCallback(props) {
+ return props.transitionEnter || props.animation.enter;
+ },
+ allowLeaveCallback: function allowLeaveCallback(props) {
+ return props.transitionLeave || props.animation.leave;
+ }
+ };
+ exports["default"] = util;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 506 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -67851,7 +64444,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _LazyRenderBox = __webpack_require__(521);
+ var _LazyRenderBox = __webpack_require__(507);
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
@@ -67877,6 +64470,8 @@
className: className,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
+ onMouseDown: props.onMouseDown,
+ onTouchStart: props.onTouchStart,
style: props.style
},
_react2['default'].createElement(
@@ -67896,32 +64491,34 @@
prefixCls: _propTypes2['default'].string,
onMouseEnter: _propTypes2['default'].func,
onMouseLeave: _propTypes2['default'].func,
+ onMouseDown: _propTypes2['default'].func,
+ onTouchStart: _propTypes2['default'].func,
children: _propTypes2['default'].any
};
exports['default'] = PopupInner;
module.exports = exports['default'];
/***/ }),
-/* 521 */
+/* 507 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _objectWithoutProperties2 = __webpack_require__(522);
+ var _objectWithoutProperties2 = __webpack_require__(508);
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -67977,7 +64574,7 @@
module.exports = exports['default'];
/***/ }),
-/* 522 */
+/* 508 */
/***/ (function(module, exports) {
"use strict";
@@ -67997,285 +64594,7 @@
};
/***/ }),
-/* 523 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- exports.__esModule = true;
-
- var _extends2 = __webpack_require__(450);
-
- var _extends3 = _interopRequireDefault(_extends2);
-
- exports.getAlignFromPlacement = getAlignFromPlacement;
- exports.getAlignPopupClassName = getAlignPopupClassName;
- exports.saveRef = saveRef;
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- function isPointsEq(a1, a2, isAlignPoint) {
- if (isAlignPoint) {
- return a1[0] === a2[0];
- }
- return a1[0] === a2[0] && a1[1] === a2[1];
- }
-
- function getAlignFromPlacement(builtinPlacements, placementStr, align) {
- var baseAlign = builtinPlacements[placementStr] || {};
- return (0, _extends3['default'])({}, baseAlign, align);
- }
-
- function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
- var points = align.points;
- for (var placement in builtinPlacements) {
- if (builtinPlacements.hasOwnProperty(placement)) {
- if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
- return prefixCls + '-placement-' + placement;
- }
- }
- }
- return '';
- }
-
- function saveRef(name, component) {
- this[name] = component;
- }
-
-/***/ }),
-/* 524 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _classCallCheck2 = __webpack_require__(452);
-
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
- var _createClass2 = __webpack_require__(495);
-
- var _createClass3 = _interopRequireDefault(_createClass2);
-
- var _possibleConstructorReturn2 = __webpack_require__(453);
-
- var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
- var _inherits2 = __webpack_require__(484);
-
- var _inherits3 = _interopRequireDefault(_inherits2);
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- var ContainerRender = function (_React$Component) {
- (0, _inherits3['default'])(ContainerRender, _React$Component);
-
- function ContainerRender() {
- var _ref;
-
- var _temp, _this, _ret;
-
- (0, _classCallCheck3['default'])(this, ContainerRender);
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = ContainerRender.__proto__ || Object.getPrototypeOf(ContainerRender)).call.apply(_ref, [this].concat(args))), _this), _this.removeContainer = function () {
- if (_this.container) {
- _reactDom2['default'].unmountComponentAtNode(_this.container);
- _this.container.parentNode.removeChild(_this.container);
- _this.container = null;
- }
- }, _this.renderComponent = function (props, ready) {
- var _this$props = _this.props,
- visible = _this$props.visible,
- getComponent = _this$props.getComponent,
- forceRender = _this$props.forceRender,
- getContainer = _this$props.getContainer,
- parent = _this$props.parent;
-
- if (visible || parent._component || forceRender) {
- if (!_this.container) {
- _this.container = getContainer();
- }
- _reactDom2['default'].unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {
- if (ready) {
- ready.call(this);
- }
- });
- }
- }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
- }
-
- (0, _createClass3['default'])(ContainerRender, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- if (this.props.autoMount) {
- this.renderComponent();
- }
- }
- }, {
- key: 'componentDidUpdate',
- value: function componentDidUpdate() {
- if (this.props.autoMount) {
- this.renderComponent();
- }
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- if (this.props.autoDestroy) {
- this.removeContainer();
- }
- }
- }, {
- key: 'render',
- value: function render() {
- return this.props.children({
- renderComponent: this.renderComponent,
- removeContainer: this.removeContainer
- });
- }
- }]);
- return ContainerRender;
- }(_react2['default'].Component);
-
- ContainerRender.propTypes = {
- autoMount: _propTypes2['default'].bool,
- autoDestroy: _propTypes2['default'].bool,
- visible: _propTypes2['default'].bool,
- forceRender: _propTypes2['default'].bool,
- parent: _propTypes2['default'].any,
- getComponent: _propTypes2['default'].func.isRequired,
- getContainer: _propTypes2['default'].func.isRequired,
- children: _propTypes2['default'].func.isRequired
- };
- ContainerRender.defaultProps = {
- autoMount: true,
- autoDestroy: true,
- forceRender: false
- };
- exports['default'] = ContainerRender;
- module.exports = exports['default'];
-
-/***/ }),
-/* 525 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _classCallCheck2 = __webpack_require__(452);
-
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
- var _createClass2 = __webpack_require__(495);
-
- var _createClass3 = _interopRequireDefault(_createClass2);
-
- var _possibleConstructorReturn2 = __webpack_require__(453);
-
- var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
- var _inherits2 = __webpack_require__(484);
-
- var _inherits3 = _interopRequireDefault(_inherits2);
-
- var _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(2);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- var Portal = function (_React$Component) {
- (0, _inherits3['default'])(Portal, _React$Component);
-
- function Portal() {
- (0, _classCallCheck3['default'])(this, Portal);
- return (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));
- }
-
- (0, _createClass3['default'])(Portal, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- this.createContainer();
- }
- }, {
- key: 'componentDidUpdate',
- value: function componentDidUpdate(prevProps) {
- var didUpdate = this.props.didUpdate;
-
- if (didUpdate) {
- didUpdate(prevProps);
- }
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- this.removeContainer();
- }
- }, {
- key: 'createContainer',
- value: function createContainer() {
- this._container = this.props.getContainer();
- this.forceUpdate();
- }
- }, {
- key: 'removeContainer',
- value: function removeContainer() {
- if (this._container) {
- this._container.parentNode.removeChild(this._container);
- }
- }
- }, {
- key: 'render',
- value: function render() {
- if (this._container) {
- return _reactDom2['default'].createPortal(this.props.children, this._container);
- }
- return null;
- }
- }]);
- return Portal;
- }(_react2['default'].Component);
-
- Portal.propTypes = {
- getContainer: _propTypes2['default'].func.isRequired,
- children: _propTypes2['default'].node.isRequired,
- didUpdate: _propTypes2['default'].func
- };
- exports['default'] = Portal;
- module.exports = exports['default'];
-
-/***/ }),
-/* 526 */
+/* 509 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -68289,13 +64608,13 @@
var _propTypes = _interopRequireDefault(__webpack_require__(6));
- var _moment = _interopRequireDefault(__webpack_require__(300));
+ var _moment = _interopRequireDefault(__webpack_require__(296));
var _classnames = _interopRequireDefault(__webpack_require__(5));
- var _Header = _interopRequireDefault(__webpack_require__(527));
+ var _Header = _interopRequireDefault(__webpack_require__(510));
- var _Combobox = _interopRequireDefault(__webpack_require__(528));
+ var _Combobox = _interopRequireDefault(__webpack_require__(511));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -68511,7 +64830,6 @@
disabledSeconds: disabledSeconds,
onCurrentSelectPanelChange: this.onCurrentSelectPanelChange,
use12Hours: use12Hours,
- onEsc: onEsc,
isAM: this.isAM()
}), addon(this));
}
@@ -68567,7 +64885,7 @@
exports["default"] = _default;
/***/ }),
-/* 527 */
+/* 510 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -68581,7 +64899,7 @@
var _propTypes = _interopRequireDefault(__webpack_require__(6));
- var _moment = _interopRequireDefault(__webpack_require__(300));
+ var _moment = _interopRequireDefault(__webpack_require__(296));
var _classnames = _interopRequireDefault(__webpack_require__(5));
@@ -68820,7 +65138,7 @@
exports["default"] = _default;
/***/ }),
-/* 528 */
+/* 511 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -68834,7 +65152,7 @@
var _propTypes = _interopRequireDefault(__webpack_require__(6));
- var _Select = _interopRequireDefault(__webpack_require__(529));
+ var _Select = _interopRequireDefault(__webpack_require__(512));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -68958,8 +65276,7 @@
hourOptions = _this$props2.hourOptions,
disabledHours = _this$props2.disabledHours,
showHour = _this$props2.showHour,
- use12Hours = _this$props2.use12Hours,
- onEsc = _this$props2.onEsc;
+ use12Hours = _this$props2.use12Hours;
if (!showHour) {
return null;
@@ -68989,8 +65306,7 @@
onSelect: this.onItemChange,
onMouseEnter: function onMouseEnter() {
return _this2.onEnterSelectPanel('hour');
- },
- onEsc: onEsc
+ }
});
}
}, {
@@ -69004,8 +65320,7 @@
disabledMinutes = _this$props3.disabledMinutes,
defaultOpenValue = _this$props3.defaultOpenValue,
showMinute = _this$props3.showMinute,
- propValue = _this$props3.value,
- onEsc = _this$props3.onEsc;
+ propValue = _this$props3.value;
if (!showMinute) {
return null;
@@ -69023,8 +65338,7 @@
onSelect: this.onItemChange,
onMouseEnter: function onMouseEnter() {
return _this3.onEnterSelectPanel('minute');
- },
- onEsc: onEsc
+ }
});
}
}, {
@@ -69038,8 +65352,7 @@
disabledSeconds = _this$props4.disabledSeconds,
showSecond = _this$props4.showSecond,
defaultOpenValue = _this$props4.defaultOpenValue,
- propValue = _this$props4.value,
- onEsc = _this$props4.onEsc;
+ propValue = _this$props4.value;
if (!showSecond) {
return null;
@@ -69057,8 +65370,7 @@
onSelect: this.onItemChange,
onMouseEnter: function onMouseEnter() {
return _this4.onEnterSelectPanel('second');
- },
- onEsc: onEsc
+ }
});
}
}, {
@@ -69070,8 +65382,7 @@
prefixCls = _this$props5.prefixCls,
use12Hours = _this$props5.use12Hours,
format = _this$props5.format,
- isAM = _this$props5.isAM,
- onEsc = _this$props5.onEsc;
+ isAM = _this$props5.isAM;
if (!use12Hours) {
return null;
@@ -69094,8 +65405,7 @@
onSelect: this.onItemChange,
onMouseEnter: function onMouseEnter() {
return _this5.onEnterSelectPanel('ampm');
- },
- onEsc: onEsc
+ }
});
}
}, {
@@ -69133,7 +65443,6 @@
disabledSeconds: _propTypes["default"].func,
onCurrentSelectPanelChange: _propTypes["default"].func,
use12Hours: _propTypes["default"].bool,
- onEsc: _propTypes["default"].func,
isAM: _propTypes["default"].bool
});
@@ -69141,7 +65450,7 @@
exports["default"] = _default;
/***/ }),
-/* 529 */
+/* 512 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -69159,8 +65468,6 @@
var _classnames = _interopRequireDefault(__webpack_require__(5));
- var _raf = _interopRequireDefault(__webpack_require__(234));
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
@@ -69184,17 +65491,19 @@
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var scrollTo = function scrollTo(element, to, duration) {
- // jump to target if duration zero
+ var requestAnimationFrame = window.requestAnimationFrame || function requestAnimationFrameTimeout() {
+ return setTimeout(arguments[0], 10); // eslint-disable-line
+ }; // jump to target if duration zero
+
+
if (duration <= 0) {
- (0, _raf["default"])(function () {
- element.scrollTop = to;
- });
+ element.scrollTop = to;
return;
}
var difference = to - element.scrollTop;
var perTick = difference / duration * 10;
- (0, _raf["default"])(function () {
+ requestAnimationFrame(function () {
element.scrollTop += perTick;
if (element.scrollTop === to) return;
scrollTo(element, to, duration - 10);
@@ -69276,8 +65585,7 @@
var _this$props2 = this.props,
options = _this$props2.options,
selectedIndex = _this$props2.selectedIndex,
- prefixCls = _this$props2.prefixCls,
- onEsc = _this$props2.onEsc;
+ prefixCls = _this$props2.prefixCls;
return options.map(function (item, index) {
var _classNames;
@@ -69285,19 +65593,12 @@
var onClick = item.disabled ? undefined : function () {
_this2.onSelect(item.value);
};
-
- var onKeyDown = function onKeyDown(e) {
- if (e.keyCode === 13) onClick();else if (e.keyCode === 27) onEsc();
- };
-
return _react["default"].createElement("li", {
role: "button",
onClick: onClick,
className: cls,
key: index,
- disabled: item.disabled,
- tabIndex: "0",
- onKeyDown: onKeyDown
+ disabled: item.disabled
}, item.value);
});
}
@@ -69357,23 +65658,22 @@
selectedIndex: _propTypes["default"].number,
type: _propTypes["default"].string,
onSelect: _propTypes["default"].func,
- onMouseEnter: _propTypes["default"].func,
- onEsc: _propTypes["default"].func
+ onMouseEnter: _propTypes["default"].func
});
var _default = Select;
exports["default"] = _default;
/***/ }),
-/* 530 */
+/* 513 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- module.exports = __webpack_require__(531);
+ module.exports = __webpack_require__(514);
/***/ }),
-/* 531 */
+/* 514 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -69392,11 +65692,11 @@
var _react2 = _interopRequireDefault(_react);
- var _beeInputGroupAddon = __webpack_require__(532);
+ var _beeInputGroupAddon = __webpack_require__(515);
var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon);
- var _InputGroupButton = __webpack_require__(534);
+ var _InputGroupButton = __webpack_require__(517);
var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton);
@@ -69441,8 +65741,8 @@
return InputGroup;
}(_react2["default"].Component);
- /**
- * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件
+ /**
+ * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件
*/
@@ -69453,7 +65753,7 @@
module.exports = exports['default'];
/***/ }),
-/* 532 */
+/* 515 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -69462,7 +65762,7 @@
value: true
});
- var _InputGroupAddon = __webpack_require__(533);
+ var _InputGroupAddon = __webpack_require__(516);
var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon);
@@ -69472,7 +65772,7 @@
module.exports = exports['default'];
/***/ }),
-/* 533 */
+/* 516 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -69535,7 +65835,7 @@
module.exports = exports['default'];
/***/ }),
-/* 534 */
+/* 517 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -69598,7 +65898,7 @@
module.exports = exports['default'];
/***/ }),
-/* 535 */
+/* 518 */
/***/ (function(module, exports) {
'use strict';
@@ -69639,7 +65939,7 @@
module.exports = exports['default'];
/***/ }),
-/* 536 */
+/* 519 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -69650,7 +65950,7 @@
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 _MonthCalendar = __webpack_require__(537);
+ var _MonthCalendar = __webpack_require__(520);
var _MonthCalendar2 = _interopRequireDefault(_MonthCalendar);
@@ -69664,19 +65964,19 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _Picker = __webpack_require__(446);
+ var _Picker = __webpack_require__(442);
var _Picker2 = _interopRequireDefault(_Picker);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
- var _beeInputGroup = __webpack_require__(530);
+ var _beeInputGroup = __webpack_require__(513);
var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
@@ -69684,11 +65984,11 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _zh_CN = __webpack_require__(535);
+ var _zh_CN = __webpack_require__(518);
var _zh_CN2 = _interopRequireDefault(_zh_CN);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -69729,7 +66029,7 @@
// }
_this.setState({
- value: value && _extends(value, { _type: 'month' }) || value
+ value: _extends(value, { _type: 'month' })
});
onChange && onChange(value, value ? value.format(format) : '');
};
@@ -69887,7 +66187,7 @@
module.exports = exports["default"];
/***/ }),
-/* 537 */
+/* 520 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -69906,27 +66206,27 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
- var _CalendarHeader = __webpack_require__(431);
+ var _CalendarHeader = __webpack_require__(427);
var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);
- var _CalendarFooter = __webpack_require__(438);
+ var _CalendarFooter = __webpack_require__(434);
var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);
- var _CalendarMixin = __webpack_require__(442);
+ var _CalendarMixin = __webpack_require__(438);
- var _CommonMixin = __webpack_require__(443);
+ var _CommonMixin = __webpack_require__(439);
- var _DateInput = __webpack_require__(435);
+ var _DateInput = __webpack_require__(431);
var _DateInput2 = _interopRequireDefault(_DateInput);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -70113,7 +66413,7 @@
module.exports = exports['default'];
/***/ }),
-/* 538 */
+/* 521 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -70126,27 +66426,27 @@
var _react2 = _interopRequireDefault(_react);
- var _RangeCalendar = __webpack_require__(539);
+ var _RangeCalendar = __webpack_require__(522);
var _RangeCalendar2 = _interopRequireDefault(_RangeCalendar);
- var _Panel = __webpack_require__(526);
+ var _Panel = __webpack_require__(509);
var _Panel2 = _interopRequireDefault(_Panel);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _Picker = __webpack_require__(446);
+ var _Picker = __webpack_require__(442);
var _Picker2 = _interopRequireDefault(_Picker);
- var _beeInputGroup = __webpack_require__(530);
+ var _beeInputGroup = __webpack_require__(513);
var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -70156,17 +66456,17 @@
var _tinperBeeCore = __webpack_require__(27);
- var _util = __webpack_require__(430);
+ var _util = __webpack_require__(426);
- var _zh_CN = __webpack_require__(535);
+ var _zh_CN = __webpack_require__(518);
var _zh_CN2 = _interopRequireDefault(_zh_CN);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
- __webpack_require__(426);
+ __webpack_require__(422);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -70384,16 +66684,12 @@
value: []
});
_this3.props.onChange && _this3.props.onChange([], []);
- _this3.props.onFormControlClear && _this3.props.onFormControlClear();
};
this.onOpenChange = function (open) {
var props = _this3.props;
var self = _this3;
- // let {value} = this.state;
- // if(!isValidRange(value)){
- // debugger
- // }
+
if (open === false) {
_this3.clearHoverValue();
}
@@ -70462,24 +66758,20 @@
this.onStartInputBlur = function (e) {
var inputs = document.querySelectorAll('.rc-calendar-input');
- var startValue = void 0,
- endValue = void 0;
+ var startValue = void 0;
if (inputs) {
startValue = inputs[0].value ? inputs[0].value : '';
- endValue = inputs[1].value ? inputs[1].value : '';
}
- _this3.props.onStartInputBlur && _this3.props.onStartInputBlur(e, startValue, "[\"" + startValue + "\" , \"" + endValue + "\"]");
+ _this3.props.onStartInputBlur && _this3.props.onStartInputBlur(e, startValue);
};
this.onEndInputBlur = function (e) {
var inputs = document.querySelectorAll('.rc-calendar-input');
- var startValue = void 0,
- endValue = void 0;
+ var endValue = void 0;
if (inputs) {
- startValue = inputs[0].value ? inputs[0].value : '';
endValue = inputs[1].value ? inputs[1].value : '';
}
- _this3.props.onEndInputBlur && _this3.props.onEndInputBlur(e, endValue, "[\"" + startValue + "\" , \"" + endValue + "\"]");
+ _this3.props.onEndInputBlur && _this3.props.onEndInputBlur(e, endValue);
};
};
@@ -70501,7 +66793,7 @@
module.exports = exports["default"];
/***/ }),
-/* 539 */
+/* 522 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -70522,7 +66814,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -70530,33 +66822,33 @@
var _classnames3 = _interopRequireDefault(_classnames2);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
- var _CalendarPart = __webpack_require__(540);
+ var _CalendarPart = __webpack_require__(523);
var _CalendarPart2 = _interopRequireDefault(_CalendarPart);
- var _TodayButton = __webpack_require__(439);
+ var _TodayButton = __webpack_require__(435);
var _TodayButton2 = _interopRequireDefault(_TodayButton);
- var _OkButton = __webpack_require__(440);
+ var _OkButton = __webpack_require__(436);
var _OkButton2 = _interopRequireDefault(_OkButton);
- var _TimePickerButton = __webpack_require__(441);
+ var _TimePickerButton = __webpack_require__(437);
var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);
- var _CommonMixin = __webpack_require__(443);
+ var _CommonMixin = __webpack_require__(439);
- var _util = __webpack_require__(430);
+ var _util = __webpack_require__(426);
- var _toTime = __webpack_require__(445);
+ var _toTime = __webpack_require__(441);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -70627,11 +66919,7 @@
var selectedValue = originalValue.concat();
var index = direction === 'left' ? 0 : 1;
selectedValue[index] = value;
- // console.log(selectedValue[0], selectedValue[1], this.compare(selectedValue[0], selectedValue[1]))
if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) {
- selectedValue[1] = this.state.showTimePicker ? selectedValue[index] : undefined;
- }
- if (selectedValue[0] && !selectedValue[1]) {
selectedValue[1 - index] = this.state.showTimePicker ? selectedValue[index] : undefined;
}
this.props.onInputSelect(selectedValue);
@@ -70754,7 +67042,7 @@
props.renderSidebar(),
_react2["default"].createElement(
'div',
- { className: prefixCls + '-panel', onMouseOver: this.onMouseOver },
+ { className: prefixCls + '-panel' },
showClear && selectedValue[0] && selectedValue[1] ? _react2["default"].createElement(
'a',
{
@@ -71320,7 +67608,7 @@
if (_this2.props.timePicker) {
return v1.diff(v2);
}
- return v1 && v1.diff(v2, 'days');
+ return v1.diff(v2, 'days');
};
this.fireSelectValueChange = function (selectedValue, direct, cause) {
@@ -71358,9 +67646,7 @@
_this2.fireHoverValueChange(selectedValue.concat());
}
selectedValue.map(function (item) {
- if (item) {
- item._type = 'range';
- }
+ item._type = 'range';
});
_this2.props.onChange(selectedValue);
if (direct || selectedValue[0] && selectedValue[1]) {
@@ -71415,10 +67701,6 @@
return month.isSameOrBefore(value[0], 'month');
};
-
- this.onMouseOver = function (e) {
- e.stopPropagation();
- };
};
(0, _reactLifecyclesCompat.polyfill)(RangeCalendar);
@@ -71427,7 +67709,7 @@
module.exports = exports['default'];
/***/ }),
-/* 540 */
+/* 523 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -71446,19 +67728,19 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _CalendarHeader = __webpack_require__(431);
+ var _CalendarHeader = __webpack_require__(427);
var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);
- var _DateTable = __webpack_require__(297);
+ var _DateTable = __webpack_require__(293);
var _DateTable2 = _interopRequireDefault(_DateTable);
- var _DateInput = __webpack_require__(435);
+ var _DateInput = __webpack_require__(431);
var _DateInput2 = _interopRequireDefault(_DateInput);
- var _index = __webpack_require__(430);
+ var _index = __webpack_require__(426);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -71615,7 +67897,7 @@
module.exports = exports['default'];
/***/ }),
-/* 541 */
+/* 524 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -71626,7 +67908,7 @@
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 _rcCalendar = __webpack_require__(294);
+ var _rcCalendar = __webpack_require__(290);
var _rcCalendar2 = _interopRequireDefault(_rcCalendar);
@@ -71642,37 +67924,37 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _Picker = __webpack_require__(446);
+ var _Picker = __webpack_require__(442);
var _Picker2 = _interopRequireDefault(_Picker);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _zh_CN = __webpack_require__(535);
+ var _zh_CN = __webpack_require__(518);
var _zh_CN2 = _interopRequireDefault(_zh_CN);
- var _en_US = __webpack_require__(444);
+ var _en_US = __webpack_require__(440);
var _en_US2 = _interopRequireDefault(_en_US);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
- var _beeInputGroup = __webpack_require__(530);
+ var _beeInputGroup = __webpack_require__(513);
var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
- __webpack_require__(426);
+ __webpack_require__(422);
- __webpack_require__(331);
+ __webpack_require__(327);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -71808,7 +68090,7 @@
_this.handleCalendarChange = function (value) {
_this.setState({
- value: value && _extends(value, { _type: 'week' }) || value
+ value: _extends(value, { _type: 'week' })
});
};
@@ -71928,7 +68210,7 @@
module.exports = exports["default"];
/***/ }),
-/* 542 */
+/* 525 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -71939,7 +68221,7 @@
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 _YearPanel = __webpack_require__(436);
+ var _YearPanel = __webpack_require__(432);
var _YearPanel2 = _interopRequireDefault(_YearPanel);
@@ -71953,19 +68235,19 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _Picker = __webpack_require__(446);
+ var _Picker = __webpack_require__(442);
var _Picker2 = _interopRequireDefault(_Picker);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
- var _beeInputGroup = __webpack_require__(530);
+ var _beeInputGroup = __webpack_require__(513);
var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -71973,7 +68255,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _moment = __webpack_require__(300);
+ var _moment = __webpack_require__(296);
var _moment2 = _interopRequireDefault(_moment);
@@ -72150,7 +68432,7 @@
this.handleChange = function (value) {
var props = _this3.props;
_this3.setState({
- value: value && _extends(value, { _type: 'year' }) || value
+ value: _extends(value, { _type: 'year' })
});
props.onChange && props.onChange(value, value && value.format(props.format) || '');
};
@@ -72203,7 +68485,7 @@
module.exports = exports["default"];
/***/ }),
-/* 543 */
+/* 526 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -72212,17 +68494,17 @@
value: true
});
- var _Select = __webpack_require__(544);
+ var _Select = __webpack_require__(527);
var _Select2 = _interopRequireDefault(_Select);
- var _Option = __webpack_require__(567);
+ var _Option = __webpack_require__(550);
var _Option2 = _interopRequireDefault(_Option);
- var _PropTypes = __webpack_require__(577);
+ var _PropTypes = __webpack_require__(560);
- var _OptGroup = __webpack_require__(578);
+ var _OptGroup = __webpack_require__(561);
var _OptGroup2 = _interopRequireDefault(_OptGroup);
@@ -72234,7 +68516,7 @@
module.exports = exports['default'];
/***/ }),
-/* 544 */
+/* 527 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -72253,15 +68535,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _RcSelect = __webpack_require__(545);
+ var _RcSelect = __webpack_require__(528);
var _RcSelect2 = _interopRequireDefault(_RcSelect);
- var _Option = __webpack_require__(567);
+ var _Option = __webpack_require__(550);
var _Option2 = _interopRequireDefault(_Option);
- var _OptGroup = __webpack_require__(578);
+ var _OptGroup = __webpack_require__(561);
var _OptGroup2 = _interopRequireDefault(_OptGroup);
@@ -72417,7 +68699,7 @@
module.exports = exports["default"];
/***/ }),
-/* 545 */
+/* 528 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -72436,7 +68718,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
var _tinperBeeCore = __webpack_require__(27);
@@ -72444,7 +68726,7 @@
var _classnames3 = _interopRequireDefault(_classnames2);
- var _beeAnimate = __webpack_require__(57);
+ var _beeAnimate = __webpack_require__(69);
var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
@@ -72452,27 +68734,23 @@
var _componentClasses2 = _interopRequireDefault(_componentClasses);
- var _rcMenu = __webpack_require__(546);
-
- var _MenuItem = __webpack_require__(561);
-
- var _MenuItem2 = _interopRequireDefault(_MenuItem);
+ var _rcMenu = __webpack_require__(529);
var _warning = __webpack_require__(32);
var _warning2 = _interopRequireDefault(_warning);
- var _Option = __webpack_require__(567);
+ var _Option = __webpack_require__(550);
var _Option2 = _interopRequireDefault(_Option);
- var _util = __webpack_require__(568);
+ var _util = __webpack_require__(551);
- var _SelectTrigger = __webpack_require__(569);
+ var _SelectTrigger = __webpack_require__(552);
var _SelectTrigger2 = _interopRequireDefault(_SelectTrigger);
- var _PropTypes = __webpack_require__(577);
+ var _PropTypes = __webpack_require__(560);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -72591,11 +68869,6 @@
}
};
- /**
- * noCheck 判断输入的值是否不需要匹配option
- */
-
-
Select.prototype.renderClear = function renderClear() {
var _props = this.props,
prefixCls = _props.prefixCls,
@@ -72615,7 +68888,11 @@
}, _util.UNSELECTABLE_ATTRIBUTE, {
onClick: this.onClearSelection
}),
- clearIcon || _react2["default"].createElement('i', { className: prefixCls + '-selection-clear-icon' })
+ clearIcon || _react2["default"].createElement(
+ 'i',
+ { className: prefixCls + '-selection-clear-icon' },
+ '\xD7'
+ )
);
if (!allowClear) {
return null;
@@ -73106,11 +69383,6 @@
value = [(0, _util.getValuePropValue)(firstOption)];
_this2.fireChange(value);
}
- if (props.showSearch && props.supportWrite) {
- //查询时是否支持自定义输入
- value = [inputValue];
- _this2.fireChange(value, true);
- }
}
} else if ((0, _util.isMultipleOrTags)(props) && inputValue) {
if (_this2._mouseDown) {
@@ -73574,20 +69846,16 @@
_this2.props.onSelect(_this2.getVLBySingleValue(value), _this2.getOptionBySingleValue(value));
};
- this.fireChange = function (value, noCheck) {
+ this.fireChange = function (value) {
var props = _this2.props;
if (!('value' in props)) {
_this2.setState({
value: value
}, _this2.forcePopupAlign);
}
- if (noCheck) {
- props.onChange(value, null);
- } else {
- var vls = _this2.getVLForOnChange(value);
- var options = _this2.getOptionsBySingleValue(value);
- props.onChange(vls, (0, _util.isMultipleOrTags)(_this2.props) ? options : options[0]);
- }
+ var vls = _this2.getVLForOnChange(value);
+ var options = _this2.getOptionsBySingleValue(value);
+ props.onChange(vls, (0, _util.isMultipleOrTags)(_this2.props) ? options : options[0]);
};
this.isChildDisabled = function (key) {
@@ -73624,7 +69892,7 @@
value.forEach(function (singleValue) {
var key = singleValue;
var menuItem = _react2["default"].createElement(
- _MenuItem2["default"],
+ _rcMenu.Item,
{
style: _util.UNSELECTABLE_STYLE,
role: 'option',
@@ -73653,7 +69921,7 @@
});
if (notFindInputItem) {
options.unshift(_react2["default"].createElement(
- _MenuItem2["default"],
+ _rcMenu.Item,
{
style: _util.UNSELECTABLE_STYLE,
role: 'option',
@@ -73669,7 +69937,7 @@
if (!options.length && notFoundContent) {
options = [_react2["default"].createElement(
- _MenuItem2["default"],
+ _rcMenu.Item,
{
style: _util.UNSELECTABLE_STYLE,
attribute: _util.UNSELECTABLE_ATTRIBUTE,
@@ -73720,7 +69988,7 @@
(0, _util.validateOptionValue)(childValue, _this2.props);
if (_this2.filterOption(inputValue, child)) {
- var menuItem = _react2["default"].createElement(_MenuItem2["default"], _extends({
+ var menuItem = _react2["default"].createElement(_rcMenu.Item, _extends({
style: _util.UNSELECTABLE_STYLE,
attribute: _util.UNSELECTABLE_ATTRIBUTE,
value: childValue,
@@ -73932,7 +70200,7 @@
module.exports = exports['default'];
/***/ }),
-/* 546 */
+/* 529 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -73940,23 +70208,23 @@
exports.__esModule = true;
exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined;
- var _Menu = __webpack_require__(547);
+ var _Menu = __webpack_require__(530);
var _Menu2 = _interopRequireDefault(_Menu);
- var _SubMenu = __webpack_require__(558);
+ var _SubMenu = __webpack_require__(541);
var _SubMenu2 = _interopRequireDefault(_SubMenu);
- var _MenuItem = __webpack_require__(561);
+ var _MenuItem = __webpack_require__(544);
var _MenuItem2 = _interopRequireDefault(_MenuItem);
- var _MenuItemGroup = __webpack_require__(565);
+ var _MenuItemGroup = __webpack_require__(548);
var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup);
- var _Divider = __webpack_require__(566);
+ var _Divider = __webpack_require__(549);
var _Divider2 = _interopRequireDefault(_Divider);
@@ -73971,30 +70239,30 @@
exports['default'] = _Menu2['default'];
/***/ }),
-/* 547 */
+/* 530 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _objectWithoutProperties2 = __webpack_require__(522);
+ var _objectWithoutProperties2 = __webpack_require__(508);
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -74006,13 +70274,13 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _SubPopupMenu = __webpack_require__(553);
+ var _SubPopupMenu = __webpack_require__(536);
var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);
- var _util = __webpack_require__(554);
+ var _util = __webpack_require__(537);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -74257,7 +70525,7 @@
module.exports = exports['default'];
/***/ }),
-/* 548 */
+/* 531 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -74267,15 +70535,15 @@
});
exports.create = exports.connect = exports.Provider = undefined;
- var _Provider2 = __webpack_require__(549);
+ var _Provider2 = __webpack_require__(532);
var _Provider3 = _interopRequireDefault(_Provider2);
- var _connect2 = __webpack_require__(551);
+ var _connect2 = __webpack_require__(534);
var _connect3 = _interopRequireDefault(_connect2);
- var _create2 = __webpack_require__(552);
+ var _create2 = __webpack_require__(535);
var _create3 = _interopRequireDefault(_create2);
@@ -74286,7 +70554,7 @@
exports.create = _create3.default;
/***/ }),
-/* 549 */
+/* 532 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -74301,7 +70569,7 @@
var _react2 = _interopRequireDefault(_react);
- var _PropTypes = __webpack_require__(550);
+ var _PropTypes = __webpack_require__(533);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -74346,7 +70614,7 @@
exports.default = Provider;
/***/ }),
-/* 550 */
+/* 533 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -74369,7 +70637,7 @@
});
/***/ }),
-/* 551 */
+/* 534 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -74388,17 +70656,17 @@
var _react2 = _interopRequireDefault(_react);
- var _shallowequal = __webpack_require__(288);
+ var _shallowequal = __webpack_require__(284);
var _shallowequal2 = _interopRequireDefault(_shallowequal);
- var _hoistNonReactStatics = __webpack_require__(212);
+ var _hoistNonReactStatics = __webpack_require__(220);
var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
- var _reactLifecyclesCompat = __webpack_require__(81);
+ var _reactLifecyclesCompat = __webpack_require__(91);
- var _PropTypes = __webpack_require__(550);
+ var _PropTypes = __webpack_require__(533);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -74537,7 +70805,7 @@
}
/***/ }),
-/* 552 */
+/* 535 */
/***/ (function(module, exports) {
"use strict";
@@ -74581,7 +70849,7 @@
}
/***/ }),
-/* 553 */
+/* 536 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -74589,23 +70857,23 @@
exports.__esModule = true;
exports.SubPopupMenu = undefined;
- var _objectWithoutProperties2 = __webpack_require__(522);
+ var _objectWithoutProperties2 = __webpack_require__(508);
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
- var _extends4 = __webpack_require__(450);
+ var _extends4 = __webpack_require__(446);
var _extends5 = _interopRequireDefault(_extends4);
@@ -74620,13 +70888,13 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
- var _createChainedFunction = __webpack_require__(447);
+ var _createChainedFunction = __webpack_require__(443);
var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
@@ -74634,9 +70902,9 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _util = __webpack_require__(554);
+ var _util = __webpack_require__(537);
- var _DOMWrap = __webpack_require__(556);
+ var _DOMWrap = __webpack_require__(539);
var _DOMWrap2 = _interopRequireDefault(_DOMWrap);
@@ -75029,7 +71297,7 @@
exports['default'] = connected;
/***/ }),
-/* 554 */
+/* 537 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -75048,7 +71316,7 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
- var isMobile = __webpack_require__(555);
+ var isMobile = __webpack_require__(538);
function noop() {}
@@ -75125,36 +71393,36 @@
};
/***/ }),
-/* 555 */
+/* 538 */
/***/ (function(module, exports, __webpack_require__) {
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!function(e){var n=/iPhone/i,t=/iPod/i,r=/iPad/i,a=/\bAndroid(?:.+)Mobile\b/i,p=/Android/i,b=/\bAndroid(?:.+)SD4930UR\b/i,l=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,f=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,c=/BB10/i,h=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,w=/Mobile(?:.+)Firefox\b/i;function m(e,i){return e.test(i)}function i(e){var i=e||("undefined"!=typeof navigator?navigator.userAgent:""),o=i.split("[FBAN");void 0!==o[1]&&(i=o[0]),void 0!==(o=i.split("Twitter"))[1]&&(i=o[0]);var d={apple:{phone:m(n,i)&&!m(f,i),ipod:m(t,i),tablet:!m(n,i)&&m(r,i)&&!m(f,i),device:(m(n,i)||m(t,i)||m(r,i))&&!m(f,i)},amazon:{phone:m(b,i),tablet:!m(b,i)&&m(l,i),device:m(b,i)||m(l,i)},android:{phone:!m(f,i)&&m(b,i)||!m(f,i)&&m(a,i),tablet:!m(f,i)&&!m(b,i)&&!m(a,i)&&(m(l,i)||m(p,i)),device:!m(f,i)&&(m(b,i)||m(l,i)||m(a,i)||m(p,i))||m(/\bokhttp\b/i,i)},windows:{phone:m(f,i),tablet:m(s,i),device:m(f,i)||m(s,i)},other:{blackberry:m(u,i),blackberry10:m(c,i),opera:m(h,i),firefox:m(w,i),chrome:m(v,i),device:m(u,i)||m(c,i)||m(h,i)||m(w,i)||m(v,i)}};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=i:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?(module.exports=i(),module.exports.isMobile=i): true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (e.isMobile=i()), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):e.isMobile=i()}(this);
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!function(e){var n=/iPhone/i,t=/iPod/i,r=/iPad/i,a=/\bAndroid(?:.+)Mobile\b/i,p=/Android/i,l=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,f=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,s=/BB10/i,v=/Opera Mini/i,h=/\b(CriOS|Chrome)(?:.+)Mobile/i,w=/\Mobile(?:.+)Firefox\b/i;function m(e,i){return e.test(i)}function i(e){var i=e||("undefined"!=typeof navigator?navigator.userAgent:""),o=i.split("[FBAN");void 0!==o[1]&&(i=o[0]),void 0!==(o=i.split("Twitter"))[1]&&(i=o[0]);var d={apple:{phone:m(n,i)&&!m(f,i),ipod:m(t,i),tablet:!m(n,i)&&m(r,i)&&!m(f,i),device:(m(n,i)||m(t,i)||m(r,i))&&!m(f,i)},amazon:{phone:m(l,i),tablet:!m(l,i)&&m(b,i),device:m(l,i)||m(b,i)},android:{phone:!m(f,i)&&m(l,i)||!m(f,i)&&m(a,i),tablet:!m(f,i)&&!m(l,i)&&!m(a,i)&&(m(b,i)||m(p,i)),device:!m(f,i)&&(m(l,i)||m(b,i)||m(a,i)||m(p,i))},windows:{phone:m(f,i),tablet:m(u,i),device:m(f,i)||m(u,i)},other:{blackberry:m(c,i),blackberry10:m(s,i),opera:m(v,i),firefox:m(w,i),chrome:m(h,i),device:m(c,i)||m(s,i)||m(v,i)||m(w,i)||m(h,i)}};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=i:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=i(): true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (e.isMobile=i()), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):e.isMobile=i()}(this);
/***/ }),
-/* 556 */
+/* 539 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _objectWithoutProperties2 = __webpack_require__(522);
+ var _objectWithoutProperties2 = __webpack_require__(508);
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -75170,15 +71438,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _resizeObserverPolyfill = __webpack_require__(557);
+ var _resizeObserverPolyfill = __webpack_require__(540);
var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
- var _SubMenu = __webpack_require__(558);
+ var _SubMenu = __webpack_require__(541);
var _SubMenu2 = _interopRequireDefault(_SubMenu);
- var _util = __webpack_require__(554);
+ var _util = __webpack_require__(537);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -75189,7 +71457,7 @@
// Fix ssr
if (canUseDOM) {
- __webpack_require__(560);
+ __webpack_require__(543);
}
var DOMWrap = function (_React$Component) {
@@ -75224,7 +71492,8 @@
level = _this$props.level,
mode = _this$props.mode,
prefixCls = _this$props.prefixCls,
- theme = _this$props.theme;
+ theme = _this$props.theme,
+ propStyle = _this$props.style;
if (level !== 1 || mode !== 'horizontal') {
return null;
@@ -75235,8 +71504,7 @@
var _copy$props = copy.props,
throwAway = _copy$props.children,
title = _copy$props.title,
- propStyle = _copy$props.style,
- rest = (0, _objectWithoutProperties3['default'])(_copy$props, ['children', 'title', 'style']);
+ rest = (0, _objectWithoutProperties3['default'])(_copy$props, ['children', 'title']);
var style = (0, _extends3['default'])({}, propStyle);
@@ -75511,7 +71779,7 @@
module.exports = exports['default'];
/***/ }),
-/* 557 */
+/* 540 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
@@ -76454,7 +72722,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }),
-/* 558 */
+/* 541 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -76462,19 +72730,19 @@
exports.__esModule = true;
exports.SubMenu = undefined;
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
- var _extends3 = __webpack_require__(450);
+ var _extends3 = __webpack_require__(446);
var _extends4 = _interopRequireDefault(_extends3);
@@ -76490,11 +72758,11 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _rcTrigger = __webpack_require__(449);
+ var _rcTrigger = __webpack_require__(445);
var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
@@ -76502,21 +72770,21 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _SubPopupMenu = __webpack_require__(553);
+ var _SubPopupMenu = __webpack_require__(536);
var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);
- var _placements = __webpack_require__(559);
+ var _placements = __webpack_require__(542);
var _placements2 = _interopRequireDefault(_placements);
- var _rcAnimate = __webpack_require__(500);
+ var _rcAnimate = __webpack_require__(499);
var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
- var _util = __webpack_require__(554);
+ var _util = __webpack_require__(537);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -77102,7 +73370,7 @@
exports['default'] = connected;
/***/ }),
-/* 559 */
+/* 542 */
/***/ (function(module, exports) {
'use strict';
@@ -77139,7 +73407,7 @@
exports['default'] = placements;
/***/ }),
-/* 560 */
+/* 543 */
/***/ (function(module, exports) {
// mutationobserver-shim v0.3.2 (github.com/megawac/MutationObserver.js)
@@ -77154,7 +73422,7 @@
/***/ }),
-/* 561 */
+/* 544 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -77162,19 +73430,19 @@
exports.__esModule = true;
exports.MenuItem = undefined;
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -77190,7 +73458,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _KeyCode = __webpack_require__(296);
+ var _KeyCode = __webpack_require__(292);
var _KeyCode2 = _interopRequireDefault(_KeyCode);
@@ -77198,13 +73466,13 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _domScrollIntoView = __webpack_require__(562);
+ var _domScrollIntoView = __webpack_require__(545);
var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _util = __webpack_require__(554);
+ var _util = __webpack_require__(537);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -77434,20 +73702,20 @@
exports['default'] = connected;
/***/ }),
-/* 562 */
+/* 545 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- module.exports = __webpack_require__(563);
+ module.exports = __webpack_require__(546);
/***/ }),
-/* 563 */
+/* 546 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- var util = __webpack_require__(564);
+ var util = __webpack_require__(547);
function scrollIntoView(elem, container, config) {
config = config || {};
@@ -77576,7 +73844,7 @@
module.exports = scrollIntoView;
/***/ }),
-/* 564 */
+/* 547 */
/***/ (function(module, exports) {
'use strict';
@@ -78020,30 +74288,30 @@
}, domUtils);
/***/ }),
-/* 565 */
+/* 548 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _extends2 = __webpack_require__(450);
+ var _extends2 = __webpack_require__(446);
var _extends3 = _interopRequireDefault(_extends2);
- var _objectWithoutProperties2 = __webpack_require__(522);
+ var _objectWithoutProperties2 = __webpack_require__(508);
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -78055,7 +74323,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _util = __webpack_require__(554);
+ var _util = __webpack_require__(537);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -78138,22 +74406,22 @@
module.exports = exports['default'];
/***/ }),
-/* 566 */
+/* 549 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
exports.__esModule = true;
- var _classCallCheck2 = __webpack_require__(452);
+ var _classCallCheck2 = __webpack_require__(448);
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
- var _possibleConstructorReturn2 = __webpack_require__(453);
+ var _possibleConstructorReturn2 = __webpack_require__(449);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
- var _inherits2 = __webpack_require__(484);
+ var _inherits2 = __webpack_require__(480);
var _inherits3 = _interopRequireDefault(_inherits2);
@@ -78205,7 +74473,7 @@
module.exports = exports['default'];
/***/ }),
-/* 567 */
+/* 550 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -78256,7 +74524,7 @@
module.exports = exports['default'];
/***/ }),
-/* 568 */
+/* 551 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -78471,7 +74739,7 @@
}
/***/ }),
-/* 569 */
+/* 552 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -78482,7 +74750,7 @@
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 _trigger = __webpack_require__(570);
+ var _trigger = __webpack_require__(553);
var _trigger2 = _interopRequireDefault(_trigger);
@@ -78502,9 +74770,9 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _util = __webpack_require__(568);
+ var _util = __webpack_require__(551);
- var _DropdownMenu = __webpack_require__(576);
+ var _DropdownMenu = __webpack_require__(559);
var _DropdownMenu2 = _interopRequireDefault(_DropdownMenu);
@@ -78725,15 +74993,15 @@
module.exports = exports['default'];
/***/ }),
-/* 570 */
+/* 553 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
- module.exports = __webpack_require__(571);
+ module.exports = __webpack_require__(554);
/***/ }),
-/* 571 */
+/* 554 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -78756,17 +75024,17 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _contains = __webpack_require__(99);
+ var _contains = __webpack_require__(111);
var _contains2 = _interopRequireDefault(_contains);
var _tinperBeeCore = __webpack_require__(27);
- var _Popup = __webpack_require__(572);
+ var _Popup = __webpack_require__(555);
var _Popup2 = _interopRequireDefault(_Popup);
- var _utils = __webpack_require__(575);
+ var _utils = __webpack_require__(558);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -78866,55 +75134,6 @@
return doc;
};
- _this.bindDocument = function () {
- var doc = document;
- if (_this.props.getDocument) {
- doc = _this.props.getDocument();
- }
- if (Array.isArray(doc)) {
- var doc1 = doc[0];
- var doc2 = doc[1];
- _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousedown', _this.onDocumentClick);
- _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'touchstart', _this.onDocumentClick);
- _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc1, 'mousewheel', _this.onDocumentClick);
- _this.clickOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousedown', _this.onDocumentClick);
- _this.touchOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'touchstart', _this.onDocumentClick);
- _this.mouseWheelOutsideHandlerIframe = (0, _tinperBeeCore.addEventListener)(doc2, 'mousewheel', _this.onDocumentClick);
- } else {
- _this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousedown', _this.onDocumentClick);
- _this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'touchstart', _this.onDocumentClick);
- _this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(doc, 'mousewheel', _this.onDocumentClick);
- }
- };
-
- _this.removeDocument = function () {
- var doc = document;
- if (_this.props.getDocument) {
- doc = _this.props.getDocument();
- }
- if (Array.isArray(doc)) {
- _this.clickOutsideHandler.remove();
- _this.touchOutsideHandler.remove();
- _this.mouseWheelOutsideHandler.remove();
- _this.clickOutsideHandlerIframe.remove();
- _this.touchOutsideHandlerIframe.remove();
- _this.mouseWheelOutsideHandlerIframe.remove();
- _this.clickOutsideHandler = null;
- _this.touchOutsideHandler = null;
- _this.mouseWheelOutsideHandler = null;
- _this.clickOutsideHandlerIframe = null;
- _this.touchOutsideHandlerIframe = null;
- _this.mouseWheelOutsideHandlerIframe = null;
- } else {
- _this.clickOutsideHandler.remove();
- _this.touchOutsideHandler.remove();
- _this.mouseWheelOutsideHandler.remove();
- _this.clickOutsideHandler = null;
- _this.touchOutsideHandler = null;
- _this.mouseWheelOutsideHandler = null;
- }
- };
-
_this.state = {
popupVisible: !!_this.props.popupVisible || _this.props.defaultPopupVisible
//this.removeContainer = this.removeContainer.bind(this);
@@ -79023,20 +75242,32 @@
if (this.isClickToHide()) {
if (state.popupVisible) {
if (!this.clickOutsideHandler) {
- this.bindDocument();
+ this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(this.getDocument(), 'mousedown', this.onDocumentClick);
+ this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(this.getDocument(), 'touchstart', this.onDocumentClick);
+ this.mouseWheelOutsideHandler = (0, _tinperBeeCore.addEventListener)(this.getDocument(), 'mousewheel', this.onDocumentClick);
}
return;
}
}
if (this.clickOutsideHandler) {
- this.removeDocument();
+ this.clickOutsideHandler.remove();
+ this.touchOutsideHandler.remove();
+ this.mouseWheelOutsideHandler.remove();
+ this.clickOutsideHandler = null;
+ this.touchOutsideHandler = null;
+ this.mouseWheelOutsideHandler = null;
}
};
Trigger.prototype.componentWillUnmount = function componentWillUnmount() {
this.clearDelayTimer();
if (this.clickOutsideHandler) {
- this.removeDocument();
+ this.clickOutsideHandler.remove();
+ this.touchOutsideHandler.remove();
+ this.mouseWheelOutsideHandler.remove();
+ this.clickOutsideHandler = null;
+ this.touchOutsideHandler = null;
+ this.mouseWheelOutsideHandler = null;
}
if (this._container) {
_reactDom2["default"].unmountComponentAtNode(this._container);
@@ -79369,7 +75600,7 @@
module.exports = exports['default'];
/***/ }),
-/* 572 */
+/* 555 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -79396,15 +75627,15 @@
var _Align2 = _interopRequireDefault(_Align);
- var _beeAnimate = __webpack_require__(57);
+ var _beeAnimate = __webpack_require__(69);
var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
- var _PopupInner = __webpack_require__(573);
+ var _PopupInner = __webpack_require__(556);
var _PopupInner2 = _interopRequireDefault(_PopupInner);
- var _LazyRenderBox = __webpack_require__(574);
+ var _LazyRenderBox = __webpack_require__(557);
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
@@ -79649,7 +75880,7 @@
module.exports = exports['default'];
/***/ }),
-/* 573 */
+/* 556 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -79668,7 +75899,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _LazyRenderBox = __webpack_require__(574);
+ var _LazyRenderBox = __webpack_require__(557);
var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
@@ -79736,7 +75967,7 @@
module.exports = exports['default'];
/***/ }),
-/* 574 */
+/* 557 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -79815,7 +76046,7 @@
module.exports = exports['default'];
/***/ }),
-/* 575 */
+/* 558 */
/***/ (function(module, exports) {
'use strict';
@@ -79850,7 +76081,7 @@
}
/***/ }),
-/* 576 */
+/* 559 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -79873,19 +76104,19 @@
var _tinperBeeCore = __webpack_require__(27);
- var _rcMenu = __webpack_require__(546);
+ var _rcMenu = __webpack_require__(529);
var _rcMenu2 = _interopRequireDefault(_rcMenu);
- var _domScrollIntoView = __webpack_require__(562);
+ var _domScrollIntoView = __webpack_require__(545);
var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView);
- var _raf = __webpack_require__(234);
+ var _raf = __webpack_require__(242);
var _raf2 = _interopRequireDefault(_raf);
- var _util = __webpack_require__(568);
+ var _util = __webpack_require__(551);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -80096,7 +76327,7 @@
module.exports = exports['default'];
/***/ }),
-/* 577 */
+/* 560 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -80183,7 +76414,7 @@
};
/***/ }),
-/* 578 */
+/* 561 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -80223,7 +76454,7 @@
module.exports = exports['default'];
/***/ }),
-/* 579 */
+/* 562 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -80232,23 +76463,17 @@
value: true
});
- var _InputNumber = __webpack_require__(580);
+ var _InputNumber = __webpack_require__(563);
var _InputNumber2 = _interopRequireDefault(_InputNumber);
- var _InputNumberGroup = __webpack_require__(581);
-
- var _InputNumberGroup2 = _interopRequireDefault(_InputNumberGroup);
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- _InputNumber2["default"].InputNumberGroup = _InputNumberGroup2["default"];
-
exports["default"] = _InputNumber2["default"];
module.exports = exports['default'];
/***/ }),
-/* 580 */
+/* 563 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -80267,11 +76492,11 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _beeInputGroup = __webpack_require__(530);
+ var _beeInputGroup = __webpack_require__(513);
var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
- var _beeFormControl = __webpack_require__(266);
+ var _beeFormControl = __webpack_require__(262);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
@@ -80307,13 +76532,13 @@
};
var defaultProps = {
- value: "",
+ value: 0,
step: 1,
clsPrefix: 'u-input-number',
iconStyle: 'double',
autoWidth: false,
delay: 300,
- toNumber: false
+ toNumber: true
};
/**
@@ -80331,59 +76556,27 @@
precision = props.precision,
onChange = props.onChange;
- if (value != undefined) {
- if (value === '') {
- currentValue = '';
- return {
- value: '',
- minusDisabled: false,
- plusDisabled: false
- };
- } else {
- currentValue = Number(value) || 0;
- }
- } else if (min && value != '') {
+ if (value) {
+ currentValue = Number(value) || 0;
+ } else if (min) {
currentValue = min;
- } else if (value === '0' || value === 0) {
+ } else if (value == 0) {
currentValue = 0;
} else {
//NaN
- if (oldValue || oldValue === 0 || oldValue === '0') {
+ if (oldValue || oldValue == 0) {
currentValue = oldValue;
- } else {
- //value为空
- return {
- value: '',
- minusDisabled: false,
- plusDisabled: false
- };
}
}
- if (currentValue == -Infinity) {
- return {
- value: min,
- minusDisabled: true,
- plusDisabled: false
- };
- }
- if (currentValue == Infinity) {
- return {
- value: max,
- minusDisabled: false,
- plusDisabled: true
- };
- }
if (currentValue <= min) {
currentMinusDisabled = true;
- currentValue = min;
}
if (currentValue >= max) {
currentPlusDisabled = true;
- currentValue = max;
}
if (props.hasOwnProperty('precision')) {
- currentValue = Number(currentValue).toFixed(precision);
+ currentValue = currentValue.toFixed(precision);
}
return {
@@ -80395,10 +76588,9 @@
/**
* 千分符
* @param {要转换的数据} num
+ * @param {是否要小数点} point
*/
- function toThousands(number) {
- if (number === '') return '';
- if (number === '0') return '0';
+ function toThousands(number, point) {
var num = (number || 0).toString();
var integer = num.split('.')[0];
var decimal = num.split('.')[1] || '';
@@ -80436,20 +76628,9 @@
_this.handleChange = function (value) {
var _this$props = _this.props,
onChange = _this$props.onChange,
- toNumber = _this$props.toNumber,
- max = _this$props.max,
- min = _this$props.min;
+ toNumber = _this$props.toNumber;
- if (value === '') {
- onChange && onChange(value);
- _this.setState({
- value: value
- });
- return;
- }
value = unThousands(value);
- if (Number(value) > max) return;
- if (Number(value) < min) return;
if (isNaN(value) && value != '.') return;
_this.setState({
value: value,
@@ -80477,6 +76658,7 @@
};
_this.handleBlur = function (v) {
+ v = unThousands(v);
_this.focus = false;
var _this$props3 = _this.props,
onBlur = _this$props3.onBlur,
@@ -80484,15 +76666,6 @@
onChange = _this$props3.onChange,
toNumber = _this$props3.toNumber;
- if (v === '') {
- _this.setState({
- value: v
- });
- onBlur && onBlur(v);
- onChange && onChange(v);
- return;
- }
- v = unThousands(v);
var value = Number(v);
if (precision) {
value = value.toFixed(precision);
@@ -80628,7 +76801,7 @@
};
_this.separate = function (value) {
- value = value !== null && value.toString();
+ value = value.toString();
if (value.indexOf('.') > -1) {
return value.split('.')[1];
} else {
@@ -80686,21 +76859,14 @@
return _this;
}
- InputNumber.prototype.componentDidMount = function componentDidMount() {
- this.setState({
- value: this.props.value,
- showValue: toThousands(this.props.value)
- });
- };
+ InputNumber.prototype.ComponentWillMount = function ComponentWillMount() {};
InputNumber.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
if (this.focus) {
- if (nextProps.value == Infinity || nextProps.value == -Infinity) {} else {
- this.setState({
- value: nextProps.value,
- showValue: toThousands(nextProps.value)
- });
- }
+ this.setState({
+ value: nextProps.value,
+ showValue: toThousands(nextProps.value)
+ });
} else {
var data = judgeValue(nextProps, this.state.value);
this.setState({
@@ -80772,7 +76938,7 @@
var disabledCon = disabled ? ' disabled-con' : '';
return _react2["default"].createElement(
'div',
- { className: clsPrefix + '-out' },
+ null,
iconStyle === 'double' ? _react2["default"].createElement(
_beeInputGroup2["default"],
{ className: (0, _classnames2["default"])(className, classes, disabledCon) },
@@ -80855,198 +77021,7 @@
module.exports = exports['default'];
/***/ }),
-/* 581 */
-/***/ (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 _react = __webpack_require__(1);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(6);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _InputNumber = __webpack_require__(580);
-
- var _InputNumber2 = _interopRequireDefault(_InputNumber);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); }
-
- var noop = function noop() {};
-
- var propsTypes = {
- clsfix: _propTypes2["default"].string,
- className: _propTypes2["default"].string,
- value: _propTypes2["default"].array,
- onChange: _propTypes2["default"].func,
- onBlur: _propTypes2["default"].func,
- onFocus: _propTypes2["default"].func,
- placeholder: _propTypes2["default"].array,
-
- max: _propTypes2["default"].number,
- min: _propTypes2["default"].number,
- step: _propTypes2["default"].number,
- precision: _propTypes2["default"].number,
- format: _propTypes2["default"].func,
- delay: _propTypes2["default"].number,
- disabled: _propTypes2["default"].bool,
- toThousands: _propTypes2["default"].bool,
- toNumber: _propTypes2["default"].bool
- };
-
- var defaultProps = {
- clsfix: 'u-input-number',
- className: '',
- value: [],
- placeholder: [],
- onChange: noop,
- onBlur: noop,
- onFocus: noop
- };
-
- var InputNumberGroup = function (_Component) {
- _inherits(InputNumberGroup, _Component);
-
- function InputNumberGroup(props) {
- _classCallCheck(this, InputNumberGroup);
-
- var _this = _possibleConstructorReturn(this, _Component.call(this, props));
-
- _this.onChange = function (index, v) {
- var value = _this.state.value;
-
- value[index] = v;
- _this.setState({
- value: value
- });
- _this.props.onChange(value);
- };
-
- _this.onFocus = function (index, v) {
- var value = _this.state.value;
-
- value[index] = v;
- _this.setState({
- value: value
- });
- _this.props.onFocus(value);
- };
-
- _this.onBlur = function (index, v) {
- var value = _this.state.value;
-
- if (index == 1) {
- if (v < value[0]) {
- console.warn('The second value must be greater than or equal to the first value');
- }
- }
- value[index] = v;
- _this.setState({
- value: value
- });
-
- _this.props.onBlur(value);
- };
-
- _this.state = {
- value: props.value || []
- };
- return _this;
- }
-
- InputNumberGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- if ('value' in nextProps) {
- this.setState({
- value: nextProps.value
- });
- }
- };
-
- InputNumberGroup.prototype.render = function render() {
- var _this2 = this;
-
- var _props = this.props,
- className = _props.className,
- clsfix = _props.clsfix,
- value = _props.value,
- onChange = _props.onChange,
- placeholder = _props.placeholder,
- split = _props.split,
- onBlur = _props.onBlur,
- onFocus = _props.onFocus,
- other = _objectWithoutProperties(_props, ['className', 'clsfix', 'value', 'onChange', 'placeholder', 'split', 'onBlur', 'onFocus']);
-
- var stateValue = this.state.value;
-
- return _react2["default"].createElement(
- 'div',
- { className: clsfix + '-group ' + className },
- _react2["default"].createElement(_InputNumber2["default"], _extends({
- onChange: function onChange(value) {
- _this2.onChange(0, value);
- },
- onBlur: function onBlur(value) {
- _this2.onBlur(0, value);
- },
- onFocus: function onFocus(value) {
- _this2.onFocus(0, value);
- },
- value: stateValue[0],
- placeholder: placeholder[0]
- }, other)),
- split ? split : _react2["default"].createElement(
- 'span',
- { className: clsfix + '-group-split' },
- '~'
- ),
- _react2["default"].createElement(_InputNumber2["default"], _extends({
- onChange: function onChange(value) {
- _this2.onChange(1, value);
- },
- onBlur: function onBlur(value) {
- _this2.onBlur(1, value);
- },
- onFocus: function onFocus(value) {
- _this2.onFocus(1, value);
- },
- value: stateValue[1],
- placeholder: placeholder[1]
- }, other))
- );
- };
-
- return InputNumberGroup;
- }(_react.Component);
-
- InputNumberGroup.displayName = 'InputNumberGroup';
-
-
- InputNumberGroup.propsTypes = propsTypes;
- InputNumberGroup.defaultProps = defaultProps;
-
- exports["default"] = InputNumberGroup;
- module.exports = exports['default'];
-
-/***/ }),
-/* 582 */
+/* 564 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81063,27 +77038,27 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _beeDropdown = __webpack_require__(583);
+ var _beeDropdown = __webpack_require__(565);
var _beeDropdown2 = _interopRequireDefault(_beeDropdown);
- var _beeMenus = __webpack_require__(586);
+ var _beeMenus = __webpack_require__(568);
var _beeMenus2 = _interopRequireDefault(_beeMenus);
- var _beeButton = __webpack_require__(264);
+ var _beeButton = __webpack_require__(260);
var _beeButton2 = _interopRequireDefault(_beeButton);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
- var _i18n = __webpack_require__(602);
+ var _i18n = __webpack_require__(584);
var _i18n2 = _interopRequireDefault(_i18n);
- var _tool = __webpack_require__(120);
+ var _tool = __webpack_require__(132);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -81093,8 +77068,8 @@
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) : _defaults(subClass, superClass); } /**
- * 过滤行功能内的下拉条件
+ 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) : _defaults(subClass, superClass); } /**
+ * 过滤行功能内的下拉条件
*/
var Item = _beeMenus2['default'].Item;
@@ -81295,23 +77270,23 @@
};
return _this;
}
- /**
- * 点击下拉菜单
- *
- * @param {*} s 选中的selectRecord
+ /**
+ * 点击下拉菜单
+ *
+ * @param {*} s 选中的selectRecord
*/
- /**
- * 清除事件
- *
+ /**
+ * 清除事件
+ *
*/
- /**
- * 根据props来获得指定的Menu,分为String和Number
- *
- * @returns JSX Menu
+ /**
+ * 根据props来获得指定的Menu,分为String和Number
+ *
+ * @returns JSX Menu
*/
@@ -81368,7 +77343,7 @@
module.exports = exports['default'];
/***/ }),
-/* 583 */
+/* 565 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81377,7 +77352,7 @@
value: true
});
- var _Dropdown = __webpack_require__(584);
+ var _Dropdown = __webpack_require__(566);
var _Dropdown2 = _interopRequireDefault(_Dropdown);
@@ -81387,7 +77362,7 @@
module.exports = exports['default'];
/***/ }),
-/* 584 */
+/* 566 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81406,11 +77381,11 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _trigger = __webpack_require__(570);
+ var _trigger = __webpack_require__(553);
var _trigger2 = _interopRequireDefault(_trigger);
- var _placement = __webpack_require__(585);
+ var _placement = __webpack_require__(567);
var _placement2 = _interopRequireDefault(_placement);
@@ -81534,6 +77509,7 @@
return _react2["default"].cloneElement(overlay, {
prefixCls: clsPrefix + '-menu',
+ clsPrefix: clsPrefix + '-menu',
onClick: this.onClick
});
};
@@ -81568,10 +77544,7 @@
trigger = _props2.trigger,
getDocument = _props2.getDocument,
disabled = _props2.disabled,
- delay = _props2.delay,
- delayShow = _props2.delayShow,
- delayHide = _props2.delayHide,
- props = _objectWithoutProperties(_props2, ['clsPrefix', 'children', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger', 'getDocument', 'disabled', 'delay', 'delayShow', 'delayHide']);
+ props = _objectWithoutProperties(_props2, ['clsPrefix', 'children', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger', 'getDocument', 'disabled']);
return _react2["default"].createElement(
_trigger2["default"],
@@ -81593,9 +77566,7 @@
popup: this.getMenuElement(),
onPopupVisibleChange: this.onVisibleChange,
getPopupContainer: getPopupContainer,
- getDocument: getDocument,
- mouseEnterDelay: delayShow && delayShow / 1000 || delay && delay / 1000,
- mouseLeaveDelay: delayHide && delayHide / 1000 || delay && delay / 1000
+ getDocument: getDocument
}),
children
);
@@ -81613,7 +77584,7 @@
module.exports = exports['default'];
/***/ }),
-/* 585 */
+/* 567 */
/***/ (function(module, exports) {
'use strict';
@@ -81670,7 +77641,7 @@
exports["default"] = placements;
/***/ }),
-/* 586 */
+/* 568 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81679,7 +77650,7 @@
value: true
});
- var _VerticalMenu = __webpack_require__(587);
+ var _VerticalMenu = __webpack_require__(569);
var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu);
@@ -81689,7 +77660,7 @@
module.exports = exports['default'];
/***/ }),
-/* 587 */
+/* 569 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81704,15 +77675,15 @@
var _react2 = _interopRequireDefault(_react);
- var _ExportMenu = __webpack_require__(588);
+ var _ExportMenu = __webpack_require__(570);
var _ExportMenu2 = _interopRequireDefault(_ExportMenu);
- var _openAnimation = __webpack_require__(600);
+ var _openAnimation = __webpack_require__(582);
var _openAnimation2 = _interopRequireDefault(_openAnimation);
- var _warning = __webpack_require__(601);
+ var _warning = __webpack_require__(583);
var _warning2 = _interopRequireDefault(_warning);
@@ -81845,7 +77816,7 @@
module.exports = exports['default'];
/***/ }),
-/* 588 */
+/* 570 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81855,31 +77826,31 @@
});
exports.MenuToggle = exports.SideContainer = exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined;
- var _Menu = __webpack_require__(589);
+ var _Menu = __webpack_require__(571);
var _Menu2 = _interopRequireDefault(_Menu);
- var _SubMenu = __webpack_require__(593);
+ var _SubMenu = __webpack_require__(575);
var _SubMenu2 = _interopRequireDefault(_SubMenu);
- var _MenuItem = __webpack_require__(595);
+ var _MenuItem = __webpack_require__(577);
var _MenuItem2 = _interopRequireDefault(_MenuItem);
- var _MenuItemGroup = __webpack_require__(596);
+ var _MenuItemGroup = __webpack_require__(578);
var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup);
- var _Divider = __webpack_require__(597);
+ var _Divider = __webpack_require__(579);
var _Divider2 = _interopRequireDefault(_Divider);
- var _SideContainer = __webpack_require__(598);
+ var _SideContainer = __webpack_require__(580);
var _SideContainer2 = _interopRequireDefault(_SideContainer);
- var _MenuToggle = __webpack_require__(599);
+ var _MenuToggle = __webpack_require__(581);
var _MenuToggle2 = _interopRequireDefault(_MenuToggle);
@@ -81900,7 +77871,7 @@
exports["default"] = _Menu2["default"];
/***/ }),
-/* 589 */
+/* 571 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -81923,13 +77894,13 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _SubPopupMenu = __webpack_require__(590);
+ var _SubPopupMenu = __webpack_require__(572);
var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);
- var _util = __webpack_require__(591);
+ var _util = __webpack_require__(573);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -82189,7 +78160,7 @@
};
this.focus = function () {
- // fireKeyEvent(ReactDOM.findDOMNode(this.innerMenu),'keydown',40);
+ (0, _util.fireKeyEvent)(_reactDom2["default"].findDOMNode(_this3.innerMenu), 'keydown', 40);
_this3.props.onFocus && _this3.props.onFocus();
};
};
@@ -82198,7 +78169,7 @@
module.exports = exports['default'];
/***/ }),
-/* 590 */
+/* 572 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -82225,11 +78196,11 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
var _tinperBeeCore = __webpack_require__(27);
- var _createChainedFunction = __webpack_require__(447);
+ var _createChainedFunction = __webpack_require__(443);
var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
@@ -82237,9 +78208,9 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _util = __webpack_require__(591);
+ var _util = __webpack_require__(573);
- var _DOMWrap = __webpack_require__(592);
+ var _DOMWrap = __webpack_require__(574);
var _DOMWrap2 = _interopRequireDefault(_DOMWrap);
@@ -82384,7 +78355,7 @@
}
if (props.focusable) {
domProps.tabIndex = this.props.tabIndex;
- domProps.onKeyDown = props.keyboard && this.onKeyDown;
+ domProps.onKeyDown = this.onKeyDown;
}
var prefixCls = props.prefixCls,
eventKey = props.eventKey,
@@ -82647,7 +78618,7 @@
exports["default"] = connected;
/***/ }),
-/* 591 */
+/* 573 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -82774,7 +78745,7 @@
}
/***/ }),
-/* 592 */
+/* 574 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -82797,15 +78768,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _resizeObserverPolyfill = __webpack_require__(557);
+ var _resizeObserverPolyfill = __webpack_require__(540);
var _resizeObserverPolyfill2 = _interopRequireDefault(_resizeObserverPolyfill);
- var _SubMenu = __webpack_require__(593);
+ var _SubMenu = __webpack_require__(575);
var _SubMenu2 = _interopRequireDefault(_SubMenu);
- var _util = __webpack_require__(591);
+ var _util = __webpack_require__(573);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -82831,7 +78802,7 @@
// Fix ssr
if (canUseDOM) {
- __webpack_require__(560);
+ __webpack_require__(543);
}
var DOMWrap = function (_React$Component) {
@@ -83149,7 +79120,7 @@
module.exports = exports['default'];
/***/ }),
-/* 593 */
+/* 575 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -83179,7 +79150,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _rcTrigger = __webpack_require__(449);
+ var _rcTrigger = __webpack_require__(445);
var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
@@ -83189,21 +79160,21 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _SubPopupMenu = __webpack_require__(590);
+ var _SubPopupMenu = __webpack_require__(572);
var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);
- var _placements = __webpack_require__(594);
+ var _placements = __webpack_require__(576);
var _placements2 = _interopRequireDefault(_placements);
- var _rcAnimate = __webpack_require__(500);
+ var _rcAnimate = __webpack_require__(499);
var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
- var _util = __webpack_require__(591);
+ var _util = __webpack_require__(573);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -83798,7 +79769,7 @@
exports["default"] = connected;
/***/ }),
-/* 594 */
+/* 576 */
/***/ (function(module, exports) {
'use strict';
@@ -83841,7 +79812,7 @@
exports["default"] = placements;
/***/ }),
-/* 595 */
+/* 577 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -83871,13 +79842,13 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _domScrollIntoView = __webpack_require__(562);
+ var _domScrollIntoView = __webpack_require__(545);
var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView);
- var _miniStore = __webpack_require__(548);
+ var _miniStore = __webpack_require__(531);
- var _util = __webpack_require__(591);
+ var _util = __webpack_require__(573);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -84121,7 +80092,7 @@
exports["default"] = connected;
/***/ }),
-/* 596 */
+/* 578 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84140,7 +80111,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _util = __webpack_require__(591);
+ var _util = __webpack_require__(573);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -84238,7 +80209,7 @@
module.exports = exports['default'];
/***/ }),
-/* 597 */
+/* 579 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84308,7 +80279,7 @@
module.exports = exports['default'];
/***/ }),
-/* 598 */
+/* 580 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84382,7 +80353,7 @@
module.exports = exports['default'];
/***/ }),
-/* 599 */
+/* 581 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84540,7 +80511,7 @@
module.exports = exports['default'];
/***/ }),
-/* 600 */
+/* 582 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84588,7 +80559,7 @@
module.exports = exports['default'];
/***/ }),
-/* 601 */
+/* 583 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84615,7 +80586,7 @@
module.exports = exports['default'];
/***/ }),
-/* 602 */
+/* 584 */
/***/ (function(module, exports) {
'use strict';
@@ -84671,7 +80642,7 @@
};
/***/ }),
-/* 603 */
+/* 585 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -84686,15 +80657,15 @@
var _react2 = _interopRequireDefault(_react);
- var _Column = __webpack_require__(604);
+ var _Column = __webpack_require__(586);
var _Column2 = _interopRequireDefault(_Column);
- var _ColumnGroup = __webpack_require__(605);
+ var _ColumnGroup = __webpack_require__(587);
var _ColumnGroup2 = _interopRequireDefault(_ColumnGroup);
- var _beeIcon = __webpack_require__(67);
+ var _beeIcon = __webpack_require__(106);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -85007,7 +80978,7 @@
module.exports = exports['default'];
/***/ }),
-/* 604 */
+/* 586 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -85067,7 +81038,7 @@
module.exports = exports['default'];
/***/ }),
-/* 605 */
+/* 587 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -85111,7 +81082,7 @@
module.exports = exports['default'];
/***/ }),
-/* 606 */
+/* 588 */
/***/ (function(module, exports) {
"use strict";
@@ -85156,7 +81127,7 @@
module.exports = exports["default"];
/***/ }),
-/* 607 */
+/* 589 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -85165,7 +81136,7 @@
value: true
});
- var _Loading = __webpack_require__(608);
+ var _Loading = __webpack_require__(590);
var _Loading2 = _interopRequireDefault(_Loading);
@@ -85175,7 +81146,7 @@
module.exports = exports['default'];
/***/ }),
-/* 608 */
+/* 590 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -85196,7 +81167,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _Portal = __webpack_require__(100);
+ var _Portal = __webpack_require__(112);
var _Portal2 = _interopRequireDefault(_Portal);
@@ -85396,7 +81367,7 @@
module.exports = exports["default"];
/***/ }),
-/* 609 */
+/* 591 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -85409,9 +81380,9 @@
var _react2 = _interopRequireDefault(_react);
- var _tinperBee = __webpack_require__(610);
+ var _tinperBee = __webpack_require__(592);
- var _src = __webpack_require__(268);
+ var _src = __webpack_require__(264);
var _src2 = _interopRequireDefault(_src);
@@ -85423,12 +81394,12 @@
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) : _defaults(subClass, superClass); } /**
- *
- * @title 基本表格
- * @parent 基础 Basic
- * @description 单元格数据过长时,可结合Tooltip组件使用。
- * demo0101
+ 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) : _defaults(subClass, superClass); } /**
+ *
+ * @title 基本表格
+ * @parent 基础 Basic
+ * @description 单元格数据过长时,可结合Tooltip组件使用。
+ * demo0101
*/
var columns = [{ title: "员工编号", dataIndex: "a", key: "a", width: 150 }, { title: "员工姓名", dataIndex: "b", key: "b", width: 100 }, { title: "性别", dataIndex: "c", key: "c", width: 100 }, { title: "部门", dataIndex: "d", key: "d", width: 100 }, { title: "职级", dataIndex: "e", key: "e", width: 100 }];
@@ -85458,21 +81429,21 @@
module.exports = exports["default"];
/***/ }),
-/* 610 */
+/* 592 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
if (process.env.NODE_ENV === 'production') {
- module.exports = __webpack_require__(611);
+ module.exports = __webpack_require__(593);
} else {
- module.exports = __webpack_require__(611);
+ module.exports = __webpack_require__(593);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(33)))
/***/ }),
-/* 611 */
+/* 593 */
/***/ (function(module, exports, __webpack_require__) {
(function webpackUniversalModuleDefinition(root, factory) {
@@ -85547,7 +81518,7 @@
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 565);
+ /******/ return __webpack_require__(__webpack_require__.s = 563);
/******/ })
/************************************************************************/
/******/ ([
@@ -87483,7 +83454,7 @@
try {
oldLocale = globalLocale._abbr;
var aliasedRequire = require;
- __webpack_require__(1346)("./" + name);
+ __webpack_require__(1335)("./" + name);
getSetGlobalLocale(oldLocale);
} catch (e) {}
}
@@ -90234,7 +86205,7 @@
})));
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(241)(module)))
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(238)(module)))
/***/ }),
/* 5 */
@@ -90260,7 +86231,7 @@
exports.__esModule = true;
- var _typeof2 = __webpack_require__(48);
+ var _typeof2 = __webpack_require__(46);
var _typeof3 = _interopRequireDefault(_typeof2);
@@ -90283,15 +86254,15 @@
exports.__esModule = true;
- var _setPrototypeOf = __webpack_require__(789);
+ var _setPrototypeOf = __webpack_require__(788);
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
- var _create = __webpack_require__(793);
+ var _create = __webpack_require__(792);
var _create2 = _interopRequireDefault(_create);
- var _typeof2 = __webpack_require__(48);
+ var _typeof2 = __webpack_require__(46);
var _typeof3 = _interopRequireDefault(_typeof2);
@@ -90322,7 +86293,7 @@
exports.__esModule = true;
- var _assign = __webpack_require__(605);
+ var _assign = __webpack_require__(603);
var _assign2 = _interopRequireDefault(_assign);
@@ -90609,9 +86580,9 @@
*/
try {
- var index = __webpack_require__(243);
+ var index = __webpack_require__(240);
} catch (err) {
- var index = __webpack_require__(243);
+ var index = __webpack_require__(240);
}
/**
@@ -90799,6 +86770,63 @@
/***/ }),
/* 12 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, '__esModule', {
+ value: true
+ });
+ exports['default'] = addEventListener;
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var _EventObject = __webpack_require__(758);
+
+ var _EventObject2 = _interopRequireDefault(_EventObject);
+
+ function addEventListener(target, eventType, callback, option) {
+ function wrapCallback(e) {
+ var ne = new _EventObject2['default'](e);
+ callback.call(target, ne);
+ }
+
+ if (target.addEventListener) {
+ var _ret = (function () {
+ var useCapture = false;
+ if (typeof option === 'object') {
+ useCapture = option.capture || false;
+ } else if (typeof option === 'boolean') {
+ useCapture = option;
+ }
+
+ target.addEventListener(eventType, wrapCallback, option || false);
+
+ return {
+ v: {
+ remove: function remove() {
+ target.removeEventListener(eventType, wrapCallback, useCapture);
+ }
+ }
+ };
+ })();
+
+ if (typeof _ret === 'object') return _ret.v;
+ } else if (target.attachEvent) {
+ target.attachEvent('on' + eventType, wrapCallback);
+ return {
+ remove: function remove() {
+ target.detachEvent('on' + eventType, wrapCallback);
+ }
+ };
+ }
+ }
+
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 13 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -90964,71 +86992,14 @@
- /***/ }),
- /* 13 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
- exports['default'] = addEventListener;
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
-
- var _EventObject = __webpack_require__(759);
-
- var _EventObject2 = _interopRequireDefault(_EventObject);
-
- function addEventListener(target, eventType, callback, option) {
- function wrapCallback(e) {
- var ne = new _EventObject2['default'](e);
- callback.call(target, ne);
- }
-
- if (target.addEventListener) {
- var _ret = (function () {
- var useCapture = false;
- if (typeof option === 'object') {
- useCapture = option.capture || false;
- } else if (typeof option === 'boolean') {
- useCapture = option;
- }
-
- target.addEventListener(eventType, wrapCallback, option || false);
-
- return {
- v: {
- remove: function remove() {
- target.removeEventListener(eventType, wrapCallback, useCapture);
- }
- }
- };
- })();
-
- if (typeof _ret === 'object') return _ret.v;
- } else if (target.attachEvent) {
- target.attachEvent('on' + eventType, wrapCallback);
- return {
- remove: function remove() {
- target.detachEvent('on' + eventType, wrapCallback);
- }
- };
- }
- }
-
- module.exports = exports['default'];
-
/***/ }),
/* 14 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__align_alignElement__ = __webpack_require__(764);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__align_alignPoint__ = __webpack_require__(770);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__align_alignElement__ = __webpack_require__(763);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__align_alignPoint__ = __webpack_require__(769);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return __WEBPACK_IMPORTED_MODULE_0__align_alignElement__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return __WEBPACK_IMPORTED_MODULE_1__align_alignPoint__["a"]; });
@@ -91061,26 +87032,6 @@
/***/ }),
/* 16 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Icon = __webpack_require__(577);
-
- var _Icon2 = _interopRequireDefault(_Icon);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Icon2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 17 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -91093,7 +87044,7 @@
/* harmony export (immutable) */ __webpack_exports__["c"] = deepMerge;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof__ = __webpack_require__(48);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof__ = __webpack_require__(46);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof__);
@@ -91285,6 +87236,26 @@
}
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(9)))
+ /***/ }),
+ /* 17 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Icon = __webpack_require__(575);
+
+ var _Icon2 = _interopRequireDefault(_Icon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Icon2["default"];
+ module.exports = exports['default'];
+
/***/ }),
/* 18 */
/***/ (function(module, exports) {
@@ -91309,15 +87280,15 @@
});
exports.create = exports.connect = exports.Provider = undefined;
- var _Provider2 = __webpack_require__(795);
+ var _Provider2 = __webpack_require__(794);
var _Provider3 = _interopRequireDefault(_Provider2);
- var _connect2 = __webpack_require__(796);
+ var _connect2 = __webpack_require__(795);
var _connect3 = _interopRequireDefault(_connect2);
- var _create2 = __webpack_require__(799);
+ var _create2 = __webpack_require__(798);
var _create3 = _interopRequireDefault(_create2);
@@ -91329,6 +87300,33 @@
/***/ }),
/* 20 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__required__ = __webpack_require__(226);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__whitespace__ = __webpack_require__(645);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__type__ = __webpack_require__(646);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__range__ = __webpack_require__(647);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__enum__ = __webpack_require__(648);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pattern__ = __webpack_require__(649);
+
+
+
+
+
+
+
+ /* harmony default export */ __webpack_exports__["a"] = ({
+ required: __WEBPACK_IMPORTED_MODULE_0__required__["a" /* default */],
+ whitespace: __WEBPACK_IMPORTED_MODULE_1__whitespace__["a" /* default */],
+ type: __WEBPACK_IMPORTED_MODULE_2__type__["a" /* default */],
+ range: __WEBPACK_IMPORTED_MODULE_3__range__["a" /* default */],
+ 'enum': __WEBPACK_IMPORTED_MODULE_4__enum__["a" /* default */],
+ pattern: __WEBPACK_IMPORTED_MODULE_5__pattern__["a" /* default */]
+ });
+
+ /***/ }),
+ /* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -91339,7 +87337,7 @@
exports.__esModule = true;
exports.default = void 0;
- var _inDOM = _interopRequireDefault(__webpack_require__(54));
+ var _inDOM = _interopRequireDefault(__webpack_require__(52));
var on = function on() {};
@@ -91362,33 +87360,6 @@
exports.default = _default;
module.exports = exports["default"];
- /***/ }),
- /* 21 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__required__ = __webpack_require__(228);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__whitespace__ = __webpack_require__(647);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__type__ = __webpack_require__(648);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__range__ = __webpack_require__(649);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__enum__ = __webpack_require__(650);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pattern__ = __webpack_require__(651);
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- required: __WEBPACK_IMPORTED_MODULE_0__required__["a" /* default */],
- whitespace: __WEBPACK_IMPORTED_MODULE_1__whitespace__["a" /* default */],
- type: __WEBPACK_IMPORTED_MODULE_2__type__["a" /* default */],
- range: __WEBPACK_IMPORTED_MODULE_3__range__["a" /* default */],
- 'enum': __WEBPACK_IMPORTED_MODULE_4__enum__["a" /* default */],
- pattern: __WEBPACK_IMPORTED_MODULE_5__pattern__["a" /* default */]
- });
-
/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {
@@ -91397,24 +87368,8 @@
exports.__esModule = true;
- exports.default = ownerDocument;
- function ownerDocument(node) {
- return node && node.ownerDocument || document;
- }
-
- module.exports = exports["default"];
-
- /***/ }),
- /* 23 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _defineProperty = __webpack_require__(214);
+ var _defineProperty = __webpack_require__(212);
var _defineProperty2 = _interopRequireDefault(_defineProperty);
@@ -91438,6 +87393,22 @@
};
}();
+ /***/ }),
+ /* 23 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = ownerDocument;
+
+ function ownerDocument(node) {
+ return node && node.ownerDocument || document;
+ }
+
+ module.exports = exports["default"];
+
/***/ }),
/* 24 */
/***/ (function(module, exports) {
@@ -91450,7 +87421,7 @@
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(827)
+ /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(826)
, root = typeof window === 'undefined' ? global : window
, vendors = ['moz', 'webkit']
, suffix = 'AnimationFrame'
@@ -91526,7 +87497,7 @@
object.cancelAnimationFrame = caf
}
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(36)))
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(37)))
/***/ }),
/* 26 */
@@ -92056,9 +88027,48 @@
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__(128)('wks');
- var uid = __webpack_require__(90);
- var Symbol = __webpack_require__(34).Symbol;
+ "use strict";
+
+
+ var _interopRequireDefault = __webpack_require__(18);
+
+ exports.__esModule = true;
+ exports.default = void 0;
+
+ var _inDOM = _interopRequireDefault(__webpack_require__(52));
+
+ var _default = function () {
+ // HTML DOM and SVG DOM may have different support levels,
+ // so we need to check on context instead of a document root element.
+ return _inDOM.default ? function (context, node) {
+ if (context.contains) {
+ return context.contains(node);
+ } else if (context.compareDocumentPosition) {
+ return context === node || !!(context.compareDocumentPosition(node) & 16);
+ } else {
+ return fallback(context, node);
+ }
+ } : fallback;
+ }();
+
+ exports.default = _default;
+
+ function fallback(context, node) {
+ if (node) do {
+ if (node === context) return true;
+ } while (node = node.parentNode);
+ return false;
+ }
+
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 28 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var store = __webpack_require__(127)('wks');
+ var uid = __webpack_require__(89);
+ var Symbol = __webpack_require__(35).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
@@ -92070,18 +88080,18 @@
/***/ }),
- /* 28 */
+ /* 29 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(45);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(43);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(23);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
@@ -92091,9 +88101,9 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ChildrenUtils__ = __webpack_require__(805);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__AnimateChild__ = __webpack_require__(806);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__util_animate__ = __webpack_require__(257);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ChildrenUtils__ = __webpack_require__(804);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__AnimateChild__ = __webpack_require__(805);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__util_animate__ = __webpack_require__(254);
@@ -92446,127 +88456,168 @@
/* harmony default export */ __webpack_exports__["default"] = (Animate);
- /***/ }),
- /* 29 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- var _interopRequireDefault = __webpack_require__(18);
-
- exports.__esModule = true;
- exports.default = void 0;
-
- var _inDOM = _interopRequireDefault(__webpack_require__(54));
-
- var _default = function () {
- // HTML DOM and SVG DOM may have different support levels,
- // so we need to check on context instead of a document root element.
- return _inDOM.default ? function (context, node) {
- if (context.contains) {
- return context.contains(node);
- } else if (context.compareDocumentPosition) {
- return context === node || !!(context.compareDocumentPosition(node) & 16);
- } else {
- return fallback(context, node);
- }
- } : fallback;
- }();
-
- exports.default = _default;
-
- function fallback(context, node) {
- if (node) do {
- if (node === context) return true;
- } while (node = node.parentNode);
- return false;
- }
-
- module.exports = exports["default"];
-
/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1428);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1429);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1430);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1431);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1432);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1433);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1434);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1435);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1436);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(508);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1437);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1439);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1440);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1423);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1424);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1425);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1426);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1427);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1428);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1429);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1430);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1431);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(502);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1432);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1434);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1435);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
exports.Align = _Align3.default;
/***/ }),
/* 31 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1650);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1651);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1652);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1653);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1654);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1655);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1656);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1657);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1658);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(535);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1659);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1661);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(536);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
+ /***/ }),
+ /* 32 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92593,12 +88644,12 @@
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return conductCheck; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning__ = __webpack_require__(1745);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning__ = __webpack_require__(1741);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_warning__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__ = __webpack_require__(209);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__ = __webpack_require__(207);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_util_es_Children_toArray__ = __webpack_require__(72);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__ = __webpack_require__(1746);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__strategies__ = __webpack_require__(210);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_util_es_Dom_class__ = __webpack_require__(1742);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__strategies__ = __webpack_require__(208);
function _extends() { _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; }; return _extends.apply(this, arguments); }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
@@ -93044,7 +89095,7 @@
var conductCheck = __WEBPACK_IMPORTED_MODULE_2_rc_tree_es_util__["e" /* conductCheck */];
/***/ }),
- /* 32 */
+ /* 33 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -93087,9 +89138,7 @@
function getTodayTime(value) {
var today = (0, _moment2["default"])();
- if (typeof value !== 'undefined') {
- today.locale(value.locale()).utcOffset(value.utcOffset());
- }
+ today.locale(value.locale()).utcOffset(value.utcOffset());
return today;
}
@@ -93175,14 +89224,14 @@
}
/***/ }),
- /* 33 */
+ /* 34 */
/***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(34);
+ var global = __webpack_require__(35);
var core = __webpack_require__(24);
- var ctx = __webpack_require__(122);
+ var ctx = __webpack_require__(121);
var hide = __webpack_require__(58);
- var has = __webpack_require__(47);
+ var has = __webpack_require__(45);
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
@@ -93243,7 +89292,7 @@
/***/ }),
- /* 34 */
+ /* 35 */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
@@ -93255,15 +89304,15 @@
/***/ }),
- /* 35 */
+ /* 36 */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(59);
- var IE8_DOM_DEFINE = __webpack_require__(215);
- var toPrimitive = __webpack_require__(123);
+ var IE8_DOM_DEFINE = __webpack_require__(213);
+ var toPrimitive = __webpack_require__(122);
var dP = Object.defineProperty;
- exports.f = __webpack_require__(46) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+ exports.f = __webpack_require__(44) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
@@ -93277,34 +89326,2116 @@
/***/ }),
- /* 36 */
+ /* 37 */
/***/ (function(module, exports) {
- var g;
-
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
-
- try {
- // This works if eval is allowed (see CSP)
- g = g || Function("return this")() || (1,eval)("this");
- } catch(e) {
- // This works if the window reference is available
- if(typeof window === "object")
- g = window;
- }
-
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
-
- module.exports = g;
+ var g;
+
+ // This works in non-strict mode
+ g = (function() {
+ return this;
+ })();
+
+ try {
+ // This works if eval is allowed (see CSP)
+ g = g || Function("return this")() || (1,eval)("this");
+ } catch(e) {
+ // This works if the window reference is available
+ if(typeof window === "object")
+ g = window;
+ }
+
+ // g can still be undefined, but nothing to do about it...
+ // We return undefined, instead of nothing here, so it's
+ // easier to handle this case. if(!global) { ...}
+
+ module.exports = g;
/***/ }),
- /* 37 */
+ /* 38 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony export (immutable) */ __webpack_exports__["a"] = contains;
+ function contains(root, n) {
+ var node = n;
+ while (node) {
+ if (node === root) {
+ return true;
+ }
+ node = node.parentNode;
+ }
+
+ return false;
+ }
+
+ /***/ }),
+ /* 39 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony export (immutable) */ __webpack_exports__["a"] = addEventListenerWrap;
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__ = __webpack_require__(12);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
+
+
+
+ function addEventListenerWrap(target, eventType, cb, option) {
+ /* eslint camelcase: 2 */
+ var callback = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates ? function run(e) {
+ __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default()(target, eventType, callback, option);
+ }
+
+ /***/ }),
+ /* 40 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ module.exports = __webpack_require__(811);
+
+ /***/ }),
+ /* 41 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var _interopRequireDefault = __webpack_require__(18);
+
+ exports.__esModule = true;
+ exports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0;
+
+ var _inDOM = _interopRequireDefault(__webpack_require__(52));
+
+ var transform = 'transform';
+ exports.transform = transform;
+ var prefix, transitionEnd, animationEnd;
+ exports.animationEnd = animationEnd;
+ exports.transitionEnd = transitionEnd;
+ var transitionProperty, transitionDuration, transitionTiming, transitionDelay;
+ exports.transitionDelay = transitionDelay;
+ exports.transitionTiming = transitionTiming;
+ exports.transitionDuration = transitionDuration;
+ exports.transitionProperty = transitionProperty;
+ var animationName, animationDuration, animationTiming, animationDelay;
+ exports.animationDelay = animationDelay;
+ exports.animationTiming = animationTiming;
+ exports.animationDuration = animationDuration;
+ exports.animationName = animationName;
+
+ if (_inDOM.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";
+ }
+
+ var _default = {
+ transform: transform,
+ end: transitionEnd,
+ property: transitionProperty,
+ timing: transitionTiming,
+ delay: transitionDelay,
+ duration: transitionDuration
+ };
+ exports.default = _default;
+
+ 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;
+ }
+ };
+ var vendors = Object.keys(vendorMap);
+ var transitionEnd, animationEnd;
+ var prefix = '';
+
+ 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 (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';
+ if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';
+ style = null;
+ return {
+ animationEnd: animationEnd,
+ transitionEnd: transitionEnd,
+ prefix: prefix
+ };
+ }
+
+ /***/ }),
+ /* 42 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 43 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+
+ var _defineProperty = __webpack_require__(212);
+
+ var _defineProperty2 = _interopRequireDefault(_defineProperty);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function (obj, key, value) {
+ if (key in obj) {
+ (0, _defineProperty2.default)(obj, key, {
+ value: value,
+ enumerable: true,
+ configurable: true,
+ writable: true
+ });
+ } else {
+ obj[key] = value;
+ }
+
+ return obj;
+ };
+
+ /***/ }),
+ /* 44 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ // Thank's IE8 for his funny defineProperty
+ module.exports = !__webpack_require__(61)(function () {
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
+ });
+
+
+ /***/ }),
+ /* 45 */
+ /***/ (function(module, exports) {
+
+ var hasOwnProperty = {}.hasOwnProperty;
+ module.exports = function (it, key) {
+ return hasOwnProperty.call(it, key);
+ };
+
+
+ /***/ }),
+ /* 46 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+
+ var _iterator = __webpack_require__(627);
+
+ var _iterator2 = _interopRequireDefault(_iterator);
+
+ var _symbol = __webpack_require__(633);
+
+ var _symbol2 = _interopRequireDefault(_symbol);
+
+ var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
+ return typeof obj === "undefined" ? "undefined" : _typeof(obj);
+ } : function (obj) {
+ return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
+ };
+
+ /***/ }),
+ /* 47 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__propertyUtils__ = __webpack_require__(764);
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+
+
+ var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
+
+ var getComputedStyleX = void 0;
+
+ // https://stackoverflow.com/a/3485654/3040605
+ function forceRelayout(elem) {
+ var originalStyle = elem.style.display;
+ elem.style.display = 'none';
+ elem.offsetHeight; // eslint-disable-line
+ elem.style.display = originalStyle;
+ }
+
+ function css(el, name, v) {
+ var value = v;
+ if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
+ for (var i in name) {
+ if (name.hasOwnProperty(i)) {
+ css(el, i, name[i]);
+ }
+ }
+ return undefined;
+ }
+ if (typeof value !== 'undefined') {
+ if (typeof value === 'number') {
+ value = value + 'px';
+ }
+ el.style[name] = value;
+ return undefined;
+ }
+ return getComputedStyleX(el, name);
+ }
+
+ function getClientPosition(elem) {
+ var box = void 0;
+ var x = void 0;
+ var y = void 0;
+ var doc = elem.ownerDocument;
+ var body = doc.body;
+ var docElem = doc && doc.documentElement;
+ // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
+ box = elem.getBoundingClientRect();
+
+ // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
+ // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
+ // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
+
+ x = box.left;
+ y = box.top;
+
+ // In IE, most of the time, 2 extra pixels are added to the top and left
+ // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
+ // IE6 standards mode, this border can be overridden by setting the
+ // document element's border to zero -- thus, we cannot rely on the
+ // offset always being 2 pixels.
+
+ // In quirks mode, the offset can be determined by querying the body's
+ // clientLeft/clientTop, but in standards mode, it is found by querying
+ // the document element's clientLeft/clientTop. Since we already called
+ // getClientBoundingRect we have already forced a reflow, so it is not
+ // too expensive just to query them all.
+
+ // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
+ // 窗口边框标准是设 documentElement ,quirks 时设置 body
+ // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
+ // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
+ // 标准 ie 下 docElem.clientTop 就是 border-top
+ // ie7 html 即窗口边框改变不了。永远为 2
+ // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
+
+ x -= docElem.clientLeft || body.clientLeft || 0;
+ y -= docElem.clientTop || body.clientTop || 0;
+
+ return {
+ left: x,
+ top: y
+ };
+ }
+
+ function getScroll(w, top) {
+ var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
+ var method = 'scroll' + (top ? 'Top' : 'Left');
+ if (typeof ret !== 'number') {
+ var d = w.document;
+ // ie6,7,8 standard mode
+ ret = d.documentElement[method];
+ if (typeof ret !== 'number') {
+ // quirks mode
+ ret = d.body[method];
+ }
+ }
+ return ret;
+ }
+
+ function getScrollLeft(w) {
+ return getScroll(w);
+ }
+
+ function getScrollTop(w) {
+ return getScroll(w, true);
+ }
+
+ function getOffset(el) {
+ var pos = getClientPosition(el);
+ var doc = el.ownerDocument;
+ var w = doc.defaultView || doc.parentWindow;
+ pos.left += getScrollLeft(w);
+ pos.top += getScrollTop(w);
+ return pos;
+ }
+
+ /**
+ * A crude way of determining if an object is a window
+ * @member util
+ */
+ function isWindow(obj) {
+ // must use == for ie8
+ /* eslint eqeqeq:0 */
+ return obj !== null && obj !== undefined && obj == obj.window;
+ }
+
+ function getDocument(node) {
+ if (isWindow(node)) {
+ return node.document;
+ }
+ if (node.nodeType === 9) {
+ return node;
+ }
+ return node.ownerDocument;
+ }
+
+ function _getComputedStyle(elem, name, cs) {
+ var computedStyle = cs;
+ var val = '';
+ var d = getDocument(elem);
+ computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null);
+
+ // https://github.com/kissyteam/kissy/issues/61
+ if (computedStyle) {
+ val = computedStyle.getPropertyValue(name) || computedStyle[name];
+ }
+
+ return val;
+ }
+
+ var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i');
+ var RE_POS = /^(top|right|bottom|left)$/;
+ var CURRENT_STYLE = 'currentStyle';
+ var RUNTIME_STYLE = 'runtimeStyle';
+ var LEFT = 'left';
+ var PX = 'px';
+
+ function _getComputedStyleIE(elem, name) {
+ // currentStyle maybe null
+ // http://msdn.microsoft.com/en-us/library/ms535231.aspx
+ var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
+
+ // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
+ // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
+ // 在 ie 下不对,需要直接用 offset 方式
+ // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
+
+ // From the awesome hack by Dean Edwards
+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+ // If we're not dealing with a regular pixel number
+ // but a number that has a weird ending, we need to convert it to pixels
+ // exclude left right for relativity
+ if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
+ // Remember the original values
+ var style = elem.style;
+ var left = style[LEFT];
+ var rsLeft = elem[RUNTIME_STYLE][LEFT];
+
+ // prevent flashing of content
+ elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];
+
+ // Put in the new values to get a computed value out
+ style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
+ ret = style.pixelLeft + PX;
+
+ // Revert the changed values
+ style[LEFT] = left;
+
+ elem[RUNTIME_STYLE][LEFT] = rsLeft;
+ }
+ return ret === '' ? 'auto' : ret;
+ }
+
+ if (typeof window !== 'undefined') {
+ getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
+ }
+
+ function getOffsetDirection(dir, option) {
+ if (dir === 'left') {
+ return option.useCssRight ? 'right' : dir;
+ }
+ return option.useCssBottom ? 'bottom' : dir;
+ }
+
+ function oppositeOffsetDirection(dir) {
+ if (dir === 'left') {
+ return 'right';
+ } else if (dir === 'right') {
+ return 'left';
+ } else if (dir === 'top') {
+ return 'bottom';
+ } else if (dir === 'bottom') {
+ return 'top';
+ }
+ }
+
+ // 设置 elem 相对 elem.ownerDocument 的坐标
+ function setLeftTop(elem, offset, option) {
+ // set position first, in-case top/left are set even on static elem
+ if (css(elem, 'position') === 'static') {
+ elem.style.position = 'relative';
+ }
+ var presetH = -999;
+ var presetV = -999;
+ var horizontalProperty = getOffsetDirection('left', option);
+ var verticalProperty = getOffsetDirection('top', option);
+ var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
+ var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
+
+ if (horizontalProperty !== 'left') {
+ presetH = 999;
+ }
+
+ if (verticalProperty !== 'top') {
+ presetV = 999;
+ }
+ var originalTransition = '';
+ var originalOffset = getOffset(elem);
+ if ('left' in offset || 'top' in offset) {
+ originalTransition = Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["c" /* getTransitionProperty */])(elem) || '';
+ Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["e" /* setTransitionProperty */])(elem, 'none');
+ }
+ if ('left' in offset) {
+ elem.style[oppositeHorizontalProperty] = '';
+ elem.style[horizontalProperty] = presetH + 'px';
+ }
+ if ('top' in offset) {
+ elem.style[oppositeVerticalProperty] = '';
+ elem.style[verticalProperty] = presetV + 'px';
+ }
+ // force relayout
+ forceRelayout(elem);
+ var old = getOffset(elem);
+ var originalStyle = {};
+ for (var key in offset) {
+ if (offset.hasOwnProperty(key)) {
+ var dir = getOffsetDirection(key, option);
+ var preset = key === 'left' ? presetH : presetV;
+ var off = originalOffset[key] - old[key];
+ if (dir === key) {
+ originalStyle[dir] = preset + off;
+ } else {
+ originalStyle[dir] = preset - off;
+ }
+ }
+ }
+ css(elem, originalStyle);
+ // force relayout
+ forceRelayout(elem);
+ if ('left' in offset || 'top' in offset) {
+ Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["e" /* setTransitionProperty */])(elem, originalTransition);
+ }
+ var ret = {};
+ for (var _key in offset) {
+ if (offset.hasOwnProperty(_key)) {
+ var _dir = getOffsetDirection(_key, option);
+ var _off = offset[_key] - originalOffset[_key];
+ if (_key === _dir) {
+ ret[_dir] = originalStyle[_dir] + _off;
+ } else {
+ ret[_dir] = originalStyle[_dir] - _off;
+ }
+ }
+ }
+ css(elem, ret);
+ }
+
+ function setTransform(elem, offset) {
+ var originalOffset = getOffset(elem);
+ var originalXY = Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["b" /* getTransformXY */])(elem);
+ var resultXY = { x: originalXY.x, y: originalXY.y };
+ if ('left' in offset) {
+ resultXY.x = originalXY.x + offset.left - originalOffset.left;
+ }
+ if ('top' in offset) {
+ resultXY.y = originalXY.y + offset.top - originalOffset.top;
+ }
+ Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["d" /* setTransformXY */])(elem, resultXY);
+ }
+
+ function setOffset(elem, offset, option) {
+ if (option.ignoreShake) {
+ var oriOffset = getOffset(elem);
+
+ var oLeft = oriOffset.left.toFixed(0);
+ var oTop = oriOffset.top.toFixed(0);
+ var tLeft = offset.left.toFixed(0);
+ var tTop = offset.top.toFixed(0);
+
+ if (oLeft === tLeft && oTop === tTop) {
+ return;
+ }
+ }
+
+ if (option.useCssRight || option.useCssBottom) {
+ setLeftTop(elem, offset, option);
+ } else if (option.useCssTransform && Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["a" /* getTransformName */])() in document.body.style) {
+ setTransform(elem, offset, option);
+ } else {
+ setLeftTop(elem, offset, option);
+ }
+ }
+
+ function each(arr, fn) {
+ for (var i = 0; i < arr.length; i++) {
+ fn(arr[i]);
+ }
+ }
+
+ function isBorderBoxFn(elem) {
+ return getComputedStyleX(elem, 'boxSizing') === 'border-box';
+ }
+
+ var BOX_MODELS = ['margin', 'border', 'padding'];
+ var CONTENT_INDEX = -1;
+ var PADDING_INDEX = 2;
+ var BORDER_INDEX = 1;
+ var MARGIN_INDEX = 0;
+
+ function swap(elem, options, callback) {
+ var old = {};
+ var style = elem.style;
+ var name = void 0;
+
+ // Remember the old values, and insert the new ones
+ for (name in options) {
+ if (options.hasOwnProperty(name)) {
+ old[name] = style[name];
+ style[name] = options[name];
+ }
+ }
+
+ callback.call(elem);
+
+ // Revert the old values
+ for (name in options) {
+ if (options.hasOwnProperty(name)) {
+ style[name] = old[name];
+ }
+ }
+ }
+
+ function getPBMWidth(elem, props, which) {
+ var value = 0;
+ var prop = void 0;
+ var j = void 0;
+ var i = void 0;
+ for (j = 0; j < props.length; j++) {
+ prop = props[j];
+ if (prop) {
+ for (i = 0; i < which.length; i++) {
+ var cssProp = void 0;
+ if (prop === 'border') {
+ cssProp = '' + prop + which[i] + 'Width';
+ } else {
+ cssProp = prop + which[i];
+ }
+ value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
+ }
+ }
+ }
+ return value;
+ }
+
+ var domUtils = {};
+
+ each(['Width', 'Height'], function (name) {
+ domUtils['doc' + name] = function (refWin) {
+ var d = refWin.document;
+ return Math.max(
+ // firefox chrome documentElement.scrollHeight< body.scrollHeight
+ // ie standard mode : documentElement.scrollHeight> body.scrollHeight
+ d.documentElement['scroll' + name],
+ // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
+ d.body['scroll' + name], domUtils['viewport' + name](d));
+ };
+
+ domUtils['viewport' + name] = function (win) {
+ // pc browser includes scrollbar in window.innerWidth
+ var prop = 'client' + name;
+ var doc = win.document;
+ var body = doc.body;
+ var documentElement = doc.documentElement;
+ var documentElementProp = documentElement[prop];
+ // 标准模式取 documentElement
+ // backcompat 取 body
+ return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
+ };
+ });
+
+ /*
+ 得到元素的大小信息
+ @param elem
+ @param name
+ @param {String} [extra] 'padding' : (css width) + padding
+ 'border' : (css width) + padding + border
+ 'margin' : (css width) + padding + border + margin
+ */
+ function getWH(elem, name, ex) {
+ var extra = ex;
+ if (isWindow(elem)) {
+ return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
+ } else if (elem.nodeType === 9) {
+ return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
+ }
+ var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
+ var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
+ var computedStyle = getComputedStyleX(elem);
+ var isBorderBox = isBorderBoxFn(elem, computedStyle);
+ var cssBoxValue = 0;
+ if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
+ borderBoxValue = undefined;
+ // Fall back to computed then un computed css if necessary
+ cssBoxValue = getComputedStyleX(elem, name);
+ if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
+ cssBoxValue = elem.style[name] || 0;
+ }
+ // Normalize '', auto, and prepare for extra
+ cssBoxValue = parseFloat(cssBoxValue) || 0;
+ }
+ if (extra === undefined) {
+ extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
+ }
+ var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
+ var val = borderBoxValue || cssBoxValue;
+ if (extra === CONTENT_INDEX) {
+ if (borderBoxValueOrIsBorderBox) {
+ return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle);
+ }
+ return cssBoxValue;
+ } else if (borderBoxValueOrIsBorderBox) {
+ if (extra === BORDER_INDEX) {
+ return val;
+ }
+ return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle));
+ }
+ return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle);
+ }
+
+ var cssShow = {
+ position: 'absolute',
+ visibility: 'hidden',
+ display: 'block'
+ };
+
+ // fix #119 : https://github.com/kissyteam/kissy/issues/119
+ function getWHIgnoreDisplay() {
+ for (var _len = arguments.length, args = Array(_len), _key2 = 0; _key2 < _len; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ var val = void 0;
+ var elem = args[0];
+ // in case elem is window
+ // elem.offsetWidth === undefined
+ if (elem.offsetWidth !== 0) {
+ val = getWH.apply(undefined, args);
+ } else {
+ swap(elem, cssShow, function () {
+ val = getWH.apply(undefined, args);
+ });
+ }
+ return val;
+ }
+
+ each(['width', 'height'], function (name) {
+ var first = name.charAt(0).toUpperCase() + name.slice(1);
+ domUtils['outer' + first] = function (el, includeMargin) {
+ return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
+ };
+ var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
+
+ domUtils[name] = function (elem, v) {
+ var val = v;
+ if (val !== undefined) {
+ if (elem) {
+ var computedStyle = getComputedStyleX(elem);
+ var isBorderBox = isBorderBoxFn(elem);
+ if (isBorderBox) {
+ val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle);
+ }
+ return css(elem, name, val);
+ }
+ return undefined;
+ }
+ return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
+ };
+ });
+
+ function mix(to, from) {
+ for (var i in from) {
+ if (from.hasOwnProperty(i)) {
+ to[i] = from[i];
+ }
+ }
+ return to;
+ }
+
+ var utils = {
+ getWindow: function getWindow(node) {
+ if (node && node.document && node.setTimeout) {
+ return node;
+ }
+ var doc = node.ownerDocument || node;
+ return doc.defaultView || doc.parentWindow;
+ },
+
+ getDocument: getDocument,
+ offset: function offset(el, value, option) {
+ if (typeof value !== 'undefined') {
+ setOffset(el, value, option || {});
+ } else {
+ return getOffset(el);
+ }
+ },
+
+ isWindow: isWindow,
+ each: each,
+ css: css,
+ clone: function clone(obj) {
+ var i = void 0;
+ var ret = {};
+ for (i in obj) {
+ if (obj.hasOwnProperty(i)) {
+ ret[i] = obj[i];
+ }
+ }
+ var overflow = obj.overflow;
+ if (overflow) {
+ for (i in obj) {
+ if (obj.hasOwnProperty(i)) {
+ ret.overflow[i] = obj.overflow[i];
+ }
+ }
+ }
+ return ret;
+ },
+
+ mix: mix,
+ getWindowScrollLeft: function getWindowScrollLeft(w) {
+ return getScrollLeft(w);
+ },
+ getWindowScrollTop: function getWindowScrollTop(w) {
+ return getScrollTop(w);
+ },
+ merge: function merge() {
+ var ret = {};
+
+ for (var _len2 = arguments.length, args = Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
+ args[_key3] = arguments[_key3];
+ }
+
+ for (var i = 0; i < args.length; i++) {
+ utils.mix(ret, args[i]);
+ }
+ return ret;
+ },
+
+ viewportWidth: 0,
+ viewportHeight: 0
+ };
+
+ mix(utils, domUtils);
+
+ /* harmony default export */ __webpack_exports__["a"] = (utils);
+
+ /***/ }),
+ /* 48 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Animate = __webpack_require__(770);
+
+ var _Animate2 = _interopRequireDefault(_Animate);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Animate2["default"];
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 49 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(22);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(7);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
+
+
+
+
+
+
+
+
+ var ContainerRender = function (_React$Component) {
+ __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(ContainerRender, _React$Component);
+
+ function ContainerRender() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, ContainerRender);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = ContainerRender.__proto__ || Object.getPrototypeOf(ContainerRender)).call.apply(_ref, [this].concat(args))), _this), _this.removeContainer = function () {
+ if (_this.container) {
+ __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.unmountComponentAtNode(_this.container);
+ _this.container.parentNode.removeChild(_this.container);
+ _this.container = null;
+ }
+ }, _this.renderComponent = function (props, ready) {
+ var _this$props = _this.props,
+ visible = _this$props.visible,
+ getComponent = _this$props.getComponent,
+ forceRender = _this$props.forceRender,
+ getContainer = _this$props.getContainer,
+ parent = _this$props.parent;
+
+ if (visible || parent._component || forceRender) {
+ if (!_this.container) {
+ _this.container = getContainer();
+ }
+ __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {
+ if (ready) {
+ ready.call(this);
+ }
+ });
+ }
+ }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
+ }
+
+ __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(ContainerRender, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ if (this.props.autoMount) {
+ this.renderComponent();
+ }
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate() {
+ if (this.props.autoMount) {
+ this.renderComponent();
+ }
+ }
+ }, {
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ if (this.props.autoDestroy) {
+ this.removeContainer();
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ return this.props.children({
+ renderComponent: this.renderComponent,
+ removeContainer: this.removeContainer
+ });
+ }
+ }]);
+
+ return ContainerRender;
+ }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);
+
+ ContainerRender.propTypes = {
+ autoMount: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
+ autoDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
+ visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
+ forceRender: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
+ parent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
+ getComponent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired,
+ getContainer: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired,
+ children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired
+ };
+ ContainerRender.defaultProps = {
+ autoMount: true,
+ autoDestroy: true,
+ forceRender: false
+ };
+ /* harmony default export */ __webpack_exports__["a"] = (ContainerRender);
+
+ /***/ }),
+ /* 50 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(22);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(7);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
+
+
+
+
+
+
+
+
+ var Portal = function (_React$Component) {
+ __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Portal, _React$Component);
+
+ function Portal() {
+ __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, Portal);
+
+ return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));
+ }
+
+ __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(Portal, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ this.createContainer();
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate(prevProps) {
+ var didUpdate = this.props.didUpdate;
+
+ if (didUpdate) {
+ didUpdate(prevProps);
+ }
+ }
+ }, {
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ this.removeContainer();
+ }
+ }, {
+ key: 'createContainer',
+ value: function createContainer() {
+ this._container = this.props.getContainer();
+ this.forceUpdate();
+ }
+ }, {
+ key: 'removeContainer',
+ value: function removeContainer() {
+ if (this._container) {
+ this._container.parentNode.removeChild(this._container);
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ if (this._container) {
+ return __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.createPortal(this.props.children, this._container);
+ }
+ return null;
+ }
+ }]);
+
+ return Portal;
+ }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);
+
+ Portal.propTypes = {
+ getContainer: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired,
+ children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node.isRequired,
+ didUpdate: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func
+ };
+ /* harmony default export */ __webpack_exports__["a"] = (Portal);
+
+ /***/ }),
+ /* 51 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Align__ = __webpack_require__(802);
+ // export this package's api
+
+
+ /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0__Align__["a" /* default */]);
+
+ /***/ }),
+ /* 52 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = void 0;
+
+ var _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
+
+ exports.default = _default;
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 53 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var _interopRequireDefault = __webpack_require__(18);
+
+ exports.__esModule = true;
+ exports.default = style;
+
+ var _camelizeStyle = _interopRequireDefault(__webpack_require__(266));
+
+ var _hyphenateStyle = _interopRequireDefault(__webpack_require__(868));
+
+ var _getComputedStyle2 = _interopRequireDefault(__webpack_require__(870));
+
+ var _removeStyle = _interopRequireDefault(__webpack_require__(871));
+
+ var _properties = __webpack_require__(41);
+
+ var _isTransform = _interopRequireDefault(__webpack_require__(872));
+
+ function style(node, property, value) {
+ var css = '';
+ var transforms = '';
+ var props = property;
+
+ if (typeof property === 'string') {
+ if (value === undefined) {
+ return node.style[(0, _camelizeStyle.default)(property)] || (0, _getComputedStyle2.default)(node).getPropertyValue((0, _hyphenateStyle.default)(property));
+ } else {
+ (props = {})[property] = value;
+ }
+ }
+
+ Object.keys(props).forEach(function (key) {
+ var value = props[key];
+
+ if (!value && value !== 0) {
+ (0, _removeStyle.default)(node, (0, _hyphenateStyle.default)(key));
+ } else if ((0, _isTransform.default)(key)) {
+ transforms += key + "(" + value + ") ";
+ } else {
+ css += (0, _hyphenateStyle.default)(key) + ": " + value + ";";
+ }
+ });
+
+ if (transforms) {
+ css += _properties.transform + ": " + transforms + ";";
+ }
+
+ node.style.cssText += ';' + css;
+ }
+
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 54 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ var _interopRequireDefault = __webpack_require__(18);
+
+ exports.__esModule = true;
+ exports.default = void 0;
+
+ var _inDOM = _interopRequireDefault(__webpack_require__(52));
+
+ var off = function off() {};
+
+ if (_inDOM.default) {
+ off = function () {
+ if (document.addEventListener) return function (node, eventName, handler, capture) {
+ return node.removeEventListener(eventName, handler, capture || false);
+ };else if (document.attachEvent) return function (node, eventName, handler) {
+ return node.detachEvent('on' + eventName, handler);
+ };
+ }();
+ }
+
+ var _default = off;
+ exports.default = _default;
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 55 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 56 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 57 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Button = __webpack_require__(566);
+
+ var _Button2 = _interopRequireDefault(_Button);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Button2["default"];
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 58 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var dP = __webpack_require__(36);
+ var createDesc = __webpack_require__(73);
+ module.exports = __webpack_require__(44) ? function (object, key, value) {
+ return dP.f(object, key, createDesc(1, value));
+ } : function (object, key, value) {
+ object[key] = value;
+ return object;
+ };
+
+
+ /***/ }),
+ /* 59 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var isObject = __webpack_require__(60);
+ module.exports = function (it) {
+ if (!isObject(it)) throw TypeError(it + ' is not an object!');
+ return it;
+ };
+
+
+ /***/ }),
+ /* 60 */
+ /***/ (function(module, exports) {
+
+ module.exports = function (it) {
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
+ };
+
+
+ /***/ }),
+ /* 61 */
+ /***/ (function(module, exports) {
+
+ module.exports = function (exec) {
+ try {
+ return !!exec();
+ } catch (e) {
+ return true;
+ }
+ };
+
+
+ /***/ }),
+ /* 62 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ // to indexed object, toObject with fallback for non-array-like ES3 strings
+ var IObject = __webpack_require__(217);
+ var defined = __webpack_require__(124);
+ module.exports = function (it) {
+ return IObject(defined(it));
+ };
+
+
+ /***/ }),
+ /* 63 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+
+
+ var React = __webpack_require__(0);
+ var factory = __webpack_require__(622);
+
+ if (typeof React === 'undefined') {
+ throw Error(
+ 'create-react-class could not find the React object. If you are using script tags, ' +
+ 'make sure that React is being loaded before create-react-class.'
+ );
+ }
+
+ // Hack to grab NoopUpdateQueue from isomorphic React
+ var ReactNoopUpdateQueue = new React.Component().updater;
+
+ module.exports = factory(
+ React.Component,
+ React.isValidElement,
+ ReactNoopUpdateQueue
+ );
+
+
+ /***/ }),
+ /* 64 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+ /*
+ object-assign
+ (c) Sindre Sorhus
+ @license MIT
+ */
+
+
+ /* eslint-disable no-unused-vars */
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+ function toObject(val) {
+ if (val === null || val === undefined) {
+ throw new TypeError('Object.assign cannot be called with null or undefined');
+ }
+
+ return Object(val);
+ }
+
+ function shouldUseNative() {
+ try {
+ if (!Object.assign) {
+ return false;
+ }
+
+ // Detect buggy property enumeration order in older V8 versions.
+
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
+ test1[5] = 'de';
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
+ return false;
+ }
+
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
+ var test2 = {};
+ for (var i = 0; i < 10; i++) {
+ test2['_' + String.fromCharCode(i)] = i;
+ }
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
+ return test2[n];
+ });
+ if (order2.join('') !== '0123456789') {
+ return false;
+ }
+
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
+ var test3 = {};
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
+ test3[letter] = letter;
+ });
+ if (Object.keys(Object.assign({}, test3)).join('') !==
+ 'abcdefghijklmnopqrst') {
+ return false;
+ }
+
+ return true;
+ } catch (err) {
+ // We don't expect any of the above to throw, but better to be safe.
+ return false;
+ }
+ }
+
+ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
+ var from;
+ var to = toObject(target);
+ var symbols;
+
+ for (var s = 1; s < arguments.length; s++) {
+ from = Object(arguments[s]);
+
+ for (var key in from) {
+ if (hasOwnProperty.call(from, key)) {
+ to[key] = from[key];
+ }
+ }
+
+ if (getOwnPropertySymbols) {
+ symbols = getOwnPropertySymbols(from);
+ for (var i = 0; i < symbols.length; i++) {
+ if (propIsEnumerable.call(from, symbols[i])) {
+ to[symbols[i]] = from[symbols[i]];
+ }
+ }
+ }
+ }
+
+ return to;
+ };
+
+
+ /***/ }),
+ /* 65 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony export (immutable) */ __webpack_exports__["h"] = noop;
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex;
+ /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey;
+ /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItem;
+ /* harmony export (immutable) */ __webpack_exports__["f"] = loopMenuItemRecursively;
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return menuAllProps; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setStyle; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
+
+ var isMobile = __webpack_require__(144);
+
+ function noop() {}
+
+ function getKeyFromChildrenIndex(child, menuEventKey, index) {
+ var prefix = menuEventKey || '';
+ return child.key || prefix + 'item_' + index;
+ }
+
+ function getMenuIdFromSubMenuEventKey(eventKey) {
+ return eventKey + '-menu-';
+ }
+
+ function loopMenuItem(children, cb) {
+ var index = -1;
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ index++;
+ if (c && c.type && c.type.isMenuItemGroup) {
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {
+ index++;
+ cb(c2, index);
+ });
+ } else {
+ cb(c, index);
+ }
+ });
+ }
+
+ function loopMenuItemRecursively(children, keys, ret) {
+ /* istanbul ignore if */
+ if (!children || ret.find) {
+ return;
+ }
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ if (c) {
+ var construct = c.type;
+ if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
+ return;
+ }
+ if (keys.indexOf(c.key) !== -1) {
+ ret.find = true;
+ } else if (c.props.children) {
+ loopMenuItemRecursively(c.props.children, keys, ret);
+ }
+ }
+ });
+ }
+
+ var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
+
+ // the following keys found need to be removed from test regression
+ 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
+
+ // ref: https://github.com/ant-design/ant-design/issues/14007
+ // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
+ // getBoundingClientRect return the full precision value, which is
+ // not the same behavior as on chrome. Set the precision to 6 to
+ // unify their behavior
+ var getWidth = function getWidth(elem) {
+ var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
+ if (width) {
+ width = +width.toFixed(6);
+ }
+ return width || 0;
+ };
+
+ var setStyle = function setStyle(elem, styleProperty, value) {
+ if (elem && typeof elem.style === 'object') {
+ elem.style[styleProperty] = value;
+ }
+ };
+
+ var isMobileDevice = function isMobileDevice() {
+ return isMobile.any;
+ };
+
+ /***/ }),
+ /* 66 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
+ Copyright (c) 2017 Jed Watson.
+ Licensed under the MIT License (MIT), see
+ http://jedwatson.github.io/classnames
+ */
+ /* global define */
+
+ (function () {
+ 'use strict';
+
+ var hasOwn = {}.hasOwnProperty;
+
+ function classNames () {
+ var classes = [];
+
+ for (var i = 0; i < arguments.length; i++) {
+ var arg = arguments[i];
+ if (!arg) continue;
+
+ var argType = typeof arg;
+
+ if (argType === 'string' || argType === 'number') {
+ classes.push(arg);
+ } else if (Array.isArray(arg) && arg.length) {
+ var inner = classNames.apply(null, arg);
+ if (inner) {
+ classes.push(inner);
+ }
+ } else if (argType === 'object') {
+ for (var key in arg) {
+ if (hasOwn.call(arg, key) && arg[key]) {
+ classes.push(key);
+ }
+ }
+ }
+ }
+
+ return classes.join(' ');
+ }
+
+ if (typeof module !== 'undefined' && module.exports) {
+ classNames.default = classNames;
+ module.exports = classNames;
+ } else if (true) {
+ // register as 'classnames', consistent with npm package name
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
+ return classNames;
+ }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ } else {
+ window.classNames = classNames;
+ }
+ }());
+
+
+ /***/ }),
+ /* 67 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony export (immutable) */ __webpack_exports__["h"] = noop;
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex;
+ /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey;
+ /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItem;
+ /* harmony export (immutable) */ __webpack_exports__["f"] = loopMenuItemRecursively;
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return menuAllProps; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setStyle; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
+
+ var isMobile = __webpack_require__(144);
+
+ function noop() {}
+
+ function getKeyFromChildrenIndex(child, menuEventKey, index) {
+ var prefix = menuEventKey || '';
+ return child.key || prefix + 'item_' + index;
+ }
+
+ function getMenuIdFromSubMenuEventKey(eventKey) {
+ return eventKey + '-menu-';
+ }
+
+ function loopMenuItem(children, cb) {
+ var index = -1;
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ index++;
+ if (c && c.type && c.type.isMenuItemGroup) {
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {
+ index++;
+ cb(c2, index);
+ });
+ } else {
+ cb(c, index);
+ }
+ });
+ }
+
+ function loopMenuItemRecursively(children, keys, ret) {
+ /* istanbul ignore if */
+ if (!children || ret.find) {
+ return;
+ }
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ if (c) {
+ var construct = c.type;
+ if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
+ return;
+ }
+ if (keys.indexOf(c.key) !== -1) {
+ ret.find = true;
+ } else if (c.props.children) {
+ loopMenuItemRecursively(c.props.children, keys, ret);
+ }
+ }
+ });
+ }
+
+ var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
+
+ // the following keys found need to be removed from test regression
+ 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
+
+ // ref: https://github.com/ant-design/ant-design/issues/14007
+ // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
+ // getBoundingClientRect return the full precision value, which is
+ // not the same behavior as on chrome. Set the precision to 6 to
+ // unify their behavior
+ var getWidth = function getWidth(elem) {
+ var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
+ if (width) {
+ width = +width.toFixed(6);
+ }
+ return width || 0;
+ };
+
+ var setStyle = function setStyle(elem, styleProperty, value) {
+ if (elem && typeof elem.style === 'object') {
+ elem.style[styleProperty] = value;
+ }
+ };
+
+ var isMobileDevice = function isMobileDevice() {
+ return isMobile.any;
+ };
+
+ /***/ }),
+ /* 68 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.setStyle = exports.getWidth = exports.menuAllProps = undefined;
+
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
+ * This source code is quoted from rc-menu.
+ * homepage: https://github.com/react-component/menu
+ */
+
+
+ exports.noop = noop;
+ exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex;
+ exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey;
+ exports.loopMenuItem = loopMenuItem;
+ exports.loopMenuItemRecursively = loopMenuItemRecursively;
+ exports.fireKeyEvent = fireKeyEvent;
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function noop() {}
+
+ function getKeyFromChildrenIndex(child, menuEventKey, index) {
+ var prefix = menuEventKey || '';
+ return child.key || prefix + 'item_' + index;
+ }
+
+ function getMenuIdFromSubMenuEventKey(eventKey) {
+ return eventKey + '-menu-';
+ }
+
+ function loopMenuItem(children, cb) {
+ var index = -1;
+ _react2["default"].Children.forEach(children, function (c) {
+ index++;
+ if (c && c.type && c.type.isMenuItemGroup) {
+ _react2["default"].Children.forEach(c.props.children, function (c2) {
+ index++;
+ cb(c2, index);
+ });
+ } else {
+ cb(c, index);
+ }
+ });
+ }
+
+ function loopMenuItemRecursively(children, keys, ret) {
+ /* istanbul ignore if */
+ if (!children || ret.find) {
+ return;
+ }
+ _react2["default"].Children.forEach(children, function (c) {
+ if (c) {
+ var construct = c.type;
+ if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
+ return;
+ }
+ if (keys.indexOf(c.key) !== -1) {
+ ret.find = true;
+ } else if (c.props.children) {
+ loopMenuItemRecursively(c.props.children, keys, ret);
+ }
+ }
+ });
+ }
+
+ var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
+
+ // the following keys found need to be removed from test regression
+ 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
+
+ var getWidth = exports.getWidth = function getWidth(elem) {
+ return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;
+ };
+
+ var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) {
+ if (elem && _typeof(elem.style) === 'object') {
+ elem.style[styleProperty] = value;
+ }
+ };
+
+ function fireKeyEvent(el, evtType, keyCode) {
+ var evtObj;
+ if (document.createEvent) {
+ if (window.KeyEvent) {
+ //firefox 浏览器下模拟事件
+ evtObj = document.createEvent('KeyEvents');
+ evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0);
+ } else {
+ //chrome 浏览器下模拟事件
+ evtObj = document.createEvent('UIEvents');
+ evtObj.initUIEvent(evtType, true, true, window, 1);
+
+ delete evtObj.keyCode;
+ if (typeof evtObj.keyCode === "undefined") {
+ //为了模拟keycode
+ Object.defineProperty(evtObj, "keyCode", { value: keyCode });
+ } else {
+ evtObj.key = String.fromCharCode(keyCode);
+ }
+
+ if (typeof evtObj.ctrlKey === 'undefined') {
+ //为了模拟ctrl键
+ Object.defineProperty(evtObj, "ctrlKey", { value: true });
+ } else {
+ evtObj.ctrlKey = true;
+ }
+ }
+ el.dispatchEvent(evtObj);
+ } else if (document.createEventObject) {
+ //IE 浏览器下模拟事件
+ evtObj = document.createEventObject();
+ evtObj.keyCode = keyCode;
+ el.fireEvent('on' + evtType, evtObj);
+ }
+ }
+
+ /***/ }),
+ /* 69 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1133);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1134);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1135);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1136);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1137);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(316);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(317);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1138);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1139);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(318);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1140);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1142);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1143);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
+ /***/ }),
+ /* 70 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1186);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1187);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1188);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1189);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1190);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1191);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1192);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1193);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1194);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(331);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1195);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1197);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1198);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
+ /***/ }),
+ /* 71 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony export (immutable) */ __webpack_exports__["h"] = noop;
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex;
+ /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey;
+ /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItem;
+ /* harmony export (immutable) */ __webpack_exports__["f"] = loopMenuItemRecursively;
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return menuAllProps; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setStyle; });
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
+
+ var isMobile = __webpack_require__(144);
+
+ function noop() {}
+
+ function getKeyFromChildrenIndex(child, menuEventKey, index) {
+ var prefix = menuEventKey || '';
+ return child.key || prefix + 'item_' + index;
+ }
+
+ function getMenuIdFromSubMenuEventKey(eventKey) {
+ return eventKey + '-menu-';
+ }
+
+ function loopMenuItem(children, cb) {
+ var index = -1;
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ index++;
+ if (c && c.type && c.type.isMenuItemGroup) {
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {
+ index++;
+ cb(c2, index);
+ });
+ } else {
+ cb(c, index);
+ }
+ });
+ }
+
+ function loopMenuItemRecursively(children, keys, ret) {
+ /* istanbul ignore if */
+ if (!children || ret.find) {
+ return;
+ }
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ if (c) {
+ var construct = c.type;
+ if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
+ return;
+ }
+ if (keys.indexOf(c.key) !== -1) {
+ ret.find = true;
+ } else if (c.props.children) {
+ loopMenuItemRecursively(c.props.children, keys, ret);
+ }
+ }
+ });
+ }
+
+ var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
+
+ // the following keys found need to be removed from test regression
+ 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
+
+ // ref: https://github.com/ant-design/ant-design/issues/14007
+ // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
+ // getBoundingClientRect return the full precision value, which is
+ // not the same behavior as on chrome. Set the precision to 6 to
+ // unify their behavior
+ var getWidth = function getWidth(elem) {
+ var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
+ if (width) {
+ width = +width.toFixed(6);
+ }
+ return width || 0;
+ };
+
+ var setStyle = function setStyle(elem, styleProperty, value) {
+ if (elem && typeof elem.style === 'object') {
+ elem.style[styleProperty] = value;
+ }
+ };
+
+ var isMobileDevice = function isMobileDevice() {
+ return isMobile.any;
+ };
+
+ /***/ }),
+ /* 72 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ /* harmony export (immutable) */ __webpack_exports__["a"] = toArray;
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
+
+
+ function toArray(children) {
+ var ret = [];
+ __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
+ ret.push(c);
+ });
+ return ret;
+ }
+
+ /***/ }),
+ /* 73 */
+ /***/ (function(module, exports) {
+
+ module.exports = function (bitmap, value) {
+ return {
+ enumerable: !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable: !(bitmap & 4),
+ value: value
+ };
+ };
+
+
+ /***/ }),
+ /* 74 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ // 19.1.2.14 / 15.2.3.14 Object.keys(O)
+ var $keys = __webpack_require__(216);
+ var enumBugKeys = __webpack_require__(128);
+
+ module.exports = Object.keys || function keys(O) {
+ return $keys(O, enumBugKeys);
+ };
+
+
+ /***/ }),
+ /* 75 */
+ /***/ (function(module, exports) {
+
+ module.exports = {};
+
+
+ /***/ }),
+ /* 76 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global, module) {/**
@@ -95156,2169 +93287,7 @@
module.exports = isEqual;
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(36), __webpack_require__(241)(module)))
-
- /***/ }),
- /* 38 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["a"] = contains;
- function contains(root, n) {
- var node = n;
- while (node) {
- if (node === root) {
- return true;
- }
- node = node.parentNode;
- }
-
- return false;
- }
-
- /***/ }),
- /* 39 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["a"] = addEventListenerWrap;
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__ = __webpack_require__(13);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
-
-
-
- function addEventListenerWrap(target, eventType, cb, option) {
- /* eslint camelcase: 2 */
- var callback = __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates ? function run(e) {
- __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.unstable_batchedUpdates(cb, e);
- } : cb;
- return __WEBPACK_IMPORTED_MODULE_0_add_dom_event_listener___default()(target, eventType, callback, option);
- }
-
- /***/ }),
- /* 40 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- module.exports = __webpack_require__(812);
-
- /***/ }),
- /* 41 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- var _interopRequireDefault = __webpack_require__(18);
-
- exports.__esModule = true;
- exports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0;
-
- var _inDOM = _interopRequireDefault(__webpack_require__(54));
-
- var transform = 'transform';
- exports.transform = transform;
- var prefix, transitionEnd, animationEnd;
- exports.animationEnd = animationEnd;
- exports.transitionEnd = transitionEnd;
- var transitionProperty, transitionDuration, transitionTiming, transitionDelay;
- exports.transitionDelay = transitionDelay;
- exports.transitionTiming = transitionTiming;
- exports.transitionDuration = transitionDuration;
- exports.transitionProperty = transitionProperty;
- var animationName, animationDuration, animationTiming, animationDelay;
- exports.animationDelay = animationDelay;
- exports.animationTiming = animationTiming;
- exports.animationDuration = animationDuration;
- exports.animationName = animationName;
-
- if (_inDOM.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";
- }
-
- var _default = {
- transform: transform,
- end: transitionEnd,
- property: transitionProperty,
- timing: transitionTiming,
- delay: transitionDelay,
- duration: transitionDuration
- };
- exports.default = _default;
-
- 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;
- }
- };
- var vendors = Object.keys(vendorMap);
- var transitionEnd, animationEnd;
- var prefix = '';
-
- 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 (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';
- if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';
- style = null;
- return {
- animationEnd: animationEnd,
- transitionEnd: transitionEnd,
- prefix: prefix
- };
- }
-
- /***/ }),
- /* 42 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- var _interopRequireDefault = __webpack_require__(18);
-
- exports.__esModule = true;
- exports.default = void 0;
-
- var _inDOM = _interopRequireDefault(__webpack_require__(54));
-
- var off = function off() {};
-
- if (_inDOM.default) {
- off = function () {
- if (document.addEventListener) return function (node, eventName, handler, capture) {
- return node.removeEventListener(eventName, handler, capture || false);
- };else if (document.attachEvent) return function (node, eventName, handler) {
- return node.detachEvent('on' + eventName, handler);
- };
- }();
- }
-
- var _default = off;
- exports.default = _default;
- module.exports = exports["default"];
-
- /***/ }),
- /* 43 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
- module.exports = exports['default'];
-
- /***/ }),
- /* 44 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1662);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1663);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1664);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1665);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1666);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1667);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1668);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1669);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1670);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(540);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1671);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1673);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1674);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 45 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _defineProperty = __webpack_require__(214);
-
- var _defineProperty2 = _interopRequireDefault(_defineProperty);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = function (obj, key, value) {
- if (key in obj) {
- (0, _defineProperty2.default)(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
- };
-
- /***/ }),
- /* 46 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__(61)(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
-
-
- /***/ }),
- /* 47 */
- /***/ (function(module, exports) {
-
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
-
-
- /***/ }),
- /* 48 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _iterator = __webpack_require__(629);
-
- var _iterator2 = _interopRequireDefault(_iterator);
-
- var _symbol = __webpack_require__(635);
-
- var _symbol2 = _interopRequireDefault(_symbol);
-
- var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
- return typeof obj === "undefined" ? "undefined" : _typeof(obj);
- } : function (obj) {
- return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
- };
-
- /***/ }),
- /* 49 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__propertyUtils__ = __webpack_require__(765);
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
-
-
- var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
-
- var getComputedStyleX = void 0;
-
- // https://stackoverflow.com/a/3485654/3040605
- function forceRelayout(elem) {
- var originalStyle = elem.style.display;
- elem.style.display = 'none';
- elem.offsetHeight; // eslint-disable-line
- elem.style.display = originalStyle;
- }
-
- function css(el, name, v) {
- var value = v;
- if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
- for (var i in name) {
- if (name.hasOwnProperty(i)) {
- css(el, i, name[i]);
- }
- }
- return undefined;
- }
- if (typeof value !== 'undefined') {
- if (typeof value === 'number') {
- value = value + 'px';
- }
- el.style[name] = value;
- return undefined;
- }
- return getComputedStyleX(el, name);
- }
-
- function getClientPosition(elem) {
- var box = void 0;
- var x = void 0;
- var y = void 0;
- var doc = elem.ownerDocument;
- var body = doc.body;
- var docElem = doc && doc.documentElement;
- // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
- box = elem.getBoundingClientRect();
-
- // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
- // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
- // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
-
- x = box.left;
- y = box.top;
-
- // In IE, most of the time, 2 extra pixels are added to the top and left
- // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
- // IE6 standards mode, this border can be overridden by setting the
- // document element's border to zero -- thus, we cannot rely on the
- // offset always being 2 pixels.
-
- // In quirks mode, the offset can be determined by querying the body's
- // clientLeft/clientTop, but in standards mode, it is found by querying
- // the document element's clientLeft/clientTop. Since we already called
- // getClientBoundingRect we have already forced a reflow, so it is not
- // too expensive just to query them all.
-
- // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
- // 窗口边框标准是设 documentElement ,quirks 时设置 body
- // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
- // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
- // 标准 ie 下 docElem.clientTop 就是 border-top
- // ie7 html 即窗口边框改变不了。永远为 2
- // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
-
- x -= docElem.clientLeft || body.clientLeft || 0;
- y -= docElem.clientTop || body.clientTop || 0;
-
- return {
- left: x,
- top: y
- };
- }
-
- function getScroll(w, top) {
- var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
- var method = 'scroll' + (top ? 'Top' : 'Left');
- if (typeof ret !== 'number') {
- var d = w.document;
- // ie6,7,8 standard mode
- ret = d.documentElement[method];
- if (typeof ret !== 'number') {
- // quirks mode
- ret = d.body[method];
- }
- }
- return ret;
- }
-
- function getScrollLeft(w) {
- return getScroll(w);
- }
-
- function getScrollTop(w) {
- return getScroll(w, true);
- }
-
- function getOffset(el) {
- var pos = getClientPosition(el);
- var doc = el.ownerDocument;
- var w = doc.defaultView || doc.parentWindow;
- pos.left += getScrollLeft(w);
- pos.top += getScrollTop(w);
- return pos;
- }
-
- /**
- * A crude way of determining if an object is a window
- * @member util
- */
- function isWindow(obj) {
- // must use == for ie8
- /* eslint eqeqeq:0 */
- return obj !== null && obj !== undefined && obj == obj.window;
- }
-
- function getDocument(node) {
- if (isWindow(node)) {
- return node.document;
- }
- if (node.nodeType === 9) {
- return node;
- }
- return node.ownerDocument;
- }
-
- function _getComputedStyle(elem, name, cs) {
- var computedStyle = cs;
- var val = '';
- var d = getDocument(elem);
- computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null);
-
- // https://github.com/kissyteam/kissy/issues/61
- if (computedStyle) {
- val = computedStyle.getPropertyValue(name) || computedStyle[name];
- }
-
- return val;
- }
-
- var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i');
- var RE_POS = /^(top|right|bottom|left)$/;
- var CURRENT_STYLE = 'currentStyle';
- var RUNTIME_STYLE = 'runtimeStyle';
- var LEFT = 'left';
- var PX = 'px';
-
- function _getComputedStyleIE(elem, name) {
- // currentStyle maybe null
- // http://msdn.microsoft.com/en-us/library/ms535231.aspx
- var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
-
- // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
- // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
- // 在 ie 下不对,需要直接用 offset 方式
- // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- // exclude left right for relativity
- if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
- // Remember the original values
- var style = elem.style;
- var left = style[LEFT];
- var rsLeft = elem[RUNTIME_STYLE][LEFT];
-
- // prevent flashing of content
- elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];
-
- // Put in the new values to get a computed value out
- style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
- ret = style.pixelLeft + PX;
-
- // Revert the changed values
- style[LEFT] = left;
-
- elem[RUNTIME_STYLE][LEFT] = rsLeft;
- }
- return ret === '' ? 'auto' : ret;
- }
-
- if (typeof window !== 'undefined') {
- getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
- }
-
- function getOffsetDirection(dir, option) {
- if (dir === 'left') {
- return option.useCssRight ? 'right' : dir;
- }
- return option.useCssBottom ? 'bottom' : dir;
- }
-
- function oppositeOffsetDirection(dir) {
- if (dir === 'left') {
- return 'right';
- } else if (dir === 'right') {
- return 'left';
- } else if (dir === 'top') {
- return 'bottom';
- } else if (dir === 'bottom') {
- return 'top';
- }
- }
-
- // 设置 elem 相对 elem.ownerDocument 的坐标
- function setLeftTop(elem, offset, option) {
- // set position first, in-case top/left are set even on static elem
- if (css(elem, 'position') === 'static') {
- elem.style.position = 'relative';
- }
- var presetH = -999;
- var presetV = -999;
- var horizontalProperty = getOffsetDirection('left', option);
- var verticalProperty = getOffsetDirection('top', option);
- var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
- var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
-
- if (horizontalProperty !== 'left') {
- presetH = 999;
- }
-
- if (verticalProperty !== 'top') {
- presetV = 999;
- }
- var originalTransition = '';
- var originalOffset = getOffset(elem);
- if ('left' in offset || 'top' in offset) {
- originalTransition = Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["c" /* getTransitionProperty */])(elem) || '';
- Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["e" /* setTransitionProperty */])(elem, 'none');
- }
- if ('left' in offset) {
- elem.style[oppositeHorizontalProperty] = '';
- elem.style[horizontalProperty] = presetH + 'px';
- }
- if ('top' in offset) {
- elem.style[oppositeVerticalProperty] = '';
- elem.style[verticalProperty] = presetV + 'px';
- }
- // force relayout
- forceRelayout(elem);
- var old = getOffset(elem);
- var originalStyle = {};
- for (var key in offset) {
- if (offset.hasOwnProperty(key)) {
- var dir = getOffsetDirection(key, option);
- var preset = key === 'left' ? presetH : presetV;
- var off = originalOffset[key] - old[key];
- if (dir === key) {
- originalStyle[dir] = preset + off;
- } else {
- originalStyle[dir] = preset - off;
- }
- }
- }
- css(elem, originalStyle);
- // force relayout
- forceRelayout(elem);
- if ('left' in offset || 'top' in offset) {
- Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["e" /* setTransitionProperty */])(elem, originalTransition);
- }
- var ret = {};
- for (var _key in offset) {
- if (offset.hasOwnProperty(_key)) {
- var _dir = getOffsetDirection(_key, option);
- var _off = offset[_key] - originalOffset[_key];
- if (_key === _dir) {
- ret[_dir] = originalStyle[_dir] + _off;
- } else {
- ret[_dir] = originalStyle[_dir] - _off;
- }
- }
- }
- css(elem, ret);
- }
-
- function setTransform(elem, offset) {
- var originalOffset = getOffset(elem);
- var originalXY = Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["b" /* getTransformXY */])(elem);
- var resultXY = { x: originalXY.x, y: originalXY.y };
- if ('left' in offset) {
- resultXY.x = originalXY.x + offset.left - originalOffset.left;
- }
- if ('top' in offset) {
- resultXY.y = originalXY.y + offset.top - originalOffset.top;
- }
- Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["d" /* setTransformXY */])(elem, resultXY);
- }
-
- function setOffset(elem, offset, option) {
- if (option.ignoreShake) {
- var oriOffset = getOffset(elem);
-
- var oLeft = oriOffset.left.toFixed(0);
- var oTop = oriOffset.top.toFixed(0);
- var tLeft = offset.left.toFixed(0);
- var tTop = offset.top.toFixed(0);
-
- if (oLeft === tLeft && oTop === tTop) {
- return;
- }
- }
-
- if (option.useCssRight || option.useCssBottom) {
- setLeftTop(elem, offset, option);
- } else if (option.useCssTransform && Object(__WEBPACK_IMPORTED_MODULE_0__propertyUtils__["a" /* getTransformName */])() in document.body.style) {
- setTransform(elem, offset, option);
- } else {
- setLeftTop(elem, offset, option);
- }
- }
-
- function each(arr, fn) {
- for (var i = 0; i < arr.length; i++) {
- fn(arr[i]);
- }
- }
-
- function isBorderBoxFn(elem) {
- return getComputedStyleX(elem, 'boxSizing') === 'border-box';
- }
-
- var BOX_MODELS = ['margin', 'border', 'padding'];
- var CONTENT_INDEX = -1;
- var PADDING_INDEX = 2;
- var BORDER_INDEX = 1;
- var MARGIN_INDEX = 0;
-
- function swap(elem, options, callback) {
- var old = {};
- var style = elem.style;
- var name = void 0;
-
- // Remember the old values, and insert the new ones
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- old[name] = style[name];
- style[name] = options[name];
- }
- }
-
- callback.call(elem);
-
- // Revert the old values
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- style[name] = old[name];
- }
- }
- }
-
- function getPBMWidth(elem, props, which) {
- var value = 0;
- var prop = void 0;
- var j = void 0;
- var i = void 0;
- for (j = 0; j < props.length; j++) {
- prop = props[j];
- if (prop) {
- for (i = 0; i < which.length; i++) {
- var cssProp = void 0;
- if (prop === 'border') {
- cssProp = '' + prop + which[i] + 'Width';
- } else {
- cssProp = prop + which[i];
- }
- value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
- }
- }
- }
- return value;
- }
-
- var domUtils = {};
-
- each(['Width', 'Height'], function (name) {
- domUtils['doc' + name] = function (refWin) {
- var d = refWin.document;
- return Math.max(
- // firefox chrome documentElement.scrollHeight< body.scrollHeight
- // ie standard mode : documentElement.scrollHeight> body.scrollHeight
- d.documentElement['scroll' + name],
- // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
- d.body['scroll' + name], domUtils['viewport' + name](d));
- };
-
- domUtils['viewport' + name] = function (win) {
- // pc browser includes scrollbar in window.innerWidth
- var prop = 'client' + name;
- var doc = win.document;
- var body = doc.body;
- var documentElement = doc.documentElement;
- var documentElementProp = documentElement[prop];
- // 标准模式取 documentElement
- // backcompat 取 body
- return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
- };
- });
-
- /*
- 得到元素的大小信息
- @param elem
- @param name
- @param {String} [extra] 'padding' : (css width) + padding
- 'border' : (css width) + padding + border
- 'margin' : (css width) + padding + border + margin
- */
- function getWH(elem, name, ex) {
- var extra = ex;
- if (isWindow(elem)) {
- return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
- } else if (elem.nodeType === 9) {
- return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
- }
- var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
- var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
- var computedStyle = getComputedStyleX(elem);
- var isBorderBox = isBorderBoxFn(elem, computedStyle);
- var cssBoxValue = 0;
- if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
- borderBoxValue = undefined;
- // Fall back to computed then un computed css if necessary
- cssBoxValue = getComputedStyleX(elem, name);
- if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
- cssBoxValue = elem.style[name] || 0;
- }
- // Normalize '', auto, and prepare for extra
- cssBoxValue = parseFloat(cssBoxValue) || 0;
- }
- if (extra === undefined) {
- extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
- }
- var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
- var val = borderBoxValue || cssBoxValue;
- if (extra === CONTENT_INDEX) {
- if (borderBoxValueOrIsBorderBox) {
- return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle);
- }
- return cssBoxValue;
- } else if (borderBoxValueOrIsBorderBox) {
- if (extra === BORDER_INDEX) {
- return val;
- }
- return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle));
- }
- return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle);
- }
-
- var cssShow = {
- position: 'absolute',
- visibility: 'hidden',
- display: 'block'
- };
-
- // fix #119 : https://github.com/kissyteam/kissy/issues/119
- function getWHIgnoreDisplay() {
- for (var _len = arguments.length, args = Array(_len), _key2 = 0; _key2 < _len; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- var val = void 0;
- var elem = args[0];
- // in case elem is window
- // elem.offsetWidth === undefined
- if (elem.offsetWidth !== 0) {
- val = getWH.apply(undefined, args);
- } else {
- swap(elem, cssShow, function () {
- val = getWH.apply(undefined, args);
- });
- }
- return val;
- }
-
- each(['width', 'height'], function (name) {
- var first = name.charAt(0).toUpperCase() + name.slice(1);
- domUtils['outer' + first] = function (el, includeMargin) {
- return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
- };
- var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
-
- domUtils[name] = function (elem, v) {
- var val = v;
- if (val !== undefined) {
- if (elem) {
- var computedStyle = getComputedStyleX(elem);
- var isBorderBox = isBorderBoxFn(elem);
- if (isBorderBox) {
- val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle);
- }
- return css(elem, name, val);
- }
- return undefined;
- }
- return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
- };
- });
-
- function mix(to, from) {
- for (var i in from) {
- if (from.hasOwnProperty(i)) {
- to[i] = from[i];
- }
- }
- return to;
- }
-
- var utils = {
- getWindow: function getWindow(node) {
- if (node && node.document && node.setTimeout) {
- return node;
- }
- var doc = node.ownerDocument || node;
- return doc.defaultView || doc.parentWindow;
- },
-
- getDocument: getDocument,
- offset: function offset(el, value, option) {
- if (typeof value !== 'undefined') {
- setOffset(el, value, option || {});
- } else {
- return getOffset(el);
- }
- },
-
- isWindow: isWindow,
- each: each,
- css: css,
- clone: function clone(obj) {
- var i = void 0;
- var ret = {};
- for (i in obj) {
- if (obj.hasOwnProperty(i)) {
- ret[i] = obj[i];
- }
- }
- var overflow = obj.overflow;
- if (overflow) {
- for (i in obj) {
- if (obj.hasOwnProperty(i)) {
- ret.overflow[i] = obj.overflow[i];
- }
- }
- }
- return ret;
- },
-
- mix: mix,
- getWindowScrollLeft: function getWindowScrollLeft(w) {
- return getScrollLeft(w);
- },
- getWindowScrollTop: function getWindowScrollTop(w) {
- return getScrollTop(w);
- },
- merge: function merge() {
- var ret = {};
-
- for (var _len2 = arguments.length, args = Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
- args[_key3] = arguments[_key3];
- }
-
- for (var i = 0; i < args.length; i++) {
- utils.mix(ret, args[i]);
- }
- return ret;
- },
-
- viewportWidth: 0,
- viewportHeight: 0
- };
-
- mix(utils, domUtils);
-
- /* harmony default export */ __webpack_exports__["a"] = (utils);
-
- /***/ }),
- /* 50 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Animate = __webpack_require__(771);
-
- var _Animate2 = _interopRequireDefault(_Animate);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Animate2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 51 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(23);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
-
-
-
-
-
-
-
-
- var ContainerRender = function (_React$Component) {
- __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(ContainerRender, _React$Component);
-
- function ContainerRender() {
- var _ref;
-
- var _temp, _this, _ret;
-
- __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, ContainerRender);
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = ContainerRender.__proto__ || Object.getPrototypeOf(ContainerRender)).call.apply(_ref, [this].concat(args))), _this), _this.removeContainer = function () {
- if (_this.container) {
- __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.unmountComponentAtNode(_this.container);
- _this.container.parentNode.removeChild(_this.container);
- _this.container = null;
- }
- }, _this.renderComponent = function (props, ready) {
- var _this$props = _this.props,
- visible = _this$props.visible,
- getComponent = _this$props.getComponent,
- forceRender = _this$props.forceRender,
- getContainer = _this$props.getContainer,
- parent = _this$props.parent;
-
- if (visible || parent._component || forceRender) {
- if (!_this.container) {
- _this.container = getContainer();
- }
- __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {
- if (ready) {
- ready.call(this);
- }
- });
- }
- }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
- }
-
- __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(ContainerRender, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- if (this.props.autoMount) {
- this.renderComponent();
- }
- }
- }, {
- key: 'componentDidUpdate',
- value: function componentDidUpdate() {
- if (this.props.autoMount) {
- this.renderComponent();
- }
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- if (this.props.autoDestroy) {
- this.removeContainer();
- }
- }
- }, {
- key: 'render',
- value: function render() {
- return this.props.children({
- renderComponent: this.renderComponent,
- removeContainer: this.removeContainer
- });
- }
- }]);
-
- return ContainerRender;
- }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);
-
- ContainerRender.propTypes = {
- autoMount: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
- autoDestroy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
- visible: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
- forceRender: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
- parent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
- getComponent: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired,
- getContainer: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired,
- children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired
- };
- ContainerRender.defaultProps = {
- autoMount: true,
- autoDestroy: true,
- forceRender: false
- };
- /* harmony default export */ __webpack_exports__["a"] = (ContainerRender);
-
- /***/ }),
- /* 52 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(23);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
-
-
-
-
-
-
-
-
- var Portal = function (_React$Component) {
- __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Portal, _React$Component);
-
- function Portal() {
- __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, Portal);
-
- return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));
- }
-
- __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(Portal, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- this.createContainer();
- }
- }, {
- key: 'componentDidUpdate',
- value: function componentDidUpdate(prevProps) {
- var didUpdate = this.props.didUpdate;
-
- if (didUpdate) {
- didUpdate(prevProps);
- }
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- this.removeContainer();
- }
- }, {
- key: 'createContainer',
- value: function createContainer() {
- this._container = this.props.getContainer();
- this.forceUpdate();
- }
- }, {
- key: 'removeContainer',
- value: function removeContainer() {
- if (this._container) {
- this._container.parentNode.removeChild(this._container);
- }
- }
- }, {
- key: 'render',
- value: function render() {
- if (this._container) {
- return __WEBPACK_IMPORTED_MODULE_5_react_dom___default.a.createPortal(this.props.children, this._container);
- }
- return null;
- }
- }]);
-
- return Portal;
- }(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);
-
- Portal.propTypes = {
- getContainer: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func.isRequired,
- children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node.isRequired,
- didUpdate: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func
- };
- /* harmony default export */ __webpack_exports__["a"] = (Portal);
-
- /***/ }),
- /* 53 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Align__ = __webpack_require__(803);
- // export this package's api
-
-
- /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0__Align__["a" /* default */]);
-
- /***/ }),
- /* 54 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = void 0;
-
- var _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
-
- exports.default = _default;
- module.exports = exports["default"];
-
- /***/ }),
- /* 55 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- var _interopRequireDefault = __webpack_require__(18);
-
- exports.__esModule = true;
- exports.default = style;
-
- var _camelizeStyle = _interopRequireDefault(__webpack_require__(269));
-
- var _hyphenateStyle = _interopRequireDefault(__webpack_require__(869));
-
- var _getComputedStyle2 = _interopRequireDefault(__webpack_require__(871));
-
- var _removeStyle = _interopRequireDefault(__webpack_require__(872));
-
- var _properties = __webpack_require__(41);
-
- var _isTransform = _interopRequireDefault(__webpack_require__(873));
-
- function style(node, property, value) {
- var css = '';
- var transforms = '';
- var props = property;
-
- if (typeof property === 'string') {
- if (value === undefined) {
- return node.style[(0, _camelizeStyle.default)(property)] || (0, _getComputedStyle2.default)(node).getPropertyValue((0, _hyphenateStyle.default)(property));
- } else {
- (props = {})[property] = value;
- }
- }
-
- Object.keys(props).forEach(function (key) {
- var value = props[key];
-
- if (!value && value !== 0) {
- (0, _removeStyle.default)(node, (0, _hyphenateStyle.default)(key));
- } else if ((0, _isTransform.default)(key)) {
- transforms += key + "(" + value + ") ";
- } else {
- css += (0, _hyphenateStyle.default)(key) + ": " + value + ";";
- }
- });
-
- if (transforms) {
- css += _properties.transform + ": " + transforms + ";";
- }
-
- node.style.cssText += ';' + css;
- }
-
- module.exports = exports["default"];
-
- /***/ }),
- /* 56 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
- module.exports = exports['default'];
-
- /***/ }),
- /* 57 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
- module.exports = exports['default'];
-
- /***/ }),
- /* 58 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var dP = __webpack_require__(35);
- var createDesc = __webpack_require__(74);
- module.exports = __webpack_require__(46) ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
-
-
- /***/ }),
- /* 59 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var isObject = __webpack_require__(60);
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
-
-
- /***/ }),
- /* 60 */
- /***/ (function(module, exports) {
-
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
-
-
- /***/ }),
- /* 61 */
- /***/ (function(module, exports) {
-
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
-
-
- /***/ }),
- /* 62 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__(219);
- var defined = __webpack_require__(125);
- module.exports = function (it) {
- return IObject(defined(it));
- };
-
-
- /***/ }),
- /* 63 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
-
-
- var React = __webpack_require__(0);
- var factory = __webpack_require__(624);
-
- if (typeof React === 'undefined') {
- throw Error(
- 'create-react-class could not find the React object. If you are using script tags, ' +
- 'make sure that React is being loaded before create-react-class.'
- );
- }
-
- // Hack to grab NoopUpdateQueue from isomorphic React
- var ReactNoopUpdateQueue = new React.Component().updater;
-
- module.exports = factory(
- React.Component,
- React.isValidElement,
- ReactNoopUpdateQueue
- );
-
-
- /***/ }),
- /* 64 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
-
-
- /* eslint-disable no-unused-vars */
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
-
- function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined');
- }
-
- return Object(val);
- }
-
- function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false;
- }
-
- // Detect buggy property enumeration order in older V8 versions.
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
- test1[5] = 'de';
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {};
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i;
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
- return test2[n];
- });
- if (order2.join('') !== '0123456789') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {};
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
- test3[letter] = letter;
- });
- if (Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst') {
- return false;
- }
-
- return true;
- } catch (err) {
- // We don't expect any of the above to throw, but better to be safe.
- return false;
- }
- }
-
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
- var from;
- var to = toObject(target);
- var symbols;
-
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s]);
-
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
-
- if (getOwnPropertySymbols) {
- symbols = getOwnPropertySymbols(from);
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]];
- }
- }
- }
- }
-
- return to;
- };
-
-
- /***/ }),
- /* 65 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["h"] = noop;
- /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex;
- /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey;
- /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItem;
- /* harmony export (immutable) */ __webpack_exports__["f"] = loopMenuItemRecursively;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return menuAllProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-
- var isMobile = __webpack_require__(145);
-
- function noop() {}
-
- function getKeyFromChildrenIndex(child, menuEventKey, index) {
- var prefix = menuEventKey || '';
- return child.key || prefix + 'item_' + index;
- }
-
- function getMenuIdFromSubMenuEventKey(eventKey) {
- return eventKey + '-menu-';
- }
-
- function loopMenuItem(children, cb) {
- var index = -1;
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- index++;
- if (c && c.type && c.type.isMenuItemGroup) {
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {
- index++;
- cb(c2, index);
- });
- } else {
- cb(c, index);
- }
- });
- }
-
- function loopMenuItemRecursively(children, keys, ret) {
- /* istanbul ignore if */
- if (!children || ret.find) {
- return;
- }
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- if (c) {
- var construct = c.type;
- if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
- return;
- }
- if (keys.indexOf(c.key) !== -1) {
- ret.find = true;
- } else if (c.props.children) {
- loopMenuItemRecursively(c.props.children, keys, ret);
- }
- }
- });
- }
-
- var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
-
- // the following keys found need to be removed from test regression
- 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
-
- // ref: https://github.com/ant-design/ant-design/issues/14007
- // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
- // getBoundingClientRect return the full precision value, which is
- // not the same behavior as on chrome. Set the precision to 6 to
- // unify their behavior
- var getWidth = function getWidth(elem) {
- var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
- if (width) {
- width = +width.toFixed(6);
- }
- return width || 0;
- };
-
- var setStyle = function setStyle(elem, styleProperty, value) {
- if (elem && typeof elem.style === 'object') {
- elem.style[styleProperty] = value;
- }
- };
-
- var isMobileDevice = function isMobileDevice() {
- return isMobile.any;
- };
-
- /***/ }),
- /* 66 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- Copyright (c) 2017 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
- */
- /* global define */
-
- (function () {
- 'use strict';
-
- var hasOwn = {}.hasOwnProperty;
-
- function classNames () {
- var classes = [];
-
- for (var i = 0; i < arguments.length; i++) {
- var arg = arguments[i];
- if (!arg) continue;
-
- var argType = typeof arg;
-
- if (argType === 'string' || argType === 'number') {
- classes.push(arg);
- } else if (Array.isArray(arg) && arg.length) {
- var inner = classNames.apply(null, arg);
- if (inner) {
- classes.push(inner);
- }
- } else if (argType === 'object') {
- for (var key in arg) {
- if (hasOwn.call(arg, key) && arg[key]) {
- classes.push(key);
- }
- }
- }
- }
-
- return classes.join(' ');
- }
-
- if (typeof module !== 'undefined' && module.exports) {
- classNames.default = classNames;
- module.exports = classNames;
- } else if (true) {
- // register as 'classnames', consistent with npm package name
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
- return classNames;
- }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- } else {
- window.classNames = classNames;
- }
- }());
-
-
- /***/ }),
- /* 67 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["h"] = noop;
- /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex;
- /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey;
- /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItem;
- /* harmony export (immutable) */ __webpack_exports__["f"] = loopMenuItemRecursively;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return menuAllProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-
- var isMobile = __webpack_require__(145);
-
- function noop() {}
-
- function getKeyFromChildrenIndex(child, menuEventKey, index) {
- var prefix = menuEventKey || '';
- return child.key || prefix + 'item_' + index;
- }
-
- function getMenuIdFromSubMenuEventKey(eventKey) {
- return eventKey + '-menu-';
- }
-
- function loopMenuItem(children, cb) {
- var index = -1;
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- index++;
- if (c && c.type && c.type.isMenuItemGroup) {
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {
- index++;
- cb(c2, index);
- });
- } else {
- cb(c, index);
- }
- });
- }
-
- function loopMenuItemRecursively(children, keys, ret) {
- /* istanbul ignore if */
- if (!children || ret.find) {
- return;
- }
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- if (c) {
- var construct = c.type;
- if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
- return;
- }
- if (keys.indexOf(c.key) !== -1) {
- ret.find = true;
- } else if (c.props.children) {
- loopMenuItemRecursively(c.props.children, keys, ret);
- }
- }
- });
- }
-
- var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
-
- // the following keys found need to be removed from test regression
- 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
-
- // ref: https://github.com/ant-design/ant-design/issues/14007
- // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
- // getBoundingClientRect return the full precision value, which is
- // not the same behavior as on chrome. Set the precision to 6 to
- // unify their behavior
- var getWidth = function getWidth(elem) {
- var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
- if (width) {
- width = +width.toFixed(6);
- }
- return width || 0;
- };
-
- var setStyle = function setStyle(elem, styleProperty, value) {
- if (elem && typeof elem.style === 'object') {
- elem.style[styleProperty] = value;
- }
- };
-
- var isMobileDevice = function isMobileDevice() {
- return isMobile.any;
- };
-
- /***/ }),
- /* 68 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.setStyle = exports.getWidth = exports.menuAllProps = undefined;
-
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
- * This source code is quoted from rc-menu.
- * homepage: https://github.com/react-component/menu
- */
-
-
- exports.noop = noop;
- exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex;
- exports.getMenuIdFromSubMenuEventKey = getMenuIdFromSubMenuEventKey;
- exports.loopMenuItem = loopMenuItem;
- exports.loopMenuItemRecursively = loopMenuItemRecursively;
- exports.fireKeyEvent = fireKeyEvent;
-
- var _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function noop() {}
-
- function getKeyFromChildrenIndex(child, menuEventKey, index) {
- var prefix = menuEventKey || '';
- return child.key || prefix + 'item_' + index;
- }
-
- function getMenuIdFromSubMenuEventKey(eventKey) {
- return eventKey + '-menu-';
- }
-
- function loopMenuItem(children, cb) {
- var index = -1;
- _react2["default"].Children.forEach(children, function (c) {
- index++;
- if (c && c.type && c.type.isMenuItemGroup) {
- _react2["default"].Children.forEach(c.props.children, function (c2) {
- index++;
- cb(c2, index);
- });
- } else {
- cb(c, index);
- }
- });
- }
-
- function loopMenuItemRecursively(children, keys, ret) {
- /* istanbul ignore if */
- if (!children || ret.find) {
- return;
- }
- _react2["default"].Children.forEach(children, function (c) {
- if (c) {
- var construct = c.type;
- if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
- return;
- }
- if (keys.indexOf(c.key) !== -1) {
- ret.find = true;
- } else if (c.props.children) {
- loopMenuItemRecursively(c.props.children, keys, ret);
- }
- }
- });
- }
-
- var menuAllProps = exports.menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
-
- // the following keys found need to be removed from test regression
- 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
-
- var getWidth = exports.getWidth = function getWidth(elem) {
- return elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width || 0;
- };
-
- var setStyle = exports.setStyle = function setStyle(elem, styleProperty, value) {
- if (elem && _typeof(elem.style) === 'object') {
- elem.style[styleProperty] = value;
- }
- };
-
- function fireKeyEvent(el, evtType, keyCode) {
- var evtObj;
- if (document.createEvent) {
- if (window.KeyEvent) {
- //firefox 浏览器下模拟事件
- evtObj = document.createEvent('KeyEvents');
- evtObj.initKeyEvent(evtType, true, true, window, true, false, false, false, keyCode, 0);
- } else {
- //chrome 浏览器下模拟事件
- evtObj = document.createEvent('UIEvents');
- evtObj.initUIEvent(evtType, true, true, window, 1);
-
- delete evtObj.keyCode;
- if (typeof evtObj.keyCode === "undefined") {
- //为了模拟keycode
- Object.defineProperty(evtObj, "keyCode", { value: keyCode });
- } else {
- evtObj.key = String.fromCharCode(keyCode);
- }
-
- if (typeof evtObj.ctrlKey === 'undefined') {
- //为了模拟ctrl键
- Object.defineProperty(evtObj, "ctrlKey", { value: true });
- } else {
- evtObj.ctrlKey = true;
- }
- }
- el.dispatchEvent(evtObj);
- } else if (document.createEventObject) {
- //IE 浏览器下模拟事件
- evtObj = document.createEventObject();
- evtObj.keyCode = keyCode;
- el.fireEvent('on' + evtType, evtObj);
- }
- }
-
- /***/ }),
- /* 69 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1135);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1136);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1137);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1138);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1139);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(319);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(320);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1140);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1141);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(321);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1142);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1144);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1145);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 70 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1190);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1191);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1192);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1193);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1194);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1195);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1196);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1197);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1198);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(334);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1199);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1201);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1202);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 71 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["h"] = noop;
- /* harmony export (immutable) */ __webpack_exports__["a"] = getKeyFromChildrenIndex;
- /* harmony export (immutable) */ __webpack_exports__["b"] = getMenuIdFromSubMenuEventKey;
- /* harmony export (immutable) */ __webpack_exports__["e"] = loopMenuItem;
- /* harmony export (immutable) */ __webpack_exports__["f"] = loopMenuItemRecursively;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return menuAllProps; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getWidth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return setStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-
- var isMobile = __webpack_require__(145);
-
- function noop() {}
-
- function getKeyFromChildrenIndex(child, menuEventKey, index) {
- var prefix = menuEventKey || '';
- return child.key || prefix + 'item_' + index;
- }
-
- function getMenuIdFromSubMenuEventKey(eventKey) {
- return eventKey + '-menu-';
- }
-
- function loopMenuItem(children, cb) {
- var index = -1;
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- index++;
- if (c && c.type && c.type.isMenuItemGroup) {
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(c.props.children, function (c2) {
- index++;
- cb(c2, index);
- });
- } else {
- cb(c, index);
- }
- });
- }
-
- function loopMenuItemRecursively(children, keys, ret) {
- /* istanbul ignore if */
- if (!children || ret.find) {
- return;
- }
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- if (c) {
- var construct = c.type;
- if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
- return;
- }
- if (keys.indexOf(c.key) !== -1) {
- ret.find = true;
- } else if (c.props.children) {
- loopMenuItemRecursively(c.props.children, keys, ret);
- }
- }
- });
- }
-
- var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
-
- // the following keys found need to be removed from test regression
- 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'];
-
- // ref: https://github.com/ant-design/ant-design/issues/14007
- // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
- // getBoundingClientRect return the full precision value, which is
- // not the same behavior as on chrome. Set the precision to 6 to
- // unify their behavior
- var getWidth = function getWidth(elem) {
- var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
- if (width) {
- width = +width.toFixed(6);
- }
- return width || 0;
- };
-
- var setStyle = function setStyle(elem, styleProperty, value) {
- if (elem && typeof elem.style === 'object') {
- elem.style[styleProperty] = value;
- }
- };
-
- var isMobileDevice = function isMobileDevice() {
- return isMobile.any;
- };
-
- /***/ }),
- /* 72 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["a"] = toArray;
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
-
-
- function toArray(children) {
- var ret = [];
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
- ret.push(c);
- });
- return ret;
- }
-
- /***/ }),
- /* 73 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Button = __webpack_require__(568);
-
- var _Button2 = _interopRequireDefault(_Button);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Button2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 74 */
- /***/ (function(module, exports) {
-
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
-
-
- /***/ }),
- /* 75 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__(218);
- var enumBugKeys = __webpack_require__(129);
-
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
-
-
- /***/ }),
- /* 76 */
- /***/ (function(module, exports) {
-
- module.exports = {};
-
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(37), __webpack_require__(238)(module)))
/***/ }),
/* 77 */
@@ -97332,11 +93301,11 @@
exports.__esModule = true;
exports.default = offset;
- var _contains = _interopRequireDefault(__webpack_require__(29));
+ var _contains = _interopRequireDefault(__webpack_require__(27));
- var _isWindow = _interopRequireDefault(__webpack_require__(103));
+ var _isWindow = _interopRequireDefault(__webpack_require__(102));
- var _ownerDocument = _interopRequireDefault(__webpack_require__(22));
+ var _ownerDocument = _interopRequireDefault(__webpack_require__(23));
function offset(node) {
var doc = (0, _ownerDocument.default)(node),
@@ -97376,7 +93345,7 @@
exports.__esModule = true;
exports.default = scrollTop;
- var _isWindow = _interopRequireDefault(__webpack_require__(103));
+ var _isWindow = _interopRequireDefault(__webpack_require__(102));
function scrollTop(node, val) {
var win = (0, _isWindow.default)(node);
@@ -97396,23 +93365,23 @@
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Droppable", function() { return connectedDroppable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Draggable", function() { return ConnectedDraggable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetServerContext", function() { return resetServerContext; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__ = __webpack_require__(1217);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tiny_invariant__ = __webpack_require__(338);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_css_box_model__ = __webpack_require__(1218);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__ = __webpack_require__(1219);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_corejs2_helpers_esm_extends__ = __webpack_require__(1213);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tiny_invariant__ = __webpack_require__(335);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_css_box_model__ = __webpack_require__(1214);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__ = __webpack_require__(1215);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_corejs2_core_js_object_keys__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_memoize_one__ = __webpack_require__(1223);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_redux__ = __webpack_require__(339);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__ = __webpack_require__(337);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_memoize_one__ = __webpack_require__(1219);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_redux__ = __webpack_require__(336);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__ = __webpack_require__(334);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_corejs2_core_js_object_assign__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_raf_schd__ = __webpack_require__(1227);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__ = __webpack_require__(1228);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_raf_schd__ = __webpack_require__(1223);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_corejs2_helpers_esm_inheritsLoose__ = __webpack_require__(1224);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_redux__ = __webpack_require__(1230);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion__ = __webpack_require__(1244);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_redux__ = __webpack_require__(1226);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion__ = __webpack_require__(1240);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_motion___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_motion__);
@@ -102409,12 +98378,9 @@
}
var candidates = [base, "ms" + base, "webkit" + base, "moz" + base, "o" + base];
- var supported = "";
- for(var k = 0; k++; k < candidates.length) {
- if(candidates[k] === "on" + eventName in document){
- supported = candidates[k];
- }
- }
+ var supported = candidates.find(function (eventName) {
+ return "on" + eventName in document;
+ });
return supported || base;
}();
@@ -103851,2968 +99817,6 @@
/* 80 */
/***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(process) {
-
- exports.__esModule = true;
- exports.noop = 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; };
-
- exports.bottom = bottom;
- exports.cloneLayout = cloneLayout;
- exports.cloneLayoutItem = cloneLayoutItem;
- exports.childrenEqual = childrenEqual;
- exports.collides = collides;
- exports.compact = compact;
- exports.compactItem = compactItem;
- exports.correctBounds = correctBounds;
- exports.getLayoutItem = getLayoutItem;
- exports.getFirstCollision = getFirstCollision;
- exports.getAllCollisions = getAllCollisions;
- exports.getStatics = getStatics;
- exports.moveElement = moveElement;
- exports.moveElementAwayFromCollision = moveElementAwayFromCollision;
- exports.perc = perc;
- exports.setTransform = setTransform;
- exports.setTopLeft = setTopLeft;
- exports.sortLayoutItems = sortLayoutItems;
- exports.sortLayoutItemsByRowCol = sortLayoutItemsByRowCol;
- exports.sortLayoutItemsByColRow = sortLayoutItemsByColRow;
- exports.synchronizeLayoutWithChildren = synchronizeLayoutWithChildren;
- exports.validateLayout = validateLayout;
- exports.autoBindHandlers = autoBindHandlers;
-
- var _lodash = __webpack_require__(37);
-
- var _lodash2 = _interopRequireDefault(_lodash);
-
- var _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- // All callbacks are of the signature (layout, oldItem, newItem, placeholder, e).
- var isProduction = process.env.NODE_ENV === "production";
- var DEBUG = false;
-
- /**
- * Return the bottom coordinate of the layout.
- *
- * @param {Array} layout Layout array.
- * @return {Number} Bottom coordinate.
- */
- function bottom(layout) {
- var max = 0,
- bottomY = void 0;
- for (var _i = 0, len = layout.length; _i < len; _i++) {
- bottomY = layout[_i].y + layout[_i].h;
- if (bottomY > max) max = bottomY;
- }
- return max;
- }
-
- function cloneLayout(layout) {
- var newLayout = Array(layout.length);
- for (var _i2 = 0, len = layout.length; _i2 < len; _i2++) {
- newLayout[_i2] = cloneLayoutItem(layout[_i2]);
- }
- return newLayout;
- }
-
- // Fast path to cloning, since this is monomorphic
- function cloneLayoutItem(layoutItem) {
- return {
- w: layoutItem.w,
- h: layoutItem.h,
- x: layoutItem.x,
- y: layoutItem.y,
- i: layoutItem.i,
- minW: layoutItem.minW,
- maxW: layoutItem.maxW,
- minH: layoutItem.minH,
- maxH: layoutItem.maxH,
- moved: Boolean(layoutItem.moved),
- static: Boolean(layoutItem.static),
- // These can be null
- isDraggable: layoutItem.isDraggable,
- isResizable: layoutItem.isResizable
- };
- }
-
- /**
- * Comparing React `children` is a bit difficult. This is a good way to compare them.
- * This will catch differences in keys, order, and length.
- */
- function childrenEqual(a, b) {
- return (0, _lodash2.default)(_react2.default.Children.map(a, function (c) {
- return c.key;
- }), _react2.default.Children.map(b, function (c) {
- return c.key;
- }));
- }
-
- /**
- * Given two layoutitems, check if they collide.
- */
- function collides(l1, l2) {
- if (l1 === l2) return false; // same element
- if (l1.x + l1.w <= l2.x) return false; // l1 is left of l2
- if (l1.x >= l2.x + l2.w) return false; // l1 is right of l2
- if (l1.y + l1.h <= l2.y) return false; // l1 is above l2
- if (l1.y >= l2.y + l2.h) return false; // l1 is below l2
- return true; // boxes overlap
- }
-
- /**
- * Given a layout, compact it. This involves going down each y coordinate and removing gaps
- * between items.
- *
- * @param {Array} layout Layout.
- * @param {Boolean} verticalCompact Whether or not to compact the layout
- * vertically.
- * @return {Array} Compacted Layout.
- */
- function compact(layout, compactType, cols) {
- // Statics go in the compareWith array right away so items flow around them.
- var compareWith = getStatics(layout);
- // We go through the items by row and column.
- var sorted = sortLayoutItems(layout, compactType);
- // Holding for new items.
- var out = Array(layout.length);
-
- for (var _i3 = 0, len = sorted.length; _i3 < len; _i3++) {
- var l = cloneLayoutItem(sorted[_i3]);
-
- // Don't move static elements
- if (!l.static) {
- l = compactItem(compareWith, l, compactType, cols, sorted);
-
- // Add to comparison array. We only collide with items before this one.
- // Statics are already in this array.
- compareWith.push(l);
- }
-
- // Add to output array to make sure they still come out in the right order.
- out[layout.indexOf(sorted[_i3])] = l;
-
- // Clear moved flag, if it exists.
- l.moved = false;
- }
-
- return out;
- }
-
- var heightWidth = { x: "w", y: "h" };
- /**
- * Before moving item down, it will check if the movement will cause collisions and move those items down before.
- */
- function resolveCompactionCollision(layout, item, moveToCoord, axis) {
- var sizeProp = heightWidth[axis];
- item[axis] += 1;
- var itemIndex = layout.indexOf(item);
-
- // Go through each item we collide with.
- for (var _i4 = itemIndex + 1; _i4 < layout.length; _i4++) {
- var otherItem = layout[_i4];
- // Ignore static items
- if (otherItem.static) continue;
-
- // Optimization: we can break early if we know we're past this el
- // We can do this b/c it's a sorted layout
- if (otherItem.y > item.y + item.h) break;
-
- if (collides(item, otherItem)) {
- resolveCompactionCollision(layout, otherItem, moveToCoord + item[sizeProp], axis);
- }
- }
-
- item[axis] = moveToCoord;
- }
-
- /**
- * Compact an item in the layout.
- */
- function compactItem(compareWith, l, compactType, cols, fullLayout) {
- var compactV = compactType === "vertical";
- var compactH = compactType === "horizontal";
- if (compactV) {
- // Bottom 'y' possible is the bottom of the layout.
- // This allows you to do nice stuff like specify {y: Infinity}
- // This is here because the layout must be sorted in order to get the correct bottom `y`.
- l.y = Math.min(bottom(compareWith), l.y);
- // Move the element up as far as it can go without colliding.
- while (l.y > 0 && !getFirstCollision(compareWith, l)) {
- l.y--;
- }
- } else if (compactH) {
- l.y = Math.min(bottom(compareWith), l.y);
- // Move the element left as far as it can go without colliding.
- while (l.x > 0 && !getFirstCollision(compareWith, l)) {
- l.x--;
- }
- }
-
- // Move it down, and keep moving it down if it's colliding.
- var collides = void 0;
- while (collides = getFirstCollision(compareWith, l)) {
- if (compactH) {
- resolveCompactionCollision(fullLayout, l, collides.x + collides.w, "x");
- } else {
- resolveCompactionCollision(fullLayout, l, collides.y + collides.h, "y");
- }
- // Since we can't grow without bounds horizontally, if we've overflown, let's move it down and try again.
- if (compactH && l.x + l.w > cols) {
- l.x = cols - l.w;
- l.y++;
- }
- }
- return l;
- }
-
- /**
- * Given a layout, make sure all elements fit within its bounds.
- *
- * @param {Array} layout Layout array.
- * @param {Number} bounds Number of columns.
- */
- function correctBounds(layout, bounds) {
- var collidesWith = getStatics(layout);
- for (var _i5 = 0, len = layout.length; _i5 < len; _i5++) {
- var l = layout[_i5];
- // Overflows right
- if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;
- // Overflows left
- if (l.x < 0) {
- l.x = 0;
- l.w = bounds.cols;
- }
- if (!l.static) collidesWith.push(l);else {
- // If this is static and collides with other statics, we must move it down.
- // We have to do something nicer than just letting them overlap.
- while (getFirstCollision(collidesWith, l)) {
- l.y++;
- }
- }
- }
- return layout;
- }
-
- /**
- * Get a layout item by ID. Used so we can override later on if necessary.
- *
- * @param {Array} layout Layout array.
- * @param {String} id ID
- * @return {LayoutItem} Item at ID.
- */
- function getLayoutItem(layout, id) {
- for (var _i6 = 0, len = layout.length; _i6 < len; _i6++) {
- if (layout[_i6].i === id) return layout[_i6];
- }
- }
-
- /**
- * Returns the first item this layout collides with.
- * It doesn't appear to matter which order we approach this from, although
- * perhaps that is the wrong thing to do.
- *
- * @param {Object} layoutItem Layout item.
- * @return {Object|undefined} A colliding layout item, or undefined.
- */
- function getFirstCollision(layout, layoutItem) {
- for (var _i7 = 0, len = layout.length; _i7 < len; _i7++) {
- if (collides(layout[_i7], layoutItem)) return layout[_i7];
- }
- }
-
- function getAllCollisions(layout, layoutItem) {
- return layout.filter(function (l) {
- return collides(l, layoutItem);
- });
- }
-
- /**
- * Get all static elements.
- * @param {Array} layout Array of layout objects.
- * @return {Array} Array of static layout items..
- */
- function getStatics(layout) {
- return layout.filter(function (l) {
- return l.static;
- });
- }
-
- /**
- * Move an element. Responsible for doing cascading movements of other elements.
- *
- * @param {Array} layout Full layout to modify.
- * @param {LayoutItem} l element to move.
- * @param {Number} [x] X position in grid units.
- * @param {Number} [y] Y position in grid units.
- */
- function moveElement(layout, l, x, y, isUserAction, preventCollision, compactType, cols) {
- if (l.static) return layout;
-
- // Short-circuit if nothing to do.
- if (l.y === y && l.x === x) return layout;
-
- log("Moving element " + l.i + " to [" + String(x) + "," + String(y) + "] from [" + l.x + "," + l.y + "]");
- var oldX = l.x;
- var oldY = l.y;
-
- // This is quite a bit faster than extending the object
- if (typeof x === 'number') l.x = x;
- if (typeof y === 'number') l.y = y;
- l.moved = true;
-
- // If this collides with anything, move it.
- // When doing this comparison, we have to sort the items we compare with
- // to ensure, in the case of multiple collisions, that we're getting the
- // nearest collision.
- var sorted = sortLayoutItems(layout, compactType);
- var movingUp = compactType === "vertical" && typeof y === 'number' ? oldY >= y : compactType === "horizontal" && typeof x === 'number' ? oldX >= x : false;
- if (movingUp) sorted = sorted.reverse();
- var collisions = getAllCollisions(sorted, l);
-
- // There was a collision; abort
- if (preventCollision && collisions.length) {
- log("Collision prevented on " + l.i + ", reverting.");
- l.x = oldX;
- l.y = oldY;
- l.moved = false;
- return layout;
- }
-
- // Move each item that collides away from this element.
- for (var _i8 = 0, len = collisions.length; _i8 < len; _i8++) {
- var collision = collisions[_i8];
- log("Resolving collision between " + l.i + " at [" + l.x + "," + l.y + "] and " + collision.i + " at [" + collision.x + "," + collision.y + "]");
-
- // Short circuit so we can't infinite loop
- if (collision.moved) continue;
-
- // Don't move static items - we have to move *this* element away
- if (collision.static) {
- layout = moveElementAwayFromCollision(layout, collision, l, isUserAction, compactType, cols);
- } else {
- layout = moveElementAwayFromCollision(layout, l, collision, isUserAction, compactType, cols);
- }
- }
-
- return layout;
- }
-
- /**
- * This is where the magic needs to happen - given a collision, move an element away from the collision.
- * We attempt to move it up if there's room, otherwise it goes below.
- *
- * @param {Array} layout Full layout to modify.
- * @param {LayoutItem} collidesWith Layout item we're colliding with.
- * @param {LayoutItem} itemToMove Layout item we're moving.
- */
- function moveElementAwayFromCollision(layout, collidesWith, itemToMove, isUserAction, compactType, cols) {
- var compactH = compactType === "horizontal";
- var compactV = compactType === "vertical";
- var preventCollision = false; // we're already colliding
-
- // If there is enough space above the collision to put this element, move it there.
- // We only do this on the main collision as this can get funky in cascades and cause
- // unwanted swapping behavior.
- if (isUserAction) {
- // Reset isUserAction flag because we're not in the main collision anymore.
- isUserAction = false;
-
- // Make a mock item so we don't modify the item here, only modify in moveElement.
- var fakeItem = {
- x: compactH ? Math.max(collidesWith.x - itemToMove.w, 0) : itemToMove.x,
- y: compactV ? Math.max(collidesWith.y - itemToMove.h, 0) : itemToMove.y,
- w: itemToMove.w,
- h: itemToMove.h,
- i: "-1"
- };
-
- // No collision? If so, we can go up there; otherwise, we'll end up moving down as normal
- if (!getFirstCollision(layout, fakeItem)) {
- log("Doing reverse collision on " + itemToMove.i + " up to [" + fakeItem.x + "," + fakeItem.y + "].");
- return moveElement(layout, itemToMove, compactH ? fakeItem.x : undefined, compactV ? fakeItem.y : undefined, isUserAction, preventCollision, compactType, cols);
- }
- }
-
- return moveElement(layout, itemToMove, compactH ? itemToMove.x + 1 : undefined, compactV ? itemToMove.y + 1 : undefined, isUserAction, preventCollision, compactType, cols);
- }
-
- /**
- * Helper to convert a number to a percentage string.
- *
- * @param {Number} num Any number
- * @return {String} That number as a percentage.
- */
- function perc(num) {
- return num * 100 + "%";
- }
-
- function setTransform(_ref) {
- var top = _ref.top,
- left = _ref.left,
- width = _ref.width,
- height = _ref.height;
-
- // Replace unitless items with px
- var translate = "translate(" + left + "px," + top + "px)";
- return {
- transform: translate,
- WebkitTransform: translate,
- MozTransform: translate,
- msTransform: translate,
- OTransform: translate,
- width: width + "px",
- height: height + "px",
- position: "absolute"
- };
- }
-
- function setTopLeft(_ref2) {
- var top = _ref2.top,
- left = _ref2.left,
- width = _ref2.width,
- height = _ref2.height;
-
- return {
- top: top + "px",
- left: left + "px",
- width: width + "px",
- height: height + "px",
- position: "absolute"
- };
- }
-
- /**
- * Get layout items sorted from top left to right and down.
- *
- * @return {Array} Array of layout objects.
- * @return {Array} Layout, sorted static items first.
- */
- function sortLayoutItems(layout, compactType) {
- if (compactType === "horizontal") return sortLayoutItemsByColRow(layout);else return sortLayoutItemsByRowCol(layout);
- }
-
- function sortLayoutItemsByRowCol(layout) {
- return [].concat(layout).sort(function (a, b) {
- if (a.y > b.y || a.y === b.y && a.x > b.x) {
- return 1;
- } else if (a.y === b.y && a.x === b.x) {
- // Without this, we can get different sort results in IE vs. Chrome/FF
- return 0;
- }
- return -1;
- });
- }
-
- function sortLayoutItemsByColRow(layout) {
- return [].concat(layout).sort(function (a, b) {
- if (a.x > b.x || a.x === b.x && a.y > b.y) {
- return 1;
- }
- return -1;
- });
- }
-
- /**
- * Generate a layout using the initialLayout and children as a template.
- * Missing entries will be added, extraneous ones will be truncated.
- *
- * @param {Array} initialLayout Layout passed in through props.
- * @param {String} breakpoint Current responsive breakpoint.
- * @param {?String} compact Compaction option.
- * @return {Array} Working layout.
- */
- function synchronizeLayoutWithChildren(initialLayout, children, cols, compactType) {
- initialLayout = initialLayout || [];
-
- // Generate one layout item per child.
- var layout = [];
- _react2.default.Children.forEach(children, function (child, i) {
- // Don't overwrite if it already exists.
- var exists = getLayoutItem(initialLayout, String(child.key));
- if (exists) {
- layout[i] = cloneLayoutItem(exists);
- } else {
- if (!isProduction && child.props._grid) {
- console.warn("`_grid` properties on children have been deprecated as of React 15.2. " + // eslint-disable-line
- "Please use `data-grid` or add your properties directly to the `layout`.");
- }
- var g = child.props["data-grid"] || child.props._grid;
-
- // Hey, this item has a data-grid property, use it.
- if (g) {
- if (!isProduction) {
- validateLayout([g], "ReactGridLayout.children");
- }
- layout[i] = cloneLayoutItem(_extends({}, g, { i: child.key }));
- } else {
- // Nothing provided: ensure this is added to the bottom
- layout[i] = cloneLayoutItem({
- w: 1,
- h: 1,
- x: 0,
- y: bottom(layout),
- i: String(child.key)
- });
- }
- }
- });
-
- // Correct the layout.
- layout = correctBounds(layout, { cols: cols });
- layout = compact(layout, compactType, cols);
-
- return layout;
- }
-
- /**
- * Validate a layout. Throws errors.
- *
- * @param {Array} layout Array of layout items.
- * @param {String} [contextName] Context name for errors.
- * @throw {Error} Validation error.
- */
- function validateLayout(layout) {
- var contextName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "Layout";
-
- var subProps = ["x", "y", "w", "h"];
- if (!Array.isArray(layout)) throw new Error(contextName + " must be an array!");
- for (var _i9 = 0, len = layout.length; _i9 < len; _i9++) {
- var item = layout[_i9];
- for (var j = 0; j < subProps.length; j++) {
- if (typeof item[subProps[j]] !== "number") {
- throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "]." + subProps[j] + " must be a number!");
- }
- }
- if (item.i && typeof item.i !== "string") {
- throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].i must be a string!");
- }
- if (item.static !== undefined && typeof item.static !== "boolean") {
- throw new Error("ReactGridLayout: " + contextName + "[" + _i9 + "].static must be a boolean!");
- }
- }
- }
-
- // Flow can't really figure this out, so we just use Object
- function autoBindHandlers(el, fns) {
- fns.forEach(function (key) {
- return el[key] = el[key].bind(el);
- });
- }
-
- function log() {
- var _console;
-
- if (!DEBUG) return;
- // eslint-disable-next-line no-console
- (_console = console).log.apply(_console, arguments);
- }
-
- var noop = exports.noop = function noop() {};
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
-
- /***/ }),
- /* 81 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _tinperBeeCore = __webpack_require__(82);
-
- var _reactLifecyclesCompat = __webpack_require__(12);
-
- var _moment = __webpack_require__(4);
-
- var _moment2 = _interopRequireDefault(_moment);
-
- var _util = __webpack_require__(32);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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) : _defaults(subClass, superClass); }
-
- var cachedSelectionStart = void 0;
- var cachedSelectionEnd = void 0;
- var dateInputInstance = void 0;
-
- var DateInput = function (_React$Component) {
- _inherits(DateInput, _React$Component);
-
- function DateInput(props) {
- _classCallCheck(this, DateInput);
-
- var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
-
- _initialiseProps.call(_this);
-
- var selectedValue = props.selectedValue;
-
- _this.state = {
- str: (0, _util.formatDate)(selectedValue, _this.props.format),
- invalid: false,
- hasFocus: false
- };
- return _this;
- }
-
- DateInput.prototype.componentDidUpdate = function componentDidUpdate() {
- if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {
- dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);
- }
- };
-
- DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {
- var newState = {};
-
- if (dateInputInstance) {
- cachedSelectionStart = dateInputInstance.selectionStart;
- cachedSelectionEnd = dateInputInstance.selectionEnd;
- }
- // when popup show, click body will call this, bug!
- var selectedValue = nextProps.selectedValue;
- if (!state.hasFocus) {
- newState = {
- str: (0, _util.formatDate)(selectedValue, nextProps.format),
- invalid: false
- };
- }
-
- return newState;
- };
-
- DateInput.getInstance = function getInstance() {
- return dateInputInstance;
- };
-
- DateInput.prototype.render = function render() {
- var props = this.props;
- var _state = this.state,
- invalid = _state.invalid,
- str = _state.str;
- var locale = props.locale,
- prefixCls = props.prefixCls,
- placeholder = props.placeholder,
- clearIcon = props.clearIcon,
- renderError = props.renderError,
- inputTabIndex = props.inputTabIndex;
-
- var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
- return _react2["default"].createElement(
- 'div',
- { className: prefixCls + '-input-wrap' },
- _react2["default"].createElement(
- 'div',
- { className: prefixCls + '-date-input-wrap' },
- _react2["default"].createElement('input', {
- ref: this.saveDateInput,
- className: prefixCls + '-input ' + invalidClass,
- value: str,
- disabled: props.disabled,
- placeholder: placeholder,
- onChange: this.onInputChange,
- onKeyDown: this.onKeyDown,
- onFocus: this.onFocus,
- onBlur: this.onBlur,
- tabIndex: inputTabIndex
- }),
- invalid && renderError ? renderError() : ''
- ),
- props.showClear ? _react2["default"].createElement(
- 'a',
- {
- role: 'button',
- title: locale.clear,
- onClick: this.onClear
- },
- clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' })
- ) : null
- );
- };
-
- return DateInput;
- }(_react2["default"].Component);
-
- DateInput.propTypes = {
- prefixCls: _propTypes2["default"].string,
- timePicker: _propTypes2["default"].object,
- value: _propTypes2["default"].object,
- disabledTime: _propTypes2["default"].any,
- format: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]),
- locale: _propTypes2["default"].object,
- disabledDate: _propTypes2["default"].func,
- onChange: _propTypes2["default"].func,
- onClear: _propTypes2["default"].func,
- placeholder: _propTypes2["default"].string,
- onSelect: _propTypes2["default"].func,
- selectedValue: _propTypes2["default"].object,
- clearIcon: _propTypes2["default"].node
- };
-
- var _initialiseProps = function _initialiseProps() {
- var _this2 = this;
-
- this.onClear = function () {
- _this2.setState({
- str: ''
- });
- _this2.props.onClear(null);
- };
-
- this.onInputChange = function (event) {
- var str = event.target.value;
- var _props = _this2.props,
- disabledDate = _props.disabledDate,
- format = _props.format,
- onChange = _props.onChange,
- selectedValue = _props.selectedValue;
-
- // 没有内容,合法并直接退出
-
- if (!str) {
- onChange(null);
- _this2.setState({
- // invalid: false,
- str: str
- });
- return;
- }
-
- // 不合法直接退出
- var parsed = (0, _moment2["default"])(str, format, true);
- if (!parsed.isValid()) {
- _this2.setState({
- // invalid: true,
- str: str
- });
- return;
- }
-
- var value = _this2.props.value.clone();
- value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
-
- if (!value || disabledDate && disabledDate(value)) {
- _this2.setState({
- // invalid: true,
- str: str
- });
- return;
- }
-
- if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
- _this2.setState({
- // invalid: false,
- str: str
- });
- onChange(value);
- }
- };
-
- this.onFocus = function () {
- _this2.setState({ hasFocus: true });
- };
-
- this.onBlur = function (e) {
- var str = e.target.value;
- var _props2 = _this2.props,
- disabledDate = _props2.disabledDate,
- format = _props2.format,
- onChange = _props2.onChange,
- selectedValue = _props2.selectedValue;
-
- // 没有内容,合法并直接退出
-
- if (!str) {
- _this2.setState({
- invalid: false
- });
- return;
- }
-
- // 不合法直接退出
- var parsed = (0, _moment2["default"])(str, format, true);
- if (!parsed.isValid()) {
- _this2.setState({
- invalid: true
- });
- return;
- }
-
- var value = _this2.props.value.clone();
- value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
-
- if (!value || disabledDate && disabledDate(value)) {
- _this2.setState({
- invalid: true
- });
- return;
- }
-
- if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
- _this2.setState({
- invalid: false
- });
- }
-
- _this2.setState(function (prevState, prevProps) {
- return {
- hasFocus: false,
- str: (0, _util.formatDate)(prevProps.value, prevProps.format)
- };
- });
- _this2.props.onBlur && _this2.props.onBlur(e);
- };
-
- this.onKeyDown = function (e) {
- var _props3 = _this2.props,
- onSelect = _props3.onSelect,
- value = _props3.value,
- onKeyDown = _props3.onKeyDown,
- format = _props3.format,
- isRange = _props3.isRange;
-
- var str = e.target.value;
- var parsed = (0, _moment2["default"])(str, format, true);
- if (e.keyCode === _tinperBeeCore.KeyCode.ENTER) {
- if (parsed.isValid() && onSelect) {
- isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183
- }
- // 没有内容,回填默认值,并关闭面板
- if (!str) {
- _this2.setState({
- invalid: false
- });
- onSelect && onSelect((0, _moment2["default"])());
- return;
- }
- // 有内容,判断是否合法
- if (!parsed.isValid()) {
- _this2.setState({
- invalid: true
- });
- }
- }
- // if (e.keyCode === KeyCode.ENTER && onSelect) {
- // onSelect(value.clone());
- // }
- onKeyDown && onKeyDown(e);
- };
-
- this.getRootDOMNode = function () {
- return _reactDom2["default"].findDOMNode(_this2);
- };
-
- this.focus = function () {
- if (dateInputInstance) {
- dateInputInstance.focus();
- }
- };
-
- this.saveDateInput = function (dateInput) {
- dateInputInstance = dateInput;
- };
- };
-
- (0, _reactLifecyclesCompat.polyfill)(DateInput);
-
- exports["default"] = DateInput;
- module.exports = exports['default'];
-
- /***/ }),
- /* 82 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1350);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1351);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1352);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1353);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1354);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1355);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1356);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1357);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1358);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(487);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1359);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1361);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1362);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 83 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactLifecyclesCompat = __webpack_require__(12);
-
- var _createChainedFunction = __webpack_require__(311);
-
- var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
-
- var _KeyCode = __webpack_require__(110);
-
- var _KeyCode2 = _interopRequireDefault(_KeyCode);
-
- var _placements = __webpack_require__(1365);
-
- var _placements2 = _interopRequireDefault(_placements);
-
- var _rcTrigger = __webpack_require__(1366);
-
- var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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) : _defaults(subClass, superClass); }
-
- function noop() {}
-
- function refFn(field, component) {
- this[field] = component;
- }
-
- var Picker = function (_React$Component) {
- _inherits(Picker, _React$Component);
-
- function Picker(props) {
- _classCallCheck(this, Picker);
-
- var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
-
- _initialiseProps.call(_this);
-
- var open = void 0;
- if ('open' in props) {
- open = props.open;
- } else {
- open = props.defaultOpen;
- }
- var value = props.value || props.defaultValue;
- _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance');
-
- _this.state = {
- open: open,
- value: value
- };
- return _this;
- }
-
- Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {
- if (!prevState.open && this.state.open) {
- // setTimeout is for making sure saveCalendarRef happen before focusCalendar
- this.focusTimeout = setTimeout(this.focusCalendar, 0, this);
- }
- };
-
- Picker.prototype.componentWillUnmount = function componentWillUnmount() {
- clearTimeout(this.focusTimeout);
- };
-
- Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {
- var newState = {};
- var value = nextProps.value,
- open = nextProps.open;
-
- if ('value' in nextProps) {
- newState.value = value;
- }
- if (open !== undefined) {
- newState.open = open;
- }
- return newState;
- };
-
- Picker.prototype.render = function render() {
- var props = this.props;
- var prefixCls = props.prefixCls,
- placement = props.placement,
- style = props.style,
- getCalendarContainer = props.getCalendarContainer,
- align = props.align,
- animation = props.animation,
- disabled = props.disabled,
- dropdownClassName = props.dropdownClassName,
- transitionName = props.transitionName,
- children = props.children;
-
- var state = this.state;
- return _react2["default"].createElement(
- _rcTrigger2["default"],
- {
- popup: this.getCalendarElement(),
- popupAlign: align,
- builtinPlacements: _placements2["default"],
- popupPlacement: placement,
- action: disabled && !state.open ? [] : ['click'],
- destroyPopupOnHide: true,
- getPopupContainer: getCalendarContainer,
- popupStyle: style,
- popupAnimation: animation,
- popupTransitionName: transitionName,
- popupVisible: state.open,
- onPopupVisibleChange: this.onVisibleChange,
- prefixCls: prefixCls,
- popupClassName: dropdownClassName
- },
- _react2["default"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown })
- );
- };
-
- return Picker;
- }(_react2["default"].Component);
-
- Picker.propTypes = {
- animation: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].string]),
- disabled: _propTypes2["default"].bool,
- transitionName: _propTypes2["default"].string,
- onChange: _propTypes2["default"].func,
- onOpenChange: _propTypes2["default"].func,
- children: _propTypes2["default"].func,
- getCalendarContainer: _propTypes2["default"].func,
- calendar: _propTypes2["default"].element,
- style: _propTypes2["default"].object,
- open: _propTypes2["default"].bool,
- defaultOpen: _propTypes2["default"].bool,
- prefixCls: _propTypes2["default"].string,
- placement: _propTypes2["default"].any,
- value: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]),
- defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]),
- align: _propTypes2["default"].object
- };
- Picker.defaultProps = {
- prefixCls: 'rc-calendar-picker',
- style: {},
- align: {},
- placement: 'bottomLeft',
- defaultOpen: false,
- onChange: noop,
- onOpenChange: noop
- };
-
- var _initialiseProps = function _initialiseProps() {
- var _this2 = this;
-
- this.onCalendarKeyDown = function (event) {
- if (event.keyCode === _KeyCode2["default"].ESC) {
- event.stopPropagation();
- _this2.close(_this2.focus);
- }
- _this2.props.onKeyDown && _this2.props.onKeyDown(event);
- };
-
- this.onCalendarSelect = function (value) {
- var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- var props = _this2.props;
- if (!('value' in props)) {
- _this2.setState({
- value: value
- });
- }
- if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
- _this2.close(_this2.focus);
- }
- props.onChange(value);
- };
-
- this.onKeyDown = function (event) {
- if (!_this2.state.open && (event.keyCode === _KeyCode2["default"].DOWN || event.keyCode === _KeyCode2["default"].ENTER)) {
- _this2.open();
- event.preventDefault();
- }
- _this2.props.onKeyDown && _this2.props.onKeyDown(event);
- };
-
- this.onCalendarOk = function () {
- _this2.close(_this2.focus);
- };
-
- this.onCalendarClear = function () {
- _this2.close(_this2.focus);
- };
-
- this.onVisibleChange = function (open) {
- _this2.setOpen(open);
- };
-
- this.getCalendarElement = function () {
- var props = _this2.props;
- var state = _this2.state;
- var calendarProps = props.calendar.props;
- var value = state.value;
-
- var defaultValue = value;
- var extraProps = {
- ref: _this2.saveCalendarRef,
- defaultValue: defaultValue || calendarProps.defaultValue,
- selectedValue: value,
- onKeyDown: _this2.onCalendarKeyDown,
- onOk: (0, _createChainedFunction2["default"])(calendarProps.onOk, _this2.onCalendarOk),
- onSelect: (0, _createChainedFunction2["default"])(calendarProps.onSelect, _this2.onCalendarSelect),
- onClear: (0, _createChainedFunction2["default"])(calendarProps.onClear, _this2.onCalendarClear)
- };
-
- return _react2["default"].cloneElement(props.calendar, extraProps);
- };
-
- this.setOpen = function (open, callback) {
- var onOpenChange = _this2.props.onOpenChange;
-
- if (_this2.state.open !== open) {
- if (!('open' in _this2.props)) {
- _this2.setState({
- open: open
- }, callback);
- }
- onOpenChange(open);
- }
- };
-
- this.open = function (callback) {
- _this2.setOpen(true, callback);
- };
-
- this.close = function (callback) {
- _this2.setOpen(false, callback);
- };
-
- this.focus = function () {
- if (!_this2.state.open) {
- _reactDom2["default"].findDOMNode(_this2).focus();
- }
- };
-
- this.focusCalendar = function () {
- if (_this2.state.open && !!_this2.calendarInstance) {
- _this2.calendarInstance.focus();
- }
- };
- };
-
- (0, _reactLifecyclesCompat.polyfill)(Picker);
-
- exports["default"] = Picker;
- module.exports = exports['default'];
-
- /***/ }),
- /* 84 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _FormControl = __webpack_require__(1369);
-
- var _FormControl2 = _interopRequireDefault(_FormControl);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _FormControl2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 85 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- module.exports = __webpack_require__(1373);
-
- /***/ }),
- /* 86 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = {
- today: '今天',
- now: '此刻',
- backToToday: '返回今天',
- ok: '确定',
- timeSelect: '选择时间',
- dateSelect: '选择日期',
- weekSelect: '选择周',
- clear: '清除',
- month: '月',
- year: '年',
- previousMonth: '上个月 (翻页上键)',
- nextMonth: '下个月 (翻页下键)',
- monthSelect: '选择月份',
- yearSelect: '选择年份',
- decadeSelect: '选择年代',
- yearFormat: 'YYYY年',
- dayFormat: 'D日',
- dateFormat: 'YYYY年M月D日',
- dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
- previousYear: '上一年 (Control键加左方向键)',
- nextYear: '下一年 (Control键加右方向键)',
- previousDecade: '上一年代',
- nextDecade: '下一年代',
- previousCentury: '上一世纪',
- nextCentury: '下一世纪',
- lastWeek: '上一周',
- nowWeek: '本周',
- nextWeek: '下一周'
- };
- module.exports = exports['default'];
-
- /***/ }),
- /* 87 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = ownerDocument;
- function ownerDocument(node) {
- return node && node.ownerDocument || document;
- }
- module.exports = exports["default"];
-
- /***/ }),
- /* 88 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _inDOM = __webpack_require__(43);
-
- var _inDOM2 = _interopRequireDefault(_inDOM);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- var on = function on() {};
- if (_inDOM2.default) {
- on = function () {
-
- if (document.addEventListener) return function (node, eventName, handler, capture) {
- return node.addEventListener(eventName, handler, capture || false);
- };else if (document.attachEvent) return function (node, eventName, handler) {
- return node.attachEvent('on' + eventName, handler);
- };
- }();
- }
-
- exports.default = on;
- module.exports = exports['default'];
-
- /***/ }),
- /* 89 */
- /***/ (function(module, exports) {
-
- module.exports = true;
-
-
- /***/ }),
- /* 90 */
- /***/ (function(module, exports) {
-
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
-
-
- /***/ }),
- /* 91 */
- /***/ (function(module, exports) {
-
- exports.f = {}.propertyIsEnumerable;
-
-
- /***/ }),
- /* 92 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__(125);
- module.exports = function (it) {
- return Object(defined(it));
- };
-
-
- /***/ }),
- /* 93 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var freeGlobal = __webpack_require__(669);
-
- /** Detect free variable `self`. */
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || Function('return this')();
-
- module.exports = root;
-
-
- /***/ }),
- /* 94 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var getNative = __webpack_require__(138);
-
- /* Built-in method references that are verified to be native. */
- var nativeCreate = getNative(Object, 'create');
-
- module.exports = nativeCreate;
-
-
- /***/ }),
- /* 95 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var eq = __webpack_require__(140);
-
- /**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
- }
- return -1;
- }
-
- module.exports = assocIndexOf;
-
-
- /***/ }),
- /* 96 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var isKeyable = __webpack_require__(698);
-
- /**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
- function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
- }
-
- module.exports = getMapData;
-
-
- /***/ }),
- /* 97 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(750);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(751);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(752);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(753);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(754);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(755);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(756);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(757);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(758);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(242);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(761);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(763);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(244);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 98 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* WEBPACK VAR INJECTION */(function(global) {/**
- * A collection of shims that provide minimal functionality of the ES6 collections.
- *
- * These implementations are not meant to be used outside of the ResizeObserver
- * modules as they cover only a limited range of use cases.
- */
- /* eslint-disable require-jsdoc, valid-jsdoc */
- var MapShim = (function () {
- if (typeof Map !== 'undefined') {
- return Map;
- }
- /**
- * Returns index in provided array that matches the specified key.
- *
- * @param {Array} arr
- * @param {*} key
- * @returns {number}
- */
- function getIndex(arr, key) {
- var result = -1;
- arr.some(function (entry, index) {
- if (entry[0] === key) {
- result = index;
- return true;
- }
- return false;
- });
- return result;
- }
- return /** @class */ (function () {
- function class_1() {
- this.__entries__ = [];
- }
- Object.defineProperty(class_1.prototype, "size", {
- /**
- * @returns {boolean}
- */
- get: function () {
- return this.__entries__.length;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {*} key
- * @returns {*}
- */
- class_1.prototype.get = function (key) {
- var index = getIndex(this.__entries__, key);
- var entry = this.__entries__[index];
- return entry && entry[1];
- };
- /**
- * @param {*} key
- * @param {*} value
- * @returns {void}
- */
- class_1.prototype.set = function (key, value) {
- var index = getIndex(this.__entries__, key);
- if (~index) {
- this.__entries__[index][1] = value;
- }
- else {
- this.__entries__.push([key, value]);
- }
- };
- /**
- * @param {*} key
- * @returns {void}
- */
- class_1.prototype.delete = function (key) {
- var entries = this.__entries__;
- var index = getIndex(entries, key);
- if (~index) {
- entries.splice(index, 1);
- }
- };
- /**
- * @param {*} key
- * @returns {void}
- */
- class_1.prototype.has = function (key) {
- return !!~getIndex(this.__entries__, key);
- };
- /**
- * @returns {void}
- */
- class_1.prototype.clear = function () {
- this.__entries__.splice(0);
- };
- /**
- * @param {Function} callback
- * @param {*} [ctx=null]
- * @returns {void}
- */
- class_1.prototype.forEach = function (callback, ctx) {
- if (ctx === void 0) { ctx = null; }
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
- var entry = _a[_i];
- callback.call(ctx, entry[1], entry[0]);
- }
- };
- return class_1;
- }());
- })();
-
- /**
- * Detects whether window and document objects are available in current environment.
- */
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
-
- // Returns global object of a current environment.
- var global$1 = (function () {
- if (typeof global !== 'undefined' && global.Math === Math) {
- return global;
- }
- if (typeof self !== 'undefined' && self.Math === Math) {
- return self;
- }
- if (typeof window !== 'undefined' && window.Math === Math) {
- return window;
- }
- // eslint-disable-next-line no-new-func
- return Function('return this')();
- })();
-
- /**
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
- * first one is not supported.
- *
- * @returns {number} Requests' identifier.
- */
- var requestAnimationFrame$1 = (function () {
- if (typeof requestAnimationFrame === 'function') {
- // It's required to use a bounded function because IE sometimes throws
- // an "Invalid calling object" error if rAF is invoked without the global
- // object on the left hand side.
- return requestAnimationFrame.bind(global$1);
- }
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
- })();
-
- // Defines minimum timeout before adding a trailing call.
- var trailingTimeout = 2;
- /**
- * Creates a wrapper function which ensures that provided callback will be
- * invoked only once during the specified delay period.
- *
- * @param {Function} callback - Function to be invoked after the delay period.
- * @param {number} delay - Delay after which to invoke callback.
- * @returns {Function}
- */
- function throttle (callback, delay) {
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
- /**
- * Invokes the original callback function and schedules new invocation if
- * the "proxy" was called during current request.
- *
- * @returns {void}
- */
- function resolvePending() {
- if (leadingCall) {
- leadingCall = false;
- callback();
- }
- if (trailingCall) {
- proxy();
- }
- }
- /**
- * Callback invoked after the specified delay. It will further postpone
- * invocation of the original function delegating it to the
- * requestAnimationFrame.
- *
- * @returns {void}
- */
- function timeoutCallback() {
- requestAnimationFrame$1(resolvePending);
- }
- /**
- * Schedules invocation of the original function.
- *
- * @returns {void}
- */
- function proxy() {
- var timeStamp = Date.now();
- if (leadingCall) {
- // Reject immediately following calls.
- if (timeStamp - lastCallTime < trailingTimeout) {
- return;
- }
- // Schedule new call to be in invoked when the pending one is resolved.
- // This is important for "transitions" which never actually start
- // immediately so there is a chance that we might miss one if change
- // happens amids the pending invocation.
- trailingCall = true;
- }
- else {
- leadingCall = true;
- trailingCall = false;
- setTimeout(timeoutCallback, delay);
- }
- lastCallTime = timeStamp;
- }
- return proxy;
- }
-
- // Minimum delay before invoking the update of observers.
- var REFRESH_DELAY = 20;
- // A list of substrings of CSS properties used to find transition events that
- // might affect dimensions of observed elements.
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
- // Check if MutationObserver is available.
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
- /**
- * Singleton controller class which handles updates of ResizeObserver instances.
- */
- var ResizeObserverController = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserverController.
- *
- * @private
- */
- function ResizeObserverController() {
- /**
- * Indicates whether DOM listeners have been added.
- *
- * @private {boolean}
- */
- this.connected_ = false;
- /**
- * Tells that controller has subscribed for Mutation Events.
- *
- * @private {boolean}
- */
- this.mutationEventsAdded_ = false;
- /**
- * Keeps reference to the instance of MutationObserver.
- *
- * @private {MutationObserver}
- */
- this.mutationsObserver_ = null;
- /**
- * A list of connected observers.
- *
- * @private {Array}
- */
- this.observers_ = [];
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
- }
- /**
- * Adds observer to observers list.
- *
- * @param {ResizeObserverSPI} observer - Observer to be added.
- * @returns {void}
- */
- ResizeObserverController.prototype.addObserver = function (observer) {
- if (!~this.observers_.indexOf(observer)) {
- this.observers_.push(observer);
- }
- // Add listeners if they haven't been added yet.
- if (!this.connected_) {
- this.connect_();
- }
- };
- /**
- * Removes observer from observers list.
- *
- * @param {ResizeObserverSPI} observer - Observer to be removed.
- * @returns {void}
- */
- ResizeObserverController.prototype.removeObserver = function (observer) {
- var observers = this.observers_;
- var index = observers.indexOf(observer);
- // Remove observer if it's present in registry.
- if (~index) {
- observers.splice(index, 1);
- }
- // Remove listeners if controller has no connected observers.
- if (!observers.length && this.connected_) {
- this.disconnect_();
- }
- };
- /**
- * Invokes the update of observers. It will continue running updates insofar
- * it detects changes.
- *
- * @returns {void}
- */
- ResizeObserverController.prototype.refresh = function () {
- var changesDetected = this.updateObservers_();
- // Continue running updates if changes have been detected as there might
- // be future ones caused by CSS transitions.
- if (changesDetected) {
- this.refresh();
- }
- };
- /**
- * Updates every observer from observers list and notifies them of queued
- * entries.
- *
- * @private
- * @returns {boolean} Returns "true" if any observer has detected changes in
- * dimensions of it's elements.
- */
- ResizeObserverController.prototype.updateObservers_ = function () {
- // Collect observers that have active observations.
- var activeObservers = this.observers_.filter(function (observer) {
- return observer.gatherActive(), observer.hasActive();
- });
- // Deliver notifications in a separate cycle in order to avoid any
- // collisions between observers, e.g. when multiple instances of
- // ResizeObserver are tracking the same element and the callback of one
- // of them changes content dimensions of the observed target. Sometimes
- // this may result in notifications being blocked for the rest of observers.
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
- return activeObservers.length > 0;
- };
- /**
- * Initializes DOM listeners.
- *
- * @private
- * @returns {void}
- */
- ResizeObserverController.prototype.connect_ = function () {
- // Do nothing if running in a non-browser environment or if listeners
- // have been already added.
- if (!isBrowser || this.connected_) {
- return;
- }
- // Subscription to the "Transitionend" event is used as a workaround for
- // delayed transitions. This way it's possible to capture at least the
- // final state of an element.
- document.addEventListener('transitionend', this.onTransitionEnd_);
- window.addEventListener('resize', this.refresh);
- if (mutationObserverSupported) {
- this.mutationsObserver_ = new MutationObserver(this.refresh);
- this.mutationsObserver_.observe(document, {
- attributes: true,
- childList: true,
- characterData: true,
- subtree: true
- });
- }
- else {
- document.addEventListener('DOMSubtreeModified', this.refresh);
- this.mutationEventsAdded_ = true;
- }
- this.connected_ = true;
- };
- /**
- * Removes DOM listeners.
- *
- * @private
- * @returns {void}
- */
- ResizeObserverController.prototype.disconnect_ = function () {
- // Do nothing if running in a non-browser environment or if listeners
- // have been already removed.
- if (!isBrowser || !this.connected_) {
- return;
- }
- document.removeEventListener('transitionend', this.onTransitionEnd_);
- window.removeEventListener('resize', this.refresh);
- if (this.mutationsObserver_) {
- this.mutationsObserver_.disconnect();
- }
- if (this.mutationEventsAdded_) {
- document.removeEventListener('DOMSubtreeModified', this.refresh);
- }
- this.mutationsObserver_ = null;
- this.mutationEventsAdded_ = false;
- this.connected_ = false;
- };
- /**
- * "Transitionend" event handler.
- *
- * @private
- * @param {TransitionEvent} event
- * @returns {void}
- */
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
- // Detect whether transition may affect dimensions of an element.
- var isReflowProperty = transitionKeys.some(function (key) {
- return !!~propertyName.indexOf(key);
- });
- if (isReflowProperty) {
- this.refresh();
- }
- };
- /**
- * Returns instance of the ResizeObserverController.
- *
- * @returns {ResizeObserverController}
- */
- ResizeObserverController.getInstance = function () {
- if (!this.instance_) {
- this.instance_ = new ResizeObserverController();
- }
- return this.instance_;
- };
- /**
- * Holds reference to the controller's instance.
- *
- * @private {ResizeObserverController}
- */
- ResizeObserverController.instance_ = null;
- return ResizeObserverController;
- }());
-
- /**
- * Defines non-writable/enumerable properties of the provided target object.
- *
- * @param {Object} target - Object for which to define properties.
- * @param {Object} props - Properties to be defined.
- * @returns {Object} Target object.
- */
- var defineConfigurable = (function (target, props) {
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
- var key = _a[_i];
- Object.defineProperty(target, key, {
- value: props[key],
- enumerable: false,
- writable: false,
- configurable: true
- });
- }
- return target;
- });
-
- /**
- * Returns the global object associated with provided element.
- *
- * @param {Object} target
- * @returns {Object}
- */
- var getWindowOf = (function (target) {
- // Assume that the element is an instance of Node, which means that it
- // has the "ownerDocument" property from which we can retrieve a
- // corresponding global object.
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
- // Return the local global object if it's not possible extract one from
- // provided element.
- return ownerGlobal || global$1;
- });
-
- // Placeholder of an empty content rectangle.
- var emptyRect = createRectInit(0, 0, 0, 0);
- /**
- * Converts provided string to a number.
- *
- * @param {number|string} value
- * @returns {number}
- */
- function toFloat(value) {
- return parseFloat(value) || 0;
- }
- /**
- * Extracts borders size from provided styles.
- *
- * @param {CSSStyleDeclaration} styles
- * @param {...string} positions - Borders positions (top, right, ...)
- * @returns {number}
- */
- function getBordersSize(styles) {
- var positions = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- positions[_i - 1] = arguments[_i];
- }
- return positions.reduce(function (size, position) {
- var value = styles['border-' + position + '-width'];
- return size + toFloat(value);
- }, 0);
- }
- /**
- * Extracts paddings sizes from provided styles.
- *
- * @param {CSSStyleDeclaration} styles
- * @returns {Object} Paddings box.
- */
- function getPaddings(styles) {
- var positions = ['top', 'right', 'bottom', 'left'];
- var paddings = {};
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
- var position = positions_1[_i];
- var value = styles['padding-' + position];
- paddings[position] = toFloat(value);
- }
- return paddings;
- }
- /**
- * Calculates content rectangle of provided SVG element.
- *
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
- * to be calculated.
- * @returns {DOMRectInit}
- */
- function getSVGContentRect(target) {
- var bbox = target.getBBox();
- return createRectInit(0, 0, bbox.width, bbox.height);
- }
- /**
- * Calculates content rectangle of provided HTMLElement.
- *
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
- * @returns {DOMRectInit}
- */
- function getHTMLElementContentRect(target) {
- // Client width & height properties can't be
- // used exclusively as they provide rounded values.
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
- // By this condition we can catch all non-replaced inline, hidden and
- // detached elements. Though elements with width & height properties less
- // than 0.5 will be discarded as well.
- //
- // Without it we would need to implement separate methods for each of
- // those cases and it's not possible to perform a precise and performance
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
- // gives wrong results for elements with width & height less than 0.5.
- if (!clientWidth && !clientHeight) {
- return emptyRect;
- }
- var styles = getWindowOf(target).getComputedStyle(target);
- var paddings = getPaddings(styles);
- var horizPad = paddings.left + paddings.right;
- var vertPad = paddings.top + paddings.bottom;
- // Computed styles of width & height are being used because they are the
- // only dimensions available to JS that contain non-rounded values. It could
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
- // affected by CSS transformations let alone paddings, borders and scroll bars.
- var width = toFloat(styles.width), height = toFloat(styles.height);
- // Width & height include paddings and borders when the 'border-box' box
- // model is applied (except for IE).
- if (styles.boxSizing === 'border-box') {
- // Following conditions are required to handle Internet Explorer which
- // doesn't include paddings and borders to computed CSS dimensions.
- //
- // We can say that if CSS dimensions + paddings are equal to the "client"
- // properties then it's either IE, and thus we don't need to subtract
- // anything, or an element merely doesn't have paddings/borders styles.
- if (Math.round(width + horizPad) !== clientWidth) {
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
- }
- if (Math.round(height + vertPad) !== clientHeight) {
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
- }
- }
- // Following steps can't be applied to the document's root element as its
- // client[Width/Height] properties represent viewport area of the window.
- // Besides, it's as well not necessary as the itself neither has
- // rendered scroll bars nor it can be clipped.
- if (!isDocumentElement(target)) {
- // In some browsers (only in Firefox, actually) CSS width & height
- // include scroll bars size which can be removed at this step as scroll
- // bars are the only difference between rounded dimensions + paddings
- // and "client" properties, though that is not always true in Chrome.
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
- // Chrome has a rather weird rounding of "client" properties.
- // E.g. for an element with content width of 314.2px it sometimes gives
- // the client width of 315px and for the width of 314.7px it may give
- // 314px. And it doesn't happen all the time. So just ignore this delta
- // as a non-relevant.
- if (Math.abs(vertScrollbar) !== 1) {
- width -= vertScrollbar;
- }
- if (Math.abs(horizScrollbar) !== 1) {
- height -= horizScrollbar;
- }
- }
- return createRectInit(paddings.left, paddings.top, width, height);
- }
- /**
- * Checks whether provided element is an instance of the SVGGraphicsElement.
- *
- * @param {Element} target - Element to be checked.
- * @returns {boolean}
- */
- var isSVGGraphicsElement = (function () {
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
- // interface.
- if (typeof SVGGraphicsElement !== 'undefined') {
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
- }
- // If it's so, then check that element is at least an instance of the
- // SVGElement and that it has the "getBBox" method.
- // eslint-disable-next-line no-extra-parens
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
- typeof target.getBBox === 'function'); };
- })();
- /**
- * Checks whether provided element is a document element ().
- *
- * @param {Element} target - Element to be checked.
- * @returns {boolean}
- */
- function isDocumentElement(target) {
- return target === getWindowOf(target).document.documentElement;
- }
- /**
- * Calculates an appropriate content rectangle for provided html or svg element.
- *
- * @param {Element} target - Element content rectangle of which needs to be calculated.
- * @returns {DOMRectInit}
- */
- function getContentRect(target) {
- if (!isBrowser) {
- return emptyRect;
- }
- if (isSVGGraphicsElement(target)) {
- return getSVGContentRect(target);
- }
- return getHTMLElementContentRect(target);
- }
- /**
- * Creates rectangle with an interface of the DOMRectReadOnly.
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
- *
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
- * @returns {DOMRectReadOnly}
- */
- function createReadOnlyRect(_a) {
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
- var rect = Object.create(Constr.prototype);
- // Rectangle's properties are not writable and non-enumerable.
- defineConfigurable(rect, {
- x: x, y: y, width: width, height: height,
- top: y,
- right: x + width,
- bottom: height + y,
- left: x
- });
- return rect;
- }
- /**
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
- *
- * @param {number} x - X coordinate.
- * @param {number} y - Y coordinate.
- * @param {number} width - Rectangle's width.
- * @param {number} height - Rectangle's height.
- * @returns {DOMRectInit}
- */
- function createRectInit(x, y, width, height) {
- return { x: x, y: y, width: width, height: height };
- }
-
- /**
- * Class that is responsible for computations of the content rectangle of
- * provided DOM element and for keeping track of it's changes.
- */
- var ResizeObservation = /** @class */ (function () {
- /**
- * Creates an instance of ResizeObservation.
- *
- * @param {Element} target - Element to be observed.
- */
- function ResizeObservation(target) {
- /**
- * Broadcasted width of content rectangle.
- *
- * @type {number}
- */
- this.broadcastWidth = 0;
- /**
- * Broadcasted height of content rectangle.
- *
- * @type {number}
- */
- this.broadcastHeight = 0;
- /**
- * Reference to the last observed content rectangle.
- *
- * @private {DOMRectInit}
- */
- this.contentRect_ = createRectInit(0, 0, 0, 0);
- this.target = target;
- }
- /**
- * Updates content rectangle and tells whether it's width or height properties
- * have changed since the last broadcast.
- *
- * @returns {boolean}
- */
- ResizeObservation.prototype.isActive = function () {
- var rect = getContentRect(this.target);
- this.contentRect_ = rect;
- return (rect.width !== this.broadcastWidth ||
- rect.height !== this.broadcastHeight);
- };
- /**
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
- * from the corresponding properties of the last observed content rectangle.
- *
- * @returns {DOMRectInit} Last observed content rectangle.
- */
- ResizeObservation.prototype.broadcastRect = function () {
- var rect = this.contentRect_;
- this.broadcastWidth = rect.width;
- this.broadcastHeight = rect.height;
- return rect;
- };
- return ResizeObservation;
- }());
-
- var ResizeObserverEntry = /** @class */ (function () {
- /**
- * Creates an instance of ResizeObserverEntry.
- *
- * @param {Element} target - Element that is being observed.
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
- */
- function ResizeObserverEntry(target, rectInit) {
- var contentRect = createReadOnlyRect(rectInit);
- // According to the specification following properties are not writable
- // and are also not enumerable in the native implementation.
- //
- // Property accessors are not being used as they'd require to define a
- // private WeakMap storage which may cause memory leaks in browsers that
- // don't support this type of collections.
- defineConfigurable(this, { target: target, contentRect: contentRect });
- }
- return ResizeObserverEntry;
- }());
-
- var ResizeObserverSPI = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserver.
- *
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
- * when one of the observed elements changes it's content dimensions.
- * @param {ResizeObserverController} controller - Controller instance which
- * is responsible for the updates of observer.
- * @param {ResizeObserver} callbackCtx - Reference to the public
- * ResizeObserver instance which will be passed to callback function.
- */
- function ResizeObserverSPI(callback, controller, callbackCtx) {
- /**
- * Collection of resize observations that have detected changes in dimensions
- * of elements.
- *
- * @private {Array}
- */
- this.activeObservations_ = [];
- /**
- * Registry of the ResizeObservation instances.
- *
- * @private {Map}
- */
- this.observations_ = new MapShim();
- if (typeof callback !== 'function') {
- throw new TypeError('The callback provided as parameter 1 is not a function.');
- }
- this.callback_ = callback;
- this.controller_ = controller;
- this.callbackCtx_ = callbackCtx;
- }
- /**
- * Starts observing provided element.
- *
- * @param {Element} target - Element to be observed.
- * @returns {void}
- */
- ResizeObserverSPI.prototype.observe = function (target) {
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- // Do nothing if current environment doesn't have the Element interface.
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- // Do nothing if element is already being observed.
- if (observations.has(target)) {
- return;
- }
- observations.set(target, new ResizeObservation(target));
- this.controller_.addObserver(this);
- // Force the update of observations.
- this.controller_.refresh();
- };
- /**
- * Stops observing provided element.
- *
- * @param {Element} target - Element to stop observing.
- * @returns {void}
- */
- ResizeObserverSPI.prototype.unobserve = function (target) {
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- // Do nothing if current environment doesn't have the Element interface.
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- // Do nothing if element is not being observed.
- if (!observations.has(target)) {
- return;
- }
- observations.delete(target);
- if (!observations.size) {
- this.controller_.removeObserver(this);
- }
- };
- /**
- * Stops observing all elements.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.disconnect = function () {
- this.clearActive();
- this.observations_.clear();
- this.controller_.removeObserver(this);
- };
- /**
- * Collects observation instances the associated element of which has changed
- * it's content rectangle.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.gatherActive = function () {
- var _this = this;
- this.clearActive();
- this.observations_.forEach(function (observation) {
- if (observation.isActive()) {
- _this.activeObservations_.push(observation);
- }
- });
- };
- /**
- * Invokes initial callback function with a list of ResizeObserverEntry
- * instances collected from active resize observations.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.broadcastActive = function () {
- // Do nothing if observer doesn't have active observations.
- if (!this.hasActive()) {
- return;
- }
- var ctx = this.callbackCtx_;
- // Create ResizeObserverEntry instance for every active observation.
- var entries = this.activeObservations_.map(function (observation) {
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
- });
- this.callback_.call(ctx, entries, ctx);
- this.clearActive();
- };
- /**
- * Clears the collection of active observations.
- *
- * @returns {void}
- */
- ResizeObserverSPI.prototype.clearActive = function () {
- this.activeObservations_.splice(0);
- };
- /**
- * Tells whether observer has active observations.
- *
- * @returns {boolean}
- */
- ResizeObserverSPI.prototype.hasActive = function () {
- return this.activeObservations_.length > 0;
- };
- return ResizeObserverSPI;
- }());
-
- // Registry of internal observers. If WeakMap is not available use current shim
- // for the Map collection as it has all required methods and because WeakMap
- // can't be fully polyfilled anyway.
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
- /**
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
- * exposing only those methods and properties that are defined in the spec.
- */
- var ResizeObserver = /** @class */ (function () {
- /**
- * Creates a new instance of ResizeObserver.
- *
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
- * dimensions of the observed elements change.
- */
- function ResizeObserver(callback) {
- if (!(this instanceof ResizeObserver)) {
- throw new TypeError('Cannot call a class as a function.');
- }
- if (!arguments.length) {
- throw new TypeError('1 argument required, but only 0 present.');
- }
- var controller = ResizeObserverController.getInstance();
- var observer = new ResizeObserverSPI(callback, controller, this);
- observers.set(this, observer);
- }
- return ResizeObserver;
- }());
- // Expose public methods of ResizeObserver.
- [
- 'observe',
- 'unobserve',
- 'disconnect'
- ].forEach(function (method) {
- ResizeObserver.prototype[method] = function () {
- var _a;
- return (_a = observers.get(this))[method].apply(_a, arguments);
- };
- });
-
- var index = (function () {
- // Export existing implementation if available.
- if (typeof global$1.ResizeObserver !== 'undefined') {
- return global$1.ResizeObserver;
- }
- return ResizeObserver;
- })();
-
- /* harmony default export */ __webpack_exports__["default"] = (index);
-
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(36)))
-
- /***/ }),
- /* 99 */
- /***/ (function(module, exports) {
-
- // mutationobserver-shim v0.3.2 (github.com/megawac/MutationObserver.js)
- // Authors: Graeme Yeates (github.com/megawac)
- window.MutationObserver=window.MutationObserver||function(w){function v(a){this.i=[];this.m=a}function I(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,v._period)})()}function p(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==w&&a[c]!==w&&(b[c]=a[c]);return b}function J(a,b){var c=C(a,b);return function(d){var f=d.length,n;b.a&&3===a.nodeType&&
- a.nodeValue!==c.a&&d.push(new p({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&A(d,a,c.b,b.f);if(b.c||b.g)n=K(d,a,c,b);if(n||d.length!==f)c=C(a,b)}}function L(a,b){return b.value}function M(a,b){return"style"!==b.name?b.value:a.style.cssText}function A(a,b,c,d){for(var f={},n=b.attributes,k,g,x=n.length;x--;)k=n[x],g=k.name,d&&d[g]===w||(D(b,k)!==c[g]&&a.push(p({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(p({target:b,
- type:"attributes",attributeName:g,oldValue:c[g]}))}function K(a,b,c,d){function f(b,c,f,k,y){var g=b.length-1;y=-~((g-y)/2);for(var h,l,e;e=b.pop();)h=f[e.j],l=k[e.l],d.c&&y&&Math.abs(e.j-e.l)>=g&&(a.push(p({type:"childList",target:c,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),y--),d.b&&l.b&&A(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(p({type:"characterData",target:h,oldValue:l.a})),d.g&&n(h,l)}function n(b,c){for(var g=b.childNodes,
- q=c.c,x=g.length,v=q?q.length:0,h,l,e,m,t,z=0,u=0,r=0;u container.clientHeight;
- }
- module.exports = exports['default'];
-
- /***/ }),
- /* 109 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- // turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by
- // `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2}
-
-
-
- exports.__esModule = true;
- exports['default'] = stripStyle;
-
- function stripStyle(style) {
- var ret = {};
- for (var key in style) {
- if (!Object.prototype.hasOwnProperty.call(style, key)) {
- continue;
- }
- ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val;
- }
- return ret;
- }
-
- module.exports = exports['default'];
-
- /***/ }),
- /* 110 */
- /***/ (function(module, exports, __webpack_require__) {
-
"use strict";
@@ -107340,7 +100344,2347 @@
module.exports = exports['default'];
/***/ }),
- /* 111 */
+ /* 81 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _KeyCode = __webpack_require__(80);
+
+ var _KeyCode2 = _interopRequireDefault(_KeyCode);
+
+ var _reactLifecyclesCompat = __webpack_require__(13);
+
+ var _moment = __webpack_require__(4);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ var _util = __webpack_require__(33);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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) : _defaults(subClass, superClass); }
+
+ var cachedSelectionStart = void 0;
+ var cachedSelectionEnd = void 0;
+ var dateInputInstance = void 0;
+
+ var DateInput = function (_React$Component) {
+ _inherits(DateInput, _React$Component);
+
+ function DateInput(props) {
+ _classCallCheck(this, DateInput);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _initialiseProps.call(_this);
+
+ var selectedValue = props.selectedValue;
+
+ _this.state = {
+ str: (0, _util.formatDate)(selectedValue, _this.props.format),
+ invalid: false,
+ hasFocus: false
+ };
+ return _this;
+ }
+
+ DateInput.prototype.componentDidUpdate = function componentDidUpdate() {
+ if (dateInputInstance && this.state.hasFocus && !this.state.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {
+ dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);
+ }
+ };
+
+ DateInput.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, state) {
+ var newState = {};
+
+ if (dateInputInstance) {
+ cachedSelectionStart = dateInputInstance.selectionStart;
+ cachedSelectionEnd = dateInputInstance.selectionEnd;
+ }
+ // when popup show, click body will call this, bug!
+ var selectedValue = nextProps.selectedValue;
+ if (!state.hasFocus) {
+ newState = {
+ str: (0, _util.formatDate)(selectedValue, nextProps.format),
+ invalid: false
+ };
+ }
+
+ return newState;
+ };
+
+ DateInput.getInstance = function getInstance() {
+ return dateInputInstance;
+ };
+
+ DateInput.prototype.render = function render() {
+ var props = this.props;
+ var _state = this.state,
+ invalid = _state.invalid,
+ str = _state.str;
+ var locale = props.locale,
+ prefixCls = props.prefixCls,
+ placeholder = props.placeholder,
+ clearIcon = props.clearIcon,
+ renderError = props.renderError,
+ inputTabIndex = props.inputTabIndex;
+
+ var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
+ return _react2["default"].createElement(
+ 'div',
+ { className: prefixCls + '-input-wrap' },
+ _react2["default"].createElement(
+ 'div',
+ { className: prefixCls + '-date-input-wrap' },
+ _react2["default"].createElement('input', {
+ ref: this.saveDateInput,
+ className: prefixCls + '-input ' + invalidClass,
+ value: str,
+ disabled: props.disabled,
+ placeholder: placeholder,
+ onChange: this.onInputChange,
+ onKeyDown: this.onKeyDown,
+ onFocus: this.onFocus,
+ onBlur: this.onBlur,
+ tabIndex: inputTabIndex
+ }),
+ invalid && renderError ? renderError() : ''
+ ),
+ props.showClear ? _react2["default"].createElement(
+ 'a',
+ {
+ role: 'button',
+ title: locale.clear,
+ onClick: this.onClear
+ },
+ clearIcon || _react2["default"].createElement('span', { className: prefixCls + '-clear-btn uf uf-close-c' })
+ ) : null
+ );
+ };
+
+ return DateInput;
+ }(_react2["default"].Component);
+
+ DateInput.propTypes = {
+ prefixCls: _propTypes2["default"].string,
+ timePicker: _propTypes2["default"].object,
+ value: _propTypes2["default"].object,
+ disabledTime: _propTypes2["default"].any,
+ format: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]),
+ locale: _propTypes2["default"].object,
+ disabledDate: _propTypes2["default"].func,
+ onChange: _propTypes2["default"].func,
+ onClear: _propTypes2["default"].func,
+ placeholder: _propTypes2["default"].string,
+ onSelect: _propTypes2["default"].func,
+ selectedValue: _propTypes2["default"].object,
+ clearIcon: _propTypes2["default"].node
+ };
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.onClear = function () {
+ _this2.setState({
+ str: ''
+ });
+ _this2.props.onClear(null);
+ };
+
+ this.onInputChange = function (event) {
+ var str = event.target.value;
+ var _props = _this2.props,
+ disabledDate = _props.disabledDate,
+ format = _props.format,
+ onChange = _props.onChange,
+ selectedValue = _props.selectedValue;
+
+ // 没有内容,合法并直接退出
+
+ if (!str) {
+ onChange(null);
+ _this2.setState({
+ invalid: false,
+ str: str
+ });
+ return;
+ }
+
+ // 不合法直接退出
+ var parsed = (0, _moment2["default"])(str, format, true);
+ if (!parsed.isValid()) {
+ _this2.setState({
+ invalid: true,
+ str: str
+ });
+ return;
+ }
+
+ var value = _this2.props.value.clone();
+ value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
+
+ if (!value || disabledDate && disabledDate(value)) {
+ _this2.setState({
+ invalid: true,
+ str: str
+ });
+ return;
+ }
+
+ if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
+ _this2.setState({
+ invalid: false,
+ str: str
+ });
+ onChange(value);
+ }
+ };
+
+ this.onFocus = function () {
+ _this2.setState({ hasFocus: true });
+ };
+
+ this.onBlur = function (e) {
+ _this2.setState(function (prevState, prevProps) {
+ return {
+ hasFocus: false,
+ str: (0, _util.formatDate)(prevProps.value, prevProps.format)
+ };
+ });
+ _this2.props.onBlur && _this2.props.onBlur(e);
+ };
+
+ this.onKeyDown = function (e) {
+ var _props2 = _this2.props,
+ onSelect = _props2.onSelect,
+ value = _props2.value,
+ onKeyDown = _props2.onKeyDown,
+ format = _props2.format,
+ isRange = _props2.isRange;
+
+ var str = e.target.value;
+ var parsed = (0, _moment2["default"])(str, format, true);
+ if (e.keyCode === _KeyCode2["default"].ENTER) {
+ if (parsed.isValid() && onSelect) {
+ isRange ? onSelect(parsed.clone()) : onSelect(value.clone()); //FIX https://github.com/iuap-design/tinper-bee/issues/183
+ }
+ }
+ // if (e.keyCode === KeyCode.ENTER && onSelect) {
+ // onSelect(value.clone());
+ // }
+ onKeyDown && onKeyDown(e);
+ };
+
+ this.getRootDOMNode = function () {
+ return _reactDom2["default"].findDOMNode(_this2);
+ };
+
+ this.focus = function () {
+ if (dateInputInstance) {
+ dateInputInstance.focus();
+ }
+ };
+
+ this.saveDateInput = function (dateInput) {
+ dateInputInstance = dateInput;
+ };
+ };
+
+ (0, _reactLifecyclesCompat.polyfill)(DateInput);
+
+ exports["default"] = DateInput;
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 82 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactLifecyclesCompat = __webpack_require__(13);
+
+ var _createChainedFunction = __webpack_require__(308);
+
+ var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
+
+ var _KeyCode = __webpack_require__(80);
+
+ var _KeyCode2 = _interopRequireDefault(_KeyCode);
+
+ var _placements = __webpack_require__(1354);
+
+ var _placements2 = _interopRequireDefault(_placements);
+
+ var _rcTrigger = __webpack_require__(1355);
+
+ var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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) : _defaults(subClass, superClass); }
+
+ function noop() {}
+
+ function refFn(field, component) {
+ this[field] = component;
+ }
+
+ var Picker = function (_React$Component) {
+ _inherits(Picker, _React$Component);
+
+ function Picker(props) {
+ _classCallCheck(this, Picker);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _initialiseProps.call(_this);
+
+ var open = void 0;
+ if ('open' in props) {
+ open = props.open;
+ } else {
+ open = props.defaultOpen;
+ }
+ var value = props.value || props.defaultValue;
+ _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance');
+
+ _this.state = {
+ open: open,
+ value: value
+ };
+ return _this;
+ }
+
+ Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {
+ if (!prevState.open && this.state.open) {
+ // setTimeout is for making sure saveCalendarRef happen before focusCalendar
+ this.focusTimeout = setTimeout(this.focusCalendar, 0, this);
+ }
+ };
+
+ Picker.prototype.componentWillUnmount = function componentWillUnmount() {
+ clearTimeout(this.focusTimeout);
+ };
+
+ Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {
+ var newState = {};
+ var value = nextProps.value,
+ open = nextProps.open;
+
+ if ('value' in nextProps) {
+ newState.value = value;
+ }
+ if (open !== undefined) {
+ newState.open = open;
+ }
+ return newState;
+ };
+
+ Picker.prototype.render = function render() {
+ var props = this.props;
+ var prefixCls = props.prefixCls,
+ placement = props.placement,
+ style = props.style,
+ getCalendarContainer = props.getCalendarContainer,
+ align = props.align,
+ animation = props.animation,
+ disabled = props.disabled,
+ dropdownClassName = props.dropdownClassName,
+ transitionName = props.transitionName,
+ children = props.children;
+
+ var state = this.state;
+ return _react2["default"].createElement(
+ _rcTrigger2["default"],
+ {
+ popup: this.getCalendarElement(),
+ popupAlign: align,
+ builtinPlacements: _placements2["default"],
+ popupPlacement: placement,
+ action: disabled && !state.open ? [] : ['click'],
+ destroyPopupOnHide: true,
+ getPopupContainer: getCalendarContainer,
+ popupStyle: style,
+ popupAnimation: animation,
+ popupTransitionName: transitionName,
+ popupVisible: state.open,
+ onPopupVisibleChange: this.onVisibleChange,
+ prefixCls: prefixCls,
+ popupClassName: dropdownClassName
+ },
+ _react2["default"].cloneElement(children(state, props), { onKeyDown: this.onKeyDown })
+ );
+ };
+
+ return Picker;
+ }(_react2["default"].Component);
+
+ Picker.propTypes = {
+ animation: _propTypes2["default"].oneOfType([_propTypes2["default"].func, _propTypes2["default"].string]),
+ disabled: _propTypes2["default"].bool,
+ transitionName: _propTypes2["default"].string,
+ onChange: _propTypes2["default"].func,
+ onOpenChange: _propTypes2["default"].func,
+ children: _propTypes2["default"].func,
+ getCalendarContainer: _propTypes2["default"].func,
+ calendar: _propTypes2["default"].element,
+ style: _propTypes2["default"].object,
+ open: _propTypes2["default"].bool,
+ defaultOpen: _propTypes2["default"].bool,
+ prefixCls: _propTypes2["default"].string,
+ placement: _propTypes2["default"].any,
+ value: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]),
+ defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].object, _propTypes2["default"].array]),
+ align: _propTypes2["default"].object
+ };
+ Picker.defaultProps = {
+ prefixCls: 'rc-calendar-picker',
+ style: {},
+ align: {},
+ placement: 'bottomLeft',
+ defaultOpen: false,
+ onChange: noop,
+ onOpenChange: noop
+ };
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.onCalendarKeyDown = function (event) {
+ if (event.keyCode === _KeyCode2["default"].ESC) {
+ event.stopPropagation();
+ _this2.close(_this2.focus);
+ }
+ _this2.props.onKeyDown && _this2.props.onKeyDown(event);
+ };
+
+ this.onCalendarSelect = function (value) {
+ var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ var props = _this2.props;
+ if (!('value' in props)) {
+ _this2.setState({
+ value: value
+ });
+ }
+ if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
+ _this2.close(_this2.focus);
+ }
+ props.onChange(value);
+ };
+
+ this.onKeyDown = function (event) {
+ if (!_this2.state.open && (event.keyCode === _KeyCode2["default"].DOWN || event.keyCode === _KeyCode2["default"].ENTER)) {
+ _this2.open();
+ event.preventDefault();
+ }
+ _this2.props.onKeyDown && _this2.props.onKeyDown(event);
+ };
+
+ this.onCalendarOk = function () {
+ _this2.close(_this2.focus);
+ };
+
+ this.onCalendarClear = function () {
+ _this2.close(_this2.focus);
+ };
+
+ this.onVisibleChange = function (open) {
+ _this2.setOpen(open);
+ };
+
+ this.getCalendarElement = function () {
+ var props = _this2.props;
+ var state = _this2.state;
+ var calendarProps = props.calendar.props;
+ var value = state.value;
+
+ var defaultValue = value;
+ var extraProps = {
+ ref: _this2.saveCalendarRef,
+ defaultValue: defaultValue || calendarProps.defaultValue,
+ selectedValue: value,
+ onKeyDown: _this2.onCalendarKeyDown,
+ onOk: (0, _createChainedFunction2["default"])(calendarProps.onOk, _this2.onCalendarOk),
+ onSelect: (0, _createChainedFunction2["default"])(calendarProps.onSelect, _this2.onCalendarSelect),
+ onClear: (0, _createChainedFunction2["default"])(calendarProps.onClear, _this2.onCalendarClear)
+ };
+
+ return _react2["default"].cloneElement(props.calendar, extraProps);
+ };
+
+ this.setOpen = function (open, callback) {
+ var onOpenChange = _this2.props.onOpenChange;
+
+ if (_this2.state.open !== open) {
+ if (!('open' in _this2.props)) {
+ _this2.setState({
+ open: open
+ }, callback);
+ }
+ onOpenChange(open);
+ }
+ };
+
+ this.open = function (callback) {
+ _this2.setOpen(true, callback);
+ };
+
+ this.close = function (callback) {
+ _this2.setOpen(false, callback);
+ };
+
+ this.focus = function () {
+ if (!_this2.state.open) {
+ _reactDom2["default"].findDOMNode(_this2).focus();
+ }
+ };
+
+ this.focusCalendar = function () {
+ if (_this2.state.open && !!_this2.calendarInstance) {
+ _this2.calendarInstance.focus();
+ }
+ };
+ };
+
+ (0, _reactLifecyclesCompat.polyfill)(Picker);
+
+ exports["default"] = Picker;
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 83 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _FormControl = __webpack_require__(1358);
+
+ var _FormControl2 = _interopRequireDefault(_FormControl);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _FormControl2["default"];
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 84 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ module.exports = __webpack_require__(1362);
+
+ /***/ }),
+ /* 85 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = {
+ today: '今天',
+ now: '此刻',
+ backToToday: '返回今天',
+ ok: '确定',
+ timeSelect: '选择时间',
+ dateSelect: '选择日期',
+ weekSelect: '选择周',
+ clear: '清除',
+ month: '月',
+ year: '年',
+ previousMonth: '上个月 (翻页上键)',
+ nextMonth: '下个月 (翻页下键)',
+ monthSelect: '选择月份',
+ yearSelect: '选择年份',
+ decadeSelect: '选择年代',
+ yearFormat: 'YYYY年',
+ dayFormat: 'D日',
+ dateFormat: 'YYYY年M月D日',
+ dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
+ previousYear: '上一年 (Control键加左方向键)',
+ nextYear: '下一年 (Control键加右方向键)',
+ previousDecade: '上一年代',
+ nextDecade: '下一年代',
+ previousCentury: '上一世纪',
+ nextCentury: '下一世纪',
+ lastWeek: '上一周',
+ nowWeek: '本周',
+ nextWeek: '下一周'
+ };
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 86 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = ownerDocument;
+ function ownerDocument(node) {
+ return node && node.ownerDocument || document;
+ }
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 87 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _inDOM = __webpack_require__(42);
+
+ var _inDOM2 = _interopRequireDefault(_inDOM);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ var on = function on() {};
+ if (_inDOM2.default) {
+ on = function () {
+
+ if (document.addEventListener) return function (node, eventName, handler, capture) {
+ return node.addEventListener(eventName, handler, capture || false);
+ };else if (document.attachEvent) return function (node, eventName, handler) {
+ return node.attachEvent('on' + eventName, handler);
+ };
+ }();
+ }
+
+ exports.default = on;
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 88 */
+ /***/ (function(module, exports) {
+
+ module.exports = true;
+
+
+ /***/ }),
+ /* 89 */
+ /***/ (function(module, exports) {
+
+ var id = 0;
+ var px = Math.random();
+ module.exports = function (key) {
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
+ };
+
+
+ /***/ }),
+ /* 90 */
+ /***/ (function(module, exports) {
+
+ exports.f = {}.propertyIsEnumerable;
+
+
+ /***/ }),
+ /* 91 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ // 7.1.13 ToObject(argument)
+ var defined = __webpack_require__(124);
+ module.exports = function (it) {
+ return Object(defined(it));
+ };
+
+
+ /***/ }),
+ /* 92 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var freeGlobal = __webpack_require__(667);
+
+ /** Detect free variable `self`. */
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
+
+ /** Used as a reference to the global object. */
+ var root = freeGlobal || freeSelf || Function('return this')();
+
+ module.exports = root;
+
+
+ /***/ }),
+ /* 93 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var getNative = __webpack_require__(137);
+
+ /* Built-in method references that are verified to be native. */
+ var nativeCreate = getNative(Object, 'create');
+
+ module.exports = nativeCreate;
+
+
+ /***/ }),
+ /* 94 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var eq = __webpack_require__(139);
+
+ /**
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} key The key to search for.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+ function assocIndexOf(array, key) {
+ var length = array.length;
+ while (length--) {
+ if (eq(array[length][0], key)) {
+ return length;
+ }
+ }
+ return -1;
+ }
+
+ module.exports = assocIndexOf;
+
+
+ /***/ }),
+ /* 95 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ var isKeyable = __webpack_require__(696);
+
+ /**
+ * Gets the data for `map`.
+ *
+ * @private
+ * @param {Object} map The map to query.
+ * @param {string} key The reference key.
+ * @returns {*} Returns the map data.
+ */
+ function getMapData(map, key) {
+ var data = map.__data__;
+ return isKeyable(key)
+ ? data[typeof key == 'string' ? 'string' : 'hash']
+ : data.map;
+ }
+
+ module.exports = getMapData;
+
+
+ /***/ }),
+ /* 96 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(749);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(750);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(751);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(752);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(753);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(754);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(755);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(756);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(757);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(239);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(760);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(762);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(241);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
+ /***/ }),
+ /* 97 */
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+ "use strict";
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+ /* WEBPACK VAR INJECTION */(function(global) {/**
+ * A collection of shims that provide minimal functionality of the ES6 collections.
+ *
+ * These implementations are not meant to be used outside of the ResizeObserver
+ * modules as they cover only a limited range of use cases.
+ */
+ /* eslint-disable require-jsdoc, valid-jsdoc */
+ var MapShim = (function () {
+ if (typeof Map !== 'undefined') {
+ return Map;
+ }
+ /**
+ * Returns index in provided array that matches the specified key.
+ *
+ * @param {Array} arr
+ * @param {*} key
+ * @returns {number}
+ */
+ function getIndex(arr, key) {
+ var result = -1;
+ arr.some(function (entry, index) {
+ if (entry[0] === key) {
+ result = index;
+ return true;
+ }
+ return false;
+ });
+ return result;
+ }
+ return /** @class */ (function () {
+ function class_1() {
+ this.__entries__ = [];
+ }
+ Object.defineProperty(class_1.prototype, "size", {
+ /**
+ * @returns {boolean}
+ */
+ get: function () {
+ return this.__entries__.length;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {*} key
+ * @returns {*}
+ */
+ class_1.prototype.get = function (key) {
+ var index = getIndex(this.__entries__, key);
+ var entry = this.__entries__[index];
+ return entry && entry[1];
+ };
+ /**
+ * @param {*} key
+ * @param {*} value
+ * @returns {void}
+ */
+ class_1.prototype.set = function (key, value) {
+ var index = getIndex(this.__entries__, key);
+ if (~index) {
+ this.__entries__[index][1] = value;
+ }
+ else {
+ this.__entries__.push([key, value]);
+ }
+ };
+ /**
+ * @param {*} key
+ * @returns {void}
+ */
+ class_1.prototype.delete = function (key) {
+ var entries = this.__entries__;
+ var index = getIndex(entries, key);
+ if (~index) {
+ entries.splice(index, 1);
+ }
+ };
+ /**
+ * @param {*} key
+ * @returns {void}
+ */
+ class_1.prototype.has = function (key) {
+ return !!~getIndex(this.__entries__, key);
+ };
+ /**
+ * @returns {void}
+ */
+ class_1.prototype.clear = function () {
+ this.__entries__.splice(0);
+ };
+ /**
+ * @param {Function} callback
+ * @param {*} [ctx=null]
+ * @returns {void}
+ */
+ class_1.prototype.forEach = function (callback, ctx) {
+ if (ctx === void 0) { ctx = null; }
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
+ var entry = _a[_i];
+ callback.call(ctx, entry[1], entry[0]);
+ }
+ };
+ return class_1;
+ }());
+ })();
+
+ /**
+ * Detects whether window and document objects are available in current environment.
+ */
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
+
+ // Returns global object of a current environment.
+ var global$1 = (function () {
+ if (typeof global !== 'undefined' && global.Math === Math) {
+ return global;
+ }
+ if (typeof self !== 'undefined' && self.Math === Math) {
+ return self;
+ }
+ if (typeof window !== 'undefined' && window.Math === Math) {
+ return window;
+ }
+ // eslint-disable-next-line no-new-func
+ return Function('return this')();
+ })();
+
+ /**
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
+ * first one is not supported.
+ *
+ * @returns {number} Requests' identifier.
+ */
+ var requestAnimationFrame$1 = (function () {
+ if (typeof requestAnimationFrame === 'function') {
+ // It's required to use a bounded function because IE sometimes throws
+ // an "Invalid calling object" error if rAF is invoked without the global
+ // object on the left hand side.
+ return requestAnimationFrame.bind(global$1);
+ }
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
+ })();
+
+ // Defines minimum timeout before adding a trailing call.
+ var trailingTimeout = 2;
+ /**
+ * Creates a wrapper function which ensures that provided callback will be
+ * invoked only once during the specified delay period.
+ *
+ * @param {Function} callback - Function to be invoked after the delay period.
+ * @param {number} delay - Delay after which to invoke callback.
+ * @returns {Function}
+ */
+ function throttle (callback, delay) {
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
+ /**
+ * Invokes the original callback function and schedules new invocation if
+ * the "proxy" was called during current request.
+ *
+ * @returns {void}
+ */
+ function resolvePending() {
+ if (leadingCall) {
+ leadingCall = false;
+ callback();
+ }
+ if (trailingCall) {
+ proxy();
+ }
+ }
+ /**
+ * Callback invoked after the specified delay. It will further postpone
+ * invocation of the original function delegating it to the
+ * requestAnimationFrame.
+ *
+ * @returns {void}
+ */
+ function timeoutCallback() {
+ requestAnimationFrame$1(resolvePending);
+ }
+ /**
+ * Schedules invocation of the original function.
+ *
+ * @returns {void}
+ */
+ function proxy() {
+ var timeStamp = Date.now();
+ if (leadingCall) {
+ // Reject immediately following calls.
+ if (timeStamp - lastCallTime < trailingTimeout) {
+ return;
+ }
+ // Schedule new call to be in invoked when the pending one is resolved.
+ // This is important for "transitions" which never actually start
+ // immediately so there is a chance that we might miss one if change
+ // happens amids the pending invocation.
+ trailingCall = true;
+ }
+ else {
+ leadingCall = true;
+ trailingCall = false;
+ setTimeout(timeoutCallback, delay);
+ }
+ lastCallTime = timeStamp;
+ }
+ return proxy;
+ }
+
+ // Minimum delay before invoking the update of observers.
+ var REFRESH_DELAY = 20;
+ // A list of substrings of CSS properties used to find transition events that
+ // might affect dimensions of observed elements.
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
+ // Check if MutationObserver is available.
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
+ /**
+ * Singleton controller class which handles updates of ResizeObserver instances.
+ */
+ var ResizeObserverController = /** @class */ (function () {
+ /**
+ * Creates a new instance of ResizeObserverController.
+ *
+ * @private
+ */
+ function ResizeObserverController() {
+ /**
+ * Indicates whether DOM listeners have been added.
+ *
+ * @private {boolean}
+ */
+ this.connected_ = false;
+ /**
+ * Tells that controller has subscribed for Mutation Events.
+ *
+ * @private {boolean}
+ */
+ this.mutationEventsAdded_ = false;
+ /**
+ * Keeps reference to the instance of MutationObserver.
+ *
+ * @private {MutationObserver}
+ */
+ this.mutationsObserver_ = null;
+ /**
+ * A list of connected observers.
+ *
+ * @private {Array}
+ */
+ this.observers_ = [];
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
+ }
+ /**
+ * Adds observer to observers list.
+ *
+ * @param {ResizeObserverSPI} observer - Observer to be added.
+ * @returns {void}
+ */
+ ResizeObserverController.prototype.addObserver = function (observer) {
+ if (!~this.observers_.indexOf(observer)) {
+ this.observers_.push(observer);
+ }
+ // Add listeners if they haven't been added yet.
+ if (!this.connected_) {
+ this.connect_();
+ }
+ };
+ /**
+ * Removes observer from observers list.
+ *
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
+ * @returns {void}
+ */
+ ResizeObserverController.prototype.removeObserver = function (observer) {
+ var observers = this.observers_;
+ var index = observers.indexOf(observer);
+ // Remove observer if it's present in registry.
+ if (~index) {
+ observers.splice(index, 1);
+ }
+ // Remove listeners if controller has no connected observers.
+ if (!observers.length && this.connected_) {
+ this.disconnect_();
+ }
+ };
+ /**
+ * Invokes the update of observers. It will continue running updates insofar
+ * it detects changes.
+ *
+ * @returns {void}
+ */
+ ResizeObserverController.prototype.refresh = function () {
+ var changesDetected = this.updateObservers_();
+ // Continue running updates if changes have been detected as there might
+ // be future ones caused by CSS transitions.
+ if (changesDetected) {
+ this.refresh();
+ }
+ };
+ /**
+ * Updates every observer from observers list and notifies them of queued
+ * entries.
+ *
+ * @private
+ * @returns {boolean} Returns "true" if any observer has detected changes in
+ * dimensions of it's elements.
+ */
+ ResizeObserverController.prototype.updateObservers_ = function () {
+ // Collect observers that have active observations.
+ var activeObservers = this.observers_.filter(function (observer) {
+ return observer.gatherActive(), observer.hasActive();
+ });
+ // Deliver notifications in a separate cycle in order to avoid any
+ // collisions between observers, e.g. when multiple instances of
+ // ResizeObserver are tracking the same element and the callback of one
+ // of them changes content dimensions of the observed target. Sometimes
+ // this may result in notifications being blocked for the rest of observers.
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
+ return activeObservers.length > 0;
+ };
+ /**
+ * Initializes DOM listeners.
+ *
+ * @private
+ * @returns {void}
+ */
+ ResizeObserverController.prototype.connect_ = function () {
+ // Do nothing if running in a non-browser environment or if listeners
+ // have been already added.
+ if (!isBrowser || this.connected_) {
+ return;
+ }
+ // Subscription to the "Transitionend" event is used as a workaround for
+ // delayed transitions. This way it's possible to capture at least the
+ // final state of an element.
+ document.addEventListener('transitionend', this.onTransitionEnd_);
+ window.addEventListener('resize', this.refresh);
+ if (mutationObserverSupported) {
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
+ this.mutationsObserver_.observe(document, {
+ attributes: true,
+ childList: true,
+ characterData: true,
+ subtree: true
+ });
+ }
+ else {
+ document.addEventListener('DOMSubtreeModified', this.refresh);
+ this.mutationEventsAdded_ = true;
+ }
+ this.connected_ = true;
+ };
+ /**
+ * Removes DOM listeners.
+ *
+ * @private
+ * @returns {void}
+ */
+ ResizeObserverController.prototype.disconnect_ = function () {
+ // Do nothing if running in a non-browser environment or if listeners
+ // have been already removed.
+ if (!isBrowser || !this.connected_) {
+ return;
+ }
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
+ window.removeEventListener('resize', this.refresh);
+ if (this.mutationsObserver_) {
+ this.mutationsObserver_.disconnect();
+ }
+ if (this.mutationEventsAdded_) {
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
+ }
+ this.mutationsObserver_ = null;
+ this.mutationEventsAdded_ = false;
+ this.connected_ = false;
+ };
+ /**
+ * "Transitionend" event handler.
+ *
+ * @private
+ * @param {TransitionEvent} event
+ * @returns {void}
+ */
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
+ // Detect whether transition may affect dimensions of an element.
+ var isReflowProperty = transitionKeys.some(function (key) {
+ return !!~propertyName.indexOf(key);
+ });
+ if (isReflowProperty) {
+ this.refresh();
+ }
+ };
+ /**
+ * Returns instance of the ResizeObserverController.
+ *
+ * @returns {ResizeObserverController}
+ */
+ ResizeObserverController.getInstance = function () {
+ if (!this.instance_) {
+ this.instance_ = new ResizeObserverController();
+ }
+ return this.instance_;
+ };
+ /**
+ * Holds reference to the controller's instance.
+ *
+ * @private {ResizeObserverController}
+ */
+ ResizeObserverController.instance_ = null;
+ return ResizeObserverController;
+ }());
+
+ /**
+ * Defines non-writable/enumerable properties of the provided target object.
+ *
+ * @param {Object} target - Object for which to define properties.
+ * @param {Object} props - Properties to be defined.
+ * @returns {Object} Target object.
+ */
+ var defineConfigurable = (function (target, props) {
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
+ var key = _a[_i];
+ Object.defineProperty(target, key, {
+ value: props[key],
+ enumerable: false,
+ writable: false,
+ configurable: true
+ });
+ }
+ return target;
+ });
+
+ /**
+ * Returns the global object associated with provided element.
+ *
+ * @param {Object} target
+ * @returns {Object}
+ */
+ var getWindowOf = (function (target) {
+ // Assume that the element is an instance of Node, which means that it
+ // has the "ownerDocument" property from which we can retrieve a
+ // corresponding global object.
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
+ // Return the local global object if it's not possible extract one from
+ // provided element.
+ return ownerGlobal || global$1;
+ });
+
+ // Placeholder of an empty content rectangle.
+ var emptyRect = createRectInit(0, 0, 0, 0);
+ /**
+ * Converts provided string to a number.
+ *
+ * @param {number|string} value
+ * @returns {number}
+ */
+ function toFloat(value) {
+ return parseFloat(value) || 0;
+ }
+ /**
+ * Extracts borders size from provided styles.
+ *
+ * @param {CSSStyleDeclaration} styles
+ * @param {...string} positions - Borders positions (top, right, ...)
+ * @returns {number}
+ */
+ function getBordersSize(styles) {
+ var positions = [];
+ for (var _i = 1; _i < arguments.length; _i++) {
+ positions[_i - 1] = arguments[_i];
+ }
+ return positions.reduce(function (size, position) {
+ var value = styles['border-' + position + '-width'];
+ return size + toFloat(value);
+ }, 0);
+ }
+ /**
+ * Extracts paddings sizes from provided styles.
+ *
+ * @param {CSSStyleDeclaration} styles
+ * @returns {Object} Paddings box.
+ */
+ function getPaddings(styles) {
+ var positions = ['top', 'right', 'bottom', 'left'];
+ var paddings = {};
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
+ var position = positions_1[_i];
+ var value = styles['padding-' + position];
+ paddings[position] = toFloat(value);
+ }
+ return paddings;
+ }
+ /**
+ * Calculates content rectangle of provided SVG element.
+ *
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
+ * to be calculated.
+ * @returns {DOMRectInit}
+ */
+ function getSVGContentRect(target) {
+ var bbox = target.getBBox();
+ return createRectInit(0, 0, bbox.width, bbox.height);
+ }
+ /**
+ * Calculates content rectangle of provided HTMLElement.
+ *
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
+ * @returns {DOMRectInit}
+ */
+ function getHTMLElementContentRect(target) {
+ // Client width & height properties can't be
+ // used exclusively as they provide rounded values.
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
+ // By this condition we can catch all non-replaced inline, hidden and
+ // detached elements. Though elements with width & height properties less
+ // than 0.5 will be discarded as well.
+ //
+ // Without it we would need to implement separate methods for each of
+ // those cases and it's not possible to perform a precise and performance
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
+ // gives wrong results for elements with width & height less than 0.5.
+ if (!clientWidth && !clientHeight) {
+ return emptyRect;
+ }
+ var styles = getWindowOf(target).getComputedStyle(target);
+ var paddings = getPaddings(styles);
+ var horizPad = paddings.left + paddings.right;
+ var vertPad = paddings.top + paddings.bottom;
+ // Computed styles of width & height are being used because they are the
+ // only dimensions available to JS that contain non-rounded values. It could
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
+ var width = toFloat(styles.width), height = toFloat(styles.height);
+ // Width & height include paddings and borders when the 'border-box' box
+ // model is applied (except for IE).
+ if (styles.boxSizing === 'border-box') {
+ // Following conditions are required to handle Internet Explorer which
+ // doesn't include paddings and borders to computed CSS dimensions.
+ //
+ // We can say that if CSS dimensions + paddings are equal to the "client"
+ // properties then it's either IE, and thus we don't need to subtract
+ // anything, or an element merely doesn't have paddings/borders styles.
+ if (Math.round(width + horizPad) !== clientWidth) {
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
+ }
+ if (Math.round(height + vertPad) !== clientHeight) {
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
+ }
+ }
+ // Following steps can't be applied to the document's root element as its
+ // client[Width/Height] properties represent viewport area of the window.
+ // Besides, it's as well not necessary as the itself neither has
+ // rendered scroll bars nor it can be clipped.
+ if (!isDocumentElement(target)) {
+ // In some browsers (only in Firefox, actually) CSS width & height
+ // include scroll bars size which can be removed at this step as scroll
+ // bars are the only difference between rounded dimensions + paddings
+ // and "client" properties, though that is not always true in Chrome.
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
+ // Chrome has a rather weird rounding of "client" properties.
+ // E.g. for an element with content width of 314.2px it sometimes gives
+ // the client width of 315px and for the width of 314.7px it may give
+ // 314px. And it doesn't happen all the time. So just ignore this delta
+ // as a non-relevant.
+ if (Math.abs(vertScrollbar) !== 1) {
+ width -= vertScrollbar;
+ }
+ if (Math.abs(horizScrollbar) !== 1) {
+ height -= horizScrollbar;
+ }
+ }
+ return createRectInit(paddings.left, paddings.top, width, height);
+ }
+ /**
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
+ *
+ * @param {Element} target - Element to be checked.
+ * @returns {boolean}
+ */
+ var isSVGGraphicsElement = (function () {
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
+ // interface.
+ if (typeof SVGGraphicsElement !== 'undefined') {
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
+ }
+ // If it's so, then check that element is at least an instance of the
+ // SVGElement and that it has the "getBBox" method.
+ // eslint-disable-next-line no-extra-parens
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
+ typeof target.getBBox === 'function'); };
+ })();
+ /**
+ * Checks whether provided element is a document element ().
+ *
+ * @param {Element} target - Element to be checked.
+ * @returns {boolean}
+ */
+ function isDocumentElement(target) {
+ return target === getWindowOf(target).document.documentElement;
+ }
+ /**
+ * Calculates an appropriate content rectangle for provided html or svg element.
+ *
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
+ * @returns {DOMRectInit}
+ */
+ function getContentRect(target) {
+ if (!isBrowser) {
+ return emptyRect;
+ }
+ if (isSVGGraphicsElement(target)) {
+ return getSVGContentRect(target);
+ }
+ return getHTMLElementContentRect(target);
+ }
+ /**
+ * Creates rectangle with an interface of the DOMRectReadOnly.
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
+ *
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
+ * @returns {DOMRectReadOnly}
+ */
+ function createReadOnlyRect(_a) {
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
+ var rect = Object.create(Constr.prototype);
+ // Rectangle's properties are not writable and non-enumerable.
+ defineConfigurable(rect, {
+ x: x, y: y, width: width, height: height,
+ top: y,
+ right: x + width,
+ bottom: height + y,
+ left: x
+ });
+ return rect;
+ }
+ /**
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
+ *
+ * @param {number} x - X coordinate.
+ * @param {number} y - Y coordinate.
+ * @param {number} width - Rectangle's width.
+ * @param {number} height - Rectangle's height.
+ * @returns {DOMRectInit}
+ */
+ function createRectInit(x, y, width, height) {
+ return { x: x, y: y, width: width, height: height };
+ }
+
+ /**
+ * Class that is responsible for computations of the content rectangle of
+ * provided DOM element and for keeping track of it's changes.
+ */
+ var ResizeObservation = /** @class */ (function () {
+ /**
+ * Creates an instance of ResizeObservation.
+ *
+ * @param {Element} target - Element to be observed.
+ */
+ function ResizeObservation(target) {
+ /**
+ * Broadcasted width of content rectangle.
+ *
+ * @type {number}
+ */
+ this.broadcastWidth = 0;
+ /**
+ * Broadcasted height of content rectangle.
+ *
+ * @type {number}
+ */
+ this.broadcastHeight = 0;
+ /**
+ * Reference to the last observed content rectangle.
+ *
+ * @private {DOMRectInit}
+ */
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
+ this.target = target;
+ }
+ /**
+ * Updates content rectangle and tells whether it's width or height properties
+ * have changed since the last broadcast.
+ *
+ * @returns {boolean}
+ */
+ ResizeObservation.prototype.isActive = function () {
+ var rect = getContentRect(this.target);
+ this.contentRect_ = rect;
+ return (rect.width !== this.broadcastWidth ||
+ rect.height !== this.broadcastHeight);
+ };
+ /**
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
+ * from the corresponding properties of the last observed content rectangle.
+ *
+ * @returns {DOMRectInit} Last observed content rectangle.
+ */
+ ResizeObservation.prototype.broadcastRect = function () {
+ var rect = this.contentRect_;
+ this.broadcastWidth = rect.width;
+ this.broadcastHeight = rect.height;
+ return rect;
+ };
+ return ResizeObservation;
+ }());
+
+ var ResizeObserverEntry = /** @class */ (function () {
+ /**
+ * Creates an instance of ResizeObserverEntry.
+ *
+ * @param {Element} target - Element that is being observed.
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
+ */
+ function ResizeObserverEntry(target, rectInit) {
+ var contentRect = createReadOnlyRect(rectInit);
+ // According to the specification following properties are not writable
+ // and are also not enumerable in the native implementation.
+ //
+ // Property accessors are not being used as they'd require to define a
+ // private WeakMap storage which may cause memory leaks in browsers that
+ // don't support this type of collections.
+ defineConfigurable(this, { target: target, contentRect: contentRect });
+ }
+ return ResizeObserverEntry;
+ }());
+
+ var ResizeObserverSPI = /** @class */ (function () {
+ /**
+ * Creates a new instance of ResizeObserver.
+ *
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
+ * when one of the observed elements changes it's content dimensions.
+ * @param {ResizeObserverController} controller - Controller instance which
+ * is responsible for the updates of observer.
+ * @param {ResizeObserver} callbackCtx - Reference to the public
+ * ResizeObserver instance which will be passed to callback function.
+ */
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
+ /**
+ * Collection of resize observations that have detected changes in dimensions
+ * of elements.
+ *
+ * @private {Array}
+ */
+ this.activeObservations_ = [];
+ /**
+ * Registry of the ResizeObservation instances.
+ *
+ * @private {Map}
+ */
+ this.observations_ = new MapShim();
+ if (typeof callback !== 'function') {
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
+ }
+ this.callback_ = callback;
+ this.controller_ = controller;
+ this.callbackCtx_ = callbackCtx;
+ }
+ /**
+ * Starts observing provided element.
+ *
+ * @param {Element} target - Element to be observed.
+ * @returns {void}
+ */
+ ResizeObserverSPI.prototype.observe = function (target) {
+ if (!arguments.length) {
+ throw new TypeError('1 argument required, but only 0 present.');
+ }
+ // Do nothing if current environment doesn't have the Element interface.
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
+ return;
+ }
+ if (!(target instanceof getWindowOf(target).Element)) {
+ throw new TypeError('parameter 1 is not of type "Element".');
+ }
+ var observations = this.observations_;
+ // Do nothing if element is already being observed.
+ if (observations.has(target)) {
+ return;
+ }
+ observations.set(target, new ResizeObservation(target));
+ this.controller_.addObserver(this);
+ // Force the update of observations.
+ this.controller_.refresh();
+ };
+ /**
+ * Stops observing provided element.
+ *
+ * @param {Element} target - Element to stop observing.
+ * @returns {void}
+ */
+ ResizeObserverSPI.prototype.unobserve = function (target) {
+ if (!arguments.length) {
+ throw new TypeError('1 argument required, but only 0 present.');
+ }
+ // Do nothing if current environment doesn't have the Element interface.
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
+ return;
+ }
+ if (!(target instanceof getWindowOf(target).Element)) {
+ throw new TypeError('parameter 1 is not of type "Element".');
+ }
+ var observations = this.observations_;
+ // Do nothing if element is not being observed.
+ if (!observations.has(target)) {
+ return;
+ }
+ observations.delete(target);
+ if (!observations.size) {
+ this.controller_.removeObserver(this);
+ }
+ };
+ /**
+ * Stops observing all elements.
+ *
+ * @returns {void}
+ */
+ ResizeObserverSPI.prototype.disconnect = function () {
+ this.clearActive();
+ this.observations_.clear();
+ this.controller_.removeObserver(this);
+ };
+ /**
+ * Collects observation instances the associated element of which has changed
+ * it's content rectangle.
+ *
+ * @returns {void}
+ */
+ ResizeObserverSPI.prototype.gatherActive = function () {
+ var _this = this;
+ this.clearActive();
+ this.observations_.forEach(function (observation) {
+ if (observation.isActive()) {
+ _this.activeObservations_.push(observation);
+ }
+ });
+ };
+ /**
+ * Invokes initial callback function with a list of ResizeObserverEntry
+ * instances collected from active resize observations.
+ *
+ * @returns {void}
+ */
+ ResizeObserverSPI.prototype.broadcastActive = function () {
+ // Do nothing if observer doesn't have active observations.
+ if (!this.hasActive()) {
+ return;
+ }
+ var ctx = this.callbackCtx_;
+ // Create ResizeObserverEntry instance for every active observation.
+ var entries = this.activeObservations_.map(function (observation) {
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
+ });
+ this.callback_.call(ctx, entries, ctx);
+ this.clearActive();
+ };
+ /**
+ * Clears the collection of active observations.
+ *
+ * @returns {void}
+ */
+ ResizeObserverSPI.prototype.clearActive = function () {
+ this.activeObservations_.splice(0);
+ };
+ /**
+ * Tells whether observer has active observations.
+ *
+ * @returns {boolean}
+ */
+ ResizeObserverSPI.prototype.hasActive = function () {
+ return this.activeObservations_.length > 0;
+ };
+ return ResizeObserverSPI;
+ }());
+
+ // Registry of internal observers. If WeakMap is not available use current shim
+ // for the Map collection as it has all required methods and because WeakMap
+ // can't be fully polyfilled anyway.
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
+ /**
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
+ * exposing only those methods and properties that are defined in the spec.
+ */
+ var ResizeObserver = /** @class */ (function () {
+ /**
+ * Creates a new instance of ResizeObserver.
+ *
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
+ * dimensions of the observed elements change.
+ */
+ function ResizeObserver(callback) {
+ if (!(this instanceof ResizeObserver)) {
+ throw new TypeError('Cannot call a class as a function.');
+ }
+ if (!arguments.length) {
+ throw new TypeError('1 argument required, but only 0 present.');
+ }
+ var controller = ResizeObserverController.getInstance();
+ var observer = new ResizeObserverSPI(callback, controller, this);
+ observers.set(this, observer);
+ }
+ return ResizeObserver;
+ }());
+ // Expose public methods of ResizeObserver.
+ [
+ 'observe',
+ 'unobserve',
+ 'disconnect'
+ ].forEach(function (method) {
+ ResizeObserver.prototype[method] = function () {
+ var _a;
+ return (_a = observers.get(this))[method].apply(_a, arguments);
+ };
+ });
+
+ var index = (function () {
+ // Export existing implementation if available.
+ if (typeof global$1.ResizeObserver !== 'undefined') {
+ return global$1.ResizeObserver;
+ }
+ return ResizeObserver;
+ })();
+
+ /* harmony default export */ __webpack_exports__["default"] = (index);
+
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(37)))
+
+ /***/ }),
+ /* 98 */
+ /***/ (function(module, exports) {
+
+ // mutationobserver-shim v0.3.2 (github.com/megawac/MutationObserver.js)
+ // Authors: Graeme Yeates (github.com/megawac)
+ window.MutationObserver=window.MutationObserver||function(w){function v(a){this.i=[];this.m=a}function I(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,v._period)})()}function p(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==w&&a[c]!==w&&(b[c]=a[c]);return b}function J(a,b){var c=C(a,b);return function(d){var f=d.length,n;b.a&&3===a.nodeType&&
+ a.nodeValue!==c.a&&d.push(new p({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&A(d,a,c.b,b.f);if(b.c||b.g)n=K(d,a,c,b);if(n||d.length!==f)c=C(a,b)}}function L(a,b){return b.value}function M(a,b){return"style"!==b.name?b.value:a.style.cssText}function A(a,b,c,d){for(var f={},n=b.attributes,k,g,x=n.length;x--;)k=n[x],g=k.name,d&&d[g]===w||(D(b,k)!==c[g]&&a.push(p({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(p({target:b,
+ type:"attributes",attributeName:g,oldValue:c[g]}))}function K(a,b,c,d){function f(b,c,f,k,y){var g=b.length-1;y=-~((g-y)/2);for(var h,l,e;e=b.pop();)h=f[e.j],l=k[e.l],d.c&&y&&Math.abs(e.j-e.l)>=g&&(a.push(p({type:"childList",target:c,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),y--),d.b&&l.b&&A(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(p({type:"characterData",target:h,oldValue:l.a})),d.g&&n(h,l)}function n(b,c){for(var g=b.childNodes,
+ q=c.c,x=g.length,v=q?q.length:0,h,l,e,m,t,z=0,u=0,r=0;u container.clientHeight;
+ }
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 109 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ // turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by
+ // `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2}
+
+
+
+ exports.__esModule = true;
+ exports['default'] = stripStyle;
+
+ function stripStyle(style) {
+ var ret = {};
+ for (var key in style) {
+ if (!Object.prototype.hasOwnProperty.call(style, key)) {
+ continue;
+ }
+ ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val;
+ }
+ return ret;
+ }
+
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 110 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -107453,6 +102797,86 @@
})));
+ /***/ }),
+ /* 111 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1341);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1342);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1343);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1344);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1345);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1346);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1347);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1348);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1349);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(489);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1350);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1352);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1353);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
/***/ }),
/* 112 */
/***/ (function(module, exports, __webpack_require__) {
@@ -107464,7 +102888,7 @@
value: true
});
- var _Icon = __webpack_require__(1386);
+ var _Icon = __webpack_require__(1419);
var _Icon2 = _interopRequireDefault(_Icon);
@@ -107484,27 +102908,7 @@
value: true
});
- var _Icon = __webpack_require__(1424);
-
- var _Icon2 = _interopRequireDefault(_Icon);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Icon2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 114 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _inDOM = __webpack_require__(43);
+ var _inDOM = __webpack_require__(42);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -107529,7 +102933,7 @@
module.exports = exports['default'];
/***/ }),
- /* 115 */
+ /* 114 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -107547,7 +102951,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _ownerDocument = __webpack_require__(87);
+ var _ownerDocument = __webpack_require__(86);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -107555,6 +102959,26 @@
module.exports = exports['default'];
+ /***/ }),
+ /* 115 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Icon = __webpack_require__(1501);
+
+ var _Icon2 = _interopRequireDefault(_Icon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Icon2["default"];
+ module.exports = exports['default'];
+
/***/ }),
/* 116 */
/***/ (function(module, exports, __webpack_require__) {
@@ -107562,26 +102986,6 @@
"use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Icon = __webpack_require__(1506);
-
- var _Icon2 = _interopRequireDefault(_Icon);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Icon2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 117 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -107594,7 +102998,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _ownerDocument = __webpack_require__(22);
+ var _ownerDocument = __webpack_require__(23);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -107602,6 +103006,86 @@
module.exports = exports['default'];
+ /***/ }),
+ /* 117 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1567);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1568);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1569);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1570);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1571);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1572);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1573);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(521);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1574);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(524);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1575);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1577);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1578);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
/***/ }),
/* 118 */
/***/ (function(module, exports, __webpack_require__) {
@@ -107609,86 +103093,6 @@
"use strict";
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1572);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1573);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1574);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1575);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1576);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1577);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1578);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(527);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1579);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(530);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1580);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1582);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1583);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 119 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -107701,7 +103105,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _ownerDocument = __webpack_require__(22);
+ var _ownerDocument = __webpack_require__(23);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -107710,87 +103114,87 @@
module.exports = exports['default'];
/***/ }),
- /* 120 */
+ /* 119 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1620);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1621);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1622);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1623);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(535);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(533);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(532);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1624);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1625);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(536);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1626);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1628);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1629);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1609);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1610);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1611);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1612);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(529);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(527);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(526);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1613);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1614);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(530);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1615);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1617);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1618);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
exports.Align = _Align3.default;
/***/ }),
- /* 121 */
+ /* 120 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -107800,7 +103204,7 @@
value: true
});
- var _Icon = __webpack_require__(1651);
+ var _Icon = __webpack_require__(1640);
var _Icon2 = _interopRequireDefault(_Icon);
@@ -107810,11 +103214,11 @@
module.exports = exports['default'];
/***/ }),
- /* 122 */
+ /* 121 */
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
- var aFunction = __webpack_require__(604);
+ var aFunction = __webpack_require__(602);
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
@@ -107836,7 +103240,7 @@
/***/ }),
- /* 123 */
+ /* 122 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
@@ -107854,7 +103258,7 @@
/***/ }),
- /* 124 */
+ /* 123 */
/***/ (function(module, exports) {
var toString = {}.toString;
@@ -107865,7 +103269,7 @@
/***/ }),
- /* 125 */
+ /* 124 */
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
@@ -107876,7 +103280,7 @@
/***/ }),
- /* 126 */
+ /* 125 */
/***/ (function(module, exports) {
// 7.1.4 ToInteger
@@ -107888,22 +103292,22 @@
/***/ }),
- /* 127 */
+ /* 126 */
/***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__(128)('keys');
- var uid = __webpack_require__(90);
+ var shared = __webpack_require__(127)('keys');
+ var uid = __webpack_require__(89);
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/ }),
- /* 128 */
+ /* 127 */
/***/ (function(module, exports, __webpack_require__) {
var core = __webpack_require__(24);
- var global = __webpack_require__(34);
+ var global = __webpack_require__(35);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
@@ -107911,13 +103315,13 @@
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
- mode: __webpack_require__(89) ? 'pure' : 'global',
+ mode: __webpack_require__(88) ? 'pure' : 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});
/***/ }),
- /* 129 */
+ /* 128 */
/***/ (function(module, exports) {
// IE 8- don't enum bug keys
@@ -107927,34 +103331,34 @@
/***/ }),
- /* 130 */
+ /* 129 */
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
- /* 131 */
+ /* 130 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(59);
- var dPs = __webpack_require__(614);
- var enumBugKeys = __webpack_require__(129);
- var IE_PROTO = __webpack_require__(127)('IE_PROTO');
+ var dPs = __webpack_require__(612);
+ var enumBugKeys = __webpack_require__(128);
+ var IE_PROTO = __webpack_require__(126)('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__(216)('iframe');
+ var iframe = __webpack_require__(214)('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
- __webpack_require__(615).appendChild(iframe);
+ __webpack_require__(613).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
@@ -107981,12 +103385,12 @@
/***/ }),
- /* 132 */
+ /* 131 */
/***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__(35).f;
- var has = __webpack_require__(47);
- var TAG = __webpack_require__(27)('toStringTag');
+ var def = __webpack_require__(36).f;
+ var has = __webpack_require__(45);
+ var TAG = __webpack_require__(28)('toStringTag');
module.exports = function (it, tag, stat) {
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
@@ -107994,21 +103398,21 @@
/***/ }),
- /* 133 */
+ /* 132 */
/***/ (function(module, exports, __webpack_require__) {
- exports.f = __webpack_require__(27);
+ exports.f = __webpack_require__(28);
/***/ }),
- /* 134 */
+ /* 133 */
/***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__(34);
+ var global = __webpack_require__(35);
var core = __webpack_require__(24);
- var LIBRARY = __webpack_require__(89);
- var wksExt = __webpack_require__(133);
- var defineProperty = __webpack_require__(35).f;
+ var LIBRARY = __webpack_require__(88);
+ var wksExt = __webpack_require__(132);
+ var defineProperty = __webpack_require__(36).f;
module.exports = function (name) {
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
@@ -108016,7 +103420,7 @@
/***/ }),
- /* 135 */
+ /* 134 */
/***/ (function(module, exports) {
/**
@@ -108048,11 +103452,11 @@
/***/ }),
- /* 136 */
+ /* 135 */
/***/ (function(module, exports, __webpack_require__) {
- var baseGetTag = __webpack_require__(231),
- isObjectLike = __webpack_require__(672);
+ var baseGetTag = __webpack_require__(229),
+ isObjectLike = __webpack_require__(670);
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
@@ -108083,10 +103487,10 @@
/***/ }),
- /* 137 */
+ /* 136 */
/***/ (function(module, exports, __webpack_require__) {
- var root = __webpack_require__(93);
+ var root = __webpack_require__(92);
/** Built-in value references. */
var Symbol = root.Symbol;
@@ -108095,11 +103499,11 @@
/***/ }),
- /* 138 */
+ /* 137 */
/***/ (function(module, exports, __webpack_require__) {
- var baseIsNative = __webpack_require__(680),
- getValue = __webpack_require__(685);
+ var baseIsNative = __webpack_require__(678),
+ getValue = __webpack_require__(683);
/**
* Gets the native function at `key` of `object`.
@@ -108118,7 +103522,7 @@
/***/ }),
- /* 139 */
+ /* 138 */
/***/ (function(module, exports) {
/**
@@ -108155,7 +103559,7 @@
/***/ }),
- /* 140 */
+ /* 139 */
/***/ (function(module, exports) {
/**
@@ -108198,122 +103602,122 @@
/***/ }),
- /* 141 */
+ /* 140 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {
if (process.env.NODE_ENV === 'production') {
- module.exports = __webpack_require__(711);
+ module.exports = __webpack_require__(709);
} else {
- module.exports = __webpack_require__(712);
+ module.exports = __webpack_require__(710);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
+ /***/ }),
+ /* 141 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 142 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
/* 143 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 144 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -108342,7 +103746,7 @@
}
/***/ }),
- /* 145 */
+ /* 144 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!function(e){var n=/iPhone/i,t=/iPod/i,r=/iPad/i,a=/\bAndroid(?:.+)Mobile\b/i,p=/Android/i,l=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,f=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,s=/BB10/i,v=/Opera Mini/i,h=/\b(CriOS|Chrome)(?:.+)Mobile/i,w=/\Mobile(?:.+)Firefox\b/i;function m(e,i){return e.test(i)}function i(e){var i=e||("undefined"!=typeof navigator?navigator.userAgent:""),o=i.split("[FBAN");void 0!==o[1]&&(i=o[0]),void 0!==(o=i.split("Twitter"))[1]&&(i=o[0]);var d={apple:{phone:m(n,i)&&!m(f,i),ipod:m(t,i),tablet:!m(n,i)&&m(r,i)&&!m(f,i),device:(m(n,i)||m(t,i)||m(r,i))&&!m(f,i)},amazon:{phone:m(l,i),tablet:!m(l,i)&&m(b,i),device:m(l,i)||m(b,i)},android:{phone:!m(f,i)&&m(l,i)||!m(f,i)&&m(a,i),tablet:!m(f,i)&&!m(l,i)&&!m(a,i)&&(m(b,i)||m(p,i)),device:!m(f,i)&&(m(l,i)||m(b,i)||m(a,i)||m(p,i))},windows:{phone:m(f,i),tablet:m(u,i),device:m(f,i)||m(u,i)},other:{blackberry:m(c,i),blackberry10:m(s,i),opera:m(v,i),firefox:m(w,i),chrome:m(h,i),device:m(c,i)||m(s,i)||m(v,i)||m(w,i)||m(h,i)}};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=i:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=i(): true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (e.isMobile=i()),
@@ -108351,7 +103755,7 @@
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):e.isMobile=i()}(this);
/***/ }),
- /* 146 */
+ /* 145 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -108403,7 +103807,7 @@
module.exports = exports['default'];
/***/ }),
- /* 147 */
+ /* 146 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -108618,54 +104022,104 @@
};
}
+ /***/ }),
+ /* 147 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 148 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
@@ -108675,145 +104129,6 @@
"use strict";
- module.exports = __webpack_require__(883);
-
- /***/ }),
- /* 150 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(884);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(885);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(886);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(887);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(888);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(889);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(890);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(891);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(892);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(272);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(893);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(895);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(273);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 151 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 152 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -108833,7 +104148,7 @@
var _properties2 = _interopRequireDefault(_properties);
- var _on = __webpack_require__(20);
+ var _on = __webpack_require__(21);
var _on2 = _interopRequireDefault(_on);
@@ -109153,6 +104468,126 @@
exports["default"] = Transition;
+ /***/ }),
+ /* 150 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 151 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Notification = __webpack_require__(925);
+
+ var _Notification2 = _interopRequireDefault(_Notification);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Notification2["default"];
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 152 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 153 */
/***/ (function(module, exports, __webpack_require__) {
@@ -109160,97 +104595,393 @@
"use strict";
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = 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 _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _properties = __webpack_require__(41);
+
+ var _properties2 = _interopRequireDefault(_properties);
+
+ var _on = __webpack_require__(21);
+
+ var _on2 = _interopRequireDefault(_on);
+
+ var _classnames = __webpack_require__(2);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); }
+
+ var transitionEndEvent = _properties2["default"].end;
+
+ //设置状态码
+ var UNMOUNTED = exports.UNMOUNTED = 0;
+ var EXITED = exports.EXITED = 1;
+ var ENTERING = exports.ENTERING = 2;
+ var ENTERED = exports.ENTERED = 3;
+ var EXITING = exports.EXITING = 4;
+
+ var propTypes = {
+ /**
+ * 是否触发动画
+ */
+ "in": _propTypes2["default"].bool,
+
+ /**
+ * 不显示的时候是否移除组件
+ */
+ unmountOnExit: _propTypes2["default"].bool,
+
+ /**
+ * 如果设置为默认显示,挂载时显示动画
+ */
+ transitionAppear: _propTypes2["default"].bool,
+
+ /**
+ * 设置超时时间,防止出现问题,可设置为>=动画时间
+ */
+ timeout: _propTypes2["default"].number,
+
+ /**
+ * 退出组件时添加的class
+ */
+ exitedClassName: _propTypes2["default"].string,
+ /**
+ * 退出组件中添加的class
+ */
+ exitingClassName: _propTypes2["default"].string,
+ /**
+ * 进入动画后添加的class
+ */
+ enteredClassName: _propTypes2["default"].string,
+ /**
+ * 进入动画时添加的class
+ */
+ enteringClassName: _propTypes2["default"].string,
+
+ /**
+ * 进入动画开始时的钩子函数
+ */
+ onEnter: _propTypes2["default"].func,
+ /**
+ * 进入动画中的钩子函数
+ */
+ onEntering: _propTypes2["default"].func,
+ /**
+ * 进入动画后的钩子函数
+ */
+ onEntered: _propTypes2["default"].func,
+ /**
+ * 退出动画开始时的钩子函数
+ */
+ onExit: _propTypes2["default"].func,
+ /**
+ * 退出动画中的钩子函数
+ */
+ onExiting: _propTypes2["default"].func,
+ /**
+ * 退出动画后的钩子函数
+ */
+ onExited: _propTypes2["default"].func
+ };
+
+ function noop() {}
+
+ var defaultProps = {
+ "in": false,
+ unmountOnExit: false,
+ transitionAppear: false,
+ timeout: 5000,
+ onEnter: noop,
+ onEntering: noop,
+ onEntered: noop,
+ onExit: noop,
+ onExiting: noop,
+ onExited: noop
+ };
+
/**
- * 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.
+ * 动画组件
*/
- // Mostly taken from ReactPropTypes.
+ var Transition = function (_Component) {
+ _inherits(Transition, _Component);
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
+ function Transition(props, context) {
+ _classCallCheck(this, Transition);
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ var initialStatus = void 0;
+ if (props["in"]) {
+ // 在componentdidmount时开始执行动画
+ initialStatus = props.transitionAppear ? EXITED : ENTERED;
+ } else {
+ initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;
+ }
+ _this.state = { status: initialStatus };
+
+ _this.nextCallback = null;
+ return _this;
+ }
+
+ Transition.prototype.componentDidMount = function componentDidMount() {
+ if (this.props.transitionAppear && this.props["in"]) {
+ this.performEnter(this.props);
+ }
+ };
+
+ Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if (nextProps["in"] && this.props.unmountOnExit) {
+ if (this.state.status === UNMOUNTED) {
+ // 在componentDidUpdate执行动画.
+ this.setState({ status: EXITED });
+ }
+ } else {
+ this._needsUpdate = true;
+ }
+ };
+
+ Transition.prototype.componentDidUpdate = function componentDidUpdate() {
+ var status = this.state.status;
+
+ if (this.props.unmountOnExit && status === EXITED) {
+ // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态
+ if (this.props["in"]) {
+ this.performEnter(this.props);
+ } else {
+ this.setState({ status: UNMOUNTED });
}
+ return;
+ }
+
+ // 确保只响应prop变化
+ if (this._needsUpdate) {
+ this._needsUpdate = false;
+
+ if (this.props["in"]) {
+ if (status === EXITING) {
+ this.performEnter(this.props);
+ } else if (status === EXITED) {
+ this.performEnter(this.props);
+ }
+ // 其他,当我们已经输入或输出
+ } else {
+ if (status === ENTERING || status === ENTERED) {
+ this.performExit(this.props);
+ }
+ // 我们已经输入或输出完成
+ }
+ }
+ };
+
+ Transition.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.cancelNextCallback();
+ };
+
+ Transition.prototype.performEnter = function performEnter(props) {
+ var _this2 = this;
+
+ this.cancelNextCallback();
+ var node = _reactDom2["default"].findDOMNode(this);
+
+ // 这里接收新props
+ props.onEnter(node);
+
+ this.safeSetState({ status: ENTERING }, function () {
+ _this2.props.onEntering(node);
+
+ _this2.onTransitionEnd(node, function () {
+ _this2.safeSetState({ status: ENTERED }, function () {
+ _this2.props.onEntered(node);
+ });
+ });
+ });
+ };
+
+ Transition.prototype.performExit = function performExit(props) {
+ var _this3 = this;
+
+ this.cancelNextCallback();
+ var node = _reactDom2["default"].findDOMNode(this);
+
+ props.onExit(node);
+
+ this.safeSetState({ status: EXITING }, function () {
+ _this3.props.onExiting(node);
+
+ _this3.onTransitionEnd(node, function () {
+ _this3.safeSetState({ status: EXITED }, function () {
+ _this3.props.onExited(node);
+ });
+ });
+ });
+ };
+
+ Transition.prototype.cancelNextCallback = function cancelNextCallback() {
+ if (this.nextCallback !== null) {
+ this.nextCallback.cancel();
+ this.nextCallback = null;
+ }
+ };
+
+ Transition.prototype.safeSetState = function safeSetState(nextState, callback) {
+ // 确保在组件销毁后挂起的setState被消除
+ this.setState(nextState, this.setNextCallback(callback));
+ };
+
+ Transition.prototype.setNextCallback = function setNextCallback(callback) {
+ var _this4 = this;
+
+ var active = true;
+
+ this.nextCallback = function (event) {
+ if (active) {
+ active = false;
+ _this4.nextCallback = null;
+
+ callback(event);
+ }
+ };
+
+ this.nextCallback.cancel = function () {
+ active = false;
+ };
+
+ return this.nextCallback;
+ };
+
+ Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {
+ this.setNextCallback(handler);
+
+ if (node) {
+ if (transitionEndEvent == undefined) {
+ this.nextCallback();
+ } else {
+ (0, _on2["default"])(node, transitionEndEvent, this.nextCallback);
+ }
+ setTimeout(this.nextCallback, this.props.timeout);
+ } else {
+ setTimeout(this.nextCallback, 0);
+ }
+ };
+
+ Transition.prototype.render = function render() {
+ var status = this.state.status;
+ if (status === UNMOUNTED) {
return null;
}
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
+ var _props = this.props,
+ children = _props.children,
+ className = _props.className,
+ childProps = _objectWithoutProperties(_props, ['children', 'className']);
+
+ Object.keys(Transition.propTypes).forEach(function (key) {
+ return delete childProps[key];
+ });
+
+ var transitionClassName = void 0;
+ if (status === EXITED) {
+ transitionClassName = this.props.exitedClassName;
+ } else if (status === ENTERING) {
+ transitionClassName = this.props.enteringClassName;
+ } else if (status === ENTERED) {
+ transitionClassName = this.props.enteredClassName;
+ } else if (status === EXITING) {
+ transitionClassName = this.props.exitingClassName;
}
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
+ var child = _react2["default"].Children.only(children);
+ return _react2["default"].cloneElement(child, _extends({}, childProps, {
+ className: (0, _classnames2["default"])(child.props.className, className, transitionClassName)
+ }));
+ };
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
+ return Transition;
+ }(_react.Component);
- return chainedCheckType;
- }
+ Transition.propTypes = propTypes;
+
+ Transition.defaultProps = defaultProps;
+
+ exports["default"] = Transition;
/***/ }),
/* 154 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
@@ -109279,7 +105010,7 @@
var _properties2 = _interopRequireDefault(_properties);
- var _on = __webpack_require__(20);
+ var _on = __webpack_require__(21);
var _on2 = _interopRequireDefault(_on);
@@ -109604,129 +105335,99 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(957);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(958);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(959);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(960);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(961);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(962);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(287);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(963);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(964);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(288);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(965);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(967);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(968);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
/***/ }),
/* 157 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
@@ -109736,452 +105437,6 @@
"use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = 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 _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _properties = __webpack_require__(41);
-
- var _properties2 = _interopRequireDefault(_properties);
-
- var _on = __webpack_require__(20);
-
- var _on2 = _interopRequireDefault(_on);
-
- var _classnames = __webpack_require__(2);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); }
-
- var transitionEndEvent = _properties2["default"].end;
-
- //设置状态码
- var UNMOUNTED = exports.UNMOUNTED = 0;
- var EXITED = exports.EXITED = 1;
- var ENTERING = exports.ENTERING = 2;
- var ENTERED = exports.ENTERED = 3;
- var EXITING = exports.EXITING = 4;
-
- var propTypes = {
- /**
- * 是否触发动画
- */
- "in": _propTypes2["default"].bool,
-
- /**
- * 不显示的时候是否移除组件
- */
- unmountOnExit: _propTypes2["default"].bool,
-
- /**
- * 如果设置为默认显示,挂载时显示动画
- */
- transitionAppear: _propTypes2["default"].bool,
-
- /**
- * 设置超时时间,防止出现问题,可设置为>=动画时间
- */
- timeout: _propTypes2["default"].number,
-
- /**
- * 退出组件时添加的class
- */
- exitedClassName: _propTypes2["default"].string,
- /**
- * 退出组件中添加的class
- */
- exitingClassName: _propTypes2["default"].string,
- /**
- * 进入动画后添加的class
- */
- enteredClassName: _propTypes2["default"].string,
- /**
- * 进入动画时添加的class
- */
- enteringClassName: _propTypes2["default"].string,
-
- /**
- * 进入动画开始时的钩子函数
- */
- onEnter: _propTypes2["default"].func,
- /**
- * 进入动画中的钩子函数
- */
- onEntering: _propTypes2["default"].func,
- /**
- * 进入动画后的钩子函数
- */
- onEntered: _propTypes2["default"].func,
- /**
- * 退出动画开始时的钩子函数
- */
- onExit: _propTypes2["default"].func,
- /**
- * 退出动画中的钩子函数
- */
- onExiting: _propTypes2["default"].func,
- /**
- * 退出动画后的钩子函数
- */
- onExited: _propTypes2["default"].func
- };
-
- function noop() {}
-
- var defaultProps = {
- "in": false,
- unmountOnExit: false,
- transitionAppear: false,
- timeout: 5000,
- onEnter: noop,
- onEntering: noop,
- onEntered: noop,
- onExit: noop,
- onExiting: noop,
- onExited: noop
- };
-
- /**
- * 动画组件
- */
-
- var Transition = function (_Component) {
- _inherits(Transition, _Component);
-
- function Transition(props, context) {
- _classCallCheck(this, Transition);
-
- var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
-
- var initialStatus = void 0;
- if (props["in"]) {
- // 在componentdidmount时开始执行动画
- initialStatus = props.transitionAppear ? EXITED : ENTERED;
- } else {
- initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;
- }
- _this.state = { status: initialStatus };
-
- _this.nextCallback = null;
- return _this;
- }
-
- Transition.prototype.componentDidMount = function componentDidMount() {
- if (this.props.transitionAppear && this.props["in"]) {
- this.performEnter(this.props);
- }
- };
-
- Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- if (nextProps["in"] && this.props.unmountOnExit) {
- if (this.state.status === UNMOUNTED) {
- // 在componentDidUpdate执行动画.
- this.setState({ status: EXITED });
- }
- } else {
- this._needsUpdate = true;
- }
- };
-
- Transition.prototype.componentDidUpdate = function componentDidUpdate() {
- var status = this.state.status;
-
- if (this.props.unmountOnExit && status === EXITED) {
- // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态
- if (this.props["in"]) {
- this.performEnter(this.props);
- } else {
- this.setState({ status: UNMOUNTED });
- }
-
- return;
- }
-
- // 确保只响应prop变化
- if (this._needsUpdate) {
- this._needsUpdate = false;
-
- if (this.props["in"]) {
- if (status === EXITING) {
- this.performEnter(this.props);
- } else if (status === EXITED) {
- this.performEnter(this.props);
- }
- // 其他,当我们已经输入或输出
- } else {
- if (status === ENTERING || status === ENTERED) {
- this.performExit(this.props);
- }
- // 我们已经输入或输出完成
- }
- }
- };
-
- Transition.prototype.componentWillUnmount = function componentWillUnmount() {
- this.cancelNextCallback();
- };
-
- Transition.prototype.performEnter = function performEnter(props) {
- var _this2 = this;
-
- this.cancelNextCallback();
- var node = _reactDom2["default"].findDOMNode(this);
-
- // 这里接收新props
- props.onEnter(node);
-
- this.safeSetState({ status: ENTERING }, function () {
- _this2.props.onEntering(node);
-
- _this2.onTransitionEnd(node, function () {
- _this2.safeSetState({ status: ENTERED }, function () {
- _this2.props.onEntered(node);
- });
- });
- });
- };
-
- Transition.prototype.performExit = function performExit(props) {
- var _this3 = this;
-
- this.cancelNextCallback();
- var node = _reactDom2["default"].findDOMNode(this);
-
- props.onExit(node);
-
- this.safeSetState({ status: EXITING }, function () {
- _this3.props.onExiting(node);
-
- _this3.onTransitionEnd(node, function () {
- _this3.safeSetState({ status: EXITED }, function () {
- _this3.props.onExited(node);
- });
- });
- });
- };
-
- Transition.prototype.cancelNextCallback = function cancelNextCallback() {
- if (this.nextCallback !== null) {
- this.nextCallback.cancel();
- this.nextCallback = null;
- }
- };
-
- Transition.prototype.safeSetState = function safeSetState(nextState, callback) {
- // 确保在组件销毁后挂起的setState被消除
- this.setState(nextState, this.setNextCallback(callback));
- };
-
- Transition.prototype.setNextCallback = function setNextCallback(callback) {
- var _this4 = this;
-
- var active = true;
-
- this.nextCallback = function (event) {
- if (active) {
- active = false;
- _this4.nextCallback = null;
-
- callback(event);
- }
- };
-
- this.nextCallback.cancel = function () {
- active = false;
- };
-
- return this.nextCallback;
- };
-
- Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {
- this.setNextCallback(handler);
-
- if (node) {
- if (transitionEndEvent == undefined) {
- this.nextCallback();
- } else {
- (0, _on2["default"])(node, transitionEndEvent, this.nextCallback);
- }
- setTimeout(this.nextCallback, this.props.timeout);
- } else {
- setTimeout(this.nextCallback, 0);
- }
- };
-
- Transition.prototype.render = function render() {
- var status = this.state.status;
- if (status === UNMOUNTED) {
- return null;
- }
-
- var _props = this.props,
- children = _props.children,
- className = _props.className,
- childProps = _objectWithoutProperties(_props, ['children', 'className']);
-
- Object.keys(Transition.propTypes).forEach(function (key) {
- return delete childProps[key];
- });
-
- var transitionClassName = void 0;
- if (status === EXITED) {
- transitionClassName = this.props.exitedClassName;
- } else if (status === ENTERING) {
- transitionClassName = this.props.enteringClassName;
- } else if (status === ENTERED) {
- transitionClassName = this.props.enteredClassName;
- } else if (status === EXITING) {
- transitionClassName = this.props.exitingClassName;
- }
-
- var child = _react2["default"].Children.only(children);
- return _react2["default"].cloneElement(child, _extends({}, childProps, {
- className: (0, _classnames2["default"])(child.props.className, className, transitionClassName)
- }));
- };
-
- return Transition;
- }(_react.Component);
-
- Transition.propTypes = propTypes;
-
- Transition.defaultProps = defaultProps;
-
- exports["default"] = Transition;
-
- /***/ }),
- /* 159 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 160 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 161 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -110202,9 +105457,9 @@
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) : _defaults(subClass, superClass); } /**
- * This source code is quoted from rc-select.
- * homepage: https://github.com/react-component/select
+ 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) : _defaults(subClass, superClass); } /**
+ * This source code is quoted from rc-select.
+ * homepage: https://github.com/react-component/select
*/
@@ -110228,7 +105483,7 @@
module.exports = exports['default'];
/***/ }),
- /* 162 */
+ /* 159 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -110443,6 +105698,156 @@
};
}
+ /***/ }),
+ /* 160 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 161 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 162 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 163 */
/***/ (function(module, exports, __webpack_require__) {
@@ -110450,161 +105855,11 @@
"use strict";
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 164 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 165 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 166 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
- var _inDOM = __webpack_require__(56);
+ var _inDOM = __webpack_require__(55);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -110626,7 +105881,7 @@
module.exports = exports['default'];
/***/ }),
- /* 167 */
+ /* 164 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -110651,41 +105906,41 @@
var _warning2 = _interopRequireDefault(_warning);
- var _tinperBeeCore = __webpack_require__(327);
+ var _tinperBeeCore = __webpack_require__(324);
- var _Portal = __webpack_require__(1182);
+ var _Portal = __webpack_require__(1178);
var _Portal2 = _interopRequireDefault(_Portal);
- var _ModalManager = __webpack_require__(1183);
+ var _ModalManager = __webpack_require__(1179);
var _ModalManager2 = _interopRequireDefault(_ModalManager);
- var _ownerDocument = __webpack_require__(329);
+ var _ownerDocument = __webpack_require__(326);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _addEventListener = __webpack_require__(1187);
+ var _addEventListener = __webpack_require__(1183);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
- var _addFocusListener = __webpack_require__(1188);
+ var _addFocusListener = __webpack_require__(1184);
var _addFocusListener2 = _interopRequireDefault(_addFocusListener);
- var _inDOM = __webpack_require__(54);
+ var _inDOM = __webpack_require__(52);
var _inDOM2 = _interopRequireDefault(_inDOM);
- var _activeElement = __webpack_require__(1189);
+ var _activeElement = __webpack_require__(1185);
var _activeElement2 = _interopRequireDefault(_activeElement);
- var _contains = __webpack_require__(29);
+ var _contains = __webpack_require__(27);
var _contains2 = _interopRequireDefault(_contains);
- var _getContainer = __webpack_require__(330);
+ var _getContainer = __webpack_require__(327);
var _getContainer2 = _interopRequireDefault(_getContainer);
@@ -111171,107 +106426,107 @@
module.exports = exports['default'];
/***/ }),
- /* 168 */
+ /* 165 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
- /* 169 */
+ /* 166 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
- /* 170 */
+ /* 167 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -111292,11 +106547,11 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _properties = __webpack_require__(335);
+ var _properties = __webpack_require__(332);
var _properties2 = _interopRequireDefault(_properties);
- var _on = __webpack_require__(166);
+ var _on = __webpack_require__(163);
var _on2 = _interopRequireDefault(_on);
@@ -111617,7 +106872,7 @@
exports["default"] = Transition;
/***/ }),
- /* 171 */
+ /* 168 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -111627,7 +106882,7 @@
value: true
});
- var _Dnd = __webpack_require__(1216);
+ var _Dnd = __webpack_require__(1212);
var _Dnd2 = _interopRequireDefault(_Dnd);
@@ -111637,7 +106892,7 @@
module.exports = exports['default'];
/***/ }),
- /* 172 */
+ /* 169 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -111668,7 +106923,7 @@
}
/***/ }),
- /* 173 */
+ /* 170 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -111692,7 +106947,7 @@
}
/***/ }),
- /* 174 */
+ /* 171 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -111713,7 +106968,7 @@
}
/***/ }),
- /* 175 */
+ /* 172 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -111738,7 +106993,7 @@
module.exports = exports['default'];
/***/ }),
- /* 176 */
+ /* 173 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -111787,7 +107042,7 @@
// array reference around.
/***/ }),
- /* 177 */
+ /* 174 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1
@@ -111826,7 +107081,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 178 */
+ /* 175 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -111863,2230 +107118,7 @@
module.exports = exports['default'];
/***/ }),
- /* 179 */
- /***/ (function(module, exports, __webpack_require__) {
-
- (function (global, factory) {
- true ? module.exports = factory(__webpack_require__(3), __webpack_require__(0)) :
- typeof define === 'function' && define.amd ? define(['react-dom', 'react'], factory) :
- (global.ReactDraggable = factory(global.ReactDOM,global.React));
- }(this, (function (ReactDOM,React) { 'use strict';
-
- ReactDOM = ReactDOM && ReactDOM.hasOwnProperty('default') ? ReactDOM['default'] : ReactDOM;
- React = React && React.hasOwnProperty('default') ? React['default'] : React;
-
- function createCommonjsModule(fn, module) {
- return module = { exports: {} }, fn(module, module.exports), module.exports;
- }
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- *
- */
-
- 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;
- };
-
- var emptyFunction_1 = emptyFunction;
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- */
-
- /**
- * 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) {};
-
- {
- 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;
- }
- }
-
- var invariant_1 = invariant;
-
- /**
- * 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 warning = emptyFunction_1;
-
- {
- var printWarning = function printWarning(format) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // 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) {}
- };
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return; // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
-
- printWarning.apply(undefined, [format].concat(args));
- }
- };
- }
-
- var warning_1 = warning;
-
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
- /* eslint-disable no-unused-vars */
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
-
- function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined');
- }
-
- return Object(val);
- }
-
- function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false;
- }
-
- // Detect buggy property enumeration order in older V8 versions.
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
- test1[5] = 'de';
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {};
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i;
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
- return test2[n];
- });
- if (order2.join('') !== '0123456789') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {};
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
- test3[letter] = letter;
- });
- if (Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst') {
- return false;
- }
-
- return true;
- } catch (err) {
- // We don't expect any of the above to throw, but better to be safe.
- return false;
- }
- }
-
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
- var from;
- var to = toObject(target);
- var symbols;
-
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s]);
-
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
-
- if (getOwnPropertySymbols) {
- symbols = getOwnPropertySymbols(from);
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]];
- }
- }
- }
- }
-
- return to;
- };
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
-
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
-
- {
- var invariant$1 = invariant_1;
- var warning$1 = warning_1;
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
- var loggedTypeFailures = {};
- }
-
- /**
- * Assert that the values match with the type specs.
- * Error messages are memorized and will only be shown once.
- *
- * @param {object} typeSpecs Map of name to a ReactPropType
- * @param {object} values Runtime values that need to be type-checked
- * @param {string} location e.g. "prop", "context", "child context"
- * @param {string} componentName Name of the component for error messages.
- * @param {?Function} getStack Returns the component stack.
- * @private
- */
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
- {
- for (var typeSpecName in typeSpecs) {
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
- var error;
- // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- invariant$1(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
- } catch (ex) {
- error = ex;
- }
- warning$1(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error.message] = true;
-
- var stack = getStack ? getStack() : '';
-
- warning$1(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
- }
- }
- }
- }
- }
-
- var checkPropTypes_1 = checkPropTypes;
-
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
- /* global Symbol */
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
-
- /**
- * Returns the iterator method function contained on the iterable object.
- *
- * Be sure to invoke the function with the iterable as context:
- *
- * var iteratorFn = getIteratorFn(myIterable);
- * if (iteratorFn) {
- * var iterator = iteratorFn.call(myIterable);
- * ...
- * }
- *
- * @param {?object} maybeIterable
- * @return {?function}
- */
- function getIteratorFn(maybeIterable) {
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
- if (typeof iteratorFn === 'function') {
- return iteratorFn;
- }
- }
-
- /**
- * Collection of methods that allow declaration and validation of props that are
- * supplied to React components. Example usage:
- *
- * var Props = require('ReactPropTypes');
- * var MyArticle = React.createClass({
- * propTypes: {
- * // An optional string prop named "description".
- * description: Props.string,
- *
- * // A required enum prop named "category".
- * category: Props.oneOf(['News','Photos']).isRequired,
- *
- * // A prop named "dialog" that requires an instance of Dialog.
- * dialog: Props.instanceOf(Dialog).isRequired
- * },
- * render: function() { ... }
- * });
- *
- * A more formal specification of how these methods are used:
- *
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
- * decl := ReactPropTypes.{type}(.isRequired)?
- *
- * Each and every declaration produces a function with the same signature. This
- * allows the creation of custom validation functions. For example:
- *
- * var MyLink = React.createClass({
- * propTypes: {
- * // An optional string or URI prop named "href".
- * href: function(props, propName, componentName) {
- * var propValue = props[propName];
- * if (propValue != null && typeof propValue !== 'string' &&
- * !(propValue instanceof URI)) {
- * return new Error(
- * 'Expected a string or an URI for ' + propName + ' in ' +
- * componentName
- * );
- * }
- * }
- * },
- * render: function() {...}
- * });
- *
- * @internal
- */
-
- var ANONYMOUS = '<>';
-
- // Important!
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
- var ReactPropTypes = {
- array: createPrimitiveTypeChecker('array'),
- bool: createPrimitiveTypeChecker('boolean'),
- func: createPrimitiveTypeChecker('function'),
- number: createPrimitiveTypeChecker('number'),
- object: createPrimitiveTypeChecker('object'),
- string: createPrimitiveTypeChecker('string'),
- symbol: createPrimitiveTypeChecker('symbol'),
-
- any: createAnyTypeChecker(),
- arrayOf: createArrayOfTypeChecker,
- element: createElementTypeChecker(),
- instanceOf: createInstanceTypeChecker,
- node: createNodeChecker(),
- objectOf: createObjectOfTypeChecker,
- oneOf: createEnumTypeChecker,
- oneOfType: createUnionTypeChecker,
- shape: createShapeTypeChecker,
- exact: createStrictShapeTypeChecker,
- };
-
- /**
- * inlined Object.is polyfill to avoid requiring consumers ship their own
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
- */
- /*eslint-disable no-self-compare*/
- function is(x, y) {
- // SameValue algorithm
- if (x === y) {
- // Steps 1-5, 7-10
- // Steps 6.b-6.e: +0 != -0
- return x !== 0 || 1 / x === 1 / y;
- } else {
- // Step 6.a: NaN == NaN
- return x !== x && y !== y;
- }
- }
- /*eslint-enable no-self-compare*/
-
- /**
- * We use an Error-like object for backward compatibility as people may call
- * PropTypes directly and inspect their output. However, we don't use real
- * Errors anymore. We don't inspect their stack anyway, and creating them
- * is prohibitively expensive if they are created too often, such as what
- * happens in oneOfType() for any type before the one that matched.
- */
- function PropTypeError(message) {
- this.message = message;
- this.stack = '';
- }
- // Make `instanceof Error` still work for returned errors.
- PropTypeError.prototype = Error.prototype;
-
- function createChainableTypeChecker(validate) {
- {
- var manualPropTypeCallCache = {};
- var manualPropTypeWarningCount = 0;
- }
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
- componentName = componentName || ANONYMOUS;
- propFullName = propFullName || propName;
-
- if (secret !== ReactPropTypesSecret_1) {
- if (throwOnDirectAccess) {
- // New behavior only for users of `prop-types` package
- invariant_1(
- 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'
- );
- } else if ("development" !== 'production' && typeof console !== 'undefined') {
- // Old behavior for people using React.PropTypes
- var cacheKey = componentName + ':' + propName;
- if (
- !manualPropTypeCallCache[cacheKey] &&
- // Avoid spamming the console because they are often not actionable except for lib authors
- manualPropTypeWarningCount < 3
- ) {
- warning_1(
- false,
- 'You are manually calling a React.PropTypes validation ' +
- 'function for the `%s` prop on `%s`. This is deprecated ' +
- 'and will throw in the standalone `prop-types` package. ' +
- 'You may be seeing this warning due to a third-party PropTypes ' +
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
- propFullName,
- componentName
- );
- manualPropTypeCallCache[cacheKey] = true;
- manualPropTypeWarningCount++;
- }
- }
- }
- if (props[propName] == null) {
- if (isRequired) {
- if (props[propName] === null) {
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
- }
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
- }
- return null;
- } else {
- return validate(props, propName, componentName, location, propFullName);
- }
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- function createPrimitiveTypeChecker(expectedType) {
- function validate(props, propName, componentName, location, propFullName, secret) {
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== expectedType) {
- // `propValue` being instance of, say, date/regexp, pass the 'object'
- // check, but we can offer a more precise error message here rather than
- // 'of type `object`'.
- var preciseType = getPreciseType(propValue);
-
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createAnyTypeChecker() {
- return createChainableTypeChecker(emptyFunction_1.thatReturnsNull);
- }
-
- function createArrayOfTypeChecker(typeChecker) {
- function validate(props, propName, componentName, location, propFullName) {
- if (typeof typeChecker !== 'function') {
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
- }
- var propValue = props[propName];
- if (!Array.isArray(propValue)) {
- var propType = getPropType(propValue);
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
- }
- for (var i = 0; i < propValue.length; i++) {
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
- if (error instanceof Error) {
- return error;
- }
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createElementTypeChecker() {
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- if (!isValidElement(propValue)) {
- var propType = getPropType(propValue);
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createInstanceTypeChecker(expectedClass) {
- function validate(props, propName, componentName, location, propFullName) {
- if (!(props[propName] instanceof expectedClass)) {
- var expectedClassName = expectedClass.name || ANONYMOUS;
- var actualClassName = getClassName(props[propName]);
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createEnumTypeChecker(expectedValues) {
- if (!Array.isArray(expectedValues)) {
- warning_1(false, 'Invalid argument supplied to oneOf, expected an instance of array.');
- return emptyFunction_1.thatReturnsNull;
- }
-
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- for (var i = 0; i < expectedValues.length; i++) {
- if (is(propValue, expectedValues[i])) {
- return null;
- }
- }
-
- var valuesString = JSON.stringify(expectedValues);
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
- }
- return createChainableTypeChecker(validate);
- }
-
- function createObjectOfTypeChecker(typeChecker) {
- function validate(props, propName, componentName, location, propFullName) {
- if (typeof typeChecker !== 'function') {
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
- }
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== 'object') {
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
- }
- for (var key in propValue) {
- if (propValue.hasOwnProperty(key)) {
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
- if (error instanceof Error) {
- return error;
- }
- }
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createUnionTypeChecker(arrayOfTypeCheckers) {
- if (!Array.isArray(arrayOfTypeCheckers)) {
- warning_1(false, 'Invalid argument supplied to oneOfType, expected an instance of array.');
- return emptyFunction_1.thatReturnsNull;
- }
-
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
- var checker = arrayOfTypeCheckers[i];
- if (typeof checker !== 'function') {
- warning_1(
- false,
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
- 'received %s at index %s.',
- getPostfixForTypeWarning(checker),
- i
- );
- return emptyFunction_1.thatReturnsNull;
- }
- }
-
- function validate(props, propName, componentName, location, propFullName) {
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
- var checker = arrayOfTypeCheckers[i];
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
- return null;
- }
- }
-
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
- }
- return createChainableTypeChecker(validate);
- }
-
- function createNodeChecker() {
- function validate(props, propName, componentName, location, propFullName) {
- if (!isNode(props[propName])) {
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createShapeTypeChecker(shapeTypes) {
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== 'object') {
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
- }
- for (var key in shapeTypes) {
- var checker = shapeTypes[key];
- if (!checker) {
- continue;
- }
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
- if (error) {
- return error;
- }
- }
- return null;
- }
- return createChainableTypeChecker(validate);
- }
-
- function createStrictShapeTypeChecker(shapeTypes) {
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== 'object') {
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
- }
- // We need to check all keys in case some are required but missing from
- // props.
- var allKeys = objectAssign({}, props[propName], shapeTypes);
- for (var key in allKeys) {
- var checker = shapeTypes[key];
- if (!checker) {
- return new PropTypeError(
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
- );
- }
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
- if (error) {
- return error;
- }
- }
- return null;
- }
-
- return createChainableTypeChecker(validate);
- }
-
- function isNode(propValue) {
- switch (typeof propValue) {
- case 'number':
- case 'string':
- case 'undefined':
- return true;
- case 'boolean':
- return !propValue;
- case 'object':
- if (Array.isArray(propValue)) {
- return propValue.every(isNode);
- }
- if (propValue === null || isValidElement(propValue)) {
- return true;
- }
-
- var iteratorFn = getIteratorFn(propValue);
- if (iteratorFn) {
- var iterator = iteratorFn.call(propValue);
- var step;
- if (iteratorFn !== propValue.entries) {
- while (!(step = iterator.next()).done) {
- if (!isNode(step.value)) {
- return false;
- }
- }
- } else {
- // Iterator will provide entry [k,v] tuples rather than values.
- while (!(step = iterator.next()).done) {
- var entry = step.value;
- if (entry) {
- if (!isNode(entry[1])) {
- return false;
- }
- }
- }
- }
- } else {
- return false;
- }
-
- return true;
- default:
- return false;
- }
- }
-
- function isSymbol(propType, propValue) {
- // Native Symbol.
- if (propType === 'symbol') {
- return true;
- }
-
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
- if (propValue['@@toStringTag'] === 'Symbol') {
- return true;
- }
-
- // Fallback for non-spec compliant Symbols which are polyfilled.
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
- return true;
- }
-
- return false;
- }
-
- // Equivalent of `typeof` but with special handling for array and regexp.
- function getPropType(propValue) {
- var propType = typeof propValue;
- if (Array.isArray(propValue)) {
- return 'array';
- }
- if (propValue instanceof RegExp) {
- // Old webkits (at least until Android 4.0) return 'function' rather than
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
- // passes PropTypes.object.
- return 'object';
- }
- if (isSymbol(propType, propValue)) {
- return 'symbol';
- }
- return propType;
- }
-
- // This handles more types than `getPropType`. Only used for error messages.
- // See `createPrimitiveTypeChecker`.
- function getPreciseType(propValue) {
- if (typeof propValue === 'undefined' || propValue === null) {
- return '' + propValue;
- }
- var propType = getPropType(propValue);
- if (propType === 'object') {
- if (propValue instanceof Date) {
- return 'date';
- } else if (propValue instanceof RegExp) {
- return 'regexp';
- }
- }
- return propType;
- }
-
- // Returns a string that is postfixed to a warning about an invalid type.
- // For example, "undefined" or "of type array"
- function getPostfixForTypeWarning(value) {
- var type = getPreciseType(value);
- switch (type) {
- case 'array':
- case 'object':
- return 'an ' + type;
- case 'boolean':
- case 'date':
- case 'regexp':
- return 'a ' + type;
- default:
- return type;
- }
- }
-
- // Returns class name of the object, if any.
- function getClassName(propValue) {
- if (!propValue.constructor || !propValue.constructor.name) {
- return ANONYMOUS;
- }
- return propValue.constructor.name;
- }
-
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
- ReactPropTypes.PropTypes = ReactPropTypes;
-
- return ReactPropTypes;
- };
-
- var propTypes = createCommonjsModule(function (module) {
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
- {
- 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 = factoryWithTypeCheckers(isValidElement, throwOnDirectAccess);
- }
- });
-
- var classnames = createCommonjsModule(function (module) {
- /*!
- Copyright (c) 2016 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
- */
- /* global define */
-
- (function () {
-
- var hasOwn = {}.hasOwnProperty;
-
- function classNames () {
- var classes = [];
-
- for (var i = 0; i < arguments.length; i++) {
- var arg = arguments[i];
- if (!arg) continue;
-
- var argType = typeof arg;
-
- if (argType === 'string' || argType === 'number') {
- classes.push(arg);
- } else if (Array.isArray(arg)) {
- classes.push(classNames.apply(null, arg));
- } else if (argType === 'object') {
- for (var key in arg) {
- if (hasOwn.call(arg, key) && arg[key]) {
- classes.push(key);
- }
- }
- }
- }
-
- return classes.join(' ');
- }
-
- if ('object' !== 'undefined' && module.exports) {
- module.exports = classNames;
- } else if (false) {
- // register as 'classnames', consistent with npm package name
- undefined('classnames', [], function () {
- return classNames;
- });
- } else {
- window.classNames = classNames;
- }
- }());
- });
-
- // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc
- function findInArray(array /*: Array | TouchList*/, callback /*: Function*/) /*: any*/ {
- for (var i = 0, length = array.length; i < length; i++) {
- if (callback.apply(callback, [array[i], i, array])) return array[i];
- }
- }
-
- function isFunction(func /*: any*/) /*: boolean*/ {
- return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]';
- }
-
- function isNum(num /*: any*/) /*: boolean*/ {
- return typeof num === 'number' && !isNaN(num);
- }
-
- function int(a /*: string*/) /*: number*/ {
- return parseInt(a, 10);
- }
-
- function dontSetMe(props /*: Object*/, propName /*: string*/, componentName /*: string*/) {
- if (props[propName]) {
- return new Error('Invalid prop ' + propName + ' passed to ' + componentName + ' - do not set this, set it on the child.');
- }
- }
-
- var prefixes = ['Moz', 'Webkit', 'O', 'ms'];
- function getPrefix() /*: string*/ {
- var prop /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';
-
- // Checking specifically for 'window.document' is for pseudo-browser server-side
- // environments that define 'window' as the global context.
- // E.g. React-rails (see https://github.com/reactjs/react-rails/pull/84)
- if (typeof window === 'undefined' || typeof window.document === 'undefined') return '';
-
- var style = window.document.documentElement.style;
-
- if (prop in style) return '';
-
- for (var i = 0; i < prefixes.length; i++) {
- if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];
- }
-
- return '';
- }
-
- function browserPrefixToKey(prop /*: string*/, prefix /*: string*/) /*: string*/ {
- return prefix ? '' + prefix + kebabToTitleCase(prop) : prop;
- }
-
- function kebabToTitleCase(str /*: string*/) /*: string*/ {
- var out = '';
- var shouldCapitalize = true;
- for (var i = 0; i < str.length; i++) {
- if (shouldCapitalize) {
- out += str[i].toUpperCase();
- shouldCapitalize = false;
- } else if (str[i] === '-') {
- shouldCapitalize = true;
- } else {
- out += str[i];
- }
- }
- return out;
- }
-
- // Default export is the prefix itself, like 'Moz', 'Webkit', etc
- // Note that you may have to re-test for certain things; for instance, Chrome 50
- // can handle unprefixed `transform`, but not unprefixed `user-select`
- var browserPrefix = getPrefix();
-
- var classCallCheck = function (instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- };
-
- 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 defineProperty = function (obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
- };
-
- var _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 inherits = function (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 possibleConstructorReturn = function (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 slicedToArray = function () {
- function sliceIterator(arr, i) {
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"]) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
- }
-
- return function (arr, i) {
- if (Array.isArray(arr)) {
- return arr;
- } else if (Symbol.iterator in Object(arr)) {
- return sliceIterator(arr, i);
- } else {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
- }
- };
- }();
-
- /*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/
-
-
- var matchesSelectorFunc = '';
- function matchesSelector(el /*: Node*/, selector /*: string*/) /*: boolean*/ {
- if (!matchesSelectorFunc) {
- matchesSelectorFunc = findInArray(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) {
- // $FlowIgnore: Doesn't think elements are indexable
- return isFunction(el[method]);
- });
- }
-
- // Might not be found entirely (not an Element?) - in that case, bail
- // $FlowIgnore: Doesn't think elements are indexable
- if (!isFunction(el[matchesSelectorFunc])) return false;
-
- // $FlowIgnore: Doesn't think elements are indexable
- return el[matchesSelectorFunc](selector);
- }
-
- // Works up the tree to the draggable itself attempting to match selector.
- function matchesSelectorAndParentsTo(el /*: Node*/, selector /*: string*/, baseNode /*: Node*/) /*: boolean*/ {
- var node = el;
- do {
- if (matchesSelector(node, selector)) return true;
- if (node === baseNode) return false;
- node = node.parentNode;
- } while (node);
-
- return false;
- }
-
- function addEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ {
- if (!el) {
- return;
- }
- if (el.attachEvent) {
- el.attachEvent('on' + event, handler);
- } else if (el.addEventListener) {
- el.addEventListener(event, handler, true);
- } else {
- // $FlowIgnore: Doesn't think elements are indexable
- el['on' + event] = handler;
- }
- }
-
- function removeEvent(el /*: ?Node*/, event /*: string*/, handler /*: Function*/) /*: void*/ {
- if (!el) {
- return;
- }
- if (el.detachEvent) {
- el.detachEvent('on' + event, handler);
- } else if (el.removeEventListener) {
- el.removeEventListener(event, handler, true);
- } else {
- // $FlowIgnore: Doesn't think elements are indexable
- el['on' + event] = null;
- }
- }
-
- function outerHeight(node /*: HTMLElement*/) /*: number*/ {
- // This is deliberately excluding margin for our calculations, since we are using
- // offsetTop which is including margin. See getBoundPosition
- var height = node.clientHeight;
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
- height += int(computedStyle.borderTopWidth);
- height += int(computedStyle.borderBottomWidth);
- return height;
- }
-
- function outerWidth(node /*: HTMLElement*/) /*: number*/ {
- // This is deliberately excluding margin for our calculations, since we are using
- // offsetLeft which is including margin. See getBoundPosition
- var width = node.clientWidth;
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
- width += int(computedStyle.borderLeftWidth);
- width += int(computedStyle.borderRightWidth);
- return width;
- }
- function innerHeight(node /*: HTMLElement*/) /*: number*/ {
- var height = node.clientHeight;
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
- height -= int(computedStyle.paddingTop);
- height -= int(computedStyle.paddingBottom);
- return height;
- }
-
- function innerWidth(node /*: HTMLElement*/) /*: number*/ {
- var width = node.clientWidth;
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
- width -= int(computedStyle.paddingLeft);
- width -= int(computedStyle.paddingRight);
- return width;
- }
-
- // Get from offsetParent
- function offsetXYFromParent(evt /*: {clientX: number, clientY: number}*/, offsetParent /*: HTMLElement*/) /*: ControlPosition*/ {
- var isBody = offsetParent === offsetParent.ownerDocument.body;
- var offsetParentRect = isBody ? { left: 0, top: 0 } : offsetParent.getBoundingClientRect();
-
- var x = evt.clientX + offsetParent.scrollLeft - offsetParentRect.left;
- var y = evt.clientY + offsetParent.scrollTop - offsetParentRect.top;
-
- return { x: x, y: y };
- }
-
- function createCSSTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: Object*/ {
- var translation = getTranslation(controlPos, positionOffset, 'px');
- return defineProperty({}, browserPrefixToKey('transform', browserPrefix), translation);
- }
-
- function createSVGTransform(controlPos /*: ControlPosition*/, positionOffset /*: PositionOffsetControlPosition*/) /*: string*/ {
- var translation = getTranslation(controlPos, positionOffset, '');
- return translation;
- }
- function getTranslation(_ref2, positionOffset /*: PositionOffsetControlPosition*/, unitSuffix /*: string*/) /*: string*/ {
- var x = _ref2.x,
- y = _ref2.y;
-
- var translation = 'translate(' + x + unitSuffix + ',' + y + unitSuffix + ')';
- if (positionOffset) {
- var defaultX = '' + (typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);
- var defaultY = '' + (typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);
- translation = 'translate(' + defaultX + ', ' + defaultY + ')' + translation;
- }
- return translation;
- }
-
- function getTouch(e /*: MouseTouchEvent*/, identifier /*: number*/) /*: ?{clientX: number, clientY: number}*/ {
- return e.targetTouches && findInArray(e.targetTouches, function (t) {
- return identifier === t.identifier;
- }) || e.changedTouches && findInArray(e.changedTouches, function (t) {
- return identifier === t.identifier;
- });
- }
-
- function getTouchIdentifier(e /*: MouseTouchEvent*/) /*: ?number*/ {
- if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
- if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
- }
-
- // User-select Hacks:
- //
- // Useful for preventing blue highlights all over everything when dragging.
-
- // Note we're passing `document` b/c we could be iframed
- function addUserSelectStyles(doc /*: ?Document*/) {
- if (!doc) return;
- var styleEl = doc.getElementById('react-draggable-style-el');
- if (!styleEl) {
- styleEl = doc.createElement('style');
- styleEl.type = 'text/css';
- styleEl.id = 'react-draggable-style-el';
- styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {background: transparent;}\n';
- styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {background: transparent;}\n';
- doc.getElementsByTagName('head')[0].appendChild(styleEl);
- }
- if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');
- }
-
- function removeUserSelectStyles(doc /*: ?Document*/) {
- try {
- if (doc && doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection');
- // $FlowIgnore: IE
- if (doc.selection) {
- // $FlowIgnore: IE
- doc.selection.empty();
- } else {
- window.getSelection().removeAllRanges(); // remove selection caused by scroll
- }
- } catch (e) {
- // probably IE
- }
- }
-
- function styleHacks() /*: Object*/ {
- var childStyle /*: Object*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
- // Workaround IE pointer events; see #51
- // https://github.com/mzabriskie/react-draggable/issues/51#issuecomment-103488278
- return _extends({
- touchAction: 'none'
- }, childStyle);
- }
-
- function addClassName(el /*: HTMLElement*/, className /*: string*/) {
- if (el.classList) {
- el.classList.add(className);
- } else {
- if (!el.className.match(new RegExp('(?:^|\\s)' + className + '(?!\\S)'))) {
- el.className += ' ' + className;
- }
- }
- }
-
- function removeClassName(el /*: HTMLElement*/, className /*: string*/) {
- if (el.classList) {
- el.classList.remove(className);
- } else {
- el.className = el.className.replace(new RegExp('(?:^|\\s)' + className + '(?!\\S)', 'g'), '');
- }
- }
-
- /*:: import type Draggable from '../Draggable';*/
- /*:: import type {Bounds, ControlPosition, DraggableData, MouseTouchEvent} from './types';*/
- /*:: import type DraggableCore from '../DraggableCore';*/
-
-
- function getBoundPosition(draggable /*: Draggable*/, x /*: number*/, y /*: number*/) /*: [number, number]*/ {
- // If no bounds, short-circuit and move on
- if (!draggable.props.bounds) return [x, y];
-
- // Clone new bounds
- var bounds = draggable.props.bounds;
-
- bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);
- var node = findDOMNode(draggable);
-
- if (typeof bounds === 'string') {
- var ownerDocument = node.ownerDocument;
-
- var ownerWindow = ownerDocument.defaultView;
- var boundNode = void 0;
- if (bounds === 'parent') {
- boundNode = node.parentNode;
- } else {
- boundNode = ownerDocument.querySelector(bounds);
- }
- if (!(boundNode instanceof ownerWindow.HTMLElement)) {
- throw new Error('Bounds selector "' + bounds + '" could not find an element.');
- }
- var nodeStyle = ownerWindow.getComputedStyle(node);
- var boundNodeStyle = ownerWindow.getComputedStyle(boundNode);
- // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.
- bounds = {
- left: -node.offsetLeft + int(boundNodeStyle.paddingLeft) + int(nodeStyle.marginLeft),
- top: -node.offsetTop + int(boundNodeStyle.paddingTop) + int(nodeStyle.marginTop),
- right: innerWidth(boundNode) - outerWidth(node) - node.offsetLeft + int(boundNodeStyle.paddingRight) - int(nodeStyle.marginRight),
- bottom: innerHeight(boundNode) - outerHeight(node) - node.offsetTop + int(boundNodeStyle.paddingBottom) - int(nodeStyle.marginBottom)
- };
- }
-
- // Keep x and y below right and bottom limits...
- if (isNum(bounds.right)) x = Math.min(x, bounds.right);
- if (isNum(bounds.bottom)) y = Math.min(y, bounds.bottom);
-
- // But above left and top limits.
- if (isNum(bounds.left)) x = Math.max(x, bounds.left);
- if (isNum(bounds.top)) y = Math.max(y, bounds.top);
-
- return [x, y];
- }
-
- function snapToGrid(grid /*: [number, number]*/, pendingX /*: number*/, pendingY /*: number*/) /*: [number, number]*/ {
- var x = Math.round(pendingX / grid[0]) * grid[0];
- var y = Math.round(pendingY / grid[1]) * grid[1];
- return [x, y];
- }
-
- function canDragX(draggable /*: Draggable*/) /*: boolean*/ {
- return draggable.props.axis === 'both' || draggable.props.axis === 'x';
- }
-
- function canDragY(draggable /*: Draggable*/) /*: boolean*/ {
- return draggable.props.axis === 'both' || draggable.props.axis === 'y';
- }
-
- // Get {x, y} positions from event.
- function getControlPosition(e /*: MouseTouchEvent*/, touchIdentifier /*: ?number*/, draggableCore /*: DraggableCore*/) /*: ?ControlPosition*/ {
- var touchObj = typeof touchIdentifier === 'number' ? getTouch(e, touchIdentifier) : null;
- if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch
- var node = findDOMNode(draggableCore);
- // User can provide an offsetParent if desired.
- var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
- return offsetXYFromParent(touchObj || e, offsetParent);
- }
-
- // Create an data object exposed by 's events
- function createCoreData(draggable /*: DraggableCore*/, x /*: number*/, y /*: number*/) /*: DraggableData*/ {
- var state = draggable.state;
- var isStart = !isNum(state.lastX);
- var node = findDOMNode(draggable);
-
- if (isStart) {
- // If this is our first move, use the x and y as last coords.
- return {
- node: node,
- deltaX: 0, deltaY: 0,
- lastX: x, lastY: y,
- x: x, y: y
- };
- } else {
- // Otherwise calculate proper values.
- return {
- node: node,
- deltaX: x - state.lastX, deltaY: y - state.lastY,
- lastX: state.lastX, lastY: state.lastY,
- x: x, y: y
- };
- }
- }
-
- // Create an data exposed by 's events
- function createDraggableData(draggable /*: Draggable*/, coreData /*: DraggableData*/) /*: DraggableData*/ {
- var scale = draggable.props.scale;
- return {
- node: coreData.node,
- x: draggable.state.x + coreData.deltaX / scale,
- y: draggable.state.y + coreData.deltaY / scale,
- deltaX: coreData.deltaX / scale,
- deltaY: coreData.deltaY / scale,
- lastX: draggable.state.x,
- lastY: draggable.state.y
- };
- }
-
- // A lot faster than stringify/parse
- function cloneBounds(bounds /*: Bounds*/) /*: Bounds*/ {
- return {
- left: bounds.left,
- top: bounds.top,
- right: bounds.right,
- bottom: bounds.bottom
- };
- }
-
- function findDOMNode(draggable /*: Draggable | DraggableCore*/) /*: HTMLElement*/ {
- var node = ReactDOM.findDOMNode(draggable);
- if (!node) {
- throw new Error(': Unmounted during event!');
- }
- // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME
- return node;
- }
-
- /*eslint no-console:0*/
- function log() {
- }
-
- /*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/
-
-
- // Simple abstraction for dragging events names.
- /*:: import type {Element as ReactElement} from 'react';*/
- var eventsFor = {
- touch: {
- start: 'touchstart',
- move: 'touchmove',
- stop: 'touchend'
- },
- mouse: {
- start: 'mousedown',
- move: 'mousemove',
- stop: 'mouseup'
- }
- };
-
- // Default to mouse events.
- var dragEventFor = eventsFor.mouse;
-
- /*:: type DraggableCoreState = {
- dragging: boolean,
- lastX: number,
- lastY: number,
- touchIdentifier: ?number
- };*/
- /*:: export type DraggableBounds = {
- left: number,
- right: number,
- top: number,
- bottom: number,
- };*/
- /*:: export type DraggableData = {
- node: HTMLElement,
- x: number, y: number,
- deltaX: number, deltaY: number,
- lastX: number, lastY: number,
- };*/
- /*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void;*/
- /*:: export type ControlPosition = {x: number, y: number};*/
- /*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/
-
-
- //
- // Define .
- //
- // is for advanced usage of . It maintains minimal internal state so it can
- // work well with libraries that require more control over the element.
- //
-
- /*:: export type DraggableCoreProps = {
- allowAnyClick: boolean,
- cancel: string,
- children: ReactElement,
- disabled: boolean,
- enableUserSelectHack: boolean,
- offsetParent: HTMLElement,
- grid: [number, number],
- handle: string,
- onStart: DraggableEventHandler,
- onDrag: DraggableEventHandler,
- onStop: DraggableEventHandler,
- onMouseDown: (e: MouseEvent) => void,
- };*/
-
- var DraggableCore = function (_React$Component) {
- inherits(DraggableCore, _React$Component);
-
- function DraggableCore() {
- var _ref;
-
- var _temp, _this, _ret;
-
- classCallCheck(this, DraggableCore);
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DraggableCore.__proto__ || Object.getPrototypeOf(DraggableCore)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
- dragging: false,
- // Used while dragging to determine deltas.
- lastX: NaN, lastY: NaN,
- touchIdentifier: null
- }, _this.handleDragStart = function (e) {
- // Make it possible to attach event handlers on top of this one.
- _this.props.onMouseDown(e);
-
- // Only accept left-clicks.
- if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false;
-
- // Get nodes. Be sure to grab relative document (could be iframed)
- var thisNode = ReactDOM.findDOMNode(_this);
- if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {
- throw new Error(' not mounted on DragStart!');
- }
- var ownerDocument = thisNode.ownerDocument;
-
- // Short circuit if handle or cancel prop was provided and selector doesn't match.
-
- if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !matchesSelectorAndParentsTo(e.target, _this.props.handle, thisNode) || _this.props.cancel && matchesSelectorAndParentsTo(e.target, _this.props.cancel, thisNode)) {
- return;
- }
-
- // Set touch identifier in component state if this is a touch event. This allows us to
- // distinguish between individual touches on multitouch screens by identifying which
- // touchpoint was set to this element.
- var touchIdentifier = getTouchIdentifier(e);
- _this.setState({ touchIdentifier: touchIdentifier });
-
- // Get the current drag point from the event. This is used as the offset.
- var position = getControlPosition(e, touchIdentifier, _this);
- if (position == null) return; // not possible but satisfies flow
- var x = position.x,
- y = position.y;
-
- // Create an event object with all the data parents need to make a decision here.
-
- var coreEvent = createCoreData(_this, x, y);
-
- // Call event handler. If it returns explicit false, cancel.
- log('calling', _this.props.onStart);
- var shouldUpdate = _this.props.onStart(e, coreEvent);
- if (shouldUpdate === false) return;
-
- // Add a style to the body to disable user-select. This prevents text from
- // being selected all over the page.
- if (_this.props.enableUserSelectHack) addUserSelectStyles(ownerDocument);
-
- // Initiate dragging. Set the current x and y as offsets
- // so we know how much we've moved during the drag. This allows us
- // to drag elements around even if they have been moved, without issue.
- _this.setState({
- dragging: true,
-
- lastX: x,
- lastY: y
- });
-
- // Add events to the document directly so we catch when the user's mouse/touch moves outside of
- // this element. We use different events depending on whether or not we have detected that this
- // is a touch-capable device.
- addEvent(ownerDocument, dragEventFor.move, _this.handleDrag);
- addEvent(ownerDocument, dragEventFor.stop, _this.handleDragStop);
- }, _this.handleDrag = function (e) {
-
- // Prevent scrolling on mobile devices, like ipad/iphone.
- if (e.type === 'touchmove') e.preventDefault();
-
- // Get the current drag point from the event. This is used as the offset.
- var position = getControlPosition(e, _this.state.touchIdentifier, _this);
- if (position == null) return;
- var x = position.x,
- y = position.y;
-
- // Snap to grid if prop has been provided
-
- if (Array.isArray(_this.props.grid)) {
- var _deltaX = x - _this.state.lastX,
- _deltaY = y - _this.state.lastY;
-
- var _snapToGrid = snapToGrid(_this.props.grid, _deltaX, _deltaY);
-
- var _snapToGrid2 = slicedToArray(_snapToGrid, 2);
-
- _deltaX = _snapToGrid2[0];
- _deltaY = _snapToGrid2[1];
-
- if (!_deltaX && !_deltaY) return; // skip useless drag
- x = _this.state.lastX + _deltaX, y = _this.state.lastY + _deltaY;
- }
-
- var coreEvent = createCoreData(_this, x, y);
-
- // Call event handler. If it returns explicit false, trigger end.
- var shouldUpdate = _this.props.onDrag(e, coreEvent);
- if (shouldUpdate === false) {
- try {
- // $FlowIgnore
- _this.handleDragStop(new MouseEvent('mouseup'));
- } catch (err) {
- // Old browsers
- var event = ((document.createEvent('MouseEvents') /*: any*/) /*: MouseTouchEvent*/);
- // I see why this insanity was deprecated
- // $FlowIgnore
- event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- _this.handleDragStop(event);
- }
- return;
- }
-
- _this.setState({
- lastX: x,
- lastY: y
- });
- }, _this.handleDragStop = function (e) {
- if (!_this.state.dragging) return;
-
- var position = getControlPosition(e, _this.state.touchIdentifier, _this);
- if (position == null) return;
- var x = position.x,
- y = position.y;
-
- var coreEvent = createCoreData(_this, x, y);
-
- var thisNode = ReactDOM.findDOMNode(_this);
- if (thisNode) {
- // Remove user-select hack
- if (_this.props.enableUserSelectHack) removeUserSelectStyles(thisNode.ownerDocument);
- }
-
- // Reset the el.
- _this.setState({
- dragging: false,
- lastX: NaN,
- lastY: NaN
- });
-
- // Call event handler
- _this.props.onStop(e, coreEvent);
-
- if (thisNode) {
- removeEvent(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag);
- removeEvent(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop);
- }
- }, _this.onMouseDown = function (e) {
- dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse
-
- return _this.handleDragStart(e);
- }, _this.onMouseUp = function (e) {
- dragEventFor = eventsFor.mouse;
-
- return _this.handleDragStop(e);
- }, _this.onTouchStart = function (e) {
- // We're on a touch device now, so change the event handlers
- dragEventFor = eventsFor.touch;
-
- return _this.handleDragStart(e);
- }, _this.onTouchEnd = function (e) {
- // We're on a touch device now, so change the event handlers
- dragEventFor = eventsFor.touch;
-
- return _this.handleDragStop(e);
- }, _temp), possibleConstructorReturn(_this, _ret);
- }
-
- createClass(DraggableCore, [{
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- // Remove any leftover event handlers. Remove both touch and mouse handlers in case
- // some browser quirk caused a touch event to fire during a mouse move, or vice versa.
- var thisNode = ReactDOM.findDOMNode(this);
- if (thisNode) {
- var ownerDocument = thisNode.ownerDocument;
-
- removeEvent(ownerDocument, eventsFor.mouse.move, this.handleDrag);
- removeEvent(ownerDocument, eventsFor.touch.move, this.handleDrag);
- removeEvent(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);
- removeEvent(ownerDocument, eventsFor.touch.stop, this.handleDragStop);
- if (this.props.enableUserSelectHack) removeUserSelectStyles(ownerDocument);
- }
- }
-
- // Same as onMouseDown (start drag), but now consider this a touch device.
-
- }, {
- key: 'render',
- value: function render() {
- // Reuse the child provided
- // This makes it flexible to use whatever element is wanted (div, ul, etc)
- return React.cloneElement(React.Children.only(this.props.children), {
- style: styleHacks(this.props.children.props.style),
-
- // Note: mouseMove handler is attached to document so it will still function
- // when the user drags quickly and leaves the bounds of the element.
- onMouseDown: this.onMouseDown,
- onTouchStart: this.onTouchStart,
- onMouseUp: this.onMouseUp,
- onTouchEnd: this.onTouchEnd
- });
- }
- }]);
- return DraggableCore;
- }(React.Component);
-
- DraggableCore.displayName = 'DraggableCore';
- DraggableCore.propTypes = {
- /**
- * `allowAnyClick` allows dragging using any mouse button.
- * By default, we only accept the left button.
- *
- * Defaults to `false`.
- */
- allowAnyClick: propTypes.bool,
-
- /**
- * `disabled`, if true, stops the from dragging. All handlers,
- * with the exception of `onMouseDown`, will not fire.
- */
- disabled: propTypes.bool,
-
- /**
- * By default, we add 'user-select:none' attributes to the document body
- * to prevent ugly text selection during drag. If this is causing problems
- * for your app, set this to `false`.
- */
- enableUserSelectHack: propTypes.bool,
-
- /**
- * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
- * instead of using the parent node.
- */
- offsetParent: function offsetParent(props /*: DraggableCoreProps*/, propName /*: $Keys*/) {
- if (props[propName] && props[propName].nodeType !== 1) {
- throw new Error('Draggable\'s offsetParent must be a DOM Node.');
- }
- },
-
- /**
- * `grid` specifies the x and y that dragging should snap to.
- */
- grid: propTypes.arrayOf(propTypes.number),
-
- /**
- * `scale` specifies the scale of the area you are dragging inside of. It allows
- * the drag deltas to scale correctly with how far zoomed in/out you are.
- */
- scale: propTypes.number,
-
- /**
- * `handle` specifies a selector to be used as the handle that initiates drag.
- *
- * Example:
- *
- * ```jsx
- * let App = React.createClass({
- * render: function () {
- * return (
- *
- *
- *
Click me to drag
- *
This is some other content
- *
- *
- * );
- * }
- * });
- * ```
- */
- handle: propTypes.string,
-
- /**
- * `cancel` specifies a selector to be used to prevent drag initialization.
- *
- * Example:
- *
- * ```jsx
- * let App = React.createClass({
- * render: function () {
- * return(
- *
- *
- *
You can't drag from here
- *
Dragging here works fine
- *
- *
- * );
- * }
- * });
- * ```
- */
- cancel: propTypes.string,
-
- /**
- * Called when dragging starts.
- * If this function returns the boolean false, dragging will be canceled.
- */
- onStart: propTypes.func,
-
- /**
- * Called while dragging.
- * If this function returns the boolean false, dragging will be canceled.
- */
- onDrag: propTypes.func,
-
- /**
- * Called when dragging stops.
- * If this function returns the boolean false, the drag will remain active.
- */
- onStop: propTypes.func,
-
- /**
- * A workaround option which can be passed if onMouseDown needs to be accessed,
- * since it'll always be blocked (as there is internal use of onMouseDown)
- */
- onMouseDown: propTypes.func,
-
- /**
- * These properties should be defined on the child, not here.
- */
- className: dontSetMe,
- style: dontSetMe,
- transform: dontSetMe
- };
- DraggableCore.defaultProps = {
- allowAnyClick: false, // by default only accept left click
- cancel: null,
- disabled: false,
- enableUserSelectHack: true,
- offsetParent: null,
- handle: null,
- grid: null,
- transform: null,
- onStart: function onStart() {},
- onDrag: function onDrag() {},
- onStop: function onStop() {},
- onMouseDown: function onMouseDown() {}
- };
-
- /*:: import type {DraggableEventHandler} from './utils/types';*/
- /*:: import type {Element as ReactElement} from 'react';*/
- /*:: type DraggableState = {
- dragging: boolean,
- dragged: boolean,
- x: number, y: number,
- slackX: number, slackY: number,
- isElementSVG: boolean
- };*/
-
-
- //
- // Define
- //
-
- /*:: export type DraggableProps = {
- ...$Exact,
- axis: 'both' | 'x' | 'y' | 'none',
- bounds: DraggableBounds | string | false,
- defaultClassName: string,
- defaultClassNameDragging: string,
- defaultClassNameDragged: string,
- defaultPosition: ControlPosition,
- positionOffset: PositionOffsetControlPosition,
- position: ControlPosition,
- scale: number
- };*/
-
- var Draggable = function (_React$Component) {
- inherits(Draggable, _React$Component);
-
- function Draggable(props /*: DraggableProps*/) {
- classCallCheck(this, Draggable);
-
- var _this = possibleConstructorReturn(this, (Draggable.__proto__ || Object.getPrototypeOf(Draggable)).call(this, props));
-
- _this.onDragStart = function (e, coreData) {
-
- // Short-circuit if user's callback killed it.
- var shouldStart = _this.props.onStart(e, createDraggableData(_this, coreData));
- // Kills start event on core as well, so move handlers are never bound.
- if (shouldStart === false) return false;
-
- _this.setState({ dragging: true, dragged: true });
- };
-
- _this.onDrag = function (e, coreData) {
- if (!_this.state.dragging) return false;
-
- var uiData = createDraggableData(_this, coreData);
-
- var newState /*: $Shape*/ = {
- x: uiData.x,
- y: uiData.y
- };
-
- // Keep within bounds.
- if (_this.props.bounds) {
- // Save original x and y.
- var _x = newState.x,
- _y = newState.y;
-
- // Add slack to the values used to calculate bound position. This will ensure that if
- // we start removing slack, the element won't react to it right away until it's been
- // completely removed.
-
- newState.x += _this.state.slackX;
- newState.y += _this.state.slackY;
-
- // Get bound position. This will ceil/floor the x and y within the boundaries.
-
- var _getBoundPosition = getBoundPosition(_this, newState.x, newState.y),
- _getBoundPosition2 = slicedToArray(_getBoundPosition, 2),
- newStateX = _getBoundPosition2[0],
- newStateY = _getBoundPosition2[1];
-
- newState.x = newStateX;
- newState.y = newStateY;
-
- // Recalculate slack by noting how much was shaved by the boundPosition handler.
- newState.slackX = _this.state.slackX + (_x - newState.x);
- newState.slackY = _this.state.slackY + (_y - newState.y);
-
- // Update the event we fire to reflect what really happened after bounds took effect.
- uiData.x = newState.x;
- uiData.y = newState.y;
- uiData.deltaX = newState.x - _this.state.x;
- uiData.deltaY = newState.y - _this.state.y;
- }
-
- // Short-circuit if user's callback killed it.
- var shouldUpdate = _this.props.onDrag(e, uiData);
- if (shouldUpdate === false) return false;
-
- _this.setState(newState);
- };
-
- _this.onDragStop = function (e, coreData) {
- if (!_this.state.dragging) return false;
-
- // Short-circuit if user's callback killed it.
- var shouldStop = _this.props.onStop(e, createDraggableData(_this, coreData));
- if (shouldStop === false) return false;
-
- var newState /*: $Shape*/ = {
- dragging: false,
- slackX: 0,
- slackY: 0
- };
-
- // If this is a controlled component, the result of this operation will be to
- // revert back to the old position. We expect a handler on `onDragStop`, at the least.
- var controlled = Boolean(_this.props.position);
- if (controlled) {
- var _this$props$position = _this.props.position,
- _x2 = _this$props$position.x,
- _y2 = _this$props$position.y;
-
- newState.x = _x2;
- newState.y = _y2;
- }
-
- _this.setState(newState);
- };
-
- _this.state = {
- // Whether or not we are currently dragging.
- dragging: false,
-
- // Whether or not we have been dragged before.
- dragged: false,
-
- // Current transform x and y.
- x: props.position ? props.position.x : props.defaultPosition.x,
- y: props.position ? props.position.y : props.defaultPosition.y,
-
- // Used for compensating for out-of-bounds drags
- slackX: 0, slackY: 0,
-
- // Can only determine if SVG after mounting
- isElementSVG: false
- };
- return _this;
- }
-
- createClass(Draggable, [{
- key: 'componentWillMount',
- value: function componentWillMount() {
- if (this.props.position && !(this.props.onDrag || this.props.onStop)) {
- // eslint-disable-next-line
- console.warn('A `position` was applied to this , without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');
- }
- }
- }, {
- key: 'componentDidMount',
- value: function componentDidMount() {
- // Check to see if the element passed is an instanceof SVGElement
- if (typeof window.SVGElement !== 'undefined' && ReactDOM.findDOMNode(this) instanceof window.SVGElement) {
- this.setState({ isElementSVG: true });
- }
- }
- }, {
- key: 'componentWillReceiveProps',
- value: function componentWillReceiveProps(nextProps /*: Object*/) {
- // Set x/y if position has changed
- if (nextProps.position && (!this.props.position || nextProps.position.x !== this.props.position.x || nextProps.position.y !== this.props.position.y)) {
- this.setState({ x: nextProps.position.x, y: nextProps.position.y });
- }
- }
- }, {
- key: 'componentWillUnmount',
- value: function componentWillUnmount() {
- this.setState({ dragging: false }); // prevents invariant if unmounted while dragging
- }
- }, {
- key: 'render',
- value: function render() /*: ReactElement*/ {
- var _classNames;
-
- var style = {},
- svgTransform = null;
-
- // If this is controlled, we don't want to move it - unless it's dragging.
- var controlled = Boolean(this.props.position);
- var draggable = !controlled || this.state.dragging;
-
- var position = this.props.position || this.props.defaultPosition;
- var transformOpts = {
- // Set left if horizontal drag is enabled
- x: canDragX(this) && draggable ? this.state.x : position.x,
-
- // Set top if vertical drag is enabled
- y: canDragY(this) && draggable ? this.state.y : position.y
- };
-
- // If this element was SVG, we use the `transform` attribute.
- if (this.state.isElementSVG) {
- svgTransform = createSVGTransform(transformOpts, this.props.positionOffset);
- } else {
- // Add a CSS transform to move the element around. This allows us to move the element around
- // without worrying about whether or not it is relatively or absolutely positioned.
- // If the item you are dragging already has a transform set, wrap it in a so
- // has a clean slate.
- style = createCSSTransform(transformOpts, this.props.positionOffset);
- }
-
- var _props = this.props,
- defaultClassName = _props.defaultClassName,
- defaultClassNameDragging = _props.defaultClassNameDragging,
- defaultClassNameDragged = _props.defaultClassNameDragged;
-
-
- var children = React.Children.only(this.props.children);
-
- // Mark with class while dragging
- var className = classnames(children.props.className || '', defaultClassName, (_classNames = {}, defineProperty(_classNames, defaultClassNameDragging, this.state.dragging), defineProperty(_classNames, defaultClassNameDragged, this.state.dragged), _classNames));
-
- // Reuse the child provided
- // This makes it flexible to use whatever element is wanted (div, ul, etc)
- return React.createElement(
- DraggableCore,
- _extends({}, this.props, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }),
- React.cloneElement(children, {
- className: className,
- style: _extends({}, children.props.style, style),
- transform: svgTransform
- })
- );
- }
- }]);
- return Draggable;
- }(React.Component);
-
- Draggable.displayName = 'Draggable';
- Draggable.propTypes = _extends({}, DraggableCore.propTypes, {
-
- /**
- * `axis` determines which axis the draggable can move.
- *
- * Note that all callbacks will still return data as normal. This only
- * controls flushing to the DOM.
- *
- * 'both' allows movement horizontally and vertically.
- * 'x' limits movement to horizontal axis.
- * 'y' limits movement to vertical axis.
- * 'none' limits all movement.
- *
- * Defaults to 'both'.
- */
- axis: propTypes.oneOf(['both', 'x', 'y', 'none']),
-
- /**
- * `bounds` determines the range of movement available to the element.
- * Available values are:
- *
- * 'parent' restricts movement within the Draggable's parent node.
- *
- * Alternatively, pass an object with the following properties, all of which are optional:
- *
- * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}
- *
- * All values are in px.
- *
- * Example:
- *
- * ```jsx
- * let App = React.createClass({
- * render: function () {
- * return (
- *
- * Content
- *
- * );
- * }
- * });
- * ```
- */
- bounds: propTypes.oneOfType([propTypes.shape({
- left: propTypes.number,
- right: propTypes.number,
- top: propTypes.number,
- bottom: propTypes.number
- }), propTypes.string, propTypes.oneOf([false])]),
-
- defaultClassName: propTypes.string,
- defaultClassNameDragging: propTypes.string,
- defaultClassNameDragged: propTypes.string,
-
- /**
- * `defaultPosition` specifies the x and y that the dragged item should start at
- *
- * Example:
- *
- * ```jsx
- * let App = React.createClass({
- * render: function () {
- * return (
- *
- * I start with transformX: 25px and transformY: 25px;
- *
- * );
- * }
- * });
- * ```
- */
- defaultPosition: propTypes.shape({
- x: propTypes.number,
- y: propTypes.number
- }),
- positionOffset: propTypes.shape({
- x: propTypes.oneOfType([propTypes.number, propTypes.string]),
- y: propTypes.oneOfType([propTypes.number, propTypes.string])
- }),
-
- /**
- * `position`, if present, defines the current position of the element.
- *
- * This is similar to how form elements in React work - if no `position` is supplied, the component
- * is uncontrolled.
- *
- * Example:
- *
- * ```jsx
- * let App = React.createClass({
- * render: function () {
- * return (
- *
- * I start with transformX: 25px and transformY: 25px;
- *
- * );
- * }
- * });
- * ```
- */
- position: propTypes.shape({
- x: propTypes.number,
- y: propTypes.number
- }),
-
- /**
- * These properties should be defined on the child, not here.
- */
- className: dontSetMe,
- style: dontSetMe,
- transform: dontSetMe
- });
- Draggable.defaultProps = _extends({}, DraggableCore.defaultProps, {
- axis: 'both',
- bounds: false,
- defaultClassName: 'react-draggable',
- defaultClassNameDragging: 'react-draggable-dragging',
- defaultClassNameDragged: 'react-draggable-dragged',
- defaultPosition: { x: 0, y: 0 },
- position: null,
- scale: 1
- });
-
- // Previous versions of this lib exported as the root export. As to not break
- // them, or TypeScript, we export *both* as the root and as 'default'.
- // See https://github.com/mzabriskie/react-draggable/pull/254
- // and https://github.com/mzabriskie/react-draggable/issues/266
- Draggable.default = Draggable;
- Draggable.DraggableCore = DraggableCore;
-
- return Draggable;
-
- })));
- //# sourceMappingURL=react-draggable.js.map
-
-
- /***/ }),
- /* 180 */
+ /* 176 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -114836,7 +107868,7 @@
/***/ }),
- /* 181 */
+ /* 177 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -114942,107 +107974,127 @@
}
/***/ }),
- /* 182 */
+ /* 178 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 179 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
- // Mostly taken from ReactPropTypes.
+ var _Loading = __webpack_require__(1301);
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
+ var _Loading2 = _interopRequireDefault(_Loading);
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
+ exports["default"] = _Loading2["default"];
+ module.exports = exports['default'];
/***/ }),
- /* 183 */
+ /* 180 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
- /* 184 */
+ /* 181 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -115072,7 +108124,7 @@
var _warning2 = _interopRequireDefault(_warning);
- var _parseInt = __webpack_require__(1335);
+ var _parseInt = __webpack_require__(1324);
var _parseInt2 = _interopRequireDefault(_parseInt);
@@ -115367,7 +108419,7 @@
};
/***/ }),
- /* 185 */
+ /* 182 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -115438,7 +108490,7 @@
/***/ }),
- /* 186 */
+ /* 183 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -115456,19 +108508,19 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _mapSelf = __webpack_require__(486);
+ var _mapSelf = __webpack_require__(479);
var _mapSelf2 = _interopRequireDefault(_mapSelf);
- var _MonthPanel = __webpack_require__(1348);
+ var _MonthPanel = __webpack_require__(1337);
var _MonthPanel2 = _interopRequireDefault(_MonthPanel);
- var _YearPanel = __webpack_require__(488);
+ var _YearPanel = __webpack_require__(480);
var _YearPanel2 = _interopRequireDefault(_YearPanel);
- var _DecadePanel = __webpack_require__(489);
+ var _DecadePanel = __webpack_require__(481);
var _DecadePanel2 = _interopRequireDefault(_DecadePanel);
@@ -115662,7 +108714,7 @@
var prefixCls = props.prefixCls;
var locale = props.locale;
var value = props.value;
- var localeData = value.localeData && value.localeData();
+ var localeData = value.localeData();
var monthBeforeYear = locale.monthBeforeYear;
var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
@@ -115731,57 +108783,7 @@
module.exports = exports['default'];
/***/ }),
- /* 187 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 188 */
+ /* 184 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -115796,7 +108798,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _en_US = __webpack_require__(495);
+ var _en_US = __webpack_require__(487);
var _en_US2 = _interopRequireDefault(_en_US);
@@ -115890,85 +108892,255 @@
}(ComposeComponent), _class.displayName = 'CommonMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _class.getDerivedStateFromProps = ComposeComponent.getDerivedStateFromProps, _temp2;
};
+ /***/ }),
+ /* 185 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 186 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Icon = __webpack_require__(1374);
+
+ var _Icon2 = _interopRequireDefault(_Icon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Icon2["default"];
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 187 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1392);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1393);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1394);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1395);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1396);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1397);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1398);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1399);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1400);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(499);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1401);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1403);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1404);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
+ /***/ }),
+ /* 188 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 189 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1397);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1398);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1399);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1400);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1401);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1402);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1403);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1404);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1405);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(505);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1406);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1408);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1409);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
/***/ }),
/* 190 */
@@ -115977,106 +109149,6 @@
"use strict";
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 191 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 192 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -116087,7 +109159,7 @@
module.exports = exports["default"];
/***/ }),
- /* 193 */
+ /* 191 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -116098,25 +109170,25 @@
});
exports.default = style;
- var _camelizeStyle = __webpack_require__(510);
+ var _camelizeStyle = __webpack_require__(504);
var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);
- var _hyphenateStyle = __webpack_require__(1449);
+ var _hyphenateStyle = __webpack_require__(1444);
var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle);
- var _getComputedStyle2 = __webpack_require__(1451);
+ var _getComputedStyle2 = __webpack_require__(1446);
var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2);
- var _removeStyle = __webpack_require__(1452);
+ var _removeStyle = __webpack_require__(1447);
var _removeStyle2 = _interopRequireDefault(_removeStyle);
- var _properties = __webpack_require__(194);
+ var _properties = __webpack_require__(192);
- var _isTransform = __webpack_require__(1453);
+ var _isTransform = __webpack_require__(1448);
var _isTransform2 = _interopRequireDefault(_isTransform);
@@ -116155,7 +109227,7 @@
module.exports = exports['default'];
/***/ }),
- /* 194 */
+ /* 192 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -116166,7 +109238,7 @@
});
exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;
- var _inDOM = __webpack_require__(43);
+ var _inDOM = __webpack_require__(42);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -116237,7 +109309,7 @@
}
/***/ }),
- /* 195 */
+ /* 193 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -116247,7 +109319,7 @@
value: true
});
- var _inDOM = __webpack_require__(43);
+ var _inDOM = __webpack_require__(42);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -116268,7 +109340,7 @@
module.exports = exports['default'];
/***/ }),
- /* 196 */
+ /* 194 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -116289,11 +109361,11 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _properties = __webpack_require__(194);
+ var _properties = __webpack_require__(192);
var _properties2 = _interopRequireDefault(_properties);
- var _on = __webpack_require__(88);
+ var _on = __webpack_require__(87);
var _on2 = _interopRequireDefault(_on);
@@ -116613,6 +109685,106 @@
exports["default"] = Transition;
+ /***/ }),
+ /* 195 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 196 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 197 */
/***/ (function(module, exports, __webpack_require__) {
@@ -116620,106 +109792,6 @@
"use strict";
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 198 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 199 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -116811,7 +109883,7 @@
module.exports = exports['default'];
/***/ }),
- /* 200 */
+ /* 198 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -116835,15 +109907,15 @@
var _reactDom = __webpack_require__(3);
- var _keyCode = __webpack_require__(527);
+ var _keyCode = __webpack_require__(521);
var _keyCode2 = _interopRequireDefault(_keyCode);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- 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); } } /**
- * This source code is quoted from rc-slider.
- * homepage: https://github.com/react-component/slider
+ 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); } } /**
+ * This source code is quoted from rc-slider.
+ * homepage: https://github.com/react-component/slider
*/
@@ -116964,6 +110036,106 @@
}
}
+ /***/ }),
+ /* 199 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
+ /***/ }),
+ /* 200 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
+ }
+
/***/ }),
/* 201 */
/***/ (function(module, exports, __webpack_require__) {
@@ -116971,111 +110143,11 @@
"use strict";
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 202 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
- }
-
- /***/ }),
- /* 203 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
- var _inDOM = __webpack_require__(57);
+ var _inDOM = __webpack_require__(56);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -117097,57 +110169,57 @@
module.exports = exports['default'];
/***/ }),
- /* 204 */
+ /* 202 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
- /* 205 */
+ /* 203 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -117168,11 +110240,11 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _properties = __webpack_require__(541);
+ var _properties = __webpack_require__(537);
var _properties2 = _interopRequireDefault(_properties);
- var _on = __webpack_require__(203);
+ var _on = __webpack_require__(201);
var _on2 = _interopRequireDefault(_on);
@@ -117493,7 +110565,7 @@
exports["default"] = Transition;
/***/ }),
- /* 206 */
+ /* 204 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -117545,7 +110617,7 @@
module.exports = exports['default'];
/***/ }),
- /* 207 */
+ /* 205 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -117761,7 +110833,7 @@
}
/***/ }),
- /* 208 */
+ /* 206 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -117776,7 +110848,7 @@
/* harmony export (immutable) */ __webpack_exports__["b"] = cloneProps;
/* harmony export (immutable) */ __webpack_exports__["d"] = getTransitionName;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_util_es_Children_toArray__ = __webpack_require__(72);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_fbjs_lib_ExecutionEnvironment__ = __webpack_require__(1742);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_fbjs_lib_ExecutionEnvironment__ = __webpack_require__(1738);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_fbjs_lib_ExecutionEnvironment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_fbjs_lib_ExecutionEnvironment__);
@@ -117944,7 +111016,7 @@
}
/***/ }),
- /* 209 */
+ /* 207 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -117972,9 +111044,9 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_util_es_Children_toArray__ = __webpack_require__(72);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning__ = __webpack_require__(556);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning__ = __webpack_require__(554);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_warning__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__TreeNode__ = __webpack_require__(557);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__TreeNode__ = __webpack_require__(555);
@@ -118445,7 +111517,7 @@
}
/***/ }),
- /* 210 */
+ /* 208 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -118457,7 +111529,7 @@
var SHOW_CHILD = 'SHOW_CHILD';
/***/ }),
- /* 211 */
+ /* 209 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -118469,8 +111541,8 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(12);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(31);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(13);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(32);
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -118687,7 +111759,7 @@
});
/***/ }),
- /* 212 */
+ /* 210 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -118696,9 +111768,9 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(12);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_tree__ = __webpack_require__(561);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(31);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(13);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_tree__ = __webpack_require__(559);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__(32);
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _extends() { _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; }; return _extends.apply(this, arguments); }
@@ -119012,14 +112084,14 @@
/* harmony default export */ __webpack_exports__["a"] = (BasePopup);
/***/ }),
- /* 213 */
+ /* 211 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createForm__ = __webpack_require__(600);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createFormField__ = __webpack_require__(235);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(713);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createForm__ = __webpack_require__(598);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createFormField__ = __webpack_require__(233);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(711);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFormField", function() { return __WEBPACK_IMPORTED_MODULE_1__createFormField__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formShape", function() { return __WEBPACK_IMPORTED_MODULE_2__propTypes__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createForm", function() { return __WEBPACK_IMPORTED_MODULE_0__createForm__["a"]; });
@@ -119031,26 +112103,26 @@
/***/ }),
- /* 214 */
+ /* 212 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(602), __esModule: true };
+ module.exports = { "default": __webpack_require__(600), __esModule: true };
/***/ }),
- /* 215 */
+ /* 213 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__(46) && !__webpack_require__(61)(function () {
- return Object.defineProperty(__webpack_require__(216)('div'), 'a', { get: function () { return 7; } }).a != 7;
+ module.exports = !__webpack_require__(44) && !__webpack_require__(61)(function () {
+ return Object.defineProperty(__webpack_require__(214)('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
- /* 216 */
+ /* 214 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(60);
- var document = __webpack_require__(34).document;
+ var document = __webpack_require__(35).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
@@ -119059,21 +112131,21 @@
/***/ }),
- /* 217 */
+ /* 215 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(606);
+ __webpack_require__(604);
module.exports = __webpack_require__(24).Object.assign;
/***/ }),
- /* 218 */
+ /* 216 */
/***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__(47);
+ var has = __webpack_require__(45);
var toIObject = __webpack_require__(62);
- var arrayIndexOf = __webpack_require__(608)(false);
- var IE_PROTO = __webpack_require__(127)('IE_PROTO');
+ var arrayIndexOf = __webpack_require__(606)(false);
+ var IE_PROTO = __webpack_require__(126)('IE_PROTO');
module.exports = function (object, names) {
var O = toIObject(object);
@@ -119090,11 +112162,11 @@
/***/ }),
- /* 219 */
+ /* 217 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__(124);
+ var cof = __webpack_require__(123);
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
@@ -119102,11 +112174,11 @@
/***/ }),
- /* 220 */
+ /* 218 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
- var toInteger = __webpack_require__(126);
+ var toInteger = __webpack_require__(125);
var min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
@@ -119114,21 +112186,21 @@
/***/ }),
- /* 221 */
+ /* 219 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = { "default": __webpack_require__(611), __esModule: true };
+ module.exports = { "default": __webpack_require__(609), __esModule: true };
/***/ }),
- /* 222 */
+ /* 220 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- var $at = __webpack_require__(612)(true);
+ var $at = __webpack_require__(610)(true);
// 21.1.3.27 String.prototype[@@iterator]()
- __webpack_require__(223)(String, 'String', function (iterated) {
+ __webpack_require__(221)(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
@@ -119144,20 +112216,20 @@
/***/ }),
- /* 223 */
+ /* 221 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- var LIBRARY = __webpack_require__(89);
- var $export = __webpack_require__(33);
- var redefine = __webpack_require__(224);
+ var LIBRARY = __webpack_require__(88);
+ var $export = __webpack_require__(34);
+ var redefine = __webpack_require__(222);
var hide = __webpack_require__(58);
- var Iterators = __webpack_require__(76);
- var $iterCreate = __webpack_require__(613);
- var setToStringTag = __webpack_require__(132);
- var getPrototypeOf = __webpack_require__(616);
- var ITERATOR = __webpack_require__(27)('iterator');
+ var Iterators = __webpack_require__(75);
+ var $iterCreate = __webpack_require__(611);
+ var setToStringTag = __webpack_require__(131);
+ var getPrototypeOf = __webpack_require__(614);
+ var ITERATOR = __webpack_require__(28)('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
@@ -119220,14 +112292,14 @@
/***/ }),
- /* 224 */
+ /* 222 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(58);
/***/ }),
- /* 225 */
+ /* 223 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -119241,7 +112313,7 @@
- var emptyFunction = __webpack_require__(627);
+ var emptyFunction = __webpack_require__(625);
/**
* Similar to invariant but only logs a warning if the condition is not met.
@@ -119296,12 +112368,12 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 226 */
+ /* 224 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__(218);
- var hiddenKeys = __webpack_require__(129).concat('length', 'prototype');
+ var $keys = __webpack_require__(216);
+ var hiddenKeys = __webpack_require__(128).concat('length', 'prototype');
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return $keys(O, hiddenKeys);
@@ -119309,18 +112381,18 @@
/***/ }),
- /* 227 */
+ /* 225 */
/***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__(91);
- var createDesc = __webpack_require__(74);
+ var pIE = __webpack_require__(90);
+ var createDesc = __webpack_require__(73);
var toIObject = __webpack_require__(62);
- var toPrimitive = __webpack_require__(123);
- var has = __webpack_require__(47);
- var IE8_DOM_DEFINE = __webpack_require__(215);
+ var toPrimitive = __webpack_require__(122);
+ var has = __webpack_require__(45);
+ var IE8_DOM_DEFINE = __webpack_require__(213);
var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__(46) ? gOPD : function getOwnPropertyDescriptor(O, P) {
+ exports.f = __webpack_require__(44) ? gOPD : function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
@@ -119331,11 +112403,11 @@
/***/ }),
- /* 228 */
+ /* 226 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(17);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(16);
/**
@@ -119358,7 +112430,7 @@
/* harmony default export */ __webpack_exports__["a"] = (required);
/***/ }),
- /* 229 */
+ /* 227 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -119428,13 +112500,13 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 230 */
+ /* 228 */
/***/ (function(module, exports, __webpack_require__) {
- var isArray = __webpack_require__(135),
- isKey = __webpack_require__(668),
- stringToPath = __webpack_require__(673),
- toString = __webpack_require__(232);
+ var isArray = __webpack_require__(134),
+ isKey = __webpack_require__(666),
+ stringToPath = __webpack_require__(671),
+ toString = __webpack_require__(230);
/**
* Casts `value` to a path array if it's not one.
@@ -119455,12 +112527,12 @@
/***/ }),
- /* 231 */
+ /* 229 */
/***/ (function(module, exports, __webpack_require__) {
- var Symbol = __webpack_require__(137),
- getRawTag = __webpack_require__(670),
- objectToString = __webpack_require__(671);
+ var Symbol = __webpack_require__(136),
+ getRawTag = __webpack_require__(668),
+ objectToString = __webpack_require__(669);
/** `Object#toString` result references. */
var nullTag = '[object Null]',
@@ -119489,10 +112561,10 @@
/***/ }),
- /* 232 */
+ /* 230 */
/***/ (function(module, exports, __webpack_require__) {
- var baseToString = __webpack_require__(702);
+ var baseToString = __webpack_require__(700);
/**
* Converts `value` to a string. An empty string is returned for `null`
@@ -119523,10 +112595,10 @@
/***/ }),
- /* 233 */
+ /* 231 */
/***/ (function(module, exports, __webpack_require__) {
- var isSymbol = __webpack_require__(136);
+ var isSymbol = __webpack_require__(135);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
@@ -119550,10 +112622,10 @@
/***/ }),
- /* 234 */
+ /* 232 */
/***/ (function(module, exports, __webpack_require__) {
- var baseSet = __webpack_require__(704);
+ var baseSet = __webpack_require__(702);
/**
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
@@ -119591,7 +112663,7 @@
/***/ }),
- /* 235 */
+ /* 233 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -119622,7 +112694,7 @@
}
/***/ }),
- /* 236 */
+ /* 234 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -119641,9 +112713,9 @@
/* harmony export (immutable) */ __webpack_exports__["l"] = startsWith;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__ = __webpack_require__(710);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__ = __webpack_require__(708);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_hoist_non_react_statics__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(229);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(227);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__);
@@ -119802,7 +112874,7 @@
}
/***/ }),
- /* 237 */
+ /* 235 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -119897,36 +112969,16 @@
module.exports = exports['default'];
/***/ }),
- /* 238 */
+ /* 236 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- module.exports = __webpack_require__(722);
+ module.exports = __webpack_require__(720);
/***/ }),
- /* 239 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _InputNumber = __webpack_require__(728);
-
- var _InputNumber2 = _interopRequireDefault(_InputNumber);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _InputNumber2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 240 */
+ /* 237 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -120123,67 +113175,67 @@
module.exports = exports['default'];
/***/ }),
- /* 241 */
+ /* 238 */
/***/ (function(module, exports) {
- module.exports = function(module) {
- if(!module.webpackPolyfill) {
- module.deprecate = function() {};
- module.paths = [];
- // module.parent = undefined by default
- if(!module.children) module.children = [];
- Object.defineProperty(module, "loaded", {
- enumerable: true,
- get: function() {
- return module.l;
- }
- });
- Object.defineProperty(module, "id", {
- enumerable: true,
- get: function() {
- return module.i;
- }
- });
- module.webpackPolyfill = 1;
- }
- return module;
- };
+ module.exports = function(module) {
+ if(!module.webpackPolyfill) {
+ module.deprecate = function() {};
+ module.paths = [];
+ // module.parent = undefined by default
+ if(!module.children) module.children = [];
+ Object.defineProperty(module, "loaded", {
+ enumerable: true,
+ get: function() {
+ return module.l;
+ }
+ });
+ Object.defineProperty(module, "id", {
+ enumerable: true,
+ get: function() {
+ return module.i;
+ }
+ });
+ module.webpackPolyfill = 1;
+ }
+ return module;
+ };
/***/ }),
- /* 242 */
+ /* 239 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 243 */
+ /* 240 */
/***/ (function(module, exports) {
module.exports = function(arr, obj){
@@ -120195,216 +113247,216 @@
};
/***/ }),
- /* 244 */
+ /* 241 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
-
- var _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _domAlign = __webpack_require__(14);
-
- var _domAlign2 = _interopRequireDefault(_domAlign);
-
- var _addEventListener = __webpack_require__(242);
-
- var _addEventListener2 = _interopRequireDefault(_addEventListener);
-
- 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; } /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
-
- //import isWindow from './isWindow';
-
- function isWindow(obj) {
- /* eslint no-eq-null: 0 */
- /* eslint eqeqeq: 0 */
- return obj != null && obj == obj.window;
- }
-
- function buffer(fn, ms) {
- var timer = void 0;
-
- function clear() {
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- }
-
- function bufferFn() {
- clear();
- timer = setTimeout(fn, ms);
- }
-
- bufferFn.clear = clear;
-
- return bufferFn;
- }
-
- var propTypes = {
- childrenProps: _propTypes2.default.object,
- align: _propTypes2.default.object.isRequired,
- target: _propTypes2.default.func,
- onAlign: _propTypes2.default.func,
- monitorBufferTime: _propTypes2.default.number,
- monitorWindowResize: _propTypes2.default.bool,
- disabled: _propTypes2.default.bool,
- children: _propTypes2.default.any
- };
-
- var defaultProps = {
- target: function target() {
- return window;
- },
- onAlign: function onAlign() {},
-
- monitorBufferTime: 50,
- monitorWindowResize: false,
- disabled: false
- };
-
- var Align = function (_React$Component) {
- _inherits(Align, _React$Component);
-
- function Align(props) {
- _classCallCheck(this, Align);
-
- var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
-
- _initialiseProps.call(_this);
-
- return _this;
- }
-
- Align.prototype.componentDidMount = function componentDidMount() {
- var props = this.props;
- // if parent ref not attached .... use document.getElementById
- this.forceAlign();
- if (!props.disabled && props.monitorWindowResize) {
- this.startMonitorWindowResize();
- }
- };
-
- Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
- var reAlign = false;
- var props = this.props;
-
- if (!props.disabled) {
- if (prevProps.disabled || prevProps.align !== props.align) {
- reAlign = true;
- } else {
- var lastTarget = prevProps.target();
- var currentTarget = props.target();
- if (isWindow(lastTarget) && isWindow(currentTarget)) {
- reAlign = false;
- } else if (lastTarget !== currentTarget) {
- reAlign = true;
- }
- }
- }
-
- if (reAlign) {
- this.forceAlign();
- }
-
- if (props.monitorWindowResize && !props.disabled) {
- this.startMonitorWindowResize();
- } else {
- this.stopMonitorWindowResize();
- }
- };
-
- Align.prototype.componentWillUnmount = function componentWillUnmount() {
- this.stopMonitorWindowResize();
- };
-
- Align.prototype.render = function render() {
- var _props = this.props,
- childrenProps = _props.childrenProps,
- children = _props.children;
-
- var child = _react2.default.Children.only(children);
- if (childrenProps) {
- var newProps = {};
- for (var prop in childrenProps) {
- if (childrenProps.hasOwnProperty(prop)) {
- newProps[prop] = this.props[childrenProps[prop]];
- }
- }
- return _react2.default.cloneElement(child, newProps);
- }
- return child;
- };
-
- return Align;
- }(_react2.default.Component);
-
- var _initialiseProps = function _initialiseProps() {
- var _this2 = this;
-
- this.startMonitorWindowResize = function () {
- if (!_this2.resizeHandler) {
- _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);
- _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);
- }
- };
-
- this.stopMonitorWindowResize = function () {
- if (_this2.resizeHandler) {
- _this2.bufferMonitor.clear();
- _this2.resizeHandler.remove();
- _this2.resizeHandler = null;
- }
- };
-
- this.forceAlign = function () {
- var props = _this2.props;
- if (!props.disabled) {
- var source = _reactDom2.default.findDOMNode(_this2);
- props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));
- }
- };
- };
-
- ;
-
- Align.defaultProps = defaultProps;
- Align.propTypes = propTypes;
-
+
+
+ exports.__esModule = true;
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _domAlign = __webpack_require__(14);
+
+ var _domAlign2 = _interopRequireDefault(_domAlign);
+
+ var _addEventListener = __webpack_require__(239);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ 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; } /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+
+ //import isWindow from './isWindow';
+
+ function isWindow(obj) {
+ /* eslint no-eq-null: 0 */
+ /* eslint eqeqeq: 0 */
+ return obj != null && obj == obj.window;
+ }
+
+ function buffer(fn, ms) {
+ var timer = void 0;
+
+ function clear() {
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ }
+
+ function bufferFn() {
+ clear();
+ timer = setTimeout(fn, ms);
+ }
+
+ bufferFn.clear = clear;
+
+ return bufferFn;
+ }
+
+ var propTypes = {
+ childrenProps: _propTypes2.default.object,
+ align: _propTypes2.default.object.isRequired,
+ target: _propTypes2.default.func,
+ onAlign: _propTypes2.default.func,
+ monitorBufferTime: _propTypes2.default.number,
+ monitorWindowResize: _propTypes2.default.bool,
+ disabled: _propTypes2.default.bool,
+ children: _propTypes2.default.any
+ };
+
+ var defaultProps = {
+ target: function target() {
+ return window;
+ },
+ onAlign: function onAlign() {},
+
+ monitorBufferTime: 50,
+ monitorWindowResize: false,
+ disabled: false
+ };
+
+ var Align = function (_React$Component) {
+ _inherits(Align, _React$Component);
+
+ function Align(props) {
+ _classCallCheck(this, Align);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _initialiseProps.call(_this);
+
+ return _this;
+ }
+
+ Align.prototype.componentDidMount = function componentDidMount() {
+ var props = this.props;
+ // if parent ref not attached .... use document.getElementById
+ this.forceAlign();
+ if (!props.disabled && props.monitorWindowResize) {
+ this.startMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var reAlign = false;
+ var props = this.props;
+
+ if (!props.disabled) {
+ if (prevProps.disabled || prevProps.align !== props.align) {
+ reAlign = true;
+ } else {
+ var lastTarget = prevProps.target();
+ var currentTarget = props.target();
+ if (isWindow(lastTarget) && isWindow(currentTarget)) {
+ reAlign = false;
+ } else if (lastTarget !== currentTarget) {
+ reAlign = true;
+ }
+ }
+ }
+
+ if (reAlign) {
+ this.forceAlign();
+ }
+
+ if (props.monitorWindowResize && !props.disabled) {
+ this.startMonitorWindowResize();
+ } else {
+ this.stopMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.stopMonitorWindowResize();
+ };
+
+ Align.prototype.render = function render() {
+ var _props = this.props,
+ childrenProps = _props.childrenProps,
+ children = _props.children;
+
+ var child = _react2.default.Children.only(children);
+ if (childrenProps) {
+ var newProps = {};
+ for (var prop in childrenProps) {
+ if (childrenProps.hasOwnProperty(prop)) {
+ newProps[prop] = this.props[childrenProps[prop]];
+ }
+ }
+ return _react2.default.cloneElement(child, newProps);
+ }
+ return child;
+ };
+
+ return Align;
+ }(_react2.default.Component);
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.startMonitorWindowResize = function () {
+ if (!_this2.resizeHandler) {
+ _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);
+ _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);
+ }
+ };
+
+ this.stopMonitorWindowResize = function () {
+ if (_this2.resizeHandler) {
+ _this2.bufferMonitor.clear();
+ _this2.resizeHandler.remove();
+ _this2.resizeHandler = null;
+ }
+ };
+
+ this.forceAlign = function () {
+ var props = _this2.props;
+ if (!props.disabled) {
+ var source = _reactDom2.default.findDOMNode(_this2);
+ props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));
+ }
+ };
+ };
+
+ ;
+
+ Align.defaultProps = defaultProps;
+ Align.propTypes = propTypes;
+
exports.default = Align;
/***/ }),
- /* 245 */
+ /* 242 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(49);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getVisibleRectForElement__ = __webpack_require__(246);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adjustForViewport__ = __webpack_require__(767);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getRegion__ = __webpack_require__(248);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getElFuturePos__ = __webpack_require__(768);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(47);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getVisibleRectForElement__ = __webpack_require__(243);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adjustForViewport__ = __webpack_require__(766);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getRegion__ = __webpack_require__(245);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getElFuturePos__ = __webpack_require__(767);
/**
* align dom node flexibly
* @author yiminghe@gmail.com
@@ -120603,13 +113655,13 @@
**/
/***/ }),
- /* 246 */
+ /* 243 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(49);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getOffsetParent__ = __webpack_require__(247);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isAncestorFixed__ = __webpack_require__(766);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(47);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getOffsetParent__ = __webpack_require__(244);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isAncestorFixed__ = __webpack_require__(765);
@@ -120710,11 +113762,11 @@
/* harmony default export */ __webpack_exports__["a"] = (getVisibleRectForElement);
/***/ }),
- /* 247 */
+ /* 244 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(49);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(47);
/**
@@ -120762,11 +113814,11 @@
/* harmony default export */ __webpack_exports__["a"] = (getOffsetParent);
/***/ }),
- /* 248 */
+ /* 245 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(49);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(47);
function getRegion(node) {
@@ -120794,39 +113846,39 @@
/* harmony default export */ __webpack_exports__["a"] = (getRegion);
/***/ }),
- /* 249 */
+ /* 246 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 250 */
+ /* 247 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -120859,16 +113911,16 @@
module.exports = exports["default"];
/***/ }),
- /* 251 */
+ /* 248 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(788);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(255);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(811);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(814);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(815);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(787);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(252);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(810);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(813);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(814);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; });
@@ -120886,10 +113938,10 @@
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__["a" /* default */]);
/***/ }),
- /* 252 */
+ /* 249 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(794);
+ __webpack_require__(793);
var $Object = __webpack_require__(24).Object;
module.exports = function create(P, D) {
return $Object.create(P, D);
@@ -120897,7 +113949,7 @@
/***/ }),
- /* 253 */
+ /* 250 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -120921,7 +113973,7 @@
});
/***/ }),
- /* 254 */
+ /* 251 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -120945,11 +113997,11 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(26);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(144);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(143);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(65);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(800);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(799);
@@ -121350,7 +114402,7 @@
/* harmony default export */ __webpack_exports__["a"] = (connected);
/***/ }),
- /* 255 */
+ /* 252 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -121369,15 +114421,15 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(801);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(800);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(254);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(810);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(28);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(251);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(809);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(29);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(65);
@@ -121977,7 +115029,7 @@
/* harmony default export */ __webpack_exports__["a"] = (connected);
/***/ }),
- /* 256 */
+ /* 253 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -122016,7 +115068,7 @@
}
/***/ }),
- /* 257 */
+ /* 254 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -122043,7 +115095,7 @@
/* harmony default export */ __webpack_exports__["a"] = (util);
/***/ }),
- /* 258 */
+ /* 255 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -122109,7 +115161,7 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 259 */
+ /* 256 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -122142,7 +115194,7 @@
module.exports = exports["default"];
/***/ }),
- /* 260 */
+ /* 257 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -122222,7 +115274,7 @@
module.exports = exports['default'];
/***/ }),
- /* 261 */
+ /* 258 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -122310,7 +115362,7 @@
};
/***/ }),
- /* 262 */
+ /* 259 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -122351,7 +115403,7 @@
module.exports = exports['default'];
/***/ }),
- /* 263 */
+ /* 260 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
@@ -122837,7 +115889,7 @@
/***/ }),
- /* 264 */
+ /* 261 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123008,7 +116060,7 @@
module.exports = exports['default'];
/***/ }),
- /* 265 */
+ /* 262 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123018,7 +116070,7 @@
value: true
});
- var _Tooltip = __webpack_require__(847);
+ var _Tooltip = __webpack_require__(846);
var _Tooltip2 = _interopRequireDefault(_Tooltip);
@@ -123028,7 +116080,7 @@
module.exports = exports['default'];
/***/ }),
- /* 266 */
+ /* 263 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123050,15 +116102,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _ownerDocument = __webpack_require__(100);
+ var _ownerDocument = __webpack_require__(99);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _getContainer = __webpack_require__(267);
+ var _getContainer = __webpack_require__(264);
var _getContainer2 = _interopRequireDefault(_getContainer);
- var _tinperBeeCore = __webpack_require__(101);
+ var _tinperBeeCore = __webpack_require__(100);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -123074,16 +116126,16 @@
var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
var propTypes = {
- /**
- * 存放子组件的容器
+ /**
+ * 存放子组件的容器
*/
container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func])
};
var defaultProps = {};
- /**
- * Portal组件是将子组件渲染
+ /**
+ * Portal组件是将子组件渲染
*/
var Portal = function (_Component) {
@@ -123161,8 +116213,8 @@
return null;
};
- /**
- * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
+ /**
+ * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
*/
Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {
@@ -123172,8 +116224,8 @@
this.portalContainerNode.appendChild(this.overlayTarget);
}
};
- /**
- * 将要添加的子元素从容器中移除,并把变量置为null
+ /**
+ * 将要添加的子元素从容器中移除,并把变量置为null
*/
@@ -123184,8 +116236,8 @@
}
this.portalContainerNode = null;
};
- /**
- * 手动渲染_overlayTarget
+ /**
+ * 手动渲染_overlayTarget
*/
@@ -123203,8 +116255,8 @@
this.unmountOverlayTarget();
}
};
- /**
- * 销毁_overlayTarget组件。并把_overlayInstance置为null
+ /**
+ * 销毁_overlayTarget组件。并把_overlayInstance置为null
*/
@@ -123237,7 +116289,7 @@
module.exports = exports['default'];
/***/ }),
- /* 267 */
+ /* 264 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123254,11 +116306,11 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
+ /**
+ * 获取容器组件
+ * @param {[type]} container [description]
+ * @param {[type]} defaultContainer [description]
+ * @return {[type]} [description]
*/
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : container;
@@ -123267,39 +116319,39 @@
module.exports = exports['default'];
/***/ }),
- /* 268 */
+ /* 265 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 269 */
+ /* 266 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123310,7 +116362,7 @@
exports.__esModule = true;
exports.default = camelizeStyleName;
- var _camelize = _interopRequireDefault(__webpack_require__(868));
+ var _camelize = _interopRequireDefault(__webpack_require__(867));
/**
* Copyright 2014-2015, Facebook, Inc.
@@ -123326,7 +116378,7 @@
module.exports = exports["default"];
/***/ }),
- /* 270 */
+ /* 267 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123346,11 +116398,11 @@
};
};
- var _on = __webpack_require__(20);
+ var _on = __webpack_require__(21);
var _on2 = _interopRequireDefault(_on);
- var _off = __webpack_require__(42);
+ var _off = __webpack_require__(54);
var _off2 = _interopRequireDefault(_off);
@@ -123359,7 +116411,7 @@
module.exports = exports['default'];
/***/ }),
- /* 271 */
+ /* 268 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123369,7 +116421,7 @@
value: true
});
- var _Dropdown = __webpack_require__(882);
+ var _Dropdown = __webpack_require__(881);
var _Dropdown2 = _interopRequireDefault(_Dropdown);
@@ -123379,240 +116431,320 @@
module.exports = exports['default'];
/***/ }),
- /* 272 */
+ /* 269 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(884);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(885);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(886);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(887);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(888);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(889);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(890);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(891);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(892);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(270);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(893);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(895);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(271);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+ /***/ }),
+ /* 270 */
+ /***/ (function(module, exports, __webpack_require__) {
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 273 */
+ /* 271 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
-
- var _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _domAlign = __webpack_require__(14);
-
- var _domAlign2 = _interopRequireDefault(_domAlign);
-
- var _addEventListener = __webpack_require__(272);
-
- var _addEventListener2 = _interopRequireDefault(_addEventListener);
-
- 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; } /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
-
- //import isWindow from './isWindow';
-
- function isWindow(obj) {
- /* eslint no-eq-null: 0 */
- /* eslint eqeqeq: 0 */
- return obj != null && obj == obj.window;
- }
-
- function buffer(fn, ms) {
- var timer = void 0;
-
- function clear() {
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- }
-
- function bufferFn() {
- clear();
- timer = setTimeout(fn, ms);
- }
-
- bufferFn.clear = clear;
-
- return bufferFn;
- }
-
- var propTypes = {
- childrenProps: _propTypes2.default.object,
- align: _propTypes2.default.object.isRequired,
- target: _propTypes2.default.func,
- onAlign: _propTypes2.default.func,
- monitorBufferTime: _propTypes2.default.number,
- monitorWindowResize: _propTypes2.default.bool,
- disabled: _propTypes2.default.bool,
- children: _propTypes2.default.any
- };
-
- var defaultProps = {
- target: function target() {
- return window;
- },
- onAlign: function onAlign() {},
-
- monitorBufferTime: 50,
- monitorWindowResize: false,
- disabled: false
- };
-
- var Align = function (_React$Component) {
- _inherits(Align, _React$Component);
-
- function Align(props) {
- _classCallCheck(this, Align);
-
- var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
-
- _initialiseProps.call(_this);
-
- return _this;
- }
-
- Align.prototype.componentDidMount = function componentDidMount() {
- var props = this.props;
- // if parent ref not attached .... use document.getElementById
- this.forceAlign();
- if (!props.disabled && props.monitorWindowResize) {
- this.startMonitorWindowResize();
- }
- };
-
- Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
- var reAlign = false;
- var props = this.props;
-
- if (!props.disabled) {
- if (prevProps.disabled || prevProps.align !== props.align) {
- reAlign = true;
- } else {
- var lastTarget = prevProps.target();
- var currentTarget = props.target();
- if (isWindow(lastTarget) && isWindow(currentTarget)) {
- reAlign = false;
- } else if (lastTarget !== currentTarget) {
- reAlign = true;
- }
- }
- }
-
- if (reAlign) {
- this.forceAlign();
- }
-
- if (props.monitorWindowResize && !props.disabled) {
- this.startMonitorWindowResize();
- } else {
- this.stopMonitorWindowResize();
- }
- };
-
- Align.prototype.componentWillUnmount = function componentWillUnmount() {
- this.stopMonitorWindowResize();
- };
-
- Align.prototype.render = function render() {
- var _props = this.props,
- childrenProps = _props.childrenProps,
- children = _props.children;
-
- var child = _react2.default.Children.only(children);
- if (childrenProps) {
- var newProps = {};
- for (var prop in childrenProps) {
- if (childrenProps.hasOwnProperty(prop)) {
- newProps[prop] = this.props[childrenProps[prop]];
- }
- }
- return _react2.default.cloneElement(child, newProps);
- }
- return child;
- };
-
- return Align;
- }(_react2.default.Component);
-
- var _initialiseProps = function _initialiseProps() {
- var _this2 = this;
-
- this.startMonitorWindowResize = function () {
- if (!_this2.resizeHandler) {
- _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);
- _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);
- }
- };
-
- this.stopMonitorWindowResize = function () {
- if (_this2.resizeHandler) {
- _this2.bufferMonitor.clear();
- _this2.resizeHandler.remove();
- _this2.resizeHandler = null;
- }
- };
-
- this.forceAlign = function () {
- var props = _this2.props;
- if (!props.disabled) {
- var source = _reactDom2.default.findDOMNode(_this2);
- props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));
- }
- };
- };
-
- ;
-
- Align.defaultProps = defaultProps;
- Align.propTypes = propTypes;
-
+
+
+ exports.__esModule = true;
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _domAlign = __webpack_require__(14);
+
+ var _domAlign2 = _interopRequireDefault(_domAlign);
+
+ var _addEventListener = __webpack_require__(270);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ 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; } /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+
+ //import isWindow from './isWindow';
+
+ function isWindow(obj) {
+ /* eslint no-eq-null: 0 */
+ /* eslint eqeqeq: 0 */
+ return obj != null && obj == obj.window;
+ }
+
+ function buffer(fn, ms) {
+ var timer = void 0;
+
+ function clear() {
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ }
+
+ function bufferFn() {
+ clear();
+ timer = setTimeout(fn, ms);
+ }
+
+ bufferFn.clear = clear;
+
+ return bufferFn;
+ }
+
+ var propTypes = {
+ childrenProps: _propTypes2.default.object,
+ align: _propTypes2.default.object.isRequired,
+ target: _propTypes2.default.func,
+ onAlign: _propTypes2.default.func,
+ monitorBufferTime: _propTypes2.default.number,
+ monitorWindowResize: _propTypes2.default.bool,
+ disabled: _propTypes2.default.bool,
+ children: _propTypes2.default.any
+ };
+
+ var defaultProps = {
+ target: function target() {
+ return window;
+ },
+ onAlign: function onAlign() {},
+
+ monitorBufferTime: 50,
+ monitorWindowResize: false,
+ disabled: false
+ };
+
+ var Align = function (_React$Component) {
+ _inherits(Align, _React$Component);
+
+ function Align(props) {
+ _classCallCheck(this, Align);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _initialiseProps.call(_this);
+
+ return _this;
+ }
+
+ Align.prototype.componentDidMount = function componentDidMount() {
+ var props = this.props;
+ // if parent ref not attached .... use document.getElementById
+ this.forceAlign();
+ if (!props.disabled && props.monitorWindowResize) {
+ this.startMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var reAlign = false;
+ var props = this.props;
+
+ if (!props.disabled) {
+ if (prevProps.disabled || prevProps.align !== props.align) {
+ reAlign = true;
+ } else {
+ var lastTarget = prevProps.target();
+ var currentTarget = props.target();
+ if (isWindow(lastTarget) && isWindow(currentTarget)) {
+ reAlign = false;
+ } else if (lastTarget !== currentTarget) {
+ reAlign = true;
+ }
+ }
+ }
+
+ if (reAlign) {
+ this.forceAlign();
+ }
+
+ if (props.monitorWindowResize && !props.disabled) {
+ this.startMonitorWindowResize();
+ } else {
+ this.stopMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.stopMonitorWindowResize();
+ };
+
+ Align.prototype.render = function render() {
+ var _props = this.props,
+ childrenProps = _props.childrenProps,
+ children = _props.children;
+
+ var child = _react2.default.Children.only(children);
+ if (childrenProps) {
+ var newProps = {};
+ for (var prop in childrenProps) {
+ if (childrenProps.hasOwnProperty(prop)) {
+ newProps[prop] = this.props[childrenProps[prop]];
+ }
+ }
+ return _react2.default.cloneElement(child, newProps);
+ }
+ return child;
+ };
+
+ return Align;
+ }(_react2.default.Component);
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.startMonitorWindowResize = function () {
+ if (!_this2.resizeHandler) {
+ _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);
+ _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);
+ }
+ };
+
+ this.stopMonitorWindowResize = function () {
+ if (_this2.resizeHandler) {
+ _this2.bufferMonitor.clear();
+ _this2.resizeHandler.remove();
+ _this2.resizeHandler = null;
+ }
+ };
+
+ this.forceAlign = function () {
+ var props = _this2.props;
+ if (!props.disabled) {
+ var source = _reactDom2.default.findDOMNode(_this2);
+ props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));
+ }
+ };
+ };
+
+ ;
+
+ Align.defaultProps = defaultProps;
+ Align.propTypes = propTypes;
+
exports.default = Align;
/***/ }),
- /* 274 */
+ /* 272 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123645,7 +116777,7 @@
module.exports = exports["default"];
/***/ }),
- /* 275 */
+ /* 273 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123725,13 +116857,13 @@
module.exports = exports['default'];
/***/ }),
- /* 276 */
+ /* 274 */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
- /* 277 */
+ /* 275 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -123755,116 +116887,188 @@
exports.Panel = _Panel3["default"];
exports.PanelGroup = _PanelGroup3["default"];
+ /***/ }),
+ /* 276 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(909);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(910);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(911);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(912);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(913);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(914);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(915);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(916);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(917);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(277);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(918);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(920);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(921);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
+
+ /***/ }),
+ /* 277 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
+ }
+
/***/ }),
/* 278 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(909);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(910);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(911);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(912);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(913);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(914);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(915);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(916);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(917);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(279);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(918);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(920);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(921);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
+
+
+ exports.__esModule = true;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function createChainedFunction() {
+ for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
+ funcs[_key] = arguments[_key];
+ }
+
+ return funcs.filter(function (f) {
+ return f != null;
+ }).reduce(function (acc, f) {
+ if (typeof f !== 'function') {
+ throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
+ }
+
+ if (acc === null) {
+ return f;
+ }
+
+ return function chainedFunction() {
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ acc.apply(this, args);
+ f.apply(this, args);
+ };
+ }, null);
+ }
+ exports.default = createChainedFunction;
/***/ }),
/* 279 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
@@ -123874,98 +117078,6 @@
"use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Notification = __webpack_require__(925);
-
- var _Notification2 = _interopRequireDefault(_Notification);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Notification2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 281 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function createChainedFunction() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
-
- return funcs.filter(function (f) {
- return f != null;
- }).reduce(function (acc, f) {
- if (typeof f !== 'function') {
- throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
- }
-
- if (acc === null) {
- return f;
- }
-
- return function chainedFunction() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- acc.apply(this, args);
- f.apply(this, args);
- };
- }, null);
- }
- exports.default = createChainedFunction;
-
- /***/ }),
- /* 282 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
- }
-
- /***/ }),
- /* 283 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -123993,7 +117105,7 @@
module.exports = exports["default"];
/***/ }),
- /* 284 */
+ /* 281 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -124089,14 +117201,14 @@
/***/ }),
- /* 285 */
+ /* 282 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(949);
module.exports = __webpack_require__(950);
/***/ }),
- /* 286 */
+ /* 283 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -124155,139 +117267,119 @@
/***/ }),
- /* 287 */
+ /* 284 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function createChainedFunction() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
-
- return funcs.filter(function (f) {
- return f != null;
- }).reduce(function (acc, f) {
- if (typeof f !== 'function') {
- throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
- }
-
- if (acc === null) {
- return f;
- }
-
- return function chainedFunction() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- acc.apply(this, args);
- f.apply(this, args);
- };
- }, null);
- }
- exports.default = createChainedFunction;
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(957);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(958);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(959);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(960);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(961);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(962);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(963);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(964);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(965);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(285);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(966);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(968);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(969);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
+ exports.Align = _Align3.default;
/***/ }),
- /* 288 */
+ /* 285 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 289 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- var util = {
- isAppearSupported: function isAppearSupported(props) {
- return props.transitionName && props.transitionAppear || props.animation.appear;
- },
- isEnterSupported: function isEnterSupported(props) {
- return props.transitionName && props.transitionEnter || props.animation.enter;
- },
- isLeaveSupported: function isLeaveSupported(props) {
- return props.transitionName && props.transitionLeave || props.animation.leave;
- },
- allowAppearCallback: function allowAppearCallback(props) {
- return props.transitionAppear || props.animation.appear;
- },
- allowEnterCallback: function allowEnterCallback(props) {
- return props.transitionEnter || props.animation.enter;
- },
- allowLeaveCallback: function allowLeaveCallback(props) {
- return props.transitionLeave || props.animation.leave;
- }
- };
- exports["default"] = util;
- module.exports = exports["default"];
-
- /***/ }),
- /* 290 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- exports["default"] = function (componentOrElement) {
- return (0, _ownerDocument2["default"])(_reactDom2["default"].findDOMNode(componentOrElement));
- };
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- var _ownerDocument = __webpack_require__(22);
-
- var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- module.exports = exports['default'];
-
- /***/ }),
- /* 291 */
+ /* 286 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -124332,7 +117424,7 @@
module.exports = exports['default'];
/***/ }),
- /* 292 */
+ /* 287 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -124386,7 +117478,7 @@
module.exports = exports['default'];
/***/ }),
- /* 293 */
+ /* 288 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -124397,15 +117489,15 @@
});
exports.Fade = exports.Collapse = exports.Transition = undefined;
- var _Transition2 = __webpack_require__(158);
+ var _Transition2 = __webpack_require__(155);
var _Transition3 = _interopRequireDefault(_Transition2);
- var _Collapse2 = __webpack_require__(294);
+ var _Collapse2 = __webpack_require__(289);
var _Collapse3 = _interopRequireDefault(_Collapse2);
- var _Fade2 = __webpack_require__(1003);
+ var _Fade2 = __webpack_require__(993);
var _Fade3 = _interopRequireDefault(_Fade2);
@@ -124416,7 +117508,7 @@
exports.Fade = _Fade3["default"];
/***/ }),
- /* 294 */
+ /* 289 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -124432,7 +117524,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _style = __webpack_require__(55);
+ var _style = __webpack_require__(53);
var _style2 = _interopRequireDefault(_style);
@@ -124444,15 +117536,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _Transition = __webpack_require__(158);
+ var _Transition = __webpack_require__(155);
var _Transition2 = _interopRequireDefault(_Transition);
- var _capitalize = __webpack_require__(988);
+ var _capitalize = __webpack_require__(978);
var _capitalize2 = _interopRequireDefault(_capitalize);
- var _tinperBeeCore = __webpack_require__(989);
+ var _tinperBeeCore = __webpack_require__(979);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -124674,89 +117766,89 @@
module.exports = exports['default'];
/***/ }),
- /* 295 */
+ /* 290 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 296 */
+ /* 291 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = createChainableTypeChecker;
- /**
- * 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.
- */
-
- // Mostly taken from ReactPropTypes.
-
- /* This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
- function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- if (isRequired) {
- return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
- }
-
- return null;
- }
-
- for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
- args[_key - 6] = arguments[_key];
- }
-
- return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
+
+
+ exports.__esModule = true;
+ exports.default = createChainableTypeChecker;
+ /**
+ * 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.
+ */
+
+ // Mostly taken from ReactPropTypes.
+
+ /* This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+ function createChainableTypeChecker(validate) {
+ function checkType(isRequired, props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ if (isRequired) {
+ return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
+ }
+
+ return null;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
+ args[_key - 6] = arguments[_key];
+ }
+
+ return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
+ }
+
+ var chainedCheckType = checkType.bind(null, false);
+ chainedCheckType.isRequired = checkType.bind(null, true);
+
+ return chainedCheckType;
}
/***/ }),
- /* 297 */
+ /* 292 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -124766,17 +117858,17 @@
value: true
});
- var _Select = __webpack_require__(1021);
+ var _Select = __webpack_require__(1011);
var _Select2 = _interopRequireDefault(_Select);
- var _Option = __webpack_require__(161);
+ var _Option = __webpack_require__(158);
var _Option2 = _interopRequireDefault(_Option);
- var _PropTypes = __webpack_require__(305);
+ var _PropTypes = __webpack_require__(302);
- var _OptGroup = __webpack_require__(306);
+ var _OptGroup = __webpack_require__(303);
var _OptGroup2 = _interopRequireDefault(_OptGroup);
@@ -124788,128 +117880,249 @@
module.exports = exports['default'];
/***/ }),
- /* 298 */
+ /* 293 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1023);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1024);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1025);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1026);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1027);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1028);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1029);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1030);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1031);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(299);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1032);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1034);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1035);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
- exports.Align = _Align3.default;
-
- /***/ }),
- /* 299 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 300 */
+ /* 294 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _domAlign = __webpack_require__(14);
+
+ var _domAlign2 = _interopRequireDefault(_domAlign);
+
+ var _addEventListener = __webpack_require__(293);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ 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; } /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+
+ //import isWindow from './isWindow';
+
+ function isWindow(obj) {
+ /* eslint no-eq-null: 0 */
+ /* eslint eqeqeq: 0 */
+ return obj != null && obj == obj.window;
+ }
+
+ function buffer(fn, ms) {
+ var timer = void 0;
+
+ function clear() {
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ }
+
+ function bufferFn() {
+ clear();
+ timer = setTimeout(fn, ms);
+ }
+
+ bufferFn.clear = clear;
+
+ return bufferFn;
+ }
+
+ var propTypes = {
+ childrenProps: _propTypes2.default.object,
+ align: _propTypes2.default.object.isRequired,
+ target: _propTypes2.default.func,
+ onAlign: _propTypes2.default.func,
+ monitorBufferTime: _propTypes2.default.number,
+ monitorWindowResize: _propTypes2.default.bool,
+ disabled: _propTypes2.default.bool,
+ children: _propTypes2.default.any
+ };
+
+ var defaultProps = {
+ target: function target() {
+ return window;
+ },
+ onAlign: function onAlign() {},
+
+ monitorBufferTime: 50,
+ monitorWindowResize: false,
+ disabled: false
+ };
+
+ var Align = function (_React$Component) {
+ _inherits(Align, _React$Component);
+
+ function Align(props) {
+ _classCallCheck(this, Align);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _initialiseProps.call(_this);
+
+ return _this;
+ }
+
+ Align.prototype.componentDidMount = function componentDidMount() {
+ var props = this.props;
+ // if parent ref not attached .... use document.getElementById
+ this.forceAlign();
+ if (!props.disabled && props.monitorWindowResize) {
+ this.startMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var reAlign = false;
+ var props = this.props;
+
+ if (!props.disabled) {
+ if (prevProps.disabled || prevProps.align !== props.align) {
+ reAlign = true;
+ } else {
+ var lastTarget = prevProps.target();
+ var currentTarget = props.target();
+ if (isWindow(lastTarget) && isWindow(currentTarget)) {
+ reAlign = false;
+ } else if (lastTarget !== currentTarget) {
+ reAlign = true;
+ }
+ }
+ }
+
+ if (reAlign) {
+ this.forceAlign();
+ }
+
+ if (props.monitorWindowResize && !props.disabled) {
+ this.startMonitorWindowResize();
+ } else {
+ this.stopMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.stopMonitorWindowResize();
+ };
+
+ Align.prototype.render = function render() {
+ var _props = this.props,
+ childrenProps = _props.childrenProps,
+ children = _props.children;
+
+ var child = _react2.default.Children.only(children);
+ if (childrenProps) {
+ var newProps = {};
+ for (var prop in childrenProps) {
+ if (childrenProps.hasOwnProperty(prop)) {
+ newProps[prop] = this.props[childrenProps[prop]];
+ }
+ }
+ return _react2.default.cloneElement(child, newProps);
+ }
+ return child;
+ };
+
+ return Align;
+ }(_react2.default.Component);
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.startMonitorWindowResize = function () {
+ if (!_this2.resizeHandler) {
+ _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);
+ _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);
+ }
+ };
+
+ this.stopMonitorWindowResize = function () {
+ if (_this2.resizeHandler) {
+ _this2.bufferMonitor.clear();
+ _this2.resizeHandler.remove();
+ _this2.resizeHandler = null;
+ }
+ };
+
+ this.forceAlign = function () {
+ var props = _this2.props;
+ if (!props.disabled) {
+ var source = _reactDom2.default.findDOMNode(_this2);
+ props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));
+ }
+ };
+ };
+
+ ;
+
+ Align.defaultProps = defaultProps;
+ Align.propTypes = propTypes;
+
+ exports.default = Align;
+
+ /***/ }),
+ /* 295 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(1036);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(302);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(1042);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(1043);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(1044);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(1025);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(297);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(1031);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(1032);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(1033);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; });
@@ -124927,7 +118140,7 @@
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__["a" /* default */]);
/***/ }),
- /* 301 */
+ /* 296 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -124951,11 +118164,11 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(26);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(144);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(143);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(67);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(1037);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(1026);
@@ -125356,7 +118569,7 @@
/* harmony default export */ __webpack_exports__["a"] = (connected);
/***/ }),
- /* 302 */
+ /* 297 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -125375,15 +118588,15 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(1038);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(1027);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(301);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(1041);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(28);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(296);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(1030);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(29);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(67);
@@ -125983,7 +119196,7 @@
/* harmony default export */ __webpack_exports__["a"] = (connected);
/***/ }),
- /* 303 */
+ /* 298 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -126022,7 +119235,7 @@
}
/***/ }),
- /* 304 */
+ /* 299 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -126088,7 +119301,120 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 305 */
+ /* 300 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var util = {
+ isAppearSupported: function isAppearSupported(props) {
+ return props.transitionName && props.transitionAppear || props.animation.appear;
+ },
+ isEnterSupported: function isEnterSupported(props) {
+ return props.transitionName && props.transitionEnter || props.animation.enter;
+ },
+ isLeaveSupported: function isLeaveSupported(props) {
+ return props.transitionName && props.transitionLeave || props.animation.leave;
+ },
+ allowAppearCallback: function allowAppearCallback(props) {
+ return props.transitionAppear || props.animation.appear;
+ },
+ allowEnterCallback: function allowEnterCallback(props) {
+ return props.transitionEnter || props.animation.enter;
+ },
+ allowLeaveCallback: function allowLeaveCallback(props) {
+ return props.transitionLeave || props.animation.leave;
+ }
+ };
+ exports["default"] = util;
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 301 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); } /**
+ * This source code is quoted from rc-trigger.
+ * homepage: https://github.com/react-component/trigger
+ */
+
+
+ var propTypes = {
+ children: _propTypes2["default"].any,
+ className: _propTypes2["default"].string,
+ visible: _propTypes2["default"].bool,
+ hiddenClassName: _propTypes2["default"].string
+ };
+
+ var LazyRenderBox = function (_Component) {
+ _inherits(LazyRenderBox, _Component);
+
+ function LazyRenderBox() {
+ _classCallCheck(this, LazyRenderBox);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
+ return nextProps.hiddenClassName || nextProps.visible;
+ };
+
+ LazyRenderBox.prototype.render = function render() {
+ var _props = this.props,
+ hiddenClassName = _props.hiddenClassName,
+ visible = _props.visible,
+ props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']);
+
+ if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) {
+ if (!visible && hiddenClassName) {
+ props.className += ' ' + hiddenClassName;
+ }
+ return _react2["default"].createElement('div', props);
+ }
+
+ return _react2["default"].Children.only(props.children);
+ };
+
+ return LazyRenderBox;
+ }(_react.Component);
+
+ ;
+ LazyRenderBox.propTypes = propTypes;
+
+ exports["default"] = LazyRenderBox;
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 302 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -126124,9 +119450,9 @@
var _validate = _propTypes2["default"].oneOfType([_propTypes2["default"].arrayOf(basicType), basicType]);
return _validate.apply(undefined, arguments);
}
- } /**
- * This source code is quoted from rc-select.
- * homepage: https://github.com/react-component/select
+ } /**
+ * This source code is quoted from rc-select.
+ * homepage: https://github.com/react-component/select
*/
var SelectPropTypes = exports.SelectPropTypes = {
id: _propTypes2["default"].string,
@@ -126176,7 +119502,7 @@
};
/***/ }),
- /* 306 */
+ /* 303 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -126217,7 +119543,7 @@
module.exports = exports['default'];
/***/ }),
- /* 307 */
+ /* 304 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -126227,7 +119553,7 @@
value: true
});
- var _VerticalMenu = __webpack_require__(1055);
+ var _VerticalMenu = __webpack_require__(1053);
var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu);
@@ -126237,7 +119563,7 @@
module.exports = exports['default'];
/***/ }),
- /* 308 */
+ /* 305 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -126248,9 +119574,9 @@
});
exports.SubPopupMenu = 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; }; /**
- * This source code is quoted from rc-menu.
- * homepage: https://github.com/react-component/menu
+ 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; }; /**
+ * This source code is quoted from rc-menu.
+ * homepage: https://github.com/react-component/menu
*/
@@ -126269,7 +119595,7 @@
var _tinperBeeCore = __webpack_require__(106);
- var _createChainedFunction = __webpack_require__(311);
+ var _createChainedFunction = __webpack_require__(308);
var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
@@ -126279,7 +119605,7 @@
var _util = __webpack_require__(68);
- var _DOMWrap = __webpack_require__(1070);
+ var _DOMWrap = __webpack_require__(1068);
var _DOMWrap2 = _interopRequireDefault(_DOMWrap);
@@ -126424,7 +119750,7 @@
}
if (props.focusable) {
domProps.tabIndex = this.props.tabIndex;
- domProps.onKeyDown = props.keyboard && this.onKeyDown;
+ domProps.onKeyDown = this.onKeyDown;
}
var prefixCls = props.prefixCls,
eventKey = props.eventKey,
@@ -126687,79 +120013,79 @@
exports["default"] = connected;
/***/ }),
- /* 309 */
+ /* 306 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function createChainedFunction() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
-
- return funcs.filter(function (f) {
- return f != null;
- }).reduce(function (acc, f) {
- if (typeof f !== 'function') {
- throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
- }
-
- if (acc === null) {
- return f;
- }
-
- return function chainedFunction() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- acc.apply(this, args);
- f.apply(this, args);
- };
- }, null);
- }
+
+
+ exports.__esModule = true;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function createChainedFunction() {
+ for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
+ funcs[_key] = arguments[_key];
+ }
+
+ return funcs.filter(function (f) {
+ return f != null;
+ }).reduce(function (acc, f) {
+ if (typeof f !== 'function') {
+ throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
+ }
+
+ if (acc === null) {
+ return f;
+ }
+
+ return function chainedFunction() {
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ acc.apply(this, args);
+ f.apply(this, args);
+ };
+ }, null);
+ }
exports.default = createChainedFunction;
/***/ }),
- /* 310 */
+ /* 307 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 311 */
+ /* 308 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -126794,7 +120120,7 @@
module.exports = exports['default'];
/***/ }),
- /* 312 */
+ /* 309 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -126807,9 +120133,9 @@
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- 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; }; /**
- * This source code is quoted from rc-menu.
- * homepage: https://github.com/react-component/menu
+ 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; }; /**
+ * This source code is quoted from rc-menu.
+ * homepage: https://github.com/react-component/menu
*/
@@ -126825,7 +120151,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _rcTrigger = __webpack_require__(1071);
+ var _rcTrigger = __webpack_require__(1069);
var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
@@ -126837,15 +120163,15 @@
var _miniStore = __webpack_require__(19);
- var _SubPopupMenu = __webpack_require__(308);
+ var _SubPopupMenu = __webpack_require__(305);
var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);
- var _placements = __webpack_require__(1074);
+ var _placements = __webpack_require__(1072);
var _placements2 = _interopRequireDefault(_placements);
- var _rcAnimate = __webpack_require__(28);
+ var _rcAnimate = __webpack_require__(29);
var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
@@ -127444,7 +120770,7 @@
exports["default"] = connected;
/***/ }),
- /* 313 */
+ /* 310 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -127483,7 +120809,7 @@
}
/***/ }),
- /* 314 */
+ /* 311 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -127549,7 +120875,7 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 315 */
+ /* 312 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -127568,79 +120894,79 @@
module.exports = exports["default"];
/***/ }),
- /* 316 */
+ /* 313 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function createChainedFunction() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
-
- return funcs.filter(function (f) {
- return f != null;
- }).reduce(function (acc, f) {
- if (typeof f !== 'function') {
- throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
- }
-
- if (acc === null) {
- return f;
- }
-
- return function chainedFunction() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- acc.apply(this, args);
- f.apply(this, args);
- };
- }, null);
- }
+
+
+ exports.__esModule = true;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function createChainedFunction() {
+ for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
+ funcs[_key] = arguments[_key];
+ }
+
+ return funcs.filter(function (f) {
+ return f != null;
+ }).reduce(function (acc, f) {
+ if (typeof f !== 'function') {
+ throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
+ }
+
+ if (acc === null) {
+ return f;
+ }
+
+ return function chainedFunction() {
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ acc.apply(this, args);
+ f.apply(this, args);
+ };
+ }, null);
+ }
exports.default = createChainedFunction;
/***/ }),
- /* 317 */
+ /* 314 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 318 */
+ /* 315 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -127673,127 +120999,127 @@
module.exports = exports["default"];
/***/ }),
- /* 319 */
+ /* 316 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = splitComponentProps;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function _objectEntries(obj) {
- var entries = [];
- var keys = Object.keys(obj);
-
- for (var k = 0; k < keys.length; ++k) {
- entries.push([keys[k], obj[keys[k]]]);
- }return entries;
- }
-
- /**
- * 分割要传入父元素和子元素的props
- * @param {[object]} props 传入的属性
- * @param {[reactElement]} Component 组件
- * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象
- */
- function splitComponentProps(props, Component) {
- var componentPropTypes = Component.propTypes;
-
- var parentProps = {};
- var childProps = {};
-
- _objectEntries(props).forEach(function (_ref) {
- var propName = _ref[0],
- propValue = _ref[1];
-
- if (componentPropTypes[propName]) {
- parentProps[propName] = propValue;
- } else {
- childProps[propName] = propValue;
- }
- });
-
- return [parentProps, childProps];
+
+
+ exports.__esModule = true;
+ exports.default = splitComponentProps;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function _objectEntries(obj) {
+ var entries = [];
+ var keys = Object.keys(obj);
+
+ for (var k = 0; k < keys.length; ++k) {
+ entries.push([keys[k], obj[keys[k]]]);
+ }return entries;
+ }
+
+ /**
+ * 分割要传入父元素和子元素的props
+ * @param {[object]} props 传入的属性
+ * @param {[reactElement]} Component 组件
+ * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象
+ */
+ function splitComponentProps(props, Component) {
+ var componentPropTypes = Component.propTypes;
+
+ var parentProps = {};
+ var childProps = {};
+
+ _objectEntries(props).forEach(function (_ref) {
+ var propName = _ref[0],
+ propValue = _ref[1];
+
+ if (componentPropTypes[propName]) {
+ parentProps[propName] = propValue;
+ } else {
+ childProps[propName] = propValue;
+ }
+ });
+
+ return [parentProps, childProps];
}
/***/ }),
- /* 320 */
+ /* 317 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function createChainedFunction() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
-
- return funcs.filter(function (f) {
- return f != null;
- }).reduce(function (acc, f) {
- if (typeof f !== 'function') {
- throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
- }
-
- if (acc === null) {
- return f;
- }
-
- return function chainedFunction() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- acc.apply(this, args);
- f.apply(this, args);
- };
- }, null);
- }
+
+
+ exports.__esModule = true;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function createChainedFunction() {
+ for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
+ funcs[_key] = arguments[_key];
+ }
+
+ return funcs.filter(function (f) {
+ return f != null;
+ }).reduce(function (acc, f) {
+ if (typeof f !== 'function') {
+ throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
+ }
+
+ if (acc === null) {
+ return f;
+ }
+
+ return function chainedFunction() {
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ acc.apply(this, args);
+ f.apply(this, args);
+ };
+ }, null);
+ }
exports.default = createChainedFunction;
/***/ }),
- /* 321 */
+ /* 318 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 322 */
+ /* 319 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -127819,7 +121145,7 @@
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _getContainer = __webpack_require__(323);
+ var _getContainer = __webpack_require__(320);
var _getContainer2 = _interopRequireDefault(_getContainer);
@@ -127839,16 +121165,16 @@
var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
var propTypes = {
- /**
- * 存放子组件的容器
+ /**
+ * 存放子组件的容器
*/
container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func])
};
var defaultProps = {};
- /**
- * Portal组件是将子组件渲染
+ /**
+ * Portal组件是将子组件渲染
*/
var Portal = function (_Component) {
@@ -127926,8 +121252,8 @@
return null;
};
- /**
- * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
+ /**
+ * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
*/
Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {
@@ -127937,8 +121263,8 @@
this.portalContainerNode.appendChild(this.overlayTarget);
}
};
- /**
- * 将要添加的子元素从容器中移除,并把变量置为null
+ /**
+ * 将要添加的子元素从容器中移除,并把变量置为null
*/
@@ -127949,8 +121275,8 @@
}
this.portalContainerNode = null;
};
- /**
- * 手动渲染_overlayTarget
+ /**
+ * 手动渲染_overlayTarget
*/
@@ -127968,8 +121294,8 @@
this.unmountOverlayTarget();
}
};
- /**
- * 销毁_overlayTarget组件。并把_overlayInstance置为null
+ /**
+ * 销毁_overlayTarget组件。并把_overlayInstance置为null
*/
@@ -128002,7 +121328,7 @@
module.exports = exports['default'];
/***/ }),
- /* 323 */
+ /* 320 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128019,11 +121345,11 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
+ /**
+ * 获取容器组件
+ * @param {[type]} container [description]
+ * @param {[type]} defaultContainer [description]
+ * @return {[type]} [description]
*/
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : container;
@@ -128032,7 +121358,7 @@
module.exports = exports['default'];
/***/ }),
- /* 324 */
+ /* 321 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128052,11 +121378,11 @@
};
};
- var _on = __webpack_require__(20);
+ var _on = __webpack_require__(21);
var _on2 = _interopRequireDefault(_on);
- var _off = __webpack_require__(42);
+ var _off = __webpack_require__(54);
var _off2 = _interopRequireDefault(_off);
@@ -128065,7 +121391,7 @@
module.exports = exports['default'];
/***/ }),
- /* 325 */
+ /* 322 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128086,26 +121412,22 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _events = __webpack_require__(1160);
+ var _events = __webpack_require__(1158);
var _events2 = _interopRequireDefault(_events);
- var _ownerDocument = __webpack_require__(1165);
+ var _ownerDocument = __webpack_require__(1163);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _inDOM = __webpack_require__(56);
+ var _inDOM = __webpack_require__(55);
var _inDOM2 = _interopRequireDefault(_inDOM);
- var _scrollbarSize = __webpack_require__(1166);
+ var _scrollbarSize = __webpack_require__(1164);
var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
- var _scrollTop = __webpack_require__(1167);
-
- var _scrollTop2 = _interopRequireDefault(_scrollTop);
-
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
@@ -128114,7 +121436,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _Modal = __webpack_require__(167);
+ var _Modal = __webpack_require__(164);
var _Modal2 = _interopRequireDefault(_Modal);
@@ -128124,25 +121446,25 @@
var _tinperBeeCore = __webpack_require__(70);
- var _beeTransition = __webpack_require__(1203);
+ var _beeTransition = __webpack_require__(1199);
- var _ModalBody = __webpack_require__(1214);
+ var _ModalBody = __webpack_require__(1210);
var _ModalBody2 = _interopRequireDefault(_ModalBody);
- var _ModalDialog = __webpack_require__(1215);
+ var _ModalDialog = __webpack_require__(1211);
var _ModalDialog2 = _interopRequireDefault(_ModalDialog);
- var _ModalFooter = __webpack_require__(1261);
+ var _ModalFooter = __webpack_require__(1250);
var _ModalFooter2 = _interopRequireDefault(_ModalFooter);
- var _ModalHeader = __webpack_require__(1262);
+ var _ModalHeader = __webpack_require__(1251);
var _ModalHeader2 = _interopRequireDefault(_ModalHeader);
- var _ModalTitle = __webpack_require__(1263);
+ var _ModalTitle = __webpack_require__(1252);
var _ModalTitle2 = _interopRequireDefault(_ModalTitle);
@@ -128223,7 +121545,7 @@
onExited: _propTypes2["default"].func,
containerClassName: _propTypes2["default"].string
- }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].Object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2));
+ }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _extends2));
var defaultProps = _extends({}, _Modal2["default"].defaultProps, {
backdropClosable: true,
@@ -128231,8 +121553,7 @@
dialogComponentClass: _ModalDialog2["default"],
draggable: false,
resizable: false,
- clsPrefix: 'u-modal',
- className: ''
+ clsPrefix: 'u-modal'
});
var ModalFuncProps = {
@@ -128272,27 +121593,14 @@
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
- _this.clearCenteredCls = function () {
- var centered = _this.state.centered;
-
- if (!centered) {
- return;
- }
- _this.offsetTop = _this.getOffsetTop();
- _this.setState({
- centered: false
- });
- };
-
- _this.state = {
- style: {},
- centered: props.centered
- };
- _this.offsetTop = 0;
_this.handleEntering = _this.handleEntering.bind(_this);
_this.handleExited = _this.handleExited.bind(_this);
_this.handleWindowResize = _this.handleWindowResize.bind(_this);
_this.handleDialogClick = _this.handleDialogClick.bind(_this);
+
+ _this.state = {
+ style: {}
+ };
return _this;
}
@@ -128354,16 +121662,6 @@
}
});
};
- //ResizeStart 时,若模态框设置了 `centered` ,需要把居中属性移除,并通过 offsetTop 制造垂直居中的假象
- //fixbug: Resize 和 centered 一起使用时,拖拽交互不正确
-
-
- //计算 ModalDialog 的 offsetTop
- Modal.prototype.getOffsetTop = function getOffsetTop() {
- var modalDialog = document.getElementsByClassName("u-modal-dialog") && document.getElementsByClassName("u-modal-dialog")[0];
- var topPos = modalDialog && modalDialog.offsetTop;
- return topPos;
- };
Modal.prototype.render = function render() {
var _this2 = this;
@@ -128387,15 +121685,7 @@
containerClassName = _props.containerClassName,
draggable = _props.draggable,
resizeClassName = _props.resizeClassName,
- bounds = _props.bounds,
- container = _props.container,
- props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'container']);
-
- var centered = this.state.centered;
-
- var dialogMarginTop = 30;
- //ResizeStart 时,计算 ModalDialog 的 offsetTop
- var topPosStyle = this.offsetTop > 0 ? { top: this.offsetTop - dialogMarginTop } : null;
+ props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName']);
var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]),
_splitComponent2 = _slicedToArray(_splitComponent, 2),
@@ -128406,12 +121696,9 @@
var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true);
var containerClasses = _defineProperty({}, clsPrefix + '-open', true);
- if (!!centered) {
- className += ' ' + clsPrefix + '-centered';
- }
if (Number(width)) width += 'px';
- var styleRes = _extends({}, this.state.style, style, topPosStyle);
+ var styleRes = _extends({}, this.state.style, style);
if (width) {
_extends(styleRes, { width: width });
}
@@ -128439,9 +121726,7 @@
onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null,
size: size,
draggable: draggable,
- bounds: bounds,
- resizeClassName: resizeClassName,
- clearCenteredCls: this.clearCenteredCls
+ resizeClassName: resizeClassName
}),
children
)
@@ -128479,7 +121764,7 @@
exports["default"] = Modal;
/***/ }),
- /* 326 */
+ /* 323 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128489,7 +121774,7 @@
value: true
});
- var _inDOM = __webpack_require__(56);
+ var _inDOM = __webpack_require__(55);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -128510,119 +121795,119 @@
module.exports = exports['default'];
/***/ }),
- /* 327 */
+ /* 324 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
-
- var _all2 = __webpack_require__(1169);
-
- var _all3 = _interopRequireDefault(_all2);
-
- var _componentOrElement2 = __webpack_require__(1170);
-
- var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
-
- var _deprecated2 = __webpack_require__(1171);
-
- var _deprecated3 = _interopRequireDefault(_deprecated2);
-
- var _elementType2 = __webpack_require__(1172);
-
- var _elementType3 = _interopRequireDefault(_elementType2);
-
- var _isRequiredForA11y2 = __webpack_require__(1173);
-
- var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
-
- var _splitComponent2 = __webpack_require__(1174);
-
- var _splitComponent3 = _interopRequireDefault(_splitComponent2);
-
- var _createChainedFunction2 = __webpack_require__(1175);
-
- var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
-
- var _keyCode = __webpack_require__(1176);
-
- var _keyCode2 = _interopRequireDefault(_keyCode);
-
- var _contains2 = __webpack_require__(1177);
-
- var _contains3 = _interopRequireDefault(_contains2);
-
- var _addEventListener2 = __webpack_require__(328);
-
- var _addEventListener3 = _interopRequireDefault(_addEventListener2);
-
- var _cssAnimation2 = __webpack_require__(1178);
-
- var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
-
- var _toArray2 = __webpack_require__(1180);
-
- var _toArray3 = _interopRequireDefault(_toArray2);
-
- var _Align2 = __webpack_require__(1181);
-
- var _Align3 = _interopRequireDefault(_Align2);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.all = _all3.default;
- exports.componentOrElement = _componentOrElement3.default;
- exports.deprecated = _deprecated3.default;
- exports.elementType = _elementType3.default;
- exports.isRequiredForA11y = _isRequiredForA11y3.default;
- exports.splitComponent = _splitComponent3.default;
- exports.createChainedFunction = _createChainedFunction3.default;
- exports.KeyCode = _keyCode2.default;
- exports.contains = _contains3.default;
- exports.addEventListener = _addEventListener3.default;
- exports.cssAnimation = _cssAnimation3.default;
- exports.toArray = _toArray3.default;
- //export getContainerRenderMixin from './getContainerRenderMixin';
-
+
+
+ exports.__esModule = true;
+ exports.Align = exports.toArray = exports.cssAnimation = exports.addEventListener = exports.contains = exports.KeyCode = exports.createChainedFunction = exports.splitComponent = exports.isRequiredForA11y = exports.elementType = exports.deprecated = exports.componentOrElement = exports.all = undefined;
+
+ var _all2 = __webpack_require__(1165);
+
+ var _all3 = _interopRequireDefault(_all2);
+
+ var _componentOrElement2 = __webpack_require__(1166);
+
+ var _componentOrElement3 = _interopRequireDefault(_componentOrElement2);
+
+ var _deprecated2 = __webpack_require__(1167);
+
+ var _deprecated3 = _interopRequireDefault(_deprecated2);
+
+ var _elementType2 = __webpack_require__(1168);
+
+ var _elementType3 = _interopRequireDefault(_elementType2);
+
+ var _isRequiredForA11y2 = __webpack_require__(1169);
+
+ var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2);
+
+ var _splitComponent2 = __webpack_require__(1170);
+
+ var _splitComponent3 = _interopRequireDefault(_splitComponent2);
+
+ var _createChainedFunction2 = __webpack_require__(1171);
+
+ var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2);
+
+ var _keyCode = __webpack_require__(1172);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _contains2 = __webpack_require__(1173);
+
+ var _contains3 = _interopRequireDefault(_contains2);
+
+ var _addEventListener2 = __webpack_require__(325);
+
+ var _addEventListener3 = _interopRequireDefault(_addEventListener2);
+
+ var _cssAnimation2 = __webpack_require__(1174);
+
+ var _cssAnimation3 = _interopRequireDefault(_cssAnimation2);
+
+ var _toArray2 = __webpack_require__(1176);
+
+ var _toArray3 = _interopRequireDefault(_toArray2);
+
+ var _Align2 = __webpack_require__(1177);
+
+ var _Align3 = _interopRequireDefault(_Align2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.all = _all3.default;
+ exports.componentOrElement = _componentOrElement3.default;
+ exports.deprecated = _deprecated3.default;
+ exports.elementType = _elementType3.default;
+ exports.isRequiredForA11y = _isRequiredForA11y3.default;
+ exports.splitComponent = _splitComponent3.default;
+ exports.createChainedFunction = _createChainedFunction3.default;
+ exports.KeyCode = _keyCode2.default;
+ exports.contains = _contains3.default;
+ exports.addEventListener = _addEventListener3.default;
+ exports.cssAnimation = _cssAnimation3.default;
+ exports.toArray = _toArray3.default;
+ //export getContainerRenderMixin from './getContainerRenderMixin';
+
exports.Align = _Align3.default;
/***/ }),
- /* 328 */
+ /* 325 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 329 */
+ /* 326 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128640,7 +121925,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _ownerDocument = __webpack_require__(22);
+ var _ownerDocument = __webpack_require__(23);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -128649,7 +121934,7 @@
module.exports = exports['default'];
/***/ }),
- /* 330 */
+ /* 327 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128679,7 +121964,7 @@
module.exports = exports['default'];
/***/ }),
- /* 331 */
+ /* 328 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128690,7 +121975,7 @@
exports.__esModule = true;
exports.default = addClass;
- var _hasClass = _interopRequireDefault(__webpack_require__(332));
+ var _hasClass = _interopRequireDefault(__webpack_require__(329));
function addClass(element, className) {
if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
@@ -128699,7 +121984,7 @@
module.exports = exports["default"];
/***/ }),
- /* 332 */
+ /* 329 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128715,7 +122000,7 @@
module.exports = exports["default"];
/***/ }),
- /* 333 */
+ /* 330 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128730,39 +122015,39 @@
};
/***/ }),
- /* 334 */
+ /* 331 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 335 */
+ /* 332 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128773,7 +122058,7 @@
});
exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;
- var _inDOM = __webpack_require__(56);
+ var _inDOM = __webpack_require__(55);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -128844,7 +122129,7 @@
}
/***/ }),
- /* 336 */
+ /* 333 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -128855,7 +122140,7 @@
});
exports.default = camelizeStyleName;
- var _camelize = __webpack_require__(1206);
+ var _camelize = __webpack_require__(1202);
var _camelize2 = _interopRequireDefault(_camelize);
@@ -128872,13 +122157,13 @@
module.exports = exports['default'];
/***/ }),
- /* 337 */
+ /* 334 */
/***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(217);
+ module.exports = __webpack_require__(215);
/***/ }),
- /* 338 */
+ /* 335 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -128901,7 +122186,7 @@
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(9)))
/***/ }),
- /* 339 */
+ /* 336 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -128911,7 +122196,7 @@
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyMiddleware; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return compose; });
/* unused harmony export __DO_NOT_USE__ActionTypes */
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_symbol_observable__ = __webpack_require__(1224);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_symbol_observable__ = __webpack_require__(1220);
/**
@@ -129552,7 +122837,7 @@
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(9)))
/***/ }),
- /* 340 */
+ /* 337 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -129564,7 +122849,7 @@
}
/***/ }),
- /* 341 */
+ /* 338 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -129586,25 +122871,25 @@
});
/***/ }),
- /* 342 */
+ /* 339 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = connectAdvanced;
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(340);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(1232);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__ = __webpack_require__(173);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(174);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(1233);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(337);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(1228);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_extends__ = __webpack_require__(170);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(171);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(1229);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant__ = __webpack_require__(1234);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant__ = __webpack_require__(1230);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_invariant__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is__ = __webpack_require__(141);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is__ = __webpack_require__(140);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_is__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__ = __webpack_require__(1235);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__ = __webpack_require__(341);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_Subscription__ = __webpack_require__(1231);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_PropTypes__ = __webpack_require__(338);
@@ -129901,14 +123186,14 @@
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(9)))
/***/ }),
- /* 343 */
+ /* 340 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = wrapMapToPropsConstant;
/* unused harmony export getDependsOnOwnProps */
/* harmony export (immutable) */ __webpack_exports__["b"] = wrapMapToPropsFunc;
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__ = __webpack_require__(344);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_verifyPlainObject__ = __webpack_require__(341);
function wrapMapToPropsConstant(getConstant) {
return function initConstantSelector(dispatch, options) {
@@ -129976,13 +123261,13 @@
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(9)))
/***/ }),
- /* 344 */
+ /* 341 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = verifyPlainObject;
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isPlainObject__ = __webpack_require__(1239);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__warning__ = __webpack_require__(172);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isPlainObject__ = __webpack_require__(1235);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__warning__ = __webpack_require__(169);
function verifyPlainObject(value, displayName, methodName) {
@@ -129992,7 +123277,7 @@
}
/***/ }),
- /* 345 */
+ /* 342 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -130008,7 +123293,7 @@
module.exports = exports["default"];
/***/ }),
- /* 346 */
+ /* 343 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -130058,1032 +123343,7 @@
};
/***/ }),
- /* 347 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
- /* WEBPACK VAR INJECTION */(function(process) {
-
- exports.__esModule = 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 _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _lodash = __webpack_require__(37);
-
- var _lodash2 = _interopRequireDefault(_lodash);
-
- var _classnames = __webpack_require__(2);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _utils = __webpack_require__(80);
-
- var _GridItem = __webpack_require__(1255);
-
- var _GridItem2 = _interopRequireDefault(_GridItem);
-
- 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; }
-
- // End Types
-
- /**
- * A reactive, fluid grid layout with draggable, resizable components.
- */
-
- // Types
- var ReactGridLayout = function (_React$Component) {
- _inherits(ReactGridLayout, _React$Component);
-
- // TODO publish internal ReactClass displayName transform
- function ReactGridLayout(props, context) {
- _classCallCheck(this, ReactGridLayout);
-
- var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
-
- _initialiseProps.call(_this);
-
- (0, _utils.autoBindHandlers)(_this, ["onDragStart", "onDrag", "onDragStop", "onResizeStart", "onResize", "onResizeStop"]);
- return _this;
- }
-
- ReactGridLayout.prototype.componentDidMount = function componentDidMount() {
- this.setState({ mounted: true });
- // Possibly call back with layout on mount. This should be done after correcting the layout width
- // to ensure we don't rerender with the wrong width.
- this.onLayoutMaybeChanged(this.state.layout, this.props.layout);
- };
-
- ReactGridLayout.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- var newLayoutBase = void 0;
- // Legacy support for compactType
- // Allow parent to set layout directly.
- if (!(0, _lodash2.default)(nextProps.layout, this.props.layout) || nextProps.compactType !== this.props.compactType) {
- newLayoutBase = nextProps.layout;
- } else if (!(0, _utils.childrenEqual)(this.props.children, nextProps.children)) {
- // If children change, also regenerate the layout. Use our state
- // as the base in case because it may be more up to date than
- // what is in props.
- newLayoutBase = this.state.layout;
- }
-
- // We need to regenerate the layout.
- if (newLayoutBase) {
- var newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, this.compactType(nextProps));
- var _oldLayout = this.state.layout;
- this.setState({ layout: newLayout });
- this.onLayoutMaybeChanged(newLayout, _oldLayout);
- }
- };
-
- /**
- * Calculates a pixel value for the container.
- * @return {String} Container height in pixels.
- */
-
-
- ReactGridLayout.prototype.containerHeight = function containerHeight() {
- if (!this.props.autoSize) return;
- var nbRow = (0, _utils.bottom)(this.state.layout);
- var containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];
- return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + "px";
- };
-
- ReactGridLayout.prototype.compactType = function compactType(props) {
- if (!props) props = this.props;
- return props.verticalCompact === false ? null : props.compactType;
- };
-
- /**
- * When dragging starts
- * @param {String} i Id of the child
- * @param {Number} x X position of the move
- * @param {Number} y Y position of the move
- * @param {Event} e The mousedown event
- * @param {Element} node The current dragging DOM element
- */
-
-
- ReactGridLayout.prototype.onDragStart = function onDragStart(i, x, y, _ref) {
- var e = _ref.e,
- node = _ref.node;
- var layout = this.state.layout;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- this.setState({
- oldDragItem: (0, _utils.cloneLayoutItem)(l),
- oldLayout: this.state.layout
- });
-
- return this.props.onDragStart(layout, l, l, null, e, node);
- };
-
- /**
- * Each drag movement create a new dragelement and move the element to the dragged location
- * @param {String} i Id of the child
- * @param {Number} x X position of the move
- * @param {Number} y Y position of the move
- * @param {Event} e The mousedown event
- * @param {Element} node The current dragging DOM element
- */
-
-
- ReactGridLayout.prototype.onDrag = function onDrag(i, x, y, _ref2) {
- var e = _ref2.e,
- node = _ref2.node;
- var oldDragItem = this.state.oldDragItem;
- var layout = this.state.layout;
- var cols = this.props.cols;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- // Create placeholder (display only)
- var placeholder = {
- w: l.w,
- h: l.h,
- x: l.x,
- y: l.y,
- placeholder: true,
- i: i
- };
-
- // Move the element to the dragged location.
- var isUserAction = true;
- layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, this.props.preventCollision, this.compactType(), cols);
-
- this.props.onDrag(layout, oldDragItem, l, placeholder, e, node);
-
- this.setState({
- layout: (0, _utils.compact)(layout, this.compactType(), cols),
- activeDrag: placeholder
- });
- };
-
- /**
- * When dragging stops, figure out which position the element is closest to and update its x and y.
- * @param {String} i Index of the child.
- * @param {Number} x X position of the move
- * @param {Number} y Y position of the move
- * @param {Event} e The mousedown event
- * @param {Element} node The current dragging DOM element
- */
-
-
- ReactGridLayout.prototype.onDragStop = function onDragStop(i, x, y, _ref3) {
- var e = _ref3.e,
- node = _ref3.node;
- var oldDragItem = this.state.oldDragItem;
- var layout = this.state.layout;
- var _props = this.props,
- cols = _props.cols,
- preventCollision = _props.preventCollision;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- // Move the element here
- var isUserAction = true;
- layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, this.compactType(), cols);
-
- this.props.onDragStop(layout, oldDragItem, l, null, e, node);
-
- // Set state
- var newLayout = (0, _utils.compact)(layout, this.compactType(), cols);
- var oldLayout = this.state.oldLayout;
-
- this.setState({
- activeDrag: null,
- layout: newLayout,
- oldDragItem: null,
- oldLayout: null
- });
-
- this.onLayoutMaybeChanged(newLayout, oldLayout);
- };
-
- ReactGridLayout.prototype.onLayoutMaybeChanged = function onLayoutMaybeChanged(newLayout, oldLayout) {
- if (!oldLayout) oldLayout = this.state.layout;
- if (!(0, _lodash2.default)(oldLayout, newLayout)) {
- this.props.onLayoutChange(newLayout);
- }
- };
-
- ReactGridLayout.prototype.onResizeStart = function onResizeStart(i, w, h, _ref4) {
- var e = _ref4.e,
- node = _ref4.node;
- var layout = this.state.layout;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- this.setState({
- oldResizeItem: (0, _utils.cloneLayoutItem)(l),
- oldLayout: this.state.layout
- });
-
- this.props.onResizeStart(layout, l, l, null, e, node);
- };
-
- ReactGridLayout.prototype.onResize = function onResize(i, w, h, _ref5) {
- var e = _ref5.e,
- node = _ref5.node;
- var _state = this.state,
- layout = _state.layout,
- oldResizeItem = _state.oldResizeItem;
- var _props2 = this.props,
- cols = _props2.cols,
- preventCollision = _props2.preventCollision;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
- if (!l) return;
-
- // Something like quad tree should be used
- // to find collisions faster
- var hasCollisions = void 0;
- if (preventCollision) {
- var collisions = (0, _utils.getAllCollisions)(layout, _extends({}, l, { w: w, h: h })).filter(function (layoutItem) {
- return layoutItem.i !== l.i;
- });
- hasCollisions = collisions.length > 0;
-
- // If we're colliding, we need adjust the placeholder.
- if (hasCollisions) {
- // adjust w && h to maximum allowed space
- var leastX = Infinity,
- leastY = Infinity;
- collisions.forEach(function (layoutItem) {
- if (layoutItem.x > l.x) leastX = Math.min(leastX, layoutItem.x);
- if (layoutItem.y > l.y) leastY = Math.min(leastY, layoutItem.y);
- });
-
- if (Number.isFinite(leastX)) l.w = leastX - l.x;
- if (Number.isFinite(leastY)) l.h = leastY - l.y;
- }
- }
-
- if (!hasCollisions) {
- // Set new width and height.
- l.w = w;
- l.h = h;
- }
-
- // Create placeholder element (display only)
- var placeholder = {
- w: l.w,
- h: l.h,
- x: l.x,
- y: l.y,
- static: true,
- i: i
- };
-
- this.props.onResize(layout, oldResizeItem, l, placeholder, e, node);
-
- // Re-compact the layout and set the drag placeholder.
- this.setState({
- layout: (0, _utils.compact)(layout, this.compactType(), cols),
- activeDrag: placeholder
- });
- };
-
- ReactGridLayout.prototype.onResizeStop = function onResizeStop(i, w, h, _ref6) {
- var e = _ref6.e,
- node = _ref6.node;
- var _state2 = this.state,
- layout = _state2.layout,
- oldResizeItem = _state2.oldResizeItem;
- var cols = this.props.cols;
-
- var l = (0, _utils.getLayoutItem)(layout, i);
-
- this.props.onResizeStop(layout, oldResizeItem, l, null, e, node);
-
- // Set state
- var newLayout = (0, _utils.compact)(layout, this.compactType(), cols);
- var oldLayout = this.state.oldLayout;
-
- this.setState({
- activeDrag: null,
- layout: newLayout,
- oldResizeItem: null,
- oldLayout: null
- });
-
- this.onLayoutMaybeChanged(newLayout, oldLayout);
- };
-
- /**
- * Create a placeholder object.
- * @return {Element} Placeholder div.
- */
-
-
- ReactGridLayout.prototype.placeholder = function placeholder() {
- var activeDrag = this.state.activeDrag;
-
- if (!activeDrag) return null;
- var _props3 = this.props,
- width = _props3.width,
- cols = _props3.cols,
- margin = _props3.margin,
- containerPadding = _props3.containerPadding,
- rowHeight = _props3.rowHeight,
- maxRows = _props3.maxRows,
- useCSSTransforms = _props3.useCSSTransforms;
-
- // {...this.state.activeDrag} is pretty slow, actually
-
- return _react2.default.createElement(
- _GridItem2.default,
- {
- w: activeDrag.w,
- h: activeDrag.h,
- x: activeDrag.x,
- y: activeDrag.y,
- i: activeDrag.i,
- className: "react-grid-placeholder",
- containerWidth: width,
- cols: cols,
- margin: margin,
- containerPadding: containerPadding || margin,
- maxRows: maxRows,
- rowHeight: rowHeight,
- isDraggable: false,
- isResizable: false,
- useCSSTransforms: useCSSTransforms
- },
- _react2.default.createElement("div", null)
- );
- };
-
- /**
- * Given a grid item, set its style attributes & surround in a .
- * @param {Element} child React element.
- * @return {Element} Element wrapped in draggable and properly placed.
- */
-
-
- ReactGridLayout.prototype.processGridItem = function processGridItem(child) {
- if (!child || !child.key) return;
- var l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key));
- if (!l) return null;
- var _props4 = this.props,
- width = _props4.width,
- cols = _props4.cols,
- margin = _props4.margin,
- containerPadding = _props4.containerPadding,
- rowHeight = _props4.rowHeight,
- maxRows = _props4.maxRows,
- isDraggable = _props4.isDraggable,
- isResizable = _props4.isResizable,
- useCSSTransforms = _props4.useCSSTransforms,
- draggableCancel = _props4.draggableCancel,
- draggableHandle = _props4.draggableHandle;
- var mounted = this.state.mounted;
-
- // Parse 'static'. Any properties defined directly on the grid item will take precedence.
-
- var draggable = Boolean(!l.static && isDraggable && (l.isDraggable || l.isDraggable == null));
- var resizable = Boolean(!l.static && isResizable && (l.isResizable || l.isResizable == null));
-
- return _react2.default.createElement(
- _GridItem2.default,
- {
- containerWidth: width,
- cols: cols,
- margin: margin,
- containerPadding: containerPadding || margin,
- maxRows: maxRows,
- rowHeight: rowHeight,
- cancel: draggableCancel,
- handle: draggableHandle,
- onDragStop: this.onDragStop,
- onDragStart: this.onDragStart,
- onDrag: this.onDrag,
- onResizeStart: this.onResizeStart,
- onResize: this.onResize,
- onResizeStop: this.onResizeStop,
- isDraggable: draggable,
- isResizable: resizable,
- useCSSTransforms: useCSSTransforms && mounted,
- usePercentages: !mounted,
- w: l.w,
- h: l.h,
- x: l.x,
- y: l.y,
- i: l.i,
- minH: l.minH,
- minW: l.minW,
- maxH: l.maxH,
- maxW: l.maxW,
- "static": l.static
- },
- child
- );
- };
-
- ReactGridLayout.prototype.render = function render() {
- var _this2 = this;
-
- var _props5 = this.props,
- className = _props5.className,
- style = _props5.style;
-
-
- var mergedClassName = (0, _classnames2.default)("react-grid-layout", className);
- var mergedStyle = _extends({
- height: this.containerHeight()
- }, style);
-
- return _react2.default.createElement(
- "div",
- { className: mergedClassName, style: mergedStyle },
- _react2.default.Children.map(this.props.children, function (child) {
- return _this2.processGridItem(child);
- }),
- this.placeholder()
- );
- };
-
- return ReactGridLayout;
- }(_react2.default.Component);
-
- ReactGridLayout.displayName = "ReactGridLayout";
- ReactGridLayout.propTypes = {
- //
- // Basic props
- //
- className: _propTypes2.default.string,
- style: _propTypes2.default.object,
-
- // This can be set explicitly. If it is not set, it will automatically
- // be set to the container width. Note that resizes will *not* cause this to adjust.
- // If you need that behavior, use WidthProvider.
- width: _propTypes2.default.number,
-
- // If true, the container height swells and contracts to fit contents
- autoSize: _propTypes2.default.bool,
- // # of cols.
- cols: _propTypes2.default.number,
-
- // A selector that will not be draggable.
- draggableCancel: _propTypes2.default.string,
- // A selector for the draggable handler
- draggableHandle: _propTypes2.default.string,
-
- // Deprecated
- verticalCompact: function verticalCompact(props) {
- if (props.verticalCompact === false && process.env.NODE_ENV !== "production") {
- console.warn(
- // eslint-disable-line no-console
- "`verticalCompact` on is deprecated and will be removed soon. " + 'Use `compactType`: "horizontal" | "vertical" | null.');
- }
- },
- // Choose vertical or hotizontal compaction
- compactType: _propTypes2.default.oneOf(["vertical", "horizontal"]),
-
- // layout is an array of object with the format:
- // {x: Number, y: Number, w: Number, h: Number, i: String}
- layout: function layout(props) {
- var layout = props.layout;
- // I hope you're setting the data-grid property on the grid items
- if (layout === undefined) return;
- (0, _utils.validateLayout)(layout, "layout");
- },
-
- //
- // Grid Dimensions
- //
-
- // Margin between items [x, y] in px
- margin: _propTypes2.default.arrayOf(_propTypes2.default.number),
- // Padding inside the container [x, y] in px
- containerPadding: _propTypes2.default.arrayOf(_propTypes2.default.number),
- // Rows have a static height, but you can change this based on breakpoints if you like
- rowHeight: _propTypes2.default.number,
- // Default Infinity, but you can specify a max here if you like.
- // Note that this isn't fully fleshed out and won't error if you specify a layout that
- // extends beyond the row capacity. It will, however, not allow users to drag/resize
- // an item past the barrier. They can push items beyond the barrier, though.
- // Intentionally not documented for this reason.
- maxRows: _propTypes2.default.number,
-
- //
- // Flags
- //
- isDraggable: _propTypes2.default.bool,
- isResizable: _propTypes2.default.bool,
- // If true, grid items won't change position when being dragged over.
- preventCollision: _propTypes2.default.bool,
- // Use CSS transforms instead of top/left
- useCSSTransforms: _propTypes2.default.bool,
-
- //
- // Callbacks
- //
-
- // Callback so you can save the layout. Calls after each drag & resize stops.
- onLayoutChange: _propTypes2.default.func,
-
- // Calls when drag starts. Callback is of the signature (layout, oldItem, newItem, placeholder, e, ?node).
- // All callbacks below have the same signature. 'start' and 'stop' callbacks omit the 'placeholder'.
- onDragStart: _propTypes2.default.func,
- // Calls on each drag movement.
- onDrag: _propTypes2.default.func,
- // Calls when drag is complete.
- onDragStop: _propTypes2.default.func,
- //Calls when resize starts.
- onResizeStart: _propTypes2.default.func,
- // Calls when resize movement happens.
- onResize: _propTypes2.default.func,
- // Calls when resize is complete.
- onResizeStop: _propTypes2.default.func,
-
- //
- // Other validations
- //
-
- // Children must not have duplicate keys.
- children: function children(props, propName) {
- var children = props[propName];
-
- // Check children keys for duplicates. Throw if found.
- var keys = {};
- _react2.default.Children.forEach(children, function (child) {
- if (keys[child.key]) {
- throw new Error('Duplicate child key "' + child.key + '" found! This will cause problems in ReactGridLayout.');
- }
- keys[child.key] = true;
- });
- }
- };
- ReactGridLayout.defaultProps = {
- autoSize: true,
- cols: 12,
- className: "",
- style: {},
- draggableHandle: "",
- draggableCancel: "",
- containerPadding: null,
- rowHeight: 150,
- maxRows: Infinity, // infinite vertical growth
- layout: [],
- margin: [10, 10],
- isDraggable: true,
- isResizable: true,
- useCSSTransforms: true,
- verticalCompact: true,
- compactType: "vertical",
- preventCollision: false,
- onLayoutChange: _utils.noop,
- onDragStart: _utils.noop,
- onDrag: _utils.noop,
- onDragStop: _utils.noop,
- onResizeStart: _utils.noop,
- onResize: _utils.noop,
- onResizeStop: _utils.noop
- };
-
- var _initialiseProps = function _initialiseProps() {
- this.state = {
- activeDrag: null,
- layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols,
- // Legacy support for verticalCompact: false
- this.compactType()),
- mounted: false,
- oldDragItem: null,
- oldLayout: null,
- oldResizeItem: null
- };
- };
-
- exports.default = ReactGridLayout;
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
-
- /***/ }),
- /* 348 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = 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 _react = __webpack_require__(0);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _propTypes = __webpack_require__(1);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- var _reactDraggable = __webpack_require__(179);
-
- var _cloneElement = __webpack_require__(1257);
-
- var _cloneElement2 = _interopRequireDefault(_cloneElement);
-
- 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 _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 Resizable = function (_React$Component) {
- _inherits(Resizable, _React$Component);
-
- function Resizable() {
- var _temp, _this, _ret;
-
- _classCallCheck(this, Resizable);
-
- 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.state = {
- resizing: false,
- width: _this.props.width, height: _this.props.height,
- slackW: 0, slackH: 0
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- Resizable.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
- // If parent changes height/width, set that in our state.
- if (!this.state.resizing && (nextProps.width !== this.props.width || nextProps.height !== this.props.height)) {
- this.setState({
- width: nextProps.width,
- height: nextProps.height
- });
- }
- };
-
- Resizable.prototype.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) {
- height = width / aspectRatio;
- width = height * aspectRatio;
- return [width, height];
- };
-
- // If you do this, be careful of constraints
-
-
- Resizable.prototype.runConstraints = function runConstraints(width, height) {
- var _ref = [this.props.minConstraints, this.props.maxConstraints],
- min = _ref[0],
- max = _ref[1];
-
-
- if (this.props.lockAspectRatio) {
- var ratio = this.state.width / this.state.height;
- height = width / ratio;
- width = height * ratio;
- }
-
- if (!min && !max) return [width, height];
-
- var oldW = width,
- oldH = height;
-
- // Add slack to the values used to calculate bound position. This will ensure that if
- // we start removing slack, the element won't react to it right away until it's been
- // completely removed.
-
- var _state = this.state,
- slackW = _state.slackW,
- slackH = _state.slackH;
-
- width += slackW;
- height += slackH;
-
- if (min) {
- width = Math.max(min[0], width);
- height = Math.max(min[1], height);
- }
- if (max) {
- width = Math.min(max[0], width);
- height = Math.min(max[1], height);
- }
-
- // If the numbers changed, we must have introduced some slack. Record it for the next iteration.
- slackW += oldW - width;
- slackH += oldH - height;
- if (slackW !== this.state.slackW || slackH !== this.state.slackH) {
- this.setState({ slackW: slackW, slackH: slackH });
- }
-
- return [width, height];
- };
-
- /**
- * Wrapper around drag events to provide more useful data.
- *
- * @param {String} handlerName Handler name to wrap.
- * @return {Function} Handler function.
- */
-
-
- Resizable.prototype.resizeHandler = function resizeHandler(handlerName, axis) {
- var _this2 = this;
-
- return function (e, _ref2) {
- var node = _ref2.node,
- deltaX = _ref2.deltaX,
- deltaY = _ref2.deltaY;
-
-
- // Axis restrictions
- var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && ['n', 's'].indexOf(axis) === -1;
- var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && ['e', 'w'].indexOf(axis) === -1;
-
- // reverse delta if using top or left drag handles
- if (canDragX && axis[axis.length - 1] === 'w') {
- deltaX = -deltaX;
- }
- if (canDragY && axis[0] === 'n') {
- deltaY = -deltaY;
- }
-
- // Update w/h
- var width = _this2.state.width + (canDragX ? deltaX : 0);
- var height = _this2.state.height + (canDragY ? deltaY : 0);
-
- // Early return if no change
- var widthChanged = width !== _this2.state.width,
- heightChanged = height !== _this2.state.height;
- if (handlerName === 'onResize' && !widthChanged && !heightChanged) return;
-
- // Set the appropriate state for this handler.
- var _runConstraints = _this2.runConstraints(width, height);
-
- width = _runConstraints[0];
- height = _runConstraints[1];
- var newState = {};
- if (handlerName === 'onResizeStart') {
- newState.resizing = true;
- } else if (handlerName === 'onResizeStop') {
- newState.resizing = false;
- newState.slackW = newState.slackH = 0;
- } else {
- // Early return if no change after constraints
- if (width === _this2.state.width && height === _this2.state.height) return;
- newState.width = width;
- newState.height = height;
- }
-
- var hasCb = typeof _this2.props[handlerName] === 'function';
- if (hasCb) {
- // $FlowIgnore isn't refining this correctly to SyntheticEvent
- if (typeof e.persist === 'function') e.persist();
- _this2.setState(newState, function () {
- return _this2.props[handlerName](e, { node: node, size: { width: width, height: height }, handle: axis });
- });
- } else {
- _this2.setState(newState);
- }
- };
- };
-
- Resizable.prototype.renderResizeHandle = function renderResizeHandle(resizeHandle) {
- var handle = this.props.handle;
-
- if (handle) {
- if (typeof handle === 'function') {
- return handle(resizeHandle);
- }
- return handle;
- }
- return _react2.default.createElement('span', { className: 'react-resizable-handle react-resizable-handle-' + resizeHandle });
- };
-
- Resizable.prototype.render = function render() {
- var _this3 = this;
-
- // eslint-disable-next-line no-unused-vars
- var _props = this.props,
- children = _props.children,
- draggableOpts = _props.draggableOpts,
- width = _props.width,
- height = _props.height,
- handleSize = _props.handleSize,
- lockAspectRatio = _props.lockAspectRatio,
- axis = _props.axis,
- minConstraints = _props.minConstraints,
- maxConstraints = _props.maxConstraints,
- onResize = _props.onResize,
- onResizeStop = _props.onResizeStop,
- onResizeStart = _props.onResizeStart,
- resizeHandles = _props.resizeHandles,
- p = _objectWithoutProperties(_props, ['children', 'draggableOpts', 'width', 'height', 'handleSize', 'lockAspectRatio', 'axis', 'minConstraints', 'maxConstraints', 'onResize', 'onResizeStop', 'onResizeStart', 'resizeHandles']);
-
- var className = p.className ? p.className + ' react-resizable' : 'react-resizable';
-
- // What we're doing here is getting the child of this element, and cloning it with this element's props.
- // We are then defining its children as:
- // Its original children (resizable's child's children), and
- // One or more draggable handles.
- return (0, _cloneElement2.default)(children, _extends({}, p, {
- className: className,
- children: [children.props.children, resizeHandles.map(function (h) {
- return _react2.default.createElement(
- _reactDraggable.DraggableCore,
- _extends({}, draggableOpts, {
- key: 'resizableHandle-' + h,
- onStop: _this3.resizeHandler('onResizeStop', h),
- onStart: _this3.resizeHandler('onResizeStart', h),
- onDrag: _this3.resizeHandler('onResize', h)
- }),
- _this3.renderResizeHandle(h)
- );
- })]
- }));
- };
-
- return Resizable;
- }(_react2.default.Component);
-
- Resizable.propTypes = {
- //
- // Required Props
- //
-
- // Require that one and only one child be present.
- children: _propTypes2.default.element.isRequired,
-
- // Initial w/h
- width: _propTypes2.default.number.isRequired,
- height: _propTypes2.default.number.isRequired,
-
- //
- // Optional props
- //
-
- // Custom resize handle
- handle: _propTypes2.default.element,
-
- // If you change this, be sure to update your css
- handleSize: _propTypes2.default.array,
-
- // Defines which resize handles should be rendered (default: 'se')
- // Allows for any combination of:
- // 's' - South handle (bottom-center)
- // 'w' - West handle (left-center)
- // 'e' - East handle (right-center)
- // 'n' - North handle (top-center)
- // 'sw' - Southwest handle (bottom-left)
- // 'nw' - Northwest handle (top-left)
- // 'se' - Southeast handle (bottom-right)
- // 'ne' - Northeast handle (top-center)
- resizeHandles: _propTypes2.default.arrayOf(_propTypes2.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),
-
- // If true, will only allow width/height to move in lockstep
- lockAspectRatio: _propTypes2.default.bool,
-
- // Restricts resizing to a particular axis (default: 'both')
- // 'both' - allows resizing by width or height
- // 'x' - only allows the width to be changed
- // 'y' - only allows the height to be changed
- // 'none' - disables resizing altogether
- axis: _propTypes2.default.oneOf(['both', 'x', 'y', 'none']),
-
- // Min/max size
- minConstraints: _propTypes2.default.arrayOf(_propTypes2.default.number),
- maxConstraints: _propTypes2.default.arrayOf(_propTypes2.default.number),
-
- // Callbacks
- onResizeStop: _propTypes2.default.func,
- onResizeStart: _propTypes2.default.func,
- onResize: _propTypes2.default.func,
-
- // These will be passed wholesale to react-draggable's DraggableCore
- draggableOpts: _propTypes2.default.object
- };
- Resizable.defaultProps = {
- handleSize: [20, 20],
- lockAspectRatio: false,
- axis: 'both',
- minConstraints: [20, 20],
- maxConstraints: [Infinity, Infinity],
- resizeHandles: ['se']
- };
- exports.default = Resizable;
-
- /***/ }),
- /* 349 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.getBreakpointFromWidth = getBreakpointFromWidth;
- exports.getColsFromBreakpoint = getColsFromBreakpoint;
- exports.findOrGenerateResponsiveLayout = findOrGenerateResponsiveLayout;
- exports.sortBreakpoints = sortBreakpoints;
-
- var _utils = __webpack_require__(80);
-
- /**
- * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).
- *
- * @param {Object} breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})
- * @param {Number} width Screen width.
- * @return {String} Highest breakpoint that is less than width.
- */
- function getBreakpointFromWidth(breakpoints, width) {
- var sorted = sortBreakpoints(breakpoints);
- var matching = sorted[0];
- for (var i = 1, len = sorted.length; i < len; i++) {
- var breakpointName = sorted[i];
- if (width > breakpoints[breakpointName]) matching = breakpointName;
- }
- return matching;
- }
-
- /**
- * Given a breakpoint, get the # of cols set for it.
- * @param {String} breakpoint Breakpoint name.
- * @param {Object} cols Map of breakpoints to cols.
- * @return {Number} Number of cols.
- */
-
-
- function getColsFromBreakpoint(breakpoint, cols) {
- if (!cols[breakpoint]) {
- throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint " + breakpoint + " is missing!");
- }
- return cols[breakpoint];
- }
-
- /**
- * Given existing layouts and a new breakpoint, find or generate a new layout.
- *
- * This finds the layout above the new one and generates from it, if it exists.
- *
- * @param {Object} layouts Existing layouts.
- * @param {Array} breakpoints All breakpoints.
- * @param {String} breakpoint New breakpoint.
- * @param {String} breakpoint Last breakpoint (for fallback).
- * @param {Number} cols Column count at new breakpoint.
- * @param {Boolean} verticalCompact Whether or not to compact the layout
- * vertically.
- * @return {Array} New layout.
- */
- function findOrGenerateResponsiveLayout(layouts, breakpoints, breakpoint, lastBreakpoint, cols, compactType) {
- // If it already exists, just return it.
- if (layouts[breakpoint]) return (0, _utils.cloneLayout)(layouts[breakpoint]);
- // Find or generate the next layout
- var layout = layouts[lastBreakpoint];
- var breakpointsSorted = sortBreakpoints(breakpoints);
- var breakpointsAbove = breakpointsSorted.slice(breakpointsSorted.indexOf(breakpoint));
- for (var i = 0, len = breakpointsAbove.length; i < len; i++) {
- var b = breakpointsAbove[i];
- if (layouts[b]) {
- layout = layouts[b];
- break;
- }
- }
- layout = (0, _utils.cloneLayout)(layout || []); // clone layout so we don't modify existing items
- return (0, _utils.compact)((0, _utils.correctBounds)(layout, { cols: cols }), compactType, cols);
- }
-
- /**
- * Given breakpoints, return an array of breakpoints sorted by width. This is usually
- * e.g. ['xxs', 'xs', 'sm', ...]
- *
- * @param {Object} breakpoints Key/value pair of breakpoint names to widths.
- * @return {Array} Sorted breakpoints.
- */
- function sortBreakpoints(breakpoints) {
- var keys = Object.keys(breakpoints);
- return keys.sort(function (a, b) {
- return breakpoints[a] - breakpoints[b];
- });
- }
-
- /***/ }),
- /* 350 */
+ /* 344 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -131122,7 +123382,7 @@
}
/***/ }),
- /* 351 */
+ /* 345 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -131188,39 +123448,39 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 352 */
+ /* 346 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 353 */
+ /* 347 */
/***/ (function(module, exports, __webpack_require__) {
(function (global, factory) {
@@ -131255,7 +123515,7 @@
/***/ }),
- /* 354 */
+ /* 348 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -131265,7 +123525,7 @@
value: true
});
- var _Icon = __webpack_require__(1302);
+ var _Icon = __webpack_require__(1291);
var _Icon2 = _interopRequireDefault(_Icon);
@@ -131275,59 +123535,39 @@
module.exports = exports['default'];
/***/ }),
- /* 355 */
+ /* 349 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Loading = __webpack_require__(1312);
-
- var _Loading2 = _interopRequireDefault(_Loading);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Loading2["default"];
- module.exports = exports['default'];
-
- /***/ }),
- /* 356 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 357 */
+ /* 350 */
/***/ (function(module, exports) {
//
@@ -131379,7 +123619,7 @@
/***/ }),
- /* 358 */
+ /* 351 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -131389,7 +123629,7 @@
value: true
});
- var _Calendar = __webpack_require__(1344);
+ var _Calendar = __webpack_require__(1333);
var _Calendar2 = _interopRequireDefault(_Calendar);
@@ -131399,7 +123639,7 @@
module.exports = exports['default'];
/***/ }),
- /* 359 */
+ /* 352 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -131413,11 +123653,11 @@
var _react2 = _interopRequireDefault(_react);
- var _DateTHead = __webpack_require__(1345);
+ var _DateTHead = __webpack_require__(1334);
var _DateTHead2 = _interopRequireDefault(_DateTHead);
- var _DateTBody = __webpack_require__(1347);
+ var _DateTBody = __webpack_require__(1336);
var _DateTBody2 = _interopRequireDefault(_DateTBody);
@@ -131458,7 +123698,7 @@
module.exports = exports['default'];
/***/ }),
- /* 360 */
+ /* 353 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -131474,7 +123714,7 @@
module.exports = exports["default"];
/***/ }),
- /* 361 */
+ /* 354 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -131551,7 +123791,7 @@
/***/ }),
- /* 362 */
+ /* 355 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -131690,7 +123930,7 @@
/***/ }),
- /* 363 */
+ /* 356 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -131753,7 +123993,7 @@
/***/ }),
- /* 364 */
+ /* 357 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -131816,7 +124056,7 @@
/***/ }),
- /* 365 */
+ /* 358 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -131942,7 +124182,7 @@
/***/ }),
- /* 366 */
+ /* 359 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132005,7 +124245,7 @@
/***/ }),
- /* 367 */
+ /* 360 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132113,7 +124353,7 @@
/***/ }),
- /* 368 */
+ /* 361 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132176,7 +124416,7 @@
/***/ }),
- /* 369 */
+ /* 362 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132285,7 +124525,7 @@
/***/ }),
- /* 370 */
+ /* 363 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132421,7 +124661,7 @@
/***/ }),
- /* 371 */
+ /* 364 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132515,7 +124755,7 @@
/***/ }),
- /* 372 */
+ /* 365 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132577,7 +124817,7 @@
/***/ }),
- /* 373 */
+ /* 366 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132700,7 +124940,7 @@
/***/ }),
- /* 374 */
+ /* 367 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132823,7 +125063,7 @@
/***/ }),
- /* 375 */
+ /* 368 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -132935,7 +125175,7 @@
/***/ }),
- /* 376 */
+ /* 369 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133090,7 +125330,7 @@
/***/ }),
- /* 377 */
+ /* 370 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133182,7 +125422,7 @@
/***/ }),
- /* 378 */
+ /* 371 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133358,7 +125598,7 @@
/***/ }),
- /* 379 */
+ /* 372 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133425,7 +125665,7 @@
/***/ }),
- /* 380 */
+ /* 373 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133509,7 +125749,7 @@
/***/ }),
- /* 381 */
+ /* 374 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133573,7 +125813,7 @@
/***/ }),
- /* 382 */
+ /* 375 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133653,7 +125893,7 @@
/***/ }),
- /* 383 */
+ /* 376 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133733,7 +125973,7 @@
/***/ }),
- /* 384 */
+ /* 377 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133813,7 +126053,7 @@
/***/ }),
- /* 385 */
+ /* 378 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -133916,7 +126156,7 @@
/***/ }),
- /* 386 */
+ /* 379 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134020,7 +126260,7 @@
/***/ }),
- /* 387 */
+ /* 380 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134091,7 +126331,7 @@
/***/ }),
- /* 388 */
+ /* 381 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134162,7 +126402,7 @@
/***/ }),
- /* 389 */
+ /* 382 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134229,7 +126469,7 @@
/***/ }),
- /* 390 */
+ /* 383 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134300,7 +126540,7 @@
/***/ }),
- /* 391 */
+ /* 384 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134366,7 +126606,7 @@
/***/ }),
- /* 392 */
+ /* 385 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134437,7 +126677,7 @@
/***/ }),
- /* 393 */
+ /* 386 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134512,7 +126752,7 @@
/***/ }),
- /* 394 */
+ /* 387 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134608,7 +126848,7 @@
/***/ }),
- /* 395 */
+ /* 388 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134704,7 +126944,7 @@
/***/ }),
- /* 396 */
+ /* 389 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134800,7 +127040,7 @@
/***/ }),
- /* 397 */
+ /* 390 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134884,7 +127124,7 @@
/***/ }),
- /* 398 */
+ /* 391 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -134954,7 +127194,7 @@
/***/ }),
- /* 399 */
+ /* 392 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135064,7 +127304,7 @@
/***/ }),
- /* 400 */
+ /* 393 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135177,7 +127417,7 @@
/***/ }),
- /* 401 */
+ /* 394 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135241,7 +127481,7 @@
/***/ }),
- /* 402 */
+ /* 395 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135328,7 +127568,7 @@
/***/ }),
- /* 403 */
+ /* 396 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135406,7 +127646,7 @@
/***/ }),
- /* 404 */
+ /* 397 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135488,7 +127728,7 @@
/***/ }),
- /* 405 */
+ /* 398 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135567,7 +127807,7 @@
/***/ }),
- /* 406 */
+ /* 399 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135648,7 +127888,7 @@
/***/ }),
- /* 407 */
+ /* 400 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135728,7 +127968,7 @@
/***/ }),
- /* 408 */
+ /* 401 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135809,7 +128049,7 @@
/***/ }),
- /* 409 */
+ /* 402 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -135936,7 +128176,7 @@
/***/ }),
- /* 410 */
+ /* 403 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136064,7 +128304,7 @@
/***/ }),
- /* 411 */
+ /* 404 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136165,7 +128405,7 @@
/***/ }),
- /* 412 */
+ /* 405 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136293,7 +128533,7 @@
/***/ }),
- /* 413 */
+ /* 406 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136451,7 +128691,7 @@
/***/ }),
- /* 414 */
+ /* 407 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136565,7 +128805,7 @@
/***/ }),
- /* 415 */
+ /* 408 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136664,7 +128904,7 @@
/***/ }),
- /* 416 */
+ /* 409 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136750,7 +128990,7 @@
/***/ }),
- /* 417 */
+ /* 410 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136886,7 +129126,7 @@
/***/ }),
- /* 418 */
+ /* 411 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -136959,7 +129199,7 @@
/***/ }),
- /* 419 */
+ /* 412 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137032,7 +129272,7 @@
/***/ }),
- /* 420 */
+ /* 413 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137128,7 +129368,7 @@
/***/ }),
- /* 421 */
+ /* 414 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137214,7 +129454,7 @@
/***/ }),
- /* 422 */
+ /* 415 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137307,7 +129547,7 @@
/***/ }),
- /* 423 */
+ /* 416 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137398,7 +129638,7 @@
/***/ }),
- /* 424 */
+ /* 417 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137512,7 +129752,7 @@
/***/ }),
- /* 425 */
+ /* 418 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137642,7 +129882,7 @@
/***/ }),
- /* 426 */
+ /* 419 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137727,7 +129967,7 @@
/***/ }),
- /* 427 */
+ /* 420 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137850,7 +130090,7 @@
/***/ }),
- /* 428 */
+ /* 421 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -137941,7 +130181,7 @@
/***/ }),
- /* 429 */
+ /* 422 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138081,7 +130321,7 @@
/***/ }),
- /* 430 */
+ /* 423 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138155,7 +130395,7 @@
/***/ }),
- /* 431 */
+ /* 424 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138277,7 +130517,7 @@
/***/ }),
- /* 432 */
+ /* 425 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138378,7 +130618,7 @@
/***/ }),
- /* 433 */
+ /* 426 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138494,7 +130734,7 @@
/***/ }),
- /* 434 */
+ /* 427 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138562,7 +130802,7 @@
/***/ }),
- /* 435 */
+ /* 428 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138656,7 +130896,7 @@
/***/ }),
- /* 436 */
+ /* 429 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138741,7 +130981,7 @@
/***/ }),
- /* 437 */
+ /* 430 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -138849,7 +131089,7 @@
/***/ }),
- /* 438 */
+ /* 431 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139013,7 +131253,7 @@
/***/ }),
- /* 439 */
+ /* 432 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139099,7 +131339,7 @@
/***/ }),
- /* 440 */
+ /* 433 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139185,7 +131425,7 @@
/***/ }),
- /* 441 */
+ /* 434 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139249,7 +131489,7 @@
/***/ }),
- /* 442 */
+ /* 435 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139346,7 +131586,7 @@
/***/ }),
- /* 443 */
+ /* 436 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139412,7 +131652,7 @@
/***/ }),
- /* 444 */
+ /* 437 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139539,7 +131779,7 @@
/***/ }),
- /* 445 */
+ /* 438 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139630,7 +131870,7 @@
/***/ }),
- /* 446 */
+ /* 439 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139721,7 +131961,7 @@
/***/ }),
- /* 447 */
+ /* 440 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139785,7 +132025,7 @@
/***/ }),
- /* 448 */
+ /* 441 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -139913,7 +132153,7 @@
/***/ }),
- /* 449 */
+ /* 442 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140043,7 +132283,7 @@
/***/ }),
- /* 450 */
+ /* 443 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140112,7 +132352,7 @@
/***/ }),
- /* 451 */
+ /* 444 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140177,7 +132417,7 @@
/***/ }),
- /* 452 */
+ /* 445 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140256,7 +132496,7 @@
/***/ }),
- /* 453 */
+ /* 446 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140442,7 +132682,7 @@
/***/ }),
- /* 454 */
+ /* 447 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140544,7 +132784,7 @@
/***/ }),
- /* 455 */
+ /* 448 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140608,7 +132848,7 @@
/***/ }),
- /* 456 */
+ /* 449 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140683,7 +132923,7 @@
/***/ }),
- /* 457 */
+ /* 450 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -140843,7 +133083,7 @@
/***/ }),
- /* 458 */
+ /* 451 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141020,7 +133260,7 @@
/***/ }),
- /* 459 */
+ /* 452 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141092,7 +133332,7 @@
/***/ }),
- /* 460 */
+ /* 453 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141207,7 +133447,7 @@
/***/ }),
- /* 461 */
+ /* 454 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141322,7 +133562,7 @@
/***/ }),
- /* 462 */
+ /* 455 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141414,7 +133654,7 @@
/***/ }),
- /* 463 */
+ /* 456 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141487,7 +133727,7 @@
/***/ }),
- /* 464 */
+ /* 457 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141550,7 +133790,7 @@
/***/ }),
- /* 465 */
+ /* 458 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141683,7 +133923,7 @@
/***/ }),
- /* 466 */
+ /* 459 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141776,7 +134016,7 @@
/***/ }),
- /* 467 */
+ /* 460 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141847,7 +134087,7 @@
/***/ }),
- /* 468 */
+ /* 461 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -141967,7 +134207,7 @@
/***/ }),
- /* 469 */
+ /* 462 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142038,7 +134278,7 @@
/***/ }),
- /* 470 */
+ /* 463 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142104,7 +134344,7 @@
/***/ }),
- /* 471 */
+ /* 464 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142230,7 +134470,7 @@
/***/ }),
- /* 472 */
+ /* 465 */
/***/ (function(module, exports, __webpack_require__) {
@@ -142328,7 +134568,7 @@
/***/ }),
- /* 473 */
+ /* 466 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142423,7 +134663,7 @@
/***/ }),
- /* 474 */
+ /* 467 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142485,7 +134725,7 @@
/***/ }),
- /* 475 */
+ /* 468 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142547,7 +134787,7 @@
/***/ }),
- /* 476 */
+ /* 469 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js language configuration
@@ -142670,7 +134910,7 @@
/***/ }),
- /* 477 */
+ /* 470 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142828,7 +135068,7 @@
/***/ }),
- /* 478 */
+ /* 471 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142930,7 +135170,7 @@
/***/ }),
- /* 479 */
+ /* 472 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -142992,7 +135232,7 @@
/***/ }),
- /* 480 */
+ /* 473 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -143054,7 +135294,7 @@
/***/ }),
- /* 481 */
+ /* 474 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -143137,7 +135377,7 @@
/***/ }),
- /* 482 */
+ /* 475 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -143209,7 +135449,7 @@
/***/ }),
- /* 483 */
+ /* 476 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -143273,7 +135513,7 @@
/***/ }),
- /* 484 */
+ /* 477 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -143380,7 +135620,7 @@
/***/ }),
- /* 485 */
+ /* 478 */
/***/ (function(module, exports, __webpack_require__) {
//! moment.js locale configuration
@@ -143487,7 +135727,7 @@
/***/ }),
- /* 486 */
+ /* 479 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -143515,39 +135755,7 @@
module.exports = exports['default'];
/***/ }),
- /* 487 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
- }
-
- /***/ }),
- /* 488 */
+ /* 480 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -143569,7 +135777,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _DecadePanel = __webpack_require__(489);
+ var _DecadePanel = __webpack_require__(481);
var _DecadePanel2 = _interopRequireDefault(_DecadePanel);
@@ -143855,7 +136063,7 @@
module.exports = exports['default'];
/***/ }),
- /* 489 */
+ /* 481 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144068,7 +136276,7 @@
module.exports = exports['default'];
/***/ }),
- /* 490 */
+ /* 482 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144092,7 +136300,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _mapSelf = __webpack_require__(486);
+ var _mapSelf = __webpack_require__(479);
var _mapSelf2 = _interopRequireDefault(_mapSelf);
@@ -144100,15 +136308,15 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _TodayButton = __webpack_require__(491);
+ var _TodayButton = __webpack_require__(483);
var _TodayButton2 = _interopRequireDefault(_TodayButton);
- var _OkButton = __webpack_require__(492);
+ var _OkButton = __webpack_require__(484);
var _OkButton2 = _interopRequireDefault(_OkButton);
- var _TimePickerButton = __webpack_require__(493);
+ var _TimePickerButton = __webpack_require__(485);
var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);
@@ -144205,7 +136413,7 @@
module.exports = exports['default'];
/***/ }),
- /* 491 */
+ /* 483 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144220,7 +136428,7 @@
var _react2 = _interopRequireDefault(_react);
- var _util = __webpack_require__(32);
+ var _util = __webpack_require__(33);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -144252,7 +136460,7 @@
module.exports = exports['default'];
/***/ }),
- /* 492 */
+ /* 484 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144267,7 +136475,7 @@
var _react2 = _interopRequireDefault(_react);
- var _beeButton = __webpack_require__(1363);
+ var _beeButton = __webpack_require__(1339);
var _beeButton2 = _interopRequireDefault(_beeButton);
@@ -144297,7 +136505,7 @@
module.exports = exports['default'];
/***/ }),
- /* 493 */
+ /* 485 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144348,7 +136556,7 @@
module.exports = exports['default'];
/***/ }),
- /* 494 */
+ /* 486 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144376,7 +136584,7 @@
var _moment2 = _interopRequireDefault(_moment);
- var _index = __webpack_require__(32);
+ var _index = __webpack_require__(33);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -144505,7 +136713,7 @@
};
/***/ }),
- /* 495 */
+ /* 487 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144548,7 +136756,7 @@
module.exports = exports['default'];
/***/ }),
- /* 496 */
+ /* 488 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144584,7 +136792,39 @@
}
/***/ }),
- /* 497 */
+ /* 489 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
+ }
+
+ /***/ }),
+ /* 490 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -144623,7 +136863,7 @@
}
/***/ }),
- /* 498 */
+ /* 491 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -144689,7 +136929,7 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 499 */
+ /* 492 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -144708,9 +136948,9 @@
var _classnames = _interopRequireDefault(__webpack_require__(2));
- var _Header = _interopRequireDefault(__webpack_require__(1370));
+ var _Header = _interopRequireDefault(__webpack_require__(1359));
- var _Combobox = _interopRequireDefault(__webpack_require__(1371));
+ var _Combobox = _interopRequireDefault(__webpack_require__(1360));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -144926,7 +137166,6 @@
disabledSeconds: disabledSeconds,
onCurrentSelectPanelChange: this.onCurrentSelectPanelChange,
use12Hours: use12Hours,
- onEsc: onEsc,
isAM: this.isAM()
}), addon(this));
}
@@ -144982,7 +137221,27 @@
exports["default"] = _default;
/***/ }),
- /* 500 */
+ /* 493 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _FormControl = __webpack_require__(1373);
+
+ var _FormControl2 = _interopRequireDefault(_FormControl);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _FormControl2["default"];
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 494 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145039,7 +137298,7 @@
};
/***/ }),
- /* 501 */
+ /* 495 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145083,7 +137342,7 @@
}
/***/ }),
- /* 502 */
+ /* 496 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145144,7 +137403,7 @@
module.exports = exports['default'];
/***/ }),
- /* 503 */
+ /* 497 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145189,7 +137448,7 @@
module.exports = exports['default'];
/***/ }),
- /* 504 */
+ /* 498 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145564,39 +137823,39 @@
}
/***/ }),
- /* 505 */
+ /* 499 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 506 */
+ /* 500 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145618,11 +137877,11 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _ownerDocument = __webpack_require__(115);
+ var _ownerDocument = __webpack_require__(114);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _getContainer = __webpack_require__(507);
+ var _getContainer = __webpack_require__(501);
var _getContainer2 = _interopRequireDefault(_getContainer);
@@ -145642,16 +137901,16 @@
var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
var propTypes = {
- /**
- * 存放子组件的容器
+ /**
+ * 存放子组件的容器
*/
container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func])
};
var defaultProps = {};
- /**
- * Portal组件是将子组件渲染
+ /**
+ * Portal组件是将子组件渲染
*/
var Portal = function (_Component) {
@@ -145729,8 +137988,8 @@
return null;
};
- /**
- * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
+ /**
+ * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
*/
Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {
@@ -145740,8 +137999,8 @@
this.portalContainerNode.appendChild(this.overlayTarget);
}
};
- /**
- * 将要添加的子元素从容器中移除,并把变量置为null
+ /**
+ * 将要添加的子元素从容器中移除,并把变量置为null
*/
@@ -145752,8 +138011,8 @@
}
this.portalContainerNode = null;
};
- /**
- * 手动渲染_overlayTarget
+ /**
+ * 手动渲染_overlayTarget
*/
@@ -145771,8 +138030,8 @@
this.unmountOverlayTarget();
}
};
- /**
- * 销毁_overlayTarget组件。并把_overlayInstance置为null
+ /**
+ * 销毁_overlayTarget组件。并把_overlayInstance置为null
*/
@@ -145805,7 +138064,7 @@
module.exports = exports['default'];
/***/ }),
- /* 507 */
+ /* 501 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145822,11 +138081,11 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
+ /**
+ * 获取容器组件
+ * @param {[type]} container [description]
+ * @param {[type]} defaultContainer [description]
+ * @return {[type]} [description]
*/
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : container;
@@ -145835,39 +138094,39 @@
module.exports = exports['default'];
/***/ }),
- /* 508 */
+ /* 502 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 509 */
+ /* 503 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145878,15 +138137,15 @@
});
exports.default = offset;
- var _contains = __webpack_require__(114);
+ var _contains = __webpack_require__(113);
var _contains2 = _interopRequireDefault(_contains);
- var _isWindow = __webpack_require__(192);
+ var _isWindow = __webpack_require__(190);
var _isWindow2 = _interopRequireDefault(_isWindow);
- var _ownerDocument = __webpack_require__(87);
+ var _ownerDocument = __webpack_require__(86);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
@@ -145920,7 +138179,7 @@
module.exports = exports['default'];
/***/ }),
- /* 510 */
+ /* 504 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145931,7 +138190,7 @@
});
exports.default = camelizeStyleName;
- var _camelize = __webpack_require__(1448);
+ var _camelize = __webpack_require__(1443);
var _camelize2 = _interopRequireDefault(_camelize);
@@ -145948,7 +138207,7 @@
module.exports = exports['default'];
/***/ }),
- /* 511 */
+ /* 505 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145959,7 +138218,7 @@
});
exports.default = scrollTop;
- var _isWindow = __webpack_require__(192);
+ var _isWindow = __webpack_require__(190);
var _isWindow2 = _interopRequireDefault(_isWindow);
@@ -145975,7 +138234,7 @@
module.exports = exports['default'];
/***/ }),
- /* 512 */
+ /* 506 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -145995,11 +138254,11 @@
};
};
- var _on = __webpack_require__(88);
+ var _on = __webpack_require__(87);
var _on2 = _interopRequireDefault(_on);
- var _off = __webpack_require__(195);
+ var _off = __webpack_require__(193);
var _off2 = _interopRequireDefault(_off);
@@ -146008,7 +138267,7 @@
module.exports = exports['default'];
/***/ }),
- /* 513 */
+ /* 507 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -146029,19 +138288,19 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _events = __webpack_require__(1464);
+ var _events = __webpack_require__(1459);
var _events2 = _interopRequireDefault(_events);
- var _ownerDocument = __webpack_require__(87);
+ var _ownerDocument = __webpack_require__(86);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _inDOM = __webpack_require__(43);
+ var _inDOM = __webpack_require__(42);
var _inDOM2 = _interopRequireDefault(_inDOM);
- var _scrollbarSize = __webpack_require__(1468);
+ var _scrollbarSize = __webpack_require__(1463);
var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
@@ -146053,7 +138312,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _Modal = __webpack_require__(167);
+ var _Modal = __webpack_require__(164);
var _Modal2 = _interopRequireDefault(_Modal);
@@ -146063,25 +138322,25 @@
var _tinperBeeCore = __webpack_require__(30);
- var _beeTransition = __webpack_require__(1469);
+ var _beeTransition = __webpack_require__(1464);
- var _ModalBody = __webpack_require__(1473);
+ var _ModalBody = __webpack_require__(1468);
var _ModalBody2 = _interopRequireDefault(_ModalBody);
- var _ModalDialog = __webpack_require__(1474);
+ var _ModalDialog = __webpack_require__(1469);
var _ModalDialog2 = _interopRequireDefault(_ModalDialog);
- var _ModalFooter = __webpack_require__(1475);
+ var _ModalFooter = __webpack_require__(1470);
var _ModalFooter2 = _interopRequireDefault(_ModalFooter);
- var _ModalHeader = __webpack_require__(1476);
+ var _ModalHeader = __webpack_require__(1471);
var _ModalHeader2 = _interopRequireDefault(_ModalHeader);
- var _ModalTitle = __webpack_require__(1477);
+ var _ModalTitle = __webpack_require__(1472);
var _ModalTitle2 = _interopRequireDefault(_ModalTitle);
@@ -146381,7 +138640,7 @@
exports["default"] = Modal;
/***/ }),
- /* 514 */
+ /* 508 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -146391,7 +138650,7 @@
value: true
});
- var _Button = __webpack_require__(1479);
+ var _Button = __webpack_require__(1474);
var _Button2 = _interopRequireDefault(_Button);
@@ -146401,7 +138660,7 @@
module.exports = exports['default'];
/***/ }),
- /* 515 */
+ /* 509 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/**
@@ -146782,10 +139041,10 @@
module.exports = debounce;
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(36)))
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(37)))
/***/ }),
- /* 516 */
+ /* 510 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -146807,7 +139066,7 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _splitObject3 = __webpack_require__(517);
+ var _splitObject3 = __webpack_require__(511);
var _splitObject4 = _interopRequireDefault(_splitObject3);
@@ -146898,7 +139157,7 @@
module.exports = exports['default'];
/***/ }),
- /* 517 */
+ /* 511 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -146923,7 +139182,7 @@
module.exports = exports["default"];
/***/ }),
- /* 518 */
+ /* 512 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -146933,7 +139192,7 @@
value: true
});
- var _Transfer = __webpack_require__(1504);
+ var _Transfer = __webpack_require__(1499);
var _Transfer2 = _interopRequireDefault(_Transfer);
@@ -146943,7 +139202,7 @@
module.exports = exports['default'];
/***/ }),
- /* 519 */
+ /* 513 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -146957,11 +139216,11 @@
var _react2 = _interopRequireDefault(_react);
- var _beeIcon = __webpack_require__(116);
+ var _beeIcon = __webpack_require__(115);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
- var _beeFormControl = __webpack_require__(1507);
+ var _beeFormControl = __webpack_require__(1502);
var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
@@ -147058,54 +139317,54 @@
module.exports = exports['default'];
/***/ }),
- /* 520 */
+ /* 514 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- /**
- * 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.
- *
- * @providesModule ReactComponentWithPureRenderMixin
+ /**
+ * 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.
+ *
+ * @providesModule ReactComponentWithPureRenderMixin
*/
- var shallowEqual = __webpack_require__(1509);
+ var shallowEqual = __webpack_require__(1504);
function shallowCompare(instance, nextProps, nextState) {
return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);
}
- /**
- * If your React component's render function is "pure", e.g. it will render the
- * same result given the same props and state, provide this mixin for a
- * considerable performance boost.
- *
- * Most React components have pure render functions.
- *
- * Example:
- *
- * var ReactComponentWithPureRenderMixin =
- * require('ReactComponentWithPureRenderMixin');
- * React.createClass({
- * mixins: [ReactComponentWithPureRenderMixin],
- *
- * render: function() {
- * return foo
;
- * }
- * });
- *
- * Note: This only checks shallow equality for props and state. If these contain
- * complex data structures this mixin may have false-negatives for deeper
- * differences. Only mixin to components which have simple props and state, or
- * use `forceUpdate()` when you know deep data structures have changed.
- *
- * See https://facebook.github.io/react/docs/pure-render-mixin.html
+ /**
+ * If your React component's render function is "pure", e.g. it will render the
+ * same result given the same props and state, provide this mixin for a
+ * considerable performance boost.
+ *
+ * Most React components have pure render functions.
+ *
+ * Example:
+ *
+ * var ReactComponentWithPureRenderMixin =
+ * require('ReactComponentWithPureRenderMixin');
+ * React.createClass({
+ * mixins: [ReactComponentWithPureRenderMixin],
+ *
+ * render: function() {
+ * return foo
;
+ * }
+ * });
+ *
+ * Note: This only checks shallow equality for props and state. If these contain
+ * complex data structures this mixin may have false-negatives for deeper
+ * differences. Only mixin to components which have simple props and state, or
+ * use `forceUpdate()` when you know deep data structures have changed.
+ *
+ * See https://facebook.github.io/react/docs/pure-render-mixin.html
*/
var ReactComponentWithPureRenderMixin = {
shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {
@@ -147116,7 +139375,7 @@
module.exports = ReactComponentWithPureRenderMixin;
/***/ }),
- /* 521 */
+ /* 515 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -147126,11 +139385,11 @@
value: true
});
- var _Checkbox = __webpack_require__(522);
+ var _Checkbox = __webpack_require__(516);
var _Checkbox2 = _interopRequireDefault(_Checkbox);
- var _CheckboxGroup = __webpack_require__(1517);
+ var _CheckboxGroup = __webpack_require__(1512);
var _CheckboxGroup2 = _interopRequireDefault(_CheckboxGroup);
@@ -147141,7 +139400,7 @@
module.exports = exports['default'];
/***/ }),
- /* 522 */
+ /* 516 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -147338,71 +139597,71 @@
module.exports = exports['default'];
/***/ }),
- /* 523 */
+ /* 517 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 524 */
+ /* 518 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 525 */
+ /* 519 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -147453,7 +139712,7 @@
module.exports = exports['default'];
/***/ }),
- /* 526 */
+ /* 520 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -147475,7 +139734,7 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _addEventListener = __webpack_require__(1563);
+ var _addEventListener = __webpack_require__(1558);
var _addEventListener2 = _interopRequireDefault(_addEventListener);
@@ -147487,19 +139746,19 @@
var _warning2 = _interopRequireDefault(_warning);
- var _Steps = __webpack_require__(1564);
+ var _Steps = __webpack_require__(1559);
var _Steps2 = _interopRequireDefault(_Steps);
- var _Marks = __webpack_require__(1565);
+ var _Marks = __webpack_require__(1560);
var _Marks2 = _interopRequireDefault(_Marks);
- var _Handle = __webpack_require__(199);
+ var _Handle = __webpack_require__(197);
var _Handle2 = _interopRequireDefault(_Handle);
- var _utils = __webpack_require__(200);
+ var _utils = __webpack_require__(198);
var utils = _interopRequireWildcard(_utils);
@@ -147517,9 +139776,9 @@
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) : _defaults(subClass, superClass); } /**
- * This source code is quoted from rc-slider.
- * homepage: https://github.com/react-component/slider
+ 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) : _defaults(subClass, superClass); } /**
+ * This source code is quoted from rc-slider.
+ * homepage: https://github.com/react-component/slider
*/
@@ -147867,537 +140126,537 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 527 */
+ /* 521 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
-
-
- /**
- * @ignore
- * some key-codes definition and utils from closure-library
- * @author yiminghe@gmail.com
- */
-
- var KeyCode = {
- /**
- * MAC_ENTER
- */
- MAC_ENTER: 3,
- /**
- * BACKSPACE
- */
- BACKSPACE: 8,
- /**
- * TAB
- */
- TAB: 9,
- /**
- * NUMLOCK on FF/Safari Mac
- */
- NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
- /**
- * ENTER
- */
- ENTER: 13,
- /**
- * SHIFT
- */
- SHIFT: 16,
- /**
- * CTRL
- */
- CTRL: 17,
- /**
- * ALT
- */
- ALT: 18,
- /**
- * PAUSE
- */
- PAUSE: 19,
- /**
- * CAPS_LOCK
- */
- CAPS_LOCK: 20,
- /**
- * ESC
- */
- ESC: 27,
- /**
- * SPACE
- */
- SPACE: 32,
- /**
- * PAGE_UP
- */
- PAGE_UP: 33, // also NUM_NORTH_EAST
- /**
- * PAGE_DOWN
- */
- PAGE_DOWN: 34, // also NUM_SOUTH_EAST
- /**
- * END
- */
- END: 35, // also NUM_SOUTH_WEST
- /**
- * HOME
- */
- HOME: 36, // also NUM_NORTH_WEST
- /**
- * LEFT
- */
- LEFT: 37, // also NUM_WEST
- /**
- * UP
- */
- UP: 38, // also NUM_NORTH
- /**
- * RIGHT
- */
- RIGHT: 39, // also NUM_EAST
- /**
- * DOWN
- */
- DOWN: 40, // also NUM_SOUTH
- /**
- * PRINT_SCREEN
- */
- PRINT_SCREEN: 44,
- /**
- * INSERT
- */
- INSERT: 45, // also NUM_INSERT
- /**
- * DELETE
- */
- DELETE: 46, // also NUM_DELETE
- /**
- * ZERO
- */
- ZERO: 48,
- /**
- * ONE
- */
- ONE: 49,
- /**
- * TWO
- */
- TWO: 50,
- /**
- * THREE
- */
- THREE: 51,
- /**
- * FOUR
- */
- FOUR: 52,
- /**
- * FIVE
- */
- FIVE: 53,
- /**
- * SIX
- */
- SIX: 54,
- /**
- * SEVEN
- */
- SEVEN: 55,
- /**
- * EIGHT
- */
- EIGHT: 56,
- /**
- * NINE
- */
- NINE: 57,
- /**
- * QUESTION_MARK
- */
- QUESTION_MARK: 63, // needs localization
- /**
- * A
- */
- A: 65,
- /**
- * B
- */
- B: 66,
- /**
- * C
- */
- C: 67,
- /**
- * D
- */
- D: 68,
- /**
- * E
- */
- E: 69,
- /**
- * F
- */
- F: 70,
- /**
- * G
- */
- G: 71,
- /**
- * H
- */
- H: 72,
- /**
- * I
- */
- I: 73,
- /**
- * J
- */
- J: 74,
- /**
- * K
- */
- K: 75,
- /**
- * L
- */
- L: 76,
- /**
- * M
- */
- M: 77,
- /**
- * N
- */
- N: 78,
- /**
- * O
- */
- O: 79,
- /**
- * P
- */
- P: 80,
- /**
- * Q
- */
- Q: 81,
- /**
- * R
- */
- R: 82,
- /**
- * S
- */
- S: 83,
- /**
- * T
- */
- T: 84,
- /**
- * U
- */
- U: 85,
- /**
- * V
- */
- V: 86,
- /**
- * W
- */
- W: 87,
- /**
- * X
- */
- X: 88,
- /**
- * Y
- */
- Y: 89,
- /**
- * Z
- */
- Z: 90,
- /**
- * META
- */
- META: 91, // WIN_KEY_LEFT
- /**
- * WIN_KEY_RIGHT
- */
- WIN_KEY_RIGHT: 92,
- /**
- * CONTEXT_MENU
- */
- CONTEXT_MENU: 93,
- /**
- * NUM_ZERO
- */
- NUM_ZERO: 96,
- /**
- * NUM_ONE
- */
- NUM_ONE: 97,
- /**
- * NUM_TWO
- */
- NUM_TWO: 98,
- /**
- * NUM_THREE
- */
- NUM_THREE: 99,
- /**
- * NUM_FOUR
- */
- NUM_FOUR: 100,
- /**
- * NUM_FIVE
- */
- NUM_FIVE: 101,
- /**
- * NUM_SIX
- */
- NUM_SIX: 102,
- /**
- * NUM_SEVEN
- */
- NUM_SEVEN: 103,
- /**
- * NUM_EIGHT
- */
- NUM_EIGHT: 104,
- /**
- * NUM_NINE
- */
- NUM_NINE: 105,
- /**
- * NUM_MULTIPLY
- */
- NUM_MULTIPLY: 106,
- /**
- * NUM_PLUS
- */
- NUM_PLUS: 107,
- /**
- * NUM_MINUS
- */
- NUM_MINUS: 109,
- /**
- * NUM_PERIOD
- */
- NUM_PERIOD: 110,
- /**
- * NUM_DIVISION
- */
- NUM_DIVISION: 111,
- /**
- * F1
- */
- F1: 112,
- /**
- * F2
- */
- F2: 113,
- /**
- * F3
- */
- F3: 114,
- /**
- * F4
- */
- F4: 115,
- /**
- * F5
- */
- F5: 116,
- /**
- * F6
- */
- F6: 117,
- /**
- * F7
- */
- F7: 118,
- /**
- * F8
- */
- F8: 119,
- /**
- * F9
- */
- F9: 120,
- /**
- * F10
- */
- F10: 121,
- /**
- * F11
- */
- F11: 122,
- /**
- * F12
- */
- F12: 123,
- /**
- * NUMLOCK
- */
- NUMLOCK: 144,
- /**
- * SEMICOLON
- */
- SEMICOLON: 186, // needs localization
- /**
- * DASH
- */
- DASH: 189, // needs localization
- /**
- * EQUALS
- */
- EQUALS: 187, // needs localization
- /**
- * COMMA
- */
- COMMA: 188, // needs localization
- /**
- * PERIOD
- */
- PERIOD: 190, // needs localization
- /**
- * SLASH
- */
- SLASH: 191, // needs localization
- /**
- * APOSTROPHE
- */
- APOSTROPHE: 192, // needs localization
- /**
- * SINGLE_QUOTE
- */
- SINGLE_QUOTE: 222, // needs localization
- /**
- * OPEN_SQUARE_BRACKET
- */
- OPEN_SQUARE_BRACKET: 219, // needs localization
- /**
- * BACKSLASH
- */
- BACKSLASH: 220, // needs localization
- /**
- * CLOSE_SQUARE_BRACKET
- */
- CLOSE_SQUARE_BRACKET: 221, // needs localization
- /**
- * WIN_KEY
- */
- WIN_KEY: 224,
- /**
- * MAC_FF_META
- */
- MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
- /**
- * WIN_IME
- */
- WIN_IME: 229
- };
-
- /*
- whether text and modified key is entered at the same time.
- */
- KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
- var keyCode = e.keyCode;
- if (e.altKey && !e.ctrlKey || e.metaKey ||
- // Function keys don't generate text
- keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
- return false;
- }
-
- // The following keys are quite harmless, even in combination with
- // CTRL, ALT or SHIFT.
- switch (keyCode) {
- case KeyCode.ALT:
- case KeyCode.CAPS_LOCK:
- case KeyCode.CONTEXT_MENU:
- case KeyCode.CTRL:
- case KeyCode.DOWN:
- case KeyCode.END:
- case KeyCode.ESC:
- case KeyCode.HOME:
- case KeyCode.INSERT:
- case KeyCode.LEFT:
- case KeyCode.MAC_FF_META:
- case KeyCode.META:
- case KeyCode.NUMLOCK:
- case KeyCode.NUM_CENTER:
- case KeyCode.PAGE_DOWN:
- case KeyCode.PAGE_UP:
- case KeyCode.PAUSE:
- case KeyCode.PRINT_SCREEN:
- case KeyCode.RIGHT:
- case KeyCode.SHIFT:
- case KeyCode.UP:
- case KeyCode.WIN_KEY:
- case KeyCode.WIN_KEY_RIGHT:
- return false;
- default:
- return true;
- }
- };
-
- /*
- whether character is entered.
- */
- KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
- if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
- return true;
- }
-
- if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
- return true;
- }
-
- if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
- return true;
- }
-
- // Safari sends zero key code for non-latin characters.
- if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
- return true;
- }
-
- switch (keyCode) {
- case KeyCode.SPACE:
- case KeyCode.QUESTION_MARK:
- case KeyCode.NUM_PLUS:
- case KeyCode.NUM_MINUS:
- case KeyCode.NUM_PERIOD:
- case KeyCode.NUM_DIVISION:
- case KeyCode.SEMICOLON:
- case KeyCode.DASH:
- case KeyCode.EQUALS:
- case KeyCode.COMMA:
- case KeyCode.PERIOD:
- case KeyCode.SLASH:
- case KeyCode.APOSTROPHE:
- case KeyCode.SINGLE_QUOTE:
- case KeyCode.OPEN_SQUARE_BRACKET:
- case KeyCode.BACKSLASH:
- case KeyCode.CLOSE_SQUARE_BRACKET:
- return true;
- default:
- return false;
- }
- };
-
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+
+ /**
+ * @ignore
+ * some key-codes definition and utils from closure-library
+ * @author yiminghe@gmail.com
+ */
+
+ var KeyCode = {
+ /**
+ * MAC_ENTER
+ */
+ MAC_ENTER: 3,
+ /**
+ * BACKSPACE
+ */
+ BACKSPACE: 8,
+ /**
+ * TAB
+ */
+ TAB: 9,
+ /**
+ * NUMLOCK on FF/Safari Mac
+ */
+ NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
+ /**
+ * ENTER
+ */
+ ENTER: 13,
+ /**
+ * SHIFT
+ */
+ SHIFT: 16,
+ /**
+ * CTRL
+ */
+ CTRL: 17,
+ /**
+ * ALT
+ */
+ ALT: 18,
+ /**
+ * PAUSE
+ */
+ PAUSE: 19,
+ /**
+ * CAPS_LOCK
+ */
+ CAPS_LOCK: 20,
+ /**
+ * ESC
+ */
+ ESC: 27,
+ /**
+ * SPACE
+ */
+ SPACE: 32,
+ /**
+ * PAGE_UP
+ */
+ PAGE_UP: 33, // also NUM_NORTH_EAST
+ /**
+ * PAGE_DOWN
+ */
+ PAGE_DOWN: 34, // also NUM_SOUTH_EAST
+ /**
+ * END
+ */
+ END: 35, // also NUM_SOUTH_WEST
+ /**
+ * HOME
+ */
+ HOME: 36, // also NUM_NORTH_WEST
+ /**
+ * LEFT
+ */
+ LEFT: 37, // also NUM_WEST
+ /**
+ * UP
+ */
+ UP: 38, // also NUM_NORTH
+ /**
+ * RIGHT
+ */
+ RIGHT: 39, // also NUM_EAST
+ /**
+ * DOWN
+ */
+ DOWN: 40, // also NUM_SOUTH
+ /**
+ * PRINT_SCREEN
+ */
+ PRINT_SCREEN: 44,
+ /**
+ * INSERT
+ */
+ INSERT: 45, // also NUM_INSERT
+ /**
+ * DELETE
+ */
+ DELETE: 46, // also NUM_DELETE
+ /**
+ * ZERO
+ */
+ ZERO: 48,
+ /**
+ * ONE
+ */
+ ONE: 49,
+ /**
+ * TWO
+ */
+ TWO: 50,
+ /**
+ * THREE
+ */
+ THREE: 51,
+ /**
+ * FOUR
+ */
+ FOUR: 52,
+ /**
+ * FIVE
+ */
+ FIVE: 53,
+ /**
+ * SIX
+ */
+ SIX: 54,
+ /**
+ * SEVEN
+ */
+ SEVEN: 55,
+ /**
+ * EIGHT
+ */
+ EIGHT: 56,
+ /**
+ * NINE
+ */
+ NINE: 57,
+ /**
+ * QUESTION_MARK
+ */
+ QUESTION_MARK: 63, // needs localization
+ /**
+ * A
+ */
+ A: 65,
+ /**
+ * B
+ */
+ B: 66,
+ /**
+ * C
+ */
+ C: 67,
+ /**
+ * D
+ */
+ D: 68,
+ /**
+ * E
+ */
+ E: 69,
+ /**
+ * F
+ */
+ F: 70,
+ /**
+ * G
+ */
+ G: 71,
+ /**
+ * H
+ */
+ H: 72,
+ /**
+ * I
+ */
+ I: 73,
+ /**
+ * J
+ */
+ J: 74,
+ /**
+ * K
+ */
+ K: 75,
+ /**
+ * L
+ */
+ L: 76,
+ /**
+ * M
+ */
+ M: 77,
+ /**
+ * N
+ */
+ N: 78,
+ /**
+ * O
+ */
+ O: 79,
+ /**
+ * P
+ */
+ P: 80,
+ /**
+ * Q
+ */
+ Q: 81,
+ /**
+ * R
+ */
+ R: 82,
+ /**
+ * S
+ */
+ S: 83,
+ /**
+ * T
+ */
+ T: 84,
+ /**
+ * U
+ */
+ U: 85,
+ /**
+ * V
+ */
+ V: 86,
+ /**
+ * W
+ */
+ W: 87,
+ /**
+ * X
+ */
+ X: 88,
+ /**
+ * Y
+ */
+ Y: 89,
+ /**
+ * Z
+ */
+ Z: 90,
+ /**
+ * META
+ */
+ META: 91, // WIN_KEY_LEFT
+ /**
+ * WIN_KEY_RIGHT
+ */
+ WIN_KEY_RIGHT: 92,
+ /**
+ * CONTEXT_MENU
+ */
+ CONTEXT_MENU: 93,
+ /**
+ * NUM_ZERO
+ */
+ NUM_ZERO: 96,
+ /**
+ * NUM_ONE
+ */
+ NUM_ONE: 97,
+ /**
+ * NUM_TWO
+ */
+ NUM_TWO: 98,
+ /**
+ * NUM_THREE
+ */
+ NUM_THREE: 99,
+ /**
+ * NUM_FOUR
+ */
+ NUM_FOUR: 100,
+ /**
+ * NUM_FIVE
+ */
+ NUM_FIVE: 101,
+ /**
+ * NUM_SIX
+ */
+ NUM_SIX: 102,
+ /**
+ * NUM_SEVEN
+ */
+ NUM_SEVEN: 103,
+ /**
+ * NUM_EIGHT
+ */
+ NUM_EIGHT: 104,
+ /**
+ * NUM_NINE
+ */
+ NUM_NINE: 105,
+ /**
+ * NUM_MULTIPLY
+ */
+ NUM_MULTIPLY: 106,
+ /**
+ * NUM_PLUS
+ */
+ NUM_PLUS: 107,
+ /**
+ * NUM_MINUS
+ */
+ NUM_MINUS: 109,
+ /**
+ * NUM_PERIOD
+ */
+ NUM_PERIOD: 110,
+ /**
+ * NUM_DIVISION
+ */
+ NUM_DIVISION: 111,
+ /**
+ * F1
+ */
+ F1: 112,
+ /**
+ * F2
+ */
+ F2: 113,
+ /**
+ * F3
+ */
+ F3: 114,
+ /**
+ * F4
+ */
+ F4: 115,
+ /**
+ * F5
+ */
+ F5: 116,
+ /**
+ * F6
+ */
+ F6: 117,
+ /**
+ * F7
+ */
+ F7: 118,
+ /**
+ * F8
+ */
+ F8: 119,
+ /**
+ * F9
+ */
+ F9: 120,
+ /**
+ * F10
+ */
+ F10: 121,
+ /**
+ * F11
+ */
+ F11: 122,
+ /**
+ * F12
+ */
+ F12: 123,
+ /**
+ * NUMLOCK
+ */
+ NUMLOCK: 144,
+ /**
+ * SEMICOLON
+ */
+ SEMICOLON: 186, // needs localization
+ /**
+ * DASH
+ */
+ DASH: 189, // needs localization
+ /**
+ * EQUALS
+ */
+ EQUALS: 187, // needs localization
+ /**
+ * COMMA
+ */
+ COMMA: 188, // needs localization
+ /**
+ * PERIOD
+ */
+ PERIOD: 190, // needs localization
+ /**
+ * SLASH
+ */
+ SLASH: 191, // needs localization
+ /**
+ * APOSTROPHE
+ */
+ APOSTROPHE: 192, // needs localization
+ /**
+ * SINGLE_QUOTE
+ */
+ SINGLE_QUOTE: 222, // needs localization
+ /**
+ * OPEN_SQUARE_BRACKET
+ */
+ OPEN_SQUARE_BRACKET: 219, // needs localization
+ /**
+ * BACKSLASH
+ */
+ BACKSLASH: 220, // needs localization
+ /**
+ * CLOSE_SQUARE_BRACKET
+ */
+ CLOSE_SQUARE_BRACKET: 221, // needs localization
+ /**
+ * WIN_KEY
+ */
+ WIN_KEY: 224,
+ /**
+ * MAC_FF_META
+ */
+ MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
+ /**
+ * WIN_IME
+ */
+ WIN_IME: 229
+ };
+
+ /*
+ whether text and modified key is entered at the same time.
+ */
+ KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
+ var keyCode = e.keyCode;
+ if (e.altKey && !e.ctrlKey || e.metaKey ||
+ // Function keys don't generate text
+ keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
+ return false;
+ }
+
+ // The following keys are quite harmless, even in combination with
+ // CTRL, ALT or SHIFT.
+ switch (keyCode) {
+ case KeyCode.ALT:
+ case KeyCode.CAPS_LOCK:
+ case KeyCode.CONTEXT_MENU:
+ case KeyCode.CTRL:
+ case KeyCode.DOWN:
+ case KeyCode.END:
+ case KeyCode.ESC:
+ case KeyCode.HOME:
+ case KeyCode.INSERT:
+ case KeyCode.LEFT:
+ case KeyCode.MAC_FF_META:
+ case KeyCode.META:
+ case KeyCode.NUMLOCK:
+ case KeyCode.NUM_CENTER:
+ case KeyCode.PAGE_DOWN:
+ case KeyCode.PAGE_UP:
+ case KeyCode.PAUSE:
+ case KeyCode.PRINT_SCREEN:
+ case KeyCode.RIGHT:
+ case KeyCode.SHIFT:
+ case KeyCode.UP:
+ case KeyCode.WIN_KEY:
+ case KeyCode.WIN_KEY_RIGHT:
+ return false;
+ default:
+ return true;
+ }
+ };
+
+ /*
+ whether character is entered.
+ */
+ KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
+ if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
+ return true;
+ }
+
+ if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
+ return true;
+ }
+
+ if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
+ return true;
+ }
+
+ // Safari sends zero key code for non-latin characters.
+ if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
+ return true;
+ }
+
+ switch (keyCode) {
+ case KeyCode.SPACE:
+ case KeyCode.QUESTION_MARK:
+ case KeyCode.NUM_PLUS:
+ case KeyCode.NUM_MINUS:
+ case KeyCode.NUM_PERIOD:
+ case KeyCode.NUM_DIVISION:
+ case KeyCode.SEMICOLON:
+ case KeyCode.DASH:
+ case KeyCode.EQUALS:
+ case KeyCode.COMMA:
+ case KeyCode.PERIOD:
+ case KeyCode.SLASH:
+ case KeyCode.APOSTROPHE:
+ case KeyCode.SINGLE_QUOTE:
+ case KeyCode.OPEN_SQUARE_BRACKET:
+ case KeyCode.BACKSLASH:
+ case KeyCode.CLOSE_SQUARE_BRACKET:
+ return true;
+ default:
+ return false;
+ }
+ };
+
module.exports = KeyCode;
/***/ }),
- /* 528 */
+ /* 522 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -148419,15 +140678,15 @@
var _propTypes2 = _interopRequireDefault(_propTypes);
- var _ownerDocument = __webpack_require__(117);
+ var _ownerDocument = __webpack_require__(116);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _getContainer = __webpack_require__(529);
+ var _getContainer = __webpack_require__(523);
var _getContainer2 = _interopRequireDefault(_getContainer);
- var _tinperBeeCore = __webpack_require__(118);
+ var _tinperBeeCore = __webpack_require__(117);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -148443,16 +140702,16 @@
var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
var propTypes = {
- /**
- * 存放子组件的容器
+ /**
+ * 存放子组件的容器
*/
container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func])
};
var defaultProps = {};
- /**
- * Portal组件是将子组件渲染
+ /**
+ * Portal组件是将子组件渲染
*/
var Portal = function (_Component) {
@@ -148530,8 +140789,8 @@
return null;
};
- /**
- * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
+ /**
+ * 如果要添加的子组件不存在,就将div添加到要添加容器的DOM中;
*/
Portal.prototype.mountOverlayTarget = function mountOverlayTarget() {
@@ -148541,8 +140800,8 @@
this.portalContainerNode.appendChild(this.overlayTarget);
}
};
- /**
- * 将要添加的子元素从容器中移除,并把变量置为null
+ /**
+ * 将要添加的子元素从容器中移除,并把变量置为null
*/
@@ -148553,8 +140812,8 @@
}
this.portalContainerNode = null;
};
- /**
- * 手动渲染_overlayTarget
+ /**
+ * 手动渲染_overlayTarget
*/
@@ -148572,8 +140831,8 @@
this.unmountOverlayTarget();
}
};
- /**
- * 销毁_overlayTarget组件。并把_overlayInstance置为null
+ /**
+ * 销毁_overlayTarget组件。并把_overlayInstance置为null
*/
@@ -148606,7 +140865,7 @@
module.exports = exports['default'];
/***/ }),
- /* 529 */
+ /* 523 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -148623,11 +140882,11 @@
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
+ /**
+ * 获取容器组件
+ * @param {[type]} container [description]
+ * @param {[type]} defaultContainer [description]
+ * @return {[type]} [description]
*/
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : container;
@@ -148636,35 +140895,248 @@
module.exports = exports['default'];
/***/ }),
- /* 530 */
+ /* 524 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
+ }
+
+ /***/ }),
+ /* 525 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
- var _addDomEventListener = __webpack_require__(13);
+ exports["default"] = function (node, event, handler, capture) {
+ (0, _on2["default"])(node, event, handler, capture);
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+ return {
+ remove: function remove() {
+ (0, _off2["default"])(node, event, handler, capture);
+ }
+ };
+ };
+
+ var _on = __webpack_require__(21);
+
+ var _on2 = _interopRequireDefault(_on);
+
+ var _off = __webpack_require__(54);
+
+ var _off2 = _interopRequireDefault(_off);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 526 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function createChainedFunction() {
+ for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
+ funcs[_key] = arguments[_key];
+ }
+
+ return funcs.filter(function (f) {
+ return f != null;
+ }).reduce(function (acc, f) {
+ if (typeof f !== 'function') {
+ throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
+ }
+
+ if (acc === null) {
+ return f;
+ }
+
+ return function chainedFunction() {
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ acc.apply(this, args);
+ f.apply(this, args);
+ };
+ }, null);
+ }
+ exports.default = createChainedFunction;
+
+ /***/ }),
+ /* 527 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = splitComponentProps;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function _objectEntries(obj) {
+ var entries = [];
+ var keys = Object.keys(obj);
+
+ for (var k = 0; k < keys.length; ++k) {
+ entries.push([keys[k], obj[keys[k]]]);
+ }return entries;
+ }
+
+ /**
+ * 分割要传入父元素和子元素的props
+ * @param {[object]} props 传入的属性
+ * @param {[reactElement]} Component 组件
+ * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象
+ */
+ function splitComponentProps(props, Component) {
+ var componentPropTypes = Component.propTypes;
+
+ var parentProps = {};
+ var childProps = {};
+
+ _objectEntries(props).forEach(function (_ref) {
+ var propName = _ref[0],
+ propValue = _ref[1];
+
+ if (componentPropTypes[propName]) {
+ parentProps[propName] = propValue;
+ } else {
+ childProps[propName] = propValue;
+ }
+ });
+
+ return [parentProps, childProps];
+ }
+
+ /***/ }),
+ /* 528 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = getContainer;
var _reactDom = __webpack_require__(3);
var _reactDom2 = _interopRequireDefault(_reactDom);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
+ /**
+ * 获取容器组件
+ * @param {[type]} container [description]
+ * @param {[type]} defaultContainer [description]
+ * @return {[type]} [description]
*/
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+ function getContainer(container, defaultContainer) {
+ container = typeof container === 'function' ? container() : container;
+ return _reactDom2["default"].findDOMNode(container) || defaultContainer;
+ }
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 529 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = isRequiredForA11y;
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function isRequiredForA11y(validator) {
+ return function validate(props, propName, componentName, location, propFullName) {
+ var componentNameSafe = componentName || '<>';
+ var propFullNameSafe = propFullName || propName;
+
+ if (props[propName] == null) {
+ return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
+ args[_key - 5] = arguments[_key];
+ }
+
+ return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
+ };
+ }
+
+ /***/ }),
+ /* 530 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
@@ -148688,11 +141160,11 @@
};
};
- var _on = __webpack_require__(20);
+ var _on = __webpack_require__(21);
var _on2 = _interopRequireDefault(_on);
- var _off = __webpack_require__(42);
+ var _off = __webpack_require__(54);
var _off2 = _interopRequireDefault(_off);
@@ -148707,219 +141179,6 @@
"use strict";
- exports.__esModule = true;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function createChainedFunction() {
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
- funcs[_key] = arguments[_key];
- }
-
- return funcs.filter(function (f) {
- return f != null;
- }).reduce(function (acc, f) {
- if (typeof f !== 'function') {
- throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
- }
-
- if (acc === null) {
- return f;
- }
-
- return function chainedFunction() {
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- acc.apply(this, args);
- f.apply(this, args);
- };
- }, null);
- }
- exports.default = createChainedFunction;
-
- /***/ }),
- /* 533 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = splitComponentProps;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function _objectEntries(obj) {
- var entries = [];
- var keys = Object.keys(obj);
-
- for (var k = 0; k < keys.length; ++k) {
- entries.push([keys[k], obj[keys[k]]]);
- }return entries;
- }
-
- /**
- * 分割要传入父元素和子元素的props
- * @param {[object]} props 传入的属性
- * @param {[reactElement]} Component 组件
- * @return {[array]} 返回数组,第一个元素为父元素props对象,第二个子元素props对象
- */
- function splitComponentProps(props, Component) {
- var componentPropTypes = Component.propTypes;
-
- var parentProps = {};
- var childProps = {};
-
- _objectEntries(props).forEach(function (_ref) {
- var propName = _ref[0],
- propValue = _ref[1];
-
- if (componentPropTypes[propName]) {
- parentProps[propName] = propValue;
- } else {
- childProps[propName] = propValue;
- }
- });
-
- return [parentProps, childProps];
- }
-
- /***/ }),
- /* 534 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = getContainer;
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- /**
- * 获取容器组件
- * @param {[type]} container [description]
- * @param {[type]} defaultContainer [description]
- * @return {[type]} [description]
- */
- function getContainer(container, defaultContainer) {
- container = typeof container === 'function' ? container() : container;
- return _reactDom2["default"].findDOMNode(container) || defaultContainer;
- }
- module.exports = exports['default'];
-
- /***/ }),
- /* 535 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = isRequiredForA11y;
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function isRequiredForA11y(validator) {
- return function validate(props, propName, componentName, location, propFullName) {
- var componentNameSafe = componentName || '<>';
- var propFullNameSafe = propFullName || propName;
-
- if (props[propName] == null) {
- return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');
- }
-
- for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
- args[_key - 5] = arguments[_key];
- }
-
- return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
- };
- }
-
- /***/ }),
- /* 536 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
-
- var _addDomEventListener = __webpack_require__(13);
-
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
- }
-
- /***/ }),
- /* 537 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- exports["default"] = function (node, event, handler, capture) {
- (0, _on2["default"])(node, event, handler, capture);
-
- return {
- remove: function remove() {
- (0, _off2["default"])(node, event, handler, capture);
- }
- };
- };
-
- var _on = __webpack_require__(20);
-
- var _on2 = _interopRequireDefault(_on);
-
- var _off = __webpack_require__(42);
-
- var _off2 = _interopRequireDefault(_off);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- module.exports = exports['default'];
-
- /***/ }),
- /* 538 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -148935,19 +141194,19 @@
var _classnames2 = _interopRequireDefault(_classnames);
- var _events = __webpack_require__(1655);
+ var _events = __webpack_require__(1644);
var _events2 = _interopRequireDefault(_events);
- var _ownerDocument = __webpack_require__(1660);
+ var _ownerDocument = __webpack_require__(1648);
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
- var _inDOM = __webpack_require__(57);
+ var _inDOM = __webpack_require__(56);
var _inDOM2 = _interopRequireDefault(_inDOM);
- var _scrollbarSize = __webpack_require__(1661);
+ var _scrollbarSize = __webpack_require__(1649);
var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
@@ -148959,7 +141218,7 @@
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _Modal = __webpack_require__(167);
+ var _Modal = __webpack_require__(164);
var _Modal2 = _interopRequireDefault(_Modal);
@@ -148967,27 +141226,27 @@
var _isOverflowing2 = _interopRequireDefault(_isOverflowing);
- var _tinperBeeCore = __webpack_require__(44);
+ var _tinperBeeCore = __webpack_require__(31);
- var _beeTransition = __webpack_require__(1675);
+ var _beeTransition = __webpack_require__(1662);
- var _ModalBody = __webpack_require__(1686);
+ var _ModalBody = __webpack_require__(1673);
var _ModalBody2 = _interopRequireDefault(_ModalBody);
- var _ModalDialog = __webpack_require__(1687);
+ var _ModalDialog = __webpack_require__(1674);
var _ModalDialog2 = _interopRequireDefault(_ModalDialog);
- var _ModalFooter = __webpack_require__(1688);
+ var _ModalFooter = __webpack_require__(1675);
var _ModalFooter2 = _interopRequireDefault(_ModalFooter);
- var _ModalHeader = __webpack_require__(1689);
+ var _ModalHeader = __webpack_require__(1676);
var _ModalHeader2 = _interopRequireDefault(_ModalHeader);
- var _ModalTitle = __webpack_require__(1690);
+ var _ModalTitle = __webpack_require__(1677);
var _ModalTitle2 = _interopRequireDefault(_ModalTitle);
@@ -149068,7 +141327,7 @@
onExited: _propTypes2["default"].func,
containerClassName: _propTypes2["default"].string
- }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'bounds', _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].Object])), _defineProperty(_extends2, 'className', _propTypes2["default"].string), _defineProperty(_extends2, 'centered', _propTypes2["default"].bool), _extends2));
+ }, _defineProperty(_extends2, 'containerClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'container', _Modal2["default"].propTypes.container), _defineProperty(_extends2, 'size', _propTypes2["default"].oneOf(["sm", "lg", "xlg", ""])), _defineProperty(_extends2, 'width', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'draggable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizable', _propTypes2["default"].bool), _defineProperty(_extends2, 'resizeClassName', _propTypes2["default"].string), _defineProperty(_extends2, 'onResizeStart', _propTypes2["default"].func), _defineProperty(_extends2, 'onResize', _propTypes2["default"].func), _defineProperty(_extends2, 'onResizeStop', _propTypes2["default"].func), _defineProperty(_extends2, 'minWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'minHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxWidth', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _defineProperty(_extends2, 'maxHeight', _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])), _extends2));
var defaultProps = _extends({}, _Modal2["default"].defaultProps, {
backdropClosable: true,
@@ -149076,8 +141335,7 @@
dialogComponentClass: _ModalDialog2["default"],
draggable: false,
resizable: false,
- clsPrefix: 'u-modal',
- className: ''
+ clsPrefix: 'u-modal'
});
var ModalFuncProps = {
@@ -149209,9 +141467,7 @@
containerClassName = _props.containerClassName,
draggable = _props.draggable,
resizeClassName = _props.resizeClassName,
- bounds = _props.bounds,
- centered = _props.centered,
- props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName', 'bounds', 'centered']);
+ props = _objectWithoutProperties(_props, ['backdrop', 'backdropClosable', 'animation', 'show', 'dialogComponentClass', 'className', 'clsPrefix', 'style', 'size', 'width', 'children', 'onEntering', 'onExited', 'backdropClassName', 'containerClassName', 'draggable', 'resizeClassName']);
var _splitComponent = (0, _tinperBeeCore.splitComponent)(props, _Modal2["default"]),
_splitComponent2 = _slicedToArray(_splitComponent, 2),
@@ -149222,9 +141478,6 @@
var backdropClasses = _defineProperty({}, clsPrefix + '-backdrop', true);
var containerClasses = _defineProperty({}, clsPrefix + '-open', true);
- if (!!centered) {
- className += ' ' + clsPrefix + '-centered';
- }
if (Number(width)) width += 'px';
var styleRes = _extends({}, this.state.style, style);
@@ -149241,7 +141494,7 @@
onEntering: (0, _tinperBeeCore.createChainedFunction)(onEntering, this.handleEntering),
onExited: (0, _tinperBeeCore.createChainedFunction)(onExited, this.handleExited),
backdrop: backdrop,
- backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName, backdropClassName),
+ backdropClassName: (0, _classnames2["default"])(backdropClasses, inClassName),
containerClassName: (0, _classnames2["default"])(containerClasses, containerClassName),
transition: animation ? _beeTransition.Fade : undefined,
dialogTransitionTimeout: Modal.TRANSITION_DURATION,
@@ -149255,7 +141508,6 @@
onClick: backdrop === true && !!backdropClosable ? this.handleDialogClick : null,
size: size,
draggable: draggable,
- bounds: bounds,
resizeClassName: resizeClassName
}),
children
@@ -149294,7 +141546,7 @@
exports["default"] = Modal;
/***/ }),
- /* 539 */
+ /* 533 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -149304,7 +141556,7 @@
value: true
});
- var _inDOM = __webpack_require__(57);
+ var _inDOM = __webpack_require__(56);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -149325,39 +141577,275 @@
module.exports = exports['default'];
/***/ }),
- /* 540 */
+ /* 534 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
- exports.__esModule = true;
- exports.default = addEventListenerWrap;
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
- var _addDomEventListener = __webpack_require__(13);
+ var _inDOM = __webpack_require__(56);
- var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
-
- var _reactDom = __webpack_require__(3);
-
- var _reactDom2 = _interopRequireDefault(_reactDom);
+ var _inDOM2 = _interopRequireDefault(_inDOM);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- /**
- * This source code is quoted from rc-util.
- * homepage: https://github.com/react-component/util
- */
- function addEventListenerWrap(target, eventType, cb) {
- /* eslint camelcase: 2 */
- var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
- _reactDom2.default.unstable_batchedUpdates(cb, e);
- } : cb;
- return (0, _addDomEventListener2.default)(target, eventType, callback);
+ exports.default = function () {
+ var root = _inDOM2.default && document.documentElement;
+
+ return root && root.contains ? function (context, node) {
+ return context.contains(node);
+ } : root && root.compareDocumentPosition ? function (context, node) {
+ return context === node || !!(context.compareDocumentPosition(node) & 16);
+ } : function (context, node) {
+ if (node) do {
+ if (node === context) return true;
+ } while (node = node.parentNode);
+
+ return false;
+ };
+ }();
+
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 535 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+ exports.default = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(12);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2.default.unstable_batchedUpdates ? function run(e) {
+ _reactDom2.default.unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2.default)(target, eventType, callback);
}
/***/ }),
- /* 541 */
+ /* 536 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ exports.__esModule = true;
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(3);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _domAlign = __webpack_require__(14);
+
+ var _domAlign2 = _interopRequireDefault(_domAlign);
+
+ var _addEventListener = __webpack_require__(535);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ 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; } /**
+ * This source code is quoted from rc-util.
+ * homepage: https://github.com/react-component/util
+ */
+
+
+ //import isWindow from './isWindow';
+
+ function isWindow(obj) {
+ /* eslint no-eq-null: 0 */
+ /* eslint eqeqeq: 0 */
+ return obj != null && obj == obj.window;
+ }
+
+ function buffer(fn, ms) {
+ var timer = void 0;
+
+ function clear() {
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ }
+
+ function bufferFn() {
+ clear();
+ timer = setTimeout(fn, ms);
+ }
+
+ bufferFn.clear = clear;
+
+ return bufferFn;
+ }
+
+ var propTypes = {
+ childrenProps: _propTypes2.default.object,
+ align: _propTypes2.default.object.isRequired,
+ target: _propTypes2.default.func,
+ onAlign: _propTypes2.default.func,
+ monitorBufferTime: _propTypes2.default.number,
+ monitorWindowResize: _propTypes2.default.bool,
+ disabled: _propTypes2.default.bool,
+ children: _propTypes2.default.any
+ };
+
+ var defaultProps = {
+ target: function target() {
+ return window;
+ },
+ onAlign: function onAlign() {},
+
+ monitorBufferTime: 50,
+ monitorWindowResize: false,
+ disabled: false
+ };
+
+ var Align = function (_React$Component) {
+ _inherits(Align, _React$Component);
+
+ function Align(props) {
+ _classCallCheck(this, Align);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _initialiseProps.call(_this);
+
+ return _this;
+ }
+
+ Align.prototype.componentDidMount = function componentDidMount() {
+ var props = this.props;
+ // if parent ref not attached .... use document.getElementById
+ this.forceAlign();
+ if (!props.disabled && props.monitorWindowResize) {
+ this.startMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var reAlign = false;
+ var props = this.props;
+
+ if (!props.disabled) {
+ if (prevProps.disabled || prevProps.align !== props.align) {
+ reAlign = true;
+ } else {
+ var lastTarget = prevProps.target();
+ var currentTarget = props.target();
+ if (isWindow(lastTarget) && isWindow(currentTarget)) {
+ reAlign = false;
+ } else if (lastTarget !== currentTarget) {
+ reAlign = true;
+ }
+ }
+ }
+
+ if (reAlign) {
+ this.forceAlign();
+ }
+
+ if (props.monitorWindowResize && !props.disabled) {
+ this.startMonitorWindowResize();
+ } else {
+ this.stopMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.stopMonitorWindowResize();
+ };
+
+ Align.prototype.render = function render() {
+ var _props = this.props,
+ childrenProps = _props.childrenProps,
+ children = _props.children;
+
+ var child = _react2.default.Children.only(children);
+ if (childrenProps) {
+ var newProps = {};
+ for (var prop in childrenProps) {
+ if (childrenProps.hasOwnProperty(prop)) {
+ newProps[prop] = this.props[childrenProps[prop]];
+ }
+ }
+ return _react2.default.cloneElement(child, newProps);
+ }
+ return child;
+ };
+
+ return Align;
+ }(_react2.default.Component);
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.startMonitorWindowResize = function () {
+ if (!_this2.resizeHandler) {
+ _this2.bufferMonitor = buffer(_this2.forceAlign, _this2.props.monitorBufferTime);
+ _this2.resizeHandler = (0, _addEventListener2.default)(window, 'resize', _this2.bufferMonitor);
+ }
+ };
+
+ this.stopMonitorWindowResize = function () {
+ if (_this2.resizeHandler) {
+ _this2.bufferMonitor.clear();
+ _this2.resizeHandler.remove();
+ _this2.resizeHandler = null;
+ }
+ };
+
+ this.forceAlign = function () {
+ var props = _this2.props;
+ if (!props.disabled) {
+ var source = _reactDom2.default.findDOMNode(_this2);
+ props.onAlign(source, (0, _domAlign2.default)(source, props.target(), props.align));
+ }
+ };
+ };
+
+ ;
+
+ Align.defaultProps = defaultProps;
+ Align.propTypes = propTypes;
+
+ exports.default = Align;
+
+ /***/ }),
+ /* 537 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -149368,7 +141856,7 @@
});
exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;
- var _inDOM = __webpack_require__(57);
+ var _inDOM = __webpack_require__(56);
var _inDOM2 = _interopRequireDefault(_inDOM);
@@ -149439,7 +141927,7 @@
}
/***/ }),
- /* 542 */
+ /* 538 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -149450,7 +141938,7 @@
});
exports.default = camelizeStyleName;
- var _camelize = __webpack_require__(1678);
+ var _camelize = __webpack_require__(1665);
var _camelize2 = _interopRequireDefault(_camelize);
@@ -149467,16 +141955,16 @@
module.exports = exports['default'];
/***/ }),
- /* 543 */
+ /* 539 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(1695);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(545);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(1701);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(1702);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(1703);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(1682);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubMenu__ = __webpack_require__(541);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MenuItem__ = __webpack_require__(1688);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MenuItemGroup__ = __webpack_require__(1689);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Divider__ = __webpack_require__(1690);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__SubMenu__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_2__MenuItem__["a"]; });
@@ -149494,7 +141982,7 @@
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Menu__["a" /* default */]);
/***/ }),
- /* 544 */
+ /* 540 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -149518,11 +142006,11 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_mini_store__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(26);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(144);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_util_es_createChainedFunction__ = __webpack_require__(143);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__util__ = __webpack_require__(71);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(1696);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__DOMWrap__ = __webpack_require__(1683);
@@ -149923,7 +142411,7 @@
/* harmony default export */ __webpack_exports__["a"] = (connected);
/***/ }),
- /* 545 */
+ /* 541 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -149942,15 +142430,15 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_dom__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(1697);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_trigger__ = __webpack_require__(1684);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_mini_store___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_mini_store__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(544);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(1700);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(28);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SubPopupMenu__ = __webpack_require__(540);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__placements__ = __webpack_require__(1687);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rc_animate__ = __webpack_require__(29);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(71);
@@ -150550,7 +143038,7 @@
/* harmony default export */ __webpack_exports__["a"] = (connected);
/***/ }),
- /* 546 */
+ /* 542 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -150589,7 +143077,7 @@
}
/***/ }),
- /* 547 */
+ /* 543 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -150655,7 +143143,120 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 548 */
+ /* 544 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var util = {
+ isAppearSupported: function isAppearSupported(props) {
+ return props.transitionName && props.transitionAppear || props.animation.appear;
+ },
+ isEnterSupported: function isEnterSupported(props) {
+ return props.transitionName && props.transitionEnter || props.animation.enter;
+ },
+ isLeaveSupported: function isLeaveSupported(props) {
+ return props.transitionName && props.transitionLeave || props.animation.leave;
+ },
+ allowAppearCallback: function allowAppearCallback(props) {
+ return props.transitionAppear || props.animation.appear;
+ },
+ allowEnterCallback: function allowEnterCallback(props) {
+ return props.transitionEnter || props.animation.enter;
+ },
+ allowLeaveCallback: function allowLeaveCallback(props) {
+ return props.transitionLeave || props.animation.leave;
+ }
+ };
+ exports["default"] = util;
+ module.exports = exports["default"];
+
+ /***/ }),
+ /* 545 */
+ /***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(0);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(1);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return 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 _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) : _defaults(subClass, superClass); } /**
+ * This source code is quoted from rc-trigger.
+ * homepage: https://github.com/react-component/trigger
+ */
+
+
+ var propTypes = {
+ children: _propTypes2["default"].any,
+ className: _propTypes2["default"].string,
+ visible: _propTypes2["default"].bool,
+ hiddenClassName: _propTypes2["default"].string
+ };
+
+ var LazyRenderBox = function (_Component) {
+ _inherits(LazyRenderBox, _Component);
+
+ function LazyRenderBox() {
+ _classCallCheck(this, LazyRenderBox);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
+ return nextProps.hiddenClassName || nextProps.visible;
+ };
+
+ LazyRenderBox.prototype.render = function render() {
+ var _props = this.props,
+ hiddenClassName = _props.hiddenClassName,
+ visible = _props.visible,
+ props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']);
+
+ if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) {
+ if (!visible && hiddenClassName) {
+ props.className += ' ' + hiddenClassName;
+ }
+ return _react2["default"].createElement('div', props);
+ }
+
+ return _react2["default"].Children.only(props.children);
+ };
+
+ return LazyRenderBox;
+ }(_react.Component);
+
+ ;
+ LazyRenderBox.propTypes = propTypes;
+
+ exports["default"] = LazyRenderBox;
+ module.exports = exports['default'];
+
+ /***/ }),
+ /* 546 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -150743,7 +143344,7 @@
};
/***/ }),
- /* 549 */
+ /* 547 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -150784,7 +143385,7 @@
module.exports = exports['default'];
/***/ }),
- /* 550 */
+ /* 548 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -150799,9 +143400,9 @@
var _reactDom = _interopRequireDefault(__webpack_require__(3));
- var _reactLifecyclesCompat = __webpack_require__(12);
+ var _reactLifecyclesCompat = __webpack_require__(13);
- var _PropTypes = __webpack_require__(551);
+ var _PropTypes = __webpack_require__(549);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -151400,7 +144001,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 551 */
+ /* 549 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -151435,7 +144036,7 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 552 */
+ /* 550 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -151448,9 +144049,9 @@
var _react = _interopRequireDefault(__webpack_require__(0));
- var _reactLifecyclesCompat = __webpack_require__(12);
+ var _reactLifecyclesCompat = __webpack_require__(13);
- var _ChildMapping = __webpack_require__(1728);
+ var _ChildMapping = __webpack_require__(1724);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -151650,16 +144251,16 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 553 */
+ /* 551 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export genAnimateChild */
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toArray__ = __webpack_require__(1741);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toArray__ = __webpack_require__(1737);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toArray__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(23);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
@@ -151671,14 +144272,14 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(12);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_component_classes__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_component_classes___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_component_classes__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_raf__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util__ = __webpack_require__(208);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util__ = __webpack_require__(206);
@@ -152136,7 +144737,7 @@
/* harmony default export */ __webpack_exports__["a"] = (genAnimateChild(__WEBPACK_IMPORTED_MODULE_12__util__["f" /* supportTransition */]));
/***/ }),
- /* 554 */
+ /* 552 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -152202,7 +144803,7 @@
/* harmony default export */ __webpack_exports__["a"] = (LazyRenderBox);
/***/ }),
- /* 555 */
+ /* 553 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -152241,7 +144842,7 @@
}
/***/ }),
- /* 556 */
+ /* 554 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -152309,11 +144910,11 @@
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ }),
- /* 557 */
+ /* 555 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(45);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(43);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__);
@@ -152321,7 +144922,7 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__ = __webpack_require__(23);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_possibleConstructorReturn__);
@@ -152333,11 +144934,11 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_classnames__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_animate_es_CSSMotion__ = __webpack_require__(558);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_animate_es_CSSMotion__ = __webpack_require__(556);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rc_util_es_Children_toArray__ = __webpack_require__(72);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_lifecycles_compat__ = __webpack_require__(12);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__contextTypes__ = __webpack_require__(560);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(209);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_lifecycles_compat__ = __webpack_require__(13);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__contextTypes__ = __webpack_require__(558);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__util__ = __webpack_require__(207);
@@ -152931,18 +145532,18 @@
/* harmony default export */ __webpack_exports__["a"] = (TreeNode);
/***/ }),
- /* 558 */
+ /* 556 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export genCSSMotion */
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(45);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(43);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(23);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
@@ -152954,12 +145555,12 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_dom__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_lifecycles_compat__ = __webpack_require__(12);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_lifecycles_compat__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_raf__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util_motion__ = __webpack_require__(559);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__util_motion__ = __webpack_require__(557);
@@ -153260,7 +145861,7 @@
/* harmony default export */ __webpack_exports__["a"] = (genCSSMotion(__WEBPACK_IMPORTED_MODULE_12__util_motion__["c" /* supportTransition */]));
/***/ }),
- /* 559 */
+ /* 557 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -153355,7 +145956,7 @@
}
/***/ }),
- /* 560 */
+ /* 558 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -153430,12 +146031,12 @@
});
/***/ }),
- /* 561 */
+ /* 559 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tree__ = __webpack_require__(1747);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TreeNode__ = __webpack_require__(557);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tree__ = __webpack_require__(1743);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TreeNode__ = __webpack_require__(555);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__TreeNode__["a"]; });
@@ -153446,7 +146047,7 @@
/* harmony default export */ __webpack_exports__["b"] = (__WEBPACK_IMPORTED_MODULE_0__Tree__["a" /* default */]);
/***/ }),
- /* 562 */
+ /* 560 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -153455,8 +146056,8 @@
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(12);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(31);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(13);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(32);
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -153621,7 +146222,7 @@
/* harmony default export */ __webpack_exports__["a"] = (SearchInput);
/***/ }),
- /* 563 */
+ /* 561 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -153629,7 +146230,7 @@
/* harmony export (immutable) */ __webpack_exports__["a"] = valueProp;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(31);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(32);
var internalValProp = __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number]);
@@ -153674,14 +146275,14 @@
}
/***/ }),
- /* 564 */
+ /* 562 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_tree__ = __webpack_require__(561);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(563);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_tree__ = __webpack_require__(559);
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__propTypes__ = __webpack_require__(561);
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -153707,75 +146308,75 @@
/* harmony default export */ __webpack_exports__["a"] = (SelectNode);
/***/ }),
- /* 565 */
+ /* 563 */
/***/ (function(module, exports, __webpack_require__) {
- var Button = __webpack_require__(566);
- var Badge = __webpack_require__(569);
- var Alert = __webpack_require__(573);
- var ButtonGroup = __webpack_require__(578);
- var Label = __webpack_require__(584);
- var FormControl = __webpack_require__(588);
- var FormGroup = __webpack_require__(592);
- var Form = __webpack_require__(596);
- var Layout = __webpack_require__(715);
- var InputGroup = __webpack_require__(720);
- var InputNumber = __webpack_require__(726);
- var Checkbox = __webpack_require__(736);
- var Pagination = __webpack_require__(740);
- var ProgressBar = __webpack_require__(832);
- var Radio = __webpack_require__(836);
- var Switch = __webpack_require__(841);
- var Tooltip = __webpack_require__(845);
- var Dropdown = __webpack_require__(880);
+ var Button = __webpack_require__(564);
+ var Badge = __webpack_require__(567);
+ var Alert = __webpack_require__(571);
+ var ButtonGroup = __webpack_require__(576);
+ var Label = __webpack_require__(582);
+ var FormControl = __webpack_require__(586);
+ var FormGroup = __webpack_require__(590);
+ var Form = __webpack_require__(594);
+ var Layout = __webpack_require__(713);
+ var InputGroup = __webpack_require__(718);
+ var InputNumber = __webpack_require__(724);
+ var Checkbox = __webpack_require__(735);
+ var Pagination = __webpack_require__(739);
+ var ProgressBar = __webpack_require__(831);
+ var Radio = __webpack_require__(835);
+ var Switch = __webpack_require__(840);
+ var Tooltip = __webpack_require__(844);
+ var Dropdown = __webpack_require__(879);
var Panel = __webpack_require__(904);
var PanelGroup = __webpack_require__(948);
- var SearchPanel = __webpack_require__(285);
- var Transition = __webpack_require__(986);
- var Navbar = __webpack_require__(1004);
- var Animate = __webpack_require__(1017);
- var Select = __webpack_require__(1019);
- var Tile = __webpack_require__(1047);
- var Icon = __webpack_require__(1051);
- var Menu = __webpack_require__(1053);
- var Upload = __webpack_require__(1082);
- var Breadcrumb = __webpack_require__(1094);
+ var SearchPanel = __webpack_require__(282);
+ var Transition = __webpack_require__(976);
+ var Navbar = __webpack_require__(994);
+ var Animate = __webpack_require__(1007);
+ var Select = __webpack_require__(1009);
+ var Tile = __webpack_require__(1045);
+ var Icon = __webpack_require__(1049);
+ var Menu = __webpack_require__(1051);
+ var Upload = __webpack_require__(1080);
+ var Breadcrumb = __webpack_require__(1092);
- var Message = __webpack_require__(1099);
- var Notification = __webpack_require__(1129);
- var Popconfirm = __webpack_require__(1131);
- var Modal = __webpack_require__(1157);
- var Tabs = __webpack_require__(1265);
- var Cascader = __webpack_require__(1276);
- var Loading = __webpack_require__(1310);
- var Table = __webpack_require__(1330);
- var Tree = __webpack_require__(1393);
- var Clipboard = __webpack_require__(1412);
+ var Message = __webpack_require__(1097);
+ var Notification = __webpack_require__(1127);
+ var Popconfirm = __webpack_require__(1129);
+ var Modal = __webpack_require__(1155);
+ var Tabs = __webpack_require__(1254);
+ var Cascader = __webpack_require__(1265);
+ var Loading = __webpack_require__(1299);
+ var Table = __webpack_require__(1319);
+ var Tree = __webpack_require__(1388);
+ var Clipboard = __webpack_require__(1407);
- var Rate = __webpack_require__(1482);
- var Step = __webpack_require__(1492);
- var Timeline = __webpack_require__(1498);
- var Transfer = __webpack_require__(1502);
- var BackTop = __webpack_require__(1536);
- var Collapse = __webpack_require__(1540);
+ var Rate = __webpack_require__(1477);
+ var Step = __webpack_require__(1487);
+ var Timeline = __webpack_require__(1493);
+ var Transfer = __webpack_require__(1497);
+ var BackTop = __webpack_require__(1531);
+ var Collapse = __webpack_require__(1535);
- var Slider = __webpack_require__(1559);
- var AutoComplete = __webpack_require__(1593);
+ var Slider = __webpack_require__(1554);
+ var AutoComplete = __webpack_require__(1588);
- var LoadingState = __webpack_require__(1599);
- var Locale = __webpack_require__(1609);
- var Popover = __webpack_require__(1613);
- var Anchor = __webpack_require__(1637);
- var ColorPicker = __webpack_require__(1642);
- var Tag = __webpack_require__(1711);
- var SearchPanel = __webpack_require__(285);
- var Affix = __webpack_require__(1715);
- var Drawer = __webpack_require__(1720);
- var TreeSelect = __webpack_require__(1729);
+ var LoadingState = __webpack_require__(1594);
+ var Locale = __webpack_require__(1598);
+ var Popover = __webpack_require__(1602);
+ var Anchor = __webpack_require__(1626);
+ var ColorPicker = __webpack_require__(1631);
+ var Tag = __webpack_require__(1707);
+ var SearchPanel = __webpack_require__(282);
+ var Affix = __webpack_require__(1711);
+ var Drawer = __webpack_require__(1716);
+ var TreeSelect = __webpack_require__(1725);
// var Carousel = require('./lib/Carousel');
var TinperBee = {
- version: '2.1.4',
+ version: '2.1.0',
Slider: Slider,
AutoComplete: AutoComplete,
// Carousel:Carousel,
@@ -153842,21 +146443,21 @@
/***/ }),
- /* 566 */
+ /* 564 */
/***/ (function(module, exports, __webpack_require__) {
- __webpack_require__(567);
- module.exports = __webpack_require__(73);
+ __webpack_require__(565);
+ module.exports = __webpack_require__(57);
/***/ }),
- /* 567 */
+ /* 565 */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
- /* 568 */
+ /* 566 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -153897,38 +146498,38 @@
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) : _defaults(subClass, superClass); }
var propTypes = {
- /**
- * @title 尺寸
+ /**
+ * @title 尺寸
*/
size: _propTypes2["default"].oneOf(['sm', 'md', 'xg', 'lg']),
- /**
- * @title 样式
+ /**
+ * @title 样式
*/
style: _propTypes2["default"].object,
- /**
- * @title 形状
+ /**
+ * @title 形状
*/
shape: _propTypes2["default"].oneOf(['block', 'round', 'border', 'squared', 'floating', 'pillRight', 'pillLeft', 'icon']),
bordered: _propTypes2["default"].bool,
- /**
- * @title 类型
+ /**
+ * @title 类型
*/
colors: _propTypes2["default"].oneOf(['primary', 'secondary', 'accent', 'success', 'info', 'warning', 'danger', 'dark', 'light', 'default']),
- /**
- * @title 是否禁用
- * @veIgnore
+ /**
+ * @title 是否禁用
+ * @veIgnore
*/
disabled: _propTypes2["default"].bool,
- /**
- * @title 类名
- * @veIgnore
+ /**
+ * @title 类名
+ * @veIgnore
*/
className: _propTypes2["default"].string,
- /**
- * @title