react-crud-mobile 1.0.558 → 1.0.560

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.
@@ -748,6 +748,26 @@ function UIList(props) {
748
748
  children: empty
749
749
  });
750
750
  };
751
+ var RowItem = function RowItem(_ref) {
752
+ var item = _ref.item,
753
+ index = _ref.index,
754
+ children = _ref.children;
755
+ if (!original.click) {
756
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
757
+ style: getRowStyle(),
758
+ children: children
759
+ }, "k-" + index);
760
+ }
761
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
762
+ style: getRowStyle(),
763
+ underlayColor: 'transparent',
764
+ onPress: function onPress(e) {
765
+ e.stopPropagation();
766
+ onClick(item);
767
+ },
768
+ children: children
769
+ }, "k-" + index);
770
+ };
751
771
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
752
772
  children: [original.search !== false && /*#__PURE__*/jsxRuntime.jsx(UI.Text, {
753
773
  placeholder: "Pesquisar...",
@@ -761,19 +781,16 @@ function UIList(props) {
761
781
  }), /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
762
782
  style: getContainerStyle(),
763
783
  children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), items.map(function (item, i) {
764
- return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
765
- style: getRowStyle(),
766
- underlayColor: 'transparent',
767
- onPress: function onPress(e) {
768
- onClick(item);
769
- },
784
+ return /*#__PURE__*/jsxRuntime.jsx(RowItem, {
785
+ index: i,
786
+ item: item,
770
787
  children: /*#__PURE__*/jsxRuntime.jsx(UIListRow, {
771
788
  scope: scope,
772
789
  item: item,
773
790
  index: i,
774
791
  children: props.children
775
792
  })
776
- }, "k-" + i);
793
+ });
777
794
  }), isShowAdd() && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
778
795
  children: add
779
796
  })]
@@ -1050,6 +1067,7 @@ function UIModal(props) {
1050
1067
  }
1051
1068
  var d = reactCrudUtils.CrudUtils.create('dialog', _extends({
1052
1069
  parent: crud,
1070
+ root: crud,
1053
1071
  name: name,
1054
1072
  dialog: main.dialog,
1055
1073
  data: data,