react-crud-mobile 1.3.66 → 1.3.68

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.
@@ -1893,13 +1893,25 @@ function UIElement(props) {
1893
1893
  }
1894
1894
  return true;
1895
1895
  };
1896
- var Tag = View;
1896
+ var isTouch = !scope.isType('input', 'grid', 'list', 'order', 'repeat') && original.click;
1897
1897
  var custom = {};
1898
- if (!scope.isType('input', 'grid', 'list', 'repeat') && original.click) {
1899
- Tag = TouchableHighlight;
1898
+ if (isTouch) {
1900
1899
  custom.underlayColor = 'transparent';
1901
1900
  custom.onPress = onClick;
1902
1901
  }
1902
+ var Tag = function Tag(props) {
1903
+ var Aux = View;
1904
+ if (isTouch) {
1905
+ Aux = TouchableHighlight;
1906
+ }
1907
+ if (scope.isType('dialog', 'order')) {
1908
+ console.log('dialogggg');
1909
+ return /*#__PURE__*/jsx(Fragment, {
1910
+ children: props.children
1911
+ });
1912
+ }
1913
+ return /*#__PURE__*/jsx(Aux, _extends({}, props));
1914
+ };
1903
1915
  var Inner = function Inner() {
1904
1916
  return /*#__PURE__*/jsxs(Fragment, {
1905
1917
  children: [scope.getPart('render', null, /*#__PURE__*/jsx(Fragment, {})), scope.is('type', 'button') && /*#__PURE__*/jsxs(UIButton, _extends({}, defaultsUI, {
@@ -2011,6 +2023,12 @@ function UIElement(props) {
2011
2023
  }), scope.isType('list', 'repeat') && /*#__PURE__*/jsx(UIList, _extends({}, props, {
2012
2024
  scope: scope,
2013
2025
  crud: crud
2026
+ })), scope.isType('order') && /*#__PURE__*/jsx(UIOrder, _extends({}, props, {
2027
+ scope: scope,
2028
+ crud: crud
2029
+ })), scope.isType('dialog') && /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2030
+ scope: scope,
2031
+ crud: crud
2014
2032
  })), scope.isType('chart') && /*#__PURE__*/jsx(ElChart, _extends({}, props, {
2015
2033
  scope: scope,
2016
2034
  crud: crud
@@ -2020,9 +2038,6 @@ function UIElement(props) {
2020
2038
  })), scope.isType('view') && /*#__PURE__*/jsx(UIView, _extends({}, props, {
2021
2039
  scope: scope,
2022
2040
  crud: crud
2023
- })), scope.isType('dialog') && /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2024
- scope: scope,
2025
- crud: crud
2026
2041
  })), isShowChild() && /*#__PURE__*/jsx(UIChildren, _extends({}, props, {
2027
2042
  scope: scope,
2028
2043
  crud: crud,
@@ -2060,35 +2075,19 @@ function UIElement(props) {
2060
2075
  children: props.children
2061
2076
  });
2062
2077
  };
2063
- var Decorate = function Decorate(props) {
2064
- if (scope.isType('order')) {
2065
- return /*#__PURE__*/jsx(UIOrder, _extends({}, props, {
2066
- scope: scope,
2067
- crud: crud
2068
- }));
2069
- }
2070
- return /*#__PURE__*/jsx(Tag, _extends({
2071
- ref: ref,
2072
- style: getStyle()
2073
- }, custom, {
2074
- children: props.children
2075
- }));
2076
- };
2077
2078
  return /*#__PURE__*/jsx(CrudContext.Provider, {
2078
2079
  value: {
2079
2080
  crud: crud,
2080
2081
  theme: theme
2081
2082
  },
2082
- children: /*#__PURE__*/jsx(Decorate, {
2083
- children: /*#__PURE__*/jsx(Tag, _extends({
2084
- ref: ref,
2085
- style: getStyle()
2086
- }, custom, {
2087
- children: /*#__PURE__*/jsx(Card, {
2088
- children: /*#__PURE__*/jsx(Container, {})
2089
- })
2090
- }))
2091
- })
2083
+ children: /*#__PURE__*/jsx(Tag, _extends({
2084
+ ref: ref,
2085
+ style: getStyle()
2086
+ }, custom, {
2087
+ children: /*#__PURE__*/jsx(Card, {
2088
+ children: /*#__PURE__*/jsx(Container, {})
2089
+ })
2090
+ }))
2092
2091
  });
2093
2092
  }
2094
2093
  var boxStyle = /*#__PURE__*/StyleSheet.create({