@xuda.io/runtime-bundle 1.0.653 → 1.0.654

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.
@@ -13186,6 +13186,14 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13186
13186
  const _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
13187
13187
  if (!_ds) return { abort: true };
13188
13188
 
13189
+ const get_attr_value = async function (key) {
13190
+ let ret = func.UI.screen.fix_val_defaults(key, nodeP.attributes[key]);
13191
+ if (nodeP?.attributes?.hasOwnProperty(`xu-exp:${key}`)) {
13192
+ ret = await get_xuExp(key);
13193
+ }
13194
+ return ret;
13195
+ };
13196
+
13189
13197
  const get_xuExp = async function (attrib) {
13190
13198
  if (is_skeleton) return;
13191
13199
  const attr = `xu-exp:${attrib}`;
@@ -13301,8 +13309,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13301
13309
  $elm,
13302
13310
  {
13303
13311
  key: attr,
13304
- // value: _value,
13305
- value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
13312
+
13313
+ // value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
13314
+ value: await get_attr_value(attr),
13306
13315
  },
13307
13316
  is_init,
13308
13317
  );
@@ -13364,7 +13373,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13364
13373
  $elm,
13365
13374
  {
13366
13375
  key: key,
13367
- value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
13376
+ // value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
13377
+ value: await get_attr_value(key),
13368
13378
  },
13369
13379
  is_init,
13370
13380
  refreshed_ds,
@@ -13388,7 +13398,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13388
13398
  $elm,
13389
13399
  {
13390
13400
  key: key,
13391
- value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
13401
+ // value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
13402
+ value: await get_attr_value(key),
13392
13403
  },
13393
13404
  is_init,
13394
13405
  refreshed_ds,
@@ -13458,7 +13469,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13458
13469
  $elm,
13459
13470
  {
13460
13471
  key: attr,
13461
- value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
13472
+ // value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
13473
+ value: await get_attr_value(attr),
13462
13474
  },
13463
13475
  is_init,
13464
13476
  refreshed_ds,
@@ -13470,6 +13482,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13470
13482
 
13471
13483
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
13472
13484
  if (!glb.html5_events_handler.includes(key)) break;
13485
+ // $elm.attr(key, await get_xuExp(key)) || val;
13473
13486
  $elm.attr(key, await get_xuExp(key)) || val;
13474
13487
  }
13475
13488
 
@@ -10908,6 +10908,14 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10908
10908
  const _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
10909
10909
  if (!_ds) return { abort: true };
10910
10910
 
10911
+ const get_attr_value = async function (key) {
10912
+ let ret = func.UI.screen.fix_val_defaults(key, nodeP.attributes[key]);
10913
+ if (nodeP?.attributes?.hasOwnProperty(`xu-exp:${key}`)) {
10914
+ ret = await get_xuExp(key);
10915
+ }
10916
+ return ret;
10917
+ };
10918
+
10911
10919
  const get_xuExp = async function (attrib) {
10912
10920
  if (is_skeleton) return;
10913
10921
  const attr = `xu-exp:${attrib}`;
@@ -11023,8 +11031,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11023
11031
  $elm,
11024
11032
  {
11025
11033
  key: attr,
11026
- // value: _value,
11027
- value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
11034
+
11035
+ // value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
11036
+ value: await get_attr_value(attr),
11028
11037
  },
11029
11038
  is_init,
11030
11039
  );
@@ -11086,7 +11095,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11086
11095
  $elm,
11087
11096
  {
11088
11097
  key: key,
11089
- value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
11098
+ // value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
11099
+ value: await get_attr_value(key),
11090
11100
  },
11091
11101
  is_init,
11092
11102
  refreshed_ds,
@@ -11110,7 +11120,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11110
11120
  $elm,
11111
11121
  {
11112
11122
  key: key,
11113
- value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
11123
+ // value: (await get_xuExp(new_key)) || func.UI.screen.fix_val_defaults(key, val),
11124
+ value: await get_attr_value(key),
11114
11125
  },
11115
11126
  is_init,
11116
11127
  refreshed_ds,
@@ -11180,7 +11191,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11180
11191
  $elm,
11181
11192
  {
11182
11193
  key: attr,
11183
- value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
11194
+ // value: (await get_xuExp(attr)) || func.UI.screen.fix_val_defaults(attr, nodeP.attributes[attr]),
11195
+ value: await get_attr_value(attr),
11184
11196
  },
11185
11197
  is_init,
11186
11198
  refreshed_ds,
@@ -11192,6 +11204,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11192
11204
 
11193
11205
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
11194
11206
  if (!glb.html5_events_handler.includes(key)) break;
11207
+ // $elm.attr(key, await get_xuExp(key)) || val;
11195
11208
  $elm.attr(key, await get_xuExp(key)) || val;
11196
11209
  }
11197
11210