@ant-design/pro-components 2.3.11 → 2.3.12
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 +35 -19
- package/dist/components.min.js +1 -1
- package/es/version.js +2 -2
- package/package.json +9 -9
package/dist/components.js
CHANGED
|
@@ -24842,6 +24842,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24842
24842
|
"FilterDropdown": function() { return /* reexport */ FilterDropdown; },
|
|
24843
24843
|
"FooterToolbar": function() { return /* reexport */ FooterToolbar; },
|
|
24844
24844
|
"FormItemProvide": function() { return /* reexport */ FormItemProvide; },
|
|
24845
|
+
"FormListContext": function() { return /* reexport */ FormListContext; },
|
|
24845
24846
|
"GridContent": function() { return /* reexport */ GridContent; },
|
|
24846
24847
|
"Group": function() { return /* reexport */ components_Group; },
|
|
24847
24848
|
"IndexColumn": function() { return /* reexport */ components_IndexColumn; },
|
|
@@ -34649,22 +34650,30 @@ function editableRowByKey(keyProps, action) {
|
|
|
34649
34650
|
var kvSource = [];
|
|
34650
34651
|
|
|
34651
34652
|
var fillNewRecord = function fillNewRecord() {
|
|
34653
|
+
var fillChildren = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
34652
34654
|
map.forEach(function (value) {
|
|
34653
34655
|
if (value.map_row_parentKey && !value.map_row_key) {
|
|
34654
34656
|
var map_row_parentKey = value.map_row_parentKey,
|
|
34655
34657
|
rest = objectWithoutProperties_objectWithoutProperties(value, useEditableArray_excluded);
|
|
34656
34658
|
|
|
34657
|
-
|
|
34659
|
+
if (!kvArrayMap.has(map_row_parentKey)) {
|
|
34660
|
+
kvArrayMap.set(map_row_parentKey, []);
|
|
34661
|
+
}
|
|
34662
|
+
|
|
34663
|
+
if (fillChildren) {
|
|
34664
|
+
var _kvArrayMap$get;
|
|
34665
|
+
|
|
34666
|
+
(_kvArrayMap$get = kvArrayMap.get(map_row_parentKey)) === null || _kvArrayMap$get === void 0 ? void 0 : _kvArrayMap$get.push(rest);
|
|
34667
|
+
}
|
|
34658
34668
|
}
|
|
34659
34669
|
});
|
|
34660
34670
|
};
|
|
34661
34671
|
|
|
34662
|
-
|
|
34663
|
-
fillNewRecord();
|
|
34664
|
-
}
|
|
34665
|
-
|
|
34672
|
+
fillNewRecord(action === 'top');
|
|
34666
34673
|
map.forEach(function (value) {
|
|
34667
34674
|
if (value.map_row_parentKey && value.map_row_key) {
|
|
34675
|
+
var _kvArrayMap$get2;
|
|
34676
|
+
|
|
34668
34677
|
var map_row_parentKey = value.map_row_parentKey,
|
|
34669
34678
|
map_row_key = value.map_row_key,
|
|
34670
34679
|
rest = objectWithoutProperties_objectWithoutProperties(value, useEditableArray_excluded2);
|
|
@@ -34673,14 +34682,14 @@ function editableRowByKey(keyProps, action) {
|
|
|
34673
34682
|
rest[childrenColumnName] = kvArrayMap.get(map_row_key);
|
|
34674
34683
|
}
|
|
34675
34684
|
|
|
34676
|
-
|
|
34685
|
+
if (!kvArrayMap.has(map_row_parentKey)) {
|
|
34686
|
+
kvArrayMap.set(map_row_parentKey, []);
|
|
34687
|
+
}
|
|
34688
|
+
|
|
34689
|
+
(_kvArrayMap$get2 = kvArrayMap.get(map_row_parentKey)) === null || _kvArrayMap$get2 === void 0 ? void 0 : _kvArrayMap$get2.push(rest);
|
|
34677
34690
|
}
|
|
34678
34691
|
});
|
|
34679
|
-
|
|
34680
|
-
if (action === 'update') {
|
|
34681
|
-
fillNewRecord();
|
|
34682
|
-
}
|
|
34683
|
-
|
|
34692
|
+
fillNewRecord(action === 'update');
|
|
34684
34693
|
map.forEach(function (value) {
|
|
34685
34694
|
if (!value.map_row_parentKey) {
|
|
34686
34695
|
var map_row_key = value.map_row_key,
|
|
@@ -37318,7 +37327,7 @@ var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref
|
|
|
37318
37327
|
colSpanStyle = _getColSpanStyle.colSpanStyle;
|
|
37319
37328
|
|
|
37320
37329
|
var columnClassName = classnames_default()(["".concat(prefixCls, "-col")], hashId, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-split-vertical"), split === 'vertical' && index !== childrenArray.length - 1), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-split-horizontal"), split === 'horizontal' && index !== childrenArray.length - 1), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-col-").concat(span), typeof span === 'number' && span >= 0 && span <= 24), _classNames));
|
|
37321
|
-
|
|
37330
|
+
var wrappedElement = wrapSSR((0,jsx_runtime.jsx)("div", {
|
|
37322
37331
|
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, colSpanStyle), getStyle(horizonalGutter > 0, {
|
|
37323
37332
|
paddingInlineEnd: horizonalGutter / 2,
|
|
37324
37333
|
paddingInlineStart: horizonalGutter / 2
|
|
@@ -37328,7 +37337,10 @@ var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref
|
|
|
37328
37337
|
})),
|
|
37329
37338
|
className: columnClassName,
|
|
37330
37339
|
children: /*#__PURE__*/external_React_default().cloneElement(element)
|
|
37331
|
-
}
|
|
37340
|
+
}));
|
|
37341
|
+
return /*#__PURE__*/external_React_default().cloneElement(wrappedElement, {
|
|
37342
|
+
key: "pro-card-col-".concat((element === null || element === void 0 ? void 0 : element.key) || index)
|
|
37343
|
+
});
|
|
37332
37344
|
}
|
|
37333
37345
|
|
|
37334
37346
|
return element;
|
|
@@ -48630,6 +48642,8 @@ var Segmented_excluded = ["mode", "render", "renderFormItem", "fieldProps", "emp
|
|
|
48630
48642
|
|
|
48631
48643
|
|
|
48632
48644
|
|
|
48645
|
+
|
|
48646
|
+
|
|
48633
48647
|
/**
|
|
48634
48648
|
* Segmented https://ant.design/components/segmented-cn/
|
|
48635
48649
|
*
|
|
@@ -58250,6 +58264,7 @@ var ProFormGroup = ProForm.Group;
|
|
|
58250
58264
|
|
|
58251
58265
|
|
|
58252
58266
|
|
|
58267
|
+
|
|
58253
58268
|
/* harmony default export */ var form_es = (ProForm);
|
|
58254
58269
|
;// CONCATENATED MODULE: ./node_modules/use-media-antd-query/es/useMediaQuery.js
|
|
58255
58270
|
function useMediaQuery_slicedToArray(arr, i) {
|
|
@@ -68108,7 +68123,7 @@ var renderSiderMenu = function renderSiderMenu(props, matchMenuKeys) {
|
|
|
68108
68123
|
|
|
68109
68124
|
menuData = ((_props$menuData = props.menuData) === null || _props$menuData === void 0 ? void 0 : (_props$menuData$find = _props$menuData.find(function (item) {
|
|
68110
68125
|
return item.key === key;
|
|
68111
|
-
})) === null || _props$menuData$find === void 0 ? void 0 : _props$menuData$find.
|
|
68126
|
+
})) === null || _props$menuData$find === void 0 ? void 0 : _props$menuData$find.children) || [];
|
|
68112
68127
|
} else {
|
|
68113
68128
|
menuData = [];
|
|
68114
68129
|
}
|
|
@@ -68271,7 +68286,7 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
68271
68286
|
case 0:
|
|
68272
68287
|
setMenuLoading(true);
|
|
68273
68288
|
_context.next = 3;
|
|
68274
|
-
return menu === null || menu === void 0 ? void 0 : (_menu$request = menu.request) === null || _menu$request === void 0 ? void 0 : _menu$request.call(menu, params, (route === null || route === void 0 ? void 0 : route.routes) || []);
|
|
68289
|
+
return menu === null || menu === void 0 ? void 0 : (_menu$request = menu.request) === null || _menu$request === void 0 ? void 0 : _menu$request.call(menu, params, (route === null || route === void 0 ? void 0 : route.children) || (route === null || route === void 0 ? void 0 : route.routes) || []);
|
|
68275
68290
|
|
|
68276
68291
|
case 3:
|
|
68277
68292
|
msg = _context.sent;
|
|
@@ -68306,8 +68321,8 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
68306
68321
|
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
68307
68322
|
}, []);
|
|
68308
68323
|
var menuInfoData = (0,external_React_.useMemo)(function () {
|
|
68309
|
-
return getMenuData(data || (route === null || route === void 0 ? void 0 : route.routes) || [], menu, formatMessage, menuDataRender);
|
|
68310
|
-
}, [formatMessage, menu, menuDataRender, data, route === null || route === void 0 ? void 0 : route.routes]);
|
|
68324
|
+
return getMenuData(data || (route === null || route === void 0 ? void 0 : route.children) || (route === null || route === void 0 ? void 0 : route.routes) || [], menu, formatMessage, menuDataRender);
|
|
68325
|
+
}, [formatMessage, menu, menuDataRender, data, route === null || route === void 0 ? void 0 : route.children, route === null || route === void 0 ? void 0 : route.routes]);
|
|
68311
68326
|
|
|
68312
68327
|
var _ref6 = menuInfoData || {},
|
|
68313
68328
|
_ref6$breadcrumb = _ref6.breadcrumb,
|
|
@@ -73982,6 +73997,7 @@ function columnRender(_ref) {
|
|
|
73982
73997
|
if (mode === 'edit') {
|
|
73983
73998
|
if (columnProps.valueType === 'option') {
|
|
73984
73999
|
return (0,jsx_runtime.jsx)(external_antd_.Space, {
|
|
74000
|
+
size: 16,
|
|
73985
74001
|
children: editableUtils.actionRender(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rowData), {}, {
|
|
73986
74002
|
index: columnProps.index || index
|
|
73987
74003
|
}))
|
|
@@ -97516,11 +97532,11 @@ function BaseProList(props) {
|
|
|
97516
97532
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
97517
97533
|
var version_version = {
|
|
97518
97534
|
"@ant-design/pro-card": "2.0.8",
|
|
97519
|
-
"@ant-design/pro-components": "2.3.
|
|
97535
|
+
"@ant-design/pro-components": "2.3.11",
|
|
97520
97536
|
"@ant-design/pro-descriptions": "2.0.9",
|
|
97521
97537
|
"@ant-design/pro-field": "2.1.2",
|
|
97522
97538
|
"@ant-design/pro-form": "2.2.0",
|
|
97523
|
-
"@ant-design/pro-layout": "7.1.
|
|
97539
|
+
"@ant-design/pro-layout": "7.1.1",
|
|
97524
97540
|
"@ant-design/pro-list": "2.0.9",
|
|
97525
97541
|
"@ant-design/pro-provider": "2.0.3",
|
|
97526
97542
|
"@ant-design/pro-skeleton": "2.0.3",
|