@xuda.io/xuda-worker-bundle-min 1.3.2437 → 1.3.2438
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/index.js +24 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2657,6 +2657,23 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2657
2657
|
let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
2658
2658
|
|
|
2659
2659
|
const callback_datasource = async function () {
|
|
2660
|
+
const run_on_load_events = async function () {
|
|
2661
|
+
if (!(await func.datasource.get_view_events_count(SESSION_ID, dataSourceSession, 'on_load'))) {
|
|
2662
|
+
return false;
|
|
2663
|
+
}
|
|
2664
|
+
await func.datasource.execute_view_events(SESSION_ID, dataSourceSession, 'on_load');
|
|
2665
|
+
return true;
|
|
2666
|
+
};
|
|
2667
|
+
const schedule_panel_on_load_events = function () {
|
|
2668
|
+
setTimeout(async function () {
|
|
2669
|
+
try {
|
|
2670
|
+
await run_on_load_events();
|
|
2671
|
+
} catch (error) {
|
|
2672
|
+
console.error(error);
|
|
2673
|
+
}
|
|
2674
|
+
}, 0);
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2660
2677
|
if (typeof IS_WORKER === 'undefined' && typeof IS_DOCKER === 'undefined' && typeof IS_PROCESS_SERVER === 'undefined' && _ds.viewSourceProp === 'globals') {
|
|
2661
2678
|
if (!['main'].includes(_session.opt.app_computing_mode)) {
|
|
2662
2679
|
await func.index.call_worker(SESSION_ID, {
|
|
@@ -2666,10 +2683,13 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
|
|
|
2666
2683
|
}
|
|
2667
2684
|
}
|
|
2668
2685
|
|
|
2669
|
-
if (
|
|
2670
|
-
await func.datasource.
|
|
2686
|
+
if (args.is_panelP) {
|
|
2687
|
+
const callback_ret = await func.datasource.callback(SESSION_ID, dataSourceSession, args.rowIdP, args.jobNoP, _ds.prog_id);
|
|
2688
|
+
schedule_panel_on_load_events();
|
|
2689
|
+
return callback_ret;
|
|
2671
2690
|
}
|
|
2672
|
-
|
|
2691
|
+
|
|
2692
|
+
await run_on_load_events();
|
|
2673
2693
|
return await func.datasource.callback(SESSION_ID, dataSourceSession, args.rowIdP, args.jobNoP, _ds.prog_id);
|
|
2674
2694
|
};
|
|
2675
2695
|
|
|
@@ -4207,6 +4227,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4207
4227
|
dsSession_changed: findMin(datasource_changed),
|
|
4208
4228
|
avoid_xu_for_refresh,
|
|
4209
4229
|
trigger,
|
|
4230
|
+
ignore_screen_blocker: true,
|
|
4210
4231
|
});
|
|
4211
4232
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4212
4233
|
await func.runtime.ui.refresh_screen({
|