@xuda.io/runtime-bundle 1.0.851 → 1.0.853

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.
@@ -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
  }
@@ -11553,6 +11553,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11553
11553
  }, 100);
11554
11554
  return;
11555
11555
  }
11556
+ UI_WORKER_OBJ.cache = {};
11556
11557
  const _session = SESSION_OBJ[SESSION_ID];
11557
11558
  if (_session.engine_mode === 'live_preview') {
11558
11559
  console.info('========= xu-attributes refresh info ==============');
@@ -12006,6 +12007,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12006
12007
  }
12007
12008
  }
12008
12009
  if (found) {
12010
+ UI_WORKER_OBJ.cache = {};
12009
12011
  const _session = SESSION_OBJ[SESSION_ID];
12010
12012
  if (_session.engine_mode === 'live_preview') {
12011
12013
  console.info('========= refresh info ==============');
@@ -14779,12 +14781,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14779
14781
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14780
14782
  $div.on('inViewport', function () {
14781
14783
  if ($div.children().length) {
14782
- // $div.removeClass('skeleton');
14784
+ $div.removeClass('skeleton');
14783
14785
  return;
14784
14786
  }
14785
14787
 
14786
14788
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
14787
- // $div.removeClass('skeleton');
14789
+ $div.removeClass('skeleton');
14788
14790
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
14789
14791
  } else {
14790
14792
  hover_in($div);
@@ -14794,12 +14796,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14794
14796
  });
14795
14797
 
14796
14798
  $div.on('outViewport', function () {
14797
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14798
- $div.empty();
14799
+ if ($div.children().length) {
14800
+ UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14801
+ $div.empty();
14802
+ }
14799
14803
  // $div.addClass('skeleton');
14800
14804
  observer_inViewport.observe($div[0]);
14801
14805
  });
14802
-
14806
+ $div.addClass('skeleton');
14803
14807
  observer_inViewport.observe($div[0]);
14804
14808
  // observer_outViewport.observe($div[0]);
14805
14809
  } else {
@@ -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
  }
@@ -9261,6 +9261,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9261
9261
  }, 100);
9262
9262
  return;
9263
9263
  }
9264
+ UI_WORKER_OBJ.cache = {};
9264
9265
  const _session = SESSION_OBJ[SESSION_ID];
9265
9266
  if (_session.engine_mode === 'live_preview') {
9266
9267
  console.info('========= xu-attributes refresh info ==============');
@@ -9714,6 +9715,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9714
9715
  }
9715
9716
  }
9716
9717
  if (found) {
9718
+ UI_WORKER_OBJ.cache = {};
9717
9719
  const _session = SESSION_OBJ[SESSION_ID];
9718
9720
  if (_session.engine_mode === 'live_preview') {
9719
9721
  console.info('========= refresh info ==============');
@@ -12487,12 +12489,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12487
12489
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12488
12490
  $div.on('inViewport', function () {
12489
12491
  if ($div.children().length) {
12490
- // $div.removeClass('skeleton');
12492
+ $div.removeClass('skeleton');
12491
12493
  return;
12492
12494
  }
12493
12495
 
12494
12496
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
12495
- // $div.removeClass('skeleton');
12497
+ $div.removeClass('skeleton');
12496
12498
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
12497
12499
  } else {
12498
12500
  hover_in($div);
@@ -12502,12 +12504,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12502
12504
  });
12503
12505
 
12504
12506
  $div.on('outViewport', function () {
12505
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12506
- $div.empty();
12507
+ if ($div.children().length) {
12508
+ UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12509
+ $div.empty();
12510
+ }
12507
12511
  // $div.addClass('skeleton');
12508
12512
  observer_inViewport.observe($div[0]);
12509
12513
  });
12510
-
12514
+ $div.addClass('skeleton');
12511
12515
  observer_inViewport.observe($div[0]);
12512
12516
  // observer_outViewport.observe($div[0]);
12513
12517
  } else {