@xuda.io/runtime-bundle 1.0.1264 → 1.0.1266

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.
@@ -8674,10 +8674,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8674
8674
  }
8675
8675
 
8676
8676
  const fx = {
8677
- update_datasource: async function () {
8677
+ update_datasource: async function (currentRecordId) {
8678
8678
  if (queue_obj?.paramsP) {
8679
8679
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
8680
- _ds.currentRecordId = queue_obj.paramsP.currentRecordId;
8680
+ _ds.currentRecordId = currentRecordId || queue_obj.paramsP.currentRecordId;
8681
8681
 
8682
8682
  var datasource_changes = {
8683
8683
  [_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
@@ -8815,6 +8815,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8815
8815
  render_viewport: async function () {
8816
8816
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8817
8817
  if (nodeP?.children?.length && !$div.children().length) {
8818
+ await fx.update_datasource($div?.data()?.xuData?.currentRecordId);
8818
8819
  $div.removeClass('skeleton');
8819
8820
  for await (const [key, val] of Object.entries(nodeP.children)) {
8820
8821
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
@@ -17301,7 +17302,7 @@ func.UI.screen.render_ui_tree_bad = async function (SESSION_ID, $container, node
17301
17302
  return;
17302
17303
  }
17303
17304
 
17304
- hover_in($div);
17305
+ // hover_in($div);
17305
17306
  ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
17306
17307
  observer_outViewport.observe($div[0]);
17307
17308
  });
@@ -8675,10 +8675,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8675
8675
  }
8676
8676
 
8677
8677
  const fx = {
8678
- update_datasource: async function () {
8678
+ update_datasource: async function (currentRecordId) {
8679
8679
  if (queue_obj?.paramsP) {
8680
8680
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
8681
- _ds.currentRecordId = queue_obj.paramsP.currentRecordId;
8681
+ _ds.currentRecordId = currentRecordId || queue_obj.paramsP.currentRecordId;
8682
8682
 
8683
8683
  var datasource_changes = {
8684
8684
  [_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
@@ -8816,6 +8816,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8816
8816
  render_viewport: async function () {
8817
8817
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8818
8818
  if (nodeP?.children?.length && !$div.children().length) {
8819
+ await fx.update_datasource($div?.data()?.xuData?.currentRecordId);
8819
8820
  $div.removeClass('skeleton');
8820
8821
  for await (const [key, val] of Object.entries(nodeP.children)) {
8821
8822
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
@@ -15026,7 +15027,7 @@ func.UI.screen.render_ui_tree_bad = async function (SESSION_ID, $container, node
15026
15027
  return;
15027
15028
  }
15028
15029
 
15029
- hover_in($div);
15030
+ // hover_in($div);
15030
15031
  ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
15031
15032
  observer_outViewport.observe($div[0]);
15032
15033
  });