@xuda.io/runtime-bundle 1.0.1022 → 1.0.1024
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -14085,7 +14085,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14085
14085
|
node_promises.push(
|
|
14086
14086
|
new Promise(async (resolve, reject) => {
|
|
14087
14087
|
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);
|
|
14088
|
-
|
|
14088
|
+
|
|
14089
14089
|
resolve();
|
|
14090
14090
|
}),
|
|
14091
14091
|
);
|
|
@@ -14764,7 +14764,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14764
14764
|
if (glb.new_xu_render) {
|
|
14765
14765
|
if (ret.xu_render_in_process) {
|
|
14766
14766
|
debugger;
|
|
14767
|
+
const xu_ui_id = $div.attr('xu-ui-id');
|
|
14768
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
14769
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
14770
|
+
}
|
|
14767
14771
|
|
|
14772
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = $div;
|
|
14768
14773
|
return $div;
|
|
14769
14774
|
} else {
|
|
14770
14775
|
$container.append(temp_$container.children());
|
|
@@ -14795,7 +14800,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14795
14800
|
|
|
14796
14801
|
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);
|
|
14797
14802
|
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'])) {
|
|
14798
|
-
return await done();
|
|
14803
|
+
return await done(ret);
|
|
14799
14804
|
}
|
|
14800
14805
|
// check if iterator made to prevent children render
|
|
14801
14806
|
|
|
@@ -11810,7 +11810,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11810
11810
|
node_promises.push(
|
|
11811
11811
|
new Promise(async (resolve, reject) => {
|
|
11812
11812
|
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);
|
|
11813
|
-
|
|
11813
|
+
|
|
11814
11814
|
resolve();
|
|
11815
11815
|
}),
|
|
11816
11816
|
);
|
|
@@ -12489,7 +12489,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12489
12489
|
if (glb.new_xu_render) {
|
|
12490
12490
|
if (ret.xu_render_in_process) {
|
|
12491
12491
|
debugger;
|
|
12492
|
+
const xu_ui_id = $div.attr('xu-ui-id');
|
|
12493
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
12494
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
12495
|
+
}
|
|
12492
12496
|
|
|
12497
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = $div;
|
|
12493
12498
|
return $div;
|
|
12494
12499
|
} else {
|
|
12495
12500
|
$container.append(temp_$container.children());
|
|
@@ -12520,7 +12525,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12520
12525
|
|
|
12521
12526
|
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);
|
|
12522
12527
|
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'])) {
|
|
12523
|
-
return await done();
|
|
12528
|
+
return await done(ret);
|
|
12524
12529
|
}
|
|
12525
12530
|
// check if iterator made to prevent children render
|
|
12526
12531
|
|