@xuda.io/runtime-bundle 1.0.447 → 1.0.449

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.
@@ -31753,7 +31753,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31753
31753
  func.events.delete_job(SESSION_ID, jobNoP);
31754
31754
  };
31755
31755
 
31756
- func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
31756
+ func.UI.screen.refresh_screen2 = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
31757
31757
  const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
31758
31758
 
31759
31759
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
@@ -31813,7 +31813,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31813
31813
  }
31814
31814
  }
31815
31815
  if (found) {
31816
- const $div_elm = panel_val.$panel_div.parent().find("[xu-ui-id='" + parent_element_ui_id + "']");
31816
+ const $div_elm = panel_val.$panel_div; //.parent().find("[xu-ui-id='" + parent_element_ui_id + "']");
31817
+ const wrapper_data = $div_elm.data();
31817
31818
  // var $div_elm = panel_val.$div
31818
31819
  // .parent()
31819
31820
  // .parent()
@@ -31823,7 +31824,20 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31823
31824
  try {
31824
31825
  // const $org_panel = panel_val.$div.data().xuPanelData.$panel_div;
31825
31826
  const panelDivData = panel_val.$panel_div.data().xuPanelWrapper.panelDivData;
31826
- const new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $div_elm, _.cloneDeep(panelDivData.xuData.node), {}, panelDivData.xuData.paramsP, null, null, panelDivData.xuData.key, null, panelDivData.xuData.parent_node, null, panelDivData.xuData.$root_container);
31827
+ const new_$div = await func.UI.screen.render_ui_tree(
31828
+ SESSION_ID,
31829
+ $div_elm, // the wrapper
31830
+ _.cloneDeep(panelDivData.xuData.node), // the xu-panel node
31831
+ {},
31832
+ wrapper_data.xuData.paramsP, // the wrapper params
31833
+ null,
31834
+ null,
31835
+ wrapper_data.xuData.key, // the wrapper key
31836
+ null,
31837
+ wrapper_data.xuData.parent_node, // the wrapper parent node
31838
+ null,
31839
+ wrapper_data.xuData.$root_container, // the wrapper root container
31840
+ );
31827
31841
 
31828
31842
  // remove old panel content
31829
31843
  $.each(panel_val.ids, async function (key, val) {
@@ -31837,7 +31851,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31837
31851
  }
31838
31852
  };
31839
31853
 
31840
- func.UI.screen.refresh_screen_old = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
31854
+ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
31841
31855
  // const $elm = func.UI.utils.find_in_element_data('xuPanelData', $(SESSION_OBJ[SESSION_ID].root_element), 'parent_element_ui_id');
31842
31856
 
31843
31857
  const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, false);