react-crud-mobile 1.3.204 → 1.3.209
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
@@ -1799,18 +1799,17 @@ function UIElement(props) {
|
|
1799
1799
|
var ctx = useContext(CrudContext);
|
1800
1800
|
var theme = Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
|
1801
1801
|
var crud = Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
|
1802
|
-
var
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
setError = _useState3[1];
|
1802
|
+
var scope = ScopeUtils.create(_extends({
|
1803
|
+
crud: crud
|
1804
|
+
}, props, {
|
1805
|
+
theme: theme
|
1806
|
+
}));
|
1807
|
+
var _useState = useState(0),
|
1808
|
+
index = _useState[0],
|
1809
|
+
setIndex = _useState[1];
|
1810
|
+
var _useState2 = useState(null),
|
1811
|
+
error = _useState2[0],
|
1812
|
+
setError = _useState2[1];
|
1814
1813
|
scope.compile(props);
|
1815
1814
|
crud = scope.crud;
|
1816
1815
|
var options = scope.getOptions();
|
@@ -2117,9 +2116,12 @@ function UIElement(props) {
|
|
2117
2116
|
};
|
2118
2117
|
var Container = function Container() {
|
2119
2118
|
var _scope$currentDialog2, _scope$currentDialog3, _scope$currentDialog4;
|
2120
|
-
|
2121
|
-
|
2122
|
-
|
2119
|
+
var _useState3 = useState(0),
|
2120
|
+
indxContainer = _useState3[0],
|
2121
|
+
setIndxContainer = _useState3[1];
|
2122
|
+
scope.updaters.container = function () {
|
2123
|
+
setIndxContainer(++indxContainer);
|
2124
|
+
};
|
2123
2125
|
return /*#__PURE__*/jsxs(Fragment, {
|
2124
2126
|
children: [isShowLabel() && /*#__PURE__*/jsxs(View, {
|
2125
2127
|
style: getStyle('outerLabel', {
|
@@ -2268,6 +2270,7 @@ function UIElement(props) {
|
|
2268
2270
|
dialogScope.currentDialog = dialog;
|
2269
2271
|
dialogScope.toggleDialog(true);
|
2270
2272
|
scope.update();
|
2273
|
+
scope.updaters.container == null || scope.updaters.container();
|
2271
2274
|
};
|
2272
2275
|
scope.dialogHide = function (args) {
|
2273
2276
|
var _main$dialog;
|
@@ -2319,7 +2322,7 @@ var boxStyle = /*#__PURE__*/StyleSheet.create({
|
|
2319
2322
|
}
|
2320
2323
|
});
|
2321
2324
|
var box = /*#__PURE__*/_extends({}, boxStyle.box);
|
2322
|
-
//
|
2325
|
+
//v6
|
2323
2326
|
var elementStyle = {};
|
2324
2327
|
elementStyle.view = {
|
2325
2328
|
inner: {
|