From 23d24fdd6f31a030f3151b58c31804a879222826 Mon Sep 17 00:00:00 2001 From: izbz wh <731215820@qq.com> Date: Wed, 26 Jun 2019 14:13:47 +0800 Subject: [PATCH] merge --- dist/demo.js | 2948 +++++++++++++++++++++++++------------------------- docs/api.md | 2 +- 2 files changed, 1475 insertions(+), 1475 deletions(-) diff --git a/dist/demo.js b/dist/demo.js index 2b4c4be..efb5108 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -2026,264 +2026,264 @@ /* 27 */ /***/ (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__(28); - - var _all3 = _interopRequireDefault(_all2); - - var _componentOrElement2 = __webpack_require__(30); - - var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); - - var _deprecated2 = __webpack_require__(31); - - var _deprecated3 = _interopRequireDefault(_deprecated2); - - var _elementType2 = __webpack_require__(34); - - var _elementType3 = _interopRequireDefault(_elementType2); - - var _isRequiredForA11y2 = __webpack_require__(35); - - var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); - - var _splitComponent2 = __webpack_require__(36); - - var _splitComponent3 = _interopRequireDefault(_splitComponent2); - - var _createChainedFunction2 = __webpack_require__(37); - - var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); - - var _keyCode = __webpack_require__(38); - - var _keyCode2 = _interopRequireDefault(_keyCode); - - var _contains2 = __webpack_require__(39); - - var _contains3 = _interopRequireDefault(_contains2); - - var _addEventListener2 = __webpack_require__(40); - - var _addEventListener3 = _interopRequireDefault(_addEventListener2); - - var _cssAnimation2 = __webpack_require__(45); - - var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); - - var _toArray2 = __webpack_require__(49); - - var _toArray3 = _interopRequireDefault(_toArray2); - - var _Align2 = __webpack_require__(50); - - 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'; - + '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__(28); + + var _all3 = _interopRequireDefault(_all2); + + var _componentOrElement2 = __webpack_require__(30); + + var _componentOrElement3 = _interopRequireDefault(_componentOrElement2); + + var _deprecated2 = __webpack_require__(31); + + var _deprecated3 = _interopRequireDefault(_deprecated2); + + var _elementType2 = __webpack_require__(34); + + var _elementType3 = _interopRequireDefault(_elementType2); + + var _isRequiredForA11y2 = __webpack_require__(35); + + var _isRequiredForA11y3 = _interopRequireDefault(_isRequiredForA11y2); + + var _splitComponent2 = __webpack_require__(36); + + var _splitComponent3 = _interopRequireDefault(_splitComponent2); + + var _createChainedFunction2 = __webpack_require__(37); + + var _createChainedFunction3 = _interopRequireDefault(_createChainedFunction2); + + var _keyCode = __webpack_require__(38); + + var _keyCode2 = _interopRequireDefault(_keyCode); + + var _contains2 = __webpack_require__(39); + + var _contains3 = _interopRequireDefault(_contains2); + + var _addEventListener2 = __webpack_require__(40); + + var _addEventListener3 = _interopRequireDefault(_addEventListener2); + + var _cssAnimation2 = __webpack_require__(45); + + var _cssAnimation3 = _interopRequireDefault(_cssAnimation2); + + var _toArray2 = __webpack_require__(49); + + var _toArray3 = _interopRequireDefault(_toArray2); + + var _Align2 = __webpack_require__(50); + + 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; /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.default = all; - - var _createChainableTypeChecker = __webpack_require__(29); - - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function all() { - for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { - validators[_key] = arguments[_key]; - } - - function allPropTypes() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - var error = null; - - validators.forEach(function (validator) { - if (error != null) { - return; - } - - var result = validator.apply(undefined, args); - if (result != null) { - error = result; - } - }); - - return error; - } - - return (0, _createChainableTypeChecker2.default)(allPropTypes); - } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util + 'use strict'; + + exports.__esModule = true; + exports.default = all; + + var _createChainableTypeChecker = __webpack_require__(29); + + var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function all() { + for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { + validators[_key] = arguments[_key]; + } + + function allPropTypes() { + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + var error = null; + + validators.forEach(function (validator) { + if (error != null) { + return; + } + + var result = validator.apply(undefined, args); + if (result != null) { + error = result; + } + }); + + return error; + } + + return (0, _createChainableTypeChecker2.default)(allPropTypes); + } /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util */ /***/ }), /* 29 */ /***/ (function(module, exports) { - '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; + '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; } /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - 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-util. - * homepage: https://github.com/react-component/util - */ - - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _createChainableTypeChecker = __webpack_require__(29); - - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); - - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.'); - } - - if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.'); - } - - return null; - } - + 'use strict'; + + exports.__esModule = true; + + 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-util. + * homepage: https://github.com/react-component/util + */ + + + var _react = __webpack_require__(1); + + var _react2 = _interopRequireDefault(_react); + + var _createChainableTypeChecker = __webpack_require__(29); + + var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + + if (_react2.default.isValidElement(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.'); + } + + if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.'); + } + + return null; + } + exports.default = (0, _createChainableTypeChecker2.default)(validate); /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.default = deprecated; - - var _warning = __webpack_require__(32); - - var _warning2 = _interopRequireDefault(_warning); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var warned = {}; /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function deprecated(validator, reason) { - return function validate(props, propName, componentName, location, propFullName) { - var componentNameSafe = componentName || '<>'; - var propFullNameSafe = propFullName || propName; - - if (props[propName] != null) { - var messageKey = componentName + '.' + propName; - - (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.')); - - warned[messageKey] = true; - } - - 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)); - }; - } - - /* eslint-disable no-underscore-dangle */ - function _resetWarned() { - warned = {}; - } - - deprecated._resetWarned = _resetWarned; + 'use strict'; + + exports.__esModule = true; + exports.default = deprecated; + + var _warning = __webpack_require__(32); + + var _warning2 = _interopRequireDefault(_warning); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var warned = {}; /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function deprecated(validator, reason) { + return function validate(props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + + if (props[propName] != null) { + var messageKey = componentName + '.' + propName; + + (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.')); + + warned[messageKey] = true; + } + + 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)); + }; + } + + /* eslint-disable no-underscore-dangle */ + function _resetWarned() { + warned = {}; + } + + deprecated._resetWarned = _resetWarned; /* eslint-enable no-underscore-dangle */ /***/ }), @@ -2547,740 +2547,740 @@ /* 34 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - 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-util. - * homepage: https://github.com/react-component/util - */ - - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - var _createChainableTypeChecker = __webpack_require__(29); - - var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function elementType(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); - - if (_react2.default.isValidElement(propValue)) { - return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); - } - - if (propType !== 'function' && propType !== 'string') { - return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); - } - - return null; - } - + 'use strict'; + + exports.__esModule = true; + + 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-util. + * homepage: https://github.com/react-component/util + */ + + + var _react = __webpack_require__(1); + + var _react2 = _interopRequireDefault(_react); + + var _createChainableTypeChecker = __webpack_require__(29); + + var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function elementType(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); + + if (_react2.default.isValidElement(propValue)) { + return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + } + + if (propType !== 'function' && propType !== 'string') { + return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).'); + } + + return null; + } + exports.default = (0, _createChainableTypeChecker2.default)(elementType); /***/ }), /* 35 */ /***/ (function(module, exports) { - '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)); - }; + '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)); + }; } /***/ }), /* 36 */ /***/ (function(module, exports) { - "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]; + "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]; } /***/ }), /* 37 */ /***/ (function(module, exports) { - '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); - } + '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; /***/ }), /* 38 */ /***/ (function(module, exports) { - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - 'use strict'; - - /** - * @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 + */ + 'use strict'; + + /** + * @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; /***/ }), /* 39 */ /***/ (function(module, exports) { - "use strict"; - - exports.__esModule = true; - exports.default = contains; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - function contains(root, n) { - var node = n; - while (node) { - if (node === root) { - return true; - } - node = node.parentNode; - } - - return false; + "use strict"; + + exports.__esModule = true; + exports.default = contains; + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + function contains(root, n) { + var node = n; + while (node) { + if (node === root) { + return true; + } + node = node.parentNode; + } + + return false; } /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.default = addEventListenerWrap; - - var _addDomEventListener = __webpack_require__(41); - - var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); - - var _reactDom = __webpack_require__(2); - - 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__(41); + + var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); + + var _reactDom = __webpack_require__(2); + + 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); } /***/ }), @@ -3790,290 +3790,290 @@ /* 45 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - 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-util. - * homepage: https://github.com/react-component/util - */ - - - var _Event = __webpack_require__(46); - - 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) { - var style = window.getComputedStyle(node); - - 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' : _typeof(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; - + 'use strict'; + + exports.__esModule = true; + + 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-util. + * homepage: https://github.com/react-component/util + */ + + + var _Event = __webpack_require__(46); + + 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) { + var style = window.getComputedStyle(node); + + 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' : _typeof(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.default = cssAnimation; /***/ }), /* 46 */ /***/ (function(module, exports) { - 'use strict'; - - exports.__esModule = true; - /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util - */ - var 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 endEvents = []; - - function detectEvents() { - var testEl = document.createElement('div'); - var style = testEl.style; - - if (!('AnimationEvent' in window)) { - delete EVENT_NAME_MAP.animationend.animation; - } - - if (!('TransitionEvent' in window)) { - delete EVENT_NAME_MAP.transitionend.transition; - } - - 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) { - endEvents.push(baseEvents[styleName]); - break; - } - } - } - } - } - - 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 = { - addEndEventListener: function addEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - window.setTimeout(eventListener, 0); - return; - } - endEvents.forEach(function (endEvent) { - addEventListener(node, endEvent, eventListener); - }); - }, - - - endEvents: endEvents, - - removeEndEventListener: function removeEndEventListener(node, eventListener) { - if (endEvents.length === 0) { - return; - } - endEvents.forEach(function (endEvent) { - removeEventListener(node, endEvent, eventListener); - }); - } - }; - + 'use strict'; + + exports.__esModule = true; + /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util + */ + var 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 endEvents = []; + + function detectEvents() { + var testEl = document.createElement('div'); + var style = testEl.style; + + if (!('AnimationEvent' in window)) { + delete EVENT_NAME_MAP.animationend.animation; + } + + if (!('TransitionEvent' in window)) { + delete EVENT_NAME_MAP.transitionend.transition; + } + + 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) { + endEvents.push(baseEvents[styleName]); + break; + } + } + } + } + } + + 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 = { + addEndEventListener: function addEndEventListener(node, eventListener) { + if (endEvents.length === 0) { + window.setTimeout(eventListener, 0); + return; + } + endEvents.forEach(function (endEvent) { + addEventListener(node, endEvent, eventListener); + }); + }, + + + endEvents: endEvents, + + removeEndEventListener: function removeEndEventListener(node, eventListener) { + if (endEvents.length === 0) { + return; + } + endEvents.forEach(function (endEvent) { + removeEventListener(node, endEvent, eventListener); + }); + } + }; + exports.default = TransitionEvents; /***/ }), @@ -4289,226 +4289,226 @@ /* 49 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - exports.default = toArray; - - var _react = __webpack_require__(1); - - var _react2 = _interopRequireDefault(_react); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function toArray(children) { - var ret = []; - _react2.default.Children.forEach(children, function (c) { - ret.push(c); - }); - return ret; - } /** - * This source code is quoted from rc-util. - * homepage: https://github.com/react-component/util + 'use strict'; + + exports.__esModule = true; + exports.default = toArray; + + var _react = __webpack_require__(1); + + var _react2 = _interopRequireDefault(_react); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function toArray(children) { + var ret = []; + _react2.default.Children.forEach(children, function (c) { + ret.push(c); + }); + return ret; + } /** + * This source code is quoted from rc-util. + * homepage: https://github.com/react-component/util */ /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - exports.__esModule = true; - - 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); - - var _domAlign = __webpack_require__(51); - - var _domAlign2 = _interopRequireDefault(_domAlign); - - var _addEventListener = __webpack_require__(40); - - 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; - + 'use strict'; + + exports.__esModule = true; + + 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); + + var _domAlign = __webpack_require__(51); + + var _domAlign2 = _interopRequireDefault(_domAlign); + + var _addEventListener = __webpack_require__(40); + + 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; /***/ }), @@ -11050,8 +11050,8 @@ type: _propTypes2["default"].string }; - /** - * badge 默认显示内容1 + /** + * badge 默认显示内容1 */ var defaultProps = { clsPrefix: 'uf' @@ -11151,33 +11151,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']), - /** - * 绝对定位上边距. + /** + * 绝对定位上边距. */ 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]) }; @@ -11259,13 +11259,13 @@ } }; - /** - * @desc 鼠标划入时候的事件 + /** + * @desc 鼠标划入时候的事件 */ - /** - * @desc 鼠标划出时候的事件 + /** + * @desc 鼠标划出时候的事件 */ @@ -24367,16 +24367,16 @@ /* 205 */ /***/ (function(module, exports) { - module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - module.children = []; - module.webpackPolyfill = 1; - } - return module; - } + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + module.children = []; + module.webpackPolyfill = 1; + } + return module; + } /***/ }), @@ -25973,9 +25973,9 @@ exports.__esModule = true; exports.default = isPlainObject; - /** - * @param {any} obj The object to inspect. - * @returns {boolean} True if the argument appears to be a plain object. + /** + * @param {any} obj The object to inspect. + * @returns {boolean} True if the argument appears to be a plain object. */ function isPlainObject(obj) { if (typeof obj !== 'object' || obj === null) return false; @@ -32117,8 +32117,8 @@ return result; }; - /** - * Moves an item from one list to another list. + /** + * Moves an item from one list to another list. */ var move = function move(source, destination, droppableSource, droppableDestination) { var sourceClone = Array.from(source); @@ -33616,38 +33616,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