ywana-core8 0.0.58 → 0.0.62
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 +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +10 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +6 -2
package/dist/index.cjs
CHANGED
@@ -4255,7 +4255,7 @@ var TableEditor = function TableEditor(props) {
|
|
4255
4255
|
setPageContext(Object.assign({}, pageContext));
|
4256
4256
|
}
|
4257
4257
|
|
4258
|
-
function run(action) {
|
4258
|
+
function run(action, item) {
|
4259
4259
|
action.action(item.id, pageContext, function () {
|
4260
4260
|
try {
|
4261
4261
|
return Promise.resolve(pageContext.load()).then(function () {
|
@@ -4297,12 +4297,19 @@ var TableEditor = function TableEditor(props) {
|
|
4297
4297
|
}),
|
4298
4298
|
rows: groups[groupName].map(function (item) {
|
4299
4299
|
item.actions = actions ? actions.map(function (_action) {
|
4300
|
-
|
4300
|
+
_action.filter ? _action.filter(item) ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
4301
4301
|
icon: _action.icon,
|
4302
4302
|
clickable: true,
|
4303
4303
|
size: "small",
|
4304
4304
|
action: function action() {
|
4305
|
-
return run(_action);
|
4305
|
+
return run(_action, item);
|
4306
|
+
}
|
4307
|
+
}) : 'x' : /*#__PURE__*/React__default["default"].createElement(Icon, {
|
4308
|
+
icon: _action.icon,
|
4309
|
+
clickable: true,
|
4310
|
+
size: "small",
|
4311
|
+
action: function action() {
|
4312
|
+
return run(_action, item);
|
4306
4313
|
}
|
4307
4314
|
});
|
4308
4315
|
}) : [];
|