@xuda.io/runtime-bundle 1.0.653 → 1.0.655

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.
@@ -30250,7 +30250,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30250
30250
  if (!avoid_refresh && fields_changed.length) {
30251
30251
  await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
30252
30252
  // await removed from the below function cause to dead lock Mar 3 25
30253
- func.UI.screen.refresh_screen(
30253
+ await func.UI.screen.refresh_screen(
30254
30254
  SESSION_ID,
30255
30255
  fields_changed,
30256
30256
  null,
@@ -32867,6 +32867,14 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32867
32867
  const _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
32868
32868
  if (!_ds) return { abort: true };
32869
32869
 
32870
+ const get_attr_value = async function (key) {
32871
+ let ret = func.UI.screen.fix_val_defaults(key, nodeP.attributes[key]);
32872
+ if (nodeP?.attributes?.hasOwnProperty(`xu-exp:${key}`)) {
32873
+ ret = await get_xuExp(key);
32874
+ }
32875
+ return ret;
32876
+ };
32877
+
32870
32878
  const get_xuExp = async function (attrib) {
32871
32879
  if (is_skeleton) return;
32872
32880
  const attr = `xu-exp:${attrib}`;
@@ -32982,8 +32990,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32982
32990
  $elm,
32983
32991
  {
32984
32992
  key: attr,
32985
- // value: _value,
32986
- value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
32993
+
32994
+ // value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
32995
+ value: await get_attr_value(attr),
32987
32996
  },
32988
32997
  is_init,
32989
32998
  );
@@ -33045,7 +33054,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
33045
33054
  $elm,
33046
33055
  {
33047
33056
  key: key,
33048
- value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
33057
+ // value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
33058
+ value: await get_attr_value(key),
33049
33059
  },
33050
33060
  is_init,
33051
33061
  refreshed_ds,
@@ -33069,7 +33079,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
33069
33079
  $elm,
33070
33080
  {
33071
33081
  key: key,
33072
- value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
33082
+ // value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
33083
+ value: await get_attr_value(key),
33073
33084
  },
33074
33085
  is_init,
33075
33086
  refreshed_ds,
@@ -33139,7 +33150,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
33139
33150
  $elm,
33140
33151
  {
33141
33152
  key: attr,
33142
- value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
33153
+ // value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
33154
+ value: await get_attr_value(attr),
33143
33155
  },
33144
33156
  is_init,
33145
33157
  refreshed_ds,
@@ -33151,6 +33163,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
33151
33163
 
33152
33164
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
33153
33165
  if (!glb.html5_events_handler.includes(key)) break;
33166
+ // $elm.attr(key, await get_xuExp(key)) || val;
33154
33167
  $elm.attr(key, await get_xuExp(key)) || val;
33155
33168
  }
33156
33169