react-crud-mobile 1.3.259 → 1.3.260

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.
@@ -1364,14 +1364,13 @@ function UIToast() {
1364
1364
  });
1365
1365
  }
1366
1366
 
1367
- var _excluded = ["scope"];
1368
- function UIModal(_ref) {
1367
+ function UIModal(props) {
1369
1368
  var _theme$styles, _main$dialog;
1370
- var scope = _ref.scope,
1371
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
1369
+ var owner = props.scope;
1372
1370
  var _useState = useState(0),
1373
1371
  index = _useState[0];
1374
- var dialog = scope.currentDialog;
1372
+ var dialog = owner.currentDialog;
1373
+ var scope = dialog.scope;
1375
1374
  var _useState2 = useState(!Utils.isEmpty(dialog)),
1376
1375
  modalVisible = _useState2[0],
1377
1376
  setModalVisible = _useState2[1];
@@ -1407,15 +1406,15 @@ function UIModal(_ref) {
1407
1406
  var headerRight = ComponentUtils.getDefine(props, 'header', 'right');
1408
1407
  var bottom = ComponentUtils.getDefine(props, 'bottom');
1409
1408
  scope.put('scrollRef', scrollRef);
1410
- var original = scope.original;
1409
+ var original = owner.original;
1411
1410
  ComponentUtils.setViewScope(scope);
1412
1411
  var color = Utils.nvl(headerStyle.color, 'white');
1413
1412
  var defaults = {
1414
1413
  color: color
1415
1414
  };
1416
1415
  var key = curr.name + "-" + index;
1417
- var ModalContent = function ModalContent(_ref2) {
1418
- var children = _ref2.children;
1416
+ var ModalContent = function ModalContent(_ref) {
1417
+ var children = _ref.children;
1419
1418
  var disableScroll = scope.part('disableScroll', false);
1420
1419
  var disableContent = scope.part('disableContent', false);
1421
1420
  if (disableContent) {
@@ -1440,8 +1439,8 @@ function UIModal(_ref) {
1440
1439
  children: children
1441
1440
  });
1442
1441
  };
1443
- var ModalView = function ModalView(_ref3) {
1444
- var children = _ref3.children;
1442
+ var ModalView = function ModalView(_ref2) {
1443
+ var children = _ref2.children;
1445
1444
  if (original.gesture) {
1446
1445
  return /*#__PURE__*/jsx(GestureHandlerRootView, {
1447
1446
  style: {
@@ -2520,7 +2519,7 @@ function GestureView(props) {
2520
2519
  });
2521
2520
  }
2522
2521
 
2523
- var _excluded$1 = ["type"];
2522
+ var _excluded = ["type"];
2524
2523
  var UI = {
2525
2524
  Order: function Order(props) {
2526
2525
  return /*#__PURE__*/jsx(UIElement, _extends({}, props, {
@@ -2564,7 +2563,7 @@ var UI = {
2564
2563
  return /*#__PURE__*/jsx(UIInclude, _extends({}, props));
2565
2564
  },
2566
2565
  Column: function Column(_ref) {
2567
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2566
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded);
2568
2567
  return /*#__PURE__*/jsx(UIElement, _extends({}, props, {
2569
2568
  type: "column"
2570
2569
  }));