@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.
@@ -8637,15 +8637,18 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8637
8637
  if (elem_key === 'length') break;
8638
8638
  var $div = $(elem_val);
8639
8639
 
8640
- const panelXuAttributes = $div?.xuPanelWrapper?.panelXuAttributes;
8640
+ const panelXuAttributes = $div?.data().xuPanelWrapper?.panelXuAttributes;
8641
+
8642
+ if (!panelXuAttributes) continue; // skip if no longer in dom
8643
+
8641
8644
  let prog_id = panelXuAttributes?.program;
8642
8645
  const exp = panelXuAttributes?.['xu-exp:program'];
8643
8646
  if (exp) {
8644
8647
  let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
8645
8648
  prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
8646
8649
  }
8647
- let prog_obj = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
8648
- if (!ignore_disableAutoRefresh && prog_obj.properties.disableAutoRefresh) {
8650
+ let prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
8651
+ if (!ignore_disableAutoRefresh && prog_doc.properties.disableAutoRefresh) {
8649
8652
  continue;
8650
8653
  }
8651
8654
  const xu_ui_id = $div.attr('xu-ui-id');
@@ -8653,6 +8656,7 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8653
8656
  panels_obj[xu_ui_id] = {
8654
8657
  prog_id,
8655
8658
  panelXuAttributes,
8659
+ progUi: prog_doc.progUi,
8656
8660
  };
8657
8661
  }
8658
8662
  }
@@ -11659,8 +11663,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11659
11663
  }
11660
11664
  // run panels
11661
11665
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
11662
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
11663
- await iterate_field_in_progUi(prog_doc.progUi, field_id);
11666
+ // const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
11667
+ await iterate_field_in_progUi(panel_val.progUi, field_id);
11664
11668
  }
11665
11669
 
11666
11670
  // // run invisible panels
@@ -8638,15 +8638,18 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8638
8638
  if (elem_key === 'length') break;
8639
8639
  var $div = $(elem_val);
8640
8640
 
8641
- const panelXuAttributes = $div?.xuPanelWrapper?.panelXuAttributes;
8641
+ const panelXuAttributes = $div?.data().xuPanelWrapper?.panelXuAttributes;
8642
+
8643
+ if (!panelXuAttributes) continue; // skip if no longer in dom
8644
+
8642
8645
  let prog_id = panelXuAttributes?.program;
8643
8646
  const exp = panelXuAttributes?.['xu-exp:program'];
8644
8647
  if (exp) {
8645
8648
  let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_container?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
8646
8649
  prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
8647
8650
  }
8648
- let prog_obj = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
8649
- if (!ignore_disableAutoRefresh && prog_obj.properties.disableAutoRefresh) {
8651
+ let prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, prog_id);
8652
+ if (!ignore_disableAutoRefresh && prog_doc.properties.disableAutoRefresh) {
8650
8653
  continue;
8651
8654
  }
8652
8655
  const xu_ui_id = $div.attr('xu-ui-id');
@@ -8654,6 +8657,7 @@ func.UI.utils.get_panels_wrapper_from_dom = async function (SESSION_ID, $xu_embe
8654
8657
  panels_obj[xu_ui_id] = {
8655
8658
  prog_id,
8656
8659
  panelXuAttributes,
8660
+ progUi: prog_doc.progUi,
8657
8661
  };
8658
8662
  }
8659
8663
  }
@@ -9732,8 +9736,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9732
9736
  }
9733
9737
  // run panels
9734
9738
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
9735
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
9736
- await iterate_field_in_progUi(prog_doc.progUi, field_id);
9739
+ // const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val.prog_id);
9740
+ await iterate_field_in_progUi(panel_val.progUi, field_id);
9737
9741
  }
9738
9742
 
9739
9743
  // // run invisible panels