react-crud-mobile 1.3.520 → 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.mjs CHANGED
@@ -1372,14 +1372,7 @@ function UIQuantity(props) {
1372
1372
  // src/elements/core/UIModal.tsx
1373
1373
  import { useRef as useRef3, useState as useState13 } from "react";
1374
1374
  import { ComponentUtils as ComponentUtils3, Utils as Utils14 } from "react-crud-utils";
1375
- import {
1376
- Text as Text10,
1377
- TouchableOpacity as TouchableOpacity6,
1378
- StyleSheet as StyleSheet12,
1379
- Modal as Modal2,
1380
- View as View9,
1381
- ScrollView as ScrollView2
1382
- } from "react-native";
1375
+ import { Text as Text10, TouchableOpacity as TouchableOpacity6, StyleSheet as StyleSheet12, Modal as Modal2, View as View9, ScrollView as ScrollView2 } from "react-native";
1383
1376
  import Ionicons8 from "@expo/vector-icons/Ionicons";
1384
1377
 
1385
1378
  // src/elements/core/UIToast.tsx
@@ -1520,17 +1513,7 @@ function UIModal(props) {
1520
1513
  /* @__PURE__ */ jsx21(UIToast, {})
1521
1514
  ] });
1522
1515
  };
1523
- return /* @__PURE__ */ jsx21(
1524
- Modal2,
1525
- {
1526
- animationType: "slide",
1527
- transparent: true,
1528
- visible: true,
1529
- onRequestClose: onClose,
1530
- children: /* @__PURE__ */ jsx21(ModalInner, {})
1531
- },
1532
- key
1533
- );
1516
+ return /* @__PURE__ */ jsx21(Modal2, { animationType: "slide", transparent: true, visible: true, onRequestClose: onClose, children: /* @__PURE__ */ jsx21(ModalInner, {}) }, key);
1534
1517
  }
1535
1518
  var styles9 = StyleSheet12.create({
1536
1519
  modalTop: {
@@ -2242,6 +2225,7 @@ function UIElement(props) {
2242
2225
  let rowItem = null;
2243
2226
  let component = event?.component;
2244
2227
  let elo = Utils18.nvl(caller?.original, original);
2228
+ let localScope = Utils18.nvl(event?.scope, scope);
2245
2229
  if (crud2.is("row")) {
2246
2230
  def.parent = crud2.parent.parent;
2247
2231
  def.search = crud2.parent;
@@ -2265,7 +2249,7 @@ function UIElement(props) {
2265
2249
  name,
2266
2250
  data,
2267
2251
  edit,
2268
- scope,
2252
+ scope: localScope,
2269
2253
  ...def
2270
2254
  });
2271
2255
  let el = {
@@ -2282,11 +2266,19 @@ function UIElement(props) {
2282
2266
  if (event.title) el.title = event.title;
2283
2267
  let label = Utils18.nvl(el.title, el.label);
2284
2268
  el.label = label;
2269
+ let extra = {};
2270
+ if (!component) {
2271
+ extra = { ...localScope?.original };
2272
+ delete extra.scope;
2273
+ delete extra.crud;
2274
+ delete extra.owner;
2275
+ }
2285
2276
  let dialogScope = ScopeUtils3.create({
2286
- parent: scope,
2277
+ parent: localScope,
2287
2278
  crud: d,
2288
2279
  ...el,
2289
- owner: scope
2280
+ ...extra,
2281
+ owner: localScope
2290
2282
  });
2291
2283
  let dialog = {
2292
2284
  crud: d,