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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.241",
3
+ "version": "1.3.243",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -646,12 +646,17 @@ export default function UIElement(props: ElementType) {
646
646
  }
647
647
 
648
648
  let crudData = crud.data;
649
+ let eventData = Utils.nvl(event.data, event.send);
650
+
651
+ if (typeof eventData === 'function') {
652
+ eventData = eventData.call(this, args);
653
+ }
649
654
 
650
655
  if (event.send === false || event.data === false) {
651
656
  crudData = {};
652
657
  }
653
658
 
654
- let data = Utils.nvl(args.item, rowItem, event.data, crudData, {});
659
+ let data = Utils.nvl(eventData, args.item, rowItem, crudData, {});
655
660
 
656
661
  let d = CrudUtils.create('dialog', {
657
662
  parent: crud,
@@ -695,6 +700,7 @@ export default function UIElement(props: ElementType) {
695
700
  scope: dialogScope,
696
701
  close,
697
702
  props: event.props,
703
+ debug: event.debug,
698
704
  };
699
705
 
700
706
  main.dialog = dialog;
@@ -63,6 +63,8 @@ export default function UIModal({
63
63
  let curr = scope.currentDialog?.crud;
64
64
  let main = ViewUtils.getCrud('view');
65
65
 
66
+ if (dialog?.debug) console.log(curr);
67
+
66
68
  if (!curr) {
67
69
  return <></>;
68
70
  }