react-crud-mobile 1.3.531 → 1.3.533
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 +20 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -7
- 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 +9 -3
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 };
|
|
@@ -501,10 +501,21 @@ function UIButton(props) {
|
|
|
501
501
|
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Text, { style: buttonLabel, children: scope.lng("loading", "Aguarde...") })
|
|
502
502
|
] }) });
|
|
503
503
|
}
|
|
504
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
505
|
+
import_react_native5.Pressable,
|
|
506
|
+
{
|
|
507
|
+
onPress: onClick,
|
|
508
|
+
style: ({ pressed }) => [
|
|
509
|
+
buttonStyle,
|
|
510
|
+
pressed && { opacity: 0.5 }
|
|
511
|
+
// ⭐ Aqui entra o efeito!
|
|
512
|
+
],
|
|
513
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
514
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(UI_default.Icon, { size: iconSize, style: iconStyle, value: icon }) }),
|
|
515
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Text, { style: buttonLabel, children: label })
|
|
516
|
+
] })
|
|
517
|
+
}
|
|
518
|
+
);
|
|
508
519
|
}
|
|
509
520
|
|
|
510
521
|
// src/elements/core/UISelect.tsx
|
|
@@ -2235,10 +2246,12 @@ function UIElement(props) {
|
|
|
2235
2246
|
if (typeof eventData === "function") {
|
|
2236
2247
|
eventData = eventData.call(this, args);
|
|
2237
2248
|
}
|
|
2249
|
+
let data = {};
|
|
2238
2250
|
if (event.send === false || event.data === false) {
|
|
2239
2251
|
crudData = {};
|
|
2252
|
+
} else {
|
|
2253
|
+
data = import_react_crud_utils19.Utils.nvl(eventData, args.item, rowItem, crudData, {});
|
|
2240
2254
|
}
|
|
2241
|
-
let data = import_react_crud_utils19.Utils.nvl(eventData, args.item, rowItem, crudData, {});
|
|
2242
2255
|
let d = import_react_crud_utils19.CrudUtils.create("dialog", {
|
|
2243
2256
|
parent: crud2,
|
|
2244
2257
|
root: crud2,
|