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/dist/react-crud-mobile.cjs.development.js +8 -1
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +8 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +10 -1
package/package.json
CHANGED
@@ -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,
|