@xuda.io/runtime-bundle 1.0.478 → 1.0.480

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.
@@ -9097,16 +9097,16 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
9097
9097
  SYS_GLOBAL_OBJ_REFS[ref_field_id].props = _ds.in_parameters || {};
9098
9098
 
9099
9099
  if ($elm) {
9100
- const get_attributes = function (retry = 0) {
9101
- if (retry > 500) return;
9102
- $elm?.data()?.xuPanelWrapper?.panelXuAttributes ||
9103
- $elm?.data()?.xuData?.debug_info?.attribute_stat ||
9104
- setTimeout(() => {
9105
- get_attributes(retry + 1);
9106
- }, 500);
9107
- };
9100
+ // const get_attributes = function (retry = 0) {
9101
+ // if (retry > 500) return;
9102
+ // $elm?.data()?.xuPanelWrapper?.panelXuAttributes ||
9103
+ // $elm?.data()?.xuData?.debug_info?.attribute_stat ||
9104
+ // setTimeout(() => {
9105
+ // get_attributes(retry + 1);
9106
+ // }, 500);
9107
+ // };
9108
9108
 
9109
- const attributes = get_attributes();
9109
+ const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
9110
9110
  SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
9111
9111
  SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
9112
9112
  }
@@ -11979,6 +11979,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11979
11979
  const param_obj = await get_params_obj_new(SESSION_ID, prog_id, nodeP, paramsP.dsSessionP);
11980
11980
  let ret_panel = await func.UI.screen.init(SESSION_ID, prog_id, paramsP.screenId, _ds, $elm, null, _ds.currentRecordId, null, true, param_obj, 'initXu_panel');
11981
11981
  ret = { $new_div: ret_panel };
11982
+ $container.data().xuData.xuPanelProps = $elm.data().xuAttributes;
11982
11983
  return ret;
11983
11984
  }
11984
11985
 
@@ -9098,16 +9098,16 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
9098
9098
  SYS_GLOBAL_OBJ_REFS[ref_field_id].props = _ds.in_parameters || {};
9099
9099
 
9100
9100
  if ($elm) {
9101
- const get_attributes = function (retry = 0) {
9102
- if (retry > 500) return;
9103
- $elm?.data()?.xuPanelWrapper?.panelXuAttributes ||
9104
- $elm?.data()?.xuData?.debug_info?.attribute_stat ||
9105
- setTimeout(() => {
9106
- get_attributes(retry + 1);
9107
- }, 500);
9108
- };
9101
+ // const get_attributes = function (retry = 0) {
9102
+ // if (retry > 500) return;
9103
+ // $elm?.data()?.xuPanelWrapper?.panelXuAttributes ||
9104
+ // $elm?.data()?.xuData?.debug_info?.attribute_stat ||
9105
+ // setTimeout(() => {
9106
+ // get_attributes(retry + 1);
9107
+ // }, 500);
9108
+ // };
9109
9109
 
9110
- const attributes = get_attributes();
9110
+ const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
9111
9111
  SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
9112
9112
  SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
9113
9113
  }
@@ -10052,6 +10052,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10052
10052
  const param_obj = await get_params_obj_new(SESSION_ID, prog_id, nodeP, paramsP.dsSessionP);
10053
10053
  let ret_panel = await func.UI.screen.init(SESSION_ID, prog_id, paramsP.screenId, _ds, $elm, null, _ds.currentRecordId, null, true, param_obj, 'initXu_panel');
10054
10054
  ret = { $new_div: ret_panel };
10055
+ $container.data().xuData.xuPanelProps = $elm.data().xuAttributes;
10055
10056
  return ret;
10056
10057
  }
10057
10058