ywana-core8 0.0.59 → 0.0.63
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.modern.js
CHANGED
@@ -4249,7 +4249,7 @@ var TableEditor = function TableEditor(props) {
|
|
4249
4249
|
setPageContext(Object.assign({}, pageContext));
|
4250
4250
|
}
|
4251
4251
|
|
4252
|
-
function run(action) {
|
4252
|
+
function run(action, item) {
|
4253
4253
|
action.action(item.id, pageContext, function () {
|
4254
4254
|
try {
|
4255
4255
|
return Promise.resolve(pageContext.load()).then(function () {
|
@@ -4291,12 +4291,19 @@ var TableEditor = function TableEditor(props) {
|
|
4291
4291
|
}),
|
4292
4292
|
rows: groups[groupName].map(function (item) {
|
4293
4293
|
item.actions = actions ? actions.map(function (_action) {
|
4294
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
4294
|
+
return _action.filter ? _action.filter(item) ? /*#__PURE__*/React.createElement(Icon, {
|
4295
4295
|
icon: _action.icon,
|
4296
4296
|
clickable: true,
|
4297
4297
|
size: "small",
|
4298
4298
|
action: function action() {
|
4299
|
-
return run(_action);
|
4299
|
+
return run(_action, item);
|
4300
|
+
}
|
4301
|
+
}) : 'x' : /*#__PURE__*/React.createElement(Icon, {
|
4302
|
+
icon: _action.icon,
|
4303
|
+
clickable: true,
|
4304
|
+
size: "small",
|
4305
|
+
action: function action() {
|
4306
|
+
return run(_action, item);
|
4300
4307
|
}
|
4301
4308
|
});
|
4302
4309
|
}) : [];
|