@xuda.io/runtime-bundle 1.0.474 → 1.0.476

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,7 +9097,12 @@ 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 attributes = $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
9100
+ const get_attributes = function (retry = 0) {
9101
+ if (retry > 50) return;
9102
+ $elm?.data()?.xuPanelWrapper?.panelXuAttributes || $elm?.data()?.xuData?.debug_info?.attribute_stat || get_attributes(retry + 1);
9103
+ };
9104
+
9105
+ const attributes = get_attributes();
9101
9106
  SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
9102
9107
  SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
9103
9108
  }
@@ -12044,7 +12049,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12044
12049
  return ret;
12045
12050
  },
12046
12051
  'xu-ref': async function ($elm, val) {
12047
- // const $wrapper = $(`[xu-panel-wrapper-id='${$elm.attr('xu-ui-id')}`);
12048
12052
  let ret = await common_fx['xu-ref']($container, val);
12049
12053
  return ret;
12050
12054
  },
@@ -9098,7 +9098,12 @@ 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 attributes = $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
9101
+ const get_attributes = function (retry = 0) {
9102
+ if (retry > 50) return;
9103
+ $elm?.data()?.xuPanelWrapper?.panelXuAttributes || $elm?.data()?.xuData?.debug_info?.attribute_stat || get_attributes(retry + 1);
9104
+ };
9105
+
9106
+ const attributes = get_attributes();
9102
9107
  SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
9103
9108
  SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
9104
9109
  }
@@ -10117,7 +10122,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10117
10122
  return ret;
10118
10123
  },
10119
10124
  'xu-ref': async function ($elm, val) {
10120
- // const $wrapper = $(`[xu-panel-wrapper-id='${$elm.attr('xu-ui-id')}`);
10121
10125
  let ret = await common_fx['xu-ref']($container, val);
10122
10126
  return ret;
10123
10127
  },