@ant-design/pro-components 2.3.13 → 2.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +565 -436
- package/dist/components.min.js +1 -1
- package/es/version.js +10 -10
- package/package.json +11 -11
package/dist/components.js
CHANGED
|
@@ -20642,6 +20642,43 @@ function canUseDom() {
|
|
|
20642
20642
|
|
|
20643
20643
|
/***/ }),
|
|
20644
20644
|
|
|
20645
|
+
/***/ 2577:
|
|
20646
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
20647
|
+
|
|
20648
|
+
"use strict";
|
|
20649
|
+
|
|
20650
|
+
|
|
20651
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
20652
|
+
value: true
|
|
20653
|
+
}));
|
|
20654
|
+
exports["default"] = contains;
|
|
20655
|
+
|
|
20656
|
+
function contains(root, n) {
|
|
20657
|
+
if (!root) {
|
|
20658
|
+
return false;
|
|
20659
|
+
} // Use native if support
|
|
20660
|
+
|
|
20661
|
+
|
|
20662
|
+
if (root.contains) {
|
|
20663
|
+
return root.contains(n);
|
|
20664
|
+
} // `document.contains` not support with IE11
|
|
20665
|
+
|
|
20666
|
+
|
|
20667
|
+
var node = n;
|
|
20668
|
+
|
|
20669
|
+
while (node) {
|
|
20670
|
+
if (node === root) {
|
|
20671
|
+
return true;
|
|
20672
|
+
}
|
|
20673
|
+
|
|
20674
|
+
node = node.parentNode;
|
|
20675
|
+
}
|
|
20676
|
+
|
|
20677
|
+
return false;
|
|
20678
|
+
}
|
|
20679
|
+
|
|
20680
|
+
/***/ }),
|
|
20681
|
+
|
|
20645
20682
|
/***/ 535:
|
|
20646
20683
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
20647
20684
|
|
|
@@ -20659,6 +20696,8 @@ exports.updateCSS = updateCSS;
|
|
|
20659
20696
|
|
|
20660
20697
|
var _canUseDom = _interopRequireDefault(__webpack_require__(7702));
|
|
20661
20698
|
|
|
20699
|
+
var _contains = _interopRequireDefault(__webpack_require__(2577));
|
|
20700
|
+
|
|
20662
20701
|
var APPEND_ORDER = 'data-rc-order';
|
|
20663
20702
|
var MARK_KEY = "rc-util-key";
|
|
20664
20703
|
var containerCache = new Map();
|
|
@@ -20766,7 +20805,7 @@ function removeCSS(key) {
|
|
|
20766
20805
|
function syncRealContainer(container, option) {
|
|
20767
20806
|
var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
|
|
20768
20807
|
|
|
20769
|
-
if (!cachedRealContainer || !
|
|
20808
|
+
if (!cachedRealContainer || !(0, _contains.default)(document, cachedRealContainer)) {
|
|
20770
20809
|
var placeholderStyle = injectCSS('', option);
|
|
20771
20810
|
var parentNode = placeholderStyle.parentNode;
|
|
20772
20811
|
containerCache.set(container, parentNode);
|
|
@@ -24866,6 +24905,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24866
24905
|
"ProBreadcrumb": function() { return /* reexport */ ProBreadcrumb; },
|
|
24867
24906
|
"ProCard": function() { return /* reexport */ es_ProCard; },
|
|
24868
24907
|
"ProDescriptions": function() { return /* reexport */ ProDescriptions; },
|
|
24908
|
+
"ProField": function() { return /* reexport */ ProField; },
|
|
24869
24909
|
"ProForm": function() { return /* reexport */ ProForm; },
|
|
24870
24910
|
"ProFormCaptcha": function() { return /* reexport */ Captcha; },
|
|
24871
24911
|
"ProFormCascader": function() { return /* reexport */ components_Cascader; },
|
|
@@ -24901,6 +24941,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24901
24941
|
"ProList": function() { return /* reexport */ ProList; },
|
|
24902
24942
|
"ProPageHeader": function() { return /* reexport */ ProPageHeader; },
|
|
24903
24943
|
"ProProvider": function() { return /* reexport */ ProProvider; },
|
|
24944
|
+
"ProSkeleton": function() { return /* reexport */ ProSkeleton; },
|
|
24904
24945
|
"ProTable": function() { return /* reexport */ es_Table; },
|
|
24905
24946
|
"QueryFilter": function() { return /* reexport */ QueryFilter; },
|
|
24906
24947
|
"RouteContext": function() { return /* reexport */ RouteContext; },
|
|
@@ -26617,10 +26658,10 @@ var useSWR = withArgs(useSWRHandler);
|
|
|
26617
26658
|
moneySymbol: '€',
|
|
26618
26659
|
form: {
|
|
26619
26660
|
lightFilter: {
|
|
26620
|
-
more: '
|
|
26621
|
-
clear: '
|
|
26661
|
+
more: 'Més',
|
|
26662
|
+
clear: 'Netejar',
|
|
26622
26663
|
confirm: 'Confirmar',
|
|
26623
|
-
itemUnit: '
|
|
26664
|
+
itemUnit: 'Elements'
|
|
26624
26665
|
}
|
|
26625
26666
|
},
|
|
26626
26667
|
tableForm: {
|
|
@@ -26673,15 +26714,15 @@ var useSWR = withArgs(useSWRHandler);
|
|
|
26673
26714
|
},
|
|
26674
26715
|
editableTable: {
|
|
26675
26716
|
action: {
|
|
26676
|
-
save: '
|
|
26677
|
-
cancel: '
|
|
26717
|
+
save: 'Guardar',
|
|
26718
|
+
cancel: 'Cancel·lar',
|
|
26678
26719
|
delete: 'Eliminar',
|
|
26679
|
-
add: '
|
|
26720
|
+
add: 'afegir una fila de dades'
|
|
26680
26721
|
}
|
|
26681
26722
|
},
|
|
26682
26723
|
switch: {
|
|
26683
|
-
open: '
|
|
26684
|
-
close: '
|
|
26724
|
+
open: 'obert',
|
|
26725
|
+
close: 'tancat'
|
|
26685
26726
|
}
|
|
26686
26727
|
});
|
|
26687
26728
|
;// CONCATENATED MODULE: ./packages/provider/es/locale/de_DE.js
|
|
@@ -28393,7 +28434,7 @@ var CacheClean = function CacheClean() {
|
|
|
28393
28434
|
|
|
28394
28435
|
|
|
28395
28436
|
var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
|
|
28396
|
-
var
|
|
28437
|
+
var children = _ref2.children,
|
|
28397
28438
|
_ref2$autoClearCache = _ref2.autoClearCache,
|
|
28398
28439
|
autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache;
|
|
28399
28440
|
|
|
@@ -28405,43 +28446,44 @@ var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
|
|
|
28405
28446
|
|
|
28406
28447
|
var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
|
|
28407
28448
|
var proProvide = (0,external_React_.useContext)(es_ConfigContext);
|
|
28449
|
+
var proProvideValue = (0,external_React_.useMemo)(function () {
|
|
28450
|
+
var _proProvide$intl;
|
|
28408
28451
|
|
|
28409
|
-
|
|
28410
|
-
|
|
28411
|
-
var _value$intl, _process$env$NODE_ENV;
|
|
28452
|
+
var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
|
|
28453
|
+
var key = findIntlKeyByAntdLocaleKey(localeName); // antd 的 key 存在的时候以 antd 的为主
|
|
28412
28454
|
|
|
28413
|
-
|
|
28414
|
-
|
|
28455
|
+
var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
|
|
28456
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide), {}, {
|
|
28457
|
+
isDeps: true,
|
|
28458
|
+
intl: intl || zhCNIntl
|
|
28459
|
+
});
|
|
28460
|
+
}, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide]);
|
|
28461
|
+
var configProviderDom = (0,external_React_.useMemo)(function () {
|
|
28462
|
+
var _process$env$NODE_ENV; // 自动注入 antd 的配置
|
|
28415
28463
|
|
|
28416
|
-
var intl = localeName && ((_value$intl = value.intl) === null || _value$intl === void 0 ? void 0 : _value$intl.locale) === 'default' ? intlMap[key] : value.intl || intlMap[key]; // 自动注入 antd 的配置
|
|
28417
28464
|
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
-
|
|
28422
|
-
|
|
28423
|
-
|
|
28465
|
+
var configProvider = locale === undefined ? {
|
|
28466
|
+
locale: es_locale_zh_CN,
|
|
28467
|
+
theme: {
|
|
28468
|
+
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
|
|
28469
|
+
}
|
|
28470
|
+
} : {};
|
|
28424
28471
|
|
|
28425
|
-
|
|
28426
|
-
|
|
28427
|
-
|
|
28428
|
-
|
|
28429
|
-
|
|
28430
|
-
}),
|
|
28431
|
-
children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
28432
|
-
children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), _children]
|
|
28433
|
-
})
|
|
28472
|
+
var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
|
|
28473
|
+
children: (0,jsx_runtime.jsx)(ConfigProvider, {
|
|
28474
|
+
value: proProvideValue,
|
|
28475
|
+
children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
28476
|
+
children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
|
|
28434
28477
|
})
|
|
28435
|
-
})
|
|
28436
|
-
|
|
28437
|
-
if (proProvide.isDeps) return provide;
|
|
28438
|
-
return (0,jsx_runtime.jsx)("div", {
|
|
28439
|
-
className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(token.hashId),
|
|
28440
|
-
children: provide
|
|
28441
|
-
});
|
|
28442
|
-
}
|
|
28443
|
-
});
|
|
28478
|
+
})
|
|
28479
|
+
}));
|
|
28444
28480
|
|
|
28481
|
+
if (proProvide.isDeps) return provide;
|
|
28482
|
+
return (0,jsx_runtime.jsx)("div", {
|
|
28483
|
+
className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(token.hashId),
|
|
28484
|
+
children: provide
|
|
28485
|
+
});
|
|
28486
|
+
}, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, token.hashId]);
|
|
28445
28487
|
if (!autoClearCache) return configProviderDom;
|
|
28446
28488
|
return (0,jsx_runtime.jsx)(SWRConfig, {
|
|
28447
28489
|
value: {
|
|
@@ -28488,8 +28530,33 @@ function typeof_typeof(obj) {
|
|
|
28488
28530
|
function canUseDom() {
|
|
28489
28531
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
28490
28532
|
}
|
|
28533
|
+
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/contains.js
|
|
28534
|
+
function contains(root, n) {
|
|
28535
|
+
if (!root) {
|
|
28536
|
+
return false;
|
|
28537
|
+
} // Use native if support
|
|
28538
|
+
|
|
28539
|
+
|
|
28540
|
+
if (root.contains) {
|
|
28541
|
+
return root.contains(n);
|
|
28542
|
+
} // `document.contains` not support with IE11
|
|
28543
|
+
|
|
28544
|
+
|
|
28545
|
+
var node = n;
|
|
28546
|
+
|
|
28547
|
+
while (node) {
|
|
28548
|
+
if (node === root) {
|
|
28549
|
+
return true;
|
|
28550
|
+
}
|
|
28551
|
+
|
|
28552
|
+
node = node.parentNode;
|
|
28553
|
+
}
|
|
28554
|
+
|
|
28555
|
+
return false;
|
|
28556
|
+
}
|
|
28491
28557
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/dynamicCSS.js
|
|
28492
28558
|
|
|
28559
|
+
|
|
28493
28560
|
var APPEND_ORDER = 'data-rc-order';
|
|
28494
28561
|
var MARK_KEY = "rc-util-key";
|
|
28495
28562
|
var containerCache = new Map();
|
|
@@ -28596,7 +28663,7 @@ function removeCSS(key) {
|
|
|
28596
28663
|
function syncRealContainer(container, option) {
|
|
28597
28664
|
var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
|
|
28598
28665
|
|
|
28599
|
-
if (!cachedRealContainer || !
|
|
28666
|
+
if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
|
|
28600
28667
|
var placeholderStyle = injectCSS('', option);
|
|
28601
28668
|
var parentNode = placeholderStyle.parentNode;
|
|
28602
28669
|
containerCache.set(container, parentNode);
|
|
@@ -29504,6 +29571,7 @@ function createCache() {
|
|
|
29504
29571
|
return new Cache();
|
|
29505
29572
|
}
|
|
29506
29573
|
var StyleContext = /*#__PURE__*/external_React_.createContext({
|
|
29574
|
+
hashPriority: 'low',
|
|
29507
29575
|
cache: createCache(),
|
|
29508
29576
|
defaultCache: true
|
|
29509
29577
|
});
|
|
@@ -29511,22 +29579,25 @@ var StyleProvider = function StyleProvider(props) {
|
|
|
29511
29579
|
var autoClear = props.autoClear,
|
|
29512
29580
|
mock = props.mock,
|
|
29513
29581
|
cache = props.cache,
|
|
29582
|
+
hashPriority = props.hashPriority,
|
|
29514
29583
|
children = props.children;
|
|
29515
29584
|
|
|
29516
29585
|
var _React$useContext = React.useContext(StyleContext),
|
|
29517
29586
|
parentCache = _React$useContext.cache,
|
|
29518
29587
|
parentAutoClear = _React$useContext.autoClear,
|
|
29519
29588
|
parentMock = _React$useContext.mock,
|
|
29520
|
-
parentDefaultCache = _React$useContext.defaultCache
|
|
29589
|
+
parentDefaultCache = _React$useContext.defaultCache,
|
|
29590
|
+
parentHashPriority = _React$useContext.hashPriority;
|
|
29521
29591
|
|
|
29522
29592
|
var context = React.useMemo(function () {
|
|
29523
29593
|
return {
|
|
29524
29594
|
autoClear: autoClear !== null && autoClear !== void 0 ? autoClear : parentAutoClear,
|
|
29525
29595
|
mock: mock !== null && mock !== void 0 ? mock : parentMock,
|
|
29526
29596
|
cache: cache || parentCache || createCache(),
|
|
29527
|
-
defaultCache: !cache && parentDefaultCache
|
|
29597
|
+
defaultCache: !cache && parentDefaultCache,
|
|
29598
|
+
hashPriority: hashPriority !== null && hashPriority !== void 0 ? hashPriority : parentHashPriority
|
|
29528
29599
|
};
|
|
29529
|
-
}, [autoClear, parentAutoClear, parentMock, parentCache, mock, cache, parentDefaultCache]);
|
|
29600
|
+
}, [autoClear, parentAutoClear, parentMock, parentCache, mock, cache, parentDefaultCache, hashPriority, parentHashPriority]);
|
|
29530
29601
|
return /*#__PURE__*/React.createElement(StyleContext.Provider, {
|
|
29531
29602
|
value: context
|
|
29532
29603
|
}, children);
|
|
@@ -29796,16 +29867,6 @@ function supportSelector(styleStr, handleElement) {
|
|
|
29796
29867
|
return false;
|
|
29797
29868
|
}
|
|
29798
29869
|
|
|
29799
|
-
var canWhere = undefined;
|
|
29800
|
-
function supportWhere() {
|
|
29801
|
-
if (canWhere === undefined) {
|
|
29802
|
-
canWhere = supportSelector(":where(.".concat(layerKey, ") { width: ").concat(layerWidth, "!important; }"), function (ele) {
|
|
29803
|
-
ele.className = layerKey;
|
|
29804
|
-
});
|
|
29805
|
-
}
|
|
29806
|
-
|
|
29807
|
-
return canWhere;
|
|
29808
|
-
}
|
|
29809
29870
|
var canLayer = undefined;
|
|
29810
29871
|
function supportLayer() {
|
|
29811
29872
|
if (canLayer === undefined) {
|
|
@@ -29849,13 +29910,13 @@ function isCompoundCSSProperty(value) {
|
|
|
29849
29910
|
|
|
29850
29911
|
var animationStatistics = {}; // 注入 hash 值
|
|
29851
29912
|
|
|
29852
|
-
function injectSelectorHash(key, hashId) {
|
|
29913
|
+
function injectSelectorHash(key, hashId, hashPriority) {
|
|
29853
29914
|
if (!hashId) {
|
|
29854
29915
|
return key;
|
|
29855
29916
|
}
|
|
29856
29917
|
|
|
29857
29918
|
var hashClassName = ".".concat(hashId);
|
|
29858
|
-
var hashSelector =
|
|
29919
|
+
var hashSelector = hashPriority === 'low' ? ":where(".concat(hashClassName, ")") : hashClassName; // 注入 hashId
|
|
29859
29920
|
|
|
29860
29921
|
var keys = key.split(',').map(function (k) {
|
|
29861
29922
|
var _firstPath$match;
|
|
@@ -29882,7 +29943,8 @@ var parseStyle = function parseStyle(interpolation) {
|
|
|
29882
29943
|
|
|
29883
29944
|
var hashId = config.hashId,
|
|
29884
29945
|
layer = config.layer,
|
|
29885
|
-
path = config.path
|
|
29946
|
+
path = config.path,
|
|
29947
|
+
hashPriority = config.hashPriority;
|
|
29886
29948
|
var styleStr = '';
|
|
29887
29949
|
|
|
29888
29950
|
function parseKeyframes(keyframes) {
|
|
@@ -29936,7 +29998,7 @@ var parseStyle = function parseStyle(interpolation) {
|
|
|
29936
29998
|
subInjectHash = true;
|
|
29937
29999
|
} else {
|
|
29938
30000
|
// 注入 hashId
|
|
29939
|
-
mergedKey = injectSelectorHash(key, hashId);
|
|
30001
|
+
mergedKey = injectSelectorHash(key, hashId, hashPriority);
|
|
29940
30002
|
}
|
|
29941
30003
|
} else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {
|
|
29942
30004
|
// In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,
|
|
@@ -30023,7 +30085,8 @@ function useStyleRegister(info, styleFn) {
|
|
|
30023
30085
|
var _React$useContext = external_React_.useContext(es_StyleContext),
|
|
30024
30086
|
autoClear = _React$useContext.autoClear,
|
|
30025
30087
|
mock = _React$useContext.mock,
|
|
30026
|
-
defaultCache = _React$useContext.defaultCache
|
|
30088
|
+
defaultCache = _React$useContext.defaultCache,
|
|
30089
|
+
hashPriority = _React$useContext.hashPriority;
|
|
30027
30090
|
|
|
30028
30091
|
var tokenKey = token._tokenKey;
|
|
30029
30092
|
var fullPath = [tokenKey].concat(toConsumableArray_toConsumableArray(path)); // Check if need insert style
|
|
@@ -30037,6 +30100,7 @@ function useStyleRegister(info, styleFn) {
|
|
|
30037
30100
|
var styleObj = styleFn();
|
|
30038
30101
|
var styleStr = normalizeStyle(parseStyle(styleObj, {
|
|
30039
30102
|
hashId: hashId,
|
|
30103
|
+
hashPriority: hashPriority,
|
|
30040
30104
|
layer: layer,
|
|
30041
30105
|
path: path.join('-')
|
|
30042
30106
|
}));
|
|
@@ -31622,7 +31686,7 @@ var operationUnit = function operationUnit(token) {
|
|
|
31622
31686
|
* @returns {UseStyleResult}
|
|
31623
31687
|
*/
|
|
31624
31688
|
|
|
31625
|
-
function useStyle(componentName, styleFn) {
|
|
31689
|
+
function useStyle(componentName, styleFn, deps) {
|
|
31626
31690
|
var _useToken = useStyle_useToken(),
|
|
31627
31691
|
token = _useToken.token,
|
|
31628
31692
|
hashId = _useToken.hashId,
|
|
@@ -31641,7 +31705,7 @@ function useStyle(componentName, styleFn) {
|
|
|
31641
31705
|
return {
|
|
31642
31706
|
wrapSSR: useStyleRegister({
|
|
31643
31707
|
theme: theme,
|
|
31644
|
-
token: token,
|
|
31708
|
+
token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, deps), token),
|
|
31645
31709
|
hashId: hashId,
|
|
31646
31710
|
path: [componentName]
|
|
31647
31711
|
}, function () {
|
|
@@ -42178,8 +42242,13 @@ function useWatch_stringify(value) {
|
|
|
42178
42242
|
}
|
|
42179
42243
|
|
|
42180
42244
|
function useWatch() {
|
|
42181
|
-
var
|
|
42182
|
-
|
|
42245
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42246
|
+
args[_key] = arguments[_key];
|
|
42247
|
+
}
|
|
42248
|
+
|
|
42249
|
+
var _args$ = args[0],
|
|
42250
|
+
dependencies = _args$ === void 0 ? [] : _args$,
|
|
42251
|
+
form = args[1];
|
|
42183
42252
|
|
|
42184
42253
|
var _useState = (0,external_React_.useState)(),
|
|
42185
42254
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -42227,7 +42296,7 @@ function useWatch() {
|
|
|
42227
42296
|
return cancelRegister;
|
|
42228
42297
|
}, // We do not need re-register since namePath content is the same
|
|
42229
42298
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
42230
|
-
[]);
|
|
42299
|
+
[isValidForm]);
|
|
42231
42300
|
return value;
|
|
42232
42301
|
}
|
|
42233
42302
|
|
|
@@ -43451,17 +43520,17 @@ var ObjToMap = function ObjToMap(value) {
|
|
|
43451
43520
|
* @param pure 纯净模式,不增加 status
|
|
43452
43521
|
*/
|
|
43453
43522
|
|
|
43454
|
-
var proFieldParsingText = function proFieldParsingText(text, valueEnumParams) {
|
|
43523
|
+
var proFieldParsingText = function proFieldParsingText(text, valueEnumParams, key) {
|
|
43455
43524
|
if (Array.isArray(text)) {
|
|
43456
43525
|
return (0,jsx_runtime.jsx)(external_antd_.Space, {
|
|
43457
43526
|
split: ",",
|
|
43458
43527
|
size: 2,
|
|
43459
|
-
children: text.map(function (value) {
|
|
43528
|
+
children: text.map(function (value, index) {
|
|
43460
43529
|
return (// @ts-ignore
|
|
43461
|
-
proFieldParsingText(value, valueEnumParams)
|
|
43530
|
+
proFieldParsingText(value, valueEnumParams, index)
|
|
43462
43531
|
);
|
|
43463
43532
|
})
|
|
43464
|
-
});
|
|
43533
|
+
}, key);
|
|
43465
43534
|
}
|
|
43466
43535
|
|
|
43467
43536
|
var valueEnum = ObjToMap(valueEnumParams);
|
|
@@ -43475,7 +43544,9 @@ var proFieldParsingText = function proFieldParsingText(text, valueEnumParams) {
|
|
|
43475
43544
|
|
|
43476
43545
|
if (!domText) {
|
|
43477
43546
|
// @ts-ignore
|
|
43478
|
-
return (
|
|
43547
|
+
return (0,jsx_runtime.jsx)((external_React_default()).Fragment, {
|
|
43548
|
+
children: (text === null || text === void 0 ? void 0 : text.label) || text
|
|
43549
|
+
}, key);
|
|
43479
43550
|
}
|
|
43480
43551
|
|
|
43481
43552
|
var status = domText.status,
|
|
@@ -43485,7 +43556,7 @@ var proFieldParsingText = function proFieldParsingText(text, valueEnumParams) {
|
|
|
43485
43556
|
if (Status) {
|
|
43486
43557
|
return (0,jsx_runtime.jsx)(Status, {
|
|
43487
43558
|
children: domText.text
|
|
43488
|
-
});
|
|
43559
|
+
}, key);
|
|
43489
43560
|
} // 如果不存在使用颜色
|
|
43490
43561
|
|
|
43491
43562
|
|
|
@@ -43493,11 +43564,13 @@ var proFieldParsingText = function proFieldParsingText(text, valueEnumParams) {
|
|
|
43493
43564
|
return (0,jsx_runtime.jsx)(ProFieldBadgeColor, {
|
|
43494
43565
|
color: color,
|
|
43495
43566
|
children: domText.text
|
|
43496
|
-
});
|
|
43567
|
+
}, key);
|
|
43497
43568
|
} // 什么都没有使用 text
|
|
43498
43569
|
|
|
43499
43570
|
|
|
43500
|
-
return
|
|
43571
|
+
return (0,jsx_runtime.jsx)((external_React_default()).Fragment, {
|
|
43572
|
+
children: domText.text || domText
|
|
43573
|
+
}, key);
|
|
43501
43574
|
};
|
|
43502
43575
|
|
|
43503
43576
|
var Highlight = function Highlight(_ref) {
|
|
@@ -43547,6 +43620,7 @@ var Highlight = function Highlight(_ref) {
|
|
|
43547
43620
|
}
|
|
43548
43621
|
|
|
43549
43622
|
return wrapSSR( /*#__PURE__*/external_React_default().createElement.apply((external_React_default()), ['div', {
|
|
43623
|
+
title: label,
|
|
43550
43624
|
className: optionCls
|
|
43551
43625
|
}].concat(elements)));
|
|
43552
43626
|
};
|
|
@@ -47184,7 +47258,7 @@ var FieldDigit = function FieldDigit(_ref, ref) {
|
|
|
47184
47258
|
renderFormItem = _ref.renderFormItem,
|
|
47185
47259
|
fieldProps = _ref.fieldProps;
|
|
47186
47260
|
var proxyChange = (0,external_React_.useCallback)(function (value) {
|
|
47187
|
-
var val = value;
|
|
47261
|
+
var val = value !== null && value !== void 0 ? value : undefined;
|
|
47188
47262
|
|
|
47189
47263
|
if (typeof value === 'string') {
|
|
47190
47264
|
val = Number(val);
|
|
@@ -47648,9 +47722,10 @@ var getTextByLocale = function getTextByLocale(moneySymbol, paramsText, precisio
|
|
|
47648
47722
|
|
|
47649
47723
|
try {
|
|
47650
47724
|
// readonly moneySymbol = false, unused currency
|
|
47651
|
-
return new Intl.NumberFormat(moneySymbol || 'zh-Hans-CN', objectSpread2_objectSpread2(objectSpread2_objectSpread2({},
|
|
47725
|
+
return new Intl.NumberFormat(moneySymbol || 'zh-Hans-CN', objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, Money_intlMap[moneySymbol || 'zh-Hans-CN'] || Money_intlMap['zh-Hans-CN']), {}, {
|
|
47652
47726
|
maximumFractionDigits: precision
|
|
47653
|
-
}, config))
|
|
47727
|
+
}, config)) // fix: #6003 解决未指定货币符号时,金额文本格式化异常问题
|
|
47728
|
+
.format(moneyText).substring(+(moneySymbol === false));
|
|
47654
47729
|
} catch (error) {
|
|
47655
47730
|
return moneyText;
|
|
47656
47731
|
}
|
|
@@ -47748,6 +47823,19 @@ var FieldMoney = function FieldMoney(_ref2, ref) {
|
|
|
47748
47823
|
|
|
47749
47824
|
return defaultText;
|
|
47750
47825
|
}, [customSymbol, fieldProps.moneySymbol, intl, rest.moneySymbol]);
|
|
47826
|
+
var getFormateValue = (0,external_React_.useCallback)(function (value) {
|
|
47827
|
+
var reg = new RegExp("\\B(?=(\\d{".concat(3 + Math.max(precision - DefaultPrecisionCont, 0), "})+(?!\\d))"), 'g');
|
|
47828
|
+
|
|
47829
|
+
var _String$split = String(value).split('.'),
|
|
47830
|
+
_String$split2 = slicedToArray_slicedToArray(_String$split, 2),
|
|
47831
|
+
intS = _String$split2[0],
|
|
47832
|
+
floatS = _String$split2[1];
|
|
47833
|
+
|
|
47834
|
+
var resInt = intS.replace(reg, ',');
|
|
47835
|
+
var resFloat = '';
|
|
47836
|
+
if (floatS && precision > 0) resFloat = ".".concat(floatS.slice(0, precision === undefined ? DefaultPrecisionCont : precision));
|
|
47837
|
+
return "".concat(resInt).concat(resFloat);
|
|
47838
|
+
}, [precision]);
|
|
47751
47839
|
|
|
47752
47840
|
if (type === 'read') {
|
|
47753
47841
|
var dom = (0,jsx_runtime.jsx)("span", {
|
|
@@ -47765,20 +47853,6 @@ var FieldMoney = function FieldMoney(_ref2, ref) {
|
|
|
47765
47853
|
}
|
|
47766
47854
|
|
|
47767
47855
|
if (type === 'edit' || type === 'update') {
|
|
47768
|
-
var getFormateValue = function getFormateValue(value) {
|
|
47769
|
-
var reg = new RegExp("\\B(?=(\\d{".concat(3 + Math.max(precision - DefaultPrecisionCont, 0), "})+(?!\\d))"), 'g');
|
|
47770
|
-
|
|
47771
|
-
var _String$split = String(value).split('.'),
|
|
47772
|
-
_String$split2 = slicedToArray_slicedToArray(_String$split, 2),
|
|
47773
|
-
intS = _String$split2[0],
|
|
47774
|
-
floatS = _String$split2[1];
|
|
47775
|
-
|
|
47776
|
-
var resInt = intS.replace(reg, ',');
|
|
47777
|
-
var resFloat = '';
|
|
47778
|
-
if (floatS && precision > 0) resFloat = ".".concat(floatS.slice(0, precision === undefined ? DefaultPrecisionCont : precision));
|
|
47779
|
-
return "".concat(resInt).concat(resFloat);
|
|
47780
|
-
};
|
|
47781
|
-
|
|
47782
47856
|
var _dom = (0,jsx_runtime.jsx)(InputNumberPopover, objectSpread2_objectSpread2({
|
|
47783
47857
|
content: function content(props) {
|
|
47784
47858
|
if (numberPopoverRender === false) return;
|
|
@@ -48014,14 +48088,14 @@ var FieldPassword = function FieldPassword(_ref, ref) {
|
|
|
48014
48088
|
var intl = useIntl();
|
|
48015
48089
|
|
|
48016
48090
|
var _useMergedState = (0,useMergedState/* default */.Z)(function () {
|
|
48017
|
-
return rest.visible || false;
|
|
48091
|
+
return rest.open || rest.visible || false;
|
|
48018
48092
|
}, {
|
|
48019
|
-
value: rest.visible,
|
|
48020
|
-
onChange: rest.onVisible
|
|
48093
|
+
value: rest.open || rest.visible,
|
|
48094
|
+
onChange: rest.onOpenChange || rest.onVisible
|
|
48021
48095
|
}),
|
|
48022
48096
|
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
48023
|
-
|
|
48024
|
-
|
|
48097
|
+
open = _useMergedState2[0],
|
|
48098
|
+
setOpen = _useMergedState2[1];
|
|
48025
48099
|
|
|
48026
48100
|
if (mode === 'read') {
|
|
48027
48101
|
var dom = (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
@@ -48032,12 +48106,12 @@ var FieldPassword = function FieldPassword(_ref, ref) {
|
|
|
48032
48106
|
dom = (0,jsx_runtime.jsxs)(external_antd_.Space, {
|
|
48033
48107
|
children: [(0,jsx_runtime.jsx)("span", {
|
|
48034
48108
|
ref: ref,
|
|
48035
|
-
children:
|
|
48109
|
+
children: open ? text : '* * * * *'
|
|
48036
48110
|
}), (0,jsx_runtime.jsx)("a", {
|
|
48037
48111
|
onClick: function onClick() {
|
|
48038
|
-
return
|
|
48112
|
+
return setOpen(!open);
|
|
48039
48113
|
},
|
|
48040
|
-
children:
|
|
48114
|
+
children: open ? (0,jsx_runtime.jsx)(icons_EyeOutlined, {}) : (0,jsx_runtime.jsx)(icons_EyeInvisibleOutlined, {})
|
|
48041
48115
|
})]
|
|
48042
48116
|
});
|
|
48043
48117
|
}
|
|
@@ -48712,8 +48786,7 @@ var FieldSegmented = function FieldSegmented(_ref, ref) {
|
|
|
48712
48786
|
|
|
48713
48787
|
if (mode === 'edit' || mode === 'update') {
|
|
48714
48788
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.Segmented, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48715
|
-
ref: inputRef
|
|
48716
|
-
allowClear: true
|
|
48789
|
+
ref: inputRef
|
|
48717
48790
|
}, fieldProps), {}, {
|
|
48718
48791
|
options: options
|
|
48719
48792
|
}));
|
|
@@ -49981,8 +50054,7 @@ var defaultRenderText = function defaultRenderText(dataValue, valueType, props,
|
|
|
49981
50054
|
|
|
49982
50055
|
|
|
49983
50056
|
|
|
49984
|
-
|
|
49985
|
-
var ProField = function ProField(_ref, ref) {
|
|
50057
|
+
var ProFieldComponent = function ProFieldComponent(_ref, ref) {
|
|
49986
50058
|
var _ref2, _fieldProps$value, _ref3;
|
|
49987
50059
|
|
|
49988
50060
|
var text = _ref.text,
|
|
@@ -50033,7 +50105,9 @@ var ProField = function ProField(_ref, ref) {
|
|
|
50033
50105
|
});
|
|
50034
50106
|
};
|
|
50035
50107
|
|
|
50036
|
-
|
|
50108
|
+
var ProField = /*#__PURE__*/external_React_default().forwardRef(ProFieldComponent);
|
|
50109
|
+
|
|
50110
|
+
/* harmony default export */ var field_es = (ProField);
|
|
50037
50111
|
;// CONCATENATED MODULE: ./packages/form/es/BaseForm/EditOrReadOnlyContext.js
|
|
50038
50112
|
|
|
50039
50113
|
var EditOrReadOnlyContext = /*#__PURE__*/external_React_default().createContext({
|
|
@@ -50710,7 +50784,7 @@ PlusOutlined_PlusOutlined.displayName = 'PlusOutlined';
|
|
|
50710
50784
|
|
|
50711
50785
|
|
|
50712
50786
|
|
|
50713
|
-
var ListItem_excluded = ["creatorButtonProps", "deleteIconProps", "copyIconProps", "itemContainerRender", "itemRender", "alwaysShowItemLabel", "prefixCls", "creatorRecord", "action", "actionGuard", "children", "actionRender", "fields", "meta", "field", "index", "formInstance", "originName", "min", "max", "count"];
|
|
50787
|
+
var ListItem_excluded = ["creatorButtonProps", "deleteIconProps", "copyIconProps", "itemContainerRender", "itemRender", "alwaysShowItemLabel", "prefixCls", "creatorRecord", "action", "actionGuard", "children", "actionRender", "fields", "meta", "field", "index", "formInstance", "originName", "containerClassName", "containerStyle", "min", "max", "count"];
|
|
50714
50788
|
|
|
50715
50789
|
|
|
50716
50790
|
|
|
@@ -50755,6 +50829,8 @@ var ProFormListItem = function ProFormListItem(props) {
|
|
|
50755
50829
|
index = props.index,
|
|
50756
50830
|
formInstance = props.formInstance,
|
|
50757
50831
|
originName = props.originName,
|
|
50832
|
+
containerClassName = props.containerClassName,
|
|
50833
|
+
containerStyle = props.containerStyle,
|
|
50758
50834
|
min = props.min,
|
|
50759
50835
|
max = props.max,
|
|
50760
50836
|
count = props.count,
|
|
@@ -50936,10 +51012,10 @@ var ProFormListItem = function ProFormListItem(props) {
|
|
|
50936
51012
|
|
|
50937
51013
|
var contentDom = (itemRender === null || itemRender === void 0 ? void 0 : itemRender({
|
|
50938
51014
|
listDom: (0,jsx_runtime.jsx)("div", {
|
|
50939
|
-
className: "".concat(prefixCls, "-container ").concat(hashId),
|
|
50940
|
-
style: {
|
|
51015
|
+
className: "".concat(prefixCls, "-container ").concat(containerClassName, " ").concat(hashId),
|
|
51016
|
+
style: objectSpread2_objectSpread2({
|
|
50941
51017
|
width: grid ? '100%' : undefined
|
|
50942
|
-
},
|
|
51018
|
+
}, containerStyle),
|
|
50943
51019
|
children: itemContainer
|
|
50944
51020
|
}),
|
|
50945
51021
|
action: dom
|
|
@@ -50950,10 +51026,10 @@ var ProFormListItem = function ProFormListItem(props) {
|
|
|
50950
51026
|
alignItems: 'flex-end'
|
|
50951
51027
|
},
|
|
50952
51028
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
50953
|
-
className: "".concat(prefixCls, "-container ").concat(hashId),
|
|
50954
|
-
style: {
|
|
51029
|
+
className: "".concat(prefixCls, "-container ").concat(containerClassName, " ").concat(hashId),
|
|
51030
|
+
style: objectSpread2_objectSpread2({
|
|
50955
51031
|
width: grid ? '100%' : undefined
|
|
50956
|
-
},
|
|
51032
|
+
}, containerStyle),
|
|
50957
51033
|
children: itemContainer
|
|
50958
51034
|
}), dom]
|
|
50959
51035
|
});
|
|
@@ -52526,13 +52602,13 @@ function DrawerForm(_ref) {
|
|
|
52526
52602
|
onClick: function onClick(e) {
|
|
52527
52603
|
var _drawerProps$onClose;
|
|
52528
52604
|
|
|
52529
|
-
setOpen(false);
|
|
52530
|
-
|
|
52605
|
+
setOpen(false); // fix: #6006 点击取消按钮时,那么必然会触发抽屉关闭,我们无需在 此处重置表单,只需在抽屉关闭时重置即可
|
|
52606
|
+
|
|
52531
52607
|
drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$onClose = drawerProps.onClose) === null || _drawerProps$onClose === void 0 ? void 0 : _drawerProps$onClose.call(drawerProps, e);
|
|
52532
52608
|
}
|
|
52533
52609
|
}
|
|
52534
52610
|
}, rest.submitter);
|
|
52535
|
-
}, [rest.submitter, (_context$locale3 = context.locale) === null || _context$locale3 === void 0 ? void 0 : (_context$locale3$Moda = _context$locale3.Modal) === null || _context$locale3$Moda === void 0 ? void 0 : _context$locale3$Moda.okText, (_context$locale4 = context.locale) === null || _context$locale4 === void 0 ? void 0 : (_context$locale4$Moda = _context$locale4.Modal) === null || _context$locale4$Moda === void 0 ? void 0 : _context$locale4$Moda.cancelText, submitTimeout, loading, setOpen,
|
|
52611
|
+
}, [rest.submitter, (_context$locale3 = context.locale) === null || _context$locale3 === void 0 ? void 0 : (_context$locale3$Moda = _context$locale3.Modal) === null || _context$locale3$Moda === void 0 ? void 0 : _context$locale3$Moda.okText, (_context$locale4 = context.locale) === null || _context$locale4 === void 0 ? void 0 : (_context$locale4$Moda = _context$locale4.Modal) === null || _context$locale4$Moda === void 0 ? void 0 : _context$locale4$Moda.cancelText, submitTimeout, loading, setOpen, drawerProps]);
|
|
52536
52612
|
var contentRender = (0,external_React_.useCallback)(function (formDom, submitter) {
|
|
52537
52613
|
return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
52538
52614
|
children: [formDom, footerRef.current && submitter ? /*#__PURE__*/(0,external_ReactDOM_.createPortal)(submitter, footerRef.current) : submitter]
|
|
@@ -52613,7 +52689,6 @@ function DrawerForm(_ref) {
|
|
|
52613
52689
|
if (submitTimeout && loading) return;
|
|
52614
52690
|
setOpen(false);
|
|
52615
52691
|
drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$onClose2 = drawerProps.onClose) === null || _drawerProps$onClose2 === void 0 ? void 0 : _drawerProps$onClose2.call(drawerProps, e);
|
|
52616
|
-
resetFields();
|
|
52617
52692
|
},
|
|
52618
52693
|
footer: rest.submitter !== false && (0,jsx_runtime.jsx)("div", {
|
|
52619
52694
|
ref: footerDomRef,
|
|
@@ -52641,14 +52716,9 @@ function DrawerForm(_ref) {
|
|
|
52641
52716
|
|
|
52642
52717
|
case 2:
|
|
52643
52718
|
result = _context3.sent;
|
|
52644
|
-
|
|
52645
|
-
if (result === true) {
|
|
52646
|
-
resetFields();
|
|
52647
|
-
}
|
|
52648
|
-
|
|
52649
52719
|
return _context3.abrupt("return", result);
|
|
52650
52720
|
|
|
52651
|
-
case
|
|
52721
|
+
case 4:
|
|
52652
52722
|
case "end":
|
|
52653
52723
|
return _context3.stop();
|
|
52654
52724
|
}
|
|
@@ -53163,13 +53233,13 @@ function ModalForm(_ref) {
|
|
|
53163
53233
|
onClick: function onClick(e) {
|
|
53164
53234
|
var _modalProps$onCancel;
|
|
53165
53235
|
|
|
53166
|
-
setOpen(false);
|
|
53167
|
-
|
|
53236
|
+
setOpen(false); // fix: #6006 点击取消按钮时,那么必然会触发弹窗关闭,我们无需在 此处重置表单,只需在弹窗关闭时重置即可
|
|
53237
|
+
|
|
53168
53238
|
modalProps === null || modalProps === void 0 ? void 0 : (_modalProps$onCancel = modalProps.onCancel) === null || _modalProps$onCancel === void 0 ? void 0 : _modalProps$onCancel.call(modalProps, e);
|
|
53169
53239
|
}
|
|
53170
53240
|
}
|
|
53171
53241
|
}, rest.submitter);
|
|
53172
|
-
}, [(_context$locale3 = context.locale) === null || _context$locale3 === void 0 ? void 0 : (_context$locale3$Moda = _context$locale3.Modal) === null || _context$locale3$Moda === void 0 ? void 0 : _context$locale3$Moda.cancelText, (_context$locale4 = context.locale) === null || _context$locale4 === void 0 ? void 0 : (_context$locale4$Moda = _context$locale4.Modal) === null || _context$locale4$Moda === void 0 ? void 0 : _context$locale4$Moda.okText, modalProps, rest.submitter, setOpen, loading, submitTimeout
|
|
53242
|
+
}, [(_context$locale3 = context.locale) === null || _context$locale3 === void 0 ? void 0 : (_context$locale3$Moda = _context$locale3.Modal) === null || _context$locale3$Moda === void 0 ? void 0 : _context$locale3$Moda.cancelText, (_context$locale4 = context.locale) === null || _context$locale4 === void 0 ? void 0 : (_context$locale4$Moda = _context$locale4.Modal) === null || _context$locale4$Moda === void 0 ? void 0 : _context$locale4$Moda.okText, modalProps, rest.submitter, setOpen, loading, submitTimeout]);
|
|
53173
53243
|
var contentRender = (0,external_React_.useCallback)(function (formDom, submitter) {
|
|
53174
53244
|
return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
53175
53245
|
children: [formDom, footerRef.current && submitter ? /*#__PURE__*/(0,external_ReactDOM_.createPortal)(submitter, footerRef.current) : submitter]
|
|
@@ -53269,14 +53339,9 @@ function ModalForm(_ref) {
|
|
|
53269
53339
|
|
|
53270
53340
|
case 2:
|
|
53271
53341
|
result = _context3.sent;
|
|
53272
|
-
|
|
53273
|
-
if (result === true) {
|
|
53274
|
-
resetFields();
|
|
53275
|
-
}
|
|
53276
|
-
|
|
53277
53342
|
return _context3.abrupt("return", result);
|
|
53278
53343
|
|
|
53279
|
-
case
|
|
53344
|
+
case 4:
|
|
53280
53345
|
case "end":
|
|
53281
53346
|
return _context3.stop();
|
|
53282
53347
|
}
|
|
@@ -58271,6 +58336,7 @@ var ProFormGroup = ProForm.Group;
|
|
|
58271
58336
|
|
|
58272
58337
|
|
|
58273
58338
|
/* harmony default export */ var form_es = (ProForm);
|
|
58339
|
+
|
|
58274
58340
|
;// CONCATENATED MODULE: ./node_modules/use-media-antd-query/es/useMediaQuery.js
|
|
58275
58341
|
function useMediaQuery_slicedToArray(arr, i) {
|
|
58276
58342
|
return useMediaQuery_arrayWithHoles(arr) || useMediaQuery_iterableToArrayLimit(arr, i) || useMediaQuery_unsupportedIterableToArray(arr, i) || useMediaQuery_nonIterableRest();
|
|
@@ -59190,7 +59256,7 @@ var skeleton_es_excluded = ["type"];
|
|
|
59190
59256
|
|
|
59191
59257
|
|
|
59192
59258
|
|
|
59193
|
-
var
|
|
59259
|
+
var ProSkeleton = function ProSkeleton(_ref) {
|
|
59194
59260
|
var _ref$type = _ref.type,
|
|
59195
59261
|
type = _ref$type === void 0 ? 'list' : _ref$type,
|
|
59196
59262
|
rest = objectWithoutProperties_objectWithoutProperties(_ref, skeleton_es_excluded);
|
|
@@ -59207,7 +59273,7 @@ var PageSkeleton = function PageSkeleton(_ref) {
|
|
|
59207
59273
|
};
|
|
59208
59274
|
|
|
59209
59275
|
|
|
59210
|
-
/* harmony default export */ var skeleton_es = (
|
|
59276
|
+
/* harmony default export */ var skeleton_es = (ProSkeleton);
|
|
59211
59277
|
;// CONCATENATED MODULE: ./packages/descriptions/es/useFetchData.js
|
|
59212
59278
|
|
|
59213
59279
|
|
|
@@ -59973,7 +60039,7 @@ var GridContent = function GridContent(props) {
|
|
|
59973
60039
|
|
|
59974
60040
|
|
|
59975
60041
|
var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
|
|
59976
|
-
var _finalDesignTokens$si;
|
|
60042
|
+
var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
|
|
59977
60043
|
|
|
59978
60044
|
var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
|
|
59979
60045
|
|
|
@@ -60019,8 +60085,8 @@ var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken
|
|
|
60019
60085
|
}, finalDesignTokens.sider),
|
|
60020
60086
|
pageContainer: objectSpread2_objectSpread2({
|
|
60021
60087
|
colorBgPageContainer: 'transparent',
|
|
60022
|
-
|
|
60023
|
-
|
|
60088
|
+
paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
|
|
60089
|
+
paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
|
|
60024
60090
|
colorBgPageContainerFixed: '#fff'
|
|
60025
60091
|
}, finalDesignTokens.pageContainer)
|
|
60026
60092
|
});
|
|
@@ -60063,23 +60129,22 @@ var genPageHeaderStyle = function genPageHeaderStyle(token) {
|
|
|
60063
60129
|
|
|
60064
60130
|
return defineProperty_defineProperty({}, token.componentCls, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, resetComponent === null || resetComponent === void 0 ? void 0 : resetComponent(token)), {}, (_objectSpread4 = {
|
|
60065
60131
|
position: 'relative',
|
|
60066
|
-
backgroundColor: token.
|
|
60067
|
-
paddingBlock: token.pageHeaderPaddingVertical,
|
|
60132
|
+
backgroundColor: token.pageHeaderBgGhost,
|
|
60133
|
+
paddingBlock: token.pageHeaderPaddingVertical + 2,
|
|
60068
60134
|
paddingInline: token.pageHeaderPadding,
|
|
60069
|
-
'&-
|
|
60070
|
-
backgroundColor: token.pageHeaderBgGhost
|
|
60071
|
-
},
|
|
60072
|
-
'&-has-breadcrumb': {
|
|
60135
|
+
'& &-has-breadcrumb': {
|
|
60073
60136
|
paddingBlockStart: token.pageHeaderPaddingBreadCrumb
|
|
60074
60137
|
},
|
|
60075
|
-
'&-has-footer': {
|
|
60138
|
+
'& &-has-footer': {
|
|
60076
60139
|
paddingBlockEnd: 0
|
|
60077
60140
|
},
|
|
60078
|
-
'&-back': defineProperty_defineProperty({
|
|
60141
|
+
'& &-back': defineProperty_defineProperty({
|
|
60079
60142
|
marginInlineEnd: token.margin,
|
|
60080
60143
|
fontSize: 16,
|
|
60081
60144
|
lineHeight: 1,
|
|
60082
|
-
'&-button': objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
60145
|
+
'&-button': objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
60146
|
+
fontSize: 16
|
|
60147
|
+
}, operationUnit === null || operationUnit === void 0 ? void 0 : operationUnit(token)), {}, {
|
|
60083
60148
|
color: token.pageHeaderColorBack,
|
|
60084
60149
|
cursor: 'pointer'
|
|
60085
60150
|
})
|
|
@@ -60088,14 +60153,14 @@ var genPageHeaderStyle = function genPageHeaderStyle(token) {
|
|
|
60088
60153
|
marginInlineEnd: 0,
|
|
60089
60154
|
marginInlineStart: 0
|
|
60090
60155
|
})
|
|
60091
|
-
}, defineProperty_defineProperty(_objectSpread4, 'ant'
|
|
60156
|
+
}, defineProperty_defineProperty(_objectSpread4, "& ".concat('ant', "-divider-vertical"), {
|
|
60092
60157
|
height: 14,
|
|
60093
60158
|
marginBlock: 0,
|
|
60094
60159
|
marginInline: token.marginSM,
|
|
60095
60160
|
verticalAlign: 'middle'
|
|
60096
|
-
}), defineProperty_defineProperty(_objectSpread4, "&-breadcrumb + &-heading", {
|
|
60161
|
+
}), defineProperty_defineProperty(_objectSpread4, "& &-breadcrumb + &-heading", {
|
|
60097
60162
|
marginBlockStart: token.marginXS
|
|
60098
|
-
}), defineProperty_defineProperty(_objectSpread4, '&-heading', {
|
|
60163
|
+
}), defineProperty_defineProperty(_objectSpread4, '& &-heading', {
|
|
60099
60164
|
display: 'flex',
|
|
60100
60165
|
justifyContent: 'space-between',
|
|
60101
60166
|
'&-left': {
|
|
@@ -60170,9 +60235,9 @@ function PageHeader_style_useStyle(prefixCls) {
|
|
|
60170
60235
|
componentCls: ".".concat(prefixCls),
|
|
60171
60236
|
pageHeaderBgGhost: 'transparent',
|
|
60172
60237
|
pageHeaderPadding: 16,
|
|
60173
|
-
pageHeaderPaddingVertical:
|
|
60238
|
+
pageHeaderPaddingVertical: 4,
|
|
60174
60239
|
pageHeaderPaddingBreadCrumb: token.paddingSM,
|
|
60175
|
-
pageHeaderColorBack: token.
|
|
60240
|
+
pageHeaderColorBack: token.colorTextHeading,
|
|
60176
60241
|
pageHeaderFontSizeHeaderTitle: token.fontSizeHeading4,
|
|
60177
60242
|
pageHeaderFontSizeHeaderSubTitle: 14,
|
|
60178
60243
|
pageHeaderPaddingContentPadding: token.paddingSM
|
|
@@ -60195,19 +60260,19 @@ function PageHeader_style_useStyle(prefixCls) {
|
|
|
60195
60260
|
|
|
60196
60261
|
|
|
60197
60262
|
|
|
60198
|
-
var renderBack = function renderBack(prefixCls, backIcon, onBack) {
|
|
60263
|
+
var renderBack = function renderBack(prefixCls, hashId, backIcon, onBack) {
|
|
60199
60264
|
if (!backIcon || !onBack) {
|
|
60200
60265
|
return null;
|
|
60201
60266
|
}
|
|
60202
60267
|
|
|
60203
60268
|
return (0,jsx_runtime.jsx)("div", {
|
|
60204
|
-
className: "".concat(prefixCls, "-back"),
|
|
60205
|
-
children: (0,jsx_runtime.jsx)(
|
|
60206
|
-
|
|
60269
|
+
className: "".concat(prefixCls, "-back ").concat(hashId),
|
|
60270
|
+
children: (0,jsx_runtime.jsx)("div", {
|
|
60271
|
+
role: "button",
|
|
60207
60272
|
onClick: function onClick(e) {
|
|
60208
60273
|
onBack === null || onBack === void 0 ? void 0 : onBack(e);
|
|
60209
60274
|
},
|
|
60210
|
-
className: "".concat(prefixCls, "-back-button"),
|
|
60275
|
+
className: "".concat(prefixCls, "-back-button ").concat(hashId),
|
|
60211
60276
|
"aria-label": "back",
|
|
60212
60277
|
children: backIcon
|
|
60213
60278
|
})
|
|
@@ -60215,6 +60280,9 @@ var renderBack = function renderBack(prefixCls, backIcon, onBack) {
|
|
|
60215
60280
|
};
|
|
60216
60281
|
|
|
60217
60282
|
var renderBreadcrumb = function renderBreadcrumb(breadcrumb, prefixCls) {
|
|
60283
|
+
var _breadcrumb$routes;
|
|
60284
|
+
|
|
60285
|
+
if (!((_breadcrumb$routes = breadcrumb.routes) === null || _breadcrumb$routes === void 0 ? void 0 : _breadcrumb$routes.length)) return null;
|
|
60218
60286
|
return (0,jsx_runtime.jsx)(external_antd_.Breadcrumb, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, breadcrumb), {}, {
|
|
60219
60287
|
className: classnames_default()("".concat(prefixCls, "-breadcrumb"), breadcrumb.className)
|
|
60220
60288
|
}));
|
|
@@ -60247,7 +60315,7 @@ var renderTitle = function renderTitle(prefixCls, props) {
|
|
|
60247
60315
|
}
|
|
60248
60316
|
|
|
60249
60317
|
var backIcon = getBackIcon(props, direction);
|
|
60250
|
-
var backIconDom = renderBack(prefixCls, backIcon, onBack);
|
|
60318
|
+
var backIconDom = renderBack(prefixCls, hashId, backIcon, onBack);
|
|
60251
60319
|
var hasTitle = backIconDom || avatar || hasHeading;
|
|
60252
60320
|
return (0,jsx_runtime.jsxs)("div", {
|
|
60253
60321
|
className: headingPrefixCls + ' ' + hashId,
|
|
@@ -60309,7 +60377,6 @@ var PageHeader = function PageHeader(props) {
|
|
|
60309
60377
|
|
|
60310
60378
|
var _React$useContext = external_React_.useContext(external_antd_.ConfigProvider.ConfigContext),
|
|
60311
60379
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
60312
|
-
pageHeader = _React$useContext.pageHeader,
|
|
60313
60380
|
direction = _React$useContext.direction;
|
|
60314
60381
|
|
|
60315
60382
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -60319,14 +60386,6 @@ var PageHeader = function PageHeader(props) {
|
|
|
60319
60386
|
breadcrumb = props.breadcrumb,
|
|
60320
60387
|
breadcrumbRender = props.breadcrumbRender,
|
|
60321
60388
|
customizeClassName = props.className;
|
|
60322
|
-
var ghost = true; // Use `ghost` from `props` or from `ConfigProvider` instead.
|
|
60323
|
-
|
|
60324
|
-
if ('ghost' in props) {
|
|
60325
|
-
ghost = props.ghost;
|
|
60326
|
-
} else if (pageHeader && 'ghost' in pageHeader) {
|
|
60327
|
-
ghost = pageHeader.ghost;
|
|
60328
|
-
}
|
|
60329
|
-
|
|
60330
60389
|
var prefixCls = getPrefixCls('page-header', customizePrefixCls);
|
|
60331
60390
|
|
|
60332
60391
|
var _useStyle = PageHeader_style_useStyle(prefixCls),
|
|
@@ -60350,7 +60409,7 @@ var PageHeader = function PageHeader(props) {
|
|
|
60350
60409
|
var breadcrumbDom = isBreadcrumbComponent ? breadcrumb : breadcrumbRenderDomFromProps;
|
|
60351
60410
|
var className = classnames_default()(prefixCls, props.className, customizeClassName, (_classNames = {
|
|
60352
60411
|
hashId: hashId
|
|
60353
|
-
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-breadcrumb"), !!breadcrumbDom), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-footer"), !!footer), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-
|
|
60412
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-breadcrumb"), !!breadcrumbDom), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-footer"), !!footer), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-compact"), compact), _classNames));
|
|
60354
60413
|
var title = renderTitle(prefixCls, props, direction, hashId);
|
|
60355
60414
|
var childDom = children && renderChildren(prefixCls, children, hashId);
|
|
60356
60415
|
var footerDom = renderFooter(prefixCls, footer, hashId);
|
|
@@ -60559,24 +60618,20 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
60559
60618
|
|
|
60560
60619
|
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
60561
60620
|
position: 'relative',
|
|
60562
|
-
'&-layout-has-margin': {
|
|
60563
|
-
marginBlock: token.marginBlockPageContainerContent,
|
|
60564
|
-
marginInline: -token.marginInlinePageContainerContent
|
|
60565
|
-
},
|
|
60566
60621
|
'&-children-content': {
|
|
60567
|
-
|
|
60568
|
-
|
|
60622
|
+
paddingBlock: token.paddingBlockPageContainerContent,
|
|
60623
|
+
paddingInline: token.paddingInlinePageContainerContent
|
|
60569
60624
|
},
|
|
60570
60625
|
'&-affix': defineProperty_defineProperty({}, "".concat(token.antCls, "-affix"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-warp"), {
|
|
60571
60626
|
backgroundColor: token.colorBgPageContainerFixed,
|
|
60572
60627
|
boxShadow: '0 2px 8px #f0f1f2'
|
|
60573
60628
|
}))
|
|
60574
60629
|
}, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
|
|
60575
|
-
|
|
60576
|
-
paddingInlineStart: token.
|
|
60577
|
-
paddingInlineEnd: token.
|
|
60630
|
+
paddingBlockEnd: token.paddingBlockPageContainerContent / 2,
|
|
60631
|
+
paddingInlineStart: token.paddingInlinePageContainerContent,
|
|
60632
|
+
paddingInlineEnd: token.paddingInlinePageContainerContent
|
|
60578
60633
|
}, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
|
|
60579
|
-
|
|
60634
|
+
paddingBlock: token.paddingBlockPageContainerContent / 3
|
|
60580
60635
|
}))), defineProperty_defineProperty(_token$componentCls, '&-detail', defineProperty_defineProperty({
|
|
60581
60636
|
display: 'flex'
|
|
60582
60637
|
}, sm, {
|
|
@@ -60608,17 +60663,18 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
60608
60663
|
}), _extraContent)), _token$componentCls));
|
|
60609
60664
|
};
|
|
60610
60665
|
|
|
60611
|
-
function PageContainer_style_useStyle(prefixCls) {
|
|
60666
|
+
function PageContainer_style_useStyle(prefixCls, componentsToken) {
|
|
60612
60667
|
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
60613
60668
|
pageContainer = _useContext.pageContainer;
|
|
60614
60669
|
|
|
60615
60670
|
return useStyle('page-container', function (token) {
|
|
60616
|
-
var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
60671
|
+
var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
60617
60672
|
componentCls: ".".concat(prefixCls)
|
|
60618
|
-
}, pageContainer);
|
|
60673
|
+
}, pageContainer), componentsToken);
|
|
60619
60674
|
|
|
60620
60675
|
return [genPageContainerStyle(proCardToken)];
|
|
60621
|
-
}
|
|
60676
|
+
}, // 触发一下更新
|
|
60677
|
+
componentsToken);
|
|
60622
60678
|
}
|
|
60623
60679
|
;// CONCATENATED MODULE: ./packages/layout/es/components/PageContainer/index.js
|
|
60624
60680
|
|
|
@@ -60626,7 +60682,7 @@ function PageContainer_style_useStyle(prefixCls) {
|
|
|
60626
60682
|
|
|
60627
60683
|
|
|
60628
60684
|
var PageContainer_excluded = ["title", "content", "pageHeaderRender", "header", "prefixedClassName", "extraContent", "style", "prefixCls", "hashId", "value", "breadcrumbRender"],
|
|
60629
|
-
PageContainer_excluded2 = ["children", "loading", "className", "style", "footer", "affixProps", "fixedHeader", "breadcrumbRender"];
|
|
60685
|
+
PageContainer_excluded2 = ["children", "loading", "className", "style", "footer", "affixProps", "token", "fixedHeader", "breadcrumbRender"];
|
|
60630
60686
|
|
|
60631
60687
|
|
|
60632
60688
|
|
|
@@ -60817,6 +60873,7 @@ var PageContainer = function PageContainer(props) {
|
|
|
60817
60873
|
style = props.style,
|
|
60818
60874
|
footer = props.footer,
|
|
60819
60875
|
affixProps = props.affixProps,
|
|
60876
|
+
propsToken = props.token,
|
|
60820
60877
|
fixedHeader = props.fixedHeader,
|
|
60821
60878
|
breadcrumbRender = props.breadcrumbRender,
|
|
60822
60879
|
restProps = objectWithoutProperties_objectWithoutProperties(props, PageContainer_excluded2);
|
|
@@ -60848,7 +60905,7 @@ var PageContainer = function PageContainer(props) {
|
|
|
60848
60905
|
var prefixCls = props.prefixCls || getPrefixCls('pro');
|
|
60849
60906
|
var basePageContainer = "".concat(prefixCls, "-page-container");
|
|
60850
60907
|
|
|
60851
|
-
var _useStyle = PageContainer_style_useStyle(basePageContainer),
|
|
60908
|
+
var _useStyle = PageContainer_style_useStyle(basePageContainer, propsToken),
|
|
60852
60909
|
wrapSSR = _useStyle.wrapSSR,
|
|
60853
60910
|
hashId = _useStyle.hashId;
|
|
60854
60911
|
|
|
@@ -60890,11 +60947,11 @@ var PageContainer = function PageContainer(props) {
|
|
|
60890
60947
|
}), value.hasFooterToolbar && (0,jsx_runtime.jsx)("div", {
|
|
60891
60948
|
style: {
|
|
60892
60949
|
height: 64,
|
|
60893
|
-
marginBlockStart: pageContainer.
|
|
60950
|
+
marginBlockStart: pageContainer.paddingBlockPageContainerContent
|
|
60894
60951
|
}
|
|
60895
60952
|
})]
|
|
60896
60953
|
}) : null;
|
|
60897
|
-
}, [children, basePageContainer, hashId, value.hasFooterToolbar, pageContainer.
|
|
60954
|
+
}, [children, basePageContainer, hashId, value.hasFooterToolbar, pageContainer.paddingBlockPageContainerContent]);
|
|
60898
60955
|
var renderContentDom = (0,external_React_.useMemo)(function () {
|
|
60899
60956
|
// 只要loadingDom非空我们就渲染loadingDom,否则渲染内容
|
|
60900
60957
|
var dom = loadingDom || content;
|
|
@@ -60909,7 +60966,7 @@ var PageContainer = function PageContainer(props) {
|
|
|
60909
60966
|
|
|
60910
60967
|
return dom;
|
|
60911
60968
|
}, [props.waterMarkProps, value.waterMarkProps, loadingDom, content]);
|
|
60912
|
-
var containerClassName = classnames_default()(basePageContainer, hashId, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-
|
|
60969
|
+
var containerClassName = classnames_default()(basePageContainer, hashId, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-footer"), footer), defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-affix"), fixedHeader && pageHeaderDom), _classNames));
|
|
60913
60970
|
var token = (0,external_React_.useContext)(ProLayoutContext);
|
|
60914
60971
|
return wrapSSR((0,jsx_runtime.jsxs)(ConfigProviderWrap, {
|
|
60915
60972
|
children: [(0,jsx_runtime.jsxs)("div", {
|
|
@@ -61641,6 +61698,7 @@ function AppsLogoComponents_style_useStyle(prefixCls) {
|
|
|
61641
61698
|
var defaultRenderLogo = function defaultRenderLogo(logo) {
|
|
61642
61699
|
if (typeof logo === 'string') {
|
|
61643
61700
|
return (0,jsx_runtime.jsx)("img", {
|
|
61701
|
+
width: 22,
|
|
61644
61702
|
src: logo,
|
|
61645
61703
|
alt: "logo"
|
|
61646
61704
|
});
|
|
@@ -62879,7 +62937,7 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
62879
62937
|
// @ts-ignore
|
|
62880
62938
|
theme: {
|
|
62881
62939
|
hashed: false,
|
|
62882
|
-
|
|
62940
|
+
components: {
|
|
62883
62941
|
Menu: {
|
|
62884
62942
|
radiusItem: 4,
|
|
62885
62943
|
colorItemBgSelected: sider.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
|
|
@@ -63247,12 +63305,10 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
63247
63305
|
var contentDom = (0,external_React_.useMemo)(function () {
|
|
63248
63306
|
var _process$env$NODE_ENV, _props$menuProps;
|
|
63249
63307
|
|
|
63250
|
-
var defaultDom = (0,jsx_runtime.jsx)(external_antd_.ConfigProvider
|
|
63251
|
-
, {
|
|
63252
|
-
// @ts-ignore
|
|
63308
|
+
var defaultDom = (0,jsx_runtime.jsx)(external_antd_.ConfigProvider, {
|
|
63253
63309
|
theme: {
|
|
63254
63310
|
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
|
|
63255
|
-
|
|
63311
|
+
components: {
|
|
63256
63312
|
Menu: {
|
|
63257
63313
|
colorItemBg: header.colorBgHeader || 'transparent',
|
|
63258
63314
|
colorSubItemBg: header.colorBgHeader || 'transparent',
|
|
@@ -63581,7 +63637,7 @@ var DefaultHeader = function DefaultHeader(props) {
|
|
|
63581
63637
|
// @ts-ignore
|
|
63582
63638
|
theme: {
|
|
63583
63639
|
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
|
|
63584
|
-
|
|
63640
|
+
components: {
|
|
63585
63641
|
Layout: {
|
|
63586
63642
|
colorBgHeader: 'transparent',
|
|
63587
63643
|
colorBgBody: 'transparent'
|
|
@@ -67770,10 +67826,10 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
67770
67826
|
'*': {
|
|
67771
67827
|
boxSizing: 'border-box'
|
|
67772
67828
|
},
|
|
67773
|
-
|
|
67774
|
-
|
|
67829
|
+
paddingBlock: token.pageContainer.paddingBlockPageContainerContent,
|
|
67830
|
+
paddingInline: token.pageContainer.paddingInlinePageContainerContent,
|
|
67775
67831
|
'&-has-page-container': {
|
|
67776
|
-
|
|
67832
|
+
padding: 0
|
|
67777
67833
|
}
|
|
67778
67834
|
}), defineProperty_defineProperty(_$concat12, "".concat(token.componentCls, "-container"), {
|
|
67779
67835
|
width: '100%',
|
|
@@ -72148,7 +72204,9 @@ var HeaderMenu = function HeaderMenu(props) {
|
|
|
72148
72204
|
|
|
72149
72205
|
|
|
72150
72206
|
var genProListStyle = function genProListStyle(token) {
|
|
72151
|
-
|
|
72207
|
+
var _token$componentCls;
|
|
72208
|
+
|
|
72209
|
+
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
72152
72210
|
lineHeight: '1',
|
|
72153
72211
|
'&-container': {
|
|
72154
72212
|
display: 'flex',
|
|
@@ -72220,33 +72278,31 @@ var genProListStyle = function genProListStyle(token) {
|
|
|
72220
72278
|
fontWeight: 'bold',
|
|
72221
72279
|
opacity: '1'
|
|
72222
72280
|
}
|
|
72281
|
+
}
|
|
72282
|
+
}, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-tabs-top > ").concat(token.antCls, "-tabs-nav"), defineProperty_defineProperty({
|
|
72283
|
+
marginBlockEnd: 0,
|
|
72284
|
+
'&::before': {
|
|
72285
|
+
borderBlockEnd: 0
|
|
72286
|
+
}
|
|
72287
|
+
}, "".concat(token.antCls, "-tabs-nav-list"), {
|
|
72288
|
+
marginBlockStart: 0,
|
|
72289
|
+
'${token.antCls}-tabs-tab': {
|
|
72290
|
+
paddingBlockStart: 0
|
|
72291
|
+
}
|
|
72292
|
+
})), defineProperty_defineProperty(_token$componentCls, '&-dropdownmenu-label', {
|
|
72293
|
+
fontWeight: 'bold',
|
|
72294
|
+
fontSize: token.fontSizeIcon,
|
|
72295
|
+
textAlign: 'center',
|
|
72296
|
+
cursor: 'pointer'
|
|
72297
|
+
}), defineProperty_defineProperty(_token$componentCls, '@media (max-width: 575px)', defineProperty_defineProperty({}, token.componentCls, {
|
|
72298
|
+
'&-container': {
|
|
72299
|
+
display: 'flex',
|
|
72300
|
+
flexWrap: 'wrap'
|
|
72223
72301
|
},
|
|
72224
|
-
'&-
|
|
72225
|
-
|
|
72226
|
-
|
|
72227
|
-
|
|
72228
|
-
cursor: 'pointer'
|
|
72229
|
-
}, "".concat(token.antCls, "-tabs-top > ").concat(token.antCls, "-tabs-nav"), defineProperty_defineProperty({
|
|
72230
|
-
marginBlockEnd: 0,
|
|
72231
|
-
'&::before': {
|
|
72232
|
-
borderBlockEnd: 0
|
|
72233
|
-
}
|
|
72234
|
-
}, "".concat(token.antCls, "-tabs-nav-list"), {
|
|
72235
|
-
marginBlockStart: 0,
|
|
72236
|
-
'${token.antCls}-tabs-tab': {
|
|
72237
|
-
paddingBlockStart: 0
|
|
72238
|
-
}
|
|
72239
|
-
})),
|
|
72240
|
-
'@media (max-width: 575px)': defineProperty_defineProperty({}, token.componentCls, {
|
|
72241
|
-
'&-container': {
|
|
72242
|
-
display: 'flex',
|
|
72243
|
-
flexWrap: 'wrap'
|
|
72244
|
-
},
|
|
72245
|
-
'&-left': {
|
|
72246
|
-
marginBlockEnd: '16px'
|
|
72247
|
-
}
|
|
72248
|
-
})
|
|
72249
|
-
});
|
|
72302
|
+
'&-left': {
|
|
72303
|
+
marginBlockEnd: '16px'
|
|
72304
|
+
}
|
|
72305
|
+
})), _token$componentCls));
|
|
72250
72306
|
};
|
|
72251
72307
|
|
|
72252
72308
|
function ListToolBar_style_useStyle(prefixCls) {
|
|
@@ -75000,7 +75056,6 @@ ProviderWarp.Summary = external_antd_.Table.Summary;
|
|
|
75000
75056
|
;// CONCATENATED MODULE: ./packages/table/es/utils/useDragSort.js
|
|
75001
75057
|
|
|
75002
75058
|
|
|
75003
|
-
var useDragSort_excluded = ["className", "style"];
|
|
75004
75059
|
|
|
75005
75060
|
|
|
75006
75061
|
|
|
@@ -75038,9 +75093,7 @@ function useDragSort(props) {
|
|
|
75038
75093
|
}, p));
|
|
75039
75094
|
});
|
|
75040
75095
|
var DraggableBodyRow = useRefFunction(function (p) {
|
|
75041
|
-
var
|
|
75042
|
-
DraggableBodyRowStyle = p.style,
|
|
75043
|
-
restProps = objectWithoutProperties_objectWithoutProperties(p, useDragSort_excluded); // function findIndex base on Table rowKey props and should always be a right array index
|
|
75096
|
+
var restProps = extends_extends({}, p); // function findIndex base on Table rowKey props and should always be a right array index
|
|
75044
75097
|
|
|
75045
75098
|
|
|
75046
75099
|
var index = dataSource.findIndex(function (item) {
|
|
@@ -81066,13 +81119,17 @@ var genLinkStyle = function genLinkStyle(token) {
|
|
|
81066
81119
|
}), _a)
|
|
81067
81120
|
};
|
|
81068
81121
|
};
|
|
81069
|
-
var
|
|
81122
|
+
var genCommonStyle = function genCommonStyle(token, rootPrefixCls) {
|
|
81070
81123
|
var fontFamily = token.fontFamily,
|
|
81071
81124
|
fontSize = token.fontSize;
|
|
81072
|
-
|
|
81125
|
+
var rootPrefixSelector = "[class^=\"".concat(rootPrefixCls, "-\"], [class*=\" ").concat(rootPrefixCls, "-\"]");
|
|
81126
|
+
return defineProperty_defineProperty({}, rootPrefixSelector, defineProperty_defineProperty({
|
|
81073
81127
|
fontFamily: fontFamily,
|
|
81074
|
-
fontSize: fontSize
|
|
81075
|
-
|
|
81128
|
+
fontSize: fontSize,
|
|
81129
|
+
boxSizing: 'border-box'
|
|
81130
|
+
}, rootPrefixSelector, {
|
|
81131
|
+
boxSizing: 'border-box'
|
|
81132
|
+
}));
|
|
81076
81133
|
};
|
|
81077
81134
|
var genFocusOutline = function genFocusOutline(token) {
|
|
81078
81135
|
return {
|
|
@@ -81087,7 +81144,7 @@ var genFocusStyle = function genFocusStyle(token) {
|
|
|
81087
81144
|
};
|
|
81088
81145
|
};
|
|
81089
81146
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
|
|
81090
|
-
/* harmony default export */ var version = ('5.0.0-
|
|
81147
|
+
/* harmony default export */ var version = ('5.0.0-alpha.1');
|
|
81091
81148
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
|
|
81092
81149
|
/* eslint import/no-unresolved: 0 */
|
|
81093
81150
|
// @ts-ignore
|
|
@@ -81399,8 +81456,7 @@ var generateNeutralColorPalettes = function generateNeutralColorPalettes(bgBaseC
|
|
|
81399
81456
|
colorBgElevated: getSolidColor(colorBgBase, 0),
|
|
81400
81457
|
colorBgSpotlight: getAlphaColor(colorTextBase, 0.85),
|
|
81401
81458
|
colorBorder: getSolidColor(colorBgBase, 15),
|
|
81402
|
-
colorBorderSecondary: getSolidColor(colorBgBase, 6)
|
|
81403
|
-
colorSplit: getAlphaColor(colorTextBase, 0.06)
|
|
81459
|
+
colorBorderSecondary: getSolidColor(colorBgBase, 6)
|
|
81404
81460
|
};
|
|
81405
81461
|
};
|
|
81406
81462
|
;// CONCATENATED MODULE: ./node_modules/antd/es/theme/themes/default/index.js
|
|
@@ -81426,6 +81482,53 @@ function derivative(token) {
|
|
|
81426
81482
|
generateNeutralColorPalettes: generateNeutralColorPalettes
|
|
81427
81483
|
})), genCommonMapToken(token));
|
|
81428
81484
|
}
|
|
81485
|
+
;// CONCATENATED MODULE: ./node_modules/antd/es/theme/util/getAlphaColor.js
|
|
81486
|
+
|
|
81487
|
+
|
|
81488
|
+
function isStableColor(color) {
|
|
81489
|
+
return color >= 0 && color <= 255;
|
|
81490
|
+
}
|
|
81491
|
+
|
|
81492
|
+
function getAlphaColor_getAlphaColor(frontColor, backgroundColor) {
|
|
81493
|
+
var _TinyColor$toRgb = new TinyColor(frontColor).toRgb(),
|
|
81494
|
+
fR = _TinyColor$toRgb.r,
|
|
81495
|
+
fG = _TinyColor$toRgb.g,
|
|
81496
|
+
fB = _TinyColor$toRgb.b,
|
|
81497
|
+
originAlpha = _TinyColor$toRgb.a;
|
|
81498
|
+
|
|
81499
|
+
if (originAlpha < 1) {
|
|
81500
|
+
return frontColor;
|
|
81501
|
+
}
|
|
81502
|
+
|
|
81503
|
+
var _TinyColor$toRgb2 = new TinyColor(backgroundColor).toRgb(),
|
|
81504
|
+
bR = _TinyColor$toRgb2.r,
|
|
81505
|
+
bG = _TinyColor$toRgb2.g,
|
|
81506
|
+
bB = _TinyColor$toRgb2.b;
|
|
81507
|
+
|
|
81508
|
+
for (var fA = 0.01; fA <= 1; fA += 0.01) {
|
|
81509
|
+
var r = Math.round((fR - bR * (1 - fA)) / fA);
|
|
81510
|
+
var g = Math.round((fG - bG * (1 - fA)) / fA);
|
|
81511
|
+
var b = Math.round((fB - bB * (1 - fA)) / fA);
|
|
81512
|
+
if (isStableColor(r) && isStableColor(g) && isStableColor(b)) return new TinyColor({
|
|
81513
|
+
r: r,
|
|
81514
|
+
g: g,
|
|
81515
|
+
b: b,
|
|
81516
|
+
a: Math.round(fA * 100) / 100
|
|
81517
|
+
}).toRgbString();
|
|
81518
|
+
} // fallback
|
|
81519
|
+
|
|
81520
|
+
/* istanbul ignore next */
|
|
81521
|
+
|
|
81522
|
+
|
|
81523
|
+
return new TinyColor({
|
|
81524
|
+
r: fR,
|
|
81525
|
+
g: fG,
|
|
81526
|
+
b: fB,
|
|
81527
|
+
a: 1
|
|
81528
|
+
}).toRgbString();
|
|
81529
|
+
}
|
|
81530
|
+
|
|
81531
|
+
/* harmony default export */ var util_getAlphaColor = (getAlphaColor_getAlphaColor);
|
|
81429
81532
|
;// CONCATENATED MODULE: ./node_modules/antd/es/theme/util/alias.js
|
|
81430
81533
|
|
|
81431
81534
|
|
|
@@ -81443,6 +81546,8 @@ var alias_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81443
81546
|
};
|
|
81444
81547
|
|
|
81445
81548
|
|
|
81549
|
+
|
|
81550
|
+
|
|
81446
81551
|
/**
|
|
81447
81552
|
* Seed (designer) > Derivative (designer) > Alias (developer).
|
|
81448
81553
|
*
|
|
@@ -81450,11 +81555,16 @@ var alias_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81450
81555
|
*/
|
|
81451
81556
|
|
|
81452
81557
|
function formatToken(derivativeToken) {
|
|
81453
|
-
var
|
|
81454
|
-
|
|
81455
|
-
|
|
81558
|
+
var override = derivativeToken.override,
|
|
81559
|
+
restToken = alias_rest(derivativeToken, ["override"]);
|
|
81560
|
+
|
|
81561
|
+
var overrideTokens = extends_extends({}, override);
|
|
81562
|
+
|
|
81563
|
+
Object.keys(seed).forEach(function (token) {
|
|
81564
|
+
delete overrideTokens[token];
|
|
81565
|
+
});
|
|
81456
81566
|
|
|
81457
|
-
var mergedToken = extends_extends(extends_extends({}, restToken),
|
|
81567
|
+
var mergedToken = extends_extends(extends_extends({}, restToken), overrideTokens);
|
|
81458
81568
|
|
|
81459
81569
|
var fontSizes = mergedToken.fontSizes,
|
|
81460
81570
|
lineHeights = mergedToken.lineHeights;
|
|
@@ -81477,6 +81587,7 @@ function formatToken(derivativeToken) {
|
|
|
81477
81587
|
colorBgContainerDisabled: mergedToken.colorFillTertiary,
|
|
81478
81588
|
// ============== Split ============== //
|
|
81479
81589
|
colorBorderBg: mergedToken.colorBgContainer,
|
|
81590
|
+
colorSplit: util_getAlphaColor(mergedToken.colorBorderSecondary, mergedToken.colorBgContainer),
|
|
81480
81591
|
// ============== Text ============== //
|
|
81481
81592
|
colorTextPlaceholder: mergedToken.colorTextQuaternary,
|
|
81482
81593
|
colorTextDisabled: mergedToken.colorTextQuaternary,
|
|
@@ -81488,8 +81599,8 @@ function formatToken(derivativeToken) {
|
|
|
81488
81599
|
colorBgTextActive: mergedToken.colorFill,
|
|
81489
81600
|
colorIcon: mergedToken.colorTextTertiary,
|
|
81490
81601
|
colorIconHover: mergedToken.colorText,
|
|
81491
|
-
colorErrorOutline: mergedToken.colorErrorBg,
|
|
81492
|
-
colorWarningOutline: mergedToken.colorWarningBg,
|
|
81602
|
+
colorErrorOutline: util_getAlphaColor(mergedToken.colorErrorBg, mergedToken.colorBgContainer),
|
|
81603
|
+
colorWarningOutline: util_getAlphaColor(mergedToken.colorWarningBg, mergedToken.colorBgContainer),
|
|
81493
81604
|
// Font
|
|
81494
81605
|
fontSizeSM: fontSizeSM,
|
|
81495
81606
|
fontSize: fontSizes[1],
|
|
@@ -81517,9 +81628,9 @@ function formatToken(derivativeToken) {
|
|
|
81517
81628
|
controlItemBgHover: mergedToken.colorFillTertiary,
|
|
81518
81629
|
controlItemBgActive: mergedToken.colorPrimaryBg,
|
|
81519
81630
|
controlItemBgActiveHover: mergedToken.colorPrimaryBgHover,
|
|
81520
|
-
controlItemBgActiveDisabled: mergedToken.
|
|
81631
|
+
controlItemBgActiveDisabled: mergedToken.colorFill,
|
|
81521
81632
|
controlTmpOutline: mergedToken.colorFillQuaternary,
|
|
81522
|
-
controlOutline: mergedToken.colorPrimaryBg,
|
|
81633
|
+
controlOutline: util_getAlphaColor(mergedToken.colorPrimaryBg, mergedToken.colorBgContainer),
|
|
81523
81634
|
controlLineType: mergedToken.lineType,
|
|
81524
81635
|
controlRadius: mergedToken.radiusBase,
|
|
81525
81636
|
controlRadiusXS: mergedToken.radiusXS,
|
|
@@ -81578,7 +81689,7 @@ function formatToken(derivativeToken) {
|
|
|
81578
81689
|
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
81579
81690
|
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
81580
81691
|
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
|
81581
|
-
}),
|
|
81692
|
+
}), overrideTokens);
|
|
81582
81693
|
|
|
81583
81694
|
return aliasToken;
|
|
81584
81695
|
}
|
|
@@ -81593,6 +81704,7 @@ function formatToken(derivativeToken) {
|
|
|
81593
81704
|
|
|
81594
81705
|
|
|
81595
81706
|
|
|
81707
|
+
|
|
81596
81708
|
var theme_defaultTheme = createTheme(derivative);
|
|
81597
81709
|
// ================================ Context =================================
|
|
81598
81710
|
// To ensure snapshot stable. We disable hashed in test env.
|
|
@@ -81609,16 +81721,18 @@ var saltPrefix = true ? es_version : 0;
|
|
|
81609
81721
|
function theme_useToken() {
|
|
81610
81722
|
var _React$useContext = external_React_default().useContext(DesignTokenContext),
|
|
81611
81723
|
rootDesignToken = _React$useContext.token,
|
|
81612
|
-
override = _React$useContext.override,
|
|
81613
81724
|
hashed = _React$useContext.hashed,
|
|
81614
|
-
theme = _React$useContext.theme
|
|
81725
|
+
theme = _React$useContext.theme,
|
|
81726
|
+
components = _React$useContext.components;
|
|
81615
81727
|
|
|
81616
81728
|
var salt = "".concat(saltPrefix, "-").concat(hashed || '');
|
|
81617
81729
|
var mergedTheme = theme || theme_defaultTheme;
|
|
81618
81730
|
|
|
81619
81731
|
var _useCacheToken = useCacheToken(mergedTheme, [seed, rootDesignToken], {
|
|
81620
81732
|
salt: salt,
|
|
81621
|
-
override:
|
|
81733
|
+
override: extends_extends({
|
|
81734
|
+
override: rootDesignToken
|
|
81735
|
+
}, components),
|
|
81622
81736
|
formatToken: formatToken
|
|
81623
81737
|
}),
|
|
81624
81738
|
_useCacheToken2 = slicedToArray_slicedToArray(_useCacheToken, 2),
|
|
@@ -81662,7 +81776,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
81662
81776
|
return [{
|
|
81663
81777
|
// Link
|
|
81664
81778
|
'&': genLinkStyle(token)
|
|
81665
|
-
},
|
|
81779
|
+
}, genCommonStyle(token, rootPrefixCls)];
|
|
81666
81780
|
});
|
|
81667
81781
|
return [useStyleRegister({
|
|
81668
81782
|
theme: theme,
|
|
@@ -81675,17 +81789,8 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
81675
81789
|
flush = _statisticToken.flush;
|
|
81676
81790
|
|
|
81677
81791
|
var defaultComponentToken = typeof getDefaultToken === 'function' ? getDefaultToken(proxyToken) : getDefaultToken;
|
|
81678
|
-
var overrideComponentToken = token[component]; // Only merge token specified in interface
|
|
81679
|
-
|
|
81680
|
-
var mergedComponentToken = extends_extends({}, defaultComponentToken);
|
|
81681
81792
|
|
|
81682
|
-
|
|
81683
|
-
Object.keys(mergedComponentToken).forEach(function (key) {
|
|
81684
|
-
var _a;
|
|
81685
|
-
|
|
81686
|
-
mergedComponentToken[key] = (_a = overrideComponentToken[key]) !== null && _a !== void 0 ? _a : mergedComponentToken[key];
|
|
81687
|
-
});
|
|
81688
|
-
}
|
|
81793
|
+
var mergedComponentToken = extends_extends(extends_extends({}, defaultComponentToken), token[component]);
|
|
81689
81794
|
|
|
81690
81795
|
var componentCls = ".".concat(prefixCls);
|
|
81691
81796
|
var mergedToken = statistic_merge(proxyToken, {
|
|
@@ -81698,7 +81803,8 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
81698
81803
|
hashId: hashId,
|
|
81699
81804
|
prefixCls: prefixCls,
|
|
81700
81805
|
rootPrefixCls: rootPrefixCls,
|
|
81701
|
-
iconPrefixCls: iconPrefixCls
|
|
81806
|
+
iconPrefixCls: iconPrefixCls,
|
|
81807
|
+
overrideComponentToken: token[component]
|
|
81702
81808
|
});
|
|
81703
81809
|
flush(component, mergedComponentToken);
|
|
81704
81810
|
return styleInterpolation;
|
|
@@ -81835,6 +81941,7 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
81835
81941
|
height: '100%',
|
|
81836
81942
|
borderRadius: token.controlRadiusSM,
|
|
81837
81943
|
visibility: 'hidden',
|
|
81944
|
+
border: "".concat(token.lineWidthBold, "px solid ").concat(token.colorPrimary),
|
|
81838
81945
|
animationName: antCheckboxEffect,
|
|
81839
81946
|
animationDuration: token.motionDurationSlow,
|
|
81840
81947
|
animationTimingFunction: 'ease-in-out',
|
|
@@ -82237,14 +82344,6 @@ wrapperRaf.cancel = function (id) {
|
|
|
82237
82344
|
cleanup(realId);
|
|
82238
82345
|
return caf(realId);
|
|
82239
82346
|
};
|
|
82240
|
-
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/contains.js
|
|
82241
|
-
function contains(root, n) {
|
|
82242
|
-
if (!root) {
|
|
82243
|
-
return false;
|
|
82244
|
-
}
|
|
82245
|
-
|
|
82246
|
-
return root.contains(n);
|
|
82247
|
-
}
|
|
82248
82347
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Portal.js
|
|
82249
82348
|
|
|
82250
82349
|
|
|
@@ -87824,10 +87923,10 @@ function useTheme(theme, parentTheme) {
|
|
|
87824
87923
|
} // Override
|
|
87825
87924
|
|
|
87826
87925
|
|
|
87827
|
-
var mergedOverride = extends_extends({}, parentThemeConfig.
|
|
87926
|
+
var mergedOverride = extends_extends({}, parentThemeConfig.components);
|
|
87828
87927
|
|
|
87829
|
-
Object.keys(theme.
|
|
87830
|
-
mergedOverride[componentName] = extends_extends(extends_extends({}, mergedOverride[componentName]), theme.
|
|
87928
|
+
Object.keys(theme.components || {}).forEach(function (componentName) {
|
|
87929
|
+
mergedOverride[componentName] = extends_extends(extends_extends({}, mergedOverride[componentName]), theme.components[componentName]);
|
|
87831
87930
|
}); // Base token
|
|
87832
87931
|
|
|
87833
87932
|
var merged = extends_extends(extends_extends(extends_extends({}, parentThemeConfig), themeConfig), {
|
|
@@ -88111,6 +88210,11 @@ function genPurePanel(Component, defaultPrefixCls, getDropdownCls) {
|
|
|
88111
88210
|
popupHeight = _React$useState2[0],
|
|
88112
88211
|
setPopupHeight = _React$useState2[1];
|
|
88113
88212
|
|
|
88213
|
+
var _React$useState3 = external_React_.useState(0),
|
|
88214
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
88215
|
+
popupWidth = _React$useState4[0],
|
|
88216
|
+
setPopupWidth = _React$useState4[1];
|
|
88217
|
+
|
|
88114
88218
|
var _useMergedState = useMergedState_useMergedState(false, {
|
|
88115
88219
|
value: props.open
|
|
88116
88220
|
}),
|
|
@@ -88130,6 +88234,7 @@ function genPurePanel(Component, defaultPrefixCls, getDropdownCls) {
|
|
|
88130
88234
|
var resizeObserver = new ResizeObserver(function (entries) {
|
|
88131
88235
|
var element = entries[0].target;
|
|
88132
88236
|
setPopupHeight(element.offsetHeight + 8);
|
|
88237
|
+
setPopupWidth(element.offsetWidth);
|
|
88133
88238
|
});
|
|
88134
88239
|
var interval = setInterval(function () {
|
|
88135
88240
|
var _a;
|
|
@@ -88150,12 +88255,10 @@ function genPurePanel(Component, defaultPrefixCls, getDropdownCls) {
|
|
|
88150
88255
|
}, []);
|
|
88151
88256
|
return /*#__PURE__*/external_React_.createElement(config_provider, {
|
|
88152
88257
|
theme: {
|
|
88153
|
-
|
|
88154
|
-
|
|
88155
|
-
|
|
88156
|
-
|
|
88157
|
-
motionDurationSlow: '0.01s'
|
|
88158
|
-
}
|
|
88258
|
+
token: {
|
|
88259
|
+
motionDurationFast: '0.01s',
|
|
88260
|
+
motionDurationMid: '0.01s',
|
|
88261
|
+
motionDurationSlow: '0.01s'
|
|
88159
88262
|
}
|
|
88160
88263
|
}
|
|
88161
88264
|
}, /*#__PURE__*/external_React_.createElement("div", {
|
|
@@ -88163,7 +88266,8 @@ function genPurePanel(Component, defaultPrefixCls, getDropdownCls) {
|
|
|
88163
88266
|
style: {
|
|
88164
88267
|
paddingBottom: popupHeight,
|
|
88165
88268
|
position: 'relative',
|
|
88166
|
-
width: 'fit-content'
|
|
88269
|
+
width: 'fit-content',
|
|
88270
|
+
minWidth: popupWidth
|
|
88167
88271
|
}
|
|
88168
88272
|
}, /*#__PURE__*/external_React_.createElement(Component, extends_extends({}, props, {
|
|
88169
88273
|
style: extends_extends(extends_extends({}, style), {
|
|
@@ -88513,6 +88617,16 @@ function isHidden(element) {
|
|
|
88513
88617
|
return !element || element.offsetParent === null || element.hidden;
|
|
88514
88618
|
}
|
|
88515
88619
|
|
|
88620
|
+
function getValidateContainer(nodeRoot) {
|
|
88621
|
+
if (nodeRoot instanceof Document) {
|
|
88622
|
+
return nodeRoot.body;
|
|
88623
|
+
}
|
|
88624
|
+
|
|
88625
|
+
return Array.from(nodeRoot.childNodes).find(function (ele) {
|
|
88626
|
+
return (ele === null || ele === void 0 ? void 0 : ele.nodeType) === Node.ELEMENT_NODE;
|
|
88627
|
+
});
|
|
88628
|
+
}
|
|
88629
|
+
|
|
88516
88630
|
function isNotGrey(color) {
|
|
88517
88631
|
// eslint-disable-next-line no-useless-escape
|
|
88518
88632
|
var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
|
|
@@ -88587,7 +88701,7 @@ var InternalWave = /*#__PURE__*/function (_React$Component) {
|
|
|
88587
88701
|
if (isValidWaveColor(waveColor)) {
|
|
88588
88702
|
extraNode.style.borderColor = waveColor;
|
|
88589
88703
|
var nodeRoot = ((_a = node.getRootNode) === null || _a === void 0 ? void 0 : _a.call(node)) || node.ownerDocument;
|
|
88590
|
-
var nodeBody =
|
|
88704
|
+
var nodeBody = (_b = getValidateContainer(nodeRoot)) !== null && _b !== void 0 ? _b : nodeRoot;
|
|
88591
88705
|
styleForPseudo = updateCSS("\n [".concat(getPrefixCls(''), "-click-animating-without-extra-node='true']::after, .").concat(getPrefixCls(''), "-click-animating-node {\n --antd-wave-shadow-color: ").concat(waveColor, ";\n }"), 'antd-wave', {
|
|
88592
88706
|
csp: _this.csp,
|
|
88593
88707
|
attachTo: nodeBody
|
|
@@ -89007,21 +89121,23 @@ var genRoundButtonStyle = function genRoundButtonStyle(token) {
|
|
|
89007
89121
|
}; // =============================== Type ===============================
|
|
89008
89122
|
|
|
89009
89123
|
|
|
89010
|
-
var genGhostButtonStyle = function genGhostButtonStyle(btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled) {
|
|
89011
|
-
return defineProperty_defineProperty({}, "&".concat(btnCls, "-background-ghost"), {
|
|
89124
|
+
var genGhostButtonStyle = function genGhostButtonStyle(btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) {
|
|
89125
|
+
return defineProperty_defineProperty({}, "&".concat(btnCls, "-background-ghost"), extends_extends(extends_extends({
|
|
89012
89126
|
color: textColor || undefined,
|
|
89013
89127
|
backgroundColor: 'transparent',
|
|
89014
89128
|
borderColor: borderColor || undefined,
|
|
89015
|
-
boxShadow: 'none'
|
|
89016
|
-
|
|
89017
|
-
|
|
89018
|
-
|
|
89129
|
+
boxShadow: 'none'
|
|
89130
|
+
}, genHoverActiveButtonStyle(extends_extends({
|
|
89131
|
+
backgroundColor: 'transparent'
|
|
89132
|
+
}, hoverStyle), extends_extends({
|
|
89133
|
+
backgroundColor: 'transparent'
|
|
89134
|
+
}, activeStyle))), {
|
|
89019
89135
|
'&:disabled': {
|
|
89020
89136
|
cursor: 'not-allowed',
|
|
89021
89137
|
color: textColorDisabled || undefined,
|
|
89022
89138
|
borderColor: borderColorDisabled || undefined
|
|
89023
89139
|
}
|
|
89024
|
-
});
|
|
89140
|
+
}));
|
|
89025
89141
|
};
|
|
89026
89142
|
|
|
89027
89143
|
var genSolidDisabledButtonStyle = function genSolidDisabledButtonStyle(token) {
|
|
@@ -89066,7 +89182,7 @@ var genDefaultButtonStyle = function genDefaultButtonStyle(token) {
|
|
|
89066
89182
|
borderColor: token.colorError
|
|
89067
89183
|
}, genHoverActiveButtonStyle({
|
|
89068
89184
|
color: token.colorErrorHover,
|
|
89069
|
-
borderColor: token.
|
|
89185
|
+
borderColor: token.colorErrorBorder
|
|
89070
89186
|
}, {
|
|
89071
89187
|
color: token.colorErrorActive,
|
|
89072
89188
|
borderColor: token.colorErrorActive
|
|
@@ -89085,14 +89201,26 @@ var genPrimaryButtonStyle = function genPrimaryButtonStyle(token) {
|
|
|
89085
89201
|
}, {
|
|
89086
89202
|
color: token.colorTextLightSolid,
|
|
89087
89203
|
backgroundColor: token.colorPrimaryActive
|
|
89088
|
-
})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder
|
|
89204
|
+
})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder, {
|
|
89205
|
+
color: token.colorPrimaryHover,
|
|
89206
|
+
borderColor: token.colorPrimaryHover
|
|
89207
|
+
}, {
|
|
89208
|
+
color: token.colorPrimaryActive,
|
|
89209
|
+
borderColor: token.colorPrimaryActive
|
|
89210
|
+
})), defineProperty_defineProperty({}, "&".concat(token.componentCls, "-dangerous"), extends_extends(extends_extends(extends_extends({
|
|
89089
89211
|
backgroundColor: token.colorError,
|
|
89090
89212
|
boxShadow: "0 ".concat(token.controlOutlineWidth, "px 0 ").concat(token.colorErrorOutline)
|
|
89091
89213
|
}, genHoverActiveButtonStyle({
|
|
89092
89214
|
backgroundColor: token.colorErrorHover
|
|
89093
89215
|
}, {
|
|
89094
89216
|
backgroundColor: token.colorErrorActive
|
|
89095
|
-
})), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder
|
|
89217
|
+
})), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder, {
|
|
89218
|
+
color: token.colorErrorHover,
|
|
89219
|
+
borderColor: token.colorErrorHover
|
|
89220
|
+
}, {
|
|
89221
|
+
color: token.colorErrorActive,
|
|
89222
|
+
borderColor: token.colorErrorActive
|
|
89223
|
+
})), genSolidDisabledButtonStyle(token))));
|
|
89096
89224
|
}; // Type: Dashed
|
|
89097
89225
|
|
|
89098
89226
|
|
|
@@ -89130,9 +89258,11 @@ var genTextButtonStyle = function genTextButtonStyle(token) {
|
|
|
89130
89258
|
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&".concat(token.componentCls, "-dangerous"), extends_extends(extends_extends({
|
|
89131
89259
|
color: token.colorError
|
|
89132
89260
|
}, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({
|
|
89133
|
-
color: token.
|
|
89261
|
+
color: token.colorErrorHover,
|
|
89262
|
+
backgroundColor: token.colorErrorBg
|
|
89134
89263
|
}, {
|
|
89135
|
-
color: token.
|
|
89264
|
+
color: token.colorErrorHover,
|
|
89265
|
+
backgroundColor: token.colorErrorBg
|
|
89136
89266
|
}))));
|
|
89137
89267
|
};
|
|
89138
89268
|
|
|
@@ -89866,96 +89996,96 @@ var initSlideMotion = function initSlideMotion(token, motionName) {
|
|
|
89866
89996
|
|
|
89867
89997
|
var moveDownIn = new Keyframes('antMoveDownIn', {
|
|
89868
89998
|
'0%': {
|
|
89869
|
-
transform: '
|
|
89999
|
+
transform: 'translate3d(0, 100%, 0)',
|
|
89870
90000
|
transformOrigin: '0 0',
|
|
89871
90001
|
opacity: 0
|
|
89872
90002
|
},
|
|
89873
90003
|
'100%': {
|
|
89874
|
-
transform: '
|
|
90004
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89875
90005
|
transformOrigin: '0 0',
|
|
89876
90006
|
opacity: 1
|
|
89877
90007
|
}
|
|
89878
90008
|
});
|
|
89879
90009
|
var moveDownOut = new Keyframes('antMoveDownOut', {
|
|
89880
90010
|
'0%': {
|
|
89881
|
-
transform: '
|
|
90011
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89882
90012
|
transformOrigin: '0 0',
|
|
89883
90013
|
opacity: 1
|
|
89884
90014
|
},
|
|
89885
90015
|
'100%': {
|
|
89886
|
-
transform: '
|
|
90016
|
+
transform: 'translate3d(0, 100%, 0)',
|
|
89887
90017
|
transformOrigin: '0 0',
|
|
89888
90018
|
opacity: 0
|
|
89889
90019
|
}
|
|
89890
90020
|
});
|
|
89891
90021
|
var moveLeftIn = new Keyframes('antMoveLeftIn', {
|
|
89892
90022
|
'0%': {
|
|
89893
|
-
transform: '
|
|
90023
|
+
transform: 'translate3d(-100%, 0, 0)',
|
|
89894
90024
|
transformOrigin: '0 0',
|
|
89895
90025
|
opacity: 0
|
|
89896
90026
|
},
|
|
89897
90027
|
'100%': {
|
|
89898
|
-
transform: '
|
|
90028
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89899
90029
|
transformOrigin: '0 0',
|
|
89900
90030
|
opacity: 1
|
|
89901
90031
|
}
|
|
89902
90032
|
});
|
|
89903
90033
|
var moveLeftOut = new Keyframes('antMoveLeftOut', {
|
|
89904
90034
|
'0%': {
|
|
89905
|
-
transform: '
|
|
90035
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89906
90036
|
transformOrigin: '0 0',
|
|
89907
90037
|
opacity: 1
|
|
89908
90038
|
},
|
|
89909
90039
|
'100%': {
|
|
89910
|
-
transform: '
|
|
90040
|
+
transform: 'translate3d(-100%, 0, 0)',
|
|
89911
90041
|
transformOrigin: '0 0',
|
|
89912
90042
|
opacity: 0
|
|
89913
90043
|
}
|
|
89914
90044
|
});
|
|
89915
90045
|
var moveRightIn = new Keyframes('antMoveRightIn', {
|
|
89916
90046
|
'0%': {
|
|
89917
|
-
transform: '
|
|
90047
|
+
transform: 'translate3d(100%, 0, 0)',
|
|
89918
90048
|
transformOrigin: '0 0',
|
|
89919
90049
|
opacity: 0
|
|
89920
90050
|
},
|
|
89921
90051
|
'100%': {
|
|
89922
|
-
transform: '
|
|
90052
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89923
90053
|
transformOrigin: '0 0',
|
|
89924
90054
|
opacity: 1
|
|
89925
90055
|
}
|
|
89926
90056
|
});
|
|
89927
90057
|
var moveRightOut = new Keyframes('antMoveRightOut', {
|
|
89928
90058
|
'0%': {
|
|
89929
|
-
transform: '
|
|
90059
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89930
90060
|
transformOrigin: '0 0',
|
|
89931
90061
|
opacity: 1
|
|
89932
90062
|
},
|
|
89933
90063
|
'100%': {
|
|
89934
|
-
transform: '
|
|
90064
|
+
transform: 'translate3d(100%, 0, 0)',
|
|
89935
90065
|
transformOrigin: '0 0',
|
|
89936
90066
|
opacity: 0
|
|
89937
90067
|
}
|
|
89938
90068
|
});
|
|
89939
90069
|
var moveUpIn = new Keyframes('antMoveUpIn', {
|
|
89940
90070
|
'0%': {
|
|
89941
|
-
transform: '
|
|
90071
|
+
transform: 'translate3d(0, -100%, 0)',
|
|
89942
90072
|
transformOrigin: '0 0',
|
|
89943
90073
|
opacity: 0
|
|
89944
90074
|
},
|
|
89945
90075
|
'100%': {
|
|
89946
|
-
transform: '
|
|
90076
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89947
90077
|
transformOrigin: '0 0',
|
|
89948
90078
|
opacity: 1
|
|
89949
90079
|
}
|
|
89950
90080
|
});
|
|
89951
90081
|
var moveUpOut = new Keyframes('antMoveUpOut', {
|
|
89952
90082
|
'0%': {
|
|
89953
|
-
transform: '
|
|
90083
|
+
transform: 'translate3d(0, 0, 0)',
|
|
89954
90084
|
transformOrigin: '0 0',
|
|
89955
90085
|
opacity: 1
|
|
89956
90086
|
},
|
|
89957
90087
|
'100%': {
|
|
89958
|
-
transform: '
|
|
90088
|
+
transform: 'translate3d(0, -100%, 0)',
|
|
89959
90089
|
transformOrigin: '0 0',
|
|
89960
90090
|
opacity: 0
|
|
89961
90091
|
}
|
|
@@ -93481,8 +93611,8 @@ var accessibilityFocus = function accessibilityFocus(token) {
|
|
|
93481
93611
|
return extends_extends({}, genFocusOutline(token));
|
|
93482
93612
|
};
|
|
93483
93613
|
|
|
93484
|
-
var getThemeStyle = function getThemeStyle(token) {
|
|
93485
|
-
var _$concat3, _$concat4, _$concat$concat3, _$concat8,
|
|
93614
|
+
var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
93615
|
+
var _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
|
|
93486
93616
|
|
|
93487
93617
|
var componentCls = token.componentCls,
|
|
93488
93618
|
colorItemText = token.colorItemText,
|
|
@@ -93510,44 +93640,44 @@ var getThemeStyle = function getThemeStyle(token) {
|
|
|
93510
93640
|
colorDangerItemTextSelected = token.colorDangerItemTextSelected,
|
|
93511
93641
|
colorDangerItemBgActive = token.colorDangerItemBgActive,
|
|
93512
93642
|
colorDangerItemBgSelected = token.colorDangerItemBgSelected;
|
|
93513
|
-
return defineProperty_defineProperty({}, componentCls, (
|
|
93643
|
+
return defineProperty_defineProperty({}, "".concat(componentCls, "-").concat(themeSuffix), (_$concat$concat4 = {
|
|
93514
93644
|
color: colorItemText,
|
|
93515
93645
|
background: colorItemBg
|
|
93516
|
-
}, defineProperty_defineProperty(
|
|
93646
|
+
}, defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-root:focus-visible"), extends_extends({}, accessibilityFocus(token))), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-group-title"), {
|
|
93517
93647
|
color: colorGroupTitle
|
|
93518
|
-
}), defineProperty_defineProperty(
|
|
93648
|
+
}), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-submenu-selected"), defineProperty_defineProperty({}, "> ".concat(componentCls, "-submenu-title"), {
|
|
93519
93649
|
color: colorItemTextSelected
|
|
93520
|
-
})), defineProperty_defineProperty(
|
|
93650
|
+
})), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-disabled, ").concat(componentCls, "-submenu-disabled"), {
|
|
93521
93651
|
color: "".concat(colorItemTextDisabled, " !important")
|
|
93522
|
-
}), defineProperty_defineProperty(
|
|
93652
|
+
}), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item:hover, ").concat(componentCls, "-submenu-title:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
|
|
93523
93653
|
color: colorItemTextHover
|
|
93524
|
-
})), defineProperty_defineProperty(
|
|
93654
|
+
})), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item:active, ").concat(componentCls, "-submenu-title:active"), {
|
|
93525
93655
|
background: colorItemBgActive
|
|
93526
|
-
}), defineProperty_defineProperty(
|
|
93656
|
+
}), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-danger"), (_$concat3 = {
|
|
93527
93657
|
color: colorDangerItemText
|
|
93528
93658
|
}, defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-item:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
|
|
93529
93659
|
color: colorDangerItemTextHover
|
|
93530
93660
|
})), defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-item:active"), {
|
|
93531
93661
|
background: colorDangerItemBgActive
|
|
93532
|
-
}), _$concat3)), defineProperty_defineProperty(
|
|
93662
|
+
}), _$concat3)), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item a"), {
|
|
93533
93663
|
'&, &:hover': {
|
|
93534
93664
|
color: 'inherit'
|
|
93535
93665
|
}
|
|
93536
|
-
}), defineProperty_defineProperty(
|
|
93666
|
+
}), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-selected"), (_$concat4 = {
|
|
93537
93667
|
color: colorItemTextSelected
|
|
93538
93668
|
}, defineProperty_defineProperty(_$concat4, "&".concat(componentCls, "-item-danger"), {
|
|
93539
93669
|
color: colorDangerItemTextSelected
|
|
93540
93670
|
}), defineProperty_defineProperty(_$concat4, "a, a:hover", {
|
|
93541
93671
|
color: 'inherit'
|
|
93542
|
-
}), _$concat4)), defineProperty_defineProperty(
|
|
93672
|
+
}), _$concat4)), defineProperty_defineProperty(_$concat$concat4, "&:not(".concat(componentCls, "-horizontal) ").concat(componentCls, "-item-selected"), defineProperty_defineProperty({
|
|
93543
93673
|
backgroundColor: colorItemBgSelected
|
|
93544
93674
|
}, "&".concat(componentCls, "-item-danger"), {
|
|
93545
93675
|
backgroundColor: colorDangerItemBgSelected
|
|
93546
|
-
})), defineProperty_defineProperty(
|
|
93676
|
+
})), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-disabled):focus-visible"), extends_extends({}, accessibilityFocus(token)))), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-submenu > ").concat(componentCls), {
|
|
93547
93677
|
backgroundColor: colorItemBg
|
|
93548
|
-
}), defineProperty_defineProperty(
|
|
93678
|
+
}), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-popup > ").concat(componentCls), {
|
|
93549
93679
|
backgroundColor: colorItemBg
|
|
93550
|
-
}), defineProperty_defineProperty(
|
|
93680
|
+
}), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-horizontal"), defineProperty_defineProperty({}, "> ".concat(componentCls, "-item, > ").concat(componentCls, "-submenu"), (_$concat$concat3 = {
|
|
93551
93681
|
top: colorActiveBarBorderSize,
|
|
93552
93682
|
marginTop: -colorActiveBarBorderSize,
|
|
93553
93683
|
marginBottom: 0,
|
|
@@ -93573,9 +93703,9 @@ var getThemeStyle = function getThemeStyle(token) {
|
|
|
93573
93703
|
borderWidth: "".concat(colorActiveBarHeight, "px"),
|
|
93574
93704
|
borderBottomColor: colorItemTextSelected
|
|
93575
93705
|
}
|
|
93576
|
-
}), _$concat$concat3))), defineProperty_defineProperty(
|
|
93706
|
+
}), _$concat$concat3))), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-root"), defineProperty_defineProperty({}, "&".concat(componentCls, "-inline, &").concat(componentCls, "-vertical"), {
|
|
93577
93707
|
borderInlineEnd: "".concat(colorActiveBarBorderSize, "px ").concat(lineType, " ").concat(colorSplit)
|
|
93578
|
-
})), defineProperty_defineProperty(
|
|
93708
|
+
})), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-inline"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-sub").concat(componentCls, "-inline"), {
|
|
93579
93709
|
background: colorSubItemBg
|
|
93580
93710
|
}), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize ? {
|
|
93581
93711
|
width: "calc(100% + ".concat(colorActiveBarBorderSize, "px)")
|
|
@@ -93601,7 +93731,7 @@ var getThemeStyle = function getThemeStyle(token) {
|
|
|
93601
93731
|
opacity: 1,
|
|
93602
93732
|
transition: ["transform ".concat(motionDurationFast, " ").concat(motionEaseInOut), "opacity ".concat(motionDurationFast, " ").concat(motionEaseInOut)].join(',')
|
|
93603
93733
|
}
|
|
93604
|
-
}), _$concat8)),
|
|
93734
|
+
}), _$concat8)), _$concat$concat4));
|
|
93605
93735
|
};
|
|
93606
93736
|
|
|
93607
93737
|
/* harmony default export */ var theme = (getThemeStyle);
|
|
@@ -93743,6 +93873,7 @@ var getVerticalStyle = function getVerticalStyle(token) {
|
|
|
93743
93873
|
|
|
93744
93874
|
|
|
93745
93875
|
|
|
93876
|
+
|
|
93746
93877
|
// =============================== Base ===============================
|
|
93747
93878
|
|
|
93748
93879
|
var getBaseStyle = function getBaseStyle(token) {
|
|
@@ -93942,12 +94073,18 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
93942
94073
|
|
|
93943
94074
|
|
|
93944
94075
|
/* harmony default export */ var menu_style = (function (prefixCls, injectStyle) {
|
|
93945
|
-
var useOriginHook = genComponentStyleHook('Menu', function (token) {
|
|
93946
|
-
// Dropdown will handle menu style self. We do not need to handle this.
|
|
94076
|
+
var useOriginHook = genComponentStyleHook('Menu', function (token, _ref5) {
|
|
94077
|
+
var overrideComponentToken = _ref5.overrideComponentToken; // Dropdown will handle menu style self. We do not need to handle this.
|
|
94078
|
+
|
|
93947
94079
|
if (injectStyle === false) {
|
|
93948
94080
|
return [];
|
|
93949
94081
|
}
|
|
93950
94082
|
|
|
94083
|
+
var colorPrimary = token.colorPrimary,
|
|
94084
|
+
colorError = token.colorError,
|
|
94085
|
+
colorErrorHover = token.colorErrorHover,
|
|
94086
|
+
colorTextLightSolid = token.colorTextLightSolid,
|
|
94087
|
+
colorTextSecondary = token.colorTextSecondary;
|
|
93951
94088
|
var controlHeightLG = token.controlHeightLG,
|
|
93952
94089
|
fontSize = token.fontSize;
|
|
93953
94090
|
var menuArrowSize = fontSize / 7 * 5; // Menu Token
|
|
@@ -93962,11 +94099,32 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
93962
94099
|
menuPanelMaskInset: -7 // Still a hardcode here since it's offset by rc-align
|
|
93963
94100
|
|
|
93964
94101
|
});
|
|
94102
|
+
var menuDarkToken = statistic_merge(menuToken, {
|
|
94103
|
+
colorItemText: new TinyColor(colorTextLightSolid).setAlpha(0.65).toRgbString(),
|
|
94104
|
+
colorItemTextHover: colorTextLightSolid,
|
|
94105
|
+
colorGroupTitle: colorTextSecondary,
|
|
94106
|
+
colorItemTextSelected: colorTextLightSolid,
|
|
94107
|
+
colorItemBg: '#001529',
|
|
94108
|
+
colorSubItemBg: '#000c17',
|
|
94109
|
+
colorItemBgActive: 'transparent',
|
|
94110
|
+
colorItemBgSelected: colorPrimary,
|
|
94111
|
+
colorActiveBarWidth: 0,
|
|
94112
|
+
colorActiveBarHeight: 0,
|
|
94113
|
+
colorActiveBarBorderSize: 0,
|
|
94114
|
+
// Disabled
|
|
94115
|
+
colorItemTextDisabled: new TinyColor(colorTextLightSolid).setAlpha(0.25).toRgbString(),
|
|
94116
|
+
// Danger
|
|
94117
|
+
colorDangerItemText: colorError,
|
|
94118
|
+
colorDangerItemTextHover: colorErrorHover,
|
|
94119
|
+
colorDangerItemTextSelected: colorTextLightSolid,
|
|
94120
|
+
colorDangerItemBgActive: colorError,
|
|
94121
|
+
colorDangerItemBgSelected: colorError
|
|
94122
|
+
}, extends_extends({}, overrideComponentToken));
|
|
93965
94123
|
return [// Basic
|
|
93966
94124
|
getBaseStyle(menuToken), // Horizontal
|
|
93967
94125
|
horizontal(menuToken), // Vertical
|
|
93968
94126
|
vertical(menuToken), // Theme
|
|
93969
|
-
theme(menuToken), // RTL
|
|
94127
|
+
theme(menuToken, 'light'), theme(menuDarkToken, 'dark'), // RTL
|
|
93970
94128
|
rtl(menuToken), // Motion
|
|
93971
94129
|
collapse(menuToken), initSlideMotion(menuToken, 'slide-up'), initSlideMotion(menuToken, 'slide-down'), initZoomMotion(menuToken, 'zoom-big')];
|
|
93972
94130
|
}, function (token) {
|
|
@@ -94397,11 +94555,6 @@ var Tooltip = function Tooltip(props, ref) {
|
|
|
94397
94555
|
|
|
94398
94556
|
|
|
94399
94557
|
/* harmony default export */ var rc_tooltip_es = (es_Tooltip);
|
|
94400
|
-
;// CONCATENATED MODULE: ./node_modules/antd/es/_util/colors.js
|
|
94401
|
-
|
|
94402
|
-
var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning'); // eslint-disable-next-line import/prefer-default-export
|
|
94403
|
-
|
|
94404
|
-
var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
|
|
94405
94558
|
;// CONCATENATED MODULE: ./node_modules/antd/es/theme/interface.js
|
|
94406
94559
|
var PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];
|
|
94407
94560
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/style/index.js
|
|
@@ -94522,6 +94675,39 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
94522
94675
|
});
|
|
94523
94676
|
return useOriginHook(prefixCls);
|
|
94524
94677
|
});
|
|
94678
|
+
;// CONCATENATED MODULE: ./node_modules/antd/es/_util/colors.js
|
|
94679
|
+
|
|
94680
|
+
var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning'); // eslint-disable-next-line import/prefer-default-export
|
|
94681
|
+
|
|
94682
|
+
var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
|
|
94683
|
+
;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/util.js
|
|
94684
|
+
|
|
94685
|
+
/* eslint-disable import/prefer-default-export */
|
|
94686
|
+
|
|
94687
|
+
|
|
94688
|
+
|
|
94689
|
+
var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join('|'), ")(-inverse)?$"));
|
|
94690
|
+
function parseColor(prefixCls, color) {
|
|
94691
|
+
var className = classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-").concat(color), color && PresetColorRegex.test(color)));
|
|
94692
|
+
var overlayStyle;
|
|
94693
|
+
var arrowStyle;
|
|
94694
|
+
|
|
94695
|
+
if (color && !PresetColorRegex.test(color)) {
|
|
94696
|
+
overlayStyle = {
|
|
94697
|
+
background: color
|
|
94698
|
+
}; // @ts-ignore
|
|
94699
|
+
|
|
94700
|
+
arrowStyle = {
|
|
94701
|
+
'--antd-arrow-background-color': color
|
|
94702
|
+
};
|
|
94703
|
+
}
|
|
94704
|
+
|
|
94705
|
+
return {
|
|
94706
|
+
className: className,
|
|
94707
|
+
overlayStyle: overlayStyle,
|
|
94708
|
+
arrowStyle: arrowStyle
|
|
94709
|
+
};
|
|
94710
|
+
}
|
|
94525
94711
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/PurePanel.js
|
|
94526
94712
|
|
|
94527
94713
|
|
|
@@ -94529,6 +94715,7 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
94529
94715
|
|
|
94530
94716
|
|
|
94531
94717
|
|
|
94718
|
+
|
|
94532
94719
|
// ant-tooltip css-dev-only-do-not-override-w2s56n ant-tooltip-placement-top ant-tooltip-hidden
|
|
94533
94720
|
|
|
94534
94721
|
function PurePanel_PurePanel(props) {
|
|
@@ -94536,7 +94723,9 @@ function PurePanel_PurePanel(props) {
|
|
|
94536
94723
|
className = props.className,
|
|
94537
94724
|
_props$placement = props.placement,
|
|
94538
94725
|
placement = _props$placement === void 0 ? 'top' : _props$placement,
|
|
94539
|
-
title = props.title
|
|
94726
|
+
title = props.title,
|
|
94727
|
+
color = props.color,
|
|
94728
|
+
overlayInnerStyle = props.overlayInnerStyle;
|
|
94540
94729
|
|
|
94541
94730
|
var _React$useContext = external_React_.useContext(context_ConfigContext),
|
|
94542
94731
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -94546,13 +94735,21 @@ function PurePanel_PurePanel(props) {
|
|
|
94546
94735
|
var _useStyle = tooltip_style(prefixCls, true),
|
|
94547
94736
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
94548
94737
|
wrapSSR = _useStyle2[0],
|
|
94549
|
-
hashId = _useStyle2[1];
|
|
94738
|
+
hashId = _useStyle2[1]; // Color
|
|
94739
|
+
|
|
94740
|
+
|
|
94741
|
+
var colorInfo = parseColor(prefixCls, color);
|
|
94550
94742
|
|
|
94743
|
+
var formattedOverlayInnerStyle = extends_extends(extends_extends({}, overlayInnerStyle), colorInfo.overlayStyle);
|
|
94744
|
+
|
|
94745
|
+
var arrowContentStyle = colorInfo.arrowStyle;
|
|
94551
94746
|
return wrapSSR( /*#__PURE__*/external_React_.createElement("div", {
|
|
94552
|
-
className: classnames_default()(hashId, prefixCls, "".concat(prefixCls, "-pure"), "".concat(prefixCls, "-placement-").concat(placement), className)
|
|
94747
|
+
className: classnames_default()(hashId, prefixCls, "".concat(prefixCls, "-pure"), "".concat(prefixCls, "-placement-").concat(placement), className, colorInfo.className),
|
|
94748
|
+
style: arrowContentStyle
|
|
94553
94749
|
}, /*#__PURE__*/external_React_.createElement(Popup_Popup, extends_extends({}, props, {
|
|
94554
94750
|
className: hashId,
|
|
94555
|
-
prefixCls: prefixCls
|
|
94751
|
+
prefixCls: prefixCls,
|
|
94752
|
+
overlayInnerStyle: formattedOverlayInnerStyle
|
|
94556
94753
|
}), title)));
|
|
94557
94754
|
}
|
|
94558
94755
|
;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/index.js
|
|
@@ -94601,12 +94798,11 @@ var splitObject = function splitObject(obj, keys) {
|
|
|
94601
94798
|
picked: picked,
|
|
94602
94799
|
omitted: omitted
|
|
94603
94800
|
};
|
|
94604
|
-
};
|
|
94605
|
-
|
|
94606
|
-
var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join('|'), ")(-inverse)?$")); // Fix Tooltip won't hide at disabled button
|
|
94801
|
+
}; // Fix Tooltip won't hide at disabled button
|
|
94607
94802
|
// mouse events don't trigger at disabled button in Chrome
|
|
94608
94803
|
// https://github.com/react-component/tooltip/issues/18
|
|
94609
94804
|
|
|
94805
|
+
|
|
94610
94806
|
function getDisabledCompatibleChildren(element, prefixCls) {
|
|
94611
94807
|
var elementType = element.type;
|
|
94612
94808
|
|
|
@@ -94642,8 +94838,6 @@ function getDisabledCompatibleChildren(element, prefixCls) {
|
|
|
94642
94838
|
}
|
|
94643
94839
|
|
|
94644
94840
|
var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
94645
|
-
var _classNames2;
|
|
94646
|
-
|
|
94647
94841
|
var _a, _b;
|
|
94648
94842
|
|
|
94649
94843
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -94758,27 +94952,20 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
|
|
|
94758
94952
|
|
|
94759
94953
|
var child = getDisabledCompatibleChildren(isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/external_React_.createElement("span", null, children), prefixCls);
|
|
94760
94954
|
var childProps = child.props;
|
|
94761
|
-
var childCls = classnames_default()(childProps.className, defineProperty_defineProperty({}, openClassName || "".concat(prefixCls, "-open"), true)); // Style
|
|
94955
|
+
var childCls = !childProps.className || typeof childProps.className === 'string' ? classnames_default()(childProps.className, defineProperty_defineProperty({}, openClassName || "".concat(prefixCls, "-open"), true)) : childProps.className; // Style
|
|
94762
94956
|
|
|
94763
94957
|
var _useStyle = tooltip_style(prefixCls, !injectFromPopover),
|
|
94764
94958
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
94765
94959
|
wrapSSR = _useStyle2[0],
|
|
94766
|
-
hashId = _useStyle2[1];
|
|
94960
|
+
hashId = _useStyle2[1]; // Color
|
|
94767
94961
|
|
|
94768
|
-
var customOverlayClassName = classnames_default()(overlayClassName, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames2, "".concat(prefixCls, "-").concat(color), color && PresetColorRegex.test(color)), _classNames2), hashId);
|
|
94769
|
-
var formattedOverlayInnerStyle = overlayInnerStyle;
|
|
94770
|
-
var arrowContentStyle;
|
|
94771
94962
|
|
|
94772
|
-
|
|
94773
|
-
formattedOverlayInnerStyle = extends_extends(extends_extends({}, overlayInnerStyle), {
|
|
94774
|
-
background: color
|
|
94775
|
-
}); // @ts-ignore
|
|
94963
|
+
var colorInfo = parseColor(prefixCls, color);
|
|
94776
94964
|
|
|
94777
|
-
|
|
94778
|
-
'--antd-arrow-background-color': color
|
|
94779
|
-
};
|
|
94780
|
-
}
|
|
94965
|
+
var formattedOverlayInnerStyle = extends_extends(extends_extends({}, overlayInnerStyle), colorInfo.overlayStyle);
|
|
94781
94966
|
|
|
94967
|
+
var arrowContentStyle = colorInfo.arrowStyle;
|
|
94968
|
+
var customOverlayClassName = classnames_default()(overlayClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), colorInfo.className, hashId);
|
|
94782
94969
|
return wrapSSR( /*#__PURE__*/external_React_.createElement(rc_tooltip_es, extends_extends({}, otherProps, {
|
|
94783
94970
|
prefixCls: prefixCls,
|
|
94784
94971
|
overlayClassName: customOverlayClassName,
|
|
@@ -94978,10 +95165,12 @@ function SubMenu_SubMenu(props) {
|
|
|
94978
95165
|
|
|
94979
95166
|
var popupClassName = props.popupClassName,
|
|
94980
95167
|
icon = props.icon,
|
|
94981
|
-
title = props.title
|
|
95168
|
+
title = props.title,
|
|
95169
|
+
customTheme = props.theme;
|
|
94982
95170
|
var context = external_React_.useContext(menu_MenuContext);
|
|
94983
95171
|
var prefixCls = context.prefixCls,
|
|
94984
|
-
inlineCollapsed = context.inlineCollapsed
|
|
95172
|
+
inlineCollapsed = context.inlineCollapsed,
|
|
95173
|
+
contextTheme = context.theme;
|
|
94985
95174
|
var parentPath = useFullPath();
|
|
94986
95175
|
var titleNode;
|
|
94987
95176
|
|
|
@@ -95011,7 +95200,7 @@ function SubMenu_SubMenu(props) {
|
|
|
95011
95200
|
value: contextValue
|
|
95012
95201
|
}, /*#__PURE__*/external_React_.createElement(SubMenu, extends_extends({}, omit_omit(props, ['icon']), {
|
|
95013
95202
|
title: titleNode,
|
|
95014
|
-
popupClassName: classnames_default()(prefixCls, popupClassName)
|
|
95203
|
+
popupClassName: classnames_default()(prefixCls, popupClassName, "".concat(prefixCls, "-").concat(customTheme || contextTheme))
|
|
95015
95204
|
})));
|
|
95016
95205
|
}
|
|
95017
95206
|
|
|
@@ -95148,6 +95337,9 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
95148
95337
|
var rootPrefixCls = getPrefixCls();
|
|
95149
95338
|
|
|
95150
95339
|
var customizePrefixCls = props.prefixCls,
|
|
95340
|
+
className = props.className,
|
|
95341
|
+
_props$theme = props.theme,
|
|
95342
|
+
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
95151
95343
|
expandIcon = props.expandIcon,
|
|
95152
95344
|
_internalDisableMenuItemTitleTooltip = props._internalDisableMenuItemTitleTooltip,
|
|
95153
95345
|
inlineCollapsed = props.inlineCollapsed,
|
|
@@ -95158,7 +95350,7 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
95158
95350
|
mode = props.mode,
|
|
95159
95351
|
selectable = props.selectable,
|
|
95160
95352
|
onClick = props.onClick,
|
|
95161
|
-
restProps = menu_rest(props, ["prefixCls", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "items", "children", "rootClassName", "mode", "selectable", "onClick"]);
|
|
95353
|
+
restProps = menu_rest(props, ["prefixCls", "className", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "items", "children", "rootClassName", "mode", "selectable", "onClick"]);
|
|
95162
95354
|
|
|
95163
95355
|
var passedProps = omit_omit(restProps, ['collapsedWidth']); // ========================= Items ===========================
|
|
95164
95356
|
|
|
@@ -95205,8 +95397,9 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
95205
95397
|
var _useStyle = menu_style(prefixCls, !override),
|
|
95206
95398
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
95207
95399
|
wrapSSR = _useStyle2[0],
|
|
95208
|
-
hashId = _useStyle2[1];
|
|
95400
|
+
hashId = _useStyle2[1];
|
|
95209
95401
|
|
|
95402
|
+
var menuClassName = classnames_default()("".concat(prefixCls, "-").concat(theme), className); // ====================== Expand Icon ========================
|
|
95210
95403
|
|
|
95211
95404
|
var mergedExpandIcon;
|
|
95212
95405
|
|
|
@@ -95225,9 +95418,10 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
95225
95418
|
inlineCollapsed: mergedInlineCollapsed || false,
|
|
95226
95419
|
direction: direction,
|
|
95227
95420
|
firstLevel: true,
|
|
95421
|
+
theme: theme,
|
|
95228
95422
|
disableMenuItemTitleTooltip: _internalDisableMenuItemTitleTooltip
|
|
95229
95423
|
};
|
|
95230
|
-
}, [prefixCls, mergedInlineCollapsed, direction, _internalDisableMenuItemTitleTooltip]); // ========================= Render ==========================
|
|
95424
|
+
}, [prefixCls, mergedInlineCollapsed, direction, _internalDisableMenuItemTitleTooltip, theme]); // ========================= Render ==========================
|
|
95231
95425
|
|
|
95232
95426
|
return wrapSSR( /*#__PURE__*/external_React_.createElement(menu_OverrideContext.Provider, {
|
|
95233
95427
|
value: null
|
|
@@ -95236,11 +95430,13 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
95236
95430
|
}, /*#__PURE__*/external_React_.createElement(rc_menu_es, extends_extends({
|
|
95237
95431
|
getPopupContainer: getPopupContainer,
|
|
95238
95432
|
overflowedIndicator: /*#__PURE__*/external_React_.createElement(icons_EllipsisOutlined, null),
|
|
95433
|
+
overflowedIndicatorPopupClassName: "".concat(prefixCls, "-").concat(theme),
|
|
95239
95434
|
mode: mergedMode,
|
|
95240
95435
|
selectable: mergedSelectable,
|
|
95241
95436
|
onClick: onItemClick
|
|
95242
95437
|
}, passedProps, {
|
|
95243
95438
|
inlineCollapsed: mergedInlineCollapsed,
|
|
95439
|
+
className: menuClassName,
|
|
95244
95440
|
prefixCls: prefixCls,
|
|
95245
95441
|
direction: direction,
|
|
95246
95442
|
defaultMotions: defaultMotions,
|
|
@@ -95254,41 +95450,15 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
95254
95450
|
|
|
95255
95451
|
|
|
95256
95452
|
|
|
95257
|
-
var es_menu_rest = undefined && undefined.__rest || function (s, e) {
|
|
95258
|
-
var t = {};
|
|
95259
|
-
|
|
95260
|
-
for (var p in s) {
|
|
95261
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
95262
|
-
}
|
|
95263
|
-
|
|
95264
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
95265
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
95266
|
-
}
|
|
95267
|
-
return t;
|
|
95268
|
-
};
|
|
95269
|
-
|
|
95270
|
-
|
|
95271
|
-
|
|
95272
|
-
|
|
95273
|
-
|
|
95274
|
-
|
|
95275
|
-
|
|
95276
95453
|
|
|
95277
95454
|
|
|
95278
95455
|
|
|
95279
95456
|
|
|
95280
95457
|
|
|
95281
|
-
var ThemedMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (_a, ref) {
|
|
95282
|
-
var _a$theme = _a.theme,
|
|
95283
|
-
theme = _a$theme === void 0 ? 'light' : _a$theme,
|
|
95284
|
-
rest = es_menu_rest(_a, ["theme"]);
|
|
95285
95458
|
|
|
95459
|
+
var menu_Menu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props, ref) {
|
|
95286
95460
|
var menuRef = (0,external_React_.useRef)(null);
|
|
95287
|
-
|
|
95288
|
-
var _useToken = theme_useToken(),
|
|
95289
|
-
_useToken2 = slicedToArray_slicedToArray(_useToken, 2),
|
|
95290
|
-
token = _useToken2[1];
|
|
95291
|
-
|
|
95461
|
+
var context = external_React_.useContext(SiderContext);
|
|
95292
95462
|
(0,external_React_.useImperativeHandle)(ref, function () {
|
|
95293
95463
|
return {
|
|
95294
95464
|
focus: function focus(options) {
|
|
@@ -95299,51 +95469,10 @@ var ThemedMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (_a, ref)
|
|
|
95299
95469
|
menu: menuRef.current
|
|
95300
95470
|
};
|
|
95301
95471
|
});
|
|
95302
|
-
|
|
95303
|
-
|
|
95304
|
-
|
|
95305
|
-
colorError = token.colorError,
|
|
95306
|
-
colorErrorHover = token.colorErrorHover;
|
|
95307
|
-
var darkThemeToken = (0,external_React_.useMemo)(function () {
|
|
95308
|
-
if (theme === 'dark') {
|
|
95309
|
-
return {
|
|
95310
|
-
colorItemText: new TinyColor(colorTextLightSolid).setAlpha(0.65).toRgbString(),
|
|
95311
|
-
colorItemTextHover: colorTextLightSolid,
|
|
95312
|
-
colorGroupTitle: colorTextDescription,
|
|
95313
|
-
colorItemTextSelected: colorTextLightSolid,
|
|
95314
|
-
colorItemBg: '#001529',
|
|
95315
|
-
colorSubItemBg: '#000c17',
|
|
95316
|
-
colorItemBgActive: 'transparent',
|
|
95317
|
-
colorItemBgSelected: colorPrimary,
|
|
95318
|
-
colorActiveBarWidth: 0,
|
|
95319
|
-
colorActiveBarHeight: 0,
|
|
95320
|
-
colorActiveBarBorderSize: 0,
|
|
95321
|
-
// Disabled
|
|
95322
|
-
colorItemTextDisabled: new TinyColor(colorTextLightSolid).setAlpha(0.25).toRgbString(),
|
|
95323
|
-
// Danger
|
|
95324
|
-
colorDangerItemText: colorError,
|
|
95325
|
-
colorDangerItemTextHover: colorErrorHover,
|
|
95326
|
-
colorDangerItemTextSelected: colorTextLightSolid,
|
|
95327
|
-
colorDangerItemBgActive: colorError,
|
|
95328
|
-
colorDangerItemBgSelected: colorError
|
|
95329
|
-
};
|
|
95330
|
-
}
|
|
95331
|
-
|
|
95332
|
-
return {};
|
|
95333
|
-
}, [theme]);
|
|
95334
|
-
return /*#__PURE__*/external_React_.createElement(config_provider, {
|
|
95335
|
-
theme: {
|
|
95336
|
-
override: {
|
|
95337
|
-
Menu: darkThemeToken
|
|
95338
|
-
}
|
|
95339
|
-
}
|
|
95340
|
-
}, /*#__PURE__*/external_React_.createElement(SiderContext.Consumer, null, function (context) {
|
|
95341
|
-
return /*#__PURE__*/external_React_.createElement(menu, extends_extends({
|
|
95342
|
-
ref: menuRef
|
|
95343
|
-
}, rest, context));
|
|
95344
|
-
}));
|
|
95472
|
+
return /*#__PURE__*/external_React_.createElement(menu, extends_extends({
|
|
95473
|
+
ref: menuRef
|
|
95474
|
+
}, props, context));
|
|
95345
95475
|
});
|
|
95346
|
-
var menu_Menu = ThemedMenu;
|
|
95347
95476
|
menu_Menu.Divider = menu_MenuDivider;
|
|
95348
95477
|
menu_Menu.Item = MenuItem_MenuItem;
|
|
95349
95478
|
menu_Menu.SubMenu = menu_SubMenu;
|
|
@@ -97536,17 +97665,17 @@ function BaseProList(props) {
|
|
|
97536
97665
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
97537
97666
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
97538
97667
|
var version_version = {
|
|
97539
|
-
"@ant-design/pro-card": "2.0.
|
|
97540
|
-
"@ant-design/pro-components": "2.3.
|
|
97541
|
-
"@ant-design/pro-descriptions": "2.0.
|
|
97542
|
-
"@ant-design/pro-field": "2.1.
|
|
97543
|
-
"@ant-design/pro-form": "2.2.
|
|
97544
|
-
"@ant-design/pro-layout": "7.1.
|
|
97545
|
-
"@ant-design/pro-list": "2.0.
|
|
97546
|
-
"@ant-design/pro-provider": "2.0.
|
|
97668
|
+
"@ant-design/pro-card": "2.0.11",
|
|
97669
|
+
"@ant-design/pro-components": "2.3.14",
|
|
97670
|
+
"@ant-design/pro-descriptions": "2.0.12",
|
|
97671
|
+
"@ant-design/pro-field": "2.1.5",
|
|
97672
|
+
"@ant-design/pro-form": "2.2.3",
|
|
97673
|
+
"@ant-design/pro-layout": "7.1.4",
|
|
97674
|
+
"@ant-design/pro-list": "2.0.12",
|
|
97675
|
+
"@ant-design/pro-provider": "2.0.5",
|
|
97547
97676
|
"@ant-design/pro-skeleton": "2.0.3",
|
|
97548
|
-
"@ant-design/pro-table": "3.0.
|
|
97549
|
-
"@ant-design/pro-utils": "2.2.
|
|
97677
|
+
"@ant-design/pro-table": "3.0.12",
|
|
97678
|
+
"@ant-design/pro-utils": "2.2.3"
|
|
97550
97679
|
};
|
|
97551
97680
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
97552
97681
|
|