@xuda.io/runtime-bundle 1.0.411 → 1.0.413

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.
@@ -9076,7 +9076,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
9076
9076
  if (attr === `xu-exp:${prop}` || attr === prop) {
9077
9077
  // found = val.includes('@' + field_id);
9078
9078
  if (val.includes('@' + field_id)) {
9079
- elm_node = node;
9079
+ elm_node = item;
9080
9080
  break;
9081
9081
  }
9082
9082
  }
@@ -9084,7 +9084,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
9084
9084
  }
9085
9085
  } else {
9086
9086
  if (tag_name) {
9087
- elm_node = node;
9087
+ elm_node = item;
9088
9088
  }
9089
9089
  }
9090
9090
  }
@@ -11604,7 +11604,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11604
11604
  };
11605
11605
 
11606
11606
  const $xu_embed_div = $('.xu_embed_div');
11607
- let panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, true);
11607
+ const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, true);
11608
+ let inviable_panels_obj = {};
11608
11609
 
11609
11610
  for await (const field_id of fields_arr) {
11610
11611
  // run root
@@ -11620,13 +11621,13 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11620
11621
  if (exp) {
11621
11622
  let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_div?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
11622
11623
  prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
11623
- panels_obj[elm_node.id] = { prog_id };
11624
+ inviable_panels_obj[elm_node.id] = { prog_id };
11624
11625
  }
11625
11626
  }
11626
11627
  }
11627
11628
  // run panels
11628
11629
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
11629
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id || panel_val.prog_id);
11630
+ const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id);
11630
11631
 
11631
11632
  await iterate_field_in_progUi(prog_doc.progUi, field_id);
11632
11633
  }
@@ -9077,7 +9077,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
9077
9077
  if (attr === `xu-exp:${prop}` || attr === prop) {
9078
9078
  // found = val.includes('@' + field_id);
9079
9079
  if (val.includes('@' + field_id)) {
9080
- elm_node = node;
9080
+ elm_node = item;
9081
9081
  break;
9082
9082
  }
9083
9083
  }
@@ -9085,7 +9085,7 @@ func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_
9085
9085
  }
9086
9086
  } else {
9087
9087
  if (tag_name) {
9088
- elm_node = node;
9088
+ elm_node = item;
9089
9089
  }
9090
9090
  }
9091
9091
  }
@@ -9677,7 +9677,8 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9677
9677
  };
9678
9678
 
9679
9679
  const $xu_embed_div = $('.xu_embed_div');
9680
- let panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, true);
9680
+ const panels_obj = func.UI.utils.get_panels_from_dom(SESSION_ID, true);
9681
+ let inviable_panels_obj = {};
9681
9682
 
9682
9683
  for await (const field_id of fields_arr) {
9683
9684
  // run root
@@ -9693,13 +9694,13 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9693
9694
  if (exp) {
9694
9695
  let exp_ret = await func.expression.get(SESSION_ID, exp, $xu_embed_div?.data()?.xuData?.paramsP?.dsSessionP, 'UI Attr EXP');
9695
9696
  prog_id = func.UI.screen.fix_val_defaults('program', exp_ret.result);
9696
- panels_obj[elm_node.id] = { prog_id };
9697
+ inviable_panels_obj[elm_node.id] = { prog_id };
9697
9698
  }
9698
9699
  }
9699
9700
  }
9700
9701
  // run panels
9701
9702
  for await (const [parent_element_ui_id, panel_val] of Object.entries(panels_obj)) {
9702
- const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id || panel_val.prog_id);
9703
+ const prog_doc = await func.utils.DOCS_OBJ.get(SESSION_ID, panel_val._ds.prog_id);
9703
9704
 
9704
9705
  await iterate_field_in_progUi(prog_doc.progUi, field_id);
9705
9706
  }