@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.
@@ -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) {
@@ -13755,6 +13756,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
13755
13756
  }
13756
13757
  return await done($divP);
13757
13758
  };
13759
+
13758
13760
  // const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
13759
13761
  // if (!is_mobile && nodeP.busy) return;
13760
13762
  // nodeP.busy = true;
@@ -14427,17 +14429,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14427
14429
  $div.hover(
14428
14430
  function (e) {
14429
14431
  hover_in($div, e);
14430
- // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
14431
14432
  },
14432
14433
  function (e) {
14433
- // func.UI.screen.hover_out(SESSION_ID, $container, is_skeleton, paramsP);
14434
14434
  hover_out();
14435
14435
  },
14436
14436
  );
14437
-
14438
- $div.on('click contextmenu', function (e) {
14439
- hover_in($div, e);
14440
- });
14437
+ if (paramsP.paramsP === 'grid' || parent_infoP?.iterate_info) {
14438
+ $div.on('click contextmenu', function (e) {
14439
+ hover_in($div, e);
14440
+ });
14441
+ }
14441
14442
 
14442
14443
  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);
14443
14444
  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();
@@ -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) {
@@ -11482,6 +11483,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11482
11483
  }
11483
11484
  return await done($divP);
11484
11485
  };
11486
+
11485
11487
  // const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
11486
11488
  // if (!is_mobile && nodeP.busy) return;
11487
11489
  // nodeP.busy = true;
@@ -12154,17 +12156,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12154
12156
  $div.hover(
12155
12157
  function (e) {
12156
12158
  hover_in($div, e);
12157
- // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
12158
12159
  },
12159
12160
  function (e) {
12160
- // func.UI.screen.hover_out(SESSION_ID, $container, is_skeleton, paramsP);
12161
12161
  hover_out();
12162
12162
  },
12163
12163
  );
12164
-
12165
- $div.on('click contextmenu', function (e) {
12166
- hover_in($div, e);
12167
- });
12164
+ if (paramsP.paramsP === 'grid' || parent_infoP?.iterate_info) {
12165
+ $div.on('click contextmenu', function (e) {
12166
+ hover_in($div, e);
12167
+ });
12168
+ }
12168
12169
 
12169
12170
  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);
12170
12171
  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();
@@ -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)) {