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
@@ -1808,17 +1808,18 @@ 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
|
-
|
1811
|
+
var _useState = React.useState(reactCrudUtils.ScopeUtils.create(_extends({
|
1812
|
+
crud: crud
|
1813
|
+
}, props, {
|
1814
|
+
theme: theme
|
1815
|
+
}))),
|
1816
|
+
scope = _useState[0];
|
1817
|
+
var _useState2 = React.useState(0),
|
1818
|
+
index = _useState2[0],
|
1819
|
+
setIndex = _useState2[1];
|
1820
|
+
var _useState3 = React.useState(null),
|
1821
|
+
error = _useState3[0],
|
1822
|
+
setError = _useState3[1];
|
1822
1823
|
scope.compile(props);
|
1823
1824
|
crud = scope.crud;
|
1824
1825
|
var options = scope.getOptions();
|
@@ -2125,12 +2126,6 @@ function UIElement(props) {
|
|
2125
2126
|
};
|
2126
2127
|
var Container = function Container() {
|
2127
2128
|
var _scope$currentDialog2, _scope$currentDialog3, _scope$currentDialog4;
|
2128
|
-
var _useState3 = React.useState(0),
|
2129
|
-
indxContainer = _useState3[0],
|
2130
|
-
setIndxContainer = _useState3[1];
|
2131
|
-
scope.updaters.container = function () {
|
2132
|
-
setIndxContainer(++indxContainer);
|
2133
|
-
};
|
2134
2129
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
2135
2130
|
children: [isShowLabel() && /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
2136
2131
|
style: getStyle('outerLabel', {
|
@@ -2278,8 +2273,7 @@ function UIElement(props) {
|
|
2278
2273
|
scope.currentDialog = dialog;
|
2279
2274
|
dialogScope.currentDialog = dialog;
|
2280
2275
|
dialogScope.toggleDialog(true);
|
2281
|
-
|
2282
|
-
//scope.updaters.container?.();
|
2276
|
+
scope.update();
|
2283
2277
|
};
|
2284
2278
|
scope.dialogHide = function (args) {
|
2285
2279
|
var _main$dialog;
|
@@ -2331,7 +2325,7 @@ var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
2331
2325
|
}
|
2332
2326
|
});
|
2333
2327
|
var box = /*#__PURE__*/_extends({}, boxStyle.box);
|
2334
|
-
//
|
2328
|
+
//v4
|
2335
2329
|
var elementStyle = {};
|
2336
2330
|
elementStyle.view = {
|
2337
2331
|
inner: {
|