react-crud-mobile 1.3.90 → 1.3.92

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.
@@ -1337,7 +1337,7 @@ function UIToast() {
1337
1337
 
1338
1338
  var _excluded = ["scope", "open", "dialog"];
1339
1339
  function UIModal(_ref) {
1340
- var _theme$styles, _scope$currentDialog2, _main$dialog2;
1340
+ var _theme$styles, _scope$currentDialog3, _main$dialog2;
1341
1341
  var scope = _ref.scope,
1342
1342
  open = _ref.open,
1343
1343
  dialog = _ref.dialog,
@@ -1405,8 +1405,8 @@ function UIModal(_ref) {
1405
1405
  scope.update();
1406
1406
  };
1407
1407
  scope.dialogHide = function (args) {
1408
- var _main$dialog;
1409
- var old = scope.currentDialog;
1408
+ var _scope$currentDialog2, _main$dialog;
1409
+ var old = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1410
1410
  main.dialog = reactCrudUtils.Utils.nvl(old.dialog, null);
1411
1411
  scope.currentDialog = null;
1412
1412
  toggle(false);
@@ -1415,7 +1415,7 @@ function UIModal(_ref) {
1415
1415
  }
1416
1416
  scope.update();
1417
1417
  };
1418
- var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1418
+ var curr = (_scope$currentDialog3 = scope.currentDialog) == null ? void 0 : _scope$currentDialog3.crud;
1419
1419
  if (!curr) {
1420
1420
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
1421
1421
  }
@@ -1825,6 +1825,8 @@ function UIElement(props) {
1825
1825
  scope.update();
1826
1826
  };
1827
1827
  var onClick = function onClick(e) {
1828
+ var _scope$currentDialog;
1829
+ if ((_scope$currentDialog = scope.currentDialog) != null && _scope$currentDialog.component) return;
1828
1830
  scope.call('click');
1829
1831
  };
1830
1832
  var defaultsInput = {
@@ -2031,7 +2033,7 @@ function UIElement(props) {
2031
2033
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
2032
2034
  };
2033
2035
  var Container = function Container() {
2034
- var _scope$currentDialog, _scope$currentDialog2;
2036
+ var _scope$currentDialog2, _scope$currentDialog3;
2035
2037
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2036
2038
  children: [isShowLabel() && /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
2037
2039
  style: getStyle('outerLabel', {
@@ -2068,9 +2070,9 @@ function UIElement(props) {
2068
2070
  })), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
2069
2071
  scope: scope,
2070
2072
  crud: crud
2071
- })), ((_scope$currentDialog = scope.currentDialog) == null ? void 0 : _scope$currentDialog.component) && /*#__PURE__*/jsxRuntime.jsx(UIModal, {
2073
+ })), ((_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.component) && /*#__PURE__*/jsxRuntime.jsx(UIModal, {
2072
2074
  scope: scope,
2073
- crud: (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud,
2075
+ crud: (_scope$currentDialog3 = scope.currentDialog) == null ? void 0 : _scope$currentDialog3.crud,
2074
2076
  open: true,
2075
2077
  dialog: scope.currentDialog
2076
2078
  }), scope.isType('chart') && /*#__PURE__*/jsxRuntime.jsx(ElChart, _extends({}, props, {