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.
@@ -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
  })
@@ -1450,14 +1451,10 @@ function UIModal(_ref) {
1450
1451
  var ModalInner = function ModalInner() {
1451
1452
  var Content = function Content() {
1452
1453
  if (dialog != null && dialog.component) {
1453
- var Aux = dialog == null ? void 0 : dialog.component({
1454
- crud: dialog.crud,
1455
- scope: dialog.scope
1456
- });
1457
- console.log(Aux);
1458
- return /*#__PURE__*/jsx(Fragment, {
1459
- children: Aux
1460
- });
1454
+ var Aux = dialog == null ? void 0 : dialog.component;
1455
+ return /*#__PURE__*/jsx(Aux, {
1456
+ crud: curr
1457
+ }, curr.uuid);
1461
1458
  }
1462
1459
  return /*#__PURE__*/jsx(UIChildren, {
1463
1460
  scope: scope,
@@ -1466,8 +1463,6 @@ function UIModal(_ref) {
1466
1463
  });
1467
1464
  };
1468
1465
  var content = /*#__PURE__*/jsx(Content, {});
1469
- //v1
1470
- console.log(content);
1471
1466
  if (original["transient"]) {
1472
1467
  return /*#__PURE__*/jsx(View, {
1473
1468
  style: style('modalSafe'),