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
@@ -1868,9 +1868,18 @@ function UIOrder(props) {
|
|
1868
1868
|
return updated;
|
1869
1869
|
});
|
1870
1870
|
};
|
1871
|
-
|
1871
|
+
var Empty = function Empty() {
|
1872
|
+
if (reactCrudUtils.Utils.isEmpty(items)) {
|
1873
|
+
var empty = scope.part('empty', 'Sem registro');
|
1874
|
+
if (empty !== false) return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
1875
|
+
children: empty
|
1876
|
+
});
|
1877
|
+
}
|
1878
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1879
|
+
};
|
1880
|
+
return /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
1872
1881
|
style: styles$a.container,
|
1873
|
-
children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
1882
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
1874
1883
|
style: {
|
1875
1884
|
height: items.length * ITEM_HEIGHT,
|
1876
1885
|
width: '100%'
|
@@ -1880,8 +1889,9 @@ function UIOrder(props) {
|
|
1880
1889
|
var y = positions[item.value];
|
1881
1890
|
if (!y) return null;
|
1882
1891
|
var isDragging = draggingId === item.value;
|
1892
|
+
var itemStyle = scope.getStyle('row', _extends({}, styles$a.item));
|
1883
1893
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNative.Animated.View, _extends({}, (_panRespondersRef$cur = (_panRespondersRef$cur2 = panRespondersRef.current[item.value]) == null ? void 0 : _panRespondersRef$cur2.panHandlers) != null ? _panRespondersRef$cur : {}, {
|
1884
|
-
style: [
|
1894
|
+
style: [itemStyle, {
|
1885
1895
|
position: 'absolute',
|
1886
1896
|
left: 0,
|
1887
1897
|
right: 0,
|
@@ -1915,7 +1925,7 @@ function UIOrder(props) {
|
|
1915
1925
|
})]
|
1916
1926
|
}), item.value);
|
1917
1927
|
})
|
1918
|
-
})
|
1928
|
+
})]
|
1919
1929
|
});
|
1920
1930
|
}
|
1921
1931
|
var styles$a = /*#__PURE__*/reactNative.StyleSheet.create({
|