react-crud-mobile 1.3.258 → 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.
- package/dist/elements/core/UIModal.d.ts +1 -1
- package/dist/react-crud-mobile.cjs.development.js +16 -17
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +16 -17
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +7 -4
@@ -1364,17 +1364,16 @@ function UIToast() {
|
|
1364
1364
|
});
|
1365
1365
|
}
|
1366
1366
|
|
1367
|
-
|
1368
|
-
function UIModal(_ref) {
|
1367
|
+
function UIModal(props) {
|
1369
1368
|
var _theme$styles, _main$dialog;
|
1370
|
-
var
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
var _useState2 = useState(
|
1376
|
-
|
1377
|
-
|
1369
|
+
var owner = props.scope;
|
1370
|
+
var _useState = useState(0),
|
1371
|
+
index = _useState[0];
|
1372
|
+
var dialog = owner.currentDialog;
|
1373
|
+
var scope = dialog.scope;
|
1374
|
+
var _useState2 = useState(!Utils.isEmpty(dialog)),
|
1375
|
+
modalVisible = _useState2[0],
|
1376
|
+
setModalVisible = _useState2[1];
|
1378
1377
|
//v1
|
1379
1378
|
var label = scope.getLabel();
|
1380
1379
|
var theme = scope.getTheme();
|
@@ -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 =
|
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(
|
1418
|
-
var 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(
|
1444
|
-
var 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
|
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
|
2566
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
2568
2567
|
return /*#__PURE__*/jsx(UIElement, _extends({}, props, {
|
2569
2568
|
type: "column"
|
2570
2569
|
}));
|