@x-edu/live-player 0.0.41 → 0.0.42
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 +473 -509
- package/package.json +1 -1
|
@@ -2764,7 +2764,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2764
2764
|
|
|
2765
2765
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2766
2766
|
// Module
|
|
2767
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}.index-module_mobileLoadMore_43-yu{flex:0 0 100%!important;text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}.index-module_padList_YQpXl{display:flex;flex-wrap:wrap;gap:24px}.index-module_padList_YQpXl>*{flex:0 0 calc(33.33333% - 16px);box-sizing:border-box}", ""]);
|
|
2767
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}.index-module_mobileLoadMore_43-yu{flex:0 0 100%!important;text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}.index-module_padList_YQpXl{display:flex;flex-wrap:wrap;gap:24px}.index-module_padList_YQpXl>*{flex:0 0 calc(33.33333% - 16px);box-sizing:border-box;overflow:hidden}", ""]);
|
|
2768
2768
|
// Exports
|
|
2769
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2770
2770
|
"container": "index-module_container_y+him",
|
|
@@ -25745,7 +25745,7 @@ module.exports = __webpack_require__(5666);
|
|
|
25745
25745
|
/***/ 3006:
|
|
25746
25746
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25747
25747
|
|
|
25748
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25748
|
+
var _regeneratorRuntime = __webpack_require__(5273);
|
|
25749
25749
|
|
|
25750
25750
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25751
25751
|
|
|
@@ -33356,6 +33356,9 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33356
33356
|
|
|
33357
33357
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33358
33358
|
|
|
33359
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33360
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
33361
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33359
33362
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33360
33363
|
|
|
33361
33364
|
|
|
@@ -33422,9 +33425,9 @@ function isSourceReady(_x) {
|
|
|
33422
33425
|
}
|
|
33423
33426
|
|
|
33424
33427
|
function _isSourceReady() {
|
|
33425
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33428
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
33426
33429
|
var newLiveInfo;
|
|
33427
|
-
return
|
|
33430
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33428
33431
|
while (1) {
|
|
33429
33432
|
switch (_context.prev = _context.next) {
|
|
33430
33433
|
case 0:
|
|
@@ -33601,12 +33604,12 @@ function usePullSource(_ref) {
|
|
|
33601
33604
|
}
|
|
33602
33605
|
|
|
33603
33606
|
function _checkLiveReadyInterval() {
|
|
33604
|
-
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33607
|
+
_checkLiveReadyInterval = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33605
33608
|
var i,
|
|
33606
33609
|
liveStatus,
|
|
33607
33610
|
isSourceReady,
|
|
33608
33611
|
_args = arguments;
|
|
33609
|
-
return
|
|
33612
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33610
33613
|
while (1) {
|
|
33611
33614
|
switch (_context.prev = _context.next) {
|
|
33612
33615
|
case 0:
|
|
@@ -33692,8 +33695,8 @@ function checkSourceReady(_x) {
|
|
|
33692
33695
|
}
|
|
33693
33696
|
|
|
33694
33697
|
function _checkSourceReady() {
|
|
33695
|
-
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33696
|
-
return
|
|
33698
|
+
_checkSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(url) {
|
|
33699
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
33697
33700
|
while (1) {
|
|
33698
33701
|
switch (_context2.prev = _context2.next) {
|
|
33699
33702
|
case 0:
|
|
@@ -33726,9 +33729,9 @@ function getLiveNewStatus(_x2) {
|
|
|
33726
33729
|
}
|
|
33727
33730
|
|
|
33728
33731
|
function _getLiveNewStatus() {
|
|
33729
|
-
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33732
|
+
_getLiveNewStatus = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(liveInfo) {
|
|
33730
33733
|
var newLiveInfo;
|
|
33731
|
-
return
|
|
33734
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
33732
33735
|
while (1) {
|
|
33733
33736
|
switch (_context3.prev = _context3.next) {
|
|
33734
33737
|
case 0:
|
|
@@ -34378,6 +34381,39 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34378
34381
|
// style dependencies
|
|
34379
34382
|
|
|
34380
34383
|
|
|
34384
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34385
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
34386
|
+
if (key in obj) {
|
|
34387
|
+
Object.defineProperty(obj, key, {
|
|
34388
|
+
value: value,
|
|
34389
|
+
enumerable: true,
|
|
34390
|
+
configurable: true,
|
|
34391
|
+
writable: true
|
|
34392
|
+
});
|
|
34393
|
+
} else {
|
|
34394
|
+
obj[key] = value;
|
|
34395
|
+
}
|
|
34396
|
+
|
|
34397
|
+
return obj;
|
|
34398
|
+
}
|
|
34399
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34400
|
+
function esm_extends_extends() {
|
|
34401
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
34402
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34403
|
+
var source = arguments[i];
|
|
34404
|
+
|
|
34405
|
+
for (var key in source) {
|
|
34406
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34407
|
+
target[key] = source[key];
|
|
34408
|
+
}
|
|
34409
|
+
}
|
|
34410
|
+
}
|
|
34411
|
+
|
|
34412
|
+
return target;
|
|
34413
|
+
};
|
|
34414
|
+
|
|
34415
|
+
return esm_extends_extends.apply(this, arguments);
|
|
34416
|
+
}
|
|
34381
34417
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34382
34418
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34383
34419
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34412,6 +34448,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34412
34448
|
|
|
34413
34449
|
return _arr;
|
|
34414
34450
|
}
|
|
34451
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34452
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34453
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34454
|
+
|
|
34455
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34456
|
+
arr2[i] = arr[i];
|
|
34457
|
+
}
|
|
34458
|
+
|
|
34459
|
+
return arr2;
|
|
34460
|
+
}
|
|
34461
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34462
|
+
|
|
34463
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34464
|
+
if (!o) return;
|
|
34465
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34466
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34467
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34468
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34469
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34470
|
+
}
|
|
34415
34471
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34416
34472
|
function nonIterableRest_nonIterableRest() {
|
|
34417
34473
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34422,7 +34478,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34422
34478
|
|
|
34423
34479
|
|
|
34424
34480
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34425
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34481
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34426
34482
|
}
|
|
34427
34483
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34428
34484
|
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
@@ -34772,16 +34828,6 @@ var cacheStyle = {};
|
|
|
34772
34828
|
}
|
|
34773
34829
|
}
|
|
34774
34830
|
});
|
|
34775
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34776
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34777
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34778
|
-
|
|
34779
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34780
|
-
arr2[i] = arr[i];
|
|
34781
|
-
}
|
|
34782
|
-
|
|
34783
|
-
return arr2;
|
|
34784
|
-
}
|
|
34785
34831
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34786
34832
|
|
|
34787
34833
|
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
@@ -34791,16 +34837,6 @@ function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
|
34791
34837
|
function iterableToArray_iterableToArray(iter) {
|
|
34792
34838
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34793
34839
|
}
|
|
34794
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34795
|
-
|
|
34796
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34797
|
-
if (!o) return;
|
|
34798
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34799
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34800
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34801
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34802
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34803
|
-
}
|
|
34804
34840
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34805
34841
|
function nonIterableSpread_nonIterableSpread() {
|
|
34806
34842
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -35203,39 +35239,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
35203
35239
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
35204
35240
|
|
|
35205
35241
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
35206
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35207
|
-
function esm_extends_extends() {
|
|
35208
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
35209
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
35210
|
-
var source = arguments[i];
|
|
35211
|
-
|
|
35212
|
-
for (var key in source) {
|
|
35213
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35214
|
-
target[key] = source[key];
|
|
35215
|
-
}
|
|
35216
|
-
}
|
|
35217
|
-
}
|
|
35218
|
-
|
|
35219
|
-
return target;
|
|
35220
|
-
};
|
|
35221
|
-
|
|
35222
|
-
return esm_extends_extends.apply(this, arguments);
|
|
35223
|
-
}
|
|
35224
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
35225
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
35226
|
-
if (key in obj) {
|
|
35227
|
-
Object.defineProperty(obj, key, {
|
|
35228
|
-
value: value,
|
|
35229
|
-
enumerable: true,
|
|
35230
|
-
configurable: true,
|
|
35231
|
-
writable: true
|
|
35232
|
-
});
|
|
35233
|
-
} else {
|
|
35234
|
-
obj[key] = value;
|
|
35235
|
-
}
|
|
35236
|
-
|
|
35237
|
-
return obj;
|
|
35238
|
-
}
|
|
35239
35242
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
35240
35243
|
|
|
35241
35244
|
|
|
@@ -35276,52 +35279,6 @@ function objectSpread2_objectSpread2(target) {
|
|
|
35276
35279
|
|
|
35277
35280
|
return target;
|
|
35278
35281
|
}
|
|
35279
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
35280
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
35281
|
-
if (Array.isArray(arr)) return arr;
|
|
35282
|
-
}
|
|
35283
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
35284
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
35285
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
35286
|
-
|
|
35287
|
-
if (_i == null) return;
|
|
35288
|
-
var _arr = [];
|
|
35289
|
-
var _n = true;
|
|
35290
|
-
var _d = false;
|
|
35291
|
-
|
|
35292
|
-
var _s, _e;
|
|
35293
|
-
|
|
35294
|
-
try {
|
|
35295
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
35296
|
-
_arr.push(_s.value);
|
|
35297
|
-
|
|
35298
|
-
if (i && _arr.length === i) break;
|
|
35299
|
-
}
|
|
35300
|
-
} catch (err) {
|
|
35301
|
-
_d = true;
|
|
35302
|
-
_e = err;
|
|
35303
|
-
} finally {
|
|
35304
|
-
try {
|
|
35305
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
35306
|
-
} finally {
|
|
35307
|
-
if (_d) throw _e;
|
|
35308
|
-
}
|
|
35309
|
-
}
|
|
35310
|
-
|
|
35311
|
-
return _arr;
|
|
35312
|
-
}
|
|
35313
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
35314
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
35315
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35316
|
-
}
|
|
35317
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
35318
|
-
|
|
35319
|
-
|
|
35320
|
-
|
|
35321
|
-
|
|
35322
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
35323
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
35324
|
-
}
|
|
35325
35282
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
35326
35283
|
/**
|
|
35327
35284
|
* @ignore
|
|
@@ -35988,7 +35945,7 @@ function pickAttrs(props) {
|
|
|
35988
35945
|
aria: true
|
|
35989
35946
|
};
|
|
35990
35947
|
} else {
|
|
35991
|
-
mergedConfig =
|
|
35948
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
35992
35949
|
}
|
|
35993
35950
|
|
|
35994
35951
|
var attrs = {};
|
|
@@ -36021,7 +35978,7 @@ var react_is = __webpack_require__(9864);
|
|
|
36021
35978
|
function fillRef(ref, node) {
|
|
36022
35979
|
if (typeof ref === 'function') {
|
|
36023
35980
|
ref(node);
|
|
36024
|
-
} else if (
|
|
35981
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
36025
35982
|
ref.current = node;
|
|
36026
35983
|
}
|
|
36027
35984
|
}
|
|
@@ -36131,7 +36088,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
36131
36088
|
function getTransitionName(transitionName, transitionType) {
|
|
36132
36089
|
if (!transitionName) return null;
|
|
36133
36090
|
|
|
36134
|
-
if (
|
|
36091
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
36135
36092
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
36136
36093
|
return match[1].toUpperCase();
|
|
36137
36094
|
});
|
|
@@ -36424,13 +36381,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36424
36381
|
|
|
36425
36382
|
switch (status) {
|
|
36426
36383
|
case 'appear':
|
|
36427
|
-
return _ref2 = {},
|
|
36384
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36428
36385
|
|
|
36429
36386
|
case 'enter':
|
|
36430
|
-
return _ref3 = {},
|
|
36387
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36431
36388
|
|
|
36432
36389
|
case 'leave':
|
|
36433
|
-
return _ref4 = {},
|
|
36390
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36434
36391
|
|
|
36435
36392
|
default:
|
|
36436
36393
|
return {};
|
|
@@ -36538,7 +36495,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36538
36495
|
var mergedStyle = style;
|
|
36539
36496
|
|
|
36540
36497
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36541
|
-
mergedStyle =
|
|
36498
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
36542
36499
|
transition: 'none'
|
|
36543
36500
|
}, mergedStyle);
|
|
36544
36501
|
}
|
|
@@ -36553,17 +36510,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36553
36510
|
|
|
36554
36511
|
|
|
36555
36512
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36556
|
-
|
|
36513
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
36557
36514
|
|
|
36558
|
-
var _super =
|
|
36515
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
36559
36516
|
|
|
36560
36517
|
function DomWrapper() {
|
|
36561
|
-
|
|
36518
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
36562
36519
|
|
|
36563
36520
|
return _super.apply(this, arguments);
|
|
36564
36521
|
}
|
|
36565
36522
|
|
|
36566
|
-
|
|
36523
|
+
createClass_createClass(DomWrapper, [{
|
|
36567
36524
|
key: "render",
|
|
36568
36525
|
value: function render() {
|
|
36569
36526
|
return this.props.children;
|
|
@@ -36599,7 +36556,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36599
36556
|
function genCSSMotion(config) {
|
|
36600
36557
|
var transitionSupport = config;
|
|
36601
36558
|
|
|
36602
|
-
if (
|
|
36559
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
36603
36560
|
transitionSupport = config.transitionSupport;
|
|
36604
36561
|
}
|
|
36605
36562
|
|
|
@@ -36657,7 +36614,7 @@ function genCSSMotion(config) {
|
|
|
36657
36614
|
|
|
36658
36615
|
var motionChildren;
|
|
36659
36616
|
|
|
36660
|
-
var mergedProps =
|
|
36617
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
36661
36618
|
visible: visible
|
|
36662
36619
|
});
|
|
36663
36620
|
|
|
@@ -36667,13 +36624,13 @@ function genCSSMotion(config) {
|
|
|
36667
36624
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36668
36625
|
// Stable children
|
|
36669
36626
|
if (mergedVisible) {
|
|
36670
|
-
motionChildren = children(
|
|
36627
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
36671
36628
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36672
|
-
motionChildren = children(
|
|
36629
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36673
36630
|
className: leavedClassName
|
|
36674
36631
|
}), setNodeRef);
|
|
36675
36632
|
} else if (forceRender) {
|
|
36676
|
-
motionChildren = children(
|
|
36633
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36677
36634
|
style: {
|
|
36678
36635
|
display: 'none'
|
|
36679
36636
|
}
|
|
@@ -36695,8 +36652,8 @@ function genCSSMotion(config) {
|
|
|
36695
36652
|
statusSuffix = 'start';
|
|
36696
36653
|
}
|
|
36697
36654
|
|
|
36698
|
-
motionChildren = children(
|
|
36699
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36655
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
36656
|
+
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)),
|
|
36700
36657
|
style: statusStyle
|
|
36701
36658
|
}), setNodeRef);
|
|
36702
36659
|
}
|
|
@@ -36709,6 +36666,41 @@ function genCSSMotion(config) {
|
|
|
36709
36666
|
return CSSMotion;
|
|
36710
36667
|
}
|
|
36711
36668
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36669
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36670
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36671
|
+
if (source == null) return {};
|
|
36672
|
+
var target = {};
|
|
36673
|
+
var sourceKeys = Object.keys(source);
|
|
36674
|
+
var key, i;
|
|
36675
|
+
|
|
36676
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
36677
|
+
key = sourceKeys[i];
|
|
36678
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36679
|
+
target[key] = source[key];
|
|
36680
|
+
}
|
|
36681
|
+
|
|
36682
|
+
return target;
|
|
36683
|
+
}
|
|
36684
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36685
|
+
|
|
36686
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36687
|
+
if (source == null) return {};
|
|
36688
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36689
|
+
var key, i;
|
|
36690
|
+
|
|
36691
|
+
if (Object.getOwnPropertySymbols) {
|
|
36692
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36693
|
+
|
|
36694
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36695
|
+
key = sourceSymbolKeys[i];
|
|
36696
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36697
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36698
|
+
target[key] = source[key];
|
|
36699
|
+
}
|
|
36700
|
+
}
|
|
36701
|
+
|
|
36702
|
+
return target;
|
|
36703
|
+
}
|
|
36712
36704
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36713
36705
|
|
|
36714
36706
|
|
|
@@ -36719,7 +36711,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36719
36711
|
function wrapKeyToObject(key) {
|
|
36720
36712
|
var keyObj;
|
|
36721
36713
|
|
|
36722
|
-
if (key &&
|
|
36714
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36723
36715
|
keyObj = key;
|
|
36724
36716
|
} else {
|
|
36725
36717
|
keyObj = {
|
|
@@ -36727,7 +36719,7 @@ function wrapKeyToObject(key) {
|
|
|
36727
36719
|
};
|
|
36728
36720
|
}
|
|
36729
36721
|
|
|
36730
|
-
return
|
|
36722
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36731
36723
|
key: String(keyObj.key)
|
|
36732
36724
|
});
|
|
36733
36725
|
}
|
|
@@ -36754,14 +36746,14 @@ function diffKeys() {
|
|
|
36754
36746
|
// New added keys should add before current key
|
|
36755
36747
|
if (currentIndex < i) {
|
|
36756
36748
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36757
|
-
return
|
|
36749
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36758
36750
|
status: STATUS_ADD
|
|
36759
36751
|
});
|
|
36760
36752
|
}));
|
|
36761
36753
|
currentIndex = i;
|
|
36762
36754
|
}
|
|
36763
36755
|
|
|
36764
|
-
list.push(
|
|
36756
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
36765
36757
|
status: STATUS_KEEP
|
|
36766
36758
|
}));
|
|
36767
36759
|
currentIndex += 1;
|
|
@@ -36772,7 +36764,7 @@ function diffKeys() {
|
|
|
36772
36764
|
|
|
36773
36765
|
|
|
36774
36766
|
if (!hit) {
|
|
36775
|
-
list.push(
|
|
36767
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
36776
36768
|
status: STATUS_REMOVE
|
|
36777
36769
|
}));
|
|
36778
36770
|
}
|
|
@@ -36780,7 +36772,7 @@ function diffKeys() {
|
|
|
36780
36772
|
|
|
36781
36773
|
if (currentIndex < currentLen) {
|
|
36782
36774
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36783
|
-
return
|
|
36775
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
36784
36776
|
status: STATUS_ADD
|
|
36785
36777
|
});
|
|
36786
36778
|
}));
|
|
@@ -36841,14 +36833,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36841
36833
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36842
36834
|
|
|
36843
36835
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36844
|
-
|
|
36836
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
36845
36837
|
|
|
36846
|
-
var _super =
|
|
36838
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
36847
36839
|
|
|
36848
36840
|
function CSSMotionList() {
|
|
36849
36841
|
var _this;
|
|
36850
36842
|
|
|
36851
|
-
|
|
36843
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
36852
36844
|
|
|
36853
36845
|
_this = _super.apply(this, arguments);
|
|
36854
36846
|
_this.state = {
|
|
@@ -36861,7 +36853,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36861
36853
|
return {
|
|
36862
36854
|
keyEntities: keyEntities.map(function (entity) {
|
|
36863
36855
|
if (entity.key !== removeKey) return entity;
|
|
36864
|
-
return
|
|
36856
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
36865
36857
|
status: STATUS_REMOVED
|
|
36866
36858
|
});
|
|
36867
36859
|
})
|
|
@@ -36872,7 +36864,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36872
36864
|
return _this;
|
|
36873
36865
|
}
|
|
36874
36866
|
|
|
36875
|
-
|
|
36867
|
+
createClass_createClass(CSSMotionList, [{
|
|
36876
36868
|
key: "render",
|
|
36877
36869
|
value: function render() {
|
|
36878
36870
|
var _this2 = this;
|
|
@@ -36883,7 +36875,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36883
36875
|
component = _this$props.component,
|
|
36884
36876
|
children = _this$props.children,
|
|
36885
36877
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36886
|
-
restProps =
|
|
36878
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36887
36879
|
|
|
36888
36880
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36889
36881
|
var motionProps = {};
|
|
@@ -36894,10 +36886,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36894
36886
|
delete restProps.keys;
|
|
36895
36887
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36896
36888
|
var status = _ref2.status,
|
|
36897
|
-
eventProps =
|
|
36889
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
36898
36890
|
|
|
36899
36891
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36900
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36892
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
36901
36893
|
key: eventProps.key,
|
|
36902
36894
|
visible: visible,
|
|
36903
36895
|
eventProps: eventProps,
|
|
@@ -37097,7 +37089,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
37097
37089
|
}); // ============================= Style ==============================
|
|
37098
37090
|
|
|
37099
37091
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
37100
|
-
_React$useState2 =
|
|
37092
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
37101
37093
|
transformOrigin = _React$useState2[0],
|
|
37102
37094
|
setTransformOrigin = _React$useState2[1];
|
|
37103
37095
|
|
|
@@ -37243,7 +37235,7 @@ function Dialog(props) {
|
|
|
37243
37235
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
37244
37236
|
|
|
37245
37237
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
37246
|
-
_React$useState2 =
|
|
37238
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
37247
37239
|
animatedVisible = _React$useState2[0],
|
|
37248
37240
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
37249
37241
|
|
|
@@ -37430,7 +37422,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37430
37422
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37431
37423
|
|
|
37432
37424
|
if (getContainer === false) {
|
|
37433
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37425
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37434
37426
|
getOpenCount: function getOpenCount() {
|
|
37435
37427
|
return 2;
|
|
37436
37428
|
} // 不对 body 做任何操作。。
|
|
@@ -37448,7 +37440,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37448
37440
|
forceRender: forceRender,
|
|
37449
37441
|
getContainer: getContainer
|
|
37450
37442
|
}, function (childProps) {
|
|
37451
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
37443
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
37452
37444
|
destroyOnClose: destroyOnClose,
|
|
37453
37445
|
afterClose: function afterClose() {
|
|
37454
37446
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37483,8 +37475,8 @@ function getConfirmLocale() {
|
|
|
37483
37475
|
|
|
37484
37476
|
|
|
37485
37477
|
|
|
37486
|
-
var UnreachableException = /*#__PURE__*/
|
|
37487
|
-
|
|
37478
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
37479
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
37488
37480
|
|
|
37489
37481
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37490
37482
|
});
|
|
@@ -37547,8 +37539,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37547
37539
|
console.warn(new UnreachableException(size).error);
|
|
37548
37540
|
}
|
|
37549
37541
|
|
|
37550
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37551
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
37542
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37543
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
37552
37544
|
className: classes
|
|
37553
37545
|
}));
|
|
37554
37546
|
});
|
|
@@ -37619,14 +37611,14 @@ function isNotGrey(color) {
|
|
|
37619
37611
|
}
|
|
37620
37612
|
|
|
37621
37613
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37622
|
-
|
|
37614
|
+
inherits_inherits(Wave, _React$Component);
|
|
37623
37615
|
|
|
37624
|
-
var _super =
|
|
37616
|
+
var _super = createSuper_createSuper(Wave);
|
|
37625
37617
|
|
|
37626
37618
|
function Wave() {
|
|
37627
37619
|
var _this;
|
|
37628
37620
|
|
|
37629
|
-
|
|
37621
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
37630
37622
|
|
|
37631
37623
|
_this = _super.apply(this, arguments);
|
|
37632
37624
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37646,7 +37638,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37646
37638
|
|
|
37647
37639
|
_this.extraNode = document.createElement('div');
|
|
37648
37640
|
|
|
37649
|
-
var _assertThisInitialize =
|
|
37641
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
37650
37642
|
extraNode = _assertThisInitialize.extraNode;
|
|
37651
37643
|
|
|
37652
37644
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37753,7 +37745,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37753
37745
|
return _this;
|
|
37754
37746
|
}
|
|
37755
37747
|
|
|
37756
|
-
|
|
37748
|
+
createClass_createClass(Wave, [{
|
|
37757
37749
|
key: "componentDidMount",
|
|
37758
37750
|
value: function componentDidMount() {
|
|
37759
37751
|
var node = this.containerRef.current;
|
|
@@ -37980,7 +37972,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37980
37972
|
var isPrevChildPure = false;
|
|
37981
37973
|
var childList = [];
|
|
37982
37974
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37983
|
-
var type =
|
|
37975
|
+
var type = esm_typeof_typeof(child);
|
|
37984
37976
|
|
|
37985
37977
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37986
37978
|
|
|
@@ -38080,7 +38072,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38080
38072
|
}; // =============== Update Loading ===============
|
|
38081
38073
|
|
|
38082
38074
|
|
|
38083
|
-
var loadingOrDelay =
|
|
38075
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
38084
38076
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
38085
38077
|
clearTimeout(delayTimeoutRef.current);
|
|
38086
38078
|
|
|
@@ -38120,7 +38112,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38120
38112
|
var sizeFullname = customizeSize || size;
|
|
38121
38113
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
38122
38114
|
var iconType = innerLoading ? 'loading' : icon;
|
|
38123
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
38115
|
+
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);
|
|
38124
38116
|
var iconNode;
|
|
38125
38117
|
|
|
38126
38118
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -38139,14 +38131,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
38139
38131
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
38140
38132
|
|
|
38141
38133
|
if (linkButtonRestProps.href !== undefined) {
|
|
38142
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
38134
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
38143
38135
|
className: classes,
|
|
38144
38136
|
onClick: handleClick,
|
|
38145
38137
|
ref: buttonRef
|
|
38146
38138
|
}), iconNode, kids);
|
|
38147
38139
|
}
|
|
38148
38140
|
|
|
38149
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
38141
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
38150
38142
|
type: htmlType,
|
|
38151
38143
|
className: classes,
|
|
38152
38144
|
onClick: handleClick,
|
|
@@ -38324,9 +38316,9 @@ var Modal = function Modal(props) {
|
|
|
38324
38316
|
okType = props.okType,
|
|
38325
38317
|
cancelText = props.cancelText,
|
|
38326
38318
|
confirmLoading = props.confirmLoading;
|
|
38327
|
-
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,
|
|
38319
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({
|
|
38328
38320
|
onClick: handleCancel
|
|
38329
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
38321
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
38330
38322
|
loading: confirmLoading,
|
|
38331
38323
|
onClick: handleOk
|
|
38332
38324
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -38361,8 +38353,8 @@ var Modal = function Modal(props) {
|
|
|
38361
38353
|
type: "close",
|
|
38362
38354
|
className: "".concat(prefixCls, "-close-icon")
|
|
38363
38355
|
}));
|
|
38364
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
38365
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
38356
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
38357
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
38366
38358
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
38367
38359
|
prefixCls: prefixCls,
|
|
38368
38360
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38488,7 +38480,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38488
38480
|
children = props.children,
|
|
38489
38481
|
prefixCls = props.prefixCls,
|
|
38490
38482
|
buttonProps = props.buttonProps;
|
|
38491
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
38483
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
38492
38484
|
onClick: onClick,
|
|
38493
38485
|
loading: loading,
|
|
38494
38486
|
prefixCls: prefixCls
|
|
@@ -40004,7 +39996,7 @@ function get(entity, path) {
|
|
|
40004
39996
|
|
|
40005
39997
|
|
|
40006
39998
|
function _toArray(arr) {
|
|
40007
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39999
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
40008
40000
|
}
|
|
40009
40001
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
40010
40002
|
|
|
@@ -40026,9 +40018,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
40026
40018
|
if (!entity && typeof path === 'number') {
|
|
40027
40019
|
clone = [];
|
|
40028
40020
|
} else if (Array.isArray(entity)) {
|
|
40029
|
-
clone =
|
|
40021
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
40030
40022
|
} else {
|
|
40031
|
-
clone =
|
|
40023
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
40032
40024
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
40033
40025
|
|
|
40034
40026
|
|
|
@@ -40092,7 +40084,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
40092
40084
|
}
|
|
40093
40085
|
|
|
40094
40086
|
function isObject(obj) {
|
|
40095
|
-
return
|
|
40087
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
40096
40088
|
}
|
|
40097
40089
|
/**
|
|
40098
40090
|
* Copy values into store and return a new values object
|
|
@@ -40101,7 +40093,7 @@ function isObject(obj) {
|
|
|
40101
40093
|
|
|
40102
40094
|
|
|
40103
40095
|
function internalSetValues(store, values) {
|
|
40104
|
-
var newStore = Array.isArray(store) ?
|
|
40096
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
40105
40097
|
|
|
40106
40098
|
if (!values) {
|
|
40107
40099
|
return newStore;
|
|
@@ -40144,14 +40136,14 @@ function isSimilar(source, target) {
|
|
|
40144
40136
|
return false;
|
|
40145
40137
|
}
|
|
40146
40138
|
|
|
40147
|
-
if (!source || !target ||
|
|
40139
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
40148
40140
|
return false;
|
|
40149
40141
|
}
|
|
40150
40142
|
|
|
40151
40143
|
var sourceKeys = Object.keys(source);
|
|
40152
40144
|
var targetKeys = Object.keys(target);
|
|
40153
|
-
var keys = new Set([].concat(
|
|
40154
|
-
return
|
|
40145
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
40146
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
40155
40147
|
var sourceValue = source[key];
|
|
40156
40148
|
var targetValue = target[key];
|
|
40157
40149
|
|
|
@@ -40194,12 +40186,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
40194
40186
|
|
|
40195
40187
|
if (diff > 0) {
|
|
40196
40188
|
// move left
|
|
40197
|
-
return [].concat(
|
|
40189
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
40198
40190
|
}
|
|
40199
40191
|
|
|
40200
40192
|
if (diff < 0) {
|
|
40201
40193
|
// move right
|
|
40202
|
-
return [].concat(
|
|
40194
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
40203
40195
|
}
|
|
40204
40196
|
|
|
40205
40197
|
return array;
|
|
@@ -40239,13 +40231,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
40239
40231
|
|
|
40240
40232
|
|
|
40241
40233
|
function _validateRule() {
|
|
40242
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40234
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
40243
40235
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
40244
|
-
return
|
|
40236
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
40245
40237
|
while (1) {
|
|
40246
40238
|
switch (_context2.prev = _context2.next) {
|
|
40247
40239
|
case 0:
|
|
40248
|
-
cloneRule =
|
|
40240
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
40249
40241
|
// https://github.com/react-component/field-form/issues/316
|
|
40250
40242
|
// https://github.com/react-component/field-form/issues/313
|
|
40251
40243
|
|
|
@@ -40258,13 +40250,13 @@ function _validateRule() {
|
|
|
40258
40250
|
delete cloneRule.defaultField;
|
|
40259
40251
|
}
|
|
40260
40252
|
|
|
40261
|
-
validator = new AsyncValidator(
|
|
40253
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
40262
40254
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
40263
40255
|
validator.messages(messages);
|
|
40264
40256
|
result = [];
|
|
40265
40257
|
_context2.prev = 8;
|
|
40266
40258
|
_context2.next = 11;
|
|
40267
|
-
return Promise.resolve(validator.validate(
|
|
40259
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
40268
40260
|
|
|
40269
40261
|
case 11:
|
|
40270
40262
|
_context2.next = 16;
|
|
@@ -40304,12 +40296,12 @@ function _validateRule() {
|
|
|
40304
40296
|
case 19:
|
|
40305
40297
|
subResults = _context2.sent;
|
|
40306
40298
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
40307
|
-
return [].concat(
|
|
40299
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
40308
40300
|
}, []));
|
|
40309
40301
|
|
|
40310
40302
|
case 21:
|
|
40311
40303
|
// Replace message with variables
|
|
40312
|
-
kv =
|
|
40304
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
40313
40305
|
name: name,
|
|
40314
40306
|
enum: (rule.enum || []).join(', ')
|
|
40315
40307
|
}, messageVariables);
|
|
@@ -40338,7 +40330,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40338
40330
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
40339
40331
|
var originValidatorFunc = currentRule.validator;
|
|
40340
40332
|
|
|
40341
|
-
var cloneRule =
|
|
40333
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
40342
40334
|
ruleIndex: ruleIndex
|
|
40343
40335
|
}); // Replace validator if needed
|
|
40344
40336
|
|
|
@@ -40406,9 +40398,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40406
40398
|
if (validateFirst === true) {
|
|
40407
40399
|
// >>>>> Validate by serialization
|
|
40408
40400
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40409
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40401
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
40410
40402
|
var i, rule, errors;
|
|
40411
|
-
return
|
|
40403
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
40412
40404
|
while (1) {
|
|
40413
40405
|
switch (_context.prev = _context.next) {
|
|
40414
40406
|
case 0:
|
|
@@ -40487,15 +40479,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40487
40479
|
}
|
|
40488
40480
|
|
|
40489
40481
|
function _finishOnAllFailed() {
|
|
40490
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40491
|
-
return
|
|
40482
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
40483
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
40492
40484
|
while (1) {
|
|
40493
40485
|
switch (_context3.prev = _context3.next) {
|
|
40494
40486
|
case 0:
|
|
40495
40487
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40496
40488
|
var _ref5;
|
|
40497
40489
|
|
|
40498
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
40490
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
40499
40491
|
|
|
40500
40492
|
return errors;
|
|
40501
40493
|
}));
|
|
@@ -40515,9 +40507,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40515
40507
|
}
|
|
40516
40508
|
|
|
40517
40509
|
function _finishOnFirstFailed() {
|
|
40518
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40510
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
40519
40511
|
var count;
|
|
40520
|
-
return
|
|
40512
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
40521
40513
|
while (1) {
|
|
40522
40514
|
switch (_context4.prev = _context4.next) {
|
|
40523
40515
|
case 0:
|
|
@@ -40580,9 +40572,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40580
40572
|
|
|
40581
40573
|
|
|
40582
40574
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40583
|
-
|
|
40575
|
+
inherits_inherits(Field, _React$Component);
|
|
40584
40576
|
|
|
40585
|
-
var _super =
|
|
40577
|
+
var _super = createSuper_createSuper(Field);
|
|
40586
40578
|
|
|
40587
40579
|
/**
|
|
40588
40580
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40598,7 +40590,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40598
40590
|
function Field(props) {
|
|
40599
40591
|
var _this;
|
|
40600
40592
|
|
|
40601
|
-
|
|
40593
|
+
classCallCheck_classCallCheck(this, Field);
|
|
40602
40594
|
|
|
40603
40595
|
_this = _super.call(this, props); // Register on init
|
|
40604
40596
|
|
|
@@ -40633,7 +40625,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40633
40625
|
fieldContext = _this$props2.fieldContext;
|
|
40634
40626
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40635
40627
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40636
|
-
return name !== undefined ? [].concat(
|
|
40628
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
40637
40629
|
};
|
|
40638
40630
|
|
|
40639
40631
|
_this.getRules = function () {
|
|
@@ -40666,7 +40658,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40666
40658
|
|
|
40667
40659
|
_this.triggerMetaEvent = function (destroy) {
|
|
40668
40660
|
var onMetaChange = _this.props.onMetaChange;
|
|
40669
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40661
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
40670
40662
|
destroy: destroy
|
|
40671
40663
|
}));
|
|
40672
40664
|
};
|
|
@@ -40855,9 +40847,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40855
40847
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40856
40848
|
|
|
40857
40849
|
if (warningOnly) {
|
|
40858
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40850
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
40859
40851
|
} else {
|
|
40860
|
-
nextErrors.push.apply(nextErrors,
|
|
40852
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
40861
40853
|
}
|
|
40862
40854
|
});
|
|
40863
40855
|
_this.errors = nextErrors;
|
|
@@ -40948,7 +40940,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40948
40940
|
if (typeof children === 'function') {
|
|
40949
40941
|
var meta = _this.getMeta();
|
|
40950
40942
|
|
|
40951
|
-
return
|
|
40943
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40952
40944
|
isFunction: true
|
|
40953
40945
|
});
|
|
40954
40946
|
} // Filed element only
|
|
@@ -41000,13 +40992,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
41000
40992
|
var value = _this.getValue();
|
|
41001
40993
|
|
|
41002
40994
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
41003
|
-
return
|
|
40995
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
41004
40996
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41005
40997
|
|
|
41006
40998
|
|
|
41007
40999
|
var originTriggerFunc = childProps[trigger];
|
|
41008
41000
|
|
|
41009
|
-
var control =
|
|
41001
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
41010
41002
|
|
|
41011
41003
|
|
|
41012
41004
|
control[trigger] = function () {
|
|
@@ -41077,13 +41069,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
41077
41069
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
41078
41070
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
41079
41071
|
|
|
41080
|
-
initEntityValue(
|
|
41072
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
41081
41073
|
}
|
|
41082
41074
|
|
|
41083
41075
|
return _this;
|
|
41084
41076
|
}
|
|
41085
41077
|
|
|
41086
|
-
|
|
41078
|
+
createClass_createClass(Field, [{
|
|
41087
41079
|
key: "componentDidMount",
|
|
41088
41080
|
value: function componentDidMount() {
|
|
41089
41081
|
var _this$props7 = this.props,
|
|
@@ -41157,7 +41149,7 @@ Field.defaultProps = {
|
|
|
41157
41149
|
|
|
41158
41150
|
function WrapperField(_ref5) {
|
|
41159
41151
|
var name = _ref5.name,
|
|
41160
|
-
restProps =
|
|
41152
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
41161
41153
|
|
|
41162
41154
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
41163
41155
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -41171,7 +41163,7 @@ function WrapperField(_ref5) {
|
|
|
41171
41163
|
|
|
41172
41164
|
if (false) {}
|
|
41173
41165
|
|
|
41174
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
41166
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
41175
41167
|
key: key,
|
|
41176
41168
|
name: namePath
|
|
41177
41169
|
}, restProps, {
|
|
@@ -41208,7 +41200,7 @@ var List = function List(_ref) {
|
|
|
41208
41200
|
}
|
|
41209
41201
|
|
|
41210
41202
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
41211
|
-
var prefixName = [].concat(
|
|
41203
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
41212
41204
|
|
|
41213
41205
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
41214
41206
|
var source = _ref2.source;
|
|
@@ -41221,7 +41213,7 @@ var List = function List(_ref) {
|
|
|
41221
41213
|
};
|
|
41222
41214
|
|
|
41223
41215
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
41224
|
-
value:
|
|
41216
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
41225
41217
|
prefixName: prefixName
|
|
41226
41218
|
})
|
|
41227
41219
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -41252,13 +41244,13 @@ var List = function List(_ref) {
|
|
|
41252
41244
|
var newValue = getNewValue();
|
|
41253
41245
|
|
|
41254
41246
|
if (index >= 0 && index <= newValue.length) {
|
|
41255
|
-
keyManager.keys = [].concat(
|
|
41256
|
-
onChange([].concat(
|
|
41247
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
41248
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
41257
41249
|
} else {
|
|
41258
41250
|
if (false) {}
|
|
41259
41251
|
|
|
41260
|
-
keyManager.keys = [].concat(
|
|
41261
|
-
onChange([].concat(
|
|
41252
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
41253
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
41262
41254
|
}
|
|
41263
41255
|
|
|
41264
41256
|
keyManager.id += 1;
|
|
@@ -41367,7 +41359,7 @@ var SPLIT = '__@field_split__';
|
|
|
41367
41359
|
|
|
41368
41360
|
function normalize(namePath) {
|
|
41369
41361
|
return namePath.map(function (cell) {
|
|
41370
|
-
return "".concat(
|
|
41362
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
41371
41363
|
}) // Magic split
|
|
41372
41364
|
.join(SPLIT);
|
|
41373
41365
|
}
|
|
@@ -41378,12 +41370,12 @@ function normalize(namePath) {
|
|
|
41378
41370
|
|
|
41379
41371
|
var NameMap = /*#__PURE__*/function () {
|
|
41380
41372
|
function NameMap() {
|
|
41381
|
-
|
|
41373
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
41382
41374
|
|
|
41383
41375
|
this.kvs = new Map();
|
|
41384
41376
|
}
|
|
41385
41377
|
|
|
41386
|
-
|
|
41378
|
+
createClass_createClass(NameMap, [{
|
|
41387
41379
|
key: "set",
|
|
41388
41380
|
value: function set(key, value) {
|
|
41389
41381
|
this.kvs.set(normalize(key), value);
|
|
@@ -41414,7 +41406,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41414
41406
|
}, {
|
|
41415
41407
|
key: "map",
|
|
41416
41408
|
value: function map(callback) {
|
|
41417
|
-
return
|
|
41409
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41418
41410
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41419
41411
|
key = _ref2[0],
|
|
41420
41412
|
value = _ref2[1];
|
|
@@ -41468,7 +41460,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41468
41460
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41469
41461
|
var _this = this;
|
|
41470
41462
|
|
|
41471
|
-
|
|
41463
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
41472
41464
|
|
|
41473
41465
|
this.formHooked = false;
|
|
41474
41466
|
this.forceRootUpdate = void 0;
|
|
@@ -41728,7 +41720,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41728
41720
|
return fieldNamePath[i] === nameUnit;
|
|
41729
41721
|
})) {
|
|
41730
41722
|
map.update(shortNamePath, function (list) {
|
|
41731
|
-
return [].concat(
|
|
41723
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
41732
41724
|
});
|
|
41733
41725
|
}
|
|
41734
41726
|
});
|
|
@@ -41819,7 +41811,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41819
41811
|
|
|
41820
41812
|
|
|
41821
41813
|
if (!info.skipExist || originValue === undefined) {
|
|
41822
|
-
_this.store = setValue(_this.store, namePath,
|
|
41814
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
41823
41815
|
}
|
|
41824
41816
|
}
|
|
41825
41817
|
}
|
|
@@ -41839,7 +41831,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41839
41831
|
if (records) {
|
|
41840
41832
|
var _requiredFieldEntitie;
|
|
41841
41833
|
|
|
41842
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41834
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
41843
41835
|
return r.entity;
|
|
41844
41836
|
})));
|
|
41845
41837
|
}
|
|
@@ -41892,7 +41884,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41892
41884
|
fields.forEach(function (fieldData) {
|
|
41893
41885
|
var name = fieldData.name,
|
|
41894
41886
|
errors = fieldData.errors,
|
|
41895
|
-
data =
|
|
41887
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
41896
41888
|
|
|
41897
41889
|
var namePath = getNamePath(name); // Value
|
|
41898
41890
|
|
|
@@ -41914,7 +41906,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41914
41906
|
var namePath = field.getNamePath();
|
|
41915
41907
|
var meta = field.getMeta();
|
|
41916
41908
|
|
|
41917
|
-
var fieldData =
|
|
41909
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
41918
41910
|
name: namePath,
|
|
41919
41911
|
value: _this.getFieldValue(namePath)
|
|
41920
41912
|
});
|
|
@@ -42013,7 +42005,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42013
42005
|
|
|
42014
42006
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
42015
42007
|
if (_this.subscribable) {
|
|
42016
|
-
var mergedInfo =
|
|
42008
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
42017
42009
|
store: _this.getFieldsValue(true)
|
|
42018
42010
|
});
|
|
42019
42011
|
|
|
@@ -42046,7 +42038,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42046
42038
|
|
|
42047
42039
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
42048
42040
|
type: 'dependenciesUpdate',
|
|
42049
|
-
relatedFields: [namePath].concat(
|
|
42041
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
42050
42042
|
}); // trigger callback function
|
|
42051
42043
|
|
|
42052
42044
|
|
|
@@ -42057,7 +42049,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42057
42049
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
42058
42050
|
}
|
|
42059
42051
|
|
|
42060
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
42052
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
42061
42053
|
};
|
|
42062
42054
|
|
|
42063
42055
|
this.setFieldsValue = function (store) {
|
|
@@ -42185,8 +42177,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42185
42177
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
42186
42178
|
|
|
42187
42179
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
42188
|
-
var promise = field.validateRules(
|
|
42189
|
-
validateMessages:
|
|
42180
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
42181
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
42190
42182
|
}, options)); // Wrap promise with field
|
|
42191
42183
|
|
|
42192
42184
|
promiseList.push(promise.then(function () {
|
|
@@ -42203,9 +42195,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
42203
42195
|
errors = _ref5.errors;
|
|
42204
42196
|
|
|
42205
42197
|
if (warningOnly) {
|
|
42206
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
42198
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
42207
42199
|
} else {
|
|
42208
|
-
mergedErrors.push.apply(mergedErrors,
|
|
42200
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
42209
42201
|
}
|
|
42210
42202
|
});
|
|
42211
42203
|
|
|
@@ -42336,8 +42328,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42336
42328
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
42337
42329
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42338
42330
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
42339
|
-
value:
|
|
42340
|
-
validateMessages:
|
|
42331
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
42332
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
42341
42333
|
// =========================================================
|
|
42342
42334
|
// = Global Form Control =
|
|
42343
42335
|
// =========================================================
|
|
@@ -42363,13 +42355,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
42363
42355
|
},
|
|
42364
42356
|
registerForm: function registerForm(name, form) {
|
|
42365
42357
|
if (name) {
|
|
42366
|
-
formsRef.current =
|
|
42358
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
42367
42359
|
}
|
|
42368
42360
|
|
|
42369
42361
|
formContext.registerForm(name, form);
|
|
42370
42362
|
},
|
|
42371
42363
|
unregisterForm: function unregisterForm(name) {
|
|
42372
|
-
var newForms =
|
|
42364
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
42373
42365
|
|
|
42374
42366
|
delete newForms[name];
|
|
42375
42367
|
formsRef.current = newForms;
|
|
@@ -42409,7 +42401,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42409
42401
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42410
42402
|
_onFinish = _ref.onFinish,
|
|
42411
42403
|
onFinishFailed = _ref.onFinishFailed,
|
|
42412
|
-
restProps =
|
|
42404
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
42413
42405
|
|
|
42414
42406
|
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:
|
|
42415
42407
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42437,7 +42429,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42437
42429
|
};
|
|
42438
42430
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42439
42431
|
|
|
42440
|
-
setValidateMessages(
|
|
42432
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42441
42433
|
setCallbacks({
|
|
42442
42434
|
onValuesChange: onValuesChange,
|
|
42443
42435
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42490,7 +42482,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42490
42482
|
prevFieldsRef.current = fields;
|
|
42491
42483
|
}, [fields, formInstance]);
|
|
42492
42484
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42493
|
-
return
|
|
42485
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
42494
42486
|
validateTrigger: validateTrigger
|
|
42495
42487
|
});
|
|
42496
42488
|
}, [formInstance, validateTrigger]);
|
|
@@ -42502,7 +42494,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42502
42494
|
return wrapperNode;
|
|
42503
42495
|
}
|
|
42504
42496
|
|
|
42505
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
42497
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
42506
42498
|
onSubmit: function onSubmit(event) {
|
|
42507
42499
|
event.preventDefault();
|
|
42508
42500
|
event.stopPropagation();
|
|
@@ -42684,14 +42676,14 @@ LocaleProvider.defaultProps = {
|
|
|
42684
42676
|
|
|
42685
42677
|
|
|
42686
42678
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42687
|
-
|
|
42679
|
+
inherits_inherits(Notice, _Component);
|
|
42688
42680
|
|
|
42689
|
-
var _super =
|
|
42681
|
+
var _super = createSuper_createSuper(Notice);
|
|
42690
42682
|
|
|
42691
42683
|
function Notice() {
|
|
42692
42684
|
var _this;
|
|
42693
42685
|
|
|
42694
|
-
|
|
42686
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
42695
42687
|
|
|
42696
42688
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42697
42689
|
args[_key] = arguments[_key];
|
|
@@ -42734,7 +42726,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42734
42726
|
return _this;
|
|
42735
42727
|
}
|
|
42736
42728
|
|
|
42737
|
-
|
|
42729
|
+
createClass_createClass(Notice, [{
|
|
42738
42730
|
key: "componentDidMount",
|
|
42739
42731
|
value: function componentDidMount() {
|
|
42740
42732
|
this.startCloseTimer();
|
|
@@ -42780,8 +42772,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42780
42772
|
|
|
42781
42773
|
return acc;
|
|
42782
42774
|
}, {});
|
|
42783
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42784
|
-
className: classnames_default()(componentClass, className,
|
|
42775
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
42776
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42785
42777
|
style: style,
|
|
42786
42778
|
onMouseEnter: this.clearCloseTimer,
|
|
42787
42779
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42812,6 +42804,52 @@ Notice.defaultProps = {
|
|
|
42812
42804
|
duration: 1.5
|
|
42813
42805
|
};
|
|
42814
42806
|
|
|
42807
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42808
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42809
|
+
if (Array.isArray(arr)) return arr;
|
|
42810
|
+
}
|
|
42811
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42812
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42813
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42814
|
+
|
|
42815
|
+
if (_i == null) return;
|
|
42816
|
+
var _arr = [];
|
|
42817
|
+
var _n = true;
|
|
42818
|
+
var _d = false;
|
|
42819
|
+
|
|
42820
|
+
var _s, _e;
|
|
42821
|
+
|
|
42822
|
+
try {
|
|
42823
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42824
|
+
_arr.push(_s.value);
|
|
42825
|
+
|
|
42826
|
+
if (i && _arr.length === i) break;
|
|
42827
|
+
}
|
|
42828
|
+
} catch (err) {
|
|
42829
|
+
_d = true;
|
|
42830
|
+
_e = err;
|
|
42831
|
+
} finally {
|
|
42832
|
+
try {
|
|
42833
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
42834
|
+
} finally {
|
|
42835
|
+
if (_d) throw _e;
|
|
42836
|
+
}
|
|
42837
|
+
}
|
|
42838
|
+
|
|
42839
|
+
return _arr;
|
|
42840
|
+
}
|
|
42841
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42842
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
42843
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42844
|
+
}
|
|
42845
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42846
|
+
|
|
42847
|
+
|
|
42848
|
+
|
|
42849
|
+
|
|
42850
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42851
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42852
|
+
}
|
|
42815
42853
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42816
42854
|
|
|
42817
42855
|
|
|
@@ -42822,7 +42860,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42822
42860
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42823
42861
|
|
|
42824
42862
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42825
|
-
_React$useState2 =
|
|
42863
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
42826
42864
|
elements = _React$useState2[0],
|
|
42827
42865
|
setElements = _React$useState2[1];
|
|
42828
42866
|
|
|
@@ -42883,14 +42921,14 @@ function getUuid() {
|
|
|
42883
42921
|
}
|
|
42884
42922
|
|
|
42885
42923
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42886
|
-
|
|
42924
|
+
inherits_inherits(Notification, _Component);
|
|
42887
42925
|
|
|
42888
|
-
var _super =
|
|
42926
|
+
var _super = createSuper_createSuper(Notification);
|
|
42889
42927
|
|
|
42890
42928
|
function Notification() {
|
|
42891
42929
|
var _this;
|
|
42892
42930
|
|
|
42893
|
-
|
|
42931
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
42894
42932
|
|
|
42895
42933
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42896
42934
|
args[_key] = arguments[_key];
|
|
@@ -42905,7 +42943,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42905
42943
|
_this.add = function (originNotice, holderCallback) {
|
|
42906
42944
|
var key = originNotice.key || getUuid();
|
|
42907
42945
|
|
|
42908
|
-
var notice =
|
|
42946
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
42909
42947
|
key: key
|
|
42910
42948
|
});
|
|
42911
42949
|
|
|
@@ -42972,7 +43010,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42972
43010
|
return _this;
|
|
42973
43011
|
}
|
|
42974
43012
|
|
|
42975
|
-
|
|
43013
|
+
createClass_createClass(Notification, [{
|
|
42976
43014
|
key: "getTransitionName",
|
|
42977
43015
|
value: function getTransitionName() {
|
|
42978
43016
|
var _this$props = this.props,
|
|
@@ -43005,7 +43043,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43005
43043
|
var key = notice.key,
|
|
43006
43044
|
userPassKey = notice.userPassKey;
|
|
43007
43045
|
|
|
43008
|
-
var noticeProps =
|
|
43046
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
43009
43047
|
prefixCls: prefixCls,
|
|
43010
43048
|
closeIcon: closeIcon
|
|
43011
43049
|
}, notice), notice.props), {}, {
|
|
@@ -43056,7 +43094,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43056
43094
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
43057
43095
|
key: key,
|
|
43058
43096
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
43059
|
-
style:
|
|
43097
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
43060
43098
|
ref: function ref(div) {
|
|
43061
43099
|
if (typeof key === 'undefined') {
|
|
43062
43100
|
return;
|
|
@@ -43073,9 +43111,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
43073
43111
|
});
|
|
43074
43112
|
}
|
|
43075
43113
|
|
|
43076
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
43114
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
43077
43115
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
43078
|
-
style:
|
|
43116
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
43079
43117
|
visible: visible
|
|
43080
43118
|
}));
|
|
43081
43119
|
}));
|
|
@@ -43098,7 +43136,7 @@ Notification.defaultProps = {
|
|
|
43098
43136
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
43099
43137
|
var _ref6 = properties || {},
|
|
43100
43138
|
getContainer = _ref6.getContainer,
|
|
43101
|
-
props =
|
|
43139
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
43102
43140
|
|
|
43103
43141
|
var div = document.createElement('div');
|
|
43104
43142
|
|
|
@@ -43142,7 +43180,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
43142
43180
|
|
|
43143
43181
|
if (false) {}
|
|
43144
43182
|
|
|
43145
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
43183
|
+
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, {
|
|
43146
43184
|
ref: ref
|
|
43147
43185
|
})), div);
|
|
43148
43186
|
};
|
|
@@ -43172,7 +43210,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
43172
43210
|
};
|
|
43173
43211
|
|
|
43174
43212
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43175
|
-
_useRCNotification2 =
|
|
43213
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43176
43214
|
hookNotify = _useRCNotification2[0],
|
|
43177
43215
|
holder = _useRCNotification2[1];
|
|
43178
43216
|
|
|
@@ -43501,7 +43539,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43501
43539
|
};
|
|
43502
43540
|
|
|
43503
43541
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43504
|
-
_useRCNotification2 =
|
|
43542
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43505
43543
|
hookNotify = _useRCNotification2[0],
|
|
43506
43544
|
holder = _useRCNotification2[1];
|
|
43507
43545
|
|
|
@@ -44128,7 +44166,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44128
44166
|
|
|
44129
44167
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
44130
44168
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
44131
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
44169
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
44132
44170
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
44133
44171
|
actionFn: onCancel,
|
|
44134
44172
|
close: close,
|
|
@@ -44146,7 +44184,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
44146
44184
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
44147
44185
|
prefixCls: prefixCls,
|
|
44148
44186
|
className: classString,
|
|
44149
|
-
wrapClassName: classnames_default()(
|
|
44187
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
44150
44188
|
onCancel: function onCancel() {
|
|
44151
44189
|
return close({
|
|
44152
44190
|
triggerCancel: true
|
|
@@ -44230,7 +44268,7 @@ function getRootPrefixCls() {
|
|
|
44230
44268
|
function confirm_confirm(config) {
|
|
44231
44269
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
44232
44270
|
|
|
44233
|
-
var currentConfig =
|
|
44271
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
44234
44272
|
close: close,
|
|
44235
44273
|
visible: true
|
|
44236
44274
|
});
|
|
@@ -44283,7 +44321,7 @@ function confirm_confirm(config) {
|
|
|
44283
44321
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
44284
44322
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
44285
44323
|
var iconPrefixCls = getIconPrefixCls();
|
|
44286
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44324
|
+
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, {
|
|
44287
44325
|
prefixCls: prefixCls,
|
|
44288
44326
|
rootPrefixCls: rootPrefixCls,
|
|
44289
44327
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -44300,7 +44338,7 @@ function confirm_confirm(config) {
|
|
|
44300
44338
|
args[_key2] = arguments[_key2];
|
|
44301
44339
|
}
|
|
44302
44340
|
|
|
44303
|
-
currentConfig =
|
|
44341
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
44304
44342
|
visible: false,
|
|
44305
44343
|
afterClose: function afterClose() {
|
|
44306
44344
|
if (typeof config.afterClose === 'function') {
|
|
@@ -44317,7 +44355,7 @@ function confirm_confirm(config) {
|
|
|
44317
44355
|
if (typeof configUpdate === 'function') {
|
|
44318
44356
|
currentConfig = configUpdate(currentConfig);
|
|
44319
44357
|
} else {
|
|
44320
|
-
currentConfig =
|
|
44358
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
44321
44359
|
}
|
|
44322
44360
|
|
|
44323
44361
|
render(currentConfig);
|
|
@@ -44331,7 +44369,7 @@ function confirm_confirm(config) {
|
|
|
44331
44369
|
};
|
|
44332
44370
|
}
|
|
44333
44371
|
function withWarn(props) {
|
|
44334
|
-
return
|
|
44372
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44335
44373
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44336
44374
|
type: "exclamation-circle"
|
|
44337
44375
|
}),
|
|
@@ -44341,7 +44379,7 @@ function withWarn(props) {
|
|
|
44341
44379
|
});
|
|
44342
44380
|
}
|
|
44343
44381
|
function withInfo(props) {
|
|
44344
|
-
return
|
|
44382
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44345
44383
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44346
44384
|
type: "exclamation-circle"
|
|
44347
44385
|
}),
|
|
@@ -44351,7 +44389,7 @@ function withInfo(props) {
|
|
|
44351
44389
|
});
|
|
44352
44390
|
}
|
|
44353
44391
|
function withSuccess(props) {
|
|
44354
|
-
return
|
|
44392
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44355
44393
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44356
44394
|
type: "check-circle"
|
|
44357
44395
|
}),
|
|
@@ -44361,7 +44399,7 @@ function withSuccess(props) {
|
|
|
44361
44399
|
});
|
|
44362
44400
|
}
|
|
44363
44401
|
function withError(props) {
|
|
44364
|
-
return
|
|
44402
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44365
44403
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44366
44404
|
type: "close-circle"
|
|
44367
44405
|
}),
|
|
@@ -44371,7 +44409,7 @@ function withError(props) {
|
|
|
44371
44409
|
});
|
|
44372
44410
|
}
|
|
44373
44411
|
function withConfirm(props) {
|
|
44374
|
-
return
|
|
44412
|
+
return esm_extends_extends(esm_extends_extends({
|
|
44375
44413
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44376
44414
|
type: "question-circle"
|
|
44377
44415
|
}),
|
|
@@ -44398,7 +44436,7 @@ function usePatchElement() {
|
|
|
44398
44436
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44399
44437
|
// append a new element to elements (and create a new ref)
|
|
44400
44438
|
setElements(function (originElements) {
|
|
44401
|
-
return [].concat(
|
|
44439
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
44402
44440
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44403
44441
|
// it works a little like useEffect
|
|
44404
44442
|
|
|
@@ -44463,7 +44501,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44463
44501
|
destroy: close,
|
|
44464
44502
|
update: function update(newConfig) {
|
|
44465
44503
|
setInnerConfig(function (originConfig) {
|
|
44466
|
-
return
|
|
44504
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
44467
44505
|
});
|
|
44468
44506
|
}
|
|
44469
44507
|
};
|
|
@@ -44472,7 +44510,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44472
44510
|
componentName: "Modal",
|
|
44473
44511
|
defaultLocale: locale_default.Modal
|
|
44474
44512
|
}, function (modalLocale) {
|
|
44475
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
44513
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
44476
44514
|
prefixCls: prefixCls,
|
|
44477
44515
|
rootPrefixCls: rootPrefixCls
|
|
44478
44516
|
}, innerConfig, {
|
|
@@ -44519,7 +44557,7 @@ function useModal() {
|
|
|
44519
44557
|
|
|
44520
44558
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44521
44559
|
if (actionQueue.length) {
|
|
44522
|
-
var cloneQueue =
|
|
44560
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
44523
44561
|
|
|
44524
44562
|
cloneQueue.forEach(function (action) {
|
|
44525
44563
|
action();
|
|
@@ -44556,7 +44594,7 @@ function useModal() {
|
|
|
44556
44594
|
destroyAction();
|
|
44557
44595
|
} else {
|
|
44558
44596
|
setActionQueue(function (prev) {
|
|
44559
|
-
return [].concat(
|
|
44597
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
44560
44598
|
});
|
|
44561
44599
|
}
|
|
44562
44600
|
},
|
|
@@ -44571,7 +44609,7 @@ function useModal() {
|
|
|
44571
44609
|
updateAction();
|
|
44572
44610
|
} else {
|
|
44573
44611
|
setActionQueue(function (prev) {
|
|
44574
|
-
return [].concat(
|
|
44612
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
44575
44613
|
});
|
|
44576
44614
|
}
|
|
44577
44615
|
}
|
|
@@ -45179,7 +45217,7 @@ function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
|
45179
45217
|
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
45180
45218
|
}
|
|
45181
45219
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
45182
|
-
function
|
|
45220
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
45183
45221
|
if (source == null) return {};
|
|
45184
45222
|
var target = {};
|
|
45185
45223
|
var sourceKeys = Object.keys(source);
|
|
@@ -45195,9 +45233,9 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
45195
45233
|
}
|
|
45196
45234
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
45197
45235
|
|
|
45198
|
-
function
|
|
45236
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
45199
45237
|
if (source == null) return {};
|
|
45200
|
-
var target =
|
|
45238
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
45201
45239
|
var key, i;
|
|
45202
45240
|
|
|
45203
45241
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46158,14 +46196,14 @@ var index = (function () {
|
|
|
46158
46196
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
46159
46197
|
|
|
46160
46198
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
46161
|
-
|
|
46199
|
+
inherits_inherits(ReactResizeObserver, _React$Component);
|
|
46162
46200
|
|
|
46163
|
-
var _super =
|
|
46201
|
+
var _super = createSuper_createSuper(ReactResizeObserver);
|
|
46164
46202
|
|
|
46165
46203
|
function ReactResizeObserver() {
|
|
46166
46204
|
var _this;
|
|
46167
46205
|
|
|
46168
|
-
|
|
46206
|
+
classCallCheck_classCallCheck(this, ReactResizeObserver);
|
|
46169
46207
|
|
|
46170
46208
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46171
46209
|
args[_key] = arguments[_key];
|
|
@@ -46216,7 +46254,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46216
46254
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46217
46255
|
|
|
46218
46256
|
Promise.resolve().then(function () {
|
|
46219
|
-
onResize(
|
|
46257
|
+
onResize(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, size), {}, {
|
|
46220
46258
|
offsetWidth: mergedOffsetWidth,
|
|
46221
46259
|
offsetHeight: mergedOffsetHeight
|
|
46222
46260
|
}), target);
|
|
@@ -46232,7 +46270,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46232
46270
|
return _this;
|
|
46233
46271
|
}
|
|
46234
46272
|
|
|
46235
|
-
|
|
46273
|
+
createClass_createClass(ReactResizeObserver, [{
|
|
46236
46274
|
key: "componentDidMount",
|
|
46237
46275
|
value: function componentDidMount() {
|
|
46238
46276
|
this.onComponentUpdated();
|
|
@@ -47303,7 +47341,7 @@ function RawList(props, ref) {
|
|
|
47303
47341
|
onScroll = props.onScroll,
|
|
47304
47342
|
onVisibleChange = props.onVisibleChange,
|
|
47305
47343
|
innerProps = props.innerProps,
|
|
47306
|
-
restProps =
|
|
47344
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
47307
47345
|
// ================================= MISC =================================
|
|
47308
47346
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
47309
47347
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
@@ -47672,7 +47710,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47672
47710
|
return values;
|
|
47673
47711
|
}
|
|
47674
47712
|
function removeLastEnabledValue(measureValues, values) {
|
|
47675
|
-
var newValues =
|
|
47713
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
47676
47714
|
|
|
47677
47715
|
var removeIndex;
|
|
47678
47716
|
|
|
@@ -47806,7 +47844,7 @@ function flattenOptions(options) {
|
|
|
47806
47844
|
*/
|
|
47807
47845
|
|
|
47808
47846
|
function injectPropsWithOption(option) {
|
|
47809
|
-
var newOption =
|
|
47847
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
47810
47848
|
|
|
47811
47849
|
if (!('props' in newOption)) {
|
|
47812
47850
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47840,7 +47878,7 @@ function findValueOption(values, options) {
|
|
|
47840
47878
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47841
47879
|
|
|
47842
47880
|
if (!option) {
|
|
47843
|
-
option =
|
|
47881
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47844
47882
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47845
47883
|
}));
|
|
47846
47884
|
}
|
|
@@ -47859,7 +47897,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47859
47897
|
};
|
|
47860
47898
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47861
47899
|
|
|
47862
|
-
if (prevValItem &&
|
|
47900
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47863
47901
|
result.label = prevValItem.label;
|
|
47864
47902
|
|
|
47865
47903
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47907,7 +47945,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47907
47945
|
var filterFunc;
|
|
47908
47946
|
|
|
47909
47947
|
if (filterOption === false) {
|
|
47910
|
-
return
|
|
47948
|
+
return toConsumableArray_toConsumableArray(options);
|
|
47911
47949
|
}
|
|
47912
47950
|
|
|
47913
47951
|
if (typeof filterOption === 'function') {
|
|
@@ -47931,7 +47969,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47931
47969
|
});
|
|
47932
47970
|
|
|
47933
47971
|
if (subOptions.length) {
|
|
47934
|
-
filteredOptions.push(
|
|
47972
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
47935
47973
|
options: subOptions
|
|
47936
47974
|
}));
|
|
47937
47975
|
}
|
|
@@ -47965,7 +48003,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47965
48003
|
var list = str.split(token);
|
|
47966
48004
|
match = match || list.length > 1;
|
|
47967
48005
|
return list.reduce(function (prevList, unitStr) {
|
|
47968
|
-
return [].concat(
|
|
48006
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
47969
48007
|
}, []).filter(function (unit) {
|
|
47970
48008
|
return unit;
|
|
47971
48009
|
});
|
|
@@ -47985,7 +48023,7 @@ function isValueDisabled(value, options) {
|
|
|
47985
48023
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47986
48024
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47987
48025
|
|
|
47988
|
-
var cloneOptions =
|
|
48026
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
47989
48027
|
|
|
47990
48028
|
|
|
47991
48029
|
var optionValues = new Set();
|
|
@@ -48005,7 +48043,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
48005
48043
|
if (!optionValues.has(val)) {
|
|
48006
48044
|
var _ref9;
|
|
48007
48045
|
|
|
48008
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
48046
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
48009
48047
|
value: val
|
|
48010
48048
|
});
|
|
48011
48049
|
}
|
|
@@ -48271,7 +48309,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48271
48309
|
children = itemData.children;
|
|
48272
48310
|
var attrs = pickAttrs(itemData, true);
|
|
48273
48311
|
var mergedLabel = childrenAsData ? children : label;
|
|
48274
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48312
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
48275
48313
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
48276
48314
|
}, attrs, {
|
|
48277
48315
|
key: index,
|
|
@@ -48321,13 +48359,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48321
48359
|
children = data.children,
|
|
48322
48360
|
style = data.style,
|
|
48323
48361
|
className = data.className,
|
|
48324
|
-
otherProps =
|
|
48362
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
48325
48363
|
|
|
48326
48364
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
48327
48365
|
|
|
48328
48366
|
var selected = values.has(value);
|
|
48329
48367
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
48330
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
48368
|
+
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));
|
|
48331
48369
|
var mergedLabel = childrenAsData ? children : label;
|
|
48332
48370
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48333
48371
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48338,7 +48376,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48338
48376
|
optionTitle = title;
|
|
48339
48377
|
}
|
|
48340
48378
|
|
|
48341
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
48379
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
48342
48380
|
"aria-selected": selected,
|
|
48343
48381
|
className: optionClassName,
|
|
48344
48382
|
title: optionTitle,
|
|
@@ -48399,9 +48437,9 @@ function convertNodeToOption(node) {
|
|
|
48399
48437
|
_node$props = node.props,
|
|
48400
48438
|
children = _node$props.children,
|
|
48401
48439
|
value = _node$props.value,
|
|
48402
|
-
restProps =
|
|
48440
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48403
48441
|
|
|
48404
|
-
return
|
|
48442
|
+
return objectSpread2_objectSpread2({
|
|
48405
48443
|
key: key,
|
|
48406
48444
|
value: value !== undefined ? value : key,
|
|
48407
48445
|
children: children
|
|
@@ -48419,13 +48457,13 @@ function convertChildrenToData(nodes) {
|
|
|
48419
48457
|
key = node.key,
|
|
48420
48458
|
_node$props2 = node.props,
|
|
48421
48459
|
children = _node$props2.children,
|
|
48422
|
-
restProps =
|
|
48460
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
48423
48461
|
|
|
48424
48462
|
if (optionOnly || !isSelectOptGroup) {
|
|
48425
48463
|
return convertNodeToOption(node);
|
|
48426
48464
|
}
|
|
48427
48465
|
|
|
48428
|
-
return
|
|
48466
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48429
48467
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48430
48468
|
label: key
|
|
48431
48469
|
}, restProps), {}, {
|
|
@@ -48502,41 +48540,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
48502
48540
|
}, [value]);
|
|
48503
48541
|
return [mergedValue, triggerChange];
|
|
48504
48542
|
}
|
|
48505
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
48506
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
48507
|
-
if (source == null) return {};
|
|
48508
|
-
var target = {};
|
|
48509
|
-
var sourceKeys = Object.keys(source);
|
|
48510
|
-
var key, i;
|
|
48511
|
-
|
|
48512
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
48513
|
-
key = sourceKeys[i];
|
|
48514
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48515
|
-
target[key] = source[key];
|
|
48516
|
-
}
|
|
48517
|
-
|
|
48518
|
-
return target;
|
|
48519
|
-
}
|
|
48520
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
48521
|
-
|
|
48522
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
48523
|
-
if (source == null) return {};
|
|
48524
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
48525
|
-
var key, i;
|
|
48526
|
-
|
|
48527
|
-
if (Object.getOwnPropertySymbols) {
|
|
48528
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
48529
|
-
|
|
48530
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
48531
|
-
key = sourceSymbolKeys[i];
|
|
48532
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48533
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48534
|
-
target[key] = source[key];
|
|
48535
|
-
}
|
|
48536
|
-
}
|
|
48537
|
-
|
|
48538
|
-
return target;
|
|
48539
|
-
}
|
|
48540
48543
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
48541
48544
|
|
|
48542
48545
|
|
|
@@ -48562,7 +48565,7 @@ function InternalItem(props, ref) {
|
|
|
48562
48565
|
order = props.order,
|
|
48563
48566
|
_props$component = props.component,
|
|
48564
48567
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48565
|
-
restProps =
|
|
48568
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48566
48569
|
|
|
48567
48570
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48568
48571
|
|
|
@@ -48629,7 +48632,7 @@ Item_Item.displayName = 'Item';
|
|
|
48629
48632
|
|
|
48630
48633
|
function useBatchFrameState() {
|
|
48631
48634
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
48632
|
-
_useState2 =
|
|
48635
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48633
48636
|
forceUpdate = _useState2[1];
|
|
48634
48637
|
|
|
48635
48638
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -48683,7 +48686,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48683
48686
|
if (!context) {
|
|
48684
48687
|
var _props$component = props.component,
|
|
48685
48688
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48686
|
-
_restProps =
|
|
48689
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
48687
48690
|
|
|
48688
48691
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
48689
48692
|
ref: ref
|
|
@@ -48691,10 +48694,10 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48691
48694
|
}
|
|
48692
48695
|
|
|
48693
48696
|
var contextClassName = context.className,
|
|
48694
|
-
restContext =
|
|
48697
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
48695
48698
|
|
|
48696
48699
|
var className = props.className,
|
|
48697
|
-
restProps =
|
|
48700
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48698
48701
|
|
|
48699
48702
|
|
|
48700
48703
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
@@ -48749,45 +48752,45 @@ function Overflow(props, ref) {
|
|
|
48749
48752
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48750
48753
|
itemComponent = props.itemComponent,
|
|
48751
48754
|
onVisibleChange = props.onVisibleChange,
|
|
48752
|
-
restProps =
|
|
48755
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48753
48756
|
|
|
48754
48757
|
var createUseState = useBatchFrameState();
|
|
48755
48758
|
var fullySSR = ssr === 'full';
|
|
48756
48759
|
|
|
48757
48760
|
var _createUseState = createUseState(null),
|
|
48758
|
-
_createUseState2 =
|
|
48761
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
48759
48762
|
containerWidth = _createUseState2[0],
|
|
48760
48763
|
setContainerWidth = _createUseState2[1];
|
|
48761
48764
|
|
|
48762
48765
|
var mergedContainerWidth = containerWidth || 0;
|
|
48763
48766
|
|
|
48764
48767
|
var _createUseState3 = createUseState(new Map()),
|
|
48765
|
-
_createUseState4 =
|
|
48768
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
48766
48769
|
itemWidths = _createUseState4[0],
|
|
48767
48770
|
setItemWidths = _createUseState4[1];
|
|
48768
48771
|
|
|
48769
48772
|
var _createUseState5 = createUseState(0),
|
|
48770
|
-
_createUseState6 =
|
|
48773
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
48771
48774
|
prevRestWidth = _createUseState6[0],
|
|
48772
48775
|
setPrevRestWidth = _createUseState6[1];
|
|
48773
48776
|
|
|
48774
48777
|
var _createUseState7 = createUseState(0),
|
|
48775
|
-
_createUseState8 =
|
|
48778
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
48776
48779
|
restWidth = _createUseState8[0],
|
|
48777
48780
|
setRestWidth = _createUseState8[1];
|
|
48778
48781
|
|
|
48779
48782
|
var _createUseState9 = createUseState(0),
|
|
48780
|
-
_createUseState10 =
|
|
48783
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
48781
48784
|
suffixWidth = _createUseState10[0],
|
|
48782
48785
|
setSuffixWidth = _createUseState10[1];
|
|
48783
48786
|
|
|
48784
48787
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48785
|
-
_useState2 =
|
|
48788
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
48786
48789
|
suffixFixedStart = _useState2[0],
|
|
48787
48790
|
setSuffixFixedStart = _useState2[1];
|
|
48788
48791
|
|
|
48789
48792
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
48790
|
-
_useState4 =
|
|
48793
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
48791
48794
|
displayCount = _useState4[0],
|
|
48792
48795
|
setDisplayCount = _useState4[1];
|
|
48793
48796
|
|
|
@@ -48800,7 +48803,7 @@ function Overflow(props, ref) {
|
|
|
48800
48803
|
}, [displayCount, containerWidth]);
|
|
48801
48804
|
|
|
48802
48805
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
48803
|
-
_useState6 =
|
|
48806
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
48804
48807
|
restReady = _useState6[0],
|
|
48805
48808
|
setRestReady = _useState6[1];
|
|
48806
48809
|
|
|
@@ -49223,7 +49226,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
49223
49226
|
|
|
49224
49227
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
49225
49228
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49226
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
49229
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
49227
49230
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
49228
49231
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
49229
49232
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49638,7 +49641,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49638
49641
|
onInputCompositionStart: onInputCompositionStart,
|
|
49639
49642
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49640
49643
|
};
|
|
49641
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
49644
|
+
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));
|
|
49642
49645
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49643
49646
|
ref: domRef,
|
|
49644
49647
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -51174,7 +51177,7 @@ function monitorResize(element, callback) {
|
|
|
51174
51177
|
var prevHeight = null;
|
|
51175
51178
|
|
|
51176
51179
|
function onResize(_ref) {
|
|
51177
|
-
var _ref2 =
|
|
51180
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
51178
51181
|
target = _ref2[0].target;
|
|
51179
51182
|
|
|
51180
51183
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -51333,7 +51336,7 @@ var Align = function Align(_ref, ref) {
|
|
|
51333
51336
|
|
|
51334
51337
|
return false;
|
|
51335
51338
|
}, monitorBufferTime),
|
|
51336
|
-
_useBuffer2 =
|
|
51339
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
51337
51340
|
_forceAlign = _useBuffer2[0],
|
|
51338
51341
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
51339
51342
|
// Listen for target updated
|
|
@@ -51421,45 +51424,6 @@ RcAlign.displayName = 'Align';
|
|
|
51421
51424
|
// export this package's api
|
|
51422
51425
|
|
|
51423
51426
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
51424
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
51425
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
51426
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
51427
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
51428
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
51429
|
-
try {
|
|
51430
|
-
var info = gen[key](arg);
|
|
51431
|
-
var value = info.value;
|
|
51432
|
-
} catch (error) {
|
|
51433
|
-
reject(error);
|
|
51434
|
-
return;
|
|
51435
|
-
}
|
|
51436
|
-
|
|
51437
|
-
if (info.done) {
|
|
51438
|
-
resolve(value);
|
|
51439
|
-
} else {
|
|
51440
|
-
Promise.resolve(value).then(_next, _throw);
|
|
51441
|
-
}
|
|
51442
|
-
}
|
|
51443
|
-
|
|
51444
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
51445
|
-
return function () {
|
|
51446
|
-
var self = this,
|
|
51447
|
-
args = arguments;
|
|
51448
|
-
return new Promise(function (resolve, reject) {
|
|
51449
|
-
var gen = fn.apply(self, args);
|
|
51450
|
-
|
|
51451
|
-
function _next(value) {
|
|
51452
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
51453
|
-
}
|
|
51454
|
-
|
|
51455
|
-
function _throw(err) {
|
|
51456
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51457
|
-
}
|
|
51458
|
-
|
|
51459
|
-
_next(undefined);
|
|
51460
|
-
});
|
|
51461
|
-
};
|
|
51462
|
-
}
|
|
51463
51427
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
51464
51428
|
|
|
51465
51429
|
|
|
@@ -51469,7 +51433,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
51469
51433
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
51470
51434
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
51471
51435
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
51472
|
-
_useState2 =
|
|
51436
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51473
51437
|
status = _useState2[0],
|
|
51474
51438
|
setInternalStatus = _useState2[1];
|
|
51475
51439
|
|
|
@@ -51522,7 +51486,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51522
51486
|
}
|
|
51523
51487
|
|
|
51524
51488
|
if (status) {
|
|
51525
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
51489
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
51526
51490
|
var index, nextStatus;
|
|
51527
51491
|
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
51528
51492
|
while (1) {
|
|
@@ -51560,7 +51524,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51560
51524
|
width: 0,
|
|
51561
51525
|
height: 0
|
|
51562
51526
|
}),
|
|
51563
|
-
_React$useState2 =
|
|
51527
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
51564
51528
|
targetSize = _React$useState2[0],
|
|
51565
51529
|
setTargetSize = _React$useState2[1];
|
|
51566
51530
|
|
|
@@ -51631,13 +51595,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51631
51595
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
51632
51596
|
|
|
51633
51597
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
51634
|
-
_useState2 =
|
|
51598
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51635
51599
|
alignedClassName = _useState2[0],
|
|
51636
51600
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
51637
51601
|
|
|
51638
51602
|
|
|
51639
51603
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
51640
|
-
_useStretchStyle2 =
|
|
51604
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
51641
51605
|
stretchStyle = _useStretchStyle2[0],
|
|
51642
51606
|
measureStretchStyle = _useStretchStyle2[1];
|
|
51643
51607
|
|
|
@@ -51649,7 +51613,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51649
51613
|
|
|
51650
51614
|
|
|
51651
51615
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
51652
|
-
_useVisibleStatus2 =
|
|
51616
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
51653
51617
|
status = _useVisibleStatus2[0],
|
|
51654
51618
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
51655
51619
|
|
|
@@ -51863,15 +51827,15 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51863
51827
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51864
51828
|
var visible = _ref.visible,
|
|
51865
51829
|
mobile = _ref.mobile,
|
|
51866
|
-
props =
|
|
51830
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
51867
51831
|
|
|
51868
51832
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51869
|
-
_useState2 =
|
|
51833
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
51870
51834
|
innerVisible = _useState2[0],
|
|
51871
51835
|
serInnerVisible = _useState2[1];
|
|
51872
51836
|
|
|
51873
51837
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
51874
|
-
_useState4 =
|
|
51838
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
51875
51839
|
inMobile = _useState4[0],
|
|
51876
51840
|
setInMobile = _useState4[1];
|
|
51877
51841
|
|
|
@@ -52780,7 +52744,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52780
52744
|
empty = props.empty,
|
|
52781
52745
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52782
52746
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52783
|
-
restProps =
|
|
52747
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52784
52748
|
|
|
52785
52749
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52786
52750
|
var popupNode = popupElement;
|
|
@@ -52804,7 +52768,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52804
52768
|
};
|
|
52805
52769
|
});
|
|
52806
52770
|
|
|
52807
|
-
var popupStyle =
|
|
52771
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
52808
52772
|
minWidth: containerWidth
|
|
52809
52773
|
}, dropdownStyle);
|
|
52810
52774
|
|
|
@@ -52814,7 +52778,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52814
52778
|
popupStyle.width = containerWidth;
|
|
52815
52779
|
}
|
|
52816
52780
|
|
|
52817
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52781
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
52818
52782
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52819
52783
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52820
52784
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52827,7 +52791,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52827
52791
|
popupAlign: dropdownAlign,
|
|
52828
52792
|
popupVisible: visible,
|
|
52829
52793
|
getPopupContainer: getPopupContainer,
|
|
52830
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52794
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52831
52795
|
popupStyle: popupStyle,
|
|
52832
52796
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52833
52797
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52930,7 +52894,7 @@ function useCacheDisplayValue(values) {
|
|
|
52930
52894
|
var cacheLabel = valueLabels.get(item.value);
|
|
52931
52895
|
|
|
52932
52896
|
if (item.isCacheable && cacheLabel) {
|
|
52933
|
-
return
|
|
52897
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
52934
52898
|
label: cacheLabel
|
|
52935
52899
|
});
|
|
52936
52900
|
}
|
|
@@ -53092,7 +53056,7 @@ function generateSelector(config) {
|
|
|
53092
53056
|
onClear = props.onClear,
|
|
53093
53057
|
_props$internalProps = props.internalProps,
|
|
53094
53058
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
53095
|
-
restProps =
|
|
53059
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
53096
53060
|
|
|
53097
53061
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
53098
53062
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -53230,7 +53194,7 @@ function generateSelector(config) {
|
|
|
53230
53194
|
|
|
53231
53195
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
53232
53196
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
53233
|
-
return
|
|
53197
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
53234
53198
|
}
|
|
53235
53199
|
|
|
53236
53200
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -53251,7 +53215,7 @@ function generateSelector(config) {
|
|
|
53251
53215
|
}
|
|
53252
53216
|
|
|
53253
53217
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
53254
|
-
return
|
|
53218
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
53255
53219
|
}
|
|
53256
53220
|
|
|
53257
53221
|
return filteredOptions;
|
|
@@ -53274,7 +53238,7 @@ function generateSelector(config) {
|
|
|
53274
53238
|
labelInValue: mergedLabelInValue,
|
|
53275
53239
|
optionLabelProp: mergedOptionLabelProp
|
|
53276
53240
|
});
|
|
53277
|
-
return
|
|
53241
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
53278
53242
|
disabled: isValueDisabled(val, valueOptions)
|
|
53279
53243
|
});
|
|
53280
53244
|
});
|
|
@@ -53348,7 +53312,7 @@ function generateSelector(config) {
|
|
|
53348
53312
|
}); // We will cache option in case it removed by ajax
|
|
53349
53313
|
|
|
53350
53314
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
53351
|
-
var clone =
|
|
53315
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
53352
53316
|
|
|
53353
53317
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
53354
53318
|
get: function get() {
|
|
@@ -53404,13 +53368,13 @@ function generateSelector(config) {
|
|
|
53404
53368
|
};
|
|
53405
53369
|
|
|
53406
53370
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53407
|
-
onInternalSelect(newValue,
|
|
53371
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53408
53372
|
source: 'option'
|
|
53409
53373
|
}));
|
|
53410
53374
|
};
|
|
53411
53375
|
|
|
53412
53376
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53413
|
-
onInternalSelect(newValue,
|
|
53377
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
53414
53378
|
source: 'selection'
|
|
53415
53379
|
}));
|
|
53416
53380
|
}; // ============================= Input ==============================
|
|
@@ -53494,7 +53458,7 @@ function generateSelector(config) {
|
|
|
53494
53458
|
});
|
|
53495
53459
|
}
|
|
53496
53460
|
|
|
53497
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53461
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
53498
53462
|
triggerChange(newRawValues);
|
|
53499
53463
|
newRawValues.forEach(function (newRawValue) {
|
|
53500
53464
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53523,7 +53487,7 @@ function generateSelector(config) {
|
|
|
53523
53487
|
return;
|
|
53524
53488
|
}
|
|
53525
53489
|
|
|
53526
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
53490
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
53527
53491
|
triggerChange(newRawValues);
|
|
53528
53492
|
newRawValues.forEach(function (newRawValue) {
|
|
53529
53493
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53656,7 +53620,7 @@ function generateSelector(config) {
|
|
|
53656
53620
|
// `tags` mode should move `searchValue` into values
|
|
53657
53621
|
if (mode === 'tags') {
|
|
53658
53622
|
triggerSearch('', false, false);
|
|
53659
|
-
triggerChange(Array.from(new Set([].concat(
|
|
53623
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53660
53624
|
} else if (mode === 'multiple') {
|
|
53661
53625
|
// `multiple` mode only clean the search value but not trigger event
|
|
53662
53626
|
setInnerSearchValue('');
|
|
@@ -53814,7 +53778,7 @@ function generateSelector(config) {
|
|
|
53814
53778
|
|
|
53815
53779
|
if (mergedShowArrow) {
|
|
53816
53780
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53817
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53781
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53818
53782
|
customizeIcon: inputIcon,
|
|
53819
53783
|
customizeIconProps: {
|
|
53820
53784
|
loading: loading,
|
|
@@ -53830,7 +53794,7 @@ function generateSelector(config) {
|
|
|
53830
53794
|
if (false) {} // ============================= Render =============================
|
|
53831
53795
|
|
|
53832
53796
|
|
|
53833
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53797
|
+
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));
|
|
53834
53798
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53835
53799
|
ref: triggerRef,
|
|
53836
53800
|
disabled: disabled,
|
|
@@ -53855,7 +53819,7 @@ function generateSelector(config) {
|
|
|
53855
53819
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53856
53820
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53857
53821
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53858
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53822
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
53859
53823
|
domRef: selectorDomRef,
|
|
53860
53824
|
prefixCls: prefixCls,
|
|
53861
53825
|
inputElement: customizeInputElement,
|
|
@@ -53881,7 +53845,7 @@ function generateSelector(config) {
|
|
|
53881
53845
|
return selectorNode;
|
|
53882
53846
|
}
|
|
53883
53847
|
|
|
53884
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53848
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
53885
53849
|
className: mergedClassName
|
|
53886
53850
|
}, domProps, {
|
|
53887
53851
|
ref: containerRef,
|
|
@@ -53968,7 +53932,7 @@ function warningProps(props) {
|
|
|
53968
53932
|
if (value !== undefined && value !== null) {
|
|
53969
53933
|
var values = commonUtil_toArray(value);
|
|
53970
53934
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53971
|
-
return
|
|
53935
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53972
53936
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53973
53937
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53974
53938
|
} // Syntactic sugar should use correct children type
|
|
@@ -54082,14 +54046,14 @@ var RefSelect = generateSelector({
|
|
|
54082
54046
|
*/
|
|
54083
54047
|
|
|
54084
54048
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
54085
|
-
|
|
54049
|
+
inherits_inherits(Select, _React$Component);
|
|
54086
54050
|
|
|
54087
|
-
var _super =
|
|
54051
|
+
var _super = createSuper_createSuper(Select);
|
|
54088
54052
|
|
|
54089
54053
|
function Select() {
|
|
54090
54054
|
var _this;
|
|
54091
54055
|
|
|
54092
|
-
|
|
54056
|
+
classCallCheck_classCallCheck(this, Select);
|
|
54093
54057
|
|
|
54094
54058
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54095
54059
|
args[_key] = arguments[_key];
|
|
@@ -54109,10 +54073,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
54109
54073
|
return _this;
|
|
54110
54074
|
}
|
|
54111
54075
|
|
|
54112
|
-
|
|
54076
|
+
createClass_createClass(Select, [{
|
|
54113
54077
|
key: "render",
|
|
54114
54078
|
value: function render() {
|
|
54115
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
54079
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
54116
54080
|
ref: this.selectRef
|
|
54117
54081
|
}, this.props));
|
|
54118
54082
|
}
|
|
@@ -56422,7 +56386,7 @@ function TabNode(_ref, ref) {
|
|
|
56422
56386
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56423
56387
|
key: key,
|
|
56424
56388
|
ref: ref,
|
|
56425
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
56389
|
+
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)),
|
|
56426
56390
|
style: style,
|
|
56427
56391
|
onClick: onInternalClick
|
|
56428
56392
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56485,7 +56449,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56485
56449
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56486
56450
|
}
|
|
56487
56451
|
|
|
56488
|
-
var entity = map.get(key) ||
|
|
56452
|
+
var entity = map.get(key) || objectSpread2_objectSpread2({}, data); // Right
|
|
56489
56453
|
|
|
56490
56454
|
|
|
56491
56455
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56595,7 +56559,7 @@ function mergeProps(origin, target) {
|
|
|
56595
56559
|
function InheritableContextProvider(_ref) {
|
|
56596
56560
|
var children = _ref.children,
|
|
56597
56561
|
locked = _ref.locked,
|
|
56598
|
-
restProps =
|
|
56562
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56599
56563
|
|
|
56600
56564
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56601
56565
|
var inheritableContext = useMemo(function () {
|
|
@@ -56651,7 +56615,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56651
56615
|
|
|
56652
56616
|
function warnItemProp(_ref) {
|
|
56653
56617
|
var item = _ref.item,
|
|
56654
|
-
restInfo =
|
|
56618
|
+
restInfo = objectWithoutProperties_objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56655
56619
|
|
|
56656
56620
|
Object.defineProperty(restInfo, 'item', {
|
|
56657
56621
|
get: function get() {
|
|
@@ -56769,28 +56733,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56769
56733
|
// This should be removed from doc & api in future.
|
|
56770
56734
|
|
|
56771
56735
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56772
|
-
|
|
56736
|
+
inherits_inherits(LegacyMenuItem, _React$Component);
|
|
56773
56737
|
|
|
56774
|
-
var _super =
|
|
56738
|
+
var _super = createSuper_createSuper(LegacyMenuItem);
|
|
56775
56739
|
|
|
56776
56740
|
function LegacyMenuItem() {
|
|
56777
|
-
|
|
56741
|
+
classCallCheck_classCallCheck(this, LegacyMenuItem);
|
|
56778
56742
|
|
|
56779
56743
|
return _super.apply(this, arguments);
|
|
56780
56744
|
}
|
|
56781
56745
|
|
|
56782
|
-
|
|
56746
|
+
createClass_createClass(LegacyMenuItem, [{
|
|
56783
56747
|
key: "render",
|
|
56784
56748
|
value: function render() {
|
|
56785
56749
|
var _this$props = this.props,
|
|
56786
56750
|
title = _this$props.title,
|
|
56787
56751
|
attribute = _this$props.attribute,
|
|
56788
56752
|
elementRef = _this$props.elementRef,
|
|
56789
|
-
restProps =
|
|
56753
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56790
56754
|
|
|
56791
56755
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56792
56756
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56793
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56757
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, esm_extends_extends({}, attribute, {
|
|
56794
56758
|
title: typeof title === 'string' ? title : undefined
|
|
56795
56759
|
}, passedProps, {
|
|
56796
56760
|
ref: elementRef
|
|
@@ -56821,7 +56785,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56821
56785
|
onClick = props.onClick,
|
|
56822
56786
|
onKeyDown = props.onKeyDown,
|
|
56823
56787
|
onFocus = props.onFocus,
|
|
56824
|
-
restProps =
|
|
56788
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, MenuItem_excluded2);
|
|
56825
56789
|
|
|
56826
56790
|
var domDataId = useMenuId(eventKey);
|
|
56827
56791
|
|
|
@@ -56850,7 +56814,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56850
56814
|
return {
|
|
56851
56815
|
key: eventKey,
|
|
56852
56816
|
// Note: For legacy code is reversed which not like other antd component
|
|
56853
|
-
keyPath:
|
|
56817
|
+
keyPath: toConsumableArray_toConsumableArray(connectedKeys).reverse(),
|
|
56854
56818
|
item: legacyMenuItemRef.current,
|
|
56855
56819
|
domEvent: e
|
|
56856
56820
|
};
|
|
@@ -56861,7 +56825,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56861
56825
|
|
|
56862
56826
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56863
56827
|
active = _useActive.active,
|
|
56864
|
-
activeProps =
|
|
56828
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56865
56829
|
|
|
56866
56830
|
|
|
56867
56831
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56906,7 +56870,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56906
56870
|
optionRoleProps['aria-selected'] = selected;
|
|
56907
56871
|
}
|
|
56908
56872
|
|
|
56909
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56873
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, esm_extends_extends({
|
|
56910
56874
|
ref: legacyMenuItemRef,
|
|
56911
56875
|
elementRef: elementRef,
|
|
56912
56876
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56915,13 +56879,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56915
56879
|
}, restProps, activeProps, optionRoleProps, {
|
|
56916
56880
|
component: "li",
|
|
56917
56881
|
"aria-disabled": disabled,
|
|
56918
|
-
style:
|
|
56919
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56882
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, directionStyle), style),
|
|
56883
|
+
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),
|
|
56920
56884
|
onClick: onInternalClick,
|
|
56921
56885
|
onKeyDown: onInternalKeyDown,
|
|
56922
56886
|
onFocus: onInternalFocus
|
|
56923
56887
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56924
|
-
props:
|
|
56888
|
+
props: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56925
56889
|
isSelected: selected
|
|
56926
56890
|
}),
|
|
56927
56891
|
icon: mergedItemIcon
|
|
@@ -57022,7 +56986,7 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
57022
56986
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
57023
56987
|
var className = _ref.className,
|
|
57024
56988
|
children = _ref.children,
|
|
57025
|
-
restProps =
|
|
56989
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
57026
56990
|
|
|
57027
56991
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
57028
56992
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -57142,7 +57106,7 @@ function PopupTrigger(_ref) {
|
|
|
57142
57106
|
defaultMotions = _React$useContext.defaultMotions;
|
|
57143
57107
|
|
|
57144
57108
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57145
|
-
_React$useState2 =
|
|
57109
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57146
57110
|
innerVisible = _React$useState2[0],
|
|
57147
57111
|
setInnerVisible = _React$useState2[1];
|
|
57148
57112
|
|
|
@@ -57215,7 +57179,7 @@ function InlineSubMenuList(_ref) {
|
|
|
57215
57179
|
// The inline list should remove when motion end.
|
|
57216
57180
|
|
|
57217
57181
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(!sameModeRef.current),
|
|
57218
|
-
_React$useState2 =
|
|
57182
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57219
57183
|
destroy = _React$useState2[0],
|
|
57220
57184
|
setDestroy = _React$useState2[1];
|
|
57221
57185
|
|
|
@@ -57316,7 +57280,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57316
57280
|
onTitleClick = props.onTitleClick,
|
|
57317
57281
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
57318
57282
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
57319
|
-
restProps =
|
|
57283
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SubMenu_excluded);
|
|
57320
57284
|
|
|
57321
57285
|
var domDataId = useMenuId(eventKey);
|
|
57322
57286
|
|
|
@@ -57359,11 +57323,11 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57359
57323
|
|
|
57360
57324
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
57361
57325
|
active = _useActive.active,
|
|
57362
|
-
activeProps =
|
|
57326
|
+
activeProps = objectWithoutProperties_objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
57363
57327
|
|
|
57364
57328
|
|
|
57365
57329
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
57366
|
-
_React$useState2 =
|
|
57330
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57367
57331
|
childrenActive = _React$useState2[0],
|
|
57368
57332
|
setChildrenActive = _React$useState2[1];
|
|
57369
57333
|
|
|
@@ -57944,7 +57908,7 @@ function useUUID(id) {
|
|
|
57944
57908
|
var _useMergedState = useControlledState(id, {
|
|
57945
57909
|
value: id
|
|
57946
57910
|
}),
|
|
57947
|
-
_useMergedState2 =
|
|
57911
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57948
57912
|
uuid = _useMergedState2[0],
|
|
57949
57913
|
setUUID = _useMergedState2[1];
|
|
57950
57914
|
|
|
@@ -57980,14 +57944,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57980
57944
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57981
57945
|
function useKeyRecords() {
|
|
57982
57946
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57983
|
-
_React$useState2 =
|
|
57947
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57984
57948
|
internalForceUpdate = _React$useState2[1];
|
|
57985
57949
|
|
|
57986
57950
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57987
57951
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57988
57952
|
|
|
57989
57953
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57990
|
-
_React$useState4 =
|
|
57954
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57991
57955
|
overflowKeys = _React$useState4[0],
|
|
57992
57956
|
setOverflowKeys = _React$useState4[1];
|
|
57993
57957
|
|
|
@@ -58180,7 +58144,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58180
58144
|
openTransitionName = props.openTransitionName,
|
|
58181
58145
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
58182
58146
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
58183
|
-
restProps =
|
|
58147
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, Menu_excluded);
|
|
58184
58148
|
|
|
58185
58149
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
58186
58150
|
|
|
@@ -58334,7 +58298,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58334
58298
|
return key !== targetKey;
|
|
58335
58299
|
});
|
|
58336
58300
|
} else {
|
|
58337
|
-
newSelectKeys = [].concat(
|
|
58301
|
+
newSelectKeys = [].concat(toConsumableArray_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58338
58302
|
}
|
|
58339
58303
|
} else {
|
|
58340
58304
|
newSelectKeys = [targetKey];
|
|
@@ -58342,7 +58306,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58342
58306
|
|
|
58343
58307
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58344
58308
|
|
|
58345
|
-
var selectInfo =
|
|
58309
|
+
var selectInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
58346
58310
|
selectedKeys: newSelectKeys
|
|
58347
58311
|
});
|
|
58348
58312
|
|
|
@@ -58420,13 +58384,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58420
58384
|
);
|
|
58421
58385
|
}); // >>>>> Container
|
|
58422
58386
|
|
|
58423
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58387
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, esm_extends_extends({
|
|
58424
58388
|
id: id,
|
|
58425
58389
|
ref: mergedRef,
|
|
58426
58390
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58427
58391
|
component: "ul",
|
|
58428
58392
|
itemComponent: es_MenuItem,
|
|
58429
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58393
|
+
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)),
|
|
58430
58394
|
dir: direction,
|
|
58431
58395
|
style: style,
|
|
58432
58396
|
role: "menu",
|
|
@@ -58520,13 +58484,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58520
58484
|
title = _ref.title,
|
|
58521
58485
|
eventKey = _ref.eventKey,
|
|
58522
58486
|
children = _ref.children,
|
|
58523
|
-
restProps =
|
|
58487
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58524
58488
|
|
|
58525
58489
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58526
58490
|
prefixCls = _React$useContext.prefixCls;
|
|
58527
58491
|
|
|
58528
58492
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58529
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58493
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", esm_extends_extends({}, restProps, {
|
|
58530
58494
|
onClick: function onClick(e) {
|
|
58531
58495
|
return e.stopPropagation();
|
|
58532
58496
|
},
|
|
@@ -58541,7 +58505,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58541
58505
|
|
|
58542
58506
|
function MenuItemGroup(_ref2) {
|
|
58543
58507
|
var children = _ref2.children,
|
|
58544
|
-
props =
|
|
58508
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58545
58509
|
|
|
58546
58510
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58547
58511
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58669,10 +58633,10 @@ function Dropdown(props, ref) {
|
|
|
58669
58633
|
visible = props.visible,
|
|
58670
58634
|
_props$trigger = props.trigger,
|
|
58671
58635
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58672
|
-
otherProps =
|
|
58636
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(props, Dropdown_excluded);
|
|
58673
58637
|
|
|
58674
58638
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58675
|
-
_React$useState2 =
|
|
58639
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58676
58640
|
triggerVisible = _React$useState2[0],
|
|
58677
58641
|
setTriggerVisible = _React$useState2[1];
|
|
58678
58642
|
|
|
@@ -58989,14 +58953,14 @@ function OperationNode(_ref, ref) {
|
|
|
58989
58953
|
}
|
|
58990
58954
|
}, [open]); // ========================= Render =========================
|
|
58991
58955
|
|
|
58992
|
-
var moreStyle =
|
|
58956
|
+
var moreStyle = defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58993
58957
|
|
|
58994
58958
|
if (!tabs.length) {
|
|
58995
58959
|
moreStyle.visibility = 'hidden';
|
|
58996
58960
|
moreStyle.order = 1;
|
|
58997
58961
|
}
|
|
58998
58962
|
|
|
58999
|
-
var overlayClassName = classnames_default()(
|
|
58963
|
+
var overlayClassName = classnames_default()(defineProperty_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
59000
58964
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
59001
58965
|
prefixCls: dropdownPrefix,
|
|
59002
58966
|
overlay: menu,
|
|
@@ -59275,7 +59239,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
59275
59239
|
|
|
59276
59240
|
var assertExtra = {};
|
|
59277
59241
|
|
|
59278
|
-
if (extra &&
|
|
59242
|
+
if (extra && esm_typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
59279
59243
|
assertExtra = extra;
|
|
59280
59244
|
} else {
|
|
59281
59245
|
assertExtra.right = extra;
|
|
@@ -59525,7 +59489,7 @@ function TabNavList(props, ref) {
|
|
|
59525
59489
|
}, {
|
|
59526
59490
|
width: addWidth,
|
|
59527
59491
|
height: addHeight
|
|
59528
|
-
},
|
|
59492
|
+
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
59529
59493
|
tabs: tabs
|
|
59530
59494
|
})),
|
|
59531
59495
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59617,7 +59581,7 @@ function TabNavList(props, ref) {
|
|
|
59617
59581
|
|
|
59618
59582
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59619
59583
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59620
|
-
var hiddenTabs = [].concat(
|
|
59584
|
+
var hiddenTabs = [].concat(toConsumableArray_toConsumableArray(startHiddenTabs), toConsumableArray_toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59621
59585
|
|
|
59622
59586
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59623
59587
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59703,7 +59667,7 @@ function TabNavList(props, ref) {
|
|
|
59703
59667
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59704
59668
|
onResize: onListHolderResize
|
|
59705
59669
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59706
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
59670
|
+
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)),
|
|
59707
59671
|
ref: tabsWrapperRef
|
|
59708
59672
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59709
59673
|
onResize: onListHolderResize
|
|
@@ -59719,13 +59683,13 @@ function TabNavList(props, ref) {
|
|
|
59719
59683
|
prefixCls: prefixCls,
|
|
59720
59684
|
locale: locale,
|
|
59721
59685
|
editable: editable,
|
|
59722
|
-
style:
|
|
59686
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59723
59687
|
visibility: hasDropdown ? 'hidden' : null
|
|
59724
59688
|
})
|
|
59725
59689
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59726
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59690
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59727
59691
|
style: inkStyle
|
|
59728
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59692
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, esm_extends_extends({}, props, {
|
|
59729
59693
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59730
59694
|
ref: operationsRef,
|
|
59731
59695
|
prefixCls: prefixCls,
|
|
@@ -59765,8 +59729,8 @@ function TabPanelList(_ref) {
|
|
|
59765
59729
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59766
59730
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59767
59731
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59768
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59769
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59732
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), defineProperty_defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59733
|
+
style: activeIndex && tabPaneAnimated ? defineProperty_defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59770
59734
|
}, tabs.map(function (tab) {
|
|
59771
59735
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59772
59736
|
key: tab.key,
|
|
@@ -59826,7 +59790,7 @@ function TabPane(_ref) {
|
|
|
59826
59790
|
tabIndex: active ? 0 : -1,
|
|
59827
59791
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59828
59792
|
"aria-hidden": !active,
|
|
59829
|
-
style:
|
|
59793
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedStyle), style),
|
|
59830
59794
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59831
59795
|
}, (active || visited || forceRender) && children);
|
|
59832
59796
|
}
|
|
@@ -59866,7 +59830,7 @@ function parseTabList(children) {
|
|
|
59866
59830
|
return toArray(children).map(function (node) {
|
|
59867
59831
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59868
59832
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59869
|
-
return
|
|
59833
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
59870
59834
|
key: key
|
|
59871
59835
|
}, node.props), {}, {
|
|
59872
59836
|
node: node
|
|
@@ -59909,7 +59873,7 @@ function Tabs(_ref, ref) {
|
|
|
59909
59873
|
onChange = _ref.onChange,
|
|
59910
59874
|
onTabClick = _ref.onTabClick,
|
|
59911
59875
|
onTabScroll = _ref.onTabScroll,
|
|
59912
|
-
restProps =
|
|
59876
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Tabs_excluded);
|
|
59913
59877
|
|
|
59914
59878
|
var tabs = parseTabList(children);
|
|
59915
59879
|
var rtl = direction === 'rtl';
|
|
@@ -59926,10 +59890,10 @@ function Tabs(_ref, ref) {
|
|
|
59926
59890
|
tabPane: true
|
|
59927
59891
|
};
|
|
59928
59892
|
} else {
|
|
59929
|
-
mergedAnimated =
|
|
59893
|
+
mergedAnimated = objectSpread2_objectSpread2({
|
|
59930
59894
|
inkBar: true,
|
|
59931
59895
|
tabPane: false
|
|
59932
|
-
},
|
|
59896
|
+
}, esm_typeof_typeof(animated) === 'object' ? animated : {});
|
|
59933
59897
|
} // ======================== Mobile ========================
|
|
59934
59898
|
|
|
59935
59899
|
|
|
@@ -60024,7 +59988,7 @@ function Tabs(_ref, ref) {
|
|
|
60024
59988
|
};
|
|
60025
59989
|
var tabNavBar;
|
|
60026
59990
|
|
|
60027
|
-
var tabNavBarProps =
|
|
59991
|
+
var tabNavBarProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, sharedProps), {}, {
|
|
60028
59992
|
editable: editable,
|
|
60029
59993
|
locale: locale,
|
|
60030
59994
|
moreIcon: moreIcon,
|
|
@@ -60048,11 +60012,11 @@ function Tabs(_ref, ref) {
|
|
|
60048
60012
|
tabs: tabs,
|
|
60049
60013
|
prefixCls: prefixCls
|
|
60050
60014
|
}
|
|
60051
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
60015
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
60052
60016
|
ref: ref,
|
|
60053
60017
|
id: id,
|
|
60054
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
60055
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
60018
|
+
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)
|
|
60019
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, esm_extends_extends({
|
|
60056
60020
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
60057
60021
|
}, sharedProps, {
|
|
60058
60022
|
animated: mergedAnimated
|
|
@@ -60202,7 +60166,7 @@ var Pager = function Pager(props) {
|
|
|
60202
60166
|
var _classNames;
|
|
60203
60167
|
|
|
60204
60168
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
60205
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
60169
|
+
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));
|
|
60206
60170
|
|
|
60207
60171
|
var handleClick = function handleClick() {
|
|
60208
60172
|
props.onClick(props.page);
|
|
@@ -60247,14 +60211,14 @@ var Pager = function Pager(props) {
|
|
|
60247
60211
|
|
|
60248
60212
|
|
|
60249
60213
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
60250
|
-
|
|
60214
|
+
inherits_inherits(Options, _React$Component);
|
|
60251
60215
|
|
|
60252
|
-
var _super =
|
|
60216
|
+
var _super = createSuper_createSuper(Options);
|
|
60253
60217
|
|
|
60254
60218
|
function Options() {
|
|
60255
60219
|
var _this;
|
|
60256
60220
|
|
|
60257
|
-
|
|
60221
|
+
classCallCheck_classCallCheck(this, Options);
|
|
60258
60222
|
|
|
60259
60223
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60260
60224
|
args[_key] = arguments[_key];
|
|
@@ -60320,7 +60284,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
60320
60284
|
return _this;
|
|
60321
60285
|
}
|
|
60322
60286
|
|
|
60323
|
-
|
|
60287
|
+
createClass_createClass(Options, [{
|
|
60324
60288
|
key: "getValidValue",
|
|
60325
60289
|
value: function getValidValue() {
|
|
60326
60290
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60477,14 +60441,14 @@ function calculatePage(p, state, props) {
|
|
|
60477
60441
|
}
|
|
60478
60442
|
|
|
60479
60443
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60480
|
-
|
|
60444
|
+
inherits_inherits(Pagination, _React$Component);
|
|
60481
60445
|
|
|
60482
|
-
var _super =
|
|
60446
|
+
var _super = createSuper_createSuper(Pagination);
|
|
60483
60447
|
|
|
60484
60448
|
function Pagination(props) {
|
|
60485
60449
|
var _this;
|
|
60486
60450
|
|
|
60487
|
-
|
|
60451
|
+
classCallCheck_classCallCheck(this, Pagination);
|
|
60488
60452
|
|
|
60489
60453
|
_this = _super.call(this, props);
|
|
60490
60454
|
|
|
@@ -60505,7 +60469,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60505
60469
|
});
|
|
60506
60470
|
|
|
60507
60471
|
if (typeof icon === 'function') {
|
|
60508
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
60472
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, objectSpread2_objectSpread2({}, _this.props));
|
|
60509
60473
|
}
|
|
60510
60474
|
|
|
60511
60475
|
return iconNode;
|
|
@@ -60727,7 +60691,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60727
60691
|
return _this;
|
|
60728
60692
|
}
|
|
60729
60693
|
|
|
60730
|
-
|
|
60694
|
+
createClass_createClass(Pagination, [{
|
|
60731
60695
|
key: "componentDidUpdate",
|
|
60732
60696
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60733
60697
|
// When current page change, fix focused style of prev item
|
|
@@ -60875,8 +60839,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60875
60839
|
}, gotoButton);
|
|
60876
60840
|
}
|
|
60877
60841
|
|
|
60878
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60879
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60842
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
60843
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60880
60844
|
style: style,
|
|
60881
60845
|
ref: this.savePaginationNode
|
|
60882
60846
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60884,7 +60848,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60884
60848
|
onClick: this.prev,
|
|
60885
60849
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60886
60850
|
onKeyPress: this.runIfEnterPrev,
|
|
60887
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60851
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60888
60852
|
"aria-disabled": !this.hasPrev()
|
|
60889
60853
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60890
60854
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60905,7 +60869,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60905
60869
|
onClick: this.next,
|
|
60906
60870
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60907
60871
|
onKeyPress: this.runIfEnterNext,
|
|
60908
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60872
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60909
60873
|
"aria-disabled": !this.hasNext()
|
|
60910
60874
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60911
60875
|
}
|
|
@@ -60921,7 +60885,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60921
60885
|
};
|
|
60922
60886
|
|
|
60923
60887
|
if (!allPages) {
|
|
60924
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60888
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60925
60889
|
key: "noPager",
|
|
60926
60890
|
page: 1,
|
|
60927
60891
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60930,7 +60894,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60930
60894
|
|
|
60931
60895
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60932
60896
|
var active = current === i;
|
|
60933
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60897
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, esm_extends_extends({}, pagerProps, {
|
|
60934
60898
|
key: i,
|
|
60935
60899
|
page: i,
|
|
60936
60900
|
active: active
|
|
@@ -60947,7 +60911,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60947
60911
|
onClick: this.jumpPrev,
|
|
60948
60912
|
tabIndex: "0",
|
|
60949
60913
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60950
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60914
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60951
60915
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60952
60916
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60953
60917
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60955,7 +60919,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60955
60919
|
tabIndex: "0",
|
|
60956
60920
|
onClick: this.jumpNext,
|
|
60957
60921
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60958
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60922
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60959
60923
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60960
60924
|
}
|
|
60961
60925
|
|
|
@@ -61042,8 +61006,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61042
61006
|
|
|
61043
61007
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
61044
61008
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
61045
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
61046
|
-
className: classnames_default()(prefixCls, className,
|
|
61009
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", esm_extends_extends({
|
|
61010
|
+
className: classnames_default()(prefixCls, className, defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
61047
61011
|
style: style,
|
|
61048
61012
|
unselectable: "unselectable",
|
|
61049
61013
|
ref: this.savePaginationNode
|
|
@@ -61052,14 +61016,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
61052
61016
|
onClick: this.prev,
|
|
61053
61017
|
tabIndex: prevDisabled ? null : 0,
|
|
61054
61018
|
onKeyPress: this.runIfEnterPrev,
|
|
61055
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
61019
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
61056
61020
|
"aria-disabled": prevDisabled
|
|
61057
61021
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
61058
61022
|
title: showTitle ? locale.next_page : null,
|
|
61059
61023
|
onClick: this.next,
|
|
61060
61024
|
tabIndex: nextDisabled ? null : 0,
|
|
61061
61025
|
onKeyPress: this.runIfEnterNext,
|
|
61062
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
61026
|
+
className: classnames_default()("".concat(prefixCls, "-next"), defineProperty_defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
61063
61027
|
"aria-disabled": nextDisabled
|
|
61064
61028
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
61065
61029
|
disabled: disabled,
|
|
@@ -61137,7 +61101,7 @@ Pagination.defaultProps = {
|
|
|
61137
61101
|
|
|
61138
61102
|
|
|
61139
61103
|
var MiniSelect = function MiniSelect(props) {
|
|
61140
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
61104
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, esm_extends_extends({
|
|
61141
61105
|
size: "small"
|
|
61142
61106
|
}, props));
|
|
61143
61107
|
};
|
|
@@ -61198,7 +61162,7 @@ var responsiveObserve = {
|
|
|
61198
61162
|
var listener = function listener(_ref) {
|
|
61199
61163
|
var matches = _ref.matches;
|
|
61200
61164
|
|
|
61201
|
-
_this2.dispatch(
|
|
61165
|
+
_this2.dispatch(esm_extends_extends(esm_extends_extends({}, screens), defineProperty_defineProperty({}, screen, matches)));
|
|
61202
61166
|
};
|
|
61203
61167
|
|
|
61204
61168
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61339,13 +61303,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61339
61303
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61340
61304
|
var _classNames;
|
|
61341
61305
|
|
|
61342
|
-
var locale =
|
|
61306
|
+
var locale = esm_extends_extends(esm_extends_extends({}, contextLocale), customLocale);
|
|
61343
61307
|
|
|
61344
61308
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61345
61309
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61346
61310
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61347
61311
|
mini: isSmall
|
|
61348
|
-
},
|
|
61312
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61349
61313
|
|
|
61350
61314
|
if (minimalistic) {
|
|
61351
61315
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61382,7 +61346,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61382
61346
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61383
61347
|
}
|
|
61384
61348
|
|
|
61385
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
61349
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, esm_extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61386
61350
|
prefixCls: prefixCls,
|
|
61387
61351
|
selectPrefixCls: selectPrefixCls,
|
|
61388
61352
|
className: extendedClassName,
|
|
@@ -61854,10 +61818,10 @@ function Action(_ref) {
|
|
|
61854
61818
|
setCurAction = _useState2[1];
|
|
61855
61819
|
|
|
61856
61820
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61857
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61821
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(e) {
|
|
61858
61822
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61859
61823
|
|
|
61860
|
-
return
|
|
61824
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
61861
61825
|
while (1) {
|
|
61862
61826
|
switch (_context.prev = _context.next) {
|
|
61863
61827
|
case 0:
|