@xuda.io/runtime-bundle 1.0.960 → 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) {
@@ -33441,6 +33442,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
33441
33442
  }
33442
33443
  return await done($divP);
33443
33444
  };
33445
+
33444
33446
  // const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
33445
33447
  // if (!is_mobile && nodeP.busy) return;
33446
33448
  // nodeP.busy = true;
@@ -34113,17 +34115,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34113
34115
  $div.hover(
34114
34116
  function (e) {
34115
34117
  hover_in($div, e);
34116
- // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
34117
34118
  },
34118
34119
  function (e) {
34119
- // func.UI.screen.hover_out(SESSION_ID, $container, is_skeleton, paramsP);
34120
34120
  hover_out();
34121
34121
  },
34122
34122
  );
34123
-
34124
- $div.on('click contextmenu', function (e) {
34125
- hover_in($div, e);
34126
- });
34123
+ if (paramsP.paramsP === 'grid' || parent_infoP?.iterate_info) {
34124
+ $div.on('click contextmenu', function (e) {
34125
+ hover_in($div, e);
34126
+ });
34127
+ }
34127
34128
 
34128
34129
  let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
34129
34130
  if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) return await done();
@@ -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)) {