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