@xuda.io/runtime-bundle 1.0.1287 → 1.0.1289

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.
@@ -4826,7 +4826,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
4826
4826
  await func.UI.screen.refresh_screen(
4827
4827
  SESSION_ID,
4828
4828
  klona.klona(fields_changed), // _.cloneDeep(fields_changed),
4829
- null,
4829
+ datasource_changed[0],
4830
4830
  datasource_changed[0], // refresh the current datasource only
4831
4831
  value,
4832
4832
  );
@@ -12187,14 +12187,14 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12187
12187
  }
12188
12188
 
12189
12189
  const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
12190
-
12190
+ found = false;
12191
12191
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
12192
12192
  // const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
12193
12193
  if (!panel_val.$panel_div?.data()?.xuData) continue;
12194
12194
 
12195
12195
  if (panel_val.$panel_div.data().xuData.pending_to_delete) continue;
12196
12196
 
12197
- if (fields_changed_arr) {
12197
+ if (!watcher && fields_changed_arr) {
12198
12198
  if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
12199
12199
  continue;
12200
12200
  }
@@ -4827,7 +4827,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
4827
4827
  await func.UI.screen.refresh_screen(
4828
4828
  SESSION_ID,
4829
4829
  klona.klona(fields_changed), // _.cloneDeep(fields_changed),
4830
- null,
4830
+ datasource_changed[0],
4831
4831
  datasource_changed[0], // refresh the current datasource only
4832
4832
  value,
4833
4833
  );
@@ -9912,14 +9912,14 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9912
9912
  }
9913
9913
 
9914
9914
  const panels_obj = await func.UI.utils.get_panels_wrapper_from_dom(SESSION_ID, $(SESSION_OBJ[SESSION_ID].root_element), false);
9915
-
9915
+ found = false;
9916
9916
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
9917
9917
  // const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
9918
9918
  if (!panel_val.$panel_div?.data()?.xuData) continue;
9919
9919
 
9920
9920
  if (panel_val.$panel_div.data().xuData.pending_to_delete) continue;
9921
9921
 
9922
- if (fields_changed_arr) {
9922
+ if (!watcher && fields_changed_arr) {
9923
9923
  if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
9924
9924
  continue;
9925
9925
  }