@xuda.io/runtime-bundle 1.0.582 → 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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -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;
|
|
@@ -12027,6 +12027,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12027
12027
|
|
|
12028
12028
|
if (found) {
|
|
12029
12029
|
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
12030
|
+
refresh_details = _attributes;
|
|
12030
12031
|
break;
|
|
12031
12032
|
}
|
|
12032
12033
|
|
|
@@ -12049,6 +12050,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12049
12050
|
|
|
12050
12051
|
if (found) {
|
|
12051
12052
|
refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
|
|
12053
|
+
refresh_details = progDataSource_str;
|
|
12054
|
+
|
|
12052
12055
|
break;
|
|
12053
12056
|
}
|
|
12054
12057
|
|
|
@@ -12057,6 +12060,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12057
12060
|
|
|
12058
12061
|
if (found) {
|
|
12059
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
|
}
|
|
@@ -12068,12 +12073,16 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12068
12073
|
found = progDataSource_str?.includes('@' + field_id);
|
|
12069
12074
|
if (found) {
|
|
12070
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
12083
|
refresh_reason = `field ${field_id} in progUi xu-for changed`;
|
|
12084
|
+
refresh_details = found;
|
|
12085
|
+
|
|
12077
12086
|
break;
|
|
12078
12087
|
}
|
|
12079
12088
|
}
|
|
@@ -12082,13 +12091,18 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12082
12091
|
if (datasource_changed) {
|
|
12083
12092
|
if (panel_val._ds.dsSession == datasource_changed) {
|
|
12084
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.info('refresh
|
|
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;
|
|
@@ -9759,6 +9759,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9759
9759
|
|
|
9760
9760
|
if (found) {
|
|
9761
9761
|
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
9762
|
+
refresh_details = _attributes;
|
|
9762
9763
|
break;
|
|
9763
9764
|
}
|
|
9764
9765
|
|
|
@@ -9781,6 +9782,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9781
9782
|
|
|
9782
9783
|
if (found) {
|
|
9783
9784
|
refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
|
|
9785
|
+
refresh_details = progDataSource_str;
|
|
9786
|
+
|
|
9784
9787
|
break;
|
|
9785
9788
|
}
|
|
9786
9789
|
|
|
@@ -9789,6 +9792,8 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9789
9792
|
|
|
9790
9793
|
if (found) {
|
|
9791
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
|
}
|
|
@@ -9800,12 +9805,16 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9800
9805
|
found = progDataSource_str?.includes('@' + field_id);
|
|
9801
9806
|
if (found) {
|
|
9802
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
9815
|
refresh_reason = `field ${field_id} in progUi xu-for changed`;
|
|
9816
|
+
refresh_details = found;
|
|
9817
|
+
|
|
9809
9818
|
break;
|
|
9810
9819
|
}
|
|
9811
9820
|
}
|
|
@@ -9814,13 +9823,18 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9814
9823
|
if (datasource_changed) {
|
|
9815
9824
|
if (panel_val._ds.dsSession == datasource_changed) {
|
|
9816
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.info('refresh
|
|
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();
|