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.
- package/dist/react-crud-mobile.cjs.development.js +6 -5
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +6 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +5 -4
@@ -501,12 +501,12 @@ function UIButton(props) {
|
|
501
501
|
}
|
502
502
|
|
503
503
|
function UISelect(props) {
|
504
|
-
var _theme$styles, _theme$colors
|
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
|
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 (
|
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
|
-
},
|
609
|
-
},
|
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
|
})
|