@xuda.io/runtime-bundle 1.0.1130 → 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 +85 -82
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +85 -82
- package/js/xuda-runtime-slim.min.es.js +85 -82
- package/js/xuda-runtime-slim.min.js +1 -1
- package/package.json +1 -1
|
@@ -26960,65 +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
|
-
|
|
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
|
+
// };
|
|
26982
26984
|
func.UI.utils.get_ui_id_count = function (SESSION_ID, dsSessionP, ui_idP, $container) {
|
|
26983
26985
|
return func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, null, null).length;
|
|
26984
26986
|
};
|
|
26985
|
-
func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
26986
|
-
|
|
26987
|
-
|
|
26988
|
-
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
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;
|
|
27000
27002
|
|
|
27001
|
-
|
|
27002
|
-
|
|
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;
|
|
27003
27005
|
|
|
27004
|
-
|
|
27005
|
-
|
|
27006
|
-
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27015
|
-
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27019
|
-
|
|
27020
|
-
|
|
27021
|
-
};
|
|
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
|
+
// };
|
|
27022
27024
|
|
|
27023
27025
|
func.UI.utils.clean_node_busy = function (node) {
|
|
27024
27026
|
var run_node = function (node) {
|
|
@@ -27031,34 +27033,34 @@ func.UI.utils.clean_node_busy = function (node) {
|
|
|
27031
27033
|
return node;
|
|
27032
27034
|
};
|
|
27033
27035
|
|
|
27034
|
-
func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
27035
|
-
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
|
|
27039
|
-
|
|
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
|
+
// }
|
|
27040
27042
|
|
|
27041
|
-
|
|
27043
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
27042
27044
|
|
|
27043
|
-
|
|
27044
|
-
|
|
27045
|
-
|
|
27046
|
-
|
|
27047
|
-
|
|
27048
|
-
|
|
27049
|
-
|
|
27050
|
-
|
|
27051
|
-
|
|
27052
|
-
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
};
|
|
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
|
+
// };
|
|
27062
27064
|
|
|
27063
27065
|
func.UI.utils.live_preview_element_inspect_on = function (SESSION_ID, service) {
|
|
27064
27066
|
$.each($('[xu-ui-id]'), function (key, val) {
|
|
@@ -31292,10 +31294,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31292
31294
|
}
|
|
31293
31295
|
});
|
|
31294
31296
|
|
|
31295
|
-
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');
|
|
31296
31300
|
|
|
31297
31301
|
if (attr.length) {
|
|
31298
|
-
debugger;
|
|
31299
31302
|
selectors[selector_id] = selectors[selector_id];
|
|
31300
31303
|
|
|
31301
31304
|
if (!selectors[selector_id]) {
|