@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.
@@ -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
- 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.attr('xu-ui-id'); //$elm.data().xuData.xu_id;
26977
- // }
26978
- }
26979
- ret.$elm = $elm;
26980
- return ret;
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
- var drill_parent = function () {
26987
- if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
26988
- 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);
26989
- } else if (ui_type === 'xu-app-page') {
26990
- if (elm_info.$elm.length) {
26991
- return {
26992
- ds: dsP,
26993
- id: id,
26994
- $elm: elm_info.$elm,
26995
- };
26996
- }
26997
- }
26998
- };
26999
- if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
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
- var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
27002
- var id = elm_info.nodeId;
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
- if (!id) {
27005
- return drill_parent();
27006
- } else {
27007
- if (is_app_panel) {
27008
- return {
27009
- ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
27010
- id: id,
27011
- $elm: elm_info.$elm,
27012
- };
27013
- } else {
27014
- return {
27015
- ds: dsP,
27016
- id: id,
27017
- $elm: elm_info.$elm,
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
- var ret;
27036
- var is_app_panel = false;
27037
- if (ui_type === 'xu-panel') {
27038
- is_app_panel = true;
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
- ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
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
- if (!ret) {
27044
- var attempts = 0;
27045
- const run = function () {
27046
- ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
27047
- if (ret || attempts > 10) {
27048
- callback(ret);
27049
- } else {
27050
- attempts++;
27051
- console.log(attempts, dsP, ui_id, is_app_panel);
27052
- setTimeout(function () {
27053
- run();
27054
- }, 100);
27055
- }
27056
- };
27057
- run();
27058
- } else {
27059
- callback(ret);
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]) {