react-crud-mobile 1.3.270 → 1.3.275

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.
@@ -2217,6 +2217,7 @@ function UIElement(props) {
2217
2217
  var _event$dialog;
2218
2218
  var event = Utils.nvl(args == null ? void 0 : args.event, {});
2219
2219
  if (event != null && event.debug) console.log(args);
2220
+ var caller = args.caller;
2220
2221
  var main = ViewUtils.getCrud('view');
2221
2222
  var parent = main.dialog;
2222
2223
  var crud = args.crud;
@@ -2225,6 +2226,7 @@ function UIElement(props) {
2225
2226
  var def = {};
2226
2227
  var rowItem = null;
2227
2228
  var component = event == null ? void 0 : event.component;
2229
+ var elo = Utils.nvl(caller == null ? void 0 : caller.original, original);
2228
2230
  if (crud.is('row')) {
2229
2231
  def.parent = crud.parent.parent;
2230
2232
  def.search = crud.parent;
@@ -2251,8 +2253,8 @@ function UIElement(props) {
2251
2253
  scope: scope
2252
2254
  }, def));
2253
2255
  var el = {
2254
- label: original.label,
2255
- icon: original.icon,
2256
+ label: elo.label,
2257
+ icon: elo.icon,
2256
2258
  type: 'dialog'
2257
2259
  };
2258
2260
  var close = (_event$dialog = event.dialog) == null ? void 0 : _event$dialog.close;
@@ -2262,7 +2264,8 @@ function UIElement(props) {
2262
2264
  if (event.header) el.header = event.header;
2263
2265
  if (event.label) el.label = event.label;
2264
2266
  if (event.title) el.title = event.title;
2265
- el.label = Utils.nvl(el.title, el.label);
2267
+ var label = Utils.nvl(el.title, el.label);
2268
+ el.label = label;
2266
2269
  var dialogScope = ScopeUtils.create(_extends({
2267
2270
  parent: scope,
2268
2271
  crud: d
@@ -2271,6 +2274,7 @@ function UIElement(props) {
2271
2274
  }));
2272
2275
  var dialog = {
2273
2276
  crud: d,
2277
+ label: label,
2274
2278
  parent: parent,
2275
2279
  component: component,
2276
2280
  scope: dialogScope,