@xuda.io/runtime-bundle 1.0.959 → 1.0.960

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.
@@ -13742,12 +13742,43 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
13742
13742
  await before_record_function();
13743
13743
  }
13744
13744
  if (nodeP?.children?.length) {
13745
- for await (const [key, val] of Object.entries(nodeP.children)) {
13746
- const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
13745
+ let node_promises = [];
13746
+ for (const [key, val] of Object.entries(nodeP.children)) {
13747
+ node_promises.push(
13748
+ new Promise(async (resolve, reject) => {
13749
+ const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
13750
+ resolve();
13751
+ }),
13752
+ );
13747
13753
  }
13754
+ await Promise.all(node_promises);
13748
13755
  }
13749
13756
  return await done($divP);
13750
13757
  };
13758
+ // const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
13759
+ // if (!is_mobile && nodeP.busy) return;
13760
+ // nodeP.busy = true;
13761
+ // const done = async function ($divP) {
13762
+ // setTimeout(function () {
13763
+ // nodeP.busy = false;
13764
+ // }, 1000);
13765
+
13766
+ // return $divP;
13767
+ // };
13768
+ // if (!nodeP || !nodeP.children) {
13769
+ // return await done($divP);
13770
+ // }
13771
+
13772
+ // if (before_record_function) {
13773
+ // await before_record_function();
13774
+ // }
13775
+ // if (nodeP?.children?.length) {
13776
+ // for await (const [key, val] of Object.entries(nodeP.children)) {
13777
+ // const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
13778
+ // }
13779
+ // }
13780
+ // return await done($divP);
13781
+ // };
13751
13782
 
13752
13783
  const _$ = function ($elm) {
13753
13784
  try {
@@ -11469,12 +11469,43 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11469
11469
  await before_record_function();
11470
11470
  }
11471
11471
  if (nodeP?.children?.length) {
11472
- for await (const [key, val] of Object.entries(nodeP.children)) {
11473
- const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
11472
+ let node_promises = [];
11473
+ for (const [key, val] of Object.entries(nodeP.children)) {
11474
+ node_promises.push(
11475
+ new Promise(async (resolve, reject) => {
11476
+ const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
11477
+ resolve();
11478
+ }),
11479
+ );
11474
11480
  }
11481
+ await Promise.all(node_promises);
11475
11482
  }
11476
11483
  return await done($divP);
11477
11484
  };
11485
+ // const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
11486
+ // if (!is_mobile && nodeP.busy) return;
11487
+ // nodeP.busy = true;
11488
+ // const done = async function ($divP) {
11489
+ // setTimeout(function () {
11490
+ // nodeP.busy = false;
11491
+ // }, 1000);
11492
+
11493
+ // return $divP;
11494
+ // };
11495
+ // if (!nodeP || !nodeP.children) {
11496
+ // return await done($divP);
11497
+ // }
11498
+
11499
+ // if (before_record_function) {
11500
+ // await before_record_function();
11501
+ // }
11502
+ // if (nodeP?.children?.length) {
11503
+ // for await (const [key, val] of Object.entries(nodeP.children)) {
11504
+ // const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $divP, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
11505
+ // }
11506
+ // }
11507
+ // return await done($divP);
11508
+ // };
11478
11509
 
11479
11510
  const _$ = function ($elm) {
11480
11511
  try {