@xuda.io/runtime-bundle 1.0.697 → 1.0.698

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.
@@ -11852,25 +11852,25 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11852
11852
  if ($elm?.length) {
11853
11853
  const elm_data = $elm.data();
11854
11854
  const $wrapper = $elm.parent();
11855
- const wrapper_data = $wrapper.data();
11855
+ // const wrapper_data = $wrapper.data();
11856
11856
  const refreshed_ds = _ds.dsSession;
11857
11857
 
11858
- let elm_to_delete = [];
11859
- const ts = Date.now();
11860
- $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
11861
- let xu_ui_id = $(val).attr('xu-ui-id');
11862
- if (xu_ui_id) {
11863
- let new_id = xu_ui_id + ts;
11864
- elm_to_delete.push(new_id);
11858
+ // let elm_to_delete = [];
11859
+ // const ts = Date.now();
11860
+ // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
11861
+ // let xu_ui_id = $(val).attr('xu-ui-id');
11862
+ // if (xu_ui_id) {
11863
+ // let new_id = xu_ui_id + ts;
11864
+ // elm_to_delete.push(new_id);
11865
11865
 
11866
- $(val).attr('xu-ui-id', new_id).removeData();
11867
- }
11868
- // else {
11869
- // $(val).remove();
11870
- // }
11871
- });
11866
+ // $(val).attr('xu-ui-id', new_id).removeData();
11867
+ // }
11868
+ // // else {
11869
+ // // $(val).remove();
11870
+ // // }
11871
+ // });
11872
11872
 
11873
- // $elm.empty();
11873
+ $elm.empty();
11874
11874
  if ($elm.data()) {
11875
11875
  const new_$div = await func.UI.screen.render_ui_tree(
11876
11876
  SESSION_ID,
@@ -11887,10 +11887,10 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11887
11887
  elm_data.xuData.$root_container, // the wrapper root container
11888
11888
  );
11889
11889
 
11890
- // remove old screen content
11891
- $.each(elm_to_delete, async function (key, val) {
11892
- $("[xu-ui-id='" + elm_to_delete + "']").remove();
11893
- });
11890
+ // // remove old screen content
11891
+ // $.each(elm_to_delete, async function (key, val) {
11892
+ // $("[xu-ui-id='" + elm_to_delete + "']").remove();
11893
+ // });
11894
11894
 
11895
11895
  return;
11896
11896
  }
@@ -9574,25 +9574,25 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9574
9574
  if ($elm?.length) {
9575
9575
  const elm_data = $elm.data();
9576
9576
  const $wrapper = $elm.parent();
9577
- const wrapper_data = $wrapper.data();
9577
+ // const wrapper_data = $wrapper.data();
9578
9578
  const refreshed_ds = _ds.dsSession;
9579
9579
 
9580
- let elm_to_delete = [];
9581
- const ts = Date.now();
9582
- $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
9583
- let xu_ui_id = $(val).attr('xu-ui-id');
9584
- if (xu_ui_id) {
9585
- let new_id = xu_ui_id + ts;
9586
- elm_to_delete.push(new_id);
9580
+ // let elm_to_delete = [];
9581
+ // const ts = Date.now();
9582
+ // $.each($elm.find('xu-root-component-' + SESSION_ID).find('*'), function (key, val) {
9583
+ // let xu_ui_id = $(val).attr('xu-ui-id');
9584
+ // if (xu_ui_id) {
9585
+ // let new_id = xu_ui_id + ts;
9586
+ // elm_to_delete.push(new_id);
9587
9587
 
9588
- $(val).attr('xu-ui-id', new_id).removeData();
9589
- }
9590
- // else {
9591
- // $(val).remove();
9592
- // }
9593
- });
9588
+ // $(val).attr('xu-ui-id', new_id).removeData();
9589
+ // }
9590
+ // // else {
9591
+ // // $(val).remove();
9592
+ // // }
9593
+ // });
9594
9594
 
9595
- // $elm.empty();
9595
+ $elm.empty();
9596
9596
  if ($elm.data()) {
9597
9597
  const new_$div = await func.UI.screen.render_ui_tree(
9598
9598
  SESSION_ID,
@@ -9609,10 +9609,10 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9609
9609
  elm_data.xuData.$root_container, // the wrapper root container
9610
9610
  );
9611
9611
 
9612
- // remove old screen content
9613
- $.each(elm_to_delete, async function (key, val) {
9614
- $("[xu-ui-id='" + elm_to_delete + "']").remove();
9615
- });
9612
+ // // remove old screen content
9613
+ // $.each(elm_to_delete, async function (key, val) {
9614
+ // $("[xu-ui-id='" + elm_to_delete + "']").remove();
9615
+ // });
9616
9616
 
9617
9617
  return;
9618
9618
  }