@xuda.io/runtime-bundle 1.0.587 → 1.0.589
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
|
@@ -12015,75 +12015,76 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12015
12015
|
|
|
12016
12016
|
var found, refresh_reason, refresh_details;
|
|
12017
12017
|
if (fields_changed_arr) {
|
|
12018
|
-
if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
|
|
12019
|
-
continue;
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
// detect if program changed
|
|
12026
|
-
found = _attributes['xu-exp:program']?.includes('@' + field_id);
|
|
12027
|
-
|
|
12028
|
-
if (found) {
|
|
12029
|
-
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
12030
|
-
refresh_details = _attributes;
|
|
12031
|
-
break;
|
|
12032
|
-
}
|
|
12018
|
+
if (fields_changed_datasource && panel_val._ds.dsSession < Number(fields_changed_datasource)) {
|
|
12019
|
+
// continue;
|
|
12020
|
+
// }
|
|
12021
|
+
for (const field_id of fields_changed_arr) {
|
|
12022
|
+
// get panel attributes
|
|
12023
|
+
const _attributes = panel_val?.panelXuAttributes || {};
|
|
12033
12024
|
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
for (const [attr, value] of Object.entries(_attributes)) {
|
|
12037
|
-
const pattern = /xu-exp:(\w+)/;
|
|
12038
|
-
const match = attr.match(pattern);
|
|
12025
|
+
// detect if program changed
|
|
12026
|
+
found = _attributes['xu-exp:program']?.includes('@' + field_id);
|
|
12039
12027
|
|
|
12040
|
-
if (
|
|
12041
|
-
|
|
12042
|
-
|
|
12028
|
+
if (found) {
|
|
12029
|
+
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
12030
|
+
refresh_details = _attributes;
|
|
12031
|
+
break;
|
|
12043
12032
|
}
|
|
12044
|
-
// code_in
|
|
12045
|
-
const parameter_in_field_id = match?.[1];
|
|
12046
|
-
// @code
|
|
12047
|
-
if (value.includes(field_id)) {
|
|
12048
|
-
// search parameter in field in the target program's progDataSource
|
|
12049
|
-
found = progDataSource_str?.includes('@' + parameter_in_field_id);
|
|
12050
12033
|
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12034
|
+
// _attributes holds also info of parameters in code_in: @code
|
|
12035
|
+
// search field changed in panel call send parameters exp
|
|
12036
|
+
for (const [attr, value] of Object.entries(_attributes)) {
|
|
12037
|
+
const pattern = /xu-exp:(\w+)/;
|
|
12038
|
+
const match = attr.match(pattern);
|
|
12054
12039
|
|
|
12055
|
-
|
|
12040
|
+
if (!match) {
|
|
12041
|
+
// continue if attribute is not expression
|
|
12042
|
+
continue;
|
|
12056
12043
|
}
|
|
12044
|
+
// code_in
|
|
12045
|
+
const parameter_in_field_id = match?.[1];
|
|
12046
|
+
// @code
|
|
12047
|
+
if (value.includes(field_id)) {
|
|
12048
|
+
// search parameter in field in the target program's progDataSource
|
|
12049
|
+
found = progDataSource_str?.includes('@' + parameter_in_field_id);
|
|
12057
12050
|
|
|
12058
|
-
|
|
12059
|
-
|
|
12051
|
+
if (found) {
|
|
12052
|
+
refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
|
|
12053
|
+
refresh_details = panel_val?.prog_doc?.progDataSource;
|
|
12060
12054
|
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
refresh_details = found;
|
|
12055
|
+
break;
|
|
12056
|
+
}
|
|
12064
12057
|
|
|
12065
|
-
|
|
12058
|
+
// found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
|
|
12059
|
+
found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
|
|
12060
|
+
|
|
12061
|
+
if (found) {
|
|
12062
|
+
refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
|
|
12063
|
+
refresh_details = found;
|
|
12064
|
+
|
|
12065
|
+
break;
|
|
12066
|
+
}
|
|
12066
12067
|
}
|
|
12067
12068
|
}
|
|
12068
|
-
}
|
|
12069
12069
|
|
|
12070
|
-
|
|
12070
|
+
if (found) break;
|
|
12071
12071
|
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
|
|
12076
|
-
|
|
12072
|
+
// search field changed in the target program's progDataSource // @code
|
|
12073
|
+
found = progDataSource_str?.includes('@' + field_id);
|
|
12074
|
+
if (found) {
|
|
12075
|
+
refresh_reason = `field ${field_id} in progDataSource changed`;
|
|
12076
|
+
refresh_details = panel_val?.prog_doc?.progDataSource;
|
|
12077
12077
|
|
|
12078
|
-
|
|
12079
|
-
|
|
12078
|
+
break;
|
|
12079
|
+
}
|
|
12080
12080
|
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12081
|
+
found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
|
|
12082
|
+
if (found) {
|
|
12083
|
+
refresh_reason = `field ${field_id} in progUi xu-for changed`;
|
|
12084
|
+
refresh_details = found;
|
|
12085
12085
|
|
|
12086
|
-
|
|
12086
|
+
break;
|
|
12087
|
+
}
|
|
12087
12088
|
}
|
|
12088
12089
|
}
|
|
12089
12090
|
}
|
|
@@ -9747,75 +9747,76 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9747
9747
|
|
|
9748
9748
|
var found, refresh_reason, refresh_details;
|
|
9749
9749
|
if (fields_changed_arr) {
|
|
9750
|
-
if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
|
|
9751
|
-
continue;
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
// detect if program changed
|
|
9758
|
-
found = _attributes['xu-exp:program']?.includes('@' + field_id);
|
|
9759
|
-
|
|
9760
|
-
if (found) {
|
|
9761
|
-
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
9762
|
-
refresh_details = _attributes;
|
|
9763
|
-
break;
|
|
9764
|
-
}
|
|
9750
|
+
if (fields_changed_datasource && panel_val._ds.dsSession < Number(fields_changed_datasource)) {
|
|
9751
|
+
// continue;
|
|
9752
|
+
// }
|
|
9753
|
+
for (const field_id of fields_changed_arr) {
|
|
9754
|
+
// get panel attributes
|
|
9755
|
+
const _attributes = panel_val?.panelXuAttributes || {};
|
|
9765
9756
|
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
for (const [attr, value] of Object.entries(_attributes)) {
|
|
9769
|
-
const pattern = /xu-exp:(\w+)/;
|
|
9770
|
-
const match = attr.match(pattern);
|
|
9757
|
+
// detect if program changed
|
|
9758
|
+
found = _attributes['xu-exp:program']?.includes('@' + field_id);
|
|
9771
9759
|
|
|
9772
|
-
if (
|
|
9773
|
-
|
|
9774
|
-
|
|
9760
|
+
if (found) {
|
|
9761
|
+
refresh_reason = `program ${_attributes['xu-exp:program']} ${field_id} changed `;
|
|
9762
|
+
refresh_details = _attributes;
|
|
9763
|
+
break;
|
|
9775
9764
|
}
|
|
9776
|
-
// code_in
|
|
9777
|
-
const parameter_in_field_id = match?.[1];
|
|
9778
|
-
// @code
|
|
9779
|
-
if (value.includes(field_id)) {
|
|
9780
|
-
// search parameter in field in the target program's progDataSource
|
|
9781
|
-
found = progDataSource_str?.includes('@' + parameter_in_field_id);
|
|
9782
9765
|
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9766
|
+
// _attributes holds also info of parameters in code_in: @code
|
|
9767
|
+
// search field changed in panel call send parameters exp
|
|
9768
|
+
for (const [attr, value] of Object.entries(_attributes)) {
|
|
9769
|
+
const pattern = /xu-exp:(\w+)/;
|
|
9770
|
+
const match = attr.match(pattern);
|
|
9786
9771
|
|
|
9787
|
-
|
|
9772
|
+
if (!match) {
|
|
9773
|
+
// continue if attribute is not expression
|
|
9774
|
+
continue;
|
|
9788
9775
|
}
|
|
9776
|
+
// code_in
|
|
9777
|
+
const parameter_in_field_id = match?.[1];
|
|
9778
|
+
// @code
|
|
9779
|
+
if (value.includes(field_id)) {
|
|
9780
|
+
// search parameter in field in the target program's progDataSource
|
|
9781
|
+
found = progDataSource_str?.includes('@' + parameter_in_field_id);
|
|
9789
9782
|
|
|
9790
|
-
|
|
9791
|
-
|
|
9783
|
+
if (found) {
|
|
9784
|
+
refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
|
|
9785
|
+
refresh_details = panel_val?.prog_doc?.progDataSource;
|
|
9792
9786
|
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
refresh_details = found;
|
|
9787
|
+
break;
|
|
9788
|
+
}
|
|
9796
9789
|
|
|
9797
|
-
|
|
9790
|
+
// found = find_field_in_progUi(prog_doc.progUi, parameter_in_field_id, 'xu-for');
|
|
9791
|
+
found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, parameter_in_field_id, 'xu-for').length;
|
|
9792
|
+
|
|
9793
|
+
if (found) {
|
|
9794
|
+
refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
|
|
9795
|
+
refresh_details = found;
|
|
9796
|
+
|
|
9797
|
+
break;
|
|
9798
|
+
}
|
|
9798
9799
|
}
|
|
9799
9800
|
}
|
|
9800
|
-
}
|
|
9801
9801
|
|
|
9802
|
-
|
|
9802
|
+
if (found) break;
|
|
9803
9803
|
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9804
|
+
// search field changed in the target program's progDataSource // @code
|
|
9805
|
+
found = progDataSource_str?.includes('@' + field_id);
|
|
9806
|
+
if (found) {
|
|
9807
|
+
refresh_reason = `field ${field_id} in progDataSource changed`;
|
|
9808
|
+
refresh_details = panel_val?.prog_doc?.progDataSource;
|
|
9809
9809
|
|
|
9810
|
-
|
|
9811
|
-
|
|
9810
|
+
break;
|
|
9811
|
+
}
|
|
9812
9812
|
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9813
|
+
found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
|
|
9814
|
+
if (found) {
|
|
9815
|
+
refresh_reason = `field ${field_id} in progUi xu-for changed`;
|
|
9816
|
+
refresh_details = found;
|
|
9817
9817
|
|
|
9818
|
-
|
|
9818
|
+
break;
|
|
9819
|
+
}
|
|
9819
9820
|
}
|
|
9820
9821
|
}
|
|
9821
9822
|
}
|