react-crud-mobile 1.3.222 → 1.3.224

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.222",
3
+ "version": "1.3.224",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -125,9 +125,10 @@ export default function UIModal({
125
125
  const ModalInner = () => {
126
126
  let Content = () => {
127
127
  if (dialog?.component) {
128
- let Aux = dialog?.component;
128
+ let cprops = dialog.props;
129
+ let Aux = dialog.component;
129
130
 
130
- return <Aux key={curr.uuid} crud={curr} />;
131
+ return <Aux key={curr.uuid} crud={curr} {...cprops} />;
131
132
  }
132
133
 
133
134
  return (
@@ -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 element = scope.original;
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 (element.isObject && val?.object) {
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
- ...scope.original?.rowStyle,
119
+ ...original?.rowStyle,
119
120
  }}
120
- {...scope.original?.listProps}
121
+ {...original?.listProps}
121
122
  >
122
123
  <UI.Value value="#{@this.label}" />
123
124
  </UI.List>