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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.240",
3
+ "version": "1.3.242",
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,
@@ -15,7 +15,7 @@ export default function UIButton(props: ChildType) {
15
15
  let label = scope.getLabel();
16
16
  let icon = scope.getPart('icon');
17
17
 
18
- //ajuste align v4
18
+ //ajuste align v5
19
19
  if (!color) color = 'primaryLight';
20
20
 
21
21
  const styles: any = {