react-crud-mobile 1.3.211 → 1.3.214
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 +14 -20
- 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 +14 -20
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +3 -10
@@ -1799,17 +1799,18 @@ 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
|
-
|
1802
|
+
var _useState = useState(ScopeUtils.create(_extends({
|
1803
|
+
crud: crud
|
1804
|
+
}, props, {
|
1805
|
+
theme: theme
|
1806
|
+
}))),
|
1807
|
+
scope = _useState[0];
|
1808
|
+
var _useState2 = useState(0),
|
1809
|
+
index = _useState2[0],
|
1810
|
+
setIndex = _useState2[1];
|
1811
|
+
var _useState3 = useState(null),
|
1812
|
+
error = _useState3[0],
|
1813
|
+
setError = _useState3[1];
|
1813
1814
|
scope.compile(props);
|
1814
1815
|
crud = scope.crud;
|
1815
1816
|
var options = scope.getOptions();
|
@@ -2116,12 +2117,6 @@ function UIElement(props) {
|
|
2116
2117
|
};
|
2117
2118
|
var Container = function Container() {
|
2118
2119
|
var _scope$currentDialog2, _scope$currentDialog3, _scope$currentDialog4;
|
2119
|
-
var _useState3 = useState(0),
|
2120
|
-
indxContainer = _useState3[0],
|
2121
|
-
setIndxContainer = _useState3[1];
|
2122
|
-
scope.updaters.container = function () {
|
2123
|
-
setIndxContainer(++indxContainer);
|
2124
|
-
};
|
2125
2120
|
return /*#__PURE__*/jsxs(Fragment, {
|
2126
2121
|
children: [isShowLabel() && /*#__PURE__*/jsxs(View, {
|
2127
2122
|
style: getStyle('outerLabel', {
|
@@ -2269,8 +2264,7 @@ function UIElement(props) {
|
|
2269
2264
|
scope.currentDialog = dialog;
|
2270
2265
|
dialogScope.currentDialog = dialog;
|
2271
2266
|
dialogScope.toggleDialog(true);
|
2272
|
-
|
2273
|
-
//scope.updaters.container?.();
|
2267
|
+
scope.update();
|
2274
2268
|
};
|
2275
2269
|
scope.dialogHide = function (args) {
|
2276
2270
|
var _main$dialog;
|
@@ -2322,7 +2316,7 @@ var boxStyle = /*#__PURE__*/StyleSheet.create({
|
|
2322
2316
|
}
|
2323
2317
|
});
|
2324
2318
|
var box = /*#__PURE__*/_extends({}, boxStyle.box);
|
2325
|
-
//
|
2319
|
+
//v4
|
2326
2320
|
var elementStyle = {};
|
2327
2321
|
elementStyle.view = {
|
2328
2322
|
inner: {
|