react-crud-mobile 1.3.56 → 1.3.57
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 +15 -2
- 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 +15 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIOrder.tsx +2 -2
|
@@ -7,7 +7,6 @@ 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';
|
|
11
10
|
import { SafeAreaProvider, SafeAreaView as SafeAreaView$1 } from 'react-native-safe-area-context';
|
|
12
11
|
|
|
13
12
|
function _extends() {
|
|
@@ -1597,6 +1596,19 @@ function UIOrder(props) {
|
|
|
1597
1596
|
var crud = scope.crud;
|
|
1598
1597
|
var original = scope.original;
|
|
1599
1598
|
var cols = Utils.nvl(scope.getPart('cols', undefined, 1));
|
|
1599
|
+
var getStyle = function getStyle(key, extra) {
|
|
1600
|
+
return scope.getStyle(key, _extends({}, extra, styles$a[key]));
|
|
1601
|
+
};
|
|
1602
|
+
var getContainerStyle = function getContainerStyle(extra) {
|
|
1603
|
+
var row = getStyle('container', {});
|
|
1604
|
+
if (cols > 1) {
|
|
1605
|
+
row = _extends({}, row, {
|
|
1606
|
+
flexDirection: 'row',
|
|
1607
|
+
flexWrap: 'wrap'
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
return row;
|
|
1611
|
+
};
|
|
1600
1612
|
var LocalData = function LocalData() {
|
|
1601
1613
|
var _useState = useState(scope.updateIndex),
|
|
1602
1614
|
index = _useState[0],
|
|
@@ -1643,7 +1655,8 @@ function UIOrder(props) {
|
|
|
1643
1655
|
})
|
|
1644
1656
|
});
|
|
1645
1657
|
};
|
|
1646
|
-
return /*#__PURE__*/jsx(
|
|
1658
|
+
return /*#__PURE__*/jsx(View, {
|
|
1659
|
+
style: getContainerStyle(),
|
|
1647
1660
|
children: /*#__PURE__*/jsx(DraggableFlatList, {
|
|
1648
1661
|
data: items,
|
|
1649
1662
|
renderItem: renderItem,
|