react-crud-mobile 1.3.240 → 1.3.242

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.
@@ -382,7 +382,7 @@ function UIButton(props) {
382
382
  var color = element.color;
383
383
  var label = scope.getLabel();
384
384
  var icon = scope.getPart('icon');
385
- //ajuste align v4
385
+ //ajuste align v5
386
386
  if (!color) color = 'primaryLight';
387
387
  var styles = {
388
388
  buttonLabel: {
@@ -1808,7 +1808,9 @@ var styles$a = /*#__PURE__*/StyleSheet.create({
1808
1808
 
1809
1809
  var CrudContext = /*#__PURE__*/createContext({});
1810
1810
  function UIElement(props) {
1811
- var _original$list, _original$load;
1811
+ var _original$list,
1812
+ _original$load,
1813
+ _this = this;
1812
1814
  var ctx = useContext(CrudContext);
1813
1815
  var theme = Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1814
1816
  var crud = Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
@@ -2249,10 +2251,14 @@ function UIElement(props) {
2249
2251
  def.search = crud;
2250
2252
  }
2251
2253
  var crudData = crud.data;
2254
+ var eventData = Utils.nvl(event.data, event.send);
2255
+ if (typeof eventData === 'function') {
2256
+ eventData = eventData.call(_this, args);
2257
+ }
2252
2258
  if (event.send === false || event.data === false) {
2253
2259
  crudData = {};
2254
2260
  }
2255
- var data = Utils.nvl(args.item, rowItem, event.data, crudData, {});
2261
+ var data = Utils.nvl(eventData, args.item, rowItem, crudData, {});
2256
2262
  var d = CrudUtils.create('dialog', _extends({
2257
2263
  parent: crud,
2258
2264
  root: crud,