@xuda.io/runtime-bundle 1.0.652 → 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.
@@ -13167,13 +13167,15 @@ func.UI.screen.fix_val_defaults = function (key, val) {
13167
13167
  key === 'xu-render' &&
13168
13168
  (typeof val === 'undefined' || val === null || val === '') //|| val === ""
13169
13169
  ) {
13170
- ret = 'Y'; // was ret = "N";
13170
+ // ret = 'Y'; // was ret = "N";
13171
+ ret = true;
13171
13172
  }
13172
13173
  if (
13173
13174
  key === 'xu-show' &&
13174
13175
  (typeof val === 'undefined' || val === null || val === '') //|| val === ""
13175
13176
  ) {
13176
- ret = 'Y';
13177
+ // ret = 'Y';
13178
+ ret = true;
13177
13179
  }
13178
13180
  return ret;
13179
13181
  };
@@ -13184,6 +13186,14 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13184
13186
  const _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
13185
13187
  if (!_ds) return { abort: true };
13186
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
+
13187
13197
  const get_xuExp = async function (attrib) {
13188
13198
  if (is_skeleton) return;
13189
13199
  const attr = `xu-exp:${attrib}`;
@@ -13299,8 +13309,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13299
13309
  $elm,
13300
13310
  {
13301
13311
  key: attr,
13302
- // value: _value,
13303
- 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),
13304
13315
  },
13305
13316
  is_init,
13306
13317
  );
@@ -13362,7 +13373,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13362
13373
  $elm,
13363
13374
  {
13364
13375
  key: key,
13365
- 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),
13366
13378
  },
13367
13379
  is_init,
13368
13380
  refreshed_ds,
@@ -13386,7 +13398,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13386
13398
  $elm,
13387
13399
  {
13388
13400
  key: key,
13389
- 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),
13390
13403
  },
13391
13404
  is_init,
13392
13405
  refreshed_ds,
@@ -13456,7 +13469,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13456
13469
  $elm,
13457
13470
  {
13458
13471
  key: attr,
13459
- 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),
13460
13474
  },
13461
13475
  is_init,
13462
13476
  refreshed_ds,
@@ -13468,6 +13482,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13468
13482
 
13469
13483
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
13470
13484
  if (!glb.html5_events_handler.includes(key)) break;
13485
+ // $elm.attr(key, await get_xuExp(key)) || val;
13471
13486
  $elm.attr(key, await get_xuExp(key)) || val;
13472
13487
  }
13473
13488
 
@@ -10889,13 +10889,15 @@ func.UI.screen.fix_val_defaults = function (key, val) {
10889
10889
  key === 'xu-render' &&
10890
10890
  (typeof val === 'undefined' || val === null || val === '') //|| val === ""
10891
10891
  ) {
10892
- ret = 'Y'; // was ret = "N";
10892
+ // ret = 'Y'; // was ret = "N";
10893
+ ret = true;
10893
10894
  }
10894
10895
  if (
10895
10896
  key === 'xu-show' &&
10896
10897
  (typeof val === 'undefined' || val === null || val === '') //|| val === ""
10897
10898
  ) {
10898
- ret = 'Y';
10899
+ // ret = 'Y';
10900
+ ret = true;
10899
10901
  }
10900
10902
  return ret;
10901
10903
  };
@@ -10906,6 +10908,14 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10906
10908
  const _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
10907
10909
  if (!_ds) return { abort: true };
10908
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
+
10909
10919
  const get_xuExp = async function (attrib) {
10910
10920
  if (is_skeleton) return;
10911
10921
  const attr = `xu-exp:${attrib}`;
@@ -11021,8 +11031,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11021
11031
  $elm,
11022
11032
  {
11023
11033
  key: attr,
11024
- // value: _value,
11025
- 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),
11026
11037
  },
11027
11038
  is_init,
11028
11039
  );
@@ -11084,7 +11095,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11084
11095
  $elm,
11085
11096
  {
11086
11097
  key: key,
11087
- 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),
11088
11100
  },
11089
11101
  is_init,
11090
11102
  refreshed_ds,
@@ -11108,7 +11120,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11108
11120
  $elm,
11109
11121
  {
11110
11122
  key: key,
11111
- 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),
11112
11125
  },
11113
11126
  is_init,
11114
11127
  refreshed_ds,
@@ -11178,7 +11191,8 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11178
11191
  $elm,
11179
11192
  {
11180
11193
  key: attr,
11181
- 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),
11182
11196
  },
11183
11197
  is_init,
11184
11198
  refreshed_ds,
@@ -11190,6 +11204,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
11190
11204
 
11191
11205
  for await (const [key, val] of Object.entries(nodeP.attributes)) {
11192
11206
  if (!glb.html5_events_handler.includes(key)) break;
11207
+ // $elm.attr(key, await get_xuExp(key)) || val;
11193
11208
  $elm.attr(key, await get_xuExp(key)) || val;
11194
11209
  }
11195
11210