@xuda.io/runtime-bundle 1.0.1080 → 1.0.1081

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.
@@ -34427,17 +34427,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34427
34427
  };
34428
34428
 
34429
34429
  const draw_html_element = async function (element) {
34430
- let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
34431
- if (!glb.new_xu_render) {
34432
- temp_$container = $container;
34433
- }
34430
+ // let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
34431
+ // if (!glb.new_xu_render) {
34432
+ // temp_$container = $container;
34433
+ // }
34434
34434
  const done = async function (ret = {}) {
34435
34435
  if (glb.new_xu_render) {
34436
34436
  if (ret.has_xu_render_attribute) {
34437
34437
  const xu_ui_id = $div.attr('xu-ui-id');
34438
- // if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
34439
- // UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
34440
- // }
34441
34438
 
34442
34439
  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 || {}));
34443
34440
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
@@ -34445,10 +34442,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34445
34442
  nodeP.xu_render_cache_id = xu_render_cache_id;
34446
34443
  if (ret.xu_render_in_process) {
34447
34444
  return $div;
34448
- } else {
34449
- $container.append(temp_$container.children());
34450
- return $div;
34451
- }
34445
+ } //else {
34446
+ // $container.append(temp_$container.children());
34447
+ // return $div;
34448
+ // }
34449
+
34450
+ return $div;
34452
34451
  } else {
34453
34452
  $container.append(temp_$container.children());
34454
34453
  return $div;
@@ -34460,7 +34459,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34460
34459
  if (!element || element === 'script') return await done();
34461
34460
  let str = '';
34462
34461
 
34463
- 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);
34462
+ 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);
34464
34463
 
34465
34464
  $div.hover(
34466
34465
  function (e) {
@@ -34476,7 +34475,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34476
34475
  });
34477
34476
  }
34478
34477
 
34479
- 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);
34478
+ 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);
34480
34479
  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'])) {
34481
34480
  return await done(ret);
34482
34481
  }
@@ -34575,7 +34574,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34575
34574
  } else {
34576
34575
  if (glb.new_xu_render) {
34577
34576
  if (ret.xu_render_in_process) {
34578
- iterate_child($div, nodeP, parent_infoP, $root_container);
34577
+ let temp_$div = $div.clone(true);
34578
+ iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
34579
34579
  } else {
34580
34580
  await iterate_child($div, nodeP, parent_infoP, $root_container);
34581
34581
  }