react-crud-mobile 1.3.204 → 1.3.208
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 +19 -16
- 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 +19 -16
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +9 -5
@@ -1808,18 +1808,17 @@ function UIElement(props) {
|
|
1808
1808
|
var ctx = React.useContext(CrudContext);
|
1809
1809
|
var theme = reactCrudUtils.Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
|
1810
1810
|
var crud = reactCrudUtils.Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
|
1811
|
-
var
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
setError = _useState3[1];
|
1811
|
+
var scope = reactCrudUtils.ScopeUtils.create(_extends({
|
1812
|
+
crud: crud
|
1813
|
+
}, props, {
|
1814
|
+
theme: theme
|
1815
|
+
}));
|
1816
|
+
var _useState = React.useState(0),
|
1817
|
+
index = _useState[0],
|
1818
|
+
setIndex = _useState[1];
|
1819
|
+
var _useState2 = React.useState(null),
|
1820
|
+
error = _useState2[0],
|
1821
|
+
setError = _useState2[1];
|
1823
1822
|
scope.compile(props);
|
1824
1823
|
crud = scope.crud;
|
1825
1824
|
var options = scope.getOptions();
|
@@ -2126,9 +2125,12 @@ function UIElement(props) {
|
|
2126
2125
|
};
|
2127
2126
|
var Container = function Container() {
|
2128
2127
|
var _scope$currentDialog2, _scope$currentDialog3, _scope$currentDialog4;
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2128
|
+
var _useState3 = React.useState(0),
|
2129
|
+
indxContainer = _useState3[0],
|
2130
|
+
setIndxContainer = _useState3[1];
|
2131
|
+
scope.updaters.container = function () {
|
2132
|
+
setIndxContainer(++indxContainer);
|
2133
|
+
};
|
2132
2134
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
2133
2135
|
children: [isShowLabel() && /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
2134
2136
|
style: getStyle('outerLabel', {
|
@@ -2277,6 +2279,7 @@ function UIElement(props) {
|
|
2277
2279
|
dialogScope.currentDialog = dialog;
|
2278
2280
|
dialogScope.toggleDialog(true);
|
2279
2281
|
scope.update();
|
2282
|
+
scope.updaters.container == null || scope.updaters.container();
|
2280
2283
|
};
|
2281
2284
|
scope.dialogHide = function (args) {
|
2282
2285
|
var _main$dialog;
|
@@ -2328,7 +2331,7 @@ var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
2328
2331
|
}
|
2329
2332
|
});
|
2330
2333
|
var box = /*#__PURE__*/_extends({}, boxStyle.box);
|
2331
|
-
//
|
2334
|
+
//v5
|
2332
2335
|
var elementStyle = {};
|
2333
2336
|
elementStyle.view = {
|
2334
2337
|
inner: {
|