@xuda.io/runtime-bundle 1.0.425 → 1.0.428

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.
@@ -27819,15 +27819,18 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
27819
27819
  if (elem_key === 'length') break;
27820
27820
  var $div = $(elem_val);
27821
27821
 
27822
- const panelXuAttributes = $div?.xuPanelWrapper?.panelXuAttributes;
27822
+ const panelXuAttributes = $div?.data().xuPanelWrapper?.panelXuAttributes;
27823
+
27824
+ if (!panelXuAttributes) continue; // skip if no longer in dom
27825
+
27823
27826
  let prog_id = panelXuAttributes?.program;
27824
27827
  const exp = panelXuAttributes?.['xu-exp:program'];
27825
27828
  if (exp) {
27826
27829
  let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
27827
27830
  prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
27828
27831
  }
27829
- let prog_obj = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
27830
- if (!ignore_disableAutoRefresh && prog_obj.properties.disableAutoRefresh) {
27832
+ let prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
27833
+ if (!ignore_disableAutoRefresh && prog_doc.properties.disableAutoRefresh) {
27831
27834
  continue;
27832
27835
  }
27833
27836
  const xu_ui_id = $div.attr('xu-ui-id');
@@ -27835,6 +27838,7 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
27835
27838
  panels_obj[xu_ui_id] = {
27836
27839
  prog_id,
27837
27840
  panelXuAttributes,
27841
+ progUi: prog_doc.progUi,
27838
27842
  };
27839
27843
  }
27840
27844
  }
@@ -31691,8 +31695,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31691
31695
  }
31692
31696
  // run panels
31693
31697
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
31694
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
31695
- await iterate_field_in_progUi(prog_doc.progUi, field_id);
31698
+ // const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
31699
+ await iterate_field_in_progUi(panel_val.progUi, field_id);
31696
31700
  }
31697
31701
 
31698
31702
  // // run invisible panels