@x-edu/live-player 0.0.1-0.beta.5 → 0.0.1-0.beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +819 -458
- package/dist/XEduLivePlayerPre.common.js +845 -484
- package/package.json +1 -1
- package/src/list/ListItem/index.jsx +2 -2
|
@@ -25807,6 +25807,13 @@ module.exports = styleTagTransform;
|
|
|
25807
25807
|
|
|
25808
25808
|
/***/ }),
|
|
25809
25809
|
|
|
25810
|
+
/***/ 5273:
|
|
25811
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
|
+
|
|
25813
|
+
module.exports = __webpack_require__(5666);
|
|
25814
|
+
|
|
25815
|
+
/***/ }),
|
|
25816
|
+
|
|
25810
25817
|
/***/ 3006:
|
|
25811
25818
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
25819
|
|
|
@@ -33108,6 +33115,9 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33108
33115
|
|
|
33109
33116
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33110
33117
|
|
|
33118
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33119
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
33120
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33111
33121
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33112
33122
|
|
|
33113
33123
|
|
|
@@ -33174,9 +33184,9 @@ function isSourceReady(_x) {
|
|
|
33174
33184
|
}
|
|
33175
33185
|
|
|
33176
33186
|
function _isSourceReady() {
|
|
33177
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33187
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33178
33188
|
var newLiveInfo;
|
|
33179
|
-
return
|
|
33189
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33180
33190
|
while (1) {
|
|
33181
33191
|
switch (_context.prev = _context.next) {
|
|
33182
33192
|
case 0:
|
|
@@ -33367,8 +33377,8 @@ function usePullSource_isSourceReady(_x) {
|
|
|
33367
33377
|
}
|
|
33368
33378
|
|
|
33369
33379
|
function hook_usePullSource_isSourceReady() {
|
|
33370
|
-
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33371
|
-
return
|
|
33380
|
+
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(url) {
|
|
33381
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33372
33382
|
while (1) {
|
|
33373
33383
|
switch (_context.prev = _context.next) {
|
|
33374
33384
|
case 0:
|
|
@@ -33873,8 +33883,8 @@ function AliPlayer(_ref) {
|
|
|
33873
33883
|
var aliPlayer;
|
|
33874
33884
|
|
|
33875
33885
|
var init = /*#__PURE__*/function () {
|
|
33876
|
-
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/
|
|
33877
|
-
return
|
|
33886
|
+
var _ref2 = AliPlayer_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33887
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33878
33888
|
while (1) {
|
|
33879
33889
|
switch (_context.prev = _context.next) {
|
|
33880
33890
|
case 0:
|
|
@@ -33999,6 +34009,39 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
33999
34009
|
// style dependencies
|
|
34000
34010
|
|
|
34001
34011
|
|
|
34012
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34013
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
34014
|
+
if (key in obj) {
|
|
34015
|
+
Object.defineProperty(obj, key, {
|
|
34016
|
+
value: value,
|
|
34017
|
+
enumerable: true,
|
|
34018
|
+
configurable: true,
|
|
34019
|
+
writable: true
|
|
34020
|
+
});
|
|
34021
|
+
} else {
|
|
34022
|
+
obj[key] = value;
|
|
34023
|
+
}
|
|
34024
|
+
|
|
34025
|
+
return obj;
|
|
34026
|
+
}
|
|
34027
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34028
|
+
function esm_extends_extends() {
|
|
34029
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
34030
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34031
|
+
var source = arguments[i];
|
|
34032
|
+
|
|
34033
|
+
for (var key in source) {
|
|
34034
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34035
|
+
target[key] = source[key];
|
|
34036
|
+
}
|
|
34037
|
+
}
|
|
34038
|
+
}
|
|
34039
|
+
|
|
34040
|
+
return target;
|
|
34041
|
+
};
|
|
34042
|
+
|
|
34043
|
+
return esm_extends_extends.apply(this, arguments);
|
|
34044
|
+
}
|
|
34002
34045
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34003
34046
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34004
34047
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34033,6 +34076,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34033
34076
|
|
|
34034
34077
|
return _arr;
|
|
34035
34078
|
}
|
|
34079
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34080
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34081
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34082
|
+
|
|
34083
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34084
|
+
arr2[i] = arr[i];
|
|
34085
|
+
}
|
|
34086
|
+
|
|
34087
|
+
return arr2;
|
|
34088
|
+
}
|
|
34089
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34090
|
+
|
|
34091
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34092
|
+
if (!o) return;
|
|
34093
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34094
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34095
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34096
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34097
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34098
|
+
}
|
|
34036
34099
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34037
34100
|
function nonIterableRest_nonIterableRest() {
|
|
34038
34101
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34043,7 +34106,130 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34043
34106
|
|
|
34044
34107
|
|
|
34045
34108
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34046
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34109
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34110
|
+
}
|
|
34111
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34112
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34113
|
+
if (!(instance instanceof Constructor)) {
|
|
34114
|
+
throw new TypeError("Cannot call a class as a function");
|
|
34115
|
+
}
|
|
34116
|
+
}
|
|
34117
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34118
|
+
function createClass_defineProperties(target, props) {
|
|
34119
|
+
for (var i = 0; i < props.length; i++) {
|
|
34120
|
+
var descriptor = props[i];
|
|
34121
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
34122
|
+
descriptor.configurable = true;
|
|
34123
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
34124
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34125
|
+
}
|
|
34126
|
+
}
|
|
34127
|
+
|
|
34128
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34129
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34130
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34131
|
+
return Constructor;
|
|
34132
|
+
}
|
|
34133
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34134
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34135
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34136
|
+
o.__proto__ = p;
|
|
34137
|
+
return o;
|
|
34138
|
+
};
|
|
34139
|
+
|
|
34140
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34141
|
+
}
|
|
34142
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34143
|
+
|
|
34144
|
+
function inherits_inherits(subClass, superClass) {
|
|
34145
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34146
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
34147
|
+
}
|
|
34148
|
+
|
|
34149
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34150
|
+
constructor: {
|
|
34151
|
+
value: subClass,
|
|
34152
|
+
writable: true,
|
|
34153
|
+
configurable: true
|
|
34154
|
+
}
|
|
34155
|
+
});
|
|
34156
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34157
|
+
}
|
|
34158
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34159
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
34160
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34161
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34162
|
+
};
|
|
34163
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
34164
|
+
}
|
|
34165
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34166
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34167
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34168
|
+
if (Reflect.construct.sham) return false;
|
|
34169
|
+
if (typeof Proxy === "function") return true;
|
|
34170
|
+
|
|
34171
|
+
try {
|
|
34172
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34173
|
+
return true;
|
|
34174
|
+
} catch (e) {
|
|
34175
|
+
return false;
|
|
34176
|
+
}
|
|
34177
|
+
}
|
|
34178
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34179
|
+
function esm_typeof_typeof(obj) {
|
|
34180
|
+
"@babel/helpers - typeof";
|
|
34181
|
+
|
|
34182
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34183
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34184
|
+
return typeof obj;
|
|
34185
|
+
};
|
|
34186
|
+
} else {
|
|
34187
|
+
esm_typeof_typeof = function _typeof(obj) {
|
|
34188
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34189
|
+
};
|
|
34190
|
+
}
|
|
34191
|
+
|
|
34192
|
+
return esm_typeof_typeof(obj);
|
|
34193
|
+
}
|
|
34194
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34195
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
34196
|
+
if (self === void 0) {
|
|
34197
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34198
|
+
}
|
|
34199
|
+
|
|
34200
|
+
return self;
|
|
34201
|
+
}
|
|
34202
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34203
|
+
|
|
34204
|
+
|
|
34205
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34206
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34207
|
+
return call;
|
|
34208
|
+
} else if (call !== void 0) {
|
|
34209
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34210
|
+
}
|
|
34211
|
+
|
|
34212
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
34213
|
+
}
|
|
34214
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34215
|
+
|
|
34216
|
+
|
|
34217
|
+
|
|
34218
|
+
function createSuper_createSuper(Derived) {
|
|
34219
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34220
|
+
return function _createSuperInternal() {
|
|
34221
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34222
|
+
result;
|
|
34223
|
+
|
|
34224
|
+
if (hasNativeReflectConstruct) {
|
|
34225
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34226
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34227
|
+
} else {
|
|
34228
|
+
result = Super.apply(this, arguments);
|
|
34229
|
+
}
|
|
34230
|
+
|
|
34231
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34232
|
+
};
|
|
34047
34233
|
}
|
|
34048
34234
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34049
34235
|
var raf = function raf(callback) {
|
|
@@ -34270,6 +34456,27 @@ var cacheStyle = {};
|
|
|
34270
34456
|
}
|
|
34271
34457
|
}
|
|
34272
34458
|
});
|
|
34459
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34460
|
+
|
|
34461
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34462
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34463
|
+
}
|
|
34464
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34465
|
+
function iterableToArray_iterableToArray(iter) {
|
|
34466
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34467
|
+
}
|
|
34468
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34469
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
34470
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34471
|
+
}
|
|
34472
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34473
|
+
|
|
34474
|
+
|
|
34475
|
+
|
|
34476
|
+
|
|
34477
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
34478
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34479
|
+
}
|
|
34273
34480
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34274
34481
|
|
|
34275
34482
|
|
|
@@ -34286,7 +34493,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34286
34493
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34287
34494
|
var _this = this;
|
|
34288
34495
|
|
|
34289
|
-
|
|
34496
|
+
classCallCheck_classCallCheck(this, ScrollLocker);
|
|
34290
34497
|
|
|
34291
34498
|
this.lockTarget = void 0;
|
|
34292
34499
|
this.options = void 0;
|
|
@@ -34334,7 +34541,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34334
34541
|
var options = _ref3.options;
|
|
34335
34542
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34336
34543
|
})) {
|
|
34337
|
-
locks = [].concat(
|
|
34544
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34338
34545
|
target: _this.lockTarget,
|
|
34339
34546
|
options: _this.options
|
|
34340
34547
|
}]);
|
|
@@ -34372,7 +34579,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34372
34579
|
container.className = addClassName.trim();
|
|
34373
34580
|
}
|
|
34374
34581
|
|
|
34375
|
-
locks = [].concat(
|
|
34582
|
+
locks = [].concat(toConsumableArray_toConsumableArray(locks), [{
|
|
34376
34583
|
target: _this.lockTarget,
|
|
34377
34584
|
options: _this.options
|
|
34378
34585
|
}]);
|
|
@@ -34456,7 +34663,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34456
34663
|
return getContainer();
|
|
34457
34664
|
}
|
|
34458
34665
|
|
|
34459
|
-
if (
|
|
34666
|
+
if (esm_typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34460
34667
|
return getContainer;
|
|
34461
34668
|
}
|
|
34462
34669
|
}
|
|
@@ -34465,14 +34672,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34465
34672
|
};
|
|
34466
34673
|
|
|
34467
34674
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34468
|
-
|
|
34675
|
+
inherits_inherits(PortalWrapper, _React$Component);
|
|
34469
34676
|
|
|
34470
|
-
var _super =
|
|
34677
|
+
var _super = createSuper_createSuper(PortalWrapper);
|
|
34471
34678
|
|
|
34472
34679
|
function PortalWrapper(props) {
|
|
34473
34680
|
var _this;
|
|
34474
34681
|
|
|
34475
|
-
|
|
34682
|
+
classCallCheck_classCallCheck(this, PortalWrapper);
|
|
34476
34683
|
|
|
34477
34684
|
_this = _super.call(this, props);
|
|
34478
34685
|
_this.container = void 0;
|
|
@@ -34592,7 +34799,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34592
34799
|
return _this;
|
|
34593
34800
|
}
|
|
34594
34801
|
|
|
34595
|
-
|
|
34802
|
+
createClass_createClass(PortalWrapper, [{
|
|
34596
34803
|
key: "componentDidMount",
|
|
34597
34804
|
value: function componentDidMount() {
|
|
34598
34805
|
var _this2 = this;
|
|
@@ -34660,6 +34867,46 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34660
34867
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34661
34868
|
|
|
34662
34869
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34870
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34871
|
+
|
|
34872
|
+
|
|
34873
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34874
|
+
var keys = Object.keys(object);
|
|
34875
|
+
|
|
34876
|
+
if (Object.getOwnPropertySymbols) {
|
|
34877
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
34878
|
+
|
|
34879
|
+
if (enumerableOnly) {
|
|
34880
|
+
symbols = symbols.filter(function (sym) {
|
|
34881
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34882
|
+
});
|
|
34883
|
+
}
|
|
34884
|
+
|
|
34885
|
+
keys.push.apply(keys, symbols);
|
|
34886
|
+
}
|
|
34887
|
+
|
|
34888
|
+
return keys;
|
|
34889
|
+
}
|
|
34890
|
+
|
|
34891
|
+
function objectSpread2_objectSpread2(target) {
|
|
34892
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34893
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
34894
|
+
|
|
34895
|
+
if (i % 2) {
|
|
34896
|
+
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34897
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
34898
|
+
});
|
|
34899
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
34900
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34901
|
+
} else {
|
|
34902
|
+
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34903
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34904
|
+
});
|
|
34905
|
+
}
|
|
34906
|
+
}
|
|
34907
|
+
|
|
34908
|
+
return target;
|
|
34909
|
+
}
|
|
34663
34910
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34664
34911
|
/**
|
|
34665
34912
|
* @ignore
|
|
@@ -35326,7 +35573,7 @@ function pickAttrs(props) {
|
|
|
35326
35573
|
aria: true
|
|
35327
35574
|
};
|
|
35328
35575
|
} else {
|
|
35329
|
-
mergedConfig =
|
|
35576
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35330
35577
|
}
|
|
35331
35578
|
|
|
35332
35579
|
var attrs = {};
|
|
@@ -35359,7 +35606,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35359
35606
|
function fillRef(ref, node) {
|
|
35360
35607
|
if (typeof ref === 'function') {
|
|
35361
35608
|
ref(node);
|
|
35362
|
-
} else if (
|
|
35609
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35363
35610
|
ref.current = node;
|
|
35364
35611
|
}
|
|
35365
35612
|
}
|
|
@@ -35469,7 +35716,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35469
35716
|
function getTransitionName(transitionName, transitionType) {
|
|
35470
35717
|
if (!transitionName) return null;
|
|
35471
35718
|
|
|
35472
|
-
if (
|
|
35719
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
35473
35720
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35474
35721
|
return match[1].toUpperCase();
|
|
35475
35722
|
});
|
|
@@ -35762,13 +36009,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35762
36009
|
|
|
35763
36010
|
switch (status) {
|
|
35764
36011
|
case 'appear':
|
|
35765
|
-
return _ref2 = {},
|
|
36012
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
35766
36013
|
|
|
35767
36014
|
case 'enter':
|
|
35768
|
-
return _ref3 = {},
|
|
36015
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
35769
36016
|
|
|
35770
36017
|
case 'leave':
|
|
35771
|
-
return _ref4 = {},
|
|
36018
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
35772
36019
|
|
|
35773
36020
|
default:
|
|
35774
36021
|
return {};
|
|
@@ -35876,7 +36123,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35876
36123
|
var mergedStyle = style;
|
|
35877
36124
|
|
|
35878
36125
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
35879
|
-
mergedStyle =
|
|
36126
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
35880
36127
|
transition: 'none'
|
|
35881
36128
|
}, mergedStyle);
|
|
35882
36129
|
}
|
|
@@ -35891,17 +36138,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35891
36138
|
|
|
35892
36139
|
|
|
35893
36140
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
35894
|
-
|
|
36141
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
35895
36142
|
|
|
35896
|
-
var _super =
|
|
36143
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
35897
36144
|
|
|
35898
36145
|
function DomWrapper() {
|
|
35899
|
-
|
|
36146
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
35900
36147
|
|
|
35901
36148
|
return _super.apply(this, arguments);
|
|
35902
36149
|
}
|
|
35903
36150
|
|
|
35904
|
-
|
|
36151
|
+
createClass_createClass(DomWrapper, [{
|
|
35905
36152
|
key: "render",
|
|
35906
36153
|
value: function render() {
|
|
35907
36154
|
return this.props.children;
|
|
@@ -35937,7 +36184,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35937
36184
|
function genCSSMotion(config) {
|
|
35938
36185
|
var transitionSupport = config;
|
|
35939
36186
|
|
|
35940
|
-
if (
|
|
36187
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
35941
36188
|
transitionSupport = config.transitionSupport;
|
|
35942
36189
|
}
|
|
35943
36190
|
|
|
@@ -35995,7 +36242,7 @@ function genCSSMotion(config) {
|
|
|
35995
36242
|
|
|
35996
36243
|
var motionChildren;
|
|
35997
36244
|
|
|
35998
|
-
var mergedProps =
|
|
36245
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
35999
36246
|
visible: visible
|
|
36000
36247
|
});
|
|
36001
36248
|
|
|
@@ -36005,13 +36252,13 @@ function genCSSMotion(config) {
|
|
|
36005
36252
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36006
36253
|
// Stable children
|
|
36007
36254
|
if (mergedVisible) {
|
|
36008
|
-
motionChildren = children(
|
|
36255
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
36009
36256
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36010
|
-
motionChildren = children(
|
|
36257
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36011
36258
|
className: leavedClassName
|
|
36012
36259
|
}), setNodeRef);
|
|
36013
36260
|
} else if (forceRender) {
|
|
36014
|
-
motionChildren = children(
|
|
36261
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36015
36262
|
style: {
|
|
36016
36263
|
display: 'none'
|
|
36017
36264
|
}
|
|
@@ -36033,8 +36280,8 @@ function genCSSMotion(config) {
|
|
|
36033
36280
|
statusSuffix = 'start';
|
|
36034
36281
|
}
|
|
36035
36282
|
|
|
36036
|
-
motionChildren = children(
|
|
36037
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36283
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36284
|
+
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)),
|
|
36038
36285
|
style: statusStyle
|
|
36039
36286
|
}), setNodeRef);
|
|
36040
36287
|
}
|
|
@@ -36047,6 +36294,41 @@ function genCSSMotion(config) {
|
|
|
36047
36294
|
return CSSMotion;
|
|
36048
36295
|
}
|
|
36049
36296
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36297
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36298
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36299
|
+
if (source == null) return {};
|
|
36300
|
+
var target = {};
|
|
36301
|
+
var sourceKeys = Object.keys(source);
|
|
36302
|
+
var key, i;
|
|
36303
|
+
|
|
36304
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36305
|
+
key = sourceKeys[i];
|
|
36306
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36307
|
+
target[key] = source[key];
|
|
36308
|
+
}
|
|
36309
|
+
|
|
36310
|
+
return target;
|
|
36311
|
+
}
|
|
36312
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36313
|
+
|
|
36314
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36315
|
+
if (source == null) return {};
|
|
36316
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36317
|
+
var key, i;
|
|
36318
|
+
|
|
36319
|
+
if (Object.getOwnPropertySymbols) {
|
|
36320
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36321
|
+
|
|
36322
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36323
|
+
key = sourceSymbolKeys[i];
|
|
36324
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36325
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36326
|
+
target[key] = source[key];
|
|
36327
|
+
}
|
|
36328
|
+
}
|
|
36329
|
+
|
|
36330
|
+
return target;
|
|
36331
|
+
}
|
|
36050
36332
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36051
36333
|
|
|
36052
36334
|
|
|
@@ -36057,7 +36339,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36057
36339
|
function wrapKeyToObject(key) {
|
|
36058
36340
|
var keyObj;
|
|
36059
36341
|
|
|
36060
|
-
if (key &&
|
|
36342
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36061
36343
|
keyObj = key;
|
|
36062
36344
|
} else {
|
|
36063
36345
|
keyObj = {
|
|
@@ -36065,7 +36347,7 @@ function wrapKeyToObject(key) {
|
|
|
36065
36347
|
};
|
|
36066
36348
|
}
|
|
36067
36349
|
|
|
36068
|
-
return
|
|
36350
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36069
36351
|
key: String(keyObj.key)
|
|
36070
36352
|
});
|
|
36071
36353
|
}
|
|
@@ -36092,14 +36374,14 @@ function diffKeys() {
|
|
|
36092
36374
|
// New added keys should add before current key
|
|
36093
36375
|
if (currentIndex < i) {
|
|
36094
36376
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36095
|
-
return
|
|
36377
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36096
36378
|
status: STATUS_ADD
|
|
36097
36379
|
});
|
|
36098
36380
|
}));
|
|
36099
36381
|
currentIndex = i;
|
|
36100
36382
|
}
|
|
36101
36383
|
|
|
36102
|
-
list.push(
|
|
36384
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
36103
36385
|
status: STATUS_KEEP
|
|
36104
36386
|
}));
|
|
36105
36387
|
currentIndex += 1;
|
|
@@ -36110,7 +36392,7 @@ function diffKeys() {
|
|
|
36110
36392
|
|
|
36111
36393
|
|
|
36112
36394
|
if (!hit) {
|
|
36113
|
-
list.push(
|
|
36395
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36114
36396
|
status: STATUS_REMOVE
|
|
36115
36397
|
}));
|
|
36116
36398
|
}
|
|
@@ -36118,7 +36400,7 @@ function diffKeys() {
|
|
|
36118
36400
|
|
|
36119
36401
|
if (currentIndex < currentLen) {
|
|
36120
36402
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36121
|
-
return
|
|
36403
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36122
36404
|
status: STATUS_ADD
|
|
36123
36405
|
});
|
|
36124
36406
|
}));
|
|
@@ -36179,14 +36461,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36179
36461
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36180
36462
|
|
|
36181
36463
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36182
|
-
|
|
36464
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36183
36465
|
|
|
36184
|
-
var _super =
|
|
36466
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36185
36467
|
|
|
36186
36468
|
function CSSMotionList() {
|
|
36187
36469
|
var _this;
|
|
36188
36470
|
|
|
36189
|
-
|
|
36471
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36190
36472
|
|
|
36191
36473
|
_this = _super.apply(this, arguments);
|
|
36192
36474
|
_this.state = {
|
|
@@ -36199,7 +36481,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36199
36481
|
return {
|
|
36200
36482
|
keyEntities: keyEntities.map(function (entity) {
|
|
36201
36483
|
if (entity.key !== removeKey) return entity;
|
|
36202
|
-
return
|
|
36484
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36203
36485
|
status: STATUS_REMOVED
|
|
36204
36486
|
});
|
|
36205
36487
|
})
|
|
@@ -36210,7 +36492,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36210
36492
|
return _this;
|
|
36211
36493
|
}
|
|
36212
36494
|
|
|
36213
|
-
|
|
36495
|
+
createClass_createClass(CSSMotionList, [{
|
|
36214
36496
|
key: "render",
|
|
36215
36497
|
value: function render() {
|
|
36216
36498
|
var _this2 = this;
|
|
@@ -36221,7 +36503,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36221
36503
|
component = _this$props.component,
|
|
36222
36504
|
children = _this$props.children,
|
|
36223
36505
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36224
|
-
restProps =
|
|
36506
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36225
36507
|
|
|
36226
36508
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36227
36509
|
var motionProps = {};
|
|
@@ -36232,10 +36514,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36232
36514
|
delete restProps.keys;
|
|
36233
36515
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36234
36516
|
var status = _ref2.status,
|
|
36235
|
-
eventProps =
|
|
36517
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36236
36518
|
|
|
36237
36519
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36238
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36520
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36239
36521
|
key: eventProps.key,
|
|
36240
36522
|
visible: visible,
|
|
36241
36523
|
eventProps: eventProps,
|
|
@@ -36309,8 +36591,8 @@ function Mask(props) {
|
|
|
36309
36591
|
}, function (_ref) {
|
|
36310
36592
|
var motionClassName = _ref.className,
|
|
36311
36593
|
motionStyle = _ref.style;
|
|
36312
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36313
|
-
style:
|
|
36594
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36595
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style),
|
|
36314
36596
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36315
36597
|
}, maskProps));
|
|
36316
36598
|
});
|
|
@@ -36493,7 +36775,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36493
36775
|
|
|
36494
36776
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36495
36777
|
className: "".concat(prefixCls, "-content")
|
|
36496
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36778
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36497
36779
|
className: "".concat(prefixCls, "-body"),
|
|
36498
36780
|
style: bodyStyle
|
|
36499
36781
|
}, bodyProps), children), footerNode);
|
|
@@ -36513,7 +36795,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36513
36795
|
key: "dialog-element",
|
|
36514
36796
|
role: "document",
|
|
36515
36797
|
ref: motionRef,
|
|
36516
|
-
style:
|
|
36798
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36517
36799
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36518
36800
|
onMouseDown: onMouseDown,
|
|
36519
36801
|
onMouseUp: onMouseUp
|
|
@@ -36695,7 +36977,7 @@ function Dialog(props) {
|
|
|
36695
36977
|
return function () {};
|
|
36696
36978
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36697
36979
|
|
|
36698
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36980
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36699
36981
|
className: "".concat(prefixCls, "-root")
|
|
36700
36982
|
}, pickAttrs(props, {
|
|
36701
36983
|
data: true
|
|
@@ -36703,11 +36985,11 @@ function Dialog(props) {
|
|
|
36703
36985
|
prefixCls: prefixCls,
|
|
36704
36986
|
visible: mask && visible,
|
|
36705
36987
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
36706
|
-
style:
|
|
36988
|
+
style: objectSpread2_objectSpread2({
|
|
36707
36989
|
zIndex: zIndex
|
|
36708
36990
|
}, maskStyle),
|
|
36709
36991
|
maskProps: maskProps
|
|
36710
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36992
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
36711
36993
|
tabIndex: -1,
|
|
36712
36994
|
onKeyDown: onWrapperKeyDown,
|
|
36713
36995
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -36715,12 +36997,12 @@ function Dialog(props) {
|
|
|
36715
36997
|
onClick: onWrapperClick,
|
|
36716
36998
|
role: "dialog",
|
|
36717
36999
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
36718
|
-
style:
|
|
37000
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
36719
37001
|
zIndex: zIndex
|
|
36720
37002
|
}, wrapStyle), {}, {
|
|
36721
37003
|
display: !animatedVisible ? 'none' : null
|
|
36722
37004
|
})
|
|
36723
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
37005
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, esm_extends_extends({}, props, {
|
|
36724
37006
|
onMouseDown: onContentMouseDown,
|
|
36725
37007
|
onMouseUp: onContentMouseUp,
|
|
36726
37008
|
ref: contentRef,
|
|
@@ -36768,7 +37050,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36768
37050
|
}, [visible]); // 渲染在当前 dom 里;
|
|
36769
37051
|
|
|
36770
37052
|
if (getContainer === false) {
|
|
36771
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37053
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
36772
37054
|
getOpenCount: function getOpenCount() {
|
|
36773
37055
|
return 2;
|
|
36774
37056
|
} // 不对 body 做任何操作。。
|
|
@@ -36786,7 +37068,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36786
37068
|
forceRender: forceRender,
|
|
36787
37069
|
getContainer: getContainer
|
|
36788
37070
|
}, function (childProps) {
|
|
36789
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37071
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
36790
37072
|
destroyOnClose: destroyOnClose,
|
|
36791
37073
|
afterClose: function afterClose() {
|
|
36792
37074
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -36821,8 +37103,8 @@ function getConfirmLocale() {
|
|
|
36821
37103
|
|
|
36822
37104
|
|
|
36823
37105
|
|
|
36824
|
-
var UnreachableException = /*#__PURE__*/
|
|
36825
|
-
|
|
37106
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37107
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
36826
37108
|
|
|
36827
37109
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
36828
37110
|
});
|
|
@@ -36885,8 +37167,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
36885
37167
|
console.warn(new UnreachableException(size).error);
|
|
36886
37168
|
}
|
|
36887
37169
|
|
|
36888
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
36889
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37170
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37171
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
36890
37172
|
className: classes
|
|
36891
37173
|
}));
|
|
36892
37174
|
});
|
|
@@ -36957,14 +37239,14 @@ function isNotGrey(color) {
|
|
|
36957
37239
|
}
|
|
36958
37240
|
|
|
36959
37241
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
36960
|
-
|
|
37242
|
+
inherits_inherits(Wave, _React$Component);
|
|
36961
37243
|
|
|
36962
|
-
var _super =
|
|
37244
|
+
var _super = createSuper_createSuper(Wave);
|
|
36963
37245
|
|
|
36964
37246
|
function Wave() {
|
|
36965
37247
|
var _this;
|
|
36966
37248
|
|
|
36967
|
-
|
|
37249
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
36968
37250
|
|
|
36969
37251
|
_this = _super.apply(this, arguments);
|
|
36970
37252
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -36984,7 +37266,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
36984
37266
|
|
|
36985
37267
|
_this.extraNode = document.createElement('div');
|
|
36986
37268
|
|
|
36987
|
-
var _assertThisInitialize =
|
|
37269
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
36988
37270
|
extraNode = _assertThisInitialize.extraNode;
|
|
36989
37271
|
|
|
36990
37272
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37091,7 +37373,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37091
37373
|
return _this;
|
|
37092
37374
|
}
|
|
37093
37375
|
|
|
37094
|
-
|
|
37376
|
+
createClass_createClass(Wave, [{
|
|
37095
37377
|
key: "componentDidMount",
|
|
37096
37378
|
value: function componentDidMount() {
|
|
37097
37379
|
var node = this.containerRef.current;
|
|
@@ -37318,7 +37600,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37318
37600
|
var isPrevChildPure = false;
|
|
37319
37601
|
var childList = [];
|
|
37320
37602
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37321
|
-
var type =
|
|
37603
|
+
var type = esm_typeof_typeof(child);
|
|
37322
37604
|
|
|
37323
37605
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37324
37606
|
|
|
@@ -37418,7 +37700,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37418
37700
|
}; // =============== Update Loading ===============
|
|
37419
37701
|
|
|
37420
37702
|
|
|
37421
|
-
var loadingOrDelay =
|
|
37703
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37422
37704
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37423
37705
|
clearTimeout(delayTimeoutRef.current);
|
|
37424
37706
|
|
|
@@ -37458,7 +37740,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37458
37740
|
var sizeFullname = customizeSize || size;
|
|
37459
37741
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37460
37742
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37461
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37743
|
+
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);
|
|
37462
37744
|
var iconNode;
|
|
37463
37745
|
|
|
37464
37746
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37477,14 +37759,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37477
37759
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37478
37760
|
|
|
37479
37761
|
if (linkButtonRestProps.href !== undefined) {
|
|
37480
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37762
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
37481
37763
|
className: classes,
|
|
37482
37764
|
onClick: handleClick,
|
|
37483
37765
|
ref: buttonRef
|
|
37484
37766
|
}), iconNode, kids);
|
|
37485
37767
|
}
|
|
37486
37768
|
|
|
37487
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37769
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
37488
37770
|
type: htmlType,
|
|
37489
37771
|
className: classes,
|
|
37490
37772
|
onClick: handleClick,
|
|
@@ -37662,9 +37944,9 @@ var Modal = function Modal(props) {
|
|
|
37662
37944
|
okType = props.okType,
|
|
37663
37945
|
cancelText = props.cancelText,
|
|
37664
37946
|
confirmLoading = props.confirmLoading;
|
|
37665
|
-
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,
|
|
37947
|
+
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({
|
|
37666
37948
|
onClick: handleCancel
|
|
37667
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37949
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
37668
37950
|
loading: confirmLoading,
|
|
37669
37951
|
onClick: handleOk
|
|
37670
37952
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37699,8 +37981,8 @@ var Modal = function Modal(props) {
|
|
|
37699
37981
|
type: "close",
|
|
37700
37982
|
className: "".concat(prefixCls, "-close-icon")
|
|
37701
37983
|
}));
|
|
37702
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
37703
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37984
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37985
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
37704
37986
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
37705
37987
|
prefixCls: prefixCls,
|
|
37706
37988
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -37826,7 +38108,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
37826
38108
|
children = props.children,
|
|
37827
38109
|
prefixCls = props.prefixCls,
|
|
37828
38110
|
buttonProps = props.buttonProps;
|
|
37829
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38111
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
37830
38112
|
onClick: onClick,
|
|
37831
38113
|
loading: loading,
|
|
37832
38114
|
prefixCls: prefixCls
|
|
@@ -39343,7 +39625,7 @@ function get(entity, path) {
|
|
|
39343
39625
|
|
|
39344
39626
|
|
|
39345
39627
|
function _toArray(arr) {
|
|
39346
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39628
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39347
39629
|
}
|
|
39348
39630
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39349
39631
|
|
|
@@ -39365,9 +39647,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39365
39647
|
if (!entity && typeof path === 'number') {
|
|
39366
39648
|
clone = [];
|
|
39367
39649
|
} else if (Array.isArray(entity)) {
|
|
39368
|
-
clone =
|
|
39650
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
39369
39651
|
} else {
|
|
39370
|
-
clone =
|
|
39652
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
39371
39653
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39372
39654
|
|
|
39373
39655
|
|
|
@@ -39431,7 +39713,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39431
39713
|
}
|
|
39432
39714
|
|
|
39433
39715
|
function isObject(obj) {
|
|
39434
|
-
return
|
|
39716
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39435
39717
|
}
|
|
39436
39718
|
/**
|
|
39437
39719
|
* Copy values into store and return a new values object
|
|
@@ -39440,7 +39722,7 @@ function isObject(obj) {
|
|
|
39440
39722
|
|
|
39441
39723
|
|
|
39442
39724
|
function internalSetValues(store, values) {
|
|
39443
|
-
var newStore = Array.isArray(store) ?
|
|
39725
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
39444
39726
|
|
|
39445
39727
|
if (!values) {
|
|
39446
39728
|
return newStore;
|
|
@@ -39483,14 +39765,14 @@ function isSimilar(source, target) {
|
|
|
39483
39765
|
return false;
|
|
39484
39766
|
}
|
|
39485
39767
|
|
|
39486
|
-
if (!source || !target ||
|
|
39768
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
39487
39769
|
return false;
|
|
39488
39770
|
}
|
|
39489
39771
|
|
|
39490
39772
|
var sourceKeys = Object.keys(source);
|
|
39491
39773
|
var targetKeys = Object.keys(target);
|
|
39492
|
-
var keys = new Set([].concat(
|
|
39493
|
-
return
|
|
39774
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
39775
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
39494
39776
|
var sourceValue = source[key];
|
|
39495
39777
|
var targetValue = target[key];
|
|
39496
39778
|
|
|
@@ -39533,12 +39815,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39533
39815
|
|
|
39534
39816
|
if (diff > 0) {
|
|
39535
39817
|
// move left
|
|
39536
|
-
return [].concat(
|
|
39818
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39537
39819
|
}
|
|
39538
39820
|
|
|
39539
39821
|
if (diff < 0) {
|
|
39540
39822
|
// move right
|
|
39541
|
-
return [].concat(
|
|
39823
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39542
39824
|
}
|
|
39543
39825
|
|
|
39544
39826
|
return array;
|
|
@@ -39578,13 +39860,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39578
39860
|
|
|
39579
39861
|
|
|
39580
39862
|
function _validateRule() {
|
|
39581
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39863
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39582
39864
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39583
|
-
return
|
|
39865
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
39584
39866
|
while (1) {
|
|
39585
39867
|
switch (_context2.prev = _context2.next) {
|
|
39586
39868
|
case 0:
|
|
39587
|
-
cloneRule =
|
|
39869
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
39588
39870
|
// https://github.com/react-component/field-form/issues/316
|
|
39589
39871
|
// https://github.com/react-component/field-form/issues/313
|
|
39590
39872
|
|
|
@@ -39597,13 +39879,13 @@ function _validateRule() {
|
|
|
39597
39879
|
delete cloneRule.defaultField;
|
|
39598
39880
|
}
|
|
39599
39881
|
|
|
39600
|
-
validator = new AsyncValidator(
|
|
39882
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
39601
39883
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39602
39884
|
validator.messages(messages);
|
|
39603
39885
|
result = [];
|
|
39604
39886
|
_context2.prev = 8;
|
|
39605
39887
|
_context2.next = 11;
|
|
39606
|
-
return Promise.resolve(validator.validate(
|
|
39888
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
39607
39889
|
|
|
39608
39890
|
case 11:
|
|
39609
39891
|
_context2.next = 16;
|
|
@@ -39643,12 +39925,12 @@ function _validateRule() {
|
|
|
39643
39925
|
case 19:
|
|
39644
39926
|
subResults = _context2.sent;
|
|
39645
39927
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39646
|
-
return [].concat(
|
|
39928
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
39647
39929
|
}, []));
|
|
39648
39930
|
|
|
39649
39931
|
case 21:
|
|
39650
39932
|
// Replace message with variables
|
|
39651
|
-
kv =
|
|
39933
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
39652
39934
|
name: name,
|
|
39653
39935
|
enum: (rule.enum || []).join(', ')
|
|
39654
39936
|
}, messageVariables);
|
|
@@ -39677,7 +39959,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39677
39959
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39678
39960
|
var originValidatorFunc = currentRule.validator;
|
|
39679
39961
|
|
|
39680
|
-
var cloneRule =
|
|
39962
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
39681
39963
|
ruleIndex: ruleIndex
|
|
39682
39964
|
}); // Replace validator if needed
|
|
39683
39965
|
|
|
@@ -39745,9 +40027,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39745
40027
|
if (validateFirst === true) {
|
|
39746
40028
|
// >>>>> Validate by serialization
|
|
39747
40029
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
39748
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40030
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
39749
40031
|
var i, rule, errors;
|
|
39750
|
-
return
|
|
40032
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
39751
40033
|
while (1) {
|
|
39752
40034
|
switch (_context.prev = _context.next) {
|
|
39753
40035
|
case 0:
|
|
@@ -39826,15 +40108,15 @@ function finishOnAllFailed(_x8) {
|
|
|
39826
40108
|
}
|
|
39827
40109
|
|
|
39828
40110
|
function _finishOnAllFailed() {
|
|
39829
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39830
|
-
return
|
|
40111
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40112
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
39831
40113
|
while (1) {
|
|
39832
40114
|
switch (_context3.prev = _context3.next) {
|
|
39833
40115
|
case 0:
|
|
39834
40116
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
39835
40117
|
var _ref5;
|
|
39836
40118
|
|
|
39837
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40119
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
39838
40120
|
|
|
39839
40121
|
return errors;
|
|
39840
40122
|
}));
|
|
@@ -39854,9 +40136,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
39854
40136
|
}
|
|
39855
40137
|
|
|
39856
40138
|
function _finishOnFirstFailed() {
|
|
39857
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40139
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
39858
40140
|
var count;
|
|
39859
|
-
return
|
|
40141
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
39860
40142
|
while (1) {
|
|
39861
40143
|
switch (_context4.prev = _context4.next) {
|
|
39862
40144
|
case 0:
|
|
@@ -39919,9 +40201,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
39919
40201
|
|
|
39920
40202
|
|
|
39921
40203
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
39922
|
-
|
|
40204
|
+
inherits_inherits(Field, _React$Component);
|
|
39923
40205
|
|
|
39924
|
-
var _super =
|
|
40206
|
+
var _super = createSuper_createSuper(Field);
|
|
39925
40207
|
|
|
39926
40208
|
/**
|
|
39927
40209
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -39937,7 +40219,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39937
40219
|
function Field(props) {
|
|
39938
40220
|
var _this;
|
|
39939
40221
|
|
|
39940
|
-
|
|
40222
|
+
classCallCheck_classCallCheck(this, Field);
|
|
39941
40223
|
|
|
39942
40224
|
_this = _super.call(this, props); // Register on init
|
|
39943
40225
|
|
|
@@ -39972,7 +40254,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
39972
40254
|
fieldContext = _this$props2.fieldContext;
|
|
39973
40255
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
39974
40256
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
39975
|
-
return name !== undefined ? [].concat(
|
|
40257
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
39976
40258
|
};
|
|
39977
40259
|
|
|
39978
40260
|
_this.getRules = function () {
|
|
@@ -40005,7 +40287,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40005
40287
|
|
|
40006
40288
|
_this.triggerMetaEvent = function (destroy) {
|
|
40007
40289
|
var onMetaChange = _this.props.onMetaChange;
|
|
40008
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40290
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
40009
40291
|
destroy: destroy
|
|
40010
40292
|
}));
|
|
40011
40293
|
};
|
|
@@ -40194,9 +40476,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40194
40476
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40195
40477
|
|
|
40196
40478
|
if (warningOnly) {
|
|
40197
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40479
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
40198
40480
|
} else {
|
|
40199
|
-
nextErrors.push.apply(nextErrors,
|
|
40481
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
40200
40482
|
}
|
|
40201
40483
|
});
|
|
40202
40484
|
_this.errors = nextErrors;
|
|
@@ -40287,7 +40569,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40287
40569
|
if (typeof children === 'function') {
|
|
40288
40570
|
var meta = _this.getMeta();
|
|
40289
40571
|
|
|
40290
|
-
return
|
|
40572
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40291
40573
|
isFunction: true
|
|
40292
40574
|
});
|
|
40293
40575
|
} // Filed element only
|
|
@@ -40339,13 +40621,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40339
40621
|
var value = _this.getValue();
|
|
40340
40622
|
|
|
40341
40623
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40342
|
-
return
|
|
40624
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
40343
40625
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40344
40626
|
|
|
40345
40627
|
|
|
40346
40628
|
var originTriggerFunc = childProps[trigger];
|
|
40347
40629
|
|
|
40348
|
-
var control =
|
|
40630
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40349
40631
|
|
|
40350
40632
|
|
|
40351
40633
|
control[trigger] = function () {
|
|
@@ -40416,13 +40698,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40416
40698
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40417
40699
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40418
40700
|
|
|
40419
|
-
initEntityValue(
|
|
40701
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
40420
40702
|
}
|
|
40421
40703
|
|
|
40422
40704
|
return _this;
|
|
40423
40705
|
}
|
|
40424
40706
|
|
|
40425
|
-
|
|
40707
|
+
createClass_createClass(Field, [{
|
|
40426
40708
|
key: "componentDidMount",
|
|
40427
40709
|
value: function componentDidMount() {
|
|
40428
40710
|
var _this$props7 = this.props,
|
|
@@ -40496,7 +40778,7 @@ Field.defaultProps = {
|
|
|
40496
40778
|
|
|
40497
40779
|
function WrapperField(_ref5) {
|
|
40498
40780
|
var name = _ref5.name,
|
|
40499
|
-
restProps =
|
|
40781
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
40500
40782
|
|
|
40501
40783
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40502
40784
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40510,7 +40792,7 @@ function WrapperField(_ref5) {
|
|
|
40510
40792
|
|
|
40511
40793
|
if (false) {}
|
|
40512
40794
|
|
|
40513
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40795
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
40514
40796
|
key: key,
|
|
40515
40797
|
name: namePath
|
|
40516
40798
|
}, restProps, {
|
|
@@ -40547,7 +40829,7 @@ var List = function List(_ref) {
|
|
|
40547
40829
|
}
|
|
40548
40830
|
|
|
40549
40831
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40550
|
-
var prefixName = [].concat(
|
|
40832
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
40551
40833
|
|
|
40552
40834
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40553
40835
|
var source = _ref2.source;
|
|
@@ -40560,7 +40842,7 @@ var List = function List(_ref) {
|
|
|
40560
40842
|
};
|
|
40561
40843
|
|
|
40562
40844
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40563
|
-
value:
|
|
40845
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
40564
40846
|
prefixName: prefixName
|
|
40565
40847
|
})
|
|
40566
40848
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40591,13 +40873,13 @@ var List = function List(_ref) {
|
|
|
40591
40873
|
var newValue = getNewValue();
|
|
40592
40874
|
|
|
40593
40875
|
if (index >= 0 && index <= newValue.length) {
|
|
40594
|
-
keyManager.keys = [].concat(
|
|
40595
|
-
onChange([].concat(
|
|
40876
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
40877
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
40596
40878
|
} else {
|
|
40597
40879
|
if (false) {}
|
|
40598
40880
|
|
|
40599
|
-
keyManager.keys = [].concat(
|
|
40600
|
-
onChange([].concat(
|
|
40881
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40882
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
40601
40883
|
}
|
|
40602
40884
|
|
|
40603
40885
|
keyManager.id += 1;
|
|
@@ -40706,7 +40988,7 @@ var SPLIT = '__@field_split__';
|
|
|
40706
40988
|
|
|
40707
40989
|
function normalize(namePath) {
|
|
40708
40990
|
return namePath.map(function (cell) {
|
|
40709
|
-
return "".concat(
|
|
40991
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
40710
40992
|
}) // Magic split
|
|
40711
40993
|
.join(SPLIT);
|
|
40712
40994
|
}
|
|
@@ -40717,12 +40999,12 @@ function normalize(namePath) {
|
|
|
40717
40999
|
|
|
40718
41000
|
var NameMap = /*#__PURE__*/function () {
|
|
40719
41001
|
function NameMap() {
|
|
40720
|
-
|
|
41002
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
40721
41003
|
|
|
40722
41004
|
this.kvs = new Map();
|
|
40723
41005
|
}
|
|
40724
41006
|
|
|
40725
|
-
|
|
41007
|
+
createClass_createClass(NameMap, [{
|
|
40726
41008
|
key: "set",
|
|
40727
41009
|
value: function set(key, value) {
|
|
40728
41010
|
this.kvs.set(normalize(key), value);
|
|
@@ -40753,7 +41035,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
40753
41035
|
}, {
|
|
40754
41036
|
key: "map",
|
|
40755
41037
|
value: function map(callback) {
|
|
40756
|
-
return
|
|
41038
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
40757
41039
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
40758
41040
|
key = _ref2[0],
|
|
40759
41041
|
value = _ref2[1];
|
|
@@ -40807,7 +41089,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
40807
41089
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
40808
41090
|
var _this = this;
|
|
40809
41091
|
|
|
40810
|
-
|
|
41092
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
40811
41093
|
|
|
40812
41094
|
this.formHooked = false;
|
|
40813
41095
|
this.forceRootUpdate = void 0;
|
|
@@ -41067,7 +41349,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41067
41349
|
return fieldNamePath[i] === nameUnit;
|
|
41068
41350
|
})) {
|
|
41069
41351
|
map.update(shortNamePath, function (list) {
|
|
41070
|
-
return [].concat(
|
|
41352
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
41071
41353
|
});
|
|
41072
41354
|
}
|
|
41073
41355
|
});
|
|
@@ -41158,7 +41440,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41158
41440
|
|
|
41159
41441
|
|
|
41160
41442
|
if (!info.skipExist || originValue === undefined) {
|
|
41161
|
-
_this.store = setValue(_this.store, namePath,
|
|
41443
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
41162
41444
|
}
|
|
41163
41445
|
}
|
|
41164
41446
|
}
|
|
@@ -41178,7 +41460,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41178
41460
|
if (records) {
|
|
41179
41461
|
var _requiredFieldEntitie;
|
|
41180
41462
|
|
|
41181
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41463
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
41182
41464
|
return r.entity;
|
|
41183
41465
|
})));
|
|
41184
41466
|
}
|
|
@@ -41231,7 +41513,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41231
41513
|
fields.forEach(function (fieldData) {
|
|
41232
41514
|
var name = fieldData.name,
|
|
41233
41515
|
errors = fieldData.errors,
|
|
41234
|
-
data =
|
|
41516
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
41235
41517
|
|
|
41236
41518
|
var namePath = getNamePath(name); // Value
|
|
41237
41519
|
|
|
@@ -41253,7 +41535,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41253
41535
|
var namePath = field.getNamePath();
|
|
41254
41536
|
var meta = field.getMeta();
|
|
41255
41537
|
|
|
41256
|
-
var fieldData =
|
|
41538
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
41257
41539
|
name: namePath,
|
|
41258
41540
|
value: _this.getFieldValue(namePath)
|
|
41259
41541
|
});
|
|
@@ -41352,7 +41634,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41352
41634
|
|
|
41353
41635
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41354
41636
|
if (_this.subscribable) {
|
|
41355
|
-
var mergedInfo =
|
|
41637
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
41356
41638
|
store: _this.getFieldsValue(true)
|
|
41357
41639
|
});
|
|
41358
41640
|
|
|
@@ -41385,7 +41667,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41385
41667
|
|
|
41386
41668
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41387
41669
|
type: 'dependenciesUpdate',
|
|
41388
|
-
relatedFields: [namePath].concat(
|
|
41670
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
41389
41671
|
}); // trigger callback function
|
|
41390
41672
|
|
|
41391
41673
|
|
|
@@ -41396,7 +41678,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41396
41678
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41397
41679
|
}
|
|
41398
41680
|
|
|
41399
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41681
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
41400
41682
|
};
|
|
41401
41683
|
|
|
41402
41684
|
this.setFieldsValue = function (store) {
|
|
@@ -41524,8 +41806,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41524
41806
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41525
41807
|
|
|
41526
41808
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41527
|
-
var promise = field.validateRules(
|
|
41528
|
-
validateMessages:
|
|
41809
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
41810
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41529
41811
|
}, options)); // Wrap promise with field
|
|
41530
41812
|
|
|
41531
41813
|
promiseList.push(promise.then(function () {
|
|
@@ -41542,9 +41824,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41542
41824
|
errors = _ref5.errors;
|
|
41543
41825
|
|
|
41544
41826
|
if (warningOnly) {
|
|
41545
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41827
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
41546
41828
|
} else {
|
|
41547
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41829
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
41548
41830
|
}
|
|
41549
41831
|
});
|
|
41550
41832
|
|
|
@@ -41675,8 +41957,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41675
41957
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41676
41958
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41677
41959
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41678
|
-
value:
|
|
41679
|
-
validateMessages:
|
|
41960
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
41961
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41680
41962
|
// =========================================================
|
|
41681
41963
|
// = Global Form Control =
|
|
41682
41964
|
// =========================================================
|
|
@@ -41702,13 +41984,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41702
41984
|
},
|
|
41703
41985
|
registerForm: function registerForm(name, form) {
|
|
41704
41986
|
if (name) {
|
|
41705
|
-
formsRef.current =
|
|
41987
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
41706
41988
|
}
|
|
41707
41989
|
|
|
41708
41990
|
formContext.registerForm(name, form);
|
|
41709
41991
|
},
|
|
41710
41992
|
unregisterForm: function unregisterForm(name) {
|
|
41711
|
-
var newForms =
|
|
41993
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
41712
41994
|
|
|
41713
41995
|
delete newForms[name];
|
|
41714
41996
|
formsRef.current = newForms;
|
|
@@ -41748,7 +42030,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41748
42030
|
_onFieldsChange = _ref.onFieldsChange,
|
|
41749
42031
|
_onFinish = _ref.onFinish,
|
|
41750
42032
|
onFinishFailed = _ref.onFinishFailed,
|
|
41751
|
-
restProps =
|
|
42033
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
41752
42034
|
|
|
41753
42035
|
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:
|
|
41754
42036
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -41776,7 +42058,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41776
42058
|
};
|
|
41777
42059
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
41778
42060
|
|
|
41779
|
-
setValidateMessages(
|
|
42061
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
41780
42062
|
setCallbacks({
|
|
41781
42063
|
onValuesChange: onValuesChange,
|
|
41782
42064
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -41829,7 +42111,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41829
42111
|
prevFieldsRef.current = fields;
|
|
41830
42112
|
}, [fields, formInstance]);
|
|
41831
42113
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
41832
|
-
return
|
|
42114
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
41833
42115
|
validateTrigger: validateTrigger
|
|
41834
42116
|
});
|
|
41835
42117
|
}, [formInstance, validateTrigger]);
|
|
@@ -41841,7 +42123,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41841
42123
|
return wrapperNode;
|
|
41842
42124
|
}
|
|
41843
42125
|
|
|
41844
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42126
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
41845
42127
|
onSubmit: function onSubmit(event) {
|
|
41846
42128
|
event.preventDefault();
|
|
41847
42129
|
event.stopPropagation();
|
|
@@ -42023,14 +42305,14 @@ LocaleProvider.defaultProps = {
|
|
|
42023
42305
|
|
|
42024
42306
|
|
|
42025
42307
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42026
|
-
|
|
42308
|
+
inherits_inherits(Notice, _Component);
|
|
42027
42309
|
|
|
42028
|
-
var _super =
|
|
42310
|
+
var _super = createSuper_createSuper(Notice);
|
|
42029
42311
|
|
|
42030
42312
|
function Notice() {
|
|
42031
42313
|
var _this;
|
|
42032
42314
|
|
|
42033
|
-
|
|
42315
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
42034
42316
|
|
|
42035
42317
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42036
42318
|
args[_key] = arguments[_key];
|
|
@@ -42073,7 +42355,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42073
42355
|
return _this;
|
|
42074
42356
|
}
|
|
42075
42357
|
|
|
42076
|
-
|
|
42358
|
+
createClass_createClass(Notice, [{
|
|
42077
42359
|
key: "componentDidMount",
|
|
42078
42360
|
value: function componentDidMount() {
|
|
42079
42361
|
this.startCloseTimer();
|
|
@@ -42119,8 +42401,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42119
42401
|
|
|
42120
42402
|
return acc;
|
|
42121
42403
|
}, {});
|
|
42122
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42123
|
-
className: classnames_default()(componentClass, className,
|
|
42404
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
42405
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42124
42406
|
style: style,
|
|
42125
42407
|
onMouseEnter: this.clearCloseTimer,
|
|
42126
42408
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42151,6 +42433,52 @@ Notice.defaultProps = {
|
|
|
42151
42433
|
duration: 1.5
|
|
42152
42434
|
};
|
|
42153
42435
|
|
|
42436
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42437
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42438
|
+
if (Array.isArray(arr)) return arr;
|
|
42439
|
+
}
|
|
42440
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42441
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42442
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42443
|
+
|
|
42444
|
+
if (_i == null) return;
|
|
42445
|
+
var _arr = [];
|
|
42446
|
+
var _n = true;
|
|
42447
|
+
var _d = false;
|
|
42448
|
+
|
|
42449
|
+
var _s, _e;
|
|
42450
|
+
|
|
42451
|
+
try {
|
|
42452
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42453
|
+
_arr.push(_s.value);
|
|
42454
|
+
|
|
42455
|
+
if (i && _arr.length === i) break;
|
|
42456
|
+
}
|
|
42457
|
+
} catch (err) {
|
|
42458
|
+
_d = true;
|
|
42459
|
+
_e = err;
|
|
42460
|
+
} finally {
|
|
42461
|
+
try {
|
|
42462
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
42463
|
+
} finally {
|
|
42464
|
+
if (_d) throw _e;
|
|
42465
|
+
}
|
|
42466
|
+
}
|
|
42467
|
+
|
|
42468
|
+
return _arr;
|
|
42469
|
+
}
|
|
42470
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42471
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
42472
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42473
|
+
}
|
|
42474
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42475
|
+
|
|
42476
|
+
|
|
42477
|
+
|
|
42478
|
+
|
|
42479
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42480
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42481
|
+
}
|
|
42154
42482
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42155
42483
|
|
|
42156
42484
|
|
|
@@ -42161,7 +42489,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42161
42489
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42162
42490
|
|
|
42163
42491
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42164
|
-
_React$useState2 =
|
|
42492
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42165
42493
|
elements = _React$useState2[0],
|
|
42166
42494
|
setElements = _React$useState2[1];
|
|
42167
42495
|
|
|
@@ -42222,14 +42550,14 @@ function getUuid() {
|
|
|
42222
42550
|
}
|
|
42223
42551
|
|
|
42224
42552
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42225
|
-
|
|
42553
|
+
inherits_inherits(Notification, _Component);
|
|
42226
42554
|
|
|
42227
|
-
var _super =
|
|
42555
|
+
var _super = createSuper_createSuper(Notification);
|
|
42228
42556
|
|
|
42229
42557
|
function Notification() {
|
|
42230
42558
|
var _this;
|
|
42231
42559
|
|
|
42232
|
-
|
|
42560
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
42233
42561
|
|
|
42234
42562
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42235
42563
|
args[_key] = arguments[_key];
|
|
@@ -42244,7 +42572,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42244
42572
|
_this.add = function (originNotice, holderCallback) {
|
|
42245
42573
|
var key = originNotice.key || getUuid();
|
|
42246
42574
|
|
|
42247
|
-
var notice =
|
|
42575
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
42248
42576
|
key: key
|
|
42249
42577
|
});
|
|
42250
42578
|
|
|
@@ -42311,7 +42639,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42311
42639
|
return _this;
|
|
42312
42640
|
}
|
|
42313
42641
|
|
|
42314
|
-
|
|
42642
|
+
createClass_createClass(Notification, [{
|
|
42315
42643
|
key: "getTransitionName",
|
|
42316
42644
|
value: function getTransitionName() {
|
|
42317
42645
|
var _this$props = this.props,
|
|
@@ -42344,7 +42672,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42344
42672
|
var key = notice.key,
|
|
42345
42673
|
userPassKey = notice.userPassKey;
|
|
42346
42674
|
|
|
42347
|
-
var noticeProps =
|
|
42675
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
42348
42676
|
prefixCls: prefixCls,
|
|
42349
42677
|
closeIcon: closeIcon
|
|
42350
42678
|
}, notice), notice.props), {}, {
|
|
@@ -42395,7 +42723,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42395
42723
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42396
42724
|
key: key,
|
|
42397
42725
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42398
|
-
style:
|
|
42726
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
42399
42727
|
ref: function ref(div) {
|
|
42400
42728
|
if (typeof key === 'undefined') {
|
|
42401
42729
|
return;
|
|
@@ -42412,9 +42740,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42412
42740
|
});
|
|
42413
42741
|
}
|
|
42414
42742
|
|
|
42415
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42743
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
42416
42744
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42417
|
-
style:
|
|
42745
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42418
42746
|
visible: visible
|
|
42419
42747
|
}));
|
|
42420
42748
|
}));
|
|
@@ -42437,7 +42765,7 @@ Notification.defaultProps = {
|
|
|
42437
42765
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42438
42766
|
var _ref6 = properties || {},
|
|
42439
42767
|
getContainer = _ref6.getContainer,
|
|
42440
|
-
props =
|
|
42768
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42441
42769
|
|
|
42442
42770
|
var div = document.createElement('div');
|
|
42443
42771
|
|
|
@@ -42481,7 +42809,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42481
42809
|
|
|
42482
42810
|
if (false) {}
|
|
42483
42811
|
|
|
42484
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42812
|
+
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, {
|
|
42485
42813
|
ref: ref
|
|
42486
42814
|
})), div);
|
|
42487
42815
|
};
|
|
@@ -42511,7 +42839,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42511
42839
|
};
|
|
42512
42840
|
|
|
42513
42841
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42514
|
-
_useRCNotification2 =
|
|
42842
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42515
42843
|
hookNotify = _useRCNotification2[0],
|
|
42516
42844
|
holder = _useRCNotification2[1];
|
|
42517
42845
|
|
|
@@ -42840,7 +43168,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
42840
43168
|
};
|
|
42841
43169
|
|
|
42842
43170
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42843
|
-
_useRCNotification2 =
|
|
43171
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42844
43172
|
hookNotify = _useRCNotification2[0],
|
|
42845
43173
|
holder = _useRCNotification2[1];
|
|
42846
43174
|
|
|
@@ -43467,7 +43795,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43467
43795
|
|
|
43468
43796
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43469
43797
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43470
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43798
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43471
43799
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43472
43800
|
actionFn: onCancel,
|
|
43473
43801
|
close: close,
|
|
@@ -43485,7 +43813,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43485
43813
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43486
43814
|
prefixCls: prefixCls,
|
|
43487
43815
|
className: classString,
|
|
43488
|
-
wrapClassName: classnames_default()(
|
|
43816
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43489
43817
|
onCancel: function onCancel() {
|
|
43490
43818
|
return close({
|
|
43491
43819
|
triggerCancel: true
|
|
@@ -43569,7 +43897,7 @@ function getRootPrefixCls() {
|
|
|
43569
43897
|
function confirm_confirm(config) {
|
|
43570
43898
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43571
43899
|
|
|
43572
|
-
var currentConfig =
|
|
43900
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
43573
43901
|
close: close,
|
|
43574
43902
|
visible: true
|
|
43575
43903
|
});
|
|
@@ -43622,7 +43950,7 @@ function confirm_confirm(config) {
|
|
|
43622
43950
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43623
43951
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43624
43952
|
var iconPrefixCls = getIconPrefixCls();
|
|
43625
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43953
|
+
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, {
|
|
43626
43954
|
prefixCls: prefixCls,
|
|
43627
43955
|
rootPrefixCls: rootPrefixCls,
|
|
43628
43956
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43639,7 +43967,7 @@ function confirm_confirm(config) {
|
|
|
43639
43967
|
args[_key2] = arguments[_key2];
|
|
43640
43968
|
}
|
|
43641
43969
|
|
|
43642
|
-
currentConfig =
|
|
43970
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
43643
43971
|
visible: false,
|
|
43644
43972
|
afterClose: function afterClose() {
|
|
43645
43973
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43656,7 +43984,7 @@ function confirm_confirm(config) {
|
|
|
43656
43984
|
if (typeof configUpdate === 'function') {
|
|
43657
43985
|
currentConfig = configUpdate(currentConfig);
|
|
43658
43986
|
} else {
|
|
43659
|
-
currentConfig =
|
|
43987
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
43660
43988
|
}
|
|
43661
43989
|
|
|
43662
43990
|
render(currentConfig);
|
|
@@ -43670,7 +43998,7 @@ function confirm_confirm(config) {
|
|
|
43670
43998
|
};
|
|
43671
43999
|
}
|
|
43672
44000
|
function withWarn(props) {
|
|
43673
|
-
return
|
|
44001
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43674
44002
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43675
44003
|
type: "exclamation-circle"
|
|
43676
44004
|
}),
|
|
@@ -43680,7 +44008,7 @@ function withWarn(props) {
|
|
|
43680
44008
|
});
|
|
43681
44009
|
}
|
|
43682
44010
|
function withInfo(props) {
|
|
43683
|
-
return
|
|
44011
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43684
44012
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43685
44013
|
type: "exclamation-circle"
|
|
43686
44014
|
}),
|
|
@@ -43690,7 +44018,7 @@ function withInfo(props) {
|
|
|
43690
44018
|
});
|
|
43691
44019
|
}
|
|
43692
44020
|
function withSuccess(props) {
|
|
43693
|
-
return
|
|
44021
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43694
44022
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43695
44023
|
type: "check-circle"
|
|
43696
44024
|
}),
|
|
@@ -43700,7 +44028,7 @@ function withSuccess(props) {
|
|
|
43700
44028
|
});
|
|
43701
44029
|
}
|
|
43702
44030
|
function withError(props) {
|
|
43703
|
-
return
|
|
44031
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43704
44032
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43705
44033
|
type: "close-circle"
|
|
43706
44034
|
}),
|
|
@@ -43710,7 +44038,7 @@ function withError(props) {
|
|
|
43710
44038
|
});
|
|
43711
44039
|
}
|
|
43712
44040
|
function withConfirm(props) {
|
|
43713
|
-
return
|
|
44041
|
+
return esm_extends_extends(esm_extends_extends({
|
|
43714
44042
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43715
44043
|
type: "question-circle"
|
|
43716
44044
|
}),
|
|
@@ -43737,7 +44065,7 @@ function usePatchElement() {
|
|
|
43737
44065
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
43738
44066
|
// append a new element to elements (and create a new ref)
|
|
43739
44067
|
setElements(function (originElements) {
|
|
43740
|
-
return [].concat(
|
|
44068
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
43741
44069
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
43742
44070
|
// it works a little like useEffect
|
|
43743
44071
|
|
|
@@ -43802,7 +44130,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
43802
44130
|
destroy: close,
|
|
43803
44131
|
update: function update(newConfig) {
|
|
43804
44132
|
setInnerConfig(function (originConfig) {
|
|
43805
|
-
return
|
|
44133
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
43806
44134
|
});
|
|
43807
44135
|
}
|
|
43808
44136
|
};
|
|
@@ -43811,7 +44139,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
43811
44139
|
componentName: "Modal",
|
|
43812
44140
|
defaultLocale: locale_default.Modal
|
|
43813
44141
|
}, function (modalLocale) {
|
|
43814
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44142
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
43815
44143
|
prefixCls: prefixCls,
|
|
43816
44144
|
rootPrefixCls: rootPrefixCls
|
|
43817
44145
|
}, innerConfig, {
|
|
@@ -43858,7 +44186,7 @@ function useModal() {
|
|
|
43858
44186
|
|
|
43859
44187
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
43860
44188
|
if (actionQueue.length) {
|
|
43861
|
-
var cloneQueue =
|
|
44189
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
43862
44190
|
|
|
43863
44191
|
cloneQueue.forEach(function (action) {
|
|
43864
44192
|
action();
|
|
@@ -43895,7 +44223,7 @@ function useModal() {
|
|
|
43895
44223
|
destroyAction();
|
|
43896
44224
|
} else {
|
|
43897
44225
|
setActionQueue(function (prev) {
|
|
43898
|
-
return [].concat(
|
|
44226
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
43899
44227
|
});
|
|
43900
44228
|
}
|
|
43901
44229
|
},
|
|
@@ -43910,7 +44238,7 @@ function useModal() {
|
|
|
43910
44238
|
updateAction();
|
|
43911
44239
|
} else {
|
|
43912
44240
|
setActionQueue(function (prev) {
|
|
43913
|
-
return [].concat(
|
|
44241
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
43914
44242
|
});
|
|
43915
44243
|
}
|
|
43916
44244
|
}
|
|
@@ -44353,40 +44681,44 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44353
44681
|
|
|
44354
44682
|
|
|
44355
44683
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44356
|
-
function
|
|
44357
|
-
|
|
44684
|
+
function helpers_esm_extends_extends() {
|
|
44685
|
+
helpers_esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44358
44686
|
for (var i = 1; i < arguments.length; i++) {
|
|
44359
44687
|
var source = arguments[i];
|
|
44688
|
+
|
|
44360
44689
|
for (var key in source) {
|
|
44361
44690
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44362
44691
|
target[key] = source[key];
|
|
44363
44692
|
}
|
|
44364
44693
|
}
|
|
44365
44694
|
}
|
|
44695
|
+
|
|
44366
44696
|
return target;
|
|
44367
44697
|
};
|
|
44368
|
-
return
|
|
44698
|
+
return helpers_esm_extends_extends.apply(this, arguments);
|
|
44369
44699
|
}
|
|
44370
44700
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44371
|
-
function
|
|
44701
|
+
function helpers_esm_typeof_typeof(obj) {
|
|
44372
44702
|
"@babel/helpers - typeof";
|
|
44373
44703
|
|
|
44374
|
-
return
|
|
44704
|
+
return helpers_esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44375
44705
|
return typeof obj;
|
|
44376
44706
|
} : function (obj) {
|
|
44377
44707
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44378
|
-
},
|
|
44708
|
+
}, helpers_esm_typeof_typeof(obj);
|
|
44379
44709
|
}
|
|
44380
44710
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44381
44711
|
|
|
44382
44712
|
function _toPrimitive(input, hint) {
|
|
44383
|
-
if (
|
|
44713
|
+
if (helpers_esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44384
44714
|
var prim = input[Symbol.toPrimitive];
|
|
44715
|
+
|
|
44385
44716
|
if (prim !== undefined) {
|
|
44386
44717
|
var res = prim.call(input, hint || "default");
|
|
44387
|
-
if (
|
|
44718
|
+
if (helpers_esm_typeof_typeof(res) !== "object") return res;
|
|
44388
44719
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44389
44720
|
}
|
|
44721
|
+
|
|
44390
44722
|
return (hint === "string" ? String : Number)(input);
|
|
44391
44723
|
}
|
|
44392
44724
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44394,12 +44726,13 @@ function _toPrimitive(input, hint) {
|
|
|
44394
44726
|
|
|
44395
44727
|
function _toPropertyKey(arg) {
|
|
44396
44728
|
var key = _toPrimitive(arg, "string");
|
|
44397
|
-
return
|
|
44729
|
+
return helpers_esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44398
44730
|
}
|
|
44399
44731
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44400
44732
|
|
|
44401
|
-
function
|
|
44733
|
+
function esm_defineProperty_defineProperty(obj, key, value) {
|
|
44402
44734
|
key = _toPropertyKey(key);
|
|
44735
|
+
|
|
44403
44736
|
if (key in obj) {
|
|
44404
44737
|
Object.defineProperty(obj, key, {
|
|
44405
44738
|
value: value,
|
|
@@ -44410,51 +44743,61 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
|
44410
44743
|
} else {
|
|
44411
44744
|
obj[key] = value;
|
|
44412
44745
|
}
|
|
44746
|
+
|
|
44413
44747
|
return obj;
|
|
44414
44748
|
}
|
|
44415
44749
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44416
44750
|
|
|
44417
|
-
|
|
44751
|
+
|
|
44752
|
+
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44418
44753
|
var keys = Object.keys(object);
|
|
44754
|
+
|
|
44419
44755
|
if (Object.getOwnPropertySymbols) {
|
|
44420
44756
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44421
44757
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44422
44758
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44423
44759
|
})), keys.push.apply(keys, symbols);
|
|
44424
44760
|
}
|
|
44761
|
+
|
|
44425
44762
|
return keys;
|
|
44426
44763
|
}
|
|
44427
|
-
|
|
44764
|
+
|
|
44765
|
+
function esm_objectSpread2_objectSpread2(target) {
|
|
44428
44766
|
for (var i = 1; i < arguments.length; i++) {
|
|
44429
44767
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44430
|
-
i % 2 ?
|
|
44431
|
-
|
|
44432
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44768
|
+
i % 2 ? esm_objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44769
|
+
esm_defineProperty_defineProperty(target, key, source[key]);
|
|
44770
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : esm_objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44433
44771
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44434
44772
|
});
|
|
44435
44773
|
}
|
|
44774
|
+
|
|
44436
44775
|
return target;
|
|
44437
44776
|
}
|
|
44438
44777
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44439
|
-
function
|
|
44778
|
+
function helpers_esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44440
44779
|
if (Array.isArray(arr)) return arr;
|
|
44441
44780
|
}
|
|
44442
44781
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44443
|
-
function
|
|
44782
|
+
function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44444
44783
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44784
|
+
|
|
44445
44785
|
if (null != _i) {
|
|
44446
44786
|
var _s,
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44787
|
+
_e,
|
|
44788
|
+
_x,
|
|
44789
|
+
_r,
|
|
44790
|
+
_arr = [],
|
|
44791
|
+
_n = !0,
|
|
44792
|
+
_d = !1;
|
|
44793
|
+
|
|
44453
44794
|
try {
|
|
44454
44795
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44455
44796
|
if (Object(_i) !== _i) return;
|
|
44456
44797
|
_n = !1;
|
|
44457
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44798
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
44799
|
+
;
|
|
44800
|
+
}
|
|
44458
44801
|
} catch (err) {
|
|
44459
44802
|
_d = !0, _e = err;
|
|
44460
44803
|
} finally {
|
|
@@ -44464,27 +44807,32 @@ function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44464
44807
|
if (_d) throw _e;
|
|
44465
44808
|
}
|
|
44466
44809
|
}
|
|
44810
|
+
|
|
44467
44811
|
return _arr;
|
|
44468
44812
|
}
|
|
44469
44813
|
}
|
|
44470
44814
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44471
|
-
function
|
|
44815
|
+
function esm_arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44472
44816
|
if (len == null || len > arr.length) len = arr.length;
|
|
44473
|
-
|
|
44817
|
+
|
|
44818
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44819
|
+
arr2[i] = arr[i];
|
|
44820
|
+
}
|
|
44821
|
+
|
|
44474
44822
|
return arr2;
|
|
44475
44823
|
}
|
|
44476
44824
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44477
44825
|
|
|
44478
|
-
function
|
|
44826
|
+
function esm_unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44479
44827
|
if (!o) return;
|
|
44480
|
-
if (typeof o === "string") return
|
|
44828
|
+
if (typeof o === "string") return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44481
44829
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44482
44830
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44483
44831
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44484
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44832
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return esm_arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44485
44833
|
}
|
|
44486
44834
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44487
|
-
function
|
|
44835
|
+
function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
44488
44836
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44489
44837
|
}
|
|
44490
44838
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44492,30 +44840,34 @@ function esm_nonIterableRest_nonIterableRest() {
|
|
|
44492
44840
|
|
|
44493
44841
|
|
|
44494
44842
|
|
|
44495
|
-
function
|
|
44496
|
-
return
|
|
44843
|
+
function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
44844
|
+
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
44497
44845
|
}
|
|
44498
44846
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44499
|
-
function
|
|
44847
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44500
44848
|
if (source == null) return {};
|
|
44501
44849
|
var target = {};
|
|
44502
44850
|
var sourceKeys = Object.keys(source);
|
|
44503
44851
|
var key, i;
|
|
44852
|
+
|
|
44504
44853
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44505
44854
|
key = sourceKeys[i];
|
|
44506
44855
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44507
44856
|
target[key] = source[key];
|
|
44508
44857
|
}
|
|
44858
|
+
|
|
44509
44859
|
return target;
|
|
44510
44860
|
}
|
|
44511
44861
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44512
44862
|
|
|
44513
|
-
function
|
|
44863
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44514
44864
|
if (source == null) return {};
|
|
44515
|
-
var target =
|
|
44865
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44516
44866
|
var key, i;
|
|
44867
|
+
|
|
44517
44868
|
if (Object.getOwnPropertySymbols) {
|
|
44518
44869
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44870
|
+
|
|
44519
44871
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44520
44872
|
key = sourceSymbolKeys[i];
|
|
44521
44873
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44523,6 +44875,7 @@ function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44523
44875
|
target[key] = source[key];
|
|
44524
44876
|
}
|
|
44525
44877
|
}
|
|
44878
|
+
|
|
44526
44879
|
return target;
|
|
44527
44880
|
}
|
|
44528
44881
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45470,14 +45823,14 @@ var index = (function () {
|
|
|
45470
45823
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45471
45824
|
|
|
45472
45825
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45473
|
-
|
|
45826
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
45474
45827
|
|
|
45475
|
-
var _super =
|
|
45828
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
45476
45829
|
|
|
45477
45830
|
function ReactResizeObserver() {
|
|
45478
45831
|
var _this;
|
|
45479
45832
|
|
|
45480
|
-
|
|
45833
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
45481
45834
|
|
|
45482
45835
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45483
45836
|
args[_key] = arguments[_key];
|
|
@@ -45528,7 +45881,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45528
45881
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45529
45882
|
|
|
45530
45883
|
Promise.resolve().then(function () {
|
|
45531
|
-
onResize(
|
|
45884
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
45532
45885
|
offsetWidth: mergedOffsetWidth,
|
|
45533
45886
|
offsetHeight: mergedOffsetHeight
|
|
45534
45887
|
}), target);
|
|
@@ -45544,7 +45897,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45544
45897
|
return _this;
|
|
45545
45898
|
}
|
|
45546
45899
|
|
|
45547
|
-
|
|
45900
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
45548
45901
|
key: "componentDidMount",
|
|
45549
45902
|
value: function componentDidMount() {
|
|
45550
45903
|
this.onComponentUpdated();
|
|
@@ -45658,7 +46011,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45658
46011
|
position: 'relative',
|
|
45659
46012
|
overflow: 'hidden'
|
|
45660
46013
|
};
|
|
45661
|
-
innerStyle =
|
|
46014
|
+
innerStyle = esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
45662
46015
|
transform: "translateY(".concat(offset, "px)"),
|
|
45663
46016
|
position: 'absolute',
|
|
45664
46017
|
left: 0,
|
|
@@ -45675,23 +46028,24 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45675
46028
|
onInnerResize();
|
|
45676
46029
|
}
|
|
45677
46030
|
}
|
|
45678
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46031
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
45679
46032
|
style: innerStyle,
|
|
45680
|
-
className: classnames_default()(
|
|
46033
|
+
className: classnames_default()(esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
45681
46034
|
ref: ref
|
|
45682
46035
|
}, innerProps), children)));
|
|
45683
46036
|
});
|
|
45684
46037
|
Filler.displayName = 'Filler';
|
|
45685
46038
|
/* harmony default export */ var es_Filler = (Filler);
|
|
45686
46039
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
45687
|
-
function
|
|
46040
|
+
function esm_classCallCheck_classCallCheck(instance, Constructor) {
|
|
45688
46041
|
if (!(instance instanceof Constructor)) {
|
|
45689
46042
|
throw new TypeError("Cannot call a class as a function");
|
|
45690
46043
|
}
|
|
45691
46044
|
}
|
|
45692
46045
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
45693
46046
|
|
|
45694
|
-
|
|
46047
|
+
|
|
46048
|
+
function esm_createClass_defineProperties(target, props) {
|
|
45695
46049
|
for (var i = 0; i < props.length; i++) {
|
|
45696
46050
|
var descriptor = props[i];
|
|
45697
46051
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -45700,28 +46054,30 @@ function createClass_defineProperties(target, props) {
|
|
|
45700
46054
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
45701
46055
|
}
|
|
45702
46056
|
}
|
|
45703
|
-
|
|
45704
|
-
|
|
45705
|
-
if (
|
|
46057
|
+
|
|
46058
|
+
function esm_createClass_createClass(Constructor, protoProps, staticProps) {
|
|
46059
|
+
if (protoProps) esm_createClass_defineProperties(Constructor.prototype, protoProps);
|
|
46060
|
+
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45706
46061
|
Object.defineProperty(Constructor, "prototype", {
|
|
45707
46062
|
writable: false
|
|
45708
46063
|
});
|
|
45709
46064
|
return Constructor;
|
|
45710
46065
|
}
|
|
45711
46066
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
45712
|
-
function
|
|
45713
|
-
|
|
46067
|
+
function esm_setPrototypeOf_setPrototypeOf(o, p) {
|
|
46068
|
+
esm_setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
45714
46069
|
o.__proto__ = p;
|
|
45715
46070
|
return o;
|
|
45716
46071
|
};
|
|
45717
|
-
return
|
|
46072
|
+
return esm_setPrototypeOf_setPrototypeOf(o, p);
|
|
45718
46073
|
}
|
|
45719
46074
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
45720
46075
|
|
|
45721
|
-
function
|
|
46076
|
+
function esm_inherits_inherits(subClass, superClass) {
|
|
45722
46077
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
45723
46078
|
throw new TypeError("Super expression must either be null or a function");
|
|
45724
46079
|
}
|
|
46080
|
+
|
|
45725
46081
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
45726
46082
|
constructor: {
|
|
45727
46083
|
value: subClass,
|
|
@@ -45732,20 +46088,21 @@ function inherits_inherits(subClass, superClass) {
|
|
|
45732
46088
|
Object.defineProperty(subClass, "prototype", {
|
|
45733
46089
|
writable: false
|
|
45734
46090
|
});
|
|
45735
|
-
if (superClass)
|
|
46091
|
+
if (superClass) esm_setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
45736
46092
|
}
|
|
45737
46093
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
45738
|
-
function
|
|
45739
|
-
|
|
46094
|
+
function esm_getPrototypeOf_getPrototypeOf(o) {
|
|
46095
|
+
esm_getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
45740
46096
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45741
46097
|
};
|
|
45742
|
-
return
|
|
46098
|
+
return esm_getPrototypeOf_getPrototypeOf(o);
|
|
45743
46099
|
}
|
|
45744
46100
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
45745
|
-
function
|
|
46101
|
+
function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
45746
46102
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
45747
46103
|
if (Reflect.construct.sham) return false;
|
|
45748
46104
|
if (typeof Proxy === "function") return true;
|
|
46105
|
+
|
|
45749
46106
|
try {
|
|
45750
46107
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
45751
46108
|
return true;
|
|
@@ -45754,39 +46111,43 @@ function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
45754
46111
|
}
|
|
45755
46112
|
}
|
|
45756
46113
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
45757
|
-
function
|
|
46114
|
+
function esm_assertThisInitialized_assertThisInitialized(self) {
|
|
45758
46115
|
if (self === void 0) {
|
|
45759
46116
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
45760
46117
|
}
|
|
46118
|
+
|
|
45761
46119
|
return self;
|
|
45762
46120
|
}
|
|
45763
46121
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
45764
46122
|
|
|
45765
46123
|
|
|
45766
|
-
function
|
|
45767
|
-
if (call && (
|
|
46124
|
+
function esm_possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
46125
|
+
if (call && (helpers_esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
45768
46126
|
return call;
|
|
45769
46127
|
} else if (call !== void 0) {
|
|
45770
46128
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
45771
46129
|
}
|
|
45772
|
-
|
|
46130
|
+
|
|
46131
|
+
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45773
46132
|
}
|
|
45774
46133
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
45775
46134
|
|
|
45776
46135
|
|
|
45777
46136
|
|
|
45778
|
-
function
|
|
45779
|
-
var hasNativeReflectConstruct =
|
|
46137
|
+
function esm_createSuper_createSuper(Derived) {
|
|
46138
|
+
var hasNativeReflectConstruct = esm_isNativeReflectConstruct_isNativeReflectConstruct();
|
|
45780
46139
|
return function _createSuperInternal() {
|
|
45781
|
-
var Super =
|
|
45782
|
-
|
|
46140
|
+
var Super = esm_getPrototypeOf_getPrototypeOf(Derived),
|
|
46141
|
+
result;
|
|
46142
|
+
|
|
45783
46143
|
if (hasNativeReflectConstruct) {
|
|
45784
|
-
var NewTarget =
|
|
46144
|
+
var NewTarget = esm_getPrototypeOf_getPrototypeOf(this).constructor;
|
|
45785
46145
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
45786
46146
|
} else {
|
|
45787
46147
|
result = Super.apply(this, arguments);
|
|
45788
46148
|
}
|
|
45789
|
-
|
|
46149
|
+
|
|
46150
|
+
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45790
46151
|
};
|
|
45791
46152
|
}
|
|
45792
46153
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -45861,11 +46222,11 @@ function getPageY(e) {
|
|
|
45861
46222
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
45862
46223
|
}
|
|
45863
46224
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
45864
|
-
|
|
45865
|
-
var _super =
|
|
46225
|
+
esm_inherits_inherits(ScrollBar, _React$Component);
|
|
46226
|
+
var _super = esm_createSuper_createSuper(ScrollBar);
|
|
45866
46227
|
function ScrollBar() {
|
|
45867
46228
|
var _this;
|
|
45868
|
-
|
|
46229
|
+
esm_classCallCheck_classCallCheck(this, ScrollBar);
|
|
45869
46230
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45870
46231
|
args[_key] = arguments[_key];
|
|
45871
46232
|
}
|
|
@@ -45993,7 +46354,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
45993
46354
|
};
|
|
45994
46355
|
return _this;
|
|
45995
46356
|
}
|
|
45996
|
-
|
|
46357
|
+
esm_createClass_createClass(ScrollBar, [{
|
|
45997
46358
|
key: "componentDidMount",
|
|
45998
46359
|
value: function componentDidMount() {
|
|
45999
46360
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46027,7 +46388,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46027
46388
|
var mergedVisible = canScroll && visible;
|
|
46028
46389
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46029
46390
|
ref: this.scrollbarRef,
|
|
46030
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46391
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46031
46392
|
style: {
|
|
46032
46393
|
width: 8,
|
|
46033
46394
|
top: 0,
|
|
@@ -46040,7 +46401,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46040
46401
|
onMouseMove: this.delayHidden
|
|
46041
46402
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46042
46403
|
ref: this.thumbRef,
|
|
46043
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46404
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), esm_defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46044
46405
|
style: {
|
|
46045
46406
|
width: '100%',
|
|
46046
46407
|
height: spinHeight,
|
|
@@ -46119,11 +46480,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46119
46480
|
// Firefox has low performance of map.
|
|
46120
46481
|
var CacheMap = /*#__PURE__*/function () {
|
|
46121
46482
|
function CacheMap() {
|
|
46122
|
-
|
|
46483
|
+
esm_classCallCheck_classCallCheck(this, CacheMap);
|
|
46123
46484
|
this.maps = void 0;
|
|
46124
46485
|
this.maps = Object.create(null);
|
|
46125
46486
|
}
|
|
46126
|
-
|
|
46487
|
+
esm_createClass_createClass(CacheMap, [{
|
|
46127
46488
|
key: "set",
|
|
46128
46489
|
value: function set(key, value) {
|
|
46129
46490
|
this.maps[key] = value;
|
|
@@ -46146,7 +46507,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46146
46507
|
|
|
46147
46508
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46148
46509
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46149
|
-
_React$useState2 =
|
|
46510
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46150
46511
|
updatedMark = _React$useState2[0],
|
|
46151
46512
|
setUpdatedMark = _React$useState2[1];
|
|
46152
46513
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46213,7 +46574,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46213
46574
|
es_raf.cancel(scrollRef.current);
|
|
46214
46575
|
if (typeof arg === 'number') {
|
|
46215
46576
|
syncScrollTop(arg);
|
|
46216
|
-
} else if (arg &&
|
|
46577
|
+
} else if (arg && helpers_esm_typeof_typeof(arg) === 'object') {
|
|
46217
46578
|
var index;
|
|
46218
46579
|
var align = arg.align;
|
|
46219
46580
|
if ('index' in arg) {
|
|
@@ -46369,11 +46730,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46369
46730
|
|
|
46370
46731
|
function useDiffItem(data, getKey, onDiff) {
|
|
46371
46732
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46372
|
-
_React$useState2 =
|
|
46733
|
+
_React$useState2 = helpers_esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46373
46734
|
prevData = _React$useState2[0],
|
|
46374
46735
|
setPrevData = _React$useState2[1];
|
|
46375
46736
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46376
|
-
_React$useState4 =
|
|
46737
|
+
_React$useState4 = helpers_esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46377
46738
|
diffItem = _React$useState4[0],
|
|
46378
46739
|
setDiffItem = _React$useState4[1];
|
|
46379
46740
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46388,7 +46749,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46388
46749
|
}
|
|
46389
46750
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46390
46751
|
|
|
46391
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46752
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : helpers_esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46392
46753
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46393
46754
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46394
46755
|
|
|
@@ -46607,16 +46968,16 @@ function RawList(props, ref) {
|
|
|
46607
46968
|
onScroll = props.onScroll,
|
|
46608
46969
|
onVisibleChange = props.onVisibleChange,
|
|
46609
46970
|
innerProps = props.innerProps,
|
|
46610
|
-
restProps =
|
|
46971
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46611
46972
|
// ================================= MISC =================================
|
|
46612
46973
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46613
46974
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46614
46975
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46615
|
-
_useState2 =
|
|
46976
|
+
_useState2 = helpers_esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46616
46977
|
scrollTop = _useState2[0],
|
|
46617
46978
|
setScrollTop = _useState2[1];
|
|
46618
46979
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46619
|
-
_useState4 =
|
|
46980
|
+
_useState4 = helpers_esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46620
46981
|
scrollMoving = _useState4[0],
|
|
46621
46982
|
setScrollMoving = _useState4[1];
|
|
46622
46983
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -46656,12 +47017,12 @@ function RawList(props, ref) {
|
|
|
46656
47017
|
});
|
|
46657
47018
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
46658
47019
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
46659
|
-
_useDiffItem2 =
|
|
47020
|
+
_useDiffItem2 = helpers_esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
46660
47021
|
diffItem = _useDiffItem2[0];
|
|
46661
47022
|
diffItemRef.current = diffItem;
|
|
46662
47023
|
// ================================ Height ================================
|
|
46663
47024
|
var _useHeights = useHeights(getKey, null, null),
|
|
46664
|
-
_useHeights2 =
|
|
47025
|
+
_useHeights2 = helpers_esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
46665
47026
|
setInstanceRef = _useHeights2[0],
|
|
46666
47027
|
collectHeight = _useHeights2[1],
|
|
46667
47028
|
heights = _useHeights2[2],
|
|
@@ -46767,7 +47128,7 @@ function RawList(props, ref) {
|
|
|
46767
47128
|
return newTop;
|
|
46768
47129
|
});
|
|
46769
47130
|
}),
|
|
46770
|
-
_useFrameWheel2 =
|
|
47131
|
+
_useFrameWheel2 = helpers_esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
46771
47132
|
onRawWheel = _useFrameWheel2[0],
|
|
46772
47133
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
46773
47134
|
// Mobile touch move
|
|
@@ -46821,7 +47182,7 @@ function RawList(props, ref) {
|
|
|
46821
47182
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
46822
47183
|
var componentStyle = null;
|
|
46823
47184
|
if (height) {
|
|
46824
|
-
componentStyle =
|
|
47185
|
+
componentStyle = esm_objectSpread2_objectSpread2(esm_defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
46825
47186
|
if (useVirtual) {
|
|
46826
47187
|
componentStyle.overflowY = 'hidden';
|
|
46827
47188
|
if (scrollMoving) {
|
|
@@ -46829,8 +47190,8 @@ function RawList(props, ref) {
|
|
|
46829
47190
|
}
|
|
46830
47191
|
}
|
|
46831
47192
|
}
|
|
46832
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
46833
|
-
style:
|
|
47193
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", helpers_esm_extends_extends({
|
|
47194
|
+
style: esm_objectSpread2_objectSpread2(esm_objectSpread2_objectSpread2({}, style), {}, {
|
|
46834
47195
|
position: 'relative'
|
|
46835
47196
|
}),
|
|
46836
47197
|
className: mergedClassName
|
|
@@ -46976,7 +47337,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
46976
47337
|
return values;
|
|
46977
47338
|
}
|
|
46978
47339
|
function removeLastEnabledValue(measureValues, values) {
|
|
46979
|
-
var newValues =
|
|
47340
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
46980
47341
|
|
|
46981
47342
|
var removeIndex;
|
|
46982
47343
|
|
|
@@ -47110,7 +47471,7 @@ function flattenOptions(options) {
|
|
|
47110
47471
|
*/
|
|
47111
47472
|
|
|
47112
47473
|
function injectPropsWithOption(option) {
|
|
47113
|
-
var newOption =
|
|
47474
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47114
47475
|
|
|
47115
47476
|
if (!('props' in newOption)) {
|
|
47116
47477
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47144,7 +47505,7 @@ function findValueOption(values, options) {
|
|
|
47144
47505
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47145
47506
|
|
|
47146
47507
|
if (!option) {
|
|
47147
|
-
option =
|
|
47508
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47148
47509
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47149
47510
|
}));
|
|
47150
47511
|
}
|
|
@@ -47163,7 +47524,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47163
47524
|
};
|
|
47164
47525
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47165
47526
|
|
|
47166
|
-
if (prevValItem &&
|
|
47527
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47167
47528
|
result.label = prevValItem.label;
|
|
47168
47529
|
|
|
47169
47530
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47211,7 +47572,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47211
47572
|
var filterFunc;
|
|
47212
47573
|
|
|
47213
47574
|
if (filterOption === false) {
|
|
47214
|
-
return
|
|
47575
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47215
47576
|
}
|
|
47216
47577
|
|
|
47217
47578
|
if (typeof filterOption === 'function') {
|
|
@@ -47235,7 +47596,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47235
47596
|
});
|
|
47236
47597
|
|
|
47237
47598
|
if (subOptions.length) {
|
|
47238
|
-
filteredOptions.push(
|
|
47599
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47239
47600
|
options: subOptions
|
|
47240
47601
|
}));
|
|
47241
47602
|
}
|
|
@@ -47269,7 +47630,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47269
47630
|
var list = str.split(token);
|
|
47270
47631
|
match = match || list.length > 1;
|
|
47271
47632
|
return list.reduce(function (prevList, unitStr) {
|
|
47272
|
-
return [].concat(
|
|
47633
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47273
47634
|
}, []).filter(function (unit) {
|
|
47274
47635
|
return unit;
|
|
47275
47636
|
});
|
|
@@ -47289,7 +47650,7 @@ function isValueDisabled(value, options) {
|
|
|
47289
47650
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47290
47651
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47291
47652
|
|
|
47292
|
-
var cloneOptions =
|
|
47653
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47293
47654
|
|
|
47294
47655
|
|
|
47295
47656
|
var optionValues = new Set();
|
|
@@ -47309,7 +47670,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47309
47670
|
if (!optionValues.has(val)) {
|
|
47310
47671
|
var _ref9;
|
|
47311
47672
|
|
|
47312
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47673
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
47313
47674
|
value: val
|
|
47314
47675
|
});
|
|
47315
47676
|
}
|
|
@@ -47575,7 +47936,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47575
47936
|
children = itemData.children;
|
|
47576
47937
|
var attrs = pickAttrs(itemData, true);
|
|
47577
47938
|
var mergedLabel = childrenAsData ? children : label;
|
|
47578
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47939
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
47579
47940
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47580
47941
|
}, attrs, {
|
|
47581
47942
|
key: index,
|
|
@@ -47625,13 +47986,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47625
47986
|
children = data.children,
|
|
47626
47987
|
style = data.style,
|
|
47627
47988
|
className = data.className,
|
|
47628
|
-
otherProps =
|
|
47989
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
47629
47990
|
|
|
47630
47991
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47631
47992
|
|
|
47632
47993
|
var selected = values.has(value);
|
|
47633
47994
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47634
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47995
|
+
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));
|
|
47635
47996
|
var mergedLabel = childrenAsData ? children : label;
|
|
47636
47997
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
47637
47998
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -47642,7 +48003,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47642
48003
|
optionTitle = title;
|
|
47643
48004
|
}
|
|
47644
48005
|
|
|
47645
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48006
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
47646
48007
|
"aria-selected": selected,
|
|
47647
48008
|
className: optionClassName,
|
|
47648
48009
|
title: optionTitle,
|
|
@@ -47703,9 +48064,9 @@ function convertNodeToOption(node) {
|
|
|
47703
48064
|
_node$props = node.props,
|
|
47704
48065
|
children = _node$props.children,
|
|
47705
48066
|
value = _node$props.value,
|
|
47706
|
-
restProps =
|
|
48067
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
47707
48068
|
|
|
47708
|
-
return
|
|
48069
|
+
return objectSpread2_objectSpread2({
|
|
47709
48070
|
key: key,
|
|
47710
48071
|
value: value !== undefined ? value : key,
|
|
47711
48072
|
children: children
|
|
@@ -47723,13 +48084,13 @@ function convertChildrenToData(nodes) {
|
|
|
47723
48084
|
key = node.key,
|
|
47724
48085
|
_node$props2 = node.props,
|
|
47725
48086
|
children = _node$props2.children,
|
|
47726
|
-
restProps =
|
|
48087
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
47727
48088
|
|
|
47728
48089
|
if (optionOnly || !isSelectOptGroup) {
|
|
47729
48090
|
return convertNodeToOption(node);
|
|
47730
48091
|
}
|
|
47731
48092
|
|
|
47732
|
-
return
|
|
48093
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
47733
48094
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
47734
48095
|
label: key
|
|
47735
48096
|
}, restProps), {}, {
|
|
@@ -47831,7 +48192,7 @@ function InternalItem(props, ref) {
|
|
|
47831
48192
|
order = props.order,
|
|
47832
48193
|
_props$component = props.component,
|
|
47833
48194
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47834
|
-
restProps =
|
|
48195
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
47835
48196
|
|
|
47836
48197
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
47837
48198
|
|
|
@@ -47865,9 +48226,9 @@ function InternalItem(props, ref) {
|
|
|
47865
48226
|
overflowProps['aria-hidden'] = true;
|
|
47866
48227
|
}
|
|
47867
48228
|
|
|
47868
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48229
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
47869
48230
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
47870
|
-
style:
|
|
48231
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, overflowStyle), style)
|
|
47871
48232
|
}, overflowProps, restProps, {
|
|
47872
48233
|
ref: ref
|
|
47873
48234
|
}), childNode);
|
|
@@ -47952,23 +48313,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
47952
48313
|
if (!context) {
|
|
47953
48314
|
var _props$component = props.component,
|
|
47954
48315
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
47955
|
-
_restProps =
|
|
48316
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
47956
48317
|
|
|
47957
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48318
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
47958
48319
|
ref: ref
|
|
47959
48320
|
}));
|
|
47960
48321
|
}
|
|
47961
48322
|
|
|
47962
48323
|
var contextClassName = context.className,
|
|
47963
|
-
restContext =
|
|
48324
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
47964
48325
|
|
|
47965
48326
|
var className = props.className,
|
|
47966
|
-
restProps =
|
|
48327
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
47967
48328
|
|
|
47968
48329
|
|
|
47969
48330
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
47970
48331
|
value: null
|
|
47971
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48332
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({
|
|
47972
48333
|
ref: ref,
|
|
47973
48334
|
className: classnames_default()(contextClassName, className)
|
|
47974
48335
|
}, restContext, restProps)));
|
|
@@ -48018,7 +48379,7 @@ function Overflow(props, ref) {
|
|
|
48018
48379
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48019
48380
|
itemComponent = props.itemComponent,
|
|
48020
48381
|
onVisibleChange = props.onVisibleChange,
|
|
48021
|
-
restProps =
|
|
48382
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48022
48383
|
|
|
48023
48384
|
var createUseState = useBatchFrameState();
|
|
48024
48385
|
var fullySSR = ssr === 'full';
|
|
@@ -48228,7 +48589,7 @@ function Overflow(props, ref) {
|
|
|
48228
48589
|
var key = getKey(item, index);
|
|
48229
48590
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48230
48591
|
key: key,
|
|
48231
|
-
value:
|
|
48592
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), {}, {
|
|
48232
48593
|
order: index,
|
|
48233
48594
|
item: item,
|
|
48234
48595
|
itemKey: key,
|
|
@@ -48238,7 +48599,7 @@ function Overflow(props, ref) {
|
|
|
48238
48599
|
}, renderRawItem(item, index));
|
|
48239
48600
|
} : function (item, index) {
|
|
48240
48601
|
var key = getKey(item, index);
|
|
48241
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48602
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48242
48603
|
order: index,
|
|
48243
48604
|
key: key,
|
|
48244
48605
|
item: item,
|
|
@@ -48259,18 +48620,18 @@ function Overflow(props, ref) {
|
|
|
48259
48620
|
|
|
48260
48621
|
if (!renderRawRest) {
|
|
48261
48622
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48262
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48623
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48263
48624
|
} else if (renderRawRest) {
|
|
48264
48625
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48265
|
-
value:
|
|
48626
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48266
48627
|
}, renderRawRest(omittedItems));
|
|
48267
48628
|
}
|
|
48268
48629
|
|
|
48269
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48630
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({
|
|
48270
48631
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48271
48632
|
style: style,
|
|
48272
48633
|
ref: ref
|
|
48273
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48634
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, esm_extends_extends({}, itemSharedProps, {
|
|
48274
48635
|
order: mergedDisplayCount,
|
|
48275
48636
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48276
48637
|
registerSize: registerSuffixSize,
|
|
@@ -48335,7 +48696,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48335
48696
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48336
48697
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48337
48698
|
style = _inputNode$props.style;
|
|
48338
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48699
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48339
48700
|
id: id,
|
|
48340
48701
|
ref: composeRef(ref, originRef),
|
|
48341
48702
|
disabled: disabled,
|
|
@@ -48344,7 +48705,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48344
48705
|
type: 'search',
|
|
48345
48706
|
autoFocus: autoFocus,
|
|
48346
48707
|
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),
|
|
48347
|
-
style:
|
|
48708
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
48348
48709
|
opacity: editable ? null : 0
|
|
48349
48710
|
}),
|
|
48350
48711
|
role: 'combobox',
|
|
@@ -48492,7 +48853,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48492
48853
|
|
|
48493
48854
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48494
48855
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48495
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48856
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48496
48857
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48497
48858
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48498
48859
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -48907,7 +49268,7 @@ var Selector = function Selector(props, ref) {
|
|
|
48907
49268
|
onInputCompositionStart: onInputCompositionStart,
|
|
48908
49269
|
onInputCompositionEnd: onInputCompositionEnd
|
|
48909
49270
|
};
|
|
48910
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49271
|
+
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));
|
|
48911
49272
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
48912
49273
|
ref: domRef,
|
|
48913
49274
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -48952,7 +49313,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
48952
49313
|
|
|
48953
49314
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
48954
49315
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
48955
|
-
return
|
|
49316
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, baseAlign), align);
|
|
48956
49317
|
}
|
|
48957
49318
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
48958
49319
|
var points = align.points;
|
|
@@ -49016,7 +49377,7 @@ function Mask_Mask(props) {
|
|
|
49016
49377
|
var motion = {};
|
|
49017
49378
|
|
|
49018
49379
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49019
|
-
motion =
|
|
49380
|
+
motion = objectSpread2_objectSpread2({
|
|
49020
49381
|
motionAppear: true
|
|
49021
49382
|
}, getMotion({
|
|
49022
49383
|
motion: maskMotion,
|
|
@@ -49026,7 +49387,7 @@ function Mask_Mask(props) {
|
|
|
49026
49387
|
}));
|
|
49027
49388
|
}
|
|
49028
49389
|
|
|
49029
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49390
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({}, motion, {
|
|
49030
49391
|
visible: visible,
|
|
49031
49392
|
removeOnLeave: true
|
|
49032
49393
|
}), function (_ref) {
|
|
@@ -50538,7 +50899,7 @@ function getElement(func) {
|
|
|
50538
50899
|
}
|
|
50539
50900
|
|
|
50540
50901
|
function getPoint(point) {
|
|
50541
|
-
if (
|
|
50902
|
+
if (esm_typeof_typeof(point) !== 'object' || !point) return null;
|
|
50542
50903
|
return point;
|
|
50543
50904
|
}
|
|
50544
50905
|
|
|
@@ -50752,9 +51113,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
50752
51113
|
}
|
|
50753
51114
|
|
|
50754
51115
|
if (status) {
|
|
50755
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
51116
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
50756
51117
|
var index, nextStatus;
|
|
50757
|
-
return
|
|
51118
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
50758
51119
|
while (1) {
|
|
50759
51120
|
switch (_context.prev = _context.next) {
|
|
50760
51121
|
case 0:
|
|
@@ -50927,7 +51288,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50927
51288
|
} // ======================== Motion ========================
|
|
50928
51289
|
|
|
50929
51290
|
|
|
50930
|
-
var motion =
|
|
51291
|
+
var motion = objectSpread2_objectSpread2({}, getMotion(props));
|
|
50931
51292
|
|
|
50932
51293
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
50933
51294
|
var originHandler = motion[eventName];
|
|
@@ -50960,7 +51321,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50960
51321
|
};
|
|
50961
51322
|
}); // ======================== Render ========================
|
|
50962
51323
|
|
|
50963
|
-
var mergedStyle =
|
|
51324
|
+
var mergedStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, stretchStyle), {}, {
|
|
50964
51325
|
zIndex: zIndex,
|
|
50965
51326
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
50966
51327
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -50981,7 +51342,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
50981
51342
|
}, children);
|
|
50982
51343
|
}
|
|
50983
51344
|
|
|
50984
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51345
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
50985
51346
|
visible: visible,
|
|
50986
51347
|
ref: elementRef,
|
|
50987
51348
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51009,7 +51370,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51009
51370
|
onMouseLeave: onMouseLeave,
|
|
51010
51371
|
onMouseDownCapture: onMouseDown,
|
|
51011
51372
|
onTouchStartCapture: onTouchStart,
|
|
51012
|
-
style:
|
|
51373
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51013
51374
|
}, childNode));
|
|
51014
51375
|
});
|
|
51015
51376
|
});
|
|
@@ -51044,7 +51405,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51044
51405
|
};
|
|
51045
51406
|
}); // ======================== Render ========================
|
|
51046
51407
|
|
|
51047
|
-
var mergedStyle =
|
|
51408
|
+
var mergedStyle = objectSpread2_objectSpread2({
|
|
51048
51409
|
zIndex: zIndex
|
|
51049
51410
|
}, popupStyle);
|
|
51050
51411
|
|
|
@@ -51061,7 +51422,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51061
51422
|
childNode = popupRender(childNode);
|
|
51062
51423
|
}
|
|
51063
51424
|
|
|
51064
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51425
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
51065
51426
|
visible: visible,
|
|
51066
51427
|
ref: elementRef,
|
|
51067
51428
|
removeOnLeave: true
|
|
@@ -51072,7 +51433,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51072
51433
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51073
51434
|
ref: motionRef,
|
|
51074
51435
|
className: mergedClassName,
|
|
51075
|
-
style:
|
|
51436
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), mergedStyle)
|
|
51076
51437
|
}, childNode);
|
|
51077
51438
|
});
|
|
51078
51439
|
});
|
|
@@ -51093,7 +51454,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51093
51454
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51094
51455
|
var visible = _ref.visible,
|
|
51095
51456
|
mobile = _ref.mobile,
|
|
51096
|
-
props =
|
|
51457
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51097
51458
|
|
|
51098
51459
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51099
51460
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51105,7 +51466,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51105
51466
|
inMobile = _useState4[0],
|
|
51106
51467
|
setInMobile = _useState4[1];
|
|
51107
51468
|
|
|
51108
|
-
var cloneProps =
|
|
51469
|
+
var cloneProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
51109
51470
|
visible: innerVisible
|
|
51110
51471
|
}); // We check mobile in visible changed here.
|
|
51111
51472
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51118,10 +51479,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51118
51479
|
setInMobile(isMobile());
|
|
51119
51480
|
}
|
|
51120
51481
|
}, [visible, mobile]);
|
|
51121
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51482
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, esm_extends_extends({}, cloneProps, {
|
|
51122
51483
|
mobile: mobile,
|
|
51123
51484
|
ref: ref
|
|
51124
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51485
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, esm_extends_extends({}, cloneProps, {
|
|
51125
51486
|
ref: ref
|
|
51126
51487
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51127
51488
|
|
|
@@ -51175,14 +51536,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51175
51536
|
|
|
51176
51537
|
function generateTrigger(PortalComponent) {
|
|
51177
51538
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51178
|
-
|
|
51539
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51179
51540
|
|
|
51180
|
-
var _super =
|
|
51541
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51181
51542
|
|
|
51182
51543
|
function Trigger(props) {
|
|
51183
51544
|
var _this;
|
|
51184
51545
|
|
|
51185
|
-
|
|
51546
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51186
51547
|
|
|
51187
51548
|
_this = _super.call(this, props);
|
|
51188
51549
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51370,7 +51731,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51370
51731
|
} catch (err) {// Do nothing
|
|
51371
51732
|
}
|
|
51372
51733
|
|
|
51373
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51734
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
51374
51735
|
};
|
|
51375
51736
|
|
|
51376
51737
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51431,7 +51792,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51431
51792
|
|
|
51432
51793
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51433
51794
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51434
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51795
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
51435
51796
|
prefixCls: prefixCls,
|
|
51436
51797
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51437
51798
|
visible: popupVisible,
|
|
@@ -51544,7 +51905,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51544
51905
|
return _this;
|
|
51545
51906
|
}
|
|
51546
51907
|
|
|
51547
|
-
|
|
51908
|
+
createClass_createClass(Trigger, [{
|
|
51548
51909
|
key: "componentDidMount",
|
|
51549
51910
|
value: function componentDidMount() {
|
|
51550
51911
|
this.componentDidUpdate();
|
|
@@ -51869,7 +52230,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51869
52230
|
newChildProps.className = childrenClassName;
|
|
51870
52231
|
}
|
|
51871
52232
|
|
|
51872
|
-
var cloneProps =
|
|
52233
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
51873
52234
|
|
|
51874
52235
|
if (supportRef(child)) {
|
|
51875
52236
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52010,7 +52371,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52010
52371
|
empty = props.empty,
|
|
52011
52372
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52012
52373
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52013
|
-
restProps =
|
|
52374
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52014
52375
|
|
|
52015
52376
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52016
52377
|
var popupNode = popupElement;
|
|
@@ -52034,7 +52395,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52034
52395
|
};
|
|
52035
52396
|
});
|
|
52036
52397
|
|
|
52037
|
-
var popupStyle =
|
|
52398
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
52038
52399
|
minWidth: containerWidth
|
|
52039
52400
|
}, dropdownStyle);
|
|
52040
52401
|
|
|
@@ -52044,7 +52405,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52044
52405
|
popupStyle.width = containerWidth;
|
|
52045
52406
|
}
|
|
52046
52407
|
|
|
52047
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52408
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
52048
52409
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52049
52410
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52050
52411
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52057,7 +52418,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52057
52418
|
popupAlign: dropdownAlign,
|
|
52058
52419
|
popupVisible: visible,
|
|
52059
52420
|
getPopupContainer: getPopupContainer,
|
|
52060
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52421
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52061
52422
|
popupStyle: popupStyle,
|
|
52062
52423
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52063
52424
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52160,7 +52521,7 @@ function useCacheDisplayValue(values) {
|
|
|
52160
52521
|
var cacheLabel = valueLabels.get(item.value);
|
|
52161
52522
|
|
|
52162
52523
|
if (item.isCacheable && cacheLabel) {
|
|
52163
|
-
return
|
|
52524
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52164
52525
|
label: cacheLabel
|
|
52165
52526
|
});
|
|
52166
52527
|
}
|
|
@@ -52322,7 +52683,7 @@ function generateSelector(config) {
|
|
|
52322
52683
|
onClear = props.onClear,
|
|
52323
52684
|
_props$internalProps = props.internalProps,
|
|
52324
52685
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52325
|
-
restProps =
|
|
52686
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
52326
52687
|
|
|
52327
52688
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52328
52689
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52460,7 +52821,7 @@ function generateSelector(config) {
|
|
|
52460
52821
|
|
|
52461
52822
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52462
52823
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52463
|
-
return
|
|
52824
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
52464
52825
|
}
|
|
52465
52826
|
|
|
52466
52827
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52481,7 +52842,7 @@ function generateSelector(config) {
|
|
|
52481
52842
|
}
|
|
52482
52843
|
|
|
52483
52844
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52484
|
-
return
|
|
52845
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
52485
52846
|
}
|
|
52486
52847
|
|
|
52487
52848
|
return filteredOptions;
|
|
@@ -52504,7 +52865,7 @@ function generateSelector(config) {
|
|
|
52504
52865
|
labelInValue: mergedLabelInValue,
|
|
52505
52866
|
optionLabelProp: mergedOptionLabelProp
|
|
52506
52867
|
});
|
|
52507
|
-
return
|
|
52868
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
52508
52869
|
disabled: isValueDisabled(val, valueOptions)
|
|
52509
52870
|
});
|
|
52510
52871
|
});
|
|
@@ -52578,7 +52939,7 @@ function generateSelector(config) {
|
|
|
52578
52939
|
}); // We will cache option in case it removed by ajax
|
|
52579
52940
|
|
|
52580
52941
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52581
|
-
var clone =
|
|
52942
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
52582
52943
|
|
|
52583
52944
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52584
52945
|
get: function get() {
|
|
@@ -52634,13 +52995,13 @@ function generateSelector(config) {
|
|
|
52634
52995
|
};
|
|
52635
52996
|
|
|
52636
52997
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
52637
|
-
onInternalSelect(newValue,
|
|
52998
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
52638
52999
|
source: 'option'
|
|
52639
53000
|
}));
|
|
52640
53001
|
};
|
|
52641
53002
|
|
|
52642
53003
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
52643
|
-
onInternalSelect(newValue,
|
|
53004
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
52644
53005
|
source: 'selection'
|
|
52645
53006
|
}));
|
|
52646
53007
|
}; // ============================= Input ==============================
|
|
@@ -52724,7 +53085,7 @@ function generateSelector(config) {
|
|
|
52724
53085
|
});
|
|
52725
53086
|
}
|
|
52726
53087
|
|
|
52727
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53088
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
52728
53089
|
triggerChange(newRawValues);
|
|
52729
53090
|
newRawValues.forEach(function (newRawValue) {
|
|
52730
53091
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -52753,7 +53114,7 @@ function generateSelector(config) {
|
|
|
52753
53114
|
return;
|
|
52754
53115
|
}
|
|
52755
53116
|
|
|
52756
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53117
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
52757
53118
|
triggerChange(newRawValues);
|
|
52758
53119
|
newRawValues.forEach(function (newRawValue) {
|
|
52759
53120
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -52886,7 +53247,7 @@ function generateSelector(config) {
|
|
|
52886
53247
|
// `tags` mode should move `searchValue` into values
|
|
52887
53248
|
if (mode === 'tags') {
|
|
52888
53249
|
triggerSearch('', false, false);
|
|
52889
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53250
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
52890
53251
|
} else if (mode === 'multiple') {
|
|
52891
53252
|
// `multiple` mode only clean the search value but not trigger event
|
|
52892
53253
|
setInnerSearchValue('');
|
|
@@ -53044,7 +53405,7 @@ function generateSelector(config) {
|
|
|
53044
53405
|
|
|
53045
53406
|
if (mergedShowArrow) {
|
|
53046
53407
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53047
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53408
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53048
53409
|
customizeIcon: inputIcon,
|
|
53049
53410
|
customizeIconProps: {
|
|
53050
53411
|
loading: loading,
|
|
@@ -53060,7 +53421,7 @@ function generateSelector(config) {
|
|
|
53060
53421
|
if (false) {} // ============================= Render =============================
|
|
53061
53422
|
|
|
53062
53423
|
|
|
53063
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53424
|
+
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));
|
|
53064
53425
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53065
53426
|
ref: triggerRef,
|
|
53066
53427
|
disabled: disabled,
|
|
@@ -53085,7 +53446,7 @@ function generateSelector(config) {
|
|
|
53085
53446
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53086
53447
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53087
53448
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53088
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53449
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
53089
53450
|
domRef: selectorDomRef,
|
|
53090
53451
|
prefixCls: prefixCls,
|
|
53091
53452
|
inputElement: customizeInputElement,
|
|
@@ -53111,7 +53472,7 @@ function generateSelector(config) {
|
|
|
53111
53472
|
return selectorNode;
|
|
53112
53473
|
}
|
|
53113
53474
|
|
|
53114
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53475
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53115
53476
|
className: mergedClassName
|
|
53116
53477
|
}, domProps, {
|
|
53117
53478
|
ref: containerRef,
|
|
@@ -53198,7 +53559,7 @@ function warningProps(props) {
|
|
|
53198
53559
|
if (value !== undefined && value !== null) {
|
|
53199
53560
|
var values = commonUtil_toArray(value);
|
|
53200
53561
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53201
|
-
return
|
|
53562
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53202
53563
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53203
53564
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53204
53565
|
} // Syntactic sugar should use correct children type
|
|
@@ -53312,14 +53673,14 @@ var RefSelect = generateSelector({
|
|
|
53312
53673
|
*/
|
|
53313
53674
|
|
|
53314
53675
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53315
|
-
|
|
53676
|
+
inherits_inherits(Select, _React$Component);
|
|
53316
53677
|
|
|
53317
|
-
var _super =
|
|
53678
|
+
var _super = createSuper_createSuper(Select);
|
|
53318
53679
|
|
|
53319
53680
|
function Select() {
|
|
53320
53681
|
var _this;
|
|
53321
53682
|
|
|
53322
|
-
|
|
53683
|
+
classCallCheck_classCallCheck(this, Select);
|
|
53323
53684
|
|
|
53324
53685
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53325
53686
|
args[_key] = arguments[_key];
|
|
@@ -53339,10 +53700,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53339
53700
|
return _this;
|
|
53340
53701
|
}
|
|
53341
53702
|
|
|
53342
|
-
|
|
53703
|
+
createClass_createClass(Select, [{
|
|
53343
53704
|
key: "render",
|
|
53344
53705
|
value: function render() {
|
|
53345
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53706
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
53346
53707
|
ref: this.selectRef
|
|
53347
53708
|
}, this.props));
|
|
53348
53709
|
}
|
|
@@ -55686,7 +56047,7 @@ function TabNode(_ref, ref) {
|
|
|
55686
56047
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
55687
56048
|
key: key,
|
|
55688
56049
|
ref: ref,
|
|
55689
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56050
|
+
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)),
|
|
55690
56051
|
style: style,
|
|
55691
56052
|
onClick: onInternalClick
|
|
55692
56053
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -55749,7 +56110,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
55749
56110
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
55750
56111
|
}
|
|
55751
56112
|
|
|
55752
|
-
var entity = map.get(key) ||
|
|
56113
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
55753
56114
|
|
|
55754
56115
|
|
|
55755
56116
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -55844,7 +56205,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
55844
56205
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
55845
56206
|
|
|
55846
56207
|
function mergeProps(origin, target) {
|
|
55847
|
-
var clone =
|
|
56208
|
+
var clone = objectSpread2_objectSpread2({}, origin);
|
|
55848
56209
|
|
|
55849
56210
|
Object.keys(target).forEach(function (key) {
|
|
55850
56211
|
var value = target[key];
|
|
@@ -55859,7 +56220,7 @@ function mergeProps(origin, target) {
|
|
|
55859
56220
|
function InheritableContextProvider(_ref) {
|
|
55860
56221
|
var children = _ref.children,
|
|
55861
56222
|
locked = _ref.locked,
|
|
55862
|
-
restProps =
|
|
56223
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
55863
56224
|
|
|
55864
56225
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
55865
56226
|
var inheritableContext = useMemo(function () {
|
|
@@ -55915,7 +56276,7 @@ var warnUtil_excluded = ["item"];
|
|
|
55915
56276
|
|
|
55916
56277
|
function warnItemProp(_ref) {
|
|
55917
56278
|
var item = _ref.item,
|
|
55918
|
-
restInfo =
|
|
56279
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
55919
56280
|
|
|
55920
56281
|
Object.defineProperty(restInfo, 'item', {
|
|
55921
56282
|
get: function get() {
|
|
@@ -55935,7 +56296,7 @@ function es_Icon_Icon(_ref) {
|
|
|
55935
56296
|
var iconNode;
|
|
55936
56297
|
|
|
55937
56298
|
if (typeof icon === 'function') {
|
|
55938
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56299
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, objectSpread2_objectSpread2({}, props));
|
|
55939
56300
|
} else {
|
|
55940
56301
|
// Compatible for origin definition
|
|
55941
56302
|
iconNode = icon;
|
|
@@ -55976,7 +56337,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
55976
56337
|
function useFullPath(eventKey) {
|
|
55977
56338
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
55978
56339
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
55979
|
-
return eventKey !== undefined ? [].concat(
|
|
56340
|
+
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
55980
56341
|
}, [parentKeyPath, eventKey]);
|
|
55981
56342
|
}
|
|
55982
56343
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56033,28 +56394,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56033
56394
|
// This should be removed from doc & api in future.
|
|
56034
56395
|
|
|
56035
56396
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56036
|
-
|
|
56397
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
56037
56398
|
|
|
56038
|
-
var _super =
|
|
56399
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
56039
56400
|
|
|
56040
56401
|
function LegacyMenuItem() {
|
|
56041
|
-
|
|
56402
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
56042
56403
|
|
|
56043
56404
|
return _super.apply(this, arguments);
|
|
56044
56405
|
}
|
|
56045
56406
|
|
|
56046
|
-
|
|
56407
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
56047
56408
|
key: "render",
|
|
56048
56409
|
value: function render() {
|
|
56049
56410
|
var _this$props = this.props,
|
|
56050
56411
|
title = _this$props.title,
|
|
56051
56412
|
attribute = _this$props.attribute,
|
|
56052
56413
|
elementRef = _this$props.elementRef,
|
|
56053
|
-
restProps =
|
|
56414
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56054
56415
|
|
|
56055
56416
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56056
56417
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56057
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56418
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
56058
56419
|
title: typeof title === 'string' ? title : undefined
|
|
56059
56420
|
}, passedProps, {
|
|
56060
56421
|
ref: elementRef
|
|
@@ -56085,7 +56446,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56085
56446
|
onClick = props.onClick,
|
|
56086
56447
|
onKeyDown = props.onKeyDown,
|
|
56087
56448
|
onFocus = props.onFocus,
|
|
56088
|
-
restProps =
|
|
56449
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
56089
56450
|
|
|
56090
56451
|
var domDataId = useMenuId(eventKey);
|
|
56091
56452
|
|
|
@@ -56114,7 +56475,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56114
56475
|
return {
|
|
56115
56476
|
key: eventKey,
|
|
56116
56477
|
// Note: For legacy code is reversed which not like other antd component
|
|
56117
|
-
keyPath:
|
|
56478
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
56118
56479
|
item: legacyMenuItemRef.current,
|
|
56119
56480
|
domEvent: e
|
|
56120
56481
|
};
|
|
@@ -56125,7 +56486,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56125
56486
|
|
|
56126
56487
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56127
56488
|
active = _useActive.active,
|
|
56128
|
-
activeProps =
|
|
56489
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56129
56490
|
|
|
56130
56491
|
|
|
56131
56492
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56170,7 +56531,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56170
56531
|
optionRoleProps['aria-selected'] = selected;
|
|
56171
56532
|
}
|
|
56172
56533
|
|
|
56173
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56534
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56174
56535
|
ref: legacyMenuItemRef,
|
|
56175
56536
|
elementRef: elementRef,
|
|
56176
56537
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56179,13 +56540,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56179
56540
|
}, restProps, activeProps, optionRoleProps, {
|
|
56180
56541
|
component: "li",
|
|
56181
56542
|
"aria-disabled": disabled,
|
|
56182
|
-
style:
|
|
56183
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56543
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56544
|
+
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),
|
|
56184
56545
|
onClick: onInternalClick,
|
|
56185
56546
|
onKeyDown: onInternalKeyDown,
|
|
56186
56547
|
onFocus: onInternalFocus
|
|
56187
56548
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56188
|
-
props:
|
|
56549
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56189
56550
|
isSelected: selected
|
|
56190
56551
|
}),
|
|
56191
56552
|
icon: mergedItemIcon
|
|
@@ -56238,7 +56599,7 @@ function parseChildren(children, keyPath) {
|
|
|
56238
56599
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56239
56600
|
|
|
56240
56601
|
if (emptyKey) {
|
|
56241
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56602
|
+
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
56242
56603
|
}
|
|
56243
56604
|
|
|
56244
56605
|
var cloneProps = {
|
|
@@ -56286,14 +56647,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56286
56647
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56287
56648
|
var className = _ref.className,
|
|
56288
56649
|
children = _ref.children,
|
|
56289
|
-
restProps =
|
|
56650
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56290
56651
|
|
|
56291
56652
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56292
56653
|
prefixCls = _React$useContext.prefixCls,
|
|
56293
56654
|
mode = _React$useContext.mode,
|
|
56294
56655
|
rtl = _React$useContext.rtl;
|
|
56295
56656
|
|
|
56296
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56657
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", esm_extends_extends({
|
|
56297
56658
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56298
56659
|
}, restProps, {
|
|
56299
56660
|
"data-menu-list": true,
|
|
@@ -56410,11 +56771,11 @@ function PopupTrigger(_ref) {
|
|
|
56410
56771
|
innerVisible = _React$useState2[0],
|
|
56411
56772
|
setInnerVisible = _React$useState2[1];
|
|
56412
56773
|
|
|
56413
|
-
var placement = rtl ?
|
|
56774
|
+
var placement = rtl ? objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placementsRtl), builtinPlacements) : objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, placements), builtinPlacements);
|
|
56414
56775
|
var popupPlacement = popupPlacementMap[mode];
|
|
56415
56776
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56416
56777
|
|
|
56417
|
-
var mergedMotion =
|
|
56778
|
+
var mergedMotion = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, targetMotion), {}, {
|
|
56418
56779
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56419
56780
|
removeOnLeave: false,
|
|
56420
56781
|
motionAppear: true
|
|
@@ -56432,7 +56793,7 @@ function PopupTrigger(_ref) {
|
|
|
56432
56793
|
}, [visible]);
|
|
56433
56794
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56434
56795
|
prefixCls: prefixCls,
|
|
56435
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56796
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56436
56797
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56437
56798
|
getPopupContainer: getPopupContainer,
|
|
56438
56799
|
builtinPlacements: placement,
|
|
@@ -56492,7 +56853,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56492
56853
|
}
|
|
56493
56854
|
}, [mode]); // ================================= Render =================================
|
|
56494
56855
|
|
|
56495
|
-
var mergedMotion =
|
|
56856
|
+
var mergedMotion = objectSpread2_objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56496
56857
|
|
|
56497
56858
|
|
|
56498
56859
|
if (keyPath.length > 1) {
|
|
@@ -56517,7 +56878,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56517
56878
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56518
56879
|
mode: fixedMode,
|
|
56519
56880
|
locked: !sameModeRef.current
|
|
56520
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56881
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, esm_extends_extends({
|
|
56521
56882
|
visible: mergedOpen
|
|
56522
56883
|
}, mergedMotion, {
|
|
56523
56884
|
forceRender: forceSubMenuRender,
|
|
@@ -56580,7 +56941,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56580
56941
|
onTitleClick = props.onTitleClick,
|
|
56581
56942
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56582
56943
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56583
|
-
restProps =
|
|
56944
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
56584
56945
|
|
|
56585
56946
|
var domDataId = useMenuId(eventKey);
|
|
56586
56947
|
|
|
@@ -56623,7 +56984,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56623
56984
|
|
|
56624
56985
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56625
56986
|
active = _useActive.active,
|
|
56626
|
-
activeProps =
|
|
56987
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56627
56988
|
|
|
56628
56989
|
|
|
56629
56990
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -56708,7 +57069,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56708
57069
|
|
|
56709
57070
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
56710
57071
|
|
|
56711
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
57072
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
56712
57073
|
role: "menuitem",
|
|
56713
57074
|
style: directionStyle,
|
|
56714
57075
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -56724,7 +57085,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56724
57085
|
onFocus: onInternalFocus
|
|
56725
57086
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56726
57087
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
56727
|
-
props:
|
|
57088
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56728
57089
|
isOpen: open,
|
|
56729
57090
|
// [Legacy] Not sure why need this mark
|
|
56730
57091
|
isSubMenu: true
|
|
@@ -56762,12 +57123,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56762
57123
|
} // >>>>> List node
|
|
56763
57124
|
|
|
56764
57125
|
|
|
56765
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
57126
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({
|
|
56766
57127
|
role: "none"
|
|
56767
57128
|
}, restProps, {
|
|
56768
57129
|
component: "li",
|
|
56769
57130
|
style: style,
|
|
56770
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
57131
|
+
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)),
|
|
56771
57132
|
onMouseEnter: onInternalMouseEnter,
|
|
56772
57133
|
onMouseLeave: onInternalMouseLeave
|
|
56773
57134
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -56860,7 +57221,7 @@ function focusable(node) {
|
|
|
56860
57221
|
function getFocusNodeList(node) {
|
|
56861
57222
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
56862
57223
|
|
|
56863
|
-
var res =
|
|
57224
|
+
var res = toConsumableArray_toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
56864
57225
|
return focusable(child, includePositive);
|
|
56865
57226
|
});
|
|
56866
57227
|
|
|
@@ -56940,9 +57301,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
56940
57301
|
};
|
|
56941
57302
|
}
|
|
56942
57303
|
|
|
56943
|
-
var inline = (_inline = {},
|
|
56944
|
-
var horizontal = (_horizontal = {},
|
|
56945
|
-
var vertical = (_vertical = {},
|
|
57304
|
+
var inline = (_inline = {}, defineProperty_defineProperty(_inline, UP, prev), defineProperty_defineProperty(_inline, DOWN, next), _inline);
|
|
57305
|
+
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);
|
|
57306
|
+
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);
|
|
56946
57307
|
var offsets = {
|
|
56947
57308
|
inline: inline,
|
|
56948
57309
|
horizontal: horizontal,
|
|
@@ -57306,7 +57667,7 @@ function useKeyRecords() {
|
|
|
57306
57667
|
}, [getKeyPath]);
|
|
57307
57668
|
|
|
57308
57669
|
var getKeys = function getKeys() {
|
|
57309
|
-
var keys =
|
|
57670
|
+
var keys = toConsumableArray_toConsumableArray(key2pathRef.current.keys());
|
|
57310
57671
|
|
|
57311
57672
|
if (overflowKeys.length) {
|
|
57312
57673
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57323,7 +57684,7 @@ function useKeyRecords() {
|
|
|
57323
57684
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57324
57685
|
var pathKeys = new Set();
|
|
57325
57686
|
|
|
57326
|
-
|
|
57687
|
+
toConsumableArray_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57327
57688
|
if (pathKey.startsWith(connectedPath)) {
|
|
57328
57689
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57329
57690
|
}
|
|
@@ -57444,7 +57805,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57444
57805
|
openTransitionName = props.openTransitionName,
|
|
57445
57806
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57446
57807
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57447
|
-
restProps =
|
|
57808
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
57448
57809
|
|
|
57449
57810
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57450
57811
|
|
|
@@ -57598,7 +57959,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57598
57959
|
return key !== targetKey;
|
|
57599
57960
|
});
|
|
57600
57961
|
} else {
|
|
57601
|
-
newSelectKeys = [].concat(
|
|
57962
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57602
57963
|
}
|
|
57603
57964
|
} else {
|
|
57604
57965
|
newSelectKeys = [targetKey];
|
|
@@ -57606,7 +57967,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57606
57967
|
|
|
57607
57968
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57608
57969
|
|
|
57609
|
-
var selectInfo =
|
|
57970
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
57610
57971
|
selectedKeys: newSelectKeys
|
|
57611
57972
|
});
|
|
57612
57973
|
|
|
@@ -57684,13 +58045,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57684
58045
|
);
|
|
57685
58046
|
}); // >>>>> Container
|
|
57686
58047
|
|
|
57687
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58048
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
57688
58049
|
id: id,
|
|
57689
58050
|
ref: mergedRef,
|
|
57690
58051
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
57691
58052
|
component: "ul",
|
|
57692
58053
|
itemComponent: es_MenuItem,
|
|
57693
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58054
|
+
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)),
|
|
57694
58055
|
dir: direction,
|
|
57695
58056
|
style: style,
|
|
57696
58057
|
role: "menu",
|
|
@@ -57784,13 +58145,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
57784
58145
|
title = _ref.title,
|
|
57785
58146
|
eventKey = _ref.eventKey,
|
|
57786
58147
|
children = _ref.children,
|
|
57787
|
-
restProps =
|
|
58148
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
57788
58149
|
|
|
57789
58150
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
57790
58151
|
prefixCls = _React$useContext.prefixCls;
|
|
57791
58152
|
|
|
57792
58153
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
57793
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58154
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
57794
58155
|
onClick: function onClick(e) {
|
|
57795
58156
|
return e.stopPropagation();
|
|
57796
58157
|
},
|
|
@@ -57805,7 +58166,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
57805
58166
|
|
|
57806
58167
|
function MenuItemGroup(_ref2) {
|
|
57807
58168
|
var children = _ref2.children,
|
|
57808
|
-
props =
|
|
58169
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
57809
58170
|
|
|
57810
58171
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
57811
58172
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -57933,7 +58294,7 @@ function Dropdown(props, ref) {
|
|
|
57933
58294
|
visible = props.visible,
|
|
57934
58295
|
_props$trigger = props.trigger,
|
|
57935
58296
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
57936
|
-
otherProps =
|
|
58297
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
57937
58298
|
|
|
57938
58299
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
57939
58300
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58044,12 +58405,12 @@ function Dropdown(props, ref) {
|
|
|
58044
58405
|
triggerHideAction = ['click'];
|
|
58045
58406
|
}
|
|
58046
58407
|
|
|
58047
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58408
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
58048
58409
|
builtinPlacements: placements
|
|
58049
58410
|
}, otherProps), {}, {
|
|
58050
58411
|
prefixCls: prefixCls,
|
|
58051
58412
|
ref: triggerRef,
|
|
58052
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58413
|
+
popupClassName: classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58053
58414
|
popupStyle: overlayStyle,
|
|
58054
58415
|
action: trigger,
|
|
58055
58416
|
showAction: showAction,
|
|
@@ -58253,14 +58614,14 @@ function OperationNode(_ref, ref) {
|
|
|
58253
58614
|
}
|
|
58254
58615
|
}, [open]); // ========================= Render =========================
|
|
58255
58616
|
|
|
58256
|
-
var moreStyle =
|
|
58617
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58257
58618
|
|
|
58258
58619
|
if (!tabs.length) {
|
|
58259
58620
|
moreStyle.visibility = 'hidden';
|
|
58260
58621
|
moreStyle.order = 1;
|
|
58261
58622
|
}
|
|
58262
58623
|
|
|
58263
|
-
var overlayClassName = classnames_default()(
|
|
58624
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58264
58625
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58265
58626
|
prefixCls: dropdownPrefix,
|
|
58266
58627
|
overlay: menu,
|
|
@@ -58539,7 +58900,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58539
58900
|
|
|
58540
58901
|
var assertExtra = {};
|
|
58541
58902
|
|
|
58542
|
-
if (extra &&
|
|
58903
|
+
if (extra && esm_typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58543
58904
|
assertExtra = extra;
|
|
58544
58905
|
} else {
|
|
58545
58906
|
assertExtra.right = extra;
|
|
@@ -58789,7 +59150,7 @@ function TabNavList(props, ref) {
|
|
|
58789
59150
|
}, {
|
|
58790
59151
|
width: addWidth,
|
|
58791
59152
|
height: addHeight
|
|
58792
|
-
},
|
|
59153
|
+
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
58793
59154
|
tabs: tabs
|
|
58794
59155
|
})),
|
|
58795
59156
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -58881,7 +59242,7 @@ function TabNavList(props, ref) {
|
|
|
58881
59242
|
|
|
58882
59243
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
58883
59244
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
58884
|
-
var hiddenTabs = [].concat(
|
|
59245
|
+
var hiddenTabs = [].concat(toConsumableArray_toConsumableArray(startHiddenTabs), toConsumableArray_toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
58885
59246
|
|
|
58886
59247
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
58887
59248
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -58967,7 +59328,7 @@ function TabNavList(props, ref) {
|
|
|
58967
59328
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
58968
59329
|
onResize: onListHolderResize
|
|
58969
59330
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58970
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59331
|
+
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)),
|
|
58971
59332
|
ref: tabsWrapperRef
|
|
58972
59333
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
58973
59334
|
onResize: onListHolderResize
|
|
@@ -58983,13 +59344,13 @@ function TabNavList(props, ref) {
|
|
|
58983
59344
|
prefixCls: prefixCls,
|
|
58984
59345
|
locale: locale,
|
|
58985
59346
|
editable: editable,
|
|
58986
|
-
style:
|
|
59347
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
58987
59348
|
visibility: hasDropdown ? 'hidden' : null
|
|
58988
59349
|
})
|
|
58989
59350
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
58990
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59351
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
58991
59352
|
style: inkStyle
|
|
58992
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59353
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, esm_extends_extends({}, props, {
|
|
58993
59354
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
58994
59355
|
ref: operationsRef,
|
|
58995
59356
|
prefixCls: prefixCls,
|
|
@@ -59029,8 +59390,8 @@ function TabPanelList(_ref) {
|
|
|
59029
59390
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59030
59391
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59031
59392
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59032
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59033
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59393
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), defineProperty_defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59394
|
+
style: activeIndex && tabPaneAnimated ? defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59034
59395
|
}, tabs.map(function (tab) {
|
|
59035
59396
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59036
59397
|
key: tab.key,
|
|
@@ -59090,7 +59451,7 @@ function TabPane(_ref) {
|
|
|
59090
59451
|
tabIndex: active ? 0 : -1,
|
|
59091
59452
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59092
59453
|
"aria-hidden": !active,
|
|
59093
|
-
style:
|
|
59454
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedStyle), style),
|
|
59094
59455
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59095
59456
|
}, (active || visited || forceRender) && children);
|
|
59096
59457
|
}
|
|
@@ -59130,7 +59491,7 @@ function parseTabList(children) {
|
|
|
59130
59491
|
return toArray(children).map(function (node) {
|
|
59131
59492
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59132
59493
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59133
|
-
return
|
|
59494
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
59134
59495
|
key: key
|
|
59135
59496
|
}, node.props), {}, {
|
|
59136
59497
|
node: node
|
|
@@ -59173,7 +59534,7 @@ function Tabs(_ref, ref) {
|
|
|
59173
59534
|
onChange = _ref.onChange,
|
|
59174
59535
|
onTabClick = _ref.onTabClick,
|
|
59175
59536
|
onTabScroll = _ref.onTabScroll,
|
|
59176
|
-
restProps =
|
|
59537
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Tabs_excluded);
|
|
59177
59538
|
|
|
59178
59539
|
var tabs = parseTabList(children);
|
|
59179
59540
|
var rtl = direction === 'rtl';
|
|
@@ -59190,10 +59551,10 @@ function Tabs(_ref, ref) {
|
|
|
59190
59551
|
tabPane: true
|
|
59191
59552
|
};
|
|
59192
59553
|
} else {
|
|
59193
|
-
mergedAnimated =
|
|
59554
|
+
mergedAnimated = objectSpread2_objectSpread2({
|
|
59194
59555
|
inkBar: true,
|
|
59195
59556
|
tabPane: false
|
|
59196
|
-
},
|
|
59557
|
+
}, esm_typeof_typeof(animated) === 'object' ? animated : {});
|
|
59197
59558
|
} // ======================== Mobile ========================
|
|
59198
59559
|
|
|
59199
59560
|
|
|
@@ -59288,7 +59649,7 @@ function Tabs(_ref, ref) {
|
|
|
59288
59649
|
};
|
|
59289
59650
|
var tabNavBar;
|
|
59290
59651
|
|
|
59291
|
-
var tabNavBarProps =
|
|
59652
|
+
var tabNavBarProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, sharedProps), {}, {
|
|
59292
59653
|
editable: editable,
|
|
59293
59654
|
locale: locale,
|
|
59294
59655
|
moreIcon: moreIcon,
|
|
@@ -59312,11 +59673,11 @@ function Tabs(_ref, ref) {
|
|
|
59312
59673
|
tabs: tabs,
|
|
59313
59674
|
prefixCls: prefixCls
|
|
59314
59675
|
}
|
|
59315
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59676
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
59316
59677
|
ref: ref,
|
|
59317
59678
|
id: id,
|
|
59318
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59319
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59679
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59680
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, esm_extends_extends({
|
|
59320
59681
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59321
59682
|
}, sharedProps, {
|
|
59322
59683
|
animated: mergedAnimated
|
|
@@ -59514,7 +59875,7 @@ var Pager = function Pager(props) {
|
|
|
59514
59875
|
var _classNames;
|
|
59515
59876
|
|
|
59516
59877
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59517
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59878
|
+
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));
|
|
59518
59879
|
|
|
59519
59880
|
var handleClick = function handleClick() {
|
|
59520
59881
|
props.onClick(props.page);
|
|
@@ -59559,14 +59920,14 @@ var Pager = function Pager(props) {
|
|
|
59559
59920
|
|
|
59560
59921
|
|
|
59561
59922
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59562
|
-
|
|
59923
|
+
inherits_inherits(Options, _React$Component);
|
|
59563
59924
|
|
|
59564
|
-
var _super =
|
|
59925
|
+
var _super = createSuper_createSuper(Options);
|
|
59565
59926
|
|
|
59566
59927
|
function Options() {
|
|
59567
59928
|
var _this;
|
|
59568
59929
|
|
|
59569
|
-
|
|
59930
|
+
classCallCheck_classCallCheck(this, Options);
|
|
59570
59931
|
|
|
59571
59932
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59572
59933
|
args[_key] = arguments[_key];
|
|
@@ -59632,7 +59993,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59632
59993
|
return _this;
|
|
59633
59994
|
}
|
|
59634
59995
|
|
|
59635
|
-
|
|
59996
|
+
createClass_createClass(Options, [{
|
|
59636
59997
|
key: "getValidValue",
|
|
59637
59998
|
value: function getValidValue() {
|
|
59638
59999
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -59789,14 +60150,14 @@ function calculatePage(p, state, props) {
|
|
|
59789
60150
|
}
|
|
59790
60151
|
|
|
59791
60152
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
59792
|
-
|
|
60153
|
+
inherits_inherits(Pagination, _React$Component);
|
|
59793
60154
|
|
|
59794
|
-
var _super =
|
|
60155
|
+
var _super = createSuper_createSuper(Pagination);
|
|
59795
60156
|
|
|
59796
60157
|
function Pagination(props) {
|
|
59797
60158
|
var _this;
|
|
59798
60159
|
|
|
59799
|
-
|
|
60160
|
+
classCallCheck_classCallCheck(this, Pagination);
|
|
59800
60161
|
|
|
59801
60162
|
_this = _super.call(this, props);
|
|
59802
60163
|
|
|
@@ -59817,7 +60178,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
59817
60178
|
});
|
|
59818
60179
|
|
|
59819
60180
|
if (typeof icon === 'function') {
|
|
59820
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60181
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, objectSpread2_objectSpread2({}, _this.props));
|
|
59821
60182
|
}
|
|
59822
60183
|
|
|
59823
60184
|
return iconNode;
|
|
@@ -60039,7 +60400,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60039
60400
|
return _this;
|
|
60040
60401
|
}
|
|
60041
60402
|
|
|
60042
|
-
|
|
60403
|
+
createClass_createClass(Pagination, [{
|
|
60043
60404
|
key: "componentDidUpdate",
|
|
60044
60405
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60045
60406
|
// When current page change, fix focused style of prev item
|
|
@@ -60187,8 +60548,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60187
60548
|
}, gotoButton);
|
|
60188
60549
|
}
|
|
60189
60550
|
|
|
60190
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60191
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60551
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60552
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60192
60553
|
style: style,
|
|
60193
60554
|
ref: this.savePaginationNode
|
|
60194
60555
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60196,7 +60557,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60196
60557
|
onClick: this.prev,
|
|
60197
60558
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60198
60559
|
onKeyPress: this.runIfEnterPrev,
|
|
60199
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60560
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60200
60561
|
"aria-disabled": !this.hasPrev()
|
|
60201
60562
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60202
60563
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60217,7 +60578,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60217
60578
|
onClick: this.next,
|
|
60218
60579
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60219
60580
|
onKeyPress: this.runIfEnterNext,
|
|
60220
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60581
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60221
60582
|
"aria-disabled": !this.hasNext()
|
|
60222
60583
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60223
60584
|
}
|
|
@@ -60233,7 +60594,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60233
60594
|
};
|
|
60234
60595
|
|
|
60235
60596
|
if (!allPages) {
|
|
60236
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60597
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60237
60598
|
key: "noPager",
|
|
60238
60599
|
page: 1,
|
|
60239
60600
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60242,7 +60603,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60242
60603
|
|
|
60243
60604
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60244
60605
|
var active = current === i;
|
|
60245
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60606
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60246
60607
|
key: i,
|
|
60247
60608
|
page: i,
|
|
60248
60609
|
active: active
|
|
@@ -60259,7 +60620,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60259
60620
|
onClick: this.jumpPrev,
|
|
60260
60621
|
tabIndex: "0",
|
|
60261
60622
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60262
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60623
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60263
60624
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60264
60625
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60265
60626
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60267,7 +60628,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60267
60628
|
tabIndex: "0",
|
|
60268
60629
|
onClick: this.jumpNext,
|
|
60269
60630
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60270
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60631
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60271
60632
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60272
60633
|
}
|
|
60273
60634
|
|
|
@@ -60354,8 +60715,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60354
60715
|
|
|
60355
60716
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60356
60717
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60357
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60358
|
-
className: classnames_default()(prefixCls, className,
|
|
60718
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60719
|
+
className: classnames_default()(prefixCls, className, defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60359
60720
|
style: style,
|
|
60360
60721
|
unselectable: "unselectable",
|
|
60361
60722
|
ref: this.savePaginationNode
|
|
@@ -60364,14 +60725,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60364
60725
|
onClick: this.prev,
|
|
60365
60726
|
tabIndex: prevDisabled ? null : 0,
|
|
60366
60727
|
onKeyPress: this.runIfEnterPrev,
|
|
60367
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60728
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60368
60729
|
"aria-disabled": prevDisabled
|
|
60369
60730
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60370
60731
|
title: showTitle ? locale.next_page : null,
|
|
60371
60732
|
onClick: this.next,
|
|
60372
60733
|
tabIndex: nextDisabled ? null : 0,
|
|
60373
60734
|
onKeyPress: this.runIfEnterNext,
|
|
60374
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60735
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60375
60736
|
"aria-disabled": nextDisabled
|
|
60376
60737
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60377
60738
|
disabled: disabled,
|
|
@@ -60449,7 +60810,7 @@ Pagination.defaultProps = {
|
|
|
60449
60810
|
|
|
60450
60811
|
|
|
60451
60812
|
var MiniSelect = function MiniSelect(props) {
|
|
60452
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60813
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, esm_extends_extends({
|
|
60453
60814
|
size: "small"
|
|
60454
60815
|
}, props));
|
|
60455
60816
|
};
|
|
@@ -60510,7 +60871,7 @@ var responsiveObserve = {
|
|
|
60510
60871
|
var listener = function listener(_ref) {
|
|
60511
60872
|
var matches = _ref.matches;
|
|
60512
60873
|
|
|
60513
|
-
_this2.dispatch(
|
|
60874
|
+
_this2.dispatch(esm_extends_extends(esm_extends_extends({}, screens), defineProperty_defineProperty({}, screen, matches)));
|
|
60514
60875
|
};
|
|
60515
60876
|
|
|
60516
60877
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -60651,13 +61012,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60651
61012
|
var renderPagination = function renderPagination(contextLocale) {
|
|
60652
61013
|
var _classNames;
|
|
60653
61014
|
|
|
60654
|
-
var locale =
|
|
61015
|
+
var locale = esm_extends_extends(esm_extends_extends({}, contextLocale), customLocale);
|
|
60655
61016
|
|
|
60656
61017
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
60657
61018
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
60658
61019
|
var extendedClassName = classnames_default()((_classNames = {
|
|
60659
61020
|
mini: isSmall
|
|
60660
|
-
},
|
|
61021
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
60661
61022
|
|
|
60662
61023
|
if (minimalistic) {
|
|
60663
61024
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -60694,7 +61055,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60694
61055
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
60695
61056
|
}
|
|
60696
61057
|
|
|
60697
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61058
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, esm_extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
60698
61059
|
prefixCls: prefixCls,
|
|
60699
61060
|
selectPrefixCls: selectPrefixCls,
|
|
60700
61061
|
className: extendedClassName,
|
|
@@ -61262,7 +61623,7 @@ function ListItem(_ref) {
|
|
|
61262
61623
|
liveName = data.live_name,
|
|
61263
61624
|
beginTime = data.begin_time,
|
|
61264
61625
|
endTime = data.end_time,
|
|
61265
|
-
|
|
61626
|
+
coverUrl = data.cover_url,
|
|
61266
61627
|
status = data.status;
|
|
61267
61628
|
|
|
61268
61629
|
var handleDetailClick = /*#__PURE__*/function () {
|
|
@@ -61306,7 +61667,7 @@ function ListItem(_ref) {
|
|
|
61306
61667
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61307
61668
|
className: list_ListItem_index_module.left
|
|
61308
61669
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
61309
|
-
src:
|
|
61670
|
+
src: coverUrl || live,
|
|
61310
61671
|
errorImg: live,
|
|
61311
61672
|
className: list_ListItem_index_module.avatar
|
|
61312
61673
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|