react-crud-mobile 1.3.378 → 1.3.380
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 +7 -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 +7 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIOrder.tsx +10 -3
@@ -1728,6 +1728,7 @@ var styles$9 = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
1728
1728
|
var ITEM_HEIGHT = 70;
|
1729
1729
|
function UIOrder(props) {
|
1730
1730
|
var scope = props.scope;
|
1731
|
+
var element = scope.original;
|
1731
1732
|
var initial = scope.getOptions();
|
1732
1733
|
var _useState = React.useState(initial),
|
1733
1734
|
items = _useState[0],
|
@@ -1762,8 +1763,12 @@ function UIOrder(props) {
|
|
1762
1763
|
}, [items]);
|
1763
1764
|
var onChange = function onChange(updated) {
|
1764
1765
|
var array = [];
|
1766
|
+
var items = scope.getItems();
|
1767
|
+
items.splice(0);
|
1765
1768
|
reactCrudUtils.Utils.each(updated, function (o) {
|
1766
|
-
|
1769
|
+
var v = o.object;
|
1770
|
+
array.push(v);
|
1771
|
+
items.push(v);
|
1767
1772
|
});
|
1768
1773
|
scope.changeValue(array);
|
1769
1774
|
};
|
@@ -1896,7 +1901,7 @@ function UIOrder(props) {
|
|
1896
1901
|
}), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
1897
1902
|
style: styles$a.itemText,
|
1898
1903
|
children: item.label
|
1899
|
-
}),
|
1904
|
+
}), element.remove && /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
|
1900
1905
|
onPress: function onPress() {
|
1901
1906
|
return removeItem(item.value);
|
1902
1907
|
},
|