@x-edu/live-player 0.0.13 → 0.0.14
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/.gem-mine +11 -11
- package/dist/XEduLivePlayer.common.js +464 -822
- package/dist/XEduLivePlayerPre.common.js +521 -879
- package/package.json +1 -1
- package/public/JsBridge.js +1602 -1602
- package/src/demo/List.jsx +16 -14
- package/src/detail/LiveStatus/index.jsx +186 -186
- package/src/detail/RecordVideo/index.jsx +148 -148
- package/src/detail/index.jsx +501 -501
- package/src/list/ListItem/Action/index.jsx +1 -1
- package/src/list/ListItem/index.jsx +3 -2
- package/src/list/ListItem/index.module.less +1 -1
- package/src/list/index.jsx +1 -1
|
@@ -2615,7 +2615,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2615
2615
|
|
|
2616
2616
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2617
2617
|
// Module
|
|
2618
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;border-top:1px solid #eee;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{margin-right:24px;border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:4px;object-fit:cover}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:4px 0;font-size:12px;line-height:12px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag0_L-uaW{background-color:#ff7826}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag2_sEPZA{background-color:rgba(0,0,0,.6)}.index-module_container_2HydZ .index-module_right_LjXan{display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px)}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_title_\\+g0nw{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;line-height:28px;-webkit-line-clamp:2;font-size:20px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{display:flex;justify-content:space-between;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time_sEG7-{font-size:14px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_action_MHhqt,.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_action_MHhqt{font-size:14px;line-height:22px;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_CvlKL{background:#1e62ec;color:#fff}", ""]);
|
|
2618
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;border-top:1px solid #eee;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{margin-right:24px;border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:4px;object-fit:cover}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:4px 0;font-size:12px;line-height:12px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag0_L-uaW{background-color:#ff7826}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse img,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag2_sEPZA{background-color:rgba(0,0,0,.6)}.index-module_container_2HydZ .index-module_right_LjXan{display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px)}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_title_\\+g0nw{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;line-height:28px;-webkit-line-clamp:2;font-size:20px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{display:flex;justify-content:space-between;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time_sEG7-{font-size:14px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_action_MHhqt,.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_action_MHhqt{font-size:14px;line-height:22px;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_CvlKL{background:#1e62ec;color:#fff}", ""]);
|
|
2619
2619
|
// Exports
|
|
2620
2620
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2621
2621
|
"container": "index-module_container_2HydZ",
|
|
@@ -2624,6 +2624,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2624
2624
|
"tag": "index-module_tag_6g0Vd",
|
|
2625
2625
|
"tag0": "index-module_tag0_L-uaW",
|
|
2626
2626
|
"tag1": "index-module_tag1_1Mqse",
|
|
2627
|
+
"tag3": "index-module_tag3_8NDod",
|
|
2627
2628
|
"tag2": "index-module_tag2_sEPZA",
|
|
2628
2629
|
"right": "index-module_right_LjXan",
|
|
2629
2630
|
"right-top": "index-module_right-top_4Ry90",
|
|
@@ -25807,17 +25808,10 @@ module.exports = styleTagTransform;
|
|
|
25807
25808
|
|
|
25808
25809
|
/***/ }),
|
|
25809
25810
|
|
|
25810
|
-
/***/ 5273:
|
|
25811
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
|
-
|
|
25813
|
-
module.exports = __webpack_require__(5666);
|
|
25814
|
-
|
|
25815
|
-
/***/ }),
|
|
25816
|
-
|
|
25817
25811
|
/***/ 3006:
|
|
25818
25812
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25819
25813
|
|
|
25820
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25814
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
25821
25815
|
|
|
25822
25816
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25823
25817
|
|
|
@@ -27025,7 +27019,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27025
27019
|
/***/ (function(module) {
|
|
27026
27020
|
|
|
27027
27021
|
"use strict";
|
|
27028
|
-
module.exports = JSON.parse('{"_args":[["axios@0.21.4","
|
|
27022
|
+
module.exports = JSON.parse('{"_args":[["axios@0.21.4","/Users/guoyanhao/Desktop/ND/x-cloud/x-edu-live-player"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/","/@gem-mine/request"],"_resolved":"http://registry.npm.sdp.nd/axios/download/axios-0.21.4.tgz","_spec":"0.21.4","_where":"/Users/guoyanhao/Desktop/ND/x-cloud/x-edu-live-player","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}');
|
|
27029
27023
|
|
|
27030
27024
|
/***/ })
|
|
27031
27025
|
|
|
@@ -33115,9 +33109,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33115
33109
|
|
|
33116
33110
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33117
33111
|
|
|
33118
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33119
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33120
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33121
33112
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33122
33113
|
|
|
33123
33114
|
|
|
@@ -33184,9 +33175,9 @@ function isSourceReady(_x) {
|
|
|
33184
33175
|
}
|
|
33185
33176
|
|
|
33186
33177
|
function _isSourceReady() {
|
|
33187
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33178
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33188
33179
|
var newLiveInfo;
|
|
33189
|
-
return
|
|
33180
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33190
33181
|
while (1) {
|
|
33191
33182
|
switch (_context.prev = _context.next) {
|
|
33192
33183
|
case 0:
|
|
@@ -34011,39 +34002,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
34011
34002
|
// style dependencies
|
|
34012
34003
|
|
|
34013
34004
|
|
|
34014
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
34015
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
34016
|
-
if (key in obj) {
|
|
34017
|
-
Object.defineProperty(obj, key, {
|
|
34018
|
-
value: value,
|
|
34019
|
-
enumerable: true,
|
|
34020
|
-
configurable: true,
|
|
34021
|
-
writable: true
|
|
34022
|
-
});
|
|
34023
|
-
} else {
|
|
34024
|
-
obj[key] = value;
|
|
34025
|
-
}
|
|
34026
|
-
|
|
34027
|
-
return obj;
|
|
34028
|
-
}
|
|
34029
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34030
|
-
function esm_extends_extends() {
|
|
34031
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
34032
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34033
|
-
var source = arguments[i];
|
|
34034
|
-
|
|
34035
|
-
for (var key in source) {
|
|
34036
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34037
|
-
target[key] = source[key];
|
|
34038
|
-
}
|
|
34039
|
-
}
|
|
34040
|
-
}
|
|
34041
|
-
|
|
34042
|
-
return target;
|
|
34043
|
-
};
|
|
34044
|
-
|
|
34045
|
-
return esm_extends_extends.apply(this, arguments);
|
|
34046
|
-
}
|
|
34047
34005
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
34048
34006
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
34049
34007
|
if (Array.isArray(arr)) return arr;
|
|
@@ -34078,26 +34036,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
34078
34036
|
|
|
34079
34037
|
return _arr;
|
|
34080
34038
|
}
|
|
34081
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
34082
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
34083
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
34084
|
-
|
|
34085
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
34086
|
-
arr2[i] = arr[i];
|
|
34087
|
-
}
|
|
34088
|
-
|
|
34089
|
-
return arr2;
|
|
34090
|
-
}
|
|
34091
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
34092
|
-
|
|
34093
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34094
|
-
if (!o) return;
|
|
34095
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34096
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34097
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34098
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34099
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34100
|
-
}
|
|
34101
34039
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34102
34040
|
function nonIterableRest_nonIterableRest() {
|
|
34103
34041
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34108,130 +34046,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34108
34046
|
|
|
34109
34047
|
|
|
34110
34048
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34111
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34112
|
-
}
|
|
34113
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34114
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34115
|
-
if (!(instance instanceof Constructor)) {
|
|
34116
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34117
|
-
}
|
|
34118
|
-
}
|
|
34119
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34120
|
-
function createClass_defineProperties(target, props) {
|
|
34121
|
-
for (var i = 0; i < props.length; i++) {
|
|
34122
|
-
var descriptor = props[i];
|
|
34123
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34124
|
-
descriptor.configurable = true;
|
|
34125
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34126
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34127
|
-
}
|
|
34128
|
-
}
|
|
34129
|
-
|
|
34130
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34131
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34132
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34133
|
-
return Constructor;
|
|
34134
|
-
}
|
|
34135
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34136
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34137
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34138
|
-
o.__proto__ = p;
|
|
34139
|
-
return o;
|
|
34140
|
-
};
|
|
34141
|
-
|
|
34142
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34143
|
-
}
|
|
34144
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34145
|
-
|
|
34146
|
-
function inherits_inherits(subClass, superClass) {
|
|
34147
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34148
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34149
|
-
}
|
|
34150
|
-
|
|
34151
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34152
|
-
constructor: {
|
|
34153
|
-
value: subClass,
|
|
34154
|
-
writable: true,
|
|
34155
|
-
configurable: true
|
|
34156
|
-
}
|
|
34157
|
-
});
|
|
34158
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34159
|
-
}
|
|
34160
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34161
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34162
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34163
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34164
|
-
};
|
|
34165
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34166
|
-
}
|
|
34167
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34168
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34169
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34170
|
-
if (Reflect.construct.sham) return false;
|
|
34171
|
-
if (typeof Proxy === "function") return true;
|
|
34172
|
-
|
|
34173
|
-
try {
|
|
34174
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34175
|
-
return true;
|
|
34176
|
-
} catch (e) {
|
|
34177
|
-
return false;
|
|
34178
|
-
}
|
|
34179
|
-
}
|
|
34180
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34181
|
-
function esm_typeof_typeof(obj) {
|
|
34182
|
-
"@babel/helpers - typeof";
|
|
34183
|
-
|
|
34184
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34185
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34186
|
-
return typeof obj;
|
|
34187
|
-
};
|
|
34188
|
-
} else {
|
|
34189
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34190
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34191
|
-
};
|
|
34192
|
-
}
|
|
34193
|
-
|
|
34194
|
-
return esm_typeof_typeof(obj);
|
|
34195
|
-
}
|
|
34196
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34197
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34198
|
-
if (self === void 0) {
|
|
34199
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34200
|
-
}
|
|
34201
|
-
|
|
34202
|
-
return self;
|
|
34203
|
-
}
|
|
34204
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34205
|
-
|
|
34206
|
-
|
|
34207
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34208
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34209
|
-
return call;
|
|
34210
|
-
} else if (call !== void 0) {
|
|
34211
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34212
|
-
}
|
|
34213
|
-
|
|
34214
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34215
|
-
}
|
|
34216
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34217
|
-
|
|
34218
|
-
|
|
34219
|
-
|
|
34220
|
-
function createSuper_createSuper(Derived) {
|
|
34221
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34222
|
-
return function _createSuperInternal() {
|
|
34223
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34224
|
-
result;
|
|
34225
|
-
|
|
34226
|
-
if (hasNativeReflectConstruct) {
|
|
34227
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34228
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34229
|
-
} else {
|
|
34230
|
-
result = Super.apply(this, arguments);
|
|
34231
|
-
}
|
|
34232
|
-
|
|
34233
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34234
|
-
};
|
|
34049
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34235
34050
|
}
|
|
34236
34051
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34237
34052
|
var raf = function raf(callback) {
|
|
@@ -34458,27 +34273,6 @@ var cacheStyle = {};
|
|
|
34458
34273
|
}
|
|
34459
34274
|
}
|
|
34460
34275
|
});
|
|
34461
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34462
|
-
|
|
34463
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34464
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34465
|
-
}
|
|
34466
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34467
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34468
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34469
|
-
}
|
|
34470
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34471
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34472
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34473
|
-
}
|
|
34474
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34475
|
-
|
|
34476
|
-
|
|
34477
|
-
|
|
34478
|
-
|
|
34479
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34480
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34481
|
-
}
|
|
34482
34276
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34483
34277
|
|
|
34484
34278
|
|
|
@@ -34495,7 +34289,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34495
34289
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34496
34290
|
var _this = this;
|
|
34497
34291
|
|
|
34498
|
-
|
|
34292
|
+
_classCallCheck(this, ScrollLocker);
|
|
34499
34293
|
|
|
34500
34294
|
this.lockTarget = void 0;
|
|
34501
34295
|
this.options = void 0;
|
|
@@ -34543,7 +34337,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34543
34337
|
var options = _ref3.options;
|
|
34544
34338
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34545
34339
|
})) {
|
|
34546
|
-
locks = [].concat(
|
|
34340
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34547
34341
|
target: _this.lockTarget,
|
|
34548
34342
|
options: _this.options
|
|
34549
34343
|
}]);
|
|
@@ -34581,7 +34375,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34581
34375
|
container.className = addClassName.trim();
|
|
34582
34376
|
}
|
|
34583
34377
|
|
|
34584
|
-
locks = [].concat(
|
|
34378
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34585
34379
|
target: _this.lockTarget,
|
|
34586
34380
|
options: _this.options
|
|
34587
34381
|
}]);
|
|
@@ -34665,7 +34459,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34665
34459
|
return getContainer();
|
|
34666
34460
|
}
|
|
34667
34461
|
|
|
34668
|
-
if (
|
|
34462
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34669
34463
|
return getContainer;
|
|
34670
34464
|
}
|
|
34671
34465
|
}
|
|
@@ -34674,14 +34468,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34674
34468
|
};
|
|
34675
34469
|
|
|
34676
34470
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34677
|
-
|
|
34471
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34678
34472
|
|
|
34679
|
-
var _super =
|
|
34473
|
+
var _super = _createSuper(PortalWrapper);
|
|
34680
34474
|
|
|
34681
34475
|
function PortalWrapper(props) {
|
|
34682
34476
|
var _this;
|
|
34683
34477
|
|
|
34684
|
-
|
|
34478
|
+
_classCallCheck(this, PortalWrapper);
|
|
34685
34479
|
|
|
34686
34480
|
_this = _super.call(this, props);
|
|
34687
34481
|
_this.container = void 0;
|
|
@@ -34801,7 +34595,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34801
34595
|
return _this;
|
|
34802
34596
|
}
|
|
34803
34597
|
|
|
34804
|
-
|
|
34598
|
+
_createClass(PortalWrapper, [{
|
|
34805
34599
|
key: "componentDidMount",
|
|
34806
34600
|
value: function componentDidMount() {
|
|
34807
34601
|
var _this2 = this;
|
|
@@ -34869,46 +34663,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34869
34663
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34870
34664
|
|
|
34871
34665
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34872
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34873
|
-
|
|
34874
|
-
|
|
34875
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34876
|
-
var keys = Object.keys(object);
|
|
34877
|
-
|
|
34878
|
-
if (Object.getOwnPropertySymbols) {
|
|
34879
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34880
|
-
|
|
34881
|
-
if (enumerableOnly) {
|
|
34882
|
-
symbols = symbols.filter(function (sym) {
|
|
34883
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34884
|
-
});
|
|
34885
|
-
}
|
|
34886
|
-
|
|
34887
|
-
keys.push.apply(keys, symbols);
|
|
34888
|
-
}
|
|
34889
|
-
|
|
34890
|
-
return keys;
|
|
34891
|
-
}
|
|
34892
|
-
|
|
34893
|
-
function objectSpread2_objectSpread2(target) {
|
|
34894
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34895
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
34896
|
-
|
|
34897
|
-
if (i % 2) {
|
|
34898
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34899
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
34900
|
-
});
|
|
34901
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
34902
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34903
|
-
} else {
|
|
34904
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34905
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34906
|
-
});
|
|
34907
|
-
}
|
|
34908
|
-
}
|
|
34909
|
-
|
|
34910
|
-
return target;
|
|
34911
|
-
}
|
|
34912
34666
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34913
34667
|
/**
|
|
34914
34668
|
* @ignore
|
|
@@ -35575,7 +35329,7 @@ function pickAttrs(props) {
|
|
|
35575
35329
|
aria: true
|
|
35576
35330
|
};
|
|
35577
35331
|
} else {
|
|
35578
|
-
mergedConfig =
|
|
35332
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35579
35333
|
}
|
|
35580
35334
|
|
|
35581
35335
|
var attrs = {};
|
|
@@ -35608,7 +35362,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35608
35362
|
function fillRef(ref, node) {
|
|
35609
35363
|
if (typeof ref === 'function') {
|
|
35610
35364
|
ref(node);
|
|
35611
|
-
} else if (
|
|
35365
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35612
35366
|
ref.current = node;
|
|
35613
35367
|
}
|
|
35614
35368
|
}
|
|
@@ -35718,7 +35472,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35718
35472
|
function getTransitionName(transitionName, transitionType) {
|
|
35719
35473
|
if (!transitionName) return null;
|
|
35720
35474
|
|
|
35721
|
-
if (
|
|
35475
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35722
35476
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35723
35477
|
return match[1].toUpperCase();
|
|
35724
35478
|
});
|
|
@@ -36011,13 +35765,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36011
35765
|
|
|
36012
35766
|
switch (status) {
|
|
36013
35767
|
case 'appear':
|
|
36014
|
-
return _ref2 = {},
|
|
35768
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
36015
35769
|
|
|
36016
35770
|
case 'enter':
|
|
36017
|
-
return _ref3 = {},
|
|
35771
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
36018
35772
|
|
|
36019
35773
|
case 'leave':
|
|
36020
|
-
return _ref4 = {},
|
|
35774
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
36021
35775
|
|
|
36022
35776
|
default:
|
|
36023
35777
|
return {};
|
|
@@ -36125,7 +35879,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36125
35879
|
var mergedStyle = style;
|
|
36126
35880
|
|
|
36127
35881
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36128
|
-
mergedStyle =
|
|
35882
|
+
mergedStyle = _objectSpread2({
|
|
36129
35883
|
transition: 'none'
|
|
36130
35884
|
}, mergedStyle);
|
|
36131
35885
|
}
|
|
@@ -36140,17 +35894,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36140
35894
|
|
|
36141
35895
|
|
|
36142
35896
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36143
|
-
|
|
35897
|
+
_inherits(DomWrapper, _React$Component);
|
|
36144
35898
|
|
|
36145
|
-
var _super =
|
|
35899
|
+
var _super = _createSuper(DomWrapper);
|
|
36146
35900
|
|
|
36147
35901
|
function DomWrapper() {
|
|
36148
|
-
|
|
35902
|
+
_classCallCheck(this, DomWrapper);
|
|
36149
35903
|
|
|
36150
35904
|
return _super.apply(this, arguments);
|
|
36151
35905
|
}
|
|
36152
35906
|
|
|
36153
|
-
|
|
35907
|
+
_createClass(DomWrapper, [{
|
|
36154
35908
|
key: "render",
|
|
36155
35909
|
value: function render() {
|
|
36156
35910
|
return this.props.children;
|
|
@@ -36186,7 +35940,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36186
35940
|
function genCSSMotion(config) {
|
|
36187
35941
|
var transitionSupport = config;
|
|
36188
35942
|
|
|
36189
|
-
if (
|
|
35943
|
+
if (typeof_typeof(config) === 'object') {
|
|
36190
35944
|
transitionSupport = config.transitionSupport;
|
|
36191
35945
|
}
|
|
36192
35946
|
|
|
@@ -36244,7 +35998,7 @@ function genCSSMotion(config) {
|
|
|
36244
35998
|
|
|
36245
35999
|
var motionChildren;
|
|
36246
36000
|
|
|
36247
|
-
var mergedProps =
|
|
36001
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36248
36002
|
visible: visible
|
|
36249
36003
|
});
|
|
36250
36004
|
|
|
@@ -36254,13 +36008,13 @@ function genCSSMotion(config) {
|
|
|
36254
36008
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36255
36009
|
// Stable children
|
|
36256
36010
|
if (mergedVisible) {
|
|
36257
|
-
motionChildren = children(
|
|
36011
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36258
36012
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36259
|
-
motionChildren = children(
|
|
36013
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36260
36014
|
className: leavedClassName
|
|
36261
36015
|
}), setNodeRef);
|
|
36262
36016
|
} else if (forceRender) {
|
|
36263
|
-
motionChildren = children(
|
|
36017
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36264
36018
|
style: {
|
|
36265
36019
|
display: 'none'
|
|
36266
36020
|
}
|
|
@@ -36282,8 +36036,8 @@ function genCSSMotion(config) {
|
|
|
36282
36036
|
statusSuffix = 'start';
|
|
36283
36037
|
}
|
|
36284
36038
|
|
|
36285
|
-
motionChildren = children(
|
|
36286
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36039
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36040
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36287
36041
|
style: statusStyle
|
|
36288
36042
|
}), setNodeRef);
|
|
36289
36043
|
}
|
|
@@ -36296,41 +36050,6 @@ function genCSSMotion(config) {
|
|
|
36296
36050
|
return CSSMotion;
|
|
36297
36051
|
}
|
|
36298
36052
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36299
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36300
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36301
|
-
if (source == null) return {};
|
|
36302
|
-
var target = {};
|
|
36303
|
-
var sourceKeys = Object.keys(source);
|
|
36304
|
-
var key, i;
|
|
36305
|
-
|
|
36306
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36307
|
-
key = sourceKeys[i];
|
|
36308
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36309
|
-
target[key] = source[key];
|
|
36310
|
-
}
|
|
36311
|
-
|
|
36312
|
-
return target;
|
|
36313
|
-
}
|
|
36314
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36315
|
-
|
|
36316
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36317
|
-
if (source == null) return {};
|
|
36318
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36319
|
-
var key, i;
|
|
36320
|
-
|
|
36321
|
-
if (Object.getOwnPropertySymbols) {
|
|
36322
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36323
|
-
|
|
36324
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36325
|
-
key = sourceSymbolKeys[i];
|
|
36326
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36327
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36328
|
-
target[key] = source[key];
|
|
36329
|
-
}
|
|
36330
|
-
}
|
|
36331
|
-
|
|
36332
|
-
return target;
|
|
36333
|
-
}
|
|
36334
36053
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36335
36054
|
|
|
36336
36055
|
|
|
@@ -36341,7 +36060,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36341
36060
|
function wrapKeyToObject(key) {
|
|
36342
36061
|
var keyObj;
|
|
36343
36062
|
|
|
36344
|
-
if (key &&
|
|
36063
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36345
36064
|
keyObj = key;
|
|
36346
36065
|
} else {
|
|
36347
36066
|
keyObj = {
|
|
@@ -36349,7 +36068,7 @@ function wrapKeyToObject(key) {
|
|
|
36349
36068
|
};
|
|
36350
36069
|
}
|
|
36351
36070
|
|
|
36352
|
-
return
|
|
36071
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36353
36072
|
key: String(keyObj.key)
|
|
36354
36073
|
});
|
|
36355
36074
|
}
|
|
@@ -36376,14 +36095,14 @@ function diffKeys() {
|
|
|
36376
36095
|
// New added keys should add before current key
|
|
36377
36096
|
if (currentIndex < i) {
|
|
36378
36097
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36379
|
-
return
|
|
36098
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36380
36099
|
status: STATUS_ADD
|
|
36381
36100
|
});
|
|
36382
36101
|
}));
|
|
36383
36102
|
currentIndex = i;
|
|
36384
36103
|
}
|
|
36385
36104
|
|
|
36386
|
-
list.push(
|
|
36105
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36387
36106
|
status: STATUS_KEEP
|
|
36388
36107
|
}));
|
|
36389
36108
|
currentIndex += 1;
|
|
@@ -36394,7 +36113,7 @@ function diffKeys() {
|
|
|
36394
36113
|
|
|
36395
36114
|
|
|
36396
36115
|
if (!hit) {
|
|
36397
|
-
list.push(
|
|
36116
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36398
36117
|
status: STATUS_REMOVE
|
|
36399
36118
|
}));
|
|
36400
36119
|
}
|
|
@@ -36402,7 +36121,7 @@ function diffKeys() {
|
|
|
36402
36121
|
|
|
36403
36122
|
if (currentIndex < currentLen) {
|
|
36404
36123
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36405
|
-
return
|
|
36124
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36406
36125
|
status: STATUS_ADD
|
|
36407
36126
|
});
|
|
36408
36127
|
}));
|
|
@@ -36463,14 +36182,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36463
36182
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36464
36183
|
|
|
36465
36184
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36466
|
-
|
|
36185
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36467
36186
|
|
|
36468
|
-
var _super =
|
|
36187
|
+
var _super = _createSuper(CSSMotionList);
|
|
36469
36188
|
|
|
36470
36189
|
function CSSMotionList() {
|
|
36471
36190
|
var _this;
|
|
36472
36191
|
|
|
36473
|
-
|
|
36192
|
+
_classCallCheck(this, CSSMotionList);
|
|
36474
36193
|
|
|
36475
36194
|
_this = _super.apply(this, arguments);
|
|
36476
36195
|
_this.state = {
|
|
@@ -36483,7 +36202,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36483
36202
|
return {
|
|
36484
36203
|
keyEntities: keyEntities.map(function (entity) {
|
|
36485
36204
|
if (entity.key !== removeKey) return entity;
|
|
36486
|
-
return
|
|
36205
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36487
36206
|
status: STATUS_REMOVED
|
|
36488
36207
|
});
|
|
36489
36208
|
})
|
|
@@ -36494,7 +36213,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36494
36213
|
return _this;
|
|
36495
36214
|
}
|
|
36496
36215
|
|
|
36497
|
-
|
|
36216
|
+
_createClass(CSSMotionList, [{
|
|
36498
36217
|
key: "render",
|
|
36499
36218
|
value: function render() {
|
|
36500
36219
|
var _this2 = this;
|
|
@@ -36505,7 +36224,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36505
36224
|
component = _this$props.component,
|
|
36506
36225
|
children = _this$props.children,
|
|
36507
36226
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36508
|
-
restProps =
|
|
36227
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36509
36228
|
|
|
36510
36229
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36511
36230
|
var motionProps = {};
|
|
@@ -36516,10 +36235,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36516
36235
|
delete restProps.keys;
|
|
36517
36236
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36518
36237
|
var status = _ref2.status,
|
|
36519
|
-
eventProps =
|
|
36238
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36520
36239
|
|
|
36521
36240
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36522
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36241
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36523
36242
|
key: eventProps.key,
|
|
36524
36243
|
visible: visible,
|
|
36525
36244
|
eventProps: eventProps,
|
|
@@ -36593,8 +36312,8 @@ function Mask(props) {
|
|
|
36593
36312
|
}, function (_ref) {
|
|
36594
36313
|
var motionClassName = _ref.className,
|
|
36595
36314
|
motionStyle = _ref.style;
|
|
36596
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36597
|
-
style:
|
|
36315
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36316
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36598
36317
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36599
36318
|
}, maskProps));
|
|
36600
36319
|
});
|
|
@@ -36777,7 +36496,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36777
36496
|
|
|
36778
36497
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36779
36498
|
className: "".concat(prefixCls, "-content")
|
|
36780
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36499
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36781
36500
|
className: "".concat(prefixCls, "-body"),
|
|
36782
36501
|
style: bodyStyle
|
|
36783
36502
|
}, bodyProps), children), footerNode);
|
|
@@ -36797,7 +36516,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36797
36516
|
key: "dialog-element",
|
|
36798
36517
|
role: "document",
|
|
36799
36518
|
ref: motionRef,
|
|
36800
|
-
style:
|
|
36519
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36801
36520
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36802
36521
|
onMouseDown: onMouseDown,
|
|
36803
36522
|
onMouseUp: onMouseUp
|
|
@@ -36979,7 +36698,7 @@ function Dialog(props) {
|
|
|
36979
36698
|
return function () {};
|
|
36980
36699
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36981
36700
|
|
|
36982
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36701
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36983
36702
|
className: "".concat(prefixCls, "-root")
|
|
36984
36703
|
}, pickAttrs(props, {
|
|
36985
36704
|
data: true
|
|
@@ -36987,11 +36706,11 @@ function Dialog(props) {
|
|
|
36987
36706
|
prefixCls: prefixCls,
|
|
36988
36707
|
visible: mask && visible,
|
|
36989
36708
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
36990
|
-
style:
|
|
36709
|
+
style: _objectSpread2({
|
|
36991
36710
|
zIndex: zIndex
|
|
36992
36711
|
}, maskStyle),
|
|
36993
36712
|
maskProps: maskProps
|
|
36994
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36713
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36995
36714
|
tabIndex: -1,
|
|
36996
36715
|
onKeyDown: onWrapperKeyDown,
|
|
36997
36716
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -36999,12 +36718,12 @@ function Dialog(props) {
|
|
|
36999
36718
|
onClick: onWrapperClick,
|
|
37000
36719
|
role: "dialog",
|
|
37001
36720
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
37002
|
-
style:
|
|
36721
|
+
style: _objectSpread2(_objectSpread2({
|
|
37003
36722
|
zIndex: zIndex
|
|
37004
36723
|
}, wrapStyle), {}, {
|
|
37005
36724
|
display: !animatedVisible ? 'none' : null
|
|
37006
36725
|
})
|
|
37007
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
36726
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
37008
36727
|
onMouseDown: onContentMouseDown,
|
|
37009
36728
|
onMouseUp: onContentMouseUp,
|
|
37010
36729
|
ref: contentRef,
|
|
@@ -37052,7 +36771,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37052
36771
|
}, [visible]); // 渲染在当前 dom 里;
|
|
37053
36772
|
|
|
37054
36773
|
if (getContainer === false) {
|
|
37055
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36774
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37056
36775
|
getOpenCount: function getOpenCount() {
|
|
37057
36776
|
return 2;
|
|
37058
36777
|
} // 不对 body 做任何操作。。
|
|
@@ -37070,7 +36789,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
37070
36789
|
forceRender: forceRender,
|
|
37071
36790
|
getContainer: getContainer
|
|
37072
36791
|
}, function (childProps) {
|
|
37073
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36792
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
37074
36793
|
destroyOnClose: destroyOnClose,
|
|
37075
36794
|
afterClose: function afterClose() {
|
|
37076
36795
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37105,8 +36824,8 @@ function getConfirmLocale() {
|
|
|
37105
36824
|
|
|
37106
36825
|
|
|
37107
36826
|
|
|
37108
|
-
var UnreachableException = /*#__PURE__*/
|
|
37109
|
-
|
|
36827
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
36828
|
+
_classCallCheck(this, UnreachableException);
|
|
37110
36829
|
|
|
37111
36830
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37112
36831
|
});
|
|
@@ -37169,8 +36888,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37169
36888
|
console.warn(new UnreachableException(size).error);
|
|
37170
36889
|
}
|
|
37171
36890
|
|
|
37172
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37173
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36891
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
36892
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37174
36893
|
className: classes
|
|
37175
36894
|
}));
|
|
37176
36895
|
});
|
|
@@ -37241,14 +36960,14 @@ function isNotGrey(color) {
|
|
|
37241
36960
|
}
|
|
37242
36961
|
|
|
37243
36962
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37244
|
-
|
|
36963
|
+
_inherits(Wave, _React$Component);
|
|
37245
36964
|
|
|
37246
|
-
var _super =
|
|
36965
|
+
var _super = _createSuper(Wave);
|
|
37247
36966
|
|
|
37248
36967
|
function Wave() {
|
|
37249
36968
|
var _this;
|
|
37250
36969
|
|
|
37251
|
-
|
|
36970
|
+
_classCallCheck(this, Wave);
|
|
37252
36971
|
|
|
37253
36972
|
_this = _super.apply(this, arguments);
|
|
37254
36973
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37268,7 +36987,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37268
36987
|
|
|
37269
36988
|
_this.extraNode = document.createElement('div');
|
|
37270
36989
|
|
|
37271
|
-
var _assertThisInitialize =
|
|
36990
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37272
36991
|
extraNode = _assertThisInitialize.extraNode;
|
|
37273
36992
|
|
|
37274
36993
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37375,7 +37094,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37375
37094
|
return _this;
|
|
37376
37095
|
}
|
|
37377
37096
|
|
|
37378
|
-
|
|
37097
|
+
_createClass(Wave, [{
|
|
37379
37098
|
key: "componentDidMount",
|
|
37380
37099
|
value: function componentDidMount() {
|
|
37381
37100
|
var node = this.containerRef.current;
|
|
@@ -37602,7 +37321,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37602
37321
|
var isPrevChildPure = false;
|
|
37603
37322
|
var childList = [];
|
|
37604
37323
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37605
|
-
var type =
|
|
37324
|
+
var type = typeof_typeof(child);
|
|
37606
37325
|
|
|
37607
37326
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37608
37327
|
|
|
@@ -37702,7 +37421,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37702
37421
|
}; // =============== Update Loading ===============
|
|
37703
37422
|
|
|
37704
37423
|
|
|
37705
|
-
var loadingOrDelay =
|
|
37424
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37706
37425
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37707
37426
|
clearTimeout(delayTimeoutRef.current);
|
|
37708
37427
|
|
|
@@ -37742,7 +37461,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37742
37461
|
var sizeFullname = customizeSize || size;
|
|
37743
37462
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37744
37463
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37745
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37464
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), _defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), _defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37746
37465
|
var iconNode;
|
|
37747
37466
|
|
|
37748
37467
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37761,14 +37480,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37761
37480
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37762
37481
|
|
|
37763
37482
|
if (linkButtonRestProps.href !== undefined) {
|
|
37764
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37483
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
37765
37484
|
className: classes,
|
|
37766
37485
|
onClick: handleClick,
|
|
37767
37486
|
ref: buttonRef
|
|
37768
37487
|
}), iconNode, kids);
|
|
37769
37488
|
}
|
|
37770
37489
|
|
|
37771
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37490
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
37772
37491
|
type: htmlType,
|
|
37773
37492
|
className: classes,
|
|
37774
37493
|
onClick: handleClick,
|
|
@@ -37946,9 +37665,9 @@ var Modal = function Modal(props) {
|
|
|
37946
37665
|
okType = props.okType,
|
|
37947
37666
|
cancelText = props.cancelText,
|
|
37948
37667
|
confirmLoading = props.confirmLoading;
|
|
37949
|
-
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,
|
|
37668
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({
|
|
37950
37669
|
onClick: handleCancel
|
|
37951
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37670
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
37952
37671
|
loading: confirmLoading,
|
|
37953
37672
|
onClick: handleOk
|
|
37954
37673
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37983,8 +37702,8 @@ var Modal = function Modal(props) {
|
|
|
37983
37702
|
type: "close",
|
|
37984
37703
|
className: "".concat(prefixCls, "-close-icon")
|
|
37985
37704
|
}));
|
|
37986
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
37987
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37705
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37706
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
37988
37707
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
37989
37708
|
prefixCls: prefixCls,
|
|
37990
37709
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38110,7 +37829,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38110
37829
|
children = props.children,
|
|
38111
37830
|
prefixCls = props.prefixCls,
|
|
38112
37831
|
buttonProps = props.buttonProps;
|
|
38113
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
37832
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38114
37833
|
onClick: onClick,
|
|
38115
37834
|
loading: loading,
|
|
38116
37835
|
prefixCls: prefixCls
|
|
@@ -39627,7 +39346,7 @@ function get(entity, path) {
|
|
|
39627
39346
|
|
|
39628
39347
|
|
|
39629
39348
|
function _toArray(arr) {
|
|
39630
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39349
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39631
39350
|
}
|
|
39632
39351
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39633
39352
|
|
|
@@ -39649,9 +39368,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39649
39368
|
if (!entity && typeof path === 'number') {
|
|
39650
39369
|
clone = [];
|
|
39651
39370
|
} else if (Array.isArray(entity)) {
|
|
39652
|
-
clone =
|
|
39371
|
+
clone = _toConsumableArray(entity);
|
|
39653
39372
|
} else {
|
|
39654
|
-
clone =
|
|
39373
|
+
clone = _objectSpread2({}, entity);
|
|
39655
39374
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39656
39375
|
|
|
39657
39376
|
|
|
@@ -39715,7 +39434,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39715
39434
|
}
|
|
39716
39435
|
|
|
39717
39436
|
function isObject(obj) {
|
|
39718
|
-
return
|
|
39437
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39719
39438
|
}
|
|
39720
39439
|
/**
|
|
39721
39440
|
* Copy values into store and return a new values object
|
|
@@ -39724,7 +39443,7 @@ function isObject(obj) {
|
|
|
39724
39443
|
|
|
39725
39444
|
|
|
39726
39445
|
function internalSetValues(store, values) {
|
|
39727
|
-
var newStore = Array.isArray(store) ?
|
|
39446
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39728
39447
|
|
|
39729
39448
|
if (!values) {
|
|
39730
39449
|
return newStore;
|
|
@@ -39767,14 +39486,14 @@ function isSimilar(source, target) {
|
|
|
39767
39486
|
return false;
|
|
39768
39487
|
}
|
|
39769
39488
|
|
|
39770
|
-
if (!source || !target ||
|
|
39489
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
39771
39490
|
return false;
|
|
39772
39491
|
}
|
|
39773
39492
|
|
|
39774
39493
|
var sourceKeys = Object.keys(source);
|
|
39775
39494
|
var targetKeys = Object.keys(target);
|
|
39776
|
-
var keys = new Set([].concat(
|
|
39777
|
-
return
|
|
39495
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39496
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
39778
39497
|
var sourceValue = source[key];
|
|
39779
39498
|
var targetValue = target[key];
|
|
39780
39499
|
|
|
@@ -39817,12 +39536,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39817
39536
|
|
|
39818
39537
|
if (diff > 0) {
|
|
39819
39538
|
// move left
|
|
39820
|
-
return [].concat(
|
|
39539
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39821
39540
|
}
|
|
39822
39541
|
|
|
39823
39542
|
if (diff < 0) {
|
|
39824
39543
|
// move right
|
|
39825
|
-
return [].concat(
|
|
39544
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39826
39545
|
}
|
|
39827
39546
|
|
|
39828
39547
|
return array;
|
|
@@ -39862,13 +39581,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39862
39581
|
|
|
39863
39582
|
|
|
39864
39583
|
function _validateRule() {
|
|
39865
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39584
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39866
39585
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39867
|
-
return
|
|
39586
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
39868
39587
|
while (1) {
|
|
39869
39588
|
switch (_context2.prev = _context2.next) {
|
|
39870
39589
|
case 0:
|
|
39871
|
-
cloneRule =
|
|
39590
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
39872
39591
|
// https://github.com/react-component/field-form/issues/316
|
|
39873
39592
|
// https://github.com/react-component/field-form/issues/313
|
|
39874
39593
|
|
|
@@ -39881,13 +39600,13 @@ function _validateRule() {
|
|
|
39881
39600
|
delete cloneRule.defaultField;
|
|
39882
39601
|
}
|
|
39883
39602
|
|
|
39884
|
-
validator = new AsyncValidator(
|
|
39603
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
39885
39604
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39886
39605
|
validator.messages(messages);
|
|
39887
39606
|
result = [];
|
|
39888
39607
|
_context2.prev = 8;
|
|
39889
39608
|
_context2.next = 11;
|
|
39890
|
-
return Promise.resolve(validator.validate(
|
|
39609
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
39891
39610
|
|
|
39892
39611
|
case 11:
|
|
39893
39612
|
_context2.next = 16;
|
|
@@ -39927,12 +39646,12 @@ function _validateRule() {
|
|
|
39927
39646
|
case 19:
|
|
39928
39647
|
subResults = _context2.sent;
|
|
39929
39648
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39930
|
-
return [].concat(
|
|
39649
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
39931
39650
|
}, []));
|
|
39932
39651
|
|
|
39933
39652
|
case 21:
|
|
39934
39653
|
// Replace message with variables
|
|
39935
|
-
kv =
|
|
39654
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
39936
39655
|
name: name,
|
|
39937
39656
|
enum: (rule.enum || []).join(', ')
|
|
39938
39657
|
}, messageVariables);
|
|
@@ -39961,7 +39680,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39961
39680
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39962
39681
|
var originValidatorFunc = currentRule.validator;
|
|
39963
39682
|
|
|
39964
|
-
var cloneRule =
|
|
39683
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
39965
39684
|
ruleIndex: ruleIndex
|
|
39966
39685
|
}); // Replace validator if needed
|
|
39967
39686
|
|
|
@@ -40029,9 +39748,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
40029
39748
|
if (validateFirst === true) {
|
|
40030
39749
|
// >>>>> Validate by serialization
|
|
40031
39750
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
40032
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39751
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
40033
39752
|
var i, rule, errors;
|
|
40034
|
-
return
|
|
39753
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
40035
39754
|
while (1) {
|
|
40036
39755
|
switch (_context.prev = _context.next) {
|
|
40037
39756
|
case 0:
|
|
@@ -40110,15 +39829,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40110
39829
|
}
|
|
40111
39830
|
|
|
40112
39831
|
function _finishOnAllFailed() {
|
|
40113
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40114
|
-
return
|
|
39832
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
39833
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40115
39834
|
while (1) {
|
|
40116
39835
|
switch (_context3.prev = _context3.next) {
|
|
40117
39836
|
case 0:
|
|
40118
39837
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40119
39838
|
var _ref5;
|
|
40120
39839
|
|
|
40121
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
39840
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40122
39841
|
|
|
40123
39842
|
return errors;
|
|
40124
39843
|
}));
|
|
@@ -40138,9 +39857,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40138
39857
|
}
|
|
40139
39858
|
|
|
40140
39859
|
function _finishOnFirstFailed() {
|
|
40141
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39860
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40142
39861
|
var count;
|
|
40143
|
-
return
|
|
39862
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40144
39863
|
while (1) {
|
|
40145
39864
|
switch (_context4.prev = _context4.next) {
|
|
40146
39865
|
case 0:
|
|
@@ -40203,9 +39922,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40203
39922
|
|
|
40204
39923
|
|
|
40205
39924
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40206
|
-
|
|
39925
|
+
_inherits(Field, _React$Component);
|
|
40207
39926
|
|
|
40208
|
-
var _super =
|
|
39927
|
+
var _super = _createSuper(Field);
|
|
40209
39928
|
|
|
40210
39929
|
/**
|
|
40211
39930
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40221,7 +39940,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40221
39940
|
function Field(props) {
|
|
40222
39941
|
var _this;
|
|
40223
39942
|
|
|
40224
|
-
|
|
39943
|
+
_classCallCheck(this, Field);
|
|
40225
39944
|
|
|
40226
39945
|
_this = _super.call(this, props); // Register on init
|
|
40227
39946
|
|
|
@@ -40256,7 +39975,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40256
39975
|
fieldContext = _this$props2.fieldContext;
|
|
40257
39976
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40258
39977
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40259
|
-
return name !== undefined ? [].concat(
|
|
39978
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40260
39979
|
};
|
|
40261
39980
|
|
|
40262
39981
|
_this.getRules = function () {
|
|
@@ -40289,7 +40008,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40289
40008
|
|
|
40290
40009
|
_this.triggerMetaEvent = function (destroy) {
|
|
40291
40010
|
var onMetaChange = _this.props.onMetaChange;
|
|
40292
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40011
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40293
40012
|
destroy: destroy
|
|
40294
40013
|
}));
|
|
40295
40014
|
};
|
|
@@ -40478,9 +40197,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40478
40197
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40479
40198
|
|
|
40480
40199
|
if (warningOnly) {
|
|
40481
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40200
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40482
40201
|
} else {
|
|
40483
|
-
nextErrors.push.apply(nextErrors,
|
|
40202
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40484
40203
|
}
|
|
40485
40204
|
});
|
|
40486
40205
|
_this.errors = nextErrors;
|
|
@@ -40571,7 +40290,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40571
40290
|
if (typeof children === 'function') {
|
|
40572
40291
|
var meta = _this.getMeta();
|
|
40573
40292
|
|
|
40574
|
-
return
|
|
40293
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40575
40294
|
isFunction: true
|
|
40576
40295
|
});
|
|
40577
40296
|
} // Filed element only
|
|
@@ -40623,13 +40342,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40623
40342
|
var value = _this.getValue();
|
|
40624
40343
|
|
|
40625
40344
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40626
|
-
return
|
|
40345
|
+
return _defineProperty({}, valuePropName, val);
|
|
40627
40346
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40628
40347
|
|
|
40629
40348
|
|
|
40630
40349
|
var originTriggerFunc = childProps[trigger];
|
|
40631
40350
|
|
|
40632
|
-
var control =
|
|
40351
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40633
40352
|
|
|
40634
40353
|
|
|
40635
40354
|
control[trigger] = function () {
|
|
@@ -40700,13 +40419,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40700
40419
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40701
40420
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40702
40421
|
|
|
40703
|
-
initEntityValue(
|
|
40422
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40704
40423
|
}
|
|
40705
40424
|
|
|
40706
40425
|
return _this;
|
|
40707
40426
|
}
|
|
40708
40427
|
|
|
40709
|
-
|
|
40428
|
+
_createClass(Field, [{
|
|
40710
40429
|
key: "componentDidMount",
|
|
40711
40430
|
value: function componentDidMount() {
|
|
40712
40431
|
var _this$props7 = this.props,
|
|
@@ -40780,7 +40499,7 @@ Field.defaultProps = {
|
|
|
40780
40499
|
|
|
40781
40500
|
function WrapperField(_ref5) {
|
|
40782
40501
|
var name = _ref5.name,
|
|
40783
|
-
restProps =
|
|
40502
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
40784
40503
|
|
|
40785
40504
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40786
40505
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40794,7 +40513,7 @@ function WrapperField(_ref5) {
|
|
|
40794
40513
|
|
|
40795
40514
|
if (false) {}
|
|
40796
40515
|
|
|
40797
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40516
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
40798
40517
|
key: key,
|
|
40799
40518
|
name: namePath
|
|
40800
40519
|
}, restProps, {
|
|
@@ -40831,7 +40550,7 @@ var List = function List(_ref) {
|
|
|
40831
40550
|
}
|
|
40832
40551
|
|
|
40833
40552
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40834
|
-
var prefixName = [].concat(
|
|
40553
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
40835
40554
|
|
|
40836
40555
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40837
40556
|
var source = _ref2.source;
|
|
@@ -40844,7 +40563,7 @@ var List = function List(_ref) {
|
|
|
40844
40563
|
};
|
|
40845
40564
|
|
|
40846
40565
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40847
|
-
value:
|
|
40566
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
40848
40567
|
prefixName: prefixName
|
|
40849
40568
|
})
|
|
40850
40569
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40875,13 +40594,13 @@ var List = function List(_ref) {
|
|
|
40875
40594
|
var newValue = getNewValue();
|
|
40876
40595
|
|
|
40877
40596
|
if (index >= 0 && index <= newValue.length) {
|
|
40878
|
-
keyManager.keys = [].concat(
|
|
40879
|
-
onChange([].concat(
|
|
40597
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40598
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
40880
40599
|
} else {
|
|
40881
40600
|
if (false) {}
|
|
40882
40601
|
|
|
40883
|
-
keyManager.keys = [].concat(
|
|
40884
|
-
onChange([].concat(
|
|
40602
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40603
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
40885
40604
|
}
|
|
40886
40605
|
|
|
40887
40606
|
keyManager.id += 1;
|
|
@@ -40990,7 +40709,7 @@ var SPLIT = '__@field_split__';
|
|
|
40990
40709
|
|
|
40991
40710
|
function normalize(namePath) {
|
|
40992
40711
|
return namePath.map(function (cell) {
|
|
40993
|
-
return "".concat(
|
|
40712
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
40994
40713
|
}) // Magic split
|
|
40995
40714
|
.join(SPLIT);
|
|
40996
40715
|
}
|
|
@@ -41001,12 +40720,12 @@ function normalize(namePath) {
|
|
|
41001
40720
|
|
|
41002
40721
|
var NameMap = /*#__PURE__*/function () {
|
|
41003
40722
|
function NameMap() {
|
|
41004
|
-
|
|
40723
|
+
_classCallCheck(this, NameMap);
|
|
41005
40724
|
|
|
41006
40725
|
this.kvs = new Map();
|
|
41007
40726
|
}
|
|
41008
40727
|
|
|
41009
|
-
|
|
40728
|
+
_createClass(NameMap, [{
|
|
41010
40729
|
key: "set",
|
|
41011
40730
|
value: function set(key, value) {
|
|
41012
40731
|
this.kvs.set(normalize(key), value);
|
|
@@ -41037,7 +40756,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
41037
40756
|
}, {
|
|
41038
40757
|
key: "map",
|
|
41039
40758
|
value: function map(callback) {
|
|
41040
|
-
return
|
|
40759
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
41041
40760
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
41042
40761
|
key = _ref2[0],
|
|
41043
40762
|
value = _ref2[1];
|
|
@@ -41091,7 +40810,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
41091
40810
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
41092
40811
|
var _this = this;
|
|
41093
40812
|
|
|
41094
|
-
|
|
40813
|
+
_classCallCheck(this, FormStore);
|
|
41095
40814
|
|
|
41096
40815
|
this.formHooked = false;
|
|
41097
40816
|
this.forceRootUpdate = void 0;
|
|
@@ -41351,7 +41070,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41351
41070
|
return fieldNamePath[i] === nameUnit;
|
|
41352
41071
|
})) {
|
|
41353
41072
|
map.update(shortNamePath, function (list) {
|
|
41354
|
-
return [].concat(
|
|
41073
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41355
41074
|
});
|
|
41356
41075
|
}
|
|
41357
41076
|
});
|
|
@@ -41442,7 +41161,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41442
41161
|
|
|
41443
41162
|
|
|
41444
41163
|
if (!info.skipExist || originValue === undefined) {
|
|
41445
|
-
_this.store = setValue(_this.store, namePath,
|
|
41164
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41446
41165
|
}
|
|
41447
41166
|
}
|
|
41448
41167
|
}
|
|
@@ -41462,7 +41181,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41462
41181
|
if (records) {
|
|
41463
41182
|
var _requiredFieldEntitie;
|
|
41464
41183
|
|
|
41465
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41184
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41466
41185
|
return r.entity;
|
|
41467
41186
|
})));
|
|
41468
41187
|
}
|
|
@@ -41515,7 +41234,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41515
41234
|
fields.forEach(function (fieldData) {
|
|
41516
41235
|
var name = fieldData.name,
|
|
41517
41236
|
errors = fieldData.errors,
|
|
41518
|
-
data =
|
|
41237
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41519
41238
|
|
|
41520
41239
|
var namePath = getNamePath(name); // Value
|
|
41521
41240
|
|
|
@@ -41537,7 +41256,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41537
41256
|
var namePath = field.getNamePath();
|
|
41538
41257
|
var meta = field.getMeta();
|
|
41539
41258
|
|
|
41540
|
-
var fieldData =
|
|
41259
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41541
41260
|
name: namePath,
|
|
41542
41261
|
value: _this.getFieldValue(namePath)
|
|
41543
41262
|
});
|
|
@@ -41636,7 +41355,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41636
41355
|
|
|
41637
41356
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41638
41357
|
if (_this.subscribable) {
|
|
41639
|
-
var mergedInfo =
|
|
41358
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41640
41359
|
store: _this.getFieldsValue(true)
|
|
41641
41360
|
});
|
|
41642
41361
|
|
|
@@ -41669,7 +41388,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41669
41388
|
|
|
41670
41389
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41671
41390
|
type: 'dependenciesUpdate',
|
|
41672
|
-
relatedFields: [namePath].concat(
|
|
41391
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41673
41392
|
}); // trigger callback function
|
|
41674
41393
|
|
|
41675
41394
|
|
|
@@ -41680,7 +41399,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41680
41399
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41681
41400
|
}
|
|
41682
41401
|
|
|
41683
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41402
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41684
41403
|
};
|
|
41685
41404
|
|
|
41686
41405
|
this.setFieldsValue = function (store) {
|
|
@@ -41808,8 +41527,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41808
41527
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41809
41528
|
|
|
41810
41529
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41811
|
-
var promise = field.validateRules(
|
|
41812
|
-
validateMessages:
|
|
41530
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41531
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41813
41532
|
}, options)); // Wrap promise with field
|
|
41814
41533
|
|
|
41815
41534
|
promiseList.push(promise.then(function () {
|
|
@@ -41826,9 +41545,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41826
41545
|
errors = _ref5.errors;
|
|
41827
41546
|
|
|
41828
41547
|
if (warningOnly) {
|
|
41829
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41548
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
41830
41549
|
} else {
|
|
41831
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41550
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
41832
41551
|
}
|
|
41833
41552
|
});
|
|
41834
41553
|
|
|
@@ -41959,8 +41678,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41959
41678
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41960
41679
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41961
41680
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41962
|
-
value:
|
|
41963
|
-
validateMessages:
|
|
41681
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41682
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41964
41683
|
// =========================================================
|
|
41965
41684
|
// = Global Form Control =
|
|
41966
41685
|
// =========================================================
|
|
@@ -41986,13 +41705,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41986
41705
|
},
|
|
41987
41706
|
registerForm: function registerForm(name, form) {
|
|
41988
41707
|
if (name) {
|
|
41989
|
-
formsRef.current =
|
|
41708
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
41990
41709
|
}
|
|
41991
41710
|
|
|
41992
41711
|
formContext.registerForm(name, form);
|
|
41993
41712
|
},
|
|
41994
41713
|
unregisterForm: function unregisterForm(name) {
|
|
41995
|
-
var newForms =
|
|
41714
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
41996
41715
|
|
|
41997
41716
|
delete newForms[name];
|
|
41998
41717
|
formsRef.current = newForms;
|
|
@@ -42032,7 +41751,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42032
41751
|
_onFieldsChange = _ref.onFieldsChange,
|
|
42033
41752
|
_onFinish = _ref.onFinish,
|
|
42034
41753
|
onFinishFailed = _ref.onFinishFailed,
|
|
42035
|
-
restProps =
|
|
41754
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
42036
41755
|
|
|
42037
41756
|
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:
|
|
42038
41757
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -42060,7 +41779,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42060
41779
|
};
|
|
42061
41780
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
42062
41781
|
|
|
42063
|
-
setValidateMessages(
|
|
41782
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
42064
41783
|
setCallbacks({
|
|
42065
41784
|
onValuesChange: onValuesChange,
|
|
42066
41785
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42113,7 +41832,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42113
41832
|
prevFieldsRef.current = fields;
|
|
42114
41833
|
}, [fields, formInstance]);
|
|
42115
41834
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42116
|
-
return
|
|
41835
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42117
41836
|
validateTrigger: validateTrigger
|
|
42118
41837
|
});
|
|
42119
41838
|
}, [formInstance, validateTrigger]);
|
|
@@ -42125,7 +41844,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42125
41844
|
return wrapperNode;
|
|
42126
41845
|
}
|
|
42127
41846
|
|
|
42128
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
41847
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42129
41848
|
onSubmit: function onSubmit(event) {
|
|
42130
41849
|
event.preventDefault();
|
|
42131
41850
|
event.stopPropagation();
|
|
@@ -42307,14 +42026,14 @@ LocaleProvider.defaultProps = {
|
|
|
42307
42026
|
|
|
42308
42027
|
|
|
42309
42028
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42310
|
-
|
|
42029
|
+
_inherits(Notice, _Component);
|
|
42311
42030
|
|
|
42312
|
-
var _super =
|
|
42031
|
+
var _super = _createSuper(Notice);
|
|
42313
42032
|
|
|
42314
42033
|
function Notice() {
|
|
42315
42034
|
var _this;
|
|
42316
42035
|
|
|
42317
|
-
|
|
42036
|
+
_classCallCheck(this, Notice);
|
|
42318
42037
|
|
|
42319
42038
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42320
42039
|
args[_key] = arguments[_key];
|
|
@@ -42357,7 +42076,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42357
42076
|
return _this;
|
|
42358
42077
|
}
|
|
42359
42078
|
|
|
42360
|
-
|
|
42079
|
+
_createClass(Notice, [{
|
|
42361
42080
|
key: "componentDidMount",
|
|
42362
42081
|
value: function componentDidMount() {
|
|
42363
42082
|
this.startCloseTimer();
|
|
@@ -42403,8 +42122,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42403
42122
|
|
|
42404
42123
|
return acc;
|
|
42405
42124
|
}, {});
|
|
42406
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42407
|
-
className: classnames_default()(componentClass, className,
|
|
42125
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42126
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42408
42127
|
style: style,
|
|
42409
42128
|
onMouseEnter: this.clearCloseTimer,
|
|
42410
42129
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42435,52 +42154,6 @@ Notice.defaultProps = {
|
|
|
42435
42154
|
duration: 1.5
|
|
42436
42155
|
};
|
|
42437
42156
|
|
|
42438
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42439
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42440
|
-
if (Array.isArray(arr)) return arr;
|
|
42441
|
-
}
|
|
42442
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42443
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42444
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42445
|
-
|
|
42446
|
-
if (_i == null) return;
|
|
42447
|
-
var _arr = [];
|
|
42448
|
-
var _n = true;
|
|
42449
|
-
var _d = false;
|
|
42450
|
-
|
|
42451
|
-
var _s, _e;
|
|
42452
|
-
|
|
42453
|
-
try {
|
|
42454
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42455
|
-
_arr.push(_s.value);
|
|
42456
|
-
|
|
42457
|
-
if (i && _arr.length === i) break;
|
|
42458
|
-
}
|
|
42459
|
-
} catch (err) {
|
|
42460
|
-
_d = true;
|
|
42461
|
-
_e = err;
|
|
42462
|
-
} finally {
|
|
42463
|
-
try {
|
|
42464
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42465
|
-
} finally {
|
|
42466
|
-
if (_d) throw _e;
|
|
42467
|
-
}
|
|
42468
|
-
}
|
|
42469
|
-
|
|
42470
|
-
return _arr;
|
|
42471
|
-
}
|
|
42472
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42473
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42474
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42475
|
-
}
|
|
42476
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42477
|
-
|
|
42478
|
-
|
|
42479
|
-
|
|
42480
|
-
|
|
42481
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42482
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42483
|
-
}
|
|
42484
42157
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42485
42158
|
|
|
42486
42159
|
|
|
@@ -42491,7 +42164,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42491
42164
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42492
42165
|
|
|
42493
42166
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42494
|
-
_React$useState2 =
|
|
42167
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42495
42168
|
elements = _React$useState2[0],
|
|
42496
42169
|
setElements = _React$useState2[1];
|
|
42497
42170
|
|
|
@@ -42552,14 +42225,14 @@ function getUuid() {
|
|
|
42552
42225
|
}
|
|
42553
42226
|
|
|
42554
42227
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42555
|
-
|
|
42228
|
+
_inherits(Notification, _Component);
|
|
42556
42229
|
|
|
42557
|
-
var _super =
|
|
42230
|
+
var _super = _createSuper(Notification);
|
|
42558
42231
|
|
|
42559
42232
|
function Notification() {
|
|
42560
42233
|
var _this;
|
|
42561
42234
|
|
|
42562
|
-
|
|
42235
|
+
_classCallCheck(this, Notification);
|
|
42563
42236
|
|
|
42564
42237
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42565
42238
|
args[_key] = arguments[_key];
|
|
@@ -42574,7 +42247,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42574
42247
|
_this.add = function (originNotice, holderCallback) {
|
|
42575
42248
|
var key = originNotice.key || getUuid();
|
|
42576
42249
|
|
|
42577
|
-
var notice =
|
|
42250
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42578
42251
|
key: key
|
|
42579
42252
|
});
|
|
42580
42253
|
|
|
@@ -42641,7 +42314,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42641
42314
|
return _this;
|
|
42642
42315
|
}
|
|
42643
42316
|
|
|
42644
|
-
|
|
42317
|
+
_createClass(Notification, [{
|
|
42645
42318
|
key: "getTransitionName",
|
|
42646
42319
|
value: function getTransitionName() {
|
|
42647
42320
|
var _this$props = this.props,
|
|
@@ -42674,7 +42347,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42674
42347
|
var key = notice.key,
|
|
42675
42348
|
userPassKey = notice.userPassKey;
|
|
42676
42349
|
|
|
42677
|
-
var noticeProps =
|
|
42350
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42678
42351
|
prefixCls: prefixCls,
|
|
42679
42352
|
closeIcon: closeIcon
|
|
42680
42353
|
}, notice), notice.props), {}, {
|
|
@@ -42725,7 +42398,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42725
42398
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42726
42399
|
key: key,
|
|
42727
42400
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42728
|
-
style:
|
|
42401
|
+
style: _objectSpread2({}, motionStyle),
|
|
42729
42402
|
ref: function ref(div) {
|
|
42730
42403
|
if (typeof key === 'undefined') {
|
|
42731
42404
|
return;
|
|
@@ -42742,9 +42415,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42742
42415
|
});
|
|
42743
42416
|
}
|
|
42744
42417
|
|
|
42745
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42418
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
42746
42419
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42747
|
-
style:
|
|
42420
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42748
42421
|
visible: visible
|
|
42749
42422
|
}));
|
|
42750
42423
|
}));
|
|
@@ -42767,7 +42440,7 @@ Notification.defaultProps = {
|
|
|
42767
42440
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42768
42441
|
var _ref6 = properties || {},
|
|
42769
42442
|
getContainer = _ref6.getContainer,
|
|
42770
|
-
props =
|
|
42443
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42771
42444
|
|
|
42772
42445
|
var div = document.createElement('div');
|
|
42773
42446
|
|
|
@@ -42811,7 +42484,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42811
42484
|
|
|
42812
42485
|
if (false) {}
|
|
42813
42486
|
|
|
42814
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42487
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, extends_extends({}, props, {
|
|
42815
42488
|
ref: ref
|
|
42816
42489
|
})), div);
|
|
42817
42490
|
};
|
|
@@ -42841,7 +42514,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42841
42514
|
};
|
|
42842
42515
|
|
|
42843
42516
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42844
|
-
_useRCNotification2 =
|
|
42517
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42845
42518
|
hookNotify = _useRCNotification2[0],
|
|
42846
42519
|
holder = _useRCNotification2[1];
|
|
42847
42520
|
|
|
@@ -43170,7 +42843,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43170
42843
|
};
|
|
43171
42844
|
|
|
43172
42845
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43173
|
-
_useRCNotification2 =
|
|
42846
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43174
42847
|
hookNotify = _useRCNotification2[0],
|
|
43175
42848
|
holder = _useRCNotification2[1];
|
|
43176
42849
|
|
|
@@ -43797,7 +43470,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43797
43470
|
|
|
43798
43471
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43799
43472
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43800
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43473
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43801
43474
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43802
43475
|
actionFn: onCancel,
|
|
43803
43476
|
close: close,
|
|
@@ -43815,7 +43488,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43815
43488
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43816
43489
|
prefixCls: prefixCls,
|
|
43817
43490
|
className: classString,
|
|
43818
|
-
wrapClassName: classnames_default()(
|
|
43491
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43819
43492
|
onCancel: function onCancel() {
|
|
43820
43493
|
return close({
|
|
43821
43494
|
triggerCancel: true
|
|
@@ -43899,7 +43572,7 @@ function getRootPrefixCls() {
|
|
|
43899
43572
|
function confirm_confirm(config) {
|
|
43900
43573
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43901
43574
|
|
|
43902
|
-
var currentConfig =
|
|
43575
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
43903
43576
|
close: close,
|
|
43904
43577
|
visible: true
|
|
43905
43578
|
});
|
|
@@ -43952,7 +43625,7 @@ function confirm_confirm(config) {
|
|
|
43952
43625
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43953
43626
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43954
43627
|
var iconPrefixCls = getIconPrefixCls();
|
|
43955
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43628
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({}, props, {
|
|
43956
43629
|
prefixCls: prefixCls,
|
|
43957
43630
|
rootPrefixCls: rootPrefixCls,
|
|
43958
43631
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43969,7 +43642,7 @@ function confirm_confirm(config) {
|
|
|
43969
43642
|
args[_key2] = arguments[_key2];
|
|
43970
43643
|
}
|
|
43971
43644
|
|
|
43972
|
-
currentConfig =
|
|
43645
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
43973
43646
|
visible: false,
|
|
43974
43647
|
afterClose: function afterClose() {
|
|
43975
43648
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43986,7 +43659,7 @@ function confirm_confirm(config) {
|
|
|
43986
43659
|
if (typeof configUpdate === 'function') {
|
|
43987
43660
|
currentConfig = configUpdate(currentConfig);
|
|
43988
43661
|
} else {
|
|
43989
|
-
currentConfig =
|
|
43662
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
43990
43663
|
}
|
|
43991
43664
|
|
|
43992
43665
|
render(currentConfig);
|
|
@@ -44000,7 +43673,7 @@ function confirm_confirm(config) {
|
|
|
44000
43673
|
};
|
|
44001
43674
|
}
|
|
44002
43675
|
function withWarn(props) {
|
|
44003
|
-
return
|
|
43676
|
+
return extends_extends(extends_extends({
|
|
44004
43677
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44005
43678
|
type: "exclamation-circle"
|
|
44006
43679
|
}),
|
|
@@ -44010,7 +43683,7 @@ function withWarn(props) {
|
|
|
44010
43683
|
});
|
|
44011
43684
|
}
|
|
44012
43685
|
function withInfo(props) {
|
|
44013
|
-
return
|
|
43686
|
+
return extends_extends(extends_extends({
|
|
44014
43687
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44015
43688
|
type: "exclamation-circle"
|
|
44016
43689
|
}),
|
|
@@ -44020,7 +43693,7 @@ function withInfo(props) {
|
|
|
44020
43693
|
});
|
|
44021
43694
|
}
|
|
44022
43695
|
function withSuccess(props) {
|
|
44023
|
-
return
|
|
43696
|
+
return extends_extends(extends_extends({
|
|
44024
43697
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44025
43698
|
type: "check-circle"
|
|
44026
43699
|
}),
|
|
@@ -44030,7 +43703,7 @@ function withSuccess(props) {
|
|
|
44030
43703
|
});
|
|
44031
43704
|
}
|
|
44032
43705
|
function withError(props) {
|
|
44033
|
-
return
|
|
43706
|
+
return extends_extends(extends_extends({
|
|
44034
43707
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44035
43708
|
type: "close-circle"
|
|
44036
43709
|
}),
|
|
@@ -44040,7 +43713,7 @@ function withError(props) {
|
|
|
44040
43713
|
});
|
|
44041
43714
|
}
|
|
44042
43715
|
function withConfirm(props) {
|
|
44043
|
-
return
|
|
43716
|
+
return extends_extends(extends_extends({
|
|
44044
43717
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
44045
43718
|
type: "question-circle"
|
|
44046
43719
|
}),
|
|
@@ -44067,7 +43740,7 @@ function usePatchElement() {
|
|
|
44067
43740
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
44068
43741
|
// append a new element to elements (and create a new ref)
|
|
44069
43742
|
setElements(function (originElements) {
|
|
44070
|
-
return [].concat(
|
|
43743
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
44071
43744
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
44072
43745
|
// it works a little like useEffect
|
|
44073
43746
|
|
|
@@ -44132,7 +43805,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44132
43805
|
destroy: close,
|
|
44133
43806
|
update: function update(newConfig) {
|
|
44134
43807
|
setInnerConfig(function (originConfig) {
|
|
44135
|
-
return
|
|
43808
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44136
43809
|
});
|
|
44137
43810
|
}
|
|
44138
43811
|
};
|
|
@@ -44141,7 +43814,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44141
43814
|
componentName: "Modal",
|
|
44142
43815
|
defaultLocale: locale_default.Modal
|
|
44143
43816
|
}, function (modalLocale) {
|
|
44144
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43817
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44145
43818
|
prefixCls: prefixCls,
|
|
44146
43819
|
rootPrefixCls: rootPrefixCls
|
|
44147
43820
|
}, innerConfig, {
|
|
@@ -44188,7 +43861,7 @@ function useModal() {
|
|
|
44188
43861
|
|
|
44189
43862
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44190
43863
|
if (actionQueue.length) {
|
|
44191
|
-
var cloneQueue =
|
|
43864
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44192
43865
|
|
|
44193
43866
|
cloneQueue.forEach(function (action) {
|
|
44194
43867
|
action();
|
|
@@ -44225,7 +43898,7 @@ function useModal() {
|
|
|
44225
43898
|
destroyAction();
|
|
44226
43899
|
} else {
|
|
44227
43900
|
setActionQueue(function (prev) {
|
|
44228
|
-
return [].concat(
|
|
43901
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44229
43902
|
});
|
|
44230
43903
|
}
|
|
44231
43904
|
},
|
|
@@ -44240,7 +43913,7 @@ function useModal() {
|
|
|
44240
43913
|
updateAction();
|
|
44241
43914
|
} else {
|
|
44242
43915
|
setActionQueue(function (prev) {
|
|
44243
|
-
return [].concat(
|
|
43916
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44244
43917
|
});
|
|
44245
43918
|
}
|
|
44246
43919
|
}
|
|
@@ -44683,44 +44356,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44683
44356
|
|
|
44684
44357
|
|
|
44685
44358
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44686
|
-
function
|
|
44687
|
-
|
|
44359
|
+
function esm_extends_extends() {
|
|
44360
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44688
44361
|
for (var i = 1; i < arguments.length; i++) {
|
|
44689
44362
|
var source = arguments[i];
|
|
44690
|
-
|
|
44691
44363
|
for (var key in source) {
|
|
44692
44364
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44693
44365
|
target[key] = source[key];
|
|
44694
44366
|
}
|
|
44695
44367
|
}
|
|
44696
44368
|
}
|
|
44697
|
-
|
|
44698
44369
|
return target;
|
|
44699
44370
|
};
|
|
44700
|
-
return
|
|
44371
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44701
44372
|
}
|
|
44702
44373
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44703
|
-
function
|
|
44374
|
+
function esm_typeof_typeof(obj) {
|
|
44704
44375
|
"@babel/helpers - typeof";
|
|
44705
44376
|
|
|
44706
|
-
return
|
|
44377
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44707
44378
|
return typeof obj;
|
|
44708
44379
|
} : function (obj) {
|
|
44709
44380
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44710
|
-
},
|
|
44381
|
+
}, esm_typeof_typeof(obj);
|
|
44711
44382
|
}
|
|
44712
44383
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44713
44384
|
|
|
44714
44385
|
function _toPrimitive(input, hint) {
|
|
44715
|
-
if (
|
|
44386
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44716
44387
|
var prim = input[Symbol.toPrimitive];
|
|
44717
|
-
|
|
44718
44388
|
if (prim !== undefined) {
|
|
44719
44389
|
var res = prim.call(input, hint || "default");
|
|
44720
|
-
if (
|
|
44390
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44721
44391
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44722
44392
|
}
|
|
44723
|
-
|
|
44724
44393
|
return (hint === "string" ? String : Number)(input);
|
|
44725
44394
|
}
|
|
44726
44395
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44728,13 +44397,12 @@ function _toPrimitive(input, hint) {
|
|
|
44728
44397
|
|
|
44729
44398
|
function _toPropertyKey(arg) {
|
|
44730
44399
|
var key = _toPrimitive(arg, "string");
|
|
44731
|
-
return
|
|
44400
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44732
44401
|
}
|
|
44733
44402
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44734
44403
|
|
|
44735
|
-
function
|
|
44404
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
44736
44405
|
key = _toPropertyKey(key);
|
|
44737
|
-
|
|
44738
44406
|
if (key in obj) {
|
|
44739
44407
|
Object.defineProperty(obj, key, {
|
|
44740
44408
|
value: value,
|
|
@@ -44745,61 +44413,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
44745
44413
|
} else {
|
|
44746
44414
|
obj[key] = value;
|
|
44747
44415
|
}
|
|
44748
|
-
|
|
44749
44416
|
return obj;
|
|
44750
44417
|
}
|
|
44751
44418
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44752
44419
|
|
|
44753
|
-
|
|
44754
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44420
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44755
44421
|
var keys = Object.keys(object);
|
|
44756
|
-
|
|
44757
44422
|
if (Object.getOwnPropertySymbols) {
|
|
44758
44423
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44759
44424
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44760
44425
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44761
44426
|
})), keys.push.apply(keys, symbols);
|
|
44762
44427
|
}
|
|
44763
|
-
|
|
44764
44428
|
return keys;
|
|
44765
44429
|
}
|
|
44766
|
-
|
|
44767
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44430
|
+
function objectSpread2_objectSpread2(target) {
|
|
44768
44431
|
for (var i = 1; i < arguments.length; i++) {
|
|
44769
44432
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44770
|
-
i % 2 ?
|
|
44771
|
-
|
|
44772
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44433
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44434
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44435
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44773
44436
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44774
44437
|
});
|
|
44775
44438
|
}
|
|
44776
|
-
|
|
44777
44439
|
return target;
|
|
44778
44440
|
}
|
|
44779
44441
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44780
|
-
function
|
|
44442
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44781
44443
|
if (Array.isArray(arr)) return arr;
|
|
44782
44444
|
}
|
|
44783
44445
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44784
|
-
function
|
|
44446
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44785
44447
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44786
|
-
|
|
44787
44448
|
if (null != _i) {
|
|
44788
44449
|
var _s,
|
|
44789
|
-
|
|
44790
|
-
|
|
44791
|
-
|
|
44792
|
-
|
|
44793
|
-
|
|
44794
|
-
|
|
44795
|
-
|
|
44450
|
+
_e,
|
|
44451
|
+
_x,
|
|
44452
|
+
_r,
|
|
44453
|
+
_arr = [],
|
|
44454
|
+
_n = !0,
|
|
44455
|
+
_d = !1;
|
|
44796
44456
|
try {
|
|
44797
44457
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44798
44458
|
if (Object(_i) !== _i) return;
|
|
44799
44459
|
_n = !1;
|
|
44800
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44801
|
-
;
|
|
44802
|
-
}
|
|
44460
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44803
44461
|
} catch (err) {
|
|
44804
44462
|
_d = !0, _e = err;
|
|
44805
44463
|
} finally {
|
|
@@ -44809,32 +44467,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44809
44467
|
if (_d) throw _e;
|
|
44810
44468
|
}
|
|
44811
44469
|
}
|
|
44812
|
-
|
|
44813
44470
|
return _arr;
|
|
44814
44471
|
}
|
|
44815
44472
|
}
|
|
44816
44473
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44817
|
-
function
|
|
44474
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44818
44475
|
if (len == null || len > arr.length) len = arr.length;
|
|
44819
|
-
|
|
44820
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44821
|
-
arr2[i] = arr[i];
|
|
44822
|
-
}
|
|
44823
|
-
|
|
44476
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44824
44477
|
return arr2;
|
|
44825
44478
|
}
|
|
44826
44479
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44827
44480
|
|
|
44828
|
-
function
|
|
44481
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44829
44482
|
if (!o) return;
|
|
44830
|
-
if (typeof o === "string") return
|
|
44483
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44831
44484
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44832
44485
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44833
44486
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44834
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44487
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44835
44488
|
}
|
|
44836
44489
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44837
|
-
function
|
|
44490
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
44838
44491
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44839
44492
|
}
|
|
44840
44493
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44842,34 +44495,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
44842
44495
|
|
|
44843
44496
|
|
|
44844
44497
|
|
|
44845
|
-
function
|
|
44846
|
-
return
|
|
44498
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44499
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
44847
44500
|
}
|
|
44848
44501
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44849
|
-
function
|
|
44502
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44850
44503
|
if (source == null) return {};
|
|
44851
44504
|
var target = {};
|
|
44852
44505
|
var sourceKeys = Object.keys(source);
|
|
44853
44506
|
var key, i;
|
|
44854
|
-
|
|
44855
44507
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44856
44508
|
key = sourceKeys[i];
|
|
44857
44509
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44858
44510
|
target[key] = source[key];
|
|
44859
44511
|
}
|
|
44860
|
-
|
|
44861
44512
|
return target;
|
|
44862
44513
|
}
|
|
44863
44514
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44864
44515
|
|
|
44865
|
-
function
|
|
44516
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44866
44517
|
if (source == null) return {};
|
|
44867
|
-
var target =
|
|
44518
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44868
44519
|
var key, i;
|
|
44869
|
-
|
|
44870
44520
|
if (Object.getOwnPropertySymbols) {
|
|
44871
44521
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44872
|
-
|
|
44873
44522
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44874
44523
|
key = sourceSymbolKeys[i];
|
|
44875
44524
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44877,7 +44526,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44877
44526
|
target[key] = source[key];
|
|
44878
44527
|
}
|
|
44879
44528
|
}
|
|
44880
|
-
|
|
44881
44529
|
return target;
|
|
44882
44530
|
}
|
|
44883
44531
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45825,14 +45473,14 @@ var index = (function () {
|
|
|
45825
45473
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45826
45474
|
|
|
45827
45475
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45828
|
-
|
|
45476
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
45829
45477
|
|
|
45830
|
-
var _super =
|
|
45478
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
45831
45479
|
|
|
45832
45480
|
function ReactResizeObserver() {
|
|
45833
45481
|
var _this;
|
|
45834
45482
|
|
|
45835
|
-
|
|
45483
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
45836
45484
|
|
|
45837
45485
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45838
45486
|
args[_key] = arguments[_key];
|
|
@@ -45883,7 +45531,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45883
45531
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45884
45532
|
|
|
45885
45533
|
Promise.resolve().then(function () {
|
|
45886
|
-
onResize(
|
|
45534
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
45887
45535
|
offsetWidth: mergedOffsetWidth,
|
|
45888
45536
|
offsetHeight: mergedOffsetHeight
|
|
45889
45537
|
}), target);
|
|
@@ -45899,7 +45547,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45899
45547
|
return _this;
|
|
45900
45548
|
}
|
|
45901
45549
|
|
|
45902
|
-
|
|
45550
|
+
_createClass(ReactResizeObserver, [{
|
|
45903
45551
|
key: "componentDidMount",
|
|
45904
45552
|
value: function componentDidMount() {
|
|
45905
45553
|
this.onComponentUpdated();
|
|
@@ -46013,7 +45661,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46013
45661
|
position: 'relative',
|
|
46014
45662
|
overflow: 'hidden'
|
|
46015
45663
|
};
|
|
46016
|
-
innerStyle =
|
|
45664
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
46017
45665
|
transform: "translateY(".concat(offset, "px)"),
|
|
46018
45666
|
position: 'absolute',
|
|
46019
45667
|
left: 0,
|
|
@@ -46030,24 +45678,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
46030
45678
|
onInnerResize();
|
|
46031
45679
|
}
|
|
46032
45680
|
}
|
|
46033
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45681
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46034
45682
|
style: innerStyle,
|
|
46035
|
-
className: classnames_default()(
|
|
45683
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
46036
45684
|
ref: ref
|
|
46037
45685
|
}, innerProps), children)));
|
|
46038
45686
|
});
|
|
46039
45687
|
Filler.displayName = 'Filler';
|
|
46040
45688
|
/* harmony default export */ var es_Filler = (Filler);
|
|
46041
45689
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
46042
|
-
function
|
|
45690
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
46043
45691
|
if (!(instance instanceof Constructor)) {
|
|
46044
45692
|
throw new TypeError("Cannot call a class as a function");
|
|
46045
45693
|
}
|
|
46046
45694
|
}
|
|
46047
45695
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
46048
45696
|
|
|
46049
|
-
|
|
46050
|
-
function esm_createClass_defineProperties(target, props) {
|
|
45697
|
+
function createClass_defineProperties(target, props) {
|
|
46051
45698
|
for (var i = 0; i < props.length; i++) {
|
|
46052
45699
|
var descriptor = props[i];
|
|
46053
45700
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -46056,30 +45703,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
46056
45703
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
46057
45704
|
}
|
|
46058
45705
|
}
|
|
46059
|
-
|
|
46060
|
-
|
|
46061
|
-
if (
|
|
46062
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45706
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
45707
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
45708
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
46063
45709
|
Object.defineProperty(Constructor, "prototype", {
|
|
46064
45710
|
writable: false
|
|
46065
45711
|
});
|
|
46066
45712
|
return Constructor;
|
|
46067
45713
|
}
|
|
46068
45714
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
46069
|
-
function
|
|
46070
|
-
|
|
45715
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
45716
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
46071
45717
|
o.__proto__ = p;
|
|
46072
45718
|
return o;
|
|
46073
45719
|
};
|
|
46074
|
-
return
|
|
45720
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
46075
45721
|
}
|
|
46076
45722
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
46077
45723
|
|
|
46078
|
-
function
|
|
45724
|
+
function inherits_inherits(subClass, superClass) {
|
|
46079
45725
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
46080
45726
|
throw new TypeError("Super expression must either be null or a function");
|
|
46081
45727
|
}
|
|
46082
|
-
|
|
46083
45728
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46084
45729
|
constructor: {
|
|
46085
45730
|
value: subClass,
|
|
@@ -46090,21 +45735,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
46090
45735
|
Object.defineProperty(subClass, "prototype", {
|
|
46091
45736
|
writable: false
|
|
46092
45737
|
});
|
|
46093
|
-
if (superClass)
|
|
45738
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46094
45739
|
}
|
|
46095
45740
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46096
|
-
function
|
|
46097
|
-
|
|
45741
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
45742
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46098
45743
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46099
45744
|
};
|
|
46100
|
-
return
|
|
45745
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46101
45746
|
}
|
|
46102
45747
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46103
|
-
function
|
|
45748
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46104
45749
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46105
45750
|
if (Reflect.construct.sham) return false;
|
|
46106
45751
|
if (typeof Proxy === "function") return true;
|
|
46107
|
-
|
|
46108
45752
|
try {
|
|
46109
45753
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46110
45754
|
return true;
|
|
@@ -46113,43 +45757,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46113
45757
|
}
|
|
46114
45758
|
}
|
|
46115
45759
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46116
|
-
function
|
|
45760
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46117
45761
|
if (self === void 0) {
|
|
46118
45762
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46119
45763
|
}
|
|
46120
|
-
|
|
46121
45764
|
return self;
|
|
46122
45765
|
}
|
|
46123
45766
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46124
45767
|
|
|
46125
45768
|
|
|
46126
|
-
function
|
|
46127
|
-
if (call && (
|
|
45769
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
45770
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46128
45771
|
return call;
|
|
46129
45772
|
} else if (call !== void 0) {
|
|
46130
45773
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46131
45774
|
}
|
|
46132
|
-
|
|
46133
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45775
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46134
45776
|
}
|
|
46135
45777
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46136
45778
|
|
|
46137
45779
|
|
|
46138
45780
|
|
|
46139
|
-
function
|
|
46140
|
-
var hasNativeReflectConstruct =
|
|
45781
|
+
function createSuper_createSuper(Derived) {
|
|
45782
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46141
45783
|
return function _createSuperInternal() {
|
|
46142
|
-
var Super =
|
|
46143
|
-
|
|
46144
|
-
|
|
45784
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
45785
|
+
result;
|
|
46145
45786
|
if (hasNativeReflectConstruct) {
|
|
46146
|
-
var NewTarget =
|
|
45787
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46147
45788
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46148
45789
|
} else {
|
|
46149
45790
|
result = Super.apply(this, arguments);
|
|
46150
45791
|
}
|
|
46151
|
-
|
|
46152
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45792
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46153
45793
|
};
|
|
46154
45794
|
}
|
|
46155
45795
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46224,11 +45864,11 @@ function getPageY(e) {
|
|
|
46224
45864
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46225
45865
|
}
|
|
46226
45866
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46227
|
-
|
|
46228
|
-
var _super =
|
|
45867
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
45868
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46229
45869
|
function ScrollBar() {
|
|
46230
45870
|
var _this;
|
|
46231
|
-
|
|
45871
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46232
45872
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46233
45873
|
args[_key] = arguments[_key];
|
|
46234
45874
|
}
|
|
@@ -46356,7 +45996,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46356
45996
|
};
|
|
46357
45997
|
return _this;
|
|
46358
45998
|
}
|
|
46359
|
-
|
|
45999
|
+
createClass_createClass(ScrollBar, [{
|
|
46360
46000
|
key: "componentDidMount",
|
|
46361
46001
|
value: function componentDidMount() {
|
|
46362
46002
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46390,7 +46030,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46390
46030
|
var mergedVisible = canScroll && visible;
|
|
46391
46031
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46392
46032
|
ref: this.scrollbarRef,
|
|
46393
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46033
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46394
46034
|
style: {
|
|
46395
46035
|
width: 8,
|
|
46396
46036
|
top: 0,
|
|
@@ -46403,7 +46043,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46403
46043
|
onMouseMove: this.delayHidden
|
|
46404
46044
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46405
46045
|
ref: this.thumbRef,
|
|
46406
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46046
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46407
46047
|
style: {
|
|
46408
46048
|
width: '100%',
|
|
46409
46049
|
height: spinHeight,
|
|
@@ -46482,11 +46122,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46482
46122
|
// Firefox has low performance of map.
|
|
46483
46123
|
var CacheMap = /*#__PURE__*/function () {
|
|
46484
46124
|
function CacheMap() {
|
|
46485
|
-
|
|
46125
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46486
46126
|
this.maps = void 0;
|
|
46487
46127
|
this.maps = Object.create(null);
|
|
46488
46128
|
}
|
|
46489
|
-
|
|
46129
|
+
createClass_createClass(CacheMap, [{
|
|
46490
46130
|
key: "set",
|
|
46491
46131
|
value: function set(key, value) {
|
|
46492
46132
|
this.maps[key] = value;
|
|
@@ -46509,7 +46149,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46509
46149
|
|
|
46510
46150
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46511
46151
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46512
|
-
_React$useState2 =
|
|
46152
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46513
46153
|
updatedMark = _React$useState2[0],
|
|
46514
46154
|
setUpdatedMark = _React$useState2[1];
|
|
46515
46155
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46576,7 +46216,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46576
46216
|
es_raf.cancel(scrollRef.current);
|
|
46577
46217
|
if (typeof arg === 'number') {
|
|
46578
46218
|
syncScrollTop(arg);
|
|
46579
|
-
} else if (arg &&
|
|
46219
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46580
46220
|
var index;
|
|
46581
46221
|
var align = arg.align;
|
|
46582
46222
|
if ('index' in arg) {
|
|
@@ -46732,11 +46372,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46732
46372
|
|
|
46733
46373
|
function useDiffItem(data, getKey, onDiff) {
|
|
46734
46374
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46735
|
-
_React$useState2 =
|
|
46375
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46736
46376
|
prevData = _React$useState2[0],
|
|
46737
46377
|
setPrevData = _React$useState2[1];
|
|
46738
46378
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46739
|
-
_React$useState4 =
|
|
46379
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46740
46380
|
diffItem = _React$useState4[0],
|
|
46741
46381
|
setDiffItem = _React$useState4[1];
|
|
46742
46382
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46751,7 +46391,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46751
46391
|
}
|
|
46752
46392
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46753
46393
|
|
|
46754
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46394
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46755
46395
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46756
46396
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46757
46397
|
|
|
@@ -46970,16 +46610,16 @@ function RawList(props, ref) {
|
|
|
46970
46610
|
onScroll = props.onScroll,
|
|
46971
46611
|
onVisibleChange = props.onVisibleChange,
|
|
46972
46612
|
innerProps = props.innerProps,
|
|
46973
|
-
restProps =
|
|
46613
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46974
46614
|
// ================================= MISC =================================
|
|
46975
46615
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46976
46616
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46977
46617
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46978
|
-
_useState2 =
|
|
46618
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46979
46619
|
scrollTop = _useState2[0],
|
|
46980
46620
|
setScrollTop = _useState2[1];
|
|
46981
46621
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46982
|
-
_useState4 =
|
|
46622
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46983
46623
|
scrollMoving = _useState4[0],
|
|
46984
46624
|
setScrollMoving = _useState4[1];
|
|
46985
46625
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -47019,12 +46659,12 @@ function RawList(props, ref) {
|
|
|
47019
46659
|
});
|
|
47020
46660
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
47021
46661
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
47022
|
-
_useDiffItem2 =
|
|
46662
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
47023
46663
|
diffItem = _useDiffItem2[0];
|
|
47024
46664
|
diffItemRef.current = diffItem;
|
|
47025
46665
|
// ================================ Height ================================
|
|
47026
46666
|
var _useHeights = useHeights(getKey, null, null),
|
|
47027
|
-
_useHeights2 =
|
|
46667
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
47028
46668
|
setInstanceRef = _useHeights2[0],
|
|
47029
46669
|
collectHeight = _useHeights2[1],
|
|
47030
46670
|
heights = _useHeights2[2],
|
|
@@ -47130,7 +46770,7 @@ function RawList(props, ref) {
|
|
|
47130
46770
|
return newTop;
|
|
47131
46771
|
});
|
|
47132
46772
|
}),
|
|
47133
|
-
_useFrameWheel2 =
|
|
46773
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47134
46774
|
onRawWheel = _useFrameWheel2[0],
|
|
47135
46775
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47136
46776
|
// Mobile touch move
|
|
@@ -47184,7 +46824,7 @@ function RawList(props, ref) {
|
|
|
47184
46824
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47185
46825
|
var componentStyle = null;
|
|
47186
46826
|
if (height) {
|
|
47187
|
-
componentStyle =
|
|
46827
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47188
46828
|
if (useVirtual) {
|
|
47189
46829
|
componentStyle.overflowY = 'hidden';
|
|
47190
46830
|
if (scrollMoving) {
|
|
@@ -47192,8 +46832,8 @@ function RawList(props, ref) {
|
|
|
47192
46832
|
}
|
|
47193
46833
|
}
|
|
47194
46834
|
}
|
|
47195
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47196
|
-
style:
|
|
46835
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46836
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47197
46837
|
position: 'relative'
|
|
47198
46838
|
}),
|
|
47199
46839
|
className: mergedClassName
|
|
@@ -47339,7 +46979,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47339
46979
|
return values;
|
|
47340
46980
|
}
|
|
47341
46981
|
function removeLastEnabledValue(measureValues, values) {
|
|
47342
|
-
var newValues =
|
|
46982
|
+
var newValues = _toConsumableArray(values);
|
|
47343
46983
|
|
|
47344
46984
|
var removeIndex;
|
|
47345
46985
|
|
|
@@ -47473,7 +47113,7 @@ function flattenOptions(options) {
|
|
|
47473
47113
|
*/
|
|
47474
47114
|
|
|
47475
47115
|
function injectPropsWithOption(option) {
|
|
47476
|
-
var newOption =
|
|
47116
|
+
var newOption = _objectSpread2({}, option);
|
|
47477
47117
|
|
|
47478
47118
|
if (!('props' in newOption)) {
|
|
47479
47119
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47507,7 +47147,7 @@ function findValueOption(values, options) {
|
|
|
47507
47147
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47508
47148
|
|
|
47509
47149
|
if (!option) {
|
|
47510
|
-
option =
|
|
47150
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47511
47151
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47512
47152
|
}));
|
|
47513
47153
|
}
|
|
@@ -47526,7 +47166,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47526
47166
|
};
|
|
47527
47167
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47528
47168
|
|
|
47529
|
-
if (prevValItem &&
|
|
47169
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47530
47170
|
result.label = prevValItem.label;
|
|
47531
47171
|
|
|
47532
47172
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47574,7 +47214,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47574
47214
|
var filterFunc;
|
|
47575
47215
|
|
|
47576
47216
|
if (filterOption === false) {
|
|
47577
|
-
return
|
|
47217
|
+
return _toConsumableArray(options);
|
|
47578
47218
|
}
|
|
47579
47219
|
|
|
47580
47220
|
if (typeof filterOption === 'function') {
|
|
@@ -47598,7 +47238,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47598
47238
|
});
|
|
47599
47239
|
|
|
47600
47240
|
if (subOptions.length) {
|
|
47601
|
-
filteredOptions.push(
|
|
47241
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47602
47242
|
options: subOptions
|
|
47603
47243
|
}));
|
|
47604
47244
|
}
|
|
@@ -47632,7 +47272,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47632
47272
|
var list = str.split(token);
|
|
47633
47273
|
match = match || list.length > 1;
|
|
47634
47274
|
return list.reduce(function (prevList, unitStr) {
|
|
47635
|
-
return [].concat(
|
|
47275
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47636
47276
|
}, []).filter(function (unit) {
|
|
47637
47277
|
return unit;
|
|
47638
47278
|
});
|
|
@@ -47652,7 +47292,7 @@ function isValueDisabled(value, options) {
|
|
|
47652
47292
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47653
47293
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47654
47294
|
|
|
47655
|
-
var cloneOptions =
|
|
47295
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47656
47296
|
|
|
47657
47297
|
|
|
47658
47298
|
var optionValues = new Set();
|
|
@@ -47672,7 +47312,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47672
47312
|
if (!optionValues.has(val)) {
|
|
47673
47313
|
var _ref9;
|
|
47674
47314
|
|
|
47675
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47315
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47676
47316
|
value: val
|
|
47677
47317
|
});
|
|
47678
47318
|
}
|
|
@@ -47938,7 +47578,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47938
47578
|
children = itemData.children;
|
|
47939
47579
|
var attrs = pickAttrs(itemData, true);
|
|
47940
47580
|
var mergedLabel = childrenAsData ? children : label;
|
|
47941
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47581
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
47942
47582
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47943
47583
|
}, attrs, {
|
|
47944
47584
|
key: index,
|
|
@@ -47988,13 +47628,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47988
47628
|
children = data.children,
|
|
47989
47629
|
style = data.style,
|
|
47990
47630
|
className = data.className,
|
|
47991
|
-
otherProps =
|
|
47631
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
47992
47632
|
|
|
47993
47633
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47994
47634
|
|
|
47995
47635
|
var selected = values.has(value);
|
|
47996
47636
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47997
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47637
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
47998
47638
|
var mergedLabel = childrenAsData ? children : label;
|
|
47999
47639
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
48000
47640
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -48005,7 +47645,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
48005
47645
|
optionTitle = title;
|
|
48006
47646
|
}
|
|
48007
47647
|
|
|
48008
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47648
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
48009
47649
|
"aria-selected": selected,
|
|
48010
47650
|
className: optionClassName,
|
|
48011
47651
|
title: optionTitle,
|
|
@@ -48066,9 +47706,9 @@ function convertNodeToOption(node) {
|
|
|
48066
47706
|
_node$props = node.props,
|
|
48067
47707
|
children = _node$props.children,
|
|
48068
47708
|
value = _node$props.value,
|
|
48069
|
-
restProps =
|
|
47709
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
48070
47710
|
|
|
48071
|
-
return
|
|
47711
|
+
return _objectSpread2({
|
|
48072
47712
|
key: key,
|
|
48073
47713
|
value: value !== undefined ? value : key,
|
|
48074
47714
|
children: children
|
|
@@ -48086,13 +47726,13 @@ function convertChildrenToData(nodes) {
|
|
|
48086
47726
|
key = node.key,
|
|
48087
47727
|
_node$props2 = node.props,
|
|
48088
47728
|
children = _node$props2.children,
|
|
48089
|
-
restProps =
|
|
47729
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
48090
47730
|
|
|
48091
47731
|
if (optionOnly || !isSelectOptGroup) {
|
|
48092
47732
|
return convertNodeToOption(node);
|
|
48093
47733
|
}
|
|
48094
47734
|
|
|
48095
|
-
return
|
|
47735
|
+
return _objectSpread2(_objectSpread2({
|
|
48096
47736
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48097
47737
|
label: key
|
|
48098
47738
|
}, restProps), {}, {
|
|
@@ -48194,7 +47834,7 @@ function InternalItem(props, ref) {
|
|
|
48194
47834
|
order = props.order,
|
|
48195
47835
|
_props$component = props.component,
|
|
48196
47836
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48197
|
-
restProps =
|
|
47837
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48198
47838
|
|
|
48199
47839
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48200
47840
|
|
|
@@ -48228,9 +47868,9 @@ function InternalItem(props, ref) {
|
|
|
48228
47868
|
overflowProps['aria-hidden'] = true;
|
|
48229
47869
|
}
|
|
48230
47870
|
|
|
48231
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47871
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48232
47872
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48233
|
-
style:
|
|
47873
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48234
47874
|
}, overflowProps, restProps, {
|
|
48235
47875
|
ref: ref
|
|
48236
47876
|
}), childNode);
|
|
@@ -48315,23 +47955,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48315
47955
|
if (!context) {
|
|
48316
47956
|
var _props$component = props.component,
|
|
48317
47957
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48318
|
-
_restProps =
|
|
47958
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48319
47959
|
|
|
48320
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47960
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48321
47961
|
ref: ref
|
|
48322
47962
|
}));
|
|
48323
47963
|
}
|
|
48324
47964
|
|
|
48325
47965
|
var contextClassName = context.className,
|
|
48326
|
-
restContext =
|
|
47966
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48327
47967
|
|
|
48328
47968
|
var className = props.className,
|
|
48329
|
-
restProps =
|
|
47969
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48330
47970
|
|
|
48331
47971
|
|
|
48332
47972
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48333
47973
|
value: null
|
|
48334
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
47974
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48335
47975
|
ref: ref,
|
|
48336
47976
|
className: classnames_default()(contextClassName, className)
|
|
48337
47977
|
}, restContext, restProps)));
|
|
@@ -48381,7 +48021,7 @@ function Overflow(props, ref) {
|
|
|
48381
48021
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48382
48022
|
itemComponent = props.itemComponent,
|
|
48383
48023
|
onVisibleChange = props.onVisibleChange,
|
|
48384
|
-
restProps =
|
|
48024
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48385
48025
|
|
|
48386
48026
|
var createUseState = useBatchFrameState();
|
|
48387
48027
|
var fullySSR = ssr === 'full';
|
|
@@ -48591,7 +48231,7 @@ function Overflow(props, ref) {
|
|
|
48591
48231
|
var key = getKey(item, index);
|
|
48592
48232
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48593
48233
|
key: key,
|
|
48594
|
-
value:
|
|
48234
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48595
48235
|
order: index,
|
|
48596
48236
|
item: item,
|
|
48597
48237
|
itemKey: key,
|
|
@@ -48601,7 +48241,7 @@ function Overflow(props, ref) {
|
|
|
48601
48241
|
}, renderRawItem(item, index));
|
|
48602
48242
|
} : function (item, index) {
|
|
48603
48243
|
var key = getKey(item, index);
|
|
48604
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48244
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48605
48245
|
order: index,
|
|
48606
48246
|
key: key,
|
|
48607
48247
|
item: item,
|
|
@@ -48622,18 +48262,18 @@ function Overflow(props, ref) {
|
|
|
48622
48262
|
|
|
48623
48263
|
if (!renderRawRest) {
|
|
48624
48264
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48625
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48265
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48626
48266
|
} else if (renderRawRest) {
|
|
48627
48267
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48628
|
-
value:
|
|
48268
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48629
48269
|
}, renderRawRest(omittedItems));
|
|
48630
48270
|
}
|
|
48631
48271
|
|
|
48632
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48272
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48633
48273
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48634
48274
|
style: style,
|
|
48635
48275
|
ref: ref
|
|
48636
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48276
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48637
48277
|
order: mergedDisplayCount,
|
|
48638
48278
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48639
48279
|
registerSize: registerSuffixSize,
|
|
@@ -48698,7 +48338,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48698
48338
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48699
48339
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48700
48340
|
style = _inputNode$props.style;
|
|
48701
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48341
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
48702
48342
|
id: id,
|
|
48703
48343
|
ref: composeRef(ref, originRef),
|
|
48704
48344
|
disabled: disabled,
|
|
@@ -48707,7 +48347,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48707
48347
|
type: 'search',
|
|
48708
48348
|
autoFocus: autoFocus,
|
|
48709
48349
|
className: classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
48710
|
-
style:
|
|
48350
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
48711
48351
|
opacity: editable ? null : 0
|
|
48712
48352
|
}),
|
|
48713
48353
|
role: 'combobox',
|
|
@@ -48855,7 +48495,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48855
48495
|
|
|
48856
48496
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48857
48497
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48858
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48498
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48859
48499
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48860
48500
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48861
48501
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49270,7 +48910,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49270
48910
|
onInputCompositionStart: onInputCompositionStart,
|
|
49271
48911
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49272
48912
|
};
|
|
49273
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
48913
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, extends_extends({}, props, sharedProps));
|
|
49274
48914
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49275
48915
|
ref: domRef,
|
|
49276
48916
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49315,7 +48955,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49315
48955
|
|
|
49316
48956
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49317
48957
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49318
|
-
return
|
|
48958
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49319
48959
|
}
|
|
49320
48960
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49321
48961
|
var points = align.points;
|
|
@@ -49379,7 +49019,7 @@ function Mask_Mask(props) {
|
|
|
49379
49019
|
var motion = {};
|
|
49380
49020
|
|
|
49381
49021
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49382
|
-
motion =
|
|
49022
|
+
motion = _objectSpread2({
|
|
49383
49023
|
motionAppear: true
|
|
49384
49024
|
}, getMotion({
|
|
49385
49025
|
motion: maskMotion,
|
|
@@ -49389,7 +49029,7 @@ function Mask_Mask(props) {
|
|
|
49389
49029
|
}));
|
|
49390
49030
|
}
|
|
49391
49031
|
|
|
49392
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49032
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49393
49033
|
visible: visible,
|
|
49394
49034
|
removeOnLeave: true
|
|
49395
49035
|
}), function (_ref) {
|
|
@@ -50901,7 +50541,7 @@ function getElement(func) {
|
|
|
50901
50541
|
}
|
|
50902
50542
|
|
|
50903
50543
|
function getPoint(point) {
|
|
50904
|
-
if (
|
|
50544
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
50905
50545
|
return point;
|
|
50906
50546
|
}
|
|
50907
50547
|
|
|
@@ -51115,9 +50755,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51115
50755
|
}
|
|
51116
50756
|
|
|
51117
50757
|
if (status) {
|
|
51118
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
50758
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51119
50759
|
var index, nextStatus;
|
|
51120
|
-
return
|
|
50760
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51121
50761
|
while (1) {
|
|
51122
50762
|
switch (_context.prev = _context.next) {
|
|
51123
50763
|
case 0:
|
|
@@ -51290,7 +50930,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51290
50930
|
} // ======================== Motion ========================
|
|
51291
50931
|
|
|
51292
50932
|
|
|
51293
|
-
var motion =
|
|
50933
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51294
50934
|
|
|
51295
50935
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51296
50936
|
var originHandler = motion[eventName];
|
|
@@ -51323,7 +50963,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51323
50963
|
};
|
|
51324
50964
|
}); // ======================== Render ========================
|
|
51325
50965
|
|
|
51326
|
-
var mergedStyle =
|
|
50966
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51327
50967
|
zIndex: zIndex,
|
|
51328
50968
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51329
50969
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51344,7 +50984,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51344
50984
|
}, children);
|
|
51345
50985
|
}
|
|
51346
50986
|
|
|
51347
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
50987
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51348
50988
|
visible: visible,
|
|
51349
50989
|
ref: elementRef,
|
|
51350
50990
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51372,7 +51012,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51372
51012
|
onMouseLeave: onMouseLeave,
|
|
51373
51013
|
onMouseDownCapture: onMouseDown,
|
|
51374
51014
|
onTouchStartCapture: onTouchStart,
|
|
51375
|
-
style:
|
|
51015
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51376
51016
|
}, childNode));
|
|
51377
51017
|
});
|
|
51378
51018
|
});
|
|
@@ -51407,7 +51047,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51407
51047
|
};
|
|
51408
51048
|
}); // ======================== Render ========================
|
|
51409
51049
|
|
|
51410
|
-
var mergedStyle =
|
|
51050
|
+
var mergedStyle = _objectSpread2({
|
|
51411
51051
|
zIndex: zIndex
|
|
51412
51052
|
}, popupStyle);
|
|
51413
51053
|
|
|
@@ -51424,7 +51064,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51424
51064
|
childNode = popupRender(childNode);
|
|
51425
51065
|
}
|
|
51426
51066
|
|
|
51427
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51067
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51428
51068
|
visible: visible,
|
|
51429
51069
|
ref: elementRef,
|
|
51430
51070
|
removeOnLeave: true
|
|
@@ -51435,7 +51075,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51435
51075
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51436
51076
|
ref: motionRef,
|
|
51437
51077
|
className: mergedClassName,
|
|
51438
|
-
style:
|
|
51078
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51439
51079
|
}, childNode);
|
|
51440
51080
|
});
|
|
51441
51081
|
});
|
|
@@ -51456,7 +51096,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51456
51096
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51457
51097
|
var visible = _ref.visible,
|
|
51458
51098
|
mobile = _ref.mobile,
|
|
51459
|
-
props =
|
|
51099
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51460
51100
|
|
|
51461
51101
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51462
51102
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51468,7 +51108,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51468
51108
|
inMobile = _useState4[0],
|
|
51469
51109
|
setInMobile = _useState4[1];
|
|
51470
51110
|
|
|
51471
|
-
var cloneProps =
|
|
51111
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51472
51112
|
visible: innerVisible
|
|
51473
51113
|
}); // We check mobile in visible changed here.
|
|
51474
51114
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51481,10 +51121,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51481
51121
|
setInMobile(isMobile());
|
|
51482
51122
|
}
|
|
51483
51123
|
}, [visible, mobile]);
|
|
51484
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51124
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51485
51125
|
mobile: mobile,
|
|
51486
51126
|
ref: ref
|
|
51487
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51127
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51488
51128
|
ref: ref
|
|
51489
51129
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51490
51130
|
|
|
@@ -51538,14 +51178,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51538
51178
|
|
|
51539
51179
|
function generateTrigger(PortalComponent) {
|
|
51540
51180
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51541
|
-
|
|
51181
|
+
_inherits(Trigger, _React$Component);
|
|
51542
51182
|
|
|
51543
|
-
var _super =
|
|
51183
|
+
var _super = _createSuper(Trigger);
|
|
51544
51184
|
|
|
51545
51185
|
function Trigger(props) {
|
|
51546
51186
|
var _this;
|
|
51547
51187
|
|
|
51548
|
-
|
|
51188
|
+
_classCallCheck(this, Trigger);
|
|
51549
51189
|
|
|
51550
51190
|
_this = _super.call(this, props);
|
|
51551
51191
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51733,7 +51373,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51733
51373
|
} catch (err) {// Do nothing
|
|
51734
51374
|
}
|
|
51735
51375
|
|
|
51736
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51376
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
51737
51377
|
};
|
|
51738
51378
|
|
|
51739
51379
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51794,7 +51434,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51794
51434
|
|
|
51795
51435
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51796
51436
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51797
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51437
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
51798
51438
|
prefixCls: prefixCls,
|
|
51799
51439
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51800
51440
|
visible: popupVisible,
|
|
@@ -51907,7 +51547,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51907
51547
|
return _this;
|
|
51908
51548
|
}
|
|
51909
51549
|
|
|
51910
|
-
|
|
51550
|
+
_createClass(Trigger, [{
|
|
51911
51551
|
key: "componentDidMount",
|
|
51912
51552
|
value: function componentDidMount() {
|
|
51913
51553
|
this.componentDidUpdate();
|
|
@@ -52232,7 +51872,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52232
51872
|
newChildProps.className = childrenClassName;
|
|
52233
51873
|
}
|
|
52234
51874
|
|
|
52235
|
-
var cloneProps =
|
|
51875
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52236
51876
|
|
|
52237
51877
|
if (supportRef(child)) {
|
|
52238
51878
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52373,7 +52013,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52373
52013
|
empty = props.empty,
|
|
52374
52014
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52375
52015
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52376
|
-
restProps =
|
|
52016
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52377
52017
|
|
|
52378
52018
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52379
52019
|
var popupNode = popupElement;
|
|
@@ -52397,7 +52037,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52397
52037
|
};
|
|
52398
52038
|
});
|
|
52399
52039
|
|
|
52400
|
-
var popupStyle =
|
|
52040
|
+
var popupStyle = _objectSpread2({
|
|
52401
52041
|
minWidth: containerWidth
|
|
52402
52042
|
}, dropdownStyle);
|
|
52403
52043
|
|
|
@@ -52407,7 +52047,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52407
52047
|
popupStyle.width = containerWidth;
|
|
52408
52048
|
}
|
|
52409
52049
|
|
|
52410
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52050
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52411
52051
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52412
52052
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52413
52053
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52420,7 +52060,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52420
52060
|
popupAlign: dropdownAlign,
|
|
52421
52061
|
popupVisible: visible,
|
|
52422
52062
|
getPopupContainer: getPopupContainer,
|
|
52423
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52063
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52424
52064
|
popupStyle: popupStyle,
|
|
52425
52065
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52426
52066
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52523,7 +52163,7 @@ function useCacheDisplayValue(values) {
|
|
|
52523
52163
|
var cacheLabel = valueLabels.get(item.value);
|
|
52524
52164
|
|
|
52525
52165
|
if (item.isCacheable && cacheLabel) {
|
|
52526
|
-
return
|
|
52166
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52527
52167
|
label: cacheLabel
|
|
52528
52168
|
});
|
|
52529
52169
|
}
|
|
@@ -52685,7 +52325,7 @@ function generateSelector(config) {
|
|
|
52685
52325
|
onClear = props.onClear,
|
|
52686
52326
|
_props$internalProps = props.internalProps,
|
|
52687
52327
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52688
|
-
restProps =
|
|
52328
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52689
52329
|
|
|
52690
52330
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52691
52331
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52823,7 +52463,7 @@ function generateSelector(config) {
|
|
|
52823
52463
|
|
|
52824
52464
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52825
52465
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52826
|
-
return
|
|
52466
|
+
return _toConsumableArray(mergedOptions);
|
|
52827
52467
|
}
|
|
52828
52468
|
|
|
52829
52469
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52844,7 +52484,7 @@ function generateSelector(config) {
|
|
|
52844
52484
|
}
|
|
52845
52485
|
|
|
52846
52486
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52847
|
-
return
|
|
52487
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
52848
52488
|
}
|
|
52849
52489
|
|
|
52850
52490
|
return filteredOptions;
|
|
@@ -52867,7 +52507,7 @@ function generateSelector(config) {
|
|
|
52867
52507
|
labelInValue: mergedLabelInValue,
|
|
52868
52508
|
optionLabelProp: mergedOptionLabelProp
|
|
52869
52509
|
});
|
|
52870
|
-
return
|
|
52510
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
52871
52511
|
disabled: isValueDisabled(val, valueOptions)
|
|
52872
52512
|
});
|
|
52873
52513
|
});
|
|
@@ -52941,7 +52581,7 @@ function generateSelector(config) {
|
|
|
52941
52581
|
}); // We will cache option in case it removed by ajax
|
|
52942
52582
|
|
|
52943
52583
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52944
|
-
var clone =
|
|
52584
|
+
var clone = _objectSpread2({}, option);
|
|
52945
52585
|
|
|
52946
52586
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52947
52587
|
get: function get() {
|
|
@@ -52997,13 +52637,13 @@ function generateSelector(config) {
|
|
|
52997
52637
|
};
|
|
52998
52638
|
|
|
52999
52639
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
53000
|
-
onInternalSelect(newValue,
|
|
52640
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53001
52641
|
source: 'option'
|
|
53002
52642
|
}));
|
|
53003
52643
|
};
|
|
53004
52644
|
|
|
53005
52645
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
53006
|
-
onInternalSelect(newValue,
|
|
52646
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
53007
52647
|
source: 'selection'
|
|
53008
52648
|
}));
|
|
53009
52649
|
}; // ============================= Input ==============================
|
|
@@ -53087,7 +52727,7 @@ function generateSelector(config) {
|
|
|
53087
52727
|
});
|
|
53088
52728
|
}
|
|
53089
52729
|
|
|
53090
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52730
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53091
52731
|
triggerChange(newRawValues);
|
|
53092
52732
|
newRawValues.forEach(function (newRawValue) {
|
|
53093
52733
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53116,7 +52756,7 @@ function generateSelector(config) {
|
|
|
53116
52756
|
return;
|
|
53117
52757
|
}
|
|
53118
52758
|
|
|
53119
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52759
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53120
52760
|
triggerChange(newRawValues);
|
|
53121
52761
|
newRawValues.forEach(function (newRawValue) {
|
|
53122
52762
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53249,7 +52889,7 @@ function generateSelector(config) {
|
|
|
53249
52889
|
// `tags` mode should move `searchValue` into values
|
|
53250
52890
|
if (mode === 'tags') {
|
|
53251
52891
|
triggerSearch('', false, false);
|
|
53252
|
-
triggerChange(Array.from(new Set([].concat(
|
|
52892
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53253
52893
|
} else if (mode === 'multiple') {
|
|
53254
52894
|
// `multiple` mode only clean the search value but not trigger event
|
|
53255
52895
|
setInnerSearchValue('');
|
|
@@ -53407,7 +53047,7 @@ function generateSelector(config) {
|
|
|
53407
53047
|
|
|
53408
53048
|
if (mergedShowArrow) {
|
|
53409
53049
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53410
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53050
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53411
53051
|
customizeIcon: inputIcon,
|
|
53412
53052
|
customizeIconProps: {
|
|
53413
53053
|
loading: loading,
|
|
@@ -53423,7 +53063,7 @@ function generateSelector(config) {
|
|
|
53423
53063
|
if (false) {} // ============================= Render =============================
|
|
53424
53064
|
|
|
53425
53065
|
|
|
53426
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53066
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53427
53067
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53428
53068
|
ref: triggerRef,
|
|
53429
53069
|
disabled: disabled,
|
|
@@ -53448,7 +53088,7 @@ function generateSelector(config) {
|
|
|
53448
53088
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53449
53089
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53450
53090
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53451
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53091
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53452
53092
|
domRef: selectorDomRef,
|
|
53453
53093
|
prefixCls: prefixCls,
|
|
53454
53094
|
inputElement: customizeInputElement,
|
|
@@ -53474,7 +53114,7 @@ function generateSelector(config) {
|
|
|
53474
53114
|
return selectorNode;
|
|
53475
53115
|
}
|
|
53476
53116
|
|
|
53477
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53117
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53478
53118
|
className: mergedClassName
|
|
53479
53119
|
}, domProps, {
|
|
53480
53120
|
ref: containerRef,
|
|
@@ -53561,7 +53201,7 @@ function warningProps(props) {
|
|
|
53561
53201
|
if (value !== undefined && value !== null) {
|
|
53562
53202
|
var values = commonUtil_toArray(value);
|
|
53563
53203
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53564
|
-
return
|
|
53204
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53565
53205
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53566
53206
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53567
53207
|
} // Syntactic sugar should use correct children type
|
|
@@ -53675,14 +53315,14 @@ var RefSelect = generateSelector({
|
|
|
53675
53315
|
*/
|
|
53676
53316
|
|
|
53677
53317
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53678
|
-
|
|
53318
|
+
_inherits(Select, _React$Component);
|
|
53679
53319
|
|
|
53680
|
-
var _super =
|
|
53320
|
+
var _super = _createSuper(Select);
|
|
53681
53321
|
|
|
53682
53322
|
function Select() {
|
|
53683
53323
|
var _this;
|
|
53684
53324
|
|
|
53685
|
-
|
|
53325
|
+
_classCallCheck(this, Select);
|
|
53686
53326
|
|
|
53687
53327
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53688
53328
|
args[_key] = arguments[_key];
|
|
@@ -53702,10 +53342,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53702
53342
|
return _this;
|
|
53703
53343
|
}
|
|
53704
53344
|
|
|
53705
|
-
|
|
53345
|
+
_createClass(Select, [{
|
|
53706
53346
|
key: "render",
|
|
53707
53347
|
value: function render() {
|
|
53708
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53348
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53709
53349
|
ref: this.selectRef
|
|
53710
53350
|
}, this.props));
|
|
53711
53351
|
}
|
|
@@ -56049,7 +55689,7 @@ function TabNode(_ref, ref) {
|
|
|
56049
55689
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
56050
55690
|
key: key,
|
|
56051
55691
|
ref: ref,
|
|
56052
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
55692
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), _defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), _defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
56053
55693
|
style: style,
|
|
56054
55694
|
onClick: onInternalClick
|
|
56055
55695
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -56112,7 +55752,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
56112
55752
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
56113
55753
|
}
|
|
56114
55754
|
|
|
56115
|
-
var entity = map.get(key) ||
|
|
55755
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
56116
55756
|
|
|
56117
55757
|
|
|
56118
55758
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56207,7 +55847,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56207
55847
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56208
55848
|
|
|
56209
55849
|
function mergeProps(origin, target) {
|
|
56210
|
-
var clone =
|
|
55850
|
+
var clone = _objectSpread2({}, origin);
|
|
56211
55851
|
|
|
56212
55852
|
Object.keys(target).forEach(function (key) {
|
|
56213
55853
|
var value = target[key];
|
|
@@ -56222,7 +55862,7 @@ function mergeProps(origin, target) {
|
|
|
56222
55862
|
function InheritableContextProvider(_ref) {
|
|
56223
55863
|
var children = _ref.children,
|
|
56224
55864
|
locked = _ref.locked,
|
|
56225
|
-
restProps =
|
|
55865
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56226
55866
|
|
|
56227
55867
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56228
55868
|
var inheritableContext = useMemo(function () {
|
|
@@ -56278,7 +55918,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56278
55918
|
|
|
56279
55919
|
function warnItemProp(_ref) {
|
|
56280
55920
|
var item = _ref.item,
|
|
56281
|
-
restInfo =
|
|
55921
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56282
55922
|
|
|
56283
55923
|
Object.defineProperty(restInfo, 'item', {
|
|
56284
55924
|
get: function get() {
|
|
@@ -56298,7 +55938,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56298
55938
|
var iconNode;
|
|
56299
55939
|
|
|
56300
55940
|
if (typeof icon === 'function') {
|
|
56301
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
55941
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56302
55942
|
} else {
|
|
56303
55943
|
// Compatible for origin definition
|
|
56304
55944
|
iconNode = icon;
|
|
@@ -56339,7 +55979,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56339
55979
|
function useFullPath(eventKey) {
|
|
56340
55980
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56341
55981
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56342
|
-
return eventKey !== undefined ? [].concat(
|
|
55982
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56343
55983
|
}, [parentKeyPath, eventKey]);
|
|
56344
55984
|
}
|
|
56345
55985
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56396,28 +56036,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56396
56036
|
// This should be removed from doc & api in future.
|
|
56397
56037
|
|
|
56398
56038
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56399
|
-
|
|
56039
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56400
56040
|
|
|
56401
|
-
var _super =
|
|
56041
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56402
56042
|
|
|
56403
56043
|
function LegacyMenuItem() {
|
|
56404
|
-
|
|
56044
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56405
56045
|
|
|
56406
56046
|
return _super.apply(this, arguments);
|
|
56407
56047
|
}
|
|
56408
56048
|
|
|
56409
|
-
|
|
56049
|
+
_createClass(LegacyMenuItem, [{
|
|
56410
56050
|
key: "render",
|
|
56411
56051
|
value: function render() {
|
|
56412
56052
|
var _this$props = this.props,
|
|
56413
56053
|
title = _this$props.title,
|
|
56414
56054
|
attribute = _this$props.attribute,
|
|
56415
56055
|
elementRef = _this$props.elementRef,
|
|
56416
|
-
restProps =
|
|
56056
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56417
56057
|
|
|
56418
56058
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56419
56059
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56420
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56060
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56421
56061
|
title: typeof title === 'string' ? title : undefined
|
|
56422
56062
|
}, passedProps, {
|
|
56423
56063
|
ref: elementRef
|
|
@@ -56448,7 +56088,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56448
56088
|
onClick = props.onClick,
|
|
56449
56089
|
onKeyDown = props.onKeyDown,
|
|
56450
56090
|
onFocus = props.onFocus,
|
|
56451
|
-
restProps =
|
|
56091
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56452
56092
|
|
|
56453
56093
|
var domDataId = useMenuId(eventKey);
|
|
56454
56094
|
|
|
@@ -56477,7 +56117,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56477
56117
|
return {
|
|
56478
56118
|
key: eventKey,
|
|
56479
56119
|
// Note: For legacy code is reversed which not like other antd component
|
|
56480
|
-
keyPath:
|
|
56120
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56481
56121
|
item: legacyMenuItemRef.current,
|
|
56482
56122
|
domEvent: e
|
|
56483
56123
|
};
|
|
@@ -56488,7 +56128,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56488
56128
|
|
|
56489
56129
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56490
56130
|
active = _useActive.active,
|
|
56491
|
-
activeProps =
|
|
56131
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56492
56132
|
|
|
56493
56133
|
|
|
56494
56134
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56533,7 +56173,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56533
56173
|
optionRoleProps['aria-selected'] = selected;
|
|
56534
56174
|
}
|
|
56535
56175
|
|
|
56536
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56176
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56537
56177
|
ref: legacyMenuItemRef,
|
|
56538
56178
|
elementRef: elementRef,
|
|
56539
56179
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56542,13 +56182,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56542
56182
|
}, restProps, activeProps, optionRoleProps, {
|
|
56543
56183
|
component: "li",
|
|
56544
56184
|
"aria-disabled": disabled,
|
|
56545
|
-
style:
|
|
56546
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56185
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56186
|
+
className: classnames_default()(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56547
56187
|
onClick: onInternalClick,
|
|
56548
56188
|
onKeyDown: onInternalKeyDown,
|
|
56549
56189
|
onFocus: onInternalFocus
|
|
56550
56190
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56551
|
-
props:
|
|
56191
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56552
56192
|
isSelected: selected
|
|
56553
56193
|
}),
|
|
56554
56194
|
icon: mergedItemIcon
|
|
@@ -56601,7 +56241,7 @@ function parseChildren(children, keyPath) {
|
|
|
56601
56241
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56602
56242
|
|
|
56603
56243
|
if (emptyKey) {
|
|
56604
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56244
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56605
56245
|
}
|
|
56606
56246
|
|
|
56607
56247
|
var cloneProps = {
|
|
@@ -56649,14 +56289,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56649
56289
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56650
56290
|
var className = _ref.className,
|
|
56651
56291
|
children = _ref.children,
|
|
56652
|
-
restProps =
|
|
56292
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56653
56293
|
|
|
56654
56294
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56655
56295
|
prefixCls = _React$useContext.prefixCls,
|
|
56656
56296
|
mode = _React$useContext.mode,
|
|
56657
56297
|
rtl = _React$useContext.rtl;
|
|
56658
56298
|
|
|
56659
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56299
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56660
56300
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56661
56301
|
}, restProps, {
|
|
56662
56302
|
"data-menu-list": true,
|
|
@@ -56773,11 +56413,11 @@ function PopupTrigger(_ref) {
|
|
|
56773
56413
|
innerVisible = _React$useState2[0],
|
|
56774
56414
|
setInnerVisible = _React$useState2[1];
|
|
56775
56415
|
|
|
56776
|
-
var placement = rtl ?
|
|
56416
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
56777
56417
|
var popupPlacement = popupPlacementMap[mode];
|
|
56778
56418
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56779
56419
|
|
|
56780
|
-
var mergedMotion =
|
|
56420
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
56781
56421
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56782
56422
|
removeOnLeave: false,
|
|
56783
56423
|
motionAppear: true
|
|
@@ -56795,7 +56435,7 @@ function PopupTrigger(_ref) {
|
|
|
56795
56435
|
}, [visible]);
|
|
56796
56436
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56797
56437
|
prefixCls: prefixCls,
|
|
56798
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56438
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56799
56439
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56800
56440
|
getPopupContainer: getPopupContainer,
|
|
56801
56441
|
builtinPlacements: placement,
|
|
@@ -56855,7 +56495,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56855
56495
|
}
|
|
56856
56496
|
}, [mode]); // ================================= Render =================================
|
|
56857
56497
|
|
|
56858
|
-
var mergedMotion =
|
|
56498
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56859
56499
|
|
|
56860
56500
|
|
|
56861
56501
|
if (keyPath.length > 1) {
|
|
@@ -56880,7 +56520,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56880
56520
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56881
56521
|
mode: fixedMode,
|
|
56882
56522
|
locked: !sameModeRef.current
|
|
56883
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56523
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
56884
56524
|
visible: mergedOpen
|
|
56885
56525
|
}, mergedMotion, {
|
|
56886
56526
|
forceRender: forceSubMenuRender,
|
|
@@ -56943,7 +56583,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56943
56583
|
onTitleClick = props.onTitleClick,
|
|
56944
56584
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56945
56585
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56946
|
-
restProps =
|
|
56586
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
56947
56587
|
|
|
56948
56588
|
var domDataId = useMenuId(eventKey);
|
|
56949
56589
|
|
|
@@ -56986,7 +56626,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56986
56626
|
|
|
56987
56627
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56988
56628
|
active = _useActive.active,
|
|
56989
|
-
activeProps =
|
|
56629
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56990
56630
|
|
|
56991
56631
|
|
|
56992
56632
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -57071,7 +56711,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57071
56711
|
|
|
57072
56712
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
57073
56713
|
|
|
57074
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56714
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
57075
56715
|
role: "menuitem",
|
|
57076
56716
|
style: directionStyle,
|
|
57077
56717
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -57087,7 +56727,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57087
56727
|
onFocus: onInternalFocus
|
|
57088
56728
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
57089
56729
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
57090
|
-
props:
|
|
56730
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
57091
56731
|
isOpen: open,
|
|
57092
56732
|
// [Legacy] Not sure why need this mark
|
|
57093
56733
|
isSubMenu: true
|
|
@@ -57125,12 +56765,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
57125
56765
|
} // >>>>> List node
|
|
57126
56766
|
|
|
57127
56767
|
|
|
57128
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56768
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57129
56769
|
role: "none"
|
|
57130
56770
|
}, restProps, {
|
|
57131
56771
|
component: "li",
|
|
57132
56772
|
style: style,
|
|
57133
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
56773
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57134
56774
|
onMouseEnter: onInternalMouseEnter,
|
|
57135
56775
|
onMouseLeave: onInternalMouseLeave
|
|
57136
56776
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57223,7 +56863,7 @@ function focusable(node) {
|
|
|
57223
56863
|
function getFocusNodeList(node) {
|
|
57224
56864
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57225
56865
|
|
|
57226
|
-
var res =
|
|
56866
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57227
56867
|
return focusable(child, includePositive);
|
|
57228
56868
|
});
|
|
57229
56869
|
|
|
@@ -57303,9 +56943,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57303
56943
|
};
|
|
57304
56944
|
}
|
|
57305
56945
|
|
|
57306
|
-
var inline = (_inline = {},
|
|
57307
|
-
var horizontal = (_horizontal = {},
|
|
57308
|
-
var vertical = (_vertical = {},
|
|
56946
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
56947
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
56948
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57309
56949
|
var offsets = {
|
|
57310
56950
|
inline: inline,
|
|
57311
56951
|
horizontal: horizontal,
|
|
@@ -57669,7 +57309,7 @@ function useKeyRecords() {
|
|
|
57669
57309
|
}, [getKeyPath]);
|
|
57670
57310
|
|
|
57671
57311
|
var getKeys = function getKeys() {
|
|
57672
|
-
var keys =
|
|
57312
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57673
57313
|
|
|
57674
57314
|
if (overflowKeys.length) {
|
|
57675
57315
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57686,7 +57326,7 @@ function useKeyRecords() {
|
|
|
57686
57326
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57687
57327
|
var pathKeys = new Set();
|
|
57688
57328
|
|
|
57689
|
-
|
|
57329
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57690
57330
|
if (pathKey.startsWith(connectedPath)) {
|
|
57691
57331
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57692
57332
|
}
|
|
@@ -57807,7 +57447,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57807
57447
|
openTransitionName = props.openTransitionName,
|
|
57808
57448
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57809
57449
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57810
|
-
restProps =
|
|
57450
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
57811
57451
|
|
|
57812
57452
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57813
57453
|
|
|
@@ -57961,7 +57601,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57961
57601
|
return key !== targetKey;
|
|
57962
57602
|
});
|
|
57963
57603
|
} else {
|
|
57964
|
-
newSelectKeys = [].concat(
|
|
57604
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57965
57605
|
}
|
|
57966
57606
|
} else {
|
|
57967
57607
|
newSelectKeys = [targetKey];
|
|
@@ -57969,7 +57609,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57969
57609
|
|
|
57970
57610
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57971
57611
|
|
|
57972
|
-
var selectInfo =
|
|
57612
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
57973
57613
|
selectedKeys: newSelectKeys
|
|
57974
57614
|
});
|
|
57975
57615
|
|
|
@@ -58047,13 +57687,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58047
57687
|
);
|
|
58048
57688
|
}); // >>>>> Container
|
|
58049
57689
|
|
|
58050
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
57690
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58051
57691
|
id: id,
|
|
58052
57692
|
ref: mergedRef,
|
|
58053
57693
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58054
57694
|
component: "ul",
|
|
58055
57695
|
itemComponent: es_MenuItem,
|
|
58056
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
57696
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
58057
57697
|
dir: direction,
|
|
58058
57698
|
style: style,
|
|
58059
57699
|
role: "menu",
|
|
@@ -58147,13 +57787,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58147
57787
|
title = _ref.title,
|
|
58148
57788
|
eventKey = _ref.eventKey,
|
|
58149
57789
|
children = _ref.children,
|
|
58150
|
-
restProps =
|
|
57790
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58151
57791
|
|
|
58152
57792
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58153
57793
|
prefixCls = _React$useContext.prefixCls;
|
|
58154
57794
|
|
|
58155
57795
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58156
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
57796
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58157
57797
|
onClick: function onClick(e) {
|
|
58158
57798
|
return e.stopPropagation();
|
|
58159
57799
|
},
|
|
@@ -58168,7 +57808,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58168
57808
|
|
|
58169
57809
|
function MenuItemGroup(_ref2) {
|
|
58170
57810
|
var children = _ref2.children,
|
|
58171
|
-
props =
|
|
57811
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58172
57812
|
|
|
58173
57813
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58174
57814
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58296,7 +57936,7 @@ function Dropdown(props, ref) {
|
|
|
58296
57936
|
visible = props.visible,
|
|
58297
57937
|
_props$trigger = props.trigger,
|
|
58298
57938
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58299
|
-
otherProps =
|
|
57939
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58300
57940
|
|
|
58301
57941
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58302
57942
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58407,12 +58047,12 @@ function Dropdown(props, ref) {
|
|
|
58407
58047
|
triggerHideAction = ['click'];
|
|
58408
58048
|
}
|
|
58409
58049
|
|
|
58410
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58050
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58411
58051
|
builtinPlacements: placements
|
|
58412
58052
|
}, otherProps), {}, {
|
|
58413
58053
|
prefixCls: prefixCls,
|
|
58414
58054
|
ref: triggerRef,
|
|
58415
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58055
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58416
58056
|
popupStyle: overlayStyle,
|
|
58417
58057
|
action: trigger,
|
|
58418
58058
|
showAction: showAction,
|
|
@@ -58616,14 +58256,14 @@ function OperationNode(_ref, ref) {
|
|
|
58616
58256
|
}
|
|
58617
58257
|
}, [open]); // ========================= Render =========================
|
|
58618
58258
|
|
|
58619
|
-
var moreStyle =
|
|
58259
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58620
58260
|
|
|
58621
58261
|
if (!tabs.length) {
|
|
58622
58262
|
moreStyle.visibility = 'hidden';
|
|
58623
58263
|
moreStyle.order = 1;
|
|
58624
58264
|
}
|
|
58625
58265
|
|
|
58626
|
-
var overlayClassName = classnames_default()(
|
|
58266
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58627
58267
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58628
58268
|
prefixCls: dropdownPrefix,
|
|
58629
58269
|
overlay: menu,
|
|
@@ -58902,7 +58542,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58902
58542
|
|
|
58903
58543
|
var assertExtra = {};
|
|
58904
58544
|
|
|
58905
|
-
if (extra &&
|
|
58545
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58906
58546
|
assertExtra = extra;
|
|
58907
58547
|
} else {
|
|
58908
58548
|
assertExtra.right = extra;
|
|
@@ -59152,7 +58792,7 @@ function TabNavList(props, ref) {
|
|
|
59152
58792
|
}, {
|
|
59153
58793
|
width: addWidth,
|
|
59154
58794
|
height: addHeight
|
|
59155
|
-
},
|
|
58795
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59156
58796
|
tabs: tabs
|
|
59157
58797
|
})),
|
|
59158
58798
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59244,7 +58884,7 @@ function TabNavList(props, ref) {
|
|
|
59244
58884
|
|
|
59245
58885
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59246
58886
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59247
|
-
var hiddenTabs = [].concat(
|
|
58887
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59248
58888
|
|
|
59249
58889
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59250
58890
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59330,7 +58970,7 @@ function TabNavList(props, ref) {
|
|
|
59330
58970
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59331
58971
|
onResize: onListHolderResize
|
|
59332
58972
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59333
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
58973
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
59334
58974
|
ref: tabsWrapperRef
|
|
59335
58975
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59336
58976
|
onResize: onListHolderResize
|
|
@@ -59346,13 +58986,13 @@ function TabNavList(props, ref) {
|
|
|
59346
58986
|
prefixCls: prefixCls,
|
|
59347
58987
|
locale: locale,
|
|
59348
58988
|
editable: editable,
|
|
59349
|
-
style:
|
|
58989
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59350
58990
|
visibility: hasDropdown ? 'hidden' : null
|
|
59351
58991
|
})
|
|
59352
58992
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59353
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
58993
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59354
58994
|
style: inkStyle
|
|
59355
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
58995
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59356
58996
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59357
58997
|
ref: operationsRef,
|
|
59358
58998
|
prefixCls: prefixCls,
|
|
@@ -59392,8 +59032,8 @@ function TabPanelList(_ref) {
|
|
|
59392
59032
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59393
59033
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59394
59034
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59395
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59396
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59035
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59036
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59397
59037
|
}, tabs.map(function (tab) {
|
|
59398
59038
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59399
59039
|
key: tab.key,
|
|
@@ -59453,7 +59093,7 @@ function TabPane(_ref) {
|
|
|
59453
59093
|
tabIndex: active ? 0 : -1,
|
|
59454
59094
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59455
59095
|
"aria-hidden": !active,
|
|
59456
|
-
style:
|
|
59096
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59457
59097
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59458
59098
|
}, (active || visited || forceRender) && children);
|
|
59459
59099
|
}
|
|
@@ -59493,7 +59133,7 @@ function parseTabList(children) {
|
|
|
59493
59133
|
return toArray(children).map(function (node) {
|
|
59494
59134
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59495
59135
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59496
|
-
return
|
|
59136
|
+
return _objectSpread2(_objectSpread2({
|
|
59497
59137
|
key: key
|
|
59498
59138
|
}, node.props), {}, {
|
|
59499
59139
|
node: node
|
|
@@ -59536,7 +59176,7 @@ function Tabs(_ref, ref) {
|
|
|
59536
59176
|
onChange = _ref.onChange,
|
|
59537
59177
|
onTabClick = _ref.onTabClick,
|
|
59538
59178
|
onTabScroll = _ref.onTabScroll,
|
|
59539
|
-
restProps =
|
|
59179
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59540
59180
|
|
|
59541
59181
|
var tabs = parseTabList(children);
|
|
59542
59182
|
var rtl = direction === 'rtl';
|
|
@@ -59553,10 +59193,10 @@ function Tabs(_ref, ref) {
|
|
|
59553
59193
|
tabPane: true
|
|
59554
59194
|
};
|
|
59555
59195
|
} else {
|
|
59556
|
-
mergedAnimated =
|
|
59196
|
+
mergedAnimated = _objectSpread2({
|
|
59557
59197
|
inkBar: true,
|
|
59558
59198
|
tabPane: false
|
|
59559
|
-
},
|
|
59199
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59560
59200
|
} // ======================== Mobile ========================
|
|
59561
59201
|
|
|
59562
59202
|
|
|
@@ -59651,7 +59291,7 @@ function Tabs(_ref, ref) {
|
|
|
59651
59291
|
};
|
|
59652
59292
|
var tabNavBar;
|
|
59653
59293
|
|
|
59654
|
-
var tabNavBarProps =
|
|
59294
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59655
59295
|
editable: editable,
|
|
59656
59296
|
locale: locale,
|
|
59657
59297
|
moreIcon: moreIcon,
|
|
@@ -59675,11 +59315,11 @@ function Tabs(_ref, ref) {
|
|
|
59675
59315
|
tabs: tabs,
|
|
59676
59316
|
prefixCls: prefixCls
|
|
59677
59317
|
}
|
|
59678
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59318
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59679
59319
|
ref: ref,
|
|
59680
59320
|
id: id,
|
|
59681
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59682
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59321
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59322
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59683
59323
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59684
59324
|
}, sharedProps, {
|
|
59685
59325
|
animated: mergedAnimated
|
|
@@ -59877,7 +59517,7 @@ var Pager = function Pager(props) {
|
|
|
59877
59517
|
var _classNames;
|
|
59878
59518
|
|
|
59879
59519
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59880
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59520
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
59881
59521
|
|
|
59882
59522
|
var handleClick = function handleClick() {
|
|
59883
59523
|
props.onClick(props.page);
|
|
@@ -59922,14 +59562,14 @@ var Pager = function Pager(props) {
|
|
|
59922
59562
|
|
|
59923
59563
|
|
|
59924
59564
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59925
|
-
|
|
59565
|
+
_inherits(Options, _React$Component);
|
|
59926
59566
|
|
|
59927
|
-
var _super =
|
|
59567
|
+
var _super = _createSuper(Options);
|
|
59928
59568
|
|
|
59929
59569
|
function Options() {
|
|
59930
59570
|
var _this;
|
|
59931
59571
|
|
|
59932
|
-
|
|
59572
|
+
_classCallCheck(this, Options);
|
|
59933
59573
|
|
|
59934
59574
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59935
59575
|
args[_key] = arguments[_key];
|
|
@@ -59995,7 +59635,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59995
59635
|
return _this;
|
|
59996
59636
|
}
|
|
59997
59637
|
|
|
59998
|
-
|
|
59638
|
+
_createClass(Options, [{
|
|
59999
59639
|
key: "getValidValue",
|
|
60000
59640
|
value: function getValidValue() {
|
|
60001
59641
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60152,14 +59792,14 @@ function calculatePage(p, state, props) {
|
|
|
60152
59792
|
}
|
|
60153
59793
|
|
|
60154
59794
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60155
|
-
|
|
59795
|
+
_inherits(Pagination, _React$Component);
|
|
60156
59796
|
|
|
60157
|
-
var _super =
|
|
59797
|
+
var _super = _createSuper(Pagination);
|
|
60158
59798
|
|
|
60159
59799
|
function Pagination(props) {
|
|
60160
59800
|
var _this;
|
|
60161
59801
|
|
|
60162
|
-
|
|
59802
|
+
_classCallCheck(this, Pagination);
|
|
60163
59803
|
|
|
60164
59804
|
_this = _super.call(this, props);
|
|
60165
59805
|
|
|
@@ -60180,7 +59820,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60180
59820
|
});
|
|
60181
59821
|
|
|
60182
59822
|
if (typeof icon === 'function') {
|
|
60183
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
59823
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60184
59824
|
}
|
|
60185
59825
|
|
|
60186
59826
|
return iconNode;
|
|
@@ -60402,7 +60042,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60402
60042
|
return _this;
|
|
60403
60043
|
}
|
|
60404
60044
|
|
|
60405
|
-
|
|
60045
|
+
_createClass(Pagination, [{
|
|
60406
60046
|
key: "componentDidUpdate",
|
|
60407
60047
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60408
60048
|
// When current page change, fix focused style of prev item
|
|
@@ -60550,8 +60190,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60550
60190
|
}, gotoButton);
|
|
60551
60191
|
}
|
|
60552
60192
|
|
|
60553
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60554
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60193
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60194
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60555
60195
|
style: style,
|
|
60556
60196
|
ref: this.savePaginationNode
|
|
60557
60197
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60559,7 +60199,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60559
60199
|
onClick: this.prev,
|
|
60560
60200
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60561
60201
|
onKeyPress: this.runIfEnterPrev,
|
|
60562
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60202
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60563
60203
|
"aria-disabled": !this.hasPrev()
|
|
60564
60204
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60565
60205
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60580,7 +60220,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60580
60220
|
onClick: this.next,
|
|
60581
60221
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60582
60222
|
onKeyPress: this.runIfEnterNext,
|
|
60583
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60223
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60584
60224
|
"aria-disabled": !this.hasNext()
|
|
60585
60225
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60586
60226
|
}
|
|
@@ -60596,7 +60236,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60596
60236
|
};
|
|
60597
60237
|
|
|
60598
60238
|
if (!allPages) {
|
|
60599
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60239
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60600
60240
|
key: "noPager",
|
|
60601
60241
|
page: 1,
|
|
60602
60242
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60605,7 +60245,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60605
60245
|
|
|
60606
60246
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60607
60247
|
var active = current === i;
|
|
60608
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60248
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60609
60249
|
key: i,
|
|
60610
60250
|
page: i,
|
|
60611
60251
|
active: active
|
|
@@ -60622,7 +60262,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60622
60262
|
onClick: this.jumpPrev,
|
|
60623
60263
|
tabIndex: "0",
|
|
60624
60264
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60625
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60265
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60626
60266
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60627
60267
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60628
60268
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60630,7 +60270,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60630
60270
|
tabIndex: "0",
|
|
60631
60271
|
onClick: this.jumpNext,
|
|
60632
60272
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60633
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60273
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60634
60274
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60635
60275
|
}
|
|
60636
60276
|
|
|
@@ -60717,8 +60357,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60717
60357
|
|
|
60718
60358
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60719
60359
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60720
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60721
|
-
className: classnames_default()(prefixCls, className,
|
|
60360
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60361
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60722
60362
|
style: style,
|
|
60723
60363
|
unselectable: "unselectable",
|
|
60724
60364
|
ref: this.savePaginationNode
|
|
@@ -60727,14 +60367,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60727
60367
|
onClick: this.prev,
|
|
60728
60368
|
tabIndex: prevDisabled ? null : 0,
|
|
60729
60369
|
onKeyPress: this.runIfEnterPrev,
|
|
60730
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60370
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60731
60371
|
"aria-disabled": prevDisabled
|
|
60732
60372
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60733
60373
|
title: showTitle ? locale.next_page : null,
|
|
60734
60374
|
onClick: this.next,
|
|
60735
60375
|
tabIndex: nextDisabled ? null : 0,
|
|
60736
60376
|
onKeyPress: this.runIfEnterNext,
|
|
60737
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60377
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60738
60378
|
"aria-disabled": nextDisabled
|
|
60739
60379
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60740
60380
|
disabled: disabled,
|
|
@@ -60812,7 +60452,7 @@ Pagination.defaultProps = {
|
|
|
60812
60452
|
|
|
60813
60453
|
|
|
60814
60454
|
var MiniSelect = function MiniSelect(props) {
|
|
60815
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60455
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
60816
60456
|
size: "small"
|
|
60817
60457
|
}, props));
|
|
60818
60458
|
};
|
|
@@ -60873,7 +60513,7 @@ var responsiveObserve = {
|
|
|
60873
60513
|
var listener = function listener(_ref) {
|
|
60874
60514
|
var matches = _ref.matches;
|
|
60875
60515
|
|
|
60876
|
-
_this2.dispatch(
|
|
60516
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
60877
60517
|
};
|
|
60878
60518
|
|
|
60879
60519
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -61014,13 +60654,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61014
60654
|
var renderPagination = function renderPagination(contextLocale) {
|
|
61015
60655
|
var _classNames;
|
|
61016
60656
|
|
|
61017
|
-
var locale =
|
|
60657
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
61018
60658
|
|
|
61019
60659
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
61020
60660
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
61021
60661
|
var extendedClassName = classnames_default()((_classNames = {
|
|
61022
60662
|
mini: isSmall
|
|
61023
|
-
},
|
|
60663
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
61024
60664
|
|
|
61025
60665
|
if (minimalistic) {
|
|
61026
60666
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -61057,7 +60697,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
61057
60697
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
61058
60698
|
}
|
|
61059
60699
|
|
|
61060
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
60700
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
61061
60701
|
prefixCls: prefixCls,
|
|
61062
60702
|
selectPrefixCls: selectPrefixCls,
|
|
61063
60703
|
className: extendedClassName,
|
|
@@ -61385,7 +61025,7 @@ function Action(_ref) {
|
|
|
61385
61025
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(function () {
|
|
61386
61026
|
var actionNum;
|
|
61387
61027
|
|
|
61388
|
-
if (status === 1) {
|
|
61028
|
+
if (status === 1 || status === 3) {
|
|
61389
61029
|
actionNum = 1;
|
|
61390
61030
|
} else if (status === 2) {
|
|
61391
61031
|
actionNum = 2;
|
|
@@ -61429,10 +61069,10 @@ function Action(_ref) {
|
|
|
61429
61069
|
setCurAction = _useState2[1];
|
|
61430
61070
|
|
|
61431
61071
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61432
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61072
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61433
61073
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61434
61074
|
|
|
61435
|
-
return
|
|
61075
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61436
61076
|
while (1) {
|
|
61437
61077
|
switch (_context.prev = _context.next) {
|
|
61438
61078
|
case 0:
|
|
@@ -61612,7 +61252,9 @@ function ListItem_asyncToGenerator(fn) { return function () { var self = this, a
|
|
|
61612
61252
|
var TagName = {
|
|
61613
61253
|
0: '预告',
|
|
61614
61254
|
1: '直播中',
|
|
61615
|
-
2: '回放'
|
|
61255
|
+
2: '回放',
|
|
61256
|
+
3: '直播中' // 实际是暂停
|
|
61257
|
+
|
|
61616
61258
|
};
|
|
61617
61259
|
function ListItem(_ref) {
|
|
61618
61260
|
var data = _ref.data,
|
|
@@ -61674,7 +61316,7 @@ function ListItem(_ref) {
|
|
|
61674
61316
|
className: list_ListItem_index_module.avatar
|
|
61675
61317
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61676
61318
|
className: classnames_default()(list_ListItem_index_module.tag, list_ListItem_index_module["tag".concat(status)])
|
|
61677
|
-
}, status === 1 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61319
|
+
}, status === 1 || status === 3 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61678
61320
|
src: play,
|
|
61679
61321
|
alt: ""
|
|
61680
61322
|
}) : null, TagName[status])), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -61767,7 +61409,7 @@ var StatusEnum = [{
|
|
|
61767
61409
|
value: 'all'
|
|
61768
61410
|
}, {
|
|
61769
61411
|
label: '直播中',
|
|
61770
|
-
value: 1
|
|
61412
|
+
value: '1,3'
|
|
61771
61413
|
}, {
|
|
61772
61414
|
label: '预告',
|
|
61773
61415
|
value: 0
|