@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -12350,10 +12350,32 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12350
12350
|
},
|
|
12351
12351
|
[`xu-teleport`]: {
|
|
12352
12352
|
to: async function ($elm, val) {
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12353
|
+
if (val.value) {
|
|
12354
|
+
$elm.data('xuTeleportData', []);
|
|
12355
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
12356
|
+
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);
|
|
12357
|
+
// $teleport_elm.data('xuTeleportParentId', );
|
|
12358
|
+
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
12359
|
+
console.log(ret);
|
|
12360
|
+
}
|
|
12361
|
+
|
|
12362
|
+
// Select the node that will be observed for mutations
|
|
12363
|
+
const targetNode = $elm[0];
|
|
12364
|
+
|
|
12365
|
+
// Options for the observer (which mutations to observe)
|
|
12366
|
+
const config = { attributes: true, childList: true, subtree: true };
|
|
12356
12367
|
|
|
12368
|
+
// Callback function to execute when mutations are observed
|
|
12369
|
+
const callback = (mutationList, observer) => {
|
|
12370
|
+
console.log(mutationList, observer);
|
|
12371
|
+
};
|
|
12372
|
+
|
|
12373
|
+
// Create an observer instance linked to the callback function
|
|
12374
|
+
const observer = new MutationObserver(callback);
|
|
12375
|
+
|
|
12376
|
+
// Start observing the target node for configured mutations
|
|
12377
|
+
observer.observe(targetNode, config);
|
|
12378
|
+
}
|
|
12357
12379
|
return { abort: true };
|
|
12358
12380
|
},
|
|
12359
12381
|
'xu-render': async function ($elm, val) {
|
|
@@ -10082,10 +10082,32 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10082
10082
|
},
|
|
10083
10083
|
[`xu-teleport`]: {
|
|
10084
10084
|
to: async function ($elm, val) {
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10085
|
+
if (val.value) {
|
|
10086
|
+
$elm.data('xuTeleportData', []);
|
|
10087
|
+
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
10088
|
+
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);
|
|
10089
|
+
// $teleport_elm.data('xuTeleportParentId', );
|
|
10090
|
+
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
10091
|
+
console.log(ret);
|
|
10092
|
+
}
|
|
10093
|
+
|
|
10094
|
+
// Select the node that will be observed for mutations
|
|
10095
|
+
const targetNode = $elm[0];
|
|
10096
|
+
|
|
10097
|
+
// Options for the observer (which mutations to observe)
|
|
10098
|
+
const config = { attributes: true, childList: true, subtree: true };
|
|
10088
10099
|
|
|
10100
|
+
// Callback function to execute when mutations are observed
|
|
10101
|
+
const callback = (mutationList, observer) => {
|
|
10102
|
+
console.log(mutationList, observer);
|
|
10103
|
+
};
|
|
10104
|
+
|
|
10105
|
+
// Create an observer instance linked to the callback function
|
|
10106
|
+
const observer = new MutationObserver(callback);
|
|
10107
|
+
|
|
10108
|
+
// Start observing the target node for configured mutations
|
|
10109
|
+
observer.observe(targetNode, config);
|
|
10110
|
+
}
|
|
10089
10111
|
return { abort: true };
|
|
10090
10112
|
},
|
|
10091
10113
|
'xu-render': async function ($elm, val) {
|