@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8695,39 +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
|
-
if (!$elm?.length) {
|
|
8701
|
-
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8702
|
-
}
|
|
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}]`)
|
|
8703
8700
|
|
|
8704
|
-
|
|
8701
|
+
if (!$elm?.length) {
|
|
8702
|
+
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8703
|
+
}
|
|
8705
8704
|
|
|
8706
|
-
|
|
8707
|
-
if (!$(val)?.data()?.xuData) return true;
|
|
8705
|
+
// $elm.empty();
|
|
8708
8706
|
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
}
|
|
8712
|
-
});
|
|
8707
|
+
$.each($elm.children(), (key, val) => {
|
|
8708
|
+
if (!$(val)?.data()?.xuData) return true;
|
|
8713
8709
|
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
queue_obj.paramsP.elem_val.$elm,
|
|
8719
|
-
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8720
|
-
null,
|
|
8721
|
-
_data.xuData.paramsP,
|
|
8722
|
-
queue_obj.jobNoP,
|
|
8723
|
-
null,
|
|
8724
|
-
_data.xuData.key,
|
|
8725
|
-
null,
|
|
8726
|
-
_data.xuData.parent_node,
|
|
8727
|
-
null,
|
|
8728
|
-
_data.xuData.$root_container,
|
|
8729
|
-
);
|
|
8710
|
+
if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
|
|
8711
|
+
$(val).remove();
|
|
8712
|
+
}
|
|
8713
|
+
});
|
|
8730
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) {}
|
|
8731
8719
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8732
8720
|
},
|
|
8733
8721
|
};
|
|
@@ -8696,39 +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
|
-
if (!$elm?.length) {
|
|
8702
|
-
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8703
|
-
}
|
|
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}]`)
|
|
8704
8701
|
|
|
8705
|
-
|
|
8702
|
+
if (!$elm?.length) {
|
|
8703
|
+
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8704
|
+
}
|
|
8706
8705
|
|
|
8707
|
-
|
|
8708
|
-
if (!$(val)?.data()?.xuData) return true;
|
|
8706
|
+
// $elm.empty();
|
|
8709
8707
|
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
}
|
|
8713
|
-
});
|
|
8708
|
+
$.each($elm.children(), (key, val) => {
|
|
8709
|
+
if (!$(val)?.data()?.xuData) return true;
|
|
8714
8710
|
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
queue_obj.paramsP.elem_val.$elm,
|
|
8720
|
-
node_to_render, //_data.xuData.node_org.children[0], //_data?.xuData?.node?.children?.length ? _data.xuData.node.children[0] : _data.xuData.node,
|
|
8721
|
-
null,
|
|
8722
|
-
_data.xuData.paramsP,
|
|
8723
|
-
queue_obj.jobNoP,
|
|
8724
|
-
null,
|
|
8725
|
-
_data.xuData.key,
|
|
8726
|
-
null,
|
|
8727
|
-
_data.xuData.parent_node,
|
|
8728
|
-
null,
|
|
8729
|
-
_data.xuData.$root_container,
|
|
8730
|
-
);
|
|
8711
|
+
if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
|
|
8712
|
+
$(val).remove();
|
|
8713
|
+
}
|
|
8714
|
+
});
|
|
8731
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) {}
|
|
8732
8720
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8733
8721
|
},
|
|
8734
8722
|
};
|