react-crud-mobile 1.3.60 → 1.3.61
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 +30 -14
- 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 +30 -14
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +23 -12
|
@@ -2035,12 +2035,6 @@ function UIElement(props) {
|
|
|
2035
2035
|
}), scope.isType('list', 'repeat') && /*#__PURE__*/jsxRuntime.jsx(UIList, _extends({}, props, {
|
|
2036
2036
|
scope: scope,
|
|
2037
2037
|
crud: crud
|
|
2038
|
-
})), scope.isType('order') && /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
|
|
2039
|
-
scope: scope,
|
|
2040
|
-
crud: crud
|
|
2041
|
-
})), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
|
|
2042
|
-
scope: scope,
|
|
2043
|
-
crud: crud
|
|
2044
2038
|
})), scope.isType('chart') && /*#__PURE__*/jsxRuntime.jsx(ElChart, _extends({}, props, {
|
|
2045
2039
|
scope: scope,
|
|
2046
2040
|
crud: crud
|
|
@@ -2087,19 +2081,41 @@ function UIElement(props) {
|
|
|
2087
2081
|
children: props.children
|
|
2088
2082
|
});
|
|
2089
2083
|
};
|
|
2084
|
+
var Decorate = function Decorate(props) {
|
|
2085
|
+
if (scope.isType('order')) {
|
|
2086
|
+
return /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
|
|
2087
|
+
scope: scope,
|
|
2088
|
+
crud: crud
|
|
2089
|
+
}));
|
|
2090
|
+
}
|
|
2091
|
+
if (scope.isType('dialog')) {
|
|
2092
|
+
return /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
|
|
2093
|
+
scope: scope,
|
|
2094
|
+
crud: crud
|
|
2095
|
+
}));
|
|
2096
|
+
}
|
|
2097
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
|
|
2098
|
+
ref: ref,
|
|
2099
|
+
style: getStyle()
|
|
2100
|
+
}, custom, {
|
|
2101
|
+
children: props.children
|
|
2102
|
+
}));
|
|
2103
|
+
};
|
|
2090
2104
|
return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
|
|
2091
2105
|
value: {
|
|
2092
2106
|
crud: crud,
|
|
2093
2107
|
theme: theme
|
|
2094
2108
|
},
|
|
2095
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2101
|
-
|
|
2102
|
-
|
|
2109
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Decorate, {
|
|
2110
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Tag, _extends({
|
|
2111
|
+
ref: ref,
|
|
2112
|
+
style: getStyle()
|
|
2113
|
+
}, custom, {
|
|
2114
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Card, {
|
|
2115
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Container, {})
|
|
2116
|
+
})
|
|
2117
|
+
}))
|
|
2118
|
+
})
|
|
2103
2119
|
});
|
|
2104
2120
|
}
|
|
2105
2121
|
var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
|