react-crud-mobile 1.3.59 → 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 +32 -15
- 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 +32 -15
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +23 -12
- package/src/elements/core/UIOrder.tsx +3 -1
|
@@ -1650,7 +1650,8 @@ function UIOrder(props) {
|
|
|
1650
1650
|
setData = _useState[1];
|
|
1651
1651
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNativeGestureHandler.GestureHandlerRootView, {
|
|
1652
1652
|
style: _extends({
|
|
1653
|
-
flex: 1
|
|
1653
|
+
flex: 1,
|
|
1654
|
+
width: '100%'
|
|
1654
1655
|
}, scope.getStyle('container')),
|
|
1655
1656
|
children: [original.search !== false && /*#__PURE__*/jsxRuntime.jsx(UI.Text, {
|
|
1656
1657
|
placeholder: "Pesquisar...",
|
|
@@ -2034,12 +2035,6 @@ function UIElement(props) {
|
|
|
2034
2035
|
}), scope.isType('list', 'repeat') && /*#__PURE__*/jsxRuntime.jsx(UIList, _extends({}, props, {
|
|
2035
2036
|
scope: scope,
|
|
2036
2037
|
crud: crud
|
|
2037
|
-
})), scope.isType('order') && /*#__PURE__*/jsxRuntime.jsx(UIOrder, _extends({}, props, {
|
|
2038
|
-
scope: scope,
|
|
2039
|
-
crud: crud
|
|
2040
|
-
})), scope.isType('dialog') && /*#__PURE__*/jsxRuntime.jsx(UIModal, _extends({}, props, {
|
|
2041
|
-
scope: scope,
|
|
2042
|
-
crud: crud
|
|
2043
2038
|
})), scope.isType('chart') && /*#__PURE__*/jsxRuntime.jsx(ElChart, _extends({}, props, {
|
|
2044
2039
|
scope: scope,
|
|
2045
2040
|
crud: crud
|
|
@@ -2086,19 +2081,41 @@ function UIElement(props) {
|
|
|
2086
2081
|
children: props.children
|
|
2087
2082
|
});
|
|
2088
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
|
+
};
|
|
2089
2104
|
return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {
|
|
2090
2105
|
value: {
|
|
2091
2106
|
crud: crud,
|
|
2092
2107
|
theme: theme
|
|
2093
2108
|
},
|
|
2094
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2100
|
-
|
|
2101
|
-
|
|
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
|
+
})
|
|
2102
2119
|
});
|
|
2103
2120
|
}
|
|
2104
2121
|
var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
|