@xuda.io/runtime-bundle 1.0.1080 → 1.0.1082

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.
@@ -14743,17 +14743,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14743
14743
  };
14744
14744
 
14745
14745
  const draw_html_element = async function (element) {
14746
- let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
14747
- if (!glb.new_xu_render) {
14748
- temp_$container = $container;
14749
- }
14746
+ // let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
14747
+ // if (!glb.new_xu_render) {
14748
+ // temp_$container = $container;
14749
+ // }
14750
14750
  const done = async function (ret = {}) {
14751
14751
  if (glb.new_xu_render) {
14752
14752
  if (ret.has_xu_render_attribute) {
14753
14753
  const xu_ui_id = $div.attr('xu-ui-id');
14754
- // if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
14755
- // UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
14756
- // }
14757
14754
 
14758
14755
  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 || {}));
14759
14756
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
@@ -14761,12 +14758,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14761
14758
  nodeP.xu_render_cache_id = xu_render_cache_id;
14762
14759
  if (ret.xu_render_in_process) {
14763
14760
  return $div;
14764
- } else {
14765
- $container.append(temp_$container.children());
14766
- return $div;
14767
- }
14761
+ } //else {
14762
+ // $container.append(temp_$container.children());
14763
+ // return $div;
14764
+ // }
14765
+
14766
+ return $div;
14768
14767
  } else {
14769
- $container.append(temp_$container.children());
14768
+ // $container.append(temp_$container.children());
14770
14769
  return $div;
14771
14770
  }
14772
14771
  } else {
@@ -14776,7 +14775,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14776
14775
  if (!element || element === 'script') return await done();
14777
14776
  let str = '';
14778
14777
 
14779
- var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, temp_$container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
14778
+ 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);
14780
14779
 
14781
14780
  $div.hover(
14782
14781
  function (e) {
@@ -14792,7 +14791,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14792
14791
  });
14793
14792
  }
14794
14793
 
14795
- let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, temp_$container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
14794
+ 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);
14796
14795
  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'])) {
14797
14796
  return await done(ret);
14798
14797
  }
@@ -14891,7 +14890,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14891
14890
  } else {
14892
14891
  if (glb.new_xu_render) {
14893
14892
  if (ret.xu_render_in_process) {
14894
- iterate_child($div, nodeP, parent_infoP, $root_container);
14893
+ let temp_$div = $div.clone(true);
14894
+ iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
14895
14895
  } else {
14896
14896
  await iterate_child($div, nodeP, parent_infoP, $root_container);
14897
14897
  }
@@ -12468,17 +12468,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12468
12468
  };
12469
12469
 
12470
12470
  const draw_html_element = async function (element) {
12471
- let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
12472
- if (!glb.new_xu_render) {
12473
- temp_$container = $container;
12474
- }
12471
+ // let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
12472
+ // if (!glb.new_xu_render) {
12473
+ // temp_$container = $container;
12474
+ // }
12475
12475
  const done = async function (ret = {}) {
12476
12476
  if (glb.new_xu_render) {
12477
12477
  if (ret.has_xu_render_attribute) {
12478
12478
  const xu_ui_id = $div.attr('xu-ui-id');
12479
- // if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
12480
- // UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
12481
- // }
12482
12479
 
12483
12480
  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 || {}));
12484
12481
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
@@ -12486,12 +12483,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12486
12483
  nodeP.xu_render_cache_id = xu_render_cache_id;
12487
12484
  if (ret.xu_render_in_process) {
12488
12485
  return $div;
12489
- } else {
12490
- $container.append(temp_$container.children());
12491
- return $div;
12492
- }
12486
+ } //else {
12487
+ // $container.append(temp_$container.children());
12488
+ // return $div;
12489
+ // }
12490
+
12491
+ return $div;
12493
12492
  } else {
12494
- $container.append(temp_$container.children());
12493
+ // $container.append(temp_$container.children());
12495
12494
  return $div;
12496
12495
  }
12497
12496
  } else {
@@ -12501,7 +12500,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12501
12500
  if (!element || element === 'script') return await done();
12502
12501
  let str = '';
12503
12502
 
12504
- var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, temp_$container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
12503
+ 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);
12505
12504
 
12506
12505
  $div.hover(
12507
12506
  function (e) {
@@ -12517,7 +12516,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12517
12516
  });
12518
12517
  }
12519
12518
 
12520
- let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, temp_$container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
12519
+ 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);
12521
12520
  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'])) {
12522
12521
  return await done(ret);
12523
12522
  }
@@ -12616,7 +12615,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12616
12615
  } else {
12617
12616
  if (glb.new_xu_render) {
12618
12617
  if (ret.xu_render_in_process) {
12619
- iterate_child($div, nodeP, parent_infoP, $root_container);
12618
+ let temp_$div = $div.clone(true);
12619
+ iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
12620
12620
  } else {
12621
12621
  await iterate_child($div, nodeP, parent_infoP, $root_container);
12622
12622
  }