@ant-design/pro-components 2.3.6 → 2.3.8
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 +434 -280
- package/dist/components.min.js +1 -1
- package/es/version.js +11 -11
- package/package.json +10 -10
package/dist/components.js
CHANGED
|
@@ -24875,6 +24875,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24875
24875
|
"ProFormMoney": function() { return /* reexport */ components_Money; },
|
|
24876
24876
|
"ProFormRadio": function() { return /* reexport */ components_Radio; },
|
|
24877
24877
|
"ProFormRate": function() { return /* reexport */ components_Rate; },
|
|
24878
|
+
"ProFormSegmented": function() { return /* reexport */ components_Segmented; },
|
|
24878
24879
|
"ProFormSelect": function() { return /* reexport */ components_Select; },
|
|
24879
24880
|
"ProFormSlider": function() { return /* reexport */ components_Slider; },
|
|
24880
24881
|
"ProFormSwitch": function() { return /* reexport */ components_Switch; },
|
|
@@ -24975,6 +24976,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24975
24976
|
"useMountMergeState": function() { return /* reexport */ useMergedState/* default */.Z; },
|
|
24976
24977
|
"usePrevious": function() { return /* reexport */ usePrevious; },
|
|
24977
24978
|
"useRefFunction": function() { return /* reexport */ useRefFunction; },
|
|
24979
|
+
"useSafeState": function() { return /* reexport */ useSafeState; },
|
|
24978
24980
|
"useStyle": function() { return /* reexport */ useStyle; },
|
|
24979
24981
|
"useToken": function() { return /* reexport */ useStyle_useToken; },
|
|
24980
24982
|
"version": function() { return /* reexport */ version_version; },
|
|
@@ -28757,7 +28759,7 @@ var Utility_assign = Object.assign;
|
|
|
28757
28759
|
*/
|
|
28758
28760
|
|
|
28759
28761
|
function hash(value, length) {
|
|
28760
|
-
return (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
|
|
28762
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
28761
28763
|
}
|
|
28762
28764
|
/**
|
|
28763
28765
|
* @param {string} value
|
|
@@ -29218,7 +29220,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
29218
29220
|
switch (previous = character, character = next()) {
|
|
29219
29221
|
// (
|
|
29220
29222
|
case 40:
|
|
29221
|
-
if (previous != 108 && characters
|
|
29223
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
29222
29224
|
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1) ampersand = -1;
|
|
29223
29225
|
break;
|
|
29224
29226
|
}
|
|
@@ -29714,7 +29716,7 @@ var styleValidate = function styleValidate(key, value) {
|
|
|
29714
29716
|
return;
|
|
29715
29717
|
|
|
29716
29718
|
case 'animation':
|
|
29717
|
-
if (hashId) {
|
|
29719
|
+
if (hashId && value !== 'none') {
|
|
29718
29720
|
util_warning("You seem to be using hashed animation '".concat(value, "', in which case 'animationName' with Keyframe as value is recommended."), path);
|
|
29719
29721
|
}
|
|
29720
29722
|
|
|
@@ -29892,7 +29894,6 @@ function useStyleRegister(info, styleFn) {
|
|
|
29892
29894
|
var styleObj = styleFn();
|
|
29893
29895
|
var styleStr = normalizeStyle(parseStyle(styleObj, hashId, path.join('-')));
|
|
29894
29896
|
var styleId = uniqueHash(fullPath, styleStr); // Clear animation statistics
|
|
29895
|
-
// Clear animation statistics
|
|
29896
29897
|
|
|
29897
29898
|
animationStatistics = {};
|
|
29898
29899
|
|
|
@@ -29902,10 +29903,8 @@ function useStyleRegister(info, styleFn) {
|
|
|
29902
29903
|
prepend: 'queue'
|
|
29903
29904
|
});
|
|
29904
29905
|
style[CSS_IN_JS_INSTANCE] = CSS_IN_JS_INSTANCE_ID; // Used for `useCacheToken` to remove on batch when token removed
|
|
29905
|
-
// Used for `useCacheToken` to remove on batch when token removed
|
|
29906
29906
|
|
|
29907
29907
|
style.setAttribute(StyleContext_ATTR_TOKEN, tokenKey); // Dev usage to find which cache path made this easily
|
|
29908
|
-
// Dev usage to find which cache path made this easily
|
|
29909
29908
|
|
|
29910
29909
|
if (false) {}
|
|
29911
29910
|
}
|
|
@@ -32323,25 +32322,6 @@ var tryParse = function tryParse(v) {
|
|
|
32323
32322
|
return isNaN(n) ? v : n;
|
|
32324
32323
|
};
|
|
32325
32324
|
|
|
32326
|
-
var operatorResMap = {
|
|
32327
|
-
'>': [1],
|
|
32328
|
-
'>=': [0, 1],
|
|
32329
|
-
'=': [0],
|
|
32330
|
-
'<=': [-1, 0],
|
|
32331
|
-
'<': [-1]
|
|
32332
|
-
};
|
|
32333
|
-
var allowedOperators = Object.keys(operatorResMap);
|
|
32334
|
-
|
|
32335
|
-
var assertValidOperator = function assertValidOperator(op) {
|
|
32336
|
-
if (typeof op !== 'string') {
|
|
32337
|
-
throw new TypeError("Invalid operator type, expected string but got ".concat(_typeof(op)));
|
|
32338
|
-
}
|
|
32339
|
-
|
|
32340
|
-
if (allowedOperators.indexOf(op) === -1) {
|
|
32341
|
-
throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
|
|
32342
|
-
}
|
|
32343
|
-
};
|
|
32344
|
-
|
|
32345
32325
|
var forceType = function forceType(a, b) {
|
|
32346
32326
|
return typeof_typeof(a) !== typeof_typeof(b) ? [String(a), String(b)] : [a, b];
|
|
32347
32327
|
};
|
|
@@ -32410,91 +32390,6 @@ var compareVersions = function compareVersions(v1, v2) {
|
|
|
32410
32390
|
|
|
32411
32391
|
return 0;
|
|
32412
32392
|
};
|
|
32413
|
-
/**
|
|
32414
|
-
* Validate [semver](https://semver.org/) version strings.
|
|
32415
|
-
*
|
|
32416
|
-
* @param version Version number to validate
|
|
32417
|
-
* @returns `true` if the version number is a valid semver version number, `false` otherwise.
|
|
32418
|
-
*
|
|
32419
|
-
* @example
|
|
32420
|
-
* ```
|
|
32421
|
-
* validate('1.0.0-rc.1'); // return true
|
|
32422
|
-
* validate('1.0-rc.1'); // return false
|
|
32423
|
-
* validate('foo'); // return false
|
|
32424
|
-
* ```
|
|
32425
|
-
*/
|
|
32426
|
-
|
|
32427
|
-
var validate = function validate(version) {
|
|
32428
|
-
return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
|
32429
|
-
};
|
|
32430
|
-
/**
|
|
32431
|
-
* Compare [semver](https://semver.org/) version strings using the specified operator.
|
|
32432
|
-
*
|
|
32433
|
-
* @param v1 First version to compare
|
|
32434
|
-
* @param v2 Second version to compare
|
|
32435
|
-
* @param operator Allowed arithmetic operator to use
|
|
32436
|
-
* @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
|
|
32437
|
-
*
|
|
32438
|
-
* @example
|
|
32439
|
-
* ```
|
|
32440
|
-
* compare('10.1.8', '10.0.4', '>'); // return true
|
|
32441
|
-
* compare('10.0.1', '10.0.1', '='); // return true
|
|
32442
|
-
* compare('10.1.1', '10.2.2', '<'); // return true
|
|
32443
|
-
* compare('10.1.1', '10.2.2', '<='); // return true
|
|
32444
|
-
* compare('10.1.1', '10.2.2', '>='); // return false
|
|
32445
|
-
* ```
|
|
32446
|
-
*/
|
|
32447
|
-
|
|
32448
|
-
var compare = function compare(v1, v2, operator) {
|
|
32449
|
-
// validate input operator
|
|
32450
|
-
assertValidOperator(operator); // since result of compareVersions can only be -1 or 0 or 1
|
|
32451
|
-
// a simple map can be used to replace switch
|
|
32452
|
-
|
|
32453
|
-
var res = compareVersions(v1, v2);
|
|
32454
|
-
return operatorResMap[operator].includes(res);
|
|
32455
|
-
};
|
|
32456
|
-
/**
|
|
32457
|
-
* Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
|
|
32458
|
-
*
|
|
32459
|
-
* @param version Version number to match
|
|
32460
|
-
* @param range Range pattern for version
|
|
32461
|
-
* @returns `true` if the version number is within the range, `false` otherwise.
|
|
32462
|
-
*
|
|
32463
|
-
* @example
|
|
32464
|
-
* ```
|
|
32465
|
-
* satisfies('1.1.0', '^1.0.0'); // return true
|
|
32466
|
-
* satisfies('1.1.0', '~1.0.0'); // return false
|
|
32467
|
-
* ```
|
|
32468
|
-
*/
|
|
32469
|
-
|
|
32470
|
-
var satisfies = function satisfies(version, range) {
|
|
32471
|
-
// if no range operator then "="
|
|
32472
|
-
var m = range.match(/^([<>=~^]+)/);
|
|
32473
|
-
var op = m ? m[1] : '='; // if gt/lt/eq then operator compare
|
|
32474
|
-
|
|
32475
|
-
if (op !== '^' && op !== '~') return compare(version, range, op); // else range of either "~" or "^" is assumed
|
|
32476
|
-
|
|
32477
|
-
var _validateAndParse = validateAndParse(version),
|
|
32478
|
-
_validateAndParse2 = _slicedToArray(_validateAndParse, 3),
|
|
32479
|
-
v1 = _validateAndParse2[0],
|
|
32480
|
-
v2 = _validateAndParse2[1],
|
|
32481
|
-
v3 = _validateAndParse2[2];
|
|
32482
|
-
|
|
32483
|
-
var _validateAndParse3 = validateAndParse(range),
|
|
32484
|
-
_validateAndParse4 = _slicedToArray(_validateAndParse3, 3),
|
|
32485
|
-
r1 = _validateAndParse4[0],
|
|
32486
|
-
r2 = _validateAndParse4[1],
|
|
32487
|
-
r3 = _validateAndParse4[2];
|
|
32488
|
-
|
|
32489
|
-
if (compareStrings(v1, r1) !== 0) return false;
|
|
32490
|
-
|
|
32491
|
-
if (op === '^') {
|
|
32492
|
-
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
32493
|
-
}
|
|
32494
|
-
|
|
32495
|
-
if (compareStrings(v2, r2) !== 0) return false;
|
|
32496
|
-
return compareStrings(v3, r3) >= 0;
|
|
32497
|
-
};
|
|
32498
32393
|
;// CONCATENATED MODULE: ./packages/utils/es/components/FilterDropdown/style.js
|
|
32499
32394
|
|
|
32500
32395
|
|
|
@@ -32560,7 +32455,7 @@ var FilterDropdown = function FilterDropdown(props) {
|
|
|
32560
32455
|
wrapSSR = _useStyle.wrapSSR,
|
|
32561
32456
|
hashId = _useStyle.hashId;
|
|
32562
32457
|
|
|
32563
|
-
var dropdownOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
32458
|
+
var dropdownOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
32564
32459
|
visible: open || visible,
|
|
32565
32460
|
onVisibleChange: onOpenChange || onVisibleChange
|
|
32566
32461
|
} : {
|
|
@@ -32745,7 +32640,7 @@ var InlineErrorFormItemPopover = function InlineErrorFormItemPopover(_ref) {
|
|
|
32745
32640
|
setErrorList(inputProps.errors);
|
|
32746
32641
|
}
|
|
32747
32642
|
}, [inputProps.errors, inputProps.validateStatus]);
|
|
32748
|
-
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
32643
|
+
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
32749
32644
|
open: errorStringList.length < 1 ? false : open,
|
|
32750
32645
|
onOpenChange: function onOpenChange(changeOpen) {
|
|
32751
32646
|
if (changeOpen === open) return;
|
|
@@ -32887,7 +32782,7 @@ var LabelIconTip_style_genProStyle = function genProStyle(token) {
|
|
|
32887
32782
|
marginInlineStart: '4px',
|
|
32888
32783
|
cursor: 'pointer',
|
|
32889
32784
|
'&:hover': {
|
|
32890
|
-
color: token.
|
|
32785
|
+
color: token.colorPrimary
|
|
32891
32786
|
}
|
|
32892
32787
|
},
|
|
32893
32788
|
'&-title': {
|
|
@@ -35560,6 +35455,40 @@ function useEditableMap(props) {
|
|
|
35560
35455
|
cancelEditable: cancelEditable
|
|
35561
35456
|
};
|
|
35562
35457
|
}
|
|
35458
|
+
;// CONCATENATED MODULE: ./packages/utils/es/useSafeState/index.js
|
|
35459
|
+
|
|
35460
|
+
|
|
35461
|
+
/**
|
|
35462
|
+
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
|
35463
|
+
* We do not make this auto is to avoid real memory leak.
|
|
35464
|
+
* Developer should confirm it's safe to ignore themselves.
|
|
35465
|
+
*/
|
|
35466
|
+
|
|
35467
|
+
function useSafeState(defaultValue) {
|
|
35468
|
+
var destroyRef = external_React_.useRef(false);
|
|
35469
|
+
|
|
35470
|
+
var _React$useState = external_React_.useState(defaultValue),
|
|
35471
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
35472
|
+
value = _React$useState2[0],
|
|
35473
|
+
setValue = _React$useState2[1];
|
|
35474
|
+
|
|
35475
|
+
external_React_.useEffect(function () {
|
|
35476
|
+
destroyRef.current = false;
|
|
35477
|
+
return function () {
|
|
35478
|
+
destroyRef.current = true;
|
|
35479
|
+
};
|
|
35480
|
+
}, []);
|
|
35481
|
+
|
|
35482
|
+
function safeSetState(updater, ignoreDestroy) {
|
|
35483
|
+
if (ignoreDestroy && destroyRef.current) {
|
|
35484
|
+
return;
|
|
35485
|
+
}
|
|
35486
|
+
|
|
35487
|
+
setValue(updater);
|
|
35488
|
+
}
|
|
35489
|
+
|
|
35490
|
+
return [value, safeSetState];
|
|
35491
|
+
}
|
|
35563
35492
|
;// CONCATENATED MODULE: ./packages/utils/es/index.js
|
|
35564
35493
|
|
|
35565
35494
|
|
|
@@ -35603,6 +35532,7 @@ function useEditableMap(props) {
|
|
|
35603
35532
|
|
|
35604
35533
|
|
|
35605
35534
|
|
|
35535
|
+
|
|
35606
35536
|
|
|
35607
35537
|
|
|
35608
35538
|
;// CONCATENATED MODULE: ./node_modules/omit.js/es/index.js
|
|
@@ -35957,9 +35887,9 @@ var CheckCard_style_genProStyle = function genProStyle(token) {
|
|
|
35957
35887
|
width: 0,
|
|
35958
35888
|
height: 0,
|
|
35959
35889
|
border: "6px solid ".concat(token.colorPrimary),
|
|
35960
|
-
|
|
35961
|
-
|
|
35962
|
-
|
|
35890
|
+
borderBlockEnd: '6px solid transparent',
|
|
35891
|
+
borderInlineStart: '6px solid transparent',
|
|
35892
|
+
borderStartEndRadius: '2px',
|
|
35963
35893
|
content: "''"
|
|
35964
35894
|
}
|
|
35965
35895
|
})), defineProperty_defineProperty(_token$componentCls, '&-disabled', proCheckCardDisabled(token)), defineProperty_defineProperty(_token$componentCls, '&[disabled]', proCheckCardDisabled(token)), defineProperty_defineProperty(_token$componentCls, '&-lg', {
|
|
@@ -36715,6 +36645,108 @@ var Loading = function Loading(props) {
|
|
|
36715
36645
|
};
|
|
36716
36646
|
|
|
36717
36647
|
/* harmony default export */ var components_Loading = (Loading);
|
|
36648
|
+
// EXTERNAL MODULE: ./node_modules/rc-util/lib/Children/toArray.js
|
|
36649
|
+
var Children_toArray = __webpack_require__(5994);
|
|
36650
|
+
;// CONCATENATED MODULE: ./packages/card/es/components/TabPane/index.js
|
|
36651
|
+
|
|
36652
|
+
|
|
36653
|
+
var TabPane_excluded = ["tab", "children"],
|
|
36654
|
+
TabPane_excluded2 = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
36655
|
+
|
|
36656
|
+
|
|
36657
|
+
|
|
36658
|
+
|
|
36659
|
+
|
|
36660
|
+
|
|
36661
|
+
|
|
36662
|
+
|
|
36663
|
+
function filter(items) {
|
|
36664
|
+
return items.filter(function (item) {
|
|
36665
|
+
return item;
|
|
36666
|
+
});
|
|
36667
|
+
}
|
|
36668
|
+
|
|
36669
|
+
function useLegacyItems(items, children, tabs) {
|
|
36670
|
+
if (items) {
|
|
36671
|
+
return items.map(function (item) {
|
|
36672
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
36673
|
+
children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabs === null || tabs === void 0 ? void 0 : tabs.cardProps), {}, {
|
|
36674
|
+
children: item.children
|
|
36675
|
+
}))
|
|
36676
|
+
});
|
|
36677
|
+
});
|
|
36678
|
+
}
|
|
36679
|
+
|
|
36680
|
+
(0,lib_warning.noteOnce)(!tabs, 'Tabs.TabPane is deprecated. Please use `items` directly.');
|
|
36681
|
+
var childrenItems = (0,Children_toArray/* default */.Z)(children).map(function (node) {
|
|
36682
|
+
if ( /*#__PURE__*/external_React_default().isValidElement(node)) {
|
|
36683
|
+
var key = node.key,
|
|
36684
|
+
props = node.props;
|
|
36685
|
+
|
|
36686
|
+
var _ref = props || {},
|
|
36687
|
+
tab = _ref.tab,
|
|
36688
|
+
tempChild = _ref.children,
|
|
36689
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, TabPane_excluded);
|
|
36690
|
+
|
|
36691
|
+
var item = objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
36692
|
+
key: String(key)
|
|
36693
|
+
}, restProps), {}, {
|
|
36694
|
+
children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabs === null || tabs === void 0 ? void 0 : tabs.cardProps), {}, {
|
|
36695
|
+
children: tempChild
|
|
36696
|
+
})),
|
|
36697
|
+
label: tab
|
|
36698
|
+
});
|
|
36699
|
+
|
|
36700
|
+
return item;
|
|
36701
|
+
}
|
|
36702
|
+
|
|
36703
|
+
return null;
|
|
36704
|
+
});
|
|
36705
|
+
return filter(childrenItems);
|
|
36706
|
+
}
|
|
36707
|
+
/**
|
|
36708
|
+
* @deprecated ProComponets 3.0
|
|
36709
|
+
*/
|
|
36710
|
+
|
|
36711
|
+
var TabPane = function TabPane(props) {
|
|
36712
|
+
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
36713
|
+
getPrefixCls = _useContext.getPrefixCls; // 如果是antd v5 则返回为空
|
|
36714
|
+
|
|
36715
|
+
|
|
36716
|
+
if (external_antd_.version.startsWith('5')) {
|
|
36717
|
+
return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
|
|
36718
|
+
} else {
|
|
36719
|
+
var key = props.key,
|
|
36720
|
+
tab = props.tab,
|
|
36721
|
+
tabKey = props.tabKey,
|
|
36722
|
+
disabled = props.disabled,
|
|
36723
|
+
destroyInactiveTabPane = props.destroyInactiveTabPane,
|
|
36724
|
+
children = props.children,
|
|
36725
|
+
className = props.className,
|
|
36726
|
+
style = props.style,
|
|
36727
|
+
cardProps = props.cardProps,
|
|
36728
|
+
rest = objectWithoutProperties_objectWithoutProperties(props, TabPane_excluded2);
|
|
36729
|
+
|
|
36730
|
+
var prefixCls = getPrefixCls('pro-card-tabpane');
|
|
36731
|
+
var tabPaneClassName = classnames_default()(prefixCls, className);
|
|
36732
|
+
return (0,jsx_runtime.jsx)(external_antd_.Tabs.TabPane, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
36733
|
+
tabKey: tabKey,
|
|
36734
|
+
tab: tab,
|
|
36735
|
+
className: tabPaneClassName,
|
|
36736
|
+
style: style,
|
|
36737
|
+
disabled: disabled,
|
|
36738
|
+
destroyInactiveTabPane: destroyInactiveTabPane
|
|
36739
|
+
}, rest), {}, {
|
|
36740
|
+
children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, cardProps), {}, {
|
|
36741
|
+
children: children
|
|
36742
|
+
}))
|
|
36743
|
+
}), key);
|
|
36744
|
+
}
|
|
36745
|
+
};
|
|
36746
|
+
|
|
36747
|
+
if (false) {}
|
|
36748
|
+
|
|
36749
|
+
/* harmony default export */ var components_TabPane = (TabPane);
|
|
36718
36750
|
;// CONCATENATED MODULE: ./packages/card/es/components/Card/style.js
|
|
36719
36751
|
|
|
36720
36752
|
|
|
@@ -36852,7 +36884,8 @@ var genProCardStyle = function genProCardStyle(token) {
|
|
|
36852
36884
|
}), defineProperty_defineProperty(_objectSpread2, "".concat(componentCls, "-title"), {
|
|
36853
36885
|
color: token.colorText,
|
|
36854
36886
|
fontWeight: 500,
|
|
36855
|
-
fontSize: token.fontSizeLG
|
|
36887
|
+
fontSize: token.fontSizeLG,
|
|
36888
|
+
lineHeight: token.lineHeight
|
|
36856
36889
|
}), defineProperty_defineProperty(_objectSpread2, "".concat(componentCls, "-extra"), {
|
|
36857
36890
|
color: token.colorText
|
|
36858
36891
|
}), defineProperty_defineProperty(_objectSpread2, "".concat(componentCls, "-type-inner"), defineProperty_defineProperty({}, "".concat(componentCls, "-header"), {
|
|
@@ -36871,7 +36904,7 @@ var genProCardStyle = function genProCardStyle(token) {
|
|
|
36871
36904
|
boxSizing: 'border-box',
|
|
36872
36905
|
height: '100%',
|
|
36873
36906
|
paddingInline: token.paddingLG,
|
|
36874
|
-
paddingBlock: token.
|
|
36907
|
+
paddingBlock: token.padding,
|
|
36875
36908
|
'&-center': {
|
|
36876
36909
|
display: 'flex',
|
|
36877
36910
|
alignItems: 'center',
|
|
@@ -36956,9 +36989,10 @@ var Card_excluded = ["className", "style", "bodyStyle", "headStyle", "title", "s
|
|
|
36956
36989
|
|
|
36957
36990
|
|
|
36958
36991
|
|
|
36992
|
+
|
|
36959
36993
|
var useBreakpoint = external_antd_.Grid.useBreakpoint;
|
|
36960
36994
|
var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref) {
|
|
36961
|
-
var
|
|
36995
|
+
var _classNames2, _classNames3, _classNames4;
|
|
36962
36996
|
|
|
36963
36997
|
var className = props.className,
|
|
36964
36998
|
style = props.style,
|
|
@@ -37022,13 +37056,7 @@ var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref
|
|
|
37022
37056
|
var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs']; // 修改组合传给antd tabs的参数
|
|
37023
37057
|
// @ts-ignore
|
|
37024
37058
|
|
|
37025
|
-
var ModifyTabItemsContant = tabs === null || tabs === void 0 ? void 0 :
|
|
37026
|
-
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, item), {}, {
|
|
37027
|
-
children: (0,jsx_runtime.jsx)(Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tabs === null || tabs === void 0 ? void 0 : tabs.cardProps), {}, {
|
|
37028
|
-
children: item.children
|
|
37029
|
-
}))
|
|
37030
|
-
});
|
|
37031
|
-
});
|
|
37059
|
+
var ModifyTabItemsContant = useLegacyItems(tabs === null || tabs === void 0 ? void 0 : tabs.items, children, tabs);
|
|
37032
37060
|
/**
|
|
37033
37061
|
* 根据响应式获取 gutter, 参考 antd 实现
|
|
37034
37062
|
*
|
|
@@ -37471,55 +37499,6 @@ StatisticCard.Operation = Operation;
|
|
|
37471
37499
|
StatisticCard.isProCard = true;
|
|
37472
37500
|
StatisticCard.Group = StatisticCard_Group;
|
|
37473
37501
|
/* harmony default export */ var components_StatisticCard = (StatisticCard);
|
|
37474
|
-
;// CONCATENATED MODULE: ./packages/card/es/components/TabPane/index.js
|
|
37475
|
-
|
|
37476
|
-
|
|
37477
|
-
var TabPane_excluded = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
37478
|
-
|
|
37479
|
-
|
|
37480
|
-
|
|
37481
|
-
|
|
37482
|
-
|
|
37483
|
-
|
|
37484
|
-
var TabPane = function TabPane(props) {
|
|
37485
|
-
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
37486
|
-
getPrefixCls = _useContext.getPrefixCls; // 如果是antd v5 则返回为空
|
|
37487
|
-
|
|
37488
|
-
|
|
37489
|
-
if (external_antd_.version.startsWith('5')) {
|
|
37490
|
-
return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
|
|
37491
|
-
} else {
|
|
37492
|
-
var key = props.key,
|
|
37493
|
-
tab = props.tab,
|
|
37494
|
-
tabKey = props.tabKey,
|
|
37495
|
-
disabled = props.disabled,
|
|
37496
|
-
destroyInactiveTabPane = props.destroyInactiveTabPane,
|
|
37497
|
-
children = props.children,
|
|
37498
|
-
className = props.className,
|
|
37499
|
-
style = props.style,
|
|
37500
|
-
cardProps = props.cardProps,
|
|
37501
|
-
rest = objectWithoutProperties_objectWithoutProperties(props, TabPane_excluded);
|
|
37502
|
-
|
|
37503
|
-
var prefixCls = getPrefixCls('pro-card-tabpane');
|
|
37504
|
-
var tabPaneClassName = classnames_default()(prefixCls, className);
|
|
37505
|
-
return (0,jsx_runtime.jsx)(external_antd_.Tabs.TabPane, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
37506
|
-
tabKey: tabKey,
|
|
37507
|
-
tab: tab,
|
|
37508
|
-
className: tabPaneClassName,
|
|
37509
|
-
style: style,
|
|
37510
|
-
disabled: disabled,
|
|
37511
|
-
destroyInactiveTabPane: destroyInactiveTabPane
|
|
37512
|
-
}, rest), {}, {
|
|
37513
|
-
children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, cardProps), {}, {
|
|
37514
|
-
children: children
|
|
37515
|
-
}))
|
|
37516
|
-
}), key);
|
|
37517
|
-
}
|
|
37518
|
-
};
|
|
37519
|
-
|
|
37520
|
-
if (false) {}
|
|
37521
|
-
|
|
37522
|
-
/* harmony default export */ var components_TabPane = (TabPane);
|
|
37523
37502
|
;// CONCATENATED MODULE: ./packages/card/es/ProCard.js
|
|
37524
37503
|
|
|
37525
37504
|
|
|
@@ -43473,14 +43452,14 @@ var useFieldFetchData = function useFieldFetchData(props) {
|
|
|
43473
43452
|
var cacheForSwr = props.cacheForSwr,
|
|
43474
43453
|
fieldProps = props.fieldProps;
|
|
43475
43454
|
|
|
43476
|
-
var
|
|
43477
|
-
|
|
43478
|
-
keyWords =
|
|
43479
|
-
setKeyWords =
|
|
43455
|
+
var _useSafeState = useSafeState(props.defaultKeyWords),
|
|
43456
|
+
_useSafeState2 = slicedToArray_slicedToArray(_useSafeState, 2),
|
|
43457
|
+
keyWords = _useSafeState2[0],
|
|
43458
|
+
setKeyWords = _useSafeState2[1];
|
|
43480
43459
|
/** Key 是用来缓存请求的,如果不在是有问题 */
|
|
43481
43460
|
|
|
43482
43461
|
|
|
43483
|
-
var
|
|
43462
|
+
var _useState = (0,external_React_.useState)(function () {
|
|
43484
43463
|
if (props.proFieldKey) {
|
|
43485
43464
|
return props.proFieldKey.toString();
|
|
43486
43465
|
}
|
|
@@ -43491,8 +43470,8 @@ var useFieldFetchData = function useFieldFetchData(props) {
|
|
|
43491
43470
|
|
|
43492
43471
|
return 'no-fetch';
|
|
43493
43472
|
}),
|
|
43494
|
-
|
|
43495
|
-
cacheKey =
|
|
43473
|
+
_useState2 = slicedToArray_slicedToArray(_useState, 1),
|
|
43474
|
+
cacheKey = _useState2[0];
|
|
43496
43475
|
|
|
43497
43476
|
var proFieldKeyRef = (0,external_React_.useRef)(cacheKey);
|
|
43498
43477
|
var getOptionsFormValueEnum = (0,external_React_.useCallback)(function (coverValueEnum) {
|
|
@@ -46691,8 +46670,7 @@ var ColorPicker_excluded = ["mode", "popoverProps"];
|
|
|
46691
46670
|
|
|
46692
46671
|
var DEFAULT_COLORS = ['#FF9D4E', '#5BD8A6', '#5B8FF9', '#F7664E', '#FF86B7', '#2B9E9D', '#9270CA', '#6DC8EC', '#667796', '#F6BD16' // 9 - 黄色
|
|
46693
46672
|
];
|
|
46694
|
-
|
|
46695
|
-
var ColorPicker = function ColorPicker(_ref) {
|
|
46673
|
+
var ColorPicker = /*#__PURE__*/external_React_default().forwardRef(function (_ref, ref) {
|
|
46696
46674
|
var mode = _ref.mode,
|
|
46697
46675
|
popoverProps = _ref.popoverProps,
|
|
46698
46676
|
rest = objectWithoutProperties_objectWithoutProperties(_ref, ColorPicker_excluded);
|
|
@@ -46729,6 +46707,8 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
46729
46707
|
})
|
|
46730
46708
|
});
|
|
46731
46709
|
|
|
46710
|
+
(0,external_React_.useImperativeHandle)(ref, function () {});
|
|
46711
|
+
|
|
46732
46712
|
if (mode === 'read') {
|
|
46733
46713
|
return readDom;
|
|
46734
46714
|
}
|
|
@@ -46763,7 +46743,7 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
46763
46743
|
}),
|
|
46764
46744
|
children: readDom
|
|
46765
46745
|
}));
|
|
46766
|
-
};
|
|
46746
|
+
});
|
|
46767
46747
|
/**
|
|
46768
46748
|
* 颜色组件
|
|
46769
46749
|
*
|
|
@@ -46772,8 +46752,7 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
46772
46752
|
* moneySymbol?: string; }
|
|
46773
46753
|
*/
|
|
46774
46754
|
|
|
46775
|
-
|
|
46776
|
-
var FieldColorPicker = function FieldColorPicker(_ref3) {
|
|
46755
|
+
var FieldColorPicker = function FieldColorPicker(_ref3, ref) {
|
|
46777
46756
|
var text = _ref3.text,
|
|
46778
46757
|
type = _ref3.mode,
|
|
46779
46758
|
render = _ref3.render,
|
|
@@ -46783,7 +46762,8 @@ var FieldColorPicker = function FieldColorPicker(_ref3) {
|
|
|
46783
46762
|
if (type === 'read') {
|
|
46784
46763
|
var dom = (0,jsx_runtime.jsx)(ColorPicker, {
|
|
46785
46764
|
value: text,
|
|
46786
|
-
mode: "read"
|
|
46765
|
+
mode: "read",
|
|
46766
|
+
ref: ref
|
|
46787
46767
|
});
|
|
46788
46768
|
|
|
46789
46769
|
if (render) {
|
|
@@ -46796,7 +46776,9 @@ var FieldColorPicker = function FieldColorPicker(_ref3) {
|
|
|
46796
46776
|
}
|
|
46797
46777
|
|
|
46798
46778
|
if (type === 'edit' || type === 'update') {
|
|
46799
|
-
var _dom = (0,jsx_runtime.jsx)(ColorPicker, objectSpread2_objectSpread2({
|
|
46779
|
+
var _dom = (0,jsx_runtime.jsx)(ColorPicker, objectSpread2_objectSpread2({
|
|
46780
|
+
ref: ref
|
|
46781
|
+
}, fieldProps));
|
|
46800
46782
|
|
|
46801
46783
|
if (renderFormItem) {
|
|
46802
46784
|
return renderFormItem(text, objectSpread2_objectSpread2({
|
|
@@ -46810,7 +46792,7 @@ var FieldColorPicker = function FieldColorPicker(_ref3) {
|
|
|
46810
46792
|
return null;
|
|
46811
46793
|
};
|
|
46812
46794
|
|
|
46813
|
-
/* harmony default export */ var components_ColorPicker = (FieldColorPicker);
|
|
46795
|
+
/* harmony default export */ var components_ColorPicker = (/*#__PURE__*/external_React_default().forwardRef(FieldColorPicker));
|
|
46814
46796
|
// EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekOfYear.js
|
|
46815
46797
|
var weekOfYear = __webpack_require__(9855);
|
|
46816
46798
|
var weekOfYear_default = /*#__PURE__*/__webpack_require__.n(weekOfYear);
|
|
@@ -48166,7 +48148,7 @@ var FieldRadio = function FieldRadio(_ref, ref) {
|
|
|
48166
48148
|
}); // css
|
|
48167
48149
|
|
|
48168
48150
|
var _useStyle = useStyle('FieldRadioRadio', function (token) {
|
|
48169
|
-
return defineProperty_defineProperty({}, ".".concat(layoutClassName, "-
|
|
48151
|
+
return defineProperty_defineProperty({}, ".".concat(layoutClassName, "-vertical"), defineProperty_defineProperty({}, "".concat(token.antCls, "-radio-wrapper"), {
|
|
48170
48152
|
display: 'block',
|
|
48171
48153
|
marginInlineEnd: 0
|
|
48172
48154
|
}));
|
|
@@ -48207,7 +48189,7 @@ var FieldRadio = function FieldRadio(_ref, ref) {
|
|
|
48207
48189
|
ref: radioRef,
|
|
48208
48190
|
optionType: radioType
|
|
48209
48191
|
}, rest.fieldProps), {}, {
|
|
48210
|
-
className: classnames_default()((_rest$fieldProps = rest.fieldProps) === null || _rest$fieldProps === void 0 ? void 0 : _rest$fieldProps.className, hashId, "".concat(layoutClassName, "-").concat(rest.fieldProps.layout || '
|
|
48192
|
+
className: classnames_default()((_rest$fieldProps = rest.fieldProps) === null || _rest$fieldProps === void 0 ? void 0 : _rest$fieldProps.className, hashId, "".concat(layoutClassName, "-").concat(rest.fieldProps.layout || 'horizontal')),
|
|
48211
48193
|
options: options
|
|
48212
48194
|
})));
|
|
48213
48195
|
|
|
@@ -48468,6 +48450,100 @@ var Second = function Second(_ref, ref) {
|
|
|
48468
48450
|
};
|
|
48469
48451
|
|
|
48470
48452
|
/* harmony default export */ var components_Second = (/*#__PURE__*/external_React_default().forwardRef(Second));
|
|
48453
|
+
;// CONCATENATED MODULE: ./packages/field/es/components/Segmented/index.js
|
|
48454
|
+
|
|
48455
|
+
|
|
48456
|
+
|
|
48457
|
+
|
|
48458
|
+
var Segmented_excluded = ["mode", "render", "renderFormItem", "fieldProps", "emptyText"];
|
|
48459
|
+
|
|
48460
|
+
|
|
48461
|
+
|
|
48462
|
+
|
|
48463
|
+
/**
|
|
48464
|
+
* Segmented https://ant.design/components/segmented-cn/
|
|
48465
|
+
*
|
|
48466
|
+
* @param
|
|
48467
|
+
*/
|
|
48468
|
+
|
|
48469
|
+
var FieldSegmented = function FieldSegmented(_ref, ref) {
|
|
48470
|
+
var mode = _ref.mode,
|
|
48471
|
+
render = _ref.render,
|
|
48472
|
+
renderFormItem = _ref.renderFormItem,
|
|
48473
|
+
fieldProps = _ref.fieldProps,
|
|
48474
|
+
_ref$emptyText = _ref.emptyText,
|
|
48475
|
+
emptyText = _ref$emptyText === void 0 ? '-' : _ref$emptyText,
|
|
48476
|
+
rest = objectWithoutProperties_objectWithoutProperties(_ref, Segmented_excluded);
|
|
48477
|
+
|
|
48478
|
+
var inputRef = (0,external_React_.useRef)();
|
|
48479
|
+
|
|
48480
|
+
var _useFieldFetchData = useFieldFetchData(rest),
|
|
48481
|
+
_useFieldFetchData2 = slicedToArray_slicedToArray(_useFieldFetchData, 3),
|
|
48482
|
+
loading = _useFieldFetchData2[0],
|
|
48483
|
+
options = _useFieldFetchData2[1],
|
|
48484
|
+
_fetchData = _useFieldFetchData2[2];
|
|
48485
|
+
|
|
48486
|
+
(0,external_React_.useImperativeHandle)(ref, function () {
|
|
48487
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, inputRef.current || {}), {}, {
|
|
48488
|
+
fetchData: function fetchData() {
|
|
48489
|
+
return _fetchData();
|
|
48490
|
+
}
|
|
48491
|
+
});
|
|
48492
|
+
});
|
|
48493
|
+
|
|
48494
|
+
if (loading) {
|
|
48495
|
+
return (0,jsx_runtime.jsx)(external_antd_.Spin, {
|
|
48496
|
+
size: "small"
|
|
48497
|
+
});
|
|
48498
|
+
}
|
|
48499
|
+
|
|
48500
|
+
if (mode === 'read') {
|
|
48501
|
+
var optionsValueEnum = (options === null || options === void 0 ? void 0 : options.length) ? options === null || options === void 0 ? void 0 : options.reduce(function (pre, cur) {
|
|
48502
|
+
var _cur$value;
|
|
48503
|
+
|
|
48504
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, pre), {}, defineProperty_defineProperty({}, (_cur$value = cur.value) !== null && _cur$value !== void 0 ? _cur$value : '', cur.label));
|
|
48505
|
+
}, {}) : undefined;
|
|
48506
|
+
|
|
48507
|
+
var dom = (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
48508
|
+
children: proFieldParsingText(rest.text, ObjToMap(rest.valueEnum || optionsValueEnum))
|
|
48509
|
+
});
|
|
48510
|
+
|
|
48511
|
+
if (render) {
|
|
48512
|
+
var _render;
|
|
48513
|
+
|
|
48514
|
+
return (_render = render(rest.text, objectSpread2_objectSpread2({
|
|
48515
|
+
mode: mode
|
|
48516
|
+
}, fieldProps), (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
48517
|
+
children: dom
|
|
48518
|
+
}))) !== null && _render !== void 0 ? _render : emptyText;
|
|
48519
|
+
}
|
|
48520
|
+
|
|
48521
|
+
return dom;
|
|
48522
|
+
}
|
|
48523
|
+
|
|
48524
|
+
if (mode === 'edit' || mode === 'update') {
|
|
48525
|
+
var _dom = (0,jsx_runtime.jsx)(external_antd_.Segmented, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48526
|
+
ref: inputRef,
|
|
48527
|
+
allowClear: true
|
|
48528
|
+
}, fieldProps), {}, {
|
|
48529
|
+
options: options
|
|
48530
|
+
}));
|
|
48531
|
+
|
|
48532
|
+
if (renderFormItem) {
|
|
48533
|
+
return renderFormItem(rest.text, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
48534
|
+
mode: mode
|
|
48535
|
+
}, fieldProps), {}, {
|
|
48536
|
+
options: options
|
|
48537
|
+
}), _dom);
|
|
48538
|
+
}
|
|
48539
|
+
|
|
48540
|
+
return _dom;
|
|
48541
|
+
}
|
|
48542
|
+
|
|
48543
|
+
return null;
|
|
48544
|
+
};
|
|
48545
|
+
|
|
48546
|
+
/* harmony default export */ var Segmented = (/*#__PURE__*/external_React_default().forwardRef(FieldSegmented));
|
|
48471
48547
|
;// CONCATENATED MODULE: ./packages/field/es/components/Slider/index.js
|
|
48472
48548
|
|
|
48473
48549
|
|
|
@@ -49282,6 +49358,7 @@ var es_excluded = ["text", "valueType", "mode", "onChange", "renderFormItem", "v
|
|
|
49282
49358
|
|
|
49283
49359
|
|
|
49284
49360
|
|
|
49361
|
+
|
|
49285
49362
|
|
|
49286
49363
|
|
|
49287
49364
|
dayjs_min_default().extend((weekday_default()));
|
|
@@ -49702,6 +49779,12 @@ var defaultRenderText = function defaultRenderText(dataValue, valueType, props,
|
|
|
49702
49779
|
}, props));
|
|
49703
49780
|
}
|
|
49704
49781
|
|
|
49782
|
+
if (valueType === 'segmented') {
|
|
49783
|
+
return (0,jsx_runtime.jsx)(Segmented, objectSpread2_objectSpread2({
|
|
49784
|
+
text: dataValue
|
|
49785
|
+
}, props));
|
|
49786
|
+
}
|
|
49787
|
+
|
|
49705
49788
|
return (0,jsx_runtime.jsx)(Text, objectSpread2_objectSpread2({
|
|
49706
49789
|
text: dataValue
|
|
49707
49790
|
}, props));
|
|
@@ -50432,8 +50515,6 @@ var PlusOutlined_PlusOutlined = function PlusOutlined(props, ref) {
|
|
|
50432
50515
|
|
|
50433
50516
|
PlusOutlined_PlusOutlined.displayName = 'PlusOutlined';
|
|
50434
50517
|
/* harmony default export */ var icons_PlusOutlined = (/*#__PURE__*/external_React_.forwardRef(PlusOutlined_PlusOutlined));
|
|
50435
|
-
// EXTERNAL MODULE: ./node_modules/rc-util/lib/Children/toArray.js
|
|
50436
|
-
var Children_toArray = __webpack_require__(5994);
|
|
50437
50518
|
;// CONCATENATED MODULE: ./packages/form/es/components/List/ListItem.js
|
|
50438
50519
|
|
|
50439
50520
|
|
|
@@ -52312,7 +52393,7 @@ function DrawerForm(_ref) {
|
|
|
52312
52393
|
return _ref3.apply(this, arguments);
|
|
52313
52394
|
};
|
|
52314
52395
|
}());
|
|
52315
|
-
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
52396
|
+
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
52316
52397
|
open: open,
|
|
52317
52398
|
onOpenChange: onVisibleChange
|
|
52318
52399
|
} : {
|
|
@@ -52951,7 +53032,7 @@ function ModalForm(_ref) {
|
|
|
52951
53032
|
return _ref5.apply(this, arguments);
|
|
52952
53033
|
};
|
|
52953
53034
|
}(), [onFinish, setOpen, submitTimeout]);
|
|
52954
|
-
var modalOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
53035
|
+
var modalOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
52955
53036
|
open: open
|
|
52956
53037
|
} : {
|
|
52957
53038
|
visible: open
|
|
@@ -55705,7 +55786,7 @@ var field = function field(item, _ref) {
|
|
|
55705
55786
|
}
|
|
55706
55787
|
|
|
55707
55788
|
return /*#__PURE__*/(0,external_React_.createElement)(components_Field, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, formFieldProps), {}, {
|
|
55708
|
-
key:
|
|
55789
|
+
key: [item.key, item.index || 0].join('-'),
|
|
55709
55790
|
renderFormItem: renderFormItem
|
|
55710
55791
|
}));
|
|
55711
55792
|
};
|
|
@@ -55997,6 +56078,41 @@ function BetaSchemaForm(props) {
|
|
|
55997
56078
|
}
|
|
55998
56079
|
|
|
55999
56080
|
/* harmony default export */ var SchemaForm = (BetaSchemaForm);
|
|
56081
|
+
;// CONCATENATED MODULE: ./packages/form/es/components/Segmented/index.js
|
|
56082
|
+
|
|
56083
|
+
|
|
56084
|
+
var components_Segmented_excluded = ["fieldProps", "request", "params", "proFieldProps"];
|
|
56085
|
+
|
|
56086
|
+
|
|
56087
|
+
|
|
56088
|
+
/**
|
|
56089
|
+
* 分段控制器
|
|
56090
|
+
*
|
|
56091
|
+
* @param
|
|
56092
|
+
*/
|
|
56093
|
+
|
|
56094
|
+
var ProFormSegmented = function ProFormSegmented(_ref, ref) {
|
|
56095
|
+
var fieldProps = _ref.fieldProps,
|
|
56096
|
+
request = _ref.request,
|
|
56097
|
+
params = _ref.params,
|
|
56098
|
+
proFieldProps = _ref.proFieldProps,
|
|
56099
|
+
rest = objectWithoutProperties_objectWithoutProperties(_ref, components_Segmented_excluded);
|
|
56100
|
+
|
|
56101
|
+
return (0,jsx_runtime.jsx)(components_Field, objectSpread2_objectSpread2({
|
|
56102
|
+
valueType: "segmented",
|
|
56103
|
+
fieldProps: fieldProps,
|
|
56104
|
+
ref: ref,
|
|
56105
|
+
request: request,
|
|
56106
|
+
params: params,
|
|
56107
|
+
filedConfig: {
|
|
56108
|
+
customLightMode: true
|
|
56109
|
+
},
|
|
56110
|
+
proFieldProps: proFieldProps
|
|
56111
|
+
}, rest));
|
|
56112
|
+
};
|
|
56113
|
+
|
|
56114
|
+
var WarpProFormSegmented = /*#__PURE__*/external_React_default().forwardRef(ProFormSegmented);
|
|
56115
|
+
/* harmony default export */ var components_Segmented = (WarpProFormSegmented);
|
|
56000
56116
|
;// CONCATENATED MODULE: ./packages/form/es/components/Select/index.js
|
|
56001
56117
|
|
|
56002
56118
|
|
|
@@ -56705,6 +56821,7 @@ var ProFormUploadDragger = createField(BaseProFormUploadDragger, {
|
|
|
56705
56821
|
|
|
56706
56822
|
|
|
56707
56823
|
|
|
56824
|
+
|
|
56708
56825
|
|
|
56709
56826
|
|
|
56710
56827
|
;// CONCATENATED MODULE: ./packages/form/es/BaseForm/BaseForm.js
|
|
@@ -58390,7 +58507,7 @@ var ListSkeleton = function ListSkeleton(_ref4) {
|
|
|
58390
58507
|
}), actionButton !== false && (0,jsx_runtime.jsx)(external_antd_.Card, {
|
|
58391
58508
|
bordered: false,
|
|
58392
58509
|
style: {
|
|
58393
|
-
|
|
58510
|
+
borderStartEndRadius: 0,
|
|
58394
58511
|
borderTopLeftRadius: 0
|
|
58395
58512
|
},
|
|
58396
58513
|
bodyStyle: {
|
|
@@ -58773,7 +58890,7 @@ var DescriptionsSkeleton = function DescriptionsSkeleton(_ref5) {
|
|
|
58773
58890
|
return (0,jsx_runtime.jsxs)(external_antd_.Card, {
|
|
58774
58891
|
bordered: false,
|
|
58775
58892
|
style: {
|
|
58776
|
-
|
|
58893
|
+
borderStartEndRadius: 0,
|
|
58777
58894
|
borderTopLeftRadius: 0
|
|
58778
58895
|
},
|
|
58779
58896
|
children: [(0,jsx_runtime.jsx)(external_antd_.Skeleton.Button, {
|
|
@@ -59740,8 +59857,6 @@ var ArrowLeftOutlined_default = /*#__PURE__*/__webpack_require__.n(ArrowLeftOutl
|
|
|
59740
59857
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/ArrowRightOutlined.js
|
|
59741
59858
|
var ArrowRightOutlined = __webpack_require__(2406);
|
|
59742
59859
|
var ArrowRightOutlined_default = /*#__PURE__*/__webpack_require__.n(ArrowRightOutlined);
|
|
59743
|
-
// EXTERNAL MODULE: ./node_modules/rc-util/lib/hooks/useState.js
|
|
59744
|
-
var hooks_useState = __webpack_require__(8594);
|
|
59745
59860
|
;// CONCATENATED MODULE: ./packages/layout/es/components/PageHeader/style/index.js
|
|
59746
59861
|
|
|
59747
59862
|
|
|
@@ -59994,10 +60109,10 @@ var renderChildren = function renderChildren(prefixCls, children, hashId) {
|
|
|
59994
60109
|
var PageHeader = function PageHeader(props) {
|
|
59995
60110
|
var _breadcrumbRender, _classNames;
|
|
59996
60111
|
|
|
59997
|
-
var
|
|
59998
|
-
|
|
59999
|
-
compact =
|
|
60000
|
-
updateCompact =
|
|
60112
|
+
var _useSafeState = useSafeState(false),
|
|
60113
|
+
_useSafeState2 = slicedToArray_slicedToArray(_useSafeState, 2),
|
|
60114
|
+
compact = _useSafeState2[0],
|
|
60115
|
+
updateCompact = _useSafeState2[1];
|
|
60001
60116
|
|
|
60002
60117
|
var onResize = function onResize(_ref) {
|
|
60003
60118
|
var width = _ref.width;
|
|
@@ -60270,8 +60385,8 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
60270
60385
|
}))
|
|
60271
60386
|
}, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
|
|
60272
60387
|
marginBlockEnd: token.marginBlockPageContainerContent / 2,
|
|
60273
|
-
paddingInlineStart:
|
|
60274
|
-
paddingInlineEnd:
|
|
60388
|
+
paddingInlineStart: token.marginInlinePageContainerContent,
|
|
60389
|
+
paddingInlineEnd: token.marginInlinePageContainerContent
|
|
60275
60390
|
}, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
|
|
60276
60391
|
marginBlock: token.marginBlockPageContainerContent / 3
|
|
60277
60392
|
}))), defineProperty_defineProperty(_token$componentCls, '&-detail', defineProperty_defineProperty({
|
|
@@ -61391,7 +61506,7 @@ var AppsLogoComponents = function AppsLogoComponents(props) {
|
|
|
61391
61506
|
});
|
|
61392
61507
|
}, [appList, baseClassName, hashId]);
|
|
61393
61508
|
if (!(props === null || props === void 0 ? void 0 : (_props$appList = props.appList) === null || _props$appList === void 0 ? void 0 : _props$appList.length)) return null;
|
|
61394
|
-
var popoverOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
61509
|
+
var popoverOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
61395
61510
|
onOpenChange: setOpen
|
|
61396
61511
|
} : {
|
|
61397
61512
|
onVisibleChange: function onVisibleChange() {
|
|
@@ -61769,7 +61884,13 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
|
|
|
61769
61884
|
borderRadius: token.radiusBase
|
|
61770
61885
|
}), defineProperty_defineProperty(_collapsed, "".concat(token.componentCls, "-group"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
|
|
61771
61886
|
paddingInline: 0
|
|
61772
|
-
})), _collapsed)), defineProperty_defineProperty(_$concat4,
|
|
61887
|
+
})), _collapsed)), defineProperty_defineProperty(_$concat4, "".concat(token.componentCls, "-item-icon"), {
|
|
61888
|
+
height: '14px',
|
|
61889
|
+
'.anticon': {
|
|
61890
|
+
lineHeight: '14px',
|
|
61891
|
+
height: '14px'
|
|
61892
|
+
}
|
|
61893
|
+
}), defineProperty_defineProperty(_$concat4, '& &-item-title', defineProperty_defineProperty({
|
|
61773
61894
|
display: 'flex',
|
|
61774
61895
|
flexDirection: 'row',
|
|
61775
61896
|
alignItems: 'center',
|
|
@@ -61866,15 +61987,12 @@ var getIcon = function getIcon(icon) {
|
|
|
61866
61987
|
|
|
61867
61988
|
if (typeof icon === 'string' && icon !== '') {
|
|
61868
61989
|
if (isUrl(icon) || isImg(icon)) {
|
|
61869
|
-
return (0,jsx_runtime.jsx)(
|
|
61870
|
-
|
|
61871
|
-
|
|
61872
|
-
|
|
61873
|
-
|
|
61874
|
-
|
|
61875
|
-
});
|
|
61876
|
-
}
|
|
61877
|
-
});
|
|
61990
|
+
return (0,jsx_runtime.jsx)("img", {
|
|
61991
|
+
width: 16,
|
|
61992
|
+
src: icon,
|
|
61993
|
+
alt: "icon",
|
|
61994
|
+
className: className
|
|
61995
|
+
}, icon);
|
|
61878
61996
|
}
|
|
61879
61997
|
|
|
61880
61998
|
if (icon.startsWith(iconPrefixes)) {
|
|
@@ -61937,7 +62055,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
61937
62055
|
|
|
61938
62056
|
var shouldHasIcon = level === 0 || isGroup && level === 1; // get defaultTitle by menuItemRender
|
|
61939
62057
|
|
|
61940
|
-
var iconDom = getIcon(item.icon, iconPrefixes, "".concat(baseClassName, "-icon ").concat((_this$props2 = _this.props) === null || _this$props2 === void 0 ? void 0 : _this$props2.hashId));
|
|
62058
|
+
var iconDom = getIcon(item.icon, iconPrefixes, "action ".concat(baseClassName, "-icon ").concat((_this$props2 = _this.props) === null || _this$props2 === void 0 ? void 0 : _this$props2.hashId));
|
|
61941
62059
|
/**
|
|
61942
62060
|
* 如果没有icon在收起的时候用首字母代替
|
|
61943
62061
|
*/
|
|
@@ -62054,7 +62172,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
62054
62172
|
className: classnames_default()("".concat(baseClassName, "-item-text"), (_this$props12 = _this.props) === null || _this$props12 === void 0 ? void 0 : _this$props12.hashId, defineProperty_defineProperty({}, "".concat(baseClassName, "-item-text-has-icon"), hasIcon && (icon || defaultIcon))),
|
|
62055
62173
|
children: name
|
|
62056
62174
|
})]
|
|
62057
|
-
});
|
|
62175
|
+
}, itemPath);
|
|
62058
62176
|
|
|
62059
62177
|
var isHttpUrl = isUrl(itemPath); // Is it a http link
|
|
62060
62178
|
|
|
@@ -62076,7 +62194,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
62076
62194
|
className: classnames_default()("".concat(baseClassName, "-item-text"), (_this$props15 = _this.props) === null || _this$props15 === void 0 ? void 0 : _this$props15.hashId, defineProperty_defineProperty({}, "".concat(baseClassName, "-item-text-has-icon"), hasIcon && (icon || defaultIcon))),
|
|
62077
62195
|
children: name
|
|
62078
62196
|
})]
|
|
62079
|
-
});
|
|
62197
|
+
}, itemPath);
|
|
62080
62198
|
}
|
|
62081
62199
|
|
|
62082
62200
|
if (menuItemRender) {
|
|
@@ -62941,8 +63059,8 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
62941
63059
|
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
|
|
62942
63060
|
override: {
|
|
62943
63061
|
Menu: {
|
|
62944
|
-
colorItemBg: 'transparent',
|
|
62945
|
-
colorSubItemBg: 'transparent',
|
|
63062
|
+
colorItemBg: header.colorBgHeader || 'transparent',
|
|
63063
|
+
colorSubItemBg: header.colorBgHeader || 'transparent',
|
|
62946
63064
|
radiusItem: 4,
|
|
62947
63065
|
colorItemBgSelected: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
|
|
62948
63066
|
colorItemBgActive: header.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
|
|
@@ -62975,7 +63093,7 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
62975
63093
|
}
|
|
62976
63094
|
|
|
62977
63095
|
return defaultDom;
|
|
62978
|
-
}, [hashId, header.colorBgMenuItemHover, header.colorBgMenuItemSelected, header.colorTextMenu, header.colorTextMenuActive, header.colorTextMenuSelected, headerContentRender, prefixCls, props]);
|
|
63096
|
+
}, [hashId, header.colorBgHeader, header.colorBgMenuItemHover, header.colorBgMenuItemSelected, header.colorTextMenu, header.colorTextMenuActive, header.colorTextMenuSelected, headerContentRender, prefixCls, props]);
|
|
62979
63097
|
return wrapSSR((0,jsx_runtime.jsx)("div", {
|
|
62980
63098
|
className: classnames_default()(prefixCls, hashId, propsClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-light"), true)),
|
|
62981
63099
|
style: style,
|
|
@@ -63032,7 +63150,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
|
|
|
63032
63150
|
marginInlineEnd: 16
|
|
63033
63151
|
}), defineProperty_defineProperty(_token$componentCls, '&-collapsed-button', {
|
|
63034
63152
|
minHeight: '22px',
|
|
63035
|
-
color: token.
|
|
63153
|
+
color: token.colorHeaderTitle,
|
|
63036
63154
|
fontSize: '22px',
|
|
63037
63155
|
marginInlineStart: '16px'
|
|
63038
63156
|
}), defineProperty_defineProperty(_token$componentCls, '&-logo', {
|
|
@@ -63076,7 +63194,8 @@ function GlobalHeader_style_useStyle(prefixCls) {
|
|
|
63076
63194
|
return useStyle('pro-layout-global-header', function (token) {
|
|
63077
63195
|
var GlobalHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
63078
63196
|
componentCls: ".".concat(prefixCls),
|
|
63079
|
-
heightLayoutHeader: header.heightLayoutHeader
|
|
63197
|
+
heightLayoutHeader: header.heightLayoutHeader,
|
|
63198
|
+
colorHeaderTitle: header.colorHeaderTitle
|
|
63080
63199
|
});
|
|
63081
63200
|
|
|
63082
63201
|
return [genGlobalHeaderStyle(GlobalHeaderToken)];
|
|
@@ -64700,7 +64819,7 @@ var SettingDrawer = function SettingDrawer(props) {
|
|
|
64700
64819
|
wrapSSR = _useStyle.wrapSSR,
|
|
64701
64820
|
hashId = _useStyle.hashId;
|
|
64702
64821
|
|
|
64703
|
-
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
64822
|
+
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
64704
64823
|
open: open,
|
|
64705
64824
|
onClose: function onClose() {
|
|
64706
64825
|
return setOpen(false);
|
|
@@ -67250,7 +67369,7 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
|
|
|
67250
67369
|
return null;
|
|
67251
67370
|
}
|
|
67252
67371
|
|
|
67253
|
-
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') ? {
|
|
67372
|
+
var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
|
|
67254
67373
|
open: !collapsed,
|
|
67255
67374
|
onClose: function onClose() {
|
|
67256
67375
|
return onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(true);
|
|
@@ -67443,7 +67562,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
67443
67562
|
display: 'flex',
|
|
67444
67563
|
flexDirection: 'column',
|
|
67445
67564
|
width: '100%',
|
|
67446
|
-
backgroundColor: 'transparent',
|
|
67565
|
+
backgroundColor: token.pageContainer.colorBgPageContainer || 'transparent',
|
|
67447
67566
|
position: 'relative',
|
|
67448
67567
|
'*': {
|
|
67449
67568
|
boxSizing: 'border-box'
|
|
@@ -70973,7 +71092,7 @@ function container_useContainer() {
|
|
|
70973
71092
|
try {
|
|
70974
71093
|
storage === null || storage === void 0 ? void 0 : storage.removeItem(persistenceKey);
|
|
70975
71094
|
} catch (error) {
|
|
70976
|
-
console.
|
|
71095
|
+
console.warn(error);
|
|
70977
71096
|
}
|
|
70978
71097
|
}, [props.columnsState]);
|
|
70979
71098
|
(0,external_React_.useEffect)(function () {
|
|
@@ -70994,7 +71113,8 @@ function container_useContainer() {
|
|
|
70994
71113
|
try {
|
|
70995
71114
|
storage === null || storage === void 0 ? void 0 : storage.setItem(persistenceKey, JSON.stringify(columnsMap));
|
|
70996
71115
|
} catch (error) {
|
|
70997
|
-
console.
|
|
71116
|
+
console.warn(error);
|
|
71117
|
+
clearPersistenceStorage();
|
|
70998
71118
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
70999
71119
|
|
|
71000
71120
|
}, [(_props$columnsState8 = props.columnsState) === null || _props$columnsState8 === void 0 ? void 0 : _props$columnsState8.persistenceKey, columnsMap, (_props$columnsState9 = props.columnsState) === null || _props$columnsState9 === void 0 ? void 0 : _props$columnsState9.persistenceType]);
|
|
@@ -71162,7 +71282,7 @@ VerticalAlignBottomOutlined_VerticalAlignBottomOutlined.displayName = 'VerticalA
|
|
|
71162
71282
|
|
|
71163
71283
|
|
|
71164
71284
|
var ColumnSetting_style_genProStyle = function genProStyle(token) {
|
|
71165
|
-
var _overlay, _$concat2, _ref;
|
|
71285
|
+
var _$concat, _overlay, _$concat2, _ref;
|
|
71166
71286
|
|
|
71167
71287
|
return _ref = {}, defineProperty_defineProperty(_ref, token.componentCls, {
|
|
71168
71288
|
width: 'auto',
|
|
@@ -71186,19 +71306,16 @@ var ColumnSetting_style_genProStyle = function genProStyle(token) {
|
|
|
71186
71306
|
backgroundColor: 'transparent'
|
|
71187
71307
|
}), defineProperty_defineProperty(_overlay, "".concat(token.antCls, "-tree-draggable-icon"), {
|
|
71188
71308
|
cursor: 'grab'
|
|
71189
|
-
}), defineProperty_defineProperty(_overlay, "".concat(token.antCls, "-tree-treenode"),
|
|
71309
|
+
}), defineProperty_defineProperty(_overlay, "".concat(token.antCls, "-tree-treenode"), (_$concat = {
|
|
71190
71310
|
alignItems: 'center',
|
|
71191
|
-
'&:hover': defineProperty_defineProperty({
|
|
71192
|
-
backgroundColor: token.controlItemBgActive
|
|
71193
|
-
}, "".concat(token.componentCls, "-list-item-option"), {
|
|
71311
|
+
'&:hover': defineProperty_defineProperty({}, "".concat(token.componentCls, "-list-item-option"), {
|
|
71194
71312
|
display: 'block'
|
|
71195
71313
|
})
|
|
71196
|
-
}, "".concat(token.antCls, "-tree-checkbox"), {
|
|
71197
|
-
insetBlockStart: 0,
|
|
71198
|
-
marginBlock: 0,
|
|
71199
|
-
marginInline: 0,
|
|
71314
|
+
}, defineProperty_defineProperty(_$concat, "".concat(token.antCls, "-tree-checkbox"), {
|
|
71200
71315
|
marginInlineEnd: '4px'
|
|
71201
|
-
})),
|
|
71316
|
+
}), defineProperty_defineProperty(_$concat, "".concat(token.antCls, "-tree-title"), {
|
|
71317
|
+
width: '100%'
|
|
71318
|
+
}), _$concat)), _overlay)
|
|
71202
71319
|
}), defineProperty_defineProperty(_ref, "".concat(token.componentCls, "-list"), (_$concat2 = {
|
|
71203
71320
|
display: 'flex',
|
|
71204
71321
|
flexDirection: 'column',
|
|
@@ -71305,8 +71422,11 @@ var CheckboxListItem = function CheckboxListItem(_ref2) {
|
|
|
71305
71422
|
fixed = _ref2.fixed;
|
|
71306
71423
|
var intl = useIntl();
|
|
71307
71424
|
|
|
71425
|
+
var _useToken = useStyle_useToken(),
|
|
71426
|
+
hashId = _useToken.hashId;
|
|
71427
|
+
|
|
71308
71428
|
var dom = (0,jsx_runtime.jsxs)("span", {
|
|
71309
|
-
className: "".concat(className, "-list-item-option"),
|
|
71429
|
+
className: "".concat(className, "-list-item-option ").concat(hashId),
|
|
71310
71430
|
children: [(0,jsx_runtime.jsx)(ToolTipIcon, {
|
|
71311
71431
|
columnKey: columnKey,
|
|
71312
71432
|
fixed: "left",
|
|
@@ -71329,9 +71449,9 @@ var CheckboxListItem = function CheckboxListItem(_ref2) {
|
|
|
71329
71449
|
});
|
|
71330
71450
|
|
|
71331
71451
|
return (0,jsx_runtime.jsxs)("span", {
|
|
71332
|
-
className: "".concat(className, "-list-item"),
|
|
71452
|
+
className: "".concat(className, "-list-item ").concat(hashId),
|
|
71333
71453
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
71334
|
-
className: "".concat(className, "-list-item-title"),
|
|
71454
|
+
className: "".concat(className, "-list-item-title ").concat(hashId),
|
|
71335
71455
|
children: title
|
|
71336
71456
|
}), !isLeaf ? dom : null]
|
|
71337
71457
|
}, columnKey);
|
|
@@ -71350,6 +71470,9 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71350
71470
|
_ref3$listHeight = _ref3.listHeight,
|
|
71351
71471
|
listHeight = _ref3$listHeight === void 0 ? 280 : _ref3$listHeight;
|
|
71352
71472
|
|
|
71473
|
+
var _useToken2 = useStyle_useToken(),
|
|
71474
|
+
hashId = _useToken2.hashId;
|
|
71475
|
+
|
|
71353
71476
|
var _Container$useContain2 = container.useContainer(),
|
|
71354
71477
|
columnsMap = _Container$useContain2.columnsMap,
|
|
71355
71478
|
setColumnsMap = _Container$useContain2.setColumnsMap,
|
|
@@ -71360,6 +71483,7 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71360
71483
|
var treeDataConfig = (0,external_React_.useMemo)(function () {
|
|
71361
71484
|
if (!show) return {};
|
|
71362
71485
|
var checkedKeys = [];
|
|
71486
|
+
var treeMap = new Map();
|
|
71363
71487
|
|
|
71364
71488
|
var loopData = function loopData(data, parentConfig) {
|
|
71365
71489
|
return data.map(function (_ref4) {
|
|
@@ -71375,7 +71499,7 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71375
71499
|
show: true
|
|
71376
71500
|
};
|
|
71377
71501
|
|
|
71378
|
-
if (config.show !== false &&
|
|
71502
|
+
if (config.show !== false && !children) {
|
|
71379
71503
|
checkedKeys.push(columnKey);
|
|
71380
71504
|
}
|
|
71381
71505
|
|
|
@@ -71389,16 +71513,26 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71389
71513
|
});
|
|
71390
71514
|
|
|
71391
71515
|
if (children) {
|
|
71392
|
-
|
|
71516
|
+
var _item$children;
|
|
71517
|
+
|
|
71518
|
+
item.children = loopData(children, config); // 如果children 已经全部是show了,把自己也设置为show
|
|
71519
|
+
|
|
71520
|
+
if ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.every(function (childrenItem) {
|
|
71521
|
+
return checkedKeys === null || checkedKeys === void 0 ? void 0 : checkedKeys.includes(childrenItem.key);
|
|
71522
|
+
})) {
|
|
71523
|
+
checkedKeys.push(columnKey);
|
|
71524
|
+
}
|
|
71393
71525
|
}
|
|
71394
71526
|
|
|
71527
|
+
treeMap.set(key, item);
|
|
71395
71528
|
return item;
|
|
71396
71529
|
});
|
|
71397
71530
|
};
|
|
71398
71531
|
|
|
71399
71532
|
return {
|
|
71400
71533
|
list: loopData(list),
|
|
71401
|
-
keys: checkedKeys
|
|
71534
|
+
keys: checkedKeys,
|
|
71535
|
+
map: treeMap
|
|
71402
71536
|
};
|
|
71403
71537
|
}, [columnsMap, list, show]);
|
|
71404
71538
|
/** 移动到指定的位置 */
|
|
@@ -71438,12 +71572,28 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71438
71572
|
/** 选中反选功能 */
|
|
71439
71573
|
|
|
71440
71574
|
var onCheckTree = useRefFunction(function (e) {
|
|
71441
|
-
var
|
|
71575
|
+
var newColumnMap = objectSpread2_objectSpread2({}, columnsMap);
|
|
71576
|
+
|
|
71577
|
+
var loopSetShow = function loopSetShow(key) {
|
|
71578
|
+
var _treeDataConfig$map, _treeDataConfig$map$g;
|
|
71579
|
+
|
|
71580
|
+
var newSetting = objectSpread2_objectSpread2({}, newColumnMap[key]);
|
|
71581
|
+
|
|
71582
|
+
newSetting.show = e.checked; // 如果含有子节点,也要选中
|
|
71583
|
+
|
|
71584
|
+
if ((_treeDataConfig$map = treeDataConfig.map) === null || _treeDataConfig$map === void 0 ? void 0 : (_treeDataConfig$map$g = _treeDataConfig$map.get(key)) === null || _treeDataConfig$map$g === void 0 ? void 0 : _treeDataConfig$map$g.children) {
|
|
71585
|
+
var _treeDataConfig$map2, _treeDataConfig$map2$, _treeDataConfig$map2$2;
|
|
71586
|
+
|
|
71587
|
+
(_treeDataConfig$map2 = treeDataConfig.map) === null || _treeDataConfig$map2 === void 0 ? void 0 : (_treeDataConfig$map2$ = _treeDataConfig$map2.get(key)) === null || _treeDataConfig$map2$ === void 0 ? void 0 : (_treeDataConfig$map2$2 = _treeDataConfig$map2$.children) === null || _treeDataConfig$map2$2 === void 0 ? void 0 : _treeDataConfig$map2$2.forEach(function (item) {
|
|
71588
|
+
return loopSetShow(item.key);
|
|
71589
|
+
});
|
|
71590
|
+
}
|
|
71442
71591
|
|
|
71443
|
-
|
|
71592
|
+
newColumnMap[key] = newSetting;
|
|
71593
|
+
};
|
|
71444
71594
|
|
|
71445
|
-
|
|
71446
|
-
setColumnsMap(objectSpread2_objectSpread2(
|
|
71595
|
+
loopSetShow(e.node.key);
|
|
71596
|
+
setColumnsMap(objectSpread2_objectSpread2({}, newColumnMap));
|
|
71447
71597
|
});
|
|
71448
71598
|
|
|
71449
71599
|
if (!show) {
|
|
@@ -71473,6 +71623,7 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71473
71623
|
children: undefined
|
|
71474
71624
|
});
|
|
71475
71625
|
|
|
71626
|
+
if (!node.title) return null;
|
|
71476
71627
|
return (0,jsx_runtime.jsx)(CheckboxListItem, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
71477
71628
|
className: className
|
|
71478
71629
|
}, node), {}, {
|
|
@@ -71486,7 +71637,7 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
71486
71637
|
|
|
71487
71638
|
return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
71488
71639
|
children: [showTitle && (0,jsx_runtime.jsx)("span", {
|
|
71489
|
-
className: "".concat(className, "-list-title"),
|
|
71640
|
+
className: "".concat(className, "-list-title ").concat(hashId),
|
|
71490
71641
|
children: listTitle
|
|
71491
71642
|
}), listDom]
|
|
71492
71643
|
});
|
|
@@ -71498,6 +71649,10 @@ var GroupCheckboxList = function GroupCheckboxList(_ref5) {
|
|
|
71498
71649
|
draggable = _ref5.draggable,
|
|
71499
71650
|
checkable = _ref5.checkable,
|
|
71500
71651
|
listsHeight = _ref5.listsHeight;
|
|
71652
|
+
|
|
71653
|
+
var _useToken3 = useStyle_useToken(),
|
|
71654
|
+
hashId = _useToken3.hashId;
|
|
71655
|
+
|
|
71501
71656
|
var rightList = [];
|
|
71502
71657
|
var leftList = [];
|
|
71503
71658
|
var list = [];
|
|
@@ -71525,7 +71680,7 @@ var GroupCheckboxList = function GroupCheckboxList(_ref5) {
|
|
|
71525
71680
|
var showRight = rightList && rightList.length > 0;
|
|
71526
71681
|
var showLeft = leftList && leftList.length > 0;
|
|
71527
71682
|
return (0,jsx_runtime.jsxs)("div", {
|
|
71528
|
-
className: classnames_default()("".concat(className, "-list"), defineProperty_defineProperty({}, "".concat(className, "-list-group"), showRight || showLeft)),
|
|
71683
|
+
className: classnames_default()("".concat(className, "-list"), hashId, defineProperty_defineProperty({}, "".concat(className, "-list-group"), showRight || showLeft)),
|
|
71529
71684
|
children: [(0,jsx_runtime.jsx)(CheckboxList, {
|
|
71530
71685
|
title: intl.getMessage('tableToolBar.leftFixedTitle', '固定在左侧'),
|
|
71531
71686
|
list: leftList,
|
|
@@ -71555,7 +71710,8 @@ var GroupCheckboxList = function GroupCheckboxList(_ref5) {
|
|
|
71555
71710
|
function ColumnSetting(props) {
|
|
71556
71711
|
var _props$checkable, _props$draggable;
|
|
71557
71712
|
|
|
71558
|
-
var columnRef = (0,external_React_.useRef)({});
|
|
71713
|
+
var columnRef = (0,external_React_.useRef)({}); // 获得当前上下文的 hashID
|
|
71714
|
+
|
|
71559
71715
|
var counter = container.useContainer();
|
|
71560
71716
|
var localColumns = props.columns;
|
|
71561
71717
|
var _props$checkedReset = props.checkedReset,
|
|
@@ -71636,12 +71792,13 @@ function ColumnSetting(props) {
|
|
|
71636
71792
|
var className = getPrefixCls('pro-table-column-setting');
|
|
71637
71793
|
|
|
71638
71794
|
var _useStyle = ColumnSetting_style_useStyle(className),
|
|
71639
|
-
wrapSSR = _useStyle.wrapSSR
|
|
71795
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
71796
|
+
hashId = _useStyle.hashId;
|
|
71640
71797
|
|
|
71641
71798
|
return wrapSSR((0,jsx_runtime.jsx)(external_antd_.Popover, {
|
|
71642
71799
|
arrowPointAtCenter: true,
|
|
71643
71800
|
title: (0,jsx_runtime.jsxs)("div", {
|
|
71644
|
-
className: "".concat(className, "-title"),
|
|
71801
|
+
className: "".concat(className, "-title ").concat(hashId),
|
|
71645
71802
|
children: [(0,jsx_runtime.jsx)(external_antd_.Checkbox, {
|
|
71646
71803
|
indeterminate: indeterminate,
|
|
71647
71804
|
checked: unCheckedKeys.length === 0 && unCheckedKeys.length !== localColumns.length,
|
|
@@ -71659,7 +71816,7 @@ function ColumnSetting(props) {
|
|
|
71659
71816
|
children: props.extra
|
|
71660
71817
|
}) : null]
|
|
71661
71818
|
}),
|
|
71662
|
-
overlayClassName: "".concat(className, "-overlay"),
|
|
71819
|
+
overlayClassName: "".concat(className, "-overlay ").concat(hashId),
|
|
71663
71820
|
trigger: "click",
|
|
71664
71821
|
placement: "bottomRight",
|
|
71665
71822
|
content: (0,jsx_runtime.jsx)(GroupCheckboxList, {
|
|
@@ -80138,7 +80295,7 @@ function conductCheck(keyList, checked, keyEntities, getCheckDisabled) {
|
|
|
80138
80295
|
* Developer should confirm it's safe to ignore themselves.
|
|
80139
80296
|
*/
|
|
80140
80297
|
|
|
80141
|
-
function
|
|
80298
|
+
function useState_useSafeState(defaultValue) {
|
|
80142
80299
|
var destroyRef = external_React_.useRef(false);
|
|
80143
80300
|
|
|
80144
80301
|
var _React$useState = external_React_.useState(defaultValue),
|
|
@@ -80195,7 +80352,7 @@ function useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
80195
80352
|
postState = _ref.postState; // ======================= Init =======================
|
|
80196
80353
|
|
|
80197
80354
|
|
|
80198
|
-
var _useState =
|
|
80355
|
+
var _useState = useState_useSafeState(function () {
|
|
80199
80356
|
var finalValue = undefined;
|
|
80200
80357
|
var source;
|
|
80201
80358
|
|
|
@@ -82085,7 +82242,7 @@ function isActive(step) {
|
|
|
82085
82242
|
return step === STEP_ACTIVE || step === STEP_ACTIVATED;
|
|
82086
82243
|
}
|
|
82087
82244
|
/* harmony default export */ var useStepQueue = (function (status, callback) {
|
|
82088
|
-
var _useState =
|
|
82245
|
+
var _useState = useState_useSafeState(STEP_NONE),
|
|
82089
82246
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
82090
82247
|
step = _useState2[0],
|
|
82091
82248
|
setStep = _useState2[1];
|
|
@@ -82211,17 +82368,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
82211
82368
|
onLeaveEnd = _ref.onLeaveEnd,
|
|
82212
82369
|
onVisibleChanged = _ref.onVisibleChanged; // Used for outer render usage to avoid `visible: false & status: none` to render nothing
|
|
82213
82370
|
|
|
82214
|
-
var _useState =
|
|
82371
|
+
var _useState = useState_useSafeState(),
|
|
82215
82372
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
82216
82373
|
asyncVisible = _useState2[0],
|
|
82217
82374
|
setAsyncVisible = _useState2[1];
|
|
82218
82375
|
|
|
82219
|
-
var _useState3 =
|
|
82376
|
+
var _useState3 = useState_useSafeState(STATUS_NONE),
|
|
82220
82377
|
_useState4 = slicedToArray_slicedToArray(_useState3, 2),
|
|
82221
82378
|
status = _useState4[0],
|
|
82222
82379
|
setStatus = _useState4[1];
|
|
82223
82380
|
|
|
82224
|
-
var _useState5 =
|
|
82381
|
+
var _useState5 = useState_useSafeState(null),
|
|
82225
82382
|
_useState6 = slicedToArray_slicedToArray(_useState5, 2),
|
|
82226
82383
|
style = _useState6[0],
|
|
82227
82384
|
setStyle = _useState6[1];
|
|
@@ -84549,7 +84706,7 @@ RcAlign.displayName = 'Align';
|
|
|
84549
84706
|
|
|
84550
84707
|
var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
|
|
84551
84708
|
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
|
84552
|
-
var _useState =
|
|
84709
|
+
var _useState = useState_useSafeState(null),
|
|
84553
84710
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
84554
84711
|
status = _useState2[0],
|
|
84555
84712
|
setInternalStatus = _useState2[1];
|
|
@@ -90152,7 +90309,7 @@ Item.displayName = 'Item';
|
|
|
90152
90309
|
*/
|
|
90153
90310
|
|
|
90154
90311
|
function useBatchFrameState() {
|
|
90155
|
-
var _useState =
|
|
90312
|
+
var _useState = useState_useSafeState({}),
|
|
90156
90313
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
90157
90314
|
forceUpdate = _useState2[1];
|
|
90158
90315
|
|
|
@@ -92582,9 +92739,6 @@ function Divider_Divider(_ref) {
|
|
|
92582
92739
|
|
|
92583
92740
|
|
|
92584
92741
|
|
|
92585
|
-
/** @private Only used for antd internal. Do not use in your production. */
|
|
92586
|
-
|
|
92587
|
-
var es_useFullPath = useFullPath;
|
|
92588
92742
|
|
|
92589
92743
|
var ExportMenu = es_Menu;
|
|
92590
92744
|
ExportMenu.Item = es_MenuItem;
|
|
@@ -94542,7 +94696,7 @@ function SubMenu_SubMenu(props) {
|
|
|
94542
94696
|
var context = external_React_.useContext(menu_MenuContext);
|
|
94543
94697
|
var prefixCls = context.prefixCls,
|
|
94544
94698
|
inlineCollapsed = context.inlineCollapsed;
|
|
94545
|
-
var parentPath =
|
|
94699
|
+
var parentPath = useFullPath();
|
|
94546
94700
|
var titleNode;
|
|
94547
94701
|
|
|
94548
94702
|
if (!icon) {
|
|
@@ -97094,17 +97248,17 @@ function BaseProList(props) {
|
|
|
97094
97248
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
97095
97249
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
97096
97250
|
var version_version = {
|
|
97097
|
-
"@ant-design/pro-card": "2.0.
|
|
97098
|
-
"@ant-design/pro-components": "2.3.
|
|
97099
|
-
"@ant-design/pro-descriptions": "2.0.
|
|
97100
|
-
"@ant-design/pro-field": "2.0.
|
|
97101
|
-
"@ant-design/pro-form": "2.0.
|
|
97102
|
-
"@ant-design/pro-layout": "7.0.
|
|
97103
|
-
"@ant-design/pro-list": "2.0.
|
|
97104
|
-
"@ant-design/pro-provider": "2.0.
|
|
97105
|
-
"@ant-design/pro-skeleton": "2.0.
|
|
97106
|
-
"@ant-design/pro-table": "3.0.
|
|
97107
|
-
"@ant-design/pro-utils": "2.0.
|
|
97251
|
+
"@ant-design/pro-card": "2.0.5",
|
|
97252
|
+
"@ant-design/pro-components": "2.3.7",
|
|
97253
|
+
"@ant-design/pro-descriptions": "2.0.6",
|
|
97254
|
+
"@ant-design/pro-field": "2.0.6",
|
|
97255
|
+
"@ant-design/pro-form": "2.0.6",
|
|
97256
|
+
"@ant-design/pro-layout": "7.0.5",
|
|
97257
|
+
"@ant-design/pro-list": "2.0.6",
|
|
97258
|
+
"@ant-design/pro-provider": "2.0.3",
|
|
97259
|
+
"@ant-design/pro-skeleton": "2.0.3",
|
|
97260
|
+
"@ant-design/pro-table": "3.0.6",
|
|
97261
|
+
"@ant-design/pro-utils": "2.0.4"
|
|
97108
97262
|
};
|
|
97109
97263
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
97110
97264
|
|