@xuda.io/runtime-bundle 1.0.1088 → 1.0.1090

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.
@@ -12206,7 +12206,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12206
12206
  }
12207
12207
  $elm.remove();
12208
12208
  } else {
12209
- $elm.data('xuTeleportData', []);
12209
+ $elm.data('xuTeleportData', []).attr('hidden', true);
12210
12210
  for (const [key, node] of Object.entries(nodeP.children)) {
12211
12211
  const $to_container = $(val.value);
12212
12212
  if (!$to_container?.length) {
@@ -14744,15 +14744,15 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14744
14744
  };
14745
14745
 
14746
14746
  const draw_html_element = async function (element) {
14747
- // let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
14748
- // if (!glb.new_xu_render) {
14749
- // temp_$container = $container;
14750
- // }
14747
+ let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
14748
+ if (!glb.new_xu_render) {
14749
+ temp_$container = $container;
14750
+ }
14751
14751
  const done = async function (ret = {}) {
14752
14752
  if (glb.new_xu_render) {
14753
+ const xu_ui_id = $div.attr('xu-ui-id');
14754
+ $div.css('display', 'unset');
14753
14755
  if (ret.has_xu_exp_render_attribute) {
14754
- const xu_ui_id = $div.attr('xu-ui-id');
14755
-
14756
14756
  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 || {}));
14757
14757
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
14758
14758
  nodeP.xu_render_xu_ui_id = xu_ui_id;
@@ -14782,6 +14782,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14782
14782
 
14783
14783
  var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
14784
14784
 
14785
+ if (glb.new_xu_render) {
14786
+ $div.css('display', 'none');
14787
+ }
14788
+
14785
14789
  $div.hover(
14786
14790
  function (e) {
14787
14791
  hover_in($div, e);
@@ -14796,7 +14800,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14796
14800
  });
14797
14801
  }
14798
14802
 
14799
- let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
14803
+ let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $div, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
14800
14804
  if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) {
14801
14805
  return await done(ret);
14802
14806
  }
@@ -14895,8 +14899,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14895
14899
  } else {
14896
14900
  if (glb.new_xu_render) {
14897
14901
  if (ret.xu_render_background_processing) {
14898
- let temp_$div = $div.clone(true);
14899
- iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
14902
+ // let temp_$div = $div.clone(true);
14903
+ iterate_child($div, nodeP, parent_infoP, $root_container);
14900
14904
  } else {
14901
14905
  await iterate_child($div, nodeP, parent_infoP, $root_container);
14902
14906
  }
@@ -9931,7 +9931,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
9931
9931
  }
9932
9932
  $elm.remove();
9933
9933
  } else {
9934
- $elm.data('xuTeleportData', []);
9934
+ $elm.data('xuTeleportData', []).attr('hidden', true);
9935
9935
  for (const [key, node] of Object.entries(nodeP.children)) {
9936
9936
  const $to_container = $(val.value);
9937
9937
  if (!$to_container?.length) {
@@ -12469,15 +12469,15 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12469
12469
  };
12470
12470
 
12471
12471
  const draw_html_element = async function (element) {
12472
- // let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
12473
- // if (!glb.new_xu_render) {
12474
- // temp_$container = $container;
12475
- // }
12472
+ let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
12473
+ if (!glb.new_xu_render) {
12474
+ temp_$container = $container;
12475
+ }
12476
12476
  const done = async function (ret = {}) {
12477
12477
  if (glb.new_xu_render) {
12478
+ const xu_ui_id = $div.attr('xu-ui-id');
12479
+ $div.css('display', 'unset');
12478
12480
  if (ret.has_xu_exp_render_attribute) {
12479
- const xu_ui_id = $div.attr('xu-ui-id');
12480
-
12481
12481
  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 || {}));
12482
12482
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
12483
12483
  nodeP.xu_render_xu_ui_id = xu_ui_id;
@@ -12507,6 +12507,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12507
12507
 
12508
12508
  var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
12509
12509
 
12510
+ if (glb.new_xu_render) {
12511
+ $div.css('display', 'none');
12512
+ }
12513
+
12510
12514
  $div.hover(
12511
12515
  function (e) {
12512
12516
  hover_in($div, e);
@@ -12521,7 +12525,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12521
12525
  });
12522
12526
  }
12523
12527
 
12524
- let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
12528
+ let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $div, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
12525
12529
  if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) {
12526
12530
  return await done(ret);
12527
12531
  }
@@ -12620,8 +12624,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12620
12624
  } else {
12621
12625
  if (glb.new_xu_render) {
12622
12626
  if (ret.xu_render_background_processing) {
12623
- let temp_$div = $div.clone(true);
12624
- iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
12627
+ // let temp_$div = $div.clone(true);
12628
+ iterate_child($div, nodeP, parent_infoP, $root_container);
12625
12629
  } else {
12626
12630
  await iterate_child($div, nodeP, parent_infoP, $root_container);
12627
12631
  }