@xuda.io/runtime-bundle 1.0.570 → 1.0.572

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.
@@ -32041,10 +32041,32 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32041
32041
  },
32042
32042
  [`xu-teleport`]: {
32043
32043
  to: async function ($elm, val) {
32044
- for (const [key, node] of Object.entries(nodeP.children)) {
32045
- const ret = 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);
32046
- }
32044
+ if (val.value) {
32045
+ $elm.data('xuTeleportData', []);
32046
+ for (const [key, node] of Object.entries(nodeP.children)) {
32047
+ 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);
32048
+ // $teleport_elm.data('xuTeleportParentId', );
32049
+ $elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
32050
+ console.log(ret);
32051
+ }
32052
+
32053
+ // Select the node that will be observed for mutations
32054
+ const targetNode = $elm[0];
32055
+
32056
+ // Options for the observer (which mutations to observe)
32057
+ const config = { attributes: true, childList: true, subtree: true };
32047
32058
 
32059
+ // Callback function to execute when mutations are observed
32060
+ const callback = (mutationList, observer) => {
32061
+ console.log(mutationList, observer);
32062
+ };
32063
+
32064
+ // Create an observer instance linked to the callback function
32065
+ const observer = new MutationObserver(callback);
32066
+
32067
+ // Start observing the target node for configured mutations
32068
+ observer.observe(targetNode, config);
32069
+ }
32048
32070
  return { abort: true };
32049
32071
  },
32050
32072
  'xu-render': async function ($elm, val) {