react-crud-mobile 1.3.91 → 1.3.94
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 +16 -10
- 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 -10
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +2 -1
- package/src/elements/core/UIModal.tsx +8 -7
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.
|
|
2
|
+
"version": "1.3.94",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "Uma biblioteca de componentes para React Native",
|
|
5
5
|
"main": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@react-native-vector-icons/ionicons": "^7.4.0",
|
|
46
46
|
"@react-native-vector-icons/material-icons": "^0.0.1",
|
|
47
47
|
"react": "19.0.0",
|
|
48
|
-
"react-crud-utils": "^0.1.
|
|
48
|
+
"react-crud-utils": "^0.1.375",
|
|
49
49
|
"react-dom": "19.0.0",
|
|
50
50
|
"react-native": "0.79.2",
|
|
51
51
|
"react-native-draggable-flatlist": "^4.0.3",
|
|
@@ -605,6 +605,7 @@ export default function UIElement(props: ElementType) {
|
|
|
605
605
|
let def: any = {};
|
|
606
606
|
let rowItem = null;
|
|
607
607
|
let main = ViewUtils.getCrud('view');
|
|
608
|
+
let parent = main.dialog;
|
|
608
609
|
|
|
609
610
|
if (crud.is('row')) {
|
|
610
611
|
def.parent = crud.parent.parent;
|
|
@@ -633,7 +634,7 @@ export default function UIElement(props: ElementType) {
|
|
|
633
634
|
|
|
634
635
|
main.dialog = d;
|
|
635
636
|
|
|
636
|
-
scope.currentDialog = { component, crud: d };
|
|
637
|
+
scope.currentDialog = { component, crud: d, scope, parent };
|
|
637
638
|
scope.update();
|
|
638
639
|
}
|
|
639
640
|
};
|
|
@@ -61,6 +61,7 @@ export default function UIModal({
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
scope.dialogShow = (args?: MethodType) => {
|
|
64
|
+
let parent = main.dialog;
|
|
64
65
|
let { crud } = args;
|
|
65
66
|
let name = scope.getName('modal');
|
|
66
67
|
let edit = args.edit === true;
|
|
@@ -83,16 +84,16 @@ export default function UIModal({
|
|
|
83
84
|
parent: crud,
|
|
84
85
|
root: crud,
|
|
85
86
|
name,
|
|
86
|
-
dialog: main.dialog,
|
|
87
87
|
data,
|
|
88
88
|
edit,
|
|
89
89
|
scope,
|
|
90
90
|
...def,
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
let dialog = { crud: d, parent };
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
main.dialog = dialog;
|
|
96
|
+
scope.currentDialog = dialog;
|
|
96
97
|
|
|
97
98
|
toggle(true);
|
|
98
99
|
scope.update();
|
|
@@ -101,13 +102,13 @@ export default function UIModal({
|
|
|
101
102
|
scope.dialogHide = (args?: MethodType) => {
|
|
102
103
|
let old = scope.currentDialog;
|
|
103
104
|
|
|
104
|
-
main.dialog = Utils.nvl(old.
|
|
105
|
+
main.dialog = Utils.nvl(old.parent, null);
|
|
105
106
|
scope.currentDialog = null;
|
|
106
107
|
|
|
107
108
|
toggle(false);
|
|
108
109
|
|
|
109
|
-
if (main.dialog?.scope) {
|
|
110
|
-
main.dialog.scope.update();
|
|
110
|
+
if (main.dialog?.crud?.scope) {
|
|
111
|
+
main.dialog?.crud.scope.update();
|
|
111
112
|
}
|
|
112
113
|
scope.update();
|
|
113
114
|
};
|
|
@@ -118,7 +119,7 @@ export default function UIModal({
|
|
|
118
119
|
return <></>;
|
|
119
120
|
}
|
|
120
121
|
|
|
121
|
-
if (curr.uuid !== main.dialog?.uuid) {
|
|
122
|
+
if (curr.uuid !== main.dialog?.crud?.uuid) {
|
|
122
123
|
return <></>;
|
|
123
124
|
}
|
|
124
125
|
|