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.
@@ -1902,13 +1902,24 @@ function UIElement(props) {
1902
1902
  }
1903
1903
  return true;
1904
1904
  };
1905
- var Tag = reactNative.View;
1905
+ var isTouch = !scope.isType('input', 'grid', 'list', 'order', 'repeat') && original.click;
1906
1906
  var custom = {};
1907
- if (!scope.isType('input', 'grid', 'list', 'repeat') && original.click) {
1908
- Tag = reactNative.TouchableHighlight;
1907
+ if (isTouch) {
1909
1908
  custom.underlayColor = 'transparent';
1910
1909
  custom.onPress = onClick;
1911
1910
  }
1911
+ var Tag = function Tag(props) {
1912
+ var Aux = reactNative.View;
1913
+ if (isTouch) {
1914
+ Aux = reactNative.TouchableHighlight;
1915
+ }
1916
+ if (scope.isType('dialog')) {
1917
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1918
+ children: props.children
1919
+ });
1920
+ }
1921
+ return /*#__PURE__*/jsxRuntime.jsx(Aux, _extends({}, props));
1922
+ };
1912
1923
  var Inner = function Inner() {
1913
1924
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1914
1925
  children: [scope.getPart('render', null, /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})), scope.is('type', 'button') && /*#__PURE__*/jsxRuntime.jsxs(UIButton, _extends({}, defaultsUI, {
@@ -2020,6 +2031,12 @@ function UIElement(props) {
2020
2031
  }), scope.isType('list', 'repeat') && /*#__PURE__*/jsxRuntime.jsx(UIList, _extends({}, props, {
2021
2032
  scope: scope,
2022
2033
  crud: crud
2034
+ })), scope.isType('order') && /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
2035
+ scope: scope,
2036
+ crud: crud
2037
+ })), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
2038
+ scope: scope,
2039
+ crud: crud
2023
2040
  })), scope.isType('chart') && /*#__PURE__*/jsxRuntime.jsx(ElChart, _extends({}, props, {
2024
2041
  scope: scope,
2025
2042
  crud: crud
@@ -2066,41 +2083,19 @@ function UIElement(props) {
2066
2083
  children: props.children
2067
2084
  });
2068
2085
  };
2069
- var Decorate = function Decorate(props) {
2070
- if (scope.isType('order')) {
2071
- return /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
2072
- scope: scope,
2073
- crud: crud
2074
- }));
2075
- }
2076
- if (scope.isType('dialog')) {
2077
- return /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
2078
- scope: scope,
2079
- crud: crud
2080
- }));
2081
- }
2082
- return /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
2083
- ref: ref,
2084
- style: getStyle()
2085
- }, custom, {
2086
- children: props.children
2087
- }));
2088
- };
2089
2086
  return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
2090
2087
  value: {
2091
2088
  crud: crud,
2092
2089
  theme: theme
2093
2090
  },
2094
- children: /*#__PURE__*/jsxRuntime.jsx(Decorate, {
2095
- children: /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
2096
- ref: ref,
2097
- style: getStyle()
2098
- }, custom, {
2099
- children: /*#__PURE__*/jsxRuntime.jsx(Card, {
2100
- children: /*#__PURE__*/jsxRuntime.jsx(Container, {})
2101
- })
2102
- }))
2103
- })
2091
+ children: /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
2092
+ ref: ref,
2093
+ style: getStyle()
2094
+ }, custom, {
2095
+ children: /*#__PURE__*/jsxRuntime.jsx(Card, {
2096
+ children: /*#__PURE__*/jsxRuntime.jsx(Container, {})
2097
+ })
2098
+ }))
2104
2099
  });
2105
2100
  }
2106
2101
  var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({