@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.
|
@@ -33428,12 +33428,43 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
33428
33428
|
await before_record_function();
|
|
33429
33429
|
}
|
|
33430
33430
|
if (nodeP?.children?.length) {
|
|
33431
|
-
|
|
33432
|
-
|
|
33431
|
+
let node_promises = [];
|
|
33432
|
+
for (const [key, val] of Object.entries(nodeP.children)) {
|
|
33433
|
+
node_promises.push(
|
|
33434
|
+
new Promise(async (resolve, reject) => {
|
|
33435
|
+
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);
|
|
33436
|
+
resolve();
|
|
33437
|
+
}),
|
|
33438
|
+
);
|
|
33433
33439
|
}
|
|
33440
|
+
await Promise.all(node_promises);
|
|
33434
33441
|
}
|
|
33435
33442
|
return await done($divP);
|
|
33436
33443
|
};
|
|
33444
|
+
// const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
|
|
33445
|
+
// if (!is_mobile && nodeP.busy) return;
|
|
33446
|
+
// nodeP.busy = true;
|
|
33447
|
+
// const done = async function ($divP) {
|
|
33448
|
+
// setTimeout(function () {
|
|
33449
|
+
// nodeP.busy = false;
|
|
33450
|
+
// }, 1000);
|
|
33451
|
+
|
|
33452
|
+
// return $divP;
|
|
33453
|
+
// };
|
|
33454
|
+
// if (!nodeP || !nodeP.children) {
|
|
33455
|
+
// return await done($divP);
|
|
33456
|
+
// }
|
|
33457
|
+
|
|
33458
|
+
// if (before_record_function) {
|
|
33459
|
+
// await before_record_function();
|
|
33460
|
+
// }
|
|
33461
|
+
// if (nodeP?.children?.length) {
|
|
33462
|
+
// for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
33463
|
+
// 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);
|
|
33464
|
+
// }
|
|
33465
|
+
// }
|
|
33466
|
+
// return await done($divP);
|
|
33467
|
+
// };
|
|
33437
33468
|
|
|
33438
33469
|
const _$ = function ($elm) {
|
|
33439
33470
|
try {
|