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.
@@ -1328,7 +1328,7 @@ function UIToast() {
1328
1328
 
1329
1329
  var _excluded = ["scope", "open", "dialog"];
1330
1330
  function UIModal(_ref) {
1331
- var _theme$styles, _scope$currentDialog2, _main$dialog2;
1331
+ var _theme$styles, _scope$currentDialog3, _main$dialog2;
1332
1332
  var scope = _ref.scope,
1333
1333
  open = _ref.open,
1334
1334
  dialog = _ref.dialog,
@@ -1396,8 +1396,8 @@ function UIModal(_ref) {
1396
1396
  scope.update();
1397
1397
  };
1398
1398
  scope.dialogHide = function (args) {
1399
- var _main$dialog;
1400
- var old = scope.currentDialog;
1399
+ var _scope$currentDialog2, _main$dialog;
1400
+ var old = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1401
1401
  main.dialog = Utils.nvl(old.dialog, null);
1402
1402
  scope.currentDialog = null;
1403
1403
  toggle(false);
@@ -1406,7 +1406,7 @@ function UIModal(_ref) {
1406
1406
  }
1407
1407
  scope.update();
1408
1408
  };
1409
- var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1409
+ var curr = (_scope$currentDialog3 = scope.currentDialog) == null ? void 0 : _scope$currentDialog3.crud;
1410
1410
  if (!curr) {
1411
1411
  return /*#__PURE__*/jsx(Fragment, {});
1412
1412
  }
@@ -1816,6 +1816,8 @@ function UIElement(props) {
1816
1816
  scope.update();
1817
1817
  };
1818
1818
  var onClick = function onClick(e) {
1819
+ var _scope$currentDialog;
1820
+ if ((_scope$currentDialog = scope.currentDialog) != null && _scope$currentDialog.component) return;
1819
1821
  scope.call('click');
1820
1822
  };
1821
1823
  var defaultsInput = {
@@ -2022,7 +2024,7 @@ function UIElement(props) {
2022
2024
  return /*#__PURE__*/jsx(Fragment, {});
2023
2025
  };
2024
2026
  var Container = function Container() {
2025
- var _scope$currentDialog, _scope$currentDialog2;
2027
+ var _scope$currentDialog2, _scope$currentDialog3;
2026
2028
  return /*#__PURE__*/jsxs(Fragment, {
2027
2029
  children: [isShowLabel() && /*#__PURE__*/jsxs(View, {
2028
2030
  style: getStyle('outerLabel', {
@@ -2059,9 +2061,9 @@ function UIElement(props) {
2059
2061
  })), scope.isType('dialog') && /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2060
2062
  scope: scope,
2061
2063
  crud: crud
2062
- })), ((_scope$currentDialog = scope.currentDialog) == null ? void 0 : _scope$currentDialog.component) && /*#__PURE__*/jsx(UIModal, {
2064
+ })), ((_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.component) && /*#__PURE__*/jsx(UIModal, {
2063
2065
  scope: scope,
2064
- crud: (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud,
2066
+ crud: (_scope$currentDialog3 = scope.currentDialog) == null ? void 0 : _scope$currentDialog3.crud,
2065
2067
  open: true,
2066
2068
  dialog: scope.currentDialog
2067
2069
  }), scope.isType('chart') && /*#__PURE__*/jsx(ElChart, _extends({}, props, {