react-crud-mobile 1.3.241 → 1.3.243

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.
@@ -1412,6 +1412,7 @@ function UIModal(_ref) {
1412
1412
  };
1413
1413
  var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1414
1414
  var main = reactCrudUtils.ViewUtils.getCrud('view');
1415
+ if (dialog != null && dialog.debug) console.log(curr);
1415
1416
  if (!curr) {
1416
1417
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
1417
1418
  }
@@ -1817,7 +1818,9 @@ var styles$a = /*#__PURE__*/reactNative.StyleSheet.create({
1817
1818
 
1818
1819
  var CrudContext = /*#__PURE__*/React.createContext({});
1819
1820
  function UIElement(props) {
1820
- var _original$list, _original$load;
1821
+ var _original$list,
1822
+ _original$load,
1823
+ _this = this;
1821
1824
  var ctx = React.useContext(CrudContext);
1822
1825
  var theme = reactCrudUtils.Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1823
1826
  var crud = reactCrudUtils.Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
@@ -2258,10 +2261,14 @@ function UIElement(props) {
2258
2261
  def.search = crud;
2259
2262
  }
2260
2263
  var crudData = crud.data;
2264
+ var eventData = reactCrudUtils.Utils.nvl(event.data, event.send);
2265
+ if (typeof eventData === 'function') {
2266
+ eventData = eventData.call(_this, args);
2267
+ }
2261
2268
  if (event.send === false || event.data === false) {
2262
2269
  crudData = {};
2263
2270
  }
2264
- var data = reactCrudUtils.Utils.nvl(args.item, rowItem, event.data, crudData, {});
2271
+ var data = reactCrudUtils.Utils.nvl(eventData, args.item, rowItem, crudData, {});
2265
2272
  var d = reactCrudUtils.CrudUtils.create('dialog', _extends({
2266
2273
  parent: crud,
2267
2274
  root: crud,
@@ -2295,7 +2302,8 @@ function UIElement(props) {
2295
2302
  component: component,
2296
2303
  scope: dialogScope,
2297
2304
  close: close,
2298
- props: event.props
2305
+ props: event.props,
2306
+ debug: event.debug
2299
2307
  };
2300
2308
  main.dialog = dialog;
2301
2309
  scope.toggleDialog(true);