@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
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -7832,65 +7832,67 @@ func.UI.utils.get_nodeId = function (SESSION_ID, dsSessionP, ui_idP, $container,
|
|
|
7832
7832
|
return $elm.attr('nodeId');
|
|
7833
7833
|
}
|
|
7834
7834
|
};
|
|
7835
|
-
func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7835
|
+
// func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
7836
|
+
// var $elm = func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP);
|
|
7837
|
+
// var ret = {};
|
|
7838
|
+
// if ($elm?.length) {
|
|
7839
|
+
// //length added 20210209
|
|
7840
|
+
// // if (is_app_panel) {
|
|
7841
|
+
// // if ($elm?.data()?.xuData.panel_info) {
|
|
7842
|
+
// // ret.nodeId = $elm.data().xuData.panel_info.prop.id;
|
|
7843
|
+
// // } else {
|
|
7844
|
+
// // ret.nodeId = $elm.data().xuData.properties.id;
|
|
7845
|
+
// // }
|
|
7846
|
+
// // } else {
|
|
7847
|
+
// // ret.nodeId = $elm.data().xuData.nodeId;
|
|
7848
|
+
// ret.nodeId = $elm.data().xuData.xu_id;
|
|
7849
|
+
|
|
7850
|
+
// // ret.nodeId = $elm.attr('xu-ui-id');
|
|
7851
|
+
// // }
|
|
7852
|
+
// }
|
|
7853
|
+
// ret.$elm = $elm;
|
|
7854
|
+
// return ret;
|
|
7855
|
+
// };
|
|
7854
7856
|
func.UI.utils.get_ui_id_count = function (SESSION_ID, dsSessionP, ui_idP, $container) {
|
|
7855
7857
|
return func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, null, null).length;
|
|
7856
7858
|
};
|
|
7857
|
-
func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7859
|
+
// func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
7860
|
+
// var drill_parent = function () {
|
|
7861
|
+
// if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
|
|
7862
|
+
// 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);
|
|
7863
|
+
// } else if (ui_type === 'xu-app-page') {
|
|
7864
|
+
// if (elm_info.$elm.length) {
|
|
7865
|
+
// return {
|
|
7866
|
+
// ds: dsP,
|
|
7867
|
+
// id: id,
|
|
7868
|
+
// $elm: elm_info.$elm,
|
|
7869
|
+
// };
|
|
7870
|
+
// }
|
|
7871
|
+
// }
|
|
7872
|
+
// };
|
|
7873
|
+
// if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
|
|
7872
7874
|
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
+
// var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
|
|
7876
|
+
// var id = elm_info.nodeId;
|
|
7875
7877
|
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
};
|
|
7878
|
+
// if (!id) {
|
|
7879
|
+
// return drill_parent();
|
|
7880
|
+
// } else {
|
|
7881
|
+
// if (is_app_panel) {
|
|
7882
|
+
// return {
|
|
7883
|
+
// ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
|
|
7884
|
+
// id: id,
|
|
7885
|
+
// $elm: elm_info.$elm,
|
|
7886
|
+
// };
|
|
7887
|
+
// } else {
|
|
7888
|
+
// return {
|
|
7889
|
+
// ds: dsP,
|
|
7890
|
+
// id: id,
|
|
7891
|
+
// $elm: elm_info.$elm,
|
|
7892
|
+
// };
|
|
7893
|
+
// }
|
|
7894
|
+
// }
|
|
7895
|
+
// };
|
|
7894
7896
|
|
|
7895
7897
|
func.UI.utils.clean_node_busy = function (node) {
|
|
7896
7898
|
var run_node = function (node) {
|
|
@@ -7903,34 +7905,34 @@ func.UI.utils.clean_node_busy = function (node) {
|
|
|
7903
7905
|
return node;
|
|
7904
7906
|
};
|
|
7905
7907
|
|
|
7906
|
-
func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7908
|
+
// func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
7909
|
+
// var ret;
|
|
7910
|
+
// var is_app_panel = false;
|
|
7911
|
+
// if (ui_type === 'xu-panel') {
|
|
7912
|
+
// is_app_panel = true;
|
|
7913
|
+
// }
|
|
7912
7914
|
|
|
7913
|
-
|
|
7915
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
7914
7916
|
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
};
|
|
7917
|
+
// if (!ret) {
|
|
7918
|
+
// var attempts = 0;
|
|
7919
|
+
// const run = function () {
|
|
7920
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
7921
|
+
// if (ret || attempts > 10) {
|
|
7922
|
+
// callback(ret);
|
|
7923
|
+
// } else {
|
|
7924
|
+
// attempts++;
|
|
7925
|
+
// console.log(attempts, dsP, ui_id, is_app_panel);
|
|
7926
|
+
// setTimeout(function () {
|
|
7927
|
+
// run();
|
|
7928
|
+
// }, 100);
|
|
7929
|
+
// }
|
|
7930
|
+
// };
|
|
7931
|
+
// run();
|
|
7932
|
+
// } else {
|
|
7933
|
+
// callback(ret);
|
|
7934
|
+
// }
|
|
7935
|
+
// };
|
|
7934
7936
|
|
|
7935
7937
|
func.UI.utils.live_preview_element_inspect_on = function (SESSION_ID, service) {
|
|
7936
7938
|
$.each($('[xu-ui-id]'), function (key, val) {
|
|
@@ -11608,10 +11610,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11608
11610
|
}
|
|
11609
11611
|
});
|
|
11610
11612
|
|
|
11611
|
-
const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
11613
|
+
// const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
11614
|
+
|
|
11615
|
+
const selector_id = $(this).attr('xu-ui-id');
|
|
11612
11616
|
|
|
11613
11617
|
if (attr.length) {
|
|
11614
|
-
debugger;
|
|
11615
11618
|
selectors[selector_id] = selectors[selector_id];
|
|
11616
11619
|
|
|
11617
11620
|
if (!selectors[selector_id]) {
|
|
@@ -7833,65 +7833,67 @@ func.UI.utils.get_nodeId = function (SESSION_ID, dsSessionP, ui_idP, $container,
|
|
|
7833
7833
|
return $elm.attr('nodeId');
|
|
7834
7834
|
}
|
|
7835
7835
|
};
|
|
7836
|
-
func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7836
|
+
// func.UI.utils.get_element_info = function (SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP) {
|
|
7837
|
+
// var $elm = func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, is_app_panel, ui_type, functionP);
|
|
7838
|
+
// var ret = {};
|
|
7839
|
+
// if ($elm?.length) {
|
|
7840
|
+
// //length added 20210209
|
|
7841
|
+
// // if (is_app_panel) {
|
|
7842
|
+
// // if ($elm?.data()?.xuData.panel_info) {
|
|
7843
|
+
// // ret.nodeId = $elm.data().xuData.panel_info.prop.id;
|
|
7844
|
+
// // } else {
|
|
7845
|
+
// // ret.nodeId = $elm.data().xuData.properties.id;
|
|
7846
|
+
// // }
|
|
7847
|
+
// // } else {
|
|
7848
|
+
// // ret.nodeId = $elm.data().xuData.nodeId;
|
|
7849
|
+
// ret.nodeId = $elm.data().xuData.xu_id;
|
|
7850
|
+
|
|
7851
|
+
// // ret.nodeId = $elm.attr('xu-ui-id');
|
|
7852
|
+
// // }
|
|
7853
|
+
// }
|
|
7854
|
+
// ret.$elm = $elm;
|
|
7855
|
+
// return ret;
|
|
7856
|
+
// };
|
|
7855
7857
|
func.UI.utils.get_ui_id_count = function (SESSION_ID, dsSessionP, ui_idP, $container) {
|
|
7856
7858
|
return func.UI.utils.get_node_elm(SESSION_ID, dsSessionP, ui_idP, $container, null, null).length;
|
|
7857
7859
|
};
|
|
7858
|
-
func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7860
|
+
// func.UI.utils.get_ui_info_tree_scope = function (SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP) {
|
|
7861
|
+
// var drill_parent = function () {
|
|
7862
|
+
// if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
|
|
7863
|
+
// 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);
|
|
7864
|
+
// } else if (ui_type === 'xu-app-page') {
|
|
7865
|
+
// if (elm_info.$elm.length) {
|
|
7866
|
+
// return {
|
|
7867
|
+
// ds: dsP,
|
|
7868
|
+
// id: id,
|
|
7869
|
+
// $elm: elm_info.$elm,
|
|
7870
|
+
// };
|
|
7871
|
+
// }
|
|
7872
|
+
// }
|
|
7873
|
+
// };
|
|
7874
|
+
// if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
|
|
7873
7875
|
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
+
// var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
|
|
7877
|
+
// var id = elm_info.nodeId;
|
|
7876
7878
|
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
};
|
|
7879
|
+
// if (!id) {
|
|
7880
|
+
// return drill_parent();
|
|
7881
|
+
// } else {
|
|
7882
|
+
// if (is_app_panel) {
|
|
7883
|
+
// return {
|
|
7884
|
+
// ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
|
|
7885
|
+
// id: id,
|
|
7886
|
+
// $elm: elm_info.$elm,
|
|
7887
|
+
// };
|
|
7888
|
+
// } else {
|
|
7889
|
+
// return {
|
|
7890
|
+
// ds: dsP,
|
|
7891
|
+
// id: id,
|
|
7892
|
+
// $elm: elm_info.$elm,
|
|
7893
|
+
// };
|
|
7894
|
+
// }
|
|
7895
|
+
// }
|
|
7896
|
+
// };
|
|
7895
7897
|
|
|
7896
7898
|
func.UI.utils.clean_node_busy = function (node) {
|
|
7897
7899
|
var run_node = function (node) {
|
|
@@ -7904,34 +7906,34 @@ func.UI.utils.clean_node_busy = function (node) {
|
|
|
7904
7906
|
return node;
|
|
7905
7907
|
};
|
|
7906
7908
|
|
|
7907
|
-
func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7909
|
+
// func.UI.utils.get_ui_info_tree_scope_sync = function (SESSION_ID, dsP, ui_id, ui_type, callback, $container, functionP) {
|
|
7910
|
+
// var ret;
|
|
7911
|
+
// var is_app_panel = false;
|
|
7912
|
+
// if (ui_type === 'xu-panel') {
|
|
7913
|
+
// is_app_panel = true;
|
|
7914
|
+
// }
|
|
7913
7915
|
|
|
7914
|
-
|
|
7916
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
7915
7917
|
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
};
|
|
7918
|
+
// if (!ret) {
|
|
7919
|
+
// var attempts = 0;
|
|
7920
|
+
// const run = function () {
|
|
7921
|
+
// ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
|
|
7922
|
+
// if (ret || attempts > 10) {
|
|
7923
|
+
// callback(ret);
|
|
7924
|
+
// } else {
|
|
7925
|
+
// attempts++;
|
|
7926
|
+
// console.log(attempts, dsP, ui_id, is_app_panel);
|
|
7927
|
+
// setTimeout(function () {
|
|
7928
|
+
// run();
|
|
7929
|
+
// }, 100);
|
|
7930
|
+
// }
|
|
7931
|
+
// };
|
|
7932
|
+
// run();
|
|
7933
|
+
// } else {
|
|
7934
|
+
// callback(ret);
|
|
7935
|
+
// }
|
|
7936
|
+
// };
|
|
7935
7937
|
|
|
7936
7938
|
func.UI.utils.live_preview_element_inspect_on = function (SESSION_ID, service) {
|
|
7937
7939
|
$.each($('[xu-ui-id]'), function (key, val) {
|
|
@@ -9333,10 +9335,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9333
9335
|
}
|
|
9334
9336
|
});
|
|
9335
9337
|
|
|
9336
|
-
const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
9338
|
+
// const selector_id = glb.new_xu_render ? $(this).data()?.xuData?.ui_id : $(this).data()?.xuData?.xu_id;
|
|
9339
|
+
|
|
9340
|
+
const selector_id = $(this).attr('xu-ui-id');
|
|
9337
9341
|
|
|
9338
9342
|
if (attr.length) {
|
|
9339
|
-
debugger;
|
|
9340
9343
|
selectors[selector_id] = selectors[selector_id];
|
|
9341
9344
|
|
|
9342
9345
|
if (!selectors[selector_id]) {
|