react-crud-mobile 1.3.231 → 1.3.233
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 +5 -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 +5 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIList.tsx +7 -2
@@ -1002,6 +1002,7 @@ function UIList(props) {
|
|
1002
1002
|
}) == null ? void 0 : _repeat$list[original.type];
|
1003
1003
|
var add = ComponentUtils.getDefine(props, 'add');
|
1004
1004
|
var hideAddWhenEmpty = original.hideAddWhenEmpty;
|
1005
|
+
var hideEmpty = original.hideEmpty;
|
1005
1006
|
//v2
|
1006
1007
|
var getStyle = function getStyle(key, extra) {
|
1007
1008
|
return scope.getStyle(key, _extends({}, extra, styles[key]));
|
@@ -1024,7 +1025,6 @@ function UIList(props) {
|
|
1024
1025
|
scope.updateIndex = ++index;
|
1025
1026
|
setIndex(index);
|
1026
1027
|
};
|
1027
|
-
var keyData = scope.key('data');
|
1028
1028
|
var items = Utils.call(function () {
|
1029
1029
|
var _original$list;
|
1030
1030
|
var list = Utils.nvl(scope.getItems(), []);
|
@@ -1093,6 +1093,10 @@ function UIList(props) {
|
|
1093
1093
|
})]
|
1094
1094
|
});
|
1095
1095
|
};
|
1096
|
+
var items = Utils.nvl(scope.getItems(), []);
|
1097
|
+
if (hideEmpty && Utils.isEmpty(items)) {
|
1098
|
+
return /*#__PURE__*/jsx(Fragment, {});
|
1099
|
+
}
|
1096
1100
|
return /*#__PURE__*/jsxs(Fragment, {
|
1097
1101
|
children: [original.search !== false && /*#__PURE__*/jsx(UI.Text, {
|
1098
1102
|
placeholder: "Pesquisar...",
|