@xuda.io/runtime-bundle 1.0.689 → 1.0.691

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.
@@ -3605,7 +3605,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
3605
3605
  const fx_ret = await func.expression.get(SESSION_ID, _ds.progDataSource.dataSourceFilterModelTypeFx, dataSourceSession, 'query');
3606
3606
  _dataSourceFilterModelType = fx_ret.result;
3607
3607
  }
3608
- if (!['query', 'index'].includes(_dataSourceFilterModelType)) {
3608
+ if (_dataSourceFilterModelType && !['query', 'index'].includes(_dataSourceFilterModelType)) {
3609
3609
  return func.utils.debug_report(SESSION_ID, 'Data source', `Valid values for dataSourceFilterModelType are: "query" or "index" (${_dataSourceFilterModelType})`, 'E');
3610
3610
  }
3611
3611
 
@@ -11852,21 +11852,21 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11852
11852
  const wrapper_data = $wrapper.data();
11853
11853
  const refreshed_ds = _ds.dsSession;
11854
11854
 
11855
- let elm_to_delete = [];
11856
- const ts = Date.now();
11857
- $.each($elm.find('*'), function (key, val) {
11858
- let xu_ui_id = $(val).attr('xu-ui-id');
11859
- if (xu_ui_id) {
11860
- let new_id = xu_ui_id + ts;
11861
- elm_to_delete.push(new_id);
11862
-
11863
- $(val).attr('xu-ui-id', new_id).removeData();
11864
- } else {
11865
- $(val).remove();
11866
- }
11867
- });
11855
+ // let elm_to_delete = [];
11856
+ // const ts = Date.now();
11857
+ // $.each($elm.find('*'), function (key, val) {
11858
+ // let xu_ui_id = $(val).attr('xu-ui-id');
11859
+ // if (xu_ui_id) {
11860
+ // let new_id = xu_ui_id + ts;
11861
+ // elm_to_delete.push(new_id);
11862
+
11863
+ // $(val).attr('xu-ui-id', new_id).removeData();
11864
+ // } else {
11865
+ // $(val).remove();
11866
+ // }
11867
+ // });
11868
11868
 
11869
- // $elm.empty();
11869
+ $elm.empty();
11870
11870
  const new_$div = await func.UI.screen.render_ui_tree(
11871
11871
  SESSION_ID,
11872
11872
  $elm, // the wrapper
@@ -11882,10 +11882,10 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11882
11882
  elm_data.xuData.$root_container, // the wrapper root container
11883
11883
  );
11884
11884
 
11885
- // remove old screen content
11886
- $.each(elm_to_delete, async function (key, val) {
11887
- $("[xu-ui-id='" + elm_to_delete + "']").remove();
11888
- });
11885
+ // // remove old screen content
11886
+ // $.each(elm_to_delete, async function (key, val) {
11887
+ // $("[xu-ui-id='" + elm_to_delete + "']").remove();
11888
+ // });
11889
11889
 
11890
11890
  return;
11891
11891
  }
@@ -3606,7 +3606,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
3606
3606
  const fx_ret = await func.expression.get(SESSION_ID, _ds.progDataSource.dataSourceFilterModelTypeFx, dataSourceSession, 'query');
3607
3607
  _dataSourceFilterModelType = fx_ret.result;
3608
3608
  }
3609
- if (!['query', 'index'].includes(_dataSourceFilterModelType)) {
3609
+ if (_dataSourceFilterModelType && !['query', 'index'].includes(_dataSourceFilterModelType)) {
3610
3610
  return func.utils.debug_report(SESSION_ID, 'Data source', `Valid values for dataSourceFilterModelType are: "query" or "index" (${_dataSourceFilterModelType})`, 'E');
3611
3611
  }
3612
3612
 
@@ -9574,21 +9574,21 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9574
9574
  const wrapper_data = $wrapper.data();
9575
9575
  const refreshed_ds = _ds.dsSession;
9576
9576
 
9577
- let elm_to_delete = [];
9578
- const ts = Date.now();
9579
- $.each($elm.find('*'), function (key, val) {
9580
- let xu_ui_id = $(val).attr('xu-ui-id');
9581
- if (xu_ui_id) {
9582
- let new_id = xu_ui_id + ts;
9583
- elm_to_delete.push(new_id);
9584
-
9585
- $(val).attr('xu-ui-id', new_id).removeData();
9586
- } else {
9587
- $(val).remove();
9588
- }
9589
- });
9577
+ // let elm_to_delete = [];
9578
+ // const ts = Date.now();
9579
+ // $.each($elm.find('*'), function (key, val) {
9580
+ // let xu_ui_id = $(val).attr('xu-ui-id');
9581
+ // if (xu_ui_id) {
9582
+ // let new_id = xu_ui_id + ts;
9583
+ // elm_to_delete.push(new_id);
9584
+
9585
+ // $(val).attr('xu-ui-id', new_id).removeData();
9586
+ // } else {
9587
+ // $(val).remove();
9588
+ // }
9589
+ // });
9590
9590
 
9591
- // $elm.empty();
9591
+ $elm.empty();
9592
9592
  const new_$div = await func.UI.screen.render_ui_tree(
9593
9593
  SESSION_ID,
9594
9594
  $elm, // the wrapper
@@ -9604,10 +9604,10 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9604
9604
  elm_data.xuData.$root_container, // the wrapper root container
9605
9605
  );
9606
9606
 
9607
- // remove old screen content
9608
- $.each(elm_to_delete, async function (key, val) {
9609
- $("[xu-ui-id='" + elm_to_delete + "']").remove();
9610
- });
9607
+ // // remove old screen content
9608
+ // $.each(elm_to_delete, async function (key, val) {
9609
+ // $("[xu-ui-id='" + elm_to_delete + "']").remove();
9610
+ // });
9611
9611
 
9612
9612
  return;
9613
9613
  }