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.
@@ -2202,6 +2202,13 @@ function UIElement(props) {
2202
2202
  };
2203
2203
  var Card = function Card(props) {
2204
2204
  var isCard = scope.is('type|layout', 'card');
2205
+ if (scope.isType('list')) {
2206
+ var empty = scope.getPart('empty', null, undefined);
2207
+ var items = scope.getItems();
2208
+ if (empty === false && reactCrudUtils.Utils.isEmpty(items)) {
2209
+ isCard = false;
2210
+ }
2211
+ }
2205
2212
  if (isCard) {
2206
2213
  var _box = _extends({}, getStyle('box', _extends({}, boxStyle.box, {
2207
2214
  alignSelf: 'stretch'
@@ -2250,7 +2257,7 @@ function UIElement(props) {
2250
2257
  def.parent = crud.parent;
2251
2258
  def.search = crud;
2252
2259
  }
2253
- var data = reactCrudUtils.Utils.nvl(args.item, rowItem, {});
2260
+ var data = reactCrudUtils.Utils.nvl(args.item, rowItem, event.data, crud.data, {});
2254
2261
  var d = reactCrudUtils.CrudUtils.create('dialog', _extends({
2255
2262
  parent: crud,
2256
2263
  root: crud,