@xuda.io/runtime-bundle 1.0.431 → 1.0.433

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.
@@ -8629,7 +8629,7 @@ func.UI.utils.get_panels_from_dom = function (SESSION_ID, ignore_disableAutoRefr
8629
8629
  };
8630
8630
 
8631
8631
  func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embed_container, ignore_disableAutoRefresh) {
8632
- const $elm = func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8632
+ const $elm = await func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8633
8633
  var panels_obj = {};
8634
8634
 
8635
8635
  // set panels_obj
@@ -11712,7 +11712,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11712
11712
  };
11713
11713
 
11714
11714
  func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
11715
- const panels_obj = func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
11715
+ const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
11716
11716
 
11717
11717
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
11718
11718
  const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
@@ -11749,7 +11749,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11749
11749
  if (found) break;
11750
11750
 
11751
11751
  // found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
11752
- found = func.UI.find_field_in_progUi_attributes(prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
11752
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
11753
11753
  if (found) break;
11754
11754
  }
11755
11755
  }
@@ -11759,6 +11759,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11759
11759
  // search field changed in the target program's progDataSource // @code
11760
11760
  found = progDataSource_str?.includes('@' + field_id);
11761
11761
  if (found) break;
11762
+
11763
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
11764
+ if (found) break;
11762
11765
  }
11763
11766
  }
11764
11767
 
@@ -8630,7 +8630,7 @@ func.UI.utils.get_panels_from_dom = function (SESSION_ID, ignore_disableAutoRefr
8630
8630
  };
8631
8631
 
8632
8632
  func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embed_container, ignore_disableAutoRefresh) {
8633
- const $elm = func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8633
+ const $elm = await func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8634
8634
  var panels_obj = {};
8635
8635
 
8636
8636
  // set panels_obj
@@ -9785,7 +9785,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9785
9785
  };
9786
9786
 
9787
9787
  func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
9788
- const panels_obj = func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
9788
+ const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
9789
9789
 
9790
9790
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
9791
9791
  const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
@@ -9822,7 +9822,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9822
9822
  if (found) break;
9823
9823
 
9824
9824
  // found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
9825
- found = func.UI.find_field_in_progUi_attributes(prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
9825
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
9826
9826
  if (found) break;
9827
9827
  }
9828
9828
  }
@@ -9832,6 +9832,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9832
9832
  // search field changed in the target program's progDataSource // @code
9833
9833
  found = progDataSource_str?.includes('@' + field_id);
9834
9834
  if (found) break;
9835
+
9836
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
9837
+ if (found) break;
9835
9838
  }
9836
9839
  }
9837
9840