@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.
@@ -4655,7 +4655,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
4655
4655
  perform_delete();
4656
4656
  };
4657
4657
 
4658
- func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
4658
+ func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh, trigger) {
4659
4659
  return new Promise(async (resolve, reject) => {
4660
4660
  var _session = SESSION_OBJ[SESSION_ID];
4661
4661
 
@@ -4864,7 +4864,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
4864
4864
  return Math.min(...arr.map(Number));
4865
4865
  }
4866
4866
 
4867
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh);
4867
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
4868
4868
  // await removed from the below function cause to dead lock Mar 3 25
4869
4869
  await func.UI.screen.refresh_screen(
4870
4870
  SESSION_ID,
@@ -9759,7 +9759,7 @@ func.events.execute = async function (
9759
9759
  }
9760
9760
  }
9761
9761
 
9762
- await func.datasource.update(SESSION_ID, datasource_changes);
9762
+ await func.datasource.update(SESSION_ID, datasource_changes, null, null, triggerP);
9763
9763
 
9764
9764
  if (_ds.PARAM_OUT_INFO) {
9765
9765
  for await (const [key, val] of Object.entries(_ds.PARAM_OUT_INFO)) {
@@ -11326,15 +11326,16 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
11326
11326
  });
11327
11327
  func.UI.main.embed_prog_execute(SESSION_ID, prog);
11328
11328
  };
11329
- func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
11330
- if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
11331
- // let dom to finish
11332
- setTimeout(() => {
11333
- func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
11334
- }, 100);
11335
- return;
11329
+ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh, trigger) {
11330
+ if (trigger !== 'click') {
11331
+ if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
11332
+ // let dom to finish
11333
+ setTimeout(() => {
11334
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
11335
+ }, 100);
11336
+ return;
11337
+ }
11336
11338
  }
11337
-
11338
11339
  UI_WORKER_OBJ.cache = {};
11339
11340
  const _session = SESSION_OBJ[SESSION_ID];
11340
11341
  if (glb.DEBUG_MODE) {
@@ -4656,7 +4656,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
4656
4656
  perform_delete();
4657
4657
  };
4658
4658
 
4659
- func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
4659
+ func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh, trigger) {
4660
4660
  return new Promise(async (resolve, reject) => {
4661
4661
  var _session = SESSION_OBJ[SESSION_ID];
4662
4662
 
@@ -4865,7 +4865,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
4865
4865
  return Math.min(...arr.map(Number));
4866
4866
  }
4867
4867
 
4868
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh);
4868
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
4869
4869
  // await removed from the below function cause to dead lock Mar 3 25
4870
4870
  await func.UI.screen.refresh_screen(
4871
4871
  SESSION_ID,
@@ -9053,15 +9053,16 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
9053
9053
  });
9054
9054
  func.UI.main.embed_prog_execute(SESSION_ID, prog);
9055
9055
  };
9056
- func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh) {
9057
- if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
9058
- // let dom to finish
9059
- setTimeout(() => {
9060
- func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
9061
- }, 100);
9062
- return;
9056
+ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed, avoid_xu_for_refresh, trigger) {
9057
+ if (trigger !== 'click') {
9058
+ if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
9059
+ // let dom to finish
9060
+ setTimeout(() => {
9061
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession_changed);
9062
+ }, 100);
9063
+ return;
9064
+ }
9063
9065
  }
9064
-
9065
9066
  UI_WORKER_OBJ.cache = {};
9066
9067
  const _session = SESSION_OBJ[SESSION_ID];
9067
9068
  if (glb.DEBUG_MODE) {
@@ -13857,7 +13858,7 @@ func.events.execute = async function (
13857
13858
  }
13858
13859
  }
13859
13860
 
13860
- await func.datasource.update(SESSION_ID, datasource_changes);
13861
+ await func.datasource.update(SESSION_ID, datasource_changes, null, null, triggerP);
13861
13862
 
13862
13863
  if (_ds.PARAM_OUT_INFO) {
13863
13864
  for await (const [key, val] of Object.entries(_ds.PARAM_OUT_INFO)) {