@ant-design/pro-components 2.3.7 → 2.3.9

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.
@@ -8873,9 +8873,9 @@ function pad2(c) {
8873
8873
  /***/ (function(module, exports) {
8874
8874
 
8875
8875
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
8876
- Copyright (c) 2018 Jed Watson.
8877
- Licensed under the MIT License (MIT), see
8878
- http://jedwatson.github.io/classnames
8876
+ Copyright (c) 2018 Jed Watson.
8877
+ Licensed under the MIT License (MIT), see
8878
+ http://jedwatson.github.io/classnames
8879
8879
  */
8880
8880
 
8881
8881
  /* global define */
@@ -8883,6 +8883,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
8883
8883
  'use strict';
8884
8884
 
8885
8885
  var hasOwn = {}.hasOwnProperty;
8886
+ var nativeCodeString = '[native code]';
8886
8887
 
8887
8888
  function classNames() {
8888
8889
  var classes = [];
@@ -8903,14 +8904,15 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
8903
8904
  }
8904
8905
  }
8905
8906
  } else if (argType === 'object') {
8906
- if (arg.toString === Object.prototype.toString) {
8907
- for (var key in arg) {
8908
- if (hasOwn.call(arg, key) && arg[key]) {
8909
- classes.push(key);
8910
- }
8911
- }
8912
- } else {
8907
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
8913
8908
  classes.push(arg.toString());
8909
+ continue;
8910
+ }
8911
+
8912
+ for (var key in arg) {
8913
+ if (hasOwn.call(arg, key) && arg[key]) {
8914
+ classes.push(key);
8915
+ }
8914
8916
  }
8915
8917
  }
8916
8918
  }
@@ -20756,18 +20758,27 @@ function removeCSS(key) {
20756
20758
  var existNode = findExistNode(key, option);
20757
20759
  existNode === null || existNode === void 0 ? void 0 : (_existNode$parentNode = existNode.parentNode) === null || _existNode$parentNode === void 0 ? void 0 : _existNode$parentNode.removeChild(existNode);
20758
20760
  }
20761
+ /**
20762
+ * qiankun will inject `appendChild` to insert into other
20763
+ */
20759
20764
 
20760
- function updateCSS(css, key) {
20761
- var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
20762
- var container = getContainer(option); // Get real parent
20763
20765
 
20764
- if (!containerCache.has(container)) {
20766
+ function syncRealContainer(container, option) {
20767
+ var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
20768
+
20769
+ if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
20765
20770
  var placeholderStyle = injectCSS('', option);
20766
20771
  var parentNode = placeholderStyle.parentNode;
20767
20772
  containerCache.set(container, parentNode);
20768
20773
  parentNode.removeChild(placeholderStyle);
20769
20774
  }
20775
+ }
20770
20776
 
20777
+ function updateCSS(css, key) {
20778
+ var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
20779
+ var container = getContainer(option); // Sync real parent
20780
+
20781
+ syncRealContainer(container, option);
20771
20782
  var existNode = findExistNode(key, option);
20772
20783
 
20773
20784
  if (existNode) {
@@ -24875,6 +24886,7 @@ __webpack_require__.d(__webpack_exports__, {
24875
24886
  "ProFormMoney": function() { return /* reexport */ components_Money; },
24876
24887
  "ProFormRadio": function() { return /* reexport */ components_Radio; },
24877
24888
  "ProFormRate": function() { return /* reexport */ components_Rate; },
24889
+ "ProFormSegmented": function() { return /* reexport */ components_Segmented; },
24878
24890
  "ProFormSelect": function() { return /* reexport */ components_Select; },
24879
24891
  "ProFormSlider": function() { return /* reexport */ components_Slider; },
24880
24892
  "ProFormSwitch": function() { return /* reexport */ components_Switch; },
@@ -28575,17 +28587,26 @@ function removeCSS(key) {
28575
28587
  var existNode = findExistNode(key, option);
28576
28588
  existNode === null || existNode === void 0 ? void 0 : (_existNode$parentNode = existNode.parentNode) === null || _existNode$parentNode === void 0 ? void 0 : _existNode$parentNode.removeChild(existNode);
28577
28589
  }
28578
- function updateCSS(css, key) {
28579
- var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
28580
- var container = getContainer(option); // Get real parent
28590
+ /**
28591
+ * qiankun will inject `appendChild` to insert into other
28592
+ */
28581
28593
 
28582
- if (!containerCache.has(container)) {
28594
+ function syncRealContainer(container, option) {
28595
+ var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
28596
+
28597
+ if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
28583
28598
  var placeholderStyle = injectCSS('', option);
28584
28599
  var parentNode = placeholderStyle.parentNode;
28585
28600
  containerCache.set(container, parentNode);
28586
28601
  parentNode.removeChild(placeholderStyle);
28587
28602
  }
28603
+ }
28588
28604
 
28605
+ function updateCSS(css, key) {
28606
+ var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
28607
+ var container = getContainer(option); // Sync real parent
28608
+
28609
+ syncRealContainer(container, option);
28589
28610
  var existNode = findExistNode(key, option);
28590
28611
 
28591
28612
  if (existNode) {
@@ -28758,7 +28779,7 @@ var Utility_assign = Object.assign;
28758
28779
  */
28759
28780
 
28760
28781
  function hash(value, length) {
28761
- return (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
28782
+ return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
28762
28783
  }
28763
28784
  /**
28764
28785
  * @param {string} value
@@ -29219,7 +29240,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
29219
29240
  switch (previous = character, character = next()) {
29220
29241
  // (
29221
29242
  case 40:
29222
- if (previous != 108 && characters.charCodeAt(length - 1) == 58) {
29243
+ if (previous != 108 && charat(characters, length - 1) == 58) {
29223
29244
  if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1) ampersand = -1;
29224
29245
  break;
29225
29246
  }
@@ -29509,7 +29530,23 @@ var StyleProvider = function StyleProvider(props) {
29509
29530
  }, children);
29510
29531
  };
29511
29532
  /* harmony default export */ var es_StyleContext = (StyleContext);
29512
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/useGlobalCache.js
29533
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useHMR.js
29534
+ function useProdHMR() {
29535
+ return false;
29536
+ }
29537
+
29538
+ var webpackHMR = false;
29539
+
29540
+ function useDevHMR() {
29541
+ return webpackHMR;
29542
+ }
29543
+
29544
+ /* harmony default export */ var useHMR = ( true ? useProdHMR : 0); // Webpack `module.hot.accept` do not support any deps update trigger
29545
+ // We have to hack handler to force mark as HRM
29546
+
29547
+ if (false) { var originWebpackHotUpdate, win; }
29548
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js
29549
+
29513
29550
 
29514
29551
 
29515
29552
 
@@ -29518,7 +29555,8 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
29518
29555
  var _React$useContext = external_React_.useContext(es_StyleContext),
29519
29556
  globalCache = _React$useContext.cache;
29520
29557
 
29521
- var fullPath = [prefix].concat(toConsumableArray_toConsumableArray(keyPath)); // Create cache
29558
+ var fullPath = [prefix].concat(toConsumableArray_toConsumableArray(keyPath));
29559
+ var HMRUpdate = useHMR(); // Create cache
29522
29560
 
29523
29561
  external_React_.useMemo(function () {
29524
29562
  globalCache.update(fullPath, function (prevCache) {
@@ -29526,9 +29564,14 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
29526
29564
  _ref2 = slicedToArray_slicedToArray(_ref, 2),
29527
29565
  _ref2$ = _ref2[0],
29528
29566
  times = _ref2$ === void 0 ? 0 : _ref2$,
29529
- cache = _ref2[1];
29567
+ cache = _ref2[1]; // HMR should always ignore cache since developer may change it
29568
+
29530
29569
 
29531
- var mergedCache = cache || cacheFn();
29570
+ var tmpCache = cache;
29571
+
29572
+ if (false) {}
29573
+
29574
+ var mergedCache = tmpCache || cacheFn();
29532
29575
  return [times + 1, mergedCache];
29533
29576
  });
29534
29577
  },
@@ -29547,7 +29590,7 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
29547
29590
  var nextCount = times - 1;
29548
29591
 
29549
29592
  if (nextCount === 0) {
29550
- onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache);
29593
+ onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache, false);
29551
29594
  return null;
29552
29595
  }
29553
29596
 
@@ -29589,6 +29632,8 @@ function noteOnce(valid, message) {
29589
29632
 
29590
29633
 
29591
29634
 
29635
+
29636
+
29592
29637
  function flattenToken(token) {
29593
29638
  var str = '';
29594
29639
  Object.keys(token).forEach(function (key) {
@@ -29715,7 +29760,7 @@ var styleValidate = function styleValidate(key, value) {
29715
29760
  return;
29716
29761
 
29717
29762
  case 'animation':
29718
- if (hashId) {
29763
+ if (hashId && value !== 'none') {
29719
29764
  util_warning("You seem to be using hashed animation '".concat(value, "', in which case 'animationName' with Keyframe as value is recommended."), path);
29720
29765
  }
29721
29766
 
@@ -29723,7 +29768,53 @@ var styleValidate = function styleValidate(key, value) {
29723
29768
  return;
29724
29769
  }
29725
29770
  };
29726
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/useStyleRegister.js
29771
+ var layerKey = "layer-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, '');
29772
+ var layerWidth = '903px';
29773
+
29774
+ function supportSelector(styleStr, handleElement) {
29775
+ if (canUseDom()) {
29776
+ var _ele$parentNode;
29777
+
29778
+ updateCSS(styleStr, layerKey);
29779
+ var ele = document.createElement('div');
29780
+ ele.style.position = 'fixed';
29781
+ ele.style.left = '0';
29782
+ ele.style.top = '0';
29783
+ handleElement === null || handleElement === void 0 ? void 0 : handleElement(ele);
29784
+ document.body.appendChild(ele);
29785
+
29786
+ if (false) {}
29787
+
29788
+ var support = getComputedStyle(ele).width === layerWidth;
29789
+ (_ele$parentNode = ele.parentNode) === null || _ele$parentNode === void 0 ? void 0 : _ele$parentNode.removeChild(ele);
29790
+ removeCSS(layerKey);
29791
+ return support;
29792
+ }
29793
+
29794
+ return false;
29795
+ }
29796
+
29797
+ var canWhere = undefined;
29798
+ function supportWhere() {
29799
+ if (canWhere === undefined) {
29800
+ canWhere = supportSelector(":where(.".concat(layerKey, ") { width: ").concat(layerWidth, "!important; }"), function (ele) {
29801
+ ele.className = layerKey;
29802
+ });
29803
+ }
29804
+
29805
+ return canWhere;
29806
+ }
29807
+ var canLayer = undefined;
29808
+ function supportLayer() {
29809
+ if (canLayer === undefined) {
29810
+ canLayer = supportSelector("@layer ".concat(layerKey, " { .").concat(layerKey, " { width: ").concat(layerWidth, "!important; } }"), function (ele) {
29811
+ ele.className = layerKey;
29812
+ });
29813
+ }
29814
+
29815
+ return canLayer;
29816
+ }
29817
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js
29727
29818
 
29728
29819
 
29729
29820
 
@@ -29746,18 +29837,50 @@ var SKIP_CHECK = '_skip_check_'; // ============================================
29746
29837
  // Preprocessor style content to browser support one
29747
29838
 
29748
29839
  function normalizeStyle(styleStr) {
29749
- return Serializer_serialize(compile(styleStr), stringify);
29840
+ var serialized = Serializer_serialize(compile(styleStr), stringify);
29841
+ return serialized.replace(/\{%%%\:[^;];}/g, ';');
29750
29842
  }
29751
29843
 
29752
29844
  function isCompoundCSSProperty(value) {
29753
29845
  return typeof_typeof(value) === 'object' && value && SKIP_CHECK in value;
29754
29846
  }
29755
29847
 
29756
- var animationStatistics = {}; // Parse CSSObject to style content
29848
+ var animationStatistics = {}; // 注入 hash
29849
+
29850
+ function injectSelectorHash(key, hashId) {
29851
+ if (!hashId) {
29852
+ return key;
29853
+ }
29854
+
29855
+ var hashClassName = ".".concat(hashId);
29856
+ var hashSelector = supportWhere() ? ":where(".concat(hashClassName, ")") : hashClassName; // 注入 hashId
29857
+
29858
+ var keys = key.split(',').map(function (k) {
29859
+ var _firstPath$match;
29860
+
29861
+ var fullPath = k.trim().split(/\s+/); // 如果 Selector 第一个是 HTML Element,那我们就插到它的后面。反之,就插到最前面。
29862
+
29863
+ var firstPath = fullPath[0] || '';
29864
+ var htmlElement = ((_firstPath$match = firstPath.match(/^\w+/)) === null || _firstPath$match === void 0 ? void 0 : _firstPath$match[0]) || '';
29865
+ firstPath = "".concat(htmlElement).concat(hashSelector).concat(firstPath.slice(htmlElement.length));
29866
+ return [firstPath].concat(toConsumableArray_toConsumableArray(fullPath.slice(1))).join(' ');
29867
+ });
29868
+ return keys.join(',');
29869
+ } // Parse CSSObject to style content
29870
+
29757
29871
 
29758
- var parseStyle = function parseStyle(interpolation, hashId, path) {
29759
- var root = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
29760
- var injectHash = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
29872
+ var parseStyle = function parseStyle(interpolation) {
29873
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29874
+
29875
+ var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
29876
+ root: true
29877
+ },
29878
+ root = _ref.root,
29879
+ injectHash = _ref.injectHash;
29880
+
29881
+ var hashId = config.hashId,
29882
+ layer = config.layer,
29883
+ path = config.path;
29761
29884
  var styleStr = '';
29762
29885
 
29763
29886
  function parseKeyframes(keyframes) {
@@ -29766,7 +29889,9 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29766
29889
  }
29767
29890
 
29768
29891
  animationStatistics[keyframes.getName(hashId)] = true;
29769
- return "@keyframes ".concat(keyframes.getName(hashId)).concat(parseStyle(keyframes.style, hashId, path, false));
29892
+ return "@keyframes ".concat(keyframes.getName(hashId)).concat(parseStyle(keyframes.style, config, {
29893
+ root: false
29894
+ }));
29770
29895
  }
29771
29896
 
29772
29897
  function flattenList(list) {
@@ -29782,8 +29907,13 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29782
29907
  }
29783
29908
 
29784
29909
  var flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);
29785
- flattenStyleList.forEach(function (style) {
29786
- if (style._keyframe) {
29910
+ flattenStyleList.forEach(function (originStyle) {
29911
+ // Only root level can use raw string
29912
+ var style = typeof originStyle === 'string' && !root ? {} : originStyle;
29913
+
29914
+ if (typeof style === 'string') {
29915
+ styleStr += "".concat(style, "\n");
29916
+ } else if (style._keyframe) {
29787
29917
  // Keyframe
29788
29918
  styleStr += parseKeyframes(style);
29789
29919
  } else {
@@ -29804,10 +29934,7 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29804
29934
  subInjectHash = true;
29805
29935
  } else {
29806
29936
  // 注入 hashId
29807
- var keys = key.split(',').map(function (k) {
29808
- return ".".concat(hashId).concat(k.trim());
29809
- });
29810
- mergedKey = keys.join(',');
29937
+ mergedKey = injectSelectorHash(key, hashId);
29811
29938
  }
29812
29939
  } else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {
29813
29940
  // In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,
@@ -29819,7 +29946,12 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29819
29946
  nextRoot = true;
29820
29947
  }
29821
29948
 
29822
- styleStr += "".concat(mergedKey).concat(parseStyle(value, hashId, "".concat(path, " -> ").concat(mergedKey), nextRoot, subInjectHash));
29949
+ styleStr += "".concat(mergedKey).concat(parseStyle(value, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, config), {}, {
29950
+ path: "".concat(path, " -> ").concat(mergedKey)
29951
+ }), {
29952
+ root: nextRoot,
29953
+ injectHash: subInjectHash
29954
+ }));
29823
29955
  } else {
29824
29956
  var _value$value;
29825
29957
 
@@ -29852,6 +29984,15 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29852
29984
 
29853
29985
  if (!root) {
29854
29986
  styleStr = "{".concat(styleStr, "}");
29987
+ } else if (layer && supportLayer()) {
29988
+ var layerCells = layer.split(',');
29989
+ var layerName = layerCells[layerCells.length - 1].trim();
29990
+ styleStr = "@layer ".concat(layerName, " {").concat(styleStr, "}"); // Order of layer if needed
29991
+
29992
+ if (layerCells.length > 1) {
29993
+ // zombieJ: stylis do not support layer order, so we need to handle it manually.
29994
+ styleStr = "@layer ".concat(layer, "{%%%:%}").concat(styleStr);
29995
+ }
29855
29996
  }
29856
29997
 
29857
29998
  return styleStr;
@@ -29874,7 +30015,8 @@ function Empty() {
29874
30015
  function useStyleRegister(info, styleFn) {
29875
30016
  var token = info.token,
29876
30017
  path = info.path,
29877
- hashId = info.hashId;
30018
+ hashId = info.hashId,
30019
+ layer = info.layer;
29878
30020
 
29879
30021
  var _React$useContext = external_React_.useContext(es_StyleContext),
29880
30022
  autoClear = _React$useContext.autoClear,
@@ -29891,9 +30033,12 @@ function useStyleRegister(info, styleFn) {
29891
30033
  var _useGlobalCache = useClientCache('style', fullPath, // Create cache if needed
29892
30034
  function () {
29893
30035
  var styleObj = styleFn();
29894
- var styleStr = normalizeStyle(parseStyle(styleObj, hashId, path.join('-')));
30036
+ var styleStr = normalizeStyle(parseStyle(styleObj, {
30037
+ hashId: hashId,
30038
+ layer: layer,
30039
+ path: path.join('-')
30040
+ }));
29895
30041
  var styleId = uniqueHash(fullPath, styleStr); // Clear animation statistics
29896
- // Clear animation statistics
29897
30042
 
29898
30043
  animationStatistics = {};
29899
30044
 
@@ -29903,21 +30048,19 @@ function useStyleRegister(info, styleFn) {
29903
30048
  prepend: 'queue'
29904
30049
  });
29905
30050
  style[CSS_IN_JS_INSTANCE] = CSS_IN_JS_INSTANCE_ID; // Used for `useCacheToken` to remove on batch when token removed
29906
- // Used for `useCacheToken` to remove on batch when token removed
29907
30051
 
29908
30052
  style.setAttribute(StyleContext_ATTR_TOKEN, tokenKey); // Dev usage to find which cache path made this easily
29909
- // Dev usage to find which cache path made this easily
29910
30053
 
29911
30054
  if (false) {}
29912
30055
  }
29913
30056
 
29914
30057
  return [styleStr, tokenKey, styleId];
29915
30058
  }, // Remove cache if no need
29916
- function (_ref) {
29917
- var _ref2 = slicedToArray_slicedToArray(_ref, 3),
29918
- styleId = _ref2[2];
30059
+ function (_ref2, fromHMR) {
30060
+ var _ref3 = slicedToArray_slicedToArray(_ref2, 3),
30061
+ styleId = _ref3[2];
29919
30062
 
29920
- if (autoClear && isClientSide) {
30063
+ if ((fromHMR || autoClear) && isClientSide) {
29921
30064
  removeCSS(styleId, {
29922
30065
  mark: StyleContext_ATTR_MARK
29923
30066
  });
@@ -29966,7 +30109,7 @@ function extractStyle(cache) {
29966
30109
  });
29967
30110
  return styleText;
29968
30111
  }
29969
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/useCacheToken.js
30112
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js
29970
30113
 
29971
30114
 
29972
30115
 
@@ -32324,25 +32467,6 @@ var tryParse = function tryParse(v) {
32324
32467
  return isNaN(n) ? v : n;
32325
32468
  };
32326
32469
 
32327
- var operatorResMap = {
32328
- '>': [1],
32329
- '>=': [0, 1],
32330
- '=': [0],
32331
- '<=': [-1, 0],
32332
- '<': [-1]
32333
- };
32334
- var allowedOperators = Object.keys(operatorResMap);
32335
-
32336
- var assertValidOperator = function assertValidOperator(op) {
32337
- if (typeof op !== 'string') {
32338
- throw new TypeError("Invalid operator type, expected string but got ".concat(_typeof(op)));
32339
- }
32340
-
32341
- if (allowedOperators.indexOf(op) === -1) {
32342
- throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
32343
- }
32344
- };
32345
-
32346
32470
  var forceType = function forceType(a, b) {
32347
32471
  return typeof_typeof(a) !== typeof_typeof(b) ? [String(a), String(b)] : [a, b];
32348
32472
  };
@@ -32411,91 +32535,6 @@ var compareVersions = function compareVersions(v1, v2) {
32411
32535
 
32412
32536
  return 0;
32413
32537
  };
32414
- /**
32415
- * Validate [semver](https://semver.org/) version strings.
32416
- *
32417
- * @param version Version number to validate
32418
- * @returns `true` if the version number is a valid semver version number, `false` otherwise.
32419
- *
32420
- * @example
32421
- * ```
32422
- * validate('1.0.0-rc.1'); // return true
32423
- * validate('1.0-rc.1'); // return false
32424
- * validate('foo'); // return false
32425
- * ```
32426
- */
32427
-
32428
- var validate = function validate(version) {
32429
- return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
32430
- };
32431
- /**
32432
- * Compare [semver](https://semver.org/) version strings using the specified operator.
32433
- *
32434
- * @param v1 First version to compare
32435
- * @param v2 Second version to compare
32436
- * @param operator Allowed arithmetic operator to use
32437
- * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
32438
- *
32439
- * @example
32440
- * ```
32441
- * compare('10.1.8', '10.0.4', '>'); // return true
32442
- * compare('10.0.1', '10.0.1', '='); // return true
32443
- * compare('10.1.1', '10.2.2', '<'); // return true
32444
- * compare('10.1.1', '10.2.2', '<='); // return true
32445
- * compare('10.1.1', '10.2.2', '>='); // return false
32446
- * ```
32447
- */
32448
-
32449
- var compare = function compare(v1, v2, operator) {
32450
- // validate input operator
32451
- assertValidOperator(operator); // since result of compareVersions can only be -1 or 0 or 1
32452
- // a simple map can be used to replace switch
32453
-
32454
- var res = compareVersions(v1, v2);
32455
- return operatorResMap[operator].includes(res);
32456
- };
32457
- /**
32458
- * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
32459
- *
32460
- * @param version Version number to match
32461
- * @param range Range pattern for version
32462
- * @returns `true` if the version number is within the range, `false` otherwise.
32463
- *
32464
- * @example
32465
- * ```
32466
- * satisfies('1.1.0', '^1.0.0'); // return true
32467
- * satisfies('1.1.0', '~1.0.0'); // return false
32468
- * ```
32469
- */
32470
-
32471
- var satisfies = function satisfies(version, range) {
32472
- // if no range operator then "="
32473
- var m = range.match(/^([<>=~^]+)/);
32474
- var op = m ? m[1] : '='; // if gt/lt/eq then operator compare
32475
-
32476
- if (op !== '^' && op !== '~') return compare(version, range, op); // else range of either "~" or "^" is assumed
32477
-
32478
- var _validateAndParse = validateAndParse(version),
32479
- _validateAndParse2 = _slicedToArray(_validateAndParse, 3),
32480
- v1 = _validateAndParse2[0],
32481
- v2 = _validateAndParse2[1],
32482
- v3 = _validateAndParse2[2];
32483
-
32484
- var _validateAndParse3 = validateAndParse(range),
32485
- _validateAndParse4 = _slicedToArray(_validateAndParse3, 3),
32486
- r1 = _validateAndParse4[0],
32487
- r2 = _validateAndParse4[1],
32488
- r3 = _validateAndParse4[2];
32489
-
32490
- if (compareStrings(v1, r1) !== 0) return false;
32491
-
32492
- if (op === '^') {
32493
- return compareSegments([v2, v3], [r2, r3]) >= 0;
32494
- }
32495
-
32496
- if (compareStrings(v2, r2) !== 0) return false;
32497
- return compareStrings(v3, r3) >= 0;
32498
- };
32499
32538
  ;// CONCATENATED MODULE: ./packages/utils/es/components/FilterDropdown/style.js
32500
32539
 
32501
32540
 
@@ -32888,7 +32927,7 @@ var LabelIconTip_style_genProStyle = function genProStyle(token) {
32888
32927
  marginInlineStart: '4px',
32889
32928
  cursor: 'pointer',
32890
32929
  '&:hover': {
32891
- color: token.colorPrimaryBgHover
32930
+ color: token.colorPrimary
32892
32931
  }
32893
32932
  },
32894
32933
  '&-title': {
@@ -33042,6 +33081,15 @@ function isPlainObject(o) {
33042
33081
 
33043
33082
  return true;
33044
33083
  }
33084
+ /**
33085
+ * 一个比较hack的moment判断工具
33086
+ * @param value
33087
+ * @returns
33088
+ */
33089
+
33090
+ var isMoment = function isMoment(value) {
33091
+ return !!(value === null || value === void 0 ? void 0 : value._isAMomentObject);
33092
+ };
33045
33093
  /**
33046
33094
  * 根据不同的格式转化 dayjs
33047
33095
  *
@@ -33050,12 +33098,13 @@ function isPlainObject(o) {
33050
33098
  * @param valueType
33051
33099
  */
33052
33100
 
33101
+
33053
33102
  var convertMoment = function convertMoment(value, dateFormatter, valueType) {
33054
33103
  if (!dateFormatter) {
33055
33104
  return value;
33056
33105
  }
33057
33106
 
33058
- if (dayjs_min_default().isDayjs(value)) {
33107
+ if (dayjs_min_default().isDayjs(value) || isMoment(value)) {
33059
33108
  if (dateFormatter === 'number') {
33060
33109
  return value.valueOf();
33061
33110
  }
@@ -33114,7 +33163,8 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
33114
33163
 
33115
33164
  if (isPlainObject(itemValue) && // 不是数组
33116
33165
  !Array.isArray(itemValue) && // 不是 dayjs
33117
- !dayjs_min_default().isDayjs(itemValue)) {
33166
+ !dayjs_min_default().isDayjs(itemValue) && // 不是 moment
33167
+ !isMoment(itemValue)) {
33118
33168
  tmpValue[key] = conversionMomentValue(itemValue, dateFormatter, valueTypeMap, omitNil, [key]);
33119
33169
  return;
33120
33170
  } // 处理 FormList 的 value
@@ -33122,7 +33172,7 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
33122
33172
 
33123
33173
  if (Array.isArray(itemValue)) {
33124
33174
  tmpValue[key] = itemValue.map(function (arrayValue, index) {
33125
- if (dayjs_min_default().isDayjs(arrayValue)) {
33175
+ if (dayjs_min_default().isDayjs(arrayValue) || isMoment(itemValue)) {
33126
33176
  return convertMoment(arrayValue, dateFormat || dateFormatter, valueType);
33127
33177
  }
33128
33178
 
@@ -34235,8 +34285,22 @@ var omitUndefinedAndEmptyArr = function omitUndefinedAndEmptyArr(obj) {
34235
34285
  ;// CONCATENATED MODULE: ./packages/utils/es/parseValueToMoment/index.js
34236
34286
 
34237
34287
 
34288
+ /**
34289
+ * 一个比较hack的moment判断工具
34290
+ * @param value
34291
+ * @returns
34292
+ */
34293
+
34294
+ var parseValueToMoment_isMoment = function isMoment(value) {
34295
+ return !!(value === null || value === void 0 ? void 0 : value._isAMomentObject);
34296
+ };
34297
+
34238
34298
  var parseValueToDay = function parseValueToDay(value, formatter) {
34239
- if (isNil(value) || dayjs_min_default().isDayjs(value)) {
34299
+ if (isNil(value) || dayjs_min_default().isDayjs(value) || parseValueToMoment_isMoment(value)) {
34300
+ if (parseValueToMoment_isMoment(value)) {
34301
+ return dayjs_min_default()(value);
34302
+ }
34303
+
34240
34304
  return value;
34241
34305
  }
34242
34306
 
@@ -36751,6 +36815,108 @@ var Loading = function Loading(props) {
36751
36815
  };
36752
36816
 
36753
36817
  /* harmony default export */ var components_Loading = (Loading);
36818
+ // EXTERNAL MODULE: ./node_modules/rc-util/lib/Children/toArray.js
36819
+ var Children_toArray = __webpack_require__(5994);
36820
+ ;// CONCATENATED MODULE: ./packages/card/es/components/TabPane/index.js
36821
+
36822
+
36823
+ var TabPane_excluded = ["tab", "children"],
36824
+ TabPane_excluded2 = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
36825
+
36826
+
36827
+
36828
+
36829
+
36830
+
36831
+
36832
+
36833
+ function filter(items) {
36834
+ return items.filter(function (item) {
36835
+ return item;
36836
+ });
36837
+ }
36838
+
36839
+ function useLegacyItems(items, children, tabs) {
36840
+ if (items) {
36841
+ return items.map(function (item) {
36842
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
36843
+ children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabs === null || tabs === void 0 ? void 0 : tabs.cardProps), {}, {
36844
+ children: item.children
36845
+ }))
36846
+ });
36847
+ });
36848
+ }
36849
+
36850
+ (0,lib_warning.noteOnce)(!tabs, 'Tabs.TabPane is deprecated. Please use `items` directly.');
36851
+ var childrenItems = (0,Children_toArray/* default */.Z)(children).map(function (node) {
36852
+ if ( /*#__PURE__*/external_React_default().isValidElement(node)) {
36853
+ var key = node.key,
36854
+ props = node.props;
36855
+
36856
+ var _ref = props || {},
36857
+ tab = _ref.tab,
36858
+ tempChild = _ref.children,
36859
+ restProps = objectWithoutProperties_objectWithoutProperties(_ref, TabPane_excluded);
36860
+
36861
+ var item = objectSpread2_objectSpread2(objectSpread2_objectSpread2({
36862
+ key: String(key)
36863
+ }, restProps), {}, {
36864
+ children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabs === null || tabs === void 0 ? void 0 : tabs.cardProps), {}, {
36865
+ children: tempChild
36866
+ })),
36867
+ label: tab
36868
+ });
36869
+
36870
+ return item;
36871
+ }
36872
+
36873
+ return null;
36874
+ });
36875
+ return filter(childrenItems);
36876
+ }
36877
+ /**
36878
+ * @deprecated ProComponets 3.0
36879
+ */
36880
+
36881
+ var TabPane = function TabPane(props) {
36882
+ var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
36883
+ getPrefixCls = _useContext.getPrefixCls; // 如果是antd v5 则返回为空
36884
+
36885
+
36886
+ if (external_antd_.version.startsWith('5')) {
36887
+ return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
36888
+ } else {
36889
+ var key = props.key,
36890
+ tab = props.tab,
36891
+ tabKey = props.tabKey,
36892
+ disabled = props.disabled,
36893
+ destroyInactiveTabPane = props.destroyInactiveTabPane,
36894
+ children = props.children,
36895
+ className = props.className,
36896
+ style = props.style,
36897
+ cardProps = props.cardProps,
36898
+ rest = objectWithoutProperties_objectWithoutProperties(props, TabPane_excluded2);
36899
+
36900
+ var prefixCls = getPrefixCls('pro-card-tabpane');
36901
+ var tabPaneClassName = classnames_default()(prefixCls, className);
36902
+ return (0,jsx_runtime.jsx)(external_antd_.Tabs.TabPane, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
36903
+ tabKey: tabKey,
36904
+ tab: tab,
36905
+ className: tabPaneClassName,
36906
+ style: style,
36907
+ disabled: disabled,
36908
+ destroyInactiveTabPane: destroyInactiveTabPane
36909
+ }, rest), {}, {
36910
+ children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, cardProps), {}, {
36911
+ children: children
36912
+ }))
36913
+ }), key);
36914
+ }
36915
+ };
36916
+
36917
+ if (false) {}
36918
+
36919
+ /* harmony default export */ var components_TabPane = (TabPane);
36754
36920
  ;// CONCATENATED MODULE: ./packages/card/es/components/Card/style.js
36755
36921
 
36756
36922
 
@@ -36888,7 +37054,8 @@ var genProCardStyle = function genProCardStyle(token) {
36888
37054
  }), defineProperty_defineProperty(_objectSpread2, "".concat(componentCls, "-title"), {
36889
37055
  color: token.colorText,
36890
37056
  fontWeight: 500,
36891
- fontSize: token.fontSizeLG
37057
+ fontSize: token.fontSizeLG,
37058
+ lineHeight: token.lineHeight
36892
37059
  }), defineProperty_defineProperty(_objectSpread2, "".concat(componentCls, "-extra"), {
36893
37060
  color: token.colorText
36894
37061
  }), defineProperty_defineProperty(_objectSpread2, "".concat(componentCls, "-type-inner"), defineProperty_defineProperty({}, "".concat(componentCls, "-header"), {
@@ -36907,7 +37074,7 @@ var genProCardStyle = function genProCardStyle(token) {
36907
37074
  boxSizing: 'border-box',
36908
37075
  height: '100%',
36909
37076
  paddingInline: token.paddingLG,
36910
- paddingBlock: token.paddingLG,
37077
+ paddingBlock: token.padding,
36911
37078
  '&-center': {
36912
37079
  display: 'flex',
36913
37080
  alignItems: 'center',
@@ -36992,9 +37159,10 @@ var Card_excluded = ["className", "style", "bodyStyle", "headStyle", "title", "s
36992
37159
 
36993
37160
 
36994
37161
 
37162
+
36995
37163
  var useBreakpoint = external_antd_.Grid.useBreakpoint;
36996
37164
  var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref) {
36997
- var _tabs$items, _classNames2, _classNames3, _classNames4;
37165
+ var _classNames2, _classNames3, _classNames4;
36998
37166
 
36999
37167
  var className = props.className,
37000
37168
  style = props.style,
@@ -37058,13 +37226,7 @@ var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref
37058
37226
  var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs']; // 修改组合传给antd tabs的参数
37059
37227
  // @ts-ignore
37060
37228
 
37061
- var ModifyTabItemsContant = tabs === null || tabs === void 0 ? void 0 : (_tabs$items = tabs.items) === null || _tabs$items === void 0 ? void 0 : _tabs$items.map(function (item) {
37062
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
37063
- children: (0,jsx_runtime.jsx)(Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabs === null || tabs === void 0 ? void 0 : tabs.cardProps), {}, {
37064
- children: item.children
37065
- }))
37066
- });
37067
- });
37229
+ var ModifyTabItemsContant = useLegacyItems(tabs === null || tabs === void 0 ? void 0 : tabs.items, children, tabs);
37068
37230
  /**
37069
37231
  * 根据响应式获取 gutter, 参考 antd 实现
37070
37232
  *
@@ -37507,55 +37669,6 @@ StatisticCard.Operation = Operation;
37507
37669
  StatisticCard.isProCard = true;
37508
37670
  StatisticCard.Group = StatisticCard_Group;
37509
37671
  /* harmony default export */ var components_StatisticCard = (StatisticCard);
37510
- ;// CONCATENATED MODULE: ./packages/card/es/components/TabPane/index.js
37511
-
37512
-
37513
- var TabPane_excluded = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
37514
-
37515
-
37516
-
37517
-
37518
-
37519
-
37520
- var TabPane = function TabPane(props) {
37521
- var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
37522
- getPrefixCls = _useContext.getPrefixCls; // 如果是antd v5 则返回为空
37523
-
37524
-
37525
- if (external_antd_.version.startsWith('5')) {
37526
- return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
37527
- } else {
37528
- var key = props.key,
37529
- tab = props.tab,
37530
- tabKey = props.tabKey,
37531
- disabled = props.disabled,
37532
- destroyInactiveTabPane = props.destroyInactiveTabPane,
37533
- children = props.children,
37534
- className = props.className,
37535
- style = props.style,
37536
- cardProps = props.cardProps,
37537
- rest = objectWithoutProperties_objectWithoutProperties(props, TabPane_excluded);
37538
-
37539
- var prefixCls = getPrefixCls('pro-card-tabpane');
37540
- var tabPaneClassName = classnames_default()(prefixCls, className);
37541
- return (0,jsx_runtime.jsx)(external_antd_.Tabs.TabPane, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
37542
- tabKey: tabKey,
37543
- tab: tab,
37544
- className: tabPaneClassName,
37545
- style: style,
37546
- disabled: disabled,
37547
- destroyInactiveTabPane: destroyInactiveTabPane
37548
- }, rest), {}, {
37549
- children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, cardProps), {}, {
37550
- children: children
37551
- }))
37552
- }), key);
37553
- }
37554
- };
37555
-
37556
- if (false) {}
37557
-
37558
- /* harmony default export */ var components_TabPane = (TabPane);
37559
37672
  ;// CONCATENATED MODULE: ./packages/card/es/ProCard.js
37560
37673
 
37561
37674
 
@@ -43509,14 +43622,14 @@ var useFieldFetchData = function useFieldFetchData(props) {
43509
43622
  var cacheForSwr = props.cacheForSwr,
43510
43623
  fieldProps = props.fieldProps;
43511
43624
 
43512
- var _useState = (0,external_React_.useState)(props.defaultKeyWords),
43513
- _useState2 = slicedToArray_slicedToArray(_useState, 2),
43514
- keyWords = _useState2[0],
43515
- setKeyWords = _useState2[1];
43625
+ var _useSafeState = useSafeState(props.defaultKeyWords),
43626
+ _useSafeState2 = slicedToArray_slicedToArray(_useSafeState, 2),
43627
+ keyWords = _useSafeState2[0],
43628
+ setKeyWords = _useSafeState2[1];
43516
43629
  /** Key 是用来缓存请求的,如果不在是有问题 */
43517
43630
 
43518
43631
 
43519
- var _useState3 = (0,external_React_.useState)(function () {
43632
+ var _useState = (0,external_React_.useState)(function () {
43520
43633
  if (props.proFieldKey) {
43521
43634
  return props.proFieldKey.toString();
43522
43635
  }
@@ -43527,8 +43640,8 @@ var useFieldFetchData = function useFieldFetchData(props) {
43527
43640
 
43528
43641
  return 'no-fetch';
43529
43642
  }),
43530
- _useState4 = slicedToArray_slicedToArray(_useState3, 1),
43531
- cacheKey = _useState4[0];
43643
+ _useState2 = slicedToArray_slicedToArray(_useState, 1),
43644
+ cacheKey = _useState2[0];
43532
43645
 
43533
43646
  var proFieldKeyRef = (0,external_React_.useRef)(cacheKey);
43534
43647
  var getOptionsFormValueEnum = (0,external_React_.useCallback)(function (coverValueEnum) {
@@ -46727,8 +46840,7 @@ var ColorPicker_excluded = ["mode", "popoverProps"];
46727
46840
 
46728
46841
  var DEFAULT_COLORS = ['#FF9D4E', '#5BD8A6', '#5B8FF9', '#F7664E', '#FF86B7', '#2B9E9D', '#9270CA', '#6DC8EC', '#667796', '#F6BD16' // 9 - 黄色
46729
46842
  ];
46730
-
46731
- var ColorPicker = function ColorPicker(_ref) {
46843
+ var ColorPicker = /*#__PURE__*/external_React_default().forwardRef(function (_ref, ref) {
46732
46844
  var mode = _ref.mode,
46733
46845
  popoverProps = _ref.popoverProps,
46734
46846
  rest = objectWithoutProperties_objectWithoutProperties(_ref, ColorPicker_excluded);
@@ -46765,6 +46877,8 @@ var ColorPicker = function ColorPicker(_ref) {
46765
46877
  })
46766
46878
  });
46767
46879
 
46880
+ (0,external_React_.useImperativeHandle)(ref, function () {});
46881
+
46768
46882
  if (mode === 'read') {
46769
46883
  return readDom;
46770
46884
  }
@@ -46799,7 +46913,7 @@ var ColorPicker = function ColorPicker(_ref) {
46799
46913
  }),
46800
46914
  children: readDom
46801
46915
  }));
46802
- };
46916
+ });
46803
46917
  /**
46804
46918
  * 颜色组件
46805
46919
  *
@@ -46808,8 +46922,7 @@ var ColorPicker = function ColorPicker(_ref) {
46808
46922
  * moneySymbol?: string; }
46809
46923
  */
46810
46924
 
46811
-
46812
- var FieldColorPicker = function FieldColorPicker(_ref3) {
46925
+ var FieldColorPicker = function FieldColorPicker(_ref3, ref) {
46813
46926
  var text = _ref3.text,
46814
46927
  type = _ref3.mode,
46815
46928
  render = _ref3.render,
@@ -46819,7 +46932,8 @@ var FieldColorPicker = function FieldColorPicker(_ref3) {
46819
46932
  if (type === 'read') {
46820
46933
  var dom = (0,jsx_runtime.jsx)(ColorPicker, {
46821
46934
  value: text,
46822
- mode: "read"
46935
+ mode: "read",
46936
+ ref: ref
46823
46937
  });
46824
46938
 
46825
46939
  if (render) {
@@ -46832,7 +46946,9 @@ var FieldColorPicker = function FieldColorPicker(_ref3) {
46832
46946
  }
46833
46947
 
46834
46948
  if (type === 'edit' || type === 'update') {
46835
- var _dom = (0,jsx_runtime.jsx)(ColorPicker, objectSpread2_objectSpread2({}, fieldProps));
46949
+ var _dom = (0,jsx_runtime.jsx)(ColorPicker, objectSpread2_objectSpread2({
46950
+ ref: ref
46951
+ }, fieldProps));
46836
46952
 
46837
46953
  if (renderFormItem) {
46838
46954
  return renderFormItem(text, objectSpread2_objectSpread2({
@@ -46846,7 +46962,7 @@ var FieldColorPicker = function FieldColorPicker(_ref3) {
46846
46962
  return null;
46847
46963
  };
46848
46964
 
46849
- /* harmony default export */ var components_ColorPicker = (FieldColorPicker);
46965
+ /* harmony default export */ var components_ColorPicker = (/*#__PURE__*/external_React_default().forwardRef(FieldColorPicker));
46850
46966
  // EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekOfYear.js
46851
46967
  var weekOfYear = __webpack_require__(9855);
46852
46968
  var weekOfYear_default = /*#__PURE__*/__webpack_require__.n(weekOfYear);
@@ -48202,7 +48318,7 @@ var FieldRadio = function FieldRadio(_ref, ref) {
48202
48318
  }); // css
48203
48319
 
48204
48320
  var _useStyle = useStyle('FieldRadioRadio', function (token) {
48205
- return defineProperty_defineProperty({}, ".".concat(layoutClassName, "-horizontal"), defineProperty_defineProperty({}, "".concat(token.antCls, "-radio-wrapper"), {
48321
+ return defineProperty_defineProperty({}, ".".concat(layoutClassName, "-vertical"), defineProperty_defineProperty({}, "".concat(token.antCls, "-radio-wrapper"), {
48206
48322
  display: 'block',
48207
48323
  marginInlineEnd: 0
48208
48324
  }));
@@ -48243,7 +48359,7 @@ var FieldRadio = function FieldRadio(_ref, ref) {
48243
48359
  ref: radioRef,
48244
48360
  optionType: radioType
48245
48361
  }, rest.fieldProps), {}, {
48246
- className: classnames_default()((_rest$fieldProps = rest.fieldProps) === null || _rest$fieldProps === void 0 ? void 0 : _rest$fieldProps.className, hashId, "".concat(layoutClassName, "-").concat(rest.fieldProps.layout || 'vertical')),
48362
+ className: classnames_default()((_rest$fieldProps = rest.fieldProps) === null || _rest$fieldProps === void 0 ? void 0 : _rest$fieldProps.className, hashId, "".concat(layoutClassName, "-").concat(rest.fieldProps.layout || 'horizontal')),
48247
48363
  options: options
48248
48364
  })));
48249
48365
 
@@ -48504,6 +48620,100 @@ var Second = function Second(_ref, ref) {
48504
48620
  };
48505
48621
 
48506
48622
  /* harmony default export */ var components_Second = (/*#__PURE__*/external_React_default().forwardRef(Second));
48623
+ ;// CONCATENATED MODULE: ./packages/field/es/components/Segmented/index.js
48624
+
48625
+
48626
+
48627
+
48628
+ var Segmented_excluded = ["mode", "render", "renderFormItem", "fieldProps", "emptyText"];
48629
+
48630
+
48631
+
48632
+
48633
+ /**
48634
+ * Segmented https://ant.design/components/segmented-cn/
48635
+ *
48636
+ * @param
48637
+ */
48638
+
48639
+ var FieldSegmented = function FieldSegmented(_ref, ref) {
48640
+ var mode = _ref.mode,
48641
+ render = _ref.render,
48642
+ renderFormItem = _ref.renderFormItem,
48643
+ fieldProps = _ref.fieldProps,
48644
+ _ref$emptyText = _ref.emptyText,
48645
+ emptyText = _ref$emptyText === void 0 ? '-' : _ref$emptyText,
48646
+ rest = objectWithoutProperties_objectWithoutProperties(_ref, Segmented_excluded);
48647
+
48648
+ var inputRef = (0,external_React_.useRef)();
48649
+
48650
+ var _useFieldFetchData = useFieldFetchData(rest),
48651
+ _useFieldFetchData2 = slicedToArray_slicedToArray(_useFieldFetchData, 3),
48652
+ loading = _useFieldFetchData2[0],
48653
+ options = _useFieldFetchData2[1],
48654
+ _fetchData = _useFieldFetchData2[2];
48655
+
48656
+ (0,external_React_.useImperativeHandle)(ref, function () {
48657
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, inputRef.current || {}), {}, {
48658
+ fetchData: function fetchData() {
48659
+ return _fetchData();
48660
+ }
48661
+ });
48662
+ });
48663
+
48664
+ if (loading) {
48665
+ return (0,jsx_runtime.jsx)(external_antd_.Spin, {
48666
+ size: "small"
48667
+ });
48668
+ }
48669
+
48670
+ if (mode === 'read') {
48671
+ var optionsValueEnum = (options === null || options === void 0 ? void 0 : options.length) ? options === null || options === void 0 ? void 0 : options.reduce(function (pre, cur) {
48672
+ var _cur$value;
48673
+
48674
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, pre), {}, defineProperty_defineProperty({}, (_cur$value = cur.value) !== null && _cur$value !== void 0 ? _cur$value : '', cur.label));
48675
+ }, {}) : undefined;
48676
+
48677
+ var dom = (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
48678
+ children: proFieldParsingText(rest.text, ObjToMap(rest.valueEnum || optionsValueEnum))
48679
+ });
48680
+
48681
+ if (render) {
48682
+ var _render;
48683
+
48684
+ return (_render = render(rest.text, objectSpread2_objectSpread2({
48685
+ mode: mode
48686
+ }, fieldProps), (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
48687
+ children: dom
48688
+ }))) !== null && _render !== void 0 ? _render : emptyText;
48689
+ }
48690
+
48691
+ return dom;
48692
+ }
48693
+
48694
+ if (mode === 'edit' || mode === 'update') {
48695
+ var _dom = (0,jsx_runtime.jsx)(external_antd_.Segmented, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
48696
+ ref: inputRef,
48697
+ allowClear: true
48698
+ }, fieldProps), {}, {
48699
+ options: options
48700
+ }));
48701
+
48702
+ if (renderFormItem) {
48703
+ return renderFormItem(rest.text, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
48704
+ mode: mode
48705
+ }, fieldProps), {}, {
48706
+ options: options
48707
+ }), _dom);
48708
+ }
48709
+
48710
+ return _dom;
48711
+ }
48712
+
48713
+ return null;
48714
+ };
48715
+
48716
+ /* harmony default export */ var Segmented = (/*#__PURE__*/external_React_default().forwardRef(FieldSegmented));
48507
48717
  ;// CONCATENATED MODULE: ./packages/field/es/components/Slider/index.js
48508
48718
 
48509
48719
 
@@ -49318,6 +49528,7 @@ var es_excluded = ["text", "valueType", "mode", "onChange", "renderFormItem", "v
49318
49528
 
49319
49529
 
49320
49530
 
49531
+
49321
49532
 
49322
49533
 
49323
49534
  dayjs_min_default().extend((weekday_default()));
@@ -49738,6 +49949,12 @@ var defaultRenderText = function defaultRenderText(dataValue, valueType, props,
49738
49949
  }, props));
49739
49950
  }
49740
49951
 
49952
+ if (valueType === 'segmented') {
49953
+ return (0,jsx_runtime.jsx)(Segmented, objectSpread2_objectSpread2({
49954
+ text: dataValue
49955
+ }, props));
49956
+ }
49957
+
49741
49958
  return (0,jsx_runtime.jsx)(Text, objectSpread2_objectSpread2({
49742
49959
  text: dataValue
49743
49960
  }, props));
@@ -50468,8 +50685,6 @@ var PlusOutlined_PlusOutlined = function PlusOutlined(props, ref) {
50468
50685
 
50469
50686
  PlusOutlined_PlusOutlined.displayName = 'PlusOutlined';
50470
50687
  /* harmony default export */ var icons_PlusOutlined = (/*#__PURE__*/external_React_.forwardRef(PlusOutlined_PlusOutlined));
50471
- // EXTERNAL MODULE: ./node_modules/rc-util/lib/Children/toArray.js
50472
- var Children_toArray = __webpack_require__(5994);
50473
50688
  ;// CONCATENATED MODULE: ./packages/form/es/components/List/ListItem.js
50474
50689
 
50475
50690
 
@@ -52350,10 +52565,22 @@ function DrawerForm(_ref) {
52350
52565
  }());
52351
52566
  var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
52352
52567
  open: open,
52353
- onOpenChange: onVisibleChange
52568
+ onOpenChange: onVisibleChange,
52569
+ afterOpenChange: function afterOpenChange(e) {
52570
+ var _drawerProps$afterOpe;
52571
+
52572
+ if (!e) resetFields();
52573
+ drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterOpe = drawerProps.afterOpenChange) === null || _drawerProps$afterOpe === void 0 ? void 0 : _drawerProps$afterOpe.call(drawerProps, e);
52574
+ }
52354
52575
  } : {
52355
52576
  visible: open,
52356
- onVisibleChange: onVisibleChange
52577
+ onVisibleChange: onVisibleChange,
52578
+ afterVisibleChange: function afterVisibleChange(e) {
52579
+ var _drawerProps$afterOpe2;
52580
+
52581
+ if (!e) resetFields();
52582
+ drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterOpe2 = drawerProps.afterOpenChange) === null || _drawerProps$afterOpe2 === void 0 ? void 0 : _drawerProps$afterOpe2.call(drawerProps, e);
52583
+ }
52357
52584
  };
52358
52585
  return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
52359
52586
  children: [(0,jsx_runtime.jsx)(external_antd_.Drawer, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
@@ -52369,20 +52596,6 @@ function DrawerForm(_ref) {
52369
52596
  drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$onClose2 = drawerProps.onClose) === null || _drawerProps$onClose2 === void 0 ? void 0 : _drawerProps$onClose2.call(drawerProps, e);
52370
52597
  resetFields();
52371
52598
  },
52372
- afterOpenChange: function afterOpenChange(e) {
52373
- var _drawerProps$afterOpe;
52374
-
52375
- resetFields();
52376
- drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterOpe = drawerProps.afterOpenChange) === null || _drawerProps$afterOpe === void 0 ? void 0 : _drawerProps$afterOpe.call(drawerProps, e);
52377
- },
52378
- //@ts-expect-error
52379
- afterVisibleChange: function afterVisibleChange(e) {
52380
- var _drawerProps$afterVis;
52381
-
52382
- if (!e) resetFields(); //@ts-expect-error
52383
-
52384
- drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterVis = drawerProps.afterVisibleChange) === null || _drawerProps$afterVis === void 0 ? void 0 : _drawerProps$afterVis.call(drawerProps, e);
52385
- },
52386
52599
  footer: rest.submitter !== false && (0,jsx_runtime.jsx)("div", {
52387
52600
  ref: footerDomRef,
52388
52601
  style: {
@@ -55741,7 +55954,7 @@ var field = function field(item, _ref) {
55741
55954
  }
55742
55955
 
55743
55956
  return /*#__PURE__*/(0,external_React_.createElement)(components_Field, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formFieldProps), {}, {
55744
- key: "".concat(item.key, "-").concat(item.index),
55957
+ key: [item.key, item.index || 0].join('-'),
55745
55958
  renderFormItem: renderFormItem
55746
55959
  }));
55747
55960
  };
@@ -56033,6 +56246,41 @@ function BetaSchemaForm(props) {
56033
56246
  }
56034
56247
 
56035
56248
  /* harmony default export */ var SchemaForm = (BetaSchemaForm);
56249
+ ;// CONCATENATED MODULE: ./packages/form/es/components/Segmented/index.js
56250
+
56251
+
56252
+ var components_Segmented_excluded = ["fieldProps", "request", "params", "proFieldProps"];
56253
+
56254
+
56255
+
56256
+ /**
56257
+ * 分段控制器
56258
+ *
56259
+ * @param
56260
+ */
56261
+
56262
+ var ProFormSegmented = function ProFormSegmented(_ref, ref) {
56263
+ var fieldProps = _ref.fieldProps,
56264
+ request = _ref.request,
56265
+ params = _ref.params,
56266
+ proFieldProps = _ref.proFieldProps,
56267
+ rest = objectWithoutProperties_objectWithoutProperties(_ref, components_Segmented_excluded);
56268
+
56269
+ return (0,jsx_runtime.jsx)(components_Field, objectSpread2_objectSpread2({
56270
+ valueType: "segmented",
56271
+ fieldProps: fieldProps,
56272
+ ref: ref,
56273
+ request: request,
56274
+ params: params,
56275
+ filedConfig: {
56276
+ customLightMode: true
56277
+ },
56278
+ proFieldProps: proFieldProps
56279
+ }, rest));
56280
+ };
56281
+
56282
+ var WarpProFormSegmented = /*#__PURE__*/external_React_default().forwardRef(ProFormSegmented);
56283
+ /* harmony default export */ var components_Segmented = (WarpProFormSegmented);
56036
56284
  ;// CONCATENATED MODULE: ./packages/form/es/components/Select/index.js
56037
56285
 
56038
56286
 
@@ -56741,6 +56989,7 @@ var ProFormUploadDragger = createField(BaseProFormUploadDragger, {
56741
56989
 
56742
56990
 
56743
56991
 
56992
+
56744
56993
 
56745
56994
 
56746
56995
  ;// CONCATENATED MODULE: ./packages/form/es/BaseForm/BaseForm.js
@@ -60304,8 +60553,8 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
60304
60553
  }))
60305
60554
  }, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
60306
60555
  marginBlockEnd: token.marginBlockPageContainerContent / 2,
60307
- paddingInlineStart: 40,
60308
- paddingInlineEnd: 40
60556
+ paddingInlineStart: token.marginInlinePageContainerContent,
60557
+ paddingInlineEnd: token.marginInlinePageContainerContent
60309
60558
  }, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
60310
60559
  marginBlock: token.marginBlockPageContainerContent / 3
60311
60560
  }))), defineProperty_defineProperty(_token$componentCls, '&-detail', defineProperty_defineProperty({
@@ -67481,7 +67730,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
67481
67730
  display: 'flex',
67482
67731
  flexDirection: 'column',
67483
67732
  width: '100%',
67484
- backgroundColor: 'transparent',
67733
+ backgroundColor: token.pageContainer.colorBgPageContainer || 'transparent',
67485
67734
  position: 'relative',
67486
67735
  '*': {
67487
67736
  boxSizing: 'border-box'
@@ -67970,6 +68219,12 @@ var BaseProLayout = function BaseProLayout(props) {
67970
68219
  }),
67971
68220
  _useState2 = slicedToArray_slicedToArray(_useState, 1),
67972
68221
  defaultId = _useState2[0];
68222
+ /**
68223
+ * 处理国际化相关 formatMessage
68224
+ * 如果有用户配置的以用户为主
68225
+ * 如果没有用自己实现的
68226
+ */
68227
+
67973
68228
 
67974
68229
  var formatMessage = (0,external_React_.useCallback)(function (_ref4) {
67975
68230
  var id = _ref4.id,
@@ -71011,7 +71266,7 @@ function container_useContainer() {
71011
71266
  try {
71012
71267
  storage === null || storage === void 0 ? void 0 : storage.removeItem(persistenceKey);
71013
71268
  } catch (error) {
71014
- console.error(error);
71269
+ console.warn(error);
71015
71270
  }
71016
71271
  }, [props.columnsState]);
71017
71272
  (0,external_React_.useEffect)(function () {
@@ -71032,7 +71287,8 @@ function container_useContainer() {
71032
71287
  try {
71033
71288
  storage === null || storage === void 0 ? void 0 : storage.setItem(persistenceKey, JSON.stringify(columnsMap));
71034
71289
  } catch (error) {
71035
- console.error(error);
71290
+ console.warn(error);
71291
+ clearPersistenceStorage();
71036
71292
  } // eslint-disable-next-line react-hooks/exhaustive-deps
71037
71293
 
71038
71294
  }, [(_props$columnsState8 = props.columnsState) === null || _props$columnsState8 === void 0 ? void 0 : _props$columnsState8.persistenceKey, columnsMap, (_props$columnsState9 = props.columnsState) === null || _props$columnsState9 === void 0 ? void 0 : _props$columnsState9.persistenceType]);
@@ -71200,7 +71456,7 @@ VerticalAlignBottomOutlined_VerticalAlignBottomOutlined.displayName = 'VerticalA
71200
71456
 
71201
71457
 
71202
71458
  var ColumnSetting_style_genProStyle = function genProStyle(token) {
71203
- var _overlay, _$concat2, _ref;
71459
+ var _$concat, _overlay, _$concat2, _ref;
71204
71460
 
71205
71461
  return _ref = {}, defineProperty_defineProperty(_ref, token.componentCls, {
71206
71462
  width: 'auto',
@@ -71224,19 +71480,16 @@ var ColumnSetting_style_genProStyle = function genProStyle(token) {
71224
71480
  backgroundColor: 'transparent'
71225
71481
  }), defineProperty_defineProperty(_overlay, "".concat(token.antCls, "-tree-draggable-icon"), {
71226
71482
  cursor: 'grab'
71227
- }), defineProperty_defineProperty(_overlay, "".concat(token.antCls, "-tree-treenode"), defineProperty_defineProperty({
71483
+ }), defineProperty_defineProperty(_overlay, "".concat(token.antCls, "-tree-treenode"), (_$concat = {
71228
71484
  alignItems: 'center',
71229
- '&:hover': defineProperty_defineProperty({
71230
- backgroundColor: token.controlItemBgActive
71231
- }, "".concat(token.componentCls, "-list-item-option"), {
71485
+ '&:hover': defineProperty_defineProperty({}, "".concat(token.componentCls, "-list-item-option"), {
71232
71486
  display: 'block'
71233
71487
  })
71234
- }, "".concat(token.antCls, "-tree-checkbox"), {
71235
- insetBlockStart: 0,
71236
- marginBlock: 0,
71237
- marginInline: 0,
71488
+ }, defineProperty_defineProperty(_$concat, "".concat(token.antCls, "-tree-checkbox"), {
71238
71489
  marginInlineEnd: '4px'
71239
- })), _overlay)
71490
+ }), defineProperty_defineProperty(_$concat, "".concat(token.antCls, "-tree-title"), {
71491
+ width: '100%'
71492
+ }), _$concat)), _overlay)
71240
71493
  }), defineProperty_defineProperty(_ref, "".concat(token.componentCls, "-list"), (_$concat2 = {
71241
71494
  display: 'flex',
71242
71495
  flexDirection: 'column',
@@ -71343,8 +71596,11 @@ var CheckboxListItem = function CheckboxListItem(_ref2) {
71343
71596
  fixed = _ref2.fixed;
71344
71597
  var intl = useIntl();
71345
71598
 
71599
+ var _useToken = useStyle_useToken(),
71600
+ hashId = _useToken.hashId;
71601
+
71346
71602
  var dom = (0,jsx_runtime.jsxs)("span", {
71347
- className: "".concat(className, "-list-item-option"),
71603
+ className: "".concat(className, "-list-item-option ").concat(hashId),
71348
71604
  children: [(0,jsx_runtime.jsx)(ToolTipIcon, {
71349
71605
  columnKey: columnKey,
71350
71606
  fixed: "left",
@@ -71367,9 +71623,9 @@ var CheckboxListItem = function CheckboxListItem(_ref2) {
71367
71623
  });
71368
71624
 
71369
71625
  return (0,jsx_runtime.jsxs)("span", {
71370
- className: "".concat(className, "-list-item"),
71626
+ className: "".concat(className, "-list-item ").concat(hashId),
71371
71627
  children: [(0,jsx_runtime.jsx)("div", {
71372
- className: "".concat(className, "-list-item-title"),
71628
+ className: "".concat(className, "-list-item-title ").concat(hashId),
71373
71629
  children: title
71374
71630
  }), !isLeaf ? dom : null]
71375
71631
  }, columnKey);
@@ -71388,6 +71644,9 @@ var CheckboxList = function CheckboxList(_ref3) {
71388
71644
  _ref3$listHeight = _ref3.listHeight,
71389
71645
  listHeight = _ref3$listHeight === void 0 ? 280 : _ref3$listHeight;
71390
71646
 
71647
+ var _useToken2 = useStyle_useToken(),
71648
+ hashId = _useToken2.hashId;
71649
+
71391
71650
  var _Container$useContain2 = container.useContainer(),
71392
71651
  columnsMap = _Container$useContain2.columnsMap,
71393
71652
  setColumnsMap = _Container$useContain2.setColumnsMap,
@@ -71398,6 +71657,7 @@ var CheckboxList = function CheckboxList(_ref3) {
71398
71657
  var treeDataConfig = (0,external_React_.useMemo)(function () {
71399
71658
  if (!show) return {};
71400
71659
  var checkedKeys = [];
71660
+ var treeMap = new Map();
71401
71661
 
71402
71662
  var loopData = function loopData(data, parentConfig) {
71403
71663
  return data.map(function (_ref4) {
@@ -71413,7 +71673,7 @@ var CheckboxList = function CheckboxList(_ref3) {
71413
71673
  show: true
71414
71674
  };
71415
71675
 
71416
- if (config.show !== false && (parentConfig === null || parentConfig === void 0 ? void 0 : parentConfig.show) !== false && !children) {
71676
+ if (config.show !== false && !children) {
71417
71677
  checkedKeys.push(columnKey);
71418
71678
  }
71419
71679
 
@@ -71427,16 +71687,26 @@ var CheckboxList = function CheckboxList(_ref3) {
71427
71687
  });
71428
71688
 
71429
71689
  if (children) {
71430
- item.children = loopData(children, config);
71690
+ var _item$children;
71691
+
71692
+ item.children = loopData(children, config); // 如果children 已经全部是show了,把自己也设置为show
71693
+
71694
+ if ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.every(function (childrenItem) {
71695
+ return checkedKeys === null || checkedKeys === void 0 ? void 0 : checkedKeys.includes(childrenItem.key);
71696
+ })) {
71697
+ checkedKeys.push(columnKey);
71698
+ }
71431
71699
  }
71432
71700
 
71701
+ treeMap.set(key, item);
71433
71702
  return item;
71434
71703
  });
71435
71704
  };
71436
71705
 
71437
71706
  return {
71438
71707
  list: loopData(list),
71439
- keys: checkedKeys
71708
+ keys: checkedKeys,
71709
+ map: treeMap
71440
71710
  };
71441
71711
  }, [columnsMap, list, show]);
71442
71712
  /** 移动到指定的位置 */
@@ -71476,12 +71746,28 @@ var CheckboxList = function CheckboxList(_ref3) {
71476
71746
  /** 选中反选功能 */
71477
71747
 
71478
71748
  var onCheckTree = useRefFunction(function (e) {
71479
- var columnKey = e.node.key;
71749
+ var newColumnMap = objectSpread2_objectSpread2({}, columnsMap);
71750
+
71751
+ var loopSetShow = function loopSetShow(key) {
71752
+ var _treeDataConfig$map, _treeDataConfig$map$g;
71753
+
71754
+ var newSetting = objectSpread2_objectSpread2({}, newColumnMap[key]);
71755
+
71756
+ newSetting.show = e.checked; // 如果含有子节点,也要选中
71757
+
71758
+ if ((_treeDataConfig$map = treeDataConfig.map) === null || _treeDataConfig$map === void 0 ? void 0 : (_treeDataConfig$map$g = _treeDataConfig$map.get(key)) === null || _treeDataConfig$map$g === void 0 ? void 0 : _treeDataConfig$map$g.children) {
71759
+ var _treeDataConfig$map2, _treeDataConfig$map2$, _treeDataConfig$map2$2;
71480
71760
 
71481
- var newSetting = objectSpread2_objectSpread2({}, columnsMap[columnKey]);
71761
+ (_treeDataConfig$map2 = treeDataConfig.map) === null || _treeDataConfig$map2 === void 0 ? void 0 : (_treeDataConfig$map2$ = _treeDataConfig$map2.get(key)) === null || _treeDataConfig$map2$ === void 0 ? void 0 : (_treeDataConfig$map2$2 = _treeDataConfig$map2$.children) === null || _treeDataConfig$map2$2 === void 0 ? void 0 : _treeDataConfig$map2$2.forEach(function (item) {
71762
+ return loopSetShow(item.key);
71763
+ });
71764
+ }
71482
71765
 
71483
- newSetting.show = e.checked;
71484
- setColumnsMap(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, columnsMap), {}, defineProperty_defineProperty({}, columnKey, newSetting)));
71766
+ newColumnMap[key] = newSetting;
71767
+ };
71768
+
71769
+ loopSetShow(e.node.key);
71770
+ setColumnsMap(objectSpread2_objectSpread2({}, newColumnMap));
71485
71771
  });
71486
71772
 
71487
71773
  if (!show) {
@@ -71511,6 +71797,7 @@ var CheckboxList = function CheckboxList(_ref3) {
71511
71797
  children: undefined
71512
71798
  });
71513
71799
 
71800
+ if (!node.title) return null;
71514
71801
  return (0,jsx_runtime.jsx)(CheckboxListItem, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
71515
71802
  className: className
71516
71803
  }, node), {}, {
@@ -71524,7 +71811,7 @@ var CheckboxList = function CheckboxList(_ref3) {
71524
71811
 
71525
71812
  return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
71526
71813
  children: [showTitle && (0,jsx_runtime.jsx)("span", {
71527
- className: "".concat(className, "-list-title"),
71814
+ className: "".concat(className, "-list-title ").concat(hashId),
71528
71815
  children: listTitle
71529
71816
  }), listDom]
71530
71817
  });
@@ -71536,6 +71823,10 @@ var GroupCheckboxList = function GroupCheckboxList(_ref5) {
71536
71823
  draggable = _ref5.draggable,
71537
71824
  checkable = _ref5.checkable,
71538
71825
  listsHeight = _ref5.listsHeight;
71826
+
71827
+ var _useToken3 = useStyle_useToken(),
71828
+ hashId = _useToken3.hashId;
71829
+
71539
71830
  var rightList = [];
71540
71831
  var leftList = [];
71541
71832
  var list = [];
@@ -71563,7 +71854,7 @@ var GroupCheckboxList = function GroupCheckboxList(_ref5) {
71563
71854
  var showRight = rightList && rightList.length > 0;
71564
71855
  var showLeft = leftList && leftList.length > 0;
71565
71856
  return (0,jsx_runtime.jsxs)("div", {
71566
- className: classnames_default()("".concat(className, "-list"), defineProperty_defineProperty({}, "".concat(className, "-list-group"), showRight || showLeft)),
71857
+ className: classnames_default()("".concat(className, "-list"), hashId, defineProperty_defineProperty({}, "".concat(className, "-list-group"), showRight || showLeft)),
71567
71858
  children: [(0,jsx_runtime.jsx)(CheckboxList, {
71568
71859
  title: intl.getMessage('tableToolBar.leftFixedTitle', '固定在左侧'),
71569
71860
  list: leftList,
@@ -71593,7 +71884,8 @@ var GroupCheckboxList = function GroupCheckboxList(_ref5) {
71593
71884
  function ColumnSetting(props) {
71594
71885
  var _props$checkable, _props$draggable;
71595
71886
 
71596
- var columnRef = (0,external_React_.useRef)({});
71887
+ var columnRef = (0,external_React_.useRef)({}); // 获得当前上下文的 hashID
71888
+
71597
71889
  var counter = container.useContainer();
71598
71890
  var localColumns = props.columns;
71599
71891
  var _props$checkedReset = props.checkedReset,
@@ -71674,12 +71966,13 @@ function ColumnSetting(props) {
71674
71966
  var className = getPrefixCls('pro-table-column-setting');
71675
71967
 
71676
71968
  var _useStyle = ColumnSetting_style_useStyle(className),
71677
- wrapSSR = _useStyle.wrapSSR;
71969
+ wrapSSR = _useStyle.wrapSSR,
71970
+ hashId = _useStyle.hashId;
71678
71971
 
71679
71972
  return wrapSSR((0,jsx_runtime.jsx)(external_antd_.Popover, {
71680
71973
  arrowPointAtCenter: true,
71681
71974
  title: (0,jsx_runtime.jsxs)("div", {
71682
- className: "".concat(className, "-title"),
71975
+ className: "".concat(className, "-title ").concat(hashId),
71683
71976
  children: [(0,jsx_runtime.jsx)(external_antd_.Checkbox, {
71684
71977
  indeterminate: indeterminate,
71685
71978
  checked: unCheckedKeys.length === 0 && unCheckedKeys.length !== localColumns.length,
@@ -71697,7 +71990,7 @@ function ColumnSetting(props) {
71697
71990
  children: props.extra
71698
71991
  }) : null]
71699
71992
  }),
71700
- overlayClassName: "".concat(className, "-overlay"),
71993
+ overlayClassName: "".concat(className, "-overlay ").concat(hashId),
71701
71994
  trigger: "click",
71702
71995
  placement: "bottomRight",
71703
71996
  content: (0,jsx_runtime.jsx)(GroupCheckboxList, {
@@ -79583,7 +79876,7 @@ var InternalTreeNode = /*#__PURE__*/function (_React$Component) {
79583
79876
  } : undefined;
79584
79877
  return /*#__PURE__*/external_React_.createElement("div", extends_extends({
79585
79878
  ref: domRef,
79586
- className: classnames_default()(className, "".concat(prefixCls, "-treenode"), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-active"), active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-leaf-last"), isEndNode), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-draggable"), draggableWithoutDisabled), defineProperty_defineProperty(_classNames, "dragging", dragging), defineProperty_defineProperty(_classNames, 'drop-target', dropTargetKey === eventKey), defineProperty_defineProperty(_classNames, 'drop-container', dropContainerKey === eventKey), defineProperty_defineProperty(_classNames, 'drag-over', !disabled && dragOver), defineProperty_defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), defineProperty_defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), defineProperty_defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(convertNodePropsToEventData(this.props))), _classNames)),
79879
+ className: classnames_default()(className, "".concat(prefixCls, "-treenode"), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-active"), active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-leaf-last"), isEndNode), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-draggable"), mergedDraggable), defineProperty_defineProperty(_classNames, "dragging", dragging), defineProperty_defineProperty(_classNames, 'drop-target', dropTargetKey === eventKey), defineProperty_defineProperty(_classNames, 'drop-container', dropContainerKey === eventKey), defineProperty_defineProperty(_classNames, 'drag-over', !disabled && dragOver), defineProperty_defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), defineProperty_defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), defineProperty_defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(convertNodePropsToEventData(this.props))), _classNames)),
79587
79880
  style: style // Draggable config
79588
79881
  ,
79589
79882
  draggable: draggableWithoutDisabled,
@@ -80654,6 +80947,7 @@ function statisticToken(token) {
80654
80947
 
80655
80948
 
80656
80949
 
80950
+
80657
80951
  var style_resetComponent = function resetComponent(token) {
80658
80952
  return {
80659
80953
  boxSizing: 'border-box',
@@ -80663,8 +80957,9 @@ var style_resetComponent = function resetComponent(token) {
80663
80957
  fontSize: token.fontSize,
80664
80958
  // font-variant: @font-variant-base;
80665
80959
  lineHeight: token.lineHeight,
80666
- listStyle: 'none' // font-feature-settings: @font-feature-settings-base;
80667
-
80960
+ listStyle: 'none',
80961
+ // font-feature-settings: @font-feature-settings-base;
80962
+ fontFamily: token.fontFamily
80668
80963
  };
80669
80964
  };
80670
80965
  var resetIcon = function resetIcon() {
@@ -80737,8 +81032,28 @@ var genLinkStyle = function genLinkStyle(token) {
80737
81032
  }), _a)
80738
81033
  };
80739
81034
  };
81035
+ var genFontStyle = function genFontStyle(token, rootPrefixCls) {
81036
+ var fontFamily = token.fontFamily,
81037
+ fontSize = token.fontSize;
81038
+ return defineProperty_defineProperty({}, "[class^=\"".concat(rootPrefixCls, "-\"], [class*=\" ").concat(rootPrefixCls, "-\"]"), {
81039
+ fontFamily: fontFamily,
81040
+ fontSize: fontSize
81041
+ });
81042
+ };
81043
+ var genFocusOutline = function genFocusOutline(token) {
81044
+ return {
81045
+ outline: "".concat(token.lineWidth * 4, "px solid ").concat(token.colorPrimaryBorder),
81046
+ outlineOffset: 1,
81047
+ transition: 'outline-offset 0s, outline 0s'
81048
+ };
81049
+ };
81050
+ var genFocusStyle = function genFocusStyle(token) {
81051
+ return {
81052
+ '&:focus-visible': extends_extends({}, genFocusOutline(token))
81053
+ };
81054
+ };
80740
81055
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
80741
- /* harmony default export */ var version = ('5.0.0-experimental.23');
81056
+ /* harmony default export */ var version = ('5.0.0-experimental.24');
80742
81057
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
80743
81058
  /* eslint import/no-unresolved: 0 */
80744
81059
  // @ts-ignore
@@ -80747,7 +81062,7 @@ var genLinkStyle = function genLinkStyle(token) {
80747
81062
  ;// CONCATENATED MODULE: ./node_modules/antd/es/theme/themes/seed.js
80748
81063
 
80749
81064
  var defaultPresetColors = {
80750
- blue: '#1890FF',
81065
+ blue: '#1677ff',
80751
81066
  purple: '#722ED1',
80752
81067
  cyan: '#13C2C2',
80753
81068
  green: '#52C41A',
@@ -80767,8 +81082,8 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
80767
81082
  colorPrimary: '#1677ff',
80768
81083
  colorSuccess: '#52c41a',
80769
81084
  colorWarning: '#faad14',
80770
- colorError: '#ff4d4f',
80771
- colorInfo: '#1890ff',
81085
+ colorError: '#f5222d',
81086
+ colorInfo: '#1677ff',
80772
81087
  colorTextBase: '',
80773
81088
  colorTextLightSolid: '#fff',
80774
81089
  colorBgBase: '',
@@ -80803,7 +81118,9 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
80803
81118
  zIndexBase: 0,
80804
81119
  zIndexPopupBase: 1000,
80805
81120
  // Image
80806
- opacityImage: 1
81121
+ opacityImage: 1,
81122
+ // Wireframe
81123
+ wireframe: false
80807
81124
  });
80808
81125
 
80809
81126
  /* harmony default export */ var seed = (seedToken);
@@ -80841,7 +81158,7 @@ function genColorMapToken(seed, _ref) {
80841
81158
  colorSuccessBgHover: successColors[2],
80842
81159
  colorSuccessBorder: successColors[3],
80843
81160
  colorSuccessBorderHover: successColors[4],
80844
- colorSuccessHover: successColors[5],
81161
+ colorSuccessHover: successColors[4],
80845
81162
  colorSuccess: successColors[6],
80846
81163
  colorSuccessActive: successColors[7],
80847
81164
  colorSuccessTextHover: successColors[8],
@@ -80851,8 +81168,8 @@ function genColorMapToken(seed, _ref) {
80851
81168
  colorErrorBgHover: errorColors[2],
80852
81169
  colorErrorBorder: errorColors[3],
80853
81170
  colorErrorBorderHover: errorColors[4],
80854
- colorErrorHover: errorColors[5],
80855
- colorError: errorColors[6],
81171
+ colorErrorHover: errorColors[4],
81172
+ colorError: errorColors[5],
80856
81173
  colorErrorActive: errorColors[7],
80857
81174
  colorErrorTextHover: errorColors[8],
80858
81175
  colorErrorText: errorColors[9],
@@ -80861,7 +81178,7 @@ function genColorMapToken(seed, _ref) {
80861
81178
  colorWarningBgHover: warningColors[2],
80862
81179
  colorWarningBorder: warningColors[3],
80863
81180
  colorWarningBorderHover: warningColors[4],
80864
- colorWarningHover: warningColors[5],
81181
+ colorWarningHover: warningColors[4],
80865
81182
  colorWarning: warningColors[6],
80866
81183
  colorWarningActive: warningColors[7],
80867
81184
  colorWarningTextHover: warningColors[8],
@@ -80871,7 +81188,7 @@ function genColorMapToken(seed, _ref) {
80871
81188
  colorInfoBgHover: infoColors[2],
80872
81189
  colorInfoBorder: infoColors[3],
80873
81190
  colorInfoBorderHover: infoColors[4],
80874
- colorInfoHover: infoColors[5],
81191
+ colorInfoHover: infoColors[4],
80875
81192
  colorInfo: infoColors[6],
80876
81193
  colorInfoActive: infoColors[7],
80877
81194
  colorInfoTextHover: infoColors[8],
@@ -81035,11 +81352,11 @@ var generateNeutralColorPalettes = function generateNeutralColorPalettes(bgBaseC
81035
81352
  return {
81036
81353
  colorBgBase: colorBgBase,
81037
81354
  colorTextBase: colorTextBase,
81038
- colorText: getAlphaColor(colorTextBase, 0.85),
81355
+ colorText: getAlphaColor(colorTextBase, 0.88),
81039
81356
  colorTextSecondary: getAlphaColor(colorTextBase, 0.65),
81040
81357
  colorTextTertiary: getAlphaColor(colorTextBase, 0.45),
81041
81358
  colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),
81042
- colorFill: getAlphaColor(colorTextBase, 0.12),
81359
+ colorFill: getAlphaColor(colorTextBase, 0.15),
81043
81360
  colorFillSecondary: getAlphaColor(colorTextBase, 0.06),
81044
81361
  colorFillTertiary: getAlphaColor(colorTextBase, 0.04),
81045
81362
  colorFillQuaternary: getAlphaColor(colorTextBase, 0.02),
@@ -81116,9 +81433,9 @@ function formatToken(derivativeToken) {
81116
81433
  var fontSizeSM = fontSizes[0]; // Generate alias token
81117
81434
 
81118
81435
  var aliasToken = extends_extends(extends_extends(extends_extends({}, mergedToken), {
81119
- colorLink: mergedToken.colorPrimaryText,
81120
- colorLinkHover: mergedToken.colorPrimaryTextHover,
81121
- colorLinkActive: mergedToken.colorPrimaryActive,
81436
+ colorLink: mergedToken.colorInfoText,
81437
+ colorLinkHover: mergedToken.colorInfoHover,
81438
+ colorLinkActive: mergedToken.colorInfoActive,
81122
81439
  // ============== Background ============== //
81123
81440
  colorFillContent: mergedToken.colorFillSecondary,
81124
81441
  colorFillContentHover: mergedToken.colorFill,
@@ -81133,6 +81450,8 @@ function formatToken(derivativeToken) {
81133
81450
  colorTextLabel: mergedToken.colorTextSecondary,
81134
81451
  colorTextDescription: mergedToken.colorTextTertiary,
81135
81452
  colorHighlight: mergedToken.colorError,
81453
+ colorBgTextHover: mergedToken.colorFillSecondary,
81454
+ colorBgTextActive: mergedToken.colorFill,
81136
81455
  colorIcon: mergedToken.colorTextTertiary,
81137
81456
  colorIconHover: mergedToken.colorText,
81138
81457
  colorErrorOutline: mergedToken.colorErrorBg,
@@ -81304,11 +81623,12 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
81304
81623
  theme: theme,
81305
81624
  token: token,
81306
81625
  hashId: hashId,
81307
- path: ['Link']
81626
+ path: ['Shared', rootPrefixCls]
81308
81627
  }, function () {
81309
- return {
81628
+ return [{
81629
+ // Link
81310
81630
  '&': genLinkStyle(token)
81311
- };
81631
+ }, genFontStyle(token, rootPrefixCls)];
81312
81632
  });
81313
81633
  return [useStyleRegister({
81314
81634
  theme: theme,
@@ -81370,7 +81690,7 @@ var antCheckboxEffect = new Keyframes('antCheckboxEffect', {
81370
81690
  }); // ============================== Styles ==============================
81371
81691
 
81372
81692
  var genCheckboxStyle = function genCheckboxStyle(token) {
81373
- var _extends2, _ref, _ref3, _$concat, _$concat2, _ref5;
81693
+ var _extends2, _ref, _ref3, _$concat2, _ref4, _$concat3, _ref5;
81374
81694
 
81375
81695
  var checkboxCls = token.checkboxCls;
81376
81696
  var wrapperCls = "".concat(checkboxCls, "-wrapper");
@@ -81405,7 +81725,7 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81405
81725
  whiteSpace: 'nowrap',
81406
81726
  lineHeight: 1,
81407
81727
  cursor: 'pointer'
81408
- }, defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-input"), {
81728
+ }, defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-input"), defineProperty_defineProperty({
81409
81729
  position: 'absolute',
81410
81730
  inset: 0,
81411
81731
  zIndex: 1,
@@ -81413,7 +81733,8 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81413
81733
  height: '100%',
81414
81734
  cursor: 'pointer',
81415
81735
  opacity: 0
81416
- }), defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-inner"), {
81736
+ }, "&:focus-visible + ".concat(checkboxCls, "-inner"), extends_extends({}, genFocusOutline(token)))), defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-inner"), {
81737
+ boxSizing: 'border-box',
81417
81738
  position: 'relative',
81418
81739
  top: 0,
81419
81740
  insetInlineStart: 0,
@@ -81425,8 +81746,9 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81425
81746
  border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " ").concat(token.colorBorder),
81426
81747
  borderRadius: token.controlRadiusSM,
81427
81748
  borderCollapse: 'separate',
81428
- transition: "all ".concat(token.motionDurationSlow),
81749
+ transition: "all ".concat(token.motionDurationFast),
81429
81750
  '&:after': {
81751
+ boxSizing: 'border-box',
81430
81752
  position: 'absolute',
81431
81753
  top: '50%',
81432
81754
  insetInlineStart: '21.5%',
@@ -81461,10 +81783,9 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81461
81783
  })
81462
81784
  }), (_ref3 = {}, defineProperty_defineProperty(_ref3, "".concat(wrapperCls, ":hover ").concat(checkboxCls, ":after"), {
81463
81785
  visibility: 'visible'
81464
- }), defineProperty_defineProperty(_ref3, "\n ".concat(wrapperCls, ":hover:not(").concat(wrapperCls, "-disabled),\n ").concat(checkboxCls, ":hover:not(").concat(checkboxCls, "-disabled),\n ").concat(checkboxCls, "-input:focus +\n "), defineProperty_defineProperty({}, "".concat(checkboxCls, "-inner"), {
81786
+ }), defineProperty_defineProperty(_ref3, "\n ".concat(wrapperCls, ":not(").concat(wrapperCls, "-disabled),\n ").concat(checkboxCls, ":not(").concat(checkboxCls, "-disabled)\n "), defineProperty_defineProperty({}, "&:hover ".concat(checkboxCls, "-inner"), {
81465
81787
  borderColor: token.colorPrimary
81466
- })), _ref3), // ==================== Checked ====================
81467
- defineProperty_defineProperty({}, "".concat(checkboxCls, "-checked"), (_$concat = {}, defineProperty_defineProperty(_$concat, "".concat(checkboxCls, "-inner"), {
81788
+ })), _ref3), (_ref4 = {}, defineProperty_defineProperty(_ref4, "".concat(checkboxCls, "-checked"), (_$concat2 = {}, defineProperty_defineProperty(_$concat2, "".concat(checkboxCls, "-inner"), {
81468
81789
  backgroundColor: token.colorPrimary,
81469
81790
  borderColor: token.colorPrimary,
81470
81791
  '&:after': {
@@ -81472,13 +81793,12 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81472
81793
  transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
81473
81794
  transition: "all ".concat(token.motionDurationSlow, " ").concat(token.motionEaseOutBack, " ").concat(token.motionDurationFast)
81474
81795
  }
81475
- }), defineProperty_defineProperty(_$concat, '&:after', {
81796
+ }), defineProperty_defineProperty(_$concat2, '&:after', {
81476
81797
  position: 'absolute',
81477
81798
  top: 0,
81478
81799
  insetInlineStart: 0,
81479
81800
  width: '100%',
81480
81801
  height: '100%',
81481
- border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " ").concat(token.colorPrimary),
81482
81802
  borderRadius: token.controlRadiusSM,
81483
81803
  visibility: 'hidden',
81484
81804
  animationName: antCheckboxEffect,
@@ -81486,21 +81806,24 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81486
81806
  animationTimingFunction: 'ease-in-out',
81487
81807
  animationFillMode: 'backwards',
81488
81808
  content: '""'
81489
- }), _$concat)), (_ref5 = {}, defineProperty_defineProperty(_ref5, "".concat(wrapperCls, "-disabled"), {
81809
+ }), _$concat2)), defineProperty_defineProperty(_ref4, "\n ".concat(wrapperCls, "-checked:not(").concat(wrapperCls, "-disabled),\n ").concat(checkboxCls, "-checked:not(").concat(checkboxCls, "-disabled)\n "), defineProperty_defineProperty({}, "&:hover ".concat(checkboxCls, "-inner"), {
81810
+ backgroundColor: token.colorPrimaryHover,
81811
+ borderColor: 'transparent'
81812
+ })), _ref4), (_ref5 = {}, defineProperty_defineProperty(_ref5, "".concat(wrapperCls, "-disabled"), {
81490
81813
  cursor: 'not-allowed'
81491
- }), defineProperty_defineProperty(_ref5, "".concat(checkboxCls, "-disabled"), (_$concat2 = {}, defineProperty_defineProperty(_$concat2, "&, ".concat(checkboxCls, "-input"), {
81814
+ }), defineProperty_defineProperty(_ref5, "".concat(checkboxCls, "-disabled"), (_$concat3 = {}, defineProperty_defineProperty(_$concat3, "&, ".concat(checkboxCls, "-input"), {
81492
81815
  cursor: 'not-allowed'
81493
- }), defineProperty_defineProperty(_$concat2, "".concat(checkboxCls, "-inner"), {
81816
+ }), defineProperty_defineProperty(_$concat3, "".concat(checkboxCls, "-inner"), {
81494
81817
  background: token.colorBgContainerDisabled,
81495
81818
  borderColor: token.colorBorder,
81496
81819
  '&:after': {
81497
81820
  borderColor: token.colorTextDisabled
81498
81821
  }
81499
- }), defineProperty_defineProperty(_$concat2, '&:after', {
81822
+ }), defineProperty_defineProperty(_$concat3, '&:after', {
81500
81823
  display: 'none'
81501
- }), defineProperty_defineProperty(_$concat2, '& + span', {
81824
+ }), defineProperty_defineProperty(_$concat3, '& + span', {
81502
81825
  color: token.colorTextDisabled
81503
- }), _$concat2)), _ref5)];
81826
+ }), _$concat3)), _ref5)];
81504
81827
  }; // ============================== Export ==============================
81505
81828
 
81506
81829
  function getStyle(prefixCls, token) {
@@ -87998,7 +88321,10 @@ function isFragment(child) {
87998
88321
  return child && child.type === external_React_.Fragment;
87999
88322
  }
88000
88323
  function replaceElement(element, replacement, props) {
88001
- if (!isValidElement(element)) return replacement;
88324
+ if (!isValidElement(element)) {
88325
+ return replacement;
88326
+ }
88327
+
88002
88328
  return /*#__PURE__*/external_React_.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);
88003
88329
  }
88004
88330
  function cloneElement(element, props) {
@@ -88584,6 +88910,7 @@ var genGroupStyle = function genGroupStyle(token) {
88584
88910
 
88585
88911
 
88586
88912
 
88913
+
88587
88914
  // ============================== Shared ==============================
88588
88915
 
88589
88916
  var genSharedButtonStyle = function genSharedButtonStyle(token) {
@@ -88602,7 +88929,7 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
88602
88929
  backgroundColor: 'transparent',
88603
88930
  border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " transparent"),
88604
88931
  cursor: 'pointer',
88605
- transition: "all ".concat(token.motionDurationSlow, " ").concat(token.motionEaseInOut),
88932
+ transition: "all ".concat(token.motionDurationFast, " ").concat(token.motionEaseInOut),
88606
88933
  userSelect: 'none',
88607
88934
  touchAction: 'manipulation',
88608
88935
  lineHeight: token.lineHeight,
@@ -88614,13 +88941,13 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
88614
88941
  marginInlineStart: token.marginXS
88615
88942
  }), defineProperty_defineProperty(_componentCls, "&".concat(componentCls, "-block"), {
88616
88943
  width: '100%'
88617
- }), _componentCls));
88944
+ }), defineProperty_defineProperty(_componentCls, '&:not(:disabled)', extends_extends({}, genFocusStyle(token))), _componentCls));
88618
88945
  };
88619
88946
 
88620
88947
  var genHoverActiveButtonStyle = function genHoverActiveButtonStyle(hoverStyle, activeStyle) {
88621
88948
  return {
88622
88949
  '&:not(:disabled)': {
88623
- '&:hover, &:focus': hoverStyle,
88950
+ '&:hover': hoverStyle,
88624
88951
  '&:active': activeStyle
88625
88952
  }
88626
88953
  };
@@ -88841,12 +89168,8 @@ var genSizeLargeButtonStyle = function genSizeLargeButtonStyle(token) {
88841
89168
 
88842
89169
 
88843
89170
  /* harmony default export */ var button_style = (genComponentStyleHook('Button', function (token) {
88844
- var controlTmpOutline = token.controlTmpOutline,
88845
- colorFillQuaternary = token.colorFillQuaternary,
88846
- colorFillTertiary = token.colorFillTertiary;
89171
+ var controlTmpOutline = token.controlTmpOutline;
88847
89172
  var buttonToken = statistic_merge(token, {
88848
- colorBgTextHover: colorFillQuaternary,
88849
- colorBgTextActive: colorFillTertiary,
88850
89173
  colorOutlineDefault: controlTmpOutline
88851
89174
  });
88852
89175
  return [// Shared
@@ -89136,6 +89459,205 @@ Button.__ANT_BUTTON = true;
89136
89459
  ;// CONCATENATED MODULE: ./node_modules/antd/es/button/index.js
89137
89460
 
89138
89461
  /* harmony default export */ var es_button = (button_button);
89462
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/style/roundedArrow.js
89463
+ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {
89464
+ var unitWidth = width / 2;
89465
+ var ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);
89466
+ var ay = unitWidth;
89467
+ var bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));
89468
+ var by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));
89469
+ var cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));
89470
+ var cy = innerRadius * (1 / Math.sqrt(2));
89471
+ var dx = 4 * unitWidth - cx;
89472
+ var dy = cy;
89473
+ var ex = 4 * unitWidth - bx;
89474
+ var ey = by;
89475
+ var fx = 4 * unitWidth - ax;
89476
+ var fy = ay;
89477
+ return {
89478
+ borderRadius: {
89479
+ _skip_check_: true,
89480
+ value: "0 0 ".concat(innerRadius, "px")
89481
+ },
89482
+ pointerEvents: 'none',
89483
+ width: width * 2,
89484
+ height: width * 2,
89485
+ overflow: 'hidden',
89486
+ '&::after': {
89487
+ content: '""',
89488
+ position: 'absolute',
89489
+ width: width / Math.sqrt(2),
89490
+ height: width / Math.sqrt(2),
89491
+ bottom: 0,
89492
+ insetInline: 0,
89493
+ margin: 'auto',
89494
+ borderRadius: {
89495
+ _skip_check_: true,
89496
+ value: "0 0 ".concat(innerRadius, "px 0")
89497
+ },
89498
+ transform: 'translateY(50%) rotate(-135deg)',
89499
+ boxShadow: boxShadow,
89500
+ zIndex: 0,
89501
+ background: 'transparent'
89502
+ },
89503
+ '&::before': {
89504
+ position: 'absolute',
89505
+ bottom: 0,
89506
+ insetInlineStart: 0,
89507
+ width: width * 2,
89508
+ height: width / 2,
89509
+ background: bgColor,
89510
+ clipPath: "path('M ".concat(ax, " ").concat(ay, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(bx, " ").concat(by, " L ").concat(cx, " ").concat(cy, " A ").concat(innerRadius, " ").concat(innerRadius, " 0 0 1 ").concat(dx, " ").concat(dy, " L ").concat(ex, " ").concat(ey, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(fx, " ").concat(fy, " Z')"),
89511
+ content: '""'
89512
+ }
89513
+ };
89514
+ };
89515
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/style/placementArrow.js
89516
+
89517
+
89518
+
89519
+
89520
+ function connectArrowCls(classList) {
89521
+ var showArrowCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
89522
+ return classList.map(function (cls) {
89523
+ return "".concat(showArrowCls).concat(cls);
89524
+ }).join(',');
89525
+ }
89526
+
89527
+ var MAX_VERTICAL_CONTENT_RADIUS = 8;
89528
+ function getArrowOffset(options) {
89529
+ var maxVerticalContentRadius = MAX_VERTICAL_CONTENT_RADIUS;
89530
+ var sizePopupArrow = options.sizePopupArrow,
89531
+ contentRadius = options.contentRadius,
89532
+ radiusOuter = options.radiusOuter,
89533
+ limitVerticalRadius = options.limitVerticalRadius;
89534
+ var arrowInnerOffset = sizePopupArrow / 2 - Math.ceil(radiusOuter * (Math.sqrt(2) - 1));
89535
+ var dropdownArrowOffset = (contentRadius > 12 ? contentRadius + 2 : 12) - arrowInnerOffset;
89536
+ var dropdownArrowOffsetVertical = limitVerticalRadius ? maxVerticalContentRadius - arrowInnerOffset : dropdownArrowOffset;
89537
+ return {
89538
+ dropdownArrowOffset: dropdownArrowOffset,
89539
+ dropdownArrowOffsetVertical: dropdownArrowOffsetVertical
89540
+ };
89541
+ }
89542
+ function getArrowStyle(token, options) {
89543
+ var _componentCls;
89544
+
89545
+ var componentCls = token.componentCls,
89546
+ sizePopupArrow = token.sizePopupArrow,
89547
+ marginXXS = token.marginXXS,
89548
+ radiusXS = token.radiusXS,
89549
+ radiusOuter = token.radiusOuter,
89550
+ boxShadowPopoverArrow = token.boxShadowPopoverArrow;
89551
+ var colorBg = options.colorBg,
89552
+ showArrowCls = options.showArrowCls,
89553
+ _options$contentRadiu = options.contentRadius,
89554
+ contentRadius = _options$contentRadiu === void 0 ? token.radiusLG : _options$contentRadiu,
89555
+ limitVerticalRadius = options.limitVerticalRadius;
89556
+
89557
+ var _getArrowOffset = getArrowOffset({
89558
+ sizePopupArrow: sizePopupArrow,
89559
+ contentRadius: contentRadius,
89560
+ radiusOuter: radiusOuter,
89561
+ limitVerticalRadius: limitVerticalRadius
89562
+ }),
89563
+ dropdownArrowOffsetVertical = _getArrowOffset.dropdownArrowOffsetVertical,
89564
+ dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;
89565
+
89566
+ var dropdownArrowDistance = sizePopupArrow + marginXXS;
89567
+ return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-arrow"), [extends_extends(extends_extends({
89568
+ position: 'absolute',
89569
+ zIndex: 1,
89570
+ display: 'block'
89571
+ }, roundedArrow(sizePopupArrow, radiusXS, radiusOuter, colorBg, boxShadowPopoverArrow)), {
89572
+ '&:before': {
89573
+ background: colorBg
89574
+ }
89575
+ })]), defineProperty_defineProperty(_componentCls, ["&-placement-top ".concat(componentCls, "-arrow"), "&-placement-topLeft ".concat(componentCls, "-arrow"), "&-placement-topRight ".concat(componentCls, "-arrow")].join(','), {
89576
+ bottom: 0,
89577
+ transform: 'translateY(100%) rotate(180deg)'
89578
+ }), defineProperty_defineProperty(_componentCls, "&-placement-top ".concat(componentCls, "-arrow"), {
89579
+ left: {
89580
+ _skip_check_: true,
89581
+ value: '50%'
89582
+ },
89583
+ transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
89584
+ }), defineProperty_defineProperty(_componentCls, "&-placement-topLeft ".concat(componentCls, "-arrow"), {
89585
+ left: {
89586
+ _skip_check_: true,
89587
+ value: dropdownArrowOffset
89588
+ }
89589
+ }), defineProperty_defineProperty(_componentCls, "&-placement-topRight ".concat(componentCls, "-arrow"), {
89590
+ right: {
89591
+ _skip_check_: true,
89592
+ value: dropdownArrowOffset
89593
+ }
89594
+ }), defineProperty_defineProperty(_componentCls, ["&-placement-bottom ".concat(componentCls, "-arrow"), "&-placement-bottomLeft ".concat(componentCls, "-arrow"), "&-placement-bottomRight ".concat(componentCls, "-arrow")].join(','), {
89595
+ top: 0,
89596
+ transform: "translateY(-100%)"
89597
+ }), defineProperty_defineProperty(_componentCls, "&-placement-bottom ".concat(componentCls, "-arrow"), {
89598
+ left: {
89599
+ _skip_check_: true,
89600
+ value: '50%'
89601
+ },
89602
+ transform: "translateX(-50%) translateY(-100%)"
89603
+ }), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft ".concat(componentCls, "-arrow"), {
89604
+ left: {
89605
+ _skip_check_: true,
89606
+ value: dropdownArrowOffset
89607
+ }
89608
+ }), defineProperty_defineProperty(_componentCls, "&-placement-bottomRight ".concat(componentCls, "-arrow"), {
89609
+ right: {
89610
+ _skip_check_: true,
89611
+ value: dropdownArrowOffset
89612
+ }
89613
+ }), defineProperty_defineProperty(_componentCls, ["&-placement-left ".concat(componentCls, "-arrow"), "&-placement-leftTop ".concat(componentCls, "-arrow"), "&-placement-leftBottom ".concat(componentCls, "-arrow")].join(','), {
89614
+ right: {
89615
+ _skip_check_: true,
89616
+ value: 0
89617
+ },
89618
+ transform: 'translateX(100%) rotate(90deg)'
89619
+ }), defineProperty_defineProperty(_componentCls, "&-placement-left ".concat(componentCls, "-arrow"), {
89620
+ top: {
89621
+ _skip_check_: true,
89622
+ value: '50%'
89623
+ },
89624
+ transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
89625
+ }), defineProperty_defineProperty(_componentCls, "&-placement-leftTop ".concat(componentCls, "-arrow"), {
89626
+ top: dropdownArrowOffsetVertical
89627
+ }), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom ".concat(componentCls, "-arrow"), {
89628
+ bottom: dropdownArrowOffsetVertical
89629
+ }), defineProperty_defineProperty(_componentCls, ["&-placement-right ".concat(componentCls, "-arrow"), "&-placement-rightTop ".concat(componentCls, "-arrow"), "&-placement-rightBottom ".concat(componentCls, "-arrow")].join(','), {
89630
+ left: {
89631
+ _skip_check_: true,
89632
+ value: 0
89633
+ },
89634
+ transform: 'translateX(-100%) rotate(-90deg)'
89635
+ }), defineProperty_defineProperty(_componentCls, "&-placement-right ".concat(componentCls, "-arrow"), {
89636
+ top: {
89637
+ _skip_check_: true,
89638
+ value: '50%'
89639
+ },
89640
+ transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
89641
+ }), defineProperty_defineProperty(_componentCls, "&-placement-rightTop ".concat(componentCls, "-arrow"), {
89642
+ top: dropdownArrowOffsetVertical
89643
+ }), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom ".concat(componentCls, "-arrow"), {
89644
+ bottom: dropdownArrowOffsetVertical
89645
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"], showArrowCls), {
89646
+ paddingBottom: dropdownArrowDistance
89647
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"], showArrowCls), {
89648
+ paddingTop: dropdownArrowDistance
89649
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"], showArrowCls), {
89650
+ paddingRight: {
89651
+ _skip_check_: true,
89652
+ value: dropdownArrowDistance
89653
+ }
89654
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"], showArrowCls), {
89655
+ paddingLeft: {
89656
+ _skip_check_: true,
89657
+ value: dropdownArrowDistance
89658
+ }
89659
+ }), _componentCls));
89660
+ }
89139
89661
  ;// CONCATENATED MODULE: ./node_modules/antd/es/style/motion/motion.js
89140
89662
 
89141
89663
 
@@ -89478,59 +90000,6 @@ var genStatusStyle = function genStatusStyle(token) {
89478
90000
  };
89479
90001
 
89480
90002
  /* harmony default export */ var style_status = (genStatusStyle);
89481
- ;// CONCATENATED MODULE: ./node_modules/antd/es/style/roundedArrow.js
89482
- var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {
89483
- var unitWidth = width / 2;
89484
- var ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);
89485
- var ay = unitWidth;
89486
- var bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));
89487
- var by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));
89488
- var cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));
89489
- var cy = innerRadius * (1 / Math.sqrt(2));
89490
- var dx = 4 * unitWidth - cx;
89491
- var dy = cy;
89492
- var ex = 4 * unitWidth - bx;
89493
- var ey = by;
89494
- var fx = 4 * unitWidth - ax;
89495
- var fy = ay;
89496
- return {
89497
- borderRadius: {
89498
- _skip_check_: true,
89499
- value: "0 0 ".concat(innerRadius, "px")
89500
- },
89501
- pointerEvents: 'none',
89502
- width: width * 2,
89503
- height: width * 2,
89504
- overflow: 'hidden',
89505
- '&::after': {
89506
- content: '""',
89507
- position: 'absolute',
89508
- width: width / Math.sqrt(2),
89509
- height: width / Math.sqrt(2),
89510
- bottom: 0,
89511
- insetInline: 0,
89512
- margin: 'auto',
89513
- borderRadius: {
89514
- _skip_check_: true,
89515
- value: "0 0 ".concat(innerRadius, "px 0")
89516
- },
89517
- transform: 'translateY(50%) rotate(-135deg)',
89518
- boxShadow: boxShadow,
89519
- zIndex: 0,
89520
- background: 'transparent'
89521
- },
89522
- '&::before': {
89523
- position: 'absolute',
89524
- bottom: 0,
89525
- insetInlineStart: 0,
89526
- width: width * 2,
89527
- height: width / 2,
89528
- background: bgColor,
89529
- clipPath: "path('M ".concat(ax, " ").concat(ay, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(bx, " ").concat(by, " L ").concat(cx, " ").concat(cy, " A ").concat(innerRadius, " ").concat(innerRadius, " 0 0 1 ").concat(dx, " ").concat(dy, " L ").concat(ex, " ").concat(ey, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(fx, " ").concat(fy, " Z')"),
89530
- content: '""'
89531
- }
89532
- };
89533
- };
89534
90003
  ;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/style/index.js
89535
90004
 
89536
90005
 
@@ -89538,10 +90007,11 @@ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColo
89538
90007
 
89539
90008
 
89540
90009
 
90010
+
89541
90011
  // =============================== Base ===============================
89542
90012
 
89543
90013
  var genBaseStyle = function genBaseStyle(token) {
89544
- var _$concat, _extends2, _$concat$concat, _menuCls, _ref2;
90014
+ var _$concat, _extends2, _extends5, _ref2;
89545
90015
 
89546
90016
  var componentCls = token.componentCls,
89547
90017
  menuCls = token.menuCls,
@@ -89552,10 +90022,10 @@ var genBaseStyle = function genBaseStyle(token) {
89552
90022
  antCls = token.antCls,
89553
90023
  iconCls = token.iconCls,
89554
90024
  motionDurationMid = token.motionDurationMid,
89555
- motionDurationSlow = token.motionDurationSlow,
90025
+ motionDurationFast = token.motionDurationFast,
89556
90026
  dropdownPaddingVertical = token.dropdownPaddingVertical,
89557
90027
  fontSizeBase = token.fontSizeBase,
89558
- dropdownEdgeChildVerticalPadding = token.dropdownEdgeChildVerticalPadding,
90028
+ dropdownEdgeChildPadding = token.dropdownEdgeChildPadding,
89559
90029
  radiusBase = token.radiusBase,
89560
90030
  colorTextDisabled = token.colorTextDisabled,
89561
90031
  fontSizeIcon = token.fontSizeIcon,
@@ -89659,31 +90129,32 @@ var genBaseStyle = function genBaseStyle(token) {
89659
90129
  ul: {
89660
90130
  marginInline: '0.3em'
89661
90131
  }
89662
- }), defineProperty_defineProperty(_ref2, "".concat(componentCls, ", ").concat(componentCls, "-menu-submenu"), defineProperty_defineProperty({}, menuCls, (_menuCls = {
89663
- padding: "".concat(dropdownEdgeChildVerticalPadding, "px 0"),
90132
+ }), defineProperty_defineProperty(_ref2, "".concat(componentCls, ", ").concat(componentCls, "-menu-submenu"), defineProperty_defineProperty({}, menuCls, extends_extends(extends_extends({
90133
+ padding: dropdownEdgeChildPadding,
89664
90134
  listStyleType: 'none',
89665
90135
  backgroundColor: colorBgElevated,
89666
90136
  backgroundClip: 'padding-box',
89667
90137
  borderRadius: token.controlRadiusLG,
89668
90138
  outline: 'none',
89669
90139
  boxShadow: token.boxShadowSecondary
89670
- }, defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-group-title"), {
90140
+ }, genFocusStyle(token)), (_extends5 = {}, defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item-group-title"), {
89671
90141
  padding: "".concat(dropdownPaddingVertical, "px ").concat(controlPaddingHorizontal, "px"),
89672
90142
  color: token.colorTextDescription,
89673
- transition: "all ".concat(motionDurationSlow)
89674
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item"), {
90143
+ transition: "all ".concat(motionDurationFast)
90144
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item"), {
89675
90145
  position: 'relative',
89676
90146
  display: 'flex',
89677
- alignItems: 'center'
89678
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-icon"), {
90147
+ alignItems: 'center',
90148
+ borderRadius: token.radiusSM
90149
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item-icon"), {
89679
90150
  minWidth: fontSizeBase,
89680
90151
  marginInlineEnd: token.marginXS,
89681
90152
  fontSize: token.fontSizeSM
89682
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-title-content"), {
90153
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-title-content"), {
89683
90154
  flex: 'auto',
89684
90155
  '> a': {
89685
90156
  color: 'inherit',
89686
- transition: "all ".concat(motionDurationSlow),
90157
+ transition: "all ".concat(motionDurationFast),
89687
90158
  '&:hover': {
89688
90159
  color: 'inherit'
89689
90160
  },
@@ -89693,7 +90164,7 @@ var genBaseStyle = function genBaseStyle(token) {
89693
90164
  content: '""'
89694
90165
  }
89695
90166
  }
89696
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item, ").concat(menuCls, "-submenu-title"), (_$concat$concat = {
90167
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item, ").concat(menuCls, "-submenu-title"), extends_extends(extends_extends(defineProperty_defineProperty({
89697
90168
  clear: 'both',
89698
90169
  margin: 0,
89699
90170
  padding: "".concat(dropdownPaddingVertical, "px ").concat(controlPaddingHorizontal, "px"),
@@ -89702,37 +90173,43 @@ var genBaseStyle = function genBaseStyle(token) {
89702
90173
  fontSize: fontSizeBase,
89703
90174
  lineHeight: token.lineHeight,
89704
90175
  cursor: 'pointer',
89705
- transition: "all ".concat(motionDurationSlow),
89706
- '&:first-child': !dropdownEdgeChildVerticalPadding ? {
90176
+ transition: "all ".concat(motionDurationFast),
90177
+ '&:first-child': !dropdownEdgeChildPadding ? {
89707
90178
  borderRadius: "".concat(radiusBase, "px ").concat(radiusBase, "px 0 0")
89708
90179
  } : [],
89709
- '&:last-child': !dropdownEdgeChildVerticalPadding ? {
90180
+ '&:last-child': !dropdownEdgeChildPadding ? {
89710
90181
  borderRadius: "0 0 ".concat(radiusBase, "px ").concat(radiusBase, "px")
89711
- } : [],
90182
+ } : []
90183
+ }, "&:hover, &-active", {
90184
+ backgroundColor: token.controlItemBgHover
90185
+ }), genFocusStyle(token)), defineProperty_defineProperty({
89712
90186
  '&-selected': {
89713
90187
  color: token.colorPrimary,
89714
- backgroundColor: token.controlItemBgActive
89715
- }
89716
- }, defineProperty_defineProperty(_$concat$concat, "&:hover, &-active", {
89717
- backgroundColor: token.controlItemBgHover
89718
- }), defineProperty_defineProperty(_$concat$concat, '&-disabled', {
89719
- color: colorTextDisabled,
89720
- cursor: 'not-allowed',
89721
- '&:hover': {
90188
+ backgroundColor: token.controlItemBgActive,
90189
+ '&:hover, &-active': {
90190
+ backgroundColor: token.controlItemBgActiveHover
90191
+ }
90192
+ },
90193
+ '&-disabled': {
89722
90194
  color: colorTextDisabled,
89723
- backgroundColor: colorBgElevated,
89724
- cursor: 'not-allowed'
90195
+ cursor: 'not-allowed',
90196
+ '&:hover': {
90197
+ color: colorTextDisabled,
90198
+ backgroundColor: colorBgElevated,
90199
+ cursor: 'not-allowed'
90200
+ },
90201
+ a: {
90202
+ pointerEvents: 'none'
90203
+ }
89725
90204
  },
89726
- a: {
89727
- pointerEvents: 'none'
90205
+ '&-divider': {
90206
+ height: 1,
90207
+ margin: "".concat(token.marginXXS, "px 0"),
90208
+ overflow: 'hidden',
90209
+ lineHeight: 0,
90210
+ backgroundColor: token.colorSplit
89728
90211
  }
89729
- }), defineProperty_defineProperty(_$concat$concat, '&-divider', {
89730
- height: 1,
89731
- margin: "".concat(token.marginXXS, "px 0"),
89732
- overflow: 'hidden',
89733
- lineHeight: 0,
89734
- backgroundColor: token.colorSplit
89735
- }), defineProperty_defineProperty(_$concat$concat, "".concat(componentCls, "-menu-submenu-expand-icon"), defineProperty_defineProperty({
90212
+ }, "".concat(componentCls, "-menu-submenu-expand-icon"), defineProperty_defineProperty({
89736
90213
  position: 'absolute',
89737
90214
  insetInlineEnd: token.paddingXS
89738
90215
  }, "".concat(componentCls, "-menu-submenu-arrow-icon"), {
@@ -89740,21 +90217,21 @@ var genBaseStyle = function genBaseStyle(token) {
89740
90217
  color: token.colorTextDescription,
89741
90218
  fontSize: fontSizeIcon,
89742
90219
  fontStyle: 'normal'
89743
- })), _$concat$concat)), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-group-list"), {
90220
+ })))), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item-group-list"), {
89744
90221
  margin: "0 ".concat(token.marginXS, "px"),
89745
90222
  padding: 0,
89746
90223
  listStyle: 'none'
89747
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu-title"), {
90224
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu-title"), {
89748
90225
  paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM
89749
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu-vertical"), {
90226
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu-vertical"), {
89750
90227
  position: 'relative'
89751
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu").concat(menuCls, "-submenu-disabled ").concat(componentCls, "-menu-submenu-title"), defineProperty_defineProperty({}, "&, ".concat(componentCls, "-menu-submenu-arrow-icon"), {
90228
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu").concat(menuCls, "-submenu-disabled ").concat(componentCls, "-menu-submenu-title"), defineProperty_defineProperty({}, "&, ".concat(componentCls, "-menu-submenu-arrow-icon"), {
89752
90229
  color: colorTextDisabled,
89753
90230
  backgroundColor: colorBgElevated,
89754
90231
  cursor: 'not-allowed'
89755
- })), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu-selected ").concat(componentCls, "-menu-submenu-title"), {
90232
+ })), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu-selected ").concat(componentCls, "-menu-submenu-title"), {
89756
90233
  color: token.colorPrimary
89757
- }), _menuCls))), _ref2), // Follow code may reuse in other components
90234
+ }), _extends5)))), _ref2), // Follow code may reuse in other components
89758
90235
  [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down')]];
89759
90236
  }; // ============================== Export ==============================
89760
90237
 
@@ -89767,15 +90244,25 @@ var genBaseStyle = function genBaseStyle(token) {
89767
90244
  fontSizeBase = token.fontSizeBase,
89768
90245
  lineHeight = token.lineHeight,
89769
90246
  paddingXXS = token.paddingXXS,
89770
- componentCls = token.componentCls;
90247
+ componentCls = token.componentCls,
90248
+ radiusOuter = token.radiusOuter,
90249
+ radiusLG = token.radiusLG;
89771
90250
  var dropdownPaddingVertical = (controlHeight - fontSizeBase * lineHeight) / 2;
90251
+
90252
+ var _getArrowOffset = getArrowOffset({
90253
+ sizePopupArrow: sizePopupArrow,
90254
+ contentRadius: radiusLG,
90255
+ radiusOuter: radiusOuter
90256
+ }),
90257
+ dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;
90258
+
89772
90259
  var dropdownToken = statistic_merge(token, {
89773
90260
  menuCls: "".concat(componentCls, "-menu"),
89774
90261
  rootPrefixCls: rootPrefixCls,
89775
90262
  dropdownArrowDistance: sizePopupArrow + marginXXS,
89776
- dropdownArrowOffset: sizePopupArrow / Math.sqrt(2) * 2,
90263
+ dropdownArrowOffset: dropdownArrowOffset,
89777
90264
  dropdownPaddingVertical: dropdownPaddingVertical,
89778
- dropdownEdgeChildVerticalPadding: paddingXXS
90265
+ dropdownEdgeChildPadding: paddingXXS
89779
90266
  });
89780
90267
  return [genBaseStyle(dropdownToken), style_button(dropdownToken), style_status(dropdownToken)];
89781
90268
  }, function (token) {
@@ -89935,14 +90422,6 @@ var dropdown_Dropdown = function Dropdown(props) {
89935
90422
  getPrefixCls = _React$useContext.getPrefixCls,
89936
90423
  direction = _React$useContext.direction;
89937
90424
 
89938
- [['visible', 'open'], ['onVisibleChange', 'onOpenChange']].forEach(function (_ref) {
89939
- var _ref2 = slicedToArray_slicedToArray(_ref, 2),
89940
- deprecatedName = _ref2[0],
89941
- newName = _ref2[1];
89942
-
89943
- false ? 0 : void 0;
89944
- });
89945
-
89946
90425
  var getTransitionName = function getTransitionName() {
89947
90426
  var rootPrefixCls = getPrefixCls();
89948
90427
  var _props$placement = props.placement,
@@ -89984,7 +90463,12 @@ var dropdown_Dropdown = function Dropdown(props) {
89984
90463
  getPopupContainer = props.getPopupContainer,
89985
90464
  overlayClassName = props.overlayClassName,
89986
90465
  open = props.open,
89987
- onOpenChange = props.onOpenChange;
90466
+ onOpenChange = props.onOpenChange,
90467
+ visible = props.visible,
90468
+ onVisibleChange = props.onVisibleChange;
90469
+
90470
+ if (false) {}
90471
+
89988
90472
  var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
89989
90473
 
89990
90474
  var _useStyle = dropdown_style(prefixCls),
@@ -90006,7 +90490,7 @@ var dropdown_Dropdown = function Dropdown(props) {
90006
90490
 
90007
90491
 
90008
90492
  var _useMergedState = useMergedState_useMergedState(false, {
90009
- value: open
90493
+ value: open !== null && open !== void 0 ? open : visible
90010
90494
  }),
90011
90495
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
90012
90496
  mergedOpen = _useMergedState2[0],
@@ -90014,6 +90498,7 @@ var dropdown_Dropdown = function Dropdown(props) {
90014
90498
 
90015
90499
  var onInnerOpenChange = useEvent(function (nextOpen) {
90016
90500
  onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen);
90501
+ onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(nextOpen);
90017
90502
  setOpen(nextOpen);
90018
90503
  }); // =========================== Overlay ============================
90019
90504
 
@@ -92620,9 +93105,6 @@ function Divider_Divider(_ref) {
92620
93105
 
92621
93106
 
92622
93107
 
92623
- /** @private Only used for antd internal. Do not use in your production. */
92624
-
92625
- var es_useFullPath = useFullPath;
92626
93108
 
92627
93109
  var ExportMenu = es_Menu;
92628
93110
  ExportMenu.Item = es_MenuItem;
@@ -92960,12 +93442,9 @@ var getRTLStyle = function getRTLStyle(_ref) {
92960
93442
 
92961
93443
 
92962
93444
 
93445
+
92963
93446
  var accessibilityFocus = function accessibilityFocus(token) {
92964
- var controlOutlineWidth = token.controlOutlineWidth,
92965
- colorPrimaryHover = token.colorPrimaryHover;
92966
- return {
92967
- boxShadow: "0 0 0 ".concat(controlOutlineWidth, "px ").concat(colorPrimaryHover)
92968
- };
93447
+ return extends_extends({}, genFocusOutline(token));
92969
93448
  };
92970
93449
 
92971
93450
  var getThemeStyle = function getThemeStyle(token) {
@@ -93891,124 +94370,6 @@ var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default',
93891
94370
  var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
93892
94371
  ;// CONCATENATED MODULE: ./node_modules/antd/es/theme/interface.js
93893
94372
  var PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];
93894
- ;// CONCATENATED MODULE: ./node_modules/antd/es/style/placementArrow.js
93895
-
93896
-
93897
-
93898
-
93899
- function connectArrowCls(classList) {
93900
- var showArrowCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
93901
- return classList.map(function (cls) {
93902
- return "".concat(showArrowCls).concat(cls);
93903
- }).join(',');
93904
- }
93905
-
93906
- function getArrowStyle(token, colorBg, showArrowCls, arrowMargin) {
93907
- var _componentCls;
93908
-
93909
- var componentCls = token.componentCls,
93910
- sizePopupArrow = token.sizePopupArrow,
93911
- marginXXS = token.marginXXS,
93912
- radiusXS = token.radiusXS,
93913
- radiusOuter = token.radiusOuter,
93914
- boxShadowPopoverArrow = token.boxShadowPopoverArrow,
93915
- marginXS = token.marginXS;
93916
- var dropdownArrowOffset = arrowMargin !== null && arrowMargin !== void 0 ? arrowMargin : marginXS;
93917
- var dropdownArrowDistance = sizePopupArrow + marginXXS;
93918
- return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-arrow"), [extends_extends(extends_extends({
93919
- position: 'absolute',
93920
- zIndex: 1,
93921
- display: 'block'
93922
- }, roundedArrow(sizePopupArrow, radiusXS, radiusOuter, colorBg, boxShadowPopoverArrow)), {
93923
- '&:before': {
93924
- background: colorBg
93925
- }
93926
- })]), defineProperty_defineProperty(_componentCls, ["&-placement-top ".concat(componentCls, "-arrow"), "&-placement-topLeft ".concat(componentCls, "-arrow"), "&-placement-topRight ".concat(componentCls, "-arrow")].join(','), {
93927
- bottom: 0,
93928
- transform: 'translateY(100%) rotate(180deg)'
93929
- }), defineProperty_defineProperty(_componentCls, "&-placement-top ".concat(componentCls, "-arrow"), {
93930
- left: {
93931
- _skip_check_: true,
93932
- value: '50%'
93933
- },
93934
- transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
93935
- }), defineProperty_defineProperty(_componentCls, "&-placement-topLeft ".concat(componentCls, "-arrow"), {
93936
- left: {
93937
- _skip_check_: true,
93938
- value: dropdownArrowOffset
93939
- }
93940
- }), defineProperty_defineProperty(_componentCls, "&-placement-topRight ".concat(componentCls, "-arrow"), {
93941
- right: {
93942
- _skip_check_: true,
93943
- value: dropdownArrowOffset
93944
- }
93945
- }), defineProperty_defineProperty(_componentCls, ["&-placement-bottom ".concat(componentCls, "-arrow"), "&-placement-bottomLeft ".concat(componentCls, "-arrow"), "&-placement-bottomRight ".concat(componentCls, "-arrow")].join(','), {
93946
- top: 0,
93947
- transform: "translateY(-100%)"
93948
- }), defineProperty_defineProperty(_componentCls, "&-placement-bottom ".concat(componentCls, "-arrow"), {
93949
- left: {
93950
- _skip_check_: true,
93951
- value: '50%'
93952
- },
93953
- transform: "translateX(-50%) translateY(-100%)"
93954
- }), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft ".concat(componentCls, "-arrow"), {
93955
- left: {
93956
- _skip_check_: true,
93957
- value: dropdownArrowOffset
93958
- }
93959
- }), defineProperty_defineProperty(_componentCls, "&-placement-bottomRight ".concat(componentCls, "-arrow"), {
93960
- right: {
93961
- _skip_check_: true,
93962
- value: dropdownArrowOffset
93963
- }
93964
- }), defineProperty_defineProperty(_componentCls, ["&-placement-left ".concat(componentCls, "-arrow"), "&-placement-leftTop ".concat(componentCls, "-arrow"), "&-placement-leftBottom ".concat(componentCls, "-arrow")].join(','), {
93965
- right: {
93966
- _skip_check_: true,
93967
- value: 0
93968
- },
93969
- transform: 'translateX(100%) rotate(90deg)'
93970
- }), defineProperty_defineProperty(_componentCls, "&-placement-left ".concat(componentCls, "-arrow"), {
93971
- top: {
93972
- _skip_check_: true,
93973
- value: '50%'
93974
- },
93975
- transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
93976
- }), defineProperty_defineProperty(_componentCls, "&-placement-leftTop ".concat(componentCls, "-arrow"), {
93977
- top: dropdownArrowOffset
93978
- }), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom ".concat(componentCls, "-arrow"), {
93979
- bottom: dropdownArrowOffset
93980
- }), defineProperty_defineProperty(_componentCls, ["&-placement-right ".concat(componentCls, "-arrow"), "&-placement-rightTop ".concat(componentCls, "-arrow"), "&-placement-rightBottom ".concat(componentCls, "-arrow")].join(','), {
93981
- left: {
93982
- _skip_check_: true,
93983
- value: 0
93984
- },
93985
- transform: 'translateX(-100%) rotate(-90deg)'
93986
- }), defineProperty_defineProperty(_componentCls, "&-placement-right ".concat(componentCls, "-arrow"), {
93987
- top: {
93988
- _skip_check_: true,
93989
- value: '50%'
93990
- },
93991
- transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
93992
- }), defineProperty_defineProperty(_componentCls, "&-placement-rightTop ".concat(componentCls, "-arrow"), {
93993
- top: dropdownArrowOffset
93994
- }), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom ".concat(componentCls, "-arrow"), {
93995
- bottom: dropdownArrowOffset
93996
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"], showArrowCls), {
93997
- paddingBottom: dropdownArrowDistance
93998
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"], showArrowCls), {
93999
- paddingTop: dropdownArrowDistance
94000
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"], showArrowCls), {
94001
- paddingRight: {
94002
- _skip_check_: true,
94003
- value: dropdownArrowDistance
94004
- }
94005
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"], showArrowCls), {
94006
- paddingLeft: {
94007
- _skip_check_: true,
94008
- value: dropdownArrowDistance
94009
- }
94010
- }), _componentCls));
94011
- }
94012
94373
  ;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/style/index.js
94013
94374
 
94014
94375
 
@@ -94072,7 +94433,9 @@ var genTooltipStyle = function genTooltipStyle(token) {
94072
94433
  backgroundColor: tooltipBg,
94073
94434
  borderRadius: tooltipBorderRadius,
94074
94435
  boxShadow: boxShadowSecondary
94075
- }), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
94436
+ }), defineProperty_defineProperty(_extends2, ["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(','), defineProperty_defineProperty({}, "".concat(componentCls, "-inner"), {
94437
+ borderRadius: tooltipBorderRadius > MAX_VERTICAL_CONTENT_RADIUS ? MAX_VERTICAL_CONTENT_RADIUS : tooltipBorderRadius
94438
+ })), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
94076
94439
  position: 'relative'
94077
94440
  }), _extends2)), generatorTooltipPresetColor(token)), {
94078
94441
  // RTL
@@ -94082,7 +94445,12 @@ var genTooltipStyle = function genTooltipStyle(token) {
94082
94445
  })), // Arrow Style
94083
94446
  getArrowStyle(statistic_merge(token, {
94084
94447
  radiusOuter: tooltipRadiusOuter
94085
- }), 'var(--antd-arrow-background-color)', '', 0), // Pure Render
94448
+ }), {
94449
+ colorBg: 'var(--antd-arrow-background-color)',
94450
+ showArrowCls: '',
94451
+ contentRadius: tooltipBorderRadius,
94452
+ limitVerticalRadius: true
94453
+ }), // Pure Render
94086
94454
  defineProperty_defineProperty({}, "".concat(componentCls, "-pure"), {
94087
94455
  position: 'relative',
94088
94456
  maxWidth: 'none'
@@ -94242,22 +94610,28 @@ function getDisabledCompatibleChildren(element, prefixCls) {
94242
94610
  var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
94243
94611
  var _classNames2;
94244
94612
 
94613
+ var _a, _b;
94614
+
94615
+ var customizePrefixCls = props.prefixCls,
94616
+ openClassName = props.openClassName,
94617
+ getTooltipContainer = props.getTooltipContainer,
94618
+ overlayClassName = props.overlayClassName,
94619
+ color = props.color,
94620
+ overlayInnerStyle = props.overlayInnerStyle,
94621
+ children = props.children,
94622
+ afterOpenChange = props.afterOpenChange,
94623
+ afterVisibleChange = props.afterVisibleChange;
94624
+
94245
94625
  var _React$useContext = external_React_.useContext(context_ConfigContext),
94246
94626
  getContextPopupContainer = _React$useContext.getPopupContainer,
94247
94627
  getPrefixCls = _React$useContext.getPrefixCls,
94248
94628
  direction = _React$useContext.direction;
94249
94629
 
94250
- [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange']].forEach(function (_ref) {
94251
- var _ref2 = slicedToArray_slicedToArray(_ref, 2),
94252
- deprecatedName = _ref2[0],
94253
- newName = _ref2[1];
94254
-
94255
- false ? 0 : void 0;
94256
- });
94630
+ if (false) {}
94257
94631
 
94258
94632
  var _useMergedState = useMergedState_useMergedState(false, {
94259
- value: props.open,
94260
- defaultValue: props.defaultOpen
94633
+ value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,
94634
+ defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible
94261
94635
  }),
94262
94636
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
94263
94637
  open = _useMergedState2[0],
@@ -94339,19 +94713,12 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
94339
94713
  overlayStyle = props.overlayStyle,
94340
94714
  otherProps = tooltip_rest(props, ["getPopupContainer", "overlayStyle"]);
94341
94715
 
94342
- var customizePrefixCls = props.prefixCls,
94343
- openClassName = props.openClassName,
94344
- getTooltipContainer = props.getTooltipContainer,
94345
- overlayClassName = props.overlayClassName,
94346
- color = props.color,
94347
- overlayInnerStyle = props.overlayInnerStyle,
94348
- children = props.children;
94349
94716
  var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
94350
94717
  var rootPrefixCls = getPrefixCls();
94351
94718
  var injectFromPopover = props['data-popover-inject'];
94352
94719
  var tempOpen = open; // Hide tooltip when there is no title
94353
94720
 
94354
- if (!('open' in props) && isNoTitle()) {
94721
+ if (!('open' in props) && !('visible' in props) && isNoTitle()) {
94355
94722
  tempOpen = false;
94356
94723
  }
94357
94724
 
@@ -94388,6 +94755,7 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
94388
94755
  overlay: getOverlay(),
94389
94756
  visible: tempOpen,
94390
94757
  onVisibleChange: onOpenChange,
94758
+ afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,
94391
94759
  onPopupAlign: onPopupAlign,
94392
94760
  overlayInnerStyle: formattedOverlayInnerStyle,
94393
94761
  arrowContent: /*#__PURE__*/external_React_.createElement("span", {
@@ -94580,7 +94948,7 @@ function SubMenu_SubMenu(props) {
94580
94948
  var context = external_React_.useContext(menu_MenuContext);
94581
94949
  var prefixCls = context.prefixCls,
94582
94950
  inlineCollapsed = context.inlineCollapsed;
94583
- var parentPath = es_useFullPath();
94951
+ var parentPath = useFullPath();
94584
94952
  var titleNode;
94585
94953
 
94586
94954
  if (!icon) {
@@ -95004,15 +95372,15 @@ var getGroupRadioStyle = function getGroupRadioStyle(token) {
95004
95372
 
95005
95373
 
95006
95374
  var getRadioBasicStyle = function getRadioBasicStyle(token) {
95007
- var _$concat2, _extends3;
95375
+ var _$concat3, _extends3;
95008
95376
 
95009
95377
  var componentCls = token.componentCls,
95010
95378
  radioWrapperMarginRight = token.radioWrapperMarginRight,
95011
- radioDotColor = token.radioDotColor,
95379
+ radioCheckedColor = token.radioCheckedColor,
95012
95380
  radioTop = token.radioTop,
95013
- radioFocusShadow = token.radioFocusShadow,
95014
95381
  radioSize = token.radioSize,
95015
95382
  motionDurationSlow = token.motionDurationSlow,
95383
+ motionDurationFast = token.motionDurationFast,
95016
95384
  motionEaseInOut = token.motionEaseInOut,
95017
95385
  motionEaseInOutCirc = token.motionEaseInOutCirc,
95018
95386
  radioButtonBg = token.radioButtonBg,
@@ -95023,7 +95391,9 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95023
95391
  colorTextDisabled = token.colorTextDisabled,
95024
95392
  paddingXS = token.paddingXS,
95025
95393
  radioDotDisabledColor = token.radioDotDisabledColor,
95026
- controlLineType = token.controlLineType;
95394
+ controlLineType = token.controlLineType,
95395
+ radioDotDisabledSize = token.radioDotDisabledSize,
95396
+ wireframe = token.wireframe;
95027
95397
  var radioInnerPrefixCls = "".concat(componentCls, "-inner");
95028
95398
  return defineProperty_defineProperty({}, "".concat(componentCls, "-wrapper"), extends_extends(extends_extends({}, style_resetComponent(token)), (_extends3 = {
95029
95399
  position: 'relative',
@@ -95051,7 +95421,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95051
95421
  insetInlineStart: 0,
95052
95422
  width: '100%',
95053
95423
  height: '100%',
95054
- border: "".concat(controlLineWidth, "px ").concat(controlLineType, " ").concat(radioDotColor),
95424
+ border: "".concat(controlLineWidth, "px ").concat(controlLineType, " ").concat(radioCheckedColor),
95055
95425
  borderRadius: '50%',
95056
95426
  visibility: 'hidden',
95057
95427
  animationName: antRadioEffect,
@@ -95065,14 +95435,13 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95065
95435
  display: 'inline-block',
95066
95436
  outline: 'none',
95067
95437
  cursor: 'pointer'
95068
- })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-wrapper:hover &,\n &:hover ").concat(radioInnerPrefixCls, ",\n &-input:focus + ").concat(radioInnerPrefixCls), {
95069
- borderColor: radioDotColor
95070
- }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-input:focus + ").concat(radioInnerPrefixCls), {
95071
- boxShadow: radioFocusShadow
95072
- }), defineProperty_defineProperty(_extends3, "".concat(componentCls, ":hover::after, ").concat(componentCls, "-wrapper:hover &::after"), {
95438
+ })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-wrapper:hover &,\n &:hover ").concat(radioInnerPrefixCls), {
95439
+ borderColor: radioCheckedColor
95440
+ }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-input:focus-visible + ").concat(radioInnerPrefixCls), extends_extends({}, genFocusOutline(token))), defineProperty_defineProperty(_extends3, "".concat(componentCls, ":hover::after, ").concat(componentCls, "-wrapper:hover &::after"), {
95073
95441
  visibility: 'visible'
95074
95442
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-inner"), {
95075
95443
  '&::after': {
95444
+ boxSizing: 'border-box',
95076
95445
  position: 'absolute',
95077
95446
  insetBlockStart: '50%',
95078
95447
  insetInlineStart: '50%',
@@ -95081,7 +95450,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95081
95450
  height: radioSize,
95082
95451
  marginBlockStart: radioSize / -2,
95083
95452
  marginInlineStart: radioSize / -2,
95084
- backgroundColor: radioDotColor,
95453
+ backgroundColor: wireframe ? radioCheckedColor : radioButtonBg,
95085
95454
  borderBlockStart: 0,
95086
95455
  borderInlineStart: 0,
95087
95456
  borderRadius: radioSize,
@@ -95090,6 +95459,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95090
95459
  transition: "all ".concat(motionDurationSlow, " ").concat(motionEaseInOutCirc),
95091
95460
  content: '""'
95092
95461
  },
95462
+ boxSizing: 'border-box',
95093
95463
  position: 'relative',
95094
95464
  insetBlockStart: 0,
95095
95465
  insetInlineStart: 0,
@@ -95101,7 +95471,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95101
95471
  borderStyle: 'solid',
95102
95472
  borderWidth: controlLineWidth,
95103
95473
  borderRadius: '50%',
95104
- transition: "all ".concat(motionDurationSlow)
95474
+ transition: "all ".concat(motionDurationFast)
95105
95475
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-input"), {
95106
95476
  position: 'absolute',
95107
95477
  insetBlockStart: 0,
@@ -95112,27 +95482,32 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95112
95482
  cursor: 'pointer',
95113
95483
  opacity: 0
95114
95484
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-checked"), defineProperty_defineProperty({}, radioInnerPrefixCls, {
95115
- borderColor: radioDotColor,
95485
+ borderColor: radioCheckedColor,
95486
+ backgroundColor: wireframe ? radioButtonBg : radioCheckedColor,
95116
95487
  '&::after': {
95117
95488
  transform: "scale(".concat(radioDotSize / radioSize, ")"),
95118
95489
  opacity: 1,
95119
95490
  transition: "all ".concat(motionDurationSlow, " ").concat(motionEaseInOutCirc)
95120
95491
  }
95121
- })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-disabled"), (_$concat2 = {
95492
+ })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-disabled"), (_$concat3 = {
95122
95493
  cursor: 'not-allowed'
95123
- }, defineProperty_defineProperty(_$concat2, radioInnerPrefixCls, {
95494
+ }, defineProperty_defineProperty(_$concat3, radioInnerPrefixCls, {
95124
95495
  backgroundColor: colorBgContainerDisabled,
95125
95496
  borderColor: colorBorder,
95126
95497
  cursor: 'not-allowed',
95127
95498
  '&::after': {
95128
95499
  backgroundColor: radioDotDisabledColor
95129
95500
  }
95130
- }), defineProperty_defineProperty(_$concat2, '&-input', {
95501
+ }), defineProperty_defineProperty(_$concat3, '&-input', {
95131
95502
  cursor: 'not-allowed'
95132
- }), defineProperty_defineProperty(_$concat2, "".concat(componentCls, "-disabled + span"), {
95503
+ }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-disabled + span"), {
95133
95504
  color: colorTextDisabled,
95134
95505
  cursor: 'not-allowed'
95135
- }), _$concat2)), defineProperty_defineProperty(_extends3, "span".concat(componentCls, " + *"), {
95506
+ }), defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-checked"), defineProperty_defineProperty({}, radioInnerPrefixCls, {
95507
+ '&::after': {
95508
+ transform: "scale(".concat(radioDotDisabledSize / radioSize, ")")
95509
+ }
95510
+ })), _$concat3)), defineProperty_defineProperty(_extends3, "span".concat(componentCls, " + *"), {
95136
95511
  paddingInlineStart: paddingXS,
95137
95512
  paddingInlineEnd: paddingXS
95138
95513
  }), _extends3)));
@@ -95140,7 +95515,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95140
95515
 
95141
95516
 
95142
95517
  var getRadioButtonStyle = function getRadioButtonStyle(token) {
95143
- var _$concat3;
95518
+ var _$concat4;
95144
95519
 
95145
95520
  var radioButtonColor = token.radioButtonColor,
95146
95521
  controlHeight = token.controlHeight,
@@ -95149,6 +95524,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95149
95524
  controlLineType = token.controlLineType,
95150
95525
  colorBorder = token.colorBorder,
95151
95526
  motionDurationSlow = token.motionDurationSlow,
95527
+ motionDurationFast = token.motionDurationFast,
95152
95528
  radioButtonPaddingHorizontal = token.radioButtonPaddingHorizontal,
95153
95529
  fontSize = token.fontSize,
95154
95530
  radioButtonBg = token.radioButtonBg,
@@ -95159,8 +95535,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95159
95535
  controlRadius = token.controlRadius,
95160
95536
  controlRadiusSM = token.controlRadiusSM,
95161
95537
  controlRadiusLG = token.controlRadiusLG,
95162
- radioDotColor = token.radioDotColor,
95163
- radioButtonFocusShadow = token.radioButtonFocusShadow,
95538
+ radioCheckedColor = token.radioCheckedColor,
95164
95539
  radioButtonCheckedBg = token.radioButtonCheckedBg,
95165
95540
  radioButtonHoverColor = token.radioButtonHoverColor,
95166
95541
  radioButtonActiveColor = token.radioButtonActiveColor,
@@ -95169,7 +95544,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95169
95544
  colorBgContainerDisabled = token.colorBgContainerDisabled,
95170
95545
  radioDisabledButtonCheckedColor = token.radioDisabledButtonCheckedColor,
95171
95546
  radioDisabledButtonCheckedBg = token.radioDisabledButtonCheckedBg;
95172
- return defineProperty_defineProperty({}, "".concat(componentCls, "-button-wrapper"), (_$concat3 = {
95547
+ return defineProperty_defineProperty({}, "".concat(componentCls, "-button-wrapper"), (_$concat4 = {
95173
95548
  position: 'relative',
95174
95549
  display: 'inline-block',
95175
95550
  height: controlHeight,
@@ -95187,18 +95562,18 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95187
95562
  borderInlineStartWidth: 0,
95188
95563
  borderInlineEndWidth: controlLineWidth,
95189
95564
  cursor: 'pointer',
95190
- transition: ["color ".concat(motionDurationSlow), "background ".concat(motionDurationSlow), "border-color ".concat(motionDurationSlow), "box-shadow ".concat(motionDurationSlow)].join(','),
95565
+ transition: ["color ".concat(motionDurationFast), "background ".concat(motionDurationFast), "border-color ".concat(motionDurationFast), "box-shadow ".concat(motionDurationFast)].join(','),
95191
95566
  a: {
95192
95567
  color: radioButtonColor
95193
95568
  }
95194
- }, defineProperty_defineProperty(_$concat3, "> ".concat(componentCls, "-button"), {
95569
+ }, defineProperty_defineProperty(_$concat4, "> ".concat(componentCls, "-button"), {
95195
95570
  position: 'absolute',
95196
95571
  insetBlockStart: 0,
95197
95572
  insetInlineStart: 0,
95198
95573
  zIndex: -1,
95199
95574
  width: '100%',
95200
95575
  height: '100%'
95201
- }), defineProperty_defineProperty(_$concat3, '&:not(:first-child)', {
95576
+ }), defineProperty_defineProperty(_$concat4, '&:not(:first-child)', {
95202
95577
  '&::before': {
95203
95578
  position: 'absolute',
95204
95579
  insetBlockStart: -controlLineWidth,
@@ -95213,16 +95588,16 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95213
95588
  transition: "background-color ".concat(motionDurationSlow),
95214
95589
  content: '""'
95215
95590
  }
95216
- }), defineProperty_defineProperty(_$concat3, '&:first-child', {
95591
+ }), defineProperty_defineProperty(_$concat4, '&:first-child', {
95217
95592
  borderInlineStart: "".concat(controlLineWidth, "px ").concat(controlLineType, " ").concat(colorBorder),
95218
95593
  borderStartStartRadius: controlRadius,
95219
95594
  borderEndStartRadius: controlRadius
95220
- }), defineProperty_defineProperty(_$concat3, '&:last-child', {
95595
+ }), defineProperty_defineProperty(_$concat4, '&:last-child', {
95221
95596
  borderStartEndRadius: controlRadius,
95222
95597
  borderEndEndRadius: controlRadius
95223
- }), defineProperty_defineProperty(_$concat3, '&:first-child:last-child', {
95598
+ }), defineProperty_defineProperty(_$concat4, '&:first-child:last-child', {
95224
95599
  borderRadius: controlRadius
95225
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-group-large &"), {
95600
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-group-large &"), {
95226
95601
  height: controlHeightLG,
95227
95602
  fontSize: fontSizeLG,
95228
95603
  lineHeight: "".concat(controlHeightLG - controlLineWidth * 2, "px"),
@@ -95234,7 +95609,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95234
95609
  borderStartEndRadius: controlRadiusLG,
95235
95610
  borderEndEndRadius: controlRadiusLG
95236
95611
  }
95237
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-group-small &"), {
95612
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-group-small &"), {
95238
95613
  height: controlHeightSM,
95239
95614
  paddingInline: paddingXS - controlLineWidth,
95240
95615
  paddingBlock: 0,
@@ -95247,26 +95622,24 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95247
95622
  borderStartEndRadius: controlRadiusSM,
95248
95623
  borderEndEndRadius: controlRadiusSM
95249
95624
  }
95250
- }), defineProperty_defineProperty(_$concat3, '&:hover', {
95625
+ }), defineProperty_defineProperty(_$concat4, '&:hover', {
95251
95626
  position: 'relative',
95252
- color: radioDotColor
95253
- }), defineProperty_defineProperty(_$concat3, '&:focus-within', {
95254
- boxShadow: radioButtonFocusShadow
95255
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-inner, input[type='checkbox'], input[type='radio']"), {
95627
+ color: radioCheckedColor
95628
+ }), defineProperty_defineProperty(_$concat4, '&:has(:focus-visible)', extends_extends({}, genFocusOutline(token))), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-inner, input[type='checkbox'], input[type='radio']"), {
95256
95629
  width: 0,
95257
95630
  height: 0,
95258
95631
  opacity: 0,
95259
95632
  pointerEvents: 'none'
95260
- }), defineProperty_defineProperty(_$concat3, '&-checked:not(&-disabled)', {
95633
+ }), defineProperty_defineProperty(_$concat4, '&-checked:not(&-disabled)', {
95261
95634
  zIndex: 1,
95262
- color: radioDotColor,
95635
+ color: radioCheckedColor,
95263
95636
  background: radioButtonCheckedBg,
95264
- borderColor: radioDotColor,
95637
+ borderColor: radioCheckedColor,
95265
95638
  '&::before': {
95266
- backgroundColor: radioDotColor
95639
+ backgroundColor: radioCheckedColor
95267
95640
  },
95268
95641
  '&:first-child': {
95269
- borderColor: radioDotColor
95642
+ borderColor: radioCheckedColor
95270
95643
  },
95271
95644
  '&:hover': {
95272
95645
  color: radioButtonHoverColor,
@@ -95281,14 +95654,11 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95281
95654
  '&::before': {
95282
95655
  backgroundColor: radioButtonActiveColor
95283
95656
  }
95284
- },
95285
- '&:focus-within': {
95286
- boxShadow: radioButtonFocusShadow
95287
95657
  }
95288
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-group-solid &-checked:not(&-disabled)"), {
95658
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-group-solid &-checked:not(&-disabled)"), {
95289
95659
  color: radioSolidCheckedColor,
95290
- background: radioDotColor,
95291
- borderColor: radioDotColor,
95660
+ background: radioCheckedColor,
95661
+ borderColor: radioCheckedColor,
95292
95662
  '&:hover': {
95293
95663
  color: radioSolidCheckedColor,
95294
95664
  background: radioButtonHoverColor,
@@ -95298,11 +95668,8 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95298
95668
  color: radioSolidCheckedColor,
95299
95669
  background: radioButtonActiveColor,
95300
95670
  borderColor: radioButtonActiveColor
95301
- },
95302
- '&:focus-within': {
95303
- boxShadow: radioButtonFocusShadow
95304
95671
  }
95305
- }), defineProperty_defineProperty(_$concat3, '&-disabled', {
95672
+ }), defineProperty_defineProperty(_$concat4, '&-disabled', {
95306
95673
  color: colorTextDisabled,
95307
95674
  backgroundColor: colorBgContainerDisabled,
95308
95675
  borderColor: colorBorder,
@@ -95312,12 +95679,12 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95312
95679
  backgroundColor: colorBgContainerDisabled,
95313
95680
  borderColor: colorBorder
95314
95681
  }
95315
- }), defineProperty_defineProperty(_$concat3, '&-disabled&-checked', {
95682
+ }), defineProperty_defineProperty(_$concat4, '&-disabled&-checked', {
95316
95683
  color: radioDisabledButtonCheckedColor,
95317
95684
  backgroundColor: radioDisabledButtonCheckedBg,
95318
95685
  borderColor: colorBorder,
95319
95686
  boxShadow: 'none'
95320
- }), _$concat3));
95687
+ }), _$concat4));
95321
95688
  }; // ============================== Export ==============================
95322
95689
 
95323
95690
 
@@ -95325,7 +95692,6 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95325
95692
  var padding = token.padding,
95326
95693
  controlLineWidth = token.controlLineWidth,
95327
95694
  colorBgContainerDisabled = token.colorBgContainerDisabled,
95328
- paddingXXS = token.paddingXXS,
95329
95695
  colorTextDisabled = token.colorTextDisabled,
95330
95696
  colorBgContainer = token.colorBgContainer,
95331
95697
  fontSize = token.fontSize,
@@ -95337,14 +95703,17 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95337
95703
  colorText = token.colorText,
95338
95704
  colorPrimary = token.colorPrimary,
95339
95705
  marginXS = token.marginXS,
95340
- controlOutlineWidth = token.controlOutlineWidth; // Radio
95706
+ controlOutlineWidth = token.controlOutlineWidth,
95707
+ paddingXXS = token.paddingXXS,
95708
+ wireframe = token.wireframe; // Radio
95341
95709
 
95342
95710
  var radioFocusShadow = "0 0 0 ".concat(controlOutlineWidth, "px ").concat(controlOutline);
95343
95711
  var radioButtonFocusShadow = radioFocusShadow;
95344
95712
  var radioSize = fontSizeLG;
95345
95713
  var radioTop = (Math.round(fontSize * lineHeight) - radioSize) / 2;
95346
- var radioDotSize = radioSize - paddingXXS * 2;
95347
- var radioDotColor = colorPrimary; // Radio buttons
95714
+ var radioDotDisabledSize = radioSize - paddingXXS * 2;
95715
+ var radioDotSize = wireframe ? radioDotDisabledSize : radioSize - (paddingXXS + controlLineWidth) * 2;
95716
+ var radioCheckedColor = colorPrimary; // Radio buttons
95348
95717
 
95349
95718
  var radioButtonColor = colorText;
95350
95719
  var radioButtonHoverColor = colorPrimaryHover;
@@ -95358,7 +95727,8 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95358
95727
  radioSize: radioSize,
95359
95728
  radioTop: radioTop,
95360
95729
  radioDotSize: radioDotSize,
95361
- radioDotColor: radioDotColor,
95730
+ radioDotDisabledSize: radioDotDisabledSize,
95731
+ radioCheckedColor: radioCheckedColor,
95362
95732
  radioDotDisabledColor: colorTextDisabled,
95363
95733
  radioSolidCheckedColor: colorBgContainer,
95364
95734
  radioButtonBg: colorBgContainer,
@@ -97132,17 +97502,17 @@ function BaseProList(props) {
97132
97502
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
97133
97503
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
97134
97504
  var version_version = {
97135
- "@ant-design/pro-card": "2.0.4",
97136
- "@ant-design/pro-components": "2.3.6",
97137
- "@ant-design/pro-descriptions": "2.0.5",
97138
- "@ant-design/pro-field": "2.0.5",
97139
- "@ant-design/pro-form": "2.0.5",
97140
- "@ant-design/pro-layout": "7.0.4",
97141
- "@ant-design/pro-list": "2.0.5",
97505
+ "@ant-design/pro-card": "2.0.6",
97506
+ "@ant-design/pro-components": "2.3.8",
97507
+ "@ant-design/pro-descriptions": "2.0.7",
97508
+ "@ant-design/pro-field": "2.1.0",
97509
+ "@ant-design/pro-form": "2.1.0",
97510
+ "@ant-design/pro-layout": "7.0.6",
97511
+ "@ant-design/pro-list": "2.0.7",
97142
97512
  "@ant-design/pro-provider": "2.0.3",
97143
- "@ant-design/pro-skeleton": "2.0.2",
97144
- "@ant-design/pro-table": "3.0.5",
97145
- "@ant-design/pro-utils": "2.0.3"
97513
+ "@ant-design/pro-skeleton": "2.0.3",
97514
+ "@ant-design/pro-table": "3.0.7",
97515
+ "@ant-design/pro-utils": "2.1.0"
97146
97516
  };
97147
97517
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
97148
97518