@xuda.io/runtime-bundle 1.0.573 → 1.0.574
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.
|
@@ -27922,6 +27922,22 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
|
|
|
27922
27922
|
}
|
|
27923
27923
|
};
|
|
27924
27924
|
|
|
27925
|
+
func.UI.teleport_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)[0]) {
|
|
27926
|
+
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
27927
|
+
// let dom to finish build
|
|
27928
|
+
return;
|
|
27929
|
+
}
|
|
27930
|
+
|
|
27931
|
+
const $teleport_elements = $(`[xu-teleport-parent-id='*node-`);
|
|
27932
|
+
|
|
27933
|
+
$.each($teleport_elements, (key, val) => {
|
|
27934
|
+
const xu_teleport_parent_id = $(val).attr('xu-teleport-parent-id');
|
|
27935
|
+
if (!$(`[xu-ui-id='${xu_teleport_parent_id}`)?.length) {
|
|
27936
|
+
$(val).remove();
|
|
27937
|
+
}
|
|
27938
|
+
});
|
|
27939
|
+
};
|
|
27940
|
+
|
|
27925
27941
|
func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
27926
27942
|
let ret;
|
|
27927
27943
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
@@ -32047,25 +32063,26 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32047
32063
|
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
32064
|
// $teleport_elm.data('xuTeleportParentId', );
|
|
32049
32065
|
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
32050
|
-
|
|
32066
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
32067
|
+
// console.log($teleport_elm);
|
|
32051
32068
|
}
|
|
32052
32069
|
|
|
32053
|
-
// Select the node that will be observed for mutations
|
|
32054
|
-
const targetNode = $elm[0];
|
|
32070
|
+
// // Select the node that will be observed for mutations
|
|
32071
|
+
// const targetNode = $elm[0];
|
|
32055
32072
|
|
|
32056
|
-
// Options for the observer (which mutations to observe)
|
|
32057
|
-
const config = { attributes: true, childList: true, subtree: true };
|
|
32073
|
+
// // Options for the observer (which mutations to observe)
|
|
32074
|
+
// const config = { attributes: true, childList: true, subtree: true };
|
|
32058
32075
|
|
|
32059
|
-
// Callback function to execute when mutations are observed
|
|
32060
|
-
const callback = (mutationList, observer) => {
|
|
32061
|
-
|
|
32062
|
-
};
|
|
32076
|
+
// // Callback function to execute when mutations are observed
|
|
32077
|
+
// const callback = (mutationList, observer) => {
|
|
32078
|
+
// console.log(mutationList, observer);
|
|
32079
|
+
// };
|
|
32063
32080
|
|
|
32064
|
-
// Create an observer instance linked to the callback function
|
|
32065
|
-
const observer = new MutationObserver(callback);
|
|
32081
|
+
// // Create an observer instance linked to the callback function
|
|
32082
|
+
// const observer = new MutationObserver(callback);
|
|
32066
32083
|
|
|
32067
|
-
// Start observing the target node for configured mutations
|
|
32068
|
-
observer.observe(targetNode, config);
|
|
32084
|
+
// // Start observing the target node for configured mutations
|
|
32085
|
+
// observer.observe(targetNode, config);
|
|
32069
32086
|
}
|
|
32070
32087
|
return { abort: true };
|
|
32071
32088
|
},
|