react-crud-mobile 1.3.65 → 1.3.67

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,24 @@ 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')) {
1908
+ return /*#__PURE__*/jsx(Fragment, {
1909
+ children: props.children
1910
+ });
1911
+ }
1912
+ return /*#__PURE__*/jsx(Aux, _extends({}, props));
1913
+ };
1903
1914
  var Inner = function Inner() {
1904
1915
  return /*#__PURE__*/jsxs(Fragment, {
1905
1916
  children: [scope.getPart('render', null, /*#__PURE__*/jsx(Fragment, {})), scope.is('type', 'button') && /*#__PURE__*/jsxs(UIButton, _extends({}, defaultsUI, {
@@ -2011,6 +2022,12 @@ function UIElement(props) {
2011
2022
  }), scope.isType('list', 'repeat') && /*#__PURE__*/jsx(UIList, _extends({}, props, {
2012
2023
  scope: scope,
2013
2024
  crud: crud
2025
+ })), scope.isType('order') && /*#__PURE__*/jsx(UIOrder, _extends({}, props, {
2026
+ scope: scope,
2027
+ crud: crud
2028
+ })), scope.isType('dialog') && /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2029
+ scope: scope,
2030
+ crud: crud
2014
2031
  })), scope.isType('chart') && /*#__PURE__*/jsx(ElChart, _extends({}, props, {
2015
2032
  scope: scope,
2016
2033
  crud: crud
@@ -2057,41 +2074,19 @@ function UIElement(props) {
2057
2074
  children: props.children
2058
2075
  });
2059
2076
  };
2060
- var Decorate = function Decorate(props) {
2061
- if (scope.isType('order')) {
2062
- return /*#__PURE__*/jsx(UIOrder, _extends({}, props, {
2063
- scope: scope,
2064
- crud: crud
2065
- }));
2066
- }
2067
- if (scope.isType('dialog')) {
2068
- return /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2069
- scope: scope,
2070
- crud: crud
2071
- }));
2072
- }
2073
- return /*#__PURE__*/jsx(Tag, _extends({
2074
- ref: ref,
2075
- style: getStyle()
2076
- }, custom, {
2077
- children: props.children
2078
- }));
2079
- };
2080
2077
  return /*#__PURE__*/jsx(CrudContext.Provider, {
2081
2078
  value: {
2082
2079
  crud: crud,
2083
2080
  theme: theme
2084
2081
  },
2085
- children: /*#__PURE__*/jsx(Decorate, {
2086
- children: /*#__PURE__*/jsx(Tag, _extends({
2087
- ref: ref,
2088
- style: getStyle()
2089
- }, custom, {
2090
- children: /*#__PURE__*/jsx(Card, {
2091
- children: /*#__PURE__*/jsx(Container, {})
2092
- })
2093
- }))
2094
- })
2082
+ children: /*#__PURE__*/jsx(Tag, _extends({
2083
+ ref: ref,
2084
+ style: getStyle()
2085
+ }, custom, {
2086
+ children: /*#__PURE__*/jsx(Card, {
2087
+ children: /*#__PURE__*/jsx(Container, {})
2088
+ })
2089
+ }))
2095
2090
  });
2096
2091
  }
2097
2092
  var boxStyle = /*#__PURE__*/StyleSheet.create({