@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -12603,6 +12603,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12603
12603
|
const new_render = async function () {
|
|
12604
12604
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
12605
12605
|
const init_render = async function () {
|
|
12606
|
+
nodeP.xu_render_made = value;
|
|
12606
12607
|
if (!value) {
|
|
12607
12608
|
// const cloned_$div = $elm.clone(true);
|
|
12608
12609
|
|
|
@@ -12626,8 +12627,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12626
12627
|
// $xurender.hide();
|
|
12627
12628
|
|
|
12628
12629
|
// $elm.remove();
|
|
12629
|
-
|
|
12630
|
-
return {
|
|
12630
|
+
// nodeP.xu_render_made = true;
|
|
12631
|
+
return { xu_render_in_process: true };
|
|
12631
12632
|
}
|
|
12632
12633
|
return {};
|
|
12633
12634
|
};
|
|
@@ -14755,13 +14756,27 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14755
14756
|
};
|
|
14756
14757
|
|
|
14757
14758
|
const draw_html_element = async function (element) {
|
|
14758
|
-
|
|
14759
|
-
|
|
14759
|
+
let temp_$container = $('<tmp>');
|
|
14760
|
+
if (!glb.new_xu_render) {
|
|
14761
|
+
temp_$container = $container;
|
|
14762
|
+
}
|
|
14763
|
+
const done = async function (ret = {}) {
|
|
14764
|
+
if (glb.new_xu_render) {
|
|
14765
|
+
if (ret.xu_render_in_process) {
|
|
14766
|
+
debugger;
|
|
14767
|
+
$container.append(temp_$container.children());
|
|
14768
|
+
return $div;
|
|
14769
|
+
} else {
|
|
14770
|
+
return $div;
|
|
14771
|
+
}
|
|
14772
|
+
} else {
|
|
14773
|
+
return $div;
|
|
14774
|
+
}
|
|
14760
14775
|
};
|
|
14761
14776
|
if (!element || element === 'script') return await done();
|
|
14762
14777
|
let str = '';
|
|
14763
14778
|
|
|
14764
|
-
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);
|
|
14779
|
+
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);
|
|
14765
14780
|
|
|
14766
14781
|
$div.hover(
|
|
14767
14782
|
function (e) {
|
|
@@ -14777,7 +14792,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14777
14792
|
});
|
|
14778
14793
|
}
|
|
14779
14794
|
|
|
14780
|
-
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);
|
|
14795
|
+
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);
|
|
14781
14796
|
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'])) {
|
|
14782
14797
|
return await done();
|
|
14783
14798
|
}
|
|
@@ -14850,7 +14865,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14850
14865
|
// $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
14851
14866
|
// } else {
|
|
14852
14867
|
hover_in($div);
|
|
14853
|
-
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);
|
|
14868
|
+
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);
|
|
14854
14869
|
// }
|
|
14855
14870
|
observer_outViewport.observe($div[0]);
|
|
14856
14871
|
});
|
|
@@ -14875,7 +14890,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14875
14890
|
xu_viewport();
|
|
14876
14891
|
} else {
|
|
14877
14892
|
if (glb.new_xu_render) {
|
|
14878
|
-
if (ret.
|
|
14893
|
+
if (ret.xu_render_in_process) {
|
|
14879
14894
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14880
14895
|
} else {
|
|
14881
14896
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
@@ -14886,7 +14901,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14886
14901
|
}
|
|
14887
14902
|
|
|
14888
14903
|
// const ret_iterate_child = await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14889
|
-
return await done();
|
|
14904
|
+
return await done(ret);
|
|
14890
14905
|
};
|
|
14891
14906
|
|
|
14892
14907
|
if (nodeP.content && nodeP.attributes) {
|
|
@@ -10328,6 +10328,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10328
10328
|
const new_render = async function () {
|
|
10329
10329
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
10330
10330
|
const init_render = async function () {
|
|
10331
|
+
nodeP.xu_render_made = value;
|
|
10331
10332
|
if (!value) {
|
|
10332
10333
|
// const cloned_$div = $elm.clone(true);
|
|
10333
10334
|
|
|
@@ -10351,8 +10352,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10351
10352
|
// $xurender.hide();
|
|
10352
10353
|
|
|
10353
10354
|
// $elm.remove();
|
|
10354
|
-
|
|
10355
|
-
return {
|
|
10355
|
+
// nodeP.xu_render_made = true;
|
|
10356
|
+
return { xu_render_in_process: true };
|
|
10356
10357
|
}
|
|
10357
10358
|
return {};
|
|
10358
10359
|
};
|
|
@@ -12480,13 +12481,27 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12480
12481
|
};
|
|
12481
12482
|
|
|
12482
12483
|
const draw_html_element = async function (element) {
|
|
12483
|
-
|
|
12484
|
-
|
|
12484
|
+
let temp_$container = $('<tmp>');
|
|
12485
|
+
if (!glb.new_xu_render) {
|
|
12486
|
+
temp_$container = $container;
|
|
12487
|
+
}
|
|
12488
|
+
const done = async function (ret = {}) {
|
|
12489
|
+
if (glb.new_xu_render) {
|
|
12490
|
+
if (ret.xu_render_in_process) {
|
|
12491
|
+
debugger;
|
|
12492
|
+
$container.append(temp_$container.children());
|
|
12493
|
+
return $div;
|
|
12494
|
+
} else {
|
|
12495
|
+
return $div;
|
|
12496
|
+
}
|
|
12497
|
+
} else {
|
|
12498
|
+
return $div;
|
|
12499
|
+
}
|
|
12485
12500
|
};
|
|
12486
12501
|
if (!element || element === 'script') return await done();
|
|
12487
12502
|
let str = '';
|
|
12488
12503
|
|
|
12489
|
-
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);
|
|
12504
|
+
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);
|
|
12490
12505
|
|
|
12491
12506
|
$div.hover(
|
|
12492
12507
|
function (e) {
|
|
@@ -12502,7 +12517,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12502
12517
|
});
|
|
12503
12518
|
}
|
|
12504
12519
|
|
|
12505
|
-
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);
|
|
12520
|
+
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);
|
|
12506
12521
|
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'])) {
|
|
12507
12522
|
return await done();
|
|
12508
12523
|
}
|
|
@@ -12575,7 +12590,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12575
12590
|
// $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
12576
12591
|
// } else {
|
|
12577
12592
|
hover_in($div);
|
|
12578
|
-
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);
|
|
12593
|
+
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);
|
|
12579
12594
|
// }
|
|
12580
12595
|
observer_outViewport.observe($div[0]);
|
|
12581
12596
|
});
|
|
@@ -12600,7 +12615,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12600
12615
|
xu_viewport();
|
|
12601
12616
|
} else {
|
|
12602
12617
|
if (glb.new_xu_render) {
|
|
12603
|
-
if (ret.
|
|
12618
|
+
if (ret.xu_render_in_process) {
|
|
12604
12619
|
iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12605
12620
|
} else {
|
|
12606
12621
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
@@ -12611,7 +12626,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12611
12626
|
}
|
|
12612
12627
|
|
|
12613
12628
|
// const ret_iterate_child = await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12614
|
-
return await done();
|
|
12629
|
+
return await done(ret);
|
|
12615
12630
|
};
|
|
12616
12631
|
|
|
12617
12632
|
if (nodeP.content && nodeP.attributes) {
|