react-crud-mobile 1.3.70 → 1.3.72
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 +29 -18
- 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 +29 -18
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIOrder.tsx +3 -2
- package/src/elements/core/UIView.tsx +23 -13
|
@@ -1533,6 +1533,7 @@ function UIView(_ref) {
|
|
|
1533
1533
|
var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
|
|
1534
1534
|
var headerTextStyle = reactCrudUtils.Utils.nvl((_theme$styles2 = theme.styles) == null || (_theme$styles2 = _theme$styles2.defaults) == null ? void 0 : _theme$styles2.headerText, {});
|
|
1535
1535
|
var scrollRef = React.useRef(null);
|
|
1536
|
+
var original = scope.original;
|
|
1536
1537
|
React.useEffect(function () {
|
|
1537
1538
|
MobileUtils.syncTheme();
|
|
1538
1539
|
}, []);
|
|
@@ -1566,27 +1567,36 @@ function UIView(_ref) {
|
|
|
1566
1567
|
};
|
|
1567
1568
|
scope.put('scrollRef', scrollRef);
|
|
1568
1569
|
reactCrudUtils.ComponentUtils.setViewScope(scope);
|
|
1570
|
+
var Container = function Container() {
|
|
1571
|
+
if (original.scroll === false) {
|
|
1572
|
+
return /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
|
|
1573
|
+
scope: scope,
|
|
1574
|
+
children: children
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
1578
|
+
onScroll: onScroll,
|
|
1579
|
+
scrollEventThrottle: 16,
|
|
1580
|
+
ref: scrollRef,
|
|
1581
|
+
nestedScrollEnabled: true,
|
|
1582
|
+
keyboardShouldPersistTaps: "handled",
|
|
1583
|
+
contentContainerStyle: scope.getStyle('contentContainer', {
|
|
1584
|
+
paddingBottom: 50
|
|
1585
|
+
}),
|
|
1586
|
+
style: scope.getStyle('scroll', styles$9.scroll),
|
|
1587
|
+
children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
|
|
1588
|
+
scope: scope,
|
|
1589
|
+
children: children
|
|
1590
|
+
})
|
|
1591
|
+
});
|
|
1592
|
+
};
|
|
1569
1593
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1570
1594
|
children: [hasHeader && /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
1571
1595
|
style: headerStyleFull,
|
|
1572
1596
|
children: /*#__PURE__*/jsxRuntime.jsx(AuxHeader, {})
|
|
1573
1597
|
}), /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
1574
1598
|
style: scope.getStyle('container', styles$9.container),
|
|
1575
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1576
|
-
onScroll: onScroll,
|
|
1577
|
-
scrollEventThrottle: 16,
|
|
1578
|
-
ref: scrollRef,
|
|
1579
|
-
nestedScrollEnabled: true,
|
|
1580
|
-
keyboardShouldPersistTaps: "handled",
|
|
1581
|
-
contentContainerStyle: scope.getStyle('contentContainer', {
|
|
1582
|
-
paddingBottom: 50
|
|
1583
|
-
}),
|
|
1584
|
-
style: scope.getStyle('scroll', styles$9.scroll),
|
|
1585
|
-
children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
|
|
1586
|
-
scope: scope,
|
|
1587
|
-
children: children
|
|
1588
|
-
})
|
|
1589
|
-
})
|
|
1599
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Container, {})
|
|
1590
1600
|
}), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
|
|
1591
1601
|
});
|
|
1592
1602
|
}
|
|
@@ -1679,10 +1689,11 @@ function UIOrder(props) {
|
|
|
1679
1689
|
}
|
|
1680
1690
|
var styles$a = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
1681
1691
|
row: {
|
|
1682
|
-
|
|
1692
|
+
flexDirection: 'row',
|
|
1693
|
+
gap: 10,
|
|
1694
|
+
padding: 15,
|
|
1683
1695
|
borderBottomWidth: 1,
|
|
1684
|
-
borderBottomColor: '#ccc'
|
|
1685
|
-
borderRadius: 5
|
|
1696
|
+
borderBottomColor: '#ccc'
|
|
1686
1697
|
},
|
|
1687
1698
|
text: {
|
|
1688
1699
|
fontSize: 18
|