react-crud-mobile 1.3.204 → 1.3.208
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 +19 -16
- 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 +19 -16
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +9 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-crud-mobile",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.208",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Uma biblioteca de componentes para React Native",
|
6
6
|
"main": "dist/index.js",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@react-native-vector-icons/material-icons": "^0.0.1",
|
47
47
|
"expo-status-bar": "~3.0.8",
|
48
48
|
"react": "19.1.0",
|
49
|
-
"react-crud-utils": "^0.1.
|
49
|
+
"react-crud-utils": "^0.1.404",
|
50
50
|
"react-dom": "19.1.0",
|
51
51
|
"react-native": "0.81.4",
|
52
52
|
"react-native-draggable-flatlist": "^4.0.3",
|
@@ -57,7 +57,7 @@ export default function UIElement(props: ElementType) {
|
|
57
57
|
const theme = Utils.nvl(props.theme, ctx?.theme);
|
58
58
|
|
59
59
|
let crud: Crud = Utils.nvl(props.crud, ctx?.crud);
|
60
|
-
let
|
60
|
+
let scope = ScopeUtils.create({ crud, ...props, theme }) as Scope;
|
61
61
|
let [index, setIndex] = useState(0);
|
62
62
|
let [error, setError]: string | any = useState(null);
|
63
63
|
|
@@ -500,9 +500,12 @@ export default function UIElement(props: ElementType) {
|
|
500
500
|
};
|
501
501
|
|
502
502
|
let Container = () => {
|
503
|
-
|
504
|
-
|
505
|
-
|
503
|
+
let [indxContainer, setIndxContainer] = useState(0);
|
504
|
+
|
505
|
+
scope.updaters.container = () => {
|
506
|
+
setIndxContainer(++indxContainer);
|
507
|
+
};
|
508
|
+
|
506
509
|
return (
|
507
510
|
<>
|
508
511
|
{isShowLabel() && (
|
@@ -675,6 +678,7 @@ export default function UIElement(props: ElementType) {
|
|
675
678
|
dialogScope.toggleDialog(true);
|
676
679
|
|
677
680
|
scope.update();
|
681
|
+
scope.updaters.container?.();
|
678
682
|
};
|
679
683
|
|
680
684
|
scope.dialogHide = (args?: MethodType) => {
|
@@ -727,7 +731,7 @@ let boxStyle = StyleSheet.create({
|
|
727
731
|
const box: any = {
|
728
732
|
...boxStyle.box,
|
729
733
|
};
|
730
|
-
//
|
734
|
+
//v5
|
731
735
|
const elementStyle: any = {};
|
732
736
|
|
733
737
|
elementStyle.view = {
|