react-crud-mobile 1.3.83 → 1.3.85
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 +2 -1
- package/dist/react-crud-mobile.cjs.development.js +25 -11
- 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 +25 -11
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +7 -1
- package/src/elements/core/UIModal.tsx +23 -7
|
@@ -1326,17 +1326,21 @@ function UIToast() {
|
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
|
-
|
|
1329
|
+
var _excluded = ["scope", "open", "dialog"];
|
|
1330
|
+
function UIModal(_ref) {
|
|
1330
1331
|
var _theme$styles, _main$dialog2;
|
|
1331
|
-
var
|
|
1332
|
+
var scope = _ref.scope,
|
|
1333
|
+
open = _ref.open,
|
|
1334
|
+
dialog = _ref.dialog,
|
|
1335
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1336
|
+
var _useState = useState(open === true),
|
|
1332
1337
|
modalVisible = _useState[0],
|
|
1333
1338
|
setModalVisible = _useState[1];
|
|
1334
1339
|
var _useState2 = useState(0),
|
|
1335
1340
|
index = _useState2[0],
|
|
1336
1341
|
setIndex = _useState2[1];
|
|
1337
1342
|
var main = ViewUtils.getCrud('view');
|
|
1338
|
-
//
|
|
1339
|
-
var scope = props.scope;
|
|
1343
|
+
//v4
|
|
1340
1344
|
var label = scope.getLabel();
|
|
1341
1345
|
var theme = scope.getTheme();
|
|
1342
1346
|
var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
|
|
@@ -1415,6 +1419,19 @@ function UIModal(props) {
|
|
|
1415
1419
|
color: color
|
|
1416
1420
|
};
|
|
1417
1421
|
var key = scope.currentDialog.name + "-" + index;
|
|
1422
|
+
var Content = function Content() {
|
|
1423
|
+
if (dialog != null && dialog.component) {
|
|
1424
|
+
var Aux = dialog == null ? void 0 : dialog.component;
|
|
1425
|
+
return /*#__PURE__*/jsx(Aux, {
|
|
1426
|
+
crud: scope.currentDialog
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
return /*#__PURE__*/jsx(UIChildren, {
|
|
1430
|
+
scope: scope,
|
|
1431
|
+
crud: scope.currentDialog,
|
|
1432
|
+
children: props.children
|
|
1433
|
+
});
|
|
1434
|
+
};
|
|
1418
1435
|
return /*#__PURE__*/jsxs(Modal, {
|
|
1419
1436
|
animationType: "slide",
|
|
1420
1437
|
transparent: true,
|
|
@@ -1460,11 +1477,7 @@ function UIModal(props) {
|
|
|
1460
1477
|
paddingTop: 10,
|
|
1461
1478
|
paddingBottom: 10
|
|
1462
1479
|
},
|
|
1463
|
-
children: /*#__PURE__*/jsx(
|
|
1464
|
-
scope: scope,
|
|
1465
|
-
crud: scope.currentDialog,
|
|
1466
|
-
children: props.children
|
|
1467
|
-
})
|
|
1480
|
+
children: /*#__PURE__*/jsx(Content, {})
|
|
1468
1481
|
})
|
|
1469
1482
|
}), bottom]
|
|
1470
1483
|
}), /*#__PURE__*/jsx(UIToast, {})]
|
|
@@ -2049,6 +2062,7 @@ function UIElement(props) {
|
|
|
2049
2062
|
scope: scope,
|
|
2050
2063
|
crud: dialog.crud,
|
|
2051
2064
|
open: true,
|
|
2065
|
+
dialog: dialog,
|
|
2052
2066
|
children: dialog.component
|
|
2053
2067
|
})), scope.isType('chart') && /*#__PURE__*/jsx(ElChart, _extends({}, props, {
|
|
2054
2068
|
scope: scope,
|
|
@@ -2335,7 +2349,7 @@ function SafeView(props) {
|
|
|
2335
2349
|
});
|
|
2336
2350
|
}
|
|
2337
2351
|
|
|
2338
|
-
var _excluded = ["type"];
|
|
2352
|
+
var _excluded$1 = ["type"];
|
|
2339
2353
|
var UI = {
|
|
2340
2354
|
Order: function Order(props) {
|
|
2341
2355
|
return /*#__PURE__*/jsx(UIElement, _extends({}, props, {
|
|
@@ -2379,7 +2393,7 @@ var UI = {
|
|
|
2379
2393
|
return /*#__PURE__*/jsx(UIInclude, _extends({}, props));
|
|
2380
2394
|
},
|
|
2381
2395
|
Column: function Column(_ref) {
|
|
2382
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
2396
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
2383
2397
|
return /*#__PURE__*/jsx(UIElement, _extends({}, props, {
|
|
2384
2398
|
type: "column"
|
|
2385
2399
|
}));
|