ywana-core8 0.0.161 → 0.0.162

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
@@ -4122,7 +4122,8 @@
4122
4122
  schema = props.schema,
4123
4123
  url = props.url,
4124
4124
  field = props.field,
4125
- actions = props.actions,
4125
+ _props$actions = props.actions,
4126
+ actions = _props$actions === void 0 ? [] : _props$actions,
4126
4127
  _props$dev = props.dev,
4127
4128
  dev = _props$dev === void 0 ? false : _props$dev,
4128
4129
  tableActions = props.tableActions,
@@ -4237,6 +4238,17 @@
4237
4238
  return null;
4238
4239
  }
4239
4240
 
4241
+ function renderActions() {
4242
+ return actions.map(function (element) {
4243
+ var action = function action() {
4244
+ return element.props.action(ctx);
4245
+ };
4246
+
4247
+ var clone = React__default["default"].cloneElement(element, [action]);
4248
+ return clone;
4249
+ });
4250
+ }
4251
+
4240
4252
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement(Header, {
4241
4253
  className: "table-page",
4242
4254
  title: /*#__PURE__*/React__default["default"].createElement(Text, null, title)
@@ -4250,7 +4262,7 @@
4250
4262
  }, /*#__PURE__*/React__default["default"].createElement(MenuItem, {
4251
4263
  label: "Cargar Escenario 1",
4252
4264
  onSelect: playScenario
4253
- })) : null, actions), /*#__PURE__*/React__default["default"].createElement("menu", {
4265
+ })) : null, actions, renderActions()), /*#__PURE__*/React__default["default"].createElement("menu", {
4254
4266
  className: "table-page"
4255
4267
  }, canQuery ? /*#__PURE__*/React__default["default"].createElement(TableQueries, {
4256
4268
  schema: schema
@@ -4302,8 +4314,8 @@
4302
4314
 
4303
4315
 
4304
4316
  var TableSelector = function TableSelector(props) {
4305
- var _props$actions = props.actions,
4306
- actions = _props$actions === void 0 ? [] : _props$actions;
4317
+ var _props$actions2 = props.actions,
4318
+ actions = _props$actions2 === void 0 ? [] : _props$actions2;
4307
4319
 
4308
4320
  var _useContext2 = React.useContext(PageContext),
4309
4321
  pageContext = _useContext2[0],