@xuda.io/runtime-bundle 1.0.1421 → 1.0.1422

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.
@@ -24042,11 +24042,12 @@ func.runtime.render.get_root_data_system = function (SESSION_ID) {
24042
24042
  func.runtime.render.resolve_xu_for_source = async function (SESSION_ID, dsSessionP, value) {
24043
24043
  let arr = value;
24044
24044
  let reference_source_obj;
24045
+ const normalized_reference = typeof value === 'string' && value.startsWith('@') ? value.substring(1) : value;
24045
24046
  const _progFields = await func.datasource.get_progFields(SESSION_ID, dsSessionP);
24046
- let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', value);
24047
+ let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', normalized_reference);
24047
24048
 
24048
- if (view_field_obj) {
24049
- reference_source_obj = await func.datasource.get_value(SESSION_ID, value, dsSessionP);
24049
+ if (view_field_obj || normalized_reference !== value) {
24050
+ reference_source_obj = await func.datasource.get_value(SESSION_ID, normalized_reference, dsSessionP);
24050
24051
  arr = reference_source_obj?.ret?.value;
24051
24052
  } else {
24052
24053
  if (typeof value === 'string') {
@@ -35377,8 +35378,8 @@ func.runtime.render.get_xu_for_iterators = function ($elm) {
35377
35378
  return {
35378
35379
  iterator_key: custom_iterator_key || '_FOR_KEY',
35379
35380
  iterator_val: custom_iterator_val || '_FOR_VAL',
35380
- is_key_dynamic_field: !custom_iterator_key,
35381
- is_val_dynamic_field: !custom_iterator_val,
35381
+ is_key_dynamic_field: true,
35382
+ is_val_dynamic_field: true,
35382
35383
  };
35383
35384
  };
35384
35385
  func.runtime.render.attach_iterate_info_to_children = function ($divP, iterate_info) {