react-crud-mobile 1.3.270 → 1.3.275
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 -3
- 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 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +8 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-crud-mobile",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.275",
|
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.433",
|
50
50
|
"react-dom": "19.1.0",
|
51
51
|
"react-native": "0.81.4",
|
52
52
|
"react-native-draggable-flatlist": "^4.0.3",
|
@@ -614,6 +614,7 @@ export default function UIElement(props: ElementType) {
|
|
614
614
|
|
615
615
|
if (event?.debug) console.log(args);
|
616
616
|
|
617
|
+
let caller = args.caller;
|
617
618
|
let main = ViewUtils.getCrud('view');
|
618
619
|
let parent = main.dialog;
|
619
620
|
let { crud } = args;
|
@@ -622,6 +623,7 @@ export default function UIElement(props: ElementType) {
|
|
622
623
|
let def: any = {};
|
623
624
|
let rowItem = null;
|
624
625
|
let component = event?.component;
|
626
|
+
let elo = Utils.nvl(caller?.original, original);
|
625
627
|
|
626
628
|
if (crud.is('row')) {
|
627
629
|
def.parent = crud.parent.parent;
|
@@ -657,8 +659,8 @@ export default function UIElement(props: ElementType) {
|
|
657
659
|
});
|
658
660
|
|
659
661
|
let el: any = {
|
660
|
-
label:
|
661
|
-
icon:
|
662
|
+
label: elo.label,
|
663
|
+
icon: elo.icon,
|
662
664
|
type: 'dialog',
|
663
665
|
};
|
664
666
|
|
@@ -672,7 +674,9 @@ export default function UIElement(props: ElementType) {
|
|
672
674
|
if (event.label) el.label = event.label;
|
673
675
|
if (event.title) el.title = event.title;
|
674
676
|
|
675
|
-
|
677
|
+
let label = Utils.nvl(el.title, el.label);
|
678
|
+
|
679
|
+
el.label = label;
|
676
680
|
|
677
681
|
let dialogScope = ScopeUtils.create({
|
678
682
|
parent: scope,
|
@@ -683,6 +687,7 @@ export default function UIElement(props: ElementType) {
|
|
683
687
|
|
684
688
|
let dialog = {
|
685
689
|
crud: d,
|
690
|
+
label,
|
686
691
|
parent,
|
687
692
|
component,
|
688
693
|
scope: dialogScope,
|