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.
@@ -501,12 +501,12 @@ function UIButton(props) {
501
501
  }
502
502
 
503
503
  function UISelect(props) {
504
- var _theme$styles, _theme$colors, _scope$original, _scope$original2;
504
+ var _theme$styles, _theme$colors;
505
505
  var _useState = React.useState(false),
506
506
  modalVisible = _useState[0],
507
507
  setModalVisible = _useState[1];
508
508
  var scope = props.scope;
509
- var element = scope.original;
509
+ var original = scope.original;
510
510
  var items = reactCrudUtils.Utils.nvl(scope.getOptions(), []);
511
511
  var placeholder = scope.attr('placeholder', 'Selecione...');
512
512
  var value = scope.getDisplayValue();
@@ -524,7 +524,7 @@ function UISelect(props) {
524
524
  var onClick = function onClick(_ref) {
525
525
  var value = _ref.value;
526
526
  var val = value;
527
- if (element.isObject && val != null && val.object) {
527
+ if (original.isObject && val != null && val.object) {
528
528
  scope.changeValue(val == null ? void 0 : val.object);
529
529
  } else if (val != null && val.value) {
530
530
  scope.changeValue(val == null ? void 0 : val.value);
@@ -601,12 +601,13 @@ function UISelect(props) {
601
601
  data: items,
602
602
  name: scope.getName('list'),
603
603
  layout: "card",
604
+ search: original.search === true,
604
605
  click: onClick,
605
606
  rowStyle: _extends({
606
607
  paddingLeft: 15,
607
608
  paddinRight: 15
608
- }, (_scope$original = scope.original) == null ? void 0 : _scope$original.rowStyle)
609
- }, (_scope$original2 = scope.original) == null ? void 0 : _scope$original2.listProps, {
609
+ }, original == null ? void 0 : original.rowStyle)
610
+ }, original == null ? void 0 : original.listProps, {
610
611
  children: /*#__PURE__*/jsxRuntime.jsx(UI.Value, {
611
612
  value: "#{@this.label}"
612
613
  })
@@ -1459,14 +1460,10 @@ function UIModal(_ref) {
1459
1460
  var ModalInner = function ModalInner() {
1460
1461
  var Content = function Content() {
1461
1462
  if (dialog != null && dialog.component) {
1462
- var Aux = dialog == null ? void 0 : dialog.component({
1463
- crud: dialog.crud,
1464
- scope: dialog.scope
1465
- });
1466
- console.log(Aux);
1467
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1468
- children: Aux
1469
- });
1463
+ var Aux = dialog == null ? void 0 : dialog.component;
1464
+ return /*#__PURE__*/jsxRuntime.jsx(Aux, {
1465
+ crud: curr
1466
+ }, curr.uuid);
1470
1467
  }
1471
1468
  return /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1472
1469
  scope: scope,
@@ -1475,8 +1472,6 @@ function UIModal(_ref) {
1475
1472
  });
1476
1473
  };
1477
1474
  var content = /*#__PURE__*/jsxRuntime.jsx(Content, {});
1478
- //v1
1479
- console.log(content);
1480
1475
  if (original["transient"]) {
1481
1476
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1482
1477
  style: style('modalSafe'),