@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8695,45 +8695,27 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8695
8695
|
return done();
|
|
8696
8696
|
},
|
|
8697
8697
|
execute_xu_for: async function () {
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
// $(SESSION_OBJ[SESSION_ID].root_element),
|
|
8701
|
-
// "xu_id",
|
|
8702
|
-
// queue_obj.paramsP.elem_key
|
|
8703
|
-
// );
|
|
8704
|
-
|
|
8705
|
-
var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
|
|
8698
|
+
try {
|
|
8699
|
+
var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
|
|
8706
8700
|
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
}
|
|
8701
|
+
if (!$elm?.length) {
|
|
8702
|
+
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8703
|
+
}
|
|
8711
8704
|
|
|
8712
|
-
|
|
8705
|
+
// $elm.empty();
|
|
8713
8706
|
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
$(val).remove();
|
|
8717
|
-
}
|
|
8718
|
-
});
|
|
8707
|
+
$.each($elm.children(), (key, val) => {
|
|
8708
|
+
if (!$(val)?.data()?.xuData) return true;
|
|
8719
8709
|
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
queue_obj.paramsP.elem_val.$elm,
|
|
8725
|
-
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8726
|
-
null,
|
|
8727
|
-
_data.xuData.paramsP,
|
|
8728
|
-
queue_obj.jobNoP,
|
|
8729
|
-
null,
|
|
8730
|
-
_data.xuData.key,
|
|
8731
|
-
null,
|
|
8732
|
-
_data.xuData.parent_node,
|
|
8733
|
-
null,
|
|
8734
|
-
_data.xuData.$root_container,
|
|
8735
|
-
);
|
|
8710
|
+
if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
|
|
8711
|
+
$(val).remove();
|
|
8712
|
+
}
|
|
8713
|
+
});
|
|
8736
8714
|
|
|
8715
|
+
let _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
8716
|
+
const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
|
|
8717
|
+
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);
|
|
8718
|
+
} catch (error) {}
|
|
8737
8719
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8738
8720
|
},
|
|
8739
8721
|
};
|
|
@@ -8696,45 +8696,27 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8696
8696
|
return done();
|
|
8697
8697
|
},
|
|
8698
8698
|
execute_xu_for: async function () {
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
// $(SESSION_OBJ[SESSION_ID].root_element),
|
|
8702
|
-
// "xu_id",
|
|
8703
|
-
// queue_obj.paramsP.elem_key
|
|
8704
|
-
// );
|
|
8705
|
-
|
|
8706
|
-
var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
|
|
8699
|
+
try {
|
|
8700
|
+
var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
|
|
8707
8701
|
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
}
|
|
8702
|
+
if (!$elm?.length) {
|
|
8703
|
+
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8704
|
+
}
|
|
8712
8705
|
|
|
8713
|
-
|
|
8706
|
+
// $elm.empty();
|
|
8714
8707
|
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
$(val).remove();
|
|
8718
|
-
}
|
|
8719
|
-
});
|
|
8708
|
+
$.each($elm.children(), (key, val) => {
|
|
8709
|
+
if (!$(val)?.data()?.xuData) return true;
|
|
8720
8710
|
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
queue_obj.paramsP.elem_val.$elm,
|
|
8726
|
-
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8727
|
-
null,
|
|
8728
|
-
_data.xuData.paramsP,
|
|
8729
|
-
queue_obj.jobNoP,
|
|
8730
|
-
null,
|
|
8731
|
-
_data.xuData.key,
|
|
8732
|
-
null,
|
|
8733
|
-
_data.xuData.parent_node,
|
|
8734
|
-
null,
|
|
8735
|
-
_data.xuData.$root_container,
|
|
8736
|
-
);
|
|
8711
|
+
if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
|
|
8712
|
+
$(val).remove();
|
|
8713
|
+
}
|
|
8714
|
+
});
|
|
8737
8715
|
|
|
8716
|
+
let _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
8717
|
+
const node_to_render = _data.xuData.node_org.children?.find((e) => e.id === queue_obj?.paramsP?.xu_for_item_id);
|
|
8718
|
+
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);
|
|
8719
|
+
} catch (error) {}
|
|
8738
8720
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8739
8721
|
},
|
|
8740
8722
|
};
|