@xuda.io/runtime-bundle 1.0.328 → 1.0.330

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.
@@ -5209,8 +5209,9 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5209
5209
  }
5210
5210
  ///// REFRESH SCREEN
5211
5211
  if (!avoid_refresh && fields_changed.length) {
5212
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
5213
- await func.UI.screen.refresh_screen(
5212
+ // await removed from the below function cause to dead lock Mar 3 25
5213
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
5214
+ func.UI.screen.refresh_screen(
5214
5215
  SESSION_ID,
5215
5216
  fields_changed,
5216
5217
  null,
@@ -11829,29 +11830,29 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11829
11830
  // var panels_obj = {};
11830
11831
  const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, false);
11831
11832
 
11832
- const find_field_in_progUi = function (progUi, field_id) {
11833
- let found;
11834
- const iterate_progUi = function (node) {
11835
- for (let item of node) {
11836
- // if (item.tagName === "xu-panel") {
11837
- if (!_.isEmpty(item.attributes)) {
11838
- for (const [attr, val] of Object.entries(item.attributes)) {
11839
- // if (attr === "xu-exp:program" || attr === "xu-exp:xu-for") {
11840
- if (attr === 'xu-exp:program') {
11841
- found = val.includes('@' + field_id);
11842
- }
11843
- }
11844
- }
11845
- if (found) break;
11846
- // }
11847
- if (item.children) {
11848
- iterate_progUi(item.children);
11849
- }
11850
- }
11851
- };
11852
- iterate_progUi(progUi);
11853
- return found;
11854
- };
11833
+ // const find_field_in_progUi = function (progUi, field_id) {
11834
+ // let found;
11835
+ // const iterate_progUi = function (node) {
11836
+ // for (let item of node) {
11837
+ // // if (item.tagName === "xu-panel") {
11838
+ // if (!_.isEmpty(item.attributes)) {
11839
+ // for (const [attr, val] of Object.entries(item.attributes)) {
11840
+ // // if (attr === "xu-exp:program" || attr === "xu-exp:xu-for") {
11841
+ // if (attr === 'xu-exp:program') {
11842
+ // found = val.includes('@' + field_id);
11843
+ // }
11844
+ // }
11845
+ // }
11846
+ // if (found) break;
11847
+ // // }
11848
+ // if (item.children) {
11849
+ // iterate_progUi(item.children);
11850
+ // }
11851
+ // }
11852
+ // };
11853
+ // iterate_progUi(progUi);
11854
+ // return found;
11855
+ // };
11855
11856
 
11856
11857
  // // set panels_obj
11857
11858
  // for await (const [elem_key, elem_val] of Object.entries($elm)) {
@@ -5210,8 +5210,9 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5210
5210
  }
5211
5211
  ///// REFRESH SCREEN
5212
5212
  if (!avoid_refresh && fields_changed.length) {
5213
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
5214
- await func.UI.screen.refresh_screen(
5213
+ // await removed from the below function cause to dead lock Mar 3 25
5214
+ func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
5215
+ func.UI.screen.refresh_screen(
5215
5216
  SESSION_ID,
5216
5217
  fields_changed,
5217
5218
  null,
@@ -9895,29 +9896,29 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9895
9896
  // var panels_obj = {};
9896
9897
  const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, false);
9897
9898
 
9898
- const find_field_in_progUi = function (progUi, field_id) {
9899
- let found;
9900
- const iterate_progUi = function (node) {
9901
- for (let item of node) {
9902
- // if (item.tagName === "xu-panel") {
9903
- if (!_.isEmpty(item.attributes)) {
9904
- for (const [attr, val] of Object.entries(item.attributes)) {
9905
- // if (attr === "xu-exp:program" || attr === "xu-exp:xu-for") {
9906
- if (attr === 'xu-exp:program') {
9907
- found = val.includes('@' + field_id);
9908
- }
9909
- }
9910
- }
9911
- if (found) break;
9912
- // }
9913
- if (item.children) {
9914
- iterate_progUi(item.children);
9915
- }
9916
- }
9917
- };
9918
- iterate_progUi(progUi);
9919
- return found;
9920
- };
9899
+ // const find_field_in_progUi = function (progUi, field_id) {
9900
+ // let found;
9901
+ // const iterate_progUi = function (node) {
9902
+ // for (let item of node) {
9903
+ // // if (item.tagName === "xu-panel") {
9904
+ // if (!_.isEmpty(item.attributes)) {
9905
+ // for (const [attr, val] of Object.entries(item.attributes)) {
9906
+ // // if (attr === "xu-exp:program" || attr === "xu-exp:xu-for") {
9907
+ // if (attr === 'xu-exp:program') {
9908
+ // found = val.includes('@' + field_id);
9909
+ // }
9910
+ // }
9911
+ // }
9912
+ // if (found) break;
9913
+ // // }
9914
+ // if (item.children) {
9915
+ // iterate_progUi(item.children);
9916
+ // }
9917
+ // }
9918
+ // };
9919
+ // iterate_progUi(progUi);
9920
+ // return found;
9921
+ // };
9921
9922
 
9922
9923
  // // set panels_obj
9923
9924
  // for await (const [elem_key, elem_val] of Object.entries($elm)) {