react-crud-mobile 1.3.66 → 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
@@ -2029,9 +2046,6 @@ function UIElement(props) {
2029
2046
  })), scope.isType('view') && /*#__PURE__*/jsxRuntime.jsx(UIView, _extends({}, props, {
2030
2047
  scope: scope,
2031
2048
  crud: crud
2032
- })), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
2033
- scope: scope,
2034
- crud: crud
2035
2049
  })), isShowChild() && /*#__PURE__*/jsxRuntime.jsx(UIChildren, _extends({}, props, {
2036
2050
  scope: scope,
2037
2051
  crud: crud,
@@ -2069,35 +2083,19 @@ function UIElement(props) {
2069
2083
  children: props.children
2070
2084
  });
2071
2085
  };
2072
- var Decorate = function Decorate(props) {
2073
- if (scope.isType('order')) {
2074
- return /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
2075
- scope: scope,
2076
- crud: crud
2077
- }));
2078
- }
2079
- return /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
2080
- ref: ref,
2081
- style: getStyle()
2082
- }, custom, {
2083
- children: props.children
2084
- }));
2085
- };
2086
2086
  return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
2087
2087
  value: {
2088
2088
  crud: crud,
2089
2089
  theme: theme
2090
2090
  },
2091
- children: /*#__PURE__*/jsxRuntime.jsx(Decorate, {
2092
- children: /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
2093
- ref: ref,
2094
- style: getStyle()
2095
- }, custom, {
2096
- children: /*#__PURE__*/jsxRuntime.jsx(Card, {
2097
- children: /*#__PURE__*/jsxRuntime.jsx(Container, {})
2098
- })
2099
- }))
2100
- })
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
+ }))
2101
2099
  });
2102
2100
  }
2103
2101
  var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({