@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.
|
@@ -32337,12 +32337,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32337
32337
|
|
|
32338
32338
|
const new_render = async function () {
|
|
32339
32339
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
32340
|
+
const has_xu_render_attribute = $elm.data()?.xuData?.attr_exp_info?.['xu-render'] ? true : false;
|
|
32340
32341
|
const init_render = async function () {
|
|
32341
32342
|
nodeP.xu_render_made = value;
|
|
32342
32343
|
if (!value) {
|
|
32343
|
-
|
|
32344
|
+
if (has_xu_render_attribute) {
|
|
32345
|
+
return { has_xu_render_attribute, xu_render_in_process: true, abort: true };
|
|
32346
|
+
}
|
|
32347
|
+
return { abort: true };
|
|
32344
32348
|
}
|
|
32345
|
-
return { has_xu_render_attribute
|
|
32349
|
+
return { has_xu_render_attribute };
|
|
32346
32350
|
};
|
|
32347
32351
|
|
|
32348
32352
|
const post_render = async function () {
|
|
@@ -34423,17 +34427,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34423
34427
|
};
|
|
34424
34428
|
|
|
34425
34429
|
const draw_html_element = async function (element) {
|
|
34426
|
-
let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
34427
|
-
if (!glb.new_xu_render) {
|
|
34428
|
-
|
|
34429
|
-
}
|
|
34430
|
+
// let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
34431
|
+
// if (!glb.new_xu_render) {
|
|
34432
|
+
// temp_$container = $container;
|
|
34433
|
+
// }
|
|
34430
34434
|
const done = async function (ret = {}) {
|
|
34431
34435
|
if (glb.new_xu_render) {
|
|
34432
34436
|
if (ret.has_xu_render_attribute) {
|
|
34433
34437
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
34434
|
-
// if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
34435
|
-
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
34436
|
-
// }
|
|
34437
34438
|
|
|
34438
34439
|
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 || {}));
|
|
34439
34440
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
@@ -34441,10 +34442,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34441
34442
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
34442
34443
|
if (ret.xu_render_in_process) {
|
|
34443
34444
|
return $div;
|
|
34444
|
-
} else {
|
|
34445
|
-
|
|
34446
|
-
|
|
34447
|
-
}
|
|
34445
|
+
} //else {
|
|
34446
|
+
// $container.append(temp_$container.children());
|
|
34447
|
+
// return $div;
|
|
34448
|
+
// }
|
|
34449
|
+
|
|
34450
|
+
return $div;
|
|
34448
34451
|
} else {
|
|
34449
34452
|
$container.append(temp_$container.children());
|
|
34450
34453
|
return $div;
|
|
@@ -34456,7 +34459,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34456
34459
|
if (!element || element === 'script') return await done();
|
|
34457
34460
|
let str = '';
|
|
34458
34461
|
|
|
34459
|
-
var $div = await func.UI.screen.create_container(SESSION_ID, $root_container, nodeP,
|
|
34462
|
+
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);
|
|
34460
34463
|
|
|
34461
34464
|
$div.hover(
|
|
34462
34465
|
function (e) {
|
|
@@ -34472,7 +34475,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34472
34475
|
});
|
|
34473
34476
|
}
|
|
34474
34477
|
|
|
34475
|
-
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP,
|
|
34478
|
+
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);
|
|
34476
34479
|
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'])) {
|
|
34477
34480
|
return await done(ret);
|
|
34478
34481
|
}
|
|
@@ -34571,7 +34574,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34571
34574
|
} else {
|
|
34572
34575
|
if (glb.new_xu_render) {
|
|
34573
34576
|
if (ret.xu_render_in_process) {
|
|
34574
|
-
|
|
34577
|
+
let temp_$div = $div.clone(true);
|
|
34578
|
+
iterate_child(temp_$div, nodeP, parent_infoP, $root_container);
|
|
34575
34579
|
} else {
|
|
34576
34580
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34577
34581
|
}
|