react-crud-mobile 1.3.185 → 1.3.187

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.
@@ -1797,18 +1797,17 @@ function UIElement(props) {
1797
1797
  var ctx = React.useContext(CrudContext);
1798
1798
  var theme = reactCrudUtils.Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1799
1799
  var crud = reactCrudUtils.Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
1800
- var _useState = React.useState(reactCrudUtils.ScopeUtils.create(_extends({
1801
- crud: crud
1802
- }, props, {
1803
- theme: theme
1804
- }))),
1805
- scope = _useState[0];
1806
- var _useState2 = React.useState(0),
1807
- index = _useState2[0],
1808
- setIndex = _useState2[1];
1809
- var _useState3 = React.useState(null),
1810
- error = _useState3[0],
1811
- setError = _useState3[1];
1800
+ var scope = reactCrudUtils.ScopeUtils.create(_extends({
1801
+ crud: crud
1802
+ }, props, {
1803
+ theme: theme
1804
+ }));
1805
+ var _useState = React.useState(0),
1806
+ index = _useState[0],
1807
+ setIndex = _useState[1];
1808
+ var _useState2 = React.useState(null),
1809
+ error = _useState2[0],
1810
+ setError = _useState2[1];
1812
1811
  scope.compile(props);
1813
1812
  crud = scope.crud;
1814
1813
  var options = scope.getOptions();
@@ -2204,6 +2203,8 @@ function UIElement(props) {
2204
2203
  };
2205
2204
  scope.dialogShow = function (args) {
2206
2205
  var _event$dialog;
2206
+ var event = reactCrudUtils.Utils.nvl(args == null ? void 0 : args.event, {});
2207
+ if (event != null && event.debug) console.log(args);
2207
2208
  var main = reactCrudUtils.ViewUtils.getCrud('view');
2208
2209
  var parent = main.dialog;
2209
2210
  var crud = args.crud;
@@ -2211,7 +2212,6 @@ function UIElement(props) {
2211
2212
  var edit = args.edit === true;
2212
2213
  var def = {};
2213
2214
  var rowItem = null;
2214
- var event = reactCrudUtils.Utils.nvl(args == null ? void 0 : args.event, {});
2215
2215
  var component = event == null ? void 0 : event.component;
2216
2216
  if (crud.is('row')) {
2217
2217
  def.parent = crud.parent.parent;