@xuda.io/runtime-bundle 1.0.862 → 1.0.864

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.
@@ -11529,8 +11529,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
11529
11529
  const height = val.base_$div.height();
11530
11530
  if (height) {
11531
11531
  const total_height = height * val.data.length || 1;
11532
- if (total_height > $container.height()) {
11533
- $container.css('height', height * val.data.length);
11532
+ if (total_height > val.$container.height()) {
11533
+ val.$container.css('height', height * val.data.length);
11534
11534
  }
11535
11535
  }
11536
11536
  debugger;
@@ -14776,11 +14776,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14776
14776
 
14777
14777
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14778
14778
  const xu_viewport = async function () {
14779
- const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
14779
+ const data = { $div: $div.clone(true), nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
14780
14780
  const container_id = $container.attr('xu-ui-id');
14781
14781
  if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
14782
14782
  UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
14783
14783
  await iterate_child($div, nodeP, parent_infoP, $root_container);
14784
+ } else {
14785
+ $div.remove();
14784
14786
  }
14785
14787
  UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
14786
14788
 
@@ -14880,8 +14882,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14880
14882
  if (fx[nodeP.tagName]) {
14881
14883
  return await fx[nodeP.tagName]();
14882
14884
  }
14885
+ // const xu_viewport = async function () {
14886
+ // const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
14887
+ // const container_id = $container.attr('xu-ui-id');
14888
+ // if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
14889
+ // UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
14890
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
14891
+ // }
14892
+ // UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
14893
+ // };
14883
14894
 
14895
+ // if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14896
+ // return await xu_viewport();
14897
+ // } else {
14884
14898
  return await draw_html_element(nodeP.tagName);
14899
+ // }
14885
14900
  };
14886
14901
 
14887
14902
  func.UI.screen.refresh_document_changes_for_realtime_update = async function (SESSION_ID, doc_change) {
@@ -9237,8 +9237,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
9237
9237
  const height = val.base_$div.height();
9238
9238
  if (height) {
9239
9239
  const total_height = height * val.data.length || 1;
9240
- if (total_height > $container.height()) {
9241
- $container.css('height', height * val.data.length);
9240
+ if (total_height > val.$container.height()) {
9241
+ val.$container.css('height', height * val.data.length);
9242
9242
  }
9243
9243
  }
9244
9244
  debugger;
@@ -12484,11 +12484,13 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12484
12484
 
12485
12485
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12486
12486
  const xu_viewport = async function () {
12487
- const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
12487
+ const data = { $div: $div.clone(true), nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
12488
12488
  const container_id = $container.attr('xu-ui-id');
12489
12489
  if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
12490
12490
  UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
12491
12491
  await iterate_child($div, nodeP, parent_infoP, $root_container);
12492
+ } else {
12493
+ $div.remove();
12492
12494
  }
12493
12495
  UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
12494
12496
 
@@ -12588,8 +12590,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12588
12590
  if (fx[nodeP.tagName]) {
12589
12591
  return await fx[nodeP.tagName]();
12590
12592
  }
12593
+ // const xu_viewport = async function () {
12594
+ // const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
12595
+ // const container_id = $container.attr('xu-ui-id');
12596
+ // if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
12597
+ // UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
12598
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
12599
+ // }
12600
+ // UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
12601
+ // };
12591
12602
 
12603
+ // if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12604
+ // return await xu_viewport();
12605
+ // } else {
12592
12606
  return await draw_html_element(nodeP.tagName);
12607
+ // }
12593
12608
  };
12594
12609
 
12595
12610
  func.UI.screen.refresh_document_changes_for_realtime_update = async function (SESSION_ID, doc_change) {