@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.
|
@@ -31704,7 +31704,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31704
31704
|
for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
|
|
31705
31705
|
const progDataSource_str = JSON.stringify(panel_val.prog_doc.progDataSource);
|
|
31706
31706
|
|
|
31707
|
-
var found, refresh_reason;
|
|
31707
|
+
var found, refresh_reason, refresh_details;
|
|
31708
31708
|
if (fields_changed_arr) {
|
|
31709
31709
|
if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
|
|
31710
31710
|
continue;
|
|
@@ -31717,7 +31717,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31717
31717
|
found = _attributes['xu-exp:program']?.includes('@' + field_id);
|
|
31718
31718
|
|
|
31719
31719
|
if (found) {
|
|
31720
|
-
refresh_reason = 'program changed
|
|
31720
|
+
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
31721
|
+
refresh_details = _attributes;
|
|
31721
31722
|
break;
|
|
31722
31723
|
}
|
|
31723
31724
|
|
|
@@ -31739,7 +31740,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31739
31740
|
found = progDataSource_str?.includes('@' + parameter_in_field_id);
|
|
31740
31741
|
|
|
31741
31742
|
if (found) {
|
|
31742
|
-
refresh_reason =
|
|
31743
|
+
refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
|
|
31744
|
+
refresh_details = progDataSource_str;
|
|
31745
|
+
|
|
31743
31746
|
break;
|
|
31744
31747
|
}
|
|
31745
31748
|
|
|
@@ -31747,7 +31750,9 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31747
31750
|
found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
|
|
31748
31751
|
|
|
31749
31752
|
if (found) {
|
|
31750
|
-
refresh_reason =
|
|
31753
|
+
refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
|
|
31754
|
+
refresh_details = found;
|
|
31755
|
+
|
|
31751
31756
|
break;
|
|
31752
31757
|
}
|
|
31753
31758
|
}
|
|
@@ -31758,13 +31763,17 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31758
31763
|
// search field changed in the target program's progDataSource // @code
|
|
31759
31764
|
found = progDataSource_str?.includes('@' + field_id);
|
|
31760
31765
|
if (found) {
|
|
31761
|
-
refresh_reason =
|
|
31766
|
+
refresh_reason = `field ${field_id} in progDataSource changed`;
|
|
31767
|
+
refresh_details = progDataSource_str;
|
|
31768
|
+
|
|
31762
31769
|
break;
|
|
31763
31770
|
}
|
|
31764
31771
|
|
|
31765
31772
|
found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
|
|
31766
31773
|
if (found) {
|
|
31767
|
-
refresh_reason =
|
|
31774
|
+
refresh_reason = `field ${field_id} in progUi xu-for changed`;
|
|
31775
|
+
refresh_details = found;
|
|
31776
|
+
|
|
31768
31777
|
break;
|
|
31769
31778
|
}
|
|
31770
31779
|
}
|
|
@@ -31772,14 +31781,19 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31772
31781
|
|
|
31773
31782
|
if (datasource_changed) {
|
|
31774
31783
|
if (panel_val._ds.dsSession == datasource_changed) {
|
|
31775
|
-
refresh_reason =
|
|
31784
|
+
refresh_reason = `panel datasource ${datasource_changed} changed`;
|
|
31785
|
+
refresh_details = '';
|
|
31786
|
+
|
|
31776
31787
|
found = true;
|
|
31777
31788
|
}
|
|
31778
31789
|
}
|
|
31779
31790
|
if (found) {
|
|
31780
31791
|
const _session = SESSION_OBJ[SESSION_ID];
|
|
31781
31792
|
if (_session.engine_mode === 'live_preview') {
|
|
31782
|
-
console.
|
|
31793
|
+
console.info('========= refresh info ==============');
|
|
31794
|
+
console.info('reason:', refresh_reason, refresh_details);
|
|
31795
|
+
console.info('ds:', panel_val._ds);
|
|
31796
|
+
console.info('=====================================');
|
|
31783
31797
|
}
|
|
31784
31798
|
const $div_elm = panel_val.$panel_div;
|
|
31785
31799
|
const wrapper_data = $div_elm.data();
|