ywana-core8 0.0.135 → 0.0.136
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 +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +18 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +18 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +4 -4
package/dist/index.cjs
CHANGED
@@ -4273,7 +4273,6 @@ var TableSelector = function TableSelector(props) {
|
|
4273
4273
|
var rows = all.filter(function (item) {
|
4274
4274
|
return checked.has(item.id);
|
4275
4275
|
});
|
4276
|
-
console.log(count, rows);
|
4277
4276
|
var table = {
|
4278
4277
|
columns: [{
|
4279
4278
|
id: "idMatricula",
|
@@ -4281,11 +4280,22 @@ var TableSelector = function TableSelector(props) {
|
|
4281
4280
|
}],
|
4282
4281
|
rows: rows || []
|
4283
4282
|
};
|
4283
|
+
var buttons = actions.map(function (_ref) {
|
4284
|
+
var label = _ref.label,
|
4285
|
+
_action = _ref.action;
|
4286
|
+
return /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
4287
|
+
label: label,
|
4288
|
+
raised: true,
|
4289
|
+
action: function action() {
|
4290
|
+
return _action(rows);
|
4291
|
+
}
|
4292
|
+
});
|
4293
|
+
});
|
4284
4294
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
4285
4295
|
className: "table-selector"
|
4286
4296
|
}, /*#__PURE__*/React__default["default"].createElement(Header, {
|
4287
4297
|
title: "Selection"
|
4288
|
-
}, count), /*#__PURE__*/React__default["default"].createElement("main", null, /*#__PURE__*/React__default["default"].createElement(DataTable, table)), /*#__PURE__*/React__default["default"].createElement("footer", null,
|
4298
|
+
}, count), /*#__PURE__*/React__default["default"].createElement("main", null, /*#__PURE__*/React__default["default"].createElement(DataTable, table)), /*#__PURE__*/React__default["default"].createElement("footer", null, buttons));
|
4289
4299
|
};
|
4290
4300
|
/**
|
4291
4301
|
* Table Queries
|
@@ -4486,20 +4496,20 @@ var TableEditor = function TableEditor(props) {
|
|
4486
4496
|
}),
|
4487
4497
|
rows: groups[groupName].map(function (item) {
|
4488
4498
|
item.checked = pageContext.checked ? pageContext.checked.has(item.id) : false;
|
4489
|
-
item.actions = actions ? actions.map(function (
|
4490
|
-
return
|
4491
|
-
icon:
|
4499
|
+
item.actions = actions ? actions.map(function (_action2) {
|
4500
|
+
return _action2.filter ? _action2.filter(item) ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
4501
|
+
icon: _action2.icon,
|
4492
4502
|
clickable: true,
|
4493
4503
|
size: "small",
|
4494
4504
|
action: function action() {
|
4495
|
-
return run(
|
4505
|
+
return run(_action2, item);
|
4496
4506
|
}
|
4497
4507
|
}) : null : /*#__PURE__*/React__default["default"].createElement(Icon, {
|
4498
|
-
icon:
|
4508
|
+
icon: _action2.icon,
|
4499
4509
|
clickable: true,
|
4500
4510
|
size: "small",
|
4501
4511
|
action: function action() {
|
4502
|
-
return run(
|
4512
|
+
return run(_action2, item);
|
4503
4513
|
}
|
4504
4514
|
});
|
4505
4515
|
}) : [];
|