react-crud-mobile 1.3.234 → 1.3.236

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.234",
3
+ "version": "1.3.236",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -581,6 +581,15 @@ export default function UIElement(props: ElementType) {
581
581
  let Card = (props: any) => {
582
582
  let isCard = scope.is('type|layout', 'card');
583
583
 
584
+ if (scope.isType('list')) {
585
+ let empty = scope.getPart('empty', null, undefined);
586
+ let items = scope.getItems();
587
+
588
+ if (empty === false && Utils.isEmpty(items)) {
589
+ isCard = false;
590
+ }
591
+ }
592
+
584
593
  if (isCard) {
585
594
  let box = {
586
595
  ...getStyle('box', { ...boxStyle.box, alignSelf: 'stretch' }),
@@ -636,7 +645,7 @@ export default function UIElement(props: ElementType) {
636
645
  def.search = crud;
637
646
  }
638
647
 
639
- let data = Utils.nvl(args.item, rowItem, {});
648
+ let data = Utils.nvl(args.item, rowItem, event.data, crud.data, {});
640
649
 
641
650
  let d = CrudUtils.create('dialog', {
642
651
  parent: crud,