@xuda.io/runtime-bundle 1.0.1019 → 1.0.1021

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.
@@ -32287,6 +32287,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32287
32287
  const new_render = async function () {
32288
32288
  var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
32289
32289
  const init_render = async function () {
32290
+ nodeP.xu_render_made = value;
32290
32291
  if (!value) {
32291
32292
  // const cloned_$div = $elm.clone(true);
32292
32293
 
@@ -32310,8 +32311,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32310
32311
  // $xurender.hide();
32311
32312
 
32312
32313
  // $elm.remove();
32313
- parent_nodeP.xu_render = true;
32314
- return { xu_render: true };
32314
+ // nodeP.xu_render_made = true;
32315
+ return { xu_render_in_process: true };
32315
32316
  }
32316
32317
  return {};
32317
32318
  };
@@ -34439,13 +34440,27 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34439
34440
  };
34440
34441
 
34441
34442
  const draw_html_element = async function (element) {
34442
- const done = async function () {
34443
- return $div;
34443
+ let temp_$container = $('<tmp>');
34444
+ if (!glb.new_xu_render) {
34445
+ temp_$container = $container;
34446
+ }
34447
+ const done = async function (ret = {}) {
34448
+ if (glb.new_xu_render) {
34449
+ if (ret.xu_render_in_process) {
34450
+ debugger;
34451
+ $container.append(temp_$container.children());
34452
+ return $div;
34453
+ } else {
34454
+ return $div;
34455
+ }
34456
+ } else {
34457
+ return $div;
34458
+ }
34444
34459
  };
34445
34460
  if (!element || element === 'script') return await done();
34446
34461
  let str = '';
34447
34462
 
34448
- 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);
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);
34449
34464
 
34450
34465
  $div.hover(
34451
34466
  function (e) {
@@ -34461,7 +34476,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34461
34476
  });
34462
34477
  }
34463
34478
 
34464
- 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);
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);
34465
34480
  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'])) {
34466
34481
  return await done();
34467
34482
  }
@@ -34534,7 +34549,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34534
34549
  // $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
34535
34550
  // } else {
34536
34551
  hover_in($div);
34537
- ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
34552
+ ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, temp_$container }, null, null, paramsP.dsSessionP);
34538
34553
  // }
34539
34554
  observer_outViewport.observe($div[0]);
34540
34555
  });
@@ -34559,7 +34574,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34559
34574
  xu_viewport();
34560
34575
  } else {
34561
34576
  if (glb.new_xu_render) {
34562
- if (ret.xu_render) {
34577
+ if (ret.xu_render_in_process) {
34563
34578
  iterate_child($div, nodeP, parent_infoP, $root_container);
34564
34579
  } else {
34565
34580
  await iterate_child($div, nodeP, parent_infoP, $root_container);
@@ -34570,7 +34585,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34570
34585
  }
34571
34586
 
34572
34587
  // const ret_iterate_child = await iterate_child($div, nodeP, parent_infoP, null, $root_container);
34573
- return await done();
34588
+ return await done(ret);
34574
34589
  };
34575
34590
 
34576
34591
  if (nodeP.content && nodeP.attributes) {