@xuda.io/runtime-bundle 1.0.578 → 1.0.580

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.
@@ -12368,14 +12368,24 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12368
12368
  [`xu-teleport`]: {
12369
12369
  to: async function ($elm, val) {
12370
12370
  if (val.value) {
12371
- $elm.parent().data('xuTeleportData', []);
12372
- for (const [key, node] of Object.entries(nodeP.children)) {
12373
- 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);
12374
- // $teleport_elm.data('xuTeleportParentId', );
12375
- $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
12376
- $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
12371
+ if ($elm?.parent()?.data()?.xuData?.length) {
12372
+ $elm.parent().data('xuTeleportData', []);
12373
+ for (const [key, node] of Object.entries(nodeP.children)) {
12374
+ 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);
12375
+
12376
+ $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
12377
+ $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
12378
+ }
12379
+ $elm.remove();
12380
+ } else {
12381
+ $elm.data('xuTeleportData', []);
12382
+ for (const [key, node] of Object.entries(nodeP.children)) {
12383
+ 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);
12384
+
12385
+ $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
12386
+ $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
12387
+ }
12377
12388
  }
12378
- // $elm.remove();
12379
12389
  }
12380
12390
  return { abort: true };
12381
12391
  },
@@ -10100,14 +10100,24 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10100
10100
  [`xu-teleport`]: {
10101
10101
  to: async function ($elm, val) {
10102
10102
  if (val.value) {
10103
- $elm.parent().data('xuTeleportData', []);
10104
- for (const [key, node] of Object.entries(nodeP.children)) {
10105
- 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);
10106
- // $teleport_elm.data('xuTeleportParentId', );
10107
- $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
10108
- $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
10103
+ if ($elm?.parent()?.data()?.xuData?.length) {
10104
+ $elm.parent().data('xuTeleportData', []);
10105
+ for (const [key, node] of Object.entries(nodeP.children)) {
10106
+ 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);
10107
+
10108
+ $elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
10109
+ $teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
10110
+ }
10111
+ $elm.remove();
10112
+ } else {
10113
+ $elm.data('xuTeleportData', []);
10114
+ for (const [key, node] of Object.entries(nodeP.children)) {
10115
+ 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);
10116
+
10117
+ $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
10118
+ $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
10119
+ }
10109
10120
  }
10110
- // $elm.remove();
10111
10121
  }
10112
10122
  return { abort: true };
10113
10123
  },