@x-edu/live-player 0.0.42 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +462 -823
- package/package.json +1 -1
|
@@ -2666,7 +2666,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2666
2666
|
|
|
2667
2667
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2668
2668
|
// Module
|
|
2669
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_empty-wrap_c-bx5{margin-top:100px}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h{padding:16px;display:flex;align-items:center;justify-content:center;flex-direction:column}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h img{width:260px;height:182px}.index-module_empty-wrap_c-bx5 .index-module_tip_eskLk{font-size:16px;color:#666;line-height:24px;margin-top:32px}", ""]);
|
|
2669
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_empty-wrap_c-bx5{margin-top:100px;flex:0 0 100%!important}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h{padding:16px;display:flex;align-items:center;justify-content:center;flex-direction:column}.index-module_empty-wrap_c-bx5 .index-module_img-wrap_PLB8h img{width:260px;height:182px}.index-module_empty-wrap_c-bx5 .index-module_tip_eskLk{font-size:16px;color:#666;line-height:24px;margin-top:32px}", ""]);
|
|
2670
2670
|
// Exports
|
|
2671
2671
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2672
2672
|
"empty-wrap": "index-module_empty-wrap_c-bx5",
|
|
@@ -25735,17 +25735,10 @@ module.exports = styleTagTransform;
|
|
|
25735
25735
|
|
|
25736
25736
|
/***/ }),
|
|
25737
25737
|
|
|
25738
|
-
/***/ 5273:
|
|
25739
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25740
|
-
|
|
25741
|
-
module.exports = __webpack_require__(5666);
|
|
25742
|
-
|
|
25743
|
-
/***/ }),
|
|
25744
|
-
|
|
25745
25738
|
/***/ 3006:
|
|
25746
25739
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25747
25740
|
|
|
25748
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25741
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
25749
25742
|
|
|
25750
25743
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25751
25744
|
|
|
@@ -33356,9 +33349,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33356
33349
|
|
|
33357
33350
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33358
33351
|
|
|
33359
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33360
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33361
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33362
33352
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33363
33353
|
|
|
33364
33354
|
|
|
@@ -33425,9 +33415,9 @@ function isSourceReady(_x) {
|
|
|
33425
33415
|
}
|
|
33426
33416
|
|
|
33427
33417
|
function _isSourceReady() {
|
|
33428
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33418
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33429
33419
|
var newLiveInfo;
|
|
33430
|
-
return
|
|
33420
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33431
33421
|
while (1) {
|
|
33432
33422
|
switch (_context.prev = _context.next) {
|
|
33433
33423
|
case 0:
|
|
@@ -33604,12 +33594,12 @@ function usePullSource(_ref) {
|
|
|
33604
33594
|
}
|
|
33605
33595
|
|
|
33606
33596
|
function _checkLiveReadyInterval() {
|
|
33607
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33597
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33608
33598
|
var i,
|
|
33609
33599
|
liveStatus,
|
|
33610
33600
|
isSourceReady,
|
|
33611
33601
|
_args = arguments;
|
|
33612
|
-
return
|
|
33602
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33613
33603
|
while (1) {
|
|
33614
33604
|
switch (_context.prev = _context.next) {
|
|
33615
33605
|
case 0:
|
|
@@ -33695,8 +33685,8 @@ function checkSourceReady(_x) {
|
|
|
33695
33685
|
}
|
|
33696
33686
|
|
|
33697
33687
|
function _checkSourceReady() {
|
|
33698
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33699
|
-
return
|
|
33688
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(url) {
|
|
33689
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
33700
33690
|
while (1) {
|
|
33701
33691
|
switch (_context2.prev = _context2.next) {
|
|
33702
33692
|
case 0:
|
|
@@ -33729,9 +33719,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33729
33719
|
}
|
|
33730
33720
|
|
|
33731
33721
|
function _getLiveNewStatus() {
|
|
33732
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33722
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(liveInfo) {
|
|
33733
33723
|
var newLiveInfo;
|
|
33734
|
-
return
|
|
33724
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
33735
33725
|
while (1) {
|
|
33736
33726
|
switch (_context3.prev = _context3.next) {
|
|
33737
33727
|
case 0:
|
|
@@ -34381,39 +34371,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34381
34371
|
// style dependencies
|
|
34382
34372
|
|
|
34383
34373
|
|
|
34384
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34385
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34386
|
-
if (key in obj) {
|
|
34387
|
-
Object.defineProperty(obj, key, {
|
|
34388
|
-
value: value,
|
|
34389
|
-
enumerable: true,
|
|
34390
|
-
configurable: true,
|
|
34391
|
-
writable: true
|
|
34392
|
-
});
|
|
34393
|
-
} else {
|
|
34394
|
-
obj[key] = value;
|
|
34395
|
-
}
|
|
34396
|
-
|
|
34397
|
-
return obj;
|
|
34398
|
-
}
|
|
34399
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34400
|
-
function esm_extends_extends() {
|
|
34401
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
34402
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34403
|
-
var source = arguments[i];
|
|
34404
|
-
|
|
34405
|
-
for (var key in source) {
|
|
34406
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34407
|
-
target[key] = source[key];
|
|
34408
|
-
}
|
|
34409
|
-
}
|
|
34410
|
-
}
|
|
34411
|
-
|
|
34412
|
-
return target;
|
|
34413
|
-
};
|
|
34414
|
-
|
|
34415
|
-
return esm_extends_extends.apply(this, arguments);
|
|
34416
|
-
}
|
|
34417
34374
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34418
34375
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34419
34376
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34448,26 +34405,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34448
34405
|
|
|
34449
34406
|
return _arr;
|
|
34450
34407
|
}
|
|
34451
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34452
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34453
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34454
|
-
|
|
34455
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34456
|
-
arr2[i] = arr[i];
|
|
34457
|
-
}
|
|
34458
|
-
|
|
34459
|
-
return arr2;
|
|
34460
|
-
}
|
|
34461
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34462
|
-
|
|
34463
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34464
|
-
if (!o) return;
|
|
34465
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34466
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34467
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34468
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34469
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34470
|
-
}
|
|
34471
34408
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34472
34409
|
function nonIterableRest_nonIterableRest() {
|
|
34473
34410
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34478,130 +34415,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34478
34415
|
|
|
34479
34416
|
|
|
34480
34417
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34481
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34482
|
-
}
|
|
34483
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34484
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34485
|
-
if (!(instance instanceof Constructor)) {
|
|
34486
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34487
|
-
}
|
|
34488
|
-
}
|
|
34489
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34490
|
-
function createClass_defineProperties(target, props) {
|
|
34491
|
-
for (var i = 0; i < props.length; i++) {
|
|
34492
|
-
var descriptor = props[i];
|
|
34493
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34494
|
-
descriptor.configurable = true;
|
|
34495
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34496
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34497
|
-
}
|
|
34498
|
-
}
|
|
34499
|
-
|
|
34500
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34501
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34502
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34503
|
-
return Constructor;
|
|
34504
|
-
}
|
|
34505
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34506
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34507
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34508
|
-
o.__proto__ = p;
|
|
34509
|
-
return o;
|
|
34510
|
-
};
|
|
34511
|
-
|
|
34512
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34513
|
-
}
|
|
34514
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34515
|
-
|
|
34516
|
-
function inherits_inherits(subClass, superClass) {
|
|
34517
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34518
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34519
|
-
}
|
|
34520
|
-
|
|
34521
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34522
|
-
constructor: {
|
|
34523
|
-
value: subClass,
|
|
34524
|
-
writable: true,
|
|
34525
|
-
configurable: true
|
|
34526
|
-
}
|
|
34527
|
-
});
|
|
34528
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34529
|
-
}
|
|
34530
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34531
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34532
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34533
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34534
|
-
};
|
|
34535
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34536
|
-
}
|
|
34537
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34538
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34539
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34540
|
-
if (Reflect.construct.sham) return false;
|
|
34541
|
-
if (typeof Proxy === "function") return true;
|
|
34542
|
-
|
|
34543
|
-
try {
|
|
34544
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34545
|
-
return true;
|
|
34546
|
-
} catch (e) {
|
|
34547
|
-
return false;
|
|
34548
|
-
}
|
|
34549
|
-
}
|
|
34550
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34551
|
-
function esm_typeof_typeof(obj) {
|
|
34552
|
-
"@babel/helpers - typeof";
|
|
34553
|
-
|
|
34554
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34555
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34556
|
-
return typeof obj;
|
|
34557
|
-
};
|
|
34558
|
-
} else {
|
|
34559
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34560
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34561
|
-
};
|
|
34562
|
-
}
|
|
34563
|
-
|
|
34564
|
-
return esm_typeof_typeof(obj);
|
|
34565
|
-
}
|
|
34566
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34567
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34568
|
-
if (self === void 0) {
|
|
34569
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34570
|
-
}
|
|
34571
|
-
|
|
34572
|
-
return self;
|
|
34573
|
-
}
|
|
34574
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34578
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34579
|
-
return call;
|
|
34580
|
-
} else if (call !== void 0) {
|
|
34581
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34582
|
-
}
|
|
34583
|
-
|
|
34584
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34585
|
-
}
|
|
34586
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34587
|
-
|
|
34588
|
-
|
|
34589
|
-
|
|
34590
|
-
function createSuper_createSuper(Derived) {
|
|
34591
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34592
|
-
return function _createSuperInternal() {
|
|
34593
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34594
|
-
result;
|
|
34595
|
-
|
|
34596
|
-
if (hasNativeReflectConstruct) {
|
|
34597
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34598
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34599
|
-
} else {
|
|
34600
|
-
result = Super.apply(this, arguments);
|
|
34601
|
-
}
|
|
34602
|
-
|
|
34603
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34604
|
-
};
|
|
34418
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34605
34419
|
}
|
|
34606
34420
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34607
34421
|
var raf = function raf(callback) {
|
|
@@ -34828,27 +34642,6 @@ var cacheStyle = {};
|
|
|
34828
34642
|
}
|
|
34829
34643
|
}
|
|
34830
34644
|
});
|
|
34831
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34832
|
-
|
|
34833
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34834
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34835
|
-
}
|
|
34836
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34837
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34838
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34839
|
-
}
|
|
34840
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34841
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34842
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34843
|
-
}
|
|
34844
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34845
|
-
|
|
34846
|
-
|
|
34847
|
-
|
|
34848
|
-
|
|
34849
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34850
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34851
|
-
}
|
|
34852
34645
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34853
34646
|
|
|
34854
34647
|
|
|
@@ -34865,7 +34658,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34865
34658
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34866
34659
|
var _this = this;
|
|
34867
34660
|
|
|
34868
|
-
|
|
34661
|
+
_classCallCheck(this, ScrollLocker);
|
|
34869
34662
|
|
|
34870
34663
|
this.lockTarget = void 0;
|
|
34871
34664
|
this.options = void 0;
|
|
@@ -34913,7 +34706,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34913
34706
|
var options = _ref3.options;
|
|
34914
34707
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34915
34708
|
})) {
|
|
34916
|
-
locks = [].concat(
|
|
34709
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34917
34710
|
target: _this.lockTarget,
|
|
34918
34711
|
options: _this.options
|
|
34919
34712
|
}]);
|
|
@@ -34951,7 +34744,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34951
34744
|
container.className = addClassName.trim();
|
|
34952
34745
|
}
|
|
34953
34746
|
|
|
34954
|
-
locks = [].concat(
|
|
34747
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34955
34748
|
target: _this.lockTarget,
|
|
34956
34749
|
options: _this.options
|
|
34957
34750
|
}]);
|
|
@@ -35035,7 +34828,7 @@ var getParent = function getParent(getContainer) {
|
|
|
35035
34828
|
return getContainer();
|
|
35036
34829
|
}
|
|
35037
34830
|
|
|
35038
|
-
if (
|
|
34831
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
35039
34832
|
return getContainer;
|
|
35040
34833
|
}
|
|
35041
34834
|
}
|
|
@@ -35044,14 +34837,14 @@ var getParent = function getParent(getContainer) {
|
|
|
35044
34837
|
};
|
|
35045
34838
|
|
|
35046
34839
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
35047
|
-
|
|
34840
|
+
_inherits(PortalWrapper, _React$Component);
|
|
35048
34841
|
|
|
35049
|
-
var _super =
|
|
34842
|
+
var _super = _createSuper(PortalWrapper);
|
|
35050
34843
|
|
|
35051
34844
|
function PortalWrapper(props) {
|
|
35052
34845
|
var _this;
|
|
35053
34846
|
|
|
35054
|
-
|
|
34847
|
+
_classCallCheck(this, PortalWrapper);
|
|
35055
34848
|
|
|
35056
34849
|
_this = _super.call(this, props);
|
|
35057
34850
|
_this.container = void 0;
|
|
@@ -35171,7 +34964,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35171
34964
|
return _this;
|
|
35172
34965
|
}
|
|
35173
34966
|
|
|
35174
|
-
|
|
34967
|
+
_createClass(PortalWrapper, [{
|
|
35175
34968
|
key: "componentDidMount",
|
|
35176
34969
|
value: function componentDidMount() {
|
|
35177
34970
|
var _this2 = this;
|
|
@@ -35239,46 +35032,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35239
35032
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35240
35033
|
|
|
35241
35034
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35242
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35243
|
-
|
|
35244
|
-
|
|
35245
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
35246
|
-
var keys = Object.keys(object);
|
|
35247
|
-
|
|
35248
|
-
if (Object.getOwnPropertySymbols) {
|
|
35249
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
35250
|
-
|
|
35251
|
-
if (enumerableOnly) {
|
|
35252
|
-
symbols = symbols.filter(function (sym) {
|
|
35253
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
35254
|
-
});
|
|
35255
|
-
}
|
|
35256
|
-
|
|
35257
|
-
keys.push.apply(keys, symbols);
|
|
35258
|
-
}
|
|
35259
|
-
|
|
35260
|
-
return keys;
|
|
35261
|
-
}
|
|
35262
|
-
|
|
35263
|
-
function objectSpread2_objectSpread2(target) {
|
|
35264
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35265
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35266
|
-
|
|
35267
|
-
if (i % 2) {
|
|
35268
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35269
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
35270
|
-
});
|
|
35271
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
35272
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35273
|
-
} else {
|
|
35274
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35275
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35276
|
-
});
|
|
35277
|
-
}
|
|
35278
|
-
}
|
|
35279
|
-
|
|
35280
|
-
return target;
|
|
35281
|
-
}
|
|
35282
35035
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35283
35036
|
/**
|
|
35284
35037
|
* @ignore
|
|
@@ -35945,7 +35698,7 @@ function pickAttrs(props) {
|
|
|
35945
35698
|
aria: true
|
|
35946
35699
|
};
|
|
35947
35700
|
} else {
|
|
35948
|
-
mergedConfig =
|
|
35701
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35949
35702
|
}
|
|
35950
35703
|
|
|
35951
35704
|
var attrs = {};
|
|
@@ -35978,7 +35731,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35978
35731
|
function fillRef(ref, node) {
|
|
35979
35732
|
if (typeof ref === 'function') {
|
|
35980
35733
|
ref(node);
|
|
35981
|
-
} else if (
|
|
35734
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35982
35735
|
ref.current = node;
|
|
35983
35736
|
}
|
|
35984
35737
|
}
|
|
@@ -36088,7 +35841,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
36088
35841
|
function getTransitionName(transitionName, transitionType) {
|
|
36089
35842
|
if (!transitionName) return null;
|
|
36090
35843
|
|
|
36091
|
-
if (
|
|
35844
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
36092
35845
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
36093
35846
|
return match[1].toUpperCase();
|
|
36094
35847
|
});
|
|
@@ -36381,13 +36134,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36381
36134
|
|
|
36382
36135
|
switch (status) {
|
|
36383
36136
|
case 'appear':
|
|
36384
|
-
return _ref2 = {},
|
|
36137
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36385
36138
|
|
|
36386
36139
|
case 'enter':
|
|
36387
|
-
return _ref3 = {},
|
|
36140
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36388
36141
|
|
|
36389
36142
|
case 'leave':
|
|
36390
|
-
return _ref4 = {},
|
|
36143
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36391
36144
|
|
|
36392
36145
|
default:
|
|
36393
36146
|
return {};
|
|
@@ -36495,7 +36248,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36495
36248
|
var mergedStyle = style;
|
|
36496
36249
|
|
|
36497
36250
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36498
|
-
mergedStyle =
|
|
36251
|
+
mergedStyle = _objectSpread2({
|
|
36499
36252
|
transition: 'none'
|
|
36500
36253
|
}, mergedStyle);
|
|
36501
36254
|
}
|
|
@@ -36510,17 +36263,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36510
36263
|
|
|
36511
36264
|
|
|
36512
36265
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36513
|
-
|
|
36266
|
+
_inherits(DomWrapper, _React$Component);
|
|
36514
36267
|
|
|
36515
|
-
var _super =
|
|
36268
|
+
var _super = _createSuper(DomWrapper);
|
|
36516
36269
|
|
|
36517
36270
|
function DomWrapper() {
|
|
36518
|
-
|
|
36271
|
+
_classCallCheck(this, DomWrapper);
|
|
36519
36272
|
|
|
36520
36273
|
return _super.apply(this, arguments);
|
|
36521
36274
|
}
|
|
36522
36275
|
|
|
36523
|
-
|
|
36276
|
+
_createClass(DomWrapper, [{
|
|
36524
36277
|
key: "render",
|
|
36525
36278
|
value: function render() {
|
|
36526
36279
|
return this.props.children;
|
|
@@ -36556,7 +36309,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36556
36309
|
function genCSSMotion(config) {
|
|
36557
36310
|
var transitionSupport = config;
|
|
36558
36311
|
|
|
36559
|
-
if (
|
|
36312
|
+
if (typeof_typeof(config) === 'object') {
|
|
36560
36313
|
transitionSupport = config.transitionSupport;
|
|
36561
36314
|
}
|
|
36562
36315
|
|
|
@@ -36614,7 +36367,7 @@ function genCSSMotion(config) {
|
|
|
36614
36367
|
|
|
36615
36368
|
var motionChildren;
|
|
36616
36369
|
|
|
36617
|
-
var mergedProps =
|
|
36370
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36618
36371
|
visible: visible
|
|
36619
36372
|
});
|
|
36620
36373
|
|
|
@@ -36624,13 +36377,13 @@ function genCSSMotion(config) {
|
|
|
36624
36377
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36625
36378
|
// Stable children
|
|
36626
36379
|
if (mergedVisible) {
|
|
36627
|
-
motionChildren = children(
|
|
36380
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36628
36381
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36629
|
-
motionChildren = children(
|
|
36382
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36630
36383
|
className: leavedClassName
|
|
36631
36384
|
}), setNodeRef);
|
|
36632
36385
|
} else if (forceRender) {
|
|
36633
|
-
motionChildren = children(
|
|
36386
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36634
36387
|
style: {
|
|
36635
36388
|
display: 'none'
|
|
36636
36389
|
}
|
|
@@ -36652,8 +36405,8 @@ function genCSSMotion(config) {
|
|
|
36652
36405
|
statusSuffix = 'start';
|
|
36653
36406
|
}
|
|
36654
36407
|
|
|
36655
|
-
motionChildren = children(
|
|
36656
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36408
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36409
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36657
36410
|
style: statusStyle
|
|
36658
36411
|
}), setNodeRef);
|
|
36659
36412
|
}
|
|
@@ -36666,41 +36419,6 @@ function genCSSMotion(config) {
|
|
|
36666
36419
|
return CSSMotion;
|
|
36667
36420
|
}
|
|
36668
36421
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36669
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36670
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36671
|
-
if (source == null) return {};
|
|
36672
|
-
var target = {};
|
|
36673
|
-
var sourceKeys = Object.keys(source);
|
|
36674
|
-
var key, i;
|
|
36675
|
-
|
|
36676
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36677
|
-
key = sourceKeys[i];
|
|
36678
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36679
|
-
target[key] = source[key];
|
|
36680
|
-
}
|
|
36681
|
-
|
|
36682
|
-
return target;
|
|
36683
|
-
}
|
|
36684
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36685
|
-
|
|
36686
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36687
|
-
if (source == null) return {};
|
|
36688
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36689
|
-
var key, i;
|
|
36690
|
-
|
|
36691
|
-
if (Object.getOwnPropertySymbols) {
|
|
36692
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36693
|
-
|
|
36694
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36695
|
-
key = sourceSymbolKeys[i];
|
|
36696
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36697
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36698
|
-
target[key] = source[key];
|
|
36699
|
-
}
|
|
36700
|
-
}
|
|
36701
|
-
|
|
36702
|
-
return target;
|
|
36703
|
-
}
|
|
36704
36422
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36705
36423
|
|
|
36706
36424
|
|
|
@@ -36711,7 +36429,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36711
36429
|
function wrapKeyToObject(key) {
|
|
36712
36430
|
var keyObj;
|
|
36713
36431
|
|
|
36714
|
-
if (key &&
|
|
36432
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36715
36433
|
keyObj = key;
|
|
36716
36434
|
} else {
|
|
36717
36435
|
keyObj = {
|
|
@@ -36719,7 +36437,7 @@ function wrapKeyToObject(key) {
|
|
|
36719
36437
|
};
|
|
36720
36438
|
}
|
|
36721
36439
|
|
|
36722
|
-
return
|
|
36440
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36723
36441
|
key: String(keyObj.key)
|
|
36724
36442
|
});
|
|
36725
36443
|
}
|
|
@@ -36746,14 +36464,14 @@ function diffKeys() {
|
|
|
36746
36464
|
// New added keys should add before current key
|
|
36747
36465
|
if (currentIndex < i) {
|
|
36748
36466
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36749
|
-
return
|
|
36467
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36750
36468
|
status: STATUS_ADD
|
|
36751
36469
|
});
|
|
36752
36470
|
}));
|
|
36753
36471
|
currentIndex = i;
|
|
36754
36472
|
}
|
|
36755
36473
|
|
|
36756
|
-
list.push(
|
|
36474
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36757
36475
|
status: STATUS_KEEP
|
|
36758
36476
|
}));
|
|
36759
36477
|
currentIndex += 1;
|
|
@@ -36764,7 +36482,7 @@ function diffKeys() {
|
|
|
36764
36482
|
|
|
36765
36483
|
|
|
36766
36484
|
if (!hit) {
|
|
36767
|
-
list.push(
|
|
36485
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36768
36486
|
status: STATUS_REMOVE
|
|
36769
36487
|
}));
|
|
36770
36488
|
}
|
|
@@ -36772,7 +36490,7 @@ function diffKeys() {
|
|
|
36772
36490
|
|
|
36773
36491
|
if (currentIndex < currentLen) {
|
|
36774
36492
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36775
|
-
return
|
|
36493
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36776
36494
|
status: STATUS_ADD
|
|
36777
36495
|
});
|
|
36778
36496
|
}));
|
|
@@ -36833,14 +36551,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36833
36551
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36834
36552
|
|
|
36835
36553
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36836
|
-
|
|
36554
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36837
36555
|
|
|
36838
|
-
var _super =
|
|
36556
|
+
var _super = _createSuper(CSSMotionList);
|
|
36839
36557
|
|
|
36840
36558
|
function CSSMotionList() {
|
|
36841
36559
|
var _this;
|
|
36842
36560
|
|
|
36843
|
-
|
|
36561
|
+
_classCallCheck(this, CSSMotionList);
|
|
36844
36562
|
|
|
36845
36563
|
_this = _super.apply(this, arguments);
|
|
36846
36564
|
_this.state = {
|
|
@@ -36853,7 +36571,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36853
36571
|
return {
|
|
36854
36572
|
keyEntities: keyEntities.map(function (entity) {
|
|
36855
36573
|
if (entity.key !== removeKey) return entity;
|
|
36856
|
-
return
|
|
36574
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36857
36575
|
status: STATUS_REMOVED
|
|
36858
36576
|
});
|
|
36859
36577
|
})
|
|
@@ -36864,7 +36582,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36864
36582
|
return _this;
|
|
36865
36583
|
}
|
|
36866
36584
|
|
|
36867
|
-
|
|
36585
|
+
_createClass(CSSMotionList, [{
|
|
36868
36586
|
key: "render",
|
|
36869
36587
|
value: function render() {
|
|
36870
36588
|
var _this2 = this;
|
|
@@ -36875,7 +36593,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36875
36593
|
component = _this$props.component,
|
|
36876
36594
|
children = _this$props.children,
|
|
36877
36595
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36878
|
-
restProps =
|
|
36596
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36879
36597
|
|
|
36880
36598
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36881
36599
|
var motionProps = {};
|
|
@@ -36886,10 +36604,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36886
36604
|
delete restProps.keys;
|
|
36887
36605
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36888
36606
|
var status = _ref2.status,
|
|
36889
|
-
eventProps =
|
|
36607
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36890
36608
|
|
|
36891
36609
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36892
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36610
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36893
36611
|
key: eventProps.key,
|
|
36894
36612
|
visible: visible,
|
|
36895
36613
|
eventProps: eventProps,
|
|
@@ -36963,8 +36681,8 @@ function Mask(props) {
|
|
|
36963
36681
|
}, function (_ref) {
|
|
36964
36682
|
var motionClassName = _ref.className,
|
|
36965
36683
|
motionStyle = _ref.style;
|
|
36966
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36967
|
-
style:
|
|
36684
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36685
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36968
36686
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36969
36687
|
}, maskProps));
|
|
36970
36688
|
});
|
|
@@ -37147,7 +36865,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37147
36865
|
|
|
37148
36866
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
37149
36867
|
className: "".concat(prefixCls, "-content")
|
|
37150
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36868
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37151
36869
|
className: "".concat(prefixCls, "-body"),
|
|
37152
36870
|
style: bodyStyle
|
|
37153
36871
|
}, bodyProps), children), footerNode);
|
|
@@ -37167,7 +36885,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37167
36885
|
key: "dialog-element",
|
|
37168
36886
|
role: "document",
|
|
37169
36887
|
ref: motionRef,
|
|
37170
|
-
style:
|
|
36888
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
37171
36889
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
37172
36890
|
onMouseDown: onMouseDown,
|
|
37173
36891
|
onMouseUp: onMouseUp
|
|
@@ -37349,7 +37067,7 @@ function Dialog(props) {
|
|
|
37349
37067
|
return function () {};
|
|
37350
37068
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37351
37069
|
|
|
37352
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37070
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37353
37071
|
className: "".concat(prefixCls, "-root")
|
|
37354
37072
|
}, pickAttrs(props, {
|
|
37355
37073
|
data: true
|
|
@@ -37357,11 +37075,11 @@ function Dialog(props) {
|
|
|
37357
37075
|
prefixCls: prefixCls,
|
|
37358
37076
|
visible: mask && visible,
|
|
37359
37077
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37360
|
-
style:
|
|
37078
|
+
style: _objectSpread2({
|
|
37361
37079
|
zIndex: zIndex
|
|
37362
37080
|
}, maskStyle),
|
|
37363
37081
|
maskProps: maskProps
|
|
37364
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37082
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37365
37083
|
tabIndex: -1,
|
|
37366
37084
|
onKeyDown: onWrapperKeyDown,
|
|
37367
37085
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37369,12 +37087,12 @@ function Dialog(props) {
|
|
|
37369
37087
|
onClick: onWrapperClick,
|
|
37370
37088
|
role: "dialog",
|
|
37371
37089
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37372
|
-
style:
|
|
37090
|
+
style: _objectSpread2(_objectSpread2({
|
|
37373
37091
|
zIndex: zIndex
|
|
37374
37092
|
}, wrapStyle), {}, {
|
|
37375
37093
|
display: !animatedVisible ? 'none' : null
|
|
37376
37094
|
})
|
|
37377
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37095
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37378
37096
|
onMouseDown: onContentMouseDown,
|
|
37379
37097
|
onMouseUp: onContentMouseUp,
|
|
37380
37098
|
ref: contentRef,
|
|
@@ -37422,7 +37140,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37422
37140
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37423
37141
|
|
|
37424
37142
|
if (getContainer === false) {
|
|
37425
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37143
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37426
37144
|
getOpenCount: function getOpenCount() {
|
|
37427
37145
|
return 2;
|
|
37428
37146
|
} // 不对 body 做任何操作。。
|
|
@@ -37440,7 +37158,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37440
37158
|
forceRender: forceRender,
|
|
37441
37159
|
getContainer: getContainer
|
|
37442
37160
|
}, function (childProps) {
|
|
37443
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37161
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37444
37162
|
destroyOnClose: destroyOnClose,
|
|
37445
37163
|
afterClose: function afterClose() {
|
|
37446
37164
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37475,8 +37193,8 @@ function getConfirmLocale() {
|
|
|
37475
37193
|
|
|
37476
37194
|
|
|
37477
37195
|
|
|
37478
|
-
var UnreachableException = /*#__PURE__*/
|
|
37479
|
-
|
|
37196
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
37197
|
+
_classCallCheck(this, UnreachableException);
|
|
37480
37198
|
|
|
37481
37199
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37482
37200
|
});
|
|
@@ -37539,8 +37257,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37539
37257
|
console.warn(new UnreachableException(size).error);
|
|
37540
37258
|
}
|
|
37541
37259
|
|
|
37542
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37543
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37260
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37261
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37544
37262
|
className: classes
|
|
37545
37263
|
}));
|
|
37546
37264
|
});
|
|
@@ -37611,14 +37329,14 @@ function isNotGrey(color) {
|
|
|
37611
37329
|
}
|
|
37612
37330
|
|
|
37613
37331
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37614
|
-
|
|
37332
|
+
_inherits(Wave, _React$Component);
|
|
37615
37333
|
|
|
37616
|
-
var _super =
|
|
37334
|
+
var _super = _createSuper(Wave);
|
|
37617
37335
|
|
|
37618
37336
|
function Wave() {
|
|
37619
37337
|
var _this;
|
|
37620
37338
|
|
|
37621
|
-
|
|
37339
|
+
_classCallCheck(this, Wave);
|
|
37622
37340
|
|
|
37623
37341
|
_this = _super.apply(this, arguments);
|
|
37624
37342
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37638,7 +37356,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37638
37356
|
|
|
37639
37357
|
_this.extraNode = document.createElement('div');
|
|
37640
37358
|
|
|
37641
|
-
var _assertThisInitialize =
|
|
37359
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37642
37360
|
extraNode = _assertThisInitialize.extraNode;
|
|
37643
37361
|
|
|
37644
37362
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37745,7 +37463,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37745
37463
|
return _this;
|
|
37746
37464
|
}
|
|
37747
37465
|
|
|
37748
|
-
|
|
37466
|
+
_createClass(Wave, [{
|
|
37749
37467
|
key: "componentDidMount",
|
|
37750
37468
|
value: function componentDidMount() {
|
|
37751
37469
|
var node = this.containerRef.current;
|
|
@@ -37972,7 +37690,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37972
37690
|
var isPrevChildPure = false;
|
|
37973
37691
|
var childList = [];
|
|
37974
37692
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37975
|
-
var type =
|
|
37693
|
+
var type = typeof_typeof(child);
|
|
37976
37694
|
|
|
37977
37695
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37978
37696
|
|
|
@@ -38072,7 +37790,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38072
37790
|
}; // =============== Update Loading ===============
|
|
38073
37791
|
|
|
38074
37792
|
|
|
38075
|
-
var loadingOrDelay =
|
|
37793
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
38076
37794
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
38077
37795
|
clearTimeout(delayTimeoutRef.current);
|
|
38078
37796
|
|
|
@@ -38112,7 +37830,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38112
37830
|
var sizeFullname = customizeSize || size;
|
|
38113
37831
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
38114
37832
|
var iconType = innerLoading ? 'loading' : icon;
|
|
38115
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37833
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), _defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), _defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
38116
37834
|
var iconNode;
|
|
38117
37835
|
|
|
38118
37836
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -38131,14 +37849,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38131
37849
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
38132
37850
|
|
|
38133
37851
|
if (linkButtonRestProps.href !== undefined) {
|
|
38134
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37852
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
38135
37853
|
className: classes,
|
|
38136
37854
|
onClick: handleClick,
|
|
38137
37855
|
ref: buttonRef
|
|
38138
37856
|
}), iconNode, kids);
|
|
38139
37857
|
}
|
|
38140
37858
|
|
|
38141
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37859
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
38142
37860
|
type: htmlType,
|
|
38143
37861
|
className: classes,
|
|
38144
37862
|
onClick: handleClick,
|
|
@@ -38316,9 +38034,9 @@ var Modal = function Modal(props) {
|
|
|
38316
38034
|
okType = props.okType,
|
|
38317
38035
|
cancelText = props.cancelText,
|
|
38318
38036
|
confirmLoading = props.confirmLoading;
|
|
38319
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
38037
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({
|
|
38320
38038
|
onClick: handleCancel
|
|
38321
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
38039
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
38322
38040
|
loading: confirmLoading,
|
|
38323
38041
|
onClick: handleOk
|
|
38324
38042
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38353,8 +38071,8 @@ var Modal = function Modal(props) {
|
|
|
38353
38071
|
type: "close",
|
|
38354
38072
|
className: "".concat(prefixCls, "-close-icon")
|
|
38355
38073
|
}));
|
|
38356
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38357
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38074
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38075
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
38358
38076
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38359
38077
|
prefixCls: prefixCls,
|
|
38360
38078
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38480,7 +38198,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38480
38198
|
children = props.children,
|
|
38481
38199
|
prefixCls = props.prefixCls,
|
|
38482
38200
|
buttonProps = props.buttonProps;
|
|
38483
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38201
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38484
38202
|
onClick: onClick,
|
|
38485
38203
|
loading: loading,
|
|
38486
38204
|
prefixCls: prefixCls
|
|
@@ -39996,7 +39714,7 @@ function get(entity, path) {
|
|
|
39996
39714
|
|
|
39997
39715
|
|
|
39998
39716
|
function _toArray(arr) {
|
|
39999
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39717
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
40000
39718
|
}
|
|
40001
39719
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
40002
39720
|
|
|
@@ -40018,9 +39736,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
40018
39736
|
if (!entity && typeof path === 'number') {
|
|
40019
39737
|
clone = [];
|
|
40020
39738
|
} else if (Array.isArray(entity)) {
|
|
40021
|
-
clone =
|
|
39739
|
+
clone = _toConsumableArray(entity);
|
|
40022
39740
|
} else {
|
|
40023
|
-
clone =
|
|
39741
|
+
clone = _objectSpread2({}, entity);
|
|
40024
39742
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
40025
39743
|
|
|
40026
39744
|
|
|
@@ -40084,7 +39802,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
40084
39802
|
}
|
|
40085
39803
|
|
|
40086
39804
|
function isObject(obj) {
|
|
40087
|
-
return
|
|
39805
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
40088
39806
|
}
|
|
40089
39807
|
/**
|
|
40090
39808
|
* Copy values into store and return a new values object
|
|
@@ -40093,7 +39811,7 @@ function isObject(obj) {
|
|
|
40093
39811
|
|
|
40094
39812
|
|
|
40095
39813
|
function internalSetValues(store, values) {
|
|
40096
|
-
var newStore = Array.isArray(store) ?
|
|
39814
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
40097
39815
|
|
|
40098
39816
|
if (!values) {
|
|
40099
39817
|
return newStore;
|
|
@@ -40136,14 +39854,14 @@ function isSimilar(source, target) {
|
|
|
40136
39854
|
return false;
|
|
40137
39855
|
}
|
|
40138
39856
|
|
|
40139
|
-
if (!source || !target ||
|
|
39857
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
40140
39858
|
return false;
|
|
40141
39859
|
}
|
|
40142
39860
|
|
|
40143
39861
|
var sourceKeys = Object.keys(source);
|
|
40144
39862
|
var targetKeys = Object.keys(target);
|
|
40145
|
-
var keys = new Set([].concat(
|
|
40146
|
-
return
|
|
39863
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39864
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
40147
39865
|
var sourceValue = source[key];
|
|
40148
39866
|
var targetValue = target[key];
|
|
40149
39867
|
|
|
@@ -40186,12 +39904,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
40186
39904
|
|
|
40187
39905
|
if (diff > 0) {
|
|
40188
39906
|
// move left
|
|
40189
|
-
return [].concat(
|
|
39907
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
40190
39908
|
}
|
|
40191
39909
|
|
|
40192
39910
|
if (diff < 0) {
|
|
40193
39911
|
// move right
|
|
40194
|
-
return [].concat(
|
|
39912
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
40195
39913
|
}
|
|
40196
39914
|
|
|
40197
39915
|
return array;
|
|
@@ -40231,13 +39949,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
40231
39949
|
|
|
40232
39950
|
|
|
40233
39951
|
function _validateRule() {
|
|
40234
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39952
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
40235
39953
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
40236
|
-
return
|
|
39954
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
40237
39955
|
while (1) {
|
|
40238
39956
|
switch (_context2.prev = _context2.next) {
|
|
40239
39957
|
case 0:
|
|
40240
|
-
cloneRule =
|
|
39958
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
40241
39959
|
// https://github.com/react-component/field-form/issues/316
|
|
40242
39960
|
// https://github.com/react-component/field-form/issues/313
|
|
40243
39961
|
|
|
@@ -40250,13 +39968,13 @@ function _validateRule() {
|
|
|
40250
39968
|
delete cloneRule.defaultField;
|
|
40251
39969
|
}
|
|
40252
39970
|
|
|
40253
|
-
validator = new AsyncValidator(
|
|
39971
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
40254
39972
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40255
39973
|
validator.messages(messages);
|
|
40256
39974
|
result = [];
|
|
40257
39975
|
_context2.prev = 8;
|
|
40258
39976
|
_context2.next = 11;
|
|
40259
|
-
return Promise.resolve(validator.validate(
|
|
39977
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
40260
39978
|
|
|
40261
39979
|
case 11:
|
|
40262
39980
|
_context2.next = 16;
|
|
@@ -40296,12 +40014,12 @@ function _validateRule() {
|
|
|
40296
40014
|
case 19:
|
|
40297
40015
|
subResults = _context2.sent;
|
|
40298
40016
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40299
|
-
return [].concat(
|
|
40017
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
40300
40018
|
}, []));
|
|
40301
40019
|
|
|
40302
40020
|
case 21:
|
|
40303
40021
|
// Replace message with variables
|
|
40304
|
-
kv =
|
|
40022
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
40305
40023
|
name: name,
|
|
40306
40024
|
enum: (rule.enum || []).join(', ')
|
|
40307
40025
|
}, messageVariables);
|
|
@@ -40330,7 +40048,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40330
40048
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40331
40049
|
var originValidatorFunc = currentRule.validator;
|
|
40332
40050
|
|
|
40333
|
-
var cloneRule =
|
|
40051
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
40334
40052
|
ruleIndex: ruleIndex
|
|
40335
40053
|
}); // Replace validator if needed
|
|
40336
40054
|
|
|
@@ -40398,9 +40116,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40398
40116
|
if (validateFirst === true) {
|
|
40399
40117
|
// >>>>> Validate by serialization
|
|
40400
40118
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40401
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40119
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40402
40120
|
var i, rule, errors;
|
|
40403
|
-
return
|
|
40121
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40404
40122
|
while (1) {
|
|
40405
40123
|
switch (_context.prev = _context.next) {
|
|
40406
40124
|
case 0:
|
|
@@ -40479,15 +40197,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40479
40197
|
}
|
|
40480
40198
|
|
|
40481
40199
|
function _finishOnAllFailed() {
|
|
40482
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40483
|
-
return
|
|
40200
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
40201
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40484
40202
|
while (1) {
|
|
40485
40203
|
switch (_context3.prev = _context3.next) {
|
|
40486
40204
|
case 0:
|
|
40487
40205
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40488
40206
|
var _ref5;
|
|
40489
40207
|
|
|
40490
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40208
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40491
40209
|
|
|
40492
40210
|
return errors;
|
|
40493
40211
|
}));
|
|
@@ -40507,9 +40225,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40507
40225
|
}
|
|
40508
40226
|
|
|
40509
40227
|
function _finishOnFirstFailed() {
|
|
40510
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40228
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40511
40229
|
var count;
|
|
40512
|
-
return
|
|
40230
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40513
40231
|
while (1) {
|
|
40514
40232
|
switch (_context4.prev = _context4.next) {
|
|
40515
40233
|
case 0:
|
|
@@ -40572,9 +40290,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40572
40290
|
|
|
40573
40291
|
|
|
40574
40292
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40575
|
-
|
|
40293
|
+
_inherits(Field, _React$Component);
|
|
40576
40294
|
|
|
40577
|
-
var _super =
|
|
40295
|
+
var _super = _createSuper(Field);
|
|
40578
40296
|
|
|
40579
40297
|
/**
|
|
40580
40298
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40590,7 +40308,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40590
40308
|
function Field(props) {
|
|
40591
40309
|
var _this;
|
|
40592
40310
|
|
|
40593
|
-
|
|
40311
|
+
_classCallCheck(this, Field);
|
|
40594
40312
|
|
|
40595
40313
|
_this = _super.call(this, props); // Register on init
|
|
40596
40314
|
|
|
@@ -40625,7 +40343,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40625
40343
|
fieldContext = _this$props2.fieldContext;
|
|
40626
40344
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40627
40345
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40628
|
-
return name !== undefined ? [].concat(
|
|
40346
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40629
40347
|
};
|
|
40630
40348
|
|
|
40631
40349
|
_this.getRules = function () {
|
|
@@ -40658,7 +40376,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40658
40376
|
|
|
40659
40377
|
_this.triggerMetaEvent = function (destroy) {
|
|
40660
40378
|
var onMetaChange = _this.props.onMetaChange;
|
|
40661
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40379
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40662
40380
|
destroy: destroy
|
|
40663
40381
|
}));
|
|
40664
40382
|
};
|
|
@@ -40847,9 +40565,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40847
40565
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40848
40566
|
|
|
40849
40567
|
if (warningOnly) {
|
|
40850
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40568
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40851
40569
|
} else {
|
|
40852
|
-
nextErrors.push.apply(nextErrors,
|
|
40570
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40853
40571
|
}
|
|
40854
40572
|
});
|
|
40855
40573
|
_this.errors = nextErrors;
|
|
@@ -40940,7 +40658,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40940
40658
|
if (typeof children === 'function') {
|
|
40941
40659
|
var meta = _this.getMeta();
|
|
40942
40660
|
|
|
40943
|
-
return
|
|
40661
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40944
40662
|
isFunction: true
|
|
40945
40663
|
});
|
|
40946
40664
|
} // Filed element only
|
|
@@ -40992,13 +40710,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40992
40710
|
var value = _this.getValue();
|
|
40993
40711
|
|
|
40994
40712
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40995
|
-
return
|
|
40713
|
+
return _defineProperty({}, valuePropName, val);
|
|
40996
40714
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40997
40715
|
|
|
40998
40716
|
|
|
40999
40717
|
var originTriggerFunc = childProps[trigger];
|
|
41000
40718
|
|
|
41001
|
-
var control =
|
|
40719
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
41002
40720
|
|
|
41003
40721
|
|
|
41004
40722
|
control[trigger] = function () {
|
|
@@ -41069,13 +40787,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
41069
40787
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
41070
40788
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
41071
40789
|
|
|
41072
|
-
initEntityValue(
|
|
40790
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
41073
40791
|
}
|
|
41074
40792
|
|
|
41075
40793
|
return _this;
|
|
41076
40794
|
}
|
|
41077
40795
|
|
|
41078
|
-
|
|
40796
|
+
_createClass(Field, [{
|
|
41079
40797
|
key: "componentDidMount",
|
|
41080
40798
|
value: function componentDidMount() {
|
|
41081
40799
|
var _this$props7 = this.props,
|
|
@@ -41149,7 +40867,7 @@ Field.defaultProps = {
|
|
|
41149
40867
|
|
|
41150
40868
|
function WrapperField(_ref5) {
|
|
41151
40869
|
var name = _ref5.name,
|
|
41152
|
-
restProps =
|
|
40870
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
41153
40871
|
|
|
41154
40872
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
41155
40873
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -41163,7 +40881,7 @@ function WrapperField(_ref5) {
|
|
|
41163
40881
|
|
|
41164
40882
|
if (false) {}
|
|
41165
40883
|
|
|
41166
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40884
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
41167
40885
|
key: key,
|
|
41168
40886
|
name: namePath
|
|
41169
40887
|
}, restProps, {
|
|
@@ -41200,7 +40918,7 @@ var List = function List(_ref) {
|
|
|
41200
40918
|
}
|
|
41201
40919
|
|
|
41202
40920
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
41203
|
-
var prefixName = [].concat(
|
|
40921
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
41204
40922
|
|
|
41205
40923
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
41206
40924
|
var source = _ref2.source;
|
|
@@ -41213,7 +40931,7 @@ var List = function List(_ref) {
|
|
|
41213
40931
|
};
|
|
41214
40932
|
|
|
41215
40933
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
41216
|
-
value:
|
|
40934
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
41217
40935
|
prefixName: prefixName
|
|
41218
40936
|
})
|
|
41219
40937
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -41244,13 +40962,13 @@ var List = function List(_ref) {
|
|
|
41244
40962
|
var newValue = getNewValue();
|
|
41245
40963
|
|
|
41246
40964
|
if (index >= 0 && index <= newValue.length) {
|
|
41247
|
-
keyManager.keys = [].concat(
|
|
41248
|
-
onChange([].concat(
|
|
40965
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40966
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
41249
40967
|
} else {
|
|
41250
40968
|
if (false) {}
|
|
41251
40969
|
|
|
41252
|
-
keyManager.keys = [].concat(
|
|
41253
|
-
onChange([].concat(
|
|
40970
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40971
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
41254
40972
|
}
|
|
41255
40973
|
|
|
41256
40974
|
keyManager.id += 1;
|
|
@@ -41359,7 +41077,7 @@ var SPLIT = '__@field_split__';
|
|
|
41359
41077
|
|
|
41360
41078
|
function normalize(namePath) {
|
|
41361
41079
|
return namePath.map(function (cell) {
|
|
41362
|
-
return "".concat(
|
|
41080
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
41363
41081
|
}) // Magic split
|
|
41364
41082
|
.join(SPLIT);
|
|
41365
41083
|
}
|
|
@@ -41370,12 +41088,12 @@ function normalize(namePath) {
|
|
|
41370
41088
|
|
|
41371
41089
|
var NameMap = /*#__PURE__*/function () {
|
|
41372
41090
|
function NameMap() {
|
|
41373
|
-
|
|
41091
|
+
_classCallCheck(this, NameMap);
|
|
41374
41092
|
|
|
41375
41093
|
this.kvs = new Map();
|
|
41376
41094
|
}
|
|
41377
41095
|
|
|
41378
|
-
|
|
41096
|
+
_createClass(NameMap, [{
|
|
41379
41097
|
key: "set",
|
|
41380
41098
|
value: function set(key, value) {
|
|
41381
41099
|
this.kvs.set(normalize(key), value);
|
|
@@ -41406,7 +41124,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41406
41124
|
}, {
|
|
41407
41125
|
key: "map",
|
|
41408
41126
|
value: function map(callback) {
|
|
41409
|
-
return
|
|
41127
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41410
41128
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41411
41129
|
key = _ref2[0],
|
|
41412
41130
|
value = _ref2[1];
|
|
@@ -41460,7 +41178,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41460
41178
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41461
41179
|
var _this = this;
|
|
41462
41180
|
|
|
41463
|
-
|
|
41181
|
+
_classCallCheck(this, FormStore);
|
|
41464
41182
|
|
|
41465
41183
|
this.formHooked = false;
|
|
41466
41184
|
this.forceRootUpdate = void 0;
|
|
@@ -41720,7 +41438,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41720
41438
|
return fieldNamePath[i] === nameUnit;
|
|
41721
41439
|
})) {
|
|
41722
41440
|
map.update(shortNamePath, function (list) {
|
|
41723
|
-
return [].concat(
|
|
41441
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41724
41442
|
});
|
|
41725
41443
|
}
|
|
41726
41444
|
});
|
|
@@ -41811,7 +41529,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41811
41529
|
|
|
41812
41530
|
|
|
41813
41531
|
if (!info.skipExist || originValue === undefined) {
|
|
41814
|
-
_this.store = setValue(_this.store, namePath,
|
|
41532
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41815
41533
|
}
|
|
41816
41534
|
}
|
|
41817
41535
|
}
|
|
@@ -41831,7 +41549,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41831
41549
|
if (records) {
|
|
41832
41550
|
var _requiredFieldEntitie;
|
|
41833
41551
|
|
|
41834
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41552
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41835
41553
|
return r.entity;
|
|
41836
41554
|
})));
|
|
41837
41555
|
}
|
|
@@ -41884,7 +41602,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41884
41602
|
fields.forEach(function (fieldData) {
|
|
41885
41603
|
var name = fieldData.name,
|
|
41886
41604
|
errors = fieldData.errors,
|
|
41887
|
-
data =
|
|
41605
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41888
41606
|
|
|
41889
41607
|
var namePath = getNamePath(name); // Value
|
|
41890
41608
|
|
|
@@ -41906,7 +41624,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41906
41624
|
var namePath = field.getNamePath();
|
|
41907
41625
|
var meta = field.getMeta();
|
|
41908
41626
|
|
|
41909
|
-
var fieldData =
|
|
41627
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41910
41628
|
name: namePath,
|
|
41911
41629
|
value: _this.getFieldValue(namePath)
|
|
41912
41630
|
});
|
|
@@ -42005,7 +41723,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42005
41723
|
|
|
42006
41724
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
42007
41725
|
if (_this.subscribable) {
|
|
42008
|
-
var mergedInfo =
|
|
41726
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
42009
41727
|
store: _this.getFieldsValue(true)
|
|
42010
41728
|
});
|
|
42011
41729
|
|
|
@@ -42038,7 +41756,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42038
41756
|
|
|
42039
41757
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
42040
41758
|
type: 'dependenciesUpdate',
|
|
42041
|
-
relatedFields: [namePath].concat(
|
|
41759
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
42042
41760
|
}); // trigger callback function
|
|
42043
41761
|
|
|
42044
41762
|
|
|
@@ -42049,7 +41767,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42049
41767
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
42050
41768
|
}
|
|
42051
41769
|
|
|
42052
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41770
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
42053
41771
|
};
|
|
42054
41772
|
|
|
42055
41773
|
this.setFieldsValue = function (store) {
|
|
@@ -42177,8 +41895,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42177
41895
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
42178
41896
|
|
|
42179
41897
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
42180
|
-
var promise = field.validateRules(
|
|
42181
|
-
validateMessages:
|
|
41898
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41899
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
42182
41900
|
}, options)); // Wrap promise with field
|
|
42183
41901
|
|
|
42184
41902
|
promiseList.push(promise.then(function () {
|
|
@@ -42195,9 +41913,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42195
41913
|
errors = _ref5.errors;
|
|
42196
41914
|
|
|
42197
41915
|
if (warningOnly) {
|
|
42198
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41916
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
42199
41917
|
} else {
|
|
42200
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41918
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
42201
41919
|
}
|
|
42202
41920
|
});
|
|
42203
41921
|
|
|
@@ -42328,8 +42046,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42328
42046
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
42329
42047
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42330
42048
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
42331
|
-
value:
|
|
42332
|
-
validateMessages:
|
|
42049
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
42050
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
42333
42051
|
// =========================================================
|
|
42334
42052
|
// = Global Form Control =
|
|
42335
42053
|
// =========================================================
|
|
@@ -42355,13 +42073,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42355
42073
|
},
|
|
42356
42074
|
registerForm: function registerForm(name, form) {
|
|
42357
42075
|
if (name) {
|
|
42358
|
-
formsRef.current =
|
|
42076
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
42359
42077
|
}
|
|
42360
42078
|
|
|
42361
42079
|
formContext.registerForm(name, form);
|
|
42362
42080
|
},
|
|
42363
42081
|
unregisterForm: function unregisterForm(name) {
|
|
42364
|
-
var newForms =
|
|
42082
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
42365
42083
|
|
|
42366
42084
|
delete newForms[name];
|
|
42367
42085
|
formsRef.current = newForms;
|
|
@@ -42401,7 +42119,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42401
42119
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42402
42120
|
_onFinish = _ref.onFinish,
|
|
42403
42121
|
onFinishFailed = _ref.onFinishFailed,
|
|
42404
|
-
restProps =
|
|
42122
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42405
42123
|
|
|
42406
42124
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(es_FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
42407
42125
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42429,7 +42147,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42429
42147
|
};
|
|
42430
42148
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42431
42149
|
|
|
42432
|
-
setValidateMessages(
|
|
42150
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42433
42151
|
setCallbacks({
|
|
42434
42152
|
onValuesChange: onValuesChange,
|
|
42435
42153
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42482,7 +42200,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42482
42200
|
prevFieldsRef.current = fields;
|
|
42483
42201
|
}, [fields, formInstance]);
|
|
42484
42202
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42485
|
-
return
|
|
42203
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42486
42204
|
validateTrigger: validateTrigger
|
|
42487
42205
|
});
|
|
42488
42206
|
}, [formInstance, validateTrigger]);
|
|
@@ -42494,7 +42212,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42494
42212
|
return wrapperNode;
|
|
42495
42213
|
}
|
|
42496
42214
|
|
|
42497
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42215
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42498
42216
|
onSubmit: function onSubmit(event) {
|
|
42499
42217
|
event.preventDefault();
|
|
42500
42218
|
event.stopPropagation();
|
|
@@ -42676,14 +42394,14 @@ LocaleProvider.defaultProps = {
|
|
|
42676
42394
|
|
|
42677
42395
|
|
|
42678
42396
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42679
|
-
|
|
42397
|
+
_inherits(Notice, _Component);
|
|
42680
42398
|
|
|
42681
|
-
var _super =
|
|
42399
|
+
var _super = _createSuper(Notice);
|
|
42682
42400
|
|
|
42683
42401
|
function Notice() {
|
|
42684
42402
|
var _this;
|
|
42685
42403
|
|
|
42686
|
-
|
|
42404
|
+
_classCallCheck(this, Notice);
|
|
42687
42405
|
|
|
42688
42406
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42689
42407
|
args[_key] = arguments[_key];
|
|
@@ -42726,7 +42444,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42726
42444
|
return _this;
|
|
42727
42445
|
}
|
|
42728
42446
|
|
|
42729
|
-
|
|
42447
|
+
_createClass(Notice, [{
|
|
42730
42448
|
key: "componentDidMount",
|
|
42731
42449
|
value: function componentDidMount() {
|
|
42732
42450
|
this.startCloseTimer();
|
|
@@ -42772,8 +42490,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42772
42490
|
|
|
42773
42491
|
return acc;
|
|
42774
42492
|
}, {});
|
|
42775
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42776
|
-
className: classnames_default()(componentClass, className,
|
|
42493
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42494
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42777
42495
|
style: style,
|
|
42778
42496
|
onMouseEnter: this.clearCloseTimer,
|
|
42779
42497
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42804,52 +42522,6 @@ Notice.defaultProps = {
|
|
|
42804
42522
|
duration: 1.5
|
|
42805
42523
|
};
|
|
42806
42524
|
|
|
42807
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42808
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42809
|
-
if (Array.isArray(arr)) return arr;
|
|
42810
|
-
}
|
|
42811
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42812
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42813
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42814
|
-
|
|
42815
|
-
if (_i == null) return;
|
|
42816
|
-
var _arr = [];
|
|
42817
|
-
var _n = true;
|
|
42818
|
-
var _d = false;
|
|
42819
|
-
|
|
42820
|
-
var _s, _e;
|
|
42821
|
-
|
|
42822
|
-
try {
|
|
42823
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42824
|
-
_arr.push(_s.value);
|
|
42825
|
-
|
|
42826
|
-
if (i && _arr.length === i) break;
|
|
42827
|
-
}
|
|
42828
|
-
} catch (err) {
|
|
42829
|
-
_d = true;
|
|
42830
|
-
_e = err;
|
|
42831
|
-
} finally {
|
|
42832
|
-
try {
|
|
42833
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42834
|
-
} finally {
|
|
42835
|
-
if (_d) throw _e;
|
|
42836
|
-
}
|
|
42837
|
-
}
|
|
42838
|
-
|
|
42839
|
-
return _arr;
|
|
42840
|
-
}
|
|
42841
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42842
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42843
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42844
|
-
}
|
|
42845
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42846
|
-
|
|
42847
|
-
|
|
42848
|
-
|
|
42849
|
-
|
|
42850
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42851
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42852
|
-
}
|
|
42853
42525
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42854
42526
|
|
|
42855
42527
|
|
|
@@ -42860,7 +42532,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42860
42532
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42861
42533
|
|
|
42862
42534
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42863
|
-
_React$useState2 =
|
|
42535
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42864
42536
|
elements = _React$useState2[0],
|
|
42865
42537
|
setElements = _React$useState2[1];
|
|
42866
42538
|
|
|
@@ -42921,14 +42593,14 @@ function getUuid() {
|
|
|
42921
42593
|
}
|
|
42922
42594
|
|
|
42923
42595
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42924
|
-
|
|
42596
|
+
_inherits(Notification, _Component);
|
|
42925
42597
|
|
|
42926
|
-
var _super =
|
|
42598
|
+
var _super = _createSuper(Notification);
|
|
42927
42599
|
|
|
42928
42600
|
function Notification() {
|
|
42929
42601
|
var _this;
|
|
42930
42602
|
|
|
42931
|
-
|
|
42603
|
+
_classCallCheck(this, Notification);
|
|
42932
42604
|
|
|
42933
42605
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42934
42606
|
args[_key] = arguments[_key];
|
|
@@ -42943,7 +42615,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42943
42615
|
_this.add = function (originNotice, holderCallback) {
|
|
42944
42616
|
var key = originNotice.key || getUuid();
|
|
42945
42617
|
|
|
42946
|
-
var notice =
|
|
42618
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42947
42619
|
key: key
|
|
42948
42620
|
});
|
|
42949
42621
|
|
|
@@ -43010,7 +42682,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43010
42682
|
return _this;
|
|
43011
42683
|
}
|
|
43012
42684
|
|
|
43013
|
-
|
|
42685
|
+
_createClass(Notification, [{
|
|
43014
42686
|
key: "getTransitionName",
|
|
43015
42687
|
value: function getTransitionName() {
|
|
43016
42688
|
var _this$props = this.props,
|
|
@@ -43043,7 +42715,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43043
42715
|
var key = notice.key,
|
|
43044
42716
|
userPassKey = notice.userPassKey;
|
|
43045
42717
|
|
|
43046
|
-
var noticeProps =
|
|
42718
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
43047
42719
|
prefixCls: prefixCls,
|
|
43048
42720
|
closeIcon: closeIcon
|
|
43049
42721
|
}, notice), notice.props), {}, {
|
|
@@ -43094,7 +42766,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43094
42766
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
43095
42767
|
key: key,
|
|
43096
42768
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
43097
|
-
style:
|
|
42769
|
+
style: _objectSpread2({}, motionStyle),
|
|
43098
42770
|
ref: function ref(div) {
|
|
43099
42771
|
if (typeof key === 'undefined') {
|
|
43100
42772
|
return;
|
|
@@ -43111,9 +42783,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43111
42783
|
});
|
|
43112
42784
|
}
|
|
43113
42785
|
|
|
43114
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42786
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
43115
42787
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
43116
|
-
style:
|
|
42788
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
43117
42789
|
visible: visible
|
|
43118
42790
|
}));
|
|
43119
42791
|
}));
|
|
@@ -43136,7 +42808,7 @@ Notification.defaultProps = {
|
|
|
43136
42808
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
43137
42809
|
var _ref6 = properties || {},
|
|
43138
42810
|
getContainer = _ref6.getContainer,
|
|
43139
|
-
props =
|
|
42811
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
43140
42812
|
|
|
43141
42813
|
var div = document.createElement('div');
|
|
43142
42814
|
|
|
@@ -43180,7 +42852,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
43180
42852
|
|
|
43181
42853
|
if (false) {}
|
|
43182
42854
|
|
|
43183
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42855
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, extends_extends({}, props, {
|
|
43184
42856
|
ref: ref
|
|
43185
42857
|
})), div);
|
|
43186
42858
|
};
|
|
@@ -43210,7 +42882,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
43210
42882
|
};
|
|
43211
42883
|
|
|
43212
42884
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43213
|
-
_useRCNotification2 =
|
|
42885
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43214
42886
|
hookNotify = _useRCNotification2[0],
|
|
43215
42887
|
holder = _useRCNotification2[1];
|
|
43216
42888
|
|
|
@@ -43539,7 +43211,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43539
43211
|
};
|
|
43540
43212
|
|
|
43541
43213
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43542
|
-
_useRCNotification2 =
|
|
43214
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43543
43215
|
hookNotify = _useRCNotification2[0],
|
|
43544
43216
|
holder = _useRCNotification2[1];
|
|
43545
43217
|
|
|
@@ -44166,7 +43838,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44166
43838
|
|
|
44167
43839
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
44168
43840
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
44169
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43841
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
44170
43842
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
44171
43843
|
actionFn: onCancel,
|
|
44172
43844
|
close: close,
|
|
@@ -44184,7 +43856,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44184
43856
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
44185
43857
|
prefixCls: prefixCls,
|
|
44186
43858
|
className: classString,
|
|
44187
|
-
wrapClassName: classnames_default()(
|
|
43859
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
44188
43860
|
onCancel: function onCancel() {
|
|
44189
43861
|
return close({
|
|
44190
43862
|
triggerCancel: true
|
|
@@ -44268,7 +43940,7 @@ function getRootPrefixCls() {
|
|
|
44268
43940
|
function confirm_confirm(config) {
|
|
44269
43941
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44270
43942
|
|
|
44271
|
-
var currentConfig =
|
|
43943
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
44272
43944
|
close: close,
|
|
44273
43945
|
visible: true
|
|
44274
43946
|
});
|
|
@@ -44321,7 +43993,7 @@ function confirm_confirm(config) {
|
|
|
44321
43993
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44322
43994
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44323
43995
|
var iconPrefixCls = getIconPrefixCls();
|
|
44324
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43996
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({}, props, {
|
|
44325
43997
|
prefixCls: prefixCls,
|
|
44326
43998
|
rootPrefixCls: rootPrefixCls,
|
|
44327
43999
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44338,7 +44010,7 @@ function confirm_confirm(config) {
|
|
|
44338
44010
|
args[_key2] = arguments[_key2];
|
|
44339
44011
|
}
|
|
44340
44012
|
|
|
44341
|
-
currentConfig =
|
|
44013
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
44342
44014
|
visible: false,
|
|
44343
44015
|
afterClose: function afterClose() {
|
|
44344
44016
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44355,7 +44027,7 @@ function confirm_confirm(config) {
|
|
|
44355
44027
|
if (typeof configUpdate === 'function') {
|
|
44356
44028
|
currentConfig = configUpdate(currentConfig);
|
|
44357
44029
|
} else {
|
|
44358
|
-
currentConfig =
|
|
44030
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
44359
44031
|
}
|
|
44360
44032
|
|
|
44361
44033
|
render(currentConfig);
|
|
@@ -44369,7 +44041,7 @@ function confirm_confirm(config) {
|
|
|
44369
44041
|
};
|
|
44370
44042
|
}
|
|
44371
44043
|
function withWarn(props) {
|
|
44372
|
-
return
|
|
44044
|
+
return extends_extends(extends_extends({
|
|
44373
44045
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44374
44046
|
type: "exclamation-circle"
|
|
44375
44047
|
}),
|
|
@@ -44379,7 +44051,7 @@ function withWarn(props) {
|
|
|
44379
44051
|
});
|
|
44380
44052
|
}
|
|
44381
44053
|
function withInfo(props) {
|
|
44382
|
-
return
|
|
44054
|
+
return extends_extends(extends_extends({
|
|
44383
44055
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44384
44056
|
type: "exclamation-circle"
|
|
44385
44057
|
}),
|
|
@@ -44389,7 +44061,7 @@ function withInfo(props) {
|
|
|
44389
44061
|
});
|
|
44390
44062
|
}
|
|
44391
44063
|
function withSuccess(props) {
|
|
44392
|
-
return
|
|
44064
|
+
return extends_extends(extends_extends({
|
|
44393
44065
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44394
44066
|
type: "check-circle"
|
|
44395
44067
|
}),
|
|
@@ -44399,7 +44071,7 @@ function withSuccess(props) {
|
|
|
44399
44071
|
});
|
|
44400
44072
|
}
|
|
44401
44073
|
function withError(props) {
|
|
44402
|
-
return
|
|
44074
|
+
return extends_extends(extends_extends({
|
|
44403
44075
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44404
44076
|
type: "close-circle"
|
|
44405
44077
|
}),
|
|
@@ -44409,7 +44081,7 @@ function withError(props) {
|
|
|
44409
44081
|
});
|
|
44410
44082
|
}
|
|
44411
44083
|
function withConfirm(props) {
|
|
44412
|
-
return
|
|
44084
|
+
return extends_extends(extends_extends({
|
|
44413
44085
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44414
44086
|
type: "question-circle"
|
|
44415
44087
|
}),
|
|
@@ -44436,7 +44108,7 @@ function usePatchElement() {
|
|
|
44436
44108
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44437
44109
|
// append a new element to elements (and create a new ref)
|
|
44438
44110
|
setElements(function (originElements) {
|
|
44439
|
-
return [].concat(
|
|
44111
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44440
44112
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44441
44113
|
// it works a little like useEffect
|
|
44442
44114
|
|
|
@@ -44501,7 +44173,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44501
44173
|
destroy: close,
|
|
44502
44174
|
update: function update(newConfig) {
|
|
44503
44175
|
setInnerConfig(function (originConfig) {
|
|
44504
|
-
return
|
|
44176
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44505
44177
|
});
|
|
44506
44178
|
}
|
|
44507
44179
|
};
|
|
@@ -44510,7 +44182,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44510
44182
|
componentName: "Modal",
|
|
44511
44183
|
defaultLocale: locale_default.Modal
|
|
44512
44184
|
}, function (modalLocale) {
|
|
44513
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44185
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44514
44186
|
prefixCls: prefixCls,
|
|
44515
44187
|
rootPrefixCls: rootPrefixCls
|
|
44516
44188
|
}, innerConfig, {
|
|
@@ -44557,7 +44229,7 @@ function useModal() {
|
|
|
44557
44229
|
|
|
44558
44230
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44559
44231
|
if (actionQueue.length) {
|
|
44560
|
-
var cloneQueue =
|
|
44232
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44561
44233
|
|
|
44562
44234
|
cloneQueue.forEach(function (action) {
|
|
44563
44235
|
action();
|
|
@@ -44594,7 +44266,7 @@ function useModal() {
|
|
|
44594
44266
|
destroyAction();
|
|
44595
44267
|
} else {
|
|
44596
44268
|
setActionQueue(function (prev) {
|
|
44597
|
-
return [].concat(
|
|
44269
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44598
44270
|
});
|
|
44599
44271
|
}
|
|
44600
44272
|
},
|
|
@@ -44609,7 +44281,7 @@ function useModal() {
|
|
|
44609
44281
|
updateAction();
|
|
44610
44282
|
} else {
|
|
44611
44283
|
setActionQueue(function (prev) {
|
|
44612
|
-
return [].concat(
|
|
44284
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44613
44285
|
});
|
|
44614
44286
|
}
|
|
44615
44287
|
}
|
|
@@ -45054,44 +44726,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
45054
44726
|
|
|
45055
44727
|
|
|
45056
44728
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
45057
|
-
function
|
|
45058
|
-
|
|
44729
|
+
function esm_extends_extends() {
|
|
44730
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
45059
44731
|
for (var i = 1; i < arguments.length; i++) {
|
|
45060
44732
|
var source = arguments[i];
|
|
45061
|
-
|
|
45062
44733
|
for (var key in source) {
|
|
45063
44734
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
45064
44735
|
target[key] = source[key];
|
|
45065
44736
|
}
|
|
45066
44737
|
}
|
|
45067
44738
|
}
|
|
45068
|
-
|
|
45069
44739
|
return target;
|
|
45070
44740
|
};
|
|
45071
|
-
return
|
|
44741
|
+
return esm_extends_extends.apply(this, arguments);
|
|
45072
44742
|
}
|
|
45073
44743
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
45074
|
-
function
|
|
44744
|
+
function esm_typeof_typeof(obj) {
|
|
45075
44745
|
"@babel/helpers - typeof";
|
|
45076
44746
|
|
|
45077
|
-
return
|
|
44747
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
45078
44748
|
return typeof obj;
|
|
45079
44749
|
} : function (obj) {
|
|
45080
44750
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
45081
|
-
},
|
|
44751
|
+
}, esm_typeof_typeof(obj);
|
|
45082
44752
|
}
|
|
45083
44753
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
45084
44754
|
|
|
45085
44755
|
function _toPrimitive(input, hint) {
|
|
45086
|
-
if (
|
|
44756
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
45087
44757
|
var prim = input[Symbol.toPrimitive];
|
|
45088
|
-
|
|
45089
44758
|
if (prim !== undefined) {
|
|
45090
44759
|
var res = prim.call(input, hint || "default");
|
|
45091
|
-
if (
|
|
44760
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
45092
44761
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45093
44762
|
}
|
|
45094
|
-
|
|
45095
44763
|
return (hint === "string" ? String : Number)(input);
|
|
45096
44764
|
}
|
|
45097
44765
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -45099,13 +44767,12 @@ function _toPrimitive(input, hint) {
|
|
|
45099
44767
|
|
|
45100
44768
|
function _toPropertyKey(arg) {
|
|
45101
44769
|
var key = _toPrimitive(arg, "string");
|
|
45102
|
-
return
|
|
44770
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
45103
44771
|
}
|
|
45104
44772
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
45105
44773
|
|
|
45106
|
-
function
|
|
44774
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
45107
44775
|
key = _toPropertyKey(key);
|
|
45108
|
-
|
|
45109
44776
|
if (key in obj) {
|
|
45110
44777
|
Object.defineProperty(obj, key, {
|
|
45111
44778
|
value: value,
|
|
@@ -45116,61 +44783,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
45116
44783
|
} else {
|
|
45117
44784
|
obj[key] = value;
|
|
45118
44785
|
}
|
|
45119
|
-
|
|
45120
44786
|
return obj;
|
|
45121
44787
|
}
|
|
45122
44788
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
45123
44789
|
|
|
45124
|
-
|
|
45125
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44790
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
45126
44791
|
var keys = Object.keys(object);
|
|
45127
|
-
|
|
45128
44792
|
if (Object.getOwnPropertySymbols) {
|
|
45129
44793
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
45130
44794
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45131
44795
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45132
44796
|
})), keys.push.apply(keys, symbols);
|
|
45133
44797
|
}
|
|
45134
|
-
|
|
45135
44798
|
return keys;
|
|
45136
44799
|
}
|
|
45137
|
-
|
|
45138
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44800
|
+
function objectSpread2_objectSpread2(target) {
|
|
45139
44801
|
for (var i = 1; i < arguments.length; i++) {
|
|
45140
44802
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
45141
|
-
i % 2 ?
|
|
45142
|
-
|
|
45143
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44803
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44804
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44805
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
45144
44806
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45145
44807
|
});
|
|
45146
44808
|
}
|
|
45147
|
-
|
|
45148
44809
|
return target;
|
|
45149
44810
|
}
|
|
45150
44811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
45151
|
-
function
|
|
44812
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
45152
44813
|
if (Array.isArray(arr)) return arr;
|
|
45153
44814
|
}
|
|
45154
44815
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
45155
|
-
function
|
|
44816
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
45156
44817
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
45157
|
-
|
|
45158
44818
|
if (null != _i) {
|
|
45159
44819
|
var _s,
|
|
45160
|
-
|
|
45161
|
-
|
|
45162
|
-
|
|
45163
|
-
|
|
45164
|
-
|
|
45165
|
-
|
|
45166
|
-
|
|
44820
|
+
_e,
|
|
44821
|
+
_x,
|
|
44822
|
+
_r,
|
|
44823
|
+
_arr = [],
|
|
44824
|
+
_n = !0,
|
|
44825
|
+
_d = !1;
|
|
45167
44826
|
try {
|
|
45168
44827
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
45169
44828
|
if (Object(_i) !== _i) return;
|
|
45170
44829
|
_n = !1;
|
|
45171
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
45172
|
-
;
|
|
45173
|
-
}
|
|
44830
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
45174
44831
|
} catch (err) {
|
|
45175
44832
|
_d = !0, _e = err;
|
|
45176
44833
|
} finally {
|
|
@@ -45180,32 +44837,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
45180
44837
|
if (_d) throw _e;
|
|
45181
44838
|
}
|
|
45182
44839
|
}
|
|
45183
|
-
|
|
45184
44840
|
return _arr;
|
|
45185
44841
|
}
|
|
45186
44842
|
}
|
|
45187
44843
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
45188
|
-
function
|
|
44844
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
45189
44845
|
if (len == null || len > arr.length) len = arr.length;
|
|
45190
|
-
|
|
45191
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
45192
|
-
arr2[i] = arr[i];
|
|
45193
|
-
}
|
|
45194
|
-
|
|
44846
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
45195
44847
|
return arr2;
|
|
45196
44848
|
}
|
|
45197
44849
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
45198
44850
|
|
|
45199
|
-
function
|
|
44851
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
45200
44852
|
if (!o) return;
|
|
45201
|
-
if (typeof o === "string") return
|
|
44853
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45202
44854
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
45203
44855
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
45204
44856
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
45205
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44857
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
45206
44858
|
}
|
|
45207
44859
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
45208
|
-
function
|
|
44860
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
45209
44861
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45210
44862
|
}
|
|
45211
44863
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -45213,34 +44865,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
45213
44865
|
|
|
45214
44866
|
|
|
45215
44867
|
|
|
45216
|
-
function
|
|
45217
|
-
return
|
|
44868
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44869
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
45218
44870
|
}
|
|
45219
44871
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
45220
|
-
function
|
|
44872
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
45221
44873
|
if (source == null) return {};
|
|
45222
44874
|
var target = {};
|
|
45223
44875
|
var sourceKeys = Object.keys(source);
|
|
45224
44876
|
var key, i;
|
|
45225
|
-
|
|
45226
44877
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
45227
44878
|
key = sourceKeys[i];
|
|
45228
44879
|
if (excluded.indexOf(key) >= 0) continue;
|
|
45229
44880
|
target[key] = source[key];
|
|
45230
44881
|
}
|
|
45231
|
-
|
|
45232
44882
|
return target;
|
|
45233
44883
|
}
|
|
45234
44884
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
45235
44885
|
|
|
45236
|
-
function
|
|
44886
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
45237
44887
|
if (source == null) return {};
|
|
45238
|
-
var target =
|
|
44888
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
45239
44889
|
var key, i;
|
|
45240
|
-
|
|
45241
44890
|
if (Object.getOwnPropertySymbols) {
|
|
45242
44891
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45243
|
-
|
|
45244
44892
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
45245
44893
|
key = sourceSymbolKeys[i];
|
|
45246
44894
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -45248,7 +44896,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
45248
44896
|
target[key] = source[key];
|
|
45249
44897
|
}
|
|
45250
44898
|
}
|
|
45251
|
-
|
|
45252
44899
|
return target;
|
|
45253
44900
|
}
|
|
45254
44901
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -46196,14 +45843,14 @@ var index = (function () {
|
|
|
46196
45843
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
46197
45844
|
|
|
46198
45845
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
46199
|
-
|
|
45846
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
46200
45847
|
|
|
46201
|
-
var _super =
|
|
45848
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
46202
45849
|
|
|
46203
45850
|
function ReactResizeObserver() {
|
|
46204
45851
|
var _this;
|
|
46205
45852
|
|
|
46206
|
-
|
|
45853
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
46207
45854
|
|
|
46208
45855
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46209
45856
|
args[_key] = arguments[_key];
|
|
@@ -46254,7 +45901,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46254
45901
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46255
45902
|
|
|
46256
45903
|
Promise.resolve().then(function () {
|
|
46257
|
-
onResize(
|
|
45904
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
46258
45905
|
offsetWidth: mergedOffsetWidth,
|
|
46259
45906
|
offsetHeight: mergedOffsetHeight
|
|
46260
45907
|
}), target);
|
|
@@ -46270,7 +45917,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46270
45917
|
return _this;
|
|
46271
45918
|
}
|
|
46272
45919
|
|
|
46273
|
-
|
|
45920
|
+
_createClass(ReactResizeObserver, [{
|
|
46274
45921
|
key: "componentDidMount",
|
|
46275
45922
|
value: function componentDidMount() {
|
|
46276
45923
|
this.onComponentUpdated();
|
|
@@ -46384,7 +46031,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46384
46031
|
position: 'relative',
|
|
46385
46032
|
overflow: 'hidden'
|
|
46386
46033
|
};
|
|
46387
|
-
innerStyle =
|
|
46034
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46388
46035
|
transform: "translateY(".concat(offset, "px)"),
|
|
46389
46036
|
position: 'absolute',
|
|
46390
46037
|
left: 0,
|
|
@@ -46401,24 +46048,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46401
46048
|
onInnerResize();
|
|
46402
46049
|
}
|
|
46403
46050
|
}
|
|
46404
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46051
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46405
46052
|
style: innerStyle,
|
|
46406
|
-
className: classnames_default()(
|
|
46053
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46407
46054
|
ref: ref
|
|
46408
46055
|
}, innerProps), children)));
|
|
46409
46056
|
});
|
|
46410
46057
|
Filler.displayName = 'Filler';
|
|
46411
46058
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46412
46059
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46413
|
-
function
|
|
46060
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46414
46061
|
if (!(instance instanceof Constructor)) {
|
|
46415
46062
|
throw new TypeError("Cannot call a class as a function");
|
|
46416
46063
|
}
|
|
46417
46064
|
}
|
|
46418
46065
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46419
46066
|
|
|
46420
|
-
|
|
46421
|
-
function esm_createClass_defineProperties(target, props) {
|
|
46067
|
+
function createClass_defineProperties(target, props) {
|
|
46422
46068
|
for (var i = 0; i < props.length; i++) {
|
|
46423
46069
|
var descriptor = props[i];
|
|
46424
46070
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46427,30 +46073,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46427
46073
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46428
46074
|
}
|
|
46429
46075
|
}
|
|
46430
|
-
|
|
46431
|
-
|
|
46432
|
-
if (
|
|
46433
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
46076
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46077
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46078
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46434
46079
|
Object.defineProperty(Constructor, "prototype", {
|
|
46435
46080
|
writable: false
|
|
46436
46081
|
});
|
|
46437
46082
|
return Constructor;
|
|
46438
46083
|
}
|
|
46439
46084
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46440
|
-
function
|
|
46441
|
-
|
|
46085
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
46086
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46442
46087
|
o.__proto__ = p;
|
|
46443
46088
|
return o;
|
|
46444
46089
|
};
|
|
46445
|
-
return
|
|
46090
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46446
46091
|
}
|
|
46447
46092
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46448
46093
|
|
|
46449
|
-
function
|
|
46094
|
+
function inherits_inherits(subClass, superClass) {
|
|
46450
46095
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46451
46096
|
throw new TypeError("Super expression must either be null or a function");
|
|
46452
46097
|
}
|
|
46453
|
-
|
|
46454
46098
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46455
46099
|
constructor: {
|
|
46456
46100
|
value: subClass,
|
|
@@ -46461,21 +46105,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46461
46105
|
Object.defineProperty(subClass, "prototype", {
|
|
46462
46106
|
writable: false
|
|
46463
46107
|
});
|
|
46464
|
-
if (superClass)
|
|
46108
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46465
46109
|
}
|
|
46466
46110
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46467
|
-
function
|
|
46468
|
-
|
|
46111
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
46112
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46469
46113
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46470
46114
|
};
|
|
46471
|
-
return
|
|
46115
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46472
46116
|
}
|
|
46473
46117
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46474
|
-
function
|
|
46118
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46475
46119
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46476
46120
|
if (Reflect.construct.sham) return false;
|
|
46477
46121
|
if (typeof Proxy === "function") return true;
|
|
46478
|
-
|
|
46479
46122
|
try {
|
|
46480
46123
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46481
46124
|
return true;
|
|
@@ -46484,43 +46127,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46484
46127
|
}
|
|
46485
46128
|
}
|
|
46486
46129
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46487
|
-
function
|
|
46130
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46488
46131
|
if (self === void 0) {
|
|
46489
46132
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46490
46133
|
}
|
|
46491
|
-
|
|
46492
46134
|
return self;
|
|
46493
46135
|
}
|
|
46494
46136
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46495
46137
|
|
|
46496
46138
|
|
|
46497
|
-
function
|
|
46498
|
-
if (call && (
|
|
46139
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46140
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46499
46141
|
return call;
|
|
46500
46142
|
} else if (call !== void 0) {
|
|
46501
46143
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46502
46144
|
}
|
|
46503
|
-
|
|
46504
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
46145
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46505
46146
|
}
|
|
46506
46147
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46507
46148
|
|
|
46508
46149
|
|
|
46509
46150
|
|
|
46510
|
-
function
|
|
46511
|
-
var hasNativeReflectConstruct =
|
|
46151
|
+
function createSuper_createSuper(Derived) {
|
|
46152
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46512
46153
|
return function _createSuperInternal() {
|
|
46513
|
-
var Super =
|
|
46514
|
-
|
|
46515
|
-
|
|
46154
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
46155
|
+
result;
|
|
46516
46156
|
if (hasNativeReflectConstruct) {
|
|
46517
|
-
var NewTarget =
|
|
46157
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46518
46158
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46519
46159
|
} else {
|
|
46520
46160
|
result = Super.apply(this, arguments);
|
|
46521
46161
|
}
|
|
46522
|
-
|
|
46523
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46162
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46524
46163
|
};
|
|
46525
46164
|
}
|
|
46526
46165
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46595,11 +46234,11 @@ function getPageY(e) {
|
|
|
46595
46234
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46596
46235
|
}
|
|
46597
46236
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46598
|
-
|
|
46599
|
-
var _super =
|
|
46237
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
46238
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46600
46239
|
function ScrollBar() {
|
|
46601
46240
|
var _this;
|
|
46602
|
-
|
|
46241
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46603
46242
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46604
46243
|
args[_key] = arguments[_key];
|
|
46605
46244
|
}
|
|
@@ -46727,7 +46366,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46727
46366
|
};
|
|
46728
46367
|
return _this;
|
|
46729
46368
|
}
|
|
46730
|
-
|
|
46369
|
+
createClass_createClass(ScrollBar, [{
|
|
46731
46370
|
key: "componentDidMount",
|
|
46732
46371
|
value: function componentDidMount() {
|
|
46733
46372
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46761,7 +46400,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46761
46400
|
var mergedVisible = canScroll && visible;
|
|
46762
46401
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46763
46402
|
ref: this.scrollbarRef,
|
|
46764
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46403
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46765
46404
|
style: {
|
|
46766
46405
|
width: 8,
|
|
46767
46406
|
top: 0,
|
|
@@ -46774,7 +46413,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46774
46413
|
onMouseMove: this.delayHidden
|
|
46775
46414
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46776
46415
|
ref: this.thumbRef,
|
|
46777
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46416
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46778
46417
|
style: {
|
|
46779
46418
|
width: '100%',
|
|
46780
46419
|
height: spinHeight,
|
|
@@ -46853,11 +46492,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46853
46492
|
// Firefox has low performance of map.
|
|
46854
46493
|
var CacheMap = /*#__PURE__*/function () {
|
|
46855
46494
|
function CacheMap() {
|
|
46856
|
-
|
|
46495
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46857
46496
|
this.maps = void 0;
|
|
46858
46497
|
this.maps = Object.create(null);
|
|
46859
46498
|
}
|
|
46860
|
-
|
|
46499
|
+
createClass_createClass(CacheMap, [{
|
|
46861
46500
|
key: "set",
|
|
46862
46501
|
value: function set(key, value) {
|
|
46863
46502
|
this.maps[key] = value;
|
|
@@ -46880,7 +46519,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46880
46519
|
|
|
46881
46520
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46882
46521
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46883
|
-
_React$useState2 =
|
|
46522
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46884
46523
|
updatedMark = _React$useState2[0],
|
|
46885
46524
|
setUpdatedMark = _React$useState2[1];
|
|
46886
46525
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46947,7 +46586,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46947
46586
|
es_raf.cancel(scrollRef.current);
|
|
46948
46587
|
if (typeof arg === 'number') {
|
|
46949
46588
|
syncScrollTop(arg);
|
|
46950
|
-
} else if (arg &&
|
|
46589
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46951
46590
|
var index;
|
|
46952
46591
|
var align = arg.align;
|
|
46953
46592
|
if ('index' in arg) {
|
|
@@ -47103,11 +46742,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
47103
46742
|
|
|
47104
46743
|
function useDiffItem(data, getKey, onDiff) {
|
|
47105
46744
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
47106
|
-
_React$useState2 =
|
|
46745
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
47107
46746
|
prevData = _React$useState2[0],
|
|
47108
46747
|
setPrevData = _React$useState2[1];
|
|
47109
46748
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
47110
|
-
_React$useState4 =
|
|
46749
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
47111
46750
|
diffItem = _React$useState4[0],
|
|
47112
46751
|
setDiffItem = _React$useState4[1];
|
|
47113
46752
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -47122,7 +46761,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
47122
46761
|
}
|
|
47123
46762
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
47124
46763
|
|
|
47125
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46764
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
47126
46765
|
/* harmony default export */ var isFirefox = (isFF);
|
|
47127
46766
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
47128
46767
|
|
|
@@ -47341,16 +46980,16 @@ function RawList(props, ref) {
|
|
|
47341
46980
|
onScroll = props.onScroll,
|
|
47342
46981
|
onVisibleChange = props.onVisibleChange,
|
|
47343
46982
|
innerProps = props.innerProps,
|
|
47344
|
-
restProps =
|
|
46983
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47345
46984
|
// ================================= MISC =================================
|
|
47346
46985
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47347
46986
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47348
46987
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47349
|
-
_useState2 =
|
|
46988
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47350
46989
|
scrollTop = _useState2[0],
|
|
47351
46990
|
setScrollTop = _useState2[1];
|
|
47352
46991
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47353
|
-
_useState4 =
|
|
46992
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47354
46993
|
scrollMoving = _useState4[0],
|
|
47355
46994
|
setScrollMoving = _useState4[1];
|
|
47356
46995
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47390,12 +47029,12 @@ function RawList(props, ref) {
|
|
|
47390
47029
|
});
|
|
47391
47030
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47392
47031
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47393
|
-
_useDiffItem2 =
|
|
47032
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47394
47033
|
diffItem = _useDiffItem2[0];
|
|
47395
47034
|
diffItemRef.current = diffItem;
|
|
47396
47035
|
// ================================ Height ================================
|
|
47397
47036
|
var _useHeights = useHeights(getKey, null, null),
|
|
47398
|
-
_useHeights2 =
|
|
47037
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47399
47038
|
setInstanceRef = _useHeights2[0],
|
|
47400
47039
|
collectHeight = _useHeights2[1],
|
|
47401
47040
|
heights = _useHeights2[2],
|
|
@@ -47501,7 +47140,7 @@ function RawList(props, ref) {
|
|
|
47501
47140
|
return newTop;
|
|
47502
47141
|
});
|
|
47503
47142
|
}),
|
|
47504
|
-
_useFrameWheel2 =
|
|
47143
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47505
47144
|
onRawWheel = _useFrameWheel2[0],
|
|
47506
47145
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47507
47146
|
// Mobile touch move
|
|
@@ -47555,7 +47194,7 @@ function RawList(props, ref) {
|
|
|
47555
47194
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47556
47195
|
var componentStyle = null;
|
|
47557
47196
|
if (height) {
|
|
47558
|
-
componentStyle =
|
|
47197
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47559
47198
|
if (useVirtual) {
|
|
47560
47199
|
componentStyle.overflowY = 'hidden';
|
|
47561
47200
|
if (scrollMoving) {
|
|
@@ -47563,8 +47202,8 @@ function RawList(props, ref) {
|
|
|
47563
47202
|
}
|
|
47564
47203
|
}
|
|
47565
47204
|
}
|
|
47566
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47567
|
-
style:
|
|
47205
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47206
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47568
47207
|
position: 'relative'
|
|
47569
47208
|
}),
|
|
47570
47209
|
className: mergedClassName
|
|
@@ -47710,7 +47349,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47710
47349
|
return values;
|
|
47711
47350
|
}
|
|
47712
47351
|
function removeLastEnabledValue(measureValues, values) {
|
|
47713
|
-
var newValues =
|
|
47352
|
+
var newValues = _toConsumableArray(values);
|
|
47714
47353
|
|
|
47715
47354
|
var removeIndex;
|
|
47716
47355
|
|
|
@@ -47844,7 +47483,7 @@ function flattenOptions(options) {
|
|
|
47844
47483
|
*/
|
|
47845
47484
|
|
|
47846
47485
|
function injectPropsWithOption(option) {
|
|
47847
|
-
var newOption =
|
|
47486
|
+
var newOption = _objectSpread2({}, option);
|
|
47848
47487
|
|
|
47849
47488
|
if (!('props' in newOption)) {
|
|
47850
47489
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47878,7 +47517,7 @@ function findValueOption(values, options) {
|
|
|
47878
47517
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47879
47518
|
|
|
47880
47519
|
if (!option) {
|
|
47881
|
-
option =
|
|
47520
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47882
47521
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47883
47522
|
}));
|
|
47884
47523
|
}
|
|
@@ -47897,7 +47536,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47897
47536
|
};
|
|
47898
47537
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47899
47538
|
|
|
47900
|
-
if (prevValItem &&
|
|
47539
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47901
47540
|
result.label = prevValItem.label;
|
|
47902
47541
|
|
|
47903
47542
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47945,7 +47584,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47945
47584
|
var filterFunc;
|
|
47946
47585
|
|
|
47947
47586
|
if (filterOption === false) {
|
|
47948
|
-
return
|
|
47587
|
+
return _toConsumableArray(options);
|
|
47949
47588
|
}
|
|
47950
47589
|
|
|
47951
47590
|
if (typeof filterOption === 'function') {
|
|
@@ -47969,7 +47608,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47969
47608
|
});
|
|
47970
47609
|
|
|
47971
47610
|
if (subOptions.length) {
|
|
47972
|
-
filteredOptions.push(
|
|
47611
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47973
47612
|
options: subOptions
|
|
47974
47613
|
}));
|
|
47975
47614
|
}
|
|
@@ -48003,7 +47642,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
48003
47642
|
var list = str.split(token);
|
|
48004
47643
|
match = match || list.length > 1;
|
|
48005
47644
|
return list.reduce(function (prevList, unitStr) {
|
|
48006
|
-
return [].concat(
|
|
47645
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
48007
47646
|
}, []).filter(function (unit) {
|
|
48008
47647
|
return unit;
|
|
48009
47648
|
});
|
|
@@ -48023,7 +47662,7 @@ function isValueDisabled(value, options) {
|
|
|
48023
47662
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
48024
47663
|
var values = commonUtil_toArray(value).slice().sort();
|
|
48025
47664
|
|
|
48026
|
-
var cloneOptions =
|
|
47665
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
48027
47666
|
|
|
48028
47667
|
|
|
48029
47668
|
var optionValues = new Set();
|
|
@@ -48043,7 +47682,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
48043
47682
|
if (!optionValues.has(val)) {
|
|
48044
47683
|
var _ref9;
|
|
48045
47684
|
|
|
48046
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47685
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
48047
47686
|
value: val
|
|
48048
47687
|
});
|
|
48049
47688
|
}
|
|
@@ -48309,7 +47948,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48309
47948
|
children = itemData.children;
|
|
48310
47949
|
var attrs = pickAttrs(itemData, true);
|
|
48311
47950
|
var mergedLabel = childrenAsData ? children : label;
|
|
48312
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47951
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
48313
47952
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48314
47953
|
}, attrs, {
|
|
48315
47954
|
key: index,
|
|
@@ -48359,13 +47998,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48359
47998
|
children = data.children,
|
|
48360
47999
|
style = data.style,
|
|
48361
48000
|
className = data.className,
|
|
48362
|
-
otherProps =
|
|
48001
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
48363
48002
|
|
|
48364
48003
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48365
48004
|
|
|
48366
48005
|
var selected = values.has(value);
|
|
48367
48006
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48368
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
48007
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
48369
48008
|
var mergedLabel = childrenAsData ? children : label;
|
|
48370
48009
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48371
48010
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48376,7 +48015,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48376
48015
|
optionTitle = title;
|
|
48377
48016
|
}
|
|
48378
48017
|
|
|
48379
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48018
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48380
48019
|
"aria-selected": selected,
|
|
48381
48020
|
className: optionClassName,
|
|
48382
48021
|
title: optionTitle,
|
|
@@ -48437,9 +48076,9 @@ function convertNodeToOption(node) {
|
|
|
48437
48076
|
_node$props = node.props,
|
|
48438
48077
|
children = _node$props.children,
|
|
48439
48078
|
value = _node$props.value,
|
|
48440
|
-
restProps =
|
|
48079
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48441
48080
|
|
|
48442
|
-
return
|
|
48081
|
+
return _objectSpread2({
|
|
48443
48082
|
key: key,
|
|
48444
48083
|
value: value !== undefined ? value : key,
|
|
48445
48084
|
children: children
|
|
@@ -48457,13 +48096,13 @@ function convertChildrenToData(nodes) {
|
|
|
48457
48096
|
key = node.key,
|
|
48458
48097
|
_node$props2 = node.props,
|
|
48459
48098
|
children = _node$props2.children,
|
|
48460
|
-
restProps =
|
|
48099
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48461
48100
|
|
|
48462
48101
|
if (optionOnly || !isSelectOptGroup) {
|
|
48463
48102
|
return convertNodeToOption(node);
|
|
48464
48103
|
}
|
|
48465
48104
|
|
|
48466
|
-
return
|
|
48105
|
+
return _objectSpread2(_objectSpread2({
|
|
48467
48106
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48468
48107
|
label: key
|
|
48469
48108
|
}, restProps), {}, {
|
|
@@ -48565,7 +48204,7 @@ function InternalItem(props, ref) {
|
|
|
48565
48204
|
order = props.order,
|
|
48566
48205
|
_props$component = props.component,
|
|
48567
48206
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48568
|
-
restProps =
|
|
48207
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48569
48208
|
|
|
48570
48209
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48571
48210
|
|
|
@@ -48599,9 +48238,9 @@ function InternalItem(props, ref) {
|
|
|
48599
48238
|
overflowProps['aria-hidden'] = true;
|
|
48600
48239
|
}
|
|
48601
48240
|
|
|
48602
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48241
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48603
48242
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48604
|
-
style:
|
|
48243
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48605
48244
|
}, overflowProps, restProps, {
|
|
48606
48245
|
ref: ref
|
|
48607
48246
|
}), childNode);
|
|
@@ -48686,23 +48325,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48686
48325
|
if (!context) {
|
|
48687
48326
|
var _props$component = props.component,
|
|
48688
48327
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48689
|
-
_restProps =
|
|
48328
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48690
48329
|
|
|
48691
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48330
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48692
48331
|
ref: ref
|
|
48693
48332
|
}));
|
|
48694
48333
|
}
|
|
48695
48334
|
|
|
48696
48335
|
var contextClassName = context.className,
|
|
48697
|
-
restContext =
|
|
48336
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48698
48337
|
|
|
48699
48338
|
var className = props.className,
|
|
48700
|
-
restProps =
|
|
48339
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48701
48340
|
|
|
48702
48341
|
|
|
48703
48342
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48704
48343
|
value: null
|
|
48705
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48344
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48706
48345
|
ref: ref,
|
|
48707
48346
|
className: classnames_default()(contextClassName, className)
|
|
48708
48347
|
}, restContext, restProps)));
|
|
@@ -48752,7 +48391,7 @@ function Overflow(props, ref) {
|
|
|
48752
48391
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48753
48392
|
itemComponent = props.itemComponent,
|
|
48754
48393
|
onVisibleChange = props.onVisibleChange,
|
|
48755
|
-
restProps =
|
|
48394
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48756
48395
|
|
|
48757
48396
|
var createUseState = useBatchFrameState();
|
|
48758
48397
|
var fullySSR = ssr === 'full';
|
|
@@ -48962,7 +48601,7 @@ function Overflow(props, ref) {
|
|
|
48962
48601
|
var key = getKey(item, index);
|
|
48963
48602
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48964
48603
|
key: key,
|
|
48965
|
-
value:
|
|
48604
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48966
48605
|
order: index,
|
|
48967
48606
|
item: item,
|
|
48968
48607
|
itemKey: key,
|
|
@@ -48972,7 +48611,7 @@ function Overflow(props, ref) {
|
|
|
48972
48611
|
}, renderRawItem(item, index));
|
|
48973
48612
|
} : function (item, index) {
|
|
48974
48613
|
var key = getKey(item, index);
|
|
48975
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48614
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48976
48615
|
order: index,
|
|
48977
48616
|
key: key,
|
|
48978
48617
|
item: item,
|
|
@@ -48993,18 +48632,18 @@ function Overflow(props, ref) {
|
|
|
48993
48632
|
|
|
48994
48633
|
if (!renderRawRest) {
|
|
48995
48634
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48996
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48635
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48997
48636
|
} else if (renderRawRest) {
|
|
48998
48637
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48999
|
-
value:
|
|
48638
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
49000
48639
|
}, renderRawRest(omittedItems));
|
|
49001
48640
|
}
|
|
49002
48641
|
|
|
49003
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48642
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
49004
48643
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
49005
48644
|
style: style,
|
|
49006
48645
|
ref: ref
|
|
49007
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48646
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
49008
48647
|
order: mergedDisplayCount,
|
|
49009
48648
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
49010
48649
|
registerSize: registerSuffixSize,
|
|
@@ -49069,7 +48708,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49069
48708
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
49070
48709
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
49071
48710
|
style = _inputNode$props.style;
|
|
49072
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48711
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
49073
48712
|
id: id,
|
|
49074
48713
|
ref: composeRef(ref, originRef),
|
|
49075
48714
|
disabled: disabled,
|
|
@@ -49078,7 +48717,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49078
48717
|
type: 'search',
|
|
49079
48718
|
autoFocus: autoFocus,
|
|
49080
48719
|
className: classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
49081
|
-
style:
|
|
48720
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
49082
48721
|
opacity: editable ? null : 0
|
|
49083
48722
|
}),
|
|
49084
48723
|
role: 'combobox',
|
|
@@ -49226,7 +48865,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
49226
48865
|
|
|
49227
48866
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
49228
48867
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49229
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48868
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
49230
48869
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
49231
48870
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49232
48871
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49641,7 +49280,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49641
49280
|
onInputCompositionStart: onInputCompositionStart,
|
|
49642
49281
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49643
49282
|
};
|
|
49644
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49283
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, extends_extends({}, props, sharedProps));
|
|
49645
49284
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49646
49285
|
ref: domRef,
|
|
49647
49286
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49686,7 +49325,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49686
49325
|
|
|
49687
49326
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49688
49327
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49689
|
-
return
|
|
49328
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49690
49329
|
}
|
|
49691
49330
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49692
49331
|
var points = align.points;
|
|
@@ -49750,7 +49389,7 @@ function Mask_Mask(props) {
|
|
|
49750
49389
|
var motion = {};
|
|
49751
49390
|
|
|
49752
49391
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49753
|
-
motion =
|
|
49392
|
+
motion = _objectSpread2({
|
|
49754
49393
|
motionAppear: true
|
|
49755
49394
|
}, getMotion({
|
|
49756
49395
|
motion: maskMotion,
|
|
@@ -49760,7 +49399,7 @@ function Mask_Mask(props) {
|
|
|
49760
49399
|
}));
|
|
49761
49400
|
}
|
|
49762
49401
|
|
|
49763
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49402
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49764
49403
|
visible: visible,
|
|
49765
49404
|
removeOnLeave: true
|
|
49766
49405
|
}), function (_ref) {
|
|
@@ -51272,7 +50911,7 @@ function getElement(func) {
|
|
|
51272
50911
|
}
|
|
51273
50912
|
|
|
51274
50913
|
function getPoint(point) {
|
|
51275
|
-
if (
|
|
50914
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
51276
50915
|
return point;
|
|
51277
50916
|
}
|
|
51278
50917
|
|
|
@@ -51486,9 +51125,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51486
51125
|
}
|
|
51487
51126
|
|
|
51488
51127
|
if (status) {
|
|
51489
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51128
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51490
51129
|
var index, nextStatus;
|
|
51491
|
-
return
|
|
51130
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51492
51131
|
while (1) {
|
|
51493
51132
|
switch (_context.prev = _context.next) {
|
|
51494
51133
|
case 0:
|
|
@@ -51661,7 +51300,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51661
51300
|
} // ======================== Motion ========================
|
|
51662
51301
|
|
|
51663
51302
|
|
|
51664
|
-
var motion =
|
|
51303
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51665
51304
|
|
|
51666
51305
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51667
51306
|
var originHandler = motion[eventName];
|
|
@@ -51694,7 +51333,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51694
51333
|
};
|
|
51695
51334
|
}); // ======================== Render ========================
|
|
51696
51335
|
|
|
51697
|
-
var mergedStyle =
|
|
51336
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51698
51337
|
zIndex: zIndex,
|
|
51699
51338
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51700
51339
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51715,7 +51354,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51715
51354
|
}, children);
|
|
51716
51355
|
}
|
|
51717
51356
|
|
|
51718
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51357
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51719
51358
|
visible: visible,
|
|
51720
51359
|
ref: elementRef,
|
|
51721
51360
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51743,7 +51382,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51743
51382
|
onMouseLeave: onMouseLeave,
|
|
51744
51383
|
onMouseDownCapture: onMouseDown,
|
|
51745
51384
|
onTouchStartCapture: onTouchStart,
|
|
51746
|
-
style:
|
|
51385
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51747
51386
|
}, childNode));
|
|
51748
51387
|
});
|
|
51749
51388
|
});
|
|
@@ -51778,7 +51417,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51778
51417
|
};
|
|
51779
51418
|
}); // ======================== Render ========================
|
|
51780
51419
|
|
|
51781
|
-
var mergedStyle =
|
|
51420
|
+
var mergedStyle = _objectSpread2({
|
|
51782
51421
|
zIndex: zIndex
|
|
51783
51422
|
}, popupStyle);
|
|
51784
51423
|
|
|
@@ -51795,7 +51434,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51795
51434
|
childNode = popupRender(childNode);
|
|
51796
51435
|
}
|
|
51797
51436
|
|
|
51798
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51437
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51799
51438
|
visible: visible,
|
|
51800
51439
|
ref: elementRef,
|
|
51801
51440
|
removeOnLeave: true
|
|
@@ -51806,7 +51445,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51806
51445
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51807
51446
|
ref: motionRef,
|
|
51808
51447
|
className: mergedClassName,
|
|
51809
|
-
style:
|
|
51448
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51810
51449
|
}, childNode);
|
|
51811
51450
|
});
|
|
51812
51451
|
});
|
|
@@ -51827,7 +51466,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51827
51466
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51828
51467
|
var visible = _ref.visible,
|
|
51829
51468
|
mobile = _ref.mobile,
|
|
51830
|
-
props =
|
|
51469
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51831
51470
|
|
|
51832
51471
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51833
51472
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51839,7 +51478,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51839
51478
|
inMobile = _useState4[0],
|
|
51840
51479
|
setInMobile = _useState4[1];
|
|
51841
51480
|
|
|
51842
|
-
var cloneProps =
|
|
51481
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51843
51482
|
visible: innerVisible
|
|
51844
51483
|
}); // We check mobile in visible changed here.
|
|
51845
51484
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51852,10 +51491,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51852
51491
|
setInMobile(isMobile());
|
|
51853
51492
|
}
|
|
51854
51493
|
}, [visible, mobile]);
|
|
51855
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51494
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51856
51495
|
mobile: mobile,
|
|
51857
51496
|
ref: ref
|
|
51858
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51497
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51859
51498
|
ref: ref
|
|
51860
51499
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51861
51500
|
|
|
@@ -51909,14 +51548,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51909
51548
|
|
|
51910
51549
|
function generateTrigger(PortalComponent) {
|
|
51911
51550
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51912
|
-
|
|
51551
|
+
_inherits(Trigger, _React$Component);
|
|
51913
51552
|
|
|
51914
|
-
var _super =
|
|
51553
|
+
var _super = _createSuper(Trigger);
|
|
51915
51554
|
|
|
51916
51555
|
function Trigger(props) {
|
|
51917
51556
|
var _this;
|
|
51918
51557
|
|
|
51919
|
-
|
|
51558
|
+
_classCallCheck(this, Trigger);
|
|
51920
51559
|
|
|
51921
51560
|
_this = _super.call(this, props);
|
|
51922
51561
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -52104,7 +51743,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52104
51743
|
} catch (err) {// Do nothing
|
|
52105
51744
|
}
|
|
52106
51745
|
|
|
52107
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51746
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
52108
51747
|
};
|
|
52109
51748
|
|
|
52110
51749
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -52165,7 +51804,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52165
51804
|
|
|
52166
51805
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
52167
51806
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
52168
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51807
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
52169
51808
|
prefixCls: prefixCls,
|
|
52170
51809
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
52171
51810
|
visible: popupVisible,
|
|
@@ -52278,7 +51917,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52278
51917
|
return _this;
|
|
52279
51918
|
}
|
|
52280
51919
|
|
|
52281
|
-
|
|
51920
|
+
_createClass(Trigger, [{
|
|
52282
51921
|
key: "componentDidMount",
|
|
52283
51922
|
value: function componentDidMount() {
|
|
52284
51923
|
this.componentDidUpdate();
|
|
@@ -52603,7 +52242,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52603
52242
|
newChildProps.className = childrenClassName;
|
|
52604
52243
|
}
|
|
52605
52244
|
|
|
52606
|
-
var cloneProps =
|
|
52245
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52607
52246
|
|
|
52608
52247
|
if (supportRef(child)) {
|
|
52609
52248
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52744,7 +52383,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52744
52383
|
empty = props.empty,
|
|
52745
52384
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52746
52385
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52747
|
-
restProps =
|
|
52386
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52748
52387
|
|
|
52749
52388
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52750
52389
|
var popupNode = popupElement;
|
|
@@ -52768,7 +52407,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52768
52407
|
};
|
|
52769
52408
|
});
|
|
52770
52409
|
|
|
52771
|
-
var popupStyle =
|
|
52410
|
+
var popupStyle = _objectSpread2({
|
|
52772
52411
|
minWidth: containerWidth
|
|
52773
52412
|
}, dropdownStyle);
|
|
52774
52413
|
|
|
@@ -52778,7 +52417,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52778
52417
|
popupStyle.width = containerWidth;
|
|
52779
52418
|
}
|
|
52780
52419
|
|
|
52781
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52420
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52782
52421
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52783
52422
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52784
52423
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52791,7 +52430,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52791
52430
|
popupAlign: dropdownAlign,
|
|
52792
52431
|
popupVisible: visible,
|
|
52793
52432
|
getPopupContainer: getPopupContainer,
|
|
52794
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52433
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52795
52434
|
popupStyle: popupStyle,
|
|
52796
52435
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52797
52436
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52894,7 +52533,7 @@ function useCacheDisplayValue(values) {
|
|
|
52894
52533
|
var cacheLabel = valueLabels.get(item.value);
|
|
52895
52534
|
|
|
52896
52535
|
if (item.isCacheable && cacheLabel) {
|
|
52897
|
-
return
|
|
52536
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52898
52537
|
label: cacheLabel
|
|
52899
52538
|
});
|
|
52900
52539
|
}
|
|
@@ -53056,7 +52695,7 @@ function generateSelector(config) {
|
|
|
53056
52695
|
onClear = props.onClear,
|
|
53057
52696
|
_props$internalProps = props.internalProps,
|
|
53058
52697
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
53059
|
-
restProps =
|
|
52698
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
53060
52699
|
|
|
53061
52700
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
53062
52701
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -53194,7 +52833,7 @@ function generateSelector(config) {
|
|
|
53194
52833
|
|
|
53195
52834
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
53196
52835
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
53197
|
-
return
|
|
52836
|
+
return _toConsumableArray(mergedOptions);
|
|
53198
52837
|
}
|
|
53199
52838
|
|
|
53200
52839
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -53215,7 +52854,7 @@ function generateSelector(config) {
|
|
|
53215
52854
|
}
|
|
53216
52855
|
|
|
53217
52856
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
53218
|
-
return
|
|
52857
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
53219
52858
|
}
|
|
53220
52859
|
|
|
53221
52860
|
return filteredOptions;
|
|
@@ -53238,7 +52877,7 @@ function generateSelector(config) {
|
|
|
53238
52877
|
labelInValue: mergedLabelInValue,
|
|
53239
52878
|
optionLabelProp: mergedOptionLabelProp
|
|
53240
52879
|
});
|
|
53241
|
-
return
|
|
52880
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
53242
52881
|
disabled: isValueDisabled(val, valueOptions)
|
|
53243
52882
|
});
|
|
53244
52883
|
});
|
|
@@ -53312,7 +52951,7 @@ function generateSelector(config) {
|
|
|
53312
52951
|
}); // We will cache option in case it removed by ajax
|
|
53313
52952
|
|
|
53314
52953
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53315
|
-
var clone =
|
|
52954
|
+
var clone = _objectSpread2({}, option);
|
|
53316
52955
|
|
|
53317
52956
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53318
52957
|
get: function get() {
|
|
@@ -53368,13 +53007,13 @@ function generateSelector(config) {
|
|
|
53368
53007
|
};
|
|
53369
53008
|
|
|
53370
53009
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53371
|
-
onInternalSelect(newValue,
|
|
53010
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53372
53011
|
source: 'option'
|
|
53373
53012
|
}));
|
|
53374
53013
|
};
|
|
53375
53014
|
|
|
53376
53015
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53377
|
-
onInternalSelect(newValue,
|
|
53016
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53378
53017
|
source: 'selection'
|
|
53379
53018
|
}));
|
|
53380
53019
|
}; // ============================= Input ==============================
|
|
@@ -53458,7 +53097,7 @@ function generateSelector(config) {
|
|
|
53458
53097
|
});
|
|
53459
53098
|
}
|
|
53460
53099
|
|
|
53461
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53100
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53462
53101
|
triggerChange(newRawValues);
|
|
53463
53102
|
newRawValues.forEach(function (newRawValue) {
|
|
53464
53103
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53487,7 +53126,7 @@ function generateSelector(config) {
|
|
|
53487
53126
|
return;
|
|
53488
53127
|
}
|
|
53489
53128
|
|
|
53490
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53129
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53491
53130
|
triggerChange(newRawValues);
|
|
53492
53131
|
newRawValues.forEach(function (newRawValue) {
|
|
53493
53132
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53620,7 +53259,7 @@ function generateSelector(config) {
|
|
|
53620
53259
|
// `tags` mode should move `searchValue` into values
|
|
53621
53260
|
if (mode === 'tags') {
|
|
53622
53261
|
triggerSearch('', false, false);
|
|
53623
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53262
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53624
53263
|
} else if (mode === 'multiple') {
|
|
53625
53264
|
// `multiple` mode only clean the search value but not trigger event
|
|
53626
53265
|
setInnerSearchValue('');
|
|
@@ -53778,7 +53417,7 @@ function generateSelector(config) {
|
|
|
53778
53417
|
|
|
53779
53418
|
if (mergedShowArrow) {
|
|
53780
53419
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53781
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53420
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53782
53421
|
customizeIcon: inputIcon,
|
|
53783
53422
|
customizeIconProps: {
|
|
53784
53423
|
loading: loading,
|
|
@@ -53794,7 +53433,7 @@ function generateSelector(config) {
|
|
|
53794
53433
|
if (false) {} // ============================= Render =============================
|
|
53795
53434
|
|
|
53796
53435
|
|
|
53797
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53436
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53798
53437
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53799
53438
|
ref: triggerRef,
|
|
53800
53439
|
disabled: disabled,
|
|
@@ -53819,7 +53458,7 @@ function generateSelector(config) {
|
|
|
53819
53458
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53820
53459
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53821
53460
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53822
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53461
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53823
53462
|
domRef: selectorDomRef,
|
|
53824
53463
|
prefixCls: prefixCls,
|
|
53825
53464
|
inputElement: customizeInputElement,
|
|
@@ -53845,7 +53484,7 @@ function generateSelector(config) {
|
|
|
53845
53484
|
return selectorNode;
|
|
53846
53485
|
}
|
|
53847
53486
|
|
|
53848
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53487
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53849
53488
|
className: mergedClassName
|
|
53850
53489
|
}, domProps, {
|
|
53851
53490
|
ref: containerRef,
|
|
@@ -53932,7 +53571,7 @@ function warningProps(props) {
|
|
|
53932
53571
|
if (value !== undefined && value !== null) {
|
|
53933
53572
|
var values = commonUtil_toArray(value);
|
|
53934
53573
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53935
|
-
return
|
|
53574
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53936
53575
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53937
53576
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53938
53577
|
} // Syntactic sugar should use correct children type
|
|
@@ -54046,14 +53685,14 @@ var RefSelect = generateSelector({
|
|
|
54046
53685
|
*/
|
|
54047
53686
|
|
|
54048
53687
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
54049
|
-
|
|
53688
|
+
_inherits(Select, _React$Component);
|
|
54050
53689
|
|
|
54051
|
-
var _super =
|
|
53690
|
+
var _super = _createSuper(Select);
|
|
54052
53691
|
|
|
54053
53692
|
function Select() {
|
|
54054
53693
|
var _this;
|
|
54055
53694
|
|
|
54056
|
-
|
|
53695
|
+
_classCallCheck(this, Select);
|
|
54057
53696
|
|
|
54058
53697
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54059
53698
|
args[_key] = arguments[_key];
|
|
@@ -54073,10 +53712,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
54073
53712
|
return _this;
|
|
54074
53713
|
}
|
|
54075
53714
|
|
|
54076
|
-
|
|
53715
|
+
_createClass(Select, [{
|
|
54077
53716
|
key: "render",
|
|
54078
53717
|
value: function render() {
|
|
54079
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53718
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
54080
53719
|
ref: this.selectRef
|
|
54081
53720
|
}, this.props));
|
|
54082
53721
|
}
|
|
@@ -56386,7 +56025,7 @@ function TabNode(_ref, ref) {
|
|
|
56386
56025
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56387
56026
|
key: key,
|
|
56388
56027
|
ref: ref,
|
|
56389
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56028
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), _defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), _defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
56390
56029
|
style: style,
|
|
56391
56030
|
onClick: onInternalClick
|
|
56392
56031
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56449,7 +56088,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56449
56088
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56450
56089
|
}
|
|
56451
56090
|
|
|
56452
|
-
var entity = map.get(key) ||
|
|
56091
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56453
56092
|
|
|
56454
56093
|
|
|
56455
56094
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56544,7 +56183,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56544
56183
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56545
56184
|
|
|
56546
56185
|
function mergeProps(origin, target) {
|
|
56547
|
-
var clone =
|
|
56186
|
+
var clone = _objectSpread2({}, origin);
|
|
56548
56187
|
|
|
56549
56188
|
Object.keys(target).forEach(function (key) {
|
|
56550
56189
|
var value = target[key];
|
|
@@ -56559,7 +56198,7 @@ function mergeProps(origin, target) {
|
|
|
56559
56198
|
function InheritableContextProvider(_ref) {
|
|
56560
56199
|
var children = _ref.children,
|
|
56561
56200
|
locked = _ref.locked,
|
|
56562
|
-
restProps =
|
|
56201
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56563
56202
|
|
|
56564
56203
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56565
56204
|
var inheritableContext = useMemo(function () {
|
|
@@ -56615,7 +56254,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56615
56254
|
|
|
56616
56255
|
function warnItemProp(_ref) {
|
|
56617
56256
|
var item = _ref.item,
|
|
56618
|
-
restInfo =
|
|
56257
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56619
56258
|
|
|
56620
56259
|
Object.defineProperty(restInfo, 'item', {
|
|
56621
56260
|
get: function get() {
|
|
@@ -56635,7 +56274,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56635
56274
|
var iconNode;
|
|
56636
56275
|
|
|
56637
56276
|
if (typeof icon === 'function') {
|
|
56638
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56277
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56639
56278
|
} else {
|
|
56640
56279
|
// Compatible for origin definition
|
|
56641
56280
|
iconNode = icon;
|
|
@@ -56676,7 +56315,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56676
56315
|
function useFullPath(eventKey) {
|
|
56677
56316
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56678
56317
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56679
|
-
return eventKey !== undefined ? [].concat(
|
|
56318
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56680
56319
|
}, [parentKeyPath, eventKey]);
|
|
56681
56320
|
}
|
|
56682
56321
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56733,28 +56372,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56733
56372
|
// This should be removed from doc & api in future.
|
|
56734
56373
|
|
|
56735
56374
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56736
|
-
|
|
56375
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56737
56376
|
|
|
56738
|
-
var _super =
|
|
56377
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56739
56378
|
|
|
56740
56379
|
function LegacyMenuItem() {
|
|
56741
|
-
|
|
56380
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56742
56381
|
|
|
56743
56382
|
return _super.apply(this, arguments);
|
|
56744
56383
|
}
|
|
56745
56384
|
|
|
56746
|
-
|
|
56385
|
+
_createClass(LegacyMenuItem, [{
|
|
56747
56386
|
key: "render",
|
|
56748
56387
|
value: function render() {
|
|
56749
56388
|
var _this$props = this.props,
|
|
56750
56389
|
title = _this$props.title,
|
|
56751
56390
|
attribute = _this$props.attribute,
|
|
56752
56391
|
elementRef = _this$props.elementRef,
|
|
56753
|
-
restProps =
|
|
56392
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56754
56393
|
|
|
56755
56394
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56756
56395
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56757
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56396
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56758
56397
|
title: typeof title === 'string' ? title : undefined
|
|
56759
56398
|
}, passedProps, {
|
|
56760
56399
|
ref: elementRef
|
|
@@ -56785,7 +56424,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56785
56424
|
onClick = props.onClick,
|
|
56786
56425
|
onKeyDown = props.onKeyDown,
|
|
56787
56426
|
onFocus = props.onFocus,
|
|
56788
|
-
restProps =
|
|
56427
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56789
56428
|
|
|
56790
56429
|
var domDataId = useMenuId(eventKey);
|
|
56791
56430
|
|
|
@@ -56814,7 +56453,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56814
56453
|
return {
|
|
56815
56454
|
key: eventKey,
|
|
56816
56455
|
// Note: For legacy code is reversed which not like other antd component
|
|
56817
|
-
keyPath:
|
|
56456
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56818
56457
|
item: legacyMenuItemRef.current,
|
|
56819
56458
|
domEvent: e
|
|
56820
56459
|
};
|
|
@@ -56825,7 +56464,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56825
56464
|
|
|
56826
56465
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56827
56466
|
active = _useActive.active,
|
|
56828
|
-
activeProps =
|
|
56467
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56829
56468
|
|
|
56830
56469
|
|
|
56831
56470
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56870,7 +56509,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56870
56509
|
optionRoleProps['aria-selected'] = selected;
|
|
56871
56510
|
}
|
|
56872
56511
|
|
|
56873
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56512
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56874
56513
|
ref: legacyMenuItemRef,
|
|
56875
56514
|
elementRef: elementRef,
|
|
56876
56515
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56879,13 +56518,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56879
56518
|
}, restProps, activeProps, optionRoleProps, {
|
|
56880
56519
|
component: "li",
|
|
56881
56520
|
"aria-disabled": disabled,
|
|
56882
|
-
style:
|
|
56883
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56521
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56522
|
+
className: classnames_default()(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56884
56523
|
onClick: onInternalClick,
|
|
56885
56524
|
onKeyDown: onInternalKeyDown,
|
|
56886
56525
|
onFocus: onInternalFocus
|
|
56887
56526
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56888
|
-
props:
|
|
56527
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56889
56528
|
isSelected: selected
|
|
56890
56529
|
}),
|
|
56891
56530
|
icon: mergedItemIcon
|
|
@@ -56938,7 +56577,7 @@ function parseChildren(children, keyPath) {
|
|
|
56938
56577
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56939
56578
|
|
|
56940
56579
|
if (emptyKey) {
|
|
56941
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56580
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56942
56581
|
}
|
|
56943
56582
|
|
|
56944
56583
|
var cloneProps = {
|
|
@@ -56986,14 +56625,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56986
56625
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56987
56626
|
var className = _ref.className,
|
|
56988
56627
|
children = _ref.children,
|
|
56989
|
-
restProps =
|
|
56628
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56990
56629
|
|
|
56991
56630
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56992
56631
|
prefixCls = _React$useContext.prefixCls,
|
|
56993
56632
|
mode = _React$useContext.mode,
|
|
56994
56633
|
rtl = _React$useContext.rtl;
|
|
56995
56634
|
|
|
56996
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56635
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56997
56636
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56998
56637
|
}, restProps, {
|
|
56999
56638
|
"data-menu-list": true,
|
|
@@ -57110,11 +56749,11 @@ function PopupTrigger(_ref) {
|
|
|
57110
56749
|
innerVisible = _React$useState2[0],
|
|
57111
56750
|
setInnerVisible = _React$useState2[1];
|
|
57112
56751
|
|
|
57113
|
-
var placement = rtl ?
|
|
56752
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
57114
56753
|
var popupPlacement = popupPlacementMap[mode];
|
|
57115
56754
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
57116
56755
|
|
|
57117
|
-
var mergedMotion =
|
|
56756
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
57118
56757
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
57119
56758
|
removeOnLeave: false,
|
|
57120
56759
|
motionAppear: true
|
|
@@ -57132,7 +56771,7 @@ function PopupTrigger(_ref) {
|
|
|
57132
56771
|
}, [visible]);
|
|
57133
56772
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
57134
56773
|
prefixCls: prefixCls,
|
|
57135
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56774
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
57136
56775
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
57137
56776
|
getPopupContainer: getPopupContainer,
|
|
57138
56777
|
builtinPlacements: placement,
|
|
@@ -57192,7 +56831,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57192
56831
|
}
|
|
57193
56832
|
}, [mode]); // ================================= Render =================================
|
|
57194
56833
|
|
|
57195
|
-
var mergedMotion =
|
|
56834
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
57196
56835
|
|
|
57197
56836
|
|
|
57198
56837
|
if (keyPath.length > 1) {
|
|
@@ -57217,7 +56856,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57217
56856
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
57218
56857
|
mode: fixedMode,
|
|
57219
56858
|
locked: !sameModeRef.current
|
|
57220
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56859
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
57221
56860
|
visible: mergedOpen
|
|
57222
56861
|
}, mergedMotion, {
|
|
57223
56862
|
forceRender: forceSubMenuRender,
|
|
@@ -57280,7 +56919,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57280
56919
|
onTitleClick = props.onTitleClick,
|
|
57281
56920
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57282
56921
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57283
|
-
restProps =
|
|
56922
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
57284
56923
|
|
|
57285
56924
|
var domDataId = useMenuId(eventKey);
|
|
57286
56925
|
|
|
@@ -57323,7 +56962,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57323
56962
|
|
|
57324
56963
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57325
56964
|
active = _useActive.active,
|
|
57326
|
-
activeProps =
|
|
56965
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57327
56966
|
|
|
57328
56967
|
|
|
57329
56968
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57408,7 +57047,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57408
57047
|
|
|
57409
57048
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57410
57049
|
|
|
57411
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57050
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57412
57051
|
role: "menuitem",
|
|
57413
57052
|
style: directionStyle,
|
|
57414
57053
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57424,7 +57063,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57424
57063
|
onFocus: onInternalFocus
|
|
57425
57064
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57426
57065
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57427
|
-
props:
|
|
57066
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57428
57067
|
isOpen: open,
|
|
57429
57068
|
// [Legacy] Not sure why need this mark
|
|
57430
57069
|
isSubMenu: true
|
|
@@ -57462,12 +57101,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57462
57101
|
} // >>>>> List node
|
|
57463
57102
|
|
|
57464
57103
|
|
|
57465
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57104
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57466
57105
|
role: "none"
|
|
57467
57106
|
}, restProps, {
|
|
57468
57107
|
component: "li",
|
|
57469
57108
|
style: style,
|
|
57470
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57109
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57471
57110
|
onMouseEnter: onInternalMouseEnter,
|
|
57472
57111
|
onMouseLeave: onInternalMouseLeave
|
|
57473
57112
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57560,7 +57199,7 @@ function focusable(node) {
|
|
|
57560
57199
|
function getFocusNodeList(node) {
|
|
57561
57200
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57562
57201
|
|
|
57563
|
-
var res =
|
|
57202
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57564
57203
|
return focusable(child, includePositive);
|
|
57565
57204
|
});
|
|
57566
57205
|
|
|
@@ -57640,9 +57279,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57640
57279
|
};
|
|
57641
57280
|
}
|
|
57642
57281
|
|
|
57643
|
-
var inline = (_inline = {},
|
|
57644
|
-
var horizontal = (_horizontal = {},
|
|
57645
|
-
var vertical = (_vertical = {},
|
|
57282
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
57283
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
57284
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57646
57285
|
var offsets = {
|
|
57647
57286
|
inline: inline,
|
|
57648
57287
|
horizontal: horizontal,
|
|
@@ -58006,7 +57645,7 @@ function useKeyRecords() {
|
|
|
58006
57645
|
}, [getKeyPath]);
|
|
58007
57646
|
|
|
58008
57647
|
var getKeys = function getKeys() {
|
|
58009
|
-
var keys =
|
|
57648
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
58010
57649
|
|
|
58011
57650
|
if (overflowKeys.length) {
|
|
58012
57651
|
keys.push(OVERFLOW_KEY);
|
|
@@ -58023,7 +57662,7 @@ function useKeyRecords() {
|
|
|
58023
57662
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
58024
57663
|
var pathKeys = new Set();
|
|
58025
57664
|
|
|
58026
|
-
|
|
57665
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
58027
57666
|
if (pathKey.startsWith(connectedPath)) {
|
|
58028
57667
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
58029
57668
|
}
|
|
@@ -58144,7 +57783,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58144
57783
|
openTransitionName = props.openTransitionName,
|
|
58145
57784
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
58146
57785
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
58147
|
-
restProps =
|
|
57786
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
58148
57787
|
|
|
58149
57788
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
58150
57789
|
|
|
@@ -58298,7 +57937,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58298
57937
|
return key !== targetKey;
|
|
58299
57938
|
});
|
|
58300
57939
|
} else {
|
|
58301
|
-
newSelectKeys = [].concat(
|
|
57940
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58302
57941
|
}
|
|
58303
57942
|
} else {
|
|
58304
57943
|
newSelectKeys = [targetKey];
|
|
@@ -58306,7 +57945,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58306
57945
|
|
|
58307
57946
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58308
57947
|
|
|
58309
|
-
var selectInfo =
|
|
57948
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
58310
57949
|
selectedKeys: newSelectKeys
|
|
58311
57950
|
});
|
|
58312
57951
|
|
|
@@ -58384,13 +58023,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58384
58023
|
);
|
|
58385
58024
|
}); // >>>>> Container
|
|
58386
58025
|
|
|
58387
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58026
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58388
58027
|
id: id,
|
|
58389
58028
|
ref: mergedRef,
|
|
58390
58029
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58391
58030
|
component: "ul",
|
|
58392
58031
|
itemComponent: es_MenuItem,
|
|
58393
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58032
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58394
58033
|
dir: direction,
|
|
58395
58034
|
style: style,
|
|
58396
58035
|
role: "menu",
|
|
@@ -58484,13 +58123,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58484
58123
|
title = _ref.title,
|
|
58485
58124
|
eventKey = _ref.eventKey,
|
|
58486
58125
|
children = _ref.children,
|
|
58487
|
-
restProps =
|
|
58126
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58488
58127
|
|
|
58489
58128
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58490
58129
|
prefixCls = _React$useContext.prefixCls;
|
|
58491
58130
|
|
|
58492
58131
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58493
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58132
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58494
58133
|
onClick: function onClick(e) {
|
|
58495
58134
|
return e.stopPropagation();
|
|
58496
58135
|
},
|
|
@@ -58505,7 +58144,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58505
58144
|
|
|
58506
58145
|
function MenuItemGroup(_ref2) {
|
|
58507
58146
|
var children = _ref2.children,
|
|
58508
|
-
props =
|
|
58147
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58509
58148
|
|
|
58510
58149
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58511
58150
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58633,7 +58272,7 @@ function Dropdown(props, ref) {
|
|
|
58633
58272
|
visible = props.visible,
|
|
58634
58273
|
_props$trigger = props.trigger,
|
|
58635
58274
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58636
|
-
otherProps =
|
|
58275
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58637
58276
|
|
|
58638
58277
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58639
58278
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58744,12 +58383,12 @@ function Dropdown(props, ref) {
|
|
|
58744
58383
|
triggerHideAction = ['click'];
|
|
58745
58384
|
}
|
|
58746
58385
|
|
|
58747
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58386
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58748
58387
|
builtinPlacements: placements
|
|
58749
58388
|
}, otherProps), {}, {
|
|
58750
58389
|
prefixCls: prefixCls,
|
|
58751
58390
|
ref: triggerRef,
|
|
58752
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58391
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58753
58392
|
popupStyle: overlayStyle,
|
|
58754
58393
|
action: trigger,
|
|
58755
58394
|
showAction: showAction,
|
|
@@ -58953,14 +58592,14 @@ function OperationNode(_ref, ref) {
|
|
|
58953
58592
|
}
|
|
58954
58593
|
}, [open]); // ========================= Render =========================
|
|
58955
58594
|
|
|
58956
|
-
var moreStyle =
|
|
58595
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58957
58596
|
|
|
58958
58597
|
if (!tabs.length) {
|
|
58959
58598
|
moreStyle.visibility = 'hidden';
|
|
58960
58599
|
moreStyle.order = 1;
|
|
58961
58600
|
}
|
|
58962
58601
|
|
|
58963
|
-
var overlayClassName = classnames_default()(
|
|
58602
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58964
58603
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58965
58604
|
prefixCls: dropdownPrefix,
|
|
58966
58605
|
overlay: menu,
|
|
@@ -59239,7 +58878,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
59239
58878
|
|
|
59240
58879
|
var assertExtra = {};
|
|
59241
58880
|
|
|
59242
|
-
if (extra &&
|
|
58881
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
59243
58882
|
assertExtra = extra;
|
|
59244
58883
|
} else {
|
|
59245
58884
|
assertExtra.right = extra;
|
|
@@ -59489,7 +59128,7 @@ function TabNavList(props, ref) {
|
|
|
59489
59128
|
}, {
|
|
59490
59129
|
width: addWidth,
|
|
59491
59130
|
height: addHeight
|
|
59492
|
-
},
|
|
59131
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59493
59132
|
tabs: tabs
|
|
59494
59133
|
})),
|
|
59495
59134
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59581,7 +59220,7 @@ function TabNavList(props, ref) {
|
|
|
59581
59220
|
|
|
59582
59221
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59583
59222
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59584
|
-
var hiddenTabs = [].concat(
|
|
59223
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59585
59224
|
|
|
59586
59225
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59587
59226
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59667,7 +59306,7 @@ function TabNavList(props, ref) {
|
|
|
59667
59306
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59668
59307
|
onResize: onListHolderResize
|
|
59669
59308
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59670
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59309
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
59671
59310
|
ref: tabsWrapperRef
|
|
59672
59311
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59673
59312
|
onResize: onListHolderResize
|
|
@@ -59683,13 +59322,13 @@ function TabNavList(props, ref) {
|
|
|
59683
59322
|
prefixCls: prefixCls,
|
|
59684
59323
|
locale: locale,
|
|
59685
59324
|
editable: editable,
|
|
59686
|
-
style:
|
|
59325
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59687
59326
|
visibility: hasDropdown ? 'hidden' : null
|
|
59688
59327
|
})
|
|
59689
59328
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59690
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59329
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59691
59330
|
style: inkStyle
|
|
59692
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59331
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59693
59332
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59694
59333
|
ref: operationsRef,
|
|
59695
59334
|
prefixCls: prefixCls,
|
|
@@ -59729,8 +59368,8 @@ function TabPanelList(_ref) {
|
|
|
59729
59368
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59730
59369
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59731
59370
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59732
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59733
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59371
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59372
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59734
59373
|
}, tabs.map(function (tab) {
|
|
59735
59374
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59736
59375
|
key: tab.key,
|
|
@@ -59790,7 +59429,7 @@ function TabPane(_ref) {
|
|
|
59790
59429
|
tabIndex: active ? 0 : -1,
|
|
59791
59430
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59792
59431
|
"aria-hidden": !active,
|
|
59793
|
-
style:
|
|
59432
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59794
59433
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59795
59434
|
}, (active || visited || forceRender) && children);
|
|
59796
59435
|
}
|
|
@@ -59830,7 +59469,7 @@ function parseTabList(children) {
|
|
|
59830
59469
|
return toArray(children).map(function (node) {
|
|
59831
59470
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59832
59471
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59833
|
-
return
|
|
59472
|
+
return _objectSpread2(_objectSpread2({
|
|
59834
59473
|
key: key
|
|
59835
59474
|
}, node.props), {}, {
|
|
59836
59475
|
node: node
|
|
@@ -59873,7 +59512,7 @@ function Tabs(_ref, ref) {
|
|
|
59873
59512
|
onChange = _ref.onChange,
|
|
59874
59513
|
onTabClick = _ref.onTabClick,
|
|
59875
59514
|
onTabScroll = _ref.onTabScroll,
|
|
59876
|
-
restProps =
|
|
59515
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59877
59516
|
|
|
59878
59517
|
var tabs = parseTabList(children);
|
|
59879
59518
|
var rtl = direction === 'rtl';
|
|
@@ -59890,10 +59529,10 @@ function Tabs(_ref, ref) {
|
|
|
59890
59529
|
tabPane: true
|
|
59891
59530
|
};
|
|
59892
59531
|
} else {
|
|
59893
|
-
mergedAnimated =
|
|
59532
|
+
mergedAnimated = _objectSpread2({
|
|
59894
59533
|
inkBar: true,
|
|
59895
59534
|
tabPane: false
|
|
59896
|
-
},
|
|
59535
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59897
59536
|
} // ======================== Mobile ========================
|
|
59898
59537
|
|
|
59899
59538
|
|
|
@@ -59988,7 +59627,7 @@ function Tabs(_ref, ref) {
|
|
|
59988
59627
|
};
|
|
59989
59628
|
var tabNavBar;
|
|
59990
59629
|
|
|
59991
|
-
var tabNavBarProps =
|
|
59630
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59992
59631
|
editable: editable,
|
|
59993
59632
|
locale: locale,
|
|
59994
59633
|
moreIcon: moreIcon,
|
|
@@ -60012,11 +59651,11 @@ function Tabs(_ref, ref) {
|
|
|
60012
59651
|
tabs: tabs,
|
|
60013
59652
|
prefixCls: prefixCls
|
|
60014
59653
|
}
|
|
60015
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59654
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
60016
59655
|
ref: ref,
|
|
60017
59656
|
id: id,
|
|
60018
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
60019
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59657
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59658
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
60020
59659
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
60021
59660
|
}, sharedProps, {
|
|
60022
59661
|
animated: mergedAnimated
|
|
@@ -60166,7 +59805,7 @@ var Pager = function Pager(props) {
|
|
|
60166
59805
|
var _classNames;
|
|
60167
59806
|
|
|
60168
59807
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
60169
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59808
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
60170
59809
|
|
|
60171
59810
|
var handleClick = function handleClick() {
|
|
60172
59811
|
props.onClick(props.page);
|
|
@@ -60211,14 +59850,14 @@ var Pager = function Pager(props) {
|
|
|
60211
59850
|
|
|
60212
59851
|
|
|
60213
59852
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
60214
|
-
|
|
59853
|
+
_inherits(Options, _React$Component);
|
|
60215
59854
|
|
|
60216
|
-
var _super =
|
|
59855
|
+
var _super = _createSuper(Options);
|
|
60217
59856
|
|
|
60218
59857
|
function Options() {
|
|
60219
59858
|
var _this;
|
|
60220
59859
|
|
|
60221
|
-
|
|
59860
|
+
_classCallCheck(this, Options);
|
|
60222
59861
|
|
|
60223
59862
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60224
59863
|
args[_key] = arguments[_key];
|
|
@@ -60284,7 +59923,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60284
59923
|
return _this;
|
|
60285
59924
|
}
|
|
60286
59925
|
|
|
60287
|
-
|
|
59926
|
+
_createClass(Options, [{
|
|
60288
59927
|
key: "getValidValue",
|
|
60289
59928
|
value: function getValidValue() {
|
|
60290
59929
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60441,14 +60080,14 @@ function calculatePage(p, state, props) {
|
|
|
60441
60080
|
}
|
|
60442
60081
|
|
|
60443
60082
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60444
|
-
|
|
60083
|
+
_inherits(Pagination, _React$Component);
|
|
60445
60084
|
|
|
60446
|
-
var _super =
|
|
60085
|
+
var _super = _createSuper(Pagination);
|
|
60447
60086
|
|
|
60448
60087
|
function Pagination(props) {
|
|
60449
60088
|
var _this;
|
|
60450
60089
|
|
|
60451
|
-
|
|
60090
|
+
_classCallCheck(this, Pagination);
|
|
60452
60091
|
|
|
60453
60092
|
_this = _super.call(this, props);
|
|
60454
60093
|
|
|
@@ -60469,7 +60108,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60469
60108
|
});
|
|
60470
60109
|
|
|
60471
60110
|
if (typeof icon === 'function') {
|
|
60472
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60111
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60473
60112
|
}
|
|
60474
60113
|
|
|
60475
60114
|
return iconNode;
|
|
@@ -60691,7 +60330,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60691
60330
|
return _this;
|
|
60692
60331
|
}
|
|
60693
60332
|
|
|
60694
|
-
|
|
60333
|
+
_createClass(Pagination, [{
|
|
60695
60334
|
key: "componentDidUpdate",
|
|
60696
60335
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60697
60336
|
// When current page change, fix focused style of prev item
|
|
@@ -60839,8 +60478,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60839
60478
|
}, gotoButton);
|
|
60840
60479
|
}
|
|
60841
60480
|
|
|
60842
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60843
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60481
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60482
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60844
60483
|
style: style,
|
|
60845
60484
|
ref: this.savePaginationNode
|
|
60846
60485
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60848,7 +60487,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60848
60487
|
onClick: this.prev,
|
|
60849
60488
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60850
60489
|
onKeyPress: this.runIfEnterPrev,
|
|
60851
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60490
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60852
60491
|
"aria-disabled": !this.hasPrev()
|
|
60853
60492
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60854
60493
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60869,7 +60508,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60869
60508
|
onClick: this.next,
|
|
60870
60509
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60871
60510
|
onKeyPress: this.runIfEnterNext,
|
|
60872
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60511
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60873
60512
|
"aria-disabled": !this.hasNext()
|
|
60874
60513
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60875
60514
|
}
|
|
@@ -60885,7 +60524,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60885
60524
|
};
|
|
60886
60525
|
|
|
60887
60526
|
if (!allPages) {
|
|
60888
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60527
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60889
60528
|
key: "noPager",
|
|
60890
60529
|
page: 1,
|
|
60891
60530
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60894,7 +60533,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60894
60533
|
|
|
60895
60534
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60896
60535
|
var active = current === i;
|
|
60897
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60536
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60898
60537
|
key: i,
|
|
60899
60538
|
page: i,
|
|
60900
60539
|
active: active
|
|
@@ -60911,7 +60550,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60911
60550
|
onClick: this.jumpPrev,
|
|
60912
60551
|
tabIndex: "0",
|
|
60913
60552
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60914
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60553
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60915
60554
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60916
60555
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60917
60556
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60919,7 +60558,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60919
60558
|
tabIndex: "0",
|
|
60920
60559
|
onClick: this.jumpNext,
|
|
60921
60560
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60922
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60561
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60923
60562
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60924
60563
|
}
|
|
60925
60564
|
|
|
@@ -61006,8 +60645,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61006
60645
|
|
|
61007
60646
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
61008
60647
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
61009
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
61010
|
-
className: classnames_default()(prefixCls, className,
|
|
60648
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60649
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
61011
60650
|
style: style,
|
|
61012
60651
|
unselectable: "unselectable",
|
|
61013
60652
|
ref: this.savePaginationNode
|
|
@@ -61016,14 +60655,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61016
60655
|
onClick: this.prev,
|
|
61017
60656
|
tabIndex: prevDisabled ? null : 0,
|
|
61018
60657
|
onKeyPress: this.runIfEnterPrev,
|
|
61019
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60658
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
61020
60659
|
"aria-disabled": prevDisabled
|
|
61021
60660
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
61022
60661
|
title: showTitle ? locale.next_page : null,
|
|
61023
60662
|
onClick: this.next,
|
|
61024
60663
|
tabIndex: nextDisabled ? null : 0,
|
|
61025
60664
|
onKeyPress: this.runIfEnterNext,
|
|
61026
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60665
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
61027
60666
|
"aria-disabled": nextDisabled
|
|
61028
60667
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
61029
60668
|
disabled: disabled,
|
|
@@ -61101,7 +60740,7 @@ Pagination.defaultProps = {
|
|
|
61101
60740
|
|
|
61102
60741
|
|
|
61103
60742
|
var MiniSelect = function MiniSelect(props) {
|
|
61104
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60743
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
61105
60744
|
size: "small"
|
|
61106
60745
|
}, props));
|
|
61107
60746
|
};
|
|
@@ -61162,7 +60801,7 @@ var responsiveObserve = {
|
|
|
61162
60801
|
var listener = function listener(_ref) {
|
|
61163
60802
|
var matches = _ref.matches;
|
|
61164
60803
|
|
|
61165
|
-
_this2.dispatch(
|
|
60804
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
61166
60805
|
};
|
|
61167
60806
|
|
|
61168
60807
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61303,13 +60942,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61303
60942
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61304
60943
|
var _classNames;
|
|
61305
60944
|
|
|
61306
|
-
var locale =
|
|
60945
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
61307
60946
|
|
|
61308
60947
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61309
60948
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61310
60949
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61311
60950
|
mini: isSmall
|
|
61312
|
-
},
|
|
60951
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61313
60952
|
|
|
61314
60953
|
if (minimalistic) {
|
|
61315
60954
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61346,7 +60985,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61346
60985
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61347
60986
|
}
|
|
61348
60987
|
|
|
61349
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
60988
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61350
60989
|
prefixCls: prefixCls,
|
|
61351
60990
|
selectPrefixCls: selectPrefixCls,
|
|
61352
60991
|
className: extendedClassName,
|
|
@@ -61818,10 +61457,10 @@ function Action(_ref) {
|
|
|
61818
61457
|
setCurAction = _useState2[1];
|
|
61819
61458
|
|
|
61820
61459
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61821
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61460
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61822
61461
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61823
61462
|
|
|
61824
|
-
return
|
|
61463
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61825
61464
|
while (1) {
|
|
61826
61465
|
switch (_context.prev = _context.next) {
|
|
61827
61466
|
case 0:
|