react-crud-mobile 1.3.380 → 1.3.381
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 +14 -4
- 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 +14 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIOrder.tsx +14 -1
@@ -1860,9 +1860,18 @@ function UIOrder(props) {
|
|
1860
1860
|
return updated;
|
1861
1861
|
});
|
1862
1862
|
};
|
1863
|
-
|
1863
|
+
var Empty = function Empty() {
|
1864
|
+
if (Utils.isEmpty(items)) {
|
1865
|
+
var empty = scope.part('empty', 'Sem registro');
|
1866
|
+
if (empty !== false) return /*#__PURE__*/jsx(Fragment, {
|
1867
|
+
children: empty
|
1868
|
+
});
|
1869
|
+
}
|
1870
|
+
return /*#__PURE__*/jsx(Fragment, {});
|
1871
|
+
};
|
1872
|
+
return /*#__PURE__*/jsxs(View, {
|
1864
1873
|
style: styles$a.container,
|
1865
|
-
children: /*#__PURE__*/jsx(View, {
|
1874
|
+
children: [/*#__PURE__*/jsx(Empty, {}), /*#__PURE__*/jsx(View, {
|
1866
1875
|
style: {
|
1867
1876
|
height: items.length * ITEM_HEIGHT,
|
1868
1877
|
width: '100%'
|
@@ -1872,8 +1881,9 @@ function UIOrder(props) {
|
|
1872
1881
|
var y = positions[item.value];
|
1873
1882
|
if (!y) return null;
|
1874
1883
|
var isDragging = draggingId === item.value;
|
1884
|
+
var itemStyle = scope.getStyle('row', _extends({}, styles$a.item));
|
1875
1885
|
return /*#__PURE__*/jsxs(Animated.View, _extends({}, (_panRespondersRef$cur = (_panRespondersRef$cur2 = panRespondersRef.current[item.value]) == null ? void 0 : _panRespondersRef$cur2.panHandlers) != null ? _panRespondersRef$cur : {}, {
|
1876
|
-
style: [
|
1886
|
+
style: [itemStyle, {
|
1877
1887
|
position: 'absolute',
|
1878
1888
|
left: 0,
|
1879
1889
|
right: 0,
|
@@ -1907,7 +1917,7 @@ function UIOrder(props) {
|
|
1907
1917
|
})]
|
1908
1918
|
}), item.value);
|
1909
1919
|
})
|
1910
|
-
})
|
1920
|
+
})]
|
1911
1921
|
});
|
1912
1922
|
}
|
1913
1923
|
var styles$a = /*#__PURE__*/StyleSheet.create({
|