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