@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.
@@ -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
- 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.attr('xu-ui-id'); //$elm.data().xuData.xu_id;
7849
- // }
7850
- }
7851
- ret.$elm = $elm;
7852
- return ret;
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
- var drill_parent = function () {
7859
- if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
7860
- 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);
7861
- } else if (ui_type === 'xu-app-page') {
7862
- if (elm_info.$elm.length) {
7863
- return {
7864
- ds: dsP,
7865
- id: id,
7866
- $elm: elm_info.$elm,
7867
- };
7868
- }
7869
- }
7870
- };
7871
- if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
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
- var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
7874
- var id = elm_info.nodeId;
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
- if (!id) {
7877
- return drill_parent();
7878
- } else {
7879
- if (is_app_panel) {
7880
- return {
7881
- ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
7882
- id: id,
7883
- $elm: elm_info.$elm,
7884
- };
7885
- } else {
7886
- return {
7887
- ds: dsP,
7888
- id: id,
7889
- $elm: elm_info.$elm,
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
- var ret;
7908
- var is_app_panel = false;
7909
- if (ui_type === 'xu-panel') {
7910
- is_app_panel = true;
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
- ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
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
- if (!ret) {
7916
- var attempts = 0;
7917
- const run = function () {
7918
- ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
7919
- if (ret || attempts > 10) {
7920
- callback(ret);
7921
- } else {
7922
- attempts++;
7923
- console.log(attempts, dsP, ui_id, is_app_panel);
7924
- setTimeout(function () {
7925
- run();
7926
- }, 100);
7927
- }
7928
- };
7929
- run();
7930
- } else {
7931
- callback(ret);
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
- 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.attr('xu-ui-id'); //$elm.data().xuData.xu_id;
7850
- // }
7851
- }
7852
- ret.$elm = $elm;
7853
- return ret;
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
- var drill_parent = function () {
7860
- if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP].parentDataSourceNo) {
7861
- 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);
7862
- } else if (ui_type === 'xu-app-page') {
7863
- if (elm_info.$elm.length) {
7864
- return {
7865
- ds: dsP,
7866
- id: id,
7867
- $elm: elm_info.$elm,
7868
- };
7869
- }
7870
- }
7871
- };
7872
- if (!SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) return;
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
- var elm_info = func.UI.utils.get_element_info(SESSION_ID, dsP, ui_id, $container, is_app_panel, ui_type, functionP);
7875
- var id = elm_info.nodeId;
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
- if (!id) {
7878
- return drill_parent();
7879
- } else {
7880
- if (is_app_panel) {
7881
- return {
7882
- ds: func.UI.utils.get_node_elm(SESSION_ID, dsP, ui_id, $container, is_app_panel).data().xuData.paramsP.dsSessionP,
7883
- id: id,
7884
- $elm: elm_info.$elm,
7885
- };
7886
- } else {
7887
- return {
7888
- ds: dsP,
7889
- id: id,
7890
- $elm: elm_info.$elm,
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
- var ret;
7909
- var is_app_panel = false;
7910
- if (ui_type === 'xu-panel') {
7911
- is_app_panel = true;
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
- ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
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
- if (!ret) {
7917
- var attempts = 0;
7918
- const run = function () {
7919
- ret = func.UI.utils.get_ui_info_tree_scope(SESSION_ID, dsP, ui_id, is_app_panel, ui_type, $container, functionP);
7920
- if (ret || attempts > 10) {
7921
- callback(ret);
7922
- } else {
7923
- attempts++;
7924
- console.log(attempts, dsP, ui_id, is_app_panel);
7925
- setTimeout(function () {
7926
- run();
7927
- }, 100);
7928
- }
7929
- };
7930
- run();
7931
- } else {
7932
- callback(ret);
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]) {