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.
@@ -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,10 +1460,11 @@ 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
- return /*#__PURE__*/jsxRuntime.jsx(Aux, {
1463
+ var cprops = dialog.props;
1464
+ var Aux = dialog.component;
1465
+ return /*#__PURE__*/jsxRuntime.jsx(Aux, _extends({
1464
1466
  crud: curr
1465
- }, curr.uuid);
1467
+ }, cprops), curr.uuid);
1466
1468
  }
1467
1469
  return /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1468
1470
  scope: scope,