ywana-core8 0.0.590 → 0.0.591

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.umd.js CHANGED
@@ -202,8 +202,7 @@
202
202
  var className = props.className,
203
203
  _props$sections = props.sections,
204
204
  sections = _props$sections === void 0 ? [] : _props$sections,
205
- onCheck = props.onCheck,
206
- children = props.children;
205
+ onCheck = props.onCheck;
207
206
 
208
207
  var _useState = React.useState([]),
209
208
  openSections = _useState[0],
@@ -255,7 +254,7 @@
255
254
  onCheck: function onCheck() {
256
255
  return check(index);
257
256
  }
258
- }), section.children, children);
257
+ }), section.children);
259
258
  }));
260
259
  };
261
260
  /**
@@ -6402,7 +6401,8 @@
6402
6401
  setPageContext = _useContext[1];
6403
6402
 
6404
6403
  var context = TableContext$2(url, field, host, urlQuery, params);
6405
- var selected = pageContext.selected;
6404
+ var all = pageContext.all,
6405
+ selected = pageContext.selected;
6406
6406
  var timer = React.useRef(null);
6407
6407
 
6408
6408
  var _useState = React.useState(selected),
@@ -6529,9 +6529,11 @@
6529
6529
  });
6530
6530
  }
6531
6531
 
6532
+ var total = all ? all.length : 0;
6533
+ var title2 = "[" + total + "] " + title;
6532
6534
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement(Header, {
6533
6535
  className: "table-page",
6534
- title: /*#__PURE__*/React__default["default"].createElement(Text, null, title)
6536
+ title: /*#__PURE__*/React__default["default"].createElement(Text, null, title2)
6535
6537
  }, canAdd ? /*#__PURE__*/React__default["default"].createElement(Button, {
6536
6538
  icon: "add",
6537
6539
  label: "A\xF1adir",