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.
- package/dist/react-crud-mobile.cjs.development.js +29 -30
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +29 -30
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +29 -27
|
@@ -1902,13 +1902,25 @@ function UIElement(props) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
return true;
|
|
1904
1904
|
};
|
|
1905
|
-
var
|
|
1905
|
+
var isTouch = !scope.isType('input', 'grid', 'list', 'order', 'repeat') && original.click;
|
|
1906
1906
|
var custom = {};
|
|
1907
|
-
if (
|
|
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', 'order')) {
|
|
1917
|
+
console.log('dialogggg');
|
|
1918
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1919
|
+
children: props.children
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
return /*#__PURE__*/jsxRuntime.jsx(Aux, _extends({}, props));
|
|
1923
|
+
};
|
|
1912
1924
|
var Inner = function Inner() {
|
|
1913
1925
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1914
1926
|
children: [scope.getPart('render', null, /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})), scope.is('type', 'button') && /*#__PURE__*/jsxRuntime.jsxs(UIButton, _extends({}, defaultsUI, {
|
|
@@ -2020,6 +2032,12 @@ function UIElement(props) {
|
|
|
2020
2032
|
}), scope.isType('list', 'repeat') && /*#__PURE__*/jsxRuntime.jsx(UIList, _extends({}, props, {
|
|
2021
2033
|
scope: scope,
|
|
2022
2034
|
crud: crud
|
|
2035
|
+
})), scope.isType('order') && /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
|
|
2036
|
+
scope: scope,
|
|
2037
|
+
crud: crud
|
|
2038
|
+
})), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
|
|
2039
|
+
scope: scope,
|
|
2040
|
+
crud: crud
|
|
2023
2041
|
})), scope.isType('chart') && /*#__PURE__*/jsxRuntime.jsx(ElChart, _extends({}, props, {
|
|
2024
2042
|
scope: scope,
|
|
2025
2043
|
crud: crud
|
|
@@ -2029,9 +2047,6 @@ function UIElement(props) {
|
|
|
2029
2047
|
})), scope.isType('view') && /*#__PURE__*/jsxRuntime.jsx(UIView, _extends({}, props, {
|
|
2030
2048
|
scope: scope,
|
|
2031
2049
|
crud: crud
|
|
2032
|
-
})), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
|
|
2033
|
-
scope: scope,
|
|
2034
|
-
crud: crud
|
|
2035
2050
|
})), isShowChild() && /*#__PURE__*/jsxRuntime.jsx(UIChildren, _extends({}, props, {
|
|
2036
2051
|
scope: scope,
|
|
2037
2052
|
crud: crud,
|
|
@@ -2069,35 +2084,19 @@ function UIElement(props) {
|
|
|
2069
2084
|
children: props.children
|
|
2070
2085
|
});
|
|
2071
2086
|
};
|
|
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
2087
|
return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
|
|
2087
2088
|
value: {
|
|
2088
2089
|
crud: crud,
|
|
2089
2090
|
theme: theme
|
|
2090
2091
|
},
|
|
2091
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
}))
|
|
2100
|
-
})
|
|
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
|
+
}))
|
|
2101
2100
|
});
|
|
2102
2101
|
}
|
|
2103
2102
|
var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
|