@xuda.io/runtime-bundle 1.0.959 → 1.0.961
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,13 +33428,45 @@ 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
|
};
|
|
33437
33444
|
|
|
33445
|
+
// const iterate_child = async function ($divP, nodeP, parent_infoP, $root_container, before_record_function) {
|
|
33446
|
+
// if (!is_mobile && nodeP.busy) return;
|
|
33447
|
+
// nodeP.busy = true;
|
|
33448
|
+
// const done = async function ($divP) {
|
|
33449
|
+
// setTimeout(function () {
|
|
33450
|
+
// nodeP.busy = false;
|
|
33451
|
+
// }, 1000);
|
|
33452
|
+
|
|
33453
|
+
// return $divP;
|
|
33454
|
+
// };
|
|
33455
|
+
// if (!nodeP || !nodeP.children) {
|
|
33456
|
+
// return await done($divP);
|
|
33457
|
+
// }
|
|
33458
|
+
|
|
33459
|
+
// if (before_record_function) {
|
|
33460
|
+
// await before_record_function();
|
|
33461
|
+
// }
|
|
33462
|
+
// if (nodeP?.children?.length) {
|
|
33463
|
+
// for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
33464
|
+
// 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);
|
|
33465
|
+
// }
|
|
33466
|
+
// }
|
|
33467
|
+
// return await done($divP);
|
|
33468
|
+
// };
|
|
33469
|
+
|
|
33438
33470
|
const _$ = function ($elm) {
|
|
33439
33471
|
try {
|
|
33440
33472
|
const id = $elm.attr('xu-ui-id');
|
|
@@ -34082,17 +34114,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34082
34114
|
$div.hover(
|
|
34083
34115
|
function (e) {
|
|
34084
34116
|
hover_in($div, e);
|
|
34085
|
-
// func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
|
|
34086
34117
|
},
|
|
34087
34118
|
function (e) {
|
|
34088
|
-
// func.UI.screen.hover_out(SESSION_ID, $container, is_skeleton, paramsP);
|
|
34089
34119
|
hover_out();
|
|
34090
34120
|
},
|
|
34091
34121
|
);
|
|
34092
|
-
|
|
34093
|
-
|
|
34094
|
-
|
|
34095
|
-
|
|
34122
|
+
if (paramsP.paramsP === 'grid' || parent_infoP?.iterate_info) {
|
|
34123
|
+
$div.on('click contextmenu', function (e) {
|
|
34124
|
+
hover_in($div, e);
|
|
34125
|
+
});
|
|
34126
|
+
}
|
|
34096
34127
|
|
|
34097
34128
|
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);
|
|
34098
34129
|
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'])) return await done();
|