@xuda.io/runtime-bundle 1.0.379 → 1.0.381

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.
@@ -10642,8 +10642,6 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
10642
10642
  // extract object
10643
10643
  if (typeof val.value === 'object' && var_Arr.length > 1) {
10644
10644
  if (!Array.isArray(val.value) && !var_Arr[key + 1].value?.includes('.')) {
10645
- // && !["api_rendered_output"].includes(sourceP)
10646
-
10647
10645
  // prevent cast on single value expression
10648
10646
  res[key] = '(' + JSON.stringify(val.value) + ')';
10649
10647
  } else {
@@ -11933,7 +11931,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11933
11931
  const _session = SESSION_OBJ[SESSION_ID];
11934
11932
  let _ds_0 = _session.DS_GLB[0];
11935
11933
 
11936
- const _ds = _session.DS_GLB[paramsP.dsSessionP];
11934
+ const _ds = func.utils.clean_returned_datasource(SESSION_ID, _session.DS_GLB[paramsP.dsSessionP]);
11937
11935
 
11938
11936
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
11939
11937
  const data = _.clone(_ds?.data_feed?.rows?.[row_idx]) || {};
@@ -11941,8 +11939,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11941
11939
  const props = _ds.in_parameters || {};
11942
11940
  const attributes = $elm?.data()?.xuData?.properties || {};
11943
11941
 
11944
- _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
11945
- // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, data, attributes, props };
11942
+ // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
11943
+ _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props };
11946
11944
 
11947
11945
  return {};
11948
11946
  },
@@ -10004,7 +10004,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10004
10004
  const _session = SESSION_OBJ[SESSION_ID];
10005
10005
  let _ds_0 = _session.DS_GLB[0];
10006
10006
 
10007
- const _ds = _session.DS_GLB[paramsP.dsSessionP];
10007
+ const _ds = func.utils.clean_returned_datasource(SESSION_ID, _session.DS_GLB[paramsP.dsSessionP]);
10008
10008
 
10009
10009
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
10010
10010
  const data = _.clone(_ds?.data_feed?.rows?.[row_idx]) || {};
@@ -10012,8 +10012,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10012
10012
  const props = _ds.in_parameters || {};
10013
10013
  const attributes = $elm?.data()?.xuData?.properties || {};
10014
10014
 
10015
- _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
10016
- // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, data, attributes, props };
10015
+ // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
10016
+ _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props };
10017
10017
 
10018
10018
  return {};
10019
10019
  },
@@ -14349,8 +14349,6 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
14349
14349
  // extract object
14350
14350
  if (typeof val.value === 'object' && var_Arr.length > 1) {
14351
14351
  if (!Array.isArray(val.value) && !var_Arr[key + 1].value?.includes('.')) {
14352
- // && !["api_rendered_output"].includes(sourceP)
14353
-
14354
14352
  // prevent cast on single value expression
14355
14353
  res[key] = '(' + JSON.stringify(val.value) + ')';
14356
14354
  } else {