react-crud-mobile 1.3.69 → 1.3.71

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.
@@ -1533,6 +1533,7 @@ function UIView(_ref) {
1533
1533
  var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
1534
1534
  var headerTextStyle = reactCrudUtils.Utils.nvl((_theme$styles2 = theme.styles) == null || (_theme$styles2 = _theme$styles2.defaults) == null ? void 0 : _theme$styles2.headerText, {});
1535
1535
  var scrollRef = React.useRef(null);
1536
+ var original = scope.original;
1536
1537
  React.useEffect(function () {
1537
1538
  MobileUtils.syncTheme();
1538
1539
  }, []);
@@ -1566,27 +1567,36 @@ function UIView(_ref) {
1566
1567
  };
1567
1568
  scope.put('scrollRef', scrollRef);
1568
1569
  reactCrudUtils.ComponentUtils.setViewScope(scope);
1570
+ var Container = function Container() {
1571
+ if (original.scroll === false) {
1572
+ return /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1573
+ scope: scope,
1574
+ children: children
1575
+ });
1576
+ }
1577
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
1578
+ onScroll: onScroll,
1579
+ scrollEventThrottle: 16,
1580
+ ref: scrollRef,
1581
+ nestedScrollEnabled: true,
1582
+ keyboardShouldPersistTaps: "handled",
1583
+ contentContainerStyle: scope.getStyle('contentContainer', {
1584
+ paddingBottom: 50
1585
+ }),
1586
+ style: scope.getStyle('scroll', styles$9.scroll),
1587
+ children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1588
+ scope: scope,
1589
+ children: children
1590
+ })
1591
+ });
1592
+ };
1569
1593
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1570
1594
  children: [hasHeader && /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1571
1595
  style: headerStyleFull,
1572
1596
  children: /*#__PURE__*/jsxRuntime.jsx(AuxHeader, {})
1573
1597
  }), /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1574
1598
  style: scope.getStyle('container', styles$9.container),
1575
- children: /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
1576
- onScroll: onScroll,
1577
- scrollEventThrottle: 16,
1578
- ref: scrollRef,
1579
- nestedScrollEnabled: true,
1580
- keyboardShouldPersistTaps: "handled",
1581
- contentContainerStyle: scope.getStyle('contentContainer', {
1582
- paddingBottom: 50
1583
- }),
1584
- style: scope.getStyle('scroll', styles$9.scroll),
1585
- children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1586
- scope: scope,
1587
- children: children
1588
- })
1589
- })
1599
+ children: /*#__PURE__*/jsxRuntime.jsx(Container, {})
1590
1600
  }), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
1591
1601
  });
1592
1602
  }
@@ -1631,17 +1641,25 @@ function UIOrder(props) {
1631
1641
  var item = _ref.item,
1632
1642
  drag = _ref.drag,
1633
1643
  isActive = _ref.isActive;
1644
+ var state = _extends({}, scope.getStyle('row'));
1645
+ if (isActive) {
1646
+ state = _extends({}, state, scope.getStyle('active'));
1647
+ }
1634
1648
  return /*#__PURE__*/jsxRuntime.jsx(DraggableFlatList.ScaleDecorator, {
1635
- children: /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
1649
+ children: /*#__PURE__*/jsxRuntime.jsxs(reactNative.TouchableOpacity, {
1636
1650
  style: [styles$a.row, {
1637
1651
  backgroundColor: isActive ? 'lightblue' : 'white'
1638
- }],
1652
+ }, _extends({}, state)],
1639
1653
  onLongPress: drag // Initiate drag on long press
1640
1654
  ,
1641
- children: /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
1655
+ children: [/*#__PURE__*/jsxRuntime.jsx(vectorIcons.MaterialCommunityIcons, {
1656
+ name: "drag",
1657
+ size: 24,
1658
+ color: "black"
1659
+ }), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
1642
1660
  style: styles$a.text,
1643
1661
  children: scope.getItemLabel(item)
1644
- })
1662
+ })]
1645
1663
  })
1646
1664
  });
1647
1665
  };
@@ -1673,7 +1691,8 @@ var styles$a = /*#__PURE__*/reactNative.StyleSheet.create({
1673
1691
  row: {
1674
1692
  padding: 20,
1675
1693
  borderBottomWidth: 1,
1676
- borderBottomColor: '#ccc'
1694
+ borderBottomColor: '#ccc',
1695
+ borderRadius: 5
1677
1696
  },
1678
1697
  text: {
1679
1698
  fontSize: 18