react-crud-mobile 1.3.221 → 1.3.223
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 +10 -15
- 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 +10 -15
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +2 -6
- package/src/elements/core/UISelect.tsx +5 -4
package/package.json
CHANGED
@@ -125,10 +125,9 @@ export default function UIModal({
|
|
125
125
|
const ModalInner = () => {
|
126
126
|
let Content = () => {
|
127
127
|
if (dialog?.component) {
|
128
|
-
let Aux = dialog?.component
|
128
|
+
let Aux = dialog?.component;
|
129
129
|
|
130
|
-
|
131
|
-
return <>{Aux}</>;
|
130
|
+
return <Aux key={curr.uuid} crud={curr} />;
|
132
131
|
}
|
133
132
|
|
134
133
|
return (
|
@@ -140,9 +139,6 @@ export default function UIModal({
|
|
140
139
|
|
141
140
|
let content = <Content />;
|
142
141
|
|
143
|
-
//v1
|
144
|
-
console.log(content);
|
145
|
-
|
146
142
|
if (original.transient) {
|
147
143
|
return <View style={style('modalSafe')}>{content}</View>;
|
148
144
|
}
|
@@ -15,7 +15,7 @@ import UI from '../UI';
|
|
15
15
|
export default function UISelect(props: ChildType) {
|
16
16
|
const [modalVisible, setModalVisible] = useState(false);
|
17
17
|
const scope = props.scope;
|
18
|
-
const
|
18
|
+
const original = scope.original;
|
19
19
|
const items = Utils.nvl(scope.getOptions(), []);
|
20
20
|
const placeholder = scope.attr('placeholder', 'Selecione...');
|
21
21
|
const value = scope.getDisplayValue();
|
@@ -32,7 +32,7 @@ export default function UISelect(props: ChildType) {
|
|
32
32
|
const onClick = ({ crud, value }: MethodType) => {
|
33
33
|
let val = value as any;
|
34
34
|
|
35
|
-
if (
|
35
|
+
if (original.isObject && val?.object) {
|
36
36
|
scope.changeValue(val?.object);
|
37
37
|
} else if (val?.value) {
|
38
38
|
scope.changeValue(val?.value);
|
@@ -111,13 +111,14 @@ export default function UISelect(props: ChildType) {
|
|
111
111
|
data={items}
|
112
112
|
name={scope.getName('list')}
|
113
113
|
layout="card"
|
114
|
+
search={original.search === true}
|
114
115
|
click={onClick}
|
115
116
|
rowStyle={{
|
116
117
|
paddingLeft: 15,
|
117
118
|
paddinRight: 15,
|
118
|
-
...
|
119
|
+
...original?.rowStyle,
|
119
120
|
}}
|
120
|
-
{...
|
121
|
+
{...original?.listProps}
|
121
122
|
>
|
122
123
|
<UI.Value value="#{@this.label}" />
|
123
124
|
</UI.List>
|