@x-edu/live-player 0.0.30 → 0.0.31
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.
|
@@ -2689,7 +2689,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2689
2689
|
|
|
2690
2690
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2691
2691
|
// Module
|
|
2692
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:14px;line-height:22px;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center;margin-top:8px}.index-module_action-has-subscribe_LYNor{border:1px solid #b7ccf9;color:#b7ccf9}", ""]);
|
|
2692
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:14px;line-height:22px;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center;margin-top:8px}.index-module_action_DHsbc:hover{color:#4079ef;border:1px solid #4079ef}.index-module_action-has-subscribe_LYNor{border:1px solid #b7ccf9;color:#b7ccf9}", ""]);
|
|
2693
2693
|
// Exports
|
|
2694
2694
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2695
2695
|
"action": "index-module_action_DHsbc",
|
|
@@ -25906,13 +25906,6 @@ module.exports = styleTagTransform;
|
|
|
25906
25906
|
|
|
25907
25907
|
/***/ }),
|
|
25908
25908
|
|
|
25909
|
-
/***/ 5273:
|
|
25910
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25911
|
-
|
|
25912
|
-
module.exports = __webpack_require__(5666);
|
|
25913
|
-
|
|
25914
|
-
/***/ }),
|
|
25915
|
-
|
|
25916
25909
|
/***/ 3006:
|
|
25917
25910
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25918
25911
|
|
|
@@ -33101,9 +33094,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33101
33094
|
|
|
33102
33095
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33103
33096
|
|
|
33104
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33105
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33106
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33107
33097
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33108
33098
|
|
|
33109
33099
|
|
|
@@ -33170,9 +33160,9 @@ function isSourceReady(_x) {
|
|
|
33170
33160
|
}
|
|
33171
33161
|
|
|
33172
33162
|
function _isSourceReady() {
|
|
33173
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33163
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33174
33164
|
var newLiveInfo;
|
|
33175
|
-
return
|
|
33165
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33176
33166
|
while (1) {
|
|
33177
33167
|
switch (_context.prev = _context.next) {
|
|
33178
33168
|
case 0:
|
|
@@ -33349,12 +33339,12 @@ function usePullSource(_ref) {
|
|
|
33349
33339
|
}
|
|
33350
33340
|
|
|
33351
33341
|
function _checkLiveReadyInterval() {
|
|
33352
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33342
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
33353
33343
|
var i,
|
|
33354
33344
|
liveStatus,
|
|
33355
33345
|
isSourceReady,
|
|
33356
33346
|
_args = arguments;
|
|
33357
|
-
return
|
|
33347
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33358
33348
|
while (1) {
|
|
33359
33349
|
switch (_context.prev = _context.next) {
|
|
33360
33350
|
case 0:
|
|
@@ -33440,8 +33430,8 @@ function checkSourceReady(_x) {
|
|
|
33440
33430
|
}
|
|
33441
33431
|
|
|
33442
33432
|
function _checkSourceReady() {
|
|
33443
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33444
|
-
return
|
|
33433
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(url) {
|
|
33434
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
33445
33435
|
while (1) {
|
|
33446
33436
|
switch (_context2.prev = _context2.next) {
|
|
33447
33437
|
case 0:
|
|
@@ -33474,9 +33464,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33474
33464
|
}
|
|
33475
33465
|
|
|
33476
33466
|
function _getLiveNewStatus() {
|
|
33477
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33467
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(liveInfo) {
|
|
33478
33468
|
var newLiveInfo;
|
|
33479
|
-
return
|
|
33469
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
33480
33470
|
while (1) {
|
|
33481
33471
|
switch (_context3.prev = _context3.next) {
|
|
33482
33472
|
case 0:
|
|
@@ -34126,39 +34116,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34126
34116
|
// style dependencies
|
|
34127
34117
|
|
|
34128
34118
|
|
|
34129
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34130
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34131
|
-
if (key in obj) {
|
|
34132
|
-
Object.defineProperty(obj, key, {
|
|
34133
|
-
value: value,
|
|
34134
|
-
enumerable: true,
|
|
34135
|
-
configurable: true,
|
|
34136
|
-
writable: true
|
|
34137
|
-
});
|
|
34138
|
-
} else {
|
|
34139
|
-
obj[key] = value;
|
|
34140
|
-
}
|
|
34141
|
-
|
|
34142
|
-
return obj;
|
|
34143
|
-
}
|
|
34144
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34145
|
-
function esm_extends_extends() {
|
|
34146
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
34147
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34148
|
-
var source = arguments[i];
|
|
34149
|
-
|
|
34150
|
-
for (var key in source) {
|
|
34151
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34152
|
-
target[key] = source[key];
|
|
34153
|
-
}
|
|
34154
|
-
}
|
|
34155
|
-
}
|
|
34156
|
-
|
|
34157
|
-
return target;
|
|
34158
|
-
};
|
|
34159
|
-
|
|
34160
|
-
return esm_extends_extends.apply(this, arguments);
|
|
34161
|
-
}
|
|
34162
34119
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34163
34120
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34164
34121
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34193,26 +34150,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34193
34150
|
|
|
34194
34151
|
return _arr;
|
|
34195
34152
|
}
|
|
34196
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34197
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34198
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34199
|
-
|
|
34200
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34201
|
-
arr2[i] = arr[i];
|
|
34202
|
-
}
|
|
34203
|
-
|
|
34204
|
-
return arr2;
|
|
34205
|
-
}
|
|
34206
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34207
|
-
|
|
34208
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34209
|
-
if (!o) return;
|
|
34210
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34211
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34212
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34213
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34214
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34215
|
-
}
|
|
34216
34153
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34217
34154
|
function nonIterableRest_nonIterableRest() {
|
|
34218
34155
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34223,130 +34160,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34223
34160
|
|
|
34224
34161
|
|
|
34225
34162
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34226
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34227
|
-
}
|
|
34228
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34229
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34230
|
-
if (!(instance instanceof Constructor)) {
|
|
34231
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34232
|
-
}
|
|
34233
|
-
}
|
|
34234
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34235
|
-
function createClass_defineProperties(target, props) {
|
|
34236
|
-
for (var i = 0; i < props.length; i++) {
|
|
34237
|
-
var descriptor = props[i];
|
|
34238
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34239
|
-
descriptor.configurable = true;
|
|
34240
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34241
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34242
|
-
}
|
|
34243
|
-
}
|
|
34244
|
-
|
|
34245
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34246
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34247
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34248
|
-
return Constructor;
|
|
34249
|
-
}
|
|
34250
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34251
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34252
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34253
|
-
o.__proto__ = p;
|
|
34254
|
-
return o;
|
|
34255
|
-
};
|
|
34256
|
-
|
|
34257
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34258
|
-
}
|
|
34259
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34260
|
-
|
|
34261
|
-
function inherits_inherits(subClass, superClass) {
|
|
34262
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34263
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34264
|
-
}
|
|
34265
|
-
|
|
34266
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34267
|
-
constructor: {
|
|
34268
|
-
value: subClass,
|
|
34269
|
-
writable: true,
|
|
34270
|
-
configurable: true
|
|
34271
|
-
}
|
|
34272
|
-
});
|
|
34273
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34274
|
-
}
|
|
34275
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34276
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34277
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34278
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34279
|
-
};
|
|
34280
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34281
|
-
}
|
|
34282
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34283
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34284
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34285
|
-
if (Reflect.construct.sham) return false;
|
|
34286
|
-
if (typeof Proxy === "function") return true;
|
|
34287
|
-
|
|
34288
|
-
try {
|
|
34289
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34290
|
-
return true;
|
|
34291
|
-
} catch (e) {
|
|
34292
|
-
return false;
|
|
34293
|
-
}
|
|
34294
|
-
}
|
|
34295
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34296
|
-
function esm_typeof_typeof(obj) {
|
|
34297
|
-
"@babel/helpers - typeof";
|
|
34298
|
-
|
|
34299
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34300
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34301
|
-
return typeof obj;
|
|
34302
|
-
};
|
|
34303
|
-
} else {
|
|
34304
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34305
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34306
|
-
};
|
|
34307
|
-
}
|
|
34308
|
-
|
|
34309
|
-
return esm_typeof_typeof(obj);
|
|
34310
|
-
}
|
|
34311
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34312
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34313
|
-
if (self === void 0) {
|
|
34314
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34315
|
-
}
|
|
34316
|
-
|
|
34317
|
-
return self;
|
|
34318
|
-
}
|
|
34319
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34320
|
-
|
|
34321
|
-
|
|
34322
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34323
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34324
|
-
return call;
|
|
34325
|
-
} else if (call !== void 0) {
|
|
34326
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34327
|
-
}
|
|
34328
|
-
|
|
34329
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34330
|
-
}
|
|
34331
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34332
|
-
|
|
34333
|
-
|
|
34334
|
-
|
|
34335
|
-
function createSuper_createSuper(Derived) {
|
|
34336
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34337
|
-
return function _createSuperInternal() {
|
|
34338
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34339
|
-
result;
|
|
34340
|
-
|
|
34341
|
-
if (hasNativeReflectConstruct) {
|
|
34342
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34343
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34344
|
-
} else {
|
|
34345
|
-
result = Super.apply(this, arguments);
|
|
34346
|
-
}
|
|
34347
|
-
|
|
34348
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34349
|
-
};
|
|
34163
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34350
34164
|
}
|
|
34351
34165
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34352
34166
|
var raf = function raf(callback) {
|
|
@@ -34573,27 +34387,6 @@ var cacheStyle = {};
|
|
|
34573
34387
|
}
|
|
34574
34388
|
}
|
|
34575
34389
|
});
|
|
34576
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34577
|
-
|
|
34578
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34579
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34580
|
-
}
|
|
34581
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34582
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34583
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34584
|
-
}
|
|
34585
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34586
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34587
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34588
|
-
}
|
|
34589
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34590
|
-
|
|
34591
|
-
|
|
34592
|
-
|
|
34593
|
-
|
|
34594
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34595
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34596
|
-
}
|
|
34597
34390
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34598
34391
|
|
|
34599
34392
|
|
|
@@ -34610,7 +34403,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34610
34403
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34611
34404
|
var _this = this;
|
|
34612
34405
|
|
|
34613
|
-
|
|
34406
|
+
_classCallCheck(this, ScrollLocker);
|
|
34614
34407
|
|
|
34615
34408
|
this.lockTarget = void 0;
|
|
34616
34409
|
this.options = void 0;
|
|
@@ -34658,7 +34451,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34658
34451
|
var options = _ref3.options;
|
|
34659
34452
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34660
34453
|
})) {
|
|
34661
|
-
locks = [].concat(
|
|
34454
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34662
34455
|
target: _this.lockTarget,
|
|
34663
34456
|
options: _this.options
|
|
34664
34457
|
}]);
|
|
@@ -34696,7 +34489,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34696
34489
|
container.className = addClassName.trim();
|
|
34697
34490
|
}
|
|
34698
34491
|
|
|
34699
|
-
locks = [].concat(
|
|
34492
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34700
34493
|
target: _this.lockTarget,
|
|
34701
34494
|
options: _this.options
|
|
34702
34495
|
}]);
|
|
@@ -34780,7 +34573,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34780
34573
|
return getContainer();
|
|
34781
34574
|
}
|
|
34782
34575
|
|
|
34783
|
-
if (
|
|
34576
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34784
34577
|
return getContainer;
|
|
34785
34578
|
}
|
|
34786
34579
|
}
|
|
@@ -34789,14 +34582,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34789
34582
|
};
|
|
34790
34583
|
|
|
34791
34584
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34792
|
-
|
|
34585
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34793
34586
|
|
|
34794
|
-
var _super =
|
|
34587
|
+
var _super = _createSuper(PortalWrapper);
|
|
34795
34588
|
|
|
34796
34589
|
function PortalWrapper(props) {
|
|
34797
34590
|
var _this;
|
|
34798
34591
|
|
|
34799
|
-
|
|
34592
|
+
_classCallCheck(this, PortalWrapper);
|
|
34800
34593
|
|
|
34801
34594
|
_this = _super.call(this, props);
|
|
34802
34595
|
_this.container = void 0;
|
|
@@ -34916,7 +34709,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34916
34709
|
return _this;
|
|
34917
34710
|
}
|
|
34918
34711
|
|
|
34919
|
-
|
|
34712
|
+
_createClass(PortalWrapper, [{
|
|
34920
34713
|
key: "componentDidMount",
|
|
34921
34714
|
value: function componentDidMount() {
|
|
34922
34715
|
var _this2 = this;
|
|
@@ -34984,46 +34777,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34984
34777
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34985
34778
|
|
|
34986
34779
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34987
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34991
|
-
var keys = Object.keys(object);
|
|
34992
|
-
|
|
34993
|
-
if (Object.getOwnPropertySymbols) {
|
|
34994
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34995
|
-
|
|
34996
|
-
if (enumerableOnly) {
|
|
34997
|
-
symbols = symbols.filter(function (sym) {
|
|
34998
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34999
|
-
});
|
|
35000
|
-
}
|
|
35001
|
-
|
|
35002
|
-
keys.push.apply(keys, symbols);
|
|
35003
|
-
}
|
|
35004
|
-
|
|
35005
|
-
return keys;
|
|
35006
|
-
}
|
|
35007
|
-
|
|
35008
|
-
function objectSpread2_objectSpread2(target) {
|
|
35009
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35010
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35011
|
-
|
|
35012
|
-
if (i % 2) {
|
|
35013
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
35014
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
35015
|
-
});
|
|
35016
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
35017
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
35018
|
-
} else {
|
|
35019
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
35020
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
35021
|
-
});
|
|
35022
|
-
}
|
|
35023
|
-
}
|
|
35024
|
-
|
|
35025
|
-
return target;
|
|
35026
|
-
}
|
|
35027
34780
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35028
34781
|
/**
|
|
35029
34782
|
* @ignore
|
|
@@ -35690,7 +35443,7 @@ function pickAttrs(props) {
|
|
|
35690
35443
|
aria: true
|
|
35691
35444
|
};
|
|
35692
35445
|
} else {
|
|
35693
|
-
mergedConfig =
|
|
35446
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35694
35447
|
}
|
|
35695
35448
|
|
|
35696
35449
|
var attrs = {};
|
|
@@ -35723,7 +35476,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35723
35476
|
function fillRef(ref, node) {
|
|
35724
35477
|
if (typeof ref === 'function') {
|
|
35725
35478
|
ref(node);
|
|
35726
|
-
} else if (
|
|
35479
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35727
35480
|
ref.current = node;
|
|
35728
35481
|
}
|
|
35729
35482
|
}
|
|
@@ -35833,7 +35586,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35833
35586
|
function getTransitionName(transitionName, transitionType) {
|
|
35834
35587
|
if (!transitionName) return null;
|
|
35835
35588
|
|
|
35836
|
-
if (
|
|
35589
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35837
35590
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35838
35591
|
return match[1].toUpperCase();
|
|
35839
35592
|
});
|
|
@@ -36126,13 +35879,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36126
35879
|
|
|
36127
35880
|
switch (status) {
|
|
36128
35881
|
case 'appear':
|
|
36129
|
-
return _ref2 = {},
|
|
35882
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36130
35883
|
|
|
36131
35884
|
case 'enter':
|
|
36132
|
-
return _ref3 = {},
|
|
35885
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36133
35886
|
|
|
36134
35887
|
case 'leave':
|
|
36135
|
-
return _ref4 = {},
|
|
35888
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36136
35889
|
|
|
36137
35890
|
default:
|
|
36138
35891
|
return {};
|
|
@@ -36240,7 +35993,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36240
35993
|
var mergedStyle = style;
|
|
36241
35994
|
|
|
36242
35995
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36243
|
-
mergedStyle =
|
|
35996
|
+
mergedStyle = _objectSpread2({
|
|
36244
35997
|
transition: 'none'
|
|
36245
35998
|
}, mergedStyle);
|
|
36246
35999
|
}
|
|
@@ -36255,17 +36008,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36255
36008
|
|
|
36256
36009
|
|
|
36257
36010
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36258
|
-
|
|
36011
|
+
_inherits(DomWrapper, _React$Component);
|
|
36259
36012
|
|
|
36260
|
-
var _super =
|
|
36013
|
+
var _super = _createSuper(DomWrapper);
|
|
36261
36014
|
|
|
36262
36015
|
function DomWrapper() {
|
|
36263
|
-
|
|
36016
|
+
_classCallCheck(this, DomWrapper);
|
|
36264
36017
|
|
|
36265
36018
|
return _super.apply(this, arguments);
|
|
36266
36019
|
}
|
|
36267
36020
|
|
|
36268
|
-
|
|
36021
|
+
_createClass(DomWrapper, [{
|
|
36269
36022
|
key: "render",
|
|
36270
36023
|
value: function render() {
|
|
36271
36024
|
return this.props.children;
|
|
@@ -36301,7 +36054,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36301
36054
|
function genCSSMotion(config) {
|
|
36302
36055
|
var transitionSupport = config;
|
|
36303
36056
|
|
|
36304
|
-
if (
|
|
36057
|
+
if (typeof_typeof(config) === 'object') {
|
|
36305
36058
|
transitionSupport = config.transitionSupport;
|
|
36306
36059
|
}
|
|
36307
36060
|
|
|
@@ -36359,7 +36112,7 @@ function genCSSMotion(config) {
|
|
|
36359
36112
|
|
|
36360
36113
|
var motionChildren;
|
|
36361
36114
|
|
|
36362
|
-
var mergedProps =
|
|
36115
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36363
36116
|
visible: visible
|
|
36364
36117
|
});
|
|
36365
36118
|
|
|
@@ -36369,13 +36122,13 @@ function genCSSMotion(config) {
|
|
|
36369
36122
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36370
36123
|
// Stable children
|
|
36371
36124
|
if (mergedVisible) {
|
|
36372
|
-
motionChildren = children(
|
|
36125
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36373
36126
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36374
|
-
motionChildren = children(
|
|
36127
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36375
36128
|
className: leavedClassName
|
|
36376
36129
|
}), setNodeRef);
|
|
36377
36130
|
} else if (forceRender) {
|
|
36378
|
-
motionChildren = children(
|
|
36131
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36379
36132
|
style: {
|
|
36380
36133
|
display: 'none'
|
|
36381
36134
|
}
|
|
@@ -36397,8 +36150,8 @@ function genCSSMotion(config) {
|
|
|
36397
36150
|
statusSuffix = 'start';
|
|
36398
36151
|
}
|
|
36399
36152
|
|
|
36400
|
-
motionChildren = children(
|
|
36401
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36153
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36154
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36402
36155
|
style: statusStyle
|
|
36403
36156
|
}), setNodeRef);
|
|
36404
36157
|
}
|
|
@@ -36411,41 +36164,6 @@ function genCSSMotion(config) {
|
|
|
36411
36164
|
return CSSMotion;
|
|
36412
36165
|
}
|
|
36413
36166
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36414
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36415
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36416
|
-
if (source == null) return {};
|
|
36417
|
-
var target = {};
|
|
36418
|
-
var sourceKeys = Object.keys(source);
|
|
36419
|
-
var key, i;
|
|
36420
|
-
|
|
36421
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36422
|
-
key = sourceKeys[i];
|
|
36423
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36424
|
-
target[key] = source[key];
|
|
36425
|
-
}
|
|
36426
|
-
|
|
36427
|
-
return target;
|
|
36428
|
-
}
|
|
36429
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36430
|
-
|
|
36431
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36432
|
-
if (source == null) return {};
|
|
36433
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36434
|
-
var key, i;
|
|
36435
|
-
|
|
36436
|
-
if (Object.getOwnPropertySymbols) {
|
|
36437
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36438
|
-
|
|
36439
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36440
|
-
key = sourceSymbolKeys[i];
|
|
36441
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36442
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36443
|
-
target[key] = source[key];
|
|
36444
|
-
}
|
|
36445
|
-
}
|
|
36446
|
-
|
|
36447
|
-
return target;
|
|
36448
|
-
}
|
|
36449
36167
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36450
36168
|
|
|
36451
36169
|
|
|
@@ -36456,7 +36174,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36456
36174
|
function wrapKeyToObject(key) {
|
|
36457
36175
|
var keyObj;
|
|
36458
36176
|
|
|
36459
|
-
if (key &&
|
|
36177
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36460
36178
|
keyObj = key;
|
|
36461
36179
|
} else {
|
|
36462
36180
|
keyObj = {
|
|
@@ -36464,7 +36182,7 @@ function wrapKeyToObject(key) {
|
|
|
36464
36182
|
};
|
|
36465
36183
|
}
|
|
36466
36184
|
|
|
36467
|
-
return
|
|
36185
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36468
36186
|
key: String(keyObj.key)
|
|
36469
36187
|
});
|
|
36470
36188
|
}
|
|
@@ -36491,14 +36209,14 @@ function diffKeys() {
|
|
|
36491
36209
|
// New added keys should add before current key
|
|
36492
36210
|
if (currentIndex < i) {
|
|
36493
36211
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36494
|
-
return
|
|
36212
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36495
36213
|
status: STATUS_ADD
|
|
36496
36214
|
});
|
|
36497
36215
|
}));
|
|
36498
36216
|
currentIndex = i;
|
|
36499
36217
|
}
|
|
36500
36218
|
|
|
36501
|
-
list.push(
|
|
36219
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36502
36220
|
status: STATUS_KEEP
|
|
36503
36221
|
}));
|
|
36504
36222
|
currentIndex += 1;
|
|
@@ -36509,7 +36227,7 @@ function diffKeys() {
|
|
|
36509
36227
|
|
|
36510
36228
|
|
|
36511
36229
|
if (!hit) {
|
|
36512
|
-
list.push(
|
|
36230
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36513
36231
|
status: STATUS_REMOVE
|
|
36514
36232
|
}));
|
|
36515
36233
|
}
|
|
@@ -36517,7 +36235,7 @@ function diffKeys() {
|
|
|
36517
36235
|
|
|
36518
36236
|
if (currentIndex < currentLen) {
|
|
36519
36237
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36520
|
-
return
|
|
36238
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36521
36239
|
status: STATUS_ADD
|
|
36522
36240
|
});
|
|
36523
36241
|
}));
|
|
@@ -36578,14 +36296,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36578
36296
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36579
36297
|
|
|
36580
36298
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36581
|
-
|
|
36299
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36582
36300
|
|
|
36583
|
-
var _super =
|
|
36301
|
+
var _super = _createSuper(CSSMotionList);
|
|
36584
36302
|
|
|
36585
36303
|
function CSSMotionList() {
|
|
36586
36304
|
var _this;
|
|
36587
36305
|
|
|
36588
|
-
|
|
36306
|
+
_classCallCheck(this, CSSMotionList);
|
|
36589
36307
|
|
|
36590
36308
|
_this = _super.apply(this, arguments);
|
|
36591
36309
|
_this.state = {
|
|
@@ -36598,7 +36316,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36598
36316
|
return {
|
|
36599
36317
|
keyEntities: keyEntities.map(function (entity) {
|
|
36600
36318
|
if (entity.key !== removeKey) return entity;
|
|
36601
|
-
return
|
|
36319
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36602
36320
|
status: STATUS_REMOVED
|
|
36603
36321
|
});
|
|
36604
36322
|
})
|
|
@@ -36609,7 +36327,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36609
36327
|
return _this;
|
|
36610
36328
|
}
|
|
36611
36329
|
|
|
36612
|
-
|
|
36330
|
+
_createClass(CSSMotionList, [{
|
|
36613
36331
|
key: "render",
|
|
36614
36332
|
value: function render() {
|
|
36615
36333
|
var _this2 = this;
|
|
@@ -36620,7 +36338,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36620
36338
|
component = _this$props.component,
|
|
36621
36339
|
children = _this$props.children,
|
|
36622
36340
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36623
|
-
restProps =
|
|
36341
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36624
36342
|
|
|
36625
36343
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36626
36344
|
var motionProps = {};
|
|
@@ -36631,10 +36349,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36631
36349
|
delete restProps.keys;
|
|
36632
36350
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36633
36351
|
var status = _ref2.status,
|
|
36634
|
-
eventProps =
|
|
36352
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36635
36353
|
|
|
36636
36354
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36637
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36355
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36638
36356
|
key: eventProps.key,
|
|
36639
36357
|
visible: visible,
|
|
36640
36358
|
eventProps: eventProps,
|
|
@@ -36708,8 +36426,8 @@ function Mask(props) {
|
|
|
36708
36426
|
}, function (_ref) {
|
|
36709
36427
|
var motionClassName = _ref.className,
|
|
36710
36428
|
motionStyle = _ref.style;
|
|
36711
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36712
|
-
style:
|
|
36429
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36430
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36713
36431
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36714
36432
|
}, maskProps));
|
|
36715
36433
|
});
|
|
@@ -36892,7 +36610,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36892
36610
|
|
|
36893
36611
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36894
36612
|
className: "".concat(prefixCls, "-content")
|
|
36895
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36613
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36896
36614
|
className: "".concat(prefixCls, "-body"),
|
|
36897
36615
|
style: bodyStyle
|
|
36898
36616
|
}, bodyProps), children), footerNode);
|
|
@@ -36912,7 +36630,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36912
36630
|
key: "dialog-element",
|
|
36913
36631
|
role: "document",
|
|
36914
36632
|
ref: motionRef,
|
|
36915
|
-
style:
|
|
36633
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36916
36634
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36917
36635
|
onMouseDown: onMouseDown,
|
|
36918
36636
|
onMouseUp: onMouseUp
|
|
@@ -37094,7 +36812,7 @@ function Dialog(props) {
|
|
|
37094
36812
|
return function () {};
|
|
37095
36813
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
37096
36814
|
|
|
37097
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36815
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37098
36816
|
className: "".concat(prefixCls, "-root")
|
|
37099
36817
|
}, pickAttrs(props, {
|
|
37100
36818
|
data: true
|
|
@@ -37102,11 +36820,11 @@ function Dialog(props) {
|
|
|
37102
36820
|
prefixCls: prefixCls,
|
|
37103
36821
|
visible: mask && visible,
|
|
37104
36822
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
37105
|
-
style:
|
|
36823
|
+
style: _objectSpread2({
|
|
37106
36824
|
zIndex: zIndex
|
|
37107
36825
|
}, maskStyle),
|
|
37108
36826
|
maskProps: maskProps
|
|
37109
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36827
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
37110
36828
|
tabIndex: -1,
|
|
37111
36829
|
onKeyDown: onWrapperKeyDown,
|
|
37112
36830
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -37114,12 +36832,12 @@ function Dialog(props) {
|
|
|
37114
36832
|
onClick: onWrapperClick,
|
|
37115
36833
|
role: "dialog",
|
|
37116
36834
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37117
|
-
style:
|
|
36835
|
+
style: _objectSpread2(_objectSpread2({
|
|
37118
36836
|
zIndex: zIndex
|
|
37119
36837
|
}, wrapStyle), {}, {
|
|
37120
36838
|
display: !animatedVisible ? 'none' : null
|
|
37121
36839
|
})
|
|
37122
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
36840
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37123
36841
|
onMouseDown: onContentMouseDown,
|
|
37124
36842
|
onMouseUp: onContentMouseUp,
|
|
37125
36843
|
ref: contentRef,
|
|
@@ -37167,7 +36885,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37167
36885
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37168
36886
|
|
|
37169
36887
|
if (getContainer === false) {
|
|
37170
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36888
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37171
36889
|
getOpenCount: function getOpenCount() {
|
|
37172
36890
|
return 2;
|
|
37173
36891
|
} // 不对 body 做任何操作。。
|
|
@@ -37185,7 +36903,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37185
36903
|
forceRender: forceRender,
|
|
37186
36904
|
getContainer: getContainer
|
|
37187
36905
|
}, function (childProps) {
|
|
37188
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36906
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37189
36907
|
destroyOnClose: destroyOnClose,
|
|
37190
36908
|
afterClose: function afterClose() {
|
|
37191
36909
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37220,8 +36938,8 @@ function getConfirmLocale() {
|
|
|
37220
36938
|
|
|
37221
36939
|
|
|
37222
36940
|
|
|
37223
|
-
var UnreachableException = /*#__PURE__*/
|
|
37224
|
-
|
|
36941
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
36942
|
+
_classCallCheck(this, UnreachableException);
|
|
37225
36943
|
|
|
37226
36944
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37227
36945
|
});
|
|
@@ -37284,8 +37002,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37284
37002
|
console.warn(new UnreachableException(size).error);
|
|
37285
37003
|
}
|
|
37286
37004
|
|
|
37287
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37288
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37005
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37006
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37289
37007
|
className: classes
|
|
37290
37008
|
}));
|
|
37291
37009
|
});
|
|
@@ -37356,14 +37074,14 @@ function isNotGrey(color) {
|
|
|
37356
37074
|
}
|
|
37357
37075
|
|
|
37358
37076
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37359
|
-
|
|
37077
|
+
_inherits(Wave, _React$Component);
|
|
37360
37078
|
|
|
37361
|
-
var _super =
|
|
37079
|
+
var _super = _createSuper(Wave);
|
|
37362
37080
|
|
|
37363
37081
|
function Wave() {
|
|
37364
37082
|
var _this;
|
|
37365
37083
|
|
|
37366
|
-
|
|
37084
|
+
_classCallCheck(this, Wave);
|
|
37367
37085
|
|
|
37368
37086
|
_this = _super.apply(this, arguments);
|
|
37369
37087
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37383,7 +37101,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37383
37101
|
|
|
37384
37102
|
_this.extraNode = document.createElement('div');
|
|
37385
37103
|
|
|
37386
|
-
var _assertThisInitialize =
|
|
37104
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37387
37105
|
extraNode = _assertThisInitialize.extraNode;
|
|
37388
37106
|
|
|
37389
37107
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37490,7 +37208,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37490
37208
|
return _this;
|
|
37491
37209
|
}
|
|
37492
37210
|
|
|
37493
|
-
|
|
37211
|
+
_createClass(Wave, [{
|
|
37494
37212
|
key: "componentDidMount",
|
|
37495
37213
|
value: function componentDidMount() {
|
|
37496
37214
|
var node = this.containerRef.current;
|
|
@@ -37717,7 +37435,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37717
37435
|
var isPrevChildPure = false;
|
|
37718
37436
|
var childList = [];
|
|
37719
37437
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37720
|
-
var type =
|
|
37438
|
+
var type = typeof_typeof(child);
|
|
37721
37439
|
|
|
37722
37440
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37723
37441
|
|
|
@@ -37817,7 +37535,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37817
37535
|
}; // =============== Update Loading ===============
|
|
37818
37536
|
|
|
37819
37537
|
|
|
37820
|
-
var loadingOrDelay =
|
|
37538
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37821
37539
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37822
37540
|
clearTimeout(delayTimeoutRef.current);
|
|
37823
37541
|
|
|
@@ -37857,7 +37575,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37857
37575
|
var sizeFullname = customizeSize || size;
|
|
37858
37576
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37859
37577
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37860
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37578
|
+
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);
|
|
37861
37579
|
var iconNode;
|
|
37862
37580
|
|
|
37863
37581
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37876,14 +37594,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37876
37594
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37877
37595
|
|
|
37878
37596
|
if (linkButtonRestProps.href !== undefined) {
|
|
37879
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37597
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
37880
37598
|
className: classes,
|
|
37881
37599
|
onClick: handleClick,
|
|
37882
37600
|
ref: buttonRef
|
|
37883
37601
|
}), iconNode, kids);
|
|
37884
37602
|
}
|
|
37885
37603
|
|
|
37886
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37604
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
37887
37605
|
type: htmlType,
|
|
37888
37606
|
className: classes,
|
|
37889
37607
|
onClick: handleClick,
|
|
@@ -38061,9 +37779,9 @@ var Modal = function Modal(props) {
|
|
|
38061
37779
|
okType = props.okType,
|
|
38062
37780
|
cancelText = props.cancelText,
|
|
38063
37781
|
confirmLoading = props.confirmLoading;
|
|
38064
|
-
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,
|
|
37782
|
+
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({
|
|
38065
37783
|
onClick: handleCancel
|
|
38066
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37784
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
38067
37785
|
loading: confirmLoading,
|
|
38068
37786
|
onClick: handleOk
|
|
38069
37787
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38098,8 +37816,8 @@ var Modal = function Modal(props) {
|
|
|
38098
37816
|
type: "close",
|
|
38099
37817
|
className: "".concat(prefixCls, "-close-icon")
|
|
38100
37818
|
}));
|
|
38101
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38102
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37819
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37820
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
38103
37821
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38104
37822
|
prefixCls: prefixCls,
|
|
38105
37823
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38225,7 +37943,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38225
37943
|
children = props.children,
|
|
38226
37944
|
prefixCls = props.prefixCls,
|
|
38227
37945
|
buttonProps = props.buttonProps;
|
|
38228
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
37946
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38229
37947
|
onClick: onClick,
|
|
38230
37948
|
loading: loading,
|
|
38231
37949
|
prefixCls: prefixCls
|
|
@@ -39742,7 +39460,7 @@ function get(entity, path) {
|
|
|
39742
39460
|
|
|
39743
39461
|
|
|
39744
39462
|
function _toArray(arr) {
|
|
39745
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39463
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39746
39464
|
}
|
|
39747
39465
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39748
39466
|
|
|
@@ -39764,9 +39482,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39764
39482
|
if (!entity && typeof path === 'number') {
|
|
39765
39483
|
clone = [];
|
|
39766
39484
|
} else if (Array.isArray(entity)) {
|
|
39767
|
-
clone =
|
|
39485
|
+
clone = _toConsumableArray(entity);
|
|
39768
39486
|
} else {
|
|
39769
|
-
clone =
|
|
39487
|
+
clone = _objectSpread2({}, entity);
|
|
39770
39488
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39771
39489
|
|
|
39772
39490
|
|
|
@@ -39830,7 +39548,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39830
39548
|
}
|
|
39831
39549
|
|
|
39832
39550
|
function isObject(obj) {
|
|
39833
|
-
return
|
|
39551
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39834
39552
|
}
|
|
39835
39553
|
/**
|
|
39836
39554
|
* Copy values into store and return a new values object
|
|
@@ -39839,7 +39557,7 @@ function isObject(obj) {
|
|
|
39839
39557
|
|
|
39840
39558
|
|
|
39841
39559
|
function internalSetValues(store, values) {
|
|
39842
|
-
var newStore = Array.isArray(store) ?
|
|
39560
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39843
39561
|
|
|
39844
39562
|
if (!values) {
|
|
39845
39563
|
return newStore;
|
|
@@ -39882,14 +39600,14 @@ function isSimilar(source, target) {
|
|
|
39882
39600
|
return false;
|
|
39883
39601
|
}
|
|
39884
39602
|
|
|
39885
|
-
if (!source || !target ||
|
|
39603
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
39886
39604
|
return false;
|
|
39887
39605
|
}
|
|
39888
39606
|
|
|
39889
39607
|
var sourceKeys = Object.keys(source);
|
|
39890
39608
|
var targetKeys = Object.keys(target);
|
|
39891
|
-
var keys = new Set([].concat(
|
|
39892
|
-
return
|
|
39609
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39610
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
39893
39611
|
var sourceValue = source[key];
|
|
39894
39612
|
var targetValue = target[key];
|
|
39895
39613
|
|
|
@@ -39932,12 +39650,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39932
39650
|
|
|
39933
39651
|
if (diff > 0) {
|
|
39934
39652
|
// move left
|
|
39935
|
-
return [].concat(
|
|
39653
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39936
39654
|
}
|
|
39937
39655
|
|
|
39938
39656
|
if (diff < 0) {
|
|
39939
39657
|
// move right
|
|
39940
|
-
return [].concat(
|
|
39658
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39941
39659
|
}
|
|
39942
39660
|
|
|
39943
39661
|
return array;
|
|
@@ -39977,13 +39695,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39977
39695
|
|
|
39978
39696
|
|
|
39979
39697
|
function _validateRule() {
|
|
39980
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39698
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39981
39699
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39982
|
-
return
|
|
39700
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
39983
39701
|
while (1) {
|
|
39984
39702
|
switch (_context2.prev = _context2.next) {
|
|
39985
39703
|
case 0:
|
|
39986
|
-
cloneRule =
|
|
39704
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
39987
39705
|
// https://github.com/react-component/field-form/issues/316
|
|
39988
39706
|
// https://github.com/react-component/field-form/issues/313
|
|
39989
39707
|
|
|
@@ -39996,13 +39714,13 @@ function _validateRule() {
|
|
|
39996
39714
|
delete cloneRule.defaultField;
|
|
39997
39715
|
}
|
|
39998
39716
|
|
|
39999
|
-
validator = new AsyncValidator(
|
|
39717
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
40000
39718
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40001
39719
|
validator.messages(messages);
|
|
40002
39720
|
result = [];
|
|
40003
39721
|
_context2.prev = 8;
|
|
40004
39722
|
_context2.next = 11;
|
|
40005
|
-
return Promise.resolve(validator.validate(
|
|
39723
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
40006
39724
|
|
|
40007
39725
|
case 11:
|
|
40008
39726
|
_context2.next = 16;
|
|
@@ -40042,12 +39760,12 @@ function _validateRule() {
|
|
|
40042
39760
|
case 19:
|
|
40043
39761
|
subResults = _context2.sent;
|
|
40044
39762
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40045
|
-
return [].concat(
|
|
39763
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
40046
39764
|
}, []));
|
|
40047
39765
|
|
|
40048
39766
|
case 21:
|
|
40049
39767
|
// Replace message with variables
|
|
40050
|
-
kv =
|
|
39768
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
40051
39769
|
name: name,
|
|
40052
39770
|
enum: (rule.enum || []).join(', ')
|
|
40053
39771
|
}, messageVariables);
|
|
@@ -40076,7 +39794,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40076
39794
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40077
39795
|
var originValidatorFunc = currentRule.validator;
|
|
40078
39796
|
|
|
40079
|
-
var cloneRule =
|
|
39797
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
40080
39798
|
ruleIndex: ruleIndex
|
|
40081
39799
|
}); // Replace validator if needed
|
|
40082
39800
|
|
|
@@ -40144,9 +39862,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40144
39862
|
if (validateFirst === true) {
|
|
40145
39863
|
// >>>>> Validate by serialization
|
|
40146
39864
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40147
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39865
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40148
39866
|
var i, rule, errors;
|
|
40149
|
-
return
|
|
39867
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40150
39868
|
while (1) {
|
|
40151
39869
|
switch (_context.prev = _context.next) {
|
|
40152
39870
|
case 0:
|
|
@@ -40225,15 +39943,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40225
39943
|
}
|
|
40226
39944
|
|
|
40227
39945
|
function _finishOnAllFailed() {
|
|
40228
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40229
|
-
return
|
|
39946
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
39947
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40230
39948
|
while (1) {
|
|
40231
39949
|
switch (_context3.prev = _context3.next) {
|
|
40232
39950
|
case 0:
|
|
40233
39951
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40234
39952
|
var _ref5;
|
|
40235
39953
|
|
|
40236
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
39954
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40237
39955
|
|
|
40238
39956
|
return errors;
|
|
40239
39957
|
}));
|
|
@@ -40253,9 +39971,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40253
39971
|
}
|
|
40254
39972
|
|
|
40255
39973
|
function _finishOnFirstFailed() {
|
|
40256
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39974
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40257
39975
|
var count;
|
|
40258
|
-
return
|
|
39976
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40259
39977
|
while (1) {
|
|
40260
39978
|
switch (_context4.prev = _context4.next) {
|
|
40261
39979
|
case 0:
|
|
@@ -40318,9 +40036,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40318
40036
|
|
|
40319
40037
|
|
|
40320
40038
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40321
|
-
|
|
40039
|
+
_inherits(Field, _React$Component);
|
|
40322
40040
|
|
|
40323
|
-
var _super =
|
|
40041
|
+
var _super = _createSuper(Field);
|
|
40324
40042
|
|
|
40325
40043
|
/**
|
|
40326
40044
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40336,7 +40054,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40336
40054
|
function Field(props) {
|
|
40337
40055
|
var _this;
|
|
40338
40056
|
|
|
40339
|
-
|
|
40057
|
+
_classCallCheck(this, Field);
|
|
40340
40058
|
|
|
40341
40059
|
_this = _super.call(this, props); // Register on init
|
|
40342
40060
|
|
|
@@ -40371,7 +40089,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40371
40089
|
fieldContext = _this$props2.fieldContext;
|
|
40372
40090
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40373
40091
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40374
|
-
return name !== undefined ? [].concat(
|
|
40092
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40375
40093
|
};
|
|
40376
40094
|
|
|
40377
40095
|
_this.getRules = function () {
|
|
@@ -40404,7 +40122,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40404
40122
|
|
|
40405
40123
|
_this.triggerMetaEvent = function (destroy) {
|
|
40406
40124
|
var onMetaChange = _this.props.onMetaChange;
|
|
40407
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40125
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40408
40126
|
destroy: destroy
|
|
40409
40127
|
}));
|
|
40410
40128
|
};
|
|
@@ -40593,9 +40311,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40593
40311
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40594
40312
|
|
|
40595
40313
|
if (warningOnly) {
|
|
40596
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40314
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40597
40315
|
} else {
|
|
40598
|
-
nextErrors.push.apply(nextErrors,
|
|
40316
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40599
40317
|
}
|
|
40600
40318
|
});
|
|
40601
40319
|
_this.errors = nextErrors;
|
|
@@ -40686,7 +40404,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40686
40404
|
if (typeof children === 'function') {
|
|
40687
40405
|
var meta = _this.getMeta();
|
|
40688
40406
|
|
|
40689
|
-
return
|
|
40407
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40690
40408
|
isFunction: true
|
|
40691
40409
|
});
|
|
40692
40410
|
} // Filed element only
|
|
@@ -40738,13 +40456,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40738
40456
|
var value = _this.getValue();
|
|
40739
40457
|
|
|
40740
40458
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40741
|
-
return
|
|
40459
|
+
return _defineProperty({}, valuePropName, val);
|
|
40742
40460
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40743
40461
|
|
|
40744
40462
|
|
|
40745
40463
|
var originTriggerFunc = childProps[trigger];
|
|
40746
40464
|
|
|
40747
|
-
var control =
|
|
40465
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40748
40466
|
|
|
40749
40467
|
|
|
40750
40468
|
control[trigger] = function () {
|
|
@@ -40815,13 +40533,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40815
40533
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40816
40534
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40817
40535
|
|
|
40818
|
-
initEntityValue(
|
|
40536
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40819
40537
|
}
|
|
40820
40538
|
|
|
40821
40539
|
return _this;
|
|
40822
40540
|
}
|
|
40823
40541
|
|
|
40824
|
-
|
|
40542
|
+
_createClass(Field, [{
|
|
40825
40543
|
key: "componentDidMount",
|
|
40826
40544
|
value: function componentDidMount() {
|
|
40827
40545
|
var _this$props7 = this.props,
|
|
@@ -40895,7 +40613,7 @@ Field.defaultProps = {
|
|
|
40895
40613
|
|
|
40896
40614
|
function WrapperField(_ref5) {
|
|
40897
40615
|
var name = _ref5.name,
|
|
40898
|
-
restProps =
|
|
40616
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
40899
40617
|
|
|
40900
40618
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40901
40619
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40909,7 +40627,7 @@ function WrapperField(_ref5) {
|
|
|
40909
40627
|
|
|
40910
40628
|
if (false) {}
|
|
40911
40629
|
|
|
40912
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40630
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
40913
40631
|
key: key,
|
|
40914
40632
|
name: namePath
|
|
40915
40633
|
}, restProps, {
|
|
@@ -40946,7 +40664,7 @@ var List = function List(_ref) {
|
|
|
40946
40664
|
}
|
|
40947
40665
|
|
|
40948
40666
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40949
|
-
var prefixName = [].concat(
|
|
40667
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
40950
40668
|
|
|
40951
40669
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40952
40670
|
var source = _ref2.source;
|
|
@@ -40959,7 +40677,7 @@ var List = function List(_ref) {
|
|
|
40959
40677
|
};
|
|
40960
40678
|
|
|
40961
40679
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40962
|
-
value:
|
|
40680
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
40963
40681
|
prefixName: prefixName
|
|
40964
40682
|
})
|
|
40965
40683
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40990,13 +40708,13 @@ var List = function List(_ref) {
|
|
|
40990
40708
|
var newValue = getNewValue();
|
|
40991
40709
|
|
|
40992
40710
|
if (index >= 0 && index <= newValue.length) {
|
|
40993
|
-
keyManager.keys = [].concat(
|
|
40994
|
-
onChange([].concat(
|
|
40711
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40712
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
40995
40713
|
} else {
|
|
40996
40714
|
if (false) {}
|
|
40997
40715
|
|
|
40998
|
-
keyManager.keys = [].concat(
|
|
40999
|
-
onChange([].concat(
|
|
40716
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40717
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
41000
40718
|
}
|
|
41001
40719
|
|
|
41002
40720
|
keyManager.id += 1;
|
|
@@ -41105,7 +40823,7 @@ var SPLIT = '__@field_split__';
|
|
|
41105
40823
|
|
|
41106
40824
|
function normalize(namePath) {
|
|
41107
40825
|
return namePath.map(function (cell) {
|
|
41108
|
-
return "".concat(
|
|
40826
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
41109
40827
|
}) // Magic split
|
|
41110
40828
|
.join(SPLIT);
|
|
41111
40829
|
}
|
|
@@ -41116,12 +40834,12 @@ function normalize(namePath) {
|
|
|
41116
40834
|
|
|
41117
40835
|
var NameMap = /*#__PURE__*/function () {
|
|
41118
40836
|
function NameMap() {
|
|
41119
|
-
|
|
40837
|
+
_classCallCheck(this, NameMap);
|
|
41120
40838
|
|
|
41121
40839
|
this.kvs = new Map();
|
|
41122
40840
|
}
|
|
41123
40841
|
|
|
41124
|
-
|
|
40842
|
+
_createClass(NameMap, [{
|
|
41125
40843
|
key: "set",
|
|
41126
40844
|
value: function set(key, value) {
|
|
41127
40845
|
this.kvs.set(normalize(key), value);
|
|
@@ -41152,7 +40870,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41152
40870
|
}, {
|
|
41153
40871
|
key: "map",
|
|
41154
40872
|
value: function map(callback) {
|
|
41155
|
-
return
|
|
40873
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41156
40874
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41157
40875
|
key = _ref2[0],
|
|
41158
40876
|
value = _ref2[1];
|
|
@@ -41206,7 +40924,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41206
40924
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41207
40925
|
var _this = this;
|
|
41208
40926
|
|
|
41209
|
-
|
|
40927
|
+
_classCallCheck(this, FormStore);
|
|
41210
40928
|
|
|
41211
40929
|
this.formHooked = false;
|
|
41212
40930
|
this.forceRootUpdate = void 0;
|
|
@@ -41466,7 +41184,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41466
41184
|
return fieldNamePath[i] === nameUnit;
|
|
41467
41185
|
})) {
|
|
41468
41186
|
map.update(shortNamePath, function (list) {
|
|
41469
|
-
return [].concat(
|
|
41187
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41470
41188
|
});
|
|
41471
41189
|
}
|
|
41472
41190
|
});
|
|
@@ -41557,7 +41275,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41557
41275
|
|
|
41558
41276
|
|
|
41559
41277
|
if (!info.skipExist || originValue === undefined) {
|
|
41560
|
-
_this.store = setValue(_this.store, namePath,
|
|
41278
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41561
41279
|
}
|
|
41562
41280
|
}
|
|
41563
41281
|
}
|
|
@@ -41577,7 +41295,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41577
41295
|
if (records) {
|
|
41578
41296
|
var _requiredFieldEntitie;
|
|
41579
41297
|
|
|
41580
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41298
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41581
41299
|
return r.entity;
|
|
41582
41300
|
})));
|
|
41583
41301
|
}
|
|
@@ -41630,7 +41348,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41630
41348
|
fields.forEach(function (fieldData) {
|
|
41631
41349
|
var name = fieldData.name,
|
|
41632
41350
|
errors = fieldData.errors,
|
|
41633
|
-
data =
|
|
41351
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41634
41352
|
|
|
41635
41353
|
var namePath = getNamePath(name); // Value
|
|
41636
41354
|
|
|
@@ -41652,7 +41370,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41652
41370
|
var namePath = field.getNamePath();
|
|
41653
41371
|
var meta = field.getMeta();
|
|
41654
41372
|
|
|
41655
|
-
var fieldData =
|
|
41373
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41656
41374
|
name: namePath,
|
|
41657
41375
|
value: _this.getFieldValue(namePath)
|
|
41658
41376
|
});
|
|
@@ -41751,7 +41469,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41751
41469
|
|
|
41752
41470
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41753
41471
|
if (_this.subscribable) {
|
|
41754
|
-
var mergedInfo =
|
|
41472
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41755
41473
|
store: _this.getFieldsValue(true)
|
|
41756
41474
|
});
|
|
41757
41475
|
|
|
@@ -41784,7 +41502,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41784
41502
|
|
|
41785
41503
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41786
41504
|
type: 'dependenciesUpdate',
|
|
41787
|
-
relatedFields: [namePath].concat(
|
|
41505
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41788
41506
|
}); // trigger callback function
|
|
41789
41507
|
|
|
41790
41508
|
|
|
@@ -41795,7 +41513,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41795
41513
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41796
41514
|
}
|
|
41797
41515
|
|
|
41798
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41516
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41799
41517
|
};
|
|
41800
41518
|
|
|
41801
41519
|
this.setFieldsValue = function (store) {
|
|
@@ -41923,8 +41641,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41923
41641
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41924
41642
|
|
|
41925
41643
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41926
|
-
var promise = field.validateRules(
|
|
41927
|
-
validateMessages:
|
|
41644
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41645
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41928
41646
|
}, options)); // Wrap promise with field
|
|
41929
41647
|
|
|
41930
41648
|
promiseList.push(promise.then(function () {
|
|
@@ -41941,9 +41659,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41941
41659
|
errors = _ref5.errors;
|
|
41942
41660
|
|
|
41943
41661
|
if (warningOnly) {
|
|
41944
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41662
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
41945
41663
|
} else {
|
|
41946
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41664
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
41947
41665
|
}
|
|
41948
41666
|
});
|
|
41949
41667
|
|
|
@@ -42074,8 +41792,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42074
41792
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
42075
41793
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42076
41794
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
42077
|
-
value:
|
|
42078
|
-
validateMessages:
|
|
41795
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41796
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
42079
41797
|
// =========================================================
|
|
42080
41798
|
// = Global Form Control =
|
|
42081
41799
|
// =========================================================
|
|
@@ -42101,13 +41819,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42101
41819
|
},
|
|
42102
41820
|
registerForm: function registerForm(name, form) {
|
|
42103
41821
|
if (name) {
|
|
42104
|
-
formsRef.current =
|
|
41822
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
42105
41823
|
}
|
|
42106
41824
|
|
|
42107
41825
|
formContext.registerForm(name, form);
|
|
42108
41826
|
},
|
|
42109
41827
|
unregisterForm: function unregisterForm(name) {
|
|
42110
|
-
var newForms =
|
|
41828
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
42111
41829
|
|
|
42112
41830
|
delete newForms[name];
|
|
42113
41831
|
formsRef.current = newForms;
|
|
@@ -42147,7 +41865,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42147
41865
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42148
41866
|
_onFinish = _ref.onFinish,
|
|
42149
41867
|
onFinishFailed = _ref.onFinishFailed,
|
|
42150
|
-
restProps =
|
|
41868
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42151
41869
|
|
|
42152
41870
|
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:
|
|
42153
41871
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42175,7 +41893,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42175
41893
|
};
|
|
42176
41894
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42177
41895
|
|
|
42178
|
-
setValidateMessages(
|
|
41896
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42179
41897
|
setCallbacks({
|
|
42180
41898
|
onValuesChange: onValuesChange,
|
|
42181
41899
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42228,7 +41946,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42228
41946
|
prevFieldsRef.current = fields;
|
|
42229
41947
|
}, [fields, formInstance]);
|
|
42230
41948
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42231
|
-
return
|
|
41949
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42232
41950
|
validateTrigger: validateTrigger
|
|
42233
41951
|
});
|
|
42234
41952
|
}, [formInstance, validateTrigger]);
|
|
@@ -42240,7 +41958,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42240
41958
|
return wrapperNode;
|
|
42241
41959
|
}
|
|
42242
41960
|
|
|
42243
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
41961
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42244
41962
|
onSubmit: function onSubmit(event) {
|
|
42245
41963
|
event.preventDefault();
|
|
42246
41964
|
event.stopPropagation();
|
|
@@ -42422,14 +42140,14 @@ LocaleProvider.defaultProps = {
|
|
|
42422
42140
|
|
|
42423
42141
|
|
|
42424
42142
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42425
|
-
|
|
42143
|
+
_inherits(Notice, _Component);
|
|
42426
42144
|
|
|
42427
|
-
var _super =
|
|
42145
|
+
var _super = _createSuper(Notice);
|
|
42428
42146
|
|
|
42429
42147
|
function Notice() {
|
|
42430
42148
|
var _this;
|
|
42431
42149
|
|
|
42432
|
-
|
|
42150
|
+
_classCallCheck(this, Notice);
|
|
42433
42151
|
|
|
42434
42152
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42435
42153
|
args[_key] = arguments[_key];
|
|
@@ -42472,7 +42190,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42472
42190
|
return _this;
|
|
42473
42191
|
}
|
|
42474
42192
|
|
|
42475
|
-
|
|
42193
|
+
_createClass(Notice, [{
|
|
42476
42194
|
key: "componentDidMount",
|
|
42477
42195
|
value: function componentDidMount() {
|
|
42478
42196
|
this.startCloseTimer();
|
|
@@ -42518,8 +42236,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42518
42236
|
|
|
42519
42237
|
return acc;
|
|
42520
42238
|
}, {});
|
|
42521
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42522
|
-
className: classnames_default()(componentClass, className,
|
|
42239
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42240
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42523
42241
|
style: style,
|
|
42524
42242
|
onMouseEnter: this.clearCloseTimer,
|
|
42525
42243
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42550,52 +42268,6 @@ Notice.defaultProps = {
|
|
|
42550
42268
|
duration: 1.5
|
|
42551
42269
|
};
|
|
42552
42270
|
|
|
42553
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42554
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42555
|
-
if (Array.isArray(arr)) return arr;
|
|
42556
|
-
}
|
|
42557
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42558
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42559
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42560
|
-
|
|
42561
|
-
if (_i == null) return;
|
|
42562
|
-
var _arr = [];
|
|
42563
|
-
var _n = true;
|
|
42564
|
-
var _d = false;
|
|
42565
|
-
|
|
42566
|
-
var _s, _e;
|
|
42567
|
-
|
|
42568
|
-
try {
|
|
42569
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42570
|
-
_arr.push(_s.value);
|
|
42571
|
-
|
|
42572
|
-
if (i && _arr.length === i) break;
|
|
42573
|
-
}
|
|
42574
|
-
} catch (err) {
|
|
42575
|
-
_d = true;
|
|
42576
|
-
_e = err;
|
|
42577
|
-
} finally {
|
|
42578
|
-
try {
|
|
42579
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42580
|
-
} finally {
|
|
42581
|
-
if (_d) throw _e;
|
|
42582
|
-
}
|
|
42583
|
-
}
|
|
42584
|
-
|
|
42585
|
-
return _arr;
|
|
42586
|
-
}
|
|
42587
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42588
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42589
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42590
|
-
}
|
|
42591
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42592
|
-
|
|
42593
|
-
|
|
42594
|
-
|
|
42595
|
-
|
|
42596
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42597
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42598
|
-
}
|
|
42599
42271
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42600
42272
|
|
|
42601
42273
|
|
|
@@ -42606,7 +42278,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42606
42278
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42607
42279
|
|
|
42608
42280
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42609
|
-
_React$useState2 =
|
|
42281
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42610
42282
|
elements = _React$useState2[0],
|
|
42611
42283
|
setElements = _React$useState2[1];
|
|
42612
42284
|
|
|
@@ -42667,14 +42339,14 @@ function getUuid() {
|
|
|
42667
42339
|
}
|
|
42668
42340
|
|
|
42669
42341
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42670
|
-
|
|
42342
|
+
_inherits(Notification, _Component);
|
|
42671
42343
|
|
|
42672
|
-
var _super =
|
|
42344
|
+
var _super = _createSuper(Notification);
|
|
42673
42345
|
|
|
42674
42346
|
function Notification() {
|
|
42675
42347
|
var _this;
|
|
42676
42348
|
|
|
42677
|
-
|
|
42349
|
+
_classCallCheck(this, Notification);
|
|
42678
42350
|
|
|
42679
42351
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42680
42352
|
args[_key] = arguments[_key];
|
|
@@ -42689,7 +42361,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42689
42361
|
_this.add = function (originNotice, holderCallback) {
|
|
42690
42362
|
var key = originNotice.key || getUuid();
|
|
42691
42363
|
|
|
42692
|
-
var notice =
|
|
42364
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42693
42365
|
key: key
|
|
42694
42366
|
});
|
|
42695
42367
|
|
|
@@ -42756,7 +42428,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42756
42428
|
return _this;
|
|
42757
42429
|
}
|
|
42758
42430
|
|
|
42759
|
-
|
|
42431
|
+
_createClass(Notification, [{
|
|
42760
42432
|
key: "getTransitionName",
|
|
42761
42433
|
value: function getTransitionName() {
|
|
42762
42434
|
var _this$props = this.props,
|
|
@@ -42789,7 +42461,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42789
42461
|
var key = notice.key,
|
|
42790
42462
|
userPassKey = notice.userPassKey;
|
|
42791
42463
|
|
|
42792
|
-
var noticeProps =
|
|
42464
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42793
42465
|
prefixCls: prefixCls,
|
|
42794
42466
|
closeIcon: closeIcon
|
|
42795
42467
|
}, notice), notice.props), {}, {
|
|
@@ -42840,7 +42512,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42840
42512
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42841
42513
|
key: key,
|
|
42842
42514
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42843
|
-
style:
|
|
42515
|
+
style: _objectSpread2({}, motionStyle),
|
|
42844
42516
|
ref: function ref(div) {
|
|
42845
42517
|
if (typeof key === 'undefined') {
|
|
42846
42518
|
return;
|
|
@@ -42857,9 +42529,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42857
42529
|
});
|
|
42858
42530
|
}
|
|
42859
42531
|
|
|
42860
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
42861
42533
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42862
|
-
style:
|
|
42534
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42863
42535
|
visible: visible
|
|
42864
42536
|
}));
|
|
42865
42537
|
}));
|
|
@@ -42882,7 +42554,7 @@ Notification.defaultProps = {
|
|
|
42882
42554
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42883
42555
|
var _ref6 = properties || {},
|
|
42884
42556
|
getContainer = _ref6.getContainer,
|
|
42885
|
-
props =
|
|
42557
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42886
42558
|
|
|
42887
42559
|
var div = document.createElement('div');
|
|
42888
42560
|
|
|
@@ -42926,7 +42598,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42926
42598
|
|
|
42927
42599
|
if (false) {}
|
|
42928
42600
|
|
|
42929
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42601
|
+
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, {
|
|
42930
42602
|
ref: ref
|
|
42931
42603
|
})), div);
|
|
42932
42604
|
};
|
|
@@ -42956,7 +42628,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42956
42628
|
};
|
|
42957
42629
|
|
|
42958
42630
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42959
|
-
_useRCNotification2 =
|
|
42631
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42960
42632
|
hookNotify = _useRCNotification2[0],
|
|
42961
42633
|
holder = _useRCNotification2[1];
|
|
42962
42634
|
|
|
@@ -43285,7 +42957,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43285
42957
|
};
|
|
43286
42958
|
|
|
43287
42959
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43288
|
-
_useRCNotification2 =
|
|
42960
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43289
42961
|
hookNotify = _useRCNotification2[0],
|
|
43290
42962
|
holder = _useRCNotification2[1];
|
|
43291
42963
|
|
|
@@ -43912,7 +43584,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43912
43584
|
|
|
43913
43585
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43914
43586
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43915
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43587
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43916
43588
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43917
43589
|
actionFn: onCancel,
|
|
43918
43590
|
close: close,
|
|
@@ -43930,7 +43602,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43930
43602
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43931
43603
|
prefixCls: prefixCls,
|
|
43932
43604
|
className: classString,
|
|
43933
|
-
wrapClassName: classnames_default()(
|
|
43605
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43934
43606
|
onCancel: function onCancel() {
|
|
43935
43607
|
return close({
|
|
43936
43608
|
triggerCancel: true
|
|
@@ -44014,7 +43686,7 @@ function getRootPrefixCls() {
|
|
|
44014
43686
|
function confirm_confirm(config) {
|
|
44015
43687
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44016
43688
|
|
|
44017
|
-
var currentConfig =
|
|
43689
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
44018
43690
|
close: close,
|
|
44019
43691
|
visible: true
|
|
44020
43692
|
});
|
|
@@ -44067,7 +43739,7 @@ function confirm_confirm(config) {
|
|
|
44067
43739
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44068
43740
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44069
43741
|
var iconPrefixCls = getIconPrefixCls();
|
|
44070
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43742
|
+
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, {
|
|
44071
43743
|
prefixCls: prefixCls,
|
|
44072
43744
|
rootPrefixCls: rootPrefixCls,
|
|
44073
43745
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44084,7 +43756,7 @@ function confirm_confirm(config) {
|
|
|
44084
43756
|
args[_key2] = arguments[_key2];
|
|
44085
43757
|
}
|
|
44086
43758
|
|
|
44087
|
-
currentConfig =
|
|
43759
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
44088
43760
|
visible: false,
|
|
44089
43761
|
afterClose: function afterClose() {
|
|
44090
43762
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44101,7 +43773,7 @@ function confirm_confirm(config) {
|
|
|
44101
43773
|
if (typeof configUpdate === 'function') {
|
|
44102
43774
|
currentConfig = configUpdate(currentConfig);
|
|
44103
43775
|
} else {
|
|
44104
|
-
currentConfig =
|
|
43776
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
44105
43777
|
}
|
|
44106
43778
|
|
|
44107
43779
|
render(currentConfig);
|
|
@@ -44115,7 +43787,7 @@ function confirm_confirm(config) {
|
|
|
44115
43787
|
};
|
|
44116
43788
|
}
|
|
44117
43789
|
function withWarn(props) {
|
|
44118
|
-
return
|
|
43790
|
+
return extends_extends(extends_extends({
|
|
44119
43791
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44120
43792
|
type: "exclamation-circle"
|
|
44121
43793
|
}),
|
|
@@ -44125,7 +43797,7 @@ function withWarn(props) {
|
|
|
44125
43797
|
});
|
|
44126
43798
|
}
|
|
44127
43799
|
function withInfo(props) {
|
|
44128
|
-
return
|
|
43800
|
+
return extends_extends(extends_extends({
|
|
44129
43801
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44130
43802
|
type: "exclamation-circle"
|
|
44131
43803
|
}),
|
|
@@ -44135,7 +43807,7 @@ function withInfo(props) {
|
|
|
44135
43807
|
});
|
|
44136
43808
|
}
|
|
44137
43809
|
function withSuccess(props) {
|
|
44138
|
-
return
|
|
43810
|
+
return extends_extends(extends_extends({
|
|
44139
43811
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44140
43812
|
type: "check-circle"
|
|
44141
43813
|
}),
|
|
@@ -44145,7 +43817,7 @@ function withSuccess(props) {
|
|
|
44145
43817
|
});
|
|
44146
43818
|
}
|
|
44147
43819
|
function withError(props) {
|
|
44148
|
-
return
|
|
43820
|
+
return extends_extends(extends_extends({
|
|
44149
43821
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44150
43822
|
type: "close-circle"
|
|
44151
43823
|
}),
|
|
@@ -44155,7 +43827,7 @@ function withError(props) {
|
|
|
44155
43827
|
});
|
|
44156
43828
|
}
|
|
44157
43829
|
function withConfirm(props) {
|
|
44158
|
-
return
|
|
43830
|
+
return extends_extends(extends_extends({
|
|
44159
43831
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44160
43832
|
type: "question-circle"
|
|
44161
43833
|
}),
|
|
@@ -44182,7 +43854,7 @@ function usePatchElement() {
|
|
|
44182
43854
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44183
43855
|
// append a new element to elements (and create a new ref)
|
|
44184
43856
|
setElements(function (originElements) {
|
|
44185
|
-
return [].concat(
|
|
43857
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44186
43858
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44187
43859
|
// it works a little like useEffect
|
|
44188
43860
|
|
|
@@ -44247,7 +43919,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44247
43919
|
destroy: close,
|
|
44248
43920
|
update: function update(newConfig) {
|
|
44249
43921
|
setInnerConfig(function (originConfig) {
|
|
44250
|
-
return
|
|
43922
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44251
43923
|
});
|
|
44252
43924
|
}
|
|
44253
43925
|
};
|
|
@@ -44256,7 +43928,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44256
43928
|
componentName: "Modal",
|
|
44257
43929
|
defaultLocale: locale_default.Modal
|
|
44258
43930
|
}, function (modalLocale) {
|
|
44259
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43931
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44260
43932
|
prefixCls: prefixCls,
|
|
44261
43933
|
rootPrefixCls: rootPrefixCls
|
|
44262
43934
|
}, innerConfig, {
|
|
@@ -44303,7 +43975,7 @@ function useModal() {
|
|
|
44303
43975
|
|
|
44304
43976
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44305
43977
|
if (actionQueue.length) {
|
|
44306
|
-
var cloneQueue =
|
|
43978
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44307
43979
|
|
|
44308
43980
|
cloneQueue.forEach(function (action) {
|
|
44309
43981
|
action();
|
|
@@ -44340,7 +44012,7 @@ function useModal() {
|
|
|
44340
44012
|
destroyAction();
|
|
44341
44013
|
} else {
|
|
44342
44014
|
setActionQueue(function (prev) {
|
|
44343
|
-
return [].concat(
|
|
44015
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44344
44016
|
});
|
|
44345
44017
|
}
|
|
44346
44018
|
},
|
|
@@ -44355,7 +44027,7 @@ function useModal() {
|
|
|
44355
44027
|
updateAction();
|
|
44356
44028
|
} else {
|
|
44357
44029
|
setActionQueue(function (prev) {
|
|
44358
|
-
return [].concat(
|
|
44030
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44359
44031
|
});
|
|
44360
44032
|
}
|
|
44361
44033
|
}
|
|
@@ -44800,44 +44472,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44800
44472
|
|
|
44801
44473
|
|
|
44802
44474
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44803
|
-
function
|
|
44804
|
-
|
|
44475
|
+
function esm_extends_extends() {
|
|
44476
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44805
44477
|
for (var i = 1; i < arguments.length; i++) {
|
|
44806
44478
|
var source = arguments[i];
|
|
44807
|
-
|
|
44808
44479
|
for (var key in source) {
|
|
44809
44480
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44810
44481
|
target[key] = source[key];
|
|
44811
44482
|
}
|
|
44812
44483
|
}
|
|
44813
44484
|
}
|
|
44814
|
-
|
|
44815
44485
|
return target;
|
|
44816
44486
|
};
|
|
44817
|
-
return
|
|
44487
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44818
44488
|
}
|
|
44819
44489
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44820
|
-
function
|
|
44490
|
+
function esm_typeof_typeof(obj) {
|
|
44821
44491
|
"@babel/helpers - typeof";
|
|
44822
44492
|
|
|
44823
|
-
return
|
|
44493
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44824
44494
|
return typeof obj;
|
|
44825
44495
|
} : function (obj) {
|
|
44826
44496
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44827
|
-
},
|
|
44497
|
+
}, esm_typeof_typeof(obj);
|
|
44828
44498
|
}
|
|
44829
44499
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44830
44500
|
|
|
44831
44501
|
function _toPrimitive(input, hint) {
|
|
44832
|
-
if (
|
|
44502
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44833
44503
|
var prim = input[Symbol.toPrimitive];
|
|
44834
|
-
|
|
44835
44504
|
if (prim !== undefined) {
|
|
44836
44505
|
var res = prim.call(input, hint || "default");
|
|
44837
|
-
if (
|
|
44506
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44838
44507
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44839
44508
|
}
|
|
44840
|
-
|
|
44841
44509
|
return (hint === "string" ? String : Number)(input);
|
|
44842
44510
|
}
|
|
44843
44511
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44845,13 +44513,12 @@ function _toPrimitive(input, hint) {
|
|
|
44845
44513
|
|
|
44846
44514
|
function _toPropertyKey(arg) {
|
|
44847
44515
|
var key = _toPrimitive(arg, "string");
|
|
44848
|
-
return
|
|
44516
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44849
44517
|
}
|
|
44850
44518
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44851
44519
|
|
|
44852
|
-
function
|
|
44520
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
44853
44521
|
key = _toPropertyKey(key);
|
|
44854
|
-
|
|
44855
44522
|
if (key in obj) {
|
|
44856
44523
|
Object.defineProperty(obj, key, {
|
|
44857
44524
|
value: value,
|
|
@@ -44862,61 +44529,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
44862
44529
|
} else {
|
|
44863
44530
|
obj[key] = value;
|
|
44864
44531
|
}
|
|
44865
|
-
|
|
44866
44532
|
return obj;
|
|
44867
44533
|
}
|
|
44868
44534
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44869
44535
|
|
|
44870
|
-
|
|
44871
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44536
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44872
44537
|
var keys = Object.keys(object);
|
|
44873
|
-
|
|
44874
44538
|
if (Object.getOwnPropertySymbols) {
|
|
44875
44539
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44876
44540
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44877
44541
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44878
44542
|
})), keys.push.apply(keys, symbols);
|
|
44879
44543
|
}
|
|
44880
|
-
|
|
44881
44544
|
return keys;
|
|
44882
44545
|
}
|
|
44883
|
-
|
|
44884
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44546
|
+
function objectSpread2_objectSpread2(target) {
|
|
44885
44547
|
for (var i = 1; i < arguments.length; i++) {
|
|
44886
44548
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44887
|
-
i % 2 ?
|
|
44888
|
-
|
|
44889
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44549
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44550
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44551
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44890
44552
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44891
44553
|
});
|
|
44892
44554
|
}
|
|
44893
|
-
|
|
44894
44555
|
return target;
|
|
44895
44556
|
}
|
|
44896
44557
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44897
|
-
function
|
|
44558
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44898
44559
|
if (Array.isArray(arr)) return arr;
|
|
44899
44560
|
}
|
|
44900
44561
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44901
|
-
function
|
|
44562
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44902
44563
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44903
|
-
|
|
44904
44564
|
if (null != _i) {
|
|
44905
44565
|
var _s,
|
|
44906
|
-
|
|
44907
|
-
|
|
44908
|
-
|
|
44909
|
-
|
|
44910
|
-
|
|
44911
|
-
|
|
44912
|
-
|
|
44566
|
+
_e,
|
|
44567
|
+
_x,
|
|
44568
|
+
_r,
|
|
44569
|
+
_arr = [],
|
|
44570
|
+
_n = !0,
|
|
44571
|
+
_d = !1;
|
|
44913
44572
|
try {
|
|
44914
44573
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44915
44574
|
if (Object(_i) !== _i) return;
|
|
44916
44575
|
_n = !1;
|
|
44917
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44918
|
-
;
|
|
44919
|
-
}
|
|
44576
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44920
44577
|
} catch (err) {
|
|
44921
44578
|
_d = !0, _e = err;
|
|
44922
44579
|
} finally {
|
|
@@ -44926,32 +44583,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44926
44583
|
if (_d) throw _e;
|
|
44927
44584
|
}
|
|
44928
44585
|
}
|
|
44929
|
-
|
|
44930
44586
|
return _arr;
|
|
44931
44587
|
}
|
|
44932
44588
|
}
|
|
44933
44589
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44934
|
-
function
|
|
44590
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44935
44591
|
if (len == null || len > arr.length) len = arr.length;
|
|
44936
|
-
|
|
44937
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44938
|
-
arr2[i] = arr[i];
|
|
44939
|
-
}
|
|
44940
|
-
|
|
44592
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44941
44593
|
return arr2;
|
|
44942
44594
|
}
|
|
44943
44595
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44944
44596
|
|
|
44945
|
-
function
|
|
44597
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44946
44598
|
if (!o) return;
|
|
44947
|
-
if (typeof o === "string") return
|
|
44599
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44948
44600
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44949
44601
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44950
44602
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44951
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44603
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44952
44604
|
}
|
|
44953
44605
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44954
|
-
function
|
|
44606
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
44955
44607
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44956
44608
|
}
|
|
44957
44609
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44959,34 +44611,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
44959
44611
|
|
|
44960
44612
|
|
|
44961
44613
|
|
|
44962
|
-
function
|
|
44963
|
-
return
|
|
44614
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44615
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
44964
44616
|
}
|
|
44965
44617
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44966
|
-
function
|
|
44618
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44967
44619
|
if (source == null) return {};
|
|
44968
44620
|
var target = {};
|
|
44969
44621
|
var sourceKeys = Object.keys(source);
|
|
44970
44622
|
var key, i;
|
|
44971
|
-
|
|
44972
44623
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44973
44624
|
key = sourceKeys[i];
|
|
44974
44625
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44975
44626
|
target[key] = source[key];
|
|
44976
44627
|
}
|
|
44977
|
-
|
|
44978
44628
|
return target;
|
|
44979
44629
|
}
|
|
44980
44630
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44981
44631
|
|
|
44982
|
-
function
|
|
44632
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44983
44633
|
if (source == null) return {};
|
|
44984
|
-
var target =
|
|
44634
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44985
44635
|
var key, i;
|
|
44986
|
-
|
|
44987
44636
|
if (Object.getOwnPropertySymbols) {
|
|
44988
44637
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44989
|
-
|
|
44990
44638
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44991
44639
|
key = sourceSymbolKeys[i];
|
|
44992
44640
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44994,7 +44642,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44994
44642
|
target[key] = source[key];
|
|
44995
44643
|
}
|
|
44996
44644
|
}
|
|
44997
|
-
|
|
44998
44645
|
return target;
|
|
44999
44646
|
}
|
|
45000
44647
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45942,14 +45589,14 @@ var index = (function () {
|
|
|
45942
45589
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45943
45590
|
|
|
45944
45591
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45945
|
-
|
|
45592
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
45946
45593
|
|
|
45947
|
-
var _super =
|
|
45594
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
45948
45595
|
|
|
45949
45596
|
function ReactResizeObserver() {
|
|
45950
45597
|
var _this;
|
|
45951
45598
|
|
|
45952
|
-
|
|
45599
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
45953
45600
|
|
|
45954
45601
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45955
45602
|
args[_key] = arguments[_key];
|
|
@@ -46000,7 +45647,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46000
45647
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46001
45648
|
|
|
46002
45649
|
Promise.resolve().then(function () {
|
|
46003
|
-
onResize(
|
|
45650
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
46004
45651
|
offsetWidth: mergedOffsetWidth,
|
|
46005
45652
|
offsetHeight: mergedOffsetHeight
|
|
46006
45653
|
}), target);
|
|
@@ -46016,7 +45663,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46016
45663
|
return _this;
|
|
46017
45664
|
}
|
|
46018
45665
|
|
|
46019
|
-
|
|
45666
|
+
_createClass(ReactResizeObserver, [{
|
|
46020
45667
|
key: "componentDidMount",
|
|
46021
45668
|
value: function componentDidMount() {
|
|
46022
45669
|
this.onComponentUpdated();
|
|
@@ -46130,7 +45777,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46130
45777
|
position: 'relative',
|
|
46131
45778
|
overflow: 'hidden'
|
|
46132
45779
|
};
|
|
46133
|
-
innerStyle =
|
|
45780
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46134
45781
|
transform: "translateY(".concat(offset, "px)"),
|
|
46135
45782
|
position: 'absolute',
|
|
46136
45783
|
left: 0,
|
|
@@ -46147,24 +45794,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46147
45794
|
onInnerResize();
|
|
46148
45795
|
}
|
|
46149
45796
|
}
|
|
46150
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45797
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46151
45798
|
style: innerStyle,
|
|
46152
|
-
className: classnames_default()(
|
|
45799
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46153
45800
|
ref: ref
|
|
46154
45801
|
}, innerProps), children)));
|
|
46155
45802
|
});
|
|
46156
45803
|
Filler.displayName = 'Filler';
|
|
46157
45804
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46158
45805
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46159
|
-
function
|
|
45806
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46160
45807
|
if (!(instance instanceof Constructor)) {
|
|
46161
45808
|
throw new TypeError("Cannot call a class as a function");
|
|
46162
45809
|
}
|
|
46163
45810
|
}
|
|
46164
45811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46165
45812
|
|
|
46166
|
-
|
|
46167
|
-
function esm_createClass_defineProperties(target, props) {
|
|
45813
|
+
function createClass_defineProperties(target, props) {
|
|
46168
45814
|
for (var i = 0; i < props.length; i++) {
|
|
46169
45815
|
var descriptor = props[i];
|
|
46170
45816
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46173,30 +45819,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46173
45819
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46174
45820
|
}
|
|
46175
45821
|
}
|
|
46176
|
-
|
|
46177
|
-
|
|
46178
|
-
if (
|
|
46179
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45822
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
45823
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
45824
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46180
45825
|
Object.defineProperty(Constructor, "prototype", {
|
|
46181
45826
|
writable: false
|
|
46182
45827
|
});
|
|
46183
45828
|
return Constructor;
|
|
46184
45829
|
}
|
|
46185
45830
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46186
|
-
function
|
|
46187
|
-
|
|
45831
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
45832
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46188
45833
|
o.__proto__ = p;
|
|
46189
45834
|
return o;
|
|
46190
45835
|
};
|
|
46191
|
-
return
|
|
45836
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46192
45837
|
}
|
|
46193
45838
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46194
45839
|
|
|
46195
|
-
function
|
|
45840
|
+
function inherits_inherits(subClass, superClass) {
|
|
46196
45841
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46197
45842
|
throw new TypeError("Super expression must either be null or a function");
|
|
46198
45843
|
}
|
|
46199
|
-
|
|
46200
45844
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46201
45845
|
constructor: {
|
|
46202
45846
|
value: subClass,
|
|
@@ -46207,21 +45851,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46207
45851
|
Object.defineProperty(subClass, "prototype", {
|
|
46208
45852
|
writable: false
|
|
46209
45853
|
});
|
|
46210
|
-
if (superClass)
|
|
45854
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46211
45855
|
}
|
|
46212
45856
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46213
|
-
function
|
|
46214
|
-
|
|
45857
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
45858
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46215
45859
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46216
45860
|
};
|
|
46217
|
-
return
|
|
45861
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46218
45862
|
}
|
|
46219
45863
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46220
|
-
function
|
|
45864
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46221
45865
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46222
45866
|
if (Reflect.construct.sham) return false;
|
|
46223
45867
|
if (typeof Proxy === "function") return true;
|
|
46224
|
-
|
|
46225
45868
|
try {
|
|
46226
45869
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46227
45870
|
return true;
|
|
@@ -46230,43 +45873,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46230
45873
|
}
|
|
46231
45874
|
}
|
|
46232
45875
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46233
|
-
function
|
|
45876
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46234
45877
|
if (self === void 0) {
|
|
46235
45878
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46236
45879
|
}
|
|
46237
|
-
|
|
46238
45880
|
return self;
|
|
46239
45881
|
}
|
|
46240
45882
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46241
45883
|
|
|
46242
45884
|
|
|
46243
|
-
function
|
|
46244
|
-
if (call && (
|
|
45885
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
45886
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46245
45887
|
return call;
|
|
46246
45888
|
} else if (call !== void 0) {
|
|
46247
45889
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46248
45890
|
}
|
|
46249
|
-
|
|
46250
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45891
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46251
45892
|
}
|
|
46252
45893
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46253
45894
|
|
|
46254
45895
|
|
|
46255
45896
|
|
|
46256
|
-
function
|
|
46257
|
-
var hasNativeReflectConstruct =
|
|
45897
|
+
function createSuper_createSuper(Derived) {
|
|
45898
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46258
45899
|
return function _createSuperInternal() {
|
|
46259
|
-
var Super =
|
|
46260
|
-
|
|
46261
|
-
|
|
45900
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
45901
|
+
result;
|
|
46262
45902
|
if (hasNativeReflectConstruct) {
|
|
46263
|
-
var NewTarget =
|
|
45903
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46264
45904
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46265
45905
|
} else {
|
|
46266
45906
|
result = Super.apply(this, arguments);
|
|
46267
45907
|
}
|
|
46268
|
-
|
|
46269
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45908
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46270
45909
|
};
|
|
46271
45910
|
}
|
|
46272
45911
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46341,11 +45980,11 @@ function getPageY(e) {
|
|
|
46341
45980
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46342
45981
|
}
|
|
46343
45982
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46344
|
-
|
|
46345
|
-
var _super =
|
|
45983
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
45984
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46346
45985
|
function ScrollBar() {
|
|
46347
45986
|
var _this;
|
|
46348
|
-
|
|
45987
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46349
45988
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46350
45989
|
args[_key] = arguments[_key];
|
|
46351
45990
|
}
|
|
@@ -46473,7 +46112,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46473
46112
|
};
|
|
46474
46113
|
return _this;
|
|
46475
46114
|
}
|
|
46476
|
-
|
|
46115
|
+
createClass_createClass(ScrollBar, [{
|
|
46477
46116
|
key: "componentDidMount",
|
|
46478
46117
|
value: function componentDidMount() {
|
|
46479
46118
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46507,7 +46146,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46507
46146
|
var mergedVisible = canScroll && visible;
|
|
46508
46147
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46509
46148
|
ref: this.scrollbarRef,
|
|
46510
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46149
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46511
46150
|
style: {
|
|
46512
46151
|
width: 8,
|
|
46513
46152
|
top: 0,
|
|
@@ -46520,7 +46159,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46520
46159
|
onMouseMove: this.delayHidden
|
|
46521
46160
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46522
46161
|
ref: this.thumbRef,
|
|
46523
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46162
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46524
46163
|
style: {
|
|
46525
46164
|
width: '100%',
|
|
46526
46165
|
height: spinHeight,
|
|
@@ -46599,11 +46238,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46599
46238
|
// Firefox has low performance of map.
|
|
46600
46239
|
var CacheMap = /*#__PURE__*/function () {
|
|
46601
46240
|
function CacheMap() {
|
|
46602
|
-
|
|
46241
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46603
46242
|
this.maps = void 0;
|
|
46604
46243
|
this.maps = Object.create(null);
|
|
46605
46244
|
}
|
|
46606
|
-
|
|
46245
|
+
createClass_createClass(CacheMap, [{
|
|
46607
46246
|
key: "set",
|
|
46608
46247
|
value: function set(key, value) {
|
|
46609
46248
|
this.maps[key] = value;
|
|
@@ -46626,7 +46265,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46626
46265
|
|
|
46627
46266
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46628
46267
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46629
|
-
_React$useState2 =
|
|
46268
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46630
46269
|
updatedMark = _React$useState2[0],
|
|
46631
46270
|
setUpdatedMark = _React$useState2[1];
|
|
46632
46271
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46693,7 +46332,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46693
46332
|
es_raf.cancel(scrollRef.current);
|
|
46694
46333
|
if (typeof arg === 'number') {
|
|
46695
46334
|
syncScrollTop(arg);
|
|
46696
|
-
} else if (arg &&
|
|
46335
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46697
46336
|
var index;
|
|
46698
46337
|
var align = arg.align;
|
|
46699
46338
|
if ('index' in arg) {
|
|
@@ -46849,11 +46488,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46849
46488
|
|
|
46850
46489
|
function useDiffItem(data, getKey, onDiff) {
|
|
46851
46490
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46852
|
-
_React$useState2 =
|
|
46491
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46853
46492
|
prevData = _React$useState2[0],
|
|
46854
46493
|
setPrevData = _React$useState2[1];
|
|
46855
46494
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46856
|
-
_React$useState4 =
|
|
46495
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46857
46496
|
diffItem = _React$useState4[0],
|
|
46858
46497
|
setDiffItem = _React$useState4[1];
|
|
46859
46498
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46868,7 +46507,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46868
46507
|
}
|
|
46869
46508
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46870
46509
|
|
|
46871
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46510
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46872
46511
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46873
46512
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46874
46513
|
|
|
@@ -47087,16 +46726,16 @@ function RawList(props, ref) {
|
|
|
47087
46726
|
onScroll = props.onScroll,
|
|
47088
46727
|
onVisibleChange = props.onVisibleChange,
|
|
47089
46728
|
innerProps = props.innerProps,
|
|
47090
|
-
restProps =
|
|
46729
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47091
46730
|
// ================================= MISC =================================
|
|
47092
46731
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47093
46732
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
47094
46733
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
47095
|
-
_useState2 =
|
|
46734
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
47096
46735
|
scrollTop = _useState2[0],
|
|
47097
46736
|
setScrollTop = _useState2[1];
|
|
47098
46737
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
47099
|
-
_useState4 =
|
|
46738
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
47100
46739
|
scrollMoving = _useState4[0],
|
|
47101
46740
|
setScrollMoving = _useState4[1];
|
|
47102
46741
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47136,12 +46775,12 @@ function RawList(props, ref) {
|
|
|
47136
46775
|
});
|
|
47137
46776
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47138
46777
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47139
|
-
_useDiffItem2 =
|
|
46778
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47140
46779
|
diffItem = _useDiffItem2[0];
|
|
47141
46780
|
diffItemRef.current = diffItem;
|
|
47142
46781
|
// ================================ Height ================================
|
|
47143
46782
|
var _useHeights = useHeights(getKey, null, null),
|
|
47144
|
-
_useHeights2 =
|
|
46783
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47145
46784
|
setInstanceRef = _useHeights2[0],
|
|
47146
46785
|
collectHeight = _useHeights2[1],
|
|
47147
46786
|
heights = _useHeights2[2],
|
|
@@ -47247,7 +46886,7 @@ function RawList(props, ref) {
|
|
|
47247
46886
|
return newTop;
|
|
47248
46887
|
});
|
|
47249
46888
|
}),
|
|
47250
|
-
_useFrameWheel2 =
|
|
46889
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47251
46890
|
onRawWheel = _useFrameWheel2[0],
|
|
47252
46891
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47253
46892
|
// Mobile touch move
|
|
@@ -47301,7 +46940,7 @@ function RawList(props, ref) {
|
|
|
47301
46940
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47302
46941
|
var componentStyle = null;
|
|
47303
46942
|
if (height) {
|
|
47304
|
-
componentStyle =
|
|
46943
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47305
46944
|
if (useVirtual) {
|
|
47306
46945
|
componentStyle.overflowY = 'hidden';
|
|
47307
46946
|
if (scrollMoving) {
|
|
@@ -47309,8 +46948,8 @@ function RawList(props, ref) {
|
|
|
47309
46948
|
}
|
|
47310
46949
|
}
|
|
47311
46950
|
}
|
|
47312
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47313
|
-
style:
|
|
46951
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46952
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47314
46953
|
position: 'relative'
|
|
47315
46954
|
}),
|
|
47316
46955
|
className: mergedClassName
|
|
@@ -47456,7 +47095,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47456
47095
|
return values;
|
|
47457
47096
|
}
|
|
47458
47097
|
function removeLastEnabledValue(measureValues, values) {
|
|
47459
|
-
var newValues =
|
|
47098
|
+
var newValues = _toConsumableArray(values);
|
|
47460
47099
|
|
|
47461
47100
|
var removeIndex;
|
|
47462
47101
|
|
|
@@ -47590,7 +47229,7 @@ function flattenOptions(options) {
|
|
|
47590
47229
|
*/
|
|
47591
47230
|
|
|
47592
47231
|
function injectPropsWithOption(option) {
|
|
47593
|
-
var newOption =
|
|
47232
|
+
var newOption = _objectSpread2({}, option);
|
|
47594
47233
|
|
|
47595
47234
|
if (!('props' in newOption)) {
|
|
47596
47235
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47624,7 +47263,7 @@ function findValueOption(values, options) {
|
|
|
47624
47263
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47625
47264
|
|
|
47626
47265
|
if (!option) {
|
|
47627
|
-
option =
|
|
47266
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47628
47267
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47629
47268
|
}));
|
|
47630
47269
|
}
|
|
@@ -47643,7 +47282,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47643
47282
|
};
|
|
47644
47283
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47645
47284
|
|
|
47646
|
-
if (prevValItem &&
|
|
47285
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47647
47286
|
result.label = prevValItem.label;
|
|
47648
47287
|
|
|
47649
47288
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47691,7 +47330,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47691
47330
|
var filterFunc;
|
|
47692
47331
|
|
|
47693
47332
|
if (filterOption === false) {
|
|
47694
|
-
return
|
|
47333
|
+
return _toConsumableArray(options);
|
|
47695
47334
|
}
|
|
47696
47335
|
|
|
47697
47336
|
if (typeof filterOption === 'function') {
|
|
@@ -47715,7 +47354,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47715
47354
|
});
|
|
47716
47355
|
|
|
47717
47356
|
if (subOptions.length) {
|
|
47718
|
-
filteredOptions.push(
|
|
47357
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47719
47358
|
options: subOptions
|
|
47720
47359
|
}));
|
|
47721
47360
|
}
|
|
@@ -47749,7 +47388,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47749
47388
|
var list = str.split(token);
|
|
47750
47389
|
match = match || list.length > 1;
|
|
47751
47390
|
return list.reduce(function (prevList, unitStr) {
|
|
47752
|
-
return [].concat(
|
|
47391
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47753
47392
|
}, []).filter(function (unit) {
|
|
47754
47393
|
return unit;
|
|
47755
47394
|
});
|
|
@@ -47769,7 +47408,7 @@ function isValueDisabled(value, options) {
|
|
|
47769
47408
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47770
47409
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47771
47410
|
|
|
47772
|
-
var cloneOptions =
|
|
47411
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47773
47412
|
|
|
47774
47413
|
|
|
47775
47414
|
var optionValues = new Set();
|
|
@@ -47789,7 +47428,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47789
47428
|
if (!optionValues.has(val)) {
|
|
47790
47429
|
var _ref9;
|
|
47791
47430
|
|
|
47792
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47431
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47793
47432
|
value: val
|
|
47794
47433
|
});
|
|
47795
47434
|
}
|
|
@@ -48055,7 +47694,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48055
47694
|
children = itemData.children;
|
|
48056
47695
|
var attrs = pickAttrs(itemData, true);
|
|
48057
47696
|
var mergedLabel = childrenAsData ? children : label;
|
|
48058
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47697
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
48059
47698
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48060
47699
|
}, attrs, {
|
|
48061
47700
|
key: index,
|
|
@@ -48105,13 +47744,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48105
47744
|
children = data.children,
|
|
48106
47745
|
style = data.style,
|
|
48107
47746
|
className = data.className,
|
|
48108
|
-
otherProps =
|
|
47747
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
48109
47748
|
|
|
48110
47749
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48111
47750
|
|
|
48112
47751
|
var selected = values.has(value);
|
|
48113
47752
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48114
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47753
|
+
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));
|
|
48115
47754
|
var mergedLabel = childrenAsData ? children : label;
|
|
48116
47755
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48117
47756
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48122,7 +47761,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48122
47761
|
optionTitle = title;
|
|
48123
47762
|
}
|
|
48124
47763
|
|
|
48125
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47764
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48126
47765
|
"aria-selected": selected,
|
|
48127
47766
|
className: optionClassName,
|
|
48128
47767
|
title: optionTitle,
|
|
@@ -48183,9 +47822,9 @@ function convertNodeToOption(node) {
|
|
|
48183
47822
|
_node$props = node.props,
|
|
48184
47823
|
children = _node$props.children,
|
|
48185
47824
|
value = _node$props.value,
|
|
48186
|
-
restProps =
|
|
47825
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48187
47826
|
|
|
48188
|
-
return
|
|
47827
|
+
return _objectSpread2({
|
|
48189
47828
|
key: key,
|
|
48190
47829
|
value: value !== undefined ? value : key,
|
|
48191
47830
|
children: children
|
|
@@ -48203,13 +47842,13 @@ function convertChildrenToData(nodes) {
|
|
|
48203
47842
|
key = node.key,
|
|
48204
47843
|
_node$props2 = node.props,
|
|
48205
47844
|
children = _node$props2.children,
|
|
48206
|
-
restProps =
|
|
47845
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48207
47846
|
|
|
48208
47847
|
if (optionOnly || !isSelectOptGroup) {
|
|
48209
47848
|
return convertNodeToOption(node);
|
|
48210
47849
|
}
|
|
48211
47850
|
|
|
48212
|
-
return
|
|
47851
|
+
return _objectSpread2(_objectSpread2({
|
|
48213
47852
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48214
47853
|
label: key
|
|
48215
47854
|
}, restProps), {}, {
|
|
@@ -48311,7 +47950,7 @@ function InternalItem(props, ref) {
|
|
|
48311
47950
|
order = props.order,
|
|
48312
47951
|
_props$component = props.component,
|
|
48313
47952
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48314
|
-
restProps =
|
|
47953
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48315
47954
|
|
|
48316
47955
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48317
47956
|
|
|
@@ -48345,9 +47984,9 @@ function InternalItem(props, ref) {
|
|
|
48345
47984
|
overflowProps['aria-hidden'] = true;
|
|
48346
47985
|
}
|
|
48347
47986
|
|
|
48348
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47987
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48349
47988
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48350
|
-
style:
|
|
47989
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48351
47990
|
}, overflowProps, restProps, {
|
|
48352
47991
|
ref: ref
|
|
48353
47992
|
}), childNode);
|
|
@@ -48432,23 +48071,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48432
48071
|
if (!context) {
|
|
48433
48072
|
var _props$component = props.component,
|
|
48434
48073
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48435
|
-
_restProps =
|
|
48074
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48436
48075
|
|
|
48437
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48076
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48438
48077
|
ref: ref
|
|
48439
48078
|
}));
|
|
48440
48079
|
}
|
|
48441
48080
|
|
|
48442
48081
|
var contextClassName = context.className,
|
|
48443
|
-
restContext =
|
|
48082
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48444
48083
|
|
|
48445
48084
|
var className = props.className,
|
|
48446
|
-
restProps =
|
|
48085
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48447
48086
|
|
|
48448
48087
|
|
|
48449
48088
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48450
48089
|
value: null
|
|
48451
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48090
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48452
48091
|
ref: ref,
|
|
48453
48092
|
className: classnames_default()(contextClassName, className)
|
|
48454
48093
|
}, restContext, restProps)));
|
|
@@ -48498,7 +48137,7 @@ function Overflow(props, ref) {
|
|
|
48498
48137
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48499
48138
|
itemComponent = props.itemComponent,
|
|
48500
48139
|
onVisibleChange = props.onVisibleChange,
|
|
48501
|
-
restProps =
|
|
48140
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48502
48141
|
|
|
48503
48142
|
var createUseState = useBatchFrameState();
|
|
48504
48143
|
var fullySSR = ssr === 'full';
|
|
@@ -48708,7 +48347,7 @@ function Overflow(props, ref) {
|
|
|
48708
48347
|
var key = getKey(item, index);
|
|
48709
48348
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48710
48349
|
key: key,
|
|
48711
|
-
value:
|
|
48350
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48712
48351
|
order: index,
|
|
48713
48352
|
item: item,
|
|
48714
48353
|
itemKey: key,
|
|
@@ -48718,7 +48357,7 @@ function Overflow(props, ref) {
|
|
|
48718
48357
|
}, renderRawItem(item, index));
|
|
48719
48358
|
} : function (item, index) {
|
|
48720
48359
|
var key = getKey(item, index);
|
|
48721
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48360
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48722
48361
|
order: index,
|
|
48723
48362
|
key: key,
|
|
48724
48363
|
item: item,
|
|
@@ -48739,18 +48378,18 @@ function Overflow(props, ref) {
|
|
|
48739
48378
|
|
|
48740
48379
|
if (!renderRawRest) {
|
|
48741
48380
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48742
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48381
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48743
48382
|
} else if (renderRawRest) {
|
|
48744
48383
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48745
|
-
value:
|
|
48384
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48746
48385
|
}, renderRawRest(omittedItems));
|
|
48747
48386
|
}
|
|
48748
48387
|
|
|
48749
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48388
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48750
48389
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48751
48390
|
style: style,
|
|
48752
48391
|
ref: ref
|
|
48753
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48392
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48754
48393
|
order: mergedDisplayCount,
|
|
48755
48394
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48756
48395
|
registerSize: registerSuffixSize,
|
|
@@ -48815,7 +48454,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48815
48454
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48816
48455
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48817
48456
|
style = _inputNode$props.style;
|
|
48818
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48457
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
48819
48458
|
id: id,
|
|
48820
48459
|
ref: composeRef(ref, originRef),
|
|
48821
48460
|
disabled: disabled,
|
|
@@ -48824,7 +48463,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48824
48463
|
type: 'search',
|
|
48825
48464
|
autoFocus: autoFocus,
|
|
48826
48465
|
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),
|
|
48827
|
-
style:
|
|
48466
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
48828
48467
|
opacity: editable ? null : 0
|
|
48829
48468
|
}),
|
|
48830
48469
|
role: 'combobox',
|
|
@@ -48972,7 +48611,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48972
48611
|
|
|
48973
48612
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48974
48613
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48975
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48614
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48976
48615
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48977
48616
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48978
48617
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49387,7 +49026,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49387
49026
|
onInputCompositionStart: onInputCompositionStart,
|
|
49388
49027
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49389
49028
|
};
|
|
49390
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49029
|
+
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));
|
|
49391
49030
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49392
49031
|
ref: domRef,
|
|
49393
49032
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49432,7 +49071,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49432
49071
|
|
|
49433
49072
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49434
49073
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49435
|
-
return
|
|
49074
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49436
49075
|
}
|
|
49437
49076
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49438
49077
|
var points = align.points;
|
|
@@ -49496,7 +49135,7 @@ function Mask_Mask(props) {
|
|
|
49496
49135
|
var motion = {};
|
|
49497
49136
|
|
|
49498
49137
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49499
|
-
motion =
|
|
49138
|
+
motion = _objectSpread2({
|
|
49500
49139
|
motionAppear: true
|
|
49501
49140
|
}, getMotion({
|
|
49502
49141
|
motion: maskMotion,
|
|
@@ -49506,7 +49145,7 @@ function Mask_Mask(props) {
|
|
|
49506
49145
|
}));
|
|
49507
49146
|
}
|
|
49508
49147
|
|
|
49509
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49148
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49510
49149
|
visible: visible,
|
|
49511
49150
|
removeOnLeave: true
|
|
49512
49151
|
}), function (_ref) {
|
|
@@ -51018,7 +50657,7 @@ function getElement(func) {
|
|
|
51018
50657
|
}
|
|
51019
50658
|
|
|
51020
50659
|
function getPoint(point) {
|
|
51021
|
-
if (
|
|
50660
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
51022
50661
|
return point;
|
|
51023
50662
|
}
|
|
51024
50663
|
|
|
@@ -51232,9 +50871,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51232
50871
|
}
|
|
51233
50872
|
|
|
51234
50873
|
if (status) {
|
|
51235
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
50874
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51236
50875
|
var index, nextStatus;
|
|
51237
|
-
return
|
|
50876
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51238
50877
|
while (1) {
|
|
51239
50878
|
switch (_context.prev = _context.next) {
|
|
51240
50879
|
case 0:
|
|
@@ -51407,7 +51046,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51407
51046
|
} // ======================== Motion ========================
|
|
51408
51047
|
|
|
51409
51048
|
|
|
51410
|
-
var motion =
|
|
51049
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51411
51050
|
|
|
51412
51051
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51413
51052
|
var originHandler = motion[eventName];
|
|
@@ -51440,7 +51079,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51440
51079
|
};
|
|
51441
51080
|
}); // ======================== Render ========================
|
|
51442
51081
|
|
|
51443
|
-
var mergedStyle =
|
|
51082
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51444
51083
|
zIndex: zIndex,
|
|
51445
51084
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51446
51085
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51461,7 +51100,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51461
51100
|
}, children);
|
|
51462
51101
|
}
|
|
51463
51102
|
|
|
51464
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51103
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51465
51104
|
visible: visible,
|
|
51466
51105
|
ref: elementRef,
|
|
51467
51106
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51489,7 +51128,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51489
51128
|
onMouseLeave: onMouseLeave,
|
|
51490
51129
|
onMouseDownCapture: onMouseDown,
|
|
51491
51130
|
onTouchStartCapture: onTouchStart,
|
|
51492
|
-
style:
|
|
51131
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51493
51132
|
}, childNode));
|
|
51494
51133
|
});
|
|
51495
51134
|
});
|
|
@@ -51524,7 +51163,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51524
51163
|
};
|
|
51525
51164
|
}); // ======================== Render ========================
|
|
51526
51165
|
|
|
51527
|
-
var mergedStyle =
|
|
51166
|
+
var mergedStyle = _objectSpread2({
|
|
51528
51167
|
zIndex: zIndex
|
|
51529
51168
|
}, popupStyle);
|
|
51530
51169
|
|
|
@@ -51541,7 +51180,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51541
51180
|
childNode = popupRender(childNode);
|
|
51542
51181
|
}
|
|
51543
51182
|
|
|
51544
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51183
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51545
51184
|
visible: visible,
|
|
51546
51185
|
ref: elementRef,
|
|
51547
51186
|
removeOnLeave: true
|
|
@@ -51552,7 +51191,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51552
51191
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51553
51192
|
ref: motionRef,
|
|
51554
51193
|
className: mergedClassName,
|
|
51555
|
-
style:
|
|
51194
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51556
51195
|
}, childNode);
|
|
51557
51196
|
});
|
|
51558
51197
|
});
|
|
@@ -51573,7 +51212,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51573
51212
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51574
51213
|
var visible = _ref.visible,
|
|
51575
51214
|
mobile = _ref.mobile,
|
|
51576
|
-
props =
|
|
51215
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51577
51216
|
|
|
51578
51217
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51579
51218
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51585,7 +51224,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51585
51224
|
inMobile = _useState4[0],
|
|
51586
51225
|
setInMobile = _useState4[1];
|
|
51587
51226
|
|
|
51588
|
-
var cloneProps =
|
|
51227
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51589
51228
|
visible: innerVisible
|
|
51590
51229
|
}); // We check mobile in visible changed here.
|
|
51591
51230
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51598,10 +51237,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51598
51237
|
setInMobile(isMobile());
|
|
51599
51238
|
}
|
|
51600
51239
|
}, [visible, mobile]);
|
|
51601
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51240
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51602
51241
|
mobile: mobile,
|
|
51603
51242
|
ref: ref
|
|
51604
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51243
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51605
51244
|
ref: ref
|
|
51606
51245
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51607
51246
|
|
|
@@ -51655,14 +51294,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51655
51294
|
|
|
51656
51295
|
function generateTrigger(PortalComponent) {
|
|
51657
51296
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51658
|
-
|
|
51297
|
+
_inherits(Trigger, _React$Component);
|
|
51659
51298
|
|
|
51660
|
-
var _super =
|
|
51299
|
+
var _super = _createSuper(Trigger);
|
|
51661
51300
|
|
|
51662
51301
|
function Trigger(props) {
|
|
51663
51302
|
var _this;
|
|
51664
51303
|
|
|
51665
|
-
|
|
51304
|
+
_classCallCheck(this, Trigger);
|
|
51666
51305
|
|
|
51667
51306
|
_this = _super.call(this, props);
|
|
51668
51307
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51850,7 +51489,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51850
51489
|
} catch (err) {// Do nothing
|
|
51851
51490
|
}
|
|
51852
51491
|
|
|
51853
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51492
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
51854
51493
|
};
|
|
51855
51494
|
|
|
51856
51495
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51911,7 +51550,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51911
51550
|
|
|
51912
51551
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51913
51552
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51914
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51553
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
51915
51554
|
prefixCls: prefixCls,
|
|
51916
51555
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51917
51556
|
visible: popupVisible,
|
|
@@ -52024,7 +51663,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52024
51663
|
return _this;
|
|
52025
51664
|
}
|
|
52026
51665
|
|
|
52027
|
-
|
|
51666
|
+
_createClass(Trigger, [{
|
|
52028
51667
|
key: "componentDidMount",
|
|
52029
51668
|
value: function componentDidMount() {
|
|
52030
51669
|
this.componentDidUpdate();
|
|
@@ -52349,7 +51988,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52349
51988
|
newChildProps.className = childrenClassName;
|
|
52350
51989
|
}
|
|
52351
51990
|
|
|
52352
|
-
var cloneProps =
|
|
51991
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52353
51992
|
|
|
52354
51993
|
if (supportRef(child)) {
|
|
52355
51994
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52490,7 +52129,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52490
52129
|
empty = props.empty,
|
|
52491
52130
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52492
52131
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52493
|
-
restProps =
|
|
52132
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52494
52133
|
|
|
52495
52134
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52496
52135
|
var popupNode = popupElement;
|
|
@@ -52514,7 +52153,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52514
52153
|
};
|
|
52515
52154
|
});
|
|
52516
52155
|
|
|
52517
|
-
var popupStyle =
|
|
52156
|
+
var popupStyle = _objectSpread2({
|
|
52518
52157
|
minWidth: containerWidth
|
|
52519
52158
|
}, dropdownStyle);
|
|
52520
52159
|
|
|
@@ -52524,7 +52163,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52524
52163
|
popupStyle.width = containerWidth;
|
|
52525
52164
|
}
|
|
52526
52165
|
|
|
52527
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52166
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52528
52167
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52529
52168
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52530
52169
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52537,7 +52176,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52537
52176
|
popupAlign: dropdownAlign,
|
|
52538
52177
|
popupVisible: visible,
|
|
52539
52178
|
getPopupContainer: getPopupContainer,
|
|
52540
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52179
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52541
52180
|
popupStyle: popupStyle,
|
|
52542
52181
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52543
52182
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52640,7 +52279,7 @@ function useCacheDisplayValue(values) {
|
|
|
52640
52279
|
var cacheLabel = valueLabels.get(item.value);
|
|
52641
52280
|
|
|
52642
52281
|
if (item.isCacheable && cacheLabel) {
|
|
52643
|
-
return
|
|
52282
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52644
52283
|
label: cacheLabel
|
|
52645
52284
|
});
|
|
52646
52285
|
}
|
|
@@ -52802,7 +52441,7 @@ function generateSelector(config) {
|
|
|
52802
52441
|
onClear = props.onClear,
|
|
52803
52442
|
_props$internalProps = props.internalProps,
|
|
52804
52443
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52805
|
-
restProps =
|
|
52444
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52806
52445
|
|
|
52807
52446
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52808
52447
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52940,7 +52579,7 @@ function generateSelector(config) {
|
|
|
52940
52579
|
|
|
52941
52580
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52942
52581
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52943
|
-
return
|
|
52582
|
+
return _toConsumableArray(mergedOptions);
|
|
52944
52583
|
}
|
|
52945
52584
|
|
|
52946
52585
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52961,7 +52600,7 @@ function generateSelector(config) {
|
|
|
52961
52600
|
}
|
|
52962
52601
|
|
|
52963
52602
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52964
|
-
return
|
|
52603
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
52965
52604
|
}
|
|
52966
52605
|
|
|
52967
52606
|
return filteredOptions;
|
|
@@ -52984,7 +52623,7 @@ function generateSelector(config) {
|
|
|
52984
52623
|
labelInValue: mergedLabelInValue,
|
|
52985
52624
|
optionLabelProp: mergedOptionLabelProp
|
|
52986
52625
|
});
|
|
52987
|
-
return
|
|
52626
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
52988
52627
|
disabled: isValueDisabled(val, valueOptions)
|
|
52989
52628
|
});
|
|
52990
52629
|
});
|
|
@@ -53058,7 +52697,7 @@ function generateSelector(config) {
|
|
|
53058
52697
|
}); // We will cache option in case it removed by ajax
|
|
53059
52698
|
|
|
53060
52699
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53061
|
-
var clone =
|
|
52700
|
+
var clone = _objectSpread2({}, option);
|
|
53062
52701
|
|
|
53063
52702
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53064
52703
|
get: function get() {
|
|
@@ -53114,13 +52753,13 @@ function generateSelector(config) {
|
|
|
53114
52753
|
};
|
|
53115
52754
|
|
|
53116
52755
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53117
|
-
onInternalSelect(newValue,
|
|
52756
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53118
52757
|
source: 'option'
|
|
53119
52758
|
}));
|
|
53120
52759
|
};
|
|
53121
52760
|
|
|
53122
52761
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53123
|
-
onInternalSelect(newValue,
|
|
52762
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53124
52763
|
source: 'selection'
|
|
53125
52764
|
}));
|
|
53126
52765
|
}; // ============================= Input ==============================
|
|
@@ -53204,7 +52843,7 @@ function generateSelector(config) {
|
|
|
53204
52843
|
});
|
|
53205
52844
|
}
|
|
53206
52845
|
|
|
53207
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52846
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53208
52847
|
triggerChange(newRawValues);
|
|
53209
52848
|
newRawValues.forEach(function (newRawValue) {
|
|
53210
52849
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53233,7 +52872,7 @@ function generateSelector(config) {
|
|
|
53233
52872
|
return;
|
|
53234
52873
|
}
|
|
53235
52874
|
|
|
53236
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52875
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53237
52876
|
triggerChange(newRawValues);
|
|
53238
52877
|
newRawValues.forEach(function (newRawValue) {
|
|
53239
52878
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53366,7 +53005,7 @@ function generateSelector(config) {
|
|
|
53366
53005
|
// `tags` mode should move `searchValue` into values
|
|
53367
53006
|
if (mode === 'tags') {
|
|
53368
53007
|
triggerSearch('', false, false);
|
|
53369
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53008
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53370
53009
|
} else if (mode === 'multiple') {
|
|
53371
53010
|
// `multiple` mode only clean the search value but not trigger event
|
|
53372
53011
|
setInnerSearchValue('');
|
|
@@ -53524,7 +53163,7 @@ function generateSelector(config) {
|
|
|
53524
53163
|
|
|
53525
53164
|
if (mergedShowArrow) {
|
|
53526
53165
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53527
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53166
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53528
53167
|
customizeIcon: inputIcon,
|
|
53529
53168
|
customizeIconProps: {
|
|
53530
53169
|
loading: loading,
|
|
@@ -53540,7 +53179,7 @@ function generateSelector(config) {
|
|
|
53540
53179
|
if (false) {} // ============================= Render =============================
|
|
53541
53180
|
|
|
53542
53181
|
|
|
53543
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53182
|
+
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));
|
|
53544
53183
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53545
53184
|
ref: triggerRef,
|
|
53546
53185
|
disabled: disabled,
|
|
@@ -53565,7 +53204,7 @@ function generateSelector(config) {
|
|
|
53565
53204
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53566
53205
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53567
53206
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53568
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53207
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53569
53208
|
domRef: selectorDomRef,
|
|
53570
53209
|
prefixCls: prefixCls,
|
|
53571
53210
|
inputElement: customizeInputElement,
|
|
@@ -53591,7 +53230,7 @@ function generateSelector(config) {
|
|
|
53591
53230
|
return selectorNode;
|
|
53592
53231
|
}
|
|
53593
53232
|
|
|
53594
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53233
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53595
53234
|
className: mergedClassName
|
|
53596
53235
|
}, domProps, {
|
|
53597
53236
|
ref: containerRef,
|
|
@@ -53678,7 +53317,7 @@ function warningProps(props) {
|
|
|
53678
53317
|
if (value !== undefined && value !== null) {
|
|
53679
53318
|
var values = commonUtil_toArray(value);
|
|
53680
53319
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53681
|
-
return
|
|
53320
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53682
53321
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53683
53322
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53684
53323
|
} // Syntactic sugar should use correct children type
|
|
@@ -53792,14 +53431,14 @@ var RefSelect = generateSelector({
|
|
|
53792
53431
|
*/
|
|
53793
53432
|
|
|
53794
53433
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53795
|
-
|
|
53434
|
+
_inherits(Select, _React$Component);
|
|
53796
53435
|
|
|
53797
|
-
var _super =
|
|
53436
|
+
var _super = _createSuper(Select);
|
|
53798
53437
|
|
|
53799
53438
|
function Select() {
|
|
53800
53439
|
var _this;
|
|
53801
53440
|
|
|
53802
|
-
|
|
53441
|
+
_classCallCheck(this, Select);
|
|
53803
53442
|
|
|
53804
53443
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53805
53444
|
args[_key] = arguments[_key];
|
|
@@ -53819,10 +53458,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53819
53458
|
return _this;
|
|
53820
53459
|
}
|
|
53821
53460
|
|
|
53822
|
-
|
|
53461
|
+
_createClass(Select, [{
|
|
53823
53462
|
key: "render",
|
|
53824
53463
|
value: function render() {
|
|
53825
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53464
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53826
53465
|
ref: this.selectRef
|
|
53827
53466
|
}, this.props));
|
|
53828
53467
|
}
|
|
@@ -56131,7 +55770,7 @@ function TabNode(_ref, ref) {
|
|
|
56131
55770
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56132
55771
|
key: key,
|
|
56133
55772
|
ref: ref,
|
|
56134
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
55773
|
+
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)),
|
|
56135
55774
|
style: style,
|
|
56136
55775
|
onClick: onInternalClick
|
|
56137
55776
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56194,7 +55833,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56194
55833
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56195
55834
|
}
|
|
56196
55835
|
|
|
56197
|
-
var entity = map.get(key) ||
|
|
55836
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56198
55837
|
|
|
56199
55838
|
|
|
56200
55839
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56289,7 +55928,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56289
55928
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56290
55929
|
|
|
56291
55930
|
function mergeProps(origin, target) {
|
|
56292
|
-
var clone =
|
|
55931
|
+
var clone = _objectSpread2({}, origin);
|
|
56293
55932
|
|
|
56294
55933
|
Object.keys(target).forEach(function (key) {
|
|
56295
55934
|
var value = target[key];
|
|
@@ -56304,7 +55943,7 @@ function mergeProps(origin, target) {
|
|
|
56304
55943
|
function InheritableContextProvider(_ref) {
|
|
56305
55944
|
var children = _ref.children,
|
|
56306
55945
|
locked = _ref.locked,
|
|
56307
|
-
restProps =
|
|
55946
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56308
55947
|
|
|
56309
55948
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56310
55949
|
var inheritableContext = useMemo(function () {
|
|
@@ -56360,7 +55999,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56360
55999
|
|
|
56361
56000
|
function warnItemProp(_ref) {
|
|
56362
56001
|
var item = _ref.item,
|
|
56363
|
-
restInfo =
|
|
56002
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56364
56003
|
|
|
56365
56004
|
Object.defineProperty(restInfo, 'item', {
|
|
56366
56005
|
get: function get() {
|
|
@@ -56380,7 +56019,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56380
56019
|
var iconNode;
|
|
56381
56020
|
|
|
56382
56021
|
if (typeof icon === 'function') {
|
|
56383
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56022
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56384
56023
|
} else {
|
|
56385
56024
|
// Compatible for origin definition
|
|
56386
56025
|
iconNode = icon;
|
|
@@ -56421,7 +56060,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56421
56060
|
function useFullPath(eventKey) {
|
|
56422
56061
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56423
56062
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56424
|
-
return eventKey !== undefined ? [].concat(
|
|
56063
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56425
56064
|
}, [parentKeyPath, eventKey]);
|
|
56426
56065
|
}
|
|
56427
56066
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56478,28 +56117,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56478
56117
|
// This should be removed from doc & api in future.
|
|
56479
56118
|
|
|
56480
56119
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56481
|
-
|
|
56120
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56482
56121
|
|
|
56483
|
-
var _super =
|
|
56122
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56484
56123
|
|
|
56485
56124
|
function LegacyMenuItem() {
|
|
56486
|
-
|
|
56125
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56487
56126
|
|
|
56488
56127
|
return _super.apply(this, arguments);
|
|
56489
56128
|
}
|
|
56490
56129
|
|
|
56491
|
-
|
|
56130
|
+
_createClass(LegacyMenuItem, [{
|
|
56492
56131
|
key: "render",
|
|
56493
56132
|
value: function render() {
|
|
56494
56133
|
var _this$props = this.props,
|
|
56495
56134
|
title = _this$props.title,
|
|
56496
56135
|
attribute = _this$props.attribute,
|
|
56497
56136
|
elementRef = _this$props.elementRef,
|
|
56498
|
-
restProps =
|
|
56137
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56499
56138
|
|
|
56500
56139
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56501
56140
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56502
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56141
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56503
56142
|
title: typeof title === 'string' ? title : undefined
|
|
56504
56143
|
}, passedProps, {
|
|
56505
56144
|
ref: elementRef
|
|
@@ -56530,7 +56169,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56530
56169
|
onClick = props.onClick,
|
|
56531
56170
|
onKeyDown = props.onKeyDown,
|
|
56532
56171
|
onFocus = props.onFocus,
|
|
56533
|
-
restProps =
|
|
56172
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56534
56173
|
|
|
56535
56174
|
var domDataId = useMenuId(eventKey);
|
|
56536
56175
|
|
|
@@ -56559,7 +56198,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56559
56198
|
return {
|
|
56560
56199
|
key: eventKey,
|
|
56561
56200
|
// Note: For legacy code is reversed which not like other antd component
|
|
56562
|
-
keyPath:
|
|
56201
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56563
56202
|
item: legacyMenuItemRef.current,
|
|
56564
56203
|
domEvent: e
|
|
56565
56204
|
};
|
|
@@ -56570,7 +56209,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56570
56209
|
|
|
56571
56210
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56572
56211
|
active = _useActive.active,
|
|
56573
|
-
activeProps =
|
|
56212
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56574
56213
|
|
|
56575
56214
|
|
|
56576
56215
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56615,7 +56254,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56615
56254
|
optionRoleProps['aria-selected'] = selected;
|
|
56616
56255
|
}
|
|
56617
56256
|
|
|
56618
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56257
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56619
56258
|
ref: legacyMenuItemRef,
|
|
56620
56259
|
elementRef: elementRef,
|
|
56621
56260
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56624,13 +56263,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56624
56263
|
}, restProps, activeProps, optionRoleProps, {
|
|
56625
56264
|
component: "li",
|
|
56626
56265
|
"aria-disabled": disabled,
|
|
56627
|
-
style:
|
|
56628
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56266
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56267
|
+
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),
|
|
56629
56268
|
onClick: onInternalClick,
|
|
56630
56269
|
onKeyDown: onInternalKeyDown,
|
|
56631
56270
|
onFocus: onInternalFocus
|
|
56632
56271
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56633
|
-
props:
|
|
56272
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56634
56273
|
isSelected: selected
|
|
56635
56274
|
}),
|
|
56636
56275
|
icon: mergedItemIcon
|
|
@@ -56683,7 +56322,7 @@ function parseChildren(children, keyPath) {
|
|
|
56683
56322
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56684
56323
|
|
|
56685
56324
|
if (emptyKey) {
|
|
56686
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56325
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56687
56326
|
}
|
|
56688
56327
|
|
|
56689
56328
|
var cloneProps = {
|
|
@@ -56731,14 +56370,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56731
56370
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56732
56371
|
var className = _ref.className,
|
|
56733
56372
|
children = _ref.children,
|
|
56734
|
-
restProps =
|
|
56373
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56735
56374
|
|
|
56736
56375
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56737
56376
|
prefixCls = _React$useContext.prefixCls,
|
|
56738
56377
|
mode = _React$useContext.mode,
|
|
56739
56378
|
rtl = _React$useContext.rtl;
|
|
56740
56379
|
|
|
56741
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56380
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56742
56381
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56743
56382
|
}, restProps, {
|
|
56744
56383
|
"data-menu-list": true,
|
|
@@ -56855,11 +56494,11 @@ function PopupTrigger(_ref) {
|
|
|
56855
56494
|
innerVisible = _React$useState2[0],
|
|
56856
56495
|
setInnerVisible = _React$useState2[1];
|
|
56857
56496
|
|
|
56858
|
-
var placement = rtl ?
|
|
56497
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
56859
56498
|
var popupPlacement = popupPlacementMap[mode];
|
|
56860
56499
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56861
56500
|
|
|
56862
|
-
var mergedMotion =
|
|
56501
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
56863
56502
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56864
56503
|
removeOnLeave: false,
|
|
56865
56504
|
motionAppear: true
|
|
@@ -56877,7 +56516,7 @@ function PopupTrigger(_ref) {
|
|
|
56877
56516
|
}, [visible]);
|
|
56878
56517
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56879
56518
|
prefixCls: prefixCls,
|
|
56880
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56519
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56881
56520
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56882
56521
|
getPopupContainer: getPopupContainer,
|
|
56883
56522
|
builtinPlacements: placement,
|
|
@@ -56937,7 +56576,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56937
56576
|
}
|
|
56938
56577
|
}, [mode]); // ================================= Render =================================
|
|
56939
56578
|
|
|
56940
|
-
var mergedMotion =
|
|
56579
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56941
56580
|
|
|
56942
56581
|
|
|
56943
56582
|
if (keyPath.length > 1) {
|
|
@@ -56962,7 +56601,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56962
56601
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56963
56602
|
mode: fixedMode,
|
|
56964
56603
|
locked: !sameModeRef.current
|
|
56965
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56604
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
56966
56605
|
visible: mergedOpen
|
|
56967
56606
|
}, mergedMotion, {
|
|
56968
56607
|
forceRender: forceSubMenuRender,
|
|
@@ -57025,7 +56664,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57025
56664
|
onTitleClick = props.onTitleClick,
|
|
57026
56665
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57027
56666
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57028
|
-
restProps =
|
|
56667
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
57029
56668
|
|
|
57030
56669
|
var domDataId = useMenuId(eventKey);
|
|
57031
56670
|
|
|
@@ -57068,7 +56707,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57068
56707
|
|
|
57069
56708
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57070
56709
|
active = _useActive.active,
|
|
57071
|
-
activeProps =
|
|
56710
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57072
56711
|
|
|
57073
56712
|
|
|
57074
56713
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57153,7 +56792,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57153
56792
|
|
|
57154
56793
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57155
56794
|
|
|
57156
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56795
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57157
56796
|
role: "menuitem",
|
|
57158
56797
|
style: directionStyle,
|
|
57159
56798
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57169,7 +56808,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57169
56808
|
onFocus: onInternalFocus
|
|
57170
56809
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57171
56810
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57172
|
-
props:
|
|
56811
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57173
56812
|
isOpen: open,
|
|
57174
56813
|
// [Legacy] Not sure why need this mark
|
|
57175
56814
|
isSubMenu: true
|
|
@@ -57207,12 +56846,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57207
56846
|
} // >>>>> List node
|
|
57208
56847
|
|
|
57209
56848
|
|
|
57210
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56849
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57211
56850
|
role: "none"
|
|
57212
56851
|
}, restProps, {
|
|
57213
56852
|
component: "li",
|
|
57214
56853
|
style: style,
|
|
57215
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
56854
|
+
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)),
|
|
57216
56855
|
onMouseEnter: onInternalMouseEnter,
|
|
57217
56856
|
onMouseLeave: onInternalMouseLeave
|
|
57218
56857
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57305,7 +56944,7 @@ function focusable(node) {
|
|
|
57305
56944
|
function getFocusNodeList(node) {
|
|
57306
56945
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57307
56946
|
|
|
57308
|
-
var res =
|
|
56947
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57309
56948
|
return focusable(child, includePositive);
|
|
57310
56949
|
});
|
|
57311
56950
|
|
|
@@ -57385,9 +57024,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57385
57024
|
};
|
|
57386
57025
|
}
|
|
57387
57026
|
|
|
57388
|
-
var inline = (_inline = {},
|
|
57389
|
-
var horizontal = (_horizontal = {},
|
|
57390
|
-
var vertical = (_vertical = {},
|
|
57027
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
57028
|
+
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);
|
|
57029
|
+
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);
|
|
57391
57030
|
var offsets = {
|
|
57392
57031
|
inline: inline,
|
|
57393
57032
|
horizontal: horizontal,
|
|
@@ -57751,7 +57390,7 @@ function useKeyRecords() {
|
|
|
57751
57390
|
}, [getKeyPath]);
|
|
57752
57391
|
|
|
57753
57392
|
var getKeys = function getKeys() {
|
|
57754
|
-
var keys =
|
|
57393
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57755
57394
|
|
|
57756
57395
|
if (overflowKeys.length) {
|
|
57757
57396
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57768,7 +57407,7 @@ function useKeyRecords() {
|
|
|
57768
57407
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57769
57408
|
var pathKeys = new Set();
|
|
57770
57409
|
|
|
57771
|
-
|
|
57410
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57772
57411
|
if (pathKey.startsWith(connectedPath)) {
|
|
57773
57412
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57774
57413
|
}
|
|
@@ -57889,7 +57528,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57889
57528
|
openTransitionName = props.openTransitionName,
|
|
57890
57529
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57891
57530
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57892
|
-
restProps =
|
|
57531
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
57893
57532
|
|
|
57894
57533
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57895
57534
|
|
|
@@ -58043,7 +57682,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58043
57682
|
return key !== targetKey;
|
|
58044
57683
|
});
|
|
58045
57684
|
} else {
|
|
58046
|
-
newSelectKeys = [].concat(
|
|
57685
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58047
57686
|
}
|
|
58048
57687
|
} else {
|
|
58049
57688
|
newSelectKeys = [targetKey];
|
|
@@ -58051,7 +57690,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58051
57690
|
|
|
58052
57691
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58053
57692
|
|
|
58054
|
-
var selectInfo =
|
|
57693
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
58055
57694
|
selectedKeys: newSelectKeys
|
|
58056
57695
|
});
|
|
58057
57696
|
|
|
@@ -58129,13 +57768,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58129
57768
|
);
|
|
58130
57769
|
}); // >>>>> Container
|
|
58131
57770
|
|
|
58132
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
57771
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58133
57772
|
id: id,
|
|
58134
57773
|
ref: mergedRef,
|
|
58135
57774
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58136
57775
|
component: "ul",
|
|
58137
57776
|
itemComponent: es_MenuItem,
|
|
58138
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
57777
|
+
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)),
|
|
58139
57778
|
dir: direction,
|
|
58140
57779
|
style: style,
|
|
58141
57780
|
role: "menu",
|
|
@@ -58229,13 +57868,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58229
57868
|
title = _ref.title,
|
|
58230
57869
|
eventKey = _ref.eventKey,
|
|
58231
57870
|
children = _ref.children,
|
|
58232
|
-
restProps =
|
|
57871
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58233
57872
|
|
|
58234
57873
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58235
57874
|
prefixCls = _React$useContext.prefixCls;
|
|
58236
57875
|
|
|
58237
57876
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58238
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
57877
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58239
57878
|
onClick: function onClick(e) {
|
|
58240
57879
|
return e.stopPropagation();
|
|
58241
57880
|
},
|
|
@@ -58250,7 +57889,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58250
57889
|
|
|
58251
57890
|
function MenuItemGroup(_ref2) {
|
|
58252
57891
|
var children = _ref2.children,
|
|
58253
|
-
props =
|
|
57892
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58254
57893
|
|
|
58255
57894
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58256
57895
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58378,7 +58017,7 @@ function Dropdown(props, ref) {
|
|
|
58378
58017
|
visible = props.visible,
|
|
58379
58018
|
_props$trigger = props.trigger,
|
|
58380
58019
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58381
|
-
otherProps =
|
|
58020
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58382
58021
|
|
|
58383
58022
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58384
58023
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58489,12 +58128,12 @@ function Dropdown(props, ref) {
|
|
|
58489
58128
|
triggerHideAction = ['click'];
|
|
58490
58129
|
}
|
|
58491
58130
|
|
|
58492
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58131
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58493
58132
|
builtinPlacements: placements
|
|
58494
58133
|
}, otherProps), {}, {
|
|
58495
58134
|
prefixCls: prefixCls,
|
|
58496
58135
|
ref: triggerRef,
|
|
58497
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58136
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58498
58137
|
popupStyle: overlayStyle,
|
|
58499
58138
|
action: trigger,
|
|
58500
58139
|
showAction: showAction,
|
|
@@ -58698,14 +58337,14 @@ function OperationNode(_ref, ref) {
|
|
|
58698
58337
|
}
|
|
58699
58338
|
}, [open]); // ========================= Render =========================
|
|
58700
58339
|
|
|
58701
|
-
var moreStyle =
|
|
58340
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58702
58341
|
|
|
58703
58342
|
if (!tabs.length) {
|
|
58704
58343
|
moreStyle.visibility = 'hidden';
|
|
58705
58344
|
moreStyle.order = 1;
|
|
58706
58345
|
}
|
|
58707
58346
|
|
|
58708
|
-
var overlayClassName = classnames_default()(
|
|
58347
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58709
58348
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58710
58349
|
prefixCls: dropdownPrefix,
|
|
58711
58350
|
overlay: menu,
|
|
@@ -58984,7 +58623,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58984
58623
|
|
|
58985
58624
|
var assertExtra = {};
|
|
58986
58625
|
|
|
58987
|
-
if (extra &&
|
|
58626
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58988
58627
|
assertExtra = extra;
|
|
58989
58628
|
} else {
|
|
58990
58629
|
assertExtra.right = extra;
|
|
@@ -59234,7 +58873,7 @@ function TabNavList(props, ref) {
|
|
|
59234
58873
|
}, {
|
|
59235
58874
|
width: addWidth,
|
|
59236
58875
|
height: addHeight
|
|
59237
|
-
},
|
|
58876
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59238
58877
|
tabs: tabs
|
|
59239
58878
|
})),
|
|
59240
58879
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59326,7 +58965,7 @@ function TabNavList(props, ref) {
|
|
|
59326
58965
|
|
|
59327
58966
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59328
58967
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59329
|
-
var hiddenTabs = [].concat(
|
|
58968
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59330
58969
|
|
|
59331
58970
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59332
58971
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59412,7 +59051,7 @@ function TabNavList(props, ref) {
|
|
|
59412
59051
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59413
59052
|
onResize: onListHolderResize
|
|
59414
59053
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59415
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59054
|
+
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)),
|
|
59416
59055
|
ref: tabsWrapperRef
|
|
59417
59056
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59418
59057
|
onResize: onListHolderResize
|
|
@@ -59428,13 +59067,13 @@ function TabNavList(props, ref) {
|
|
|
59428
59067
|
prefixCls: prefixCls,
|
|
59429
59068
|
locale: locale,
|
|
59430
59069
|
editable: editable,
|
|
59431
|
-
style:
|
|
59070
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59432
59071
|
visibility: hasDropdown ? 'hidden' : null
|
|
59433
59072
|
})
|
|
59434
59073
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59435
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59074
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59436
59075
|
style: inkStyle
|
|
59437
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59076
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59438
59077
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59439
59078
|
ref: operationsRef,
|
|
59440
59079
|
prefixCls: prefixCls,
|
|
@@ -59474,8 +59113,8 @@ function TabPanelList(_ref) {
|
|
|
59474
59113
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59475
59114
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59476
59115
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59477
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59478
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59116
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59117
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59479
59118
|
}, tabs.map(function (tab) {
|
|
59480
59119
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59481
59120
|
key: tab.key,
|
|
@@ -59535,7 +59174,7 @@ function TabPane(_ref) {
|
|
|
59535
59174
|
tabIndex: active ? 0 : -1,
|
|
59536
59175
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59537
59176
|
"aria-hidden": !active,
|
|
59538
|
-
style:
|
|
59177
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59539
59178
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59540
59179
|
}, (active || visited || forceRender) && children);
|
|
59541
59180
|
}
|
|
@@ -59575,7 +59214,7 @@ function parseTabList(children) {
|
|
|
59575
59214
|
return toArray(children).map(function (node) {
|
|
59576
59215
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59577
59216
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59578
|
-
return
|
|
59217
|
+
return _objectSpread2(_objectSpread2({
|
|
59579
59218
|
key: key
|
|
59580
59219
|
}, node.props), {}, {
|
|
59581
59220
|
node: node
|
|
@@ -59618,7 +59257,7 @@ function Tabs(_ref, ref) {
|
|
|
59618
59257
|
onChange = _ref.onChange,
|
|
59619
59258
|
onTabClick = _ref.onTabClick,
|
|
59620
59259
|
onTabScroll = _ref.onTabScroll,
|
|
59621
|
-
restProps =
|
|
59260
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59622
59261
|
|
|
59623
59262
|
var tabs = parseTabList(children);
|
|
59624
59263
|
var rtl = direction === 'rtl';
|
|
@@ -59635,10 +59274,10 @@ function Tabs(_ref, ref) {
|
|
|
59635
59274
|
tabPane: true
|
|
59636
59275
|
};
|
|
59637
59276
|
} else {
|
|
59638
|
-
mergedAnimated =
|
|
59277
|
+
mergedAnimated = _objectSpread2({
|
|
59639
59278
|
inkBar: true,
|
|
59640
59279
|
tabPane: false
|
|
59641
|
-
},
|
|
59280
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59642
59281
|
} // ======================== Mobile ========================
|
|
59643
59282
|
|
|
59644
59283
|
|
|
@@ -59733,7 +59372,7 @@ function Tabs(_ref, ref) {
|
|
|
59733
59372
|
};
|
|
59734
59373
|
var tabNavBar;
|
|
59735
59374
|
|
|
59736
|
-
var tabNavBarProps =
|
|
59375
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59737
59376
|
editable: editable,
|
|
59738
59377
|
locale: locale,
|
|
59739
59378
|
moreIcon: moreIcon,
|
|
@@ -59757,11 +59396,11 @@ function Tabs(_ref, ref) {
|
|
|
59757
59396
|
tabs: tabs,
|
|
59758
59397
|
prefixCls: prefixCls
|
|
59759
59398
|
}
|
|
59760
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59399
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59761
59400
|
ref: ref,
|
|
59762
59401
|
id: id,
|
|
59763
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59764
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59402
|
+
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)
|
|
59403
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59765
59404
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59766
59405
|
}, sharedProps, {
|
|
59767
59406
|
animated: mergedAnimated
|
|
@@ -59911,7 +59550,7 @@ var Pager = function Pager(props) {
|
|
|
59911
59550
|
var _classNames;
|
|
59912
59551
|
|
|
59913
59552
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59914
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59553
|
+
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));
|
|
59915
59554
|
|
|
59916
59555
|
var handleClick = function handleClick() {
|
|
59917
59556
|
props.onClick(props.page);
|
|
@@ -59956,14 +59595,14 @@ var Pager = function Pager(props) {
|
|
|
59956
59595
|
|
|
59957
59596
|
|
|
59958
59597
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59959
|
-
|
|
59598
|
+
_inherits(Options, _React$Component);
|
|
59960
59599
|
|
|
59961
|
-
var _super =
|
|
59600
|
+
var _super = _createSuper(Options);
|
|
59962
59601
|
|
|
59963
59602
|
function Options() {
|
|
59964
59603
|
var _this;
|
|
59965
59604
|
|
|
59966
|
-
|
|
59605
|
+
_classCallCheck(this, Options);
|
|
59967
59606
|
|
|
59968
59607
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59969
59608
|
args[_key] = arguments[_key];
|
|
@@ -60029,7 +59668,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60029
59668
|
return _this;
|
|
60030
59669
|
}
|
|
60031
59670
|
|
|
60032
|
-
|
|
59671
|
+
_createClass(Options, [{
|
|
60033
59672
|
key: "getValidValue",
|
|
60034
59673
|
value: function getValidValue() {
|
|
60035
59674
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60186,14 +59825,14 @@ function calculatePage(p, state, props) {
|
|
|
60186
59825
|
}
|
|
60187
59826
|
|
|
60188
59827
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60189
|
-
|
|
59828
|
+
_inherits(Pagination, _React$Component);
|
|
60190
59829
|
|
|
60191
|
-
var _super =
|
|
59830
|
+
var _super = _createSuper(Pagination);
|
|
60192
59831
|
|
|
60193
59832
|
function Pagination(props) {
|
|
60194
59833
|
var _this;
|
|
60195
59834
|
|
|
60196
|
-
|
|
59835
|
+
_classCallCheck(this, Pagination);
|
|
60197
59836
|
|
|
60198
59837
|
_this = _super.call(this, props);
|
|
60199
59838
|
|
|
@@ -60214,7 +59853,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60214
59853
|
});
|
|
60215
59854
|
|
|
60216
59855
|
if (typeof icon === 'function') {
|
|
60217
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
59856
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60218
59857
|
}
|
|
60219
59858
|
|
|
60220
59859
|
return iconNode;
|
|
@@ -60436,7 +60075,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60436
60075
|
return _this;
|
|
60437
60076
|
}
|
|
60438
60077
|
|
|
60439
|
-
|
|
60078
|
+
_createClass(Pagination, [{
|
|
60440
60079
|
key: "componentDidUpdate",
|
|
60441
60080
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60442
60081
|
// When current page change, fix focused style of prev item
|
|
@@ -60584,8 +60223,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60584
60223
|
}, gotoButton);
|
|
60585
60224
|
}
|
|
60586
60225
|
|
|
60587
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60588
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60226
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60227
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60589
60228
|
style: style,
|
|
60590
60229
|
ref: this.savePaginationNode
|
|
60591
60230
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60593,7 +60232,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60593
60232
|
onClick: this.prev,
|
|
60594
60233
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60595
60234
|
onKeyPress: this.runIfEnterPrev,
|
|
60596
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60235
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60597
60236
|
"aria-disabled": !this.hasPrev()
|
|
60598
60237
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60599
60238
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60614,7 +60253,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60614
60253
|
onClick: this.next,
|
|
60615
60254
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60616
60255
|
onKeyPress: this.runIfEnterNext,
|
|
60617
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60256
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60618
60257
|
"aria-disabled": !this.hasNext()
|
|
60619
60258
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60620
60259
|
}
|
|
@@ -60630,7 +60269,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60630
60269
|
};
|
|
60631
60270
|
|
|
60632
60271
|
if (!allPages) {
|
|
60633
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60272
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60634
60273
|
key: "noPager",
|
|
60635
60274
|
page: 1,
|
|
60636
60275
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60639,7 +60278,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60639
60278
|
|
|
60640
60279
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60641
60280
|
var active = current === i;
|
|
60642
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60281
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60643
60282
|
key: i,
|
|
60644
60283
|
page: i,
|
|
60645
60284
|
active: active
|
|
@@ -60656,7 +60295,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60656
60295
|
onClick: this.jumpPrev,
|
|
60657
60296
|
tabIndex: "0",
|
|
60658
60297
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60659
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60298
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60660
60299
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60661
60300
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60662
60301
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60664,7 +60303,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60664
60303
|
tabIndex: "0",
|
|
60665
60304
|
onClick: this.jumpNext,
|
|
60666
60305
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60667
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60306
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60668
60307
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60669
60308
|
}
|
|
60670
60309
|
|
|
@@ -60751,8 +60390,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60751
60390
|
|
|
60752
60391
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60753
60392
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60754
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60755
|
-
className: classnames_default()(prefixCls, className,
|
|
60393
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60394
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60756
60395
|
style: style,
|
|
60757
60396
|
unselectable: "unselectable",
|
|
60758
60397
|
ref: this.savePaginationNode
|
|
@@ -60761,14 +60400,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60761
60400
|
onClick: this.prev,
|
|
60762
60401
|
tabIndex: prevDisabled ? null : 0,
|
|
60763
60402
|
onKeyPress: this.runIfEnterPrev,
|
|
60764
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60403
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60765
60404
|
"aria-disabled": prevDisabled
|
|
60766
60405
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60767
60406
|
title: showTitle ? locale.next_page : null,
|
|
60768
60407
|
onClick: this.next,
|
|
60769
60408
|
tabIndex: nextDisabled ? null : 0,
|
|
60770
60409
|
onKeyPress: this.runIfEnterNext,
|
|
60771
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60410
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60772
60411
|
"aria-disabled": nextDisabled
|
|
60773
60412
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60774
60413
|
disabled: disabled,
|
|
@@ -60846,7 +60485,7 @@ Pagination.defaultProps = {
|
|
|
60846
60485
|
|
|
60847
60486
|
|
|
60848
60487
|
var MiniSelect = function MiniSelect(props) {
|
|
60849
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60488
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
60850
60489
|
size: "small"
|
|
60851
60490
|
}, props));
|
|
60852
60491
|
};
|
|
@@ -60907,7 +60546,7 @@ var responsiveObserve = {
|
|
|
60907
60546
|
var listener = function listener(_ref) {
|
|
60908
60547
|
var matches = _ref.matches;
|
|
60909
60548
|
|
|
60910
|
-
_this2.dispatch(
|
|
60549
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
60911
60550
|
};
|
|
60912
60551
|
|
|
60913
60552
|
var mql = window.matchMedia(matchMediaQuery);
|