@xuda.io/runtime-bundle 1.0.1120 → 1.0.1122

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.
@@ -13246,12 +13246,12 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13246
13246
 
13247
13247
  const get_xuExp = async function (attrib) {
13248
13248
  if (is_skeleton) return;
13249
-
13250
- let _xuData = $elm.data().xuData;
13251
- if (!_xuData.attr_exp_info) {
13252
- _xuData.attr_exp_info = {};
13249
+ if (glb.new_xu_render) {
13250
+ let _xuData = $elm.data().xuData;
13251
+ if (!_xuData.attr_exp_info) {
13252
+ _xuData.attr_exp_info = {};
13253
+ }
13253
13254
  }
13254
-
13255
13255
  const attr = `xu-exp:${attrib}`;
13256
13256
 
13257
13257
  if (!nodeP?.attributes?.hasOwnProperty(attr)) return;
@@ -13260,7 +13260,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13260
13260
  // if (!value) return func.UI.screen.fix_val_defaults(attrib, exp || nodeP.attributes[attrib]);
13261
13261
 
13262
13262
  var res = await func.expression.get(SESSION_ID, exp, paramsP.dsSessionP, 'UI Attr EXP', _ds.currentRecordId);
13263
- _xuData.attr_exp_info[attrib] = res;
13263
+ if (glb.new_xu_render) {
13264
+ _xuData.attr_exp_info[attrib] = res;
13265
+ }
13264
13266
  // nodeP.attributes[attr] = value; //{ value: value, res: res };
13265
13267
  done_exp.push(attr);
13266
13268
  return res.result; //func.UI.screen.fix_val_defaults(attrib, res.result);
@@ -13955,10 +13957,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
13955
13957
  // debugger;
13956
13958
  }
13957
13959
 
13958
- ///////////
13959
- if (glb.new_xu_render) {
13960
- }
13961
-
13962
13960
  ///////////
13963
13961
  var is_mobile = glb.MOBILE_ARR.includes(paramsP.screenInfo.properties?.menuType) ? true : false;
13964
13962
 
@@ -14805,7 +14803,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14805
14803
  });
14806
14804
  }
14807
14805
 
14808
- let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $container, nodeP, $div, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
14806
+ // let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $container, nodeP, $div, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
14807
+ let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
14809
14808
  if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) {
14810
14809
  return await done(ret);
14811
14810
  }
@@ -10971,12 +10971,12 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10971
10971
 
10972
10972
  const get_xuExp = async function (attrib) {
10973
10973
  if (is_skeleton) return;
10974
-
10975
- let _xuData = $elm.data().xuData;
10976
- if (!_xuData.attr_exp_info) {
10977
- _xuData.attr_exp_info = {};
10974
+ if (glb.new_xu_render) {
10975
+ let _xuData = $elm.data().xuData;
10976
+ if (!_xuData.attr_exp_info) {
10977
+ _xuData.attr_exp_info = {};
10978
+ }
10978
10979
  }
10979
-
10980
10980
  const attr = `xu-exp:${attrib}`;
10981
10981
 
10982
10982
  if (!nodeP?.attributes?.hasOwnProperty(attr)) return;
@@ -10985,7 +10985,9 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10985
10985
  // if (!value) return func.UI.screen.fix_val_defaults(attrib, exp || nodeP.attributes[attrib]);
10986
10986
 
10987
10987
  var res = await func.expression.get(SESSION_ID, exp, paramsP.dsSessionP, 'UI Attr EXP', _ds.currentRecordId);
10988
- _xuData.attr_exp_info[attrib] = res;
10988
+ if (glb.new_xu_render) {
10989
+ _xuData.attr_exp_info[attrib] = res;
10990
+ }
10989
10991
  // nodeP.attributes[attr] = value; //{ value: value, res: res };
10990
10992
  done_exp.push(attr);
10991
10993
  return res.result; //func.UI.screen.fix_val_defaults(attrib, res.result);
@@ -11680,10 +11682,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11680
11682
  // debugger;
11681
11683
  }
11682
11684
 
11683
- ///////////
11684
- if (glb.new_xu_render) {
11685
- }
11686
-
11687
11685
  ///////////
11688
11686
  var is_mobile = glb.MOBILE_ARR.includes(paramsP.screenInfo.properties?.menuType) ? true : false;
11689
11687
 
@@ -12530,7 +12528,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12530
12528
  });
12531
12529
  }
12532
12530
 
12533
- let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $container, nodeP, $div, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
12531
+ // let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $container, nodeP, $div, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
12532
+ let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div, true);
12534
12533
  if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) {
12535
12534
  return await done(ret);
12536
12535
  }