react-crud-mobile 1.3.269 → 1.3.274
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 +7 -5
- 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 +7 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +4 -2
- package/src/elements/core/UIModal.tsx +2 -2
@@ -1365,7 +1365,7 @@ function UIToast() {
|
|
1365
1365
|
}
|
1366
1366
|
|
1367
1367
|
function UIModal(props) {
|
1368
|
-
var
|
1368
|
+
var _theme$styles;
|
1369
1369
|
var owner = props.scope;
|
1370
1370
|
var _useState = useState(0),
|
1371
1371
|
index = _useState[0],
|
@@ -1381,7 +1381,7 @@ function UIModal(props) {
|
|
1381
1381
|
setIndex(++index);
|
1382
1382
|
};
|
1383
1383
|
if (dialog.debug) console.log(dialog);
|
1384
|
-
|
1384
|
+
//const modalVisible = curr.uuid === main.dialog?.crud?.uuid;
|
1385
1385
|
var scope = dialog.scope;
|
1386
1386
|
var label = scope.getLabel();
|
1387
1387
|
var theme = scope.getTheme();
|
@@ -1505,7 +1505,7 @@ function UIModal(props) {
|
|
1505
1505
|
children: /*#__PURE__*/jsx(Modal, {
|
1506
1506
|
animationType: "slide",
|
1507
1507
|
transparent: true,
|
1508
|
-
visible:
|
1508
|
+
visible: true,
|
1509
1509
|
onRequestClose: onClose,
|
1510
1510
|
children: /*#__PURE__*/jsx(ModalInner, {})
|
1511
1511
|
}, key)
|
@@ -2217,6 +2217,7 @@ function UIElement(props) {
|
|
2217
2217
|
var _event$dialog;
|
2218
2218
|
var event = Utils.nvl(args == null ? void 0 : args.event, {});
|
2219
2219
|
if (event != null && event.debug) console.log(args);
|
2220
|
+
var caller = args.caller;
|
2220
2221
|
var main = ViewUtils.getCrud('view');
|
2221
2222
|
var parent = main.dialog;
|
2222
2223
|
var crud = args.crud;
|
@@ -2225,6 +2226,7 @@ function UIElement(props) {
|
|
2225
2226
|
var def = {};
|
2226
2227
|
var rowItem = null;
|
2227
2228
|
var component = event == null ? void 0 : event.component;
|
2229
|
+
var elo = Utils.nvl(caller == null ? void 0 : caller.original, original);
|
2228
2230
|
if (crud.is('row')) {
|
2229
2231
|
def.parent = crud.parent.parent;
|
2230
2232
|
def.search = crud.parent;
|
@@ -2251,8 +2253,8 @@ function UIElement(props) {
|
|
2251
2253
|
scope: scope
|
2252
2254
|
}, def));
|
2253
2255
|
var el = {
|
2254
|
-
label:
|
2255
|
-
icon:
|
2256
|
+
label: elo.label,
|
2257
|
+
icon: elo.icon,
|
2256
2258
|
type: 'dialog'
|
2257
2259
|
};
|
2258
2260
|
var close = (_event$dialog = event.dialog) == null ? void 0 : _event$dialog.close;
|