react-crud-mobile 1.3.241 → 1.3.243
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 +11 -3
- 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 +11 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +7 -1
- package/src/elements/core/UIModal.tsx +2 -0
package/package.json
CHANGED
@@ -646,12 +646,17 @@ export default function UIElement(props: ElementType) {
|
|
646
646
|
}
|
647
647
|
|
648
648
|
let crudData = crud.data;
|
649
|
+
let eventData = Utils.nvl(event.data, event.send);
|
650
|
+
|
651
|
+
if (typeof eventData === 'function') {
|
652
|
+
eventData = eventData.call(this, args);
|
653
|
+
}
|
649
654
|
|
650
655
|
if (event.send === false || event.data === false) {
|
651
656
|
crudData = {};
|
652
657
|
}
|
653
658
|
|
654
|
-
let data = Utils.nvl(args.item, rowItem,
|
659
|
+
let data = Utils.nvl(eventData, args.item, rowItem, crudData, {});
|
655
660
|
|
656
661
|
let d = CrudUtils.create('dialog', {
|
657
662
|
parent: crud,
|
@@ -695,6 +700,7 @@ export default function UIElement(props: ElementType) {
|
|
695
700
|
scope: dialogScope,
|
696
701
|
close,
|
697
702
|
props: event.props,
|
703
|
+
debug: event.debug,
|
698
704
|
};
|
699
705
|
|
700
706
|
main.dialog = dialog;
|