@xuda.io/runtime-bundle 1.0.675 → 1.0.676
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.
|
@@ -27807,39 +27807,27 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27807
27807
|
return done();
|
|
27808
27808
|
},
|
|
27809
27809
|
execute_xu_for: async function () {
|
|
27810
|
-
|
|
27811
|
-
|
|
27812
|
-
if (!$elm?.length) {
|
|
27813
|
-
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27814
|
-
}
|
|
27810
|
+
try {
|
|
27811
|
+
var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
|
|
27815
27812
|
|
|
27816
|
-
|
|
27813
|
+
if (!$elm?.length) {
|
|
27814
|
+
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27815
|
+
}
|
|
27817
27816
|
|
|
27818
|
-
|
|
27819
|
-
if (!$(val)?.data()?.xuData) return true;
|
|
27817
|
+
// $elm.empty();
|
|
27820
27818
|
|
|
27821
|
-
|
|
27822
|
-
|
|
27823
|
-
}
|
|
27824
|
-
});
|
|
27819
|
+
$.each($elm.children(), (key, val) => {
|
|
27820
|
+
if (!$(val)?.data()?.xuData) return true;
|
|
27825
27821
|
|
|
27826
|
-
|
|
27827
|
-
|
|
27828
|
-
|
|
27829
|
-
|
|
27830
|
-
queue_obj.paramsP.elem_val.$elm,
|
|
27831
|
-
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
27832
|
-
null,
|
|
27833
|
-
_data.xuData.paramsP,
|
|
27834
|
-
queue_obj.jobNoP,
|
|
27835
|
-
null,
|
|
27836
|
-
_data.xuData.key,
|
|
27837
|
-
null,
|
|
27838
|
-
_data.xuData.parent_node,
|
|
27839
|
-
null,
|
|
27840
|
-
_data.xuData.$root_container,
|
|
27841
|
-
);
|
|
27822
|
+
if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
|
|
27823
|
+
$(val).remove();
|
|
27824
|
+
}
|
|
27825
|
+
});
|
|
27842
27826
|
|
|
27827
|
+
let _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
27828
|
+
const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
|
|
27829
|
+
func.UI.screen.render_ui_tree(queue_obj.paramsP.SESSION_ID, queue_obj.paramsP.elem_val.$elm, node_to_render, null, _data.xuData.paramsP, queue_obj.jobNoP, null, _data.xuData.key, null, _data.xuData.parent_node, null, _data.xuData.$root_container);
|
|
27830
|
+
} catch (error) {}
|
|
27843
27831
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27844
27832
|
},
|
|
27845
27833
|
};
|