@xuda.io/runtime-bundle 1.0.581 → 1.0.583

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.
@@ -12013,7 +12013,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12013
12013
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
12014
12014
  const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
12015
12015
 
12016
- var found, refresh_reason;
12016
+ var found, refresh_reason, refresh_details;
12017
12017
  if (fields_changed_arr) {
12018
12018
  if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
12019
12019
  continue;
@@ -12026,7 +12026,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12026
12026
  found = _attributes['xu-exp:program']?.includes('@' + field_id);
12027
12027
 
12028
12028
  if (found) {
12029
- refresh_reason = 'program changed';
12029
+ refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
12030
+ refresh_details = _attributes;
12030
12031
  break;
12031
12032
  }
12032
12033
 
@@ -12048,7 +12049,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12048
12049
  found = progDataSource_str?.includes('@' + parameter_in_field_id);
12049
12050
 
12050
12051
  if (found) {
12051
- refresh_reason = 'field in progDataSource parameter_in changed';
12052
+ refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
12053
+ refresh_details = progDataSource_str;
12054
+
12052
12055
  break;
12053
12056
  }
12054
12057
 
@@ -12056,7 +12059,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12056
12059
  found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
12057
12060
 
12058
12061
  if (found) {
12059
- refresh_reason = 'field in progUi xu-for parameter_in changed';
12062
+ refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
12063
+ refresh_details = found;
12064
+
12060
12065
  break;
12061
12066
  }
12062
12067
  }
@@ -12067,13 +12072,17 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12067
12072
  // search field changed in the target program's progDataSource // @code
12068
12073
  found = progDataSource_str?.includes('@' + field_id);
12069
12074
  if (found) {
12070
- refresh_reason = 'field in progDataSource changed';
12075
+ refresh_reason = `field ${field_id} in progDataSource changed`;
12076
+ refresh_details = progDataSource_str;
12077
+
12071
12078
  break;
12072
12079
  }
12073
12080
 
12074
12081
  found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
12075
12082
  if (found) {
12076
- refresh_reason = 'field in progUi xu-for changed';
12083
+ refresh_reason = `field ${field_id} in progUi xu-for changed`;
12084
+ refresh_details = found;
12085
+
12077
12086
  break;
12078
12087
  }
12079
12088
  }
@@ -12081,14 +12090,19 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12081
12090
 
12082
12091
  if (datasource_changed) {
12083
12092
  if (panel_val._ds.dsSession == datasource_changed) {
12084
- refresh_reason = 'panel datasource changed';
12093
+ refresh_reason = `panel datasource ${datasource_changed} changed`;
12094
+ refresh_details = '';
12095
+
12085
12096
  found = true;
12086
12097
  }
12087
12098
  }
12088
12099
  if (found) {
12089
12100
  const _session = SESSION_OBJ[SESSION_ID];
12090
12101
  if (_session.engine_mode === 'live_preview') {
12091
- console.log('refresh reason', refresh_reason);
12102
+ console.info('========= refresh info ==============');
12103
+ console.info('reason:', refresh_reason, refresh_details);
12104
+ console.info('ds:', panel_val._ds);
12105
+ console.info('=====================================');
12092
12106
  }
12093
12107
  const $div_elm = panel_val.$panel_div;
12094
12108
  const wrapper_data = $div_elm.data();
@@ -9745,7 +9745,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9745
9745
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
9746
9746
  const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
9747
9747
 
9748
- var found, refresh_reason;
9748
+ var found, refresh_reason, refresh_details;
9749
9749
  if (fields_changed_arr) {
9750
9750
  if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
9751
9751
  continue;
@@ -9758,7 +9758,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9758
9758
  found = _attributes['xu-exp:program']?.includes('@' + field_id);
9759
9759
 
9760
9760
  if (found) {
9761
- refresh_reason = 'program changed';
9761
+ refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
9762
+ refresh_details = _attributes;
9762
9763
  break;
9763
9764
  }
9764
9765
 
@@ -9780,7 +9781,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9780
9781
  found = progDataSource_str?.includes('@' + parameter_in_field_id);
9781
9782
 
9782
9783
  if (found) {
9783
- refresh_reason = 'field in progDataSource parameter_in changed';
9784
+ refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
9785
+ refresh_details = progDataSource_str;
9786
+
9784
9787
  break;
9785
9788
  }
9786
9789
 
@@ -9788,7 +9791,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9788
9791
  found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
9789
9792
 
9790
9793
  if (found) {
9791
- refresh_reason = 'field in progUi xu-for parameter_in changed';
9794
+ refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
9795
+ refresh_details = found;
9796
+
9792
9797
  break;
9793
9798
  }
9794
9799
  }
@@ -9799,13 +9804,17 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9799
9804
  // search field changed in the target program's progDataSource // @code
9800
9805
  found = progDataSource_str?.includes('@' + field_id);
9801
9806
  if (found) {
9802
- refresh_reason = 'field in progDataSource changed';
9807
+ refresh_reason = `field ${field_id} in progDataSource changed`;
9808
+ refresh_details = progDataSource_str;
9809
+
9803
9810
  break;
9804
9811
  }
9805
9812
 
9806
9813
  found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
9807
9814
  if (found) {
9808
- refresh_reason = 'field in progUi xu-for changed';
9815
+ refresh_reason = `field ${field_id} in progUi xu-for changed`;
9816
+ refresh_details = found;
9817
+
9809
9818
  break;
9810
9819
  }
9811
9820
  }
@@ -9813,14 +9822,19 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9813
9822
 
9814
9823
  if (datasource_changed) {
9815
9824
  if (panel_val._ds.dsSession == datasource_changed) {
9816
- refresh_reason = 'panel datasource changed';
9825
+ refresh_reason = `panel datasource ${datasource_changed} changed`;
9826
+ refresh_details = '';
9827
+
9817
9828
  found = true;
9818
9829
  }
9819
9830
  }
9820
9831
  if (found) {
9821
9832
  const _session = SESSION_OBJ[SESSION_ID];
9822
9833
  if (_session.engine_mode === 'live_preview') {
9823
- console.log('refresh reason', refresh_reason);
9834
+ console.info('========= refresh info ==============');
9835
+ console.info('reason:', refresh_reason, refresh_details);
9836
+ console.info('ds:', panel_val._ds);
9837
+ console.info('=====================================');
9824
9838
  }
9825
9839
  const $div_elm = panel_val.$panel_div;
9826
9840
  const wrapper_data = $div_elm.data();