react-crud-mobile 1.3.278 → 1.3.280
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 +5 -8
- 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 +5 -8
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +5 -8
@@ -2288,17 +2288,14 @@ function UIElement(props) {
|
|
2288
2288
|
scope.update();
|
2289
2289
|
};
|
2290
2290
|
scope.dialogHide = function (args) {
|
2291
|
-
var _next$scope, _current$scope;
|
2292
2291
|
var main = ViewUtils.getCrud('view');
|
2293
2292
|
var current = main.dialog;
|
2294
2293
|
var next = Utils.nvl(main.parent, null);
|
2295
2294
|
main.dialog = next;
|
2296
2295
|
scope.currentDialog = next;
|
2297
|
-
|
2298
|
-
var currScope = current == null || (_current$scope = current.scope) == null ? void 0 : _current$scope.parent;
|
2299
|
-
if (currScope) {
|
2296
|
+
if (current) {
|
2300
2297
|
var close = current.close;
|
2301
|
-
|
2298
|
+
if (current.update) current.update();
|
2302
2299
|
if (close) {
|
2303
2300
|
if (close != null && close.debug) console.log('Fechando');
|
2304
2301
|
current.scope.call('close', {
|
@@ -2306,8 +2303,8 @@ function UIElement(props) {
|
|
2306
2303
|
});
|
2307
2304
|
}
|
2308
2305
|
}
|
2309
|
-
if (
|
2310
|
-
|
2306
|
+
if (next != null && next.update) {
|
2307
|
+
next.update();
|
2311
2308
|
}
|
2312
2309
|
};
|
2313
2310
|
return /*#__PURE__*/jsx(CrudContext.Provider, {
|
@@ -2339,7 +2336,7 @@ var boxStyle = /*#__PURE__*/StyleSheet.create({
|
|
2339
2336
|
}
|
2340
2337
|
});
|
2341
2338
|
var box = /*#__PURE__*/_extends({}, boxStyle.box);
|
2342
|
-
//
|
2339
|
+
//v5
|
2343
2340
|
var elementStyle = {};
|
2344
2341
|
elementStyle.view = {
|
2345
2342
|
inner: {
|