@xuda.io/runtime-bundle 1.0.434 → 1.0.436

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.
@@ -8629,7 +8629,7 @@ func.UI.utils.get_panels_from_dom = function (SESSION_ID, ignore_disableAutoRefr
8629
8629
  };
8630
8630
 
8631
8631
  func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embed_container, ignore_disableAutoRefresh) {
8632
- const $elm = await func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8632
+ const $elm = func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8633
8633
  var panels_obj = {};
8634
8634
 
8635
8635
  // set panels_obj
@@ -8659,6 +8659,14 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8659
8659
  continue;
8660
8660
  }
8661
8661
 
8662
+ let ids = [];
8663
+
8664
+ $.each($panel_div.children, function (key, val) {
8665
+ if ($(val).data.xuPanelData) {
8666
+ ids.push($(val).attr('xu-ui-id'));
8667
+ }
8668
+ });
8669
+
8662
8670
  panels_obj[xu_ui_id] = {
8663
8671
  // prog_id,
8664
8672
  panelXuAttributes,
@@ -8666,6 +8674,7 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8666
8674
  prog_doc,
8667
8675
  $panel_div,
8668
8676
  _ds,
8677
+ ids,
8669
8678
  };
8670
8679
  }
8671
8680
  }
@@ -11781,7 +11790,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11781
11790
  try {
11782
11791
  // const $org_panel = panel_val.$div.data().xuPanelData.$panel_div;
11783
11792
 
11784
- const new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $div_elm, _.cloneDeep(panel_val.$div.data().xuPanelData.node), {}, $div_elm.data().xuData.paramsP, null, null, $div_elm.data().xuData.key, null, $div_elm.data().xuData.parent_node, null, $div_elm.data().xuData.$root_container);
11793
+ const new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $div_elm, _.cloneDeep(panel_val.$div_elm.data().xuData.node), {}, $div_elm.data().xuData.paramsP, null, null, $div_elm.data().xuData.key, null, $div_elm.data().xuData.parent_node, null, $div_elm.data().xuData.$root_container);
11785
11794
 
11786
11795
  // remove old panel content
11787
11796
  $.each(panel_val.ids, async function (key, val) {
@@ -8630,7 +8630,7 @@ func.UI.utils.get_panels_from_dom = function (SESSION_ID, ignore_disableAutoRefr
8630
8630
  };
8631
8631
 
8632
8632
  func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embed_container, ignore_disableAutoRefresh) {
8633
- const $elm = await func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8633
+ const $elm = func.UI.utils.find_in_element_data('xuPanelWrapper', $(SESSION_OBJ[SESSION_ID].root_element), 'isWrapper');
8634
8634
  var panels_obj = {};
8635
8635
 
8636
8636
  // set panels_obj
@@ -8660,6 +8660,14 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8660
8660
  continue;
8661
8661
  }
8662
8662
 
8663
+ let ids = [];
8664
+
8665
+ $.each($panel_div.children, function (key, val) {
8666
+ if ($(val).data.xuPanelData) {
8667
+ ids.push($(val).attr('xu-ui-id'));
8668
+ }
8669
+ });
8670
+
8663
8671
  panels_obj[xu_ui_id] = {
8664
8672
  // prog_id,
8665
8673
  panelXuAttributes,
@@ -8667,6 +8675,7 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8667
8675
  prog_doc,
8668
8676
  $panel_div,
8669
8677
  _ds,
8678
+ ids,
8670
8679
  };
8671
8680
  }
8672
8681
  }
@@ -9854,7 +9863,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9854
9863
  try {
9855
9864
  // const $org_panel = panel_val.$div.data().xuPanelData.$panel_div;
9856
9865
 
9857
- const new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $div_elm, _.cloneDeep(panel_val.$div.data().xuPanelData.node), {}, $div_elm.data().xuData.paramsP, null, null, $div_elm.data().xuData.key, null, $div_elm.data().xuData.parent_node, null, $div_elm.data().xuData.$root_container);
9866
+ const new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $div_elm, _.cloneDeep(panel_val.$div_elm.data().xuData.node), {}, $div_elm.data().xuData.paramsP, null, null, $div_elm.data().xuData.key, null, $div_elm.data().xuData.parent_node, null, $div_elm.data().xuData.$root_container);
9858
9867
 
9859
9868
  // remove old panel content
9860
9869
  $.each(panel_val.ids, async function (key, val) {