react-crud-mobile 1.3.232 → 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.
@@ -1011,6 +1011,7 @@ function UIList(props) {
1011
1011
  }) == null ? void 0 : _repeat$list[original.type];
1012
1012
  var add = reactCrudUtils.ComponentUtils.getDefine(props, 'add');
1013
1013
  var hideAddWhenEmpty = original.hideAddWhenEmpty;
1014
+ var hideEmpty = original.hideEmpty;
1014
1015
  //v2
1015
1016
  var getStyle = function getStyle(key, extra) {
1016
1017
  return scope.getStyle(key, _extends({}, extra, styles[key]));
@@ -1033,7 +1034,6 @@ function UIList(props) {
1033
1034
  scope.updateIndex = ++index;
1034
1035
  setIndex(index);
1035
1036
  };
1036
- var keyData = scope.key('data');
1037
1037
  var items = reactCrudUtils.Utils.call(function () {
1038
1038
  var _original$list;
1039
1039
  var list = reactCrudUtils.Utils.nvl(scope.getItems(), []);
@@ -1102,6 +1102,10 @@ function UIList(props) {
1102
1102
  })]
1103
1103
  });
1104
1104
  };
1105
+ var items = reactCrudUtils.Utils.nvl(scope.getItems(), []);
1106
+ if (hideEmpty && reactCrudUtils.Utils.isEmpty(items)) {
1107
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
1108
+ }
1105
1109
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1106
1110
  children: [original.search !== false && /*#__PURE__*/jsxRuntime.jsx(UI.Text, {
1107
1111
  placeholder: "Pesquisar...",