@xuda.io/runtime-bundle 1.0.588 → 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.
@@ -12016,74 +12016,75 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12016
12016
  var found, refresh_reason, refresh_details;
12017
12017
  if (fields_changed_arr) {
12018
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 || {};
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
- }
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
- // _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);
12025
+ // detect if program changed
12026
+ found = _attributes['xu-exp:program']?.includes('@' + field_id);
12039
12027
 
12040
- if (!match) {
12041
- // continue if attribute is not expression
12042
- continue;
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
- if (found) {
12052
- refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
12053
- refresh_details = panel_val?.prog_doc?.progDataSource;
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
- break;
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
- // 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;
12051
+ if (found) {
12052
+ refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
12053
+ refresh_details = panel_val?.prog_doc?.progDataSource;
12054
+
12055
+ break;
12056
+ }
12060
12057
 
12061
- if (found) {
12062
- refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
12063
- refresh_details = found;
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;
12064
12060
 
12065
- break;
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
- if (found) break;
12070
+ if (found) break;
12071
12071
 
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;
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
- break;
12079
- }
12078
+ break;
12079
+ }
12080
12080
 
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;
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
- break;
12086
+ break;
12087
+ }
12087
12088
  }
12088
12089
  }
12089
12090
  }
@@ -9748,74 +9748,75 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9748
9748
  var found, refresh_reason, refresh_details;
9749
9749
  if (fields_changed_arr) {
9750
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 || {};
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
- }
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
- // _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);
9757
+ // detect if program changed
9758
+ found = _attributes['xu-exp:program']?.includes('@' + field_id);
9771
9759
 
9772
- if (!match) {
9773
- // continue if attribute is not expression
9774
- continue;
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
- if (found) {
9784
- refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
9785
- refresh_details = panel_val?.prog_doc?.progDataSource;
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
- break;
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
- // 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;
9783
+ if (found) {
9784
+ refresh_reason = `field ${field_id} in progDataSource parameter_in changed`;
9785
+ refresh_details = panel_val?.prog_doc?.progDataSource;
9786
+
9787
+ break;
9788
+ }
9792
9789
 
9793
- if (found) {
9794
- refresh_reason = `field ${field_id} in progUi xu-for parameter_in changed`;
9795
- refresh_details = found;
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;
9796
9792
 
9797
- break;
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
- if (found) break;
9802
+ if (found) break;
9803
9803
 
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;
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
- break;
9811
- }
9810
+ break;
9811
+ }
9812
9812
 
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;
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
- break;
9818
+ break;
9819
+ }
9819
9820
  }
9820
9821
  }
9821
9822
  }