react-crud-mobile 1.3.145 → 1.3.147

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.
@@ -1346,7 +1346,7 @@ function UIModal(_ref) {
1346
1346
  var _useState2 = useState(0),
1347
1347
  index = _useState2[0],
1348
1348
  setIndex = _useState2[1];
1349
- //v8
1349
+ //v6
1350
1350
  var label = scope.getLabel();
1351
1351
  var theme = scope.getTheme();
1352
1352
  var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
@@ -1404,7 +1404,6 @@ function UIModal(_ref) {
1404
1404
  var children = _ref2.children;
1405
1405
  var disableScroll = scope.getPart('disableScroll', false);
1406
1406
  var disableContent = scope.getPart('disableContent', false);
1407
- console.log(scope.original);
1408
1407
  if (disableContent) {
1409
1408
  return /*#__PURE__*/jsx(Fragment, {
1410
1409
  children: children
@@ -1428,10 +1427,22 @@ function UIModal(_ref) {
1428
1427
  children: children
1429
1428
  });
1430
1429
  };
1431
- return /*#__PURE__*/jsx(GestureHandlerRootView, {
1432
- style: {
1433
- flex: 1
1434
- },
1430
+ var ModalView = function ModalView(_ref3) {
1431
+ var children = _ref3.children;
1432
+ var original = scope.original;
1433
+ if (original.gesture) {
1434
+ return /*#__PURE__*/jsx(GestureHandlerRootView, {
1435
+ style: {
1436
+ flex: 1
1437
+ },
1438
+ children: children
1439
+ });
1440
+ }
1441
+ return /*#__PURE__*/jsx(Fragment, {
1442
+ children: children
1443
+ });
1444
+ };
1445
+ return /*#__PURE__*/jsx(ModalView, {
1435
1446
  children: /*#__PURE__*/jsxs(Modal, {
1436
1447
  animationType: "slide",
1437
1448
  transparent: true,
@@ -1656,7 +1667,24 @@ function UIOrder(props) {
1656
1667
  var _useState = useState(items),
1657
1668
  data = _useState[0],
1658
1669
  setData = _useState[1];
1659
- return /*#__PURE__*/jsxs(Fragment, {
1670
+ var OrderView = function OrderView(_ref2) {
1671
+ var children = _ref2.children;
1672
+ if (original.gesture !== false) {
1673
+ return /*#__PURE__*/jsx(GestureHandlerRootView, {
1674
+ style: _extends({
1675
+ flex: 1,
1676
+ width: '100%'
1677
+ }, scope.getStyle('order', {
1678
+ justifyContent: 'flex-start'
1679
+ })),
1680
+ children: children
1681
+ });
1682
+ }
1683
+ return /*#__PURE__*/jsx(Fragment, {
1684
+ children: children
1685
+ });
1686
+ };
1687
+ return /*#__PURE__*/jsxs(OrderView, {
1660
1688
  children: [/*#__PURE__*/jsx(UIHeader, {
1661
1689
  scope: scope
1662
1690
  }), /*#__PURE__*/jsx(DraggableFlatList, {
@@ -1669,8 +1697,8 @@ function UIOrder(props) {
1669
1697
  }
1670
1698
  return key;
1671
1699
  },
1672
- onDragEnd: function onDragEnd(_ref2) {
1673
- var data = _ref2.data;
1700
+ onDragEnd: function onDragEnd(_ref3) {
1701
+ var data = _ref3.data;
1674
1702
  setData(data);
1675
1703
  scope.changeValue(data);
1676
1704
  }
@@ -2375,6 +2403,15 @@ function SafeView(props) {
2375
2403
  });
2376
2404
  }
2377
2405
 
2406
+ function GestureView(props) {
2407
+ return /*#__PURE__*/jsx(GestureHandlerRootView, {
2408
+ style: {
2409
+ flex: 1
2410
+ },
2411
+ children: props.children
2412
+ });
2413
+ }
2414
+
2378
2415
  var _excluded$1 = ["type"];
2379
2416
  var UI = {
2380
2417
  Order: function Order(props) {
@@ -2585,7 +2622,8 @@ var UI = {
2585
2622
  type: "slider"
2586
2623
  }));
2587
2624
  },
2588
- SafeView: SafeView
2625
+ SafeView: SafeView,
2626
+ GestureView: GestureView
2589
2627
  };
2590
2628
 
2591
2629
  export { UI };