react-crud-mobile 1.3.521 → 1.3.522

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.
package/dist/index.js CHANGED
@@ -1528,17 +1528,7 @@ function UIModal(props) {
1528
1528
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(UIToast, {})
1529
1529
  ] });
1530
1530
  };
1531
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1532
- import_react_native17.Modal,
1533
- {
1534
- animationType: "slide",
1535
- transparent: true,
1536
- visible: true,
1537
- onRequestClose: onClose,
1538
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ModalInner, {})
1539
- },
1540
- key
1541
- );
1531
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_native17.Modal, { animationType: "slide", transparent: true, visible: true, onRequestClose: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ModalInner, {}) }, key);
1542
1532
  }
1543
1533
  var styles9 = import_react_native17.StyleSheet.create({
1544
1534
  modalTop: {
@@ -2243,6 +2233,7 @@ function UIElement(props) {
2243
2233
  let rowItem = null;
2244
2234
  let component = event?.component;
2245
2235
  let elo = import_react_crud_utils18.Utils.nvl(caller?.original, original);
2236
+ let localScope = import_react_crud_utils18.Utils.nvl(event?.scope, scope);
2246
2237
  if (crud2.is("row")) {
2247
2238
  def.parent = crud2.parent.parent;
2248
2239
  def.search = crud2.parent;
@@ -2266,7 +2257,7 @@ function UIElement(props) {
2266
2257
  name,
2267
2258
  data,
2268
2259
  edit,
2269
- scope,
2260
+ scope: localScope,
2270
2261
  ...def
2271
2262
  });
2272
2263
  let el = {
@@ -2283,11 +2274,19 @@ function UIElement(props) {
2283
2274
  if (event.title) el.title = event.title;
2284
2275
  let label = import_react_crud_utils18.Utils.nvl(el.title, el.label);
2285
2276
  el.label = label;
2277
+ let extra = {};
2278
+ if (!component) {
2279
+ extra = { ...localScope?.original };
2280
+ delete extra.scope;
2281
+ delete extra.crud;
2282
+ delete extra.owner;
2283
+ }
2286
2284
  let dialogScope = import_react_crud_utils18.ScopeUtils.create({
2287
- parent: scope,
2285
+ parent: localScope,
2288
2286
  crud: d,
2289
2287
  ...el,
2290
- owner: scope
2288
+ ...extra,
2289
+ owner: localScope
2291
2290
  });
2292
2291
  let dialog = {
2293
2292
  crud: d,