@xuda.io/runtime-bundle 1.0.1079 → 1.0.1081
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
|
@@ -12653,12 +12653,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12653
12653
|
|
|
12654
12654
|
const new_render = async function () {
|
|
12655
12655
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
12656
|
+
const has_xu_render_attribute = $elm.data()?.xuData?.attr_exp_info?.['xu-render'] ? true : false;
|
|
12656
12657
|
const init_render = async function () {
|
|
12657
12658
|
nodeP.xu_render_made = value;
|
|
12658
12659
|
if (!value) {
|
|
12659
|
-
|
|
12660
|
+
if (has_xu_render_attribute) {
|
|
12661
|
+
return { has_xu_render_attribute, xu_render_in_process: true, abort: true };
|
|
12662
|
+
}
|
|
12663
|
+
return { abort: true };
|
|
12660
12664
|
}
|
|
12661
|
-
return { has_xu_render_attribute
|
|
12665
|
+
return { has_xu_render_attribute };
|
|
12662
12666
|
};
|
|
12663
12667
|
|
|
12664
12668
|
const post_render = async function () {
|
|
@@ -14739,17 +14743,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14739
14743
|
};
|
|
14740
14744
|
|
|
14741
14745
|
const draw_html_element = async function (element) {
|
|
14742
|
-
let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
14743
|
-
if (!glb.new_xu_render) {
|
|
14744
|
-
|
|
14745
|
-
}
|
|
14746
|
+
// let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
14747
|
+
// if (!glb.new_xu_render) {
|
|
14748
|
+
// temp_$container = $container;
|
|
14749
|
+
// }
|
|
14746
14750
|
const done = async function (ret = {}) {
|
|
14747
14751
|
if (glb.new_xu_render) {
|
|
14748
14752
|
if (ret.has_xu_render_attribute) {
|
|
14749
14753
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
14750
|
-
// if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
14751
|
-
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
14752
|
-
// }
|
|
14753
14754
|
|
|
14754
14755
|
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
|
|
14755
14756
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
@@ -14757,10 +14758,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14757
14758
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
14758
14759
|
if (ret.xu_render_in_process) {
|
|
14759
14760
|
return $div;
|
|
14760
|
-
} else {
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
}
|
|
14761
|
+
} //else {
|
|
14762
|
+
// $container.append(temp_$container.children());
|
|
14763
|
+
// return $div;
|
|
14764
|
+
// }
|
|
14765
|
+
|
|
14766
|
+
return $div;
|
|
14764
14767
|
} else {
|
|
14765
14768
|
$container.append(temp_$container.children());
|
|
14766
14769
|
return $div;
|
|
@@ -14772,7 +14775,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14772
14775
|
if (!element || element === 'script') return await done();
|
|
14773
14776
|
let str = '';
|
|
14774
14777
|
|
|
14775
|
-
var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP,
|
|
14778
|
+
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);
|
|
14776
14779
|
|
|
14777
14780
|
$div.hover(
|
|
14778
14781
|
function (e) {
|
|
@@ -14788,7 +14791,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14788
14791
|
});
|
|
14789
14792
|
}
|
|
14790
14793
|
|
|
14791
|
-
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP,
|
|
14794
|
+
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);
|
|
14792
14795
|
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'])) {
|
|
14793
14796
|
return await done(ret);
|
|
14794
14797
|
}
|
|
@@ -14887,7 +14890,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14887
14890
|
} else {
|
|
14888
14891
|
if (glb.new_xu_render) {
|
|
14889
14892
|
if (ret.xu_render_in_process) {
|
|
14890
|
-
|
|
14893
|
+
let temp_$div = $div.clone(true);
|
|
14894
|
+
iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
|
|
14891
14895
|
} else {
|
|
14892
14896
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14893
14897
|
}
|
|
@@ -10378,12 +10378,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10378
10378
|
|
|
10379
10379
|
const new_render = async function () {
|
|
10380
10380
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
10381
|
+
const has_xu_render_attribute = $elm.data()?.xuData?.attr_exp_info?.['xu-render'] ? true : false;
|
|
10381
10382
|
const init_render = async function () {
|
|
10382
10383
|
nodeP.xu_render_made = value;
|
|
10383
10384
|
if (!value) {
|
|
10384
|
-
|
|
10385
|
+
if (has_xu_render_attribute) {
|
|
10386
|
+
return { has_xu_render_attribute, xu_render_in_process: true, abort: true };
|
|
10387
|
+
}
|
|
10388
|
+
return { abort: true };
|
|
10385
10389
|
}
|
|
10386
|
-
return { has_xu_render_attribute
|
|
10390
|
+
return { has_xu_render_attribute };
|
|
10387
10391
|
};
|
|
10388
10392
|
|
|
10389
10393
|
const post_render = async function () {
|
|
@@ -12464,17 +12468,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12464
12468
|
};
|
|
12465
12469
|
|
|
12466
12470
|
const draw_html_element = async function (element) {
|
|
12467
|
-
let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
12468
|
-
if (!glb.new_xu_render) {
|
|
12469
|
-
|
|
12470
|
-
}
|
|
12471
|
+
// let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
12472
|
+
// if (!glb.new_xu_render) {
|
|
12473
|
+
// temp_$container = $container;
|
|
12474
|
+
// }
|
|
12471
12475
|
const done = async function (ret = {}) {
|
|
12472
12476
|
if (glb.new_xu_render) {
|
|
12473
12477
|
if (ret.has_xu_render_attribute) {
|
|
12474
12478
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
12475
|
-
// if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
12476
|
-
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
12477
|
-
// }
|
|
12478
12479
|
|
|
12479
12480
|
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
|
|
12480
12481
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
@@ -12482,10 +12483,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12482
12483
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
12483
12484
|
if (ret.xu_render_in_process) {
|
|
12484
12485
|
return $div;
|
|
12485
|
-
} else {
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
}
|
|
12486
|
+
} //else {
|
|
12487
|
+
// $container.append(temp_$container.children());
|
|
12488
|
+
// return $div;
|
|
12489
|
+
// }
|
|
12490
|
+
|
|
12491
|
+
return $div;
|
|
12489
12492
|
} else {
|
|
12490
12493
|
$container.append(temp_$container.children());
|
|
12491
12494
|
return $div;
|
|
@@ -12497,7 +12500,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12497
12500
|
if (!element || element === 'script') return await done();
|
|
12498
12501
|
let str = '';
|
|
12499
12502
|
|
|
12500
|
-
var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP,
|
|
12503
|
+
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);
|
|
12501
12504
|
|
|
12502
12505
|
$div.hover(
|
|
12503
12506
|
function (e) {
|
|
@@ -12513,7 +12516,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12513
12516
|
});
|
|
12514
12517
|
}
|
|
12515
12518
|
|
|
12516
|
-
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP,
|
|
12519
|
+
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);
|
|
12517
12520
|
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'])) {
|
|
12518
12521
|
return await done(ret);
|
|
12519
12522
|
}
|
|
@@ -12612,7 +12615,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12612
12615
|
} else {
|
|
12613
12616
|
if (glb.new_xu_render) {
|
|
12614
12617
|
if (ret.xu_render_in_process) {
|
|
12615
|
-
|
|
12618
|
+
let temp_$div = $div.clone(true);
|
|
12619
|
+
iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
|
|
12616
12620
|
} else {
|
|
12617
12621
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12618
12622
|
}
|