@xuda.io/runtime-bundle 1.0.1101 → 1.0.1103
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.
|
@@ -31879,31 +31879,59 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
31879
31879
|
},
|
|
31880
31880
|
[`xu-teleport`]: {
|
|
31881
31881
|
to: async function ($elm, val) {
|
|
31882
|
-
if (
|
|
31883
|
-
if (
|
|
31884
|
-
|
|
31885
|
-
|
|
31886
|
-
|
|
31887
|
-
|
|
31888
|
-
|
|
31889
|
-
|
|
31890
|
-
|
|
31891
|
-
|
|
31892
|
-
} else {
|
|
31893
|
-
$elm.data('xuTeleportData', []).attr('hidden', true);
|
|
31894
|
-
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
31895
|
-
const $to_container = $(val.value);
|
|
31896
|
-
if (!$to_container?.length) {
|
|
31897
|
-
return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
31882
|
+
if (!glb.new_xu_render) {
|
|
31883
|
+
if (val.value) {
|
|
31884
|
+
// parent_infoP.is_xu_teleport;
|
|
31885
|
+
if ($elm?.parent()?.data()?.xuData?.length) {
|
|
31886
|
+
$elm.parent().data('xuTeleportData', []);
|
|
31887
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
31888
|
+
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
31889
|
+
|
|
31890
|
+
$elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
31891
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
31898
31892
|
}
|
|
31899
|
-
|
|
31893
|
+
$elm.remove();
|
|
31894
|
+
} else {
|
|
31895
|
+
$elm.data('xuTeleportData', []).attr('hidden', true);
|
|
31896
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
31897
|
+
const $to_container = $(val.value);
|
|
31898
|
+
if (!$to_container?.length) {
|
|
31899
|
+
return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
31900
|
+
}
|
|
31901
|
+
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
31900
31902
|
|
|
31901
|
-
|
|
31902
|
-
|
|
31903
|
+
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
31904
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
31905
|
+
}
|
|
31903
31906
|
}
|
|
31904
31907
|
}
|
|
31908
|
+
return { abort: true };
|
|
31905
31909
|
}
|
|
31906
|
-
|
|
31910
|
+
|
|
31911
|
+
if (val.value) {
|
|
31912
|
+
// // parent_infoP.is_xu_teleport;
|
|
31913
|
+
// if ($elm?.parent()?.data()?.xuData?.length) {
|
|
31914
|
+
// $elm.parent().data('xuTeleportData', []);
|
|
31915
|
+
// for (const [key, node] of Object.entries(nodeP.children)) {
|
|
31916
|
+
// const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
31917
|
+
// $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
31918
|
+
// $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
31919
|
+
// }
|
|
31920
|
+
// $elm.remove();
|
|
31921
|
+
// } else {
|
|
31922
|
+
// $elm.data('xuTeleportData', []).attr('hidden', true);
|
|
31923
|
+
// for (const [key, node] of Object.entries(nodeP.children)) {
|
|
31924
|
+
// const $to_container = $(val.value);
|
|
31925
|
+
// if (!$to_container?.length) {
|
|
31926
|
+
// return console.error(`container ${val.value} for xuTeleportData not found`);
|
|
31927
|
+
// }
|
|
31928
|
+
// const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $to_container, node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
31929
|
+
// $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
31930
|
+
// $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
31931
|
+
// }
|
|
31932
|
+
// }
|
|
31933
|
+
}
|
|
31934
|
+
return {};
|
|
31907
31935
|
},
|
|
31908
31936
|
'xu-render': async function ($elm, val) {
|
|
31909
31937
|
let ret = await common_fx['xu-render']($elm, val, true);
|
|
@@ -34559,7 +34587,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34559
34587
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
34560
34588
|
|
|
34561
34589
|
if (ret.has_xu_exp_render_attribute) {
|
|
34562
|
-
$div.css('display', 'unset');
|
|
34590
|
+
// $div.css('display', 'unset');
|
|
34563
34591
|
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 || {}));
|
|
34564
34592
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
34565
34593
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
@@ -34569,7 +34597,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34569
34597
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
34570
34598
|
return $div;
|
|
34571
34599
|
} else {
|
|
34572
|
-
$div.css('display', 'unset');
|
|
34600
|
+
// $div.css('display', 'unset');
|
|
34573
34601
|
temp_$div.replaceWith($div);
|
|
34574
34602
|
return $div;
|
|
34575
34603
|
}
|
|
@@ -34578,7 +34606,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34578
34606
|
temp_$div.remove();
|
|
34579
34607
|
return $div;
|
|
34580
34608
|
}
|
|
34581
|
-
$div.css('display', 'unset');
|
|
34609
|
+
// $div.css('display', 'unset');
|
|
34582
34610
|
temp_$div.replaceWith($div);
|
|
34583
34611
|
return $div;
|
|
34584
34612
|
}
|
|
@@ -34591,7 +34619,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34591
34619
|
let temp_$container = $('<tmp>').data('xuData', $container.data().xuData);
|
|
34592
34620
|
let $div = temp_$div.clone(true);
|
|
34593
34621
|
|
|
34594
|
-
$div.css('display', 'none');
|
|
34622
|
+
// $div.css('display', 'none');
|
|
34595
34623
|
|
|
34596
34624
|
$div.hover(
|
|
34597
34625
|
function (e) {
|