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.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +16 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +10 -1
package/dist/index.modern.js
CHANGED
@@ -4118,7 +4118,8 @@ var TablePage = function TablePage(props) {
|
|
4118
4118
|
schema = props.schema,
|
4119
4119
|
url = props.url,
|
4120
4120
|
field = props.field,
|
4121
|
-
actions = props.actions,
|
4121
|
+
_props$actions = props.actions,
|
4122
|
+
actions = _props$actions === void 0 ? [] : _props$actions,
|
4122
4123
|
_props$dev = props.dev,
|
4123
4124
|
dev = _props$dev === void 0 ? false : _props$dev,
|
4124
4125
|
tableActions = props.tableActions,
|
@@ -4233,6 +4234,17 @@ var TablePage = function TablePage(props) {
|
|
4233
4234
|
return null;
|
4234
4235
|
}
|
4235
4236
|
|
4237
|
+
function renderActions() {
|
4238
|
+
return actions.map(function (element) {
|
4239
|
+
var action = function action() {
|
4240
|
+
return element.props.action(ctx);
|
4241
|
+
};
|
4242
|
+
|
4243
|
+
var clone = React.cloneElement(element, [action]);
|
4244
|
+
return clone;
|
4245
|
+
});
|
4246
|
+
}
|
4247
|
+
|
4236
4248
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
4237
4249
|
className: "table-page",
|
4238
4250
|
title: /*#__PURE__*/React.createElement(Text, null, title)
|
@@ -4246,7 +4258,7 @@ var TablePage = function TablePage(props) {
|
|
4246
4258
|
}, /*#__PURE__*/React.createElement(MenuItem, {
|
4247
4259
|
label: "Cargar Escenario 1",
|
4248
4260
|
onSelect: playScenario
|
4249
|
-
})) : null, actions), /*#__PURE__*/React.createElement("menu", {
|
4261
|
+
})) : null, actions, renderActions()), /*#__PURE__*/React.createElement("menu", {
|
4250
4262
|
className: "table-page"
|
4251
4263
|
}, canQuery ? /*#__PURE__*/React.createElement(TableQueries, {
|
4252
4264
|
schema: schema
|
@@ -4298,8 +4310,8 @@ var TableRowEditor = function TableRowEditor(props) {
|
|
4298
4310
|
|
4299
4311
|
|
4300
4312
|
var TableSelector = function TableSelector(props) {
|
4301
|
-
var _props$
|
4302
|
-
actions = _props$
|
4313
|
+
var _props$actions2 = props.actions,
|
4314
|
+
actions = _props$actions2 === void 0 ? [] : _props$actions2;
|
4303
4315
|
|
4304
4316
|
var _useContext2 = useContext(PageContext),
|
4305
4317
|
pageContext = _useContext2[0],
|