@xuda.io/runtime-bundle 1.0.1131 → 1.0.1132
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/modules/xuda-event-ui-elements-module.esm.js +25 -642
- package/js/xuda-runtime-bundle.js +87 -84
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +87 -84
- package/js/xuda-runtime-slim.min.es.js +87 -84
- package/js/xuda-runtime-slim.min.js +1 -1
- package/package.json +1 -1
|
@@ -26960,66 +26960,67 @@ func.UI.utils.get_nodeId = function (SESSION_ID, dsSessionP, ui_idP, $container,
|
|
|
26960
26960
|
return $elm.attr('nodeId');
|
|
26961
26961
|
}
|
|
26962
26962
|
};
|
|
26963
|
-
func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
26964
|
-
|
|
26965
|
-
|
|
26966
|
-
|
|
26967
|
-
|
|
26968
|
-
|
|
26969
|
-
|
|
26970
|
-
|
|
26971
|
-
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
26975
|
-
|
|
26976
|
-
|
|
26977
|
-
|
|
26978
|
-
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
26963
|
+
// func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
26964
|
+
// var $elm = func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP);
|
|
26965
|
+
// var ret = {};
|
|
26966
|
+
// if ($elm?.length) {
|
|
26967
|
+
// //length added 20210209
|
|
26968
|
+
// // if (is_app_panel) {
|
|
26969
|
+
// // if ($elm?.data()?.xuData.panel_info) {
|
|
26970
|
+
// // ret.nodeId = $elm.data().xuData.panel_info.prop.id;
|
|
26971
|
+
// // } else {
|
|
26972
|
+
// // ret.nodeId = $elm.data().xuData.properties.id;
|
|
26973
|
+
// // }
|
|
26974
|
+
// // } else {
|
|
26975
|
+
// // ret.nodeId = $elm.data().xuData.nodeId;
|
|
26976
|
+
// ret.nodeId = $elm.data().xuData.xu_id;
|
|
26977
|
+
|
|
26978
|
+
// // ret.nodeId = $elm.attr('xu-ui-id');
|
|
26979
|
+
// // }
|
|
26980
|
+
// }
|
|
26981
|
+
// ret.$elm = $elm;
|
|
26982
|
+
// return ret;
|
|
26983
|
+
// };
|
|
26983
26984
|
func.UI.utils.get_ui_id_count = function (SESSION_ID, dsSessionP, ui_idP, $container) {
|
|
26984
26985
|
return func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, null, null).length;
|
|
26985
26986
|
};
|
|
26986
|
-
func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
26987
|
-
|
|
26988
|
-
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
|
|
26987
|
+
// func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
26988
|
+
// var drill_parent = function () {
|
|
26989
|
+
// if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
|
|
26990
|
+
// return func.UI.utils.get_ui_info_tree_scope(SESSION_ID, SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo, ui_id, is_app_panel, ui_type);
|
|
26991
|
+
// } else if (ui_type === 'xu-app-page') {
|
|
26992
|
+
// if (elm_info.$elm.length) {
|
|
26993
|
+
// return {
|
|
26994
|
+
// ds: dsP,
|
|
26995
|
+
// id: id,
|
|
26996
|
+
// $elm: elm_info.$elm,
|
|
26997
|
+
// };
|
|
26998
|
+
// }
|
|
26999
|
+
// }
|
|
27000
|
+
// };
|
|
27001
|
+
// if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
|
|
27001
27002
|
|
|
27002
|
-
|
|
27003
|
-
|
|
27003
|
+
// var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
|
|
27004
|
+
// var id = elm_info.nodeId;
|
|
27004
27005
|
|
|
27005
|
-
|
|
27006
|
-
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27015
|
-
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27019
|
-
|
|
27020
|
-
|
|
27021
|
-
|
|
27022
|
-
};
|
|
27006
|
+
// if (!id) {
|
|
27007
|
+
// return drill_parent();
|
|
27008
|
+
// } else {
|
|
27009
|
+
// if (is_app_panel) {
|
|
27010
|
+
// return {
|
|
27011
|
+
// ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
|
|
27012
|
+
// id: id,
|
|
27013
|
+
// $elm: elm_info.$elm,
|
|
27014
|
+
// };
|
|
27015
|
+
// } else {
|
|
27016
|
+
// return {
|
|
27017
|
+
// ds: dsP,
|
|
27018
|
+
// id: id,
|
|
27019
|
+
// $elm: elm_info.$elm,
|
|
27020
|
+
// };
|
|
27021
|
+
// }
|
|
27022
|
+
// }
|
|
27023
|
+
// };
|
|
27023
27024
|
|
|
27024
27025
|
func.UI.utils.clean_node_busy = function (node) {
|
|
27025
27026
|
var run_node = function (node) {
|
|
@@ -27032,34 +27033,34 @@ func.UI.utils.clean_node_busy = function (node) {
|
|
|
27032
27033
|
return node;
|
|
27033
27034
|
};
|
|
27034
27035
|
|
|
27035
|
-
func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
|
|
27039
|
-
|
|
27040
|
-
|
|
27036
|
+
// func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
27037
|
+
// var ret;
|
|
27038
|
+
// var is_app_panel = false;
|
|
27039
|
+
// if (ui_type === 'xu-panel') {
|
|
27040
|
+
// is_app_panel = true;
|
|
27041
|
+
// }
|
|
27041
27042
|
|
|
27042
|
-
|
|
27043
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
27043
27044
|
|
|
27044
|
-
|
|
27045
|
-
|
|
27046
|
-
|
|
27047
|
-
|
|
27048
|
-
|
|
27049
|
-
|
|
27050
|
-
|
|
27051
|
-
|
|
27052
|
-
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
};
|
|
27045
|
+
// if (!ret) {
|
|
27046
|
+
// var attempts = 0;
|
|
27047
|
+
// const run = function () {
|
|
27048
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
27049
|
+
// if (ret || attempts > 10) {
|
|
27050
|
+
// callback(ret);
|
|
27051
|
+
// } else {
|
|
27052
|
+
// attempts++;
|
|
27053
|
+
// console.log(attempts, dsP, ui_id, is_app_panel);
|
|
27054
|
+
// setTimeout(function () {
|
|
27055
|
+
// run();
|
|
27056
|
+
// }, 100);
|
|
27057
|
+
// }
|
|
27058
|
+
// };
|
|
27059
|
+
// run();
|
|
27060
|
+
// } else {
|
|
27061
|
+
// callback(ret);
|
|
27062
|
+
// }
|
|
27063
|
+
// };
|
|
27063
27064
|
|
|
27064
27065
|
func.UI.utils.live_preview_element_inspect_on = function (SESSION_ID, service) {
|
|
27065
27066
|
$.each($('[xu-ui-id]'), function (key, val) {
|
|
@@ -27838,8 +27839,8 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27838
27839
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27839
27840
|
};
|
|
27840
27841
|
|
|
27841
|
-
var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
27842
|
-
|
|
27842
|
+
// var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
|
|
27843
|
+
var $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
27843
27844
|
|
|
27844
27845
|
if (glb.new_xu_render) {
|
|
27845
27846
|
$elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
|
|
@@ -31293,7 +31294,9 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31293
31294
|
}
|
|
31294
31295
|
});
|
|
31295
31296
|
|
|
31296
|
-
const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
31297
|
+
// const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
31298
|
+
|
|
31299
|
+
const selector_id = $(this).attr('xu-ui-id');
|
|
31297
31300
|
|
|
31298
31301
|
if (attr.length) {
|
|
31299
31302
|
selectors[selector_id] = selectors[selector_id];
|