react-crud-mobile 1.3.269 → 1.3.274

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.
@@ -1374,7 +1374,7 @@ function UIToast() {
1374
1374
  }
1375
1375
 
1376
1376
  function UIModal(props) {
1377
- var _main$dialog, _theme$styles;
1377
+ var _theme$styles;
1378
1378
  var owner = props.scope;
1379
1379
  var _useState = React.useState(0),
1380
1380
  index = _useState[0],
@@ -1390,7 +1390,7 @@ function UIModal(props) {
1390
1390
  setIndex(++index);
1391
1391
  };
1392
1392
  if (dialog.debug) console.log(dialog);
1393
- var modalVisible = curr.uuid === ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid);
1393
+ //const modalVisible = curr.uuid === main.dialog?.crud?.uuid;
1394
1394
  var scope = dialog.scope;
1395
1395
  var label = scope.getLabel();
1396
1396
  var theme = scope.getTheme();
@@ -1514,7 +1514,7 @@ function UIModal(props) {
1514
1514
  children: /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
1515
1515
  animationType: "slide",
1516
1516
  transparent: true,
1517
- visible: modalVisible,
1517
+ visible: true,
1518
1518
  onRequestClose: onClose,
1519
1519
  children: /*#__PURE__*/jsxRuntime.jsx(ModalInner, {})
1520
1520
  }, key)
@@ -2226,6 +2226,7 @@ function UIElement(props) {
2226
2226
  var _event$dialog;
2227
2227
  var event = reactCrudUtils.Utils.nvl(args == null ? void 0 : args.event, {});
2228
2228
  if (event != null && event.debug) console.log(args);
2229
+ var caller = args.caller;
2229
2230
  var main = reactCrudUtils.ViewUtils.getCrud('view');
2230
2231
  var parent = main.dialog;
2231
2232
  var crud = args.crud;
@@ -2234,6 +2235,7 @@ function UIElement(props) {
2234
2235
  var def = {};
2235
2236
  var rowItem = null;
2236
2237
  var component = event == null ? void 0 : event.component;
2238
+ var elo = reactCrudUtils.Utils.nvl(caller == null ? void 0 : caller.original, original);
2237
2239
  if (crud.is('row')) {
2238
2240
  def.parent = crud.parent.parent;
2239
2241
  def.search = crud.parent;
@@ -2260,8 +2262,8 @@ function UIElement(props) {
2260
2262
  scope: scope
2261
2263
  }, def));
2262
2264
  var el = {
2263
- label: original.label,
2264
- icon: original.icon,
2265
+ label: elo.label,
2266
+ icon: elo.icon,
2265
2267
  type: 'dialog'
2266
2268
  };
2267
2269
  var close = (_event$dialog = event.dialog) == null ? void 0 : _event$dialog.close;