@x-edu/live-player 0.0.5 → 0.0.7
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 +392 -421
- package/dist/XEduLivePlayerPre.common.js +15 -8
- package/dist/img/empty.f5848cfc.png +0 -0
- package/doc/develop.md +18 -1
- package/package.json +1 -1
- package/src/component/Empty/index.jsx +1 -3
- package/src/detail/index.jsx +6 -6
- package/src/index.js +3 -1
|
@@ -9500,6 +9500,14 @@ module.exports = __webpack_require__.p + "img/reload.3cf8ef22.png?x-bce-process=
|
|
|
9500
9500
|
|
|
9501
9501
|
/***/ }),
|
|
9502
9502
|
|
|
9503
|
+
/***/ 7943:
|
|
9504
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9505
|
+
|
|
9506
|
+
"use strict";
|
|
9507
|
+
module.exports = __webpack_require__.p + "img/empty.f5848cfc.png";
|
|
9508
|
+
|
|
9509
|
+
/***/ }),
|
|
9510
|
+
|
|
9503
9511
|
/***/ 6996:
|
|
9504
9512
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9505
9513
|
|
|
@@ -12572,7 +12580,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
12572
12580
|
|
|
12573
12581
|
|
|
12574
12582
|
|
|
12575
|
-
var emptyImg = '@/component/Empty/img/empty.png';
|
|
12576
12583
|
function Empty_Empty(_ref) {
|
|
12577
12584
|
var _ref$hideBack = _ref.hideBack,
|
|
12578
12585
|
hideBack = _ref$hideBack === void 0 ? false : _ref$hideBack,
|
|
@@ -12589,7 +12596,7 @@ function Empty_Empty(_ref) {
|
|
|
12589
12596
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
12590
12597
|
className: classnames_default()(Empty_index_module["empty-wrap"], className)
|
|
12591
12598
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
12592
|
-
src:
|
|
12599
|
+
src: __webpack_require__(7943),
|
|
12593
12600
|
alt: ""
|
|
12594
12601
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("p", null, tip), description, !hideBack && (buttonRender || /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("a", {
|
|
12595
12602
|
className: Empty_index_module["go-other"],
|
|
@@ -15594,6 +15601,9 @@ var LiveCountDown_index_module_update = injectStylesIntoStyleTag_default()(LiveC
|
|
|
15594
15601
|
|
|
15595
15602
|
/* harmony default export */ var detail_LiveCountDown_index_module = (LiveCountDown_index_module/* default */.Z && LiveCountDown_index_module/* default.locals */.Z.locals ? LiveCountDown_index_module/* default.locals */.Z.locals : undefined);
|
|
15596
15603
|
|
|
15604
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
15605
|
+
var runtime_regenerator = __webpack_require__(5273);
|
|
15606
|
+
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
15597
15607
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
15598
15608
|
|
|
15599
15609
|
|
|
@@ -15660,9 +15670,9 @@ function isSourceReady(_x) {
|
|
|
15660
15670
|
}
|
|
15661
15671
|
|
|
15662
15672
|
function _isSourceReady() {
|
|
15663
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
15673
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(liveInfo) {
|
|
15664
15674
|
var newLiveInfo;
|
|
15665
|
-
return
|
|
15675
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
15666
15676
|
while (1) {
|
|
15667
15677
|
switch (_context.prev = _context.next) {
|
|
15668
15678
|
case 0:
|
|
@@ -15853,8 +15863,8 @@ function usePullSource_isSourceReady(_x) {
|
|
|
15853
15863
|
}
|
|
15854
15864
|
|
|
15855
15865
|
function hook_usePullSource_isSourceReady() {
|
|
15856
|
-
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
15857
|
-
return
|
|
15866
|
+
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(url) {
|
|
15867
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
15858
15868
|
while (1) {
|
|
15859
15869
|
switch (_context.prev = _context.next) {
|
|
15860
15870
|
case 0:
|
|
@@ -16485,6 +16495,39 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
16485
16495
|
// style dependencies
|
|
16486
16496
|
|
|
16487
16497
|
|
|
16498
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16499
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
16500
|
+
if (key in obj) {
|
|
16501
|
+
Object.defineProperty(obj, key, {
|
|
16502
|
+
value: value,
|
|
16503
|
+
enumerable: true,
|
|
16504
|
+
configurable: true,
|
|
16505
|
+
writable: true
|
|
16506
|
+
});
|
|
16507
|
+
} else {
|
|
16508
|
+
obj[key] = value;
|
|
16509
|
+
}
|
|
16510
|
+
|
|
16511
|
+
return obj;
|
|
16512
|
+
}
|
|
16513
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
16514
|
+
function esm_extends_extends() {
|
|
16515
|
+
esm_extends_extends = Object.assign || function (target) {
|
|
16516
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
16517
|
+
var source = arguments[i];
|
|
16518
|
+
|
|
16519
|
+
for (var key in source) {
|
|
16520
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16521
|
+
target[key] = source[key];
|
|
16522
|
+
}
|
|
16523
|
+
}
|
|
16524
|
+
}
|
|
16525
|
+
|
|
16526
|
+
return target;
|
|
16527
|
+
};
|
|
16528
|
+
|
|
16529
|
+
return esm_extends_extends.apply(this, arguments);
|
|
16530
|
+
}
|
|
16488
16531
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
16489
16532
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
16490
16533
|
if (Array.isArray(arr)) return arr;
|
|
@@ -16519,6 +16562,26 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
16519
16562
|
|
|
16520
16563
|
return _arr;
|
|
16521
16564
|
}
|
|
16565
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16566
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
16567
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
16568
|
+
|
|
16569
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
16570
|
+
arr2[i] = arr[i];
|
|
16571
|
+
}
|
|
16572
|
+
|
|
16573
|
+
return arr2;
|
|
16574
|
+
}
|
|
16575
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
16576
|
+
|
|
16577
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
16578
|
+
if (!o) return;
|
|
16579
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16580
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16581
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16582
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16583
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16584
|
+
}
|
|
16522
16585
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
16523
16586
|
function nonIterableRest_nonIterableRest() {
|
|
16524
16587
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -16529,7 +16592,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
16529
16592
|
|
|
16530
16593
|
|
|
16531
16594
|
function slicedToArray_slicedToArray(arr, i) {
|
|
16532
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
16595
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
16533
16596
|
}
|
|
16534
16597
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
16535
16598
|
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
@@ -16879,16 +16942,6 @@ var cacheStyle = {};
|
|
|
16879
16942
|
}
|
|
16880
16943
|
}
|
|
16881
16944
|
});
|
|
16882
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
16883
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
16884
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
16885
|
-
|
|
16886
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
16887
|
-
arr2[i] = arr[i];
|
|
16888
|
-
}
|
|
16889
|
-
|
|
16890
|
-
return arr2;
|
|
16891
|
-
}
|
|
16892
16945
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
16893
16946
|
|
|
16894
16947
|
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
@@ -16898,16 +16951,6 @@ function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
|
16898
16951
|
function iterableToArray_iterableToArray(iter) {
|
|
16899
16952
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
16900
16953
|
}
|
|
16901
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
16902
|
-
|
|
16903
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
16904
|
-
if (!o) return;
|
|
16905
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16906
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
16907
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
16908
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16909
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
16910
|
-
}
|
|
16911
16954
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
16912
16955
|
function nonIterableSpread_nonIterableSpread() {
|
|
16913
16956
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -17310,39 +17353,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
17310
17353
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
17311
17354
|
|
|
17312
17355
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
17313
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
17314
|
-
function esm_extends_extends() {
|
|
17315
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
17316
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
17317
|
-
var source = arguments[i];
|
|
17318
|
-
|
|
17319
|
-
for (var key in source) {
|
|
17320
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17321
|
-
target[key] = source[key];
|
|
17322
|
-
}
|
|
17323
|
-
}
|
|
17324
|
-
}
|
|
17325
|
-
|
|
17326
|
-
return target;
|
|
17327
|
-
};
|
|
17328
|
-
|
|
17329
|
-
return esm_extends_extends.apply(this, arguments);
|
|
17330
|
-
}
|
|
17331
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17332
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
17333
|
-
if (key in obj) {
|
|
17334
|
-
Object.defineProperty(obj, key, {
|
|
17335
|
-
value: value,
|
|
17336
|
-
enumerable: true,
|
|
17337
|
-
configurable: true,
|
|
17338
|
-
writable: true
|
|
17339
|
-
});
|
|
17340
|
-
} else {
|
|
17341
|
-
obj[key] = value;
|
|
17342
|
-
}
|
|
17343
|
-
|
|
17344
|
-
return obj;
|
|
17345
|
-
}
|
|
17346
17356
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17347
17357
|
|
|
17348
17358
|
|
|
@@ -17383,52 +17393,6 @@ function objectSpread2_objectSpread2(target) {
|
|
|
17383
17393
|
|
|
17384
17394
|
return target;
|
|
17385
17395
|
}
|
|
17386
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17387
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
17388
|
-
if (Array.isArray(arr)) return arr;
|
|
17389
|
-
}
|
|
17390
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17391
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
17392
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
17393
|
-
|
|
17394
|
-
if (_i == null) return;
|
|
17395
|
-
var _arr = [];
|
|
17396
|
-
var _n = true;
|
|
17397
|
-
var _d = false;
|
|
17398
|
-
|
|
17399
|
-
var _s, _e;
|
|
17400
|
-
|
|
17401
|
-
try {
|
|
17402
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
17403
|
-
_arr.push(_s.value);
|
|
17404
|
-
|
|
17405
|
-
if (i && _arr.length === i) break;
|
|
17406
|
-
}
|
|
17407
|
-
} catch (err) {
|
|
17408
|
-
_d = true;
|
|
17409
|
-
_e = err;
|
|
17410
|
-
} finally {
|
|
17411
|
-
try {
|
|
17412
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
17413
|
-
} finally {
|
|
17414
|
-
if (_d) throw _e;
|
|
17415
|
-
}
|
|
17416
|
-
}
|
|
17417
|
-
|
|
17418
|
-
return _arr;
|
|
17419
|
-
}
|
|
17420
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17421
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
17422
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17423
|
-
}
|
|
17424
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
|
|
17429
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
17430
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
17431
|
-
}
|
|
17432
17396
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
17433
17397
|
/**
|
|
17434
17398
|
* @ignore
|
|
@@ -18095,7 +18059,7 @@ function pickAttrs(props) {
|
|
|
18095
18059
|
aria: true
|
|
18096
18060
|
};
|
|
18097
18061
|
} else {
|
|
18098
|
-
mergedConfig =
|
|
18062
|
+
mergedConfig = objectSpread2_objectSpread2({}, ariaOnly);
|
|
18099
18063
|
}
|
|
18100
18064
|
|
|
18101
18065
|
var attrs = {};
|
|
@@ -18128,7 +18092,7 @@ var react_is = __webpack_require__(9864);
|
|
|
18128
18092
|
function fillRef(ref, node) {
|
|
18129
18093
|
if (typeof ref === 'function') {
|
|
18130
18094
|
ref(node);
|
|
18131
|
-
} else if (
|
|
18095
|
+
} else if (esm_typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
18132
18096
|
ref.current = node;
|
|
18133
18097
|
}
|
|
18134
18098
|
}
|
|
@@ -18238,7 +18202,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
18238
18202
|
function getTransitionName(transitionName, transitionType) {
|
|
18239
18203
|
if (!transitionName) return null;
|
|
18240
18204
|
|
|
18241
|
-
if (
|
|
18205
|
+
if (esm_typeof_typeof(transitionName) === 'object') {
|
|
18242
18206
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
18243
18207
|
return match[1].toUpperCase();
|
|
18244
18208
|
});
|
|
@@ -18531,13 +18495,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18531
18495
|
|
|
18532
18496
|
switch (status) {
|
|
18533
18497
|
case 'appear':
|
|
18534
|
-
return _ref2 = {},
|
|
18498
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), defineProperty_defineProperty(_ref2, STEP_START, onAppearStart), defineProperty_defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
18535
18499
|
|
|
18536
18500
|
case 'enter':
|
|
18537
|
-
return _ref3 = {},
|
|
18501
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), defineProperty_defineProperty(_ref3, STEP_START, onEnterStart), defineProperty_defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
18538
18502
|
|
|
18539
18503
|
case 'leave':
|
|
18540
|
-
return _ref4 = {},
|
|
18504
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), defineProperty_defineProperty(_ref4, STEP_START, onLeaveStart), defineProperty_defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
18541
18505
|
|
|
18542
18506
|
default:
|
|
18543
18507
|
return {};
|
|
@@ -18645,7 +18609,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18645
18609
|
var mergedStyle = style;
|
|
18646
18610
|
|
|
18647
18611
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
18648
|
-
mergedStyle =
|
|
18612
|
+
mergedStyle = objectSpread2_objectSpread2({
|
|
18649
18613
|
transition: 'none'
|
|
18650
18614
|
}, mergedStyle);
|
|
18651
18615
|
}
|
|
@@ -18660,17 +18624,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
18660
18624
|
|
|
18661
18625
|
|
|
18662
18626
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18663
|
-
|
|
18627
|
+
inherits_inherits(DomWrapper, _React$Component);
|
|
18664
18628
|
|
|
18665
|
-
var _super =
|
|
18629
|
+
var _super = createSuper_createSuper(DomWrapper);
|
|
18666
18630
|
|
|
18667
18631
|
function DomWrapper() {
|
|
18668
|
-
|
|
18632
|
+
classCallCheck_classCallCheck(this, DomWrapper);
|
|
18669
18633
|
|
|
18670
18634
|
return _super.apply(this, arguments);
|
|
18671
18635
|
}
|
|
18672
18636
|
|
|
18673
|
-
|
|
18637
|
+
createClass_createClass(DomWrapper, [{
|
|
18674
18638
|
key: "render",
|
|
18675
18639
|
value: function render() {
|
|
18676
18640
|
return this.props.children;
|
|
@@ -18706,7 +18670,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
18706
18670
|
function genCSSMotion(config) {
|
|
18707
18671
|
var transitionSupport = config;
|
|
18708
18672
|
|
|
18709
|
-
if (
|
|
18673
|
+
if (esm_typeof_typeof(config) === 'object') {
|
|
18710
18674
|
transitionSupport = config.transitionSupport;
|
|
18711
18675
|
}
|
|
18712
18676
|
|
|
@@ -18764,7 +18728,7 @@ function genCSSMotion(config) {
|
|
|
18764
18728
|
|
|
18765
18729
|
var motionChildren;
|
|
18766
18730
|
|
|
18767
|
-
var mergedProps =
|
|
18731
|
+
var mergedProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, eventProps), {}, {
|
|
18768
18732
|
visible: visible
|
|
18769
18733
|
});
|
|
18770
18734
|
|
|
@@ -18774,13 +18738,13 @@ function genCSSMotion(config) {
|
|
|
18774
18738
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
18775
18739
|
// Stable children
|
|
18776
18740
|
if (mergedVisible) {
|
|
18777
|
-
motionChildren = children(
|
|
18741
|
+
motionChildren = children(objectSpread2_objectSpread2({}, mergedProps), setNodeRef);
|
|
18778
18742
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
18779
|
-
motionChildren = children(
|
|
18743
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
18780
18744
|
className: leavedClassName
|
|
18781
18745
|
}), setNodeRef);
|
|
18782
18746
|
} else if (forceRender) {
|
|
18783
|
-
motionChildren = children(
|
|
18747
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
18784
18748
|
style: {
|
|
18785
18749
|
display: 'none'
|
|
18786
18750
|
}
|
|
@@ -18802,8 +18766,8 @@ function genCSSMotion(config) {
|
|
|
18802
18766
|
statusSuffix = 'start';
|
|
18803
18767
|
}
|
|
18804
18768
|
|
|
18805
|
-
motionChildren = children(
|
|
18806
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
18769
|
+
motionChildren = children(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, mergedProps), {}, {
|
|
18770
|
+
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)),
|
|
18807
18771
|
style: statusStyle
|
|
18808
18772
|
}), setNodeRef);
|
|
18809
18773
|
}
|
|
@@ -18816,6 +18780,41 @@ function genCSSMotion(config) {
|
|
|
18816
18780
|
return CSSMotion;
|
|
18817
18781
|
}
|
|
18818
18782
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
18783
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
18784
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
18785
|
+
if (source == null) return {};
|
|
18786
|
+
var target = {};
|
|
18787
|
+
var sourceKeys = Object.keys(source);
|
|
18788
|
+
var key, i;
|
|
18789
|
+
|
|
18790
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
18791
|
+
key = sourceKeys[i];
|
|
18792
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
18793
|
+
target[key] = source[key];
|
|
18794
|
+
}
|
|
18795
|
+
|
|
18796
|
+
return target;
|
|
18797
|
+
}
|
|
18798
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
18799
|
+
|
|
18800
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
18801
|
+
if (source == null) return {};
|
|
18802
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
18803
|
+
var key, i;
|
|
18804
|
+
|
|
18805
|
+
if (Object.getOwnPropertySymbols) {
|
|
18806
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
18807
|
+
|
|
18808
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
18809
|
+
key = sourceSymbolKeys[i];
|
|
18810
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
18811
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
18812
|
+
target[key] = source[key];
|
|
18813
|
+
}
|
|
18814
|
+
}
|
|
18815
|
+
|
|
18816
|
+
return target;
|
|
18817
|
+
}
|
|
18819
18818
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
18820
18819
|
|
|
18821
18820
|
|
|
@@ -18826,7 +18825,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
18826
18825
|
function wrapKeyToObject(key) {
|
|
18827
18826
|
var keyObj;
|
|
18828
18827
|
|
|
18829
|
-
if (key &&
|
|
18828
|
+
if (key && esm_typeof_typeof(key) === 'object' && 'key' in key) {
|
|
18830
18829
|
keyObj = key;
|
|
18831
18830
|
} else {
|
|
18832
18831
|
keyObj = {
|
|
@@ -18834,7 +18833,7 @@ function wrapKeyToObject(key) {
|
|
|
18834
18833
|
};
|
|
18835
18834
|
}
|
|
18836
18835
|
|
|
18837
|
-
return
|
|
18836
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
18838
18837
|
key: String(keyObj.key)
|
|
18839
18838
|
});
|
|
18840
18839
|
}
|
|
@@ -18861,14 +18860,14 @@ function diffKeys() {
|
|
|
18861
18860
|
// New added keys should add before current key
|
|
18862
18861
|
if (currentIndex < i) {
|
|
18863
18862
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
18864
|
-
return
|
|
18863
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
18865
18864
|
status: STATUS_ADD
|
|
18866
18865
|
});
|
|
18867
18866
|
}));
|
|
18868
18867
|
currentIndex = i;
|
|
18869
18868
|
}
|
|
18870
18869
|
|
|
18871
|
-
list.push(
|
|
18870
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentKeyObj), {}, {
|
|
18872
18871
|
status: STATUS_KEEP
|
|
18873
18872
|
}));
|
|
18874
18873
|
currentIndex += 1;
|
|
@@ -18879,7 +18878,7 @@ function diffKeys() {
|
|
|
18879
18878
|
|
|
18880
18879
|
|
|
18881
18880
|
if (!hit) {
|
|
18882
|
-
list.push(
|
|
18881
|
+
list.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, keyObj), {}, {
|
|
18883
18882
|
status: STATUS_REMOVE
|
|
18884
18883
|
}));
|
|
18885
18884
|
}
|
|
@@ -18887,7 +18886,7 @@ function diffKeys() {
|
|
|
18887
18886
|
|
|
18888
18887
|
if (currentIndex < currentLen) {
|
|
18889
18888
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
18890
|
-
return
|
|
18889
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj), {}, {
|
|
18891
18890
|
status: STATUS_ADD
|
|
18892
18891
|
});
|
|
18893
18892
|
}));
|
|
@@ -18948,14 +18947,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18948
18947
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
18949
18948
|
|
|
18950
18949
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
18951
|
-
|
|
18950
|
+
inherits_inherits(CSSMotionList, _React$Component);
|
|
18952
18951
|
|
|
18953
|
-
var _super =
|
|
18952
|
+
var _super = createSuper_createSuper(CSSMotionList);
|
|
18954
18953
|
|
|
18955
18954
|
function CSSMotionList() {
|
|
18956
18955
|
var _this;
|
|
18957
18956
|
|
|
18958
|
-
|
|
18957
|
+
classCallCheck_classCallCheck(this, CSSMotionList);
|
|
18959
18958
|
|
|
18960
18959
|
_this = _super.apply(this, arguments);
|
|
18961
18960
|
_this.state = {
|
|
@@ -18968,7 +18967,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18968
18967
|
return {
|
|
18969
18968
|
keyEntities: keyEntities.map(function (entity) {
|
|
18970
18969
|
if (entity.key !== removeKey) return entity;
|
|
18971
|
-
return
|
|
18970
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, entity), {}, {
|
|
18972
18971
|
status: STATUS_REMOVED
|
|
18973
18972
|
});
|
|
18974
18973
|
})
|
|
@@ -18979,7 +18978,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18979
18978
|
return _this;
|
|
18980
18979
|
}
|
|
18981
18980
|
|
|
18982
|
-
|
|
18981
|
+
createClass_createClass(CSSMotionList, [{
|
|
18983
18982
|
key: "render",
|
|
18984
18983
|
value: function render() {
|
|
18985
18984
|
var _this2 = this;
|
|
@@ -18990,7 +18989,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
18990
18989
|
component = _this$props.component,
|
|
18991
18990
|
children = _this$props.children,
|
|
18992
18991
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
18993
|
-
restProps =
|
|
18992
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
18994
18993
|
|
|
18995
18994
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
18996
18995
|
var motionProps = {};
|
|
@@ -19001,10 +19000,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
19001
19000
|
delete restProps.keys;
|
|
19002
19001
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
19003
19002
|
var status = _ref2.status,
|
|
19004
|
-
eventProps =
|
|
19003
|
+
eventProps = objectWithoutProperties_objectWithoutProperties(_ref2, ["status"]);
|
|
19005
19004
|
|
|
19006
19005
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
19007
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
19006
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, esm_extends_extends({}, motionProps, {
|
|
19008
19007
|
key: eventProps.key,
|
|
19009
19008
|
visible: visible,
|
|
19010
19009
|
eventProps: eventProps,
|
|
@@ -19204,7 +19203,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
19204
19203
|
}); // ============================= Style ==============================
|
|
19205
19204
|
|
|
19206
19205
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
19207
|
-
_React$useState2 =
|
|
19206
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
19208
19207
|
transformOrigin = _React$useState2[0],
|
|
19209
19208
|
setTransformOrigin = _React$useState2[1];
|
|
19210
19209
|
|
|
@@ -19350,7 +19349,7 @@ function Dialog(props) {
|
|
|
19350
19349
|
var contentRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
19351
19350
|
|
|
19352
19351
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(visible),
|
|
19353
|
-
_React$useState2 =
|
|
19352
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
19354
19353
|
animatedVisible = _React$useState2[0],
|
|
19355
19354
|
setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================
|
|
19356
19355
|
|
|
@@ -19537,7 +19536,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
19537
19536
|
}, [visible]); // 渲染在当前 dom 里;
|
|
19538
19537
|
|
|
19539
19538
|
if (getContainer === false) {
|
|
19540
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
19539
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
19541
19540
|
getOpenCount: function getOpenCount() {
|
|
19542
19541
|
return 2;
|
|
19543
19542
|
} // 不对 body 做任何操作。。
|
|
@@ -19555,7 +19554,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
19555
19554
|
forceRender: forceRender,
|
|
19556
19555
|
getContainer: getContainer
|
|
19557
19556
|
}, function (childProps) {
|
|
19558
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
19557
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, esm_extends_extends({}, props, {
|
|
19559
19558
|
destroyOnClose: destroyOnClose,
|
|
19560
19559
|
afterClose: function afterClose() {
|
|
19561
19560
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -19590,8 +19589,8 @@ function getConfirmLocale() {
|
|
|
19590
19589
|
|
|
19591
19590
|
|
|
19592
19591
|
|
|
19593
|
-
var UnreachableException = /*#__PURE__*/
|
|
19594
|
-
|
|
19592
|
+
var UnreachableException = /*#__PURE__*/createClass_createClass(function UnreachableException(value) {
|
|
19593
|
+
classCallCheck_classCallCheck(this, UnreachableException);
|
|
19595
19594
|
|
|
19596
19595
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
19597
19596
|
});
|
|
@@ -19654,8 +19653,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
19654
19653
|
console.warn(new UnreachableException(size).error);
|
|
19655
19654
|
}
|
|
19656
19655
|
|
|
19657
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
19658
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
19656
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
19657
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, others, {
|
|
19659
19658
|
className: classes
|
|
19660
19659
|
}));
|
|
19661
19660
|
});
|
|
@@ -19726,14 +19725,14 @@ function isNotGrey(color) {
|
|
|
19726
19725
|
}
|
|
19727
19726
|
|
|
19728
19727
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
19729
|
-
|
|
19728
|
+
inherits_inherits(Wave, _React$Component);
|
|
19730
19729
|
|
|
19731
|
-
var _super =
|
|
19730
|
+
var _super = createSuper_createSuper(Wave);
|
|
19732
19731
|
|
|
19733
19732
|
function Wave() {
|
|
19734
19733
|
var _this;
|
|
19735
19734
|
|
|
19736
|
-
|
|
19735
|
+
classCallCheck_classCallCheck(this, Wave);
|
|
19737
19736
|
|
|
19738
19737
|
_this = _super.apply(this, arguments);
|
|
19739
19738
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -19753,7 +19752,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
19753
19752
|
|
|
19754
19753
|
_this.extraNode = document.createElement('div');
|
|
19755
19754
|
|
|
19756
|
-
var _assertThisInitialize =
|
|
19755
|
+
var _assertThisInitialize = assertThisInitialized_assertThisInitialized(_this),
|
|
19757
19756
|
extraNode = _assertThisInitialize.extraNode;
|
|
19758
19757
|
|
|
19759
19758
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -19860,7 +19859,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
19860
19859
|
return _this;
|
|
19861
19860
|
}
|
|
19862
19861
|
|
|
19863
|
-
|
|
19862
|
+
createClass_createClass(Wave, [{
|
|
19864
19863
|
key: "componentDidMount",
|
|
19865
19864
|
value: function componentDidMount() {
|
|
19866
19865
|
var node = this.containerRef.current;
|
|
@@ -20087,7 +20086,7 @@ function spaceChildren(children, needInserted) {
|
|
|
20087
20086
|
var isPrevChildPure = false;
|
|
20088
20087
|
var childList = [];
|
|
20089
20088
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
20090
|
-
var type =
|
|
20089
|
+
var type = esm_typeof_typeof(child);
|
|
20091
20090
|
|
|
20092
20091
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
20093
20092
|
|
|
@@ -20187,7 +20186,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20187
20186
|
}; // =============== Update Loading ===============
|
|
20188
20187
|
|
|
20189
20188
|
|
|
20190
|
-
var loadingOrDelay =
|
|
20189
|
+
var loadingOrDelay = esm_typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
20191
20190
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
20192
20191
|
clearTimeout(delayTimeoutRef.current);
|
|
20193
20192
|
|
|
@@ -20227,7 +20226,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20227
20226
|
var sizeFullname = customizeSize || size;
|
|
20228
20227
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
20229
20228
|
var iconType = innerLoading ? 'loading' : icon;
|
|
20230
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
20229
|
+
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);
|
|
20231
20230
|
var iconNode;
|
|
20232
20231
|
|
|
20233
20232
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -20246,14 +20245,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
20246
20245
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
20247
20246
|
|
|
20248
20247
|
if (linkButtonRestProps.href !== undefined) {
|
|
20249
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
20248
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", esm_extends_extends({}, linkButtonRestProps, {
|
|
20250
20249
|
className: classes,
|
|
20251
20250
|
onClick: handleClick,
|
|
20252
20251
|
ref: buttonRef
|
|
20253
20252
|
}), iconNode, kids);
|
|
20254
20253
|
}
|
|
20255
20254
|
|
|
20256
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
20255
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", esm_extends_extends({}, rest, {
|
|
20257
20256
|
type: htmlType,
|
|
20258
20257
|
className: classes,
|
|
20259
20258
|
onClick: handleClick,
|
|
@@ -20431,9 +20430,9 @@ var Modal = function Modal(props) {
|
|
|
20431
20430
|
okType = props.okType,
|
|
20432
20431
|
cancelText = props.cancelText,
|
|
20433
20432
|
confirmLoading = props.confirmLoading;
|
|
20434
|
-
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,
|
|
20433
|
+
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({
|
|
20435
20434
|
onClick: handleCancel
|
|
20436
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
20435
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, esm_extends_extends({}, convertLegacyProps(okType), {
|
|
20437
20436
|
loading: confirmLoading,
|
|
20438
20437
|
onClick: handleOk
|
|
20439
20438
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -20468,8 +20467,8 @@ var Modal = function Modal(props) {
|
|
|
20468
20467
|
type: "close",
|
|
20469
20468
|
className: "".concat(prefixCls, "-close-icon")
|
|
20470
20469
|
}));
|
|
20471
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
20472
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
20470
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
20471
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, esm_extends_extends({}, restProps, {
|
|
20473
20472
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
20474
20473
|
prefixCls: prefixCls,
|
|
20475
20474
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -20595,7 +20594,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
20595
20594
|
children = props.children,
|
|
20596
20595
|
prefixCls = props.prefixCls,
|
|
20597
20596
|
buttonProps = props.buttonProps;
|
|
20598
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
20597
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, esm_extends_extends({}, convertLegacyProps(type), {
|
|
20599
20598
|
onClick: onClick,
|
|
20600
20599
|
loading: loading,
|
|
20601
20600
|
prefixCls: prefixCls
|
|
@@ -22112,7 +22111,7 @@ function get(entity, path) {
|
|
|
22112
22111
|
|
|
22113
22112
|
|
|
22114
22113
|
function _toArray(arr) {
|
|
22115
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
22114
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
22116
22115
|
}
|
|
22117
22116
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
22118
22117
|
|
|
@@ -22134,9 +22133,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
22134
22133
|
if (!entity && typeof path === 'number') {
|
|
22135
22134
|
clone = [];
|
|
22136
22135
|
} else if (Array.isArray(entity)) {
|
|
22137
|
-
clone =
|
|
22136
|
+
clone = toConsumableArray_toConsumableArray(entity);
|
|
22138
22137
|
} else {
|
|
22139
|
-
clone =
|
|
22138
|
+
clone = objectSpread2_objectSpread2({}, entity);
|
|
22140
22139
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
22141
22140
|
|
|
22142
22141
|
|
|
@@ -22200,7 +22199,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
22200
22199
|
}
|
|
22201
22200
|
|
|
22202
22201
|
function isObject(obj) {
|
|
22203
|
-
return
|
|
22202
|
+
return esm_typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
22204
22203
|
}
|
|
22205
22204
|
/**
|
|
22206
22205
|
* Copy values into store and return a new values object
|
|
@@ -22209,7 +22208,7 @@ function isObject(obj) {
|
|
|
22209
22208
|
|
|
22210
22209
|
|
|
22211
22210
|
function internalSetValues(store, values) {
|
|
22212
|
-
var newStore = Array.isArray(store) ?
|
|
22211
|
+
var newStore = Array.isArray(store) ? toConsumableArray_toConsumableArray(store) : objectSpread2_objectSpread2({}, store);
|
|
22213
22212
|
|
|
22214
22213
|
if (!values) {
|
|
22215
22214
|
return newStore;
|
|
@@ -22252,14 +22251,14 @@ function isSimilar(source, target) {
|
|
|
22252
22251
|
return false;
|
|
22253
22252
|
}
|
|
22254
22253
|
|
|
22255
|
-
if (!source || !target ||
|
|
22254
|
+
if (!source || !target || esm_typeof_typeof(source) !== 'object' || esm_typeof_typeof(target) !== 'object') {
|
|
22256
22255
|
return false;
|
|
22257
22256
|
}
|
|
22258
22257
|
|
|
22259
22258
|
var sourceKeys = Object.keys(source);
|
|
22260
22259
|
var targetKeys = Object.keys(target);
|
|
22261
|
-
var keys = new Set([].concat(
|
|
22262
|
-
return
|
|
22260
|
+
var keys = new Set([].concat(toConsumableArray_toConsumableArray(sourceKeys), toConsumableArray_toConsumableArray(targetKeys)));
|
|
22261
|
+
return toConsumableArray_toConsumableArray(keys).every(function (key) {
|
|
22263
22262
|
var sourceValue = source[key];
|
|
22264
22263
|
var targetValue = target[key];
|
|
22265
22264
|
|
|
@@ -22302,12 +22301,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
22302
22301
|
|
|
22303
22302
|
if (diff > 0) {
|
|
22304
22303
|
// move left
|
|
22305
|
-
return [].concat(
|
|
22304
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, toIndex)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
22306
22305
|
}
|
|
22307
22306
|
|
|
22308
22307
|
if (diff < 0) {
|
|
22309
22308
|
// move right
|
|
22310
|
-
return [].concat(
|
|
22309
|
+
return [].concat(toConsumableArray_toConsumableArray(array.slice(0, moveIndex)), toConsumableArray_toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], toConsumableArray_toConsumableArray(array.slice(toIndex + 1, length)));
|
|
22311
22310
|
}
|
|
22312
22311
|
|
|
22313
22312
|
return array;
|
|
@@ -22347,13 +22346,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
22347
22346
|
|
|
22348
22347
|
|
|
22349
22348
|
function _validateRule() {
|
|
22350
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22349
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
22351
22350
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
22352
|
-
return
|
|
22351
|
+
return runtime_regenerator_default().wrap(function _callee2$(_context2) {
|
|
22353
22352
|
while (1) {
|
|
22354
22353
|
switch (_context2.prev = _context2.next) {
|
|
22355
22354
|
case 0:
|
|
22356
|
-
cloneRule =
|
|
22355
|
+
cloneRule = objectSpread2_objectSpread2({}, rule); // Bug of `async-validator`
|
|
22357
22356
|
// https://github.com/react-component/field-form/issues/316
|
|
22358
22357
|
// https://github.com/react-component/field-form/issues/313
|
|
22359
22358
|
|
|
@@ -22366,13 +22365,13 @@ function _validateRule() {
|
|
|
22366
22365
|
delete cloneRule.defaultField;
|
|
22367
22366
|
}
|
|
22368
22367
|
|
|
22369
|
-
validator = new AsyncValidator(
|
|
22368
|
+
validator = new AsyncValidator(defineProperty_defineProperty({}, name, [cloneRule]));
|
|
22370
22369
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
22371
22370
|
validator.messages(messages);
|
|
22372
22371
|
result = [];
|
|
22373
22372
|
_context2.prev = 8;
|
|
22374
22373
|
_context2.next = 11;
|
|
22375
|
-
return Promise.resolve(validator.validate(
|
|
22374
|
+
return Promise.resolve(validator.validate(defineProperty_defineProperty({}, name, value), objectSpread2_objectSpread2({}, options)));
|
|
22376
22375
|
|
|
22377
22376
|
case 11:
|
|
22378
22377
|
_context2.next = 16;
|
|
@@ -22412,12 +22411,12 @@ function _validateRule() {
|
|
|
22412
22411
|
case 19:
|
|
22413
22412
|
subResults = _context2.sent;
|
|
22414
22413
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
22415
|
-
return [].concat(
|
|
22414
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), toConsumableArray_toConsumableArray(errors));
|
|
22416
22415
|
}, []));
|
|
22417
22416
|
|
|
22418
22417
|
case 21:
|
|
22419
22418
|
// Replace message with variables
|
|
22420
|
-
kv =
|
|
22419
|
+
kv = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rule), {}, {
|
|
22421
22420
|
name: name,
|
|
22422
22421
|
enum: (rule.enum || []).join(', ')
|
|
22423
22422
|
}, messageVariables);
|
|
@@ -22446,7 +22445,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
22446
22445
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
22447
22446
|
var originValidatorFunc = currentRule.validator;
|
|
22448
22447
|
|
|
22449
|
-
var cloneRule =
|
|
22448
|
+
var cloneRule = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, currentRule), {}, {
|
|
22450
22449
|
ruleIndex: ruleIndex
|
|
22451
22450
|
}); // Replace validator if needed
|
|
22452
22451
|
|
|
@@ -22514,9 +22513,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
22514
22513
|
if (validateFirst === true) {
|
|
22515
22514
|
// >>>>> Validate by serialization
|
|
22516
22515
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
22517
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22516
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee(resolve, reject) {
|
|
22518
22517
|
var i, rule, errors;
|
|
22519
|
-
return
|
|
22518
|
+
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
22520
22519
|
while (1) {
|
|
22521
22520
|
switch (_context.prev = _context.next) {
|
|
22522
22521
|
case 0:
|
|
@@ -22595,15 +22594,15 @@ function finishOnAllFailed(_x8) {
|
|
|
22595
22594
|
}
|
|
22596
22595
|
|
|
22597
22596
|
function _finishOnAllFailed() {
|
|
22598
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22599
|
-
return
|
|
22597
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee3(rulePromises) {
|
|
22598
|
+
return runtime_regenerator_default().wrap(function _callee3$(_context3) {
|
|
22600
22599
|
while (1) {
|
|
22601
22600
|
switch (_context3.prev = _context3.next) {
|
|
22602
22601
|
case 0:
|
|
22603
22602
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
22604
22603
|
var _ref5;
|
|
22605
22604
|
|
|
22606
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
22605
|
+
var errors = (_ref5 = []).concat.apply(_ref5, toConsumableArray_toConsumableArray(errorsList));
|
|
22607
22606
|
|
|
22608
22607
|
return errors;
|
|
22609
22608
|
}));
|
|
@@ -22623,9 +22622,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
22623
22622
|
}
|
|
22624
22623
|
|
|
22625
22624
|
function _finishOnFirstFailed() {
|
|
22626
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
22625
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee4(rulePromises) {
|
|
22627
22626
|
var count;
|
|
22628
|
-
return
|
|
22627
|
+
return runtime_regenerator_default().wrap(function _callee4$(_context4) {
|
|
22629
22628
|
while (1) {
|
|
22630
22629
|
switch (_context4.prev = _context4.next) {
|
|
22631
22630
|
case 0:
|
|
@@ -22688,9 +22687,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
22688
22687
|
|
|
22689
22688
|
|
|
22690
22689
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
22691
|
-
|
|
22690
|
+
inherits_inherits(Field, _React$Component);
|
|
22692
22691
|
|
|
22693
|
-
var _super =
|
|
22692
|
+
var _super = createSuper_createSuper(Field);
|
|
22694
22693
|
|
|
22695
22694
|
/**
|
|
22696
22695
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -22706,7 +22705,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22706
22705
|
function Field(props) {
|
|
22707
22706
|
var _this;
|
|
22708
22707
|
|
|
22709
|
-
|
|
22708
|
+
classCallCheck_classCallCheck(this, Field);
|
|
22710
22709
|
|
|
22711
22710
|
_this = _super.call(this, props); // Register on init
|
|
22712
22711
|
|
|
@@ -22741,7 +22740,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22741
22740
|
fieldContext = _this$props2.fieldContext;
|
|
22742
22741
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
22743
22742
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
22744
|
-
return name !== undefined ? [].concat(
|
|
22743
|
+
return name !== undefined ? [].concat(toConsumableArray_toConsumableArray(prefixName), toConsumableArray_toConsumableArray(name)) : [];
|
|
22745
22744
|
};
|
|
22746
22745
|
|
|
22747
22746
|
_this.getRules = function () {
|
|
@@ -22774,7 +22773,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22774
22773
|
|
|
22775
22774
|
_this.triggerMetaEvent = function (destroy) {
|
|
22776
22775
|
var onMetaChange = _this.props.onMetaChange;
|
|
22777
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
22776
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getMeta()), {}, {
|
|
22778
22777
|
destroy: destroy
|
|
22779
22778
|
}));
|
|
22780
22779
|
};
|
|
@@ -22963,9 +22962,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
22963
22962
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
22964
22963
|
|
|
22965
22964
|
if (warningOnly) {
|
|
22966
|
-
nextWarnings.push.apply(nextWarnings,
|
|
22965
|
+
nextWarnings.push.apply(nextWarnings, toConsumableArray_toConsumableArray(errors));
|
|
22967
22966
|
} else {
|
|
22968
|
-
nextErrors.push.apply(nextErrors,
|
|
22967
|
+
nextErrors.push.apply(nextErrors, toConsumableArray_toConsumableArray(errors));
|
|
22969
22968
|
}
|
|
22970
22969
|
});
|
|
22971
22970
|
_this.errors = nextErrors;
|
|
@@ -23056,7 +23055,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
23056
23055
|
if (typeof children === 'function') {
|
|
23057
23056
|
var meta = _this.getMeta();
|
|
23058
23057
|
|
|
23059
|
-
return
|
|
23058
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
23060
23059
|
isFunction: true
|
|
23061
23060
|
});
|
|
23062
23061
|
} // Filed element only
|
|
@@ -23108,13 +23107,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
23108
23107
|
var value = _this.getValue();
|
|
23109
23108
|
|
|
23110
23109
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
23111
|
-
return
|
|
23110
|
+
return defineProperty_defineProperty({}, valuePropName, val);
|
|
23112
23111
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23113
23112
|
|
|
23114
23113
|
|
|
23115
23114
|
var originTriggerFunc = childProps[trigger];
|
|
23116
23115
|
|
|
23117
|
-
var control =
|
|
23116
|
+
var control = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
23118
23117
|
|
|
23119
23118
|
|
|
23120
23119
|
control[trigger] = function () {
|
|
@@ -23185,13 +23184,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
23185
23184
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
23186
23185
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
23187
23186
|
|
|
23188
|
-
initEntityValue(
|
|
23187
|
+
initEntityValue(assertThisInitialized_assertThisInitialized(_this));
|
|
23189
23188
|
}
|
|
23190
23189
|
|
|
23191
23190
|
return _this;
|
|
23192
23191
|
}
|
|
23193
23192
|
|
|
23194
|
-
|
|
23193
|
+
createClass_createClass(Field, [{
|
|
23195
23194
|
key: "componentDidMount",
|
|
23196
23195
|
value: function componentDidMount() {
|
|
23197
23196
|
var _this$props7 = this.props,
|
|
@@ -23265,7 +23264,7 @@ Field.defaultProps = {
|
|
|
23265
23264
|
|
|
23266
23265
|
function WrapperField(_ref5) {
|
|
23267
23266
|
var name = _ref5.name,
|
|
23268
|
-
restProps =
|
|
23267
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref5, Field_excluded);
|
|
23269
23268
|
|
|
23270
23269
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
23271
23270
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -23279,7 +23278,7 @@ function WrapperField(_ref5) {
|
|
|
23279
23278
|
|
|
23280
23279
|
if (false) {}
|
|
23281
23280
|
|
|
23282
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
23281
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, esm_extends_extends({
|
|
23283
23282
|
key: key,
|
|
23284
23283
|
name: namePath
|
|
23285
23284
|
}, restProps, {
|
|
@@ -23316,7 +23315,7 @@ var List = function List(_ref) {
|
|
|
23316
23315
|
}
|
|
23317
23316
|
|
|
23318
23317
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
23319
|
-
var prefixName = [].concat(
|
|
23318
|
+
var prefixName = [].concat(toConsumableArray_toConsumableArray(parentPrefixName), toConsumableArray_toConsumableArray(getNamePath(name)));
|
|
23320
23319
|
|
|
23321
23320
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
23322
23321
|
var source = _ref2.source;
|
|
@@ -23329,7 +23328,7 @@ var List = function List(_ref) {
|
|
|
23329
23328
|
};
|
|
23330
23329
|
|
|
23331
23330
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
23332
|
-
value:
|
|
23331
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, context), {}, {
|
|
23333
23332
|
prefixName: prefixName
|
|
23334
23333
|
})
|
|
23335
23334
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -23360,13 +23359,13 @@ var List = function List(_ref) {
|
|
|
23360
23359
|
var newValue = getNewValue();
|
|
23361
23360
|
|
|
23362
23361
|
if (index >= 0 && index <= newValue.length) {
|
|
23363
|
-
keyManager.keys = [].concat(
|
|
23364
|
-
onChange([].concat(
|
|
23362
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], toConsumableArray_toConsumableArray(keyManager.keys.slice(index)));
|
|
23363
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue.slice(0, index)), [defaultValue], toConsumableArray_toConsumableArray(newValue.slice(index))));
|
|
23365
23364
|
} else {
|
|
23366
23365
|
if (false) {}
|
|
23367
23366
|
|
|
23368
|
-
keyManager.keys = [].concat(
|
|
23369
|
-
onChange([].concat(
|
|
23367
|
+
keyManager.keys = [].concat(toConsumableArray_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
23368
|
+
onChange([].concat(toConsumableArray_toConsumableArray(newValue), [defaultValue]));
|
|
23370
23369
|
}
|
|
23371
23370
|
|
|
23372
23371
|
keyManager.id += 1;
|
|
@@ -23475,7 +23474,7 @@ var SPLIT = '__@field_split__';
|
|
|
23475
23474
|
|
|
23476
23475
|
function normalize(namePath) {
|
|
23477
23476
|
return namePath.map(function (cell) {
|
|
23478
|
-
return "".concat(
|
|
23477
|
+
return "".concat(esm_typeof_typeof(cell), ":").concat(cell);
|
|
23479
23478
|
}) // Magic split
|
|
23480
23479
|
.join(SPLIT);
|
|
23481
23480
|
}
|
|
@@ -23486,12 +23485,12 @@ function normalize(namePath) {
|
|
|
23486
23485
|
|
|
23487
23486
|
var NameMap = /*#__PURE__*/function () {
|
|
23488
23487
|
function NameMap() {
|
|
23489
|
-
|
|
23488
|
+
classCallCheck_classCallCheck(this, NameMap);
|
|
23490
23489
|
|
|
23491
23490
|
this.kvs = new Map();
|
|
23492
23491
|
}
|
|
23493
23492
|
|
|
23494
|
-
|
|
23493
|
+
createClass_createClass(NameMap, [{
|
|
23495
23494
|
key: "set",
|
|
23496
23495
|
value: function set(key, value) {
|
|
23497
23496
|
this.kvs.set(normalize(key), value);
|
|
@@ -23522,7 +23521,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
23522
23521
|
}, {
|
|
23523
23522
|
key: "map",
|
|
23524
23523
|
value: function map(callback) {
|
|
23525
|
-
return
|
|
23524
|
+
return toConsumableArray_toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
23526
23525
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
23527
23526
|
key = _ref2[0],
|
|
23528
23527
|
value = _ref2[1];
|
|
@@ -23576,7 +23575,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
23576
23575
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
23577
23576
|
var _this = this;
|
|
23578
23577
|
|
|
23579
|
-
|
|
23578
|
+
classCallCheck_classCallCheck(this, FormStore);
|
|
23580
23579
|
|
|
23581
23580
|
this.formHooked = false;
|
|
23582
23581
|
this.forceRootUpdate = void 0;
|
|
@@ -23836,7 +23835,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
23836
23835
|
return fieldNamePath[i] === nameUnit;
|
|
23837
23836
|
})) {
|
|
23838
23837
|
map.update(shortNamePath, function (list) {
|
|
23839
|
-
return [].concat(
|
|
23838
|
+
return [].concat(toConsumableArray_toConsumableArray(list), [field]);
|
|
23840
23839
|
});
|
|
23841
23840
|
}
|
|
23842
23841
|
});
|
|
@@ -23927,7 +23926,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
23927
23926
|
|
|
23928
23927
|
|
|
23929
23928
|
if (!info.skipExist || originValue === undefined) {
|
|
23930
|
-
_this.store = setValue(_this.store, namePath,
|
|
23929
|
+
_this.store = setValue(_this.store, namePath, toConsumableArray_toConsumableArray(records)[0].value);
|
|
23931
23930
|
}
|
|
23932
23931
|
}
|
|
23933
23932
|
}
|
|
@@ -23947,7 +23946,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
23947
23946
|
if (records) {
|
|
23948
23947
|
var _requiredFieldEntitie;
|
|
23949
23948
|
|
|
23950
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
23949
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, toConsumableArray_toConsumableArray(toConsumableArray_toConsumableArray(records).map(function (r) {
|
|
23951
23950
|
return r.entity;
|
|
23952
23951
|
})));
|
|
23953
23952
|
}
|
|
@@ -24000,7 +23999,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24000
23999
|
fields.forEach(function (fieldData) {
|
|
24001
24000
|
var name = fieldData.name,
|
|
24002
24001
|
errors = fieldData.errors,
|
|
24003
|
-
data =
|
|
24002
|
+
data = objectWithoutProperties_objectWithoutProperties(fieldData, useForm_excluded);
|
|
24004
24003
|
|
|
24005
24004
|
var namePath = getNamePath(name); // Value
|
|
24006
24005
|
|
|
@@ -24022,7 +24021,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24022
24021
|
var namePath = field.getNamePath();
|
|
24023
24022
|
var meta = field.getMeta();
|
|
24024
24023
|
|
|
24025
|
-
var fieldData =
|
|
24024
|
+
var fieldData = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, meta), {}, {
|
|
24026
24025
|
name: namePath,
|
|
24027
24026
|
value: _this.getFieldValue(namePath)
|
|
24028
24027
|
});
|
|
@@ -24121,7 +24120,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24121
24120
|
|
|
24122
24121
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
24123
24122
|
if (_this.subscribable) {
|
|
24124
|
-
var mergedInfo =
|
|
24123
|
+
var mergedInfo = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
24125
24124
|
store: _this.getFieldsValue(true)
|
|
24126
24125
|
});
|
|
24127
24126
|
|
|
@@ -24154,7 +24153,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24154
24153
|
|
|
24155
24154
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
24156
24155
|
type: 'dependenciesUpdate',
|
|
24157
|
-
relatedFields: [namePath].concat(
|
|
24156
|
+
relatedFields: [namePath].concat(toConsumableArray_toConsumableArray(childrenFields))
|
|
24158
24157
|
}); // trigger callback function
|
|
24159
24158
|
|
|
24160
24159
|
|
|
@@ -24165,7 +24164,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24165
24164
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
24166
24165
|
}
|
|
24167
24166
|
|
|
24168
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
24167
|
+
_this.triggerOnFieldsChange([namePath].concat(toConsumableArray_toConsumableArray(childrenFields)));
|
|
24169
24168
|
};
|
|
24170
24169
|
|
|
24171
24170
|
this.setFieldsValue = function (store) {
|
|
@@ -24293,8 +24292,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24293
24292
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
24294
24293
|
|
|
24295
24294
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
24296
|
-
var promise = field.validateRules(
|
|
24297
|
-
validateMessages:
|
|
24295
|
+
var promise = field.validateRules(objectSpread2_objectSpread2({
|
|
24296
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
24298
24297
|
}, options)); // Wrap promise with field
|
|
24299
24298
|
|
|
24300
24299
|
promiseList.push(promise.then(function () {
|
|
@@ -24311,9 +24310,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
24311
24310
|
errors = _ref5.errors;
|
|
24312
24311
|
|
|
24313
24312
|
if (warningOnly) {
|
|
24314
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
24313
|
+
mergedWarnings.push.apply(mergedWarnings, toConsumableArray_toConsumableArray(errors));
|
|
24315
24314
|
} else {
|
|
24316
|
-
mergedErrors.push.apply(mergedErrors,
|
|
24315
|
+
mergedErrors.push.apply(mergedErrors, toConsumableArray_toConsumableArray(errors));
|
|
24317
24316
|
}
|
|
24318
24317
|
});
|
|
24319
24318
|
|
|
@@ -24444,8 +24443,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
24444
24443
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
24445
24444
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
24446
24445
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
24447
|
-
value:
|
|
24448
|
-
validateMessages:
|
|
24446
|
+
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext), {}, {
|
|
24447
|
+
validateMessages: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
24449
24448
|
// =========================================================
|
|
24450
24449
|
// = Global Form Control =
|
|
24451
24450
|
// =========================================================
|
|
@@ -24471,13 +24470,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
24471
24470
|
},
|
|
24472
24471
|
registerForm: function registerForm(name, form) {
|
|
24473
24472
|
if (name) {
|
|
24474
|
-
formsRef.current =
|
|
24473
|
+
formsRef.current = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formsRef.current), {}, defineProperty_defineProperty({}, name, form));
|
|
24475
24474
|
}
|
|
24476
24475
|
|
|
24477
24476
|
formContext.registerForm(name, form);
|
|
24478
24477
|
},
|
|
24479
24478
|
unregisterForm: function unregisterForm(name) {
|
|
24480
|
-
var newForms =
|
|
24479
|
+
var newForms = objectSpread2_objectSpread2({}, formsRef.current);
|
|
24481
24480
|
|
|
24482
24481
|
delete newForms[name];
|
|
24483
24482
|
formsRef.current = newForms;
|
|
@@ -24517,7 +24516,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24517
24516
|
_onFieldsChange = _ref.onFieldsChange,
|
|
24518
24517
|
_onFinish = _ref.onFinish,
|
|
24519
24518
|
onFinishFailed = _ref.onFinishFailed,
|
|
24520
|
-
restProps =
|
|
24519
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Form_excluded);
|
|
24521
24520
|
|
|
24522
24521
|
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:
|
|
24523
24522
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -24545,7 +24544,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24545
24544
|
};
|
|
24546
24545
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
24547
24546
|
|
|
24548
|
-
setValidateMessages(
|
|
24547
|
+
setValidateMessages(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
24549
24548
|
setCallbacks({
|
|
24550
24549
|
onValuesChange: onValuesChange,
|
|
24551
24550
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -24598,7 +24597,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24598
24597
|
prevFieldsRef.current = fields;
|
|
24599
24598
|
}, [fields, formInstance]);
|
|
24600
24599
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
24601
|
-
return
|
|
24600
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formInstance), {}, {
|
|
24602
24601
|
validateTrigger: validateTrigger
|
|
24603
24602
|
});
|
|
24604
24603
|
}, [formInstance, validateTrigger]);
|
|
@@ -24610,7 +24609,7 @@ var Form = function Form(_ref, ref) {
|
|
|
24610
24609
|
return wrapperNode;
|
|
24611
24610
|
}
|
|
24612
24611
|
|
|
24613
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
24612
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, restProps, {
|
|
24614
24613
|
onSubmit: function onSubmit(event) {
|
|
24615
24614
|
event.preventDefault();
|
|
24616
24615
|
event.stopPropagation();
|
|
@@ -24792,14 +24791,14 @@ LocaleProvider.defaultProps = {
|
|
|
24792
24791
|
|
|
24793
24792
|
|
|
24794
24793
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
24795
|
-
|
|
24794
|
+
inherits_inherits(Notice, _Component);
|
|
24796
24795
|
|
|
24797
|
-
var _super =
|
|
24796
|
+
var _super = createSuper_createSuper(Notice);
|
|
24798
24797
|
|
|
24799
24798
|
function Notice() {
|
|
24800
24799
|
var _this;
|
|
24801
24800
|
|
|
24802
|
-
|
|
24801
|
+
classCallCheck_classCallCheck(this, Notice);
|
|
24803
24802
|
|
|
24804
24803
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24805
24804
|
args[_key] = arguments[_key];
|
|
@@ -24842,7 +24841,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
24842
24841
|
return _this;
|
|
24843
24842
|
}
|
|
24844
24843
|
|
|
24845
|
-
|
|
24844
|
+
createClass_createClass(Notice, [{
|
|
24846
24845
|
key: "componentDidMount",
|
|
24847
24846
|
value: function componentDidMount() {
|
|
24848
24847
|
this.startCloseTimer();
|
|
@@ -24888,8 +24887,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
24888
24887
|
|
|
24889
24888
|
return acc;
|
|
24890
24889
|
}, {});
|
|
24891
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
24892
|
-
className: classnames_default()(componentClass, className,
|
|
24890
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
24891
|
+
className: classnames_default()(componentClass, className, defineProperty_defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
24893
24892
|
style: style,
|
|
24894
24893
|
onMouseEnter: this.clearCloseTimer,
|
|
24895
24894
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -24920,6 +24919,52 @@ Notice.defaultProps = {
|
|
|
24920
24919
|
duration: 1.5
|
|
24921
24920
|
};
|
|
24922
24921
|
|
|
24922
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
24923
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
24924
|
+
if (Array.isArray(arr)) return arr;
|
|
24925
|
+
}
|
|
24926
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
24927
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
24928
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24929
|
+
|
|
24930
|
+
if (_i == null) return;
|
|
24931
|
+
var _arr = [];
|
|
24932
|
+
var _n = true;
|
|
24933
|
+
var _d = false;
|
|
24934
|
+
|
|
24935
|
+
var _s, _e;
|
|
24936
|
+
|
|
24937
|
+
try {
|
|
24938
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
24939
|
+
_arr.push(_s.value);
|
|
24940
|
+
|
|
24941
|
+
if (i && _arr.length === i) break;
|
|
24942
|
+
}
|
|
24943
|
+
} catch (err) {
|
|
24944
|
+
_d = true;
|
|
24945
|
+
_e = err;
|
|
24946
|
+
} finally {
|
|
24947
|
+
try {
|
|
24948
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
24949
|
+
} finally {
|
|
24950
|
+
if (_d) throw _e;
|
|
24951
|
+
}
|
|
24952
|
+
}
|
|
24953
|
+
|
|
24954
|
+
return _arr;
|
|
24955
|
+
}
|
|
24956
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
24957
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
24958
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24959
|
+
}
|
|
24960
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
24961
|
+
|
|
24962
|
+
|
|
24963
|
+
|
|
24964
|
+
|
|
24965
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
24966
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
24967
|
+
}
|
|
24923
24968
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
24924
24969
|
|
|
24925
24970
|
|
|
@@ -24930,7 +24975,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
24930
24975
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
24931
24976
|
|
|
24932
24977
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
24933
|
-
_React$useState2 =
|
|
24978
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
24934
24979
|
elements = _React$useState2[0],
|
|
24935
24980
|
setElements = _React$useState2[1];
|
|
24936
24981
|
|
|
@@ -24991,14 +25036,14 @@ function getUuid() {
|
|
|
24991
25036
|
}
|
|
24992
25037
|
|
|
24993
25038
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
24994
|
-
|
|
25039
|
+
inherits_inherits(Notification, _Component);
|
|
24995
25040
|
|
|
24996
|
-
var _super =
|
|
25041
|
+
var _super = createSuper_createSuper(Notification);
|
|
24997
25042
|
|
|
24998
25043
|
function Notification() {
|
|
24999
25044
|
var _this;
|
|
25000
25045
|
|
|
25001
|
-
|
|
25046
|
+
classCallCheck_classCallCheck(this, Notification);
|
|
25002
25047
|
|
|
25003
25048
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25004
25049
|
args[_key] = arguments[_key];
|
|
@@ -25013,7 +25058,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25013
25058
|
_this.add = function (originNotice, holderCallback) {
|
|
25014
25059
|
var key = originNotice.key || getUuid();
|
|
25015
25060
|
|
|
25016
|
-
var notice =
|
|
25061
|
+
var notice = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, originNotice), {}, {
|
|
25017
25062
|
key: key
|
|
25018
25063
|
});
|
|
25019
25064
|
|
|
@@ -25080,7 +25125,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25080
25125
|
return _this;
|
|
25081
25126
|
}
|
|
25082
25127
|
|
|
25083
|
-
|
|
25128
|
+
createClass_createClass(Notification, [{
|
|
25084
25129
|
key: "getTransitionName",
|
|
25085
25130
|
value: function getTransitionName() {
|
|
25086
25131
|
var _this$props = this.props,
|
|
@@ -25113,7 +25158,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25113
25158
|
var key = notice.key,
|
|
25114
25159
|
userPassKey = notice.userPassKey;
|
|
25115
25160
|
|
|
25116
|
-
var noticeProps =
|
|
25161
|
+
var noticeProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
25117
25162
|
prefixCls: prefixCls,
|
|
25118
25163
|
closeIcon: closeIcon
|
|
25119
25164
|
}, notice), notice.props), {}, {
|
|
@@ -25164,7 +25209,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25164
25209
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
25165
25210
|
key: key,
|
|
25166
25211
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
25167
|
-
style:
|
|
25212
|
+
style: objectSpread2_objectSpread2({}, motionStyle),
|
|
25168
25213
|
ref: function ref(div) {
|
|
25169
25214
|
if (typeof key === 'undefined') {
|
|
25170
25215
|
return;
|
|
@@ -25181,9 +25226,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
25181
25226
|
});
|
|
25182
25227
|
}
|
|
25183
25228
|
|
|
25184
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
25229
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, esm_extends_extends({}, noticeProps, {
|
|
25185
25230
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
25186
|
-
style:
|
|
25231
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
25187
25232
|
visible: visible
|
|
25188
25233
|
}));
|
|
25189
25234
|
}));
|
|
@@ -25206,7 +25251,7 @@ Notification.defaultProps = {
|
|
|
25206
25251
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
25207
25252
|
var _ref6 = properties || {},
|
|
25208
25253
|
getContainer = _ref6.getContainer,
|
|
25209
|
-
props =
|
|
25254
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref6, ["getContainer"]);
|
|
25210
25255
|
|
|
25211
25256
|
var div = document.createElement('div');
|
|
25212
25257
|
|
|
@@ -25250,7 +25295,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
25250
25295
|
|
|
25251
25296
|
if (false) {}
|
|
25252
25297
|
|
|
25253
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
25298
|
+
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, {
|
|
25254
25299
|
ref: ref
|
|
25255
25300
|
})), div);
|
|
25256
25301
|
};
|
|
@@ -25280,7 +25325,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
25280
25325
|
};
|
|
25281
25326
|
|
|
25282
25327
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
25283
|
-
_useRCNotification2 =
|
|
25328
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
25284
25329
|
hookNotify = _useRCNotification2[0],
|
|
25285
25330
|
holder = _useRCNotification2[1];
|
|
25286
25331
|
|
|
@@ -25609,7 +25654,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
25609
25654
|
};
|
|
25610
25655
|
|
|
25611
25656
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
25612
|
-
_useRCNotification2 =
|
|
25657
|
+
_useRCNotification2 = esm_slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
25613
25658
|
hookNotify = _useRCNotification2[0],
|
|
25614
25659
|
holder = _useRCNotification2[1];
|
|
25615
25660
|
|
|
@@ -26236,7 +26281,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
26236
26281
|
|
|
26237
26282
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
26238
26283
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
26239
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
26284
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
26240
26285
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
26241
26286
|
actionFn: onCancel,
|
|
26242
26287
|
close: close,
|
|
@@ -26254,7 +26299,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
26254
26299
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
26255
26300
|
prefixCls: prefixCls,
|
|
26256
26301
|
className: classString,
|
|
26257
|
-
wrapClassName: classnames_default()(
|
|
26302
|
+
wrapClassName: classnames_default()(defineProperty_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
26258
26303
|
onCancel: function onCancel() {
|
|
26259
26304
|
return close({
|
|
26260
26305
|
triggerCancel: true
|
|
@@ -26338,7 +26383,7 @@ function getRootPrefixCls() {
|
|
|
26338
26383
|
function confirm_confirm(config) {
|
|
26339
26384
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
26340
26385
|
|
|
26341
|
-
var currentConfig =
|
|
26386
|
+
var currentConfig = esm_extends_extends(esm_extends_extends({}, config), {
|
|
26342
26387
|
close: close,
|
|
26343
26388
|
visible: true
|
|
26344
26389
|
});
|
|
@@ -26391,7 +26436,7 @@ function confirm_confirm(config) {
|
|
|
26391
26436
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
26392
26437
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
26393
26438
|
var iconPrefixCls = getIconPrefixCls();
|
|
26394
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
26439
|
+
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, {
|
|
26395
26440
|
prefixCls: prefixCls,
|
|
26396
26441
|
rootPrefixCls: rootPrefixCls,
|
|
26397
26442
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -26408,7 +26453,7 @@ function confirm_confirm(config) {
|
|
|
26408
26453
|
args[_key2] = arguments[_key2];
|
|
26409
26454
|
}
|
|
26410
26455
|
|
|
26411
|
-
currentConfig =
|
|
26456
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), {
|
|
26412
26457
|
visible: false,
|
|
26413
26458
|
afterClose: function afterClose() {
|
|
26414
26459
|
if (typeof config.afterClose === 'function') {
|
|
@@ -26425,7 +26470,7 @@ function confirm_confirm(config) {
|
|
|
26425
26470
|
if (typeof configUpdate === 'function') {
|
|
26426
26471
|
currentConfig = configUpdate(currentConfig);
|
|
26427
26472
|
} else {
|
|
26428
|
-
currentConfig =
|
|
26473
|
+
currentConfig = esm_extends_extends(esm_extends_extends({}, currentConfig), configUpdate);
|
|
26429
26474
|
}
|
|
26430
26475
|
|
|
26431
26476
|
render(currentConfig);
|
|
@@ -26439,7 +26484,7 @@ function confirm_confirm(config) {
|
|
|
26439
26484
|
};
|
|
26440
26485
|
}
|
|
26441
26486
|
function withWarn(props) {
|
|
26442
|
-
return
|
|
26487
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26443
26488
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26444
26489
|
type: "exclamation-circle"
|
|
26445
26490
|
}),
|
|
@@ -26449,7 +26494,7 @@ function withWarn(props) {
|
|
|
26449
26494
|
});
|
|
26450
26495
|
}
|
|
26451
26496
|
function withInfo(props) {
|
|
26452
|
-
return
|
|
26497
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26453
26498
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26454
26499
|
type: "exclamation-circle"
|
|
26455
26500
|
}),
|
|
@@ -26459,7 +26504,7 @@ function withInfo(props) {
|
|
|
26459
26504
|
});
|
|
26460
26505
|
}
|
|
26461
26506
|
function withSuccess(props) {
|
|
26462
|
-
return
|
|
26507
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26463
26508
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26464
26509
|
type: "check-circle"
|
|
26465
26510
|
}),
|
|
@@ -26469,7 +26514,7 @@ function withSuccess(props) {
|
|
|
26469
26514
|
});
|
|
26470
26515
|
}
|
|
26471
26516
|
function withError(props) {
|
|
26472
|
-
return
|
|
26517
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26473
26518
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26474
26519
|
type: "close-circle"
|
|
26475
26520
|
}),
|
|
@@ -26479,7 +26524,7 @@ function withError(props) {
|
|
|
26479
26524
|
});
|
|
26480
26525
|
}
|
|
26481
26526
|
function withConfirm(props) {
|
|
26482
|
-
return
|
|
26527
|
+
return esm_extends_extends(esm_extends_extends({
|
|
26483
26528
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
26484
26529
|
type: "question-circle"
|
|
26485
26530
|
}),
|
|
@@ -26506,7 +26551,7 @@ function usePatchElement() {
|
|
|
26506
26551
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
26507
26552
|
// append a new element to elements (and create a new ref)
|
|
26508
26553
|
setElements(function (originElements) {
|
|
26509
|
-
return [].concat(
|
|
26554
|
+
return [].concat(toConsumableArray_toConsumableArray(originElements), [element]);
|
|
26510
26555
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
26511
26556
|
// it works a little like useEffect
|
|
26512
26557
|
|
|
@@ -26571,7 +26616,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
26571
26616
|
destroy: close,
|
|
26572
26617
|
update: function update(newConfig) {
|
|
26573
26618
|
setInnerConfig(function (originConfig) {
|
|
26574
|
-
return
|
|
26619
|
+
return esm_extends_extends(esm_extends_extends({}, originConfig), newConfig);
|
|
26575
26620
|
});
|
|
26576
26621
|
}
|
|
26577
26622
|
};
|
|
@@ -26580,7 +26625,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
26580
26625
|
componentName: "Modal",
|
|
26581
26626
|
defaultLocale: locale_default.Modal
|
|
26582
26627
|
}, function (modalLocale) {
|
|
26583
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
26628
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, esm_extends_extends({
|
|
26584
26629
|
prefixCls: prefixCls,
|
|
26585
26630
|
rootPrefixCls: rootPrefixCls
|
|
26586
26631
|
}, innerConfig, {
|
|
@@ -26627,7 +26672,7 @@ function useModal() {
|
|
|
26627
26672
|
|
|
26628
26673
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
26629
26674
|
if (actionQueue.length) {
|
|
26630
|
-
var cloneQueue =
|
|
26675
|
+
var cloneQueue = toConsumableArray_toConsumableArray(actionQueue);
|
|
26631
26676
|
|
|
26632
26677
|
cloneQueue.forEach(function (action) {
|
|
26633
26678
|
action();
|
|
@@ -26664,7 +26709,7 @@ function useModal() {
|
|
|
26664
26709
|
destroyAction();
|
|
26665
26710
|
} else {
|
|
26666
26711
|
setActionQueue(function (prev) {
|
|
26667
|
-
return [].concat(
|
|
26712
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [destroyAction]);
|
|
26668
26713
|
});
|
|
26669
26714
|
}
|
|
26670
26715
|
},
|
|
@@ -26679,7 +26724,7 @@ function useModal() {
|
|
|
26679
26724
|
updateAction();
|
|
26680
26725
|
} else {
|
|
26681
26726
|
setActionQueue(function (prev) {
|
|
26682
|
-
return [].concat(
|
|
26727
|
+
return [].concat(toConsumableArray_toConsumableArray(prev), [updateAction]);
|
|
26683
26728
|
});
|
|
26684
26729
|
}
|
|
26685
26730
|
}
|
|
@@ -27285,7 +27330,7 @@ function helpers_esm_slicedToArray_slicedToArray(arr, i) {
|
|
|
27285
27330
|
return helpers_esm_arrayWithHoles_arrayWithHoles(arr) || helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || esm_unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || helpers_esm_nonIterableRest_nonIterableRest();
|
|
27286
27331
|
}
|
|
27287
27332
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
27288
|
-
function
|
|
27333
|
+
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
27289
27334
|
if (source == null) return {};
|
|
27290
27335
|
var target = {};
|
|
27291
27336
|
var sourceKeys = Object.keys(source);
|
|
@@ -27301,9 +27346,9 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
|
|
|
27301
27346
|
}
|
|
27302
27347
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
27303
27348
|
|
|
27304
|
-
function
|
|
27349
|
+
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
27305
27350
|
if (source == null) return {};
|
|
27306
|
-
var target =
|
|
27351
|
+
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
27307
27352
|
var key, i;
|
|
27308
27353
|
|
|
27309
27354
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -29409,7 +29454,7 @@ function RawList(props, ref) {
|
|
|
29409
29454
|
onScroll = props.onScroll,
|
|
29410
29455
|
onVisibleChange = props.onVisibleChange,
|
|
29411
29456
|
innerProps = props.innerProps,
|
|
29412
|
-
restProps =
|
|
29457
|
+
restProps = esm_objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
29413
29458
|
// ================================= MISC =================================
|
|
29414
29459
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
29415
29460
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
@@ -29778,7 +29823,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
29778
29823
|
return values;
|
|
29779
29824
|
}
|
|
29780
29825
|
function removeLastEnabledValue(measureValues, values) {
|
|
29781
|
-
var newValues =
|
|
29826
|
+
var newValues = toConsumableArray_toConsumableArray(values);
|
|
29782
29827
|
|
|
29783
29828
|
var removeIndex;
|
|
29784
29829
|
|
|
@@ -29912,7 +29957,7 @@ function flattenOptions(options) {
|
|
|
29912
29957
|
*/
|
|
29913
29958
|
|
|
29914
29959
|
function injectPropsWithOption(option) {
|
|
29915
|
-
var newOption =
|
|
29960
|
+
var newOption = objectSpread2_objectSpread2({}, option);
|
|
29916
29961
|
|
|
29917
29962
|
if (!('props' in newOption)) {
|
|
29918
29963
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -29946,7 +29991,7 @@ function findValueOption(values, options) {
|
|
|
29946
29991
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
29947
29992
|
|
|
29948
29993
|
if (!option) {
|
|
29949
|
-
option =
|
|
29994
|
+
option = objectSpread2_objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
29950
29995
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
29951
29996
|
}));
|
|
29952
29997
|
}
|
|
@@ -29965,7 +30010,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
29965
30010
|
};
|
|
29966
30011
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
29967
30012
|
|
|
29968
|
-
if (prevValItem &&
|
|
30013
|
+
if (prevValItem && esm_typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
29969
30014
|
result.label = prevValItem.label;
|
|
29970
30015
|
|
|
29971
30016
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -30013,7 +30058,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
30013
30058
|
var filterFunc;
|
|
30014
30059
|
|
|
30015
30060
|
if (filterOption === false) {
|
|
30016
|
-
return
|
|
30061
|
+
return toConsumableArray_toConsumableArray(options);
|
|
30017
30062
|
}
|
|
30018
30063
|
|
|
30019
30064
|
if (typeof filterOption === 'function') {
|
|
@@ -30037,7 +30082,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
30037
30082
|
});
|
|
30038
30083
|
|
|
30039
30084
|
if (subOptions.length) {
|
|
30040
|
-
filteredOptions.push(
|
|
30085
|
+
filteredOptions.push(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
30041
30086
|
options: subOptions
|
|
30042
30087
|
}));
|
|
30043
30088
|
}
|
|
@@ -30071,7 +30116,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
30071
30116
|
var list = str.split(token);
|
|
30072
30117
|
match = match || list.length > 1;
|
|
30073
30118
|
return list.reduce(function (prevList, unitStr) {
|
|
30074
|
-
return [].concat(
|
|
30119
|
+
return [].concat(toConsumableArray_toConsumableArray(prevList), toConsumableArray_toConsumableArray(separate(unitStr, restTokens)));
|
|
30075
30120
|
}, []).filter(function (unit) {
|
|
30076
30121
|
return unit;
|
|
30077
30122
|
});
|
|
@@ -30091,7 +30136,7 @@ function isValueDisabled(value, options) {
|
|
|
30091
30136
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
30092
30137
|
var values = commonUtil_toArray(value).slice().sort();
|
|
30093
30138
|
|
|
30094
|
-
var cloneOptions =
|
|
30139
|
+
var cloneOptions = toConsumableArray_toConsumableArray(options); // Convert options value to set
|
|
30095
30140
|
|
|
30096
30141
|
|
|
30097
30142
|
var optionValues = new Set();
|
|
@@ -30111,7 +30156,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
30111
30156
|
if (!optionValues.has(val)) {
|
|
30112
30157
|
var _ref9;
|
|
30113
30158
|
|
|
30114
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
30159
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, defineProperty_defineProperty(_ref9, optionLabelProp, item.label), defineProperty_defineProperty(_ref9, "value", val), _ref9) : {
|
|
30115
30160
|
value: val
|
|
30116
30161
|
});
|
|
30117
30162
|
}
|
|
@@ -30377,7 +30422,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30377
30422
|
children = itemData.children;
|
|
30378
30423
|
var attrs = pickAttrs(itemData, true);
|
|
30379
30424
|
var mergedLabel = childrenAsData ? children : label;
|
|
30380
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
30425
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
30381
30426
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
30382
30427
|
}, attrs, {
|
|
30383
30428
|
key: index,
|
|
@@ -30427,13 +30472,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30427
30472
|
children = data.children,
|
|
30428
30473
|
style = data.style,
|
|
30429
30474
|
className = data.className,
|
|
30430
|
-
otherProps =
|
|
30475
|
+
otherProps = objectWithoutProperties_objectWithoutProperties(data, OptionList_excluded);
|
|
30431
30476
|
|
|
30432
30477
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
30433
30478
|
|
|
30434
30479
|
var selected = values.has(value);
|
|
30435
30480
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
30436
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
30481
|
+
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));
|
|
30437
30482
|
var mergedLabel = childrenAsData ? children : label;
|
|
30438
30483
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
30439
30484
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -30444,7 +30489,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
30444
30489
|
optionTitle = title;
|
|
30445
30490
|
}
|
|
30446
30491
|
|
|
30447
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
30492
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({}, passedProps, {
|
|
30448
30493
|
"aria-selected": selected,
|
|
30449
30494
|
className: optionClassName,
|
|
30450
30495
|
title: optionTitle,
|
|
@@ -30505,9 +30550,9 @@ function convertNodeToOption(node) {
|
|
|
30505
30550
|
_node$props = node.props,
|
|
30506
30551
|
children = _node$props.children,
|
|
30507
30552
|
value = _node$props.value,
|
|
30508
|
-
restProps =
|
|
30553
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
30509
30554
|
|
|
30510
|
-
return
|
|
30555
|
+
return objectSpread2_objectSpread2({
|
|
30511
30556
|
key: key,
|
|
30512
30557
|
value: value !== undefined ? value : key,
|
|
30513
30558
|
children: children
|
|
@@ -30525,13 +30570,13 @@ function convertChildrenToData(nodes) {
|
|
|
30525
30570
|
key = node.key,
|
|
30526
30571
|
_node$props2 = node.props,
|
|
30527
30572
|
children = _node$props2.children,
|
|
30528
|
-
restProps =
|
|
30573
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_node$props2, _excluded2);
|
|
30529
30574
|
|
|
30530
30575
|
if (optionOnly || !isSelectOptGroup) {
|
|
30531
30576
|
return convertNodeToOption(node);
|
|
30532
30577
|
}
|
|
30533
30578
|
|
|
30534
|
-
return
|
|
30579
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
30535
30580
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
30536
30581
|
label: key
|
|
30537
30582
|
}, restProps), {}, {
|
|
@@ -30608,41 +30653,6 @@ function useControlledState(defaultStateValue, option) {
|
|
|
30608
30653
|
}, [value]);
|
|
30609
30654
|
return [mergedValue, triggerChange];
|
|
30610
30655
|
}
|
|
30611
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
30612
|
-
function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
30613
|
-
if (source == null) return {};
|
|
30614
|
-
var target = {};
|
|
30615
|
-
var sourceKeys = Object.keys(source);
|
|
30616
|
-
var key, i;
|
|
30617
|
-
|
|
30618
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
30619
|
-
key = sourceKeys[i];
|
|
30620
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
30621
|
-
target[key] = source[key];
|
|
30622
|
-
}
|
|
30623
|
-
|
|
30624
|
-
return target;
|
|
30625
|
-
}
|
|
30626
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
30627
|
-
|
|
30628
|
-
function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
30629
|
-
if (source == null) return {};
|
|
30630
|
-
var target = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
30631
|
-
var key, i;
|
|
30632
|
-
|
|
30633
|
-
if (Object.getOwnPropertySymbols) {
|
|
30634
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
30635
|
-
|
|
30636
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
30637
|
-
key = sourceSymbolKeys[i];
|
|
30638
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
30639
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30640
|
-
target[key] = source[key];
|
|
30641
|
-
}
|
|
30642
|
-
}
|
|
30643
|
-
|
|
30644
|
-
return target;
|
|
30645
|
-
}
|
|
30646
30656
|
;// CONCATENATED MODULE: ./node_modules/rc-overflow/es/Item.js
|
|
30647
30657
|
|
|
30648
30658
|
|
|
@@ -30668,7 +30678,7 @@ function InternalItem(props, ref) {
|
|
|
30668
30678
|
order = props.order,
|
|
30669
30679
|
_props$component = props.component,
|
|
30670
30680
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30671
|
-
restProps =
|
|
30681
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
30672
30682
|
|
|
30673
30683
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
30674
30684
|
|
|
@@ -30735,7 +30745,7 @@ Item_Item.displayName = 'Item';
|
|
|
30735
30745
|
|
|
30736
30746
|
function useBatchFrameState() {
|
|
30737
30747
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
30738
|
-
_useState2 =
|
|
30748
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
30739
30749
|
forceUpdate = _useState2[1];
|
|
30740
30750
|
|
|
30741
30751
|
var statesRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)([]);
|
|
@@ -30789,7 +30799,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
30789
30799
|
if (!context) {
|
|
30790
30800
|
var _props$component = props.component,
|
|
30791
30801
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30792
|
-
_restProps =
|
|
30802
|
+
_restProps = objectWithoutProperties_objectWithoutProperties(props, ["component"]);
|
|
30793
30803
|
|
|
30794
30804
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, esm_extends_extends({}, _restProps, {
|
|
30795
30805
|
ref: ref
|
|
@@ -30797,10 +30807,10 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
30797
30807
|
}
|
|
30798
30808
|
|
|
30799
30809
|
var contextClassName = context.className,
|
|
30800
|
-
restContext =
|
|
30810
|
+
restContext = objectWithoutProperties_objectWithoutProperties(context, ["className"]);
|
|
30801
30811
|
|
|
30802
30812
|
var className = props.className,
|
|
30803
|
-
restProps =
|
|
30813
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
30804
30814
|
|
|
30805
30815
|
|
|
30806
30816
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
@@ -30855,45 +30865,45 @@ function Overflow(props, ref) {
|
|
|
30855
30865
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
30856
30866
|
itemComponent = props.itemComponent,
|
|
30857
30867
|
onVisibleChange = props.onVisibleChange,
|
|
30858
|
-
restProps =
|
|
30868
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
30859
30869
|
|
|
30860
30870
|
var createUseState = useBatchFrameState();
|
|
30861
30871
|
var fullySSR = ssr === 'full';
|
|
30862
30872
|
|
|
30863
30873
|
var _createUseState = createUseState(null),
|
|
30864
|
-
_createUseState2 =
|
|
30874
|
+
_createUseState2 = slicedToArray_slicedToArray(_createUseState, 2),
|
|
30865
30875
|
containerWidth = _createUseState2[0],
|
|
30866
30876
|
setContainerWidth = _createUseState2[1];
|
|
30867
30877
|
|
|
30868
30878
|
var mergedContainerWidth = containerWidth || 0;
|
|
30869
30879
|
|
|
30870
30880
|
var _createUseState3 = createUseState(new Map()),
|
|
30871
|
-
_createUseState4 =
|
|
30881
|
+
_createUseState4 = slicedToArray_slicedToArray(_createUseState3, 2),
|
|
30872
30882
|
itemWidths = _createUseState4[0],
|
|
30873
30883
|
setItemWidths = _createUseState4[1];
|
|
30874
30884
|
|
|
30875
30885
|
var _createUseState5 = createUseState(0),
|
|
30876
|
-
_createUseState6 =
|
|
30886
|
+
_createUseState6 = slicedToArray_slicedToArray(_createUseState5, 2),
|
|
30877
30887
|
prevRestWidth = _createUseState6[0],
|
|
30878
30888
|
setPrevRestWidth = _createUseState6[1];
|
|
30879
30889
|
|
|
30880
30890
|
var _createUseState7 = createUseState(0),
|
|
30881
|
-
_createUseState8 =
|
|
30891
|
+
_createUseState8 = slicedToArray_slicedToArray(_createUseState7, 2),
|
|
30882
30892
|
restWidth = _createUseState8[0],
|
|
30883
30893
|
setRestWidth = _createUseState8[1];
|
|
30884
30894
|
|
|
30885
30895
|
var _createUseState9 = createUseState(0),
|
|
30886
|
-
_createUseState10 =
|
|
30896
|
+
_createUseState10 = slicedToArray_slicedToArray(_createUseState9, 2),
|
|
30887
30897
|
suffixWidth = _createUseState10[0],
|
|
30888
30898
|
setSuffixWidth = _createUseState10[1];
|
|
30889
30899
|
|
|
30890
30900
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
30891
|
-
_useState2 =
|
|
30901
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
30892
30902
|
suffixFixedStart = _useState2[0],
|
|
30893
30903
|
setSuffixFixedStart = _useState2[1];
|
|
30894
30904
|
|
|
30895
30905
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
30896
|
-
_useState4 =
|
|
30906
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
30897
30907
|
displayCount = _useState4[0],
|
|
30898
30908
|
setDisplayCount = _useState4[1];
|
|
30899
30909
|
|
|
@@ -30906,7 +30916,7 @@ function Overflow(props, ref) {
|
|
|
30906
30916
|
}, [displayCount, containerWidth]);
|
|
30907
30917
|
|
|
30908
30918
|
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
30909
|
-
_useState6 =
|
|
30919
|
+
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
30910
30920
|
restReady = _useState6[0],
|
|
30911
30921
|
setRestReady = _useState6[1];
|
|
30912
30922
|
|
|
@@ -31329,7 +31339,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
31329
31339
|
|
|
31330
31340
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
31331
31341
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
31332
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
31342
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), defineProperty_defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
31333
31343
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
31334
31344
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
31335
31345
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -31744,7 +31754,7 @@ var Selector = function Selector(props, ref) {
|
|
|
31744
31754
|
onInputCompositionStart: onInputCompositionStart,
|
|
31745
31755
|
onInputCompositionEnd: onInputCompositionEnd
|
|
31746
31756
|
};
|
|
31747
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
31757
|
+
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));
|
|
31748
31758
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
31749
31759
|
ref: domRef,
|
|
31750
31760
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -33280,7 +33290,7 @@ function monitorResize(element, callback) {
|
|
|
33280
33290
|
var prevHeight = null;
|
|
33281
33291
|
|
|
33282
33292
|
function onResize(_ref) {
|
|
33283
|
-
var _ref2 =
|
|
33293
|
+
var _ref2 = slicedToArray_slicedToArray(_ref, 1),
|
|
33284
33294
|
target = _ref2[0].target;
|
|
33285
33295
|
|
|
33286
33296
|
if (!document.documentElement.contains(target)) return;
|
|
@@ -33439,7 +33449,7 @@ var Align = function Align(_ref, ref) {
|
|
|
33439
33449
|
|
|
33440
33450
|
return false;
|
|
33441
33451
|
}, monitorBufferTime),
|
|
33442
|
-
_useBuffer2 =
|
|
33452
|
+
_useBuffer2 = slicedToArray_slicedToArray(_useBuffer, 2),
|
|
33443
33453
|
_forceAlign = _useBuffer2[0],
|
|
33444
33454
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
33445
33455
|
// Listen for target updated
|
|
@@ -33527,45 +33537,6 @@ RcAlign.displayName = 'Align';
|
|
|
33527
33537
|
// export this package's api
|
|
33528
33538
|
|
|
33529
33539
|
/* harmony default export */ var rc_align_es = (es_Align);
|
|
33530
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33531
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33532
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33533
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
33534
|
-
function esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
33535
|
-
try {
|
|
33536
|
-
var info = gen[key](arg);
|
|
33537
|
-
var value = info.value;
|
|
33538
|
-
} catch (error) {
|
|
33539
|
-
reject(error);
|
|
33540
|
-
return;
|
|
33541
|
-
}
|
|
33542
|
-
|
|
33543
|
-
if (info.done) {
|
|
33544
|
-
resolve(value);
|
|
33545
|
-
} else {
|
|
33546
|
-
Promise.resolve(value).then(_next, _throw);
|
|
33547
|
-
}
|
|
33548
|
-
}
|
|
33549
|
-
|
|
33550
|
-
function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
33551
|
-
return function () {
|
|
33552
|
-
var self = this,
|
|
33553
|
-
args = arguments;
|
|
33554
|
-
return new Promise(function (resolve, reject) {
|
|
33555
|
-
var gen = fn.apply(self, args);
|
|
33556
|
-
|
|
33557
|
-
function _next(value) {
|
|
33558
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33559
|
-
}
|
|
33560
|
-
|
|
33561
|
-
function _throw(err) {
|
|
33562
|
-
esm_asyncToGenerator_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33563
|
-
}
|
|
33564
|
-
|
|
33565
|
-
_next(undefined);
|
|
33566
|
-
});
|
|
33567
|
-
};
|
|
33568
|
-
}
|
|
33569
33540
|
;// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
|
33570
33541
|
|
|
33571
33542
|
|
|
@@ -33575,7 +33546,7 @@ function esm_asyncToGenerator_asyncToGenerator(fn) {
|
|
|
33575
33546
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
33576
33547
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
33577
33548
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(null),
|
|
33578
|
-
_useState2 =
|
|
33549
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
33579
33550
|
status = _useState2[0],
|
|
33580
33551
|
setInternalStatus = _useState2[1];
|
|
33581
33552
|
|
|
@@ -33628,7 +33599,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
33628
33599
|
}
|
|
33629
33600
|
|
|
33630
33601
|
if (status) {
|
|
33631
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/
|
|
33602
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/runtime_regenerator_default().mark(function _callee() {
|
|
33632
33603
|
var index, nextStatus;
|
|
33633
33604
|
return runtime_regenerator_default().wrap(function _callee$(_context) {
|
|
33634
33605
|
while (1) {
|
|
@@ -33666,7 +33637,7 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
33666
33637
|
width: 0,
|
|
33667
33638
|
height: 0
|
|
33668
33639
|
}),
|
|
33669
|
-
_React$useState2 =
|
|
33640
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
33670
33641
|
targetSize = _React$useState2[0],
|
|
33671
33642
|
setTargetSize = _React$useState2[1];
|
|
33672
33643
|
|
|
@@ -33737,13 +33708,13 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
33737
33708
|
var elementRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
33738
33709
|
|
|
33739
33710
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
33740
|
-
_useState2 =
|
|
33711
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
33741
33712
|
alignedClassName = _useState2[0],
|
|
33742
33713
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
33743
33714
|
|
|
33744
33715
|
|
|
33745
33716
|
var _useStretchStyle = useStretchStyle(stretch),
|
|
33746
|
-
_useStretchStyle2 =
|
|
33717
|
+
_useStretchStyle2 = slicedToArray_slicedToArray(_useStretchStyle, 2),
|
|
33747
33718
|
stretchStyle = _useStretchStyle2[0],
|
|
33748
33719
|
measureStretchStyle = _useStretchStyle2[1];
|
|
33749
33720
|
|
|
@@ -33755,7 +33726,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
33755
33726
|
|
|
33756
33727
|
|
|
33757
33728
|
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
|
33758
|
-
_useVisibleStatus2 =
|
|
33729
|
+
_useVisibleStatus2 = slicedToArray_slicedToArray(_useVisibleStatus, 2),
|
|
33759
33730
|
status = _useVisibleStatus2[0],
|
|
33760
33731
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
33761
33732
|
|
|
@@ -33969,15 +33940,15 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
33969
33940
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
33970
33941
|
var visible = _ref.visible,
|
|
33971
33942
|
mobile = _ref.mobile,
|
|
33972
|
-
props =
|
|
33943
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, Popup_excluded);
|
|
33973
33944
|
|
|
33974
33945
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
33975
|
-
_useState2 =
|
|
33946
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
33976
33947
|
innerVisible = _useState2[0],
|
|
33977
33948
|
serInnerVisible = _useState2[1];
|
|
33978
33949
|
|
|
33979
33950
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
33980
|
-
_useState4 =
|
|
33951
|
+
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
33981
33952
|
inMobile = _useState4[0],
|
|
33982
33953
|
setInMobile = _useState4[1];
|
|
33983
33954
|
|
|
@@ -34886,7 +34857,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34886
34857
|
empty = props.empty,
|
|
34887
34858
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
34888
34859
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
34889
|
-
restProps =
|
|
34860
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, SelectTrigger_excluded);
|
|
34890
34861
|
|
|
34891
34862
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
34892
34863
|
var popupNode = popupElement;
|
|
@@ -34910,7 +34881,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34910
34881
|
};
|
|
34911
34882
|
});
|
|
34912
34883
|
|
|
34913
|
-
var popupStyle =
|
|
34884
|
+
var popupStyle = objectSpread2_objectSpread2({
|
|
34914
34885
|
minWidth: containerWidth
|
|
34915
34886
|
}, dropdownStyle);
|
|
34916
34887
|
|
|
@@ -34920,7 +34891,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34920
34891
|
popupStyle.width = containerWidth;
|
|
34921
34892
|
}
|
|
34922
34893
|
|
|
34923
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
34894
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, esm_extends_extends({}, restProps, {
|
|
34924
34895
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
34925
34896
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
34926
34897
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -34933,7 +34904,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
34933
34904
|
popupAlign: dropdownAlign,
|
|
34934
34905
|
popupVisible: visible,
|
|
34935
34906
|
getPopupContainer: getPopupContainer,
|
|
34936
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
34907
|
+
popupClassName: classnames_default()(dropdownClassName, defineProperty_defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
34937
34908
|
popupStyle: popupStyle,
|
|
34938
34909
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
34939
34910
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -35036,7 +35007,7 @@ function useCacheDisplayValue(values) {
|
|
|
35036
35007
|
var cacheLabel = valueLabels.get(item.value);
|
|
35037
35008
|
|
|
35038
35009
|
if (item.isCacheable && cacheLabel) {
|
|
35039
|
-
return
|
|
35010
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
35040
35011
|
label: cacheLabel
|
|
35041
35012
|
});
|
|
35042
35013
|
}
|
|
@@ -35198,7 +35169,7 @@ function generateSelector(config) {
|
|
|
35198
35169
|
onClear = props.onClear,
|
|
35199
35170
|
_props$internalProps = props.internalProps,
|
|
35200
35171
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
35201
|
-
restProps =
|
|
35172
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, generate_excluded);
|
|
35202
35173
|
|
|
35203
35174
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
35204
35175
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -35336,7 +35307,7 @@ function generateSelector(config) {
|
|
|
35336
35307
|
|
|
35337
35308
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
35338
35309
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
35339
|
-
return
|
|
35310
|
+
return toConsumableArray_toConsumableArray(mergedOptions);
|
|
35340
35311
|
}
|
|
35341
35312
|
|
|
35342
35313
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -35357,7 +35328,7 @@ function generateSelector(config) {
|
|
|
35357
35328
|
}
|
|
35358
35329
|
|
|
35359
35330
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
35360
|
-
return
|
|
35331
|
+
return toConsumableArray_toConsumableArray(filteredOptions).sort(filterSort);
|
|
35361
35332
|
}
|
|
35362
35333
|
|
|
35363
35334
|
return filteredOptions;
|
|
@@ -35380,7 +35351,7 @@ function generateSelector(config) {
|
|
|
35380
35351
|
labelInValue: mergedLabelInValue,
|
|
35381
35352
|
optionLabelProp: mergedOptionLabelProp
|
|
35382
35353
|
});
|
|
35383
|
-
return
|
|
35354
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, displayValue), {}, {
|
|
35384
35355
|
disabled: isValueDisabled(val, valueOptions)
|
|
35385
35356
|
});
|
|
35386
35357
|
});
|
|
@@ -35454,7 +35425,7 @@ function generateSelector(config) {
|
|
|
35454
35425
|
}); // We will cache option in case it removed by ajax
|
|
35455
35426
|
|
|
35456
35427
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
35457
|
-
var clone =
|
|
35428
|
+
var clone = objectSpread2_objectSpread2({}, option);
|
|
35458
35429
|
|
|
35459
35430
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
35460
35431
|
get: function get() {
|
|
@@ -35510,13 +35481,13 @@ function generateSelector(config) {
|
|
|
35510
35481
|
};
|
|
35511
35482
|
|
|
35512
35483
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
35513
|
-
onInternalSelect(newValue,
|
|
35484
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
35514
35485
|
source: 'option'
|
|
35515
35486
|
}));
|
|
35516
35487
|
};
|
|
35517
35488
|
|
|
35518
35489
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
35519
|
-
onInternalSelect(newValue,
|
|
35490
|
+
onInternalSelect(newValue, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, info), {}, {
|
|
35520
35491
|
source: 'selection'
|
|
35521
35492
|
}));
|
|
35522
35493
|
}; // ============================= Input ==============================
|
|
@@ -35600,7 +35571,7 @@ function generateSelector(config) {
|
|
|
35600
35571
|
});
|
|
35601
35572
|
}
|
|
35602
35573
|
|
|
35603
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
35574
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), toConsumableArray_toConsumableArray(patchRawValues))));
|
|
35604
35575
|
triggerChange(newRawValues);
|
|
35605
35576
|
newRawValues.forEach(function (newRawValue) {
|
|
35606
35577
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -35629,7 +35600,7 @@ function generateSelector(config) {
|
|
|
35629
35600
|
return;
|
|
35630
35601
|
}
|
|
35631
35602
|
|
|
35632
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
35603
|
+
var newRawValues = Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [searchText])));
|
|
35633
35604
|
triggerChange(newRawValues);
|
|
35634
35605
|
newRawValues.forEach(function (newRawValue) {
|
|
35635
35606
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -35762,7 +35733,7 @@ function generateSelector(config) {
|
|
|
35762
35733
|
// `tags` mode should move `searchValue` into values
|
|
35763
35734
|
if (mode === 'tags') {
|
|
35764
35735
|
triggerSearch('', false, false);
|
|
35765
|
-
triggerChange(Array.from(new Set([].concat(
|
|
35736
|
+
triggerChange(Array.from(new Set([].concat(toConsumableArray_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
35766
35737
|
} else if (mode === 'multiple') {
|
|
35767
35738
|
// `multiple` mode only clean the search value but not trigger event
|
|
35768
35739
|
setInnerSearchValue('');
|
|
@@ -35920,7 +35891,7 @@ function generateSelector(config) {
|
|
|
35920
35891
|
|
|
35921
35892
|
if (mergedShowArrow) {
|
|
35922
35893
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
35923
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
35894
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), defineProperty_defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
35924
35895
|
customizeIcon: inputIcon,
|
|
35925
35896
|
customizeIconProps: {
|
|
35926
35897
|
loading: loading,
|
|
@@ -35936,7 +35907,7 @@ function generateSelector(config) {
|
|
|
35936
35907
|
if (false) {} // ============================= Render =============================
|
|
35937
35908
|
|
|
35938
35909
|
|
|
35939
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
35910
|
+
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));
|
|
35940
35911
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
35941
35912
|
ref: triggerRef,
|
|
35942
35913
|
disabled: disabled,
|
|
@@ -35961,7 +35932,7 @@ function generateSelector(config) {
|
|
|
35961
35932
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
35962
35933
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
35963
35934
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
35964
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
35935
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, esm_extends_extends({}, props, {
|
|
35965
35936
|
domRef: selectorDomRef,
|
|
35966
35937
|
prefixCls: prefixCls,
|
|
35967
35938
|
inputElement: customizeInputElement,
|
|
@@ -35987,7 +35958,7 @@ function generateSelector(config) {
|
|
|
35987
35958
|
return selectorNode;
|
|
35988
35959
|
}
|
|
35989
35960
|
|
|
35990
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
35961
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
35991
35962
|
className: mergedClassName
|
|
35992
35963
|
}, domProps, {
|
|
35993
35964
|
ref: containerRef,
|
|
@@ -36074,7 +36045,7 @@ function warningProps(props) {
|
|
|
36074
36045
|
if (value !== undefined && value !== null) {
|
|
36075
36046
|
var values = commonUtil_toArray(value);
|
|
36076
36047
|
es_warning(!labelInValue || values.every(function (val) {
|
|
36077
|
-
return
|
|
36048
|
+
return esm_typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
36078
36049
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
36079
36050
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
36080
36051
|
} // Syntactic sugar should use correct children type
|
|
@@ -36188,14 +36159,14 @@ var RefSelect = generateSelector({
|
|
|
36188
36159
|
*/
|
|
36189
36160
|
|
|
36190
36161
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
36191
|
-
|
|
36162
|
+
inherits_inherits(Select, _React$Component);
|
|
36192
36163
|
|
|
36193
|
-
var _super =
|
|
36164
|
+
var _super = createSuper_createSuper(Select);
|
|
36194
36165
|
|
|
36195
36166
|
function Select() {
|
|
36196
36167
|
var _this;
|
|
36197
36168
|
|
|
36198
|
-
|
|
36169
|
+
classCallCheck_classCallCheck(this, Select);
|
|
36199
36170
|
|
|
36200
36171
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36201
36172
|
args[_key] = arguments[_key];
|
|
@@ -36215,10 +36186,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
36215
36186
|
return _this;
|
|
36216
36187
|
}
|
|
36217
36188
|
|
|
36218
|
-
|
|
36189
|
+
createClass_createClass(Select, [{
|
|
36219
36190
|
key: "render",
|
|
36220
36191
|
value: function render() {
|
|
36221
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
36192
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, esm_extends_extends({
|
|
36222
36193
|
ref: this.selectRef
|
|
36223
36194
|
}, this.props));
|
|
36224
36195
|
}
|
|
@@ -37898,7 +37869,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
37898
37869
|
|
|
37899
37870
|
|
|
37900
37871
|
|
|
37901
|
-
var TrackPageName = '
|
|
37872
|
+
var TrackPageName = 'edu_Platform_publiclive_detail_page';
|
|
37902
37873
|
function PublicLiveDetail(_ref) {
|
|
37903
37874
|
var containerClassName = _ref.containerClassName,
|
|
37904
37875
|
className = _ref.className,
|
|
@@ -38224,7 +38195,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38224
38195
|
if (loginStatus !== LOGIN_STATUS.WAIT && liveInfo) {
|
|
38225
38196
|
onSendSensors({
|
|
38226
38197
|
pageName: TrackPageName,
|
|
38227
|
-
eventName: '
|
|
38198
|
+
eventName: 'edu_Platform_publiclive_detail_page',
|
|
38228
38199
|
params: {
|
|
38229
38200
|
publiclive_id: liveInfo.live_id,
|
|
38230
38201
|
publiclive_name: liveInfo.live_name,
|
|
@@ -38239,7 +38210,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38239
38210
|
if (!isExist) {
|
|
38240
38211
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Empty_Empty, {
|
|
38241
38212
|
hideBack: true,
|
|
38242
|
-
tip: "\
|
|
38213
|
+
tip: "\u5185\u5BB9\u5DF2\u5931\u6548",
|
|
38243
38214
|
className: src_detail_index_module["live-empty"]
|
|
38244
38215
|
});
|
|
38245
38216
|
}
|
|
@@ -38255,7 +38226,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38255
38226
|
if (needReport) {
|
|
38256
38227
|
onSendSensors({
|
|
38257
38228
|
pageName: TrackPageName,
|
|
38258
|
-
eventName: '
|
|
38229
|
+
eventName: 'edu_Platform_publiclive_detail_replay_click',
|
|
38259
38230
|
params: {
|
|
38260
38231
|
publiclive_id: liveInfo.live_id,
|
|
38261
38232
|
publiclive_name: liveInfo.live_name,
|
|
@@ -38271,7 +38242,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38271
38242
|
var handleRequestFullScreen = function handleRequestFullScreen() {
|
|
38272
38243
|
onSendSensors({
|
|
38273
38244
|
pageName: TrackPageName,
|
|
38274
|
-
eventName: '
|
|
38245
|
+
eventName: 'edu_Platform_publiclive_detail_fullscreen_click'
|
|
38275
38246
|
});
|
|
38276
38247
|
};
|
|
38277
38248
|
|
|
@@ -38279,7 +38250,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38279
38250
|
if (needReport) {
|
|
38280
38251
|
onSendSensors({
|
|
38281
38252
|
pageName: TrackPageName,
|
|
38282
|
-
eventName: '
|
|
38253
|
+
eventName: 'edu_Platform_publiclive_detail_play_click',
|
|
38283
38254
|
params: {
|
|
38284
38255
|
publiclive_id: liveInfo.live_id,
|
|
38285
38256
|
publiclive_name: liveInfo.live_name,
|