react-crud-mobile 1.3.260 → 1.3.261
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/react-crud-mobile.cjs.development.js +13 -13
- 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 +13 -13
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +16 -17
@@ -1374,20 +1374,31 @@ function UIToast() {
|
|
1374
1374
|
}
|
1375
1375
|
|
1376
1376
|
function UIModal(props) {
|
1377
|
-
var
|
1377
|
+
var _main$dialog, _theme$styles;
|
1378
1378
|
var owner = props.scope;
|
1379
1379
|
var _useState = React.useState(0),
|
1380
1380
|
index = _useState[0];
|
1381
1381
|
var dialog = owner.currentDialog;
|
1382
|
-
var scope = dialog.scope;
|
1383
1382
|
var _useState2 = React.useState(!reactCrudUtils.Utils.isEmpty(dialog)),
|
1384
1383
|
modalVisible = _useState2[0],
|
1385
1384
|
setModalVisible = _useState2[1];
|
1386
1385
|
//v1
|
1386
|
+
var curr = dialog == null ? void 0 : dialog.crud;
|
1387
|
+
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
1388
|
+
if (!dialog) {
|
1389
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1390
|
+
}
|
1391
|
+
if (dialog.debug) console.log(dialog);
|
1392
|
+
if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
|
1393
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1394
|
+
}
|
1395
|
+
var scope = dialog.scope;
|
1387
1396
|
var label = scope.getLabel();
|
1388
1397
|
var theme = scope.getTheme();
|
1389
1398
|
var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
|
1390
1399
|
var scrollRef = React.useRef(null);
|
1400
|
+
var headerRight = reactCrudUtils.ComponentUtils.getDefine(props, 'header', 'right');
|
1401
|
+
var bottom = reactCrudUtils.ComponentUtils.getDefine(props, 'bottom');
|
1391
1402
|
var style = function style(part, extra) {
|
1392
1403
|
var st = _extends({}, styles$8[part], extra);
|
1393
1404
|
return _extends({}, scope.getStyle(part, st));
|
@@ -1403,17 +1414,6 @@ function UIModal(props) {
|
|
1403
1414
|
modalVisible = vis;
|
1404
1415
|
setModalVisible(modalVisible);
|
1405
1416
|
};
|
1406
|
-
var curr = dialog == null ? void 0 : dialog.crud;
|
1407
|
-
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
1408
|
-
if (!dialog) {
|
1409
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1410
|
-
}
|
1411
|
-
if (dialog.debug) console.log(dialog);
|
1412
|
-
if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
|
1413
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1414
|
-
}
|
1415
|
-
var headerRight = reactCrudUtils.ComponentUtils.getDefine(props, 'header', 'right');
|
1416
|
-
var bottom = reactCrudUtils.ComponentUtils.getDefine(props, 'bottom');
|
1417
1417
|
scope.put('scrollRef', scrollRef);
|
1418
1418
|
var original = owner.original;
|
1419
1419
|
reactCrudUtils.ComponentUtils.setViewScope(scope);
|