@xuda.io/runtime-bundle 1.0.1105 → 1.0.1106

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.
@@ -14912,10 +14912,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14912
14912
 
14913
14913
  if (ret.has_xu_exp_render_attribute) {
14914
14914
  // $div.css('display', 'unset');
14915
- const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
14916
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
14917
- nodeP.xu_render_xu_ui_id = xu_ui_id;
14918
- nodeP.xu_render_cache_id = xu_render_cache_id;
14915
+ if (!ret.xu_render_background_processing) {
14916
+ const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
14917
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
14918
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
14919
+ nodeP.xu_render_cache_id = xu_render_cache_id;
14920
+ temp_$div.replaceWith($div);
14921
+ return $div;
14922
+ }
14919
14923
  if (ret.xu_render_background_processing) {
14920
14924
  temp_$div.remove();
14921
14925
  // $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
@@ -15056,11 +15060,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
15056
15060
  };
15057
15061
  xu_viewport();
15058
15062
  } else {
15059
- if (ret.xu_render_background_processing) {
15060
- // let temp_$div = $div.clone(true);
15063
+ // if (ret.xu_render_background_processing) {
15064
+ // // let temp_$div = $div.clone(true);
15065
+ // iterate_child($div, nodeP, parent_infoP, $root_container);
15066
+ // } else {
15067
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
15068
+ // }
15069
+ if (!ret.xu_render_background_processing) {
15061
15070
  iterate_child($div, nodeP, parent_infoP, $root_container);
15062
- } else {
15063
- await iterate_child($div, nodeP, parent_infoP, $root_container);
15064
15071
  }
15065
15072
  }
15066
15073
 
@@ -12637,10 +12637,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12637
12637
 
12638
12638
  if (ret.has_xu_exp_render_attribute) {
12639
12639
  // $div.css('display', 'unset');
12640
- const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
12641
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
12642
- nodeP.xu_render_xu_ui_id = xu_ui_id;
12643
- nodeP.xu_render_cache_id = xu_render_cache_id;
12640
+ if (!ret.xu_render_background_processing) {
12641
+ const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
12642
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
12643
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
12644
+ nodeP.xu_render_cache_id = xu_render_cache_id;
12645
+ temp_$div.replaceWith($div);
12646
+ return $div;
12647
+ }
12644
12648
  if (ret.xu_render_background_processing) {
12645
12649
  temp_$div.remove();
12646
12650
  // $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
@@ -12781,11 +12785,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12781
12785
  };
12782
12786
  xu_viewport();
12783
12787
  } else {
12784
- if (ret.xu_render_background_processing) {
12785
- // let temp_$div = $div.clone(true);
12788
+ // if (ret.xu_render_background_processing) {
12789
+ // // let temp_$div = $div.clone(true);
12790
+ // iterate_child($div, nodeP, parent_infoP, $root_container);
12791
+ // } else {
12792
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
12793
+ // }
12794
+ if (!ret.xu_render_background_processing) {
12786
12795
  iterate_child($div, nodeP, parent_infoP, $root_container);
12787
- } else {
12788
- await iterate_child($div, nodeP, parent_infoP, $root_container);
12789
12796
  }
12790
12797
  }
12791
12798