react-crud-mobile 1.0.610 → 1.0.612

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.
@@ -657,30 +657,6 @@ var styles$6 = /*#__PURE__*/reactNative.StyleSheet.create({
657
657
  }
658
658
  });
659
659
 
660
- function UIListRow(props) {
661
- var parent = props.scope;
662
- var item = props.item;
663
- var index = props.index;
664
- var name = "" + parent.key('row', index);
665
- var row = {
666
- parent: parent,
667
- name: name,
668
- crud: parent.crud,
669
- index: index,
670
- type: 'row',
671
- data: item
672
- };
673
- var _useState = React.useState(reactCrudUtils.ScopeUtils.create(row)),
674
- scope = _useState[0];
675
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
676
- children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
677
- scope: scope,
678
- crud: scope.crud,
679
- children: props.children
680
- })
681
- });
682
- }
683
-
684
660
  function UIList(props) {
685
661
  var _repeat$list;
686
662
  var scope = props.scope;
@@ -749,8 +725,7 @@ function UIList(props) {
749
725
  };
750
726
  var RowItem = function RowItem(_ref) {
751
727
  var item = _ref.item,
752
- index = _ref.index,
753
- children = _ref.children;
728
+ index = _ref.index;
754
729
  var name = "" + scope.key('row', index, '');
755
730
  var row = reactCrudUtils.ScopeUtils.create(_extends({}, original, {
756
731
  parent: scope,
@@ -770,7 +745,10 @@ function UIList(props) {
770
745
  if (!original.click) {
771
746
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
772
747
  style: getRowStyle(),
773
- children: children
748
+ children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
749
+ scope: row,
750
+ children: props.children
751
+ })
774
752
  }, "k-" + index);
775
753
  }
776
754
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
@@ -780,7 +758,10 @@ function UIList(props) {
780
758
  e.stopPropagation();
781
759
  onClick(item);
782
760
  },
783
- children: children
761
+ children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
762
+ scope: row,
763
+ children: props.children
764
+ })
784
765
  }, "k-" + index);
785
766
  };
786
767
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -798,13 +779,7 @@ function UIList(props) {
798
779
  children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), items.map(function (item, i) {
799
780
  return /*#__PURE__*/jsxRuntime.jsx(RowItem, {
800
781
  index: i,
801
- item: item,
802
- children: /*#__PURE__*/jsxRuntime.jsx(UIListRow, {
803
- scope: scope,
804
- item: item,
805
- index: i,
806
- children: props.children
807
- })
782
+ item: item
808
783
  });
809
784
  }), isShowAdd() && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
810
785
  children: add
@@ -867,6 +842,17 @@ var stylesRepeat = /*#__PURE__*/reactNative.StyleSheet.create({
867
842
  }
868
843
  });
869
844
 
845
+ function UIListRow(props) {
846
+ var scope = props.scope;
847
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
848
+ children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
849
+ scope: scope,
850
+ crud: scope.crud,
851
+ children: props.children
852
+ })
853
+ });
854
+ }
855
+
870
856
  function UIToggle(props) {
871
857
  var scope = props.scope;
872
858
  var options = reactCrudUtils.Utils.nvl(scope.getOptions(), []);