ywana-core8 0.0.234 → 0.0.238
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/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +6 -3
package/dist/index.cjs
CHANGED
@@ -4833,13 +4833,15 @@ var TableEditor = function TableEditor(props) {
|
|
4833
4833
|
|
4834
4834
|
function renderGroupLabel(groupName) {
|
4835
4835
|
var grouper = schema[groupBy];
|
4836
|
+
if (!groupName || !grouper) return "";
|
4836
4837
|
|
4837
4838
|
if (grouper.options) {
|
4838
4839
|
var options = CHECK['isFunction'](grouper.options) ? grouper.options() : grouper.options;
|
4839
4840
|
var option = options.find(function (option) {
|
4840
4841
|
return option.value === groupName;
|
4841
4842
|
});
|
4842
|
-
|
4843
|
+
console.log(groupName, options, option);
|
4844
|
+
return option ? option.label : groupName;
|
4843
4845
|
} else {
|
4844
4846
|
return groupName;
|
4845
4847
|
}
|
@@ -4914,8 +4916,8 @@ var TableEditor = function TableEditor(props) {
|
|
4914
4916
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
4915
4917
|
key: groupName
|
4916
4918
|
}, /*#__PURE__*/React__default["default"].createElement(Header, {
|
4917
|
-
title: groupName
|
4918
|
-
},
|
4919
|
+
title: renderGroupLabel(groupName)
|
4920
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
4919
4921
|
className: "size"
|
4920
4922
|
}, groupSize)), /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
|
4921
4923
|
onRowSelection: select,
|