@xuda.io/runtime-bundle 1.0.575 → 1.0.577

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.
@@ -8649,6 +8649,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8649
8649
 
8650
8650
  setInterval(async function () {
8651
8651
  func.UI.refs_garbage_collector();
8652
+ func.UI.teleport_garbage_collector();
8652
8653
  }, 1000);
8653
8654
  };
8654
8655
  func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
@@ -12367,31 +12368,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12367
12368
  [`xu-teleport`]: {
12368
12369
  to: async function ($elm, val) {
12369
12370
  if (val.value) {
12370
- $elm.data('xuTeleportData', []);
12371
+ $elm.parent().data('xuTeleportData', []);
12371
12372
  for (const [key, node] of Object.entries(nodeP.children)) {
12372
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);
12373
12374
  // $teleport_elm.data('xuTeleportParentId', );
12374
- $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
12375
- $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
12376
- // console.log($teleport_elm);
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'));
12377
12377
  }
12378
-
12379
- // // Select the node that will be observed for mutations
12380
- // const targetNode = $elm[0];
12381
-
12382
- // // Options for the observer (which mutations to observe)
12383
- // const config = { attributes: true, childList: true, subtree: true };
12384
-
12385
- // // Callback function to execute when mutations are observed
12386
- // const callback = (mutationList, observer) => {
12387
- // console.log(mutationList, observer);
12388
- // };
12389
-
12390
- // // Create an observer instance linked to the callback function
12391
- // const observer = new MutationObserver(callback);
12392
-
12393
- // // Start observing the target node for configured mutations
12394
- // observer.observe(targetNode, config);
12378
+ $elm.remove();
12395
12379
  }
12396
12380
  return { abort: true };
12397
12381
  },
@@ -8650,6 +8650,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8650
8650
 
8651
8651
  setInterval(async function () {
8652
8652
  func.UI.refs_garbage_collector();
8653
+ func.UI.teleport_garbage_collector();
8653
8654
  }, 1000);
8654
8655
  };
8655
8656
  func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
@@ -10099,31 +10100,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10099
10100
  [`xu-teleport`]: {
10100
10101
  to: async function ($elm, val) {
10101
10102
  if (val.value) {
10102
- $elm.data('xuTeleportData', []);
10103
+ $elm.parent().data('xuTeleportData', []);
10103
10104
  for (const [key, node] of Object.entries(nodeP.children)) {
10104
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);
10105
10106
  // $teleport_elm.data('xuTeleportParentId', );
10106
- $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
10107
- $teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
10108
- // console.log($teleport_elm);
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'));
10109
10109
  }
10110
-
10111
- // // Select the node that will be observed for mutations
10112
- // const targetNode = $elm[0];
10113
-
10114
- // // Options for the observer (which mutations to observe)
10115
- // const config = { attributes: true, childList: true, subtree: true };
10116
-
10117
- // // Callback function to execute when mutations are observed
10118
- // const callback = (mutationList, observer) => {
10119
- // console.log(mutationList, observer);
10120
- // };
10121
-
10122
- // // Create an observer instance linked to the callback function
10123
- // const observer = new MutationObserver(callback);
10124
-
10125
- // // Start observing the target node for configured mutations
10126
- // observer.observe(targetNode, config);
10110
+ $elm.remove();
10127
10111
  }
10128
10112
  return { abort: true };
10129
10113
  },