react-crud-mobile 1.3.532 → 1.3.534
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/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +4 -2
- package/src/elements/core/UIButton.tsx +4 -4
package/dist/index.js
CHANGED
|
@@ -435,9 +435,9 @@ function UIButton(props) {
|
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
437
|
const onClick = async (e) => {
|
|
438
|
-
|
|
438
|
+
setTimeout(() => {
|
|
439
439
|
scope.call("click", {});
|
|
440
|
-
});
|
|
440
|
+
}, 0);
|
|
441
441
|
};
|
|
442
442
|
const style = (part, extra2) => {
|
|
443
443
|
let css = { ...styles13[part], ...extra2 };
|
|
@@ -496,7 +496,7 @@ function UIButton(props) {
|
|
|
496
496
|
};
|
|
497
497
|
let iconSize = import_react_crud_utils5.Utils.nvl(element.iconSize, buttonLabel.fontSize, 15);
|
|
498
498
|
if (scope.loading) {
|
|
499
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.
|
|
499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Pressable, { style: buttonStyle, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
500
500
|
icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(LoadingIcon, {}),
|
|
501
501
|
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Text, { style: buttonLabel, children: scope.lng("loading", "Aguarde...") })
|
|
502
502
|
] }) });
|
|
@@ -2246,10 +2246,12 @@ function UIElement(props) {
|
|
|
2246
2246
|
if (typeof eventData === "function") {
|
|
2247
2247
|
eventData = eventData.call(this, args);
|
|
2248
2248
|
}
|
|
2249
|
+
let data = {};
|
|
2249
2250
|
if (event.send === false || event.data === false) {
|
|
2250
2251
|
crudData = {};
|
|
2252
|
+
} else {
|
|
2253
|
+
data = import_react_crud_utils19.Utils.nvl(eventData, args.item, rowItem, crudData, {});
|
|
2251
2254
|
}
|
|
2252
|
-
let data = import_react_crud_utils19.Utils.nvl(eventData, args.item, rowItem, crudData, {});
|
|
2253
2255
|
let d = import_react_crud_utils19.CrudUtils.create("dialog", {
|
|
2254
2256
|
parent: crud2,
|
|
2255
2257
|
root: crud2,
|