@xuda.io/runtime-bundle 1.0.595 → 1.0.597

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.
@@ -9362,6 +9362,7 @@ func.events.add_to_queue = async function (
9362
9362
  job_num: _session.WORKER_OBJ.num,
9363
9363
  };
9364
9364
  var _ds = _session.DS_GLB[dsSessionP];
9365
+ if (!_ds) return;
9365
9366
  if (typeof dsSessionP !== 'undefined' && dsSessionP !== null) {
9366
9367
  obj.prog_id = _ds.prog_id;
9367
9368
  obj.parentDataSourceNo = _ds.parentDataSourceNo;
@@ -12018,7 +12019,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12018
12019
  // if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
12019
12020
  // continue;
12020
12021
  // }
12021
- if (fields_changed_datasource && panel_val._ds.dsSession < Number(fields_changed_datasource)) {
12022
+ if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
12022
12023
  continue;
12023
12024
  }
12024
12025
  for (const field_id of fields_changed_arr) {
@@ -12067,27 +12068,26 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12067
12068
 
12068
12069
  break;
12069
12070
  }
12070
- // }
12071
12071
  }
12072
+ }
12072
12073
 
12073
- if (found) break;
12074
+ if (found) break;
12074
12075
 
12075
- // search field changed in the target program's progDataSource // @code
12076
- found = progDataSource_str?.includes('@' + field_id);
12077
- if (found) {
12078
- refresh_reason = `field ${field_id} in progDataSource changed`;
12079
- refresh_details = panel_val?.prog_doc?.progDataSource;
12076
+ // search field changed in the target program's progDataSource // @code
12077
+ found = progDataSource_str?.includes('@' + field_id);
12078
+ if (found) {
12079
+ refresh_reason = `field ${field_id} in progDataSource changed`;
12080
+ refresh_details = panel_val?.prog_doc?.progDataSource;
12080
12081
 
12081
- break;
12082
- }
12082
+ break;
12083
+ }
12083
12084
 
12084
- found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
12085
- if (found) {
12086
- refresh_reason = `field ${field_id} in progUi xu-for changed`;
12087
- refresh_details = found;
12085
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
12086
+ if (found) {
12087
+ refresh_reason = `field ${field_id} in progUi xu-for changed`;
12088
+ refresh_details = found;
12088
12089
 
12089
- break;
12090
- }
12090
+ break;
12091
12091
  }
12092
12092
 
12093
12093
  if (found) {
@@ -9750,7 +9750,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9750
9750
  // if (fields_changed_datasource && panel_val._ds.dsSession < fields_changed_datasource) {
9751
9751
  // continue;
9752
9752
  // }
9753
- if (fields_changed_datasource && panel_val._ds.dsSession < Number(fields_changed_datasource)) {
9753
+ if (fields_changed_datasource && panel_val._ds.dsSession <= Number(fields_changed_datasource)) {
9754
9754
  continue;
9755
9755
  }
9756
9756
  for (const field_id of fields_changed_arr) {
@@ -9799,27 +9799,26 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9799
9799
 
9800
9800
  break;
9801
9801
  }
9802
- // }
9803
9802
  }
9803
+ }
9804
9804
 
9805
- if (found) break;
9805
+ if (found) break;
9806
9806
 
9807
- // search field changed in the target program's progDataSource // @code
9808
- found = progDataSource_str?.includes('@' + field_id);
9809
- if (found) {
9810
- refresh_reason = `field ${field_id} in progDataSource changed`;
9811
- refresh_details = panel_val?.prog_doc?.progDataSource;
9807
+ // search field changed in the target program's progDataSource // @code
9808
+ found = progDataSource_str?.includes('@' + field_id);
9809
+ if (found) {
9810
+ refresh_reason = `field ${field_id} in progDataSource changed`;
9811
+ refresh_details = panel_val?.prog_doc?.progDataSource;
9812
9812
 
9813
- break;
9814
- }
9813
+ break;
9814
+ }
9815
9815
 
9816
- found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
9817
- if (found) {
9818
- refresh_reason = `field ${field_id} in progUi xu-for changed`;
9819
- refresh_details = found;
9816
+ found = func.UI.find_field_in_progUi_attributes(panel_val.prog_doc.progUi, field_id, 'xu-for').length;
9817
+ if (found) {
9818
+ refresh_reason = `field ${field_id} in progUi xu-for changed`;
9819
+ refresh_details = found;
9820
9820
 
9821
- break;
9822
- }
9821
+ break;
9823
9822
  }
9824
9823
 
9825
9824
  if (found) {
@@ -13286,6 +13285,7 @@ func.events.add_to_queue = async function (
13286
13285
  job_num: _session.WORKER_OBJ.num,
13287
13286
  };
13288
13287
  var _ds = _session.DS_GLB[dsSessionP];
13288
+ if (!_ds) return;
13289
13289
  if (typeof dsSessionP !== 'undefined' && dsSessionP !== null) {
13290
13290
  obj.prog_id = _ds.prog_id;
13291
13291
  obj.parentDataSourceNo = _ds.parentDataSourceNo;