@xuda.io/runtime-bundle 1.0.1102 → 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 (val.value) {
31883
- if ($elm?.parent()?.data()?.xuData?.length) {
31884
- $elm.parent().data('xuTeleportData', []);
31885
- for (const [key, node] of Object.entries(nodeP.children)) {
31886
- 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);
31887
-
31888
- $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
31889
- $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
31890
- }
31891
- $elm.remove();
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
- 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);
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
- $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
31902
- $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
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
- return { abort: true };
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);