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.
5643 lines
390 KiB
5643 lines
390 KiB
webpackJsonp([153],{
|
|
|
|
/***/ 1001:
|
|
/***/ (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__(889));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 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 _rcMenu = __webpack_require__(172);
|
|
|
|
var _MenuContext = _interopRequireDefault(__webpack_require__(889));
|
|
|
|
var _tooltip = _interopRequireDefault(__webpack_require__(168));
|
|
|
|
var _Sider = __webpack_require__(905);
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1065:
|
|
/***/ (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__(1066);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1066:
|
|
/***/ (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-dropdown-menu-item-group-list{margin:0 8px;padding:0;list-style:none}.ant-dropdown-menu-submenu-title{padding-right:26px}.ant-dropdown-menu-submenu-vertical{position:relative}.ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{position:absolute;top:0;left:100%;min-width:100%;margin-left:4px;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:rgba(0,0,0,.25);background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#1890ff}.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomRight,.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomRight{-webkit-animation-name:antSlideUpIn;animation-name:antSlideUpIn}.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topCenter,.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topLeft,.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topRight,.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topCenter,.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topLeft,.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topRight{-webkit-animation-name:antSlideDownIn;animation-name:antSlideDownIn}.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomRight{-webkit-animation-name:antSlideUpOut;animation-name:antSlideUpOut}.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topCenter,.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topLeft,.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topRight{-webkit-animation-name:antSlideDownOut;animation-name:antSlideDownOut}.ant-dropdown-link>.anticon.anticon-down,.ant-dropdown-trigger>.anticon.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-link>.anticon.anticon-down,:root .ant-dropdown-trigger>.anticon.anticon-down{font-size:12px}.ant-dropdown-button{white-space:nowrap}.ant-dropdown-button.ant-btn-group>.ant-btn:last-child:not(:first-child){padding-right:8px;padding-left:8px}.ant-dropdown-button .anticon.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-button .anticon.anticon-down{font-size:12px}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#001529}.ant-dropdown-menu-dark .ant-dropdown-menu-item,.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after{color:hsla(0,0%,100%,.65)}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover{color:#fff;background:transparent}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#1890ff}", "", {"version":3,"sources":["/Users/hs/edu/educoder/public/react/node_modules/antd/lib/dropdown/style/index.css"],"names":[],"mappings":"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","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-dropdown {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n display: block;\n}\n.ant-dropdown::before {\n position: absolute;\n top: -7px;\n right: 0;\n bottom: -7px;\n left: -7px;\n z-index: -9999;\n opacity: 0.0001;\n content: ' ';\n}\n.ant-dropdown-wrap {\n position: relative;\n}\n.ant-dropdown-wrap .ant-btn > .anticon-down {\n display: inline-block;\n font-size: 12px;\n font-size: 10px \\9;\n -webkit-transform: scale(0.83333333) rotate(0deg);\n -ms-transform: scale(0.83333333) rotate(0deg);\n transform: scale(0.83333333) rotate(0deg);\n}\n:root .ant-dropdown-wrap .ant-btn > .anticon-down {\n font-size: 12px;\n}\n.ant-dropdown-wrap .anticon-down::before {\n -webkit-transition: -webkit-transform 0.2s;\n transition: -webkit-transform 0.2s;\n -o-transition: transform 0.2s;\n transition: transform 0.2s;\n transition: transform 0.2s, -webkit-transform 0.2s;\n}\n.ant-dropdown-wrap-open .anticon-down::before {\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n.ant-dropdown-hidden,\n.ant-dropdown-menu-hidden {\n display: none;\n}\n.ant-dropdown-menu {\n position: relative;\n margin: 0;\n padding: 4px 0;\n text-align: left;\n list-style-type: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 4px;\n outline: none;\n -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n -webkit-transform: translate3d(0, 0, 0);\n}\n.ant-dropdown-menu-item-group-title {\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.45);\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-dropdown-menu-submenu-popup {\n position: absolute;\n z-index: 1050;\n}\n.ant-dropdown-menu-submenu-popup > .ant-dropdown-menu {\n -webkit-transform-origin: 0 0;\n -ms-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n.ant-dropdown-menu-submenu-popup ul,\n.ant-dropdown-menu-submenu-popup li {\n list-style: none;\n}\n.ant-dropdown-menu-submenu-popup ul {\n margin-right: 0.3em;\n margin-left: 0.3em;\n padding: 0;\n}\n.ant-dropdown-menu-item,\n.ant-dropdown-menu-submenu-title {\n clear: both;\n margin: 0;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.65);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n white-space: nowrap;\n cursor: pointer;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > .anticon:first-child,\n.ant-dropdown-menu-item > span > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > span > .anticon:first-child {\n min-width: 12px;\n margin-right: 8px;\n font-size: 12px;\n}\n.ant-dropdown-menu-item > a,\n.ant-dropdown-menu-submenu-title > a {\n display: block;\n margin: -5px -12px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.65);\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item-selected,\n.ant-dropdown-menu-submenu-title-selected,\n.ant-dropdown-menu-item-selected > a,\n.ant-dropdown-menu-submenu-title-selected > a {\n color: #1890ff;\n background-color: #e6f7ff;\n}\n.ant-dropdown-menu-item:hover,\n.ant-dropdown-menu-submenu-title:hover {\n background-color: #e6f7ff;\n}\n.ant-dropdown-menu-item-disabled,\n.ant-dropdown-menu-submenu-title-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-dropdown-menu-item-disabled:hover,\n.ant-dropdown-menu-submenu-title-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-dropdown-menu-item-divider,\n.ant-dropdown-menu-submenu-title-divider {\n height: 1px;\n margin: 4px 0;\n overflow: hidden;\n line-height: 0;\n background-color: #e8e8e8;\n}\n.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,\n.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow {\n position: absolute;\n right: 8px;\n}\n.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,\n.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n color: rgba(0, 0, 0, 0.45);\n font-style: normal;\n display: inline-block;\n font-size: 12px;\n font-size: 10px \\9;\n -webkit-transform: scale(0.83333333) rotate(0deg);\n -ms-transform: scale(0.83333333) rotate(0deg);\n transform: scale(0.83333333) rotate(0deg);\n}\n:root .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,\n:root .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n font-size: 12px;\n}\n.ant-dropdown-menu-item-group-list {\n margin: 0 8px;\n padding: 0;\n list-style: none;\n}\n.ant-dropdown-menu-submenu-title {\n padding-right: 26px;\n}\n.ant-dropdown-menu-submenu-vertical {\n position: relative;\n}\n.ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {\n position: absolute;\n top: 0;\n left: 100%;\n min-width: 100%;\n margin-left: 4px;\n -webkit-transform-origin: 0 0;\n -ms-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,\n.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title {\n color: #1890ff;\n}\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomRight,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomRight {\n -webkit-animation-name: antSlideUpIn;\n animation-name: antSlideUpIn;\n}\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topRight,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topRight {\n -webkit-animation-name: antSlideDownIn;\n animation-name: antSlideDownIn;\n}\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomRight {\n -webkit-animation-name: antSlideUpOut;\n animation-name: antSlideUpOut;\n}\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topRight {\n -webkit-animation-name: antSlideDownOut;\n animation-name: antSlideDownOut;\n}\n.ant-dropdown-trigger > .anticon.anticon-down,\n.ant-dropdown-link > .anticon.anticon-down {\n display: inline-block;\n font-size: 12px;\n font-size: 10px \\9;\n -webkit-transform: scale(0.83333333) rotate(0deg);\n -ms-transform: scale(0.83333333) rotate(0deg);\n transform: scale(0.83333333) rotate(0deg);\n}\n:root .ant-dropdown-trigger > .anticon.anticon-down,\n:root .ant-dropdown-link > .anticon.anticon-down {\n font-size: 12px;\n}\n.ant-dropdown-button {\n white-space: nowrap;\n}\n.ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-dropdown-button .anticon.anticon-down {\n display: inline-block;\n font-size: 12px;\n font-size: 10px \\9;\n -webkit-transform: scale(0.83333333) rotate(0deg);\n -ms-transform: scale(0.83333333) rotate(0deg);\n transform: scale(0.83333333) rotate(0deg);\n}\n:root .ant-dropdown-button .anticon.anticon-down {\n font-size: 12px;\n}\n.ant-dropdown-menu-dark,\n.ant-dropdown-menu-dark .ant-dropdown-menu {\n background: #001529;\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a:hover {\n color: #fff;\n background: transparent;\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a {\n color: #fff;\n background: #1890ff;\n}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1067:
|
|
/***/ (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__(1068);
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__Dropdown__["a" /* default */]);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1068:
|
|
/***/ (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__(1069);
|
|
/* 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);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1069:
|
|
/***/ (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);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1073:
|
|
/***/ (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__(921));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1092:
|
|
/***/ (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__(1093);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1093:
|
|
/***/ (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-title{position:relative;display:block;margin:0;padding:0 20px;white-space:nowrap;cursor:pointer;-webkit-transition:color .3s cubic-bezier(.645,.045,.355,1),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:color .3s cubic-bezier(.645,.045,.355,1),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:color .3s cubic-bezier(.645,.045,.355,1),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-item .anticon,.ant-menu-submenu-title .anticon{min-width:14px;margin-right:10px;font-size:14px;-webkit-transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1);-o-transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1);transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item .anticon+span,.ant-menu-submenu-title .anticon+span{opacity:1;-webkit-transition:opacity .3s cubic-bezier(.645,.045,.355,1),width .3s cubic-bezier(.645,.045,.355,1);-o-transition:opacity .3s cubic-bezier(.645,.045,.355,1),width .3s cubic-bezier(.645,.045,.355,1);transition:opacity .3s cubic-bezier(.645,.045,.355,1),width .3s cubic-bezier(.645,.045,.355,1)}.ant-menu>.ant-menu-item-divider{height:1px;margin:1px 0;padding:0;overflow:hidden;line-height:0;background-color:#e8e8e8}.ant-menu-submenu-popup{position:absolute;z-index:1050;background:#fff;border-radius:4px}.ant-menu-submenu-popup .submenu-title-wrapper{padding-right:20px}.ant-menu-submenu-popup:before{position:absolute;top:-7px;right:0;bottom:0;left:0;opacity:.0001;content:\" \"}.ant-menu-submenu>.ant-menu{background-color:#fff;border-radius:4px}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu>.ant-menu-submenu-title:after{-webkit-transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);-o-transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow{position:absolute;top:50%;right:16px;width:10px}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{position:absolute;width:6px;height:1.5px;background:#fff;background:rgba(0,0,0,.65)\\9;background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.65)),to(rgba(0,0,0,.65)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.65),rgba(0,0,0,.65));background-image:-o-linear-gradient(left,rgba(0,0,0,.65),rgba(0,0,0,.65));background-image:linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.65));background-image:none\\9;border-radius:2px;-webkit-transition:background .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:background .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);-o-transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1);transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1);transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);content:\"\"}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{-webkit-transform:rotate(45deg) translateY(-2px);-ms-transform:rotate(45deg) translateY(-2px);transform:rotate(45deg) translateY(-2px)}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{-webkit-transform:rotate(-45deg) translateY(2px);-ms-transform:rotate(-45deg) translateY(2px);transform:rotate(-45deg) translateY(2px)}.ant-menu-submenu-inline>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before{background:-webkit-gradient(linear,left top,right top,from(#1890ff),to(#1890ff));background:-webkit-linear-gradient(left,#1890ff,#1890ff);background:-o-linear-gradient(left,#1890ff,#1890ff);background:linear-gradient(90deg,#1890ff,#1890ff)}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{-webkit-transform:rotate(-45deg) translateX(2px);-ms-transform:rotate(-45deg) translateX(2px);transform:rotate(-45deg) translateX(2px)}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{-webkit-transform:rotate(45deg) translateX(-2px);-ms-transform:rotate(45deg) translateX(-2px);transform:rotate(45deg) translateX(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow{-webkit-transform:translateY(-2px);-ms-transform:translateY(-2px);transform:translateY(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{-webkit-transform:rotate(-45deg) translateX(-2px);-ms-transform:rotate(-45deg) translateX(-2px);transform:rotate(-45deg) translateX(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{-webkit-transform:rotate(45deg) translateX(2px);-ms-transform:rotate(45deg) translateX(2px);transform:rotate(45deg) translateX(2px)}.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected>a,.ant-menu-vertical-right .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected>a,.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical .ant-menu-submenu-selected>a{color:#1890ff}.ant-menu-horizontal{line-height:46px;white-space:nowrap;border:0;border-bottom:1px solid #e8e8e8;-webkit-box-shadow:none;box-shadow:none}.ant-menu-horizontal>.ant-menu-item,.ant-menu-horizontal>.ant-menu-submenu{position:relative;top:1px;display:inline-block;vertical-align:bottom;border-bottom:2px solid transparent}.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-item-open,.ant-menu-horizontal>.ant-menu-item-selected,.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-submenu-active,.ant-menu-horizontal>.ant-menu-submenu-open,.ant-menu-horizontal>.ant-menu-submenu-selected,.ant-menu-horizontal>.ant-menu-submenu:hover{color:#1890ff;border-bottom:2px solid #1890ff}.ant-menu-horizontal>.ant-menu-item>a{display:block;color:rgba(0,0,0,.65)}.ant-menu-horizontal>.ant-menu-item>a:hover{color:#1890ff}.ant-menu-horizontal>.ant-menu-item>a:before{bottom:-2px}.ant-menu-horizontal>.ant-menu-item-selected>a{color:#1890ff}.ant-menu-horizontal:after{display:block;clear:both;height:0;content:\" \"}.ant-menu-inline .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-vertical .ant-menu-item{position:relative}.ant-menu-inline .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-vertical .ant-menu-item:after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #1890ff;-webkit-transform:scaleY(.0001);-ms-transform:scaleY(.0001);transform:scaleY(.0001);opacity:0;-webkit-transition:opacity .15s cubic-bezier(.215,.61,.355,1),-webkit-transform .15s cubic-bezier(.215,.61,.355,1);transition:opacity .15s cubic-bezier(.215,.61,.355,1),-webkit-transform .15s cubic-bezier(.215,.61,.355,1);-o-transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1),-webkit-transform .15s cubic-bezier(.215,.61,.355,1);content:\"\"}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-vertical-right .ant-menu-item,.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-item,.ant-menu-vertical .ant-menu-submenu-title{height:40px;margin-top:4px;margin-bottom:4px;padding:0 16px;overflow:hidden;font-size:14px;line-height:40px;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-menu-inline .ant-menu-submenu,.ant-menu-vertical-left .ant-menu-submenu,.ant-menu-vertical-right .ant-menu-submenu,.ant-menu-vertical .ant-menu-submenu{padding-bottom:.02px}.ant-menu-inline .ant-menu-item:not(:last-child),.ant-menu-vertical-left .ant-menu-item:not(:last-child),.ant-menu-vertical-right .ant-menu-item:not(:last-child),.ant-menu-vertical .ant-menu-item:not(:last-child){margin-bottom:8px}.ant-menu-inline>.ant-menu-item,.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-left>.ant-menu-item,.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-right>.ant-menu-item,.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical>.ant-menu-item,.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px}.ant-menu-inline{width:100%}.ant-menu-inline .ant-menu-item-selected:after,.ant-menu-inline .ant-menu-selected:after{-webkit-transform:scaleY(1);-ms-transform:scaleY(1);transform:scaleY(1);opacity:1;-webkit-transition:opacity .15s cubic-bezier(.645,.045,.355,1),-webkit-transform .15s cubic-bezier(.645,.045,.355,1);transition:opacity .15s cubic-bezier(.645,.045,.355,1),-webkit-transform .15s cubic-bezier(.645,.045,.355,1);-o-transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1);transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1);transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1),-webkit-transform .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title{width:calc(100% + 1px)}.ant-menu-inline .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline-collapsed{width:80px}.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{left:0;padding:0 32px!important;-o-text-overflow:clip;text-overflow:clip}.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{display:none}.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon,.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon,.ant-menu-inline-collapsed>.ant-menu-item .anticon,.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon{margin:0;font-size:16px;line-height:40px}.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon+span,.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span,.ant-menu-inline-collapsed>.ant-menu-item .anticon+span,.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span{display:inline-block;max-width:0;opacity:0}.ant-menu-inline-collapsed-tooltip{pointer-events:none}.ant-menu-inline-collapsed-tooltip .anticon{display:none}.ant-menu-inline-collapsed-tooltip a{color:hsla(0,0%,100%,.85)}.ant-menu-inline-collapsed .ant-menu-item-group-title{padding-right:4px;padding-left:4px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-menu-item-group-list{margin:0;padding:0}.ant-menu-item-group-list .ant-menu-item,.ant-menu-item-group-list .ant-menu-submenu-title{padding:0 16px 0 28px}.ant-menu-root.ant-menu-inline,.ant-menu-root.ant-menu-vertical,.ant-menu-root.ant-menu-vertical-left,.ant-menu-root.ant-menu-vertical-right,.ant-menu-sub.ant-menu-inline{-webkit-box-shadow:none;box-shadow:none}.ant-menu-sub.ant-menu-inline{padding:0;border:0;border-radius:0}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px;list-style-position:inside;list-style-type:disc}.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-left:32px}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:rgba(0,0,0,.25)!important;background:none;border-color:transparent!important;cursor:not-allowed}.ant-menu-item-disabled>a,.ant-menu-submenu-disabled>a{color:rgba(0,0,0,.25)!important;pointer-events:none}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:rgba(0,0,0,.25)!important;cursor:not-allowed}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:rgba(0,0,0,.25)!important}.ant-menu-dark,.ant-menu-dark .ant-menu-sub{color:hsla(0,0%,100%,.65);background:#001529}.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:.45;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark.ant-menu-submenu-popup{background:transparent}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#000c17;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.45) inset;box-shadow:inset 0 2px 8px rgba(0,0,0,.45)}.ant-menu-dark.ant-menu-horizontal{border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{top:0;margin-top:0;border-color:#001529;border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item>a:before{bottom:0}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a{color:hsla(0,0%,100%,.65)}.ant-menu-dark.ant-menu-inline,.ant-menu-dark.ant-menu-vertical,.ant-menu-dark.ant-menu-vertical-left,.ant-menu-dark.ant-menu-vertical-right{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item,.ant-menu-dark.ant-menu-vertical .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical .ant-menu-item:after{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title{width:100%}.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fff;background-color:transparent}.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-title:hover>a{color:#fff}.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{opacity:1}.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark .ant-menu-item:hover{background-color:transparent}.ant-menu-dark .ant-menu-item-selected{color:#fff;border-right:0}.ant-menu-dark .ant-menu-item-selected:after{border-right:0}.ant-menu-dark .ant-menu-item-selected .anticon,.ant-menu-dark .ant-menu-item-selected .anticon+span,.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>a:hover{color:#fff}.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected,.ant-menu.ant-menu-dark .ant-menu-item-selected{background-color:#1890ff}.ant-menu-dark .ant-menu-item-disabled,.ant-menu-dark .ant-menu-item-disabled>a,.ant-menu-dark .ant-menu-submenu-disabled,.ant-menu-dark .ant-menu-submenu-disabled>a{color:hsla(0,0%,100%,.35)!important;opacity:.8}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title{color:hsla(0,0%,100%,.35)!important}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:hsla(0,0%,100%,.35)!important}", "", {"version":3,"sources":["/Users/hs/edu/educoder/public/react/node_modules/antd/lib/menu/style/index.css"],"names":[],"mappings":"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","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-menu {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n margin-bottom: 0;\n padding-left: 0;\n color: rgba(0, 0, 0, 0.65);\n line-height: 0;\n list-style: none;\n background: #fff;\n outline: none;\n -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n -webkit-transition: background 0.3s, width 0.2s;\n -o-transition: background 0.3s, width 0.2s;\n transition: background 0.3s, width 0.2s;\n zoom: 1;\n}\n.ant-menu::before,\n.ant-menu::after {\n display: table;\n content: '';\n}\n.ant-menu::after {\n clear: both;\n}\n.ant-menu ul,\n.ant-menu ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-menu-hidden {\n display: none;\n}\n.ant-menu-item-group-title {\n padding: 8px 16px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-menu-submenu,\n.ant-menu-submenu-inline {\n -webkit-transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-selected {\n color: #1890ff;\n}\n.ant-menu-item:active,\n.ant-menu-submenu-title:active {\n background: #e6f7ff;\n}\n.ant-menu-submenu .ant-menu-sub {\n cursor: initial;\n -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item > a {\n display: block;\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-menu-item > a:hover {\n color: #1890ff;\n}\n.ant-menu-item > a::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: transparent;\n content: '';\n}\n.ant-menu-item > .ant-badge > a {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-menu-item > .ant-badge > a:hover {\n color: #1890ff;\n}\n.ant-menu-item-divider {\n height: 1px;\n overflow: hidden;\n line-height: 0;\n background-color: #e8e8e8;\n}\n.ant-menu-item:hover,\n.ant-menu-item-active,\n.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,\n.ant-menu-submenu-active,\n.ant-menu-submenu-title:hover {\n color: #1890ff;\n}\n.ant-menu-horizontal .ant-menu-item,\n.ant-menu-horizontal .ant-menu-submenu {\n margin-top: -1px;\n}\n.ant-menu-horizontal > .ant-menu-item:hover,\n.ant-menu-horizontal > .ant-menu-item-active,\n.ant-menu-horizontal > .ant-menu-submenu .ant-menu-submenu-title:hover {\n background-color: transparent;\n}\n.ant-menu-item-selected {\n color: #1890ff;\n}\n.ant-menu-item-selected > a,\n.ant-menu-item-selected > a:hover {\n color: #1890ff;\n}\n.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {\n background-color: #e6f7ff;\n}\n.ant-menu-inline,\n.ant-menu-vertical,\n.ant-menu-vertical-left {\n border-right: 1px solid #e8e8e8;\n}\n.ant-menu-vertical-right {\n border-left: 1px solid #e8e8e8;\n}\n.ant-menu-vertical.ant-menu-sub,\n.ant-menu-vertical-left.ant-menu-sub,\n.ant-menu-vertical-right.ant-menu-sub {\n min-width: 160px;\n padding: 0;\n border-right: 0;\n -webkit-transform-origin: 0 0;\n -ms-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n.ant-menu-vertical.ant-menu-sub .ant-menu-item,\n.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,\n.ant-menu-vertical-right.ant-menu-sub .ant-menu-item {\n left: 0;\n margin-left: 0;\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub .ant-menu-item::after,\n.ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after,\n.ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after {\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {\n -webkit-transform-origin: 0 0;\n -ms-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n.ant-menu-horizontal.ant-menu-sub {\n min-width: 114px;\n}\n.ant-menu-item,\n.ant-menu-submenu-title {\n position: relative;\n display: block;\n margin: 0;\n padding: 0 20px;\n white-space: nowrap;\n cursor: pointer;\n -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item .anticon,\n.ant-menu-submenu-title .anticon {\n min-width: 14px;\n margin-right: 10px;\n font-size: 14px;\n -webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item .anticon + span,\n.ant-menu-submenu-title .anticon + span {\n opacity: 1;\n -webkit-transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu > .ant-menu-item-divider {\n height: 1px;\n margin: 1px 0;\n padding: 0;\n overflow: hidden;\n line-height: 0;\n background-color: #e8e8e8;\n}\n.ant-menu-submenu-popup {\n position: absolute;\n z-index: 1050;\n background: #fff;\n border-radius: 4px;\n}\n.ant-menu-submenu-popup .submenu-title-wrapper {\n padding-right: 20px;\n}\n.ant-menu-submenu-popup::before {\n position: absolute;\n top: -7px;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0.0001;\n content: ' ';\n}\n.ant-menu-submenu > .ant-menu {\n background-color: #fff;\n border-radius: 4px;\n}\n.ant-menu-submenu > .ant-menu-submenu-title::after {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n position: absolute;\n top: 50%;\n right: 16px;\n width: 10px;\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {\n position: absolute;\n width: 6px;\n height: 1.5px;\n background: #fff;\n background: rgba(0, 0, 0, 0.65) \\9;\n background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.65)), to(rgba(0, 0, 0, 0.65)));\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));\n background-image: none \\9;\n border-radius: 2px;\n -webkit-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n content: '';\n}\n.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n -webkit-transform: rotate(45deg) translateY(-2px);\n -ms-transform: rotate(45deg) translateY(-2px);\n transform: rotate(45deg) translateY(-2px);\n}\n.ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {\n -webkit-transform: rotate(-45deg) translateY(2px);\n -ms-transform: rotate(-45deg) translateY(2px);\n transform: rotate(-45deg) translateY(2px);\n}\n.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-vertical > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical-left > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-vertical-right > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-inline > .ant-menu-submenu-title:hover .ant-menu-submenu-arrow::before {\n background: -webkit-gradient(linear, left top, right top, from(#1890ff), to(#1890ff));\n background: -webkit-linear-gradient(left, #1890ff, #1890ff);\n background: -o-linear-gradient(left, #1890ff, #1890ff);\n background: linear-gradient(to right, #1890ff, #1890ff);\n}\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n -webkit-transform: rotate(-45deg) translateX(2px);\n -ms-transform: rotate(-45deg) translateX(2px);\n transform: rotate(-45deg) translateX(2px);\n}\n.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {\n -webkit-transform: rotate(45deg) translateX(-2px);\n -ms-transform: rotate(45deg) translateX(-2px);\n transform: rotate(45deg) translateX(-2px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n -webkit-transform: translateY(-2px);\n -ms-transform: translateY(-2px);\n transform: translateY(-2px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {\n -webkit-transform: rotate(-45deg) translateX(-2px);\n -ms-transform: rotate(-45deg) translateX(-2px);\n transform: rotate(-45deg) translateX(-2px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n -webkit-transform: rotate(45deg) translateX(2px);\n -ms-transform: rotate(45deg) translateX(2px);\n transform: rotate(45deg) translateX(2px);\n}\n.ant-menu-vertical .ant-menu-submenu-selected,\n.ant-menu-vertical-left .ant-menu-submenu-selected,\n.ant-menu-vertical-right .ant-menu-submenu-selected {\n color: #1890ff;\n}\n.ant-menu-vertical .ant-menu-submenu-selected > a,\n.ant-menu-vertical-left .ant-menu-submenu-selected > a,\n.ant-menu-vertical-right .ant-menu-submenu-selected > a {\n color: #1890ff;\n}\n.ant-menu-horizontal {\n line-height: 46px;\n white-space: nowrap;\n border: 0;\n border-bottom: 1px solid #e8e8e8;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.ant-menu-horizontal > .ant-menu-item,\n.ant-menu-horizontal > .ant-menu-submenu {\n position: relative;\n top: 1px;\n display: inline-block;\n vertical-align: bottom;\n border-bottom: 2px solid transparent;\n}\n.ant-menu-horizontal > .ant-menu-item:hover,\n.ant-menu-horizontal > .ant-menu-submenu:hover,\n.ant-menu-horizontal > .ant-menu-item-active,\n.ant-menu-horizontal > .ant-menu-submenu-active,\n.ant-menu-horizontal > .ant-menu-item-open,\n.ant-menu-horizontal > .ant-menu-submenu-open,\n.ant-menu-horizontal > .ant-menu-item-selected,\n.ant-menu-horizontal > .ant-menu-submenu-selected {\n color: #1890ff;\n border-bottom: 2px solid #1890ff;\n}\n.ant-menu-horizontal > .ant-menu-item > a {\n display: block;\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-menu-horizontal > .ant-menu-item > a:hover {\n color: #1890ff;\n}\n.ant-menu-horizontal > .ant-menu-item > a::before {\n bottom: -2px;\n}\n.ant-menu-horizontal > .ant-menu-item-selected > a {\n color: #1890ff;\n}\n.ant-menu-horizontal::after {\n display: block;\n clear: both;\n height: 0;\n content: '\\20';\n}\n.ant-menu-vertical .ant-menu-item,\n.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-inline .ant-menu-item {\n position: relative;\n}\n.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-vertical-right .ant-menu-item::after,\n.ant-menu-inline .ant-menu-item::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n border-right: 3px solid #1890ff;\n -webkit-transform: scaleY(0.0001);\n -ms-transform: scaleY(0.0001);\n transform: scaleY(0.0001);\n opacity: 0;\n -webkit-transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n transition: opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n -o-transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n content: '';\n}\n.ant-menu-vertical .ant-menu-item,\n.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-inline .ant-menu-item,\n.ant-menu-vertical .ant-menu-submenu-title,\n.ant-menu-vertical-left .ant-menu-submenu-title,\n.ant-menu-vertical-right .ant-menu-submenu-title,\n.ant-menu-inline .ant-menu-submenu-title {\n height: 40px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 0 16px;\n overflow: hidden;\n font-size: 14px;\n line-height: 40px;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-menu-vertical .ant-menu-submenu,\n.ant-menu-vertical-left .ant-menu-submenu,\n.ant-menu-vertical-right .ant-menu-submenu,\n.ant-menu-inline .ant-menu-submenu {\n padding-bottom: 0.02px;\n}\n.ant-menu-vertical .ant-menu-item:not(:last-child),\n.ant-menu-vertical-left .ant-menu-item:not(:last-child),\n.ant-menu-vertical-right .ant-menu-item:not(:last-child),\n.ant-menu-inline .ant-menu-item:not(:last-child) {\n margin-bottom: 8px;\n}\n.ant-menu-vertical > .ant-menu-item,\n.ant-menu-vertical-left > .ant-menu-item,\n.ant-menu-vertical-right > .ant-menu-item,\n.ant-menu-inline > .ant-menu-item,\n.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {\n height: 40px;\n line-height: 40px;\n}\n.ant-menu-inline {\n width: 100%;\n}\n.ant-menu-inline .ant-menu-selected::after,\n.ant-menu-inline .ant-menu-item-selected::after {\n -webkit-transform: scaleY(1);\n -ms-transform: scaleY(1);\n transform: scaleY(1);\n opacity: 1;\n -webkit-transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-inline .ant-menu-item,\n.ant-menu-inline .ant-menu-submenu-title {\n width: calc(100% + 1px);\n}\n.ant-menu-inline .ant-menu-submenu-title {\n padding-right: 34px;\n}\n.ant-menu-inline-collapsed {\n width: 80px;\n}\n.ant-menu-inline-collapsed > .ant-menu-item,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {\n left: 0;\n padding: 0 32px !important;\n -o-text-overflow: clip;\n text-overflow: clip;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n display: none;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .anticon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon {\n margin: 0;\n font-size: 16px;\n line-height: 40px;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span {\n display: inline-block;\n max-width: 0;\n opacity: 0;\n}\n.ant-menu-inline-collapsed-tooltip {\n pointer-events: none;\n}\n.ant-menu-inline-collapsed-tooltip .anticon {\n display: none;\n}\n.ant-menu-inline-collapsed-tooltip a {\n color: rgba(255, 255, 255, 0.85);\n}\n.ant-menu-inline-collapsed .ant-menu-item-group-title {\n padding-right: 4px;\n padding-left: 4px;\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-menu-item-group-list {\n margin: 0;\n padding: 0;\n}\n.ant-menu-item-group-list .ant-menu-item,\n.ant-menu-item-group-list .ant-menu-submenu-title {\n padding: 0 16px 0 28px;\n}\n.ant-menu-root.ant-menu-vertical,\n.ant-menu-root.ant-menu-vertical-left,\n.ant-menu-root.ant-menu-vertical-right,\n.ant-menu-root.ant-menu-inline {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.ant-menu-sub.ant-menu-inline {\n padding: 0;\n border: 0;\n border-radius: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.ant-menu-sub.ant-menu-inline > .ant-menu-item,\n.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {\n height: 40px;\n line-height: 40px;\n list-style-position: inside;\n list-style-type: disc;\n}\n.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {\n padding-left: 32px;\n}\n.ant-menu-item-disabled,\n.ant-menu-submenu-disabled {\n color: rgba(0, 0, 0, 0.25) !important;\n background: none;\n border-color: transparent !important;\n cursor: not-allowed;\n}\n.ant-menu-item-disabled > a,\n.ant-menu-submenu-disabled > a {\n color: rgba(0, 0, 0, 0.25) !important;\n pointer-events: none;\n}\n.ant-menu-item-disabled > .ant-menu-submenu-title,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title {\n color: rgba(0, 0, 0, 0.25) !important;\n cursor: not-allowed;\n}\n.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n background: rgba(0, 0, 0, 0.25) !important;\n}\n.ant-menu-dark,\n.ant-menu-dark .ant-menu-sub {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n}\n.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow {\n opacity: 0.45;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n background: #fff;\n}\n.ant-menu-dark.ant-menu-submenu-popup {\n background: transparent;\n}\n.ant-menu-dark .ant-menu-inline.ant-menu-sub {\n background: #000c17;\n -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) inset;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) inset;\n}\n.ant-menu-dark.ant-menu-horizontal {\n border-bottom: 0;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu {\n top: 0;\n margin-top: 0;\n border-color: #001529;\n border-bottom: 0;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a::before {\n bottom: 0;\n}\n.ant-menu-dark .ant-menu-item,\n.ant-menu-dark .ant-menu-item-group-title,\n.ant-menu-dark .ant-menu-item > a {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-menu-dark.ant-menu-inline,\n.ant-menu-dark.ant-menu-vertical,\n.ant-menu-dark.ant-menu-vertical-left,\n.ant-menu-dark.ant-menu-vertical-right {\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical-right .ant-menu-item {\n left: 0;\n margin-left: 0;\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after {\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item,\n.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title {\n width: 100%;\n}\n.ant-menu-dark .ant-menu-item:hover,\n.ant-menu-dark .ant-menu-item-active,\n.ant-menu-dark .ant-menu-submenu-active,\n.ant-menu-dark .ant-menu-submenu-open,\n.ant-menu-dark .ant-menu-submenu-selected,\n.ant-menu-dark .ant-menu-submenu-title:hover {\n color: #fff;\n background-color: transparent;\n}\n.ant-menu-dark .ant-menu-item:hover > a,\n.ant-menu-dark .ant-menu-item-active > a,\n.ant-menu-dark .ant-menu-submenu-active > a,\n.ant-menu-dark .ant-menu-submenu-open > a,\n.ant-menu-dark .ant-menu-submenu-selected > a,\n.ant-menu-dark .ant-menu-submenu-title:hover > a {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow {\n opacity: 1;\n}\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before {\n background: #fff;\n}\n.ant-menu-dark .ant-menu-item:hover {\n background-color: transparent;\n}\n.ant-menu-dark .ant-menu-item-selected {\n color: #fff;\n border-right: 0;\n}\n.ant-menu-dark .ant-menu-item-selected::after {\n border-right: 0;\n}\n.ant-menu-dark .ant-menu-item-selected > a,\n.ant-menu-dark .ant-menu-item-selected > a:hover {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item-selected .anticon {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item-selected .anticon + span {\n color: #fff;\n}\n.ant-menu.ant-menu-dark .ant-menu-item-selected,\n.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {\n background-color: #1890ff;\n}\n.ant-menu-dark .ant-menu-item-disabled,\n.ant-menu-dark .ant-menu-submenu-disabled,\n.ant-menu-dark .ant-menu-item-disabled > a,\n.ant-menu-dark .ant-menu-submenu-disabled > a {\n color: rgba(255, 255, 255, 0.35) !important;\n opacity: 0.8;\n}\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title {\n color: rgba(255, 255, 255, 0.35) !important;\n}\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n background: rgba(255, 255, 255, 0.35) !important;\n}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1355:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1358:
|
|
/***/ (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;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1398:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(28);
|
|
|
|
__webpack_require__(1438);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1438:
|
|
/***/ (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__(1439);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1439:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(312)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
exports.push([module.i, ".ant-popover{-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:0;left:0;z-index:1030;font-weight:400;white-space:normal;text-align:left;cursor:auto;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ant-popover:after{position:absolute;background:hsla(0,0%,100%,.01);content:\"\"}.ant-popover-hidden{display:none}.ant-popover-placement-top,.ant-popover-placement-topLeft,.ant-popover-placement-topRight{padding-bottom:10px}.ant-popover-placement-right,.ant-popover-placement-rightBottom,.ant-popover-placement-rightTop{padding-left:10px}.ant-popover-placement-bottom,.ant-popover-placement-bottomLeft,.ant-popover-placement-bottomRight{padding-top:10px}.ant-popover-placement-left,.ant-popover-placement-leftBottom,.ant-popover-placement-leftTop{padding-right:10px}.ant-popover-inner{background-color:#fff;background-clip:padding-box;border-radius:4px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-box-shadow:0 0 8px rgba(0,0,0,.15)\\9;box-shadow:0 0 8px rgba(0,0,0,.15)\\9}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ant-popover-inner{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}}.ant-popover-title{min-width:177px;min-height:32px;margin:0;padding:5px 16px 4px;color:rgba(0,0,0,.85);font-weight:500;border-bottom:1px solid #e8e8e8}.ant-popover-inner-content{padding:12px 16px;color:rgba(0,0,0,.65)}.ant-popover-message{position:relative;padding:4px 0 12px;color:rgba(0,0,0,.65);font-size:14px}.ant-popover-message>.anticon{position:absolute;top:8px;color:#faad14;font-size:14px}.ant-popover-message-title{padding-left:22px}.ant-popover-buttons{margin-bottom:4px;text-align:right}.ant-popover-buttons button{margin-left:8px}.ant-popover-arrow{position:absolute;display:block;width:8.48528137px;height:8.48528137px;background:transparent;border-style:solid;border-width:4.24264069px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.ant-popover-placement-top>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-topLeft>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-topRight>.ant-popover-content>.ant-popover-arrow{bottom:6.2px;border-top-color:transparent;border-right-color:#fff;border-bottom-color:#fff;border-left-color:transparent;-webkit-box-shadow:3px 3px 7px rgba(0,0,0,.07);box-shadow:3px 3px 7px rgba(0,0,0,.07)}.ant-popover-placement-top>.ant-popover-content>.ant-popover-arrow{left:50%;-webkit-transform:translateX(-50%) rotate(45deg);-ms-transform:translateX(-50%) rotate(45deg);transform:translateX(-50%) rotate(45deg)}.ant-popover-placement-topLeft>.ant-popover-content>.ant-popover-arrow{left:16px}.ant-popover-placement-topRight>.ant-popover-content>.ant-popover-arrow{right:16px}.ant-popover-placement-right>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-rightBottom>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-rightTop>.ant-popover-content>.ant-popover-arrow{left:6px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#fff;border-left-color:#fff;-webkit-box-shadow:-3px 3px 7px rgba(0,0,0,.07);box-shadow:-3px 3px 7px rgba(0,0,0,.07)}.ant-popover-placement-right>.ant-popover-content>.ant-popover-arrow{top:50%;-webkit-transform:translateY(-50%) rotate(45deg);-ms-transform:translateY(-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}.ant-popover-placement-rightTop>.ant-popover-content>.ant-popover-arrow{top:12px}.ant-popover-placement-rightBottom>.ant-popover-content>.ant-popover-arrow{bottom:12px}.ant-popover-placement-bottom>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-bottomLeft>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-bottomRight>.ant-popover-content>.ant-popover-arrow{top:6px;border-top-color:#fff;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#fff;-webkit-box-shadow:-2px -2px 5px rgba(0,0,0,.06);box-shadow:-2px -2px 5px rgba(0,0,0,.06)}.ant-popover-placement-bottom>.ant-popover-content>.ant-popover-arrow{left:50%;-webkit-transform:translateX(-50%) rotate(45deg);-ms-transform:translateX(-50%) rotate(45deg);transform:translateX(-50%) rotate(45deg)}.ant-popover-placement-bottomLeft>.ant-popover-content>.ant-popover-arrow{left:16px}.ant-popover-placement-bottomRight>.ant-popover-content>.ant-popover-arrow{right:16px}.ant-popover-placement-left>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-leftBottom>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-leftTop>.ant-popover-content>.ant-popover-arrow{right:6px;border-top-color:#fff;border-right-color:#fff;border-bottom-color:transparent;border-left-color:transparent;-webkit-box-shadow:3px -3px 7px rgba(0,0,0,.07);box-shadow:3px -3px 7px rgba(0,0,0,.07)}.ant-popover-placement-left>.ant-popover-content>.ant-popover-arrow{top:50%;-webkit-transform:translateY(-50%) rotate(45deg);-ms-transform:translateY(-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}.ant-popover-placement-leftTop>.ant-popover-content>.ant-popover-arrow{top:12px}.ant-popover-placement-leftBottom>.ant-popover-content>.ant-popover-arrow{bottom:12px}", "", {"version":3,"sources":["/Users/hs/edu/educoder/public/react/node_modules/antd/lib/popover/style/index.css"],"names":[],"mappings":"AAIA,aACE,8BAA+B,AACvB,sBAAuB,AAC/B,SAAU,AACV,UAAW,AACX,sBAA2B,AAC3B,eAAgB,AAChB,0BAA2B,AAC3B,gBAAiB,AACjB,gBAAiB,AACjB,qCAAsC,AAC9B,6BAA8B,AACtC,kBAAmB,AACnB,MAAO,AACP,OAAQ,AACR,aAAc,AACd,gBAAoB,AACpB,mBAAoB,AACpB,gBAAiB,AACjB,YAAa,AACb,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC3B,AACD,mBACE,kBAAmB,AACnB,+BAAsC,AACtC,UAAY,CACb,AACD,oBACE,YAAc,CACf,AACD,0FAGE,mBAAqB,CACtB,AACD,gGAGE,iBAAmB,CACpB,AACD,mGAGE,gBAAkB,CACnB,AACD,6FAGE,kBAAoB,CACrB,AACD,mBACE,sBAAuB,AACvB,4BAA6B,AAC7B,kBAAmB,AACnB,6CAAkD,AAC1C,qCAA0C,AAClD,6CAAmD,AAC3C,oCAA2C,CACpD,AACD,sEAIE,mBACE,6CAAkD,AAC1C,oCAA0C,CACnD,CACF,AACD,mBACE,gBAAiB,AACjB,gBAAiB,AACjB,SAAU,AACV,qBAAsB,AACtB,sBAA2B,AAC3B,gBAAiB,AACjB,+BAAiC,CAClC,AACD,2BACE,kBAAmB,AACnB,qBAA2B,CAC5B,AACD,qBACE,kBAAmB,AACnB,mBAAoB,AACpB,sBAA2B,AAC3B,cAAgB,CACjB,AACD,8BACE,kBAAmB,AACnB,QAAS,AACT,cAAe,AACf,cAAgB,CACjB,AACD,2BACE,iBAAmB,CACpB,AACD,qBACE,kBAAmB,AACnB,gBAAkB,CACnB,AACD,4BACE,eAAiB,CAClB,AACD,mBACE,kBAAmB,AACnB,cAAe,AACf,mBAAoB,AACpB,oBAAqB,AACrB,uBAAwB,AACxB,mBAAoB,AACpB,0BAA2B,AAC3B,gCAAiC,AAC7B,4BAA6B,AACzB,uBAAyB,CAClC,AACD,kNAGE,aAAc,AACd,6BAA8B,AAC9B,wBAAyB,AACzB,yBAA0B,AAC1B,8BAA+B,AAC/B,+CAAoD,AAC5C,sCAA4C,CACrD,AACD,mEACE,SAAU,AACV,iDAAkD,AAC9C,6CAA8C,AAC1C,wCAA0C,CACnD,AACD,uEACE,SAAW,CACZ,AACD,wEACE,UAAY,CACb,AACD,wNAGE,SAAU,AACV,6BAA8B,AAC9B,+BAAgC,AAChC,yBAA0B,AAC1B,uBAAwB,AACxB,gDAAqD,AAC7C,uCAA6C,CACtD,AACD,qEACE,QAAS,AACT,iDAAkD,AAC9C,6CAA8C,AAC1C,wCAA0C,CACnD,AACD,wEACE,QAAU,CACX,AACD,2EACE,WAAa,CACd,AACD,2NAGE,QAAS,AACT,sBAAuB,AACvB,+BAAgC,AAChC,gCAAiC,AACjC,uBAAwB,AACxB,iDAAsD,AAC9C,wCAA8C,CACvD,AACD,sEACE,SAAU,AACV,iDAAkD,AAC9C,6CAA8C,AAC1C,wCAA0C,CACnD,AACD,0EACE,SAAW,CACZ,AACD,2EACE,UAAY,CACb,AACD,qNAGE,UAAW,AACX,sBAAuB,AACvB,wBAAyB,AACzB,gCAAiC,AACjC,8BAA+B,AAC/B,gDAAqD,AAC7C,uCAA6C,CACtD,AACD,oEACE,QAAS,AACT,iDAAkD,AAC9C,6CAA8C,AAC1C,wCAA0C,CACnD,AACD,uEACE,QAAU,CACX,AACD,0EACE,WAAa,CACd","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-popover {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1030;\n font-weight: normal;\n white-space: normal;\n text-align: left;\n cursor: auto;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ant-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: '';\n}\n.ant-popover-hidden {\n display: none;\n}\n.ant-popover-placement-top,\n.ant-popover-placement-topLeft,\n.ant-popover-placement-topRight {\n padding-bottom: 10px;\n}\n.ant-popover-placement-right,\n.ant-popover-placement-rightTop,\n.ant-popover-placement-rightBottom {\n padding-left: 10px;\n}\n.ant-popover-placement-bottom,\n.ant-popover-placement-bottomLeft,\n.ant-popover-placement-bottomRight {\n padding-top: 10px;\n}\n.ant-popover-placement-left,\n.ant-popover-placement-leftTop,\n.ant-popover-placement-leftBottom {\n padding-right: 10px;\n}\n.ant-popover-inner {\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 4px;\n -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \\9;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \\9;\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ant-popover {\n /* IE10+ */\n }\n .ant-popover-inner {\n -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n }\n}\n.ant-popover-title {\n min-width: 177px;\n min-height: 32px;\n margin: 0;\n padding: 5px 16px 4px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n border-bottom: 1px solid #e8e8e8;\n}\n.ant-popover-inner-content {\n padding: 12px 16px;\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-popover-message {\n position: relative;\n padding: 4px 0 12px;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n}\n.ant-popover-message > .anticon {\n position: absolute;\n top: 8px;\n color: #faad14;\n font-size: 14px;\n}\n.ant-popover-message-title {\n padding-left: 22px;\n}\n.ant-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.ant-popover-buttons button {\n margin-left: 8px;\n}\n.ant-popover-arrow {\n position: absolute;\n display: block;\n width: 8.48528137px;\n height: 8.48528137px;\n background: transparent;\n border-style: solid;\n border-width: 4.24264069px;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow {\n bottom: 6.2px;\n border-top-color: transparent;\n border-right-color: #fff;\n border-bottom-color: #fff;\n border-left-color: transparent;\n -webkit-box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow {\n left: 50%;\n -webkit-transform: translateX(-50%) rotate(45deg);\n -ms-transform: translateX(-50%) rotate(45deg);\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow {\n left: 16px;\n}\n.ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow {\n right: 16px;\n}\n.ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-rightBottom > .ant-popover-content > .ant-popover-arrow {\n left: 6px;\n border-top-color: transparent;\n border-right-color: transparent;\n border-bottom-color: #fff;\n border-left-color: #fff;\n -webkit-box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow {\n top: 50%;\n -webkit-transform: translateY(-50%) rotate(45deg);\n -ms-transform: translateY(-50%) rotate(45deg);\n transform: translateY(-50%) rotate(45deg);\n}\n.ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow {\n top: 12px;\n}\n.ant-popover-placement-rightBottom > .ant-popover-content > .ant-popover-arrow {\n bottom: 12px;\n}\n.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {\n top: 6px;\n border-top-color: #fff;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: #fff;\n -webkit-box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);\n box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);\n}\n.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow {\n left: 50%;\n -webkit-transform: translateX(-50%) rotate(45deg);\n -ms-transform: translateX(-50%) rotate(45deg);\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow {\n left: 16px;\n}\n.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {\n right: 16px;\n}\n.ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-leftBottom > .ant-popover-content > .ant-popover-arrow {\n right: 6px;\n border-top-color: #fff;\n border-right-color: #fff;\n border-bottom-color: transparent;\n border-left-color: transparent;\n -webkit-box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow {\n top: 50%;\n -webkit-transform: translateY(-50%) rotate(45deg);\n -ms-transform: translateY(-50%) rotate(45deg);\n transform: translateY(-50%) rotate(45deg);\n}\n.ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow {\n top: 12px;\n}\n.ant-popover-placement-leftBottom > .ant-popover-content > .ant-popover-arrow {\n bottom: 12px;\n}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1473:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
|
|
|
var _reactLifecyclesCompat = __webpack_require__(7);
|
|
|
|
var _tooltip = _interopRequireDefault(__webpack_require__(168));
|
|
|
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
|
|
|
var _button = _interopRequireDefault(__webpack_require__(74));
|
|
|
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(71));
|
|
|
|
var _default2 = _interopRequireDefault(__webpack_require__(180));
|
|
|
|
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 _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
|
|
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 Popconfirm =
|
|
/*#__PURE__*/
|
|
function (_React$Component) {
|
|
_inherits(Popconfirm, _React$Component);
|
|
|
|
function Popconfirm(props) {
|
|
var _this;
|
|
|
|
_classCallCheck(this, Popconfirm);
|
|
|
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Popconfirm).call(this, props));
|
|
|
|
_this.onConfirm = function (e) {
|
|
_this.setVisible(false, e);
|
|
|
|
var onConfirm = _this.props.onConfirm;
|
|
|
|
if (onConfirm) {
|
|
onConfirm.call(_assertThisInitialized(_this), e);
|
|
}
|
|
};
|
|
|
|
_this.onCancel = function (e) {
|
|
_this.setVisible(false, e);
|
|
|
|
var onCancel = _this.props.onCancel;
|
|
|
|
if (onCancel) {
|
|
onCancel.call(_assertThisInitialized(_this), e);
|
|
}
|
|
};
|
|
|
|
_this.onVisibleChange = function (visible) {
|
|
var disabled = _this.props.disabled;
|
|
|
|
if (disabled) {
|
|
return;
|
|
}
|
|
|
|
_this.setVisible(visible);
|
|
};
|
|
|
|
_this.saveTooltip = function (node) {
|
|
_this.tooltip = node;
|
|
};
|
|
|
|
_this.renderOverlay = function (prefixCls, popconfirmLocale) {
|
|
var _this$props = _this.props,
|
|
okButtonProps = _this$props.okButtonProps,
|
|
cancelButtonProps = _this$props.cancelButtonProps,
|
|
title = _this$props.title,
|
|
cancelText = _this$props.cancelText,
|
|
okText = _this$props.okText,
|
|
okType = _this$props.okType,
|
|
icon = _this$props.icon;
|
|
return React.createElement("div", null, React.createElement("div", {
|
|
className: "".concat(prefixCls, "-inner-content")
|
|
}, React.createElement("div", {
|
|
className: "".concat(prefixCls, "-message")
|
|
}, icon, React.createElement("div", {
|
|
className: "".concat(prefixCls, "-message-title")
|
|
}, title)), React.createElement("div", {
|
|
className: "".concat(prefixCls, "-buttons")
|
|
}, React.createElement(_button["default"], _extends({
|
|
onClick: _this.onCancel,
|
|
size: "small"
|
|
}, cancelButtonProps), cancelText || popconfirmLocale.cancelText), React.createElement(_button["default"], _extends({
|
|
onClick: _this.onConfirm,
|
|
type: okType,
|
|
size: "small"
|
|
}, okButtonProps), okText || popconfirmLocale.okText))));
|
|
};
|
|
|
|
_this.renderConfirm = function (_ref) {
|
|
var getPrefixCls = _ref.getPrefixCls;
|
|
|
|
var _a = _this.props,
|
|
customizePrefixCls = _a.prefixCls,
|
|
placement = _a.placement,
|
|
restProps = __rest(_a, ["prefixCls", "placement"]);
|
|
|
|
var prefixCls = getPrefixCls('popover', customizePrefixCls);
|
|
var overlay = React.createElement(_LocaleReceiver["default"], {
|
|
componentName: "Popconfirm",
|
|
defaultLocale: _default2["default"].Popconfirm
|
|
}, function (popconfirmLocale) {
|
|
return _this.renderOverlay(prefixCls, popconfirmLocale);
|
|
});
|
|
return React.createElement(_tooltip["default"], _extends({}, restProps, {
|
|
prefixCls: prefixCls,
|
|
placement: placement,
|
|
onVisibleChange: _this.onVisibleChange,
|
|
visible: _this.state.visible,
|
|
overlay: overlay,
|
|
ref: _this.saveTooltip
|
|
}));
|
|
};
|
|
|
|
_this.state = {
|
|
visible: props.visible
|
|
};
|
|
return _this;
|
|
}
|
|
|
|
_createClass(Popconfirm, [{
|
|
key: "getPopupDomNode",
|
|
value: function getPopupDomNode() {
|
|
return this.tooltip.getPopupDomNode();
|
|
}
|
|
}, {
|
|
key: "setVisible",
|
|
value: function setVisible(visible, e) {
|
|
var props = this.props;
|
|
|
|
if (!('visible' in props)) {
|
|
this.setState({
|
|
visible: visible
|
|
});
|
|
}
|
|
|
|
var onVisibleChange = props.onVisibleChange;
|
|
|
|
if (onVisibleChange) {
|
|
onVisibleChange(visible, e);
|
|
}
|
|
}
|
|
}, {
|
|
key: "render",
|
|
value: function render() {
|
|
return React.createElement(_configProvider.ConfigConsumer, null, this.renderConfirm);
|
|
}
|
|
}], [{
|
|
key: "getDerivedStateFromProps",
|
|
value: function getDerivedStateFromProps(nextProps) {
|
|
if ('visible' in nextProps) {
|
|
return {
|
|
visible: nextProps.visible
|
|
};
|
|
}
|
|
|
|
if ('defaultVisible' in nextProps) {
|
|
return {
|
|
visible: nextProps.defaultVisible
|
|
};
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}]);
|
|
|
|
return Popconfirm;
|
|
}(React.Component);
|
|
|
|
Popconfirm.defaultProps = {
|
|
transitionName: 'zoom-big',
|
|
placement: 'top',
|
|
trigger: 'click',
|
|
okType: 'primary',
|
|
icon: React.createElement(_icon["default"], {
|
|
type: "exclamation-circle",
|
|
theme: "filled"
|
|
}),
|
|
disabled: false
|
|
};
|
|
(0, _reactLifecyclesCompat.polyfill)(Popconfirm);
|
|
var _default = Popconfirm;
|
|
exports["default"] = _default;
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1474:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(28);
|
|
|
|
__webpack_require__(1398);
|
|
|
|
__webpack_require__(87);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1490:
|
|
/***/ (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__(1504);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1504:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(312)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
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_right{-ms-flex-positive:1;flex-grow:1;text-align:right}.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 #eee}.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}.margin_detail{margin-left:15px;margin-right:15px}.user_img{height:49px;width:49px;border-radius:100%}.new_context{-ms-flex:1 1;flex:1 1;border:1px solid #f4f4f4;border-radius:4px;margin-left:15px;padding:15px;position:relative;background:#fff}.new_context:before{border:solid transparent;border-right-color:#f4f4f4;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 #f4f4f4;border-radius:4px;padding:10px 15px}.list-l-panel .ant-row{margin-bottom:0}.editingsheet{background:#fff;color:#21ba45!important;padding:0 12px;text-align:center;height:32px;line-height:32px}.opendetail{background:#21ba45}.closedetail,.opendetail{display:inline-block;color:#fff!important;padding:0 12px;text-align:center;height:32px;border-radius:4px;line-height:32px}.closedetail{background:#e60b0b}.commenttitle{color:#21ba45!important}.topWrapper_detali{display:-ms-flexbox;display:flex;background-color:#eee;-ms-flex-align:center;align-items:center}.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:10px solid #4cacff}.list_img{height:145px;padding:15px;width:145px}.detail_context{-ms-flex:1 1;flex:1 1;border:1px solid #f4f4f4;margin-left:15px;padding:10px;position:relative;background:#fff;border-radius:4px}.detail_context:before{border:solid transparent;border-right-color:#f4f4f4;border-width:9px;top:12px}.detail_context:after,.detail_context:before{position:absolute;content:\"\";height:0;width:0;right:100%}.detail_context:after{border:solid transparent;border-right-color:#fff;border-width:7px;top:14px}.tagList>div{border-bottom:1px dashed #f4f4f4;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;padding:15px 0}.divwidth{width:74%}.listTowItems{width:80%;padding-left:80px}.detail_ptitlecount{padding:15px}.tagList>div:last-child{border-bottom:none}.mr10{margin-right:10px}.text-right{text-align:right}.tagColor{display:inline-block;width:20px;height:15px;border-radius:4px;margin-right:5px;vertical-align:middle}.milepostdiv,.milepostwidth{display:-ms-flexbox;display:flex}.milepostwidth{width:60%}.mileposwidth{background:#21ba45;border-radius:4px;width:40%}.milepostrighe{width:80%}.milepostleft,.milepostrighe{display:-ms-flexbox;display:flex}.milepostleft{text-align:right;-ms-flex-pack:right;justify-content:right;width:20%}.textwidth{display:-ms-flexbox;display:flex;width:100%}.newmilepostleft{padding:15px;margin-right:50px;width:60%}.newmilepostrighe{margin-left:50px;padding:15px;width:30%}.detailContent{padding:15px 0;border-bottom:1px solid #f4f4f4}.DetailRight{padding:10px 15px;border:1px solid #f4f4f4;border-radius:4px}.DetailRight>p{height:30px;line-height:30px}.inptwidth{width:20%}.inputcount{width:40%}.tagdiv{padding:15px;height:75px;border:1px solid #eee}.dialogdiv,.tagdiv{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}.dialogdiv{padding:5px;height:45px}.issue-tag-show{padding:3px 8px;color:#fff;border-radius:6px}.span_title{min-width:90px;margin-right:15px;text-align:right;color:rgba(0,0,0,.65)}.target-detail-search .ant-input-group-addon{border:none!important}.target-detail-search .ant-input-search-button{height:32px!important}a.issue-type-button.active{background:#4cacff;color:#fff}a.issue-type-button.active:hover{background:#f4f4f4;color:#4cacff}@media screen and (max-width:700px){.topWrapper_select li{width:auto}}.ml10{margin-left:10px}.lineH32{line-height:32px}.lineH40{line-height:40px}.item-list-right{width:74%;padding:10px 15px 10px 0}.detail_edit_action{padding:10px;color:#999;cursor:pointer;line-height:40px}.attachmentsList{margin-left:4px}.paper-clip-color{color:#29bd8b!important}.attachment-list-delete{display:none}.attachment-list-div:hover{background-color:#e6f7ff}.attachment-list-div:hover .attachment-list-delete{display:block!important}.attachment-list-a{color:rgba(0,0,0,.65)!important}.btp1{border-top:1px solid #f4f4f4}.grid-item{display:grid;-ms-flex-align:center;align-items:center;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}", "", {"version":3,"sources":["/Users/hs/edu/educoder/public/react/src/forge/Order/order.css"],"names":[],"mappings":"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","file":"order.css","sourcesContent":[".topWrapper {\n padding: 20px 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n border-bottom: 1px solid #EEEEEE;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.topWrapper_nav{\n display: -ms-flexbox;\n display: flex;\n\n}\n.detail_p{\n display: -ms-flexbox;\n display: flex;\n /*padding:10px;*/\n /*width: 80%;*/\n /*padding-left: 15px;*/\n /*margin: auto;*/\n}\n\n.detail_right{\n /*display: flex;*/\n -ms-flex-positive: 1;\n flex-grow: 1;\n text-align: right;\n /*width: 15%;*/\n /*padding-left: 15px;*/\n /*margin: auto; */\n}\n.commit_p{\n font-size: 12px;\n padding-top: 10px;\n padding-left: 5px;\n}\n\n.ul_width{\n width: 100%;\n}\n.a_btn{\n border-radius:4px;\n padding:0 12px;\n margin-right: 15px;\n line-height: 30px;\n}\n.cancel_btn{\n border:1px solid #e6e6e6;\n color: #333 !important;\n}\n.delete_btn{\n border:1px solid red;\n color: red !important;\n}\n.cancel_btn:hover{background: #e6e6e6}\n.Closeor_btn{\n border:1px solid red;\n color: red;\n height: 32px;\n text-align: center;\n border-radius:4px;\n padding:0px 12px;\n margin-right: 15px;\n line-height: 32px;\n\n}\n.rectangle {\n width: 8px;\n height: 8px;\n border-radius: 100%;\n margin-top: 15px;\n margin-left: -4px;\n margin-bottom: 10px;\n background: green;\n }\n .order_line{\n display: -ms-flexbox;\n display: flex;\n height: 32px;\n margin: auto;\n border-left:1px solid #eee;\n }\n .comment_img{\n height: 25px;\n width: 25px;\n margin-top: 5px;\n border-radius: 100%;\n }\n\n.topWrapper_nav a,.topWrapper_nav span{\n border:1px solid #f4f4f4;\n border-radius: 5px 0px 0px 5px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n padding:0px 10px;\n display: block;\n cursor: pointer;\n}\n.topWrapper_nav a:hover{\n background: #f4f4f4;\n}\n.topWrapper_nav a:last-child,.topWrapper_nav span:last-child{\n border-left: none;\n border-radius: 0px 5px 5px 0px;\n}\n.topWrapper_btn {\n background: #21ba45;\n color: #FFFFFF!important;\n padding:0px 12px;\n text-align: center;\n height: 32px;\n line-height: 32px;\n border-radius: 4px;\n}\n.topWrapper_type{\n border:1px solid #f4f4f4;\n border-radius: 6px;\n display: -ms-flexbox;\n display: flex;\n}\n.topWrapper_type li{\n height: 30px;\n line-height: 30px;\n border-left:1px solid #f4f4f4;\n padding:0px 8px;\n cursor: pointer;\n color: #666\n}\n.topWrapper_type li.active{\n color: #4CACFF;\n}\n.topWrapper_type li:first-child{\n border-left: none;\n}\n.topWrapper_select{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: center;\n align-items: center;\n}\n.topWrapper .ant-btn.ant-input-search-button{\n height: 30px;\n}\n.topWrapper_select li{\n text-align: center;\n cursor: pointer;\n color: #666;\n width:90px;\n text-align: center;\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.topWrapper_select li:active{\n background: #f4f4f4;\n border-radius: 4px;\n}\n.ant-dropdown-menu .ant-dropdown-menu-item{\n text-align: center;\n padding:6px 30px;\n cursor: pointer;\n}\n.issueItem{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-line-pack: center;\n align-content: center;\n border-bottom:1px dashed #f4f4f4;\n padding:16px 0px;\n}\n.issueItem:first-child{\n border-top:1px dashed #f4f4f4;\n}\n.issueNo{\n padding:0px 5px;\n border-radius: 4px;\n background: #f4f4f4;\n display: block;\n margin-right: 8px;\n color:#666;\n height: 30px;\n line-height: 30px;\n}\n\n.margin_detail{\n margin-left: 15px;\n margin-right: 15px;\n}\n\n/* 新建 */\n.user_img {\n height: 49px;\n width: 49px;\n border-radius: 100%;\n}\n.new_context {\n -ms-flex: 1 1;\n flex: 1 1;\n border: 1px solid #f4f4f4;\n border-radius: 4px;\n margin-left: 15px;\n padding: 15px;\n position: relative;\n background: #FFFFFF;\n}\n.new_context:before {\n position: absolute;\n content: \"\";\n height: 0;\n width: 0;\n border: solid transparent;\n border-right-color: #f4f4f4;\n border-width: 9px;\n top: 12px;\n right: 100%;\n}\n.new_context::after {\n position: absolute;\n content: \"\";\n height: 0;\n width: 0;\n border: solid transparent;\n border-right-color: #fff;\n border-width: 7px;\n top: 14px;\n right: 100%;\n}\n.list-l-panel{\n border:1px solid #f4f4f4;\n border-radius: 4px;\n padding:10px 15px;\n}\n.list-l-panel .ant-row{\n margin-bottom: 0px;\n}\n\n /*编辑工单*/\n .editingsheet{\n background: #ffffff;\n color: #21ba45!important;\n padding:0px 12px;\n text-align: center;\n height: 32px;\n line-height: 32px;\n}\n/*开启中 关闭中*/\n.opendetail{\n display: inline-block;\n background: #21ba45;\n color: #ffffff!important;\n padding:0px 12px;\n text-align: center;\n height: 32px;\n /*width: 110px;*/\n border-radius: 4px;\n line-height: 32px;\n}\n.closedetail{\n display: inline-block;\n background: #e60b0b;\n color: #ffffff!important;\n padding:0px 12px;\n text-align: center;\n height: 32px;\n /*width: 110px;*/\n border-radius: 4px;\n line-height: 32px;\n}\n\n.commenttitle{\n color: #21ba45!important;\n}\n\n.topWrapper_detali{\n display: -ms-flexbox;\n display: flex;\n /*height: 35px;*/\n background-color: #eee;\n -ms-flex-align: center;\n align-items: center;\n}\n.towwrapper_img_detali{\n display: -ms-flexbox;\n display: flex;\n padding-left: 80px;\n margin-left: 80px;\n margin-right: 20px;\n border: 1px solid #4CACFF;\n}\n.div_line{\n width: 100%;\n border: 10px solid #4CACFF;\n \n}\n.list_img{\n height: 145px;\n padding: 15px;\n width: 145px;\n}\n\n.detail_context {\n -ms-flex: 1 1;\n flex: 1 1;\n border: 1px solid #f4f4f4;\n margin-left: 15px;\n padding: 10px;\n /*padding-top: 0px;*/\n /*padding-left: 0px;*/\n /*margin-right: 15px;*/\n position: relative;\n background: #FFFFFF;\n border-radius: 4px;\n}\n.detail_context:before {\n position: absolute;\n content: \"\";\n height: 0;\n width: 0;\n border: solid transparent;\n border-right-color: #f4f4f4;\n border-width: 9px;\n top: 12px;\n right: 100%;\n}\n.detail_context::after {\n position: absolute;\n content: \"\";\n height: 0;\n width: 0;\n border: solid transparent;\n border-right-color: #fff;\n border-width: 7px;\n top: 14px;\n right: 100%;\n}\n/* 工单标签列表 */\n.tagList > div{\n border-bottom: 1px dashed #f4f4f4;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n padding:15px 0px;\n}\n.divwidth{\n width: 74%;\n}\n.listTowItems{\n width: 80%;\n padding-left: 80px;\n}\n.detail_ptitlecount{\n padding: 15px;\n}\n\n.tagList > div:last-child{\n border-bottom: none;\n}\n.mr10{margin-right: 10px;}\n.text-right{text-align: right;}\n/*.tagList > div > span{*/\n /*display: block*/\n/*}*/\n/*.tagList > div > span:nth-child(2){*/\n /*width: 450px;*/\n/*}*/\n.tagColor{\n display: inline-block;\n width:20px;\n height: 15px;\n border-radius: 4px;\n margin-right: 5px;\n vertical-align: middle;\n}\n\n/*里程碑*/\n.milepostdiv{\n display: -ms-flexbox;\n display: flex;\n}\n.milepostwidth{\n display: -ms-flexbox;\n display: flex;\n width: 60%;\n}\n.mileposwidth{\n background: #21ba45;\n border-radius: 4px;\n width: 40%;\n}\n.milepostrighe{\n display: -ms-flexbox;\n display: flex;\n width: 80%;\n}\n.milepostleft{\n text-align: right;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: right;\n justify-content: right;\n width: 20%;\n}\n.textwidth{\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n}\n.newmilepostleft{\n padding: 15px;\n margin-right: 50px;\n width: 60%;\n}\n.newmilepostrighe{\n margin-left: 50px;\n padding: 15px;\n width: 30%;\n}\n/* 工单详情 */\n.detailContent{\n padding:15px 0px;\n border-bottom: 1px solid #f4f4f4;\n}\n.DetailRight{\n padding: 10px 15px; \n border:1px solid #f4f4f4;\n border-radius: 4px;\n}\n.DetailRight > p{\n height: 30px;\n line-height:30px;\n}\n.inptwidth{\n width: 20%;\n}\n.inputcount{\n width: 40%;\n}\n\n.tagdiv{\n padding: 15px;\n height: 75px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n border: 1px solid #EEEEEE;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n\n.dialogdiv{\n padding: 5px;\n height: 45px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.issue-tag-show{padding: 3px 8px; color: #fff; border-radius: 6px;}\n\n/*.DetailRight > p >span:nth-child(1){*/\n /*min-width: 90px;*/\n /*margin-right: 15px;*/\n /*text-align: right;*/\n/*}*/\n.span_title{\n min-width: 90px;\n margin-right: 15px;\n text-align: right;\n color: rgba(0, 0, 0, 0.65);\n}\n.target-detail-search .ant-input-group-addon{border: none !important;}\n.target-detail-search .ant-input-search-button{height: 32px !important;}\na.issue-type-button.active{background: #4CACFF; color: #fff;}\na.issue-type-button.active:hover{background: #f4f4f4; color: #4CACFF;}\n@media screen and (max-width: 700px){\n .topWrapper_select li{\n width:auto;\n }\n}\n.ml10{margin-left: 10px;}\n.lineH32{line-height: 32px;}\n.lineH40{line-height: 40px;}\n.item-list-right{width: 74%; padding: 10px 15px 10px 0}\n.detail_edit_action{padding:10px; color: #999; cursor: pointer; line-height: 40px;}\n.attachmentsList{\n margin-left:4px;\n}\n.paper-clip-color{color:#29bd8b !important}\n.attachment-list-delete{display: none;}\n.attachment-list-div:hover{background-color: #e6f7ff;}\n.attachment-list-div:hover .attachment-list-delete{display: block !important;}\n.attachment-list-a{color: rgba(0, 0, 0, 0.65) !important;}\n.btp1{border-top: 1px solid #f4f4f4;}\n.grid-item{display: grid; -ms-flex-align: center; align-items: center; grid-template-columns: -webkit-max-content 1fr; grid-template-columns: max-content 1fr;}"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1516:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1564:
|
|
/***/ (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__(1490);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__order_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__order_css__);
|
|
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;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);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1661:
|
|
/***/ (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);
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3311:
|
|
/***/ (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__(1358));
|
|
|
|
var _findDOMNode = _interopRequireDefault(__webpack_require__(1661));
|
|
|
|
var _copyToClipboard = _interopRequireDefault(__webpack_require__(4793));
|
|
|
|
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__(1355));
|
|
|
|
var _raf = _interopRequireDefault(__webpack_require__(182));
|
|
|
|
var _styleChecker = _interopRequireDefault(__webpack_require__(1516));
|
|
|
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
|
|
|
var _tooltip = _interopRequireDefault(__webpack_require__(168));
|
|
|
|
var _Typography = _interopRequireDefault(__webpack_require__(3596));
|
|
|
|
var _Editable = _interopRequireDefault(__webpack_require__(4795));
|
|
|
|
var _util = _interopRequireDefault(__webpack_require__(4796));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3596:
|
|
/***/ (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__(4791);
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4786:
|
|
/***/ (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__(982);
|
|
/* 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__(978);
|
|
/* 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_popconfirm_style_css__ = __webpack_require__(1474);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_popconfirm_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_popconfirm_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_popconfirm__ = __webpack_require__(1473);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_popconfirm___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_popconfirm__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_pagination_style_css__ = __webpack_require__(903);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_pagination_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_pagination_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_pagination__ = __webpack_require__(904);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_pagination__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_menu_style_css__ = __webpack_require__(987);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_menu_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_menu_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_menu__ = __webpack_require__(922);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_typography_style_css__ = __webpack_require__(4787);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_typography_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_antd_lib_typography_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_typography__ = __webpack_require__(4790);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_typography___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_antd_lib_typography__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_react_router_dom__ = __webpack_require__(44);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Nav__ = __webpack_require__(1564);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__modules_courses_coursesPublic_NoneData__ = __webpack_require__(328);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_axios__ = __webpack_require__(15);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_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_11_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,order_name){var projectsId=_this.props.match.params.projectsId;var limit=_this.state.limit;var url='/projects/'+projectsId+'/versions.json';__WEBPACK_IMPORTED_MODULE_16_axios___default.a.get(url,{params:{projectsId:projectsId,page:page,limit:limit,status:status,order_type:order_type,order_name:order_name}}).then(function(result){if(result){_this.setState({data:result.data});}}).catch(function(error){console.log(error);});};_this.opneMilelist=function(type){var order_name=_this.state.order_name;if(type){var current_user=_this.props.current_user;if(type===1){_this.setState({status:'open',openselect:current_user.user_id,closeselect:undefined});_this.getList(1,'open','desc',order_name);}else{_this.setState({status:'closed',openselect:undefined,closeselect:current_user.user_id});_this.getList(1,'closed','desc',order_name);}}};_this.updatestatusemile=function(status,arr){var projectsId=_this.props.match.params.projectsId;var url='/projects/'+projectsId+'/versions/'+arr.id+'/update_status';var current_user=_this.props.current_user;__WEBPACK_IMPORTED_MODULE_16_axios___default.a.post(url,{project_id:projectsId,id:arr.id,status:status}).then(function(result){if(result){_this.setState({status:status,closeselect:status==="closed"?current_user.user_id:undefined,openselect:status==="closed"?undefined:current_user.user_id});_this.getList(1,status,'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_16_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,e.key);};_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',openselect:1,closeselect:undefined,order_name:undefined};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,openselect=_state.openselect,closeselect=_state.closeselect;var projectsId=this.props.match.params.projectsId;var menu=__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a,{onClick:this.arrayList},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a.Item,{key:'created_on',value:'desc'},'\u5230\u671F\u65E5\u4ECE\u8FD1\u5230\u8FDC'),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a.Item,{key:'created_on',value:'asc'},'\u5230\u671F\u65E5\u4ECE\u8FDC\u5230\u8FD1'),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a.Item,{key:'issues_count',value:'desc'},'\u5B8C\u6210\u5EA6\u4ECE\u4F4E\u5230\u9AD8'),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a.Item,{key:'issues_count',value:'asc'},'\u5B8C\u6210\u5EA6\u4ECE\u9AD8\u5230\u4F4E'),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a.Item,{key:'percent',value:'asc'},'\u5DE5\u5355\u4ECE\u591A\u5230\u5C11'),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_menu___default.a.Item,{key:'percent',value:'asc'},'\u5DE5\u5355\u4ECE\u5C11\u5230\u591A'));var Paginations=__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12_react___default.a.Fragment,null,data&&data.issue_tags_count>limit?__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'mt30 mb50 edu-txt-center'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_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_12_react___default.a.createElement('div',{className:'tagList'},data.versions.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{style:{display:'block'}},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'milepostdiv'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'milepostwidth'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item width100'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-lubiaosignpost3 font-12 mr3'}),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13_react_router_dom__["b" /* Link */],{to:'/projects/'+projectsId+'/orders/'+item.id+'/MilepostDetail',className:'font-16'},item.name)))),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'milepostdiv',style:{marginTop:5}},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'milepostrighe'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item mr10'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-rili font-14 mr5'}),item.effective_date?__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('span',{className:'color-red'},item.effective_date):__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('span',{className:'color-grey-c'},'\u6682\u65E0\u622A\u6B62\u65F6\u95F4')),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item mr10 color-grey-9'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-issue font-14 mr5'}),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('span',null,item.open_issues_count,'\u4E2A\u5F00\u542F')),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item mr10 color-grey-9'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-shanchudiao font-14 mr5'}),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('span',null,item.close_issues_count,'\u4E2A\u5173\u95ED'))),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'milepostleft'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item mr15 color-grey-9'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-bianji3 font-14 mr5'}),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13_react_router_dom__["b" /* Link */],{to:'/projects/'+projectsId+'/orders/'+item.id+'/meilpost',className:'color-grey-9'},'\u7F16\u8F91')),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item mr15 color-grey-9'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-yiguanbi1 font-14 mr5'}),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('a',{onClick:function onClick(){return _this2.updatestatusemile(_this2.state.status==="closed"?"open":"closed",item);},className:'color-grey-9'},_this2.state.status==="closed"?"开启":"关闭")),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'grid-item mr15 color-grey-9'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('i',{className:'iconfont icon-lajitong font-14 mr5'}),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_popconfirm___default.a,{placement:'bottom',title:'是否删除里程碑?',okText:'\u662F',cancelText:'\u5426',onConfirm:function onConfirm(){return _this2.closemile(item);}},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('a',{className:'color-grey-9'},'\u5220\u9664'))))),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'milepostdiv',style:{marginTop:5}},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'textwidth'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(Text,{type:'secondary',ellipsis:{rows:30,expandable:false,onExpand:Function}},item.description))));}));}else{return __WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__modules_courses_coursesPublic_NoneData__["a" /* default */],null);}};return __WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'main'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'topWrapper'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_14__Nav__["a" /* default */],Object.assign({},this.props,this.state)),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13_react_router_dom__["b" /* Link */],{to:'/projects/'+projectsId+'/orders/meilpost',className:'topWrapper_btn'},'\u65B0\u7684\u91CC\u7A0B\u7891')),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{style:{display:this.state.display}},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'tagdiv'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('span',null,'\u91CC\u7A0B\u7891',data&&data.issue_tags_count,'\u5DF2\u521B\u5EFA'))),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'topWrapper'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('div',{className:'topWrapper_type'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('li',{className:openselect?"active":"",onClick:function onClick(){return _this2.opneMilelist(1);}},data&&data.open_count,'\u4E2A\u5F00\u542F\u4E2D'),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('li',{className:closeselect?"active":"",onClick:function onClick(){return _this2.opneMilelist(2);}},data&&data.closed_count,'\u4E2A\u5DF2\u5173\u95ED')),__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('ul',{className:'topWrapper_select'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('li',null,__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_dropdown___default.a,{className:'topWrapperSelect',overlay:menu,trigger:['click'],placement:'bottomCenter'},__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement('span',null,'\u6392\u5E8F',__WEBPACK_IMPORTED_MODULE_12_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_icon___default.a,{type:'caret-down',className:'ml5'})))))),renderList(),Paginations));}}]);return Milepost;}(__WEBPACK_IMPORTED_MODULE_12_react__["Component"]);/* harmony default export */ __webpack_exports__["default"] = (Milepost);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4787:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(28);
|
|
|
|
__webpack_require__(4788);
|
|
|
|
__webpack_require__(169);
|
|
|
|
__webpack_require__(68);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4788:
|
|
/***/ (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__(4789);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4789:
|
|
/***/ (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:-webkit-box;-webkit-line-clamp:3;\n /*! autoprefixer: ignore next */overflow:hidden}", "", {"version":3,"sources":["/Users/hs/edu/educoder/public/react/node_modules/antd/lib/typography/style/index.css"],"names":[],"mappings":"AAIA,gBACE,qBAA2B,CAC5B,AACD,yCACE,qBAA2B,CAC5B,AACD,uCACE,aAAe,CAChB,AACD,sCACE,aAAe,CAChB,AACD,wCACE,sBAA2B,AAC3B,mBAAoB,AACpB,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC3B,AACD,qCAEE,iBAAmB,CACpB,AACD,qCAEE,mBAAqB,AACrB,sBAA2B,AAC3B,gBAAiB,AACjB,eAAgB,AAChB,gBAAkB,CACnB,AACD,qCAEE,mBAAqB,AACrB,sBAA2B,AAC3B,gBAAiB,AACjB,eAAgB,AAChB,gBAAkB,CACnB,AACD,qCAEE,mBAAqB,AACrB,sBAA2B,AAC3B,gBAAiB,AACjB,eAAgB,AAChB,gBAAkB,CACnB,AACD,qCAEE,mBAAqB,AACrB,sBAA2B,AAC3B,gBAAiB,AACjB,eAAgB,AAChB,eAAiB,CAClB,AAOD,w0BAgCE,gBAAkB,CACnB,AACD,6BACE,oBAAsB,CACvB,AACD,kBACE,cAAe,AACf,qBAAsB,AACtB,aAAc,AACd,eAAgB,AAChB,6BAA+B,AAC/B,wBAA0B,AAC1B,oBAAuB,CACxB,AACD,gDAEE,aAAe,CAChB,AACD,yBACE,aAAe,CAChB,AACD,iDAEE,oBAAsB,CACvB,AACD,4BACE,sBAA2B,AAC3B,mBAAoB,AACpB,mBAAqB,CACtB,AACD,qBACE,cAAgB,AAChB,uBAA2B,AAC3B,cAAe,AACf,2BAAgC,AAChC,iCAAsC,AACtC,iBAAmB,CACpB,AACD,qBACE,UAAW,AACX,wBAA0B,CAC3B,AACD,sCAEE,0BAA2B,AAC3B,iCAAkC,AAC1B,6BAA+B,CACxC,AACD,sCAEE,4BAA8B,CAC/B,AACD,uBACE,eAAiB,CAClB,AACD,iEAGE,cAAe,AACf,qBAAsB,AACtB,aAAc,AACd,eAAgB,AAChB,6BAA+B,AAC/B,wBAA0B,AAC1B,qBAAuB,AACvB,eAAiB,CAClB,AACD,sKAME,aAAe,CAChB,AACD,sFAGE,aAAe,CAChB,AACD,mGAGE,aAAe,CAChB,AACD,6BACE,iBAAmB,CACpB,AACD,gCACE,WAAY,AACZ,gBAAiB,AACjB,mCAAqC,CACtC,AACD,qCACE,kBAAmB,AACnB,WAAY,AACZ,WAAY,AACZ,sBAA2B,AAC3B,mBAAqB,CACtB,AACD,sCACE,oBAAsB,CACvB,AACD,sCAEE,eAAkB,AAClB,SAAW,CACZ,AACD,4CAEE,kBAAmB,AACnB,iBAAmB,CACpB,AACD,sBACE,sBAAwB,CACzB,AACD,yBACE,oBAAsB,CACvB,AACD,sBACE,uBAAyB,CAC1B,AACD,qCACE,gBAAiB,AACjB,mBAAoB,AACpB,0BAA2B,AACxB,sBAAwB,CAC5B,AACD,uCACE,oBAAqB,AACrB,qBAAsB;EACtB,gCAAgC,AAChC,eAAiB,CAClB","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-typography {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-typography.ant-typography-secondary {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-typography.ant-typography-warning {\n color: #faad14;\n}\n.ant-typography.ant-typography-danger {\n color: #f5222d;\n}\n.ant-typography.ant-typography-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\ndiv.ant-typography,\n.ant-typography p {\n margin-bottom: 1em;\n}\nh1.ant-typography,\n.ant-typography h1 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 38px;\n line-height: 1.23;\n}\nh2.ant-typography,\n.ant-typography h2 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 30px;\n line-height: 1.35;\n}\nh3.ant-typography,\n.ant-typography h3 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 24px;\n line-height: 1.35;\n}\nh4.ant-typography,\n.ant-typography h4 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 20px;\n line-height: 1.4;\n}\n.ant-typography + h1.ant-typography,\n.ant-typography + h2.ant-typography,\n.ant-typography + h3.ant-typography,\n.ant-typography + h4.ant-typography {\n margin-top: 1.2em;\n}\n.ant-typography div + h1,\n.ant-typography ul + h1,\n.ant-typography li + h1,\n.ant-typography p + h1,\n.ant-typography h1 + h1,\n.ant-typography h2 + h1,\n.ant-typography h3 + h1,\n.ant-typography h4 + h1,\n.ant-typography div + h2,\n.ant-typography ul + h2,\n.ant-typography li + h2,\n.ant-typography p + h2,\n.ant-typography h1 + h2,\n.ant-typography h2 + h2,\n.ant-typography h3 + h2,\n.ant-typography h4 + h2,\n.ant-typography div + h3,\n.ant-typography ul + h3,\n.ant-typography li + h3,\n.ant-typography p + h3,\n.ant-typography h1 + h3,\n.ant-typography h2 + h3,\n.ant-typography h3 + h3,\n.ant-typography h4 + h3,\n.ant-typography div + h4,\n.ant-typography ul + h4,\n.ant-typography li + h4,\n.ant-typography p + h4,\n.ant-typography h1 + h4,\n.ant-typography h2 + h4,\n.ant-typography h3 + h4,\n.ant-typography h4 + h4 {\n margin-top: 1.2em;\n}\nspan.ant-typography-ellipsis {\n display: inline-block;\n}\n.ant-typography a {\n color: #1890ff;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n -webkit-transition: color 0.3s;\n -o-transition: color 0.3s;\n transition: color 0.3s;\n}\n.ant-typography a:focus,\n.ant-typography a:hover {\n color: #40a9ff;\n}\n.ant-typography a:active {\n color: #096dd9;\n}\n.ant-typography a:active,\n.ant-typography a:hover {\n text-decoration: none;\n}\n.ant-typography a[disabled] {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n pointer-events: none;\n}\n.ant-typography code {\n margin: 0 0.2em;\n padding: 0.2em 0.4em 0.1em;\n font-size: 85%;\n background: rgba(0, 0, 0, 0.06);\n border: 1px solid rgba(0, 0, 0, 0.06);\n border-radius: 3px;\n}\n.ant-typography mark {\n padding: 0;\n background-color: #ffe58f;\n}\n.ant-typography u,\n.ant-typography ins {\n text-decoration: underline;\n -webkit-text-decoration-skip: ink;\n text-decoration-skip-ink: auto;\n}\n.ant-typography s,\n.ant-typography del {\n text-decoration: line-through;\n}\n.ant-typography strong {\n font-weight: 600;\n}\n.ant-typography-expand,\n.ant-typography-edit,\n.ant-typography-copy {\n color: #1890ff;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n -webkit-transition: color 0.3s;\n -o-transition: color 0.3s;\n transition: color 0.3s;\n margin-left: 8px;\n}\n.ant-typography-expand:focus,\n.ant-typography-edit:focus,\n.ant-typography-copy:focus,\n.ant-typography-expand:hover,\n.ant-typography-edit:hover,\n.ant-typography-copy:hover {\n color: #40a9ff;\n}\n.ant-typography-expand:active,\n.ant-typography-edit:active,\n.ant-typography-copy:active {\n color: #096dd9;\n}\n.ant-typography-copy-success,\n.ant-typography-copy-success:hover,\n.ant-typography-copy-success:focus {\n color: #52c41a;\n}\n.ant-typography-edit-content {\n position: relative;\n}\ndiv.ant-typography-edit-content {\n left: -12px;\n margin-top: -5px;\n margin-bottom: calc(1em - 4px - 2px);\n}\n.ant-typography-edit-content-confirm {\n position: absolute;\n right: 10px;\n bottom: 8px;\n color: rgba(0, 0, 0, 0.45);\n pointer-events: none;\n}\n.ant-typography-edit-content textarea {\n -moz-transition: none;\n}\n.ant-typography ul,\n.ant-typography ol {\n margin: 0 0 1em 0;\n padding: 0;\n}\n.ant-typography ul li,\n.ant-typography ol li {\n margin: 0 0 0 20px;\n padding: 0 0 0 4px;\n}\n.ant-typography ul li {\n list-style-type: circle;\n}\n.ant-typography ul li li {\n list-style-type: disc;\n}\n.ant-typography ol li {\n list-style-type: decimal;\n}\n.ant-typography-ellipsis-single-line {\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-typography-ellipsis-multiple-line {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n /*! autoprefixer: ignore next */\n overflow: hidden;\n}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4790:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var _Typography = _interopRequireDefault(__webpack_require__(3596));
|
|
|
|
var _Text = _interopRequireDefault(__webpack_require__(4792));
|
|
|
|
var _Title = _interopRequireDefault(__webpack_require__(4797));
|
|
|
|
var _Paragraph = _interopRequireDefault(__webpack_require__(4798));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4791:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4792:
|
|
/***/ (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__(3311));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4793:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var deselectCurrent = __webpack_require__(4794);
|
|
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4794:
|
|
/***/ (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();
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4795:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4796:
|
|
/***/ (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__(1358));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4797:
|
|
/***/ (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__(323));
|
|
|
|
var _Base = _interopRequireDefault(__webpack_require__(3311));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4798:
|
|
/***/ (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__(3311));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 889:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 892:
|
|
/***/ (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
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 903:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(28);
|
|
|
|
__webpack_require__(926);
|
|
|
|
__webpack_require__(318);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 904:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var _Pagination = _interopRequireDefault(__webpack_require__(936));
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
|
|
var _default = _Pagination["default"];
|
|
exports["default"] = _default;
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 905:
|
|
/***/ (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__(992);
|
|
|
|
var _configProvider = __webpack_require__(12);
|
|
|
|
var _icon = _interopRequireDefault(__webpack_require__(26));
|
|
|
|
var _isNumeric = _interopRequireDefault(__webpack_require__(996));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 921:
|
|
/***/ (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__(1067));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 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 _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__(1001));
|
|
|
|
var _MenuItem = _interopRequireDefault(__webpack_require__(1002));
|
|
|
|
var _configProvider = __webpack_require__(12);
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(40));
|
|
|
|
var _Sider = __webpack_require__(905);
|
|
|
|
var _raf = _interopRequireDefault(__webpack_require__(182));
|
|
|
|
var _motion = _interopRequireDefault(__webpack_require__(983));
|
|
|
|
var _MenuContext = _interopRequireDefault(__webpack_require__(889));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 926:
|
|
/***/ (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__(935);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 935:
|
|
/***/ (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);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-pagination-next:hover a,.ant-pagination-prev:hover a{border-color:#40a9ff}.ant-pagination-next .ant-pagination-item-link,.ant-pagination-prev .ant-pagination-item-link{display:block;height:100%;font-size:12px;text-align:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:4px;outline:none;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-pagination-next:focus .ant-pagination-item-link,.ant-pagination-next:hover .ant-pagination-item-link,.ant-pagination-prev:focus .ant-pagination-item-link,.ant-pagination-prev:hover .ant-pagination-item-link{color:#1890ff;border-color:#1890ff}.ant-pagination-disabled,.ant-pagination-disabled:focus,.ant-pagination-disabled:hover{cursor:not-allowed}.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination-disabled:focus .ant-pagination-item-link,.ant-pagination-disabled:focus a,.ant-pagination-disabled:hover .ant-pagination-item-link,.ant-pagination-disabled:hover a,.ant-pagination-disabled a{color:rgba(0,0,0,.25);border-color:#d9d9d9;cursor:not-allowed}.ant-pagination-slash{margin:0 10px 0 5px}.ant-pagination-options{display:inline-block;margin-left:16px;vertical-align:middle}.ant-pagination-options-size-changer.ant-select{display:inline-block;width:auto;margin-right:8px}.ant-pagination-options-quick-jumper{display:inline-block;height:32px;line-height:32px;vertical-align:top}.ant-pagination-options-quick-jumper input{position:relative;display:inline-block;width:100%;height:32px;padding:4px 11px;color:rgba(0,0,0,.65);font-size:14px;line-height:1.5;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:4px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;width:50px;margin:0 8px}.ant-pagination-options-quick-jumper input::-moz-placeholder{color:#bfbfbf;opacity:1}.ant-pagination-options-quick-jumper input:-ms-input-placeholder{color:#bfbfbf}.ant-pagination-options-quick-jumper input::-webkit-input-placeholder{color:#bfbfbf}.ant-pagination-options-quick-jumper input:placeholder-shown{-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-pagination-options-quick-jumper input:focus,.ant-pagination-options-quick-jumper input:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-pagination-options-quick-jumper input:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px rgba(24,144,255,.2)}.ant-pagination-options-quick-jumper input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;cursor:not-allowed;opacity:1}.ant-pagination-options-quick-jumper input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-pagination-options-quick-jumper input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;cursor:not-allowed;opacity:1}.ant-pagination-options-quick-jumper input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}textarea.ant-pagination-options-quick-jumper input{max-width:100%;height:auto;min-height:32px;line-height:1.5;vertical-align:bottom;-webkit-transition:all .3s,height 0s;-o-transition:all .3s,height 0s;transition:all .3s,height 0s}.ant-pagination-options-quick-jumper input-lg{height:40px;padding:6px 11px;font-size:16px}.ant-pagination-options-quick-jumper input-sm{height:24px;padding:1px 7px}.ant-pagination-simple .ant-pagination-next,.ant-pagination-simple .ant-pagination-prev{height:24px;line-height:24px;vertical-align:top}.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link,.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link{height:24px;border:0}.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link:after,.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link:after{height:24px;line-height:24px}.ant-pagination-simple .ant-pagination-simple-pager{display:inline-block;height:24px;margin-right:8px}.ant-pagination-simple .ant-pagination-simple-pager input{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;margin-right:8px;padding:0 6px;text-align:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:4px;outline:none;-webkit-transition:border-color .3s;-o-transition:border-color .3s;transition:border-color .3s}.ant-pagination-simple .ant-pagination-simple-pager input:hover{border-color:#1890ff}.ant-pagination.mini .ant-pagination-simple-pager,.ant-pagination.mini .ant-pagination-total-text{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-item{min-width:24px;height:24px;margin:0;line-height:22px}.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active){background:transparent;border-color:transparent}.ant-pagination.mini .ant-pagination-next,.ant-pagination.mini .ant-pagination-prev{min-width:24px;height:24px;margin:0;line-height:24px}.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link,.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link{background:transparent;border-color:transparent}.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link:after,.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link:after{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-jump-next,.ant-pagination.mini .ant-pagination-jump-prev{height:24px;margin-right:0;line-height:24px}.ant-pagination.mini .ant-pagination-options{margin-left:2px}.ant-pagination.mini .ant-pagination-options-quick-jumper{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-options-quick-jumper input{height:24px;padding:1px 7px;width:44px}.ant-pagination.ant-pagination-disabled{cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item a{color:rgba(0,0,0,.25);background:transparent;border:none;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active{background:#dbdbdb;border-color:transparent}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a{color:#fff}.ant-pagination.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:focus,.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:hover{color:rgba(0,0,0,.45);background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-link-icon,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-link-icon,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-link-icon{opacity:0}.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-ellipsis,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis{opacity:1}@media only screen and (max-width:992px){.ant-pagination-item-after-jump-prev,.ant-pagination-item-before-jump-next{display:none}}@media only screen and (max-width:576px){.ant-pagination-options{display:none}}", "", {"version":3,"sources":["/Users/hs/edu/educoder/public/react/node_modules/antd/lib/pagination/style/index.css"],"names":[],"mappings":"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","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-pagination {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n}\n.ant-pagination ul,\n.ant-pagination ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-pagination::after {\n display: block;\n clear: both;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n content: ' ';\n}\n.ant-pagination-total-text {\n display: inline-block;\n height: 32px;\n margin-right: 8px;\n line-height: 30px;\n vertical-align: middle;\n}\n.ant-pagination-item {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n margin-right: 8px;\n font-family: Arial;\n line-height: 30px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n outline: 0;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ant-pagination-item a {\n display: block;\n padding: 0 6px;\n color: rgba(0, 0, 0, 0.65);\n -webkit-transition: none;\n -o-transition: none;\n transition: none;\n}\n.ant-pagination-item a:hover {\n text-decoration: none;\n}\n.ant-pagination-item:focus,\n.ant-pagination-item:hover {\n border-color: #1890ff;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-pagination-item:focus a,\n.ant-pagination-item:hover a {\n color: #1890ff;\n}\n.ant-pagination-item-active {\n font-weight: 500;\n background: #fff;\n border-color: #1890ff;\n}\n.ant-pagination-item-active a {\n color: #1890ff;\n}\n.ant-pagination-item-active:focus,\n.ant-pagination-item-active:hover {\n border-color: #40a9ff;\n}\n.ant-pagination-item-active:focus a,\n.ant-pagination-item-active:hover a {\n color: #40a9ff;\n}\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n outline: 0;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container,\n.ant-pagination-jump-next .ant-pagination-item-container {\n position: relative;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {\n display: inline-block;\n font-size: 12px;\n font-size: 12px \\9;\n -webkit-transform: scale(1) rotate(0deg);\n -ms-transform: scale(1) rotate(0deg);\n transform: scale(1) rotate(0deg);\n color: #1890ff;\n letter-spacing: -1px;\n opacity: 0;\n -webkit-transition: all 0.2s;\n -o-transition: all 0.2s;\n transition: all 0.2s;\n}\n:root .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,\n:root .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {\n font-size: 12px;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n margin: auto;\n color: rgba(0, 0, 0, 0.25);\n letter-spacing: 2px;\n text-align: center;\n text-indent: 0.13em;\n opacity: 1;\n -webkit-transition: all 0.2s;\n -o-transition: all 0.2s;\n transition: all 0.2s;\n}\n.ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:focus .ant-pagination-item-link-icon,\n.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:hover .ant-pagination-item-link-icon {\n opacity: 1;\n}\n.ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,\n.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {\n opacity: 0;\n}\n.ant-pagination-prev,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n margin-right: 8px;\n}\n.ant-pagination-prev,\n.ant-pagination-next,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n color: rgba(0, 0, 0, 0.65);\n font-family: Arial;\n line-height: 32px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n border-radius: 4px;\n cursor: pointer;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-pagination-prev,\n.ant-pagination-next {\n outline: 0;\n}\n.ant-pagination-prev a,\n.ant-pagination-next a {\n color: rgba(0, 0, 0, 0.65);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ant-pagination-prev:hover a,\n.ant-pagination-next:hover a {\n border-color: #40a9ff;\n}\n.ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-next .ant-pagination-item-link {\n display: block;\n height: 100%;\n font-size: 12px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n outline: none;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-pagination-prev:focus .ant-pagination-item-link,\n.ant-pagination-next:focus .ant-pagination-item-link,\n.ant-pagination-prev:hover .ant-pagination-item-link,\n.ant-pagination-next:hover .ant-pagination-item-link {\n color: #1890ff;\n border-color: #1890ff;\n}\n.ant-pagination-disabled,\n.ant-pagination-disabled:hover,\n.ant-pagination-disabled:focus {\n cursor: not-allowed;\n}\n.ant-pagination-disabled a,\n.ant-pagination-disabled:hover a,\n.ant-pagination-disabled:focus a,\n.ant-pagination-disabled .ant-pagination-item-link,\n.ant-pagination-disabled:hover .ant-pagination-item-link,\n.ant-pagination-disabled:focus .ant-pagination-item-link {\n color: rgba(0, 0, 0, 0.25);\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination-slash {\n margin: 0 10px 0 5px;\n}\n.ant-pagination-options {\n display: inline-block;\n margin-left: 16px;\n vertical-align: middle;\n}\n.ant-pagination-options-size-changer.ant-select {\n display: inline-block;\n width: auto;\n margin-right: 8px;\n}\n.ant-pagination-options-quick-jumper {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n vertical-align: top;\n}\n.ant-pagination-options-quick-jumper input {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 32px;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n line-height: 1.5;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n width: 50px;\n margin: 0 8px;\n}\n.ant-pagination-options-quick-jumper input::-moz-placeholder {\n color: #bfbfbf;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input:-ms-input-placeholder {\n color: #bfbfbf;\n}\n.ant-pagination-options-quick-jumper input::-webkit-input-placeholder {\n color: #bfbfbf;\n}\n.ant-pagination-options-quick-jumper input:placeholder-shown {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-pagination-options-quick-jumper input:hover {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input:focus {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n outline: 0;\n -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-pagination-options-quick-jumper input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\ntextarea.ant-pagination-options-quick-jumper input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5;\n vertical-align: bottom;\n -webkit-transition: all 0.3s, height 0s;\n -o-transition: all 0.3s, height 0s;\n transition: all 0.3s, height 0s;\n}\n.ant-pagination-options-quick-jumper input-lg {\n height: 40px;\n padding: 6px 11px;\n font-size: 16px;\n}\n.ant-pagination-options-quick-jumper input-sm {\n height: 24px;\n padding: 1px 7px;\n}\n.ant-pagination-simple .ant-pagination-prev,\n.ant-pagination-simple .ant-pagination-next {\n height: 24px;\n line-height: 24px;\n vertical-align: top;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link {\n height: 24px;\n border: 0;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager {\n display: inline-block;\n height: 24px;\n margin-right: 8px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 100%;\n margin-right: 8px;\n padding: 0 6px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n outline: none;\n -webkit-transition: border-color 0.3s;\n -o-transition: border-color 0.3s;\n transition: border-color 0.3s;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input:hover {\n border-color: #1890ff;\n}\n.ant-pagination.mini .ant-pagination-total-text,\n.ant-pagination.mini .ant-pagination-simple-pager {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-item {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 22px;\n}\n.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev,\n.ant-pagination.mini .ant-pagination-next {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-jump-prev,\n.ant-pagination.mini .ant-pagination-jump-next {\n height: 24px;\n margin-right: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options {\n margin-left: 2px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper input {\n height: 24px;\n padding: 1px 7px;\n width: 44px;\n}\n.ant-pagination.ant-pagination-disabled {\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item {\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item a {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border: none;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {\n background: #dbdbdb;\n border-color: transparent;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {\n color: #fff;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link,\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:hover,\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:focus {\n color: rgba(0, 0, 0, 0.45);\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-link-icon,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-link-icon {\n opacity: 0;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {\n opacity: 1;\n}\n@media only screen and (max-width: 992px) {\n .ant-pagination-item-after-jump-prev,\n .ant-pagination-item-before-jump-next {\n display: none;\n }\n}\n@media only screen and (max-width: 576px) {\n .ant-pagination-options {\n display: none;\n }\n}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 936:
|
|
/***/ (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__(937));
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(332));
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _MiniSelect = _interopRequireDefault(__webpack_require__(942));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 937:
|
|
/***/ (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__(938);
|
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; });
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 938:
|
|
/***/ (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__(939);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Options__ = __webpack_require__(940);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__KeyCode__ = __webpack_require__(892);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__ = __webpack_require__(941);
|
|
/* 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);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 939:
|
|
/***/ (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);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 940:
|
|
/***/ (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__(892);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 941:
|
|
/***/ (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 页'
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 942:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 978:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var _dropdown = _interopRequireDefault(__webpack_require__(921));
|
|
|
|
var _dropdownButton = _interopRequireDefault(__webpack_require__(1073));
|
|
|
|
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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 982:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(28);
|
|
|
|
__webpack_require__(1065);
|
|
|
|
__webpack_require__(87);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 983:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 987:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(28);
|
|
|
|
__webpack_require__(1092);
|
|
|
|
__webpack_require__(169);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 992:
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 996:
|
|
/***/ (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
|
|
|
|
|
|
/***/ })
|
|
|
|
}); |