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.
@@ -391,7 +391,7 @@ function UIButton(props) {
391
391
  var color = element.color;
392
392
  var label = scope.getLabel();
393
393
  var icon = scope.getPart('icon');
394
- //ajuste align v4
394
+ //ajuste align v5
395
395
  if (!color) color = 'primaryLight';
396
396
  var styles = {
397
397
  buttonLabel: {
@@ -1817,7 +1817,9 @@ var styles$a = /*#__PURE__*/reactNative.StyleSheet.create({
1817
1817
 
1818
1818
  var CrudContext = /*#__PURE__*/React.createContext({});
1819
1819
  function UIElement(props) {
1820
- var _original$list, _original$load;
1820
+ var _original$list,
1821
+ _original$load,
1822
+ _this = this;
1821
1823
  var ctx = React.useContext(CrudContext);
1822
1824
  var theme = reactCrudUtils.Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1823
1825
  var crud = reactCrudUtils.Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
@@ -2258,10 +2260,14 @@ function UIElement(props) {
2258
2260
  def.search = crud;
2259
2261
  }
2260
2262
  var crudData = crud.data;
2263
+ var eventData = reactCrudUtils.Utils.nvl(event.data, event.send);
2264
+ if (typeof eventData === 'function') {
2265
+ eventData = eventData.call(_this, args);
2266
+ }
2261
2267
  if (event.send === false || event.data === false) {
2262
2268
  crudData = {};
2263
2269
  }
2264
- var data = reactCrudUtils.Utils.nvl(args.item, rowItem, event.data, crudData, {});
2270
+ var data = reactCrudUtils.Utils.nvl(eventData, args.item, rowItem, crudData, {});
2265
2271
  var d = reactCrudUtils.CrudUtils.create('dialog', _extends({
2266
2272
  parent: crud,
2267
2273
  root: crud,