@xuda.io/runtime-bundle 1.0.849 → 1.0.851

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.
@@ -8467,7 +8467,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8467
8467
  // }
8468
8468
 
8469
8469
  await func.UI.worker.execute(val.SESSION_ID, val);
8470
- break;
8470
+ // break;
8471
8471
  } catch (err) {
8472
8472
  console.error(err);
8473
8473
  }
@@ -8758,7 +8758,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8758
8758
  render_viewport: async function () {
8759
8759
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8760
8760
  if (nodeP?.children?.length && !$div.children().length) {
8761
- $div.removeClass('skeleton');
8761
+ // $div.removeClass('skeleton');
8762
8762
  for await (const [key, val] of Object.entries(nodeP.children)) {
8763
8763
  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);
8764
8764
  }
@@ -14779,12 +14779,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14779
14779
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14780
14780
  $div.on('inViewport', function () {
14781
14781
  if ($div.children().length) {
14782
- $div.removeClass('skeleton');
14782
+ // $div.removeClass('skeleton');
14783
14783
  return;
14784
14784
  }
14785
14785
 
14786
14786
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
14787
- $div.removeClass('skeleton');
14787
+ // $div.removeClass('skeleton');
14788
14788
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
14789
14789
  } else {
14790
14790
  hover_in($div);
@@ -14794,9 +14794,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14794
14794
  });
14795
14795
 
14796
14796
  $div.on('outViewport', function () {
14797
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone();
14797
+ UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14798
14798
  $div.empty();
14799
- $div.addClass('skeleton');
14799
+ // $div.addClass('skeleton');
14800
14800
  observer_inViewport.observe($div[0]);
14801
14801
  });
14802
14802
 
@@ -8468,7 +8468,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8468
8468
  // }
8469
8469
 
8470
8470
  await func.UI.worker.execute(val.SESSION_ID, val);
8471
- break;
8471
+ // break;
8472
8472
  } catch (err) {
8473
8473
  console.error(err);
8474
8474
  }
@@ -8759,7 +8759,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8759
8759
  render_viewport: async function () {
8760
8760
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8761
8761
  if (nodeP?.children?.length && !$div.children().length) {
8762
- $div.removeClass('skeleton');
8762
+ // $div.removeClass('skeleton');
8763
8763
  for await (const [key, val] of Object.entries(nodeP.children)) {
8764
8764
  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);
8765
8765
  }
@@ -12487,12 +12487,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12487
12487
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12488
12488
  $div.on('inViewport', function () {
12489
12489
  if ($div.children().length) {
12490
- $div.removeClass('skeleton');
12490
+ // $div.removeClass('skeleton');
12491
12491
  return;
12492
12492
  }
12493
12493
 
12494
12494
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
12495
- $div.removeClass('skeleton');
12495
+ // $div.removeClass('skeleton');
12496
12496
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
12497
12497
  } else {
12498
12498
  hover_in($div);
@@ -12502,9 +12502,9 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12502
12502
  });
12503
12503
 
12504
12504
  $div.on('outViewport', function () {
12505
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone();
12505
+ UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12506
12506
  $div.empty();
12507
- $div.addClass('skeleton');
12507
+ // $div.addClass('skeleton');
12508
12508
  observer_inViewport.observe($div[0]);
12509
12509
  });
12510
12510