react-crud-mobile 1.3.245 → 1.3.247
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 +13 -12
- 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 +13 -12
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +3 -1
- package/src/elements/core/UIModal.tsx +0 -2
@@ -1412,7 +1412,6 @@ function UIModal(_ref) {
|
|
1412
1412
|
};
|
1413
1413
|
var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
|
1414
1414
|
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
1415
|
-
console.log(curr);
|
1416
1415
|
if (!curr) {
|
1417
1416
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1418
1417
|
}
|
@@ -1824,17 +1823,18 @@ function UIElement(props) {
|
|
1824
1823
|
var ctx = React.useContext(CrudContext);
|
1825
1824
|
var theme = reactCrudUtils.Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
|
1826
1825
|
var crud = reactCrudUtils.Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
|
1827
|
-
var
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1826
|
+
var _useState = React.useState(reactCrudUtils.ScopeUtils.create(_extends({
|
1827
|
+
crud: crud
|
1828
|
+
}, props, {
|
1829
|
+
theme: theme
|
1830
|
+
}))),
|
1831
|
+
scope = _useState[0];
|
1832
|
+
var _useState2 = React.useState(0),
|
1833
|
+
index = _useState2[0],
|
1834
|
+
setIndex = _useState2[1];
|
1835
|
+
var _useState3 = React.useState(null),
|
1836
|
+
error = _useState3[0],
|
1837
|
+
setError = _useState3[1];
|
1838
1838
|
scope.compile(props);
|
1839
1839
|
crud = scope.crud;
|
1840
1840
|
var options = scope.getOptions();
|
@@ -2318,6 +2318,7 @@ function UIElement(props) {
|
|
2318
2318
|
var parentScope = old.scope.parent;
|
2319
2319
|
main.dialog = reactCrudUtils.Utils.nvl(old.parent, null);
|
2320
2320
|
scope.currentDialog = null;
|
2321
|
+
console.log(scope);
|
2321
2322
|
if ((_main$dialog = main.dialog) != null && (_main$dialog = _main$dialog.crud) != null && _main$dialog.scope) {
|
2322
2323
|
var _main$dialog2;
|
2323
2324
|
(_main$dialog2 = main.dialog) == null || _main$dialog2.crud.scope.update();
|