@xuda.io/runtime-bundle 1.0.961 → 1.0.962

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.
@@ -29756,7 +29756,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
29756
29756
  perform_delete();
29757
29757
  };
29758
29758
 
29759
- func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
29759
+ func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh, trigger) {
29760
29760
  return new Promise(async (resolve, reject) => {
29761
29761
  var _session = SESSION_OBJ[SESSION_ID];
29762
29762
 
@@ -29965,7 +29965,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
29965
29965
  return Math.min(...arr.map(Number));
29966
29966
  }
29967
29967
 
29968
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh);
29968
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
29969
29969
  // await removed from the below function cause to dead lock Mar 3 25
29970
29970
  await func.UI.screen.refresh_screen(
29971
29971
  SESSION_ID,
@@ -31012,15 +31012,16 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
31012
31012
  });
31013
31013
  func.UI.main.embed_prog_execute(SESSION_ID, prog);
31014
31014
  };
31015
- func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
31016
- if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
31017
- // let dom to finish
31018
- setTimeout(() => {
31019
- func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
31020
- }, 100);
31021
- return;
31015
+ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh, trigger) {
31016
+ if (trigger !== 'click') {
31017
+ if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
31018
+ // let dom to finish
31019
+ setTimeout(() => {
31020
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
31021
+ }, 100);
31022
+ return;
31023
+ }
31022
31024
  }
31023
-
31024
31025
  UI_WORKER_OBJ.cache = {};
31025
31026
  const _session = SESSION_OBJ[SESSION_ID];
31026
31027
  if (glb.DEBUG_MODE) {
@@ -36782,7 +36783,7 @@ func.events.execute = async function (
36782
36783
  }
36783
36784
  }
36784
36785
 
36785
- await func.datasource.update(SESSION_ID, datasource_changes);
36786
+ await func.datasource.update(SESSION_ID, datasource_changes, null, null, triggerP);
36786
36787
 
36787
36788
  if (_ds.PARAM_OUT_INFO) {
36788
36789
  for await (const [key, val] of Object.entries(_ds.PARAM_OUT_INFO)) {