@xuda.io/runtime-bundle 1.0.577 → 1.0.579

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.
@@ -32059,14 +32059,24 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32059
32059
  [`xu-teleport`]: {
32060
32060
  to: async function ($elm, val) {
32061
32061
  if (val.value) {
32062
- $elm.parent().data('xuTeleportData', []);
32063
- for (const [key, node] of Object.entries(nodeP.children)) {
32064
- 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);
32065
- // $teleport_elm.data('xuTeleportParentId', );
32066
- $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
32067
- $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
32062
+ if ($elm.parent().data().xuData) {
32063
+ $elm.parent().data('xuTeleportData', []);
32064
+ for (const [key, node] of Object.entries(nodeP.children)) {
32065
+ 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);
32066
+
32067
+ $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
32068
+ $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
32069
+ }
32070
+ $elm.remove();
32071
+ } else {
32072
+ $elm.data('xuTeleportData', []);
32073
+ for (const [key, node] of Object.entries(nodeP.children)) {
32074
+ 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);
32075
+
32076
+ $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
32077
+ $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
32078
+ }
32068
32079
  }
32069
- $elm.remove();
32070
32080
  }
32071
32081
  return { abort: true };
32072
32082
  },