@xuda.io/runtime-bundle 1.0.674 → 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,45 +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
|
-
// $(SESSION_OBJ[SESSION_ID].root_element),
|
|
27813
|
-
// "xu_id",
|
|
27814
|
-
// queue_obj.paramsP.elem_key
|
|
27815
|
-
// );
|
|
27816
|
-
|
|
27817
|
-
var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
|
|
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}]`)
|
|
27818
27812
|
|
|
27819
|
-
|
|
27820
|
-
|
|
27821
|
-
|
|
27822
|
-
}
|
|
27813
|
+
if (!$elm?.length) {
|
|
27814
|
+
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27815
|
+
}
|
|
27823
27816
|
|
|
27824
|
-
|
|
27817
|
+
// $elm.empty();
|
|
27825
27818
|
|
|
27826
|
-
|
|
27827
|
-
|
|
27828
|
-
$(val).remove();
|
|
27829
|
-
}
|
|
27830
|
-
});
|
|
27819
|
+
$.each($elm.children(), (key, val) => {
|
|
27820
|
+
if (!$(val)?.data()?.xuData) return true;
|
|
27831
27821
|
|
|
27832
|
-
|
|
27833
|
-
|
|
27834
|
-
|
|
27835
|
-
|
|
27836
|
-
queue_obj.paramsP.elem_val.$elm,
|
|
27837
|
-
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
27838
|
-
null,
|
|
27839
|
-
_data.xuData.paramsP,
|
|
27840
|
-
queue_obj.jobNoP,
|
|
27841
|
-
null,
|
|
27842
|
-
_data.xuData.key,
|
|
27843
|
-
null,
|
|
27844
|
-
_data.xuData.parent_node,
|
|
27845
|
-
null,
|
|
27846
|
-
_data.xuData.$root_container,
|
|
27847
|
-
);
|
|
27822
|
+
if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
|
|
27823
|
+
$(val).remove();
|
|
27824
|
+
}
|
|
27825
|
+
});
|
|
27848
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) {}
|
|
27849
27831
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27850
27832
|
},
|
|
27851
27833
|
};
|