react-crud-mobile 1.3.528 → 1.3.529
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/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIListRow.tsx +0 -1
- package/src/elements/core/UIView.tsx +14 -0
package/dist/index.js
CHANGED
|
@@ -1006,7 +1006,6 @@ function UIListRow(props) {
|
|
|
1006
1006
|
if (!isVisible && original.useIsInView && !row.visible && index > 20) {
|
|
1007
1007
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, {});
|
|
1008
1008
|
}
|
|
1009
|
-
console.log(row);
|
|
1010
1009
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(UIChildren, { transient: true, scope: row, crud: row.crud, children: props.children }, key) });
|
|
1011
1010
|
};
|
|
1012
1011
|
const ListItem = () => {
|
|
@@ -1588,6 +1587,7 @@ function UIView({ scope, children }) {
|
|
|
1588
1587
|
const scrollRef = (0, import_react16.useRef)(null);
|
|
1589
1588
|
const original = scope.original;
|
|
1590
1589
|
const crud = scope.crud;
|
|
1590
|
+
const isDialog = crud.is("dialog") || crud.is("modal");
|
|
1591
1591
|
const onScroll = () => {
|
|
1592
1592
|
const crud2 = import_react_crud_utils17.ViewUtils.getCrud();
|
|
1593
1593
|
import_react_crud_utils17.Utils.each(crud2.scroll, (s) => {
|
|
@@ -1600,6 +1600,20 @@ function UIView({ scope, children }) {
|
|
|
1600
1600
|
if (!crud.is("dialog")) crud.view = scope;
|
|
1601
1601
|
import_react_crud_utils17.ComponentUtils.setViewScope(scope);
|
|
1602
1602
|
let Container = () => {
|
|
1603
|
+
if (isDialog) {
|
|
1604
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1605
|
+
import_react_native19.ScrollView,
|
|
1606
|
+
{
|
|
1607
|
+
contentContainerStyle: scope.getStyle("contentContainer", {
|
|
1608
|
+
paddingBottom: 50
|
|
1609
|
+
}),
|
|
1610
|
+
style: scope.getStyle("scroll", styles10.scroll),
|
|
1611
|
+
nestedScrollEnabled: true,
|
|
1612
|
+
ref: scrollRef,
|
|
1613
|
+
children
|
|
1614
|
+
}
|
|
1615
|
+
);
|
|
1616
|
+
}
|
|
1603
1617
|
if (original.scroll === false) {
|
|
1604
1618
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UIChildren, { scope, children });
|
|
1605
1619
|
}
|