react-crud-mobile 1.3.261 → 1.3.263
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 +6 -2
- 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 +6 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIModal.tsx +5 -1
@@ -1368,17 +1368,21 @@ function UIModal(props) {
|
|
1368
1368
|
var _main$dialog, _theme$styles;
|
1369
1369
|
var owner = props.scope;
|
1370
1370
|
var _useState = useState(0),
|
1371
|
-
index = _useState[0]
|
1371
|
+
index = _useState[0],
|
1372
|
+
setIndex = _useState[1];
|
1372
1373
|
var dialog = owner.currentDialog;
|
1373
1374
|
var _useState2 = useState(!Utils.isEmpty(dialog)),
|
1374
1375
|
modalVisible = _useState2[0],
|
1375
1376
|
setModalVisible = _useState2[1];
|
1376
|
-
//
|
1377
|
+
//v2
|
1377
1378
|
var curr = dialog == null ? void 0 : dialog.crud;
|
1378
1379
|
var main = ViewUtils.getCrud('view');
|
1379
1380
|
if (!dialog) {
|
1380
1381
|
return /*#__PURE__*/jsx(Fragment, {});
|
1381
1382
|
}
|
1383
|
+
dialog.update = function () {
|
1384
|
+
setIndex(++index);
|
1385
|
+
};
|
1382
1386
|
if (dialog.debug) console.log(dialog);
|
1383
1387
|
if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
|
1384
1388
|
return /*#__PURE__*/jsx(Fragment, {});
|