react-crud-mobile 1.3.155 → 1.3.157
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 +20 -27
- 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 +20 -27
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +19 -23
- package/src/elements/core/UIOrder.tsx +1 -7
|
@@ -1422,19 +1422,27 @@ function UIModal(_ref) {
|
|
|
1422
1422
|
if (disableScroll) {
|
|
1423
1423
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
1424
1424
|
style: style('modalContent'),
|
|
1425
|
-
ref: scrollRef,
|
|
1426
1425
|
children: children
|
|
1427
1426
|
});
|
|
1428
1427
|
}
|
|
1429
|
-
return /*#__PURE__*/jsxRuntime.jsx(reactNative.
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1428
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
1429
|
+
style: {
|
|
1430
|
+
flex: 1,
|
|
1431
|
+
paddingLeft: 15,
|
|
1432
|
+
paddingRight: 15,
|
|
1433
|
+
paddingTop: 10,
|
|
1434
|
+
paddingBottom: 10
|
|
1433
1435
|
},
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1436
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
1437
|
+
contentContainerStyle: {
|
|
1438
|
+
flexGrow: 1,
|
|
1439
|
+
paddingBottom: 50
|
|
1440
|
+
},
|
|
1441
|
+
style: style('modalContent'),
|
|
1442
|
+
nestedScrollEnabled: true,
|
|
1443
|
+
ref: scrollRef,
|
|
1444
|
+
children: children
|
|
1445
|
+
})
|
|
1438
1446
|
});
|
|
1439
1447
|
};
|
|
1440
1448
|
var ModalView = function ModalView(_ref3) {
|
|
@@ -1484,16 +1492,7 @@ function UIModal(_ref) {
|
|
|
1484
1492
|
children: headerRight
|
|
1485
1493
|
})]
|
|
1486
1494
|
}), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
|
|
1487
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1488
|
-
style: {
|
|
1489
|
-
flex: 1,
|
|
1490
|
-
paddingLeft: 15,
|
|
1491
|
-
paddingRight: 15,
|
|
1492
|
-
paddingTop: 10,
|
|
1493
|
-
paddingBottom: 10
|
|
1494
|
-
},
|
|
1495
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
|
|
1496
|
-
})
|
|
1495
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
|
|
1497
1496
|
}), bottom]
|
|
1498
1497
|
}), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
|
|
1499
1498
|
});
|
|
@@ -1685,8 +1684,7 @@ function UIOrder(props) {
|
|
|
1685
1684
|
});
|
|
1686
1685
|
};
|
|
1687
1686
|
var _useState = React.useState(items),
|
|
1688
|
-
data = _useState[0]
|
|
1689
|
-
setData = _useState[1];
|
|
1687
|
+
data = _useState[0];
|
|
1690
1688
|
var OrderView = function OrderView(_ref2) {
|
|
1691
1689
|
var children = _ref2.children;
|
|
1692
1690
|
if (original.gesture !== false) {
|
|
@@ -1715,15 +1713,10 @@ function UIOrder(props) {
|
|
|
1715
1713
|
}),
|
|
1716
1714
|
renderItem: renderItem,
|
|
1717
1715
|
keyExtractor: function keyExtractor(item) {
|
|
1718
|
-
|
|
1719
|
-
if (original != null && original.debug) {
|
|
1720
|
-
console.log(key);
|
|
1721
|
-
}
|
|
1722
|
-
return key;
|
|
1716
|
+
return scope.getItemValue(item);
|
|
1723
1717
|
},
|
|
1724
1718
|
onDragEnd: function onDragEnd(_ref3) {
|
|
1725
1719
|
var data = _ref3.data;
|
|
1726
|
-
setData(data);
|
|
1727
1720
|
scope.changeValue(data);
|
|
1728
1721
|
}
|
|
1729
1722
|
})
|