@xuda.io/runtime-bundle 1.0.381 → 1.0.383

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.
@@ -9035,7 +9035,8 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
9035
9035
  const _data_system = _session?.DS_GLB?.[0]?.data_system;
9036
9036
 
9037
9037
  for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
9038
- if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
9038
+ // if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
9039
+ if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length) {
9039
9040
  delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
9040
9041
  }
9041
9042
  }
@@ -11931,16 +11932,17 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11931
11932
  const _session = SESSION_OBJ[SESSION_ID];
11932
11933
  let _ds_0 = _session.DS_GLB[0];
11933
11934
 
11934
- const _ds = func.utils.clean_returned_datasource(SESSION_ID, _session.DS_GLB[paramsP.dsSessionP]);
11935
+ const _ds = func.utils.clean_returned_datasource(SESSION_ID, paramsP.dsSessionP);
11935
11936
 
11936
11937
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
11937
11938
  const data = _.clone(_ds?.data_feed?.rows?.[row_idx]) || {};
11938
11939
 
11939
11940
  const props = _ds.in_parameters || {};
11940
11941
  const attributes = $elm?.data()?.xuData?.properties || {};
11942
+ const xu_ui_id = $elm.attr('xu-ui-id');
11941
11943
 
11942
11944
  // _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 };
11945
+ _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props, xu_ui_id };
11944
11946
 
11945
11947
  return {};
11946
11948
  },
@@ -9036,7 +9036,8 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
9036
9036
  const _data_system = _session?.DS_GLB?.[0]?.data_system;
9037
9037
 
9038
9038
  for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
9039
- if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
9039
+ // if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
9040
+ if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length) {
9040
9041
  delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
9041
9042
  }
9042
9043
  }
@@ -10004,16 +10005,17 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10004
10005
  const _session = SESSION_OBJ[SESSION_ID];
10005
10006
  let _ds_0 = _session.DS_GLB[0];
10006
10007
 
10007
- const _ds = func.utils.clean_returned_datasource(SESSION_ID, _session.DS_GLB[paramsP.dsSessionP]);
10008
+ const _ds = func.utils.clean_returned_datasource(SESSION_ID, paramsP.dsSessionP);
10008
10009
 
10009
10010
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
10010
10011
  const data = _.clone(_ds?.data_feed?.rows?.[row_idx]) || {};
10011
10012
 
10012
10013
  const props = _ds.in_parameters || {};
10013
10014
  const attributes = $elm?.data()?.xuData?.properties || {};
10015
+ const xu_ui_id = $elm.attr('xu-ui-id');
10014
10016
 
10015
10017
  // _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 };
10018
+ _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props, xu_ui_id };
10017
10019
 
10018
10020
  return {};
10019
10021
  },