react-crud-mobile 1.3.275 → 1.3.276
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 +11 -10
- 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 +11 -10
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +12 -11
@@ -2299,26 +2299,27 @@ function UIElement(props) {
|
|
2299
2299
|
scope.dialogHide = function (args) {
|
2300
2300
|
var _main$dialog;
|
2301
2301
|
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
2302
|
-
var
|
2303
|
-
var
|
2304
|
-
main.dialog =
|
2305
|
-
scope.currentDialog =
|
2306
|
-
console.log(scope);
|
2302
|
+
var current = main.dialog;
|
2303
|
+
var next = reactCrudUtils.Utils.nvl(main.parent, null);
|
2304
|
+
main.dialog = next;
|
2305
|
+
scope.currentDialog = next;
|
2307
2306
|
if ((_main$dialog = main.dialog) != null && (_main$dialog = _main$dialog.crud) != null && _main$dialog.scope) {
|
2308
2307
|
var _main$dialog2;
|
2309
2308
|
(_main$dialog2 = main.dialog) == null || _main$dialog2.crud.scope.update();
|
2310
2309
|
}
|
2311
|
-
scope
|
2312
|
-
|
2313
|
-
|
2314
|
-
parentScope.update();
|
2310
|
+
if (current != null && current.scope) {
|
2311
|
+
var close = current.close;
|
2312
|
+
current.scope.update();
|
2315
2313
|
if (close) {
|
2316
2314
|
if (close != null && close.debug) console.log('Fechando');
|
2317
|
-
|
2315
|
+
current.scope.call('close', {
|
2318
2316
|
close: close
|
2319
2317
|
});
|
2320
2318
|
}
|
2321
2319
|
}
|
2320
|
+
if (next.scope.update()) {
|
2321
|
+
next.scope.update();
|
2322
|
+
}
|
2322
2323
|
};
|
2323
2324
|
return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
|
2324
2325
|
value: {
|