react-crud-mobile 1.3.53 → 1.3.55

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.
@@ -7,6 +7,7 @@ import { Ionicons as Ionicons$1, AntDesign, Entypo, EvilIcons, MaterialCommunity
7
7
  import Slider from '@react-native-community/slider';
8
8
  import Toast, { BaseToast, ErrorToast } from 'react-native-toast-message';
9
9
  import DraggableFlatList from 'react-native-draggable-flatlist';
10
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
10
11
  import { SafeAreaProvider, SafeAreaView as SafeAreaView$1 } from 'react-native-safe-area-context';
11
12
 
12
13
  function _extends() {
@@ -1596,8 +1597,6 @@ function UIOrder(props) {
1596
1597
  var crud = scope.crud;
1597
1598
  var original = scope.original;
1598
1599
  var cols = Utils.nvl(scope.getPart('cols', undefined, 1));
1599
- var add = ComponentUtils.getDefine(props, 'add');
1600
- var hideAddWhenEmpty = original.hideAddWhenEmpty;
1601
1600
  var getStyle = function getStyle(key, extra) {
1602
1601
  return scope.getStyle(key, _extends({}, extra, styles$a[key]));
1603
1602
  };
@@ -1641,38 +1640,6 @@ function UIOrder(props) {
1641
1640
  }
1642
1641
  return list;
1643
1642
  });
1644
- var isShowAdd = function isShowAdd() {
1645
- if (!Utils.isEmpty(items)) {
1646
- return true;
1647
- }
1648
- return hideAddWhenEmpty !== true;
1649
- };
1650
- var Empty = function Empty() {
1651
- if (!Utils.isEmpty(items)) {
1652
- return /*#__PURE__*/jsx(Fragment, {});
1653
- }
1654
- var empty = scope.attr('empty', 'Sem registro');
1655
- if (!empty) {
1656
- return /*#__PURE__*/jsx(Fragment, {});
1657
- }
1658
- if (typeof empty === 'string') {
1659
- return /*#__PURE__*/jsx(Text, {
1660
- style: scope.getStyle('empty', {
1661
- flex: 1,
1662
- fontWeight: 500,
1663
- fontSize: 20,
1664
- padding: 10,
1665
- textAlign: 'center',
1666
- justifyContent: 'center',
1667
- alignItems: 'center'
1668
- }),
1669
- children: empty
1670
- });
1671
- }
1672
- return /*#__PURE__*/jsx(Fragment, {
1673
- children: empty
1674
- });
1675
- };
1676
1643
  var renderItem = function renderItem(_ref) {
1677
1644
  var item = _ref.item,
1678
1645
  drag = _ref.drag,
@@ -1689,9 +1656,9 @@ function UIOrder(props) {
1689
1656
  })
1690
1657
  });
1691
1658
  };
1692
- return /*#__PURE__*/jsxs(View, {
1659
+ return /*#__PURE__*/jsx(GestureHandlerRootView, {
1693
1660
  style: getContainerStyle(),
1694
- children: [/*#__PURE__*/jsx(Empty, {}), /*#__PURE__*/jsx(DraggableFlatList, {
1661
+ children: /*#__PURE__*/jsx(DraggableFlatList, {
1695
1662
  data: items,
1696
1663
  renderItem: renderItem,
1697
1664
  keyExtractor: function keyExtractor(item) {
@@ -1701,9 +1668,7 @@ function UIOrder(props) {
1701
1668
  var data = _ref2.data;
1702
1669
  scope.changeValue(data);
1703
1670
  }
1704
- }), isShowAdd() && /*#__PURE__*/jsx(Fragment, {
1705
- children: add
1706
- })]
1671
+ })
1707
1672
  }, keyData);
1708
1673
  };
1709
1674
  return /*#__PURE__*/jsxs(Fragment, {