react-crud-mobile 1.3.222 → 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.
@@ -492,12 +492,12 @@ function UIButton(props) {
492
492
  }
493
493
 
494
494
  function UISelect(props) {
495
- var _theme$styles, _theme$colors, _scope$original, _scope$original2;
495
+ var _theme$styles, _theme$colors;
496
496
  var _useState = useState(false),
497
497
  modalVisible = _useState[0],
498
498
  setModalVisible = _useState[1];
499
499
  var scope = props.scope;
500
- var element = scope.original;
500
+ var original = scope.original;
501
501
  var items = Utils.nvl(scope.getOptions(), []);
502
502
  var placeholder = scope.attr('placeholder', 'Selecione...');
503
503
  var value = scope.getDisplayValue();
@@ -515,7 +515,7 @@ function UISelect(props) {
515
515
  var onClick = function onClick(_ref) {
516
516
  var value = _ref.value;
517
517
  var val = value;
518
- if (element.isObject && val != null && val.object) {
518
+ if (original.isObject && val != null && val.object) {
519
519
  scope.changeValue(val == null ? void 0 : val.object);
520
520
  } else if (val != null && val.value) {
521
521
  scope.changeValue(val == null ? void 0 : val.value);
@@ -592,12 +592,13 @@ function UISelect(props) {
592
592
  data: items,
593
593
  name: scope.getName('list'),
594
594
  layout: "card",
595
+ search: original.search === true,
595
596
  click: onClick,
596
597
  rowStyle: _extends({
597
598
  paddingLeft: 15,
598
599
  paddinRight: 15
599
- }, (_scope$original = scope.original) == null ? void 0 : _scope$original.rowStyle)
600
- }, (_scope$original2 = scope.original) == null ? void 0 : _scope$original2.listProps, {
600
+ }, original == null ? void 0 : original.rowStyle)
601
+ }, original == null ? void 0 : original.listProps, {
601
602
  children: /*#__PURE__*/jsx(UI.Value, {
602
603
  value: "#{@this.label}"
603
604
  })