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.
- package/dist/react-crud-mobile.cjs.development.js +28 -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 +28 -30
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +28 -27
|
@@ -1893,13 +1893,24 @@ function UIElement(props) {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
return true;
|
|
1895
1895
|
};
|
|
1896
|
-
var
|
|
1896
|
+
var isTouch = !scope.isType('input', 'grid', 'list', 'order', 'repeat') && original.click;
|
|
1897
1897
|
var custom = {};
|
|
1898
|
-
if (
|
|
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
|
|
@@ -2020,9 +2037,6 @@ function UIElement(props) {
|
|
|
2020
2037
|
})), scope.isType('view') && /*#__PURE__*/jsx(UIView, _extends({}, props, {
|
|
2021
2038
|
scope: scope,
|
|
2022
2039
|
crud: crud
|
|
2023
|
-
})), scope.isType('dialog') && /*#__PURE__*/jsx(UIModal, _extends({}, props, {
|
|
2024
|
-
scope: scope,
|
|
2025
|
-
crud: crud
|
|
2026
2040
|
})), isShowChild() && /*#__PURE__*/jsx(UIChildren, _extends({}, props, {
|
|
2027
2041
|
scope: scope,
|
|
2028
2042
|
crud: crud,
|
|
@@ -2060,35 +2074,19 @@ function UIElement(props) {
|
|
|
2060
2074
|
children: props.children
|
|
2061
2075
|
});
|
|
2062
2076
|
};
|
|
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
2077
|
return /*#__PURE__*/jsx(CrudContext.Provider, {
|
|
2078
2078
|
value: {
|
|
2079
2079
|
crud: crud,
|
|
2080
2080
|
theme: theme
|
|
2081
2081
|
},
|
|
2082
|
-
children: /*#__PURE__*/jsx(
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
children: /*#__PURE__*/jsx(
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
}))
|
|
2091
|
-
})
|
|
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
|
+
}))
|
|
2092
2090
|
});
|
|
2093
2091
|
}
|
|
2094
2092
|
var boxStyle = /*#__PURE__*/StyleSheet.create({
|