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.
@@ -1788,18 +1788,17 @@ function UIElement(props) {
1788
1788
  var ctx = useContext(CrudContext);
1789
1789
  var theme = Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1790
1790
  var crud = Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
1791
- var _useState = useState(ScopeUtils.create(_extends({
1792
- crud: crud
1793
- }, props, {
1794
- theme: theme
1795
- }))),
1796
- scope = _useState[0];
1797
- var _useState2 = useState(0),
1798
- index = _useState2[0],
1799
- setIndex = _useState2[1];
1800
- var _useState3 = useState(null),
1801
- error = _useState3[0],
1802
- setError = _useState3[1];
1791
+ var scope = ScopeUtils.create(_extends({
1792
+ crud: crud
1793
+ }, props, {
1794
+ theme: theme
1795
+ }));
1796
+ var _useState = useState(0),
1797
+ index = _useState[0],
1798
+ setIndex = _useState[1];
1799
+ var _useState2 = useState(null),
1800
+ error = _useState2[0],
1801
+ setError = _useState2[1];
1803
1802
  scope.compile(props);
1804
1803
  crud = scope.crud;
1805
1804
  var options = scope.getOptions();
@@ -2195,6 +2194,8 @@ function UIElement(props) {
2195
2194
  };
2196
2195
  scope.dialogShow = function (args) {
2197
2196
  var _event$dialog;
2197
+ var event = Utils.nvl(args == null ? void 0 : args.event, {});
2198
+ if (event != null && event.debug) console.log(args);
2198
2199
  var main = ViewUtils.getCrud('view');
2199
2200
  var parent = main.dialog;
2200
2201
  var crud = args.crud;
@@ -2202,7 +2203,6 @@ function UIElement(props) {
2202
2203
  var edit = args.edit === true;
2203
2204
  var def = {};
2204
2205
  var rowItem = null;
2205
- var event = Utils.nvl(args == null ? void 0 : args.event, {});
2206
2206
  var component = event == null ? void 0 : event.component;
2207
2207
  if (crud.is('row')) {
2208
2208
  def.parent = crud.parent.parent;