You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10850 lines
494 KiB
10850 lines
494 KiB
5 years ago
|
webpackJsonp([97],{
|
||
|
|
||
|
/***/ 1002:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var PropTypes = _interopRequireWildcard(__webpack_require__(1));
|
||
|
|
||
|
var _rcMenu = __webpack_require__(172);
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _MenuContext = _interopRequireDefault(__webpack_require__(893));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var SubMenu =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(SubMenu, _React$Component);
|
||
|
|
||
|
function SubMenu() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, SubMenu);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(SubMenu).apply(this, arguments));
|
||
|
|
||
|
_this.onKeyDown = function (e) {
|
||
|
_this.subMenu.onKeyDown(e);
|
||
|
};
|
||
|
|
||
|
_this.saveSubMenu = function (subMenu) {
|
||
|
_this.subMenu = subMenu;
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(SubMenu, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
var _this$props = this.props,
|
||
|
rootPrefixCls = _this$props.rootPrefixCls,
|
||
|
popupClassName = _this$props.popupClassName;
|
||
|
return React.createElement(_MenuContext["default"].Consumer, null, function (_ref) {
|
||
|
var antdMenuTheme = _ref.antdMenuTheme;
|
||
|
return React.createElement(_rcMenu.SubMenu, _extends({}, _this2.props, {
|
||
|
ref: _this2.saveSubMenu,
|
||
|
popupClassName: (0, _classnames["default"])("".concat(rootPrefixCls, "-").concat(antdMenuTheme), popupClassName)
|
||
|
}));
|
||
|
});
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return SubMenu;
|
||
|
}(React.Component);
|
||
|
|
||
|
SubMenu.contextTypes = {
|
||
|
antdMenuTheme: PropTypes.string
|
||
|
}; // fix issue:https://github.com/ant-design/ant-design/issues/8666
|
||
|
|
||
|
SubMenu.isSubMenu = 1;
|
||
|
var _default = SubMenu;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=SubMenu.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1003:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _rcMenu = __webpack_require__(172);
|
||
|
|
||
|
var _MenuContext = _interopRequireDefault(__webpack_require__(893));
|
||
|
|
||
|
var _tooltip = _interopRequireDefault(__webpack_require__(168));
|
||
|
|
||
|
var _Sider = __webpack_require__(908);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var MenuItem =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(MenuItem, _React$Component);
|
||
|
|
||
|
function MenuItem() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, MenuItem);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(MenuItem).apply(this, arguments));
|
||
|
|
||
|
_this.onKeyDown = function (e) {
|
||
|
_this.menuItem.onKeyDown(e);
|
||
|
};
|
||
|
|
||
|
_this.saveMenuItem = function (menuItem) {
|
||
|
_this.menuItem = menuItem;
|
||
|
};
|
||
|
|
||
|
_this.renderItem = function (_ref) {
|
||
|
var siderCollapsed = _ref.siderCollapsed;
|
||
|
var _this$props = _this.props,
|
||
|
level = _this$props.level,
|
||
|
children = _this$props.children,
|
||
|
rootPrefixCls = _this$props.rootPrefixCls;
|
||
|
|
||
|
var _a = _this.props,
|
||
|
title = _a.title,
|
||
|
rest = __rest(_a, ["title"]);
|
||
|
|
||
|
return React.createElement(_MenuContext["default"].Consumer, null, function (_ref2) {
|
||
|
var inlineCollapsed = _ref2.inlineCollapsed;
|
||
|
var tooltipProps = {
|
||
|
title: title || (level === 1 ? children : '')
|
||
|
};
|
||
|
|
||
|
if (!siderCollapsed && !inlineCollapsed) {
|
||
|
tooltipProps.title = null; // Reset `visible` to fix control mode tooltip display not correct
|
||
|
// ref: https://github.com/ant-design/ant-design/issues/16742
|
||
|
|
||
|
tooltipProps.visible = false;
|
||
|
}
|
||
|
|
||
|
return React.createElement(_tooltip["default"], _extends({}, tooltipProps, {
|
||
|
placement: "right",
|
||
|
overlayClassName: "".concat(rootPrefixCls, "-inline-collapsed-tooltip")
|
||
|
}), React.createElement(_rcMenu.Item, _extends({}, rest, {
|
||
|
title: title,
|
||
|
ref: _this.saveMenuItem
|
||
|
})));
|
||
|
});
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(MenuItem, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_Sider.SiderContext.Consumer, null, this.renderItem);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return MenuItem;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = MenuItem;
|
||
|
MenuItem.isMenuItem = true;
|
||
|
//# sourceMappingURL=MenuItem.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1074:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(174),
|
||
|
stubFalse = __webpack_require__(1283);
|
||
|
|
||
|
/** Detect free variable `exports`. */
|
||
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
||
|
|
||
|
/** Detect free variable `module`. */
|
||
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
||
|
|
||
|
/** Detect the popular CommonJS extension `module.exports`. */
|
||
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var Buffer = moduleExports ? root.Buffer : undefined;
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a buffer.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.3.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isBuffer(new Buffer(2));
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isBuffer(new Uint8Array(2));
|
||
|
* // => false
|
||
|
*/
|
||
|
var isBuffer = nativeIsBuffer || stubFalse;
|
||
|
|
||
|
module.exports = isBuffer;
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(321)(module)))
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1075:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945),
|
||
|
root = __webpack_require__(174);
|
||
|
|
||
|
/* Built-in method references that are verified to be native. */
|
||
|
var Map = getNative(root, 'Map');
|
||
|
|
||
|
module.exports = Map;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1076:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var mapCacheClear = __webpack_require__(1268),
|
||
|
mapCacheDelete = __webpack_require__(1275),
|
||
|
mapCacheGet = __webpack_require__(1277),
|
||
|
mapCacheHas = __webpack_require__(1278),
|
||
|
mapCacheSet = __webpack_require__(1279);
|
||
|
|
||
|
/**
|
||
|
* Creates a map cache object to store key-value pairs.
|
||
|
*
|
||
|
* @private
|
||
|
* @constructor
|
||
|
* @param {Array} [entries] The key-value pairs to cache.
|
||
|
*/
|
||
|
function MapCache(entries) {
|
||
|
var index = -1,
|
||
|
length = entries == null ? 0 : entries.length;
|
||
|
|
||
|
this.clear();
|
||
|
while (++index < length) {
|
||
|
var entry = entries[index];
|
||
|
this.set(entry[0], entry[1]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Add methods to `MapCache`.
|
||
|
MapCache.prototype.clear = mapCacheClear;
|
||
|
MapCache.prototype['delete'] = mapCacheDelete;
|
||
|
MapCache.prototype.get = mapCacheGet;
|
||
|
MapCache.prototype.has = mapCacheHas;
|
||
|
MapCache.prototype.set = mapCacheSet;
|
||
|
|
||
|
module.exports = MapCache;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1077:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var overArg = __webpack_require__(1232);
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
||
|
|
||
|
module.exports = getPrototype;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1078:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is likely a prototype object.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
||
|
*/
|
||
|
function isPrototype(value) {
|
||
|
var Ctor = value && value.constructor,
|
||
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
||
|
|
||
|
return value === proto;
|
||
|
}
|
||
|
|
||
|
module.exports = isPrototype;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1079:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used as references for various `Number` constants. */
|
||
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a valid array-like length.
|
||
|
*
|
||
|
* **Note:** This method is loosely based on
|
||
|
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isLength(3);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isLength(Number.MIN_VALUE);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isLength(Infinity);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isLength('3');
|
||
|
* // => false
|
||
|
*/
|
||
|
function isLength(value) {
|
||
|
return typeof value == 'number' &&
|
||
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
||
|
}
|
||
|
|
||
|
module.exports = isLength;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1082:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayLikeKeys = __webpack_require__(1233),
|
||
|
baseKeysIn = __webpack_require__(1286),
|
||
|
isArrayLike = __webpack_require__(948);
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
||
|
*
|
||
|
* **Note:** Non-object values are coerced to objects.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 3.0.0
|
||
|
* @category Object
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
* @example
|
||
|
*
|
||
|
* function Foo() {
|
||
|
* this.a = 1;
|
||
|
* this.b = 2;
|
||
|
* }
|
||
|
*
|
||
|
* Foo.prototype.c = 3;
|
||
|
*
|
||
|
* _.keysIn(new Foo);
|
||
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
||
|
*/
|
||
|
function keysIn(object) {
|
||
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
||
|
}
|
||
|
|
||
|
module.exports = keysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1083:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used as references for various `Number` constants. */
|
||
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
||
|
|
||
|
/** Used to detect unsigned integer values. */
|
||
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a valid array-like index.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
||
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||
|
*/
|
||
|
function isIndex(value, length) {
|
||
|
var type = typeof value;
|
||
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||
|
|
||
|
return !!length &&
|
||
|
(type == 'number' ||
|
||
|
(type != 'symbol' && reIsUint.test(value))) &&
|
||
|
(value > -1 && value % 1 == 0 && value < length);
|
||
|
}
|
||
|
|
||
|
module.exports = isIndex;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1084:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* This method returns the first argument it receives.
|
||
|
*
|
||
|
* @static
|
||
|
* @since 0.1.0
|
||
|
* @memberOf _
|
||
|
* @category Util
|
||
|
* @param {*} value Any value.
|
||
|
* @returns {*} Returns `value`.
|
||
|
* @example
|
||
|
*
|
||
|
* var object = { 'a': 1 };
|
||
|
*
|
||
|
* console.log(_.identity(object) === object);
|
||
|
* // => true
|
||
|
*/
|
||
|
function identity(value) {
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
module.exports = identity;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1085:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(1086);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
// Prepare cssTransformation
|
||
|
var transform;
|
||
|
|
||
|
var options = {"hmr":false}
|
||
|
options.transform = transform
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(313)(content, options);
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1086:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(312)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, ".ant-dropdown{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-dropdown:before{position:absolute;top:-7px;right:0;bottom:-7px;left:-7px;z-index:-9999;opacity:.0001;content:\" \"}.ant-dropdown-wrap{position:relative}.ant-dropdown-wrap .ant-btn>.anticon-down{display:inline-block;font-size:12px;font-size:10px\\9;-webkit-transform:scale(.83333333) rotate(0deg);-ms-transform:scale(.83333333) rotate(0deg);transform:scale(.83333333) rotate(0deg)}:root .ant-dropdown-wrap .ant-btn>.anticon-down{font-size:12px}.ant-dropdown-wrap .anticon-down:before{-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;-o-transition:transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.ant-dropdown-wrap-open .anticon-down:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.ant-dropdown-hidden,.ant-dropdown-menu-hidden{display:none}.ant-dropdown-menu{position:relative;margin:0;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:4px;outline:none;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transform:translateZ(0)}.ant-dropdown-menu-item-group-title{padding:5px 12px;color:rgba(0,0,0,.45);-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-dropdown-menu-submenu-popup{position:absolute;z-index:1050}.ant-dropdown-menu-submenu-popup>.ant-dropdown-menu{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.ant-dropdown-menu-submenu-popup li,.ant-dropdown-menu-submenu-popup ul{list-style:none}.ant-dropdown-menu-submenu-popup ul{margin-right:.3em;margin-left:.3em;padding:0}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{clear:both;margin:0;padding:5px 12px;color:rgba(0,0,0,.65);font-weight:400;font-size:14px;line-height:22px;white-space:nowrap;cursor:pointer;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-dropdown-menu-item>.anticon:first-child,.ant-dropdown-menu-item>span>.anticon:first-child,.ant-dropdown-menu-submenu-title>.anticon:first-child,.ant-dropdown-menu-submenu-title>span>.anticon:first-child{min-width:12px;margin-right:8px;font-size:12px}.ant-dropdown-menu-item>a,.ant-dropdown-menu-submenu-title>a{display:block;margin:-5px -12px;padding:5px 12px;color:rgba(0,0,0,.65);-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-item-selected>a,.ant-dropdown-menu-submenu-title-selected,.ant-dropdown-menu-submenu-title-selected>a{color:#1890ff;background-color:#e6f7ff}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#e6f7ff}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:rgba(0,0,0,.25);background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{height:1px;margin:4px 0;overflow:hidden;line-height:0;background-color:#e8e8e8}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow{position:absolute;right:8px}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:rgba(0,0,0,.45);font-style:normal;display:inline-block;font-size:12px;font-size:10px\\9;-webkit-transform:scale(.83333333) rotate(0deg);-ms-transform:scale(.83333333) rotate(0deg);transform:scale(.83333333) rotate(0deg)}:root .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,:root .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{font-size:12px}.ant-
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1087:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsArguments = __webpack_require__(1282),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is likely an `arguments` object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
||
|
* else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isArguments(function() { return arguments; }());
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArguments([1, 2, 3]);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
||
|
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
||
|
!propertyIsEnumerable.call(value, 'callee');
|
||
|
};
|
||
|
|
||
|
module.exports = isArguments;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1088:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsTypedArray = __webpack_require__(1284),
|
||
|
baseUnary = __webpack_require__(1150),
|
||
|
nodeUtil = __webpack_require__(1151);
|
||
|
|
||
|
/* Node.js helper references. */
|
||
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a typed array.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 3.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isTypedArray(new Uint8Array);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isTypedArray([]);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
||
|
|
||
|
module.exports = isTypedArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1089:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Dropdown__ = __webpack_require__(1090);
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Dropdown__["a" /* default */]);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1090:
|
||
|
/***/ (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_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_dom__ = __webpack_require__(4);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_trigger__ = __webpack_require__(89);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__placements__ = __webpack_require__(1091);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_lifecycles_compat__ = __webpack_require__(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; };
|
||
|
|
||
|
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 Dropdown = function (_Component) {
|
||
|
_inherits(Dropdown, _Component);
|
||
|
|
||
|
function Dropdown(props) {
|
||
|
_classCallCheck(this, Dropdown);
|
||
|
|
||
|
var _this = _possibleConstructorReturn(this, _Component.call(this, props));
|
||
|
|
||
|
_initialiseProps.call(_this);
|
||
|
|
||
|
if ('visible' in props) {
|
||
|
_this.state = {
|
||
|
visible: props.visible
|
||
|
};
|
||
|
} else {
|
||
|
_this.state = {
|
||
|
visible: props.defaultVisible
|
||
|
};
|
||
|
}
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
Dropdown.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {
|
||
|
if ('visible' in nextProps) {
|
||
|
return {
|
||
|
visible: nextProps.visible
|
||
|
};
|
||
|
}
|
||
|
return null;
|
||
|
};
|
||
|
|
||
|
Dropdown.prototype.getOverlayElement = function getOverlayElement() {
|
||
|
var overlay = this.props.overlay;
|
||
|
|
||
|
var overlayElement = void 0;
|
||
|
if (typeof overlay === 'function') {
|
||
|
overlayElement = overlay();
|
||
|
} else {
|
||
|
overlayElement = overlay;
|
||
|
}
|
||
|
return overlayElement;
|
||
|
};
|
||
|
|
||
|
Dropdown.prototype.getMenuElementOrLambda = function getMenuElementOrLambda() {
|
||
|
var overlay = this.props.overlay;
|
||
|
|
||
|
if (typeof overlay === 'function') {
|
||
|
return this.getMenuElement;
|
||
|
}
|
||
|
return this.getMenuElement();
|
||
|
};
|
||
|
|
||
|
Dropdown.prototype.getPopupDomNode = function getPopupDomNode() {
|
||
|
return this.trigger.getPopupDomNode();
|
||
|
};
|
||
|
|
||
|
Dropdown.prototype.getOpenClassName = function getOpenClassName() {
|
||
|
var _props = this.props,
|
||
|
openClassName = _props.openClassName,
|
||
|
prefixCls = _props.prefixCls;
|
||
|
|
||
|
if (openClassName !== undefined) {
|
||
|
return openClassName;
|
||
|
}
|
||
|
return prefixCls + '-open';
|
||
|
};
|
||
|
|
||
|
Dropdown.prototype.renderChildren = function renderChildren() {
|
||
|
var children = this.props.children;
|
||
|
var visible = this.state.visible;
|
||
|
|
||
|
var childrenProps = children.props ? children.props : {};
|
||
|
var childClassName = __WEBPACK_IMPORTED_MODULE_4_classnames___default()(childrenProps.className, this.getOpenClassName());
|
||
|
return visible && children ? Object(__WEBPACK_IMPORTED_MODULE_0_react__["cloneElement"])(children, { className: childClassName }) : children;
|
||
|
};
|
||
|
|
||
|
Dropdown.prototype.render = function render() {
|
||
|
var _props2 = this.props,
|
||
|
prefixCls = _props2.prefixCls,
|
||
|
transitionName = _props2.transitionName,
|
||
|
animation = _props2.animation,
|
||
|
align = _props2.align,
|
||
|
placement = _props2.placement,
|
||
|
getPopupContainer = _props2.getPopupContainer,
|
||
|
showAction = _props2.showAction,
|
||
|
hideAction = _props2.hideAction,
|
||
|
overlayClassName = _props2.overlayClassName,
|
||
|
overlayStyle = _props2.overlayStyle,
|
||
|
trigger = _props2.trigger,
|
||
|
otherProps = _objectWithoutProperties(_props2, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']);
|
||
|
|
||
|
var triggerHideAction = hideAction;
|
||
|
if (!triggerHideAction && trigger.indexOf('contextMenu') !== -1) {
|
||
|
triggerHideAction = ['click'];
|
||
|
}
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
|
||
|
__WEBPACK_IMPORTED_MODULE_3_rc_trigger__["default"],
|
||
|
_extends({}, otherProps, {
|
||
|
prefixCls: prefixCls,
|
||
|
ref: this.saveTrigger,
|
||
|
popupClassName: overlayClassName,
|
||
|
popupStyle: overlayStyle,
|
||
|
builtinPlacements: __WEBPACK_IMPORTED_MODULE_5__placements__["a" /* default */],
|
||
|
action: trigger,
|
||
|
showAction: showAction,
|
||
|
hideAction: triggerHideAction || [],
|
||
|
popupPlacement: placement,
|
||
|
popupAlign: align,
|
||
|
popupTransitionName: transitionName,
|
||
|
popupAnimation: animation,
|
||
|
popupVisible: this.state.visible,
|
||
|
afterPopupVisibleChange: this.afterVisibleChange,
|
||
|
popup: this.getMenuElementOrLambda(),
|
||
|
onPopupVisibleChange: this.onVisibleChange,
|
||
|
getPopupContainer: getPopupContainer
|
||
|
}),
|
||
|
this.renderChildren()
|
||
|
);
|
||
|
};
|
||
|
|
||
|
return Dropdown;
|
||
|
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
||
|
|
||
|
Dropdown.propTypes = {
|
||
|
minOverlayWidthMatchTrigger: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
|
||
|
onVisibleChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
||
|
onOverlayClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
||
|
prefixCls: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
||
|
children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,
|
||
|
transitionName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
||
|
overlayClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
||
|
openClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
||
|
animation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,
|
||
|
align: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
|
||
|
overlayStyle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
|
||
|
placement: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
||
|
overlay: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func]),
|
||
|
trigger: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,
|
||
|
alignPoint: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
|
||
|
showAction: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,
|
||
|
hideAction: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array,
|
||
|
getPopupContainer: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
||
|
visible: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
|
||
|
defaultVisible: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool
|
||
|
};
|
||
|
Dropdown.defaultProps = {
|
||
|
prefixCls: 'rc-dropdown',
|
||
|
trigger: ['hover'],
|
||
|
showAction: [],
|
||
|
overlayClassName: '',
|
||
|
overlayStyle: {},
|
||
|
defaultVisible: false,
|
||
|
onVisibleChange: function onVisibleChange() {},
|
||
|
|
||
|
placement: 'bottomLeft'
|
||
|
};
|
||
|
|
||
|
var _initialiseProps = function _initialiseProps() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
this.onClick = function (e) {
|
||
|
var props = _this2.props;
|
||
|
var overlayProps = _this2.getOverlayElement().props;
|
||
|
// do no call onVisibleChange, if you need click to hide, use onClick and control visible
|
||
|
if (!('visible' in props)) {
|
||
|
_this2.setState({
|
||
|
visible: false
|
||
|
});
|
||
|
}
|
||
|
if (props.onOverlayClick) {
|
||
|
props.onOverlayClick(e);
|
||
|
}
|
||
|
if (overlayProps.onClick) {
|
||
|
overlayProps.onClick(e);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.onVisibleChange = function (visible) {
|
||
|
var props = _this2.props;
|
||
|
if (!('visible' in props)) {
|
||
|
_this2.setState({
|
||
|
visible: visible
|
||
|
});
|
||
|
}
|
||
|
props.onVisibleChange(visible);
|
||
|
};
|
||
|
|
||
|
this.getMinOverlayWidthMatchTrigger = function () {
|
||
|
var _props3 = _this2.props,
|
||
|
minOverlayWidthMatchTrigger = _props3.minOverlayWidthMatchTrigger,
|
||
|
alignPoint = _props3.alignPoint;
|
||
|
|
||
|
if ('minOverlayWidthMatchTrigger' in _this2.props) {
|
||
|
return minOverlayWidthMatchTrigger;
|
||
|
}
|
||
|
|
||
|
return !alignPoint;
|
||
|
};
|
||
|
|
||
|
this.getMenuElement = function () {
|
||
|
var prefixCls = _this2.props.prefixCls;
|
||
|
|
||
|
var overlayElement = _this2.getOverlayElement();
|
||
|
var extraOverlayProps = {
|
||
|
prefixCls: prefixCls + '-menu',
|
||
|
onClick: _this2.onClick
|
||
|
};
|
||
|
if (typeof overlayElement.type === 'string') {
|
||
|
delete extraOverlayProps.prefixCls;
|
||
|
}
|
||
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(overlayElement, extraOverlayProps);
|
||
|
};
|
||
|
|
||
|
this.afterVisibleChange = function (visible) {
|
||
|
if (visible && _this2.getMinOverlayWidthMatchTrigger()) {
|
||
|
var overlayNode = _this2.getPopupDomNode();
|
||
|
var rootNode = __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.findDOMNode(_this2);
|
||
|
if (rootNode && overlayNode && rootNode.offsetWidth > overlayNode.offsetWidth) {
|
||
|
overlayNode.style.minWidth = rootNode.offsetWidth + 'px';
|
||
|
if (_this2.trigger && _this2.trigger._component && _this2.trigger._component.alignInstance) {
|
||
|
_this2.trigger._component.alignInstance.forceAlign();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.saveTrigger = function (node) {
|
||
|
_this2.trigger = node;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
Object(__WEBPACK_IMPORTED_MODULE_6_react_lifecycles_compat__["polyfill"])(Dropdown);
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["a"] = (Dropdown);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1091:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* unused harmony export placements */
|
||
|
var autoAdjustOverflow = {
|
||
|
adjustX: 1,
|
||
|
adjustY: 1
|
||
|
};
|
||
|
|
||
|
var targetOffset = [0, 0];
|
||
|
|
||
|
var placements = {
|
||
|
topLeft: {
|
||
|
points: ['bl', 'tl'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, -4],
|
||
|
targetOffset: targetOffset
|
||
|
},
|
||
|
topCenter: {
|
||
|
points: ['bc', 'tc'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, -4],
|
||
|
targetOffset: targetOffset
|
||
|
},
|
||
|
topRight: {
|
||
|
points: ['br', 'tr'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, -4],
|
||
|
targetOffset: targetOffset
|
||
|
},
|
||
|
bottomLeft: {
|
||
|
points: ['tl', 'bl'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, 4],
|
||
|
targetOffset: targetOffset
|
||
|
},
|
||
|
bottomCenter: {
|
||
|
points: ['tc', 'bc'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, 4],
|
||
|
targetOffset: targetOffset
|
||
|
},
|
||
|
bottomRight: {
|
||
|
points: ['tr', 'br'],
|
||
|
overflow: autoAdjustOverflow,
|
||
|
offset: [0, 4],
|
||
|
targetOffset: targetOffset
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["a"] = (placements);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1105:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945);
|
||
|
|
||
|
var defineProperty = (function() {
|
||
|
try {
|
||
|
var func = getNative(Object, 'defineProperty');
|
||
|
func({}, '', {});
|
||
|
return func;
|
||
|
} catch (e) {}
|
||
|
}());
|
||
|
|
||
|
module.exports = defineProperty;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1106:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _button = _interopRequireDefault(__webpack_require__(74));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
var _dropdown = _interopRequireDefault(__webpack_require__(922));
|
||
|
|
||
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var ButtonGroup = _button["default"].Group;
|
||
|
|
||
|
var DropdownButton =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(DropdownButton, _React$Component);
|
||
|
|
||
|
function DropdownButton() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, DropdownButton);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(DropdownButton).apply(this, arguments));
|
||
|
|
||
|
_this.renderButton = function (_ref) {
|
||
|
var getContextPopupContainer = _ref.getPopupContainer,
|
||
|
getPrefixCls = _ref.getPrefixCls;
|
||
|
|
||
|
var _a = _this.props,
|
||
|
customizePrefixCls = _a.prefixCls,
|
||
|
type = _a.type,
|
||
|
disabled = _a.disabled,
|
||
|
onClick = _a.onClick,
|
||
|
htmlType = _a.htmlType,
|
||
|
children = _a.children,
|
||
|
className = _a.className,
|
||
|
overlay = _a.overlay,
|
||
|
trigger = _a.trigger,
|
||
|
align = _a.align,
|
||
|
visible = _a.visible,
|
||
|
onVisibleChange = _a.onVisibleChange,
|
||
|
placement = _a.placement,
|
||
|
getPopupContainer = _a.getPopupContainer,
|
||
|
href = _a.href,
|
||
|
_a$icon = _a.icon,
|
||
|
icon = _a$icon === void 0 ? React.createElement(_icon["default"], {
|
||
|
type: "ellipsis"
|
||
|
}) : _a$icon,
|
||
|
title = _a.title,
|
||
|
restProps = __rest(_a, ["prefixCls", "type", "disabled", "onClick", "htmlType", "children", "className", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "getPopupContainer", "href", "icon", "title"]);
|
||
|
|
||
|
var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
|
||
|
var dropdownProps = {
|
||
|
align: align,
|
||
|
overlay: overlay,
|
||
|
disabled: disabled,
|
||
|
trigger: disabled ? [] : trigger,
|
||
|
onVisibleChange: onVisibleChange,
|
||
|
placement: placement,
|
||
|
getPopupContainer: getPopupContainer || getContextPopupContainer
|
||
|
};
|
||
|
|
||
|
if ('visible' in _this.props) {
|
||
|
dropdownProps.visible = visible;
|
||
|
}
|
||
|
|
||
|
return React.createElement(ButtonGroup, _extends({}, restProps, {
|
||
|
className: (0, _classnames["default"])(prefixCls, className)
|
||
|
}), React.createElement(_button["default"], {
|
||
|
type: type,
|
||
|
disabled: disabled,
|
||
|
onClick: onClick,
|
||
|
htmlType: htmlType,
|
||
|
href: href,
|
||
|
title: title
|
||
|
}, children), React.createElement(_dropdown["default"], dropdownProps, React.createElement(_button["default"], {
|
||
|
type: type
|
||
|
}, icon)));
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(DropdownButton, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_configProvider.ConfigConsumer, null, this.renderButton);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return DropdownButton;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = DropdownButton;
|
||
|
DropdownButton.defaultProps = {
|
||
|
placement: 'bottomRight',
|
||
|
type: 'default'
|
||
|
};
|
||
|
//# sourceMappingURL=dropdown-button.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1120:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(1121);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
// Prepare cssTransformation
|
||
|
var transform;
|
||
|
|
||
|
var options = {"hmr":false}
|
||
|
options.transform = transform
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(313)(content, options);
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1121:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(312)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, ".ant-menu{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;font-size:14px;font-variant:tabular-nums;line-height:1.5;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\";margin-bottom:0;padding-left:0;color:rgba(0,0,0,.65);line-height:0;list-style:none;background:#fff;outline:none;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transition:background .3s,width .2s;-o-transition:background .3s,width .2s;transition:background .3s,width .2s;zoom:1}.ant-menu:after,.ant-menu:before{display:table;content:\"\"}.ant-menu:after{clear:both}.ant-menu ol,.ant-menu ul{margin:0;padding:0;list-style:none}.ant-menu-hidden{display:none}.ant-menu-item-group-title{padding:8px 16px;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-menu-submenu,.ant-menu-submenu-inline{-webkit-transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1);-o-transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1);transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-selected{color:#1890ff}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#e6f7ff}.ant-menu-submenu .ant-menu-sub{cursor:auto;-webkit-transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);-o-transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item>a{display:block;color:rgba(0,0,0,.65)}.ant-menu-item>a:hover{color:#1890ff}.ant-menu-item>a:before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:\"\"}.ant-menu-item>.ant-badge>a{color:rgba(0,0,0,.65)}.ant-menu-item>.ant-badge>a:hover{color:#1890ff}.ant-menu-item-divider{height:1px;overflow:hidden;line-height:0;background-color:#e8e8e8}.ant-menu-item-active,.ant-menu-item:hover,.ant-menu-submenu-active,.ant-menu-submenu-title:hover,.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open{color:#1890ff}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu{margin-top:-1px}.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-submenu .ant-menu-submenu-title:hover{background-color:transparent}.ant-menu-item-selected,.ant-menu-item-selected>a,.ant-menu-item-selected>a:hover{color:#1890ff}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#e6f7ff}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #e8e8e8}.ant-menu-vertical-right{border-left:1px solid #e8e8e8}.ant-menu-vertical-left.ant-menu-sub,.ant-menu-vertical-right.ant-menu-sub,.ant-menu-vertical.ant-menu-sub{min-width:160px;padding:0;border-right:0;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item,.ant-menu-vertical.ant-menu-sub .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical.ant-menu-sub .ant-menu-item:after{border-right:0}.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.ant-menu-horizontal.ant-menu-sub{min-width:114px}.ant-menu-item,.ant-menu-submenu-titl
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1139:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var assignValue = __webpack_require__(1226),
|
||
|
baseAssignValue = __webpack_require__(984);
|
||
|
|
||
|
/**
|
||
|
* Copies properties of `source` to `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} source The object to copy properties from.
|
||
|
* @param {Array} props The property identifiers to copy.
|
||
|
* @param {Object} [object={}] The object to copy properties to.
|
||
|
* @param {Function} [customizer] The function to customize copied values.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function copyObject(source, props, object, customizer) {
|
||
|
var isNew = !object;
|
||
|
object || (object = {});
|
||
|
|
||
|
var index = -1,
|
||
|
length = props.length;
|
||
|
|
||
|
while (++index < length) {
|
||
|
var key = props[index];
|
||
|
|
||
|
var newValue = customizer
|
||
|
? customizer(object[key], source[key], key, object, source)
|
||
|
: undefined;
|
||
|
|
||
|
if (newValue === undefined) {
|
||
|
newValue = source[key];
|
||
|
}
|
||
|
if (isNew) {
|
||
|
baseAssignValue(object, key, newValue);
|
||
|
} else {
|
||
|
assignValue(object, key, newValue);
|
||
|
}
|
||
|
}
|
||
|
return object;
|
||
|
}
|
||
|
|
||
|
module.exports = copyObject;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1140:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isSymbol = __webpack_require__(330);
|
||
|
|
||
|
/** Used as references for various `Number` constants. */
|
||
|
var INFINITY = 1 / 0;
|
||
|
|
||
|
/**
|
||
|
* Converts `value` to a string key if it's not a string or symbol.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to inspect.
|
||
|
* @returns {string|symbol} Returns the key.
|
||
|
*/
|
||
|
function toKey(value) {
|
||
|
if (typeof value == 'string' || isSymbol(value)) {
|
||
|
return value;
|
||
|
}
|
||
|
var result = (value + '');
|
||
|
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
||
|
}
|
||
|
|
||
|
module.exports = toKey;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1148:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var ListCache = __webpack_require__(918),
|
||
|
stackClear = __webpack_require__(1259),
|
||
|
stackDelete = __webpack_require__(1260),
|
||
|
stackGet = __webpack_require__(1261),
|
||
|
stackHas = __webpack_require__(1262),
|
||
|
stackSet = __webpack_require__(1263);
|
||
|
|
||
|
/**
|
||
|
* Creates a stack cache object to store key-value pairs.
|
||
|
*
|
||
|
* @private
|
||
|
* @constructor
|
||
|
* @param {Array} [entries] The key-value pairs to cache.
|
||
|
*/
|
||
|
function Stack(entries) {
|
||
|
var data = this.__data__ = new ListCache(entries);
|
||
|
this.size = data.size;
|
||
|
}
|
||
|
|
||
|
// Add methods to `Stack`.
|
||
|
Stack.prototype.clear = stackClear;
|
||
|
Stack.prototype['delete'] = stackDelete;
|
||
|
Stack.prototype.get = stackGet;
|
||
|
Stack.prototype.has = stackHas;
|
||
|
Stack.prototype.set = stackSet;
|
||
|
|
||
|
module.exports = Stack;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1149:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Uint8Array = __webpack_require__(1231);
|
||
|
|
||
|
/**
|
||
|
* Creates a clone of `arrayBuffer`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
||
|
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
||
|
*/
|
||
|
function cloneArrayBuffer(arrayBuffer) {
|
||
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
||
|
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = cloneArrayBuffer;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1150:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.unary` without support for storing metadata.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to cap arguments for.
|
||
|
* @returns {Function} Returns the new capped function.
|
||
|
*/
|
||
|
function baseUnary(func) {
|
||
|
return function(value) {
|
||
|
return func(value);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = baseUnary;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1151:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(344);
|
||
|
|
||
|
/** Detect free variable `exports`. */
|
||
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
||
|
|
||
|
/** Detect free variable `module`. */
|
||
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
||
|
|
||
|
/** Detect the popular CommonJS extension `module.exports`. */
|
||
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
||
|
|
||
|
/** Detect free variable `process` from Node.js. */
|
||
|
var freeProcess = moduleExports && freeGlobal.process;
|
||
|
|
||
|
/** Used to access faster Node.js helpers. */
|
||
|
var nodeUtil = (function() {
|
||
|
try {
|
||
|
// Use `util.types` for Node.js 10+.
|
||
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
||
|
|
||
|
if (types) {
|
||
|
return types;
|
||
|
}
|
||
|
|
||
|
// Legacy `process.binding('util')` for Node.js < 10.
|
||
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
||
|
} catch (e) {}
|
||
|
}());
|
||
|
|
||
|
module.exports = nodeUtil;
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(321)(module)))
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1152:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isArray = __webpack_require__(895),
|
||
|
isSymbol = __webpack_require__(330);
|
||
|
|
||
|
/** Used to match property names within property paths. */
|
||
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
||
|
reIsPlainProp = /^\w*$/;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a property name and not a property path.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @param {Object} [object] The object to query keys on.
|
||
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
||
|
*/
|
||
|
function isKey(value, object) {
|
||
|
if (isArray(value)) {
|
||
|
return false;
|
||
|
}
|
||
|
var type = typeof value;
|
||
|
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
||
|
value == null || isSymbol(value)) {
|
||
|
return true;
|
||
|
}
|
||
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
||
|
(object != null && value in Object(object));
|
||
|
}
|
||
|
|
||
|
module.exports = isKey;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1226:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseAssignValue = __webpack_require__(984),
|
||
|
eq = __webpack_require__(925);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
||
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
||
|
* for equality comparisons.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to modify.
|
||
|
* @param {string} key The key of the property to assign.
|
||
|
* @param {*} value The value to assign.
|
||
|
*/
|
||
|
function assignValue(object, key, value) {
|
||
|
var objValue = object[key];
|
||
|
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
|
||
|
(value === undefined && !(key in object))) {
|
||
|
baseAssignValue(object, key, value);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = assignValue;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1227:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isArray = __webpack_require__(895),
|
||
|
isKey = __webpack_require__(1152),
|
||
|
stringToPath = __webpack_require__(1288),
|
||
|
toString = __webpack_require__(1291);
|
||
|
|
||
|
/**
|
||
|
* Casts `value` to a path array if it's not one.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to inspect.
|
||
|
* @param {Object} [object] The object to query keys on.
|
||
|
* @returns {Array} Returns the cast property path array.
|
||
|
*/
|
||
|
function castPath(value, object) {
|
||
|
if (isArray(value)) {
|
||
|
return value;
|
||
|
}
|
||
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
||
|
}
|
||
|
|
||
|
module.exports = castPath;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1230:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var funcProto = Function.prototype;
|
||
|
|
||
|
/** Used to resolve the decompiled source of functions. */
|
||
|
var funcToString = funcProto.toString;
|
||
|
|
||
|
/**
|
||
|
* Converts `func` to its source code.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to convert.
|
||
|
* @returns {string} Returns the source code.
|
||
|
*/
|
||
|
function toSource(func) {
|
||
|
if (func != null) {
|
||
|
try {
|
||
|
return funcToString.call(func);
|
||
|
} catch (e) {}
|
||
|
try {
|
||
|
return (func + '');
|
||
|
} catch (e) {}
|
||
|
}
|
||
|
return '';
|
||
|
}
|
||
|
|
||
|
module.exports = toSource;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1231:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var root = __webpack_require__(174);
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var Uint8Array = root.Uint8Array;
|
||
|
|
||
|
module.exports = Uint8Array;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1232:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Creates a unary function that invokes `func` with its argument transformed.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to wrap.
|
||
|
* @param {Function} transform The argument transform.
|
||
|
* @returns {Function} Returns the new function.
|
||
|
*/
|
||
|
function overArg(func, transform) {
|
||
|
return function(arg) {
|
||
|
return func(transform(arg));
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = overArg;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1233:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseTimes = __webpack_require__(1285),
|
||
|
isArguments = __webpack_require__(1087),
|
||
|
isArray = __webpack_require__(895),
|
||
|
isBuffer = __webpack_require__(1074),
|
||
|
isIndex = __webpack_require__(1083),
|
||
|
isTypedArray = __webpack_require__(1088);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the enumerable property names of the array-like `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to query.
|
||
|
* @param {boolean} inherited Specify returning inherited property names.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function arrayLikeKeys(value, inherited) {
|
||
|
var isArr = isArray(value),
|
||
|
isArg = !isArr && isArguments(value),
|
||
|
isBuff = !isArr && !isArg && isBuffer(value),
|
||
|
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
||
|
skipIndexes = isArr || isArg || isBuff || isType,
|
||
|
result = skipIndexes ? baseTimes(value.length, String) : [],
|
||
|
length = result.length;
|
||
|
|
||
|
for (var key in value) {
|
||
|
if ((inherited || hasOwnProperty.call(value, key)) &&
|
||
|
!(skipIndexes && (
|
||
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
||
|
key == 'length' ||
|
||
|
// Node.js 0.10 has enumerable non-index properties on buffers.
|
||
|
(isBuff && (key == 'offset' || key == 'parent')) ||
|
||
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
||
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
||
|
// Skip index properties.
|
||
|
isIndex(key, length)
|
||
|
))) {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = arrayLikeKeys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1234:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var castPath = __webpack_require__(1227),
|
||
|
toKey = __webpack_require__(1140);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.get` without support for default values.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @param {Array|string} path The path of the property to get.
|
||
|
* @returns {*} Returns the resolved value.
|
||
|
*/
|
||
|
function baseGet(object, path) {
|
||
|
path = castPath(path, object);
|
||
|
|
||
|
var index = 0,
|
||
|
length = path.length;
|
||
|
|
||
|
while (object != null && index < length) {
|
||
|
object = object[toKey(path[index++])];
|
||
|
}
|
||
|
return (index && index == length) ? object : undefined;
|
||
|
}
|
||
|
|
||
|
module.exports = baseGet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1235:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `_.map` for arrays without support for iteratee
|
||
|
* shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} [array] The array to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Array} Returns the new mapped array.
|
||
|
*/
|
||
|
function arrayMap(array, iteratee) {
|
||
|
var index = -1,
|
||
|
length = array == null ? 0 : array.length,
|
||
|
result = Array(length);
|
||
|
|
||
|
while (++index < length) {
|
||
|
result[index] = iteratee(array[index], index, array);
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = arrayMap;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1246:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var createBaseFor = __webpack_require__(1280);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `baseForOwn` which iterates over `object`
|
||
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
||
|
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
var baseFor = createBaseFor();
|
||
|
|
||
|
module.exports = baseFor;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1247:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(174);
|
||
|
|
||
|
/** Detect free variable `exports`. */
|
||
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
||
|
|
||
|
/** Detect free variable `module`. */
|
||
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
||
|
|
||
|
/** Detect the popular CommonJS extension `module.exports`. */
|
||
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var Buffer = moduleExports ? root.Buffer : undefined,
|
||
|
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
||
|
|
||
|
/**
|
||
|
* Creates a clone of `buffer`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Buffer} buffer The buffer to clone.
|
||
|
* @param {boolean} [isDeep] Specify a deep clone.
|
||
|
* @returns {Buffer} Returns the cloned buffer.
|
||
|
*/
|
||
|
function cloneBuffer(buffer, isDeep) {
|
||
|
if (isDeep) {
|
||
|
return buffer.slice();
|
||
|
}
|
||
|
var length = buffer.length,
|
||
|
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
||
|
|
||
|
buffer.copy(result);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = cloneBuffer;
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(321)(module)))
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1248:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var cloneArrayBuffer = __webpack_require__(1149);
|
||
|
|
||
|
/**
|
||
|
* Creates a clone of `typedArray`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} typedArray The typed array to clone.
|
||
|
* @param {boolean} [isDeep] Specify a deep clone.
|
||
|
* @returns {Object} Returns the cloned typed array.
|
||
|
*/
|
||
|
function cloneTypedArray(typedArray, isDeep) {
|
||
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
||
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
||
|
}
|
||
|
|
||
|
module.exports = cloneTypedArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1249:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Copies the values of `source` to `array`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} source The array to copy values from.
|
||
|
* @param {Array} [array=[]] The array to copy values to.
|
||
|
* @returns {Array} Returns `array`.
|
||
|
*/
|
||
|
function copyArray(source, array) {
|
||
|
var index = -1,
|
||
|
length = source.length;
|
||
|
|
||
|
array || (array = Array(length));
|
||
|
while (++index < length) {
|
||
|
array[index] = source[index];
|
||
|
}
|
||
|
return array;
|
||
|
}
|
||
|
|
||
|
module.exports = copyArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1250:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseCreate = __webpack_require__(1281),
|
||
|
getPrototype = __webpack_require__(1077),
|
||
|
isPrototype = __webpack_require__(1078);
|
||
|
|
||
|
/**
|
||
|
* Initializes an object clone.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to clone.
|
||
|
* @returns {Object} Returns the initialized clone.
|
||
|
*/
|
||
|
function initCloneObject(object) {
|
||
|
return (typeof object.constructor == 'function' && !isPrototype(object))
|
||
|
? baseCreate(getPrototype(object))
|
||
|
: {};
|
||
|
}
|
||
|
|
||
|
module.exports = initCloneObject;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1251:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(327),
|
||
|
getPrototype = __webpack_require__(1077),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var objectTag = '[object Object]';
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var funcProto = Function.prototype,
|
||
|
objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to resolve the decompiled source of functions. */
|
||
|
var funcToString = funcProto.toString;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/** Used to infer the `Object` constructor. */
|
||
|
var objectCtorString = funcToString.call(Object);
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a plain object, that is, an object created by the
|
||
|
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.8.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* function Foo() {
|
||
|
* this.a = 1;
|
||
|
* }
|
||
|
*
|
||
|
* _.isPlainObject(new Foo);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isPlainObject([1, 2, 3]);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isPlainObject(Object.create(null));
|
||
|
* // => true
|
||
|
*/
|
||
|
function isPlainObject(value) {
|
||
|
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
||
|
return false;
|
||
|
}
|
||
|
var proto = getPrototype(value);
|
||
|
if (proto === null) {
|
||
|
return true;
|
||
|
}
|
||
|
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
||
|
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
||
|
funcToString.call(Ctor) == objectCtorString;
|
||
|
}
|
||
|
|
||
|
module.exports = isPlainObject;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1252:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGet = __webpack_require__(1234);
|
||
|
|
||
|
/**
|
||
|
* Gets the value at `path` of `object`. If the resolved value is
|
||
|
* `undefined`, the `defaultValue` is returned in its place.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 3.7.0
|
||
|
* @category Object
|
||
|
* @param {Object} object The object to query.
|
||
|
* @param {Array|string} path The path of the property to get.
|
||
|
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
||
|
* @returns {*} Returns the resolved value.
|
||
|
* @example
|
||
|
*
|
||
|
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
||
|
*
|
||
|
* _.get(object, 'a[0].b.c');
|
||
|
* // => 3
|
||
|
*
|
||
|
* _.get(object, ['a', '0', 'b', 'c']);
|
||
|
* // => 3
|
||
|
*
|
||
|
* _.get(object, 'a.b.c', 'default');
|
||
|
* // => 'default'
|
||
|
*/
|
||
|
function get(object, path, defaultValue) {
|
||
|
var result = object == null ? undefined : baseGet(object, path);
|
||
|
return result === undefined ? defaultValue : result;
|
||
|
}
|
||
|
|
||
|
module.exports = get;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1254:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Removes all key-value entries from the list cache.
|
||
|
*
|
||
|
* @private
|
||
|
* @name clear
|
||
|
* @memberOf ListCache
|
||
|
*/
|
||
|
function listCacheClear() {
|
||
|
this.__data__ = [];
|
||
|
this.size = 0;
|
||
|
}
|
||
|
|
||
|
module.exports = listCacheClear;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1255:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var assocIndexOf = __webpack_require__(919);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var arrayProto = Array.prototype;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var splice = arrayProto.splice;
|
||
|
|
||
|
/**
|
||
|
* Removes `key` and its value from the list cache.
|
||
|
*
|
||
|
* @private
|
||
|
* @name delete
|
||
|
* @memberOf ListCache
|
||
|
* @param {string} key The key of the value to remove.
|
||
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
||
|
*/
|
||
|
function listCacheDelete(key) {
|
||
|
var data = this.__data__,
|
||
|
index = assocIndexOf(data, key);
|
||
|
|
||
|
if (index < 0) {
|
||
|
return false;
|
||
|
}
|
||
|
var lastIndex = data.length - 1;
|
||
|
if (index == lastIndex) {
|
||
|
data.pop();
|
||
|
} else {
|
||
|
splice.call(data, index, 1);
|
||
|
}
|
||
|
--this.size;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
module.exports = listCacheDelete;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1256:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var assocIndexOf = __webpack_require__(919);
|
||
|
|
||
|
/**
|
||
|
* Gets the list cache value for `key`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name get
|
||
|
* @memberOf ListCache
|
||
|
* @param {string} key The key of the value to get.
|
||
|
* @returns {*} Returns the entry value.
|
||
|
*/
|
||
|
function listCacheGet(key) {
|
||
|
var data = this.__data__,
|
||
|
index = assocIndexOf(data, key);
|
||
|
|
||
|
return index < 0 ? undefined : data[index][1];
|
||
|
}
|
||
|
|
||
|
module.exports = listCacheGet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1257:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var assocIndexOf = __webpack_require__(919);
|
||
|
|
||
|
/**
|
||
|
* Checks if a list cache value for `key` exists.
|
||
|
*
|
||
|
* @private
|
||
|
* @name has
|
||
|
* @memberOf ListCache
|
||
|
* @param {string} key The key of the entry to check.
|
||
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||
|
*/
|
||
|
function listCacheHas(key) {
|
||
|
return assocIndexOf(this.__data__, key) > -1;
|
||
|
}
|
||
|
|
||
|
module.exports = listCacheHas;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1258:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var assocIndexOf = __webpack_require__(919);
|
||
|
|
||
|
/**
|
||
|
* Sets the list cache `key` to `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name set
|
||
|
* @memberOf ListCache
|
||
|
* @param {string} key The key of the value to set.
|
||
|
* @param {*} value The value to set.
|
||
|
* @returns {Object} Returns the list cache instance.
|
||
|
*/
|
||
|
function listCacheSet(key, value) {
|
||
|
var data = this.__data__,
|
||
|
index = assocIndexOf(data, key);
|
||
|
|
||
|
if (index < 0) {
|
||
|
++this.size;
|
||
|
data.push([key, value]);
|
||
|
} else {
|
||
|
data[index][1] = value;
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
module.exports = listCacheSet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1259:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var ListCache = __webpack_require__(918);
|
||
|
|
||
|
/**
|
||
|
* Removes all key-value entries from the stack.
|
||
|
*
|
||
|
* @private
|
||
|
* @name clear
|
||
|
* @memberOf Stack
|
||
|
*/
|
||
|
function stackClear() {
|
||
|
this.__data__ = new ListCache;
|
||
|
this.size = 0;
|
||
|
}
|
||
|
|
||
|
module.exports = stackClear;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1260:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Removes `key` and its value from the stack.
|
||
|
*
|
||
|
* @private
|
||
|
* @name delete
|
||
|
* @memberOf Stack
|
||
|
* @param {string} key The key of the value to remove.
|
||
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
||
|
*/
|
||
|
function stackDelete(key) {
|
||
|
var data = this.__data__,
|
||
|
result = data['delete'](key);
|
||
|
|
||
|
this.size = data.size;
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = stackDelete;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1261:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Gets the stack value for `key`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name get
|
||
|
* @memberOf Stack
|
||
|
* @param {string} key The key of the value to get.
|
||
|
* @returns {*} Returns the entry value.
|
||
|
*/
|
||
|
function stackGet(key) {
|
||
|
return this.__data__.get(key);
|
||
|
}
|
||
|
|
||
|
module.exports = stackGet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1262:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Checks if a stack value for `key` exists.
|
||
|
*
|
||
|
* @private
|
||
|
* @name has
|
||
|
* @memberOf Stack
|
||
|
* @param {string} key The key of the entry to check.
|
||
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||
|
*/
|
||
|
function stackHas(key) {
|
||
|
return this.__data__.has(key);
|
||
|
}
|
||
|
|
||
|
module.exports = stackHas;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1263:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var ListCache = __webpack_require__(918),
|
||
|
Map = __webpack_require__(1075),
|
||
|
MapCache = __webpack_require__(1076);
|
||
|
|
||
|
/** Used as the size to enable large array optimizations. */
|
||
|
var LARGE_ARRAY_SIZE = 200;
|
||
|
|
||
|
/**
|
||
|
* Sets the stack `key` to `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name set
|
||
|
* @memberOf Stack
|
||
|
* @param {string} key The key of the value to set.
|
||
|
* @param {*} value The value to set.
|
||
|
* @returns {Object} Returns the stack cache instance.
|
||
|
*/
|
||
|
function stackSet(key, value) {
|
||
|
var data = this.__data__;
|
||
|
if (data instanceof ListCache) {
|
||
|
var pairs = data.__data__;
|
||
|
if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
||
|
pairs.push([key, value]);
|
||
|
this.size = ++data.size;
|
||
|
return this;
|
||
|
}
|
||
|
data = this.__data__ = new MapCache(pairs);
|
||
|
}
|
||
|
data.set(key, value);
|
||
|
this.size = data.size;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
module.exports = stackSet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1264:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isFunction = __webpack_require__(983),
|
||
|
isMasked = __webpack_require__(1265),
|
||
|
isObject = __webpack_require__(170),
|
||
|
toSource = __webpack_require__(1230);
|
||
|
|
||
|
/**
|
||
|
* Used to match `RegExp`
|
||
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
||
|
*/
|
||
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||
|
|
||
|
/** Used to detect host constructors (Safari). */
|
||
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var funcProto = Function.prototype,
|
||
|
objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to resolve the decompiled source of functions. */
|
||
|
var funcToString = funcProto.toString;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/** Used to detect if a method is native. */
|
||
|
var reIsNative = RegExp('^' +
|
||
|
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
||
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
||
|
);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isNative` without bad shim checks.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
||
|
* else `false`.
|
||
|
*/
|
||
|
function baseIsNative(value) {
|
||
|
if (!isObject(value) || isMasked(value)) {
|
||
|
return false;
|
||
|
}
|
||
|
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
||
|
return pattern.test(toSource(value));
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsNative;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1265:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var coreJsData = __webpack_require__(1266);
|
||
|
|
||
|
/** Used to detect methods masquerading as native. */
|
||
|
var maskSrcKey = (function() {
|
||
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
||
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
||
|
}());
|
||
|
|
||
|
/**
|
||
|
* Checks if `func` has its source masked.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to check.
|
||
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
||
|
*/
|
||
|
function isMasked(func) {
|
||
|
return !!maskSrcKey && (maskSrcKey in func);
|
||
|
}
|
||
|
|
||
|
module.exports = isMasked;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1266:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var root = __webpack_require__(174);
|
||
|
|
||
|
/** Used to detect overreaching core-js shims. */
|
||
|
var coreJsData = root['__core-js_shared__'];
|
||
|
|
||
|
module.exports = coreJsData;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1267:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Gets the value at `key` of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} [object] The object to query.
|
||
|
* @param {string} key The key of the property to get.
|
||
|
* @returns {*} Returns the property value.
|
||
|
*/
|
||
|
function getValue(object, key) {
|
||
|
return object == null ? undefined : object[key];
|
||
|
}
|
||
|
|
||
|
module.exports = getValue;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1268:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Hash = __webpack_require__(1269),
|
||
|
ListCache = __webpack_require__(918),
|
||
|
Map = __webpack_require__(1075);
|
||
|
|
||
|
/**
|
||
|
* Removes all key-value entries from the map.
|
||
|
*
|
||
|
* @private
|
||
|
* @name clear
|
||
|
* @memberOf MapCache
|
||
|
*/
|
||
|
function mapCacheClear() {
|
||
|
this.size = 0;
|
||
|
this.__data__ = {
|
||
|
'hash': new Hash,
|
||
|
'map': new (Map || ListCache),
|
||
|
'string': new Hash
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = mapCacheClear;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1269:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var hashClear = __webpack_require__(1270),
|
||
|
hashDelete = __webpack_require__(1271),
|
||
|
hashGet = __webpack_require__(1272),
|
||
|
hashHas = __webpack_require__(1273),
|
||
|
hashSet = __webpack_require__(1274);
|
||
|
|
||
|
/**
|
||
|
* Creates a hash object.
|
||
|
*
|
||
|
* @private
|
||
|
* @constructor
|
||
|
* @param {Array} [entries] The key-value pairs to cache.
|
||
|
*/
|
||
|
function Hash(entries) {
|
||
|
var index = -1,
|
||
|
length = entries == null ? 0 : entries.length;
|
||
|
|
||
|
this.clear();
|
||
|
while (++index < length) {
|
||
|
var entry = entries[index];
|
||
|
this.set(entry[0], entry[1]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Add methods to `Hash`.
|
||
|
Hash.prototype.clear = hashClear;
|
||
|
Hash.prototype['delete'] = hashDelete;
|
||
|
Hash.prototype.get = hashGet;
|
||
|
Hash.prototype.has = hashHas;
|
||
|
Hash.prototype.set = hashSet;
|
||
|
|
||
|
module.exports = Hash;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1270:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var nativeCreate = __webpack_require__(920);
|
||
|
|
||
|
/**
|
||
|
* Removes all key-value entries from the hash.
|
||
|
*
|
||
|
* @private
|
||
|
* @name clear
|
||
|
* @memberOf Hash
|
||
|
*/
|
||
|
function hashClear() {
|
||
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
||
|
this.size = 0;
|
||
|
}
|
||
|
|
||
|
module.exports = hashClear;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1271:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Removes `key` and its value from the hash.
|
||
|
*
|
||
|
* @private
|
||
|
* @name delete
|
||
|
* @memberOf Hash
|
||
|
* @param {Object} hash The hash to modify.
|
||
|
* @param {string} key The key of the value to remove.
|
||
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
||
|
*/
|
||
|
function hashDelete(key) {
|
||
|
var result = this.has(key) && delete this.__data__[key];
|
||
|
this.size -= result ? 1 : 0;
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = hashDelete;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1272:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var nativeCreate = __webpack_require__(920);
|
||
|
|
||
|
/** Used to stand-in for `undefined` hash values. */
|
||
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Gets the hash value for `key`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name get
|
||
|
* @memberOf Hash
|
||
|
* @param {string} key The key of the value to get.
|
||
|
* @returns {*} Returns the entry value.
|
||
|
*/
|
||
|
function hashGet(key) {
|
||
|
var data = this.__data__;
|
||
|
if (nativeCreate) {
|
||
|
var result = data[key];
|
||
|
return result === HASH_UNDEFINED ? undefined : result;
|
||
|
}
|
||
|
return hasOwnProperty.call(data, key) ? data[key] : undefined;
|
||
|
}
|
||
|
|
||
|
module.exports = hashGet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1273:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var nativeCreate = __webpack_require__(920);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Checks if a hash value for `key` exists.
|
||
|
*
|
||
|
* @private
|
||
|
* @name has
|
||
|
* @memberOf Hash
|
||
|
* @param {string} key The key of the entry to check.
|
||
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||
|
*/
|
||
|
function hashHas(key) {
|
||
|
var data = this.__data__;
|
||
|
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
||
|
}
|
||
|
|
||
|
module.exports = hashHas;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1274:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var nativeCreate = __webpack_require__(920);
|
||
|
|
||
|
/** Used to stand-in for `undefined` hash values. */
|
||
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
||
|
|
||
|
/**
|
||
|
* Sets the hash `key` to `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name set
|
||
|
* @memberOf Hash
|
||
|
* @param {string} key The key of the value to set.
|
||
|
* @param {*} value The value to set.
|
||
|
* @returns {Object} Returns the hash instance.
|
||
|
*/
|
||
|
function hashSet(key, value) {
|
||
|
var data = this.__data__;
|
||
|
this.size += this.has(key) ? 0 : 1;
|
||
|
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
module.exports = hashSet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1275:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getMapData = __webpack_require__(921);
|
||
|
|
||
|
/**
|
||
|
* Removes `key` and its value from the map.
|
||
|
*
|
||
|
* @private
|
||
|
* @name delete
|
||
|
* @memberOf MapCache
|
||
|
* @param {string} key The key of the value to remove.
|
||
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
||
|
*/
|
||
|
function mapCacheDelete(key) {
|
||
|
var result = getMapData(this, key)['delete'](key);
|
||
|
this.size -= result ? 1 : 0;
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = mapCacheDelete;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1276:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is suitable for use as unique object key.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
||
|
*/
|
||
|
function isKeyable(value) {
|
||
|
var type = typeof value;
|
||
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
||
|
? (value !== '__proto__')
|
||
|
: (value === null);
|
||
|
}
|
||
|
|
||
|
module.exports = isKeyable;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1277:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getMapData = __webpack_require__(921);
|
||
|
|
||
|
/**
|
||
|
* Gets the map value for `key`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name get
|
||
|
* @memberOf MapCache
|
||
|
* @param {string} key The key of the value to get.
|
||
|
* @returns {*} Returns the entry value.
|
||
|
*/
|
||
|
function mapCacheGet(key) {
|
||
|
return getMapData(this, key).get(key);
|
||
|
}
|
||
|
|
||
|
module.exports = mapCacheGet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1278:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getMapData = __webpack_require__(921);
|
||
|
|
||
|
/**
|
||
|
* Checks if a map value for `key` exists.
|
||
|
*
|
||
|
* @private
|
||
|
* @name has
|
||
|
* @memberOf MapCache
|
||
|
* @param {string} key The key of the entry to check.
|
||
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||
|
*/
|
||
|
function mapCacheHas(key) {
|
||
|
return getMapData(this, key).has(key);
|
||
|
}
|
||
|
|
||
|
module.exports = mapCacheHas;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1279:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getMapData = __webpack_require__(921);
|
||
|
|
||
|
/**
|
||
|
* Sets the map `key` to `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @name set
|
||
|
* @memberOf MapCache
|
||
|
* @param {string} key The key of the value to set.
|
||
|
* @param {*} value The value to set.
|
||
|
* @returns {Object} Returns the map cache instance.
|
||
|
*/
|
||
|
function mapCacheSet(key, value) {
|
||
|
var data = getMapData(this, key),
|
||
|
size = data.size;
|
||
|
|
||
|
data.set(key, value);
|
||
|
this.size += data.size == size ? 0 : 1;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
module.exports = mapCacheSet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1280:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||
|
* @returns {Function} Returns the new base function.
|
||
|
*/
|
||
|
function createBaseFor(fromRight) {
|
||
|
return function(object, iteratee, keysFunc) {
|
||
|
var index = -1,
|
||
|
iterable = Object(object),
|
||
|
props = keysFunc(object),
|
||
|
length = props.length;
|
||
|
|
||
|
while (length--) {
|
||
|
var key = props[fromRight ? length : ++index];
|
||
|
if (iteratee(iterable[key], key, iterable) === false) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return object;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = createBaseFor;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1281:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(170);
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var objectCreate = Object.create;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.create` without support for assigning
|
||
|
* properties to the created object.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} proto The object to inherit from.
|
||
|
* @returns {Object} Returns the new object.
|
||
|
*/
|
||
|
var baseCreate = (function() {
|
||
|
function object() {}
|
||
|
return function(proto) {
|
||
|
if (!isObject(proto)) {
|
||
|
return {};
|
||
|
}
|
||
|
if (objectCreate) {
|
||
|
return objectCreate(proto);
|
||
|
}
|
||
|
object.prototype = proto;
|
||
|
var result = new object;
|
||
|
object.prototype = undefined;
|
||
|
return result;
|
||
|
};
|
||
|
}());
|
||
|
|
||
|
module.exports = baseCreate;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1282:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(327),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var argsTag = '[object Arguments]';
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isArguments`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
||
|
*/
|
||
|
function baseIsArguments(value) {
|
||
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsArguments;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1283:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* This method returns `false`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.13.0
|
||
|
* @category Util
|
||
|
* @returns {boolean} Returns `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.times(2, _.stubFalse);
|
||
|
* // => [false, false]
|
||
|
*/
|
||
|
function stubFalse() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
module.exports = stubFalse;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1284:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(327),
|
||
|
isLength = __webpack_require__(1079),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var argsTag = '[object Arguments]',
|
||
|
arrayTag = '[object Array]',
|
||
|
boolTag = '[object Boolean]',
|
||
|
dateTag = '[object Date]',
|
||
|
errorTag = '[object Error]',
|
||
|
funcTag = '[object Function]',
|
||
|
mapTag = '[object Map]',
|
||
|
numberTag = '[object Number]',
|
||
|
objectTag = '[object Object]',
|
||
|
regexpTag = '[object RegExp]',
|
||
|
setTag = '[object Set]',
|
||
|
stringTag = '[object String]',
|
||
|
weakMapTag = '[object WeakMap]';
|
||
|
|
||
|
var arrayBufferTag = '[object ArrayBuffer]',
|
||
|
dataViewTag = '[object DataView]',
|
||
|
float32Tag = '[object Float32Array]',
|
||
|
float64Tag = '[object Float64Array]',
|
||
|
int8Tag = '[object Int8Array]',
|
||
|
int16Tag = '[object Int16Array]',
|
||
|
int32Tag = '[object Int32Array]',
|
||
|
uint8Tag = '[object Uint8Array]',
|
||
|
uint8ClampedTag = '[object Uint8ClampedArray]',
|
||
|
uint16Tag = '[object Uint16Array]',
|
||
|
uint32Tag = '[object Uint32Array]';
|
||
|
|
||
|
/** Used to identify `toStringTag` values of typed arrays. */
|
||
|
var typedArrayTags = {};
|
||
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
||
|
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
||
|
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
||
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
||
|
typedArrayTags[uint32Tag] = true;
|
||
|
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
||
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
||
|
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
||
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
||
|
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
||
|
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
||
|
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
||
|
typedArrayTags[weakMapTag] = false;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
||
|
*/
|
||
|
function baseIsTypedArray(value) {
|
||
|
return isObjectLike(value) &&
|
||
|
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsTypedArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1285:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.times` without support for iteratee shorthands
|
||
|
* or max array length checks.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {number} n The number of times to invoke `iteratee`.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Array} Returns the array of results.
|
||
|
*/
|
||
|
function baseTimes(n, iteratee) {
|
||
|
var index = -1,
|
||
|
result = Array(n);
|
||
|
|
||
|
while (++index < n) {
|
||
|
result[index] = iteratee(index);
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseTimes;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1286:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(170),
|
||
|
isPrototype = __webpack_require__(1078),
|
||
|
nativeKeysIn = __webpack_require__(1287);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function baseKeysIn(object) {
|
||
|
if (!isObject(object)) {
|
||
|
return nativeKeysIn(object);
|
||
|
}
|
||
|
var isProto = isPrototype(object),
|
||
|
result = [];
|
||
|
|
||
|
for (var key in object) {
|
||
|
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseKeysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1287:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* This function is like
|
||
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
||
|
* except that it includes inherited enumerable properties.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function nativeKeysIn(object) {
|
||
|
var result = [];
|
||
|
if (object != null) {
|
||
|
for (var key in Object(object)) {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = nativeKeysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1288:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var memoizeCapped = __webpack_require__(1289);
|
||
|
|
||
|
/** Used to match property names within property paths. */
|
||
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
||
|
|
||
|
/** Used to match backslashes in property paths. */
|
||
|
var reEscapeChar = /\\(\\)?/g;
|
||
|
|
||
|
/**
|
||
|
* Converts `string` to a property path array.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {string} string The string to convert.
|
||
|
* @returns {Array} Returns the property path array.
|
||
|
*/
|
||
|
var stringToPath = memoizeCapped(function(string) {
|
||
|
var result = [];
|
||
|
if (string.charCodeAt(0) === 46 /* . */) {
|
||
|
result.push('');
|
||
|
}
|
||
|
string.replace(rePropName, function(match, number, quote, subString) {
|
||
|
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
||
|
});
|
||
|
return result;
|
||
|
});
|
||
|
|
||
|
module.exports = stringToPath;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1289:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var memoize = __webpack_require__(1290);
|
||
|
|
||
|
/** Used as the maximum memoize cache size. */
|
||
|
var MAX_MEMOIZE_SIZE = 500;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `_.memoize` which clears the memoized function's
|
||
|
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to have its output memoized.
|
||
|
* @returns {Function} Returns the new memoized function.
|
||
|
*/
|
||
|
function memoizeCapped(func) {
|
||
|
var result = memoize(func, function(key) {
|
||
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
||
|
cache.clear();
|
||
|
}
|
||
|
return key;
|
||
|
});
|
||
|
|
||
|
var cache = result.cache;
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = memoizeCapped;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1290:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var MapCache = __webpack_require__(1076);
|
||
|
|
||
|
/** Error message constants. */
|
||
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
||
|
|
||
|
/**
|
||
|
* Creates a function that memoizes the result of `func`. If `resolver` is
|
||
|
* provided, it determines the cache key for storing the result based on the
|
||
|
* arguments provided to the memoized function. By default, the first argument
|
||
|
* provided to the memoized function is used as the map cache key. The `func`
|
||
|
* is invoked with the `this` binding of the memoized function.
|
||
|
*
|
||
|
* **Note:** The cache is exposed as the `cache` property on the memoized
|
||
|
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
||
|
* constructor with one whose instances implement the
|
||
|
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
||
|
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Function
|
||
|
* @param {Function} func The function to have its output memoized.
|
||
|
* @param {Function} [resolver] The function to resolve the cache key.
|
||
|
* @returns {Function} Returns the new memoized function.
|
||
|
* @example
|
||
|
*
|
||
|
* var object = { 'a': 1, 'b': 2 };
|
||
|
* var other = { 'c': 3, 'd': 4 };
|
||
|
*
|
||
|
* var values = _.memoize(_.values);
|
||
|
* values(object);
|
||
|
* // => [1, 2]
|
||
|
*
|
||
|
* values(other);
|
||
|
* // => [3, 4]
|
||
|
*
|
||
|
* object.a = 2;
|
||
|
* values(object);
|
||
|
* // => [1, 2]
|
||
|
*
|
||
|
* // Modify the result cache.
|
||
|
* values.cache.set(object, ['a', 'b']);
|
||
|
* values(object);
|
||
|
* // => ['a', 'b']
|
||
|
*
|
||
|
* // Replace `_.memoize.Cache`.
|
||
|
* _.memoize.Cache = WeakMap;
|
||
|
*/
|
||
|
function memoize(func, resolver) {
|
||
|
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
||
|
throw new TypeError(FUNC_ERROR_TEXT);
|
||
|
}
|
||
|
var memoized = function() {
|
||
|
var args = arguments,
|
||
|
key = resolver ? resolver.apply(this, args) : args[0],
|
||
|
cache = memoized.cache;
|
||
|
|
||
|
if (cache.has(key)) {
|
||
|
return cache.get(key);
|
||
|
}
|
||
|
var result = func.apply(this, args);
|
||
|
memoized.cache = cache.set(key, result) || cache;
|
||
|
return result;
|
||
|
};
|
||
|
memoized.cache = new (memoize.Cache || MapCache);
|
||
|
return memoized;
|
||
|
}
|
||
|
|
||
|
// Expose `MapCache`.
|
||
|
memoize.Cache = MapCache;
|
||
|
|
||
|
module.exports = memoize;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1291:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseToString = __webpack_require__(1292);
|
||
|
|
||
|
/**
|
||
|
* Converts `value` to a string. An empty string is returned for `null`
|
||
|
* and `undefined` values. The sign of `-0` is preserved.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to convert.
|
||
|
* @returns {string} Returns the converted string.
|
||
|
* @example
|
||
|
*
|
||
|
* _.toString(null);
|
||
|
* // => ''
|
||
|
*
|
||
|
* _.toString(-0);
|
||
|
* // => '-0'
|
||
|
*
|
||
|
* _.toString([1, 2, 3]);
|
||
|
* // => '1,2,3'
|
||
|
*/
|
||
|
function toString(value) {
|
||
|
return value == null ? '' : baseToString(value);
|
||
|
}
|
||
|
|
||
|
module.exports = toString;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1292:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Symbol = __webpack_require__(186),
|
||
|
arrayMap = __webpack_require__(1235),
|
||
|
isArray = __webpack_require__(895),
|
||
|
isSymbol = __webpack_require__(330);
|
||
|
|
||
|
/** Used as references for various `Number` constants. */
|
||
|
var INFINITY = 1 / 0;
|
||
|
|
||
|
/** Used to convert symbols to primitives and strings. */
|
||
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.toString` which doesn't convert nullish
|
||
|
* values to empty strings.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to process.
|
||
|
* @returns {string} Returns the string.
|
||
|
*/
|
||
|
function baseToString(value) {
|
||
|
// Exit early for strings to avoid a performance hit in some environments.
|
||
|
if (typeof value == 'string') {
|
||
|
return value;
|
||
|
}
|
||
|
if (isArray(value)) {
|
||
|
// Recursively convert values (susceptible to call stack limits).
|
||
|
return arrayMap(value, baseToString) + '';
|
||
|
}
|
||
|
if (isSymbol(value)) {
|
||
|
return symbolToString ? symbolToString.call(value) : '';
|
||
|
}
|
||
|
var result = (value + '');
|
||
|
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseToString;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1343:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = toArray;
|
||
|
|
||
|
var _react = _interopRequireDefault(__webpack_require__(0));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
function toArray(children) {
|
||
|
var ret = [];
|
||
|
|
||
|
_react.default.Children.forEach(children, function (c) {
|
||
|
ret.push(c);
|
||
|
});
|
||
|
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1368:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _KeyCode = _interopRequireDefault(__webpack_require__(345));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
/**
|
||
|
* Wrap of sub component which need use as Button capacity (like Icon component).
|
||
|
* This helps accessibility reader to tread as a interactive button to operation.
|
||
|
*/
|
||
|
|
||
|
|
||
|
var inlineStyle = {
|
||
|
border: 0,
|
||
|
background: 'transparent',
|
||
|
padding: 0,
|
||
|
lineHeight: 'inherit',
|
||
|
display: 'inline-block'
|
||
|
};
|
||
|
|
||
|
var TransButton =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(TransButton, _React$Component);
|
||
|
|
||
|
function TransButton() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, TransButton);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(TransButton).apply(this, arguments));
|
||
|
|
||
|
_this.onKeyDown = function (event) {
|
||
|
var keyCode = event.keyCode;
|
||
|
|
||
|
if (keyCode === _KeyCode["default"].ENTER) {
|
||
|
event.preventDefault();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.onKeyUp = function (event) {
|
||
|
var keyCode = event.keyCode;
|
||
|
var onClick = _this.props.onClick;
|
||
|
|
||
|
if (keyCode === _KeyCode["default"].ENTER && onClick) {
|
||
|
onClick();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.setRef = function (btn) {
|
||
|
_this.div = btn;
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(TransButton, [{
|
||
|
key: "focus",
|
||
|
value: function focus() {
|
||
|
if (this.div) {
|
||
|
this.div.focus();
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "blur",
|
||
|
value: function blur() {
|
||
|
if (this.div) {
|
||
|
this.div.blur();
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var _a = this.props,
|
||
|
style = _a.style,
|
||
|
noStyle = _a.noStyle,
|
||
|
restProps = __rest(_a, ["style", "noStyle"]);
|
||
|
|
||
|
return React.createElement("div", _extends({
|
||
|
role: "button",
|
||
|
tabIndex: 0,
|
||
|
ref: this.setRef
|
||
|
}, restProps, {
|
||
|
onKeyDown: this.onKeyDown,
|
||
|
onKeyUp: this.onKeyUp,
|
||
|
style: _extends(_extends({}, !noStyle ? inlineStyle : null), style)
|
||
|
}));
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return TransButton;
|
||
|
}(React.Component);
|
||
|
|
||
|
var _default = TransButton;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=transButton.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1425:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
|
||
|
|
||
|
var _flattenNames = __webpack_require__(2430);
|
||
|
|
||
|
var _flattenNames2 = _interopRequireDefault(_flattenNames);
|
||
|
|
||
|
var _mergeClasses = __webpack_require__(2462);
|
||
|
|
||
|
var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
|
||
|
|
||
|
var _autoprefix = __webpack_require__(2479);
|
||
|
|
||
|
var _autoprefix2 = _interopRequireDefault(_autoprefix);
|
||
|
|
||
|
var _hover2 = __webpack_require__(2480);
|
||
|
|
||
|
var _hover3 = _interopRequireDefault(_hover2);
|
||
|
|
||
|
var _active = __webpack_require__(2481);
|
||
|
|
||
|
var _active2 = _interopRequireDefault(_active);
|
||
|
|
||
|
var _loop2 = __webpack_require__(2482);
|
||
|
|
||
|
var _loop3 = _interopRequireDefault(_loop2);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
exports.hover = _hover3.default;
|
||
|
exports.handleHover = _hover3.default;
|
||
|
exports.handleActive = _active2.default;
|
||
|
exports.loop = _loop3.default;
|
||
|
var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
|
||
|
for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||
|
activations[_key - 1] = arguments[_key];
|
||
|
}
|
||
|
|
||
|
var activeNames = (0, _flattenNames2.default)(activations);
|
||
|
var merged = (0, _mergeClasses2.default)(classes, activeNames);
|
||
|
return (0, _autoprefix2.default)(merged);
|
||
|
};
|
||
|
|
||
|
exports.default = ReactCSS;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1512:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = exports.isFlexSupported = void 0;
|
||
|
|
||
|
var isStyleSupport = function isStyleSupport(styleName) {
|
||
|
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
|
||
|
var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
|
||
|
var documentElement = window.document.documentElement;
|
||
|
return styleNameList.some(function (name) {
|
||
|
return name in documentElement.style;
|
||
|
});
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
};
|
||
|
|
||
|
var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);
|
||
|
exports.isFlexSupported = isFlexSupported;
|
||
|
var _default = isStyleSupport;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=styleChecker.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1645:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayLikeKeys = __webpack_require__(1233),
|
||
|
baseKeys = __webpack_require__(2432),
|
||
|
isArrayLike = __webpack_require__(948);
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the own enumerable property names of `object`.
|
||
|
*
|
||
|
* **Note:** Non-object values are coerced to objects. See the
|
||
|
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
||
|
* for more details.
|
||
|
*
|
||
|
* @static
|
||
|
* @since 0.1.0
|
||
|
* @memberOf _
|
||
|
* @category Object
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
* @example
|
||
|
*
|
||
|
* function Foo() {
|
||
|
* this.a = 1;
|
||
|
* this.b = 2;
|
||
|
* }
|
||
|
*
|
||
|
* Foo.prototype.c = 3;
|
||
|
*
|
||
|
* _.keys(new Foo);
|
||
|
* // => ['a', 'b'] (iteration order is not guaranteed)
|
||
|
*
|
||
|
* _.keys('hi');
|
||
|
* // => ['0', '1']
|
||
|
*/
|
||
|
function keys(object) {
|
||
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
||
|
}
|
||
|
|
||
|
module.exports = keys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1658:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = findDOMNode;
|
||
|
|
||
|
var _reactDom = _interopRequireDefault(__webpack_require__(4));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
/**
|
||
|
* Return if a node is a DOM node. Else will return by `findDOMNode`
|
||
|
*/
|
||
|
function findDOMNode(node) {
|
||
|
if (node instanceof HTMLElement) {
|
||
|
return node;
|
||
|
}
|
||
|
|
||
|
return _reactDom.default.findDOMNode(node);
|
||
|
}
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1740:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var DataView = __webpack_require__(2448),
|
||
|
Map = __webpack_require__(1075),
|
||
|
Promise = __webpack_require__(2449),
|
||
|
Set = __webpack_require__(2450),
|
||
|
WeakMap = __webpack_require__(2451),
|
||
|
baseGetTag = __webpack_require__(327),
|
||
|
toSource = __webpack_require__(1230);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var mapTag = '[object Map]',
|
||
|
objectTag = '[object Object]',
|
||
|
promiseTag = '[object Promise]',
|
||
|
setTag = '[object Set]',
|
||
|
weakMapTag = '[object WeakMap]';
|
||
|
|
||
|
var dataViewTag = '[object DataView]';
|
||
|
|
||
|
/** Used to detect maps, sets, and weakmaps. */
|
||
|
var dataViewCtorString = toSource(DataView),
|
||
|
mapCtorString = toSource(Map),
|
||
|
promiseCtorString = toSource(Promise),
|
||
|
setCtorString = toSource(Set),
|
||
|
weakMapCtorString = toSource(WeakMap);
|
||
|
|
||
|
/**
|
||
|
* Gets the `toStringTag` of `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to query.
|
||
|
* @returns {string} Returns the `toStringTag`.
|
||
|
*/
|
||
|
var getTag = baseGetTag;
|
||
|
|
||
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
||
|
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
||
|
(Map && getTag(new Map) != mapTag) ||
|
||
|
(Promise && getTag(Promise.resolve()) != promiseTag) ||
|
||
|
(Set && getTag(new Set) != setTag) ||
|
||
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
||
|
getTag = function(value) {
|
||
|
var result = baseGetTag(value),
|
||
|
Ctor = result == objectTag ? value.constructor : undefined,
|
||
|
ctorString = Ctor ? toSource(Ctor) : '';
|
||
|
|
||
|
if (ctorString) {
|
||
|
switch (ctorString) {
|
||
|
case dataViewCtorString: return dataViewTag;
|
||
|
case mapCtorString: return mapTag;
|
||
|
case promiseCtorString: return promiseTag;
|
||
|
case setCtorString: return setTag;
|
||
|
case weakMapCtorString: return weakMapTag;
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = getTag;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1789:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(1894);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
// Prepare cssTransformation
|
||
|
var transform;
|
||
|
|
||
|
var options = {"hmr":false}
|
||
|
options.transform = transform
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(313)(content, options);
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1790:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseForOwn = __webpack_require__(1962),
|
||
|
castFunction = __webpack_require__(2383);
|
||
|
|
||
|
/**
|
||
|
* Iterates over own enumerable string keyed properties of an object and
|
||
|
* invokes `iteratee` for each property. The iteratee is invoked with three
|
||
|
* arguments: (value, key, object). Iteratee functions may exit iteration
|
||
|
* early by explicitly returning `false`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.3.0
|
||
|
* @category Object
|
||
|
* @param {Object} object The object to iterate over.
|
||
|
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
* @see _.forOwnRight
|
||
|
* @example
|
||
|
*
|
||
|
* function Foo() {
|
||
|
* this.a = 1;
|
||
|
* this.b = 2;
|
||
|
* }
|
||
|
*
|
||
|
* Foo.prototype.c = 3;
|
||
|
*
|
||
|
* _.forOwn(new Foo, function(value, key) {
|
||
|
* console.log(key);
|
||
|
* });
|
||
|
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
||
|
*/
|
||
|
function forOwn(object, iteratee) {
|
||
|
return object && baseForOwn(object, castFunction(iteratee));
|
||
|
}
|
||
|
|
||
|
module.exports = forOwn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1791:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayFilter = __webpack_require__(2447),
|
||
|
stubArray = __webpack_require__(1968);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the own enumerable symbols of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of symbols.
|
||
|
*/
|
||
|
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
||
|
if (object == null) {
|
||
|
return [];
|
||
|
}
|
||
|
object = Object(object);
|
||
|
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
||
|
return propertyIsEnumerable.call(object, symbol);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
module.exports = getSymbols;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1886:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayMap = __webpack_require__(1235),
|
||
|
baseIteratee = __webpack_require__(2434),
|
||
|
baseMap = __webpack_require__(2460),
|
||
|
isArray = __webpack_require__(895);
|
||
|
|
||
|
/**
|
||
|
* Creates an array of values by running each element in `collection` thru
|
||
|
* `iteratee`. The iteratee is invoked with three arguments:
|
||
|
* (value, index|key, collection).
|
||
|
*
|
||
|
* Many lodash methods are guarded to work as iteratees for methods like
|
||
|
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
|
||
|
*
|
||
|
* The guarded methods are:
|
||
|
* `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
|
||
|
* `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
|
||
|
* `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
|
||
|
* `template`, `trim`, `trimEnd`, `trimStart`, and `words`
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Collection
|
||
|
* @param {Array|Object} collection The collection to iterate over.
|
||
|
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||
|
* @returns {Array} Returns the new mapped array.
|
||
|
* @example
|
||
|
*
|
||
|
* function square(n) {
|
||
|
* return n * n;
|
||
|
* }
|
||
|
*
|
||
|
* _.map([4, 8], square);
|
||
|
* // => [16, 64]
|
||
|
*
|
||
|
* _.map({ 'a': 4, 'b': 8 }, square);
|
||
|
* // => [16, 64] (iteration order is not guaranteed)
|
||
|
*
|
||
|
* var users = [
|
||
|
* { 'user': 'barney' },
|
||
|
* { 'user': 'fred' }
|
||
|
* ];
|
||
|
*
|
||
|
* // The `_.property` iteratee shorthand.
|
||
|
* _.map(users, 'user');
|
||
|
* // => ['barney', 'fred']
|
||
|
*/
|
||
|
function map(collection, iteratee) {
|
||
|
var func = isArray(collection) ? arrayMap : baseMap;
|
||
|
return func(collection, baseIteratee(iteratee, 3));
|
||
|
}
|
||
|
|
||
|
module.exports = map;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1893:
|
||
|
/***/ (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_react_router_dom__ = __webpack_require__(44);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__order_css__ = __webpack_require__(1789);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__order_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__order_css__);
|
||
5 years ago
|
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;};}();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 Nav=function(_Component){_inherits(Nav,_Component);function Nav(props){_classCallCheck(this,Nav);var _this=_possibleConstructorReturn(this,(Nav.__proto__||Object.getPrototypeOf(Nav)).call(this,props));_this.state={projectTag:undefined};return _this;}_createClass(Nav,[{key:'render',value:function render(){var projectsId=this.props.match.params.projectsId;console.log("nav");console.log(this.props);return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('p',{className:'topWrapper_nav'},__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_react_router_dom__["c" /* NavLink */],{activeClassName:'active',className:'issue-type-button',to:'/projects/'+projectsId+'/orders/tags'},'\u6807\u7B7E'),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_react_router_dom__["c" /* NavLink */],{activeClassName:'active',className:'issue-type-button',to:'/projects/'+projectsId+'/orders/Milepost'},'\u91CC\u7A0B\u7891'));}}]);return Nav;}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (Nav);
|
||
5 years ago
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1894:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(312)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
5 years ago
|
exports.push([module.i, ".topWrapper{padding:20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #eee;-ms-flex-wrap:wrap;flex-wrap:wrap}.detail_p,.topWrapper,.topWrapper_nav{display:-ms-flexbox;display:flex}.detail_p{width:80%;padding-left:15px;margin:auto}.commit_p{font-size:12px;padding-top:10px;padding-left:5px}.ul_width{width:100%}.a_btn{border-radius:4px;padding:0 12px;margin-right:15px;line-height:30px}.cancel_btn{border:1px solid #e6e6e6;color:#333!important}.delete_btn{border:1px solid red;color:red!important}.cancel_btn:hover{background:#e6e6e6}.Closeor_btn{border:1px solid red;color:red;height:32px;text-align:center;border-radius:4px;padding:0 12px;margin-right:15px;line-height:32px}.rectangle{width:8px;height:8px;border-radius:100%;margin-top:15px;margin-left:-4px;margin-bottom:10px;background:green}.order_line{display:-ms-flexbox;display:flex;height:32px;margin:auto;border-left:1px solid green}.comment_img{height:25px;width:25px;margin-top:5px;border-radius:100%}.topWrapper_nav a,.topWrapper_nav span{border:1px solid #f4f4f4;border-radius:5px 0 0 5px;height:34px;line-height:34px;text-align:center;padding:0 10px;display:block;cursor:pointer}.topWrapper_nav a:hover{background:#f4f4f4}.topWrapper_nav a:last-child,.topWrapper_nav span:last-child{border-left:none;border-radius:0 5px 5px 0}.topWrapper_btn{background:#21ba45;color:#fff!important;padding:0 12px;text-align:center;height:32px;line-height:32px;border-radius:4px}.topWrapper_type{border:1px solid #f4f4f4;border-radius:6px;display:-ms-flexbox;display:flex}.topWrapper_type li{height:30px;line-height:30px;border-left:1px solid #f4f4f4;padding:0 8px;cursor:pointer;color:#666}.topWrapper_type li.active{color:#4cacff}.topWrapper_type li:first-child{border-left:none}.topWrapper_select{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}.topWrapper .ant-btn.ant-input-search-button{height:30px}.topWrapper_select li{cursor:pointer;color:#666;width:90px;text-align:center;display:inline-block;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.topWrapper_select li:active{background:#f4f4f4;border-radius:4px}.ant-dropdown-menu .ant-dropdown-menu-item{text-align:center;padding:6px 30px;cursor:pointer}.issueItem{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:center;align-content:center;border-bottom:1px dashed #f4f4f4;padding:16px 0}.issueItem:first-child{border-top:1px dashed #f4f4f4}.issueNo{padding:0 5px;border-radius:4px;background:#f4f4f4;display:block;margin-right:8px;color:#666;height:30px;line-height:30px}.user_img{height:49px;width:49px;border-radius:100%}.new_context{-ms-flex:1 1;flex:1 1;border:1px solid #dededf;border-radius:4px;margin-left:15px;padding:15px;position:relative;background:#fff}.new_context:before{border:solid transparent;border-right-color:#dededf;border-width:9px;top:12px}.new_context:after,.new_context:before{position:absolute;content:\"\";height:0;width:0;right:100%}.new_context:after{border:solid transparent;border-right-color:#fff;border-width:7px;top:14px}.list-l-panel{border:1px solid #dededf;border-radius:4px;padding:10px 15px}.list-l-panel .ant-row{margin-bottom:0}.editingsheet{background:#fff;padding:0 12px;text-align:center;height:32px;line-height:32px}.commenttitle,.editingsheet{color:#21ba45!important}.topWrapper_detali{display:-ms-flexbox;display:flex;height:35px;background-color:#4cacff}.towwrapper_img_detali{display:-ms-flexbox;display:flex;padding-left:80px;margin-left:80px;margin-right:20px;border:1px solid #4cacff}.div_line{width:100%;border:1px solid #4cacff}.list_img{height:145px;padding:15px;width:145px}.detail_context{-ms-flex:1 1;flex:1 1;border:1px solid #dededf;margin-left:15px;padding-top:0;padding-left:0;margin-right:15px;position:relative;background:#fff}.detail_context:before{border:solid transparent;border-right-color:#dededf;border-width:9px;top:12px}.detail_context:after,.detail_context:before{position:
|
||
5 years ago
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1962:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseFor = __webpack_require__(1246),
|
||
|
keys = __webpack_require__(1645);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function baseForOwn(object, iteratee) {
|
||
|
return object && baseFor(object, iteratee, keys);
|
||
|
}
|
||
|
|
||
|
module.exports = baseForOwn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1963:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsEqualDeep = __webpack_require__(2437),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
||
|
* and tracks traversed objects.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to compare.
|
||
|
* @param {*} other The other value to compare.
|
||
|
* @param {boolean} bitmask The bitmask flags.
|
||
|
* 1 - Unordered comparison
|
||
|
* 2 - Partial comparison
|
||
|
* @param {Function} [customizer] The function to customize comparisons.
|
||
|
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
||
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
||
|
*/
|
||
|
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
||
|
if (value === other) {
|
||
|
return true;
|
||
|
}
|
||
|
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
||
|
return value !== value && other !== other;
|
||
|
}
|
||
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsEqual;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1964:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var SetCache = __webpack_require__(2438),
|
||
|
arraySome = __webpack_require__(2441),
|
||
|
cacheHas = __webpack_require__(2442);
|
||
|
|
||
|
/** Used to compose bitmasks for value comparisons. */
|
||
|
var COMPARE_PARTIAL_FLAG = 1,
|
||
|
COMPARE_UNORDERED_FLAG = 2;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
||
|
* partial deep comparisons.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} array The array to compare.
|
||
|
* @param {Array} other The other array to compare.
|
||
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
||
|
* @param {Function} customizer The function to customize comparisons.
|
||
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
||
|
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
||
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
||
|
*/
|
||
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
||
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
||
|
arrLength = array.length,
|
||
|
othLength = other.length;
|
||
|
|
||
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
||
|
return false;
|
||
|
}
|
||
|
// Assume cyclic values are equal.
|
||
|
var stacked = stack.get(array);
|
||
|
if (stacked && stack.get(other)) {
|
||
|
return stacked == other;
|
||
|
}
|
||
|
var index = -1,
|
||
|
result = true,
|
||
|
seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
|
||
|
|
||
|
stack.set(array, other);
|
||
|
stack.set(other, array);
|
||
|
|
||
|
// Ignore non-index properties.
|
||
|
while (++index < arrLength) {
|
||
|
var arrValue = array[index],
|
||
|
othValue = other[index];
|
||
|
|
||
|
if (customizer) {
|
||
|
var compared = isPartial
|
||
|
? customizer(othValue, arrValue, index, other, array, stack)
|
||
|
: customizer(arrValue, othValue, index, array, other, stack);
|
||
|
}
|
||
|
if (compared !== undefined) {
|
||
|
if (compared) {
|
||
|
continue;
|
||
|
}
|
||
|
result = false;
|
||
|
break;
|
||
|
}
|
||
|
// Recursively compare arrays (susceptible to call stack limits).
|
||
|
if (seen) {
|
||
|
if (!arraySome(other, function(othValue, othIndex) {
|
||
|
if (!cacheHas(seen, othIndex) &&
|
||
|
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
||
|
return seen.push(othIndex);
|
||
|
}
|
||
|
})) {
|
||
|
result = false;
|
||
|
break;
|
||
|
}
|
||
|
} else if (!(
|
||
|
arrValue === othValue ||
|
||
|
equalFunc(arrValue, othValue, bitmask, customizer, stack)
|
||
|
)) {
|
||
|
result = false;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
stack['delete'](array);
|
||
|
stack['delete'](other);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = equalArrays;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1965:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetAllKeys = __webpack_require__(1966),
|
||
|
getSymbols = __webpack_require__(1791),
|
||
|
keys = __webpack_require__(1645);
|
||
|
|
||
|
/**
|
||
|
* Creates an array of own enumerable property names and symbols of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names and symbols.
|
||
|
*/
|
||
|
function getAllKeys(object) {
|
||
|
return baseGetAllKeys(object, keys, getSymbols);
|
||
|
}
|
||
|
|
||
|
module.exports = getAllKeys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1966:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayPush = __webpack_require__(1967),
|
||
|
isArray = __webpack_require__(895);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
||
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
||
|
* symbols of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
||
|
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
||
|
* @returns {Array} Returns the array of property names and symbols.
|
||
|
*/
|
||
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
||
|
var result = keysFunc(object);
|
||
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
||
|
}
|
||
|
|
||
|
module.exports = baseGetAllKeys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1967:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Appends the elements of `values` to `array`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} array The array to modify.
|
||
|
* @param {Array} values The values to append.
|
||
|
* @returns {Array} Returns `array`.
|
||
|
*/
|
||
|
function arrayPush(array, values) {
|
||
|
var index = -1,
|
||
|
length = values.length,
|
||
|
offset = array.length;
|
||
|
|
||
|
while (++index < length) {
|
||
|
array[offset + index] = values[index];
|
||
|
}
|
||
|
return array;
|
||
|
}
|
||
|
|
||
|
module.exports = arrayPush;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1968:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* This method returns a new empty array.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.13.0
|
||
|
* @category Util
|
||
|
* @returns {Array} Returns the new empty array.
|
||
|
* @example
|
||
|
*
|
||
|
* var arrays = _.times(2, _.stubArray);
|
||
|
*
|
||
|
* console.log(arrays);
|
||
|
* // => [[], []]
|
||
|
*
|
||
|
* console.log(arrays[0] === arrays[1]);
|
||
|
* // => false
|
||
|
*/
|
||
|
function stubArray() {
|
||
|
return [];
|
||
|
}
|
||
|
|
||
|
module.exports = stubArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1969:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(170);
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
||
|
* equality comparisons, else `false`.
|
||
|
*/
|
||
|
function isStrictComparable(value) {
|
||
|
return value === value && !isObject(value);
|
||
|
}
|
||
|
|
||
|
module.exports = isStrictComparable;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1970:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `matchesProperty` for source values suitable
|
||
|
* for strict equality comparisons, i.e. `===`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {string} key The key of the property to get.
|
||
|
* @param {*} srcValue The value to match.
|
||
|
* @returns {Function} Returns the new spec function.
|
||
|
*/
|
||
|
function matchesStrictComparable(key, srcValue) {
|
||
|
return function(object) {
|
||
|
if (object == null) {
|
||
|
return false;
|
||
|
}
|
||
|
return object[key] === srcValue &&
|
||
|
(srcValue !== undefined || (key in Object(object)));
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = matchesStrictComparable;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1971:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayPush = __webpack_require__(1967),
|
||
|
getPrototype = __webpack_require__(1077),
|
||
|
getSymbols = __webpack_require__(1791),
|
||
|
stubArray = __webpack_require__(1968);
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the own and inherited enumerable symbols of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of symbols.
|
||
|
*/
|
||
|
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
||
|
var result = [];
|
||
|
while (object) {
|
||
|
arrayPush(result, getSymbols(object));
|
||
|
object = getPrototype(object);
|
||
|
}
|
||
|
return result;
|
||
|
};
|
||
|
|
||
|
module.exports = getSymbolsIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2383:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var identity = __webpack_require__(1084);
|
||
|
|
||
|
/**
|
||
|
* Casts `value` to `identity` if it's not a function.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to inspect.
|
||
|
* @returns {Function} Returns cast function.
|
||
|
*/
|
||
|
function castFunction(value) {
|
||
|
return typeof value == 'function' ? value : identity;
|
||
|
}
|
||
|
|
||
|
module.exports = castFunction;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2384:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseForOwn = __webpack_require__(1962),
|
||
|
createBaseEach = __webpack_require__(2461);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array|Object} collection The collection to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Array|Object} Returns `collection`.
|
||
|
*/
|
||
|
var baseEach = createBaseEach(baseForOwn);
|
||
|
|
||
|
module.exports = baseEach;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2385:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `_.forEach` for arrays without support for
|
||
|
* iteratee shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} [array] The array to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Array} Returns `array`.
|
||
|
*/
|
||
|
function arrayEach(array, iteratee) {
|
||
|
var index = -1,
|
||
|
length = array == null ? 0 : array.length;
|
||
|
|
||
|
while (++index < length) {
|
||
|
if (iteratee(array[index], index, array) === false) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return array;
|
||
|
}
|
||
|
|
||
|
module.exports = arrayEach;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2430:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.flattenNames = undefined;
|
||
|
|
||
|
var _isString2 = __webpack_require__(2431);
|
||
|
|
||
|
var _isString3 = _interopRequireDefault(_isString2);
|
||
|
|
||
|
var _forOwn2 = __webpack_require__(1790);
|
||
|
|
||
|
var _forOwn3 = _interopRequireDefault(_forOwn2);
|
||
|
|
||
|
var _isPlainObject2 = __webpack_require__(1251);
|
||
|
|
||
|
var _isPlainObject3 = _interopRequireDefault(_isPlainObject2);
|
||
|
|
||
|
var _map2 = __webpack_require__(1886);
|
||
|
|
||
|
var _map3 = _interopRequireDefault(_map2);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
var flattenNames = exports.flattenNames = function flattenNames() {
|
||
|
var things = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||
|
|
||
|
var names = [];
|
||
|
|
||
|
(0, _map3.default)(things, function (thing) {
|
||
|
if (Array.isArray(thing)) {
|
||
|
flattenNames(thing).map(function (name) {
|
||
|
return names.push(name);
|
||
|
});
|
||
|
} else if ((0, _isPlainObject3.default)(thing)) {
|
||
|
(0, _forOwn3.default)(thing, function (value, key) {
|
||
|
value === true && names.push(key);
|
||
|
names.push(key + '-' + value);
|
||
|
});
|
||
|
} else if ((0, _isString3.default)(thing)) {
|
||
|
names.push(thing);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return names;
|
||
|
};
|
||
|
|
||
|
exports.default = flattenNames;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2431:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(327),
|
||
|
isArray = __webpack_require__(895),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var stringTag = '[object String]';
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a `String` primitive or object.
|
||
|
*
|
||
|
* @static
|
||
|
* @since 0.1.0
|
||
|
* @memberOf _
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isString('abc');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isString(1);
|
||
|
* // => false
|
||
|
*/
|
||
|
function isString(value) {
|
||
|
return typeof value == 'string' ||
|
||
|
(!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
||
|
}
|
||
|
|
||
|
module.exports = isString;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2432:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isPrototype = __webpack_require__(1078),
|
||
|
nativeKeys = __webpack_require__(2433);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function baseKeys(object) {
|
||
|
if (!isPrototype(object)) {
|
||
|
return nativeKeys(object);
|
||
|
}
|
||
|
var result = [];
|
||
|
for (var key in Object(object)) {
|
||
|
if (hasOwnProperty.call(object, key) && key != 'constructor') {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseKeys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2433:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var overArg = __webpack_require__(1232);
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeKeys = overArg(Object.keys, Object);
|
||
|
|
||
|
module.exports = nativeKeys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2434:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseMatches = __webpack_require__(2435),
|
||
|
baseMatchesProperty = __webpack_require__(2453),
|
||
|
identity = __webpack_require__(1084),
|
||
|
isArray = __webpack_require__(895),
|
||
|
property = __webpack_require__(2457);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.iteratee`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
||
|
* @returns {Function} Returns the iteratee.
|
||
|
*/
|
||
|
function baseIteratee(value) {
|
||
|
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
||
|
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
||
|
if (typeof value == 'function') {
|
||
|
return value;
|
||
|
}
|
||
|
if (value == null) {
|
||
|
return identity;
|
||
|
}
|
||
|
if (typeof value == 'object') {
|
||
|
return isArray(value)
|
||
|
? baseMatchesProperty(value[0], value[1])
|
||
|
: baseMatches(value);
|
||
|
}
|
||
|
return property(value);
|
||
|
}
|
||
|
|
||
|
module.exports = baseIteratee;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2435:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsMatch = __webpack_require__(2436),
|
||
|
getMatchData = __webpack_require__(2452),
|
||
|
matchesStrictComparable = __webpack_require__(1970);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.matches` which doesn't clone `source`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} source The object of property values to match.
|
||
|
* @returns {Function} Returns the new spec function.
|
||
|
*/
|
||
|
function baseMatches(source) {
|
||
|
var matchData = getMatchData(source);
|
||
|
if (matchData.length == 1 && matchData[0][2]) {
|
||
|
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
||
|
}
|
||
|
return function(object) {
|
||
|
return object === source || baseIsMatch(object, source, matchData);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = baseMatches;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2436:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Stack = __webpack_require__(1148),
|
||
|
baseIsEqual = __webpack_require__(1963);
|
||
|
|
||
|
/** Used to compose bitmasks for value comparisons. */
|
||
|
var COMPARE_PARTIAL_FLAG = 1,
|
||
|
COMPARE_UNORDERED_FLAG = 2;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to inspect.
|
||
|
* @param {Object} source The object of property values to match.
|
||
|
* @param {Array} matchData The property names, values, and compare flags to match.
|
||
|
* @param {Function} [customizer] The function to customize comparisons.
|
||
|
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
||
|
*/
|
||
|
function baseIsMatch(object, source, matchData, customizer) {
|
||
|
var index = matchData.length,
|
||
|
length = index,
|
||
|
noCustomizer = !customizer;
|
||
|
|
||
|
if (object == null) {
|
||
|
return !length;
|
||
|
}
|
||
|
object = Object(object);
|
||
|
while (index--) {
|
||
|
var data = matchData[index];
|
||
|
if ((noCustomizer && data[2])
|
||
|
? data[1] !== object[data[0]]
|
||
|
: !(data[0] in object)
|
||
|
) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
while (++index < length) {
|
||
|
data = matchData[index];
|
||
|
var key = data[0],
|
||
|
objValue = object[key],
|
||
|
srcValue = data[1];
|
||
|
|
||
|
if (noCustomizer && data[2]) {
|
||
|
if (objValue === undefined && !(key in object)) {
|
||
|
return false;
|
||
|
}
|
||
|
} else {
|
||
|
var stack = new Stack;
|
||
|
if (customizer) {
|
||
|
var result = customizer(objValue, srcValue, key, object, source, stack);
|
||
|
}
|
||
|
if (!(result === undefined
|
||
|
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
|
||
|
: result
|
||
|
)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsMatch;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2437:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Stack = __webpack_require__(1148),
|
||
|
equalArrays = __webpack_require__(1964),
|
||
|
equalByTag = __webpack_require__(2443),
|
||
|
equalObjects = __webpack_require__(2446),
|
||
|
getTag = __webpack_require__(1740),
|
||
|
isArray = __webpack_require__(895),
|
||
|
isBuffer = __webpack_require__(1074),
|
||
|
isTypedArray = __webpack_require__(1088);
|
||
|
|
||
|
/** Used to compose bitmasks for value comparisons. */
|
||
|
var COMPARE_PARTIAL_FLAG = 1;
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var argsTag = '[object Arguments]',
|
||
|
arrayTag = '[object Array]',
|
||
|
objectTag = '[object Object]';
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
||
|
* deep comparisons and tracks traversed objects enabling objects with circular
|
||
|
* references to be compared.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to compare.
|
||
|
* @param {Object} other The other object to compare.
|
||
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
||
|
* @param {Function} customizer The function to customize comparisons.
|
||
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
||
|
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
||
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
||
|
*/
|
||
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
||
|
var objIsArr = isArray(object),
|
||
|
othIsArr = isArray(other),
|
||
|
objTag = objIsArr ? arrayTag : getTag(object),
|
||
|
othTag = othIsArr ? arrayTag : getTag(other);
|
||
|
|
||
|
objTag = objTag == argsTag ? objectTag : objTag;
|
||
|
othTag = othTag == argsTag ? objectTag : othTag;
|
||
|
|
||
|
var objIsObj = objTag == objectTag,
|
||
|
othIsObj = othTag == objectTag,
|
||
|
isSameTag = objTag == othTag;
|
||
|
|
||
|
if (isSameTag && isBuffer(object)) {
|
||
|
if (!isBuffer(other)) {
|
||
|
return false;
|
||
|
}
|
||
|
objIsArr = true;
|
||
|
objIsObj = false;
|
||
|
}
|
||
|
if (isSameTag && !objIsObj) {
|
||
|
stack || (stack = new Stack);
|
||
|
return (objIsArr || isTypedArray(object))
|
||
|
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
||
|
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
||
|
}
|
||
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
||
|
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
|
||
|
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
|
||
|
|
||
|
if (objIsWrapped || othIsWrapped) {
|
||
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
||
|
othUnwrapped = othIsWrapped ? other.value() : other;
|
||
|
|
||
|
stack || (stack = new Stack);
|
||
|
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
||
|
}
|
||
|
}
|
||
|
if (!isSameTag) {
|
||
|
return false;
|
||
|
}
|
||
|
stack || (stack = new Stack);
|
||
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsEqualDeep;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2438:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var MapCache = __webpack_require__(1076),
|
||
|
setCacheAdd = __webpack_require__(2439),
|
||
|
setCacheHas = __webpack_require__(2440);
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Creates an array cache object to store unique values.
|
||
|
*
|
||
|
* @private
|
||
|
* @constructor
|
||
|
* @param {Array} [values] The values to cache.
|
||
|
*/
|
||
|
function SetCache(values) {
|
||
|
var index = -1,
|
||
|
length = values == null ? 0 : values.length;
|
||
|
|
||
|
this.__data__ = new MapCache;
|
||
|
while (++index < length) {
|
||
|
this.add(values[index]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Add methods to `SetCache`.
|
||
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
||
|
SetCache.prototype.has = setCacheHas;
|
||
|
|
||
|
module.exports = SetCache;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2439:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used to stand-in for `undefined` hash values. */
|
||
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
||
|
|
||
|
/**
|
||
|
* Adds `value` to the array cache.
|
||
|
*
|
||
|
* @private
|
||
|
* @name add
|
||
|
* @memberOf SetCache
|
||
|
* @alias push
|
||
|
* @param {*} value The value to cache.
|
||
|
* @returns {Object} Returns the cache instance.
|
||
|
*/
|
||
|
function setCacheAdd(value) {
|
||
|
this.__data__.set(value, HASH_UNDEFINED);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
module.exports = setCacheAdd;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2440:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is in the array cache.
|
||
|
*
|
||
|
* @private
|
||
|
* @name has
|
||
|
* @memberOf SetCache
|
||
|
* @param {*} value The value to search for.
|
||
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
||
|
*/
|
||
|
function setCacheHas(value) {
|
||
|
return this.__data__.has(value);
|
||
|
}
|
||
|
|
||
|
module.exports = setCacheHas;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2441:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `_.some` for arrays without support for iteratee
|
||
|
* shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} [array] The array to iterate over.
|
||
|
* @param {Function} predicate The function invoked per iteration.
|
||
|
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||
|
* else `false`.
|
||
|
*/
|
||
|
function arraySome(array, predicate) {
|
||
|
var index = -1,
|
||
|
length = array == null ? 0 : array.length;
|
||
|
|
||
|
while (++index < length) {
|
||
|
if (predicate(array[index], index, array)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
module.exports = arraySome;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2442:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Checks if a `cache` value for `key` exists.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} cache The cache to query.
|
||
|
* @param {string} key The key of the entry to check.
|
||
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||
|
*/
|
||
|
function cacheHas(cache, key) {
|
||
|
return cache.has(key);
|
||
|
}
|
||
|
|
||
|
module.exports = cacheHas;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2443:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Symbol = __webpack_require__(186),
|
||
|
Uint8Array = __webpack_require__(1231),
|
||
|
eq = __webpack_require__(925),
|
||
|
equalArrays = __webpack_require__(1964),
|
||
|
mapToArray = __webpack_require__(2444),
|
||
|
setToArray = __webpack_require__(2445);
|
||
|
|
||
|
/** Used to compose bitmasks for value comparisons. */
|
||
|
var COMPARE_PARTIAL_FLAG = 1,
|
||
|
COMPARE_UNORDERED_FLAG = 2;
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var boolTag = '[object Boolean]',
|
||
|
dateTag = '[object Date]',
|
||
|
errorTag = '[object Error]',
|
||
|
mapTag = '[object Map]',
|
||
|
numberTag = '[object Number]',
|
||
|
regexpTag = '[object RegExp]',
|
||
|
setTag = '[object Set]',
|
||
|
stringTag = '[object String]',
|
||
|
symbolTag = '[object Symbol]';
|
||
|
|
||
|
var arrayBufferTag = '[object ArrayBuffer]',
|
||
|
dataViewTag = '[object DataView]';
|
||
|
|
||
|
/** Used to convert symbols to primitives and strings. */
|
||
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||
|
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
||
|
* the same `toStringTag`.
|
||
|
*
|
||
|
* **Note:** This function only supports comparing values with tags of
|
||
|
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to compare.
|
||
|
* @param {Object} other The other object to compare.
|
||
|
* @param {string} tag The `toStringTag` of the objects to compare.
|
||
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
||
|
* @param {Function} customizer The function to customize comparisons.
|
||
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
||
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
||
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
||
|
*/
|
||
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
||
|
switch (tag) {
|
||
|
case dataViewTag:
|
||
|
if ((object.byteLength != other.byteLength) ||
|
||
|
(object.byteOffset != other.byteOffset)) {
|
||
|
return false;
|
||
|
}
|
||
|
object = object.buffer;
|
||
|
other = other.buffer;
|
||
|
|
||
|
case arrayBufferTag:
|
||
|
if ((object.byteLength != other.byteLength) ||
|
||
|
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
||
|
return false;
|
||
|
}
|
||
|
return true;
|
||
|
|
||
|
case boolTag:
|
||
|
case dateTag:
|
||
|
case numberTag:
|
||
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
||
|
// Invalid dates are coerced to `NaN`.
|
||
|
return eq(+object, +other);
|
||
|
|
||
|
case errorTag:
|
||
|
return object.name == other.name && object.message == other.message;
|
||
|
|
||
|
case regexpTag:
|
||
|
case stringTag:
|
||
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
||
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
||
|
// for more details.
|
||
|
return object == (other + '');
|
||
|
|
||
|
case mapTag:
|
||
|
var convert = mapToArray;
|
||
|
|
||
|
case setTag:
|
||
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
||
|
convert || (convert = setToArray);
|
||
|
|
||
|
if (object.size != other.size && !isPartial) {
|
||
|
return false;
|
||
|
}
|
||
|
// Assume cyclic values are equal.
|
||
|
var stacked = stack.get(object);
|
||
|
if (stacked) {
|
||
|
return stacked == other;
|
||
|
}
|
||
|
bitmask |= COMPARE_UNORDERED_FLAG;
|
||
|
|
||
|
// Recursively compare objects (susceptible to call stack limits).
|
||
|
stack.set(object, other);
|
||
|
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
||
|
stack['delete'](object);
|
||
|
return result;
|
||
|
|
||
|
case symbolTag:
|
||
|
if (symbolValueOf) {
|
||
|
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
module.exports = equalByTag;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2444:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Converts `map` to its key-value pairs.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} map The map to convert.
|
||
|
* @returns {Array} Returns the key-value pairs.
|
||
|
*/
|
||
|
function mapToArray(map) {
|
||
|
var index = -1,
|
||
|
result = Array(map.size);
|
||
|
|
||
|
map.forEach(function(value, key) {
|
||
|
result[++index] = [key, value];
|
||
|
});
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = mapToArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2445:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Converts `set` to an array of its values.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} set The set to convert.
|
||
|
* @returns {Array} Returns the values.
|
||
|
*/
|
||
|
function setToArray(set) {
|
||
|
var index = -1,
|
||
|
result = Array(set.size);
|
||
|
|
||
|
set.forEach(function(value) {
|
||
|
result[++index] = value;
|
||
|
});
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = setToArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2446:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getAllKeys = __webpack_require__(1965);
|
||
|
|
||
|
/** Used to compose bitmasks for value comparisons. */
|
||
|
var COMPARE_PARTIAL_FLAG = 1;
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
||
|
* partial deep comparisons.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to compare.
|
||
|
* @param {Object} other The other object to compare.
|
||
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
||
|
* @param {Function} customizer The function to customize comparisons.
|
||
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
||
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
||
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
||
|
*/
|
||
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
||
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
||
|
objProps = getAllKeys(object),
|
||
|
objLength = objProps.length,
|
||
|
othProps = getAllKeys(other),
|
||
|
othLength = othProps.length;
|
||
|
|
||
|
if (objLength != othLength && !isPartial) {
|
||
|
return false;
|
||
|
}
|
||
|
var index = objLength;
|
||
|
while (index--) {
|
||
|
var key = objProps[index];
|
||
|
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
// Assume cyclic values are equal.
|
||
|
var stacked = stack.get(object);
|
||
|
if (stacked && stack.get(other)) {
|
||
|
return stacked == other;
|
||
|
}
|
||
|
var result = true;
|
||
|
stack.set(object, other);
|
||
|
stack.set(other, object);
|
||
|
|
||
|
var skipCtor = isPartial;
|
||
|
while (++index < objLength) {
|
||
|
key = objProps[index];
|
||
|
var objValue = object[key],
|
||
|
othValue = other[key];
|
||
|
|
||
|
if (customizer) {
|
||
|
var compared = isPartial
|
||
|
? customizer(othValue, objValue, key, other, object, stack)
|
||
|
: customizer(objValue, othValue, key, object, other, stack);
|
||
|
}
|
||
|
// Recursively compare objects (susceptible to call stack limits).
|
||
|
if (!(compared === undefined
|
||
|
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
|
||
|
: compared
|
||
|
)) {
|
||
|
result = false;
|
||
|
break;
|
||
|
}
|
||
|
skipCtor || (skipCtor = key == 'constructor');
|
||
|
}
|
||
|
if (result && !skipCtor) {
|
||
|
var objCtor = object.constructor,
|
||
|
othCtor = other.constructor;
|
||
|
|
||
|
// Non `Object` object instances with different constructors are not equal.
|
||
|
if (objCtor != othCtor &&
|
||
|
('constructor' in object && 'constructor' in other) &&
|
||
|
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
|
||
|
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
|
||
|
result = false;
|
||
|
}
|
||
|
}
|
||
|
stack['delete'](object);
|
||
|
stack['delete'](other);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = equalObjects;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2447:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `_.filter` for arrays without support for
|
||
|
* iteratee shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} [array] The array to iterate over.
|
||
|
* @param {Function} predicate The function invoked per iteration.
|
||
|
* @returns {Array} Returns the new filtered array.
|
||
|
*/
|
||
|
function arrayFilter(array, predicate) {
|
||
|
var index = -1,
|
||
|
length = array == null ? 0 : array.length,
|
||
|
resIndex = 0,
|
||
|
result = [];
|
||
|
|
||
|
while (++index < length) {
|
||
|
var value = array[index];
|
||
|
if (predicate(value, index, array)) {
|
||
|
result[resIndex++] = value;
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = arrayFilter;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2448:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945),
|
||
|
root = __webpack_require__(174);
|
||
|
|
||
|
/* Built-in method references that are verified to be native. */
|
||
|
var DataView = getNative(root, 'DataView');
|
||
|
|
||
|
module.exports = DataView;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2449:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945),
|
||
|
root = __webpack_require__(174);
|
||
|
|
||
|
/* Built-in method references that are verified to be native. */
|
||
|
var Promise = getNative(root, 'Promise');
|
||
|
|
||
|
module.exports = Promise;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2450:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945),
|
||
|
root = __webpack_require__(174);
|
||
|
|
||
|
/* Built-in method references that are verified to be native. */
|
||
|
var Set = getNative(root, 'Set');
|
||
|
|
||
|
module.exports = Set;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2451:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945),
|
||
|
root = __webpack_require__(174);
|
||
|
|
||
|
/* Built-in method references that are verified to be native. */
|
||
|
var WeakMap = getNative(root, 'WeakMap');
|
||
|
|
||
|
module.exports = WeakMap;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2452:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isStrictComparable = __webpack_require__(1969),
|
||
|
keys = __webpack_require__(1645);
|
||
|
|
||
|
/**
|
||
|
* Gets the property names, values, and compare flags of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the match data of `object`.
|
||
|
*/
|
||
|
function getMatchData(object) {
|
||
|
var result = keys(object),
|
||
|
length = result.length;
|
||
|
|
||
|
while (length--) {
|
||
|
var key = result[length],
|
||
|
value = object[key];
|
||
|
|
||
|
result[length] = [key, value, isStrictComparable(value)];
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = getMatchData;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2453:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsEqual = __webpack_require__(1963),
|
||
|
get = __webpack_require__(1252),
|
||
|
hasIn = __webpack_require__(2454),
|
||
|
isKey = __webpack_require__(1152),
|
||
|
isStrictComparable = __webpack_require__(1969),
|
||
|
matchesStrictComparable = __webpack_require__(1970),
|
||
|
toKey = __webpack_require__(1140);
|
||
|
|
||
|
/** Used to compose bitmasks for value comparisons. */
|
||
|
var COMPARE_PARTIAL_FLAG = 1,
|
||
|
COMPARE_UNORDERED_FLAG = 2;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {string} path The path of the property to get.
|
||
|
* @param {*} srcValue The value to match.
|
||
|
* @returns {Function} Returns the new spec function.
|
||
|
*/
|
||
|
function baseMatchesProperty(path, srcValue) {
|
||
|
if (isKey(path) && isStrictComparable(srcValue)) {
|
||
|
return matchesStrictComparable(toKey(path), srcValue);
|
||
|
}
|
||
|
return function(object) {
|
||
|
var objValue = get(object, path);
|
||
|
return (objValue === undefined && objValue === srcValue)
|
||
|
? hasIn(object, path)
|
||
|
: baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = baseMatchesProperty;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2454:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseHasIn = __webpack_require__(2455),
|
||
|
hasPath = __webpack_require__(2456);
|
||
|
|
||
|
/**
|
||
|
* Checks if `path` is a direct or inherited property of `object`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Object
|
||
|
* @param {Object} object The object to query.
|
||
|
* @param {Array|string} path The path to check.
|
||
|
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
|
||
|
*
|
||
|
* _.hasIn(object, 'a');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.hasIn(object, 'a.b');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.hasIn(object, ['a', 'b']);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.hasIn(object, 'b');
|
||
|
* // => false
|
||
|
*/
|
||
|
function hasIn(object, path) {
|
||
|
return object != null && hasPath(object, path, baseHasIn);
|
||
|
}
|
||
|
|
||
|
module.exports = hasIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2455:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.hasIn` without support for deep paths.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} [object] The object to query.
|
||
|
* @param {Array|string} key The key to check.
|
||
|
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
||
|
*/
|
||
|
function baseHasIn(object, key) {
|
||
|
return object != null && key in Object(object);
|
||
|
}
|
||
|
|
||
|
module.exports = baseHasIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2456:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var castPath = __webpack_require__(1227),
|
||
|
isArguments = __webpack_require__(1087),
|
||
|
isArray = __webpack_require__(895),
|
||
|
isIndex = __webpack_require__(1083),
|
||
|
isLength = __webpack_require__(1079),
|
||
|
toKey = __webpack_require__(1140);
|
||
|
|
||
|
/**
|
||
|
* Checks if `path` exists on `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @param {Array|string} path The path to check.
|
||
|
* @param {Function} hasFunc The function to check properties.
|
||
|
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
||
|
*/
|
||
|
function hasPath(object, path, hasFunc) {
|
||
|
path = castPath(path, object);
|
||
|
|
||
|
var index = -1,
|
||
|
length = path.length,
|
||
|
result = false;
|
||
|
|
||
|
while (++index < length) {
|
||
|
var key = toKey(path[index]);
|
||
|
if (!(result = object != null && hasFunc(object, key))) {
|
||
|
break;
|
||
|
}
|
||
|
object = object[key];
|
||
|
}
|
||
|
if (result || ++index != length) {
|
||
|
return result;
|
||
|
}
|
||
|
length = object == null ? 0 : object.length;
|
||
|
return !!length && isLength(length) && isIndex(key, length) &&
|
||
|
(isArray(object) || isArguments(object));
|
||
|
}
|
||
|
|
||
|
module.exports = hasPath;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2457:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseProperty = __webpack_require__(2458),
|
||
|
basePropertyDeep = __webpack_require__(2459),
|
||
|
isKey = __webpack_require__(1152),
|
||
|
toKey = __webpack_require__(1140);
|
||
|
|
||
|
/**
|
||
|
* Creates a function that returns the value at `path` of a given object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 2.4.0
|
||
|
* @category Util
|
||
|
* @param {Array|string} path The path of the property to get.
|
||
|
* @returns {Function} Returns the new accessor function.
|
||
|
* @example
|
||
|
*
|
||
|
* var objects = [
|
||
|
* { 'a': { 'b': 2 } },
|
||
|
* { 'a': { 'b': 1 } }
|
||
|
* ];
|
||
|
*
|
||
|
* _.map(objects, _.property('a.b'));
|
||
|
* // => [2, 1]
|
||
|
*
|
||
|
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
||
|
* // => [1, 2]
|
||
|
*/
|
||
|
function property(path) {
|
||
|
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
||
|
}
|
||
|
|
||
|
module.exports = property;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2458:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.property` without support for deep paths.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {string} key The key of the property to get.
|
||
|
* @returns {Function} Returns the new accessor function.
|
||
|
*/
|
||
|
function baseProperty(key) {
|
||
|
return function(object) {
|
||
|
return object == null ? undefined : object[key];
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = baseProperty;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2459:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGet = __webpack_require__(1234);
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseProperty` which supports deep paths.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array|string} path The path of the property to get.
|
||
|
* @returns {Function} Returns the new accessor function.
|
||
|
*/
|
||
|
function basePropertyDeep(path) {
|
||
|
return function(object) {
|
||
|
return baseGet(object, path);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = basePropertyDeep;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2460:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseEach = __webpack_require__(2384),
|
||
|
isArrayLike = __webpack_require__(948);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.map` without support for iteratee shorthands.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array|Object} collection The collection to iterate over.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Array} Returns the new mapped array.
|
||
|
*/
|
||
|
function baseMap(collection, iteratee) {
|
||
|
var index = -1,
|
||
|
result = isArrayLike(collection) ? Array(collection.length) : [];
|
||
|
|
||
|
baseEach(collection, function(value, key, collection) {
|
||
|
result[++index] = iteratee(value, key, collection);
|
||
|
});
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseMap;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2461:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isArrayLike = __webpack_require__(948);
|
||
|
|
||
|
/**
|
||
|
* Creates a `baseEach` or `baseEachRight` function.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} eachFunc The function to iterate over a collection.
|
||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||
|
* @returns {Function} Returns the new base function.
|
||
|
*/
|
||
|
function createBaseEach(eachFunc, fromRight) {
|
||
|
return function(collection, iteratee) {
|
||
|
if (collection == null) {
|
||
|
return collection;
|
||
|
}
|
||
|
if (!isArrayLike(collection)) {
|
||
|
return eachFunc(collection, iteratee);
|
||
|
}
|
||
|
var length = collection.length,
|
||
|
index = fromRight ? length : -1,
|
||
|
iterable = Object(collection);
|
||
|
|
||
|
while ((fromRight ? index-- : ++index < length)) {
|
||
|
if (iteratee(iterable[index], index, iterable) === false) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return collection;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = createBaseEach;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2462:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.mergeClasses = undefined;
|
||
|
|
||
|
var _forOwn2 = __webpack_require__(1790);
|
||
|
|
||
|
var _forOwn3 = _interopRequireDefault(_forOwn2);
|
||
|
|
||
|
var _cloneDeep2 = __webpack_require__(2463);
|
||
|
|
||
|
var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);
|
||
|
|
||
|
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
var mergeClasses = exports.mergeClasses = function mergeClasses(classes) {
|
||
|
var activeNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
||
|
|
||
|
var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};
|
||
|
activeNames.map(function (name) {
|
||
|
var toMerge = classes[name];
|
||
|
if (toMerge) {
|
||
|
(0, _forOwn3.default)(toMerge, function (value, key) {
|
||
|
if (!styles[key]) {
|
||
|
styles[key] = {};
|
||
|
}
|
||
|
|
||
|
styles[key] = _extends({}, styles[key], toMerge[key]);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
return name;
|
||
|
});
|
||
|
return styles;
|
||
|
};
|
||
|
|
||
|
exports.default = mergeClasses;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2463:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseClone = __webpack_require__(2464);
|
||
|
|
||
|
/** Used to compose bitmasks for cloning. */
|
||
|
var CLONE_DEEP_FLAG = 1,
|
||
|
CLONE_SYMBOLS_FLAG = 4;
|
||
|
|
||
|
/**
|
||
|
* This method is like `_.clone` except that it recursively clones `value`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 1.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to recursively clone.
|
||
|
* @returns {*} Returns the deep cloned value.
|
||
|
* @see _.clone
|
||
|
* @example
|
||
|
*
|
||
|
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
||
|
*
|
||
|
* var deep = _.cloneDeep(objects);
|
||
|
* console.log(deep[0] === objects[0]);
|
||
|
* // => false
|
||
|
*/
|
||
|
function cloneDeep(value) {
|
||
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
||
|
}
|
||
|
|
||
|
module.exports = cloneDeep;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2464:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Stack = __webpack_require__(1148),
|
||
|
arrayEach = __webpack_require__(2385),
|
||
|
assignValue = __webpack_require__(1226),
|
||
|
baseAssign = __webpack_require__(2465),
|
||
|
baseAssignIn = __webpack_require__(2466),
|
||
|
cloneBuffer = __webpack_require__(1247),
|
||
|
copyArray = __webpack_require__(1249),
|
||
|
copySymbols = __webpack_require__(2467),
|
||
|
copySymbolsIn = __webpack_require__(2468),
|
||
|
getAllKeys = __webpack_require__(1965),
|
||
|
getAllKeysIn = __webpack_require__(2469),
|
||
|
getTag = __webpack_require__(1740),
|
||
|
initCloneArray = __webpack_require__(2470),
|
||
|
initCloneByTag = __webpack_require__(2471),
|
||
|
initCloneObject = __webpack_require__(1250),
|
||
|
isArray = __webpack_require__(895),
|
||
|
isBuffer = __webpack_require__(1074),
|
||
|
isMap = __webpack_require__(2475),
|
||
|
isObject = __webpack_require__(170),
|
||
|
isSet = __webpack_require__(2477),
|
||
|
keys = __webpack_require__(1645);
|
||
|
|
||
|
/** Used to compose bitmasks for cloning. */
|
||
|
var CLONE_DEEP_FLAG = 1,
|
||
|
CLONE_FLAT_FLAG = 2,
|
||
|
CLONE_SYMBOLS_FLAG = 4;
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var argsTag = '[object Arguments]',
|
||
|
arrayTag = '[object Array]',
|
||
|
boolTag = '[object Boolean]',
|
||
|
dateTag = '[object Date]',
|
||
|
errorTag = '[object Error]',
|
||
|
funcTag = '[object Function]',
|
||
|
genTag = '[object GeneratorFunction]',
|
||
|
mapTag = '[object Map]',
|
||
|
numberTag = '[object Number]',
|
||
|
objectTag = '[object Object]',
|
||
|
regexpTag = '[object RegExp]',
|
||
|
setTag = '[object Set]',
|
||
|
stringTag = '[object String]',
|
||
|
symbolTag = '[object Symbol]',
|
||
|
weakMapTag = '[object WeakMap]';
|
||
|
|
||
|
var arrayBufferTag = '[object ArrayBuffer]',
|
||
|
dataViewTag = '[object DataView]',
|
||
|
float32Tag = '[object Float32Array]',
|
||
|
float64Tag = '[object Float64Array]',
|
||
|
int8Tag = '[object Int8Array]',
|
||
|
int16Tag = '[object Int16Array]',
|
||
|
int32Tag = '[object Int32Array]',
|
||
|
uint8Tag = '[object Uint8Array]',
|
||
|
uint8ClampedTag = '[object Uint8ClampedArray]',
|
||
|
uint16Tag = '[object Uint16Array]',
|
||
|
uint32Tag = '[object Uint32Array]';
|
||
|
|
||
|
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
||
|
var cloneableTags = {};
|
||
|
cloneableTags[argsTag] = cloneableTags[arrayTag] =
|
||
|
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
|
||
|
cloneableTags[boolTag] = cloneableTags[dateTag] =
|
||
|
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
||
|
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
||
|
cloneableTags[int32Tag] = cloneableTags[mapTag] =
|
||
|
cloneableTags[numberTag] = cloneableTags[objectTag] =
|
||
|
cloneableTags[regexpTag] = cloneableTags[setTag] =
|
||
|
cloneableTags[stringTag] = cloneableTags[symbolTag] =
|
||
|
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
||
|
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
||
|
cloneableTags[errorTag] = cloneableTags[funcTag] =
|
||
|
cloneableTags[weakMapTag] = false;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
||
|
* traversed objects.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to clone.
|
||
|
* @param {boolean} bitmask The bitmask flags.
|
||
|
* 1 - Deep clone
|
||
|
* 2 - Flatten inherited properties
|
||
|
* 4 - Clone symbols
|
||
|
* @param {Function} [customizer] The function to customize cloning.
|
||
|
* @param {string} [key] The key of `value`.
|
||
|
* @param {Object} [object] The parent object of `value`.
|
||
|
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
||
|
* @returns {*} Returns the cloned value.
|
||
|
*/
|
||
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
||
|
var result,
|
||
|
isDeep = bitmask & CLONE_DEEP_FLAG,
|
||
|
isFlat = bitmask & CLONE_FLAT_FLAG,
|
||
|
isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
||
|
|
||
|
if (customizer) {
|
||
|
result = object ? customizer(value, key, object, stack) : customizer(value);
|
||
|
}
|
||
|
if (result !== undefined) {
|
||
|
return result;
|
||
|
}
|
||
|
if (!isObject(value)) {
|
||
|
return value;
|
||
|
}
|
||
|
var isArr = isArray(value);
|
||
|
if (isArr) {
|
||
|
result = initCloneArray(value);
|
||
|
if (!isDeep) {
|
||
|
return copyArray(value, result);
|
||
|
}
|
||
|
} else {
|
||
|
var tag = getTag(value),
|
||
|
isFunc = tag == funcTag || tag == genTag;
|
||
|
|
||
|
if (isBuffer(value)) {
|
||
|
return cloneBuffer(value, isDeep);
|
||
|
}
|
||
|
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
||
|
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
||
|
if (!isDeep) {
|
||
|
return isFlat
|
||
|
? copySymbolsIn(value, baseAssignIn(result, value))
|
||
|
: copySymbols(value, baseAssign(result, value));
|
||
|
}
|
||
|
} else {
|
||
|
if (!cloneableTags[tag]) {
|
||
|
return object ? value : {};
|
||
|
}
|
||
|
result = initCloneByTag(value, tag, isDeep);
|
||
|
}
|
||
|
}
|
||
|
// Check for circular references and return its corresponding clone.
|
||
|
stack || (stack = new Stack);
|
||
|
var stacked = stack.get(value);
|
||
|
if (stacked) {
|
||
|
return stacked;
|
||
|
}
|
||
|
stack.set(value, result);
|
||
|
|
||
|
if (isSet(value)) {
|
||
|
value.forEach(function(subValue) {
|
||
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
||
|
});
|
||
|
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
if (isMap(value)) {
|
||
|
value.forEach(function(subValue, key) {
|
||
|
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||
|
});
|
||
|
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
var keysFunc = isFull
|
||
|
? (isFlat ? getAllKeysIn : getAllKeys)
|
||
|
: (isFlat ? keysIn : keys);
|
||
|
|
||
|
var props = isArr ? undefined : keysFunc(value);
|
||
|
arrayEach(props || value, function(subValue, key) {
|
||
|
if (props) {
|
||
|
key = subValue;
|
||
|
subValue = value[key];
|
||
|
}
|
||
|
// Recursively populate clone (susceptible to call stack limits).
|
||
|
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||
|
});
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseClone;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2465:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var copyObject = __webpack_require__(1139),
|
||
|
keys = __webpack_require__(1645);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.assign` without support for multiple sources
|
||
|
* or `customizer` functions.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The destination object.
|
||
|
* @param {Object} source The source object.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function baseAssign(object, source) {
|
||
|
return object && copyObject(source, keys(source), object);
|
||
|
}
|
||
|
|
||
|
module.exports = baseAssign;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2466:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var copyObject = __webpack_require__(1139),
|
||
|
keysIn = __webpack_require__(1082);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.assignIn` without support for multiple sources
|
||
|
* or `customizer` functions.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The destination object.
|
||
|
* @param {Object} source The source object.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function baseAssignIn(object, source) {
|
||
|
return object && copyObject(source, keysIn(source), object);
|
||
|
}
|
||
|
|
||
|
module.exports = baseAssignIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2467:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var copyObject = __webpack_require__(1139),
|
||
|
getSymbols = __webpack_require__(1791);
|
||
|
|
||
|
/**
|
||
|
* Copies own symbols of `source` to `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} source The object to copy symbols from.
|
||
|
* @param {Object} [object={}] The object to copy symbols to.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function copySymbols(source, object) {
|
||
|
return copyObject(source, getSymbols(source), object);
|
||
|
}
|
||
|
|
||
|
module.exports = copySymbols;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2468:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var copyObject = __webpack_require__(1139),
|
||
|
getSymbolsIn = __webpack_require__(1971);
|
||
|
|
||
|
/**
|
||
|
* Copies own and inherited symbols of `source` to `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} source The object to copy symbols from.
|
||
|
* @param {Object} [object={}] The object to copy symbols to.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
*/
|
||
|
function copySymbolsIn(source, object) {
|
||
|
return copyObject(source, getSymbolsIn(source), object);
|
||
|
}
|
||
|
|
||
|
module.exports = copySymbolsIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2469:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetAllKeys = __webpack_require__(1966),
|
||
|
getSymbolsIn = __webpack_require__(1971),
|
||
|
keysIn = __webpack_require__(1082);
|
||
|
|
||
|
/**
|
||
|
* Creates an array of own and inherited enumerable property names and
|
||
|
* symbols of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names and symbols.
|
||
|
*/
|
||
|
function getAllKeysIn(object) {
|
||
|
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
||
|
}
|
||
|
|
||
|
module.exports = getAllKeysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2470:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Initializes an array clone.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Array} array The array to clone.
|
||
|
* @returns {Array} Returns the initialized clone.
|
||
|
*/
|
||
|
function initCloneArray(array) {
|
||
|
var length = array.length,
|
||
|
result = new array.constructor(length);
|
||
|
|
||
|
// Add properties assigned by `RegExp#exec`.
|
||
|
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
||
|
result.index = array.index;
|
||
|
result.input = array.input;
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = initCloneArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2471:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var cloneArrayBuffer = __webpack_require__(1149),
|
||
|
cloneDataView = __webpack_require__(2472),
|
||
|
cloneRegExp = __webpack_require__(2473),
|
||
|
cloneSymbol = __webpack_require__(2474),
|
||
|
cloneTypedArray = __webpack_require__(1248);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var boolTag = '[object Boolean]',
|
||
|
dateTag = '[object Date]',
|
||
|
mapTag = '[object Map]',
|
||
|
numberTag = '[object Number]',
|
||
|
regexpTag = '[object RegExp]',
|
||
|
setTag = '[object Set]',
|
||
|
stringTag = '[object String]',
|
||
|
symbolTag = '[object Symbol]';
|
||
|
|
||
|
var arrayBufferTag = '[object ArrayBuffer]',
|
||
|
dataViewTag = '[object DataView]',
|
||
|
float32Tag = '[object Float32Array]',
|
||
|
float64Tag = '[object Float64Array]',
|
||
|
int8Tag = '[object Int8Array]',
|
||
|
int16Tag = '[object Int16Array]',
|
||
|
int32Tag = '[object Int32Array]',
|
||
|
uint8Tag = '[object Uint8Array]',
|
||
|
uint8ClampedTag = '[object Uint8ClampedArray]',
|
||
|
uint16Tag = '[object Uint16Array]',
|
||
|
uint32Tag = '[object Uint32Array]';
|
||
|
|
||
|
/**
|
||
|
* Initializes an object clone based on its `toStringTag`.
|
||
|
*
|
||
|
* **Note:** This function only supports cloning values with tags of
|
||
|
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to clone.
|
||
|
* @param {string} tag The `toStringTag` of the object to clone.
|
||
|
* @param {boolean} [isDeep] Specify a deep clone.
|
||
|
* @returns {Object} Returns the initialized clone.
|
||
|
*/
|
||
|
function initCloneByTag(object, tag, isDeep) {
|
||
|
var Ctor = object.constructor;
|
||
|
switch (tag) {
|
||
|
case arrayBufferTag:
|
||
|
return cloneArrayBuffer(object);
|
||
|
|
||
|
case boolTag:
|
||
|
case dateTag:
|
||
|
return new Ctor(+object);
|
||
|
|
||
|
case dataViewTag:
|
||
|
return cloneDataView(object, isDeep);
|
||
|
|
||
|
case float32Tag: case float64Tag:
|
||
|
case int8Tag: case int16Tag: case int32Tag:
|
||
|
case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
|
||
|
return cloneTypedArray(object, isDeep);
|
||
|
|
||
|
case mapTag:
|
||
|
return new Ctor;
|
||
|
|
||
|
case numberTag:
|
||
|
case stringTag:
|
||
|
return new Ctor(object);
|
||
|
|
||
|
case regexpTag:
|
||
|
return cloneRegExp(object);
|
||
|
|
||
|
case setTag:
|
||
|
return new Ctor;
|
||
|
|
||
|
case symbolTag:
|
||
|
return cloneSymbol(object);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = initCloneByTag;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2472:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var cloneArrayBuffer = __webpack_require__(1149);
|
||
|
|
||
|
/**
|
||
|
* Creates a clone of `dataView`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} dataView The data view to clone.
|
||
|
* @param {boolean} [isDeep] Specify a deep clone.
|
||
|
* @returns {Object} Returns the cloned data view.
|
||
|
*/
|
||
|
function cloneDataView(dataView, isDeep) {
|
||
|
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
||
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
||
|
}
|
||
|
|
||
|
module.exports = cloneDataView;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2473:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used to match `RegExp` flags from their coerced string values. */
|
||
|
var reFlags = /\w*$/;
|
||
|
|
||
|
/**
|
||
|
* Creates a clone of `regexp`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} regexp The regexp to clone.
|
||
|
* @returns {Object} Returns the cloned regexp.
|
||
|
*/
|
||
|
function cloneRegExp(regexp) {
|
||
|
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
||
|
result.lastIndex = regexp.lastIndex;
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = cloneRegExp;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2474:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Symbol = __webpack_require__(186);
|
||
|
|
||
|
/** Used to convert symbols to primitives and strings. */
|
||
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||
|
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
||
|
|
||
|
/**
|
||
|
* Creates a clone of the `symbol` object.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} symbol The symbol object to clone.
|
||
|
* @returns {Object} Returns the cloned symbol object.
|
||
|
*/
|
||
|
function cloneSymbol(symbol) {
|
||
|
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
||
|
}
|
||
|
|
||
|
module.exports = cloneSymbol;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2475:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsMap = __webpack_require__(2476),
|
||
|
baseUnary = __webpack_require__(1150),
|
||
|
nodeUtil = __webpack_require__(1151);
|
||
|
|
||
|
/* Node.js helper references. */
|
||
|
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a `Map` object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.3.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isMap(new Map);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isMap(new WeakMap);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
||
|
|
||
|
module.exports = isMap;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2476:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getTag = __webpack_require__(1740),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var mapTag = '[object Map]';
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isMap` without Node.js optimizations.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
||
|
*/
|
||
|
function baseIsMap(value) {
|
||
|
return isObjectLike(value) && getTag(value) == mapTag;
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsMap;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2477:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsSet = __webpack_require__(2478),
|
||
|
baseUnary = __webpack_require__(1150),
|
||
|
nodeUtil = __webpack_require__(1151);
|
||
|
|
||
|
/* Node.js helper references. */
|
||
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a `Set` object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.3.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isSet(new Set);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isSet(new WeakSet);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
||
|
|
||
|
module.exports = isSet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2478:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getTag = __webpack_require__(1740),
|
||
|
isObjectLike = __webpack_require__(323);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var setTag = '[object Set]';
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isSet` without Node.js optimizations.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
||
|
*/
|
||
|
function baseIsSet(value) {
|
||
|
return isObjectLike(value) && getTag(value) == setTag;
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsSet;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2479:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.autoprefix = undefined;
|
||
|
|
||
|
var _forOwn2 = __webpack_require__(1790);
|
||
|
|
||
|
var _forOwn3 = _interopRequireDefault(_forOwn2);
|
||
|
|
||
|
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
var transforms = {
|
||
|
borderRadius: function borderRadius(value) {
|
||
|
return {
|
||
|
msBorderRadius: value,
|
||
|
MozBorderRadius: value,
|
||
|
OBorderRadius: value,
|
||
|
WebkitBorderRadius: value,
|
||
|
borderRadius: value
|
||
|
};
|
||
|
},
|
||
|
boxShadow: function boxShadow(value) {
|
||
|
return {
|
||
|
msBoxShadow: value,
|
||
|
MozBoxShadow: value,
|
||
|
OBoxShadow: value,
|
||
|
WebkitBoxShadow: value,
|
||
|
boxShadow: value
|
||
|
};
|
||
|
},
|
||
|
userSelect: function userSelect(value) {
|
||
|
return {
|
||
|
WebkitTouchCallout: value,
|
||
|
KhtmlUserSelect: value,
|
||
|
MozUserSelect: value,
|
||
|
msUserSelect: value,
|
||
|
WebkitUserSelect: value,
|
||
|
userSelect: value
|
||
|
};
|
||
|
},
|
||
|
|
||
|
flex: function flex(value) {
|
||
|
return {
|
||
|
WebkitBoxFlex: value,
|
||
|
MozBoxFlex: value,
|
||
|
WebkitFlex: value,
|
||
|
msFlex: value,
|
||
|
flex: value
|
||
|
};
|
||
|
},
|
||
|
flexBasis: function flexBasis(value) {
|
||
|
return {
|
||
|
WebkitFlexBasis: value,
|
||
|
flexBasis: value
|
||
|
};
|
||
|
},
|
||
|
justifyContent: function justifyContent(value) {
|
||
|
return {
|
||
|
WebkitJustifyContent: value,
|
||
|
justifyContent: value
|
||
|
};
|
||
|
},
|
||
|
|
||
|
transition: function transition(value) {
|
||
|
return {
|
||
|
msTransition: value,
|
||
|
MozTransition: value,
|
||
|
OTransition: value,
|
||
|
WebkitTransition: value,
|
||
|
transition: value
|
||
|
};
|
||
|
},
|
||
|
|
||
|
transform: function transform(value) {
|
||
|
return {
|
||
|
msTransform: value,
|
||
|
MozTransform: value,
|
||
|
OTransform: value,
|
||
|
WebkitTransform: value,
|
||
|
transform: value
|
||
|
};
|
||
|
},
|
||
|
absolute: function absolute(value) {
|
||
|
var direction = value && value.split(' ');
|
||
|
return {
|
||
|
position: 'absolute',
|
||
|
top: direction && direction[0],
|
||
|
right: direction && direction[1],
|
||
|
bottom: direction && direction[2],
|
||
|
left: direction && direction[3]
|
||
|
};
|
||
|
},
|
||
|
extend: function extend(name, otherElementStyles) {
|
||
|
var otherStyle = otherElementStyles[name];
|
||
|
if (otherStyle) {
|
||
|
return otherStyle;
|
||
|
}
|
||
|
return {
|
||
|
'extend': name
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var autoprefix = exports.autoprefix = function autoprefix(elements) {
|
||
|
var prefixed = {};
|
||
|
(0, _forOwn3.default)(elements, function (styles, element) {
|
||
|
var expanded = {};
|
||
|
(0, _forOwn3.default)(styles, function (value, key) {
|
||
|
var transform = transforms[key];
|
||
|
if (transform) {
|
||
|
expanded = _extends({}, expanded, transform(value));
|
||
|
} else {
|
||
|
expanded[key] = value;
|
||
|
}
|
||
|
});
|
||
|
prefixed[element] = expanded;
|
||
|
});
|
||
|
return prefixed;
|
||
|
};
|
||
|
|
||
|
exports.default = autoprefix;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2480:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.hover = 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);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
|
||
|
var hover = exports.hover = function hover(Component) {
|
||
|
var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
|
||
|
|
||
|
return function (_React$Component) {
|
||
|
_inherits(Hover, _React$Component);
|
||
|
|
||
|
function Hover() {
|
||
|
var _ref;
|
||
|
|
||
|
var _temp, _this, _ret;
|
||
|
|
||
|
_classCallCheck(this, Hover);
|
||
|
|
||
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||
|
args[_key] = arguments[_key];
|
||
|
}
|
||
|
|
||
|
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.handleMouseOver = function () {
|
||
|
return _this.setState({ hover: true });
|
||
|
}, _this.handleMouseOut = function () {
|
||
|
return _this.setState({ hover: false });
|
||
|
}, _this.render = function () {
|
||
|
return _react2.default.createElement(
|
||
|
Span,
|
||
|
{ onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut },
|
||
|
_react2.default.createElement(Component, _extends({}, _this.props, _this.state))
|
||
|
);
|
||
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
||
|
}
|
||
|
|
||
|
return Hover;
|
||
|
}(_react2.default.Component);
|
||
|
};
|
||
|
|
||
|
exports.default = hover;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2481:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.active = 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);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
|
||
|
var active = exports.active = function active(Component) {
|
||
|
var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
|
||
|
|
||
|
return function (_React$Component) {
|
||
|
_inherits(Active, _React$Component);
|
||
|
|
||
|
function Active() {
|
||
|
var _ref;
|
||
|
|
||
|
var _temp, _this, _ret;
|
||
|
|
||
|
_classCallCheck(this, Active);
|
||
|
|
||
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||
|
args[_key] = arguments[_key];
|
||
|
}
|
||
|
|
||
|
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply(_ref, [this].concat(args))), _this), _this.state = { active: false }, _this.handleMouseDown = function () {
|
||
|
return _this.setState({ active: true });
|
||
|
}, _this.handleMouseUp = function () {
|
||
|
return _this.setState({ active: false });
|
||
|
}, _this.render = function () {
|
||
|
return _react2.default.createElement(
|
||
|
Span,
|
||
|
{ onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp },
|
||
|
_react2.default.createElement(Component, _extends({}, _this.props, _this.state))
|
||
|
);
|
||
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
||
|
}
|
||
|
|
||
|
return Active;
|
||
|
}(_react2.default.Component);
|
||
|
};
|
||
|
|
||
|
exports.default = active;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 2482:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
var loopable = function loopable(i, length) {
|
||
|
var props = {};
|
||
|
var setProp = function setProp(name) {
|
||
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
||
|
|
||
|
props[name] = value;
|
||
|
};
|
||
|
|
||
|
i === 0 && setProp('first-child');
|
||
|
i === length - 1 && setProp('last-child');
|
||
|
(i === 0 || i % 2 === 0) && setProp('even');
|
||
|
Math.abs(i % 2) === 1 && setProp('odd');
|
||
|
setProp('nth-child', i);
|
||
|
|
||
|
return props;
|
||
|
};
|
||
|
|
||
|
exports.default = loopable;
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 3302:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _reactLifecyclesCompat = __webpack_require__(7);
|
||
|
|
||
|
var _toArray = _interopRequireDefault(__webpack_require__(1343));
|
||
|
|
||
|
var _findDOMNode = _interopRequireDefault(__webpack_require__(1658));
|
||
|
|
||
|
var _copyToClipboard = _interopRequireDefault(__webpack_require__(4763));
|
||
|
|
||
|
var _omit = _interopRequireDefault(__webpack_require__(43));
|
||
|
|
||
|
var _rcResizeObserver = _interopRequireDefault(__webpack_require__(373));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
var _context = __webpack_require__(355);
|
||
|
|
||
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(71));
|
||
|
|
||
|
var _warning = _interopRequireDefault(__webpack_require__(40));
|
||
|
|
||
|
var _transButton = _interopRequireDefault(__webpack_require__(1368));
|
||
|
|
||
|
var _raf = _interopRequireDefault(__webpack_require__(182));
|
||
|
|
||
|
var _styleChecker = _interopRequireDefault(__webpack_require__(1512));
|
||
|
|
||
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
||
|
|
||
|
var _tooltip = _interopRequireDefault(__webpack_require__(168));
|
||
|
|
||
|
var _Typography = _interopRequireDefault(__webpack_require__(3585));
|
||
|
|
||
|
var _Editable = _interopRequireDefault(__webpack_require__(4765));
|
||
|
|
||
|
var _util = _interopRequireDefault(__webpack_require__(4766));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
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; }
|
||
|
|
||
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
||
|
|
||
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
||
|
|
||
|
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
||
|
|
||
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var isLineClampSupport = (0, _styleChecker["default"])('webkitLineClamp');
|
||
|
var isTextOverflowSupport = (0, _styleChecker["default"])('textOverflow');
|
||
|
|
||
|
function wrapperDecorations(_ref, content) {
|
||
|
var mark = _ref.mark,
|
||
|
code = _ref.code,
|
||
|
underline = _ref.underline,
|
||
|
del = _ref["delete"],
|
||
|
strong = _ref.strong;
|
||
|
var currentContent = content;
|
||
|
|
||
|
function wrap(needed, tag) {
|
||
|
if (!needed) return;
|
||
|
currentContent = React.createElement(tag, {}, currentContent);
|
||
|
}
|
||
|
|
||
|
wrap(strong, 'strong');
|
||
|
wrap(underline, 'u');
|
||
|
wrap(del, 'del');
|
||
|
wrap(code, 'code');
|
||
|
wrap(mark, 'mark');
|
||
|
return currentContent;
|
||
|
}
|
||
|
|
||
|
var ELLIPSIS_STR = '...';
|
||
|
|
||
|
var Base =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(Base, _React$Component);
|
||
|
|
||
|
function Base() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, Base);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Base).apply(this, arguments));
|
||
|
_this.state = {
|
||
|
edit: false,
|
||
|
copied: false,
|
||
|
ellipsisText: '',
|
||
|
ellipsisContent: null,
|
||
|
isEllipsis: false,
|
||
|
expanded: false,
|
||
|
clientRendered: false
|
||
|
}; // =============== Expend ===============
|
||
|
|
||
|
_this.onExpandClick = function () {
|
||
|
var _this$getEllipsis = _this.getEllipsis(),
|
||
|
onExpand = _this$getEllipsis.onExpand;
|
||
|
|
||
|
_this.setState({
|
||
|
expanded: true
|
||
|
});
|
||
|
|
||
|
if (onExpand) {
|
||
|
onExpand();
|
||
|
}
|
||
|
}; // ================ Edit ================
|
||
|
|
||
|
|
||
|
_this.onEditClick = function () {
|
||
|
_this.triggerEdit(true);
|
||
|
};
|
||
|
|
||
|
_this.onEditChange = function (value) {
|
||
|
var _this$getEditable = _this.getEditable(),
|
||
|
onChange = _this$getEditable.onChange;
|
||
|
|
||
|
if (onChange) {
|
||
|
onChange(value);
|
||
|
}
|
||
|
|
||
|
_this.triggerEdit(false);
|
||
|
};
|
||
|
|
||
|
_this.onEditCancel = function () {
|
||
|
_this.triggerEdit(false);
|
||
|
}; // ================ Copy ================
|
||
|
|
||
|
|
||
|
_this.onCopyClick = function () {
|
||
|
var _this$props = _this.props,
|
||
|
children = _this$props.children,
|
||
|
copyable = _this$props.copyable;
|
||
|
|
||
|
var copyConfig = _extends({}, _typeof(copyable) === 'object' ? copyable : null);
|
||
|
|
||
|
if (copyConfig.text === undefined) {
|
||
|
copyConfig.text = String(children);
|
||
|
}
|
||
|
|
||
|
(0, _copyToClipboard["default"])(copyConfig.text || '');
|
||
|
|
||
|
_this.setState({
|
||
|
copied: true
|
||
|
}, function () {
|
||
|
if (copyConfig.onCopy) {
|
||
|
copyConfig.onCopy();
|
||
|
}
|
||
|
|
||
|
_this.copyId = window.setTimeout(function () {
|
||
|
_this.setState({
|
||
|
copied: false
|
||
|
});
|
||
|
}, 3000);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
_this.setContentRef = function (node) {
|
||
|
_this.content = node;
|
||
|
};
|
||
|
|
||
|
_this.setEditRef = function (node) {
|
||
|
_this.editIcon = node;
|
||
|
};
|
||
|
|
||
|
_this.triggerEdit = function (edit) {
|
||
|
var _this$getEditable2 = _this.getEditable(),
|
||
|
onStart = _this$getEditable2.onStart;
|
||
|
|
||
|
if (edit && onStart) {
|
||
|
onStart();
|
||
|
}
|
||
|
|
||
|
_this.setState({
|
||
|
edit: edit
|
||
|
}, function () {
|
||
|
if (!edit && _this.editIcon) {
|
||
|
_this.editIcon.focus();
|
||
|
}
|
||
|
});
|
||
|
}; // ============== Ellipsis ==============
|
||
|
|
||
|
|
||
|
_this.resizeOnNextFrame = function () {
|
||
|
_raf["default"].cancel(_this.rafId);
|
||
|
|
||
|
_this.rafId = (0, _raf["default"])(function () {
|
||
|
// Do not bind `syncEllipsis`. It need for test usage on prototype
|
||
|
_this.syncEllipsis();
|
||
|
});
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(Base, [{
|
||
|
key: "componentDidMount",
|
||
|
value: function componentDidMount() {
|
||
|
this.setState({
|
||
|
clientRendered: true
|
||
|
});
|
||
|
this.resizeOnNextFrame();
|
||
|
}
|
||
|
}, {
|
||
|
key: "componentDidUpdate",
|
||
|
value: function componentDidUpdate(prevProps) {
|
||
|
var children = this.props.children;
|
||
|
var ellipsis = this.getEllipsis();
|
||
|
var prevEllipsis = this.getEllipsis(prevProps);
|
||
|
|
||
|
if (children !== prevProps.children || ellipsis.rows !== prevEllipsis.rows) {
|
||
|
this.resizeOnNextFrame();
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "componentWillUnmount",
|
||
|
value: function componentWillUnmount() {
|
||
|
window.clearTimeout(this.copyId);
|
||
|
|
||
|
_raf["default"].cancel(this.rafId);
|
||
|
}
|
||
|
}, {
|
||
|
key: "getEditable",
|
||
|
value: function getEditable(props) {
|
||
|
var edit = this.state.edit;
|
||
|
|
||
|
var _ref2 = props || this.props,
|
||
|
editable = _ref2.editable;
|
||
|
|
||
|
if (!editable) return {
|
||
|
editing: edit
|
||
|
};
|
||
|
return _extends({
|
||
|
editing: edit
|
||
|
}, _typeof(editable) === 'object' ? editable : null);
|
||
|
}
|
||
|
}, {
|
||
|
key: "getEllipsis",
|
||
|
value: function getEllipsis(props) {
|
||
|
var _ref3 = props || this.props,
|
||
|
ellipsis = _ref3.ellipsis;
|
||
|
|
||
|
if (!ellipsis) return {};
|
||
|
return _extends({
|
||
|
rows: 1,
|
||
|
expandable: false
|
||
|
}, _typeof(ellipsis) === 'object' ? ellipsis : null);
|
||
|
}
|
||
|
}, {
|
||
|
key: "canUseCSSEllipsis",
|
||
|
value: function canUseCSSEllipsis() {
|
||
|
var clientRendered = this.state.clientRendered;
|
||
|
var _this$props2 = this.props,
|
||
|
editable = _this$props2.editable,
|
||
|
copyable = _this$props2.copyable;
|
||
|
|
||
|
var _this$getEllipsis2 = this.getEllipsis(),
|
||
|
rows = _this$getEllipsis2.rows,
|
||
|
expandable = _this$getEllipsis2.expandable; // Can't use css ellipsis since we need to provide the place for button
|
||
|
|
||
|
|
||
|
if (editable || copyable || expandable || !clientRendered) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
if (rows === 1) {
|
||
|
return isTextOverflowSupport;
|
||
|
}
|
||
|
|
||
|
return isLineClampSupport;
|
||
|
}
|
||
|
}, {
|
||
|
key: "syncEllipsis",
|
||
|
value: function syncEllipsis() {
|
||
|
var _this$state = this.state,
|
||
|
ellipsisText = _this$state.ellipsisText,
|
||
|
isEllipsis = _this$state.isEllipsis,
|
||
|
expanded = _this$state.expanded;
|
||
|
|
||
|
var _this$getEllipsis3 = this.getEllipsis(),
|
||
|
rows = _this$getEllipsis3.rows;
|
||
|
|
||
|
var children = this.props.children;
|
||
|
if (!rows || rows < 0 || !this.content || expanded) return; // Do not measure if css already support ellipsis
|
||
|
|
||
|
if (this.canUseCSSEllipsis()) return;
|
||
|
(0, _warning["default"])((0, _toArray["default"])(children).every(function (child) {
|
||
|
return typeof child === 'string';
|
||
|
}), 'Typography', '`ellipsis` should use string as children only.');
|
||
|
|
||
|
var _measure = (0, _util["default"])((0, _findDOMNode["default"])(this.content), rows, children, this.renderOperations(true), ELLIPSIS_STR),
|
||
|
content = _measure.content,
|
||
|
text = _measure.text,
|
||
|
ellipsis = _measure.ellipsis;
|
||
|
|
||
|
if (ellipsisText !== text || isEllipsis !== ellipsis) {
|
||
|
this.setState({
|
||
|
ellipsisText: text,
|
||
|
ellipsisContent: content,
|
||
|
isEllipsis: ellipsis
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "renderExpand",
|
||
|
value: function renderExpand(forceRender) {
|
||
|
var _this$getEllipsis4 = this.getEllipsis(),
|
||
|
expandable = _this$getEllipsis4.expandable;
|
||
|
|
||
|
var prefixCls = this.props.prefixCls;
|
||
|
var _this$state2 = this.state,
|
||
|
expanded = _this$state2.expanded,
|
||
|
isEllipsis = _this$state2.isEllipsis;
|
||
|
if (!expandable) return null; // force render expand icon for measure usage or it will cause dead loop
|
||
|
|
||
|
if (!forceRender && (expanded || !isEllipsis)) return null;
|
||
|
return React.createElement("a", {
|
||
|
key: "expand",
|
||
|
className: "".concat(prefixCls, "-expand"),
|
||
|
onClick: this.onExpandClick,
|
||
|
"aria-label": this.expandStr
|
||
|
}, this.expandStr);
|
||
|
}
|
||
|
}, {
|
||
|
key: "renderEdit",
|
||
|
value: function renderEdit() {
|
||
|
var _this$props3 = this.props,
|
||
|
editable = _this$props3.editable,
|
||
|
prefixCls = _this$props3.prefixCls;
|
||
|
if (!editable) return;
|
||
|
return React.createElement(_tooltip["default"], {
|
||
|
key: "edit",
|
||
|
title: this.editStr
|
||
|
}, React.createElement(_transButton["default"], {
|
||
|
ref: this.setEditRef,
|
||
|
className: "".concat(prefixCls, "-edit"),
|
||
|
onClick: this.onEditClick,
|
||
|
"aria-label": this.editStr
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
role: "button",
|
||
|
type: "edit"
|
||
|
})));
|
||
|
}
|
||
|
}, {
|
||
|
key: "renderCopy",
|
||
|
value: function renderCopy() {
|
||
|
var copied = this.state.copied;
|
||
|
var _this$props4 = this.props,
|
||
|
copyable = _this$props4.copyable,
|
||
|
prefixCls = _this$props4.prefixCls;
|
||
|
if (!copyable) return;
|
||
|
var title = copied ? this.copiedStr : this.copyStr;
|
||
|
return React.createElement(_tooltip["default"], {
|
||
|
key: "copy",
|
||
|
title: title
|
||
|
}, React.createElement(_transButton["default"], {
|
||
|
className: (0, _classnames["default"])("".concat(prefixCls, "-copy"), copied && "".concat(prefixCls, "-copy-success")),
|
||
|
onClick: this.onCopyClick,
|
||
|
"aria-label": title
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
role: "button",
|
||
|
type: copied ? 'check' : 'copy'
|
||
|
})));
|
||
|
}
|
||
|
}, {
|
||
|
key: "renderEditInput",
|
||
|
value: function renderEditInput() {
|
||
|
var _this$props5 = this.props,
|
||
|
children = _this$props5.children,
|
||
|
prefixCls = _this$props5.prefixCls,
|
||
|
className = _this$props5.className,
|
||
|
style = _this$props5.style;
|
||
|
return React.createElement(_Editable["default"], {
|
||
|
value: typeof children === 'string' ? children : '',
|
||
|
onSave: this.onEditChange,
|
||
|
onCancel: this.onEditCancel,
|
||
|
prefixCls: prefixCls,
|
||
|
className: className,
|
||
|
style: style
|
||
|
});
|
||
|
}
|
||
|
}, {
|
||
|
key: "renderOperations",
|
||
|
value: function renderOperations(forceRenderExpanded) {
|
||
|
return [this.renderExpand(forceRenderExpanded), this.renderEdit(), this.renderCopy()].filter(function (node) {
|
||
|
return node;
|
||
|
});
|
||
|
}
|
||
|
}, {
|
||
|
key: "renderContent",
|
||
|
value: function renderContent() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
var _this$state3 = this.state,
|
||
|
ellipsisContent = _this$state3.ellipsisContent,
|
||
|
isEllipsis = _this$state3.isEllipsis,
|
||
|
expanded = _this$state3.expanded;
|
||
|
|
||
|
var _a = this.props,
|
||
|
component = _a.component,
|
||
|
children = _a.children,
|
||
|
className = _a.className,
|
||
|
prefixCls = _a.prefixCls,
|
||
|
type = _a.type,
|
||
|
disabled = _a.disabled,
|
||
|
style = _a.style,
|
||
|
restProps = __rest(_a, ["component", "children", "className", "prefixCls", "type", "disabled", "style"]);
|
||
|
|
||
|
var _this$getEllipsis5 = this.getEllipsis(),
|
||
|
rows = _this$getEllipsis5.rows;
|
||
|
|
||
|
var textProps = (0, _omit["default"])(restProps, ['prefixCls', 'editable', 'copyable', 'ellipsis', 'mark', 'underline', 'mark', 'code', 'delete', 'underline', 'strong'].concat(_toConsumableArray(_configProvider.configConsumerProps)));
|
||
|
var cssEllipsis = this.canUseCSSEllipsis();
|
||
|
var cssTextOverflow = rows === 1 && cssEllipsis;
|
||
|
var cssLineClamp = rows && rows > 1 && cssEllipsis;
|
||
|
var textNode = children;
|
||
|
var ariaLabel = null; // Only use js ellipsis when css ellipsis not support
|
||
|
|
||
|
if (rows && isEllipsis && !expanded && !cssEllipsis) {
|
||
|
ariaLabel = String(children); // We move full content to outer element to avoid repeat read the content by accessibility
|
||
|
|
||
|
textNode = React.createElement("span", {
|
||
|
title: String(children),
|
||
|
"aria-hidden": "true"
|
||
|
}, ellipsisContent, ELLIPSIS_STR);
|
||
|
}
|
||
|
|
||
|
textNode = wrapperDecorations(this.props, textNode);
|
||
|
return React.createElement(_LocaleReceiver["default"], {
|
||
|
componentName: "Text"
|
||
|
}, function (_ref4) {
|
||
|
var _classNames;
|
||
|
|
||
|
var edit = _ref4.edit,
|
||
|
copyStr = _ref4.copy,
|
||
|
copied = _ref4.copied,
|
||
|
expand = _ref4.expand;
|
||
|
_this2.editStr = edit;
|
||
|
_this2.copyStr = copyStr;
|
||
|
_this2.copiedStr = copied;
|
||
|
_this2.expandStr = expand;
|
||
|
return React.createElement(_rcResizeObserver["default"], {
|
||
|
onResize: _this2.resizeOnNextFrame,
|
||
|
disabled: !rows
|
||
|
}, React.createElement(_Typography["default"], _extends({
|
||
|
className: (0, _classnames["default"])(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-ellipsis"), rows), _defineProperty(_classNames, "".concat(prefixCls, "-ellipsis-single-line"), cssTextOverflow), _defineProperty(_classNames, "".concat(prefixCls, "-ellipsis-multiple-line"), cssLineClamp), _classNames)),
|
||
|
style: _extends(_extends({}, style), {
|
||
|
WebkitLineClamp: cssLineClamp ? rows : null
|
||
|
}),
|
||
|
component: component,
|
||
|
ref: _this2.setContentRef,
|
||
|
"aria-label": ariaLabel
|
||
|
}, textProps), textNode, _this2.renderOperations()));
|
||
|
});
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var _this$getEditable3 = this.getEditable(),
|
||
|
editing = _this$getEditable3.editing;
|
||
|
|
||
|
if (editing) {
|
||
|
return this.renderEditInput();
|
||
|
}
|
||
|
|
||
|
return this.renderContent();
|
||
|
}
|
||
|
}], [{
|
||
|
key: "getDerivedStateFromProps",
|
||
|
value: function getDerivedStateFromProps(nextProps) {
|
||
|
var children = nextProps.children,
|
||
|
editable = nextProps.editable;
|
||
|
(0, _warning["default"])(!editable || typeof children === 'string', 'Typography', 'When `editable` is enabled, the `children` should use string.');
|
||
|
return {};
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Base;
|
||
|
}(React.Component);
|
||
|
|
||
|
Base.defaultProps = {
|
||
|
children: ''
|
||
|
};
|
||
|
(0, _reactLifecyclesCompat.polyfill)(Base);
|
||
|
|
||
|
var _default = (0, _context.withConfigConsumer)({
|
||
|
prefixCls: 'typography'
|
||
|
})(Base);
|
||
|
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=Base.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 3585:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
var _warning = _interopRequireDefault(__webpack_require__(40));
|
||
|
|
||
|
var _ref2 = __webpack_require__(4761);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
function _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); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var Typography = function Typography(_a, ref) {
|
||
|
var customizePrefixCls = _a.prefixCls,
|
||
|
_a$component = _a.component,
|
||
|
component = _a$component === void 0 ? 'article' : _a$component,
|
||
|
className = _a.className,
|
||
|
ariaLabel = _a['aria-label'],
|
||
|
setContentRef = _a.setContentRef,
|
||
|
children = _a.children,
|
||
|
restProps = __rest(_a, ["prefixCls", "component", "className", 'aria-label', "setContentRef", "children"]);
|
||
|
|
||
|
var mergedRef = ref;
|
||
|
|
||
|
if (setContentRef) {
|
||
|
(0, _warning["default"])(false, 'Typography', '`setContentRef` is deprecated. Please use `ref` instead.');
|
||
|
mergedRef = (0, _ref2.composeRef)(ref, setContentRef);
|
||
|
}
|
||
|
|
||
|
return React.createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
||
|
var getPrefixCls = _ref.getPrefixCls;
|
||
|
var Component = component;
|
||
|
var prefixCls = getPrefixCls('typography', customizePrefixCls);
|
||
|
return React.createElement(Component, _extends({
|
||
|
className: (0, _classnames["default"])(prefixCls, className),
|
||
|
"aria-label": ariaLabel,
|
||
|
ref: mergedRef
|
||
|
}, restProps), children);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
var RefTypography;
|
||
|
|
||
|
if (React.forwardRef) {
|
||
|
RefTypography = React.forwardRef(Typography);
|
||
|
RefTypography.displayName = 'Typography';
|
||
|
} else {
|
||
|
var TypographyWrapper =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(TypographyWrapper, _React$Component);
|
||
|
|
||
|
function TypographyWrapper() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, TypographyWrapper);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(TypographyWrapper).apply(this, arguments));
|
||
|
_this.state = {};
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(TypographyWrapper, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(Typography, this.props);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return TypographyWrapper;
|
||
|
}(React.Component);
|
||
|
|
||
|
RefTypography = TypographyWrapper;
|
||
|
} // es default export should use const instead of let
|
||
|
|
||
|
|
||
|
var ExportTypography = RefTypography;
|
||
|
var _default = ExportTypography;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=Typography.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4756:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_dropdown_style_css__ = __webpack_require__(985);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_dropdown_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_dropdown_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_dropdown__ = __webpack_require__(982);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_dropdown__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_icon_style_css__ = __webpack_require__(176);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_icon_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_icon__ = __webpack_require__(26);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_icon__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_pagination_style_css__ = __webpack_require__(905);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_pagination_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_pagination_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_pagination__ = __webpack_require__(906);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_pagination__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_menu_style_css__ = __webpack_require__(989);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_menu_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_menu_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_menu__ = __webpack_require__(924);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_typography_style_css__ = __webpack_require__(4757);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_typography_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_typography_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_typography__ = __webpack_require__(4760);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_typography___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_typography__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(0);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_router_dom__ = __webpack_require__(44);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__Nav__ = __webpack_require__(1893);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__modules_courses_coursesPublic_NoneData__ = __webpack_require__(328);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_reactcss__ = __webpack_require__(1425);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_reactcss__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_axios__ = __webpack_require__(15);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_axios__);
|
||
|
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;};}();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 Text=__WEBPACK_IMPORTED_MODULE_9_antd_lib_typography___default.a.Text;var Milepost=function(_Component){_inherits(Milepost,_Component);function Milepost(props){_classCallCheck(this,Milepost);var _this=_possibleConstructorReturn(this,(Milepost.__proto__||Object.getPrototypeOf(Milepost)).call(this,props));_this.componentDidMount=function(){_this.getList(1,_this.state.status,'desc');};_this.getList=function(page,status,order_type){var projectsId=_this.props.match.params.projectsId;var limit=_this.state.limit;var url='/projects/'+projectsId+'/versions.json';__WEBPACK_IMPORTED_MODULE_15_axios___default.a.get(url,{params:{projectsId:projectsId,page:page,limit:limit,status:status,order_type:order_type}}).then(function(result){if(result){_this.setState({data:result.data});}}).catch(function(error){console.log(error);});};_this.opneMilelist=function(){_this.setState({status:'open'});_this.getList(1,'open','desc');};_this.closeMilelist=function(){_this.setState({status:'closed'});_this.getList(1,'closed','desc');};_this.updatestatusemile=function(status,arr){var projectsId=_this.props.match.params.projectsId;var url='/projects/'+projectsId+'/versions/'+arr.id+'/update_status';__WEBPACK_IMPORTED_MODULE_15_axios___default.a.post(url,{project_id:projectsId,id:arr.id,status:status}).then(function(result){if(result){_this.getList(1,'open','desc');}}).catch(function(error){console.log(error);});};_this.closemile=function(arr){var projectsId=_this.props.match.params.projectsId;var url='/projects/'+projectsId+'/versions/'+arr.id;__WEBPACK_IMPORTED_MODULE_15_axios___default.a.delete(url,{data:{project_id:projectsId,id:arr.id}}).then(function(result){if(result){_this.getList(1,_this.state.status,'desc');}}).catch(function(error){console.log(error);});};_this.ChangePage=function(page){_this.setState({page:page});_this.getList(page);};_this.arrayList=function(e){_this.setState({order_name:e.key,order_type:e.item.props.value});_this.getList(1,_this.state.status,e.item.props.value);};_this.newshow=function(){_this.setState({display:'block'});};_this.newclose=function(){_this.setState({display:'none'});};_this.state={data:undefined,limit:15,page:1,order_type:undefined,//新建标签区域是否显示 none 隐藏 block 显示
|
||
|
display:'none',status:'open'};return _this;}// 排序
|
||
|
//控制新建标签页是否显示
|
||
|
_createClass(Milepost,[{key:'render',value:function render(){var _this2=this;var _state=this.state,data=_state.data,limit=_state.limit,page=_state.page;var projectsId=this.props.match.params.projectsId;var menu=__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a,{onClick:this.arrayList},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a.Item,{key:'created_at',value:'desc'},'\u5230\u671F\u65E5\u4ECE\u8FD1\u5230\u8FDC'),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a.Item,{key:'created_at',value:'asc'},'\u5230\u671F\u65E5\u4ECE\u8FDC\u5230\u8FD1'),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a.Item,{key:'issues_count',value:'desc'},'\u5B8C\u6210\u5EA6\u4ECE\u4F4E\u5230\u9AD8'),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a.Item,{key:'issues_count',value:'asc'},'\u5B8C\u6210\u5EA6\u4ECE\u9AD8\u5230\u4F4E'),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a.Item,{key:'issues_count',value:'asc'},'\u5DE5\u5355\u4ECE\u591A\u5230\u5C11'),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_menu___default.a.Item,{key:'issues_count',value:'asc'},'\u5DE5\u5355\u4ECE\u5C11\u5230\u591A'));var Paginations=__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,data&&data.issue_tags_count>limit?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'mt30 mb50 edu-txt-center'},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_pagination___default.a,{simple:true,defaultCurrent:page,total:data&&data.issue_tags_count,pageSize:limit,onChange:this.ChangePage})):"");var renderList=function renderList(){if(data&&data.versions&&data.versions.length>0){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'tagList'},data.versions.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{style:{display:'block'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'milepostdiv'},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'milepostwidth'},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',{style:{background:'red',width:20}}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',null,item.name)),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'mileposwidth'})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'milepostdiv',style:{marginTop:5}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'milepostrighe'},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',{style:{background:'red',width:20}}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',null,item.effective_date),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',{style:{background:'red',width:20}}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',null,item.open_issues_count,'\u4E2A\u5F00\u542F'),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',{style:{background:'red',width:20}}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',null,item.close_issues_count,'\u4E2A\u5173\u95ED')),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('div',{className:'milepostleft'},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',{style:{background:'red',width:20}}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement('p',null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_react_router_dom__["b" /* Link */],{to:'/projects/'+projectsId+'/orders
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4757:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
__webpack_require__(28);
|
||
|
|
||
|
__webpack_require__(4758);
|
||
|
|
||
|
__webpack_require__(169);
|
||
|
|
||
|
__webpack_require__(68);
|
||
|
//# sourceMappingURL=css.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4758:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(4759);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
// Prepare cssTransformation
|
||
|
var transform;
|
||
|
|
||
|
var options = {"hmr":false}
|
||
|
options.transform = transform
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(313)(content, options);
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4759:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(312)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, ".ant-typography{color:rgba(0,0,0,.65)}.ant-typography.ant-typography-secondary{color:rgba(0,0,0,.45)}.ant-typography.ant-typography-warning{color:#faad14}.ant-typography.ant-typography-danger{color:#f5222d}.ant-typography.ant-typography-disabled{color:rgba(0,0,0,.25);cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-typography p,div.ant-typography{margin-bottom:1em}.ant-typography h1,h1.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:38px;line-height:1.23}.ant-typography h2,h2.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:30px;line-height:1.35}.ant-typography h3,h3.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:24px;line-height:1.35}.ant-typography h4,h4.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:1.4}.ant-typography+h1.ant-typography,.ant-typography+h2.ant-typography,.ant-typography+h3.ant-typography,.ant-typography+h4.ant-typography,.ant-typography div+h1,.ant-typography div+h2,.ant-typography div+h3,.ant-typography div+h4,.ant-typography h1+h1,.ant-typography h1+h2,.ant-typography h1+h3,.ant-typography h1+h4,.ant-typography h2+h1,.ant-typography h2+h2,.ant-typography h2+h3,.ant-typography h2+h4,.ant-typography h3+h1,.ant-typography h3+h2,.ant-typography h3+h3,.ant-typography h3+h4,.ant-typography h4+h1,.ant-typography h4+h2,.ant-typography h4+h3,.ant-typography h4+h4,.ant-typography li+h1,.ant-typography li+h2,.ant-typography li+h3,.ant-typography li+h4,.ant-typography p+h1,.ant-typography p+h2,.ant-typography p+h3,.ant-typography p+h4,.ant-typography ul+h1,.ant-typography ul+h2,.ant-typography ul+h3,.ant-typography ul+h4{margin-top:1.2em}span.ant-typography-ellipsis{display:inline-block}.ant-typography a{color:#1890ff;text-decoration:none;outline:none;cursor:pointer;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s}.ant-typography a:focus,.ant-typography a:hover{color:#40a9ff}.ant-typography a:active{color:#096dd9}.ant-typography a:active,.ant-typography a:hover{text-decoration:none}.ant-typography a[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed;pointer-events:none}.ant-typography code{margin:0 .2em;padding:.2em .4em .1em;font-size:85%;background:rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.06);border-radius:3px}.ant-typography mark{padding:0;background-color:#ffe58f}.ant-typography ins,.ant-typography u{text-decoration:underline;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto}.ant-typography del,.ant-typography s{text-decoration:line-through}.ant-typography strong{font-weight:600}.ant-typography-copy,.ant-typography-edit,.ant-typography-expand{color:#1890ff;text-decoration:none;outline:none;cursor:pointer;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s;margin-left:8px}.ant-typography-copy:focus,.ant-typography-copy:hover,.ant-typography-edit:focus,.ant-typography-edit:hover,.ant-typography-expand:focus,.ant-typography-expand:hover{color:#40a9ff}.ant-typography-copy:active,.ant-typography-edit:active,.ant-typography-expand:active{color:#096dd9}.ant-typography-copy-success,.ant-typography-copy-success:focus,.ant-typography-copy-success:hover{color:#52c41a}.ant-typography-edit-content{position:relative}div.ant-typography-edit-content{left:-12px;margin-top:-5px;margin-bottom:calc(1em - 4px - 2px)}.ant-typography-edit-content-confirm{position:absolute;right:10px;bottom:8px;color:rgba(0,0,0,.45);pointer-events:none}.ant-typography-edit-content textarea{-moz-transition:none}.ant-typography ol,.ant-typography ul{margin:0 0 1em;padding:0}.ant-typography ol li,.ant-typography ul li{margin:0 0 0 20px;padding:0 0 0 4px}.ant-typography ul li{list-style-type:circle}.ant-typography ul li li{list-style-type:disc}.ant-typography ol li{list-style-type:decimal}.ant-typography-ellipsis-single-line{overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-typography-ellipsis-multiple-line{display:
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4760:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var _Typography = _interopRequireDefault(__webpack_require__(3585));
|
||
|
|
||
|
var _Text = _interopRequireDefault(__webpack_require__(4762));
|
||
|
|
||
|
var _Title = _interopRequireDefault(__webpack_require__(4767));
|
||
|
|
||
|
var _Paragraph = _interopRequireDefault(__webpack_require__(4768));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
var Typography = _Typography["default"];
|
||
|
Typography.Text = _Text["default"];
|
||
|
Typography.Title = _Title["default"];
|
||
|
Typography.Paragraph = _Paragraph["default"];
|
||
|
var _default = Typography;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=index.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4761:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.fillRef = fillRef;
|
||
|
exports.composeRef = composeRef;
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
function fillRef(ref, node) {
|
||
|
if (typeof ref === 'function') {
|
||
|
ref(node);
|
||
|
} else if (_typeof(ref) === 'object' && ref && 'current' in ref) {
|
||
|
ref.current = node;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function composeRef() {
|
||
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
|
refs[_key] = arguments[_key];
|
||
|
}
|
||
|
|
||
|
return function (node) {
|
||
|
refs.forEach(function (ref) {
|
||
|
fillRef(ref, node);
|
||
|
});
|
||
|
};
|
||
|
}
|
||
|
//# sourceMappingURL=ref.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4762:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _warning = _interopRequireDefault(__webpack_require__(40));
|
||
|
|
||
|
var _Base = _interopRequireDefault(__webpack_require__(3302));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
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 _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var Text = function Text(_a) {
|
||
|
var ellipsis = _a.ellipsis,
|
||
|
restProps = __rest(_a, ["ellipsis"]);
|
||
|
|
||
|
(0, _warning["default"])(_typeof(ellipsis) !== 'object', 'Typography.Text', '`ellipsis` only supports boolean value.');
|
||
|
return React.createElement(_Base["default"], _extends({}, restProps, {
|
||
|
ellipsis: !!ellipsis,
|
||
|
component: "span"
|
||
|
}));
|
||
|
};
|
||
|
|
||
|
var _default = Text;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=Text.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4763:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
var deselectCurrent = __webpack_require__(4764);
|
||
|
|
||
|
var clipboardToIE11Formatting = {
|
||
|
"text/plain": "Text",
|
||
|
"text/html": "Url",
|
||
|
"default": "Text"
|
||
|
}
|
||
|
|
||
|
var defaultMessage = "Copy to clipboard: #{key}, Enter";
|
||
|
|
||
|
function format(message) {
|
||
|
var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
||
|
return message.replace(/#{\s*key\s*}/g, copyKey);
|
||
|
}
|
||
|
|
||
|
function copy(text, options) {
|
||
|
var debug,
|
||
|
message,
|
||
|
reselectPrevious,
|
||
|
range,
|
||
|
selection,
|
||
|
mark,
|
||
|
success = false;
|
||
|
if (!options) {
|
||
|
options = {};
|
||
|
}
|
||
|
debug = options.debug || false;
|
||
|
try {
|
||
|
reselectPrevious = deselectCurrent();
|
||
|
|
||
|
range = document.createRange();
|
||
|
selection = document.getSelection();
|
||
|
|
||
|
mark = document.createElement("span");
|
||
|
mark.textContent = text;
|
||
|
// reset user styles for span element
|
||
|
mark.style.all = "unset";
|
||
|
// prevents scrolling to the end of the page
|
||
|
mark.style.position = "fixed";
|
||
|
mark.style.top = 0;
|
||
|
mark.style.clip = "rect(0, 0, 0, 0)";
|
||
|
// used to preserve spaces and line breaks
|
||
|
mark.style.whiteSpace = "pre";
|
||
|
// do not inherit user-select (it may be `none`)
|
||
|
mark.style.webkitUserSelect = "text";
|
||
|
mark.style.MozUserSelect = "text";
|
||
|
mark.style.msUserSelect = "text";
|
||
|
mark.style.userSelect = "text";
|
||
|
mark.addEventListener("copy", function(e) {
|
||
|
e.stopPropagation();
|
||
|
if (options.format) {
|
||
|
e.preventDefault();
|
||
|
if (typeof e.clipboardData === "undefined") { // IE 11
|
||
|
debug && console.warn("unable to use e.clipboardData");
|
||
|
debug && console.warn("trying IE specific stuff");
|
||
|
window.clipboardData.clearData();
|
||
|
var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"]
|
||
|
window.clipboardData.setData(format, text);
|
||
|
} else { // all other browsers
|
||
|
e.clipboardData.clearData();
|
||
|
e.clipboardData.setData(options.format, text);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
document.body.appendChild(mark);
|
||
|
|
||
|
range.selectNodeContents(mark);
|
||
|
selection.addRange(range);
|
||
|
|
||
|
var successful = document.execCommand("copy");
|
||
|
if (!successful) {
|
||
|
throw new Error("copy command was unsuccessful");
|
||
|
}
|
||
|
success = true;
|
||
|
} catch (err) {
|
||
|
debug && console.error("unable to copy using execCommand: ", err);
|
||
|
debug && console.error("unable to copy using clipboardData: ", err);
|
||
|
debug && console.error("falling back to prompt");
|
||
|
message = format("message" in options ? options.message : defaultMessage);
|
||
|
window.prompt(message, text);
|
||
|
} finally {
|
||
|
if (selection) {
|
||
|
if (typeof selection.removeRange == "function") {
|
||
|
selection.removeRange(range);
|
||
|
} else {
|
||
|
selection.removeAllRanges();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (mark) {
|
||
|
document.body.removeChild(mark);
|
||
|
}
|
||
|
reselectPrevious();
|
||
|
}
|
||
|
|
||
|
return success;
|
||
|
}
|
||
|
|
||
|
module.exports = copy;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4764:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
|
||
|
module.exports = function () {
|
||
|
var selection = document.getSelection();
|
||
|
if (!selection.rangeCount) {
|
||
|
return function () {};
|
||
|
}
|
||
|
var active = document.activeElement;
|
||
|
|
||
|
var ranges = [];
|
||
|
for (var i = 0; i < selection.rangeCount; i++) {
|
||
|
ranges.push(selection.getRangeAt(i));
|
||
|
}
|
||
|
|
||
|
switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML
|
||
|
case 'INPUT':
|
||
|
case 'TEXTAREA':
|
||
|
active.blur();
|
||
|
break;
|
||
|
|
||
|
default:
|
||
|
active = null;
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
selection.removeAllRanges();
|
||
|
return function () {
|
||
|
selection.type === 'Caret' &&
|
||
|
selection.removeAllRanges();
|
||
|
|
||
|
if (!selection.rangeCount) {
|
||
|
ranges.forEach(function(range) {
|
||
|
selection.addRange(range);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
active &&
|
||
|
active.focus();
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4765:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _KeyCode = _interopRequireDefault(__webpack_require__(345));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _reactLifecyclesCompat = __webpack_require__(7);
|
||
|
|
||
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
||
|
|
||
|
var _TextArea = _interopRequireDefault(__webpack_require__(385));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var Editable =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(Editable, _React$Component);
|
||
|
|
||
|
function Editable() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, Editable);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Editable).apply(this, arguments));
|
||
|
_this.inComposition = false;
|
||
|
_this.state = {
|
||
|
current: ''
|
||
|
};
|
||
|
|
||
|
_this.onChange = function (_ref) {
|
||
|
var value = _ref.target.value;
|
||
|
|
||
|
_this.setState({
|
||
|
current: value.replace(/[\r\n]/g, '')
|
||
|
});
|
||
|
};
|
||
|
|
||
|
_this.onCompositionStart = function () {
|
||
|
_this.inComposition = true;
|
||
|
};
|
||
|
|
||
|
_this.onCompositionEnd = function () {
|
||
|
_this.inComposition = false;
|
||
|
};
|
||
|
|
||
|
_this.onKeyDown = function (_ref2) {
|
||
|
var keyCode = _ref2.keyCode;
|
||
|
// We don't record keyCode when IME is using
|
||
|
if (_this.inComposition) return;
|
||
|
_this.lastKeyCode = keyCode;
|
||
|
};
|
||
|
|
||
|
_this.onKeyUp = function (_ref3) {
|
||
|
var keyCode = _ref3.keyCode,
|
||
|
ctrlKey = _ref3.ctrlKey,
|
||
|
altKey = _ref3.altKey,
|
||
|
metaKey = _ref3.metaKey,
|
||
|
shiftKey = _ref3.shiftKey;
|
||
|
var onCancel = _this.props.onCancel; // Check if it's a real key
|
||
|
|
||
|
if (_this.lastKeyCode === keyCode && !_this.inComposition && !ctrlKey && !altKey && !metaKey && !shiftKey) {
|
||
|
if (keyCode === _KeyCode["default"].ENTER) {
|
||
|
_this.confirmChange();
|
||
|
} else if (keyCode === _KeyCode["default"].ESC) {
|
||
|
onCancel();
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.onBlur = function () {
|
||
|
_this.confirmChange();
|
||
|
};
|
||
|
|
||
|
_this.confirmChange = function () {
|
||
|
var current = _this.state.current;
|
||
|
var onSave = _this.props.onSave;
|
||
|
onSave(current.trim());
|
||
|
};
|
||
|
|
||
|
_this.setTextarea = function (textarea) {
|
||
|
_this.textarea = textarea;
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(Editable, [{
|
||
|
key: "componentDidMount",
|
||
|
value: function componentDidMount() {
|
||
|
if (this.textarea && this.textarea.resizableTextArea) {
|
||
|
var textArea = this.textarea.resizableTextArea.textArea;
|
||
|
textArea.focus();
|
||
|
var length = textArea.value.length;
|
||
|
textArea.setSelectionRange(length, length);
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var current = this.state.current;
|
||
|
var _this$props = this.props,
|
||
|
prefixCls = _this$props.prefixCls,
|
||
|
ariaLabel = _this$props['aria-label'],
|
||
|
className = _this$props.className,
|
||
|
style = _this$props.style;
|
||
|
return React.createElement("div", {
|
||
|
className: (0, _classnames["default"])(prefixCls, "".concat(prefixCls, "-edit-content"), className),
|
||
|
style: style
|
||
|
}, React.createElement(_TextArea["default"], {
|
||
|
ref: this.setTextarea,
|
||
|
value: current,
|
||
|
onChange: this.onChange,
|
||
|
onKeyDown: this.onKeyDown,
|
||
|
onKeyUp: this.onKeyUp,
|
||
|
onCompositionStart: this.onCompositionStart,
|
||
|
onCompositionEnd: this.onCompositionEnd,
|
||
|
onBlur: this.onBlur,
|
||
|
"aria-label": ariaLabel,
|
||
|
autoSize: true
|
||
|
}), React.createElement(_icon["default"], {
|
||
|
type: "enter",
|
||
|
className: "".concat(prefixCls, "-edit-content-confirm")
|
||
|
}));
|
||
|
}
|
||
|
}], [{
|
||
|
key: "getDerivedStateFromProps",
|
||
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
||
|
var prevValue = prevState.prevValue;
|
||
|
var value = nextProps.value;
|
||
|
var newState = {
|
||
|
prevValue: value
|
||
|
};
|
||
|
|
||
|
if (prevValue !== value) {
|
||
|
newState.current = value;
|
||
|
}
|
||
|
|
||
|
return newState;
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Editable;
|
||
|
}(React.Component);
|
||
|
|
||
|
(0, _reactLifecyclesCompat.polyfill)(Editable);
|
||
|
var _default = Editable;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=Editable.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4766:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var _reactDom = __webpack_require__(4);
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _toArray = _interopRequireDefault(__webpack_require__(1343));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
// We only handle element & text node.
|
||
|
var ELEMENT_NODE = 1;
|
||
|
var TEXT_NODE = 3;
|
||
|
var COMMENT_NODE = 8;
|
||
|
var ellipsisContainer;
|
||
|
var wrapperStyle = {
|
||
|
padding: 0,
|
||
|
margin: 0,
|
||
|
display: 'inline',
|
||
|
lineHeight: 'inherit'
|
||
|
};
|
||
|
|
||
|
function pxToNumber(value) {
|
||
|
if (!value) return 0;
|
||
|
var match = value.match(/^\d*(\.\d*)?/);
|
||
|
return match ? Number(match[0]) : 0;
|
||
|
}
|
||
|
|
||
|
function styleToString(style) {
|
||
|
// There are some different behavior between Firefox & Chrome.
|
||
|
// We have to handle this ourself.
|
||
|
var styleNames = Array.prototype.slice.apply(style);
|
||
|
return styleNames.map(function (name) {
|
||
|
return "".concat(name, ": ").concat(style.getPropertyValue(name), ";");
|
||
|
}).join('');
|
||
|
}
|
||
|
|
||
|
function mergeChildren(children) {
|
||
|
var childList = [];
|
||
|
children.forEach(function (child) {
|
||
|
var prevChild = childList[childList.length - 1];
|
||
|
|
||
|
if (typeof child === 'string' && typeof prevChild === 'string') {
|
||
|
childList[childList.length - 1] += child;
|
||
|
} else {
|
||
|
childList.push(child);
|
||
|
}
|
||
|
});
|
||
|
return childList;
|
||
|
}
|
||
|
|
||
|
var _default = function _default(originEle, rows, content, fixedContent, ellipsisStr) {
|
||
|
if (!ellipsisContainer) {
|
||
|
ellipsisContainer = document.createElement('div');
|
||
|
ellipsisContainer.setAttribute('aria-hidden', 'true');
|
||
|
document.body.appendChild(ellipsisContainer);
|
||
|
} // Get origin style
|
||
|
|
||
|
|
||
|
var originStyle = window.getComputedStyle(originEle);
|
||
|
var originCSS = styleToString(originStyle);
|
||
|
var lineHeight = pxToNumber(originStyle.lineHeight);
|
||
|
var maxHeight = lineHeight * (rows + 1) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom); // Set shadow
|
||
|
|
||
|
ellipsisContainer.setAttribute('style', originCSS);
|
||
|
ellipsisContainer.style.position = 'fixed';
|
||
|
ellipsisContainer.style.left = '0';
|
||
|
ellipsisContainer.style.height = 'auto';
|
||
|
ellipsisContainer.style.minHeight = 'auto';
|
||
|
ellipsisContainer.style.maxHeight = 'auto';
|
||
|
ellipsisContainer.style.top = '-999999px';
|
||
|
ellipsisContainer.style.zIndex = '-1000'; // clean up css overflow
|
||
|
|
||
|
ellipsisContainer.style.textOverflow = 'clip';
|
||
|
ellipsisContainer.style.whiteSpace = 'normal';
|
||
|
ellipsisContainer.style.webkitLineClamp = 'none'; // Render in the fake container
|
||
|
|
||
|
var contentList = mergeChildren((0, _toArray["default"])(content));
|
||
|
(0, _reactDom.render)(React.createElement("div", {
|
||
|
style: wrapperStyle
|
||
|
}, React.createElement("span", {
|
||
|
style: wrapperStyle
|
||
|
}, contentList), React.createElement("span", {
|
||
|
style: wrapperStyle
|
||
|
}, fixedContent)), ellipsisContainer); // wrap in an div for old version react
|
||
|
// Check if ellipsis in measure div is height enough for content
|
||
|
|
||
|
function inRange() {
|
||
|
return ellipsisContainer.offsetHeight < maxHeight;
|
||
|
} // Skip ellipsis if already match
|
||
|
|
||
|
|
||
|
if (inRange()) {
|
||
|
(0, _reactDom.unmountComponentAtNode)(ellipsisContainer);
|
||
|
return {
|
||
|
content: content,
|
||
|
text: ellipsisContainer.innerHTML,
|
||
|
ellipsis: false
|
||
|
};
|
||
|
} // We should clone the childNode since they're controlled by React and we can't reuse it without warning
|
||
|
|
||
|
|
||
|
var childNodes = Array.prototype.slice.apply(ellipsisContainer.childNodes[0].childNodes[0].cloneNode(true).childNodes).filter(function (_ref) {
|
||
|
var nodeType = _ref.nodeType;
|
||
|
return nodeType !== COMMENT_NODE;
|
||
|
});
|
||
|
var fixedNodes = Array.prototype.slice.apply(ellipsisContainer.childNodes[0].childNodes[1].cloneNode(true).childNodes);
|
||
|
(0, _reactDom.unmountComponentAtNode)(ellipsisContainer); // ========================= Find match ellipsis content =========================
|
||
|
|
||
|
var ellipsisChildren = [];
|
||
|
ellipsisContainer.innerHTML = ''; // Create origin content holder
|
||
|
|
||
|
var ellipsisContentHolder = document.createElement('span');
|
||
|
ellipsisContainer.appendChild(ellipsisContentHolder);
|
||
|
var ellipsisTextNode = document.createTextNode(ellipsisStr);
|
||
|
ellipsisContentHolder.appendChild(ellipsisTextNode);
|
||
|
fixedNodes.forEach(function (childNode) {
|
||
|
ellipsisContainer.appendChild(childNode);
|
||
|
}); // Append before fixed nodes
|
||
|
|
||
|
function appendChildNode(node) {
|
||
|
ellipsisContentHolder.insertBefore(node, ellipsisTextNode);
|
||
|
} // Get maximum text
|
||
|
|
||
|
|
||
|
function measureText(textNode, fullText) {
|
||
|
var startLoc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
||
|
var endLoc = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : fullText.length;
|
||
|
var lastSuccessLoc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
||
|
var midLoc = Math.floor((startLoc + endLoc) / 2);
|
||
|
var currentText = fullText.slice(0, midLoc);
|
||
|
textNode.textContent = currentText;
|
||
|
|
||
|
if (startLoc >= endLoc - 1) {
|
||
|
// Loop when step is small
|
||
|
for (var step = endLoc; step >= startLoc; step -= 1) {
|
||
|
var currentStepText = fullText.slice(0, step);
|
||
|
textNode.textContent = currentStepText;
|
||
|
|
||
|
if (inRange()) {
|
||
|
return step === fullText.length ? {
|
||
|
finished: false,
|
||
|
reactNode: fullText
|
||
|
} : {
|
||
|
finished: true,
|
||
|
reactNode: currentStepText
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (inRange()) {
|
||
|
return measureText(textNode, fullText, midLoc, endLoc, midLoc);
|
||
|
}
|
||
|
|
||
|
return measureText(textNode, fullText, startLoc, midLoc, lastSuccessLoc);
|
||
|
}
|
||
|
|
||
|
function measureNode(childNode, index) {
|
||
|
var type = childNode.nodeType;
|
||
|
|
||
|
if (type === ELEMENT_NODE) {
|
||
|
// We don't split element, it will keep if whole element can be displayed.
|
||
|
appendChildNode(childNode);
|
||
|
|
||
|
if (inRange()) {
|
||
|
return {
|
||
|
finished: false,
|
||
|
reactNode: contentList[index]
|
||
|
};
|
||
|
} // Clean up if can not pull in
|
||
|
|
||
|
|
||
|
ellipsisContentHolder.removeChild(childNode);
|
||
|
return {
|
||
|
finished: true,
|
||
|
reactNode: null
|
||
|
};
|
||
|
}
|
||
|
|
||
|
if (type === TEXT_NODE) {
|
||
|
var fullText = childNode.textContent || '';
|
||
|
var textNode = document.createTextNode(fullText);
|
||
|
appendChildNode(textNode);
|
||
|
return measureText(textNode, fullText);
|
||
|
} // Not handle other type of content
|
||
|
// PS: This code should not be attached after react 16
|
||
|
|
||
|
|
||
|
return {
|
||
|
finished: false,
|
||
|
reactNode: null
|
||
|
};
|
||
|
}
|
||
|
|
||
|
childNodes.some(function (childNode, index) {
|
||
|
var _measureNode = measureNode(childNode, index),
|
||
|
finished = _measureNode.finished,
|
||
|
reactNode = _measureNode.reactNode;
|
||
|
|
||
|
if (reactNode) {
|
||
|
ellipsisChildren.push(reactNode);
|
||
|
}
|
||
|
|
||
|
return finished;
|
||
|
});
|
||
|
return {
|
||
|
content: ellipsisChildren,
|
||
|
text: ellipsisContainer.innerHTML,
|
||
|
ellipsis: true
|
||
|
};
|
||
|
};
|
||
|
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=util.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4767:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _warning = _interopRequireDefault(__webpack_require__(324));
|
||
|
|
||
|
var _Base = _interopRequireDefault(__webpack_require__(3302));
|
||
|
|
||
|
var _type = __webpack_require__(70);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
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); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var TITLE_ELE_LIST = (0, _type.tupleNum)(1, 2, 3, 4);
|
||
|
|
||
|
var Title = function Title(props) {
|
||
|
var _props$level = props.level,
|
||
|
level = _props$level === void 0 ? 1 : _props$level,
|
||
|
restProps = __rest(props, ["level"]);
|
||
|
|
||
|
var component;
|
||
|
|
||
|
if (TITLE_ELE_LIST.indexOf(level) !== -1) {
|
||
|
component = "h".concat(level);
|
||
|
} else {
|
||
|
(0, _warning["default"])(false, 'Title only accept `1 | 2 | 3 | 4` as `level` value.');
|
||
|
component = 'h1';
|
||
|
}
|
||
|
|
||
|
return React.createElement(_Base["default"], _extends({}, restProps, {
|
||
|
component: component
|
||
|
}));
|
||
|
};
|
||
|
|
||
|
var _default = Title;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=Title.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4768:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _Base = _interopRequireDefault(__webpack_require__(3302));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
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); }
|
||
|
|
||
|
var Paragraph = function Paragraph(props) {
|
||
|
return React.createElement(_Base["default"], _extends({}, props, {
|
||
|
component: "div"
|
||
|
}));
|
||
|
};
|
||
|
|
||
|
var _default = Paragraph;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=Paragraph.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 890:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
||
|
ZERO: 48,
|
||
|
NINE: 57,
|
||
|
|
||
|
NUMPAD_ZERO: 96,
|
||
|
NUMPAD_NINE: 105,
|
||
|
|
||
|
BACKSPACE: 8,
|
||
|
DELETE: 46,
|
||
|
ENTER: 13,
|
||
|
|
||
|
ARROW_UP: 38,
|
||
|
ARROW_DOWN: 40
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 893:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var _createReactContext = _interopRequireDefault(__webpack_require__(316));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
var MenuContext = (0, _createReactContext["default"])({
|
||
|
inlineCollapsed: false
|
||
|
});
|
||
|
var _default = MenuContext;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=MenuContext.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 895:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as an `Array` object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isArray([1, 2, 3]);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArray(document.body.children);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isArray('abc');
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isArray(_.noop);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isArray = Array.isArray;
|
||
|
|
||
|
module.exports = isArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 905:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
__webpack_require__(28);
|
||
|
|
||
|
__webpack_require__(933);
|
||
|
|
||
|
__webpack_require__(318);
|
||
|
//# sourceMappingURL=css.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 906:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var _Pagination = _interopRequireDefault(__webpack_require__(938));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
var _default = _Pagination["default"];
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=index.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 908:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = exports.SiderContext = void 0;
|
||
|
|
||
|
var _createReactContext = _interopRequireDefault(__webpack_require__(316));
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _reactLifecyclesCompat = __webpack_require__(7);
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _omit = _interopRequireDefault(__webpack_require__(43));
|
||
|
|
||
|
var _layout = __webpack_require__(997);
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
||
|
|
||
|
var _isNumeric = _interopRequireDefault(__webpack_require__(998));
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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; }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
// matchMedia polyfill for
|
||
|
// https://github.com/WickyNilliams/enquire.js/issues/82
|
||
|
// TODO: Will be removed in antd 4.0 because we will no longer support ie9
|
||
|
if (typeof window !== 'undefined') {
|
||
|
var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
|
||
|
return {
|
||
|
media: mediaQuery,
|
||
|
matches: false,
|
||
|
addListener: function addListener() {},
|
||
|
removeListener: function removeListener() {}
|
||
|
};
|
||
|
}; // ref: https://github.com/ant-design/ant-design/issues/18774
|
||
|
|
||
|
|
||
|
if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
|
||
|
}
|
||
|
|
||
|
var dimensionMaxMap = {
|
||
|
xs: '479.98px',
|
||
|
sm: '575.98px',
|
||
|
md: '767.98px',
|
||
|
lg: '991.98px',
|
||
|
xl: '1199.98px',
|
||
|
xxl: '1599.98px'
|
||
|
};
|
||
|
var SiderContext = (0, _createReactContext["default"])({});
|
||
|
exports.SiderContext = SiderContext;
|
||
|
|
||
|
var generateId = function () {
|
||
|
var i = 0;
|
||
|
return function () {
|
||
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
||
|
i += 1;
|
||
|
return "".concat(prefix).concat(i);
|
||
|
};
|
||
|
}();
|
||
|
|
||
|
var InternalSider =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(InternalSider, _React$Component);
|
||
|
|
||
|
function InternalSider(props) {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, InternalSider);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(InternalSider).call(this, props));
|
||
|
|
||
|
_this.responsiveHandler = function (mql) {
|
||
|
_this.setState({
|
||
|
below: mql.matches
|
||
|
});
|
||
|
|
||
|
var onBreakpoint = _this.props.onBreakpoint;
|
||
|
|
||
|
if (onBreakpoint) {
|
||
|
onBreakpoint(mql.matches);
|
||
|
}
|
||
|
|
||
|
if (_this.state.collapsed !== mql.matches) {
|
||
|
_this.setCollapsed(mql.matches, 'responsive');
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.setCollapsed = function (collapsed, type) {
|
||
|
if (!('collapsed' in _this.props)) {
|
||
|
_this.setState({
|
||
|
collapsed: collapsed
|
||
|
});
|
||
|
}
|
||
|
|
||
|
var onCollapse = _this.props.onCollapse;
|
||
|
|
||
|
if (onCollapse) {
|
||
|
onCollapse(collapsed, type);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.toggle = function () {
|
||
|
var collapsed = !_this.state.collapsed;
|
||
|
|
||
|
_this.setCollapsed(collapsed, 'clickTrigger');
|
||
|
};
|
||
|
|
||
|
_this.belowShowChange = function () {
|
||
|
_this.setState(function (_ref) {
|
||
|
var belowShow = _ref.belowShow;
|
||
|
return {
|
||
|
belowShow: !belowShow
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
|
||
|
_this.renderSider = function (_ref2) {
|
||
|
var _classNames;
|
||
|
|
||
|
var getPrefixCls = _ref2.getPrefixCls;
|
||
|
|
||
|
var _a = _this.props,
|
||
|
customizePrefixCls = _a.prefixCls,
|
||
|
className = _a.className,
|
||
|
theme = _a.theme,
|
||
|
collapsible = _a.collapsible,
|
||
|
reverseArrow = _a.reverseArrow,
|
||
|
trigger = _a.trigger,
|
||
|
style = _a.style,
|
||
|
width = _a.width,
|
||
|
collapsedWidth = _a.collapsedWidth,
|
||
|
zeroWidthTriggerStyle = _a.zeroWidthTriggerStyle,
|
||
|
others = __rest(_a, ["prefixCls", "className", "theme", "collapsible", "reverseArrow", "trigger", "style", "width", "collapsedWidth", "zeroWidthTriggerStyle"]);
|
||
|
|
||
|
var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
|
||
|
var divProps = (0, _omit["default"])(others, ['collapsed', 'defaultCollapsed', 'onCollapse', 'breakpoint', 'onBreakpoint', 'siderHook', 'zeroWidthTriggerStyle']);
|
||
|
var rawWidth = _this.state.collapsed ? collapsedWidth : width; // use "px" as fallback unit for width
|
||
|
|
||
|
var siderWidth = (0, _isNumeric["default"])(rawWidth) ? "".concat(rawWidth, "px") : String(rawWidth); // special trigger when collapsedWidth == 0
|
||
|
|
||
|
var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? React.createElement("span", {
|
||
|
onClick: _this.toggle,
|
||
|
className: "".concat(prefixCls, "-zero-width-trigger ").concat(prefixCls, "-zero-width-trigger-").concat(reverseArrow ? 'right' : 'left'),
|
||
|
style: zeroWidthTriggerStyle
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
type: "bars"
|
||
|
})) : null;
|
||
|
var iconObj = {
|
||
|
expanded: reverseArrow ? React.createElement(_icon["default"], {
|
||
|
type: "right"
|
||
|
}) : React.createElement(_icon["default"], {
|
||
|
type: "left"
|
||
|
}),
|
||
|
collapsed: reverseArrow ? React.createElement(_icon["default"], {
|
||
|
type: "left"
|
||
|
}) : React.createElement(_icon["default"], {
|
||
|
type: "right"
|
||
|
})
|
||
|
};
|
||
|
var status = _this.state.collapsed ? 'collapsed' : 'expanded';
|
||
|
var defaultTrigger = iconObj[status];
|
||
|
var triggerDom = trigger !== null ? zeroWidthTrigger || React.createElement("div", {
|
||
|
className: "".concat(prefixCls, "-trigger"),
|
||
|
onClick: _this.toggle,
|
||
|
style: {
|
||
|
width: siderWidth
|
||
|
}
|
||
|
}, trigger || defaultTrigger) : null;
|
||
|
|
||
|
var divStyle = _extends(_extends({}, style), {
|
||
|
flex: "0 0 ".concat(siderWidth),
|
||
|
maxWidth: siderWidth,
|
||
|
minWidth: siderWidth,
|
||
|
width: siderWidth
|
||
|
});
|
||
|
|
||
|
var siderCls = (0, _classnames["default"])(className, prefixCls, "".concat(prefixCls, "-").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-collapsed"), !!_this.state.collapsed), _defineProperty(_classNames, "".concat(prefixCls, "-has-trigger"), collapsible && trigger !== null && !zeroWidthTrigger), _defineProperty(_classNames, "".concat(prefixCls, "-below"), !!_this.state.below), _defineProperty(_classNames, "".concat(prefixCls, "-zero-width"), parseFloat(siderWidth) === 0), _classNames));
|
||
|
return React.createElement("aside", _extends({
|
||
|
className: siderCls
|
||
|
}, divProps, {
|
||
|
style: divStyle
|
||
|
}), React.createElement("div", {
|
||
|
className: "".concat(prefixCls, "-children")
|
||
|
}, _this.props.children), collapsible || _this.state.below && zeroWidthTrigger ? triggerDom : null);
|
||
|
};
|
||
|
|
||
|
_this.uniqueId = generateId('ant-sider-');
|
||
|
var matchMedia;
|
||
|
|
||
|
if (typeof window !== 'undefined') {
|
||
|
matchMedia = window.matchMedia;
|
||
|
}
|
||
|
|
||
|
if (matchMedia && props.breakpoint && props.breakpoint in dimensionMaxMap) {
|
||
|
_this.mql = matchMedia("(max-width: ".concat(dimensionMaxMap[props.breakpoint], ")"));
|
||
|
}
|
||
|
|
||
|
var collapsed;
|
||
|
|
||
|
if ('collapsed' in props) {
|
||
|
collapsed = props.collapsed;
|
||
|
} else {
|
||
|
collapsed = props.defaultCollapsed;
|
||
|
}
|
||
|
|
||
|
_this.state = {
|
||
|
collapsed: collapsed,
|
||
|
below: false
|
||
|
};
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(InternalSider, [{
|
||
|
key: "componentDidMount",
|
||
|
value: function componentDidMount() {
|
||
|
if (this.mql) {
|
||
|
this.mql.addListener(this.responsiveHandler);
|
||
|
this.responsiveHandler(this.mql);
|
||
|
}
|
||
|
|
||
|
if (this.props.siderHook) {
|
||
|
this.props.siderHook.addSider(this.uniqueId);
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "componentWillUnmount",
|
||
|
value: function componentWillUnmount() {
|
||
|
if (this.mql) {
|
||
|
this.mql.removeListener(this.responsiveHandler);
|
||
|
}
|
||
|
|
||
|
if (this.props.siderHook) {
|
||
|
this.props.siderHook.removeSider(this.uniqueId);
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var collapsed = this.state.collapsed;
|
||
|
var collapsedWidth = this.props.collapsedWidth;
|
||
|
return React.createElement(SiderContext.Provider, {
|
||
|
value: {
|
||
|
siderCollapsed: collapsed,
|
||
|
collapsedWidth: collapsedWidth
|
||
|
}
|
||
|
}, React.createElement(_configProvider.ConfigConsumer, null, this.renderSider));
|
||
|
}
|
||
|
}], [{
|
||
|
key: "getDerivedStateFromProps",
|
||
|
value: function getDerivedStateFromProps(nextProps) {
|
||
|
if ('collapsed' in nextProps) {
|
||
|
return {
|
||
|
collapsed: nextProps.collapsed
|
||
|
};
|
||
|
}
|
||
|
|
||
|
return null;
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return InternalSider;
|
||
|
}(React.Component);
|
||
|
|
||
|
InternalSider.defaultProps = {
|
||
|
collapsible: false,
|
||
|
defaultCollapsed: false,
|
||
|
reverseArrow: false,
|
||
|
width: 200,
|
||
|
collapsedWidth: 80,
|
||
|
style: {},
|
||
|
theme: 'dark'
|
||
|
};
|
||
|
(0, _reactLifecyclesCompat.polyfill)(InternalSider); // eslint-disable-next-line react/prefer-stateless-function
|
||
|
|
||
|
var Sider =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component2) {
|
||
|
_inherits(Sider, _React$Component2);
|
||
|
|
||
|
function Sider() {
|
||
|
_classCallCheck(this, Sider);
|
||
|
|
||
|
return _possibleConstructorReturn(this, _getPrototypeOf(Sider).apply(this, arguments));
|
||
|
}
|
||
|
|
||
|
_createClass(Sider, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
return React.createElement(_layout.LayoutContext.Consumer, null, function (context) {
|
||
|
return React.createElement(InternalSider, _extends({}, context, _this2.props));
|
||
|
});
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Sider;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = Sider;
|
||
|
//# sourceMappingURL=Sider.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 918:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var listCacheClear = __webpack_require__(1254),
|
||
|
listCacheDelete = __webpack_require__(1255),
|
||
|
listCacheGet = __webpack_require__(1256),
|
||
|
listCacheHas = __webpack_require__(1257),
|
||
|
listCacheSet = __webpack_require__(1258);
|
||
|
|
||
|
/**
|
||
|
* Creates an list cache object.
|
||
|
*
|
||
|
* @private
|
||
|
* @constructor
|
||
|
* @param {Array} [entries] The key-value pairs to cache.
|
||
|
*/
|
||
|
function ListCache(entries) {
|
||
|
var index = -1,
|
||
|
length = entries == null ? 0 : entries.length;
|
||
|
|
||
|
this.clear();
|
||
|
while (++index < length) {
|
||
|
var entry = entries[index];
|
||
|
this.set(entry[0], entry[1]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Add methods to `ListCache`.
|
||
|
ListCache.prototype.clear = listCacheClear;
|
||
|
ListCache.prototype['delete'] = listCacheDelete;
|
||
|
ListCache.prototype.get = listCacheGet;
|
||
|
ListCache.prototype.has = listCacheHas;
|
||
|
ListCache.prototype.set = listCacheSet;
|
||
|
|
||
|
module.exports = ListCache;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 919:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var eq = __webpack_require__(925);
|
||
|
|
||
|
/**
|
||
|
* 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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 920:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(945);
|
||
|
|
||
|
/* Built-in method references that are verified to be native. */
|
||
|
var nativeCreate = getNative(Object, 'create');
|
||
|
|
||
|
module.exports = nativeCreate;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 921:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isKeyable = __webpack_require__(1276);
|
||
|
|
||
|
/**
|
||
|
* 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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 922:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _rcDropdown = _interopRequireDefault(__webpack_require__(1089));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
var _warning = _interopRequireDefault(__webpack_require__(40));
|
||
|
|
||
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
||
|
|
||
|
var _type = __webpack_require__(70);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var Placements = (0, _type.tuple)('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight');
|
||
|
|
||
|
var Dropdown =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(Dropdown, _React$Component);
|
||
|
|
||
|
function Dropdown() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, Dropdown);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Dropdown).apply(this, arguments));
|
||
|
|
||
|
_this.renderOverlay = function (prefixCls) {
|
||
|
// rc-dropdown already can process the function of overlay, but we have check logic here.
|
||
|
// So we need render the element to check and pass back to rc-dropdown.
|
||
|
var overlay = _this.props.overlay;
|
||
|
var overlayNode;
|
||
|
|
||
|
if (typeof overlay === 'function') {
|
||
|
overlayNode = overlay();
|
||
|
} else {
|
||
|
overlayNode = overlay;
|
||
|
}
|
||
|
|
||
|
overlayNode = React.Children.only(overlayNode);
|
||
|
var overlayProps = overlayNode.props; // Warning if use other mode
|
||
|
|
||
|
(0, _warning["default"])(!overlayProps.mode || overlayProps.mode === 'vertical', 'Dropdown', "mode=\"".concat(overlayProps.mode, "\" is not supported for Dropdown's Menu.")); // menu cannot be selectable in dropdown defaultly
|
||
|
// menu should be focusable in dropdown defaultly
|
||
|
|
||
|
var _overlayProps$selecta = overlayProps.selectable,
|
||
|
selectable = _overlayProps$selecta === void 0 ? false : _overlayProps$selecta,
|
||
|
_overlayProps$focusab = overlayProps.focusable,
|
||
|
focusable = _overlayProps$focusab === void 0 ? true : _overlayProps$focusab;
|
||
|
var expandIcon = React.createElement("span", {
|
||
|
className: "".concat(prefixCls, "-menu-submenu-arrow")
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
type: "right",
|
||
|
className: "".concat(prefixCls, "-menu-submenu-arrow-icon")
|
||
|
}));
|
||
|
var fixedModeOverlay = typeof overlayNode.type === 'string' ? overlay : React.cloneElement(overlayNode, {
|
||
|
mode: 'vertical',
|
||
|
selectable: selectable,
|
||
|
focusable: focusable,
|
||
|
expandIcon: expandIcon
|
||
|
});
|
||
|
return fixedModeOverlay;
|
||
|
};
|
||
|
|
||
|
_this.renderDropDown = function (_ref) {
|
||
|
var getContextPopupContainer = _ref.getPopupContainer,
|
||
|
getPrefixCls = _ref.getPrefixCls;
|
||
|
var _this$props = _this.props,
|
||
|
customizePrefixCls = _this$props.prefixCls,
|
||
|
children = _this$props.children,
|
||
|
trigger = _this$props.trigger,
|
||
|
disabled = _this$props.disabled,
|
||
|
getPopupContainer = _this$props.getPopupContainer;
|
||
|
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||
|
var child = React.Children.only(children);
|
||
|
var dropdownTrigger = React.cloneElement(child, {
|
||
|
className: (0, _classnames["default"])(child.props.className, "".concat(prefixCls, "-trigger")),
|
||
|
disabled: disabled
|
||
|
});
|
||
|
var triggerActions = disabled ? [] : trigger;
|
||
|
var alignPoint;
|
||
|
|
||
|
if (triggerActions && triggerActions.indexOf('contextMenu') !== -1) {
|
||
|
alignPoint = true;
|
||
|
}
|
||
|
|
||
|
return React.createElement(_rcDropdown["default"], _extends({
|
||
|
alignPoint: alignPoint
|
||
|
}, _this.props, {
|
||
|
prefixCls: prefixCls,
|
||
|
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||
|
transitionName: _this.getTransitionName(),
|
||
|
trigger: triggerActions,
|
||
|
overlay: function overlay() {
|
||
|
return _this.renderOverlay(prefixCls);
|
||
|
}
|
||
|
}), dropdownTrigger);
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(Dropdown, [{
|
||
|
key: "getTransitionName",
|
||
|
value: function getTransitionName() {
|
||
|
var _this$props2 = this.props,
|
||
|
_this$props2$placemen = _this$props2.placement,
|
||
|
placement = _this$props2$placemen === void 0 ? '' : _this$props2$placemen,
|
||
|
transitionName = _this$props2.transitionName;
|
||
|
|
||
|
if (transitionName !== undefined) {
|
||
|
return transitionName;
|
||
|
}
|
||
|
|
||
|
if (placement.indexOf('top') >= 0) {
|
||
|
return 'slide-down';
|
||
|
}
|
||
|
|
||
|
return 'slide-up';
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_configProvider.ConfigConsumer, null, this.renderDropDown);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Dropdown;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = Dropdown;
|
||
|
Dropdown.defaultProps = {
|
||
|
mouseEnterDelay: 0.15,
|
||
|
mouseLeaveDelay: 0.1,
|
||
|
placement: 'bottomLeft'
|
||
|
};
|
||
|
//# sourceMappingURL=dropdown.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 924:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _rcMenu = _interopRequireWildcard(__webpack_require__(172));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _omit = _interopRequireDefault(__webpack_require__(43));
|
||
|
|
||
|
var _reactLifecyclesCompat = __webpack_require__(7);
|
||
|
|
||
|
var _SubMenu = _interopRequireDefault(__webpack_require__(1002));
|
||
|
|
||
|
var _MenuItem = _interopRequireDefault(__webpack_require__(1003));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
var _warning = _interopRequireDefault(__webpack_require__(40));
|
||
|
|
||
|
var _Sider = __webpack_require__(908);
|
||
|
|
||
|
var _raf = _interopRequireDefault(__webpack_require__(182));
|
||
|
|
||
|
var _motion = _interopRequireDefault(__webpack_require__(988));
|
||
|
|
||
|
var _MenuContext = _interopRequireDefault(__webpack_require__(893));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _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; }
|
||
|
|
||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var InternalMenu =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(InternalMenu, _React$Component);
|
||
|
|
||
|
function InternalMenu(props) {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, InternalMenu);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(InternalMenu).call(this, props)); // Restore vertical mode when menu is collapsed responsively when mounted
|
||
|
// https://github.com/ant-design/ant-design/issues/13104
|
||
|
// TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
|
||
|
|
||
|
_this.handleMouseEnter = function (e) {
|
||
|
_this.restoreModeVerticalFromInline();
|
||
|
|
||
|
var onMouseEnter = _this.props.onMouseEnter;
|
||
|
|
||
|
if (onMouseEnter) {
|
||
|
onMouseEnter(e);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.handleTransitionEnd = function (e) {
|
||
|
// when inlineCollapsed menu width animation finished
|
||
|
// https://github.com/ant-design/ant-design/issues/12864
|
||
|
var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget; // Fix SVGElement e.target.className.indexOf is not a function
|
||
|
// https://github.com/ant-design/ant-design/issues/15699
|
||
|
|
||
|
var className = e.target.className; // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation.
|
||
|
|
||
|
var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className; // Fix for <Menu style={{ width: '100%' }} />, the width transition won't trigger when menu is collapsed
|
||
|
// https://github.com/ant-design/ant-design-pro/issues/2783
|
||
|
|
||
|
var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
|
||
|
|
||
|
if (widthCollapsed || iconScaled) {
|
||
|
_this.restoreModeVerticalFromInline();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.handleClick = function (e) {
|
||
|
_this.handleOpenChange([]);
|
||
|
|
||
|
var onClick = _this.props.onClick;
|
||
|
|
||
|
if (onClick) {
|
||
|
onClick(e);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.handleOpenChange = function (openKeys) {
|
||
|
_this.setOpenKeys(openKeys);
|
||
|
|
||
|
var onOpenChange = _this.props.onOpenChange;
|
||
|
|
||
|
if (onOpenChange) {
|
||
|
onOpenChange(openKeys);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
_this.renderMenu = function (_ref) {
|
||
|
var getPopupContainer = _ref.getPopupContainer,
|
||
|
getPrefixCls = _ref.getPrefixCls;
|
||
|
var _this$props = _this.props,
|
||
|
customizePrefixCls = _this$props.prefixCls,
|
||
|
className = _this$props.className,
|
||
|
theme = _this$props.theme,
|
||
|
collapsedWidth = _this$props.collapsedWidth;
|
||
|
var passProps = (0, _omit["default"])(_this.props, ['collapsedWidth', 'siderCollapsed']);
|
||
|
|
||
|
var menuMode = _this.getRealMenuMode();
|
||
|
|
||
|
var menuOpenMotion = _this.getOpenMotionProps(menuMode);
|
||
|
|
||
|
var prefixCls = getPrefixCls('menu', customizePrefixCls);
|
||
|
var menuClassName = (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme), _defineProperty({}, "".concat(prefixCls, "-inline-collapsed"), _this.getInlineCollapsed()));
|
||
|
|
||
|
var menuProps = _extends({
|
||
|
openKeys: _this.state.openKeys,
|
||
|
onOpenChange: _this.handleOpenChange,
|
||
|
className: menuClassName,
|
||
|
mode: menuMode
|
||
|
}, menuOpenMotion);
|
||
|
|
||
|
if (menuMode !== 'inline') {
|
||
|
// closing vertical popup submenu after click it
|
||
|
menuProps.onClick = _this.handleClick;
|
||
|
} // https://github.com/ant-design/ant-design/issues/8587
|
||
|
|
||
|
|
||
|
var hideMenu = _this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
|
||
|
|
||
|
if (hideMenu) {
|
||
|
menuProps.openKeys = [];
|
||
|
}
|
||
|
|
||
|
return React.createElement(_rcMenu["default"], _extends({
|
||
|
getPopupContainer: getPopupContainer
|
||
|
}, passProps, menuProps, {
|
||
|
prefixCls: prefixCls,
|
||
|
onTransitionEnd: _this.handleTransitionEnd,
|
||
|
onMouseEnter: _this.handleMouseEnter
|
||
|
}));
|
||
|
};
|
||
|
|
||
|
(0, _warning["default"])(!('onOpen' in props || 'onClose' in props), 'Menu', '`onOpen` and `onClose` are removed, please use `onOpenChange` instead, ' + 'see: https://u.ant.design/menu-on-open-change.');
|
||
|
(0, _warning["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', '`inlineCollapsed` should only be used when `mode` is inline.');
|
||
|
(0, _warning["default"])(!(props.siderCollapsed !== undefined && 'inlineCollapsed' in props), 'Menu', '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.');
|
||
|
var openKeys;
|
||
|
|
||
|
if ('openKeys' in props) {
|
||
|
openKeys = props.openKeys;
|
||
|
} else if ('defaultOpenKeys' in props) {
|
||
|
openKeys = props.defaultOpenKeys;
|
||
|
}
|
||
|
|
||
|
_this.state = {
|
||
|
openKeys: openKeys || [],
|
||
|
switchingModeFromInline: false,
|
||
|
inlineOpenKeys: [],
|
||
|
prevProps: props
|
||
|
};
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(InternalMenu, [{
|
||
|
key: "componentWillUnmount",
|
||
|
value: function componentWillUnmount() {
|
||
|
_raf["default"].cancel(this.mountRafId);
|
||
|
}
|
||
|
}, {
|
||
|
key: "setOpenKeys",
|
||
|
value: function setOpenKeys(openKeys) {
|
||
|
if (!('openKeys' in this.props)) {
|
||
|
this.setState({
|
||
|
openKeys: openKeys
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "getRealMenuMode",
|
||
|
value: function getRealMenuMode() {
|
||
|
var inlineCollapsed = this.getInlineCollapsed();
|
||
|
|
||
|
if (this.state.switchingModeFromInline && inlineCollapsed) {
|
||
|
return 'inline';
|
||
|
}
|
||
|
|
||
|
var mode = this.props.mode;
|
||
|
return inlineCollapsed ? 'vertical' : mode;
|
||
|
}
|
||
|
}, {
|
||
|
key: "getInlineCollapsed",
|
||
|
value: function getInlineCollapsed() {
|
||
|
var inlineCollapsed = this.props.inlineCollapsed;
|
||
|
|
||
|
if (this.props.siderCollapsed !== undefined) {
|
||
|
return this.props.siderCollapsed;
|
||
|
}
|
||
|
|
||
|
return inlineCollapsed;
|
||
|
}
|
||
|
}, {
|
||
|
key: "getOpenMotionProps",
|
||
|
value: function getOpenMotionProps(menuMode) {
|
||
|
var _this$props2 = this.props,
|
||
|
openTransitionName = _this$props2.openTransitionName,
|
||
|
openAnimation = _this$props2.openAnimation,
|
||
|
motion = _this$props2.motion; // Provides by user
|
||
|
|
||
|
if (motion) {
|
||
|
return {
|
||
|
motion: motion
|
||
|
};
|
||
|
}
|
||
|
|
||
|
if (openAnimation) {
|
||
|
(0, _warning["default"])(typeof openAnimation === 'string', 'Menu', '`openAnimation` do not support object. Please use `motion` instead.');
|
||
|
return {
|
||
|
openAnimation: openAnimation
|
||
|
};
|
||
|
}
|
||
|
|
||
|
if (openTransitionName) {
|
||
|
return {
|
||
|
openTransitionName: openTransitionName
|
||
|
};
|
||
|
} // Default logic
|
||
|
|
||
|
|
||
|
if (menuMode === 'horizontal') {
|
||
|
return {
|
||
|
motion: {
|
||
|
motionName: 'slide-up'
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
if (menuMode === 'inline') {
|
||
|
return {
|
||
|
motion: _motion["default"]
|
||
|
};
|
||
|
} // When mode switch from inline
|
||
|
// submenu should hide without animation
|
||
|
|
||
|
|
||
|
return {
|
||
|
motion: {
|
||
|
motionName: this.state.switchingModeFromInline ? '' : 'zoom-big'
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}, {
|
||
|
key: "restoreModeVerticalFromInline",
|
||
|
value: function restoreModeVerticalFromInline() {
|
||
|
var switchingModeFromInline = this.state.switchingModeFromInline;
|
||
|
|
||
|
if (switchingModeFromInline) {
|
||
|
this.setState({
|
||
|
switchingModeFromInline: false
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_MenuContext["default"].Provider, {
|
||
|
value: {
|
||
|
inlineCollapsed: this.getInlineCollapsed() || false,
|
||
|
antdMenuTheme: this.props.theme
|
||
|
}
|
||
|
}, React.createElement(_configProvider.ConfigConsumer, null, this.renderMenu));
|
||
|
}
|
||
|
}], [{
|
||
|
key: "getDerivedStateFromProps",
|
||
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
||
|
var prevProps = prevState.prevProps;
|
||
|
var newState = {
|
||
|
prevProps: nextProps
|
||
|
};
|
||
|
|
||
|
if (prevProps.mode === 'inline' && nextProps.mode !== 'inline') {
|
||
|
newState.switchingModeFromInline = true;
|
||
|
}
|
||
|
|
||
|
if ('openKeys' in nextProps) {
|
||
|
newState.openKeys = nextProps.openKeys;
|
||
|
} else {
|
||
|
// [Legacy] Old code will return after `openKeys` changed.
|
||
|
// Not sure the reason, we should keep this logic still.
|
||
|
if (nextProps.inlineCollapsed && !prevProps.inlineCollapsed || nextProps.siderCollapsed && !prevProps.siderCollapsed) {
|
||
|
newState.switchingModeFromInline = true;
|
||
|
newState.inlineOpenKeys = prevState.openKeys;
|
||
|
newState.openKeys = [];
|
||
|
}
|
||
|
|
||
|
if (!nextProps.inlineCollapsed && prevProps.inlineCollapsed || !nextProps.siderCollapsed && prevProps.siderCollapsed) {
|
||
|
newState.openKeys = prevState.inlineOpenKeys;
|
||
|
newState.inlineOpenKeys = [];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return newState;
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return InternalMenu;
|
||
|
}(React.Component);
|
||
|
|
||
|
InternalMenu.defaultProps = {
|
||
|
className: '',
|
||
|
theme: 'light',
|
||
|
focusable: false
|
||
|
};
|
||
|
(0, _reactLifecyclesCompat.polyfill)(InternalMenu); // We should keep this as ref-able
|
||
|
|
||
|
var Menu =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component2) {
|
||
|
_inherits(Menu, _React$Component2);
|
||
|
|
||
|
function Menu() {
|
||
|
_classCallCheck(this, Menu);
|
||
|
|
||
|
return _possibleConstructorReturn(this, _getPrototypeOf(Menu).apply(this, arguments));
|
||
|
}
|
||
|
|
||
|
_createClass(Menu, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
return React.createElement(_Sider.SiderContext.Consumer, null, function (context) {
|
||
|
return React.createElement(InternalMenu, _extends({}, _this2.props, context));
|
||
|
});
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Menu;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = Menu;
|
||
|
Menu.Divider = _rcMenu.Divider;
|
||
|
Menu.Item = _MenuItem["default"];
|
||
|
Menu.SubMenu = _SubMenu["default"];
|
||
|
Menu.ItemGroup = _rcMenu.ItemGroup;
|
||
|
//# sourceMappingURL=index.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 925:
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Performs a
|
||
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
||
|
* comparison between two values to determine if they are equivalent.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to compare.
|
||
|
* @param {*} other The other value to compare.
|
||
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* var object = { 'a': 1 };
|
||
|
* var other = { 'a': 1 };
|
||
|
*
|
||
|
* _.eq(object, object);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.eq(object, other);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.eq('a', 'a');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.eq('a', Object('a'));
|
||
|
* // => false
|
||
|
*
|
||
|
* _.eq(NaN, NaN);
|
||
|
* // => true
|
||
|
*/
|
||
|
function eq(value, other) {
|
||
|
return value === other || (value !== value && other !== other);
|
||
|
}
|
||
|
|
||
|
module.exports = eq;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 933:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(937);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
// Prepare cssTransformation
|
||
|
var transform;
|
||
|
|
||
|
var options = {"hmr":false}
|
||
|
options.transform = transform
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(313)(content, options);
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 937:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(312)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, ".ant-pagination{-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\"}.ant-pagination,.ant-pagination ol,.ant-pagination ul{margin:0;padding:0;list-style:none}.ant-pagination:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:\" \"}.ant-pagination-item,.ant-pagination-total-text{display:inline-block;height:32px;margin-right:8px;line-height:30px;vertical-align:middle}.ant-pagination-item{min-width:32px;font-family:Arial;text-align:center;list-style:none;background-color:#fff;border:1px solid #d9d9d9;border-radius:4px;outline:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-pagination-item a{display:block;padding:0 6px;color:rgba(0,0,0,.65);-webkit-transition:none;-o-transition:none;transition:none}.ant-pagination-item a:hover{text-decoration:none}.ant-pagination-item:focus,.ant-pagination-item:hover{border-color:#1890ff;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-pagination-item:focus a,.ant-pagination-item:hover a{color:#1890ff}.ant-pagination-item-active{font-weight:500;background:#fff;border-color:#1890ff}.ant-pagination-item-active a{color:#1890ff}.ant-pagination-item-active:focus,.ant-pagination-item-active:hover{border-color:#40a9ff}.ant-pagination-item-active:focus a,.ant-pagination-item-active:hover a{color:#40a9ff}.ant-pagination-jump-next,.ant-pagination-jump-prev{outline:0}.ant-pagination-jump-next .ant-pagination-item-container,.ant-pagination-jump-prev .ant-pagination-item-container{position:relative}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon{display:inline-block;font-size:12px;font-size:12px\\9;-webkit-transform:scale(1) rotate(0deg);-ms-transform:scale(1) rotate(0deg);transform:scale(1) rotate(0deg);color:#1890ff;letter-spacing:-1px;opacity:0;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}:root .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon,:root .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon{font-size:12px}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg{top:0;right:0;bottom:0;left:0;margin:auto}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis{position:absolute;top:0;right:0;bottom:0;left:0;display:block;margin:auto;color:rgba(0,0,0,.25);letter-spacing:2px;text-align:center;text-indent:.13em;opacity:1;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}.ant-pagination-jump-next:focus .ant-pagination-item-link-icon,.ant-pagination-jump-next:hover .ant-pagination-item-link-icon,.ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon{opacity:1}.ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis,.ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis{opacity:0}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-prev{margin-right:8px}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-next,.ant-pagination-prev{display:inline-block;min-width:32px;height:32px;color:rgba(0,0,0,.65);font-family:Arial;line-height:32px;text-align:center;vertical-align:middle;list-style:none;border-radius:4px;cursor:pointer;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-pagination-next,.ant-pagination-prev{outline:0}.ant-pagination-next a,.ant-pagination-prev a{color:rgba(0,0,0,.65);-
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 938:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _rcPagination = _interopRequireDefault(__webpack_require__(939));
|
||
|
|
||
|
var _en_US = _interopRequireDefault(__webpack_require__(332));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _MiniSelect = _interopRequireDefault(__webpack_require__(944));
|
||
|
|
||
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
||
|
|
||
|
var _select = _interopRequireDefault(__webpack_require__(315));
|
||
|
|
||
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(71));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var Pagination =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(Pagination, _React$Component);
|
||
|
|
||
|
function Pagination() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, Pagination);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));
|
||
|
|
||
|
_this.getIconsProps = function (prefixCls) {
|
||
|
var prevIcon = React.createElement("a", {
|
||
|
className: "".concat(prefixCls, "-item-link")
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
type: "left"
|
||
|
}));
|
||
|
var nextIcon = React.createElement("a", {
|
||
|
className: "".concat(prefixCls, "-item-link")
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
type: "right"
|
||
|
}));
|
||
|
var jumpPrevIcon = React.createElement("a", {
|
||
|
className: "".concat(prefixCls, "-item-link")
|
||
|
}, React.createElement("div", {
|
||
|
className: "".concat(prefixCls, "-item-container")
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
className: "".concat(prefixCls, "-item-link-icon"),
|
||
|
type: "double-left"
|
||
|
}), React.createElement("span", {
|
||
|
className: "".concat(prefixCls, "-item-ellipsis")
|
||
|
}, "\u2022\u2022\u2022")));
|
||
|
var jumpNextIcon = React.createElement("a", {
|
||
|
className: "".concat(prefixCls, "-item-link")
|
||
|
}, React.createElement("div", {
|
||
|
className: "".concat(prefixCls, "-item-container")
|
||
|
}, React.createElement(_icon["default"], {
|
||
|
className: "".concat(prefixCls, "-item-link-icon"),
|
||
|
type: "double-right"
|
||
|
}), React.createElement("span", {
|
||
|
className: "".concat(prefixCls, "-item-ellipsis")
|
||
|
}, "\u2022\u2022\u2022")));
|
||
|
return {
|
||
|
prevIcon: prevIcon,
|
||
|
nextIcon: nextIcon,
|
||
|
jumpPrevIcon: jumpPrevIcon,
|
||
|
jumpNextIcon: jumpNextIcon
|
||
|
};
|
||
|
};
|
||
|
|
||
|
_this.renderPagination = function (contextLocale) {
|
||
|
var _a = _this.props,
|
||
|
customizePrefixCls = _a.prefixCls,
|
||
|
customizeSelectPrefixCls = _a.selectPrefixCls,
|
||
|
className = _a.className,
|
||
|
size = _a.size,
|
||
|
customLocale = _a.locale,
|
||
|
restProps = __rest(_a, ["prefixCls", "selectPrefixCls", "className", "size", "locale"]);
|
||
|
|
||
|
var locale = _extends(_extends({}, contextLocale), customLocale);
|
||
|
|
||
|
var isSmall = size === 'small';
|
||
|
return React.createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
||
|
var getPrefixCls = _ref.getPrefixCls;
|
||
|
var prefixCls = getPrefixCls('pagination', customizePrefixCls);
|
||
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
||
|
return React.createElement(_rcPagination["default"], _extends({}, restProps, {
|
||
|
prefixCls: prefixCls,
|
||
|
selectPrefixCls: selectPrefixCls
|
||
|
}, _this.getIconsProps(prefixCls), {
|
||
|
className: (0, _classnames["default"])(className, {
|
||
|
mini: isSmall
|
||
|
}),
|
||
|
selectComponentClass: isSmall ? _MiniSelect["default"] : _select["default"],
|
||
|
locale: locale
|
||
|
}));
|
||
|
});
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(Pagination, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_LocaleReceiver["default"], {
|
||
|
componentName: "Pagination",
|
||
|
defaultLocale: _en_US["default"]
|
||
|
}, this.renderPagination);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Pagination;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = Pagination;
|
||
|
//# sourceMappingURL=Pagination.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 939:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__(940);
|
||
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; });
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 940:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(59);
|
||
|
/* 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__(18);
|
||
|
/* 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__(9);
|
||
|
/* 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__(31);
|
||
|
/* 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__(10);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(11);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
|
||
|
/* 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_classnames__ = __webpack_require__(3);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__);
|
||
|
/* 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__Pager__ = __webpack_require__(941);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Options__ = __webpack_require__(942);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__KeyCode__ = __webpack_require__(890);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__ = __webpack_require__(943);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_react_lifecycles_compat__ = __webpack_require__(7);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
function noop() {}
|
||
|
|
||
|
function isInteger(value) {
|
||
|
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
|
||
|
}
|
||
|
|
||
|
function defaultItemRender(page, type, element) {
|
||
|
return element;
|
||
|
}
|
||
|
|
||
|
function calculatePage(p, state, props) {
|
||
|
var pageSize = p;
|
||
|
if (typeof pageSize === 'undefined') {
|
||
|
pageSize = state.pageSize;
|
||
|
}
|
||
|
return Math.floor((props.total - 1) / pageSize) + 1;
|
||
|
}
|
||
|
|
||
|
var Pagination = function (_React$Component) {
|
||
|
__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Pagination, _React$Component);
|
||
|
|
||
|
function Pagination(props) {
|
||
|
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Pagination);
|
||
|
|
||
|
var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Pagination.__proto__ || Object.getPrototypeOf(Pagination)).call(this, props));
|
||
|
|
||
|
_initialiseProps.call(_this);
|
||
|
|
||
|
var hasOnChange = props.onChange !== noop;
|
||
|
var hasCurrent = 'current' in props;
|
||
|
if (hasCurrent && !hasOnChange) {
|
||
|
console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line
|
||
|
}
|
||
|
|
||
|
var current = props.defaultCurrent;
|
||
|
if ('current' in props) {
|
||
|
current = props.current;
|
||
|
}
|
||
|
|
||
|
var pageSize = props.defaultPageSize;
|
||
|
if ('pageSize' in props) {
|
||
|
pageSize = props.pageSize;
|
||
|
}
|
||
|
|
||
|
current = Math.min(current, calculatePage(pageSize, undefined, props));
|
||
|
|
||
|
_this.state = {
|
||
|
current: current,
|
||
|
currentInputValue: current,
|
||
|
pageSize: pageSize
|
||
|
};
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Pagination, [{
|
||
|
key: 'componentDidUpdate',
|
||
|
value: function componentDidUpdate(prevProps, prevState) {
|
||
|
// When current page change, fix focused style of prev item
|
||
|
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
|
||
|
var prefixCls = this.props.prefixCls;
|
||
|
|
||
|
if (prevState.current !== this.state.current && this.paginationNode) {
|
||
|
var lastCurrentNode = this.paginationNode.querySelector('.' + prefixCls + '-item-' + prevState.current);
|
||
|
if (lastCurrentNode && document.activeElement === lastCurrentNode) {
|
||
|
lastCurrentNode.blur();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
key: 'getValidValue',
|
||
|
value: function getValidValue(e) {
|
||
|
var inputValue = e.target.value;
|
||
|
var allPages = calculatePage(undefined, this.state, this.props);
|
||
|
var currentInputValue = this.state.currentInputValue;
|
||
|
|
||
|
var value = void 0;
|
||
|
if (inputValue === '') {
|
||
|
value = inputValue;
|
||
|
} else if (isNaN(Number(inputValue))) {
|
||
|
value = currentInputValue;
|
||
|
} else if (inputValue >= allPages) {
|
||
|
value = allPages;
|
||
|
} else {
|
||
|
value = Number(inputValue);
|
||
|
}
|
||
|
return value;
|
||
|
}
|
||
|
}, {
|
||
|
key: 'render',
|
||
|
value: function render() {
|
||
|
var _props = this.props,
|
||
|
prefixCls = _props.prefixCls,
|
||
|
className = _props.className,
|
||
|
disabled = _props.disabled;
|
||
|
|
||
|
// When hideOnSinglePage is true and there is only 1 page, hide the pager
|
||
|
|
||
|
if (this.props.hideOnSinglePage === true && this.props.total <= this.state.pageSize) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
var props = this.props;
|
||
|
var locale = props.locale;
|
||
|
|
||
|
var allPages = calculatePage(undefined, this.state, this.props);
|
||
|
var pagerList = [];
|
||
|
var jumpPrev = null;
|
||
|
var jumpNext = null;
|
||
|
var firstPager = null;
|
||
|
var lastPager = null;
|
||
|
var gotoButton = null;
|
||
|
|
||
|
var goButton = props.showQuickJumper && props.showQuickJumper.goButton;
|
||
|
var pageBufferSize = props.showLessItems ? 1 : 2;
|
||
|
var _state = this.state,
|
||
|
current = _state.current,
|
||
|
pageSize = _state.pageSize;
|
||
|
|
||
|
|
||
|
var prevPage = current - 1 > 0 ? current - 1 : 0;
|
||
|
var nextPage = current + 1 < allPages ? current + 1 : allPages;
|
||
|
|
||
|
var dataOrAriaAttributeProps = Object.keys(props).reduce(function (prev, key) {
|
||
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {
|
||
|
prev[key] = props[key];
|
||
|
}
|
||
|
return prev;
|
||
|
}, {});
|
||
|
|
||
|
if (props.simple) {
|
||
|
if (goButton) {
|
||
|
if (typeof goButton === 'boolean') {
|
||
|
gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'button',
|
||
|
{
|
||
|
type: 'button',
|
||
|
onClick: this.handleGoTO,
|
||
|
onKeyUp: this.handleGoTO
|
||
|
},
|
||
|
locale.jump_to_confirm
|
||
|
);
|
||
|
} else {
|
||
|
gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'span',
|
||
|
{
|
||
|
onClick: this.handleGoTO,
|
||
|
onKeyUp: this.handleGoTO
|
||
|
},
|
||
|
goButton
|
||
|
);
|
||
|
}
|
||
|
gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? '' + locale.jump_to + this.state.current + '/' + allPages : null,
|
||
|
className: prefixCls + '-simple-pager'
|
||
|
},
|
||
|
gotoButton
|
||
|
);
|
||
|
}
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'ul',
|
||
|
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
|
||
|
className: prefixCls + ' ' + prefixCls + '-simple ' + props.className,
|
||
|
style: props.style,
|
||
|
ref: this.savePaginationNode
|
||
|
}, dataOrAriaAttributeProps),
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? locale.prev_page : null,
|
||
|
onClick: this.prev,
|
||
|
tabIndex: this.hasPrev() ? 0 : null,
|
||
|
onKeyPress: this.runIfEnterPrev,
|
||
|
className: (this.hasPrev() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev',
|
||
|
'aria-disabled': !this.hasPrev()
|
||
|
},
|
||
|
props.itemRender(prevPage, 'prev', this.getItemIcon(props.prevIcon))
|
||
|
),
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? this.state.current + '/' + allPages : null,
|
||
|
className: prefixCls + '-simple-pager'
|
||
|
},
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('input', {
|
||
|
type: 'text',
|
||
|
value: this.state.currentInputValue,
|
||
|
onKeyDown: this.handleKeyDown,
|
||
|
onKeyUp: this.handleKeyUp,
|
||
|
onChange: this.handleKeyUp,
|
||
|
size: '3'
|
||
|
}),
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'span',
|
||
|
{ className: prefixCls + '-slash' },
|
||
|
'/'
|
||
|
),
|
||
|
allPages
|
||
|
),
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? locale.next_page : null,
|
||
|
onClick: this.next,
|
||
|
tabIndex: this.hasPrev() ? 0 : null,
|
||
|
onKeyPress: this.runIfEnterNext,
|
||
|
className: (this.hasNext() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next',
|
||
|
'aria-disabled': !this.hasNext()
|
||
|
},
|
||
|
props.itemRender(nextPage, 'next', this.getItemIcon(props.nextIcon))
|
||
|
),
|
||
|
gotoButton
|
||
|
);
|
||
|
}
|
||
|
|
||
|
if (allPages <= 5 + pageBufferSize * 2) {
|
||
|
var pagerProps = {
|
||
|
locale: locale,
|
||
|
rootPrefixCls: prefixCls,
|
||
|
onClick: this.handleChange,
|
||
|
onKeyPress: this.runIfEnter,
|
||
|
showTitle: props.showTitle,
|
||
|
itemRender: props.itemRender
|
||
|
};
|
||
|
if (!allPages) {
|
||
|
pagerList.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, pagerProps, {
|
||
|
key: 'noPager',
|
||
|
page: allPages,
|
||
|
className: prefixCls + '-disabled'
|
||
|
})));
|
||
|
}
|
||
|
for (var i = 1; i <= allPages; i++) {
|
||
|
var active = this.state.current === i;
|
||
|
pagerList.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, pagerProps, {
|
||
|
key: i,
|
||
|
page: i,
|
||
|
active: active
|
||
|
})));
|
||
|
}
|
||
|
} else {
|
||
|
var prevItemTitle = props.showLessItems ? locale.prev_3 : locale.prev_5;
|
||
|
var nextItemTitle = props.showLessItems ? locale.next_3 : locale.next_5;
|
||
|
if (props.showPrevNextJumpers) {
|
||
|
var jumpPrevClassString = prefixCls + '-jump-prev';
|
||
|
if (props.jumpPrevIcon) {
|
||
|
jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon';
|
||
|
}
|
||
|
jumpPrev = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? prevItemTitle : null,
|
||
|
key: 'prev',
|
||
|
onClick: this.jumpPrev,
|
||
|
tabIndex: '0',
|
||
|
onKeyPress: this.runIfEnterJumpPrev,
|
||
|
className: jumpPrevClassString
|
||
|
},
|
||
|
props.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(props.jumpPrevIcon))
|
||
|
);
|
||
|
var jumpNextClassString = prefixCls + '-jump-next';
|
||
|
if (props.jumpNextIcon) {
|
||
|
jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon';
|
||
|
}
|
||
|
jumpNext = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? nextItemTitle : null,
|
||
|
key: 'next',
|
||
|
tabIndex: '0',
|
||
|
onClick: this.jumpNext,
|
||
|
onKeyPress: this.runIfEnterJumpNext,
|
||
|
className: jumpNextClassString
|
||
|
},
|
||
|
props.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(props.jumpNextIcon))
|
||
|
);
|
||
|
}
|
||
|
lastPager = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], {
|
||
|
locale: props.locale,
|
||
|
last: true,
|
||
|
rootPrefixCls: prefixCls,
|
||
|
onClick: this.handleChange,
|
||
|
onKeyPress: this.runIfEnter,
|
||
|
key: allPages,
|
||
|
page: allPages,
|
||
|
active: false,
|
||
|
showTitle: props.showTitle,
|
||
|
itemRender: props.itemRender
|
||
|
});
|
||
|
firstPager = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], {
|
||
|
locale: props.locale,
|
||
|
rootPrefixCls: prefixCls,
|
||
|
onClick: this.handleChange,
|
||
|
onKeyPress: this.runIfEnter,
|
||
|
key: 1,
|
||
|
page: 1,
|
||
|
active: false,
|
||
|
showTitle: props.showTitle,
|
||
|
itemRender: props.itemRender
|
||
|
});
|
||
|
|
||
|
var left = Math.max(1, current - pageBufferSize);
|
||
|
var right = Math.min(current + pageBufferSize, allPages);
|
||
|
|
||
|
if (current - 1 <= pageBufferSize) {
|
||
|
right = 1 + pageBufferSize * 2;
|
||
|
}
|
||
|
|
||
|
if (allPages - current <= pageBufferSize) {
|
||
|
left = allPages - pageBufferSize * 2;
|
||
|
}
|
||
|
|
||
|
for (var _i = left; _i <= right; _i++) {
|
||
|
var _active = current === _i;
|
||
|
pagerList.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], {
|
||
|
locale: props.locale,
|
||
|
rootPrefixCls: prefixCls,
|
||
|
onClick: this.handleChange,
|
||
|
onKeyPress: this.runIfEnter,
|
||
|
key: _i,
|
||
|
page: _i,
|
||
|
active: _active,
|
||
|
showTitle: props.showTitle,
|
||
|
itemRender: props.itemRender
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {
|
||
|
pagerList[0] = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(pagerList[0], {
|
||
|
className: prefixCls + '-item-after-jump-prev'
|
||
|
});
|
||
|
pagerList.unshift(jumpPrev);
|
||
|
}
|
||
|
if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {
|
||
|
pagerList[pagerList.length - 1] = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(pagerList[pagerList.length - 1], {
|
||
|
className: prefixCls + '-item-before-jump-next'
|
||
|
});
|
||
|
pagerList.push(jumpNext);
|
||
|
}
|
||
|
|
||
|
if (left !== 1) {
|
||
|
pagerList.unshift(firstPager);
|
||
|
}
|
||
|
if (right !== allPages) {
|
||
|
pagerList.push(lastPager);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var totalText = null;
|
||
|
|
||
|
if (props.showTotal) {
|
||
|
totalText = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{ className: prefixCls + '-total-text' },
|
||
|
props.showTotal(props.total, [props.total === 0 ? 0 : (current - 1) * pageSize + 1, current * pageSize > props.total ? props.total : current * pageSize])
|
||
|
);
|
||
|
}
|
||
|
var prevDisabled = !this.hasPrev() || !allPages;
|
||
|
var nextDisabled = !this.hasNext() || !allPages;
|
||
|
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'ul',
|
||
|
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
|
||
|
className: __WEBPACK_IMPORTED_MODULE_7_classnames___default()(prefixCls, className, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, prefixCls + '-disabled', disabled)),
|
||
|
style: props.style,
|
||
|
unselectable: 'unselectable',
|
||
|
ref: this.savePaginationNode
|
||
|
}, dataOrAriaAttributeProps),
|
||
|
totalText,
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? locale.prev_page : null,
|
||
|
onClick: this.prev,
|
||
|
tabIndex: prevDisabled ? null : 0,
|
||
|
onKeyPress: this.runIfEnterPrev,
|
||
|
className: (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev',
|
||
|
'aria-disabled': prevDisabled
|
||
|
},
|
||
|
props.itemRender(prevPage, 'prev', this.getItemIcon(props.prevIcon))
|
||
|
),
|
||
|
pagerList,
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? locale.next_page : null,
|
||
|
onClick: this.next,
|
||
|
tabIndex: nextDisabled ? null : 0,
|
||
|
onKeyPress: this.runIfEnterNext,
|
||
|
className: (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next',
|
||
|
'aria-disabled': nextDisabled
|
||
|
},
|
||
|
props.itemRender(nextPage, 'next', this.getItemIcon(props.nextIcon))
|
||
|
),
|
||
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Options__["a" /* default */], {
|
||
|
disabled: disabled,
|
||
|
locale: props.locale,
|
||
|
rootPrefixCls: prefixCls,
|
||
|
selectComponentClass: props.selectComponentClass,
|
||
|
selectPrefixCls: props.selectPrefixCls,
|
||
|
changeSize: this.props.showSizeChanger ? this.changePageSize : null,
|
||
|
current: this.state.current,
|
||
|
pageSize: this.state.pageSize,
|
||
|
pageSizeOptions: this.props.pageSizeOptions,
|
||
|
quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
|
||
|
goButton: goButton
|
||
|
})
|
||
|
);
|
||
|
}
|
||
|
}], [{
|
||
|
key: 'getDerivedStateFromProps',
|
||
|
value: function getDerivedStateFromProps(props, prevState) {
|
||
|
var newState = {};
|
||
|
|
||
|
if ('current' in props) {
|
||
|
newState.current = props.current;
|
||
|
|
||
|
if (props.current !== prevState.current) {
|
||
|
newState.currentInputValue = newState.current;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if ('pageSize' in props && props.pageSize !== prevState.pageSize) {
|
||
|
var current = prevState.current;
|
||
|
var newCurrent = calculatePage(props.pageSize, prevState, props);
|
||
|
current = current > newCurrent ? newCurrent : current;
|
||
|
|
||
|
if (!('current' in props)) {
|
||
|
newState.current = current;
|
||
|
newState.currentInputValue = current;
|
||
|
}
|
||
|
newState.pageSize = props.pageSize;
|
||
|
}
|
||
|
|
||
|
return newState;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* computed icon node that need to be rendered.
|
||
|
* @param {React.ReactNode | React.ComponentType<PaginationProps>} icon received icon.
|
||
|
* @returns {React.ReactNode}
|
||
|
*/
|
||
|
|
||
|
}]);
|
||
|
|
||
|
return Pagination;
|
||
|
}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component);
|
||
|
|
||
|
Pagination.propTypes = {
|
||
|
disabled: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
||
|
prefixCls: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
|
||
|
className: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
|
||
|
current: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
||
|
defaultCurrent: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
||
|
total: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
||
|
pageSize: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
||
|
defaultPageSize: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
||
|
onChange: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
||
|
hideOnSinglePage: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
||
|
showSizeChanger: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
||
|
showLessItems: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
||
|
onShowSizeChange: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
||
|
selectComponentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
||
|
showPrevNextJumpers: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
||
|
showQuickJumper: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object]),
|
||
|
showTitle: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
||
|
pageSizeOptions: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string),
|
||
|
showTotal: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
||
|
locale: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object,
|
||
|
style: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object,
|
||
|
itemRender: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
||
|
prevIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node]),
|
||
|
nextIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node]),
|
||
|
jumpPrevIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node]),
|
||
|
jumpNextIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node])
|
||
|
};
|
||
|
Pagination.defaultProps = {
|
||
|
defaultCurrent: 1,
|
||
|
total: 0,
|
||
|
defaultPageSize: 10,
|
||
|
onChange: noop,
|
||
|
className: '',
|
||
|
selectPrefixCls: 'rc-select',
|
||
|
prefixCls: 'rc-pagination',
|
||
|
selectComponentClass: null,
|
||
|
hideOnSinglePage: false,
|
||
|
showPrevNextJumpers: true,
|
||
|
showQuickJumper: false,
|
||
|
showSizeChanger: false,
|
||
|
showLessItems: false,
|
||
|
showTitle: true,
|
||
|
onShowSizeChange: noop,
|
||
|
locale: __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__["a" /* default */],
|
||
|
style: {},
|
||
|
itemRender: defaultItemRender
|
||
|
};
|
||
|
|
||
|
var _initialiseProps = function _initialiseProps() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
this.getJumpPrevPage = function () {
|
||
|
return Math.max(1, _this2.state.current - (_this2.props.showLessItems ? 3 : 5));
|
||
|
};
|
||
|
|
||
|
this.getJumpNextPage = function () {
|
||
|
return Math.min(calculatePage(undefined, _this2.state, _this2.props), _this2.state.current + (_this2.props.showLessItems ? 3 : 5));
|
||
|
};
|
||
|
|
||
|
this.getItemIcon = function (icon) {
|
||
|
var prefixCls = _this2.props.prefixCls;
|
||
|
|
||
|
var iconNode = icon || __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('a', { className: prefixCls + '-item-link' });
|
||
|
if (typeof icon === 'function') {
|
||
|
iconNode = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(icon, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, _this2.props));
|
||
|
}
|
||
|
return iconNode;
|
||
|
};
|
||
|
|
||
|
this.savePaginationNode = function (node) {
|
||
|
_this2.paginationNode = node;
|
||
|
};
|
||
|
|
||
|
this.isValid = function (page) {
|
||
|
return isInteger(page) && page !== _this2.state.current;
|
||
|
};
|
||
|
|
||
|
this.shouldDisplayQuickJumper = function () {
|
||
|
var _props2 = _this2.props,
|
||
|
showQuickJumper = _props2.showQuickJumper,
|
||
|
pageSize = _props2.pageSize,
|
||
|
total = _props2.total;
|
||
|
|
||
|
if (total <= pageSize) {
|
||
|
return false;
|
||
|
}
|
||
|
return showQuickJumper;
|
||
|
};
|
||
|
|
||
|
this.handleKeyDown = function (e) {
|
||
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_UP || e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_DOWN) {
|
||
|
e.preventDefault();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.handleKeyUp = function (e) {
|
||
|
var value = _this2.getValidValue(e);
|
||
|
var currentInputValue = _this2.state.currentInputValue;
|
||
|
|
||
|
if (value !== currentInputValue) {
|
||
|
_this2.setState({
|
||
|
currentInputValue: value
|
||
|
});
|
||
|
}
|
||
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ENTER) {
|
||
|
_this2.handleChange(value);
|
||
|
} else if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_UP) {
|
||
|
_this2.handleChange(value - 1);
|
||
|
} else if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_DOWN) {
|
||
|
_this2.handleChange(value + 1);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.changePageSize = function (size) {
|
||
|
var current = _this2.state.current;
|
||
|
var newCurrent = calculatePage(size, _this2.state, _this2.props);
|
||
|
current = current > newCurrent ? newCurrent : current;
|
||
|
// fix the issue:
|
||
|
// Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
|
||
|
if (newCurrent === 0) {
|
||
|
current = _this2.state.current;
|
||
|
}
|
||
|
|
||
|
if (typeof size === 'number') {
|
||
|
if (!('pageSize' in _this2.props)) {
|
||
|
_this2.setState({
|
||
|
pageSize: size
|
||
|
});
|
||
|
}
|
||
|
if (!('current' in _this2.props)) {
|
||
|
_this2.setState({
|
||
|
current: current,
|
||
|
currentInputValue: current
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
_this2.props.onShowSizeChange(current, size);
|
||
|
};
|
||
|
|
||
|
this.handleChange = function (p) {
|
||
|
var disabled = _this2.props.disabled;
|
||
|
|
||
|
|
||
|
var page = p;
|
||
|
if (_this2.isValid(page) && !disabled) {
|
||
|
var currentPage = calculatePage(undefined, _this2.state, _this2.props);
|
||
|
if (page > currentPage) {
|
||
|
page = currentPage;
|
||
|
} else if (page < 1) {
|
||
|
page = 1;
|
||
|
}
|
||
|
|
||
|
if (!('current' in _this2.props)) {
|
||
|
_this2.setState({
|
||
|
current: page,
|
||
|
currentInputValue: page
|
||
|
});
|
||
|
}
|
||
|
|
||
|
var pageSize = _this2.state.pageSize;
|
||
|
_this2.props.onChange(page, pageSize);
|
||
|
|
||
|
return page;
|
||
|
}
|
||
|
|
||
|
return _this2.state.current;
|
||
|
};
|
||
|
|
||
|
this.prev = function () {
|
||
|
if (_this2.hasPrev()) {
|
||
|
_this2.handleChange(_this2.state.current - 1);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.next = function () {
|
||
|
if (_this2.hasNext()) {
|
||
|
_this2.handleChange(_this2.state.current + 1);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.jumpPrev = function () {
|
||
|
_this2.handleChange(_this2.getJumpPrevPage());
|
||
|
};
|
||
|
|
||
|
this.jumpNext = function () {
|
||
|
_this2.handleChange(_this2.getJumpNextPage());
|
||
|
};
|
||
|
|
||
|
this.hasPrev = function () {
|
||
|
return _this2.state.current > 1;
|
||
|
};
|
||
|
|
||
|
this.hasNext = function () {
|
||
|
return _this2.state.current < calculatePage(undefined, _this2.state, _this2.props);
|
||
|
};
|
||
|
|
||
|
this.runIfEnter = function (event, callback) {
|
||
|
for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
||
|
restParams[_key - 2] = arguments[_key];
|
||
|
}
|
||
|
|
||
|
if (event.key === 'Enter' || event.charCode === 13) {
|
||
|
callback.apply(undefined, restParams);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
this.runIfEnterPrev = function (e) {
|
||
|
_this2.runIfEnter(e, _this2.prev);
|
||
|
};
|
||
|
|
||
|
this.runIfEnterNext = function (e) {
|
||
|
_this2.runIfEnter(e, _this2.next);
|
||
|
};
|
||
|
|
||
|
this.runIfEnterJumpPrev = function (e) {
|
||
|
_this2.runIfEnter(e, _this2.jumpPrev);
|
||
|
};
|
||
|
|
||
|
this.runIfEnterJumpNext = function (e) {
|
||
|
_this2.runIfEnter(e, _this2.jumpNext);
|
||
|
};
|
||
|
|
||
|
this.handleGoTO = function (e) {
|
||
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ENTER || e.type === 'click') {
|
||
|
_this2.handleChange(_this2.state.currentInputValue);
|
||
|
}
|
||
|
};
|
||
|
};
|
||
|
|
||
|
Object(__WEBPACK_IMPORTED_MODULE_13_react_lifecycles_compat__["polyfill"])(Pagination);
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["a"] = (Pagination);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 941:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(59);
|
||
|
/* 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_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_prop_types__ = __webpack_require__(1);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
var Pager = function Pager(props) {
|
||
|
var _classNames;
|
||
|
|
||
|
var prefixCls = props.rootPrefixCls + '-item';
|
||
|
var cls = __WEBPACK_IMPORTED_MODULE_3_classnames___default()(prefixCls, prefixCls + '-' + props.page, (_classNames = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, prefixCls + '-active', props.active), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, props.className, !!props.className), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, prefixCls + '-disabled', !props.page), _classNames));
|
||
|
|
||
|
var handleClick = function handleClick() {
|
||
|
props.onClick(props.page);
|
||
|
};
|
||
|
|
||
|
var handleKeyPress = function handleKeyPress(e) {
|
||
|
props.onKeyPress(e, props.onClick, props.page);
|
||
|
};
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
|
||
|
'li',
|
||
|
{
|
||
|
title: props.showTitle ? props.page : null,
|
||
|
className: cls,
|
||
|
onClick: handleClick,
|
||
|
onKeyPress: handleKeyPress,
|
||
|
tabIndex: '0'
|
||
|
},
|
||
|
props.itemRender(props.page, 'page', __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
|
||
|
'a',
|
||
|
null,
|
||
|
props.page
|
||
|
))
|
||
|
);
|
||
|
};
|
||
|
|
||
|
Pager.propTypes = {
|
||
|
page: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
|
||
|
active: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
||
|
last: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
||
|
locale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
|
||
|
className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
|
||
|
showTitle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
||
|
rootPrefixCls: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
|
||
|
onClick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
||
|
onKeyPress: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
||
|
itemRender: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
|
||
|
};
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["a"] = (Pager);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 942:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(9);
|
||
|
/* 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__(31);
|
||
|
/* 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__(10);
|
||
|
/* 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__(11);
|
||
|
/* 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_prop_types__ = __webpack_require__(1);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__KeyCode__ = __webpack_require__(890);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
var Options = function (_React$Component) {
|
||
|
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Options, _React$Component);
|
||
|
|
||
|
function Options() {
|
||
|
var _ref;
|
||
|
|
||
|
var _temp, _this, _ret;
|
||
|
|
||
|
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, Options);
|
||
|
|
||
|
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 = Options.__proto__ || Object.getPrototypeOf(Options)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
|
||
|
goInputText: ''
|
||
|
}, _this.buildOptionText = function (value) {
|
||
|
return value + ' ' + _this.props.locale.items_per_page;
|
||
|
}, _this.changeSize = function (value) {
|
||
|
_this.props.changeSize(Number(value));
|
||
|
}, _this.handleChange = function (e) {
|
||
|
_this.setState({
|
||
|
goInputText: e.target.value
|
||
|
});
|
||
|
}, _this.handleBlur = function (e) {
|
||
|
var _this$props = _this.props,
|
||
|
goButton = _this$props.goButton,
|
||
|
quickGo = _this$props.quickGo,
|
||
|
rootPrefixCls = _this$props.rootPrefixCls;
|
||
|
|
||
|
if (goButton) {
|
||
|
return;
|
||
|
}
|
||
|
if (e.relatedTarget && (e.relatedTarget.className.indexOf(rootPrefixCls + '-prev') >= 0 || e.relatedTarget.className.indexOf(rootPrefixCls + '-next') >= 0)) {
|
||
|
return;
|
||
|
}
|
||
|
quickGo(_this.getValidValue());
|
||
|
}, _this.go = function (e) {
|
||
|
var goInputText = _this.state.goInputText;
|
||
|
|
||
|
if (goInputText === '') {
|
||
|
return;
|
||
|
}
|
||
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_6__KeyCode__["a" /* default */].ENTER || e.type === 'click') {
|
||
|
_this.setState({
|
||
|
goInputText: ''
|
||
|
});
|
||
|
_this.props.quickGo(_this.getValidValue());
|
||
|
}
|
||
|
}, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
|
||
|
}
|
||
|
|
||
|
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(Options, [{
|
||
|
key: 'getValidValue',
|
||
|
value: function getValidValue() {
|
||
|
var _state = this.state,
|
||
|
goInputText = _state.goInputText,
|
||
|
current = _state.current;
|
||
|
|
||
|
return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
|
||
|
}
|
||
|
}, {
|
||
|
key: 'render',
|
||
|
value: function render() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
var _props = this.props,
|
||
|
pageSize = _props.pageSize,
|
||
|
pageSizeOptions = _props.pageSizeOptions,
|
||
|
locale = _props.locale,
|
||
|
rootPrefixCls = _props.rootPrefixCls,
|
||
|
changeSize = _props.changeSize,
|
||
|
quickGo = _props.quickGo,
|
||
|
goButton = _props.goButton,
|
||
|
selectComponentClass = _props.selectComponentClass,
|
||
|
buildOptionText = _props.buildOptionText,
|
||
|
selectPrefixCls = _props.selectPrefixCls,
|
||
|
disabled = _props.disabled;
|
||
|
var goInputText = this.state.goInputText;
|
||
|
|
||
|
var prefixCls = rootPrefixCls + '-options';
|
||
|
var Select = selectComponentClass;
|
||
|
var changeSelect = null;
|
||
|
var goInput = null;
|
||
|
var gotoButton = null;
|
||
|
|
||
|
if (!changeSize && !quickGo) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
if (changeSize && Select) {
|
||
|
var options = pageSizeOptions.map(function (opt, i) {
|
||
|
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
||
|
Select.Option,
|
||
|
{ key: i, value: opt },
|
||
|
(buildOptionText || _this2.buildOptionText)(opt)
|
||
|
);
|
||
|
});
|
||
|
|
||
|
changeSelect = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
||
|
Select,
|
||
|
{
|
||
|
disabled: disabled,
|
||
|
prefixCls: selectPrefixCls,
|
||
|
showSearch: false,
|
||
|
className: prefixCls + '-size-changer',
|
||
|
optionLabelProp: 'children',
|
||
|
dropdownMatchSelectWidth: false,
|
||
|
value: (pageSize || pageSizeOptions[0]).toString(),
|
||
|
onChange: this.changeSize,
|
||
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
||
|
return triggerNode.parentNode;
|
||
|
}
|
||
|
},
|
||
|
options
|
||
|
);
|
||
|
}
|
||
|
|
||
|
if (quickGo) {
|
||
|
if (goButton) {
|
||
|
gotoButton = typeof goButton === 'boolean' ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
||
|
'button',
|
||
|
{
|
||
|
type: 'button',
|
||
|
onClick: this.go,
|
||
|
onKeyUp: this.go,
|
||
|
disabled: disabled
|
||
|
},
|
||
|
locale.jump_to_confirm
|
||
|
) : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
||
|
'span',
|
||
|
{
|
||
|
onClick: this.go,
|
||
|
onKeyUp: this.go
|
||
|
},
|
||
|
goButton
|
||
|
);
|
||
|
}
|
||
|
goInput = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
||
|
'div',
|
||
|
{ className: prefixCls + '-quick-jumper' },
|
||
|
locale.jump_to,
|
||
|
__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('input', {
|
||
|
disabled: disabled,
|
||
|
type: 'text',
|
||
|
value: goInputText,
|
||
|
onChange: this.handleChange,
|
||
|
onKeyUp: this.go,
|
||
|
onBlur: this.handleBlur
|
||
|
}),
|
||
|
locale.page,
|
||
|
gotoButton
|
||
|
);
|
||
|
}
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
||
|
'li',
|
||
|
{ className: '' + prefixCls },
|
||
|
changeSelect,
|
||
|
goInput
|
||
|
);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Options;
|
||
|
}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);
|
||
|
|
||
|
Options.propTypes = {
|
||
|
disabled: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,
|
||
|
changeSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
||
|
quickGo: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
||
|
selectComponentClass: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
||
|
current: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,
|
||
|
pageSizeOptions: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string),
|
||
|
pageSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,
|
||
|
buildOptionText: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
||
|
locale: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
|
||
|
rootPrefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
||
|
selectPrefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
||
|
goButton: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node])
|
||
|
};
|
||
|
Options.defaultProps = {
|
||
|
pageSizeOptions: ['10', '20', '30', '40']
|
||
|
};
|
||
|
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["a"] = (Options);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 943:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
||
|
// Options.jsx
|
||
|
items_per_page: '条/页',
|
||
|
jump_to: '跳至',
|
||
|
jump_to_confirm: '确定',
|
||
|
page: '页',
|
||
|
|
||
|
// Pagination.jsx
|
||
|
prev_page: '上一页',
|
||
|
next_page: '下一页',
|
||
|
prev_5: '向前 5 页',
|
||
|
next_5: '向后 5 页',
|
||
|
prev_3: '向前 3 页',
|
||
|
next_3: '向后 3 页'
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 944:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _select = _interopRequireDefault(__webpack_require__(315));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var MiniSelect =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(MiniSelect, _React$Component);
|
||
|
|
||
|
function MiniSelect() {
|
||
|
_classCallCheck(this, MiniSelect);
|
||
|
|
||
|
return _possibleConstructorReturn(this, _getPrototypeOf(MiniSelect).apply(this, arguments));
|
||
|
}
|
||
|
|
||
|
_createClass(MiniSelect, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_select["default"], _extends({
|
||
|
size: "small"
|
||
|
}, this.props));
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return MiniSelect;
|
||
|
}(React.Component);
|
||
|
|
||
|
exports["default"] = MiniSelect;
|
||
|
MiniSelect.Option = _select["default"].Option;
|
||
|
//# sourceMappingURL=MiniSelect.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 945:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsNative = __webpack_require__(1264),
|
||
|
getValue = __webpack_require__(1267);
|
||
|
|
||
|
/**
|
||
|
* Gets the native function at `key` of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @param {string} key The key of the method to get.
|
||
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
||
|
*/
|
||
|
function getNative(object, key) {
|
||
|
var value = getValue(object, key);
|
||
|
return baseIsNative(value) ? value : undefined;
|
||
|
}
|
||
|
|
||
|
module.exports = getNative;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 948:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isFunction = __webpack_require__(983),
|
||
|
isLength = __webpack_require__(1079);
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
||
|
* not a function and has a `value.length` that's an integer greater than or
|
||
|
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isArrayLike([1, 2, 3]);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArrayLike(document.body.children);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArrayLike('abc');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArrayLike(_.noop);
|
||
|
* // => false
|
||
|
*/
|
||
|
function isArrayLike(value) {
|
||
|
return value != null && isLength(value.length) && !isFunction(value);
|
||
|
}
|
||
|
|
||
|
module.exports = isArrayLike;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 982:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var _dropdown = _interopRequireDefault(__webpack_require__(922));
|
||
|
|
||
|
var _dropdownButton = _interopRequireDefault(__webpack_require__(1106));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
_dropdown["default"].Button = _dropdownButton["default"];
|
||
|
var _default = _dropdown["default"];
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=index.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 983:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(327),
|
||
|
isObject = __webpack_require__(170);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var asyncTag = '[object AsyncFunction]',
|
||
|
funcTag = '[object Function]',
|
||
|
genTag = '[object GeneratorFunction]',
|
||
|
proxyTag = '[object Proxy]';
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a `Function` object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isFunction(_);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isFunction(/abc/);
|
||
|
* // => false
|
||
|
*/
|
||
|
function isFunction(value) {
|
||
|
if (!isObject(value)) {
|
||
|
return false;
|
||
|
}
|
||
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
||
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
||
|
var tag = baseGetTag(value);
|
||
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
||
|
}
|
||
|
|
||
|
module.exports = isFunction;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 984:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var defineProperty = __webpack_require__(1105);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
||
|
* value checks.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to modify.
|
||
|
* @param {string} key The key of the property to assign.
|
||
|
* @param {*} value The value to assign.
|
||
|
*/
|
||
|
function baseAssignValue(object, key, value) {
|
||
|
if (key == '__proto__' && defineProperty) {
|
||
|
defineProperty(object, key, {
|
||
|
'configurable': true,
|
||
|
'enumerable': true,
|
||
|
'value': value,
|
||
|
'writable': true
|
||
|
});
|
||
|
} else {
|
||
|
object[key] = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = baseAssignValue;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 985:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
__webpack_require__(28);
|
||
|
|
||
|
__webpack_require__(1085);
|
||
|
|
||
|
__webpack_require__(87);
|
||
|
//# sourceMappingURL=css.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 988:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
// ================== Collapse Motion ==================
|
||
|
var getCollapsedHeight = function getCollapsedHeight() {
|
||
|
return {
|
||
|
height: 0,
|
||
|
opacity: 0
|
||
|
};
|
||
|
};
|
||
|
|
||
|
var getRealHeight = function getRealHeight(node) {
|
||
|
return {
|
||
|
height: node.scrollHeight,
|
||
|
opacity: 1
|
||
|
};
|
||
|
};
|
||
|
|
||
|
var getCurrentHeight = function getCurrentHeight(node) {
|
||
|
return {
|
||
|
height: node.offsetHeight
|
||
|
};
|
||
|
};
|
||
|
|
||
|
var collapseMotion = {
|
||
|
motionName: 'ant-motion-collapse',
|
||
|
onAppearStart: getCollapsedHeight,
|
||
|
onEnterStart: getCollapsedHeight,
|
||
|
onAppearActive: getRealHeight,
|
||
|
onEnterActive: getRealHeight,
|
||
|
onLeaveStart: getCurrentHeight,
|
||
|
onLeaveActive: getCollapsedHeight
|
||
|
};
|
||
|
var _default = collapseMotion;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=motion.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 989:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
__webpack_require__(28);
|
||
|
|
||
|
__webpack_require__(1120);
|
||
|
|
||
|
__webpack_require__(169);
|
||
|
//# sourceMappingURL=css.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 997:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = exports.LayoutContext = void 0;
|
||
|
|
||
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
||
|
|
||
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
||
|
|
||
|
var _createReactContext = _interopRequireDefault(__webpack_require__(316));
|
||
|
|
||
|
var _configProvider = __webpack_require__(12);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
|
||
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||
|
|
||
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||
|
|
||
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
|
||
|
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; }
|
||
|
|
||
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
||
|
|
||
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
||
|
|
||
|
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
||
|
|
||
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
||
|
|
||
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||
|
|
||
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||
|
|
||
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||
|
|
||
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||
|
|
||
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||
|
|
||
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
||
|
var t = {};
|
||
|
|
||
|
for (var p in s) {
|
||
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
|
}
|
||
|
|
||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
|
||
|
var LayoutContext = (0, _createReactContext["default"])({
|
||
|
siderHook: {
|
||
|
addSider: function addSider() {
|
||
|
return null;
|
||
|
},
|
||
|
removeSider: function removeSider() {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
exports.LayoutContext = LayoutContext;
|
||
|
|
||
|
function generator(_ref) {
|
||
|
var suffixCls = _ref.suffixCls,
|
||
|
tagName = _ref.tagName,
|
||
|
displayName = _ref.displayName;
|
||
|
return function (BasicComponent) {
|
||
|
var _a;
|
||
|
|
||
|
return _a =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component) {
|
||
|
_inherits(Adapter, _React$Component);
|
||
|
|
||
|
function Adapter() {
|
||
|
var _this;
|
||
|
|
||
|
_classCallCheck(this, Adapter);
|
||
|
|
||
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Adapter).apply(this, arguments));
|
||
|
|
||
|
_this.renderComponent = function (_ref2) {
|
||
|
var getPrefixCls = _ref2.getPrefixCls;
|
||
|
var customizePrefixCls = _this.props.prefixCls;
|
||
|
var prefixCls = getPrefixCls(suffixCls, customizePrefixCls);
|
||
|
return React.createElement(BasicComponent, _extends({
|
||
|
prefixCls: prefixCls,
|
||
|
tagName: tagName
|
||
|
}, _this.props));
|
||
|
};
|
||
|
|
||
|
return _this;
|
||
|
}
|
||
|
|
||
|
_createClass(Adapter, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return React.createElement(_configProvider.ConfigConsumer, null, this.renderComponent);
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Adapter;
|
||
|
}(React.Component), _a.displayName = displayName, _a;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
var Basic = function Basic(props) {
|
||
|
var prefixCls = props.prefixCls,
|
||
|
className = props.className,
|
||
|
children = props.children,
|
||
|
tagName = props.tagName,
|
||
|
others = __rest(props, ["prefixCls", "className", "children", "tagName"]);
|
||
|
|
||
|
var classString = (0, _classnames["default"])(className, prefixCls);
|
||
|
return React.createElement(tagName, _extends({
|
||
|
className: classString
|
||
|
}, others), children);
|
||
|
};
|
||
|
|
||
|
var BasicLayout =
|
||
|
/*#__PURE__*/
|
||
|
function (_React$Component2) {
|
||
|
_inherits(BasicLayout, _React$Component2);
|
||
|
|
||
|
function BasicLayout() {
|
||
|
var _this2;
|
||
|
|
||
|
_classCallCheck(this, BasicLayout);
|
||
|
|
||
|
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(BasicLayout).apply(this, arguments));
|
||
|
_this2.state = {
|
||
|
siders: []
|
||
|
};
|
||
|
return _this2;
|
||
|
}
|
||
|
|
||
|
_createClass(BasicLayout, [{
|
||
|
key: "getSiderHook",
|
||
|
value: function getSiderHook() {
|
||
|
var _this3 = this;
|
||
|
|
||
|
return {
|
||
|
addSider: function addSider(id) {
|
||
|
_this3.setState(function (state) {
|
||
|
return {
|
||
|
siders: [].concat(_toConsumableArray(state.siders), [id])
|
||
|
};
|
||
|
});
|
||
|
},
|
||
|
removeSider: function removeSider(id) {
|
||
|
_this3.setState(function (state) {
|
||
|
return {
|
||
|
siders: state.siders.filter(function (currentId) {
|
||
|
return currentId !== id;
|
||
|
})
|
||
|
};
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}, {
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
var _a = this.props,
|
||
|
prefixCls = _a.prefixCls,
|
||
|
className = _a.className,
|
||
|
children = _a.children,
|
||
|
hasSider = _a.hasSider,
|
||
|
Tag = _a.tagName,
|
||
|
others = __rest(_a, ["prefixCls", "className", "children", "hasSider", "tagName"]);
|
||
|
|
||
|
var classString = (0, _classnames["default"])(className, prefixCls, _defineProperty({}, "".concat(prefixCls, "-has-sider"), typeof hasSider === 'boolean' ? hasSider : this.state.siders.length > 0));
|
||
|
return React.createElement(LayoutContext.Provider, {
|
||
|
value: {
|
||
|
siderHook: this.getSiderHook()
|
||
|
}
|
||
|
}, React.createElement(Tag, _extends({
|
||
|
className: classString
|
||
|
}, others), children));
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return BasicLayout;
|
||
|
}(React.Component);
|
||
|
|
||
|
var Layout = generator({
|
||
|
suffixCls: 'layout',
|
||
|
tagName: 'section',
|
||
|
displayName: 'Layout'
|
||
|
})(BasicLayout);
|
||
|
var Header = generator({
|
||
|
suffixCls: 'layout-header',
|
||
|
tagName: 'header',
|
||
|
displayName: 'Header'
|
||
|
})(Basic);
|
||
|
var Footer = generator({
|
||
|
suffixCls: 'layout-footer',
|
||
|
tagName: 'footer',
|
||
|
displayName: 'Footer'
|
||
|
})(Basic);
|
||
|
var Content = generator({
|
||
|
suffixCls: 'layout-content',
|
||
|
tagName: 'main',
|
||
|
displayName: 'Content'
|
||
|
})(Basic);
|
||
|
Layout.Header = Header;
|
||
|
Layout.Footer = Footer;
|
||
|
Layout.Content = Content;
|
||
|
var _default = Layout;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=layout.js.map
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 998:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports["default"] = void 0;
|
||
|
|
||
|
var isNumeric = function isNumeric(value) {
|
||
|
return !isNaN(parseFloat(value)) && isFinite(value);
|
||
|
};
|
||
|
|
||
|
var _default = isNumeric;
|
||
|
exports["default"] = _default;
|
||
|
//# sourceMappingURL=isNumeric.js.map
|
||
|
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
});
|