react-crud-mobile 1.3.11 → 1.3.13
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 +7 -2
- 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 +7 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIAutoComplete.tsx +17 -17
- package/src/elements/core/UILink.tsx +17 -17
- package/src/elements/core/UIListItem.tsx +32 -32
- package/src/elements/core/UIModal.tsx +0 -2
- package/src/elements/core/UIOption.tsx +17 -17
- package/src/elements/core/UIRadio.tsx +17 -17
- package/src/elements/core/UISelect.tsx +9 -1
- package/src/elements/core/UISlider.tsx +61 -61
- package/src/elements/core/UISwitch.tsx +27 -27
- package/src/hooks/useIsVisible.ts +39 -39
- package/src/utils/MobileUtils.ts +12 -12
|
@@ -494,6 +494,7 @@ function UISelect(props) {
|
|
|
494
494
|
modalVisible = _useState[0],
|
|
495
495
|
setModalVisible = _useState[1];
|
|
496
496
|
var scope = props.scope;
|
|
497
|
+
var element = scope.original;
|
|
497
498
|
var items = reactCrudUtils.Utils.nvl(scope.getOptions(), []);
|
|
498
499
|
var placeholder = scope.attr('placeholder', 'Selecione...');
|
|
499
500
|
var value = scope.getDisplayValue();
|
|
@@ -506,7 +507,12 @@ function UISelect(props) {
|
|
|
506
507
|
};
|
|
507
508
|
var onClick = function onClick(_ref) {
|
|
508
509
|
var value = _ref.value;
|
|
509
|
-
|
|
510
|
+
var val = value;
|
|
511
|
+
if (element.isObject && val != null && val.object) {
|
|
512
|
+
scope.changeValue(val == null ? void 0 : val.object);
|
|
513
|
+
} else {
|
|
514
|
+
scope.changeValue(value);
|
|
515
|
+
}
|
|
510
516
|
handlePress();
|
|
511
517
|
};
|
|
512
518
|
var style = function style(part, extra) {
|
|
@@ -1407,7 +1413,6 @@ function UIModal(props) {
|
|
|
1407
1413
|
color: color
|
|
1408
1414
|
};
|
|
1409
1415
|
var key = scope.currentDialog.name + "-" + index;
|
|
1410
|
-
console.log(key);
|
|
1411
1416
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
|
|
1412
1417
|
animationType: "slide",
|
|
1413
1418
|
transparent: true,
|