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.
@@ -4,5 +4,5 @@ interface UIModalType extends ChildType {
4
4
  open?: boolean;
5
5
  dialog?: any;
6
6
  }
7
- export default function UIModal({ scope, ...props }: UIModalType): import("react").JSX.Element;
7
+ export default function UIModal(props: UIModalType): import("react").JSX.Element;
8
8
  export {};
@@ -1373,14 +1373,13 @@ function UIToast() {
1373
1373
  });
1374
1374
  }
1375
1375
 
1376
- var _excluded = ["scope"];
1377
- function UIModal(_ref) {
1376
+ function UIModal(props) {
1378
1377
  var _theme$styles, _main$dialog;
1379
- var scope = _ref.scope,
1380
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
1378
+ var owner = props.scope;
1381
1379
  var _useState = React.useState(0),
1382
1380
  index = _useState[0];
1383
- var dialog = scope.currentDialog;
1381
+ var dialog = owner.currentDialog;
1382
+ var scope = dialog.scope;
1384
1383
  var _useState2 = React.useState(!reactCrudUtils.Utils.isEmpty(dialog)),
1385
1384
  modalVisible = _useState2[0],
1386
1385
  setModalVisible = _useState2[1];
@@ -1416,15 +1415,15 @@ function UIModal(_ref) {
1416
1415
  var headerRight = reactCrudUtils.ComponentUtils.getDefine(props, 'header', 'right');
1417
1416
  var bottom = reactCrudUtils.ComponentUtils.getDefine(props, 'bottom');
1418
1417
  scope.put('scrollRef', scrollRef);
1419
- var original = scope.original;
1418
+ var original = owner.original;
1420
1419
  reactCrudUtils.ComponentUtils.setViewScope(scope);
1421
1420
  var color = reactCrudUtils.Utils.nvl(headerStyle.color, 'white');
1422
1421
  var defaults = {
1423
1422
  color: color
1424
1423
  };
1425
1424
  var key = curr.name + "-" + index;
1426
- var ModalContent = function ModalContent(_ref2) {
1427
- var children = _ref2.children;
1425
+ var ModalContent = function ModalContent(_ref) {
1426
+ var children = _ref.children;
1428
1427
  var disableScroll = scope.part('disableScroll', false);
1429
1428
  var disableContent = scope.part('disableContent', false);
1430
1429
  if (disableContent) {
@@ -1449,8 +1448,8 @@ function UIModal(_ref) {
1449
1448
  children: children
1450
1449
  });
1451
1450
  };
1452
- var ModalView = function ModalView(_ref3) {
1453
- var children = _ref3.children;
1451
+ var ModalView = function ModalView(_ref2) {
1452
+ var children = _ref2.children;
1454
1453
  if (original.gesture) {
1455
1454
  return /*#__PURE__*/jsxRuntime.jsx(reactNativeGestureHandler.GestureHandlerRootView, {
1456
1455
  style: {
@@ -2529,7 +2528,7 @@ function GestureView(props) {
2529
2528
  });
2530
2529
  }
2531
2530
 
2532
- var _excluded$1 = ["type"];
2531
+ var _excluded = ["type"];
2533
2532
  var UI = {
2534
2533
  Order: function Order(props) {
2535
2534
  return /*#__PURE__*/jsxRuntime.jsx(UIElement, _extends({}, props, {
@@ -2573,7 +2572,7 @@ var UI = {
2573
2572
  return /*#__PURE__*/jsxRuntime.jsx(UIInclude, _extends({}, props));
2574
2573
  },
2575
2574
  Column: function Column(_ref) {
2576
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2575
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded);
2577
2576
  return /*#__PURE__*/jsxRuntime.jsx(UIElement, _extends({}, props, {
2578
2577
  type: "column"
2579
2578
  }));