@xuda.io/runtime-bundle 1.0.1061 → 1.0.1063

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.
@@ -8691,6 +8691,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8691
8691
 
8692
8692
  var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
8693
8693
 
8694
+ if (glb.new_xu_render) {
8695
+ $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
8696
+ }
8697
+
8694
8698
  if (!$elm.length) {
8695
8699
  return done();
8696
8700
  }
@@ -13180,6 +13184,12 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13180
13184
 
13181
13185
  const get_xuExp = async function (attrib) {
13182
13186
  if (is_skeleton) return;
13187
+
13188
+ let _xuData = $elm.data().xuData;
13189
+ if (!_xuData.attr_exp_info) {
13190
+ attr_exp_info = {};
13191
+ }
13192
+
13183
13193
  const attr = `xu-exp:${attrib}`;
13184
13194
 
13185
13195
  if (!nodeP?.attributes?.hasOwnProperty(attr)) return;
@@ -13188,6 +13198,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
13188
13198
  // if (!value) return func.UI.screen.fix_val_defaults(attrib, exp || nodeP.attributes[attrib]);
13189
13199
 
13190
13200
  var res = await func.expression.get(SESSION_ID, exp, paramsP.dsSessionP, 'UI Attr EXP', _ds.currentRecordId);
13201
+ _xuData.attr_exp_info[attrib] = res;
13191
13202
  // nodeP.attributes[attr] = value; //{ value: value, res: res };
13192
13203
  done_exp.push(attr);
13193
13204
  return res.result; //func.UI.screen.fix_val_defaults(attrib, res.result);
@@ -14927,7 +14938,7 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
14927
14938
  }
14928
14939
  };
14929
14940
 
14930
- const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
14941
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
14931
14942
  var _session = SESSION_OBJ[SESSION_ID];
14932
14943
  var _ds = _session.DS_GLB[dsSessionP];
14933
14944
 
@@ -14937,6 +14948,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
14937
14948
  let str = '';
14938
14949
 
14939
14950
  for (const [key, val] of Object.entries(data)) {
14951
+ if (exclude_vars.includes(key)) continue;
14940
14952
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
14941
14953
  }
14942
14954
 
@@ -8692,6 +8692,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8692
8692
 
8693
8693
  var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
8694
8694
 
8695
+ if (glb.new_xu_render) {
8696
+ $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
8697
+ }
8698
+
8695
8699
  if (!$elm.length) {
8696
8700
  return done();
8697
8701
  }
@@ -10905,6 +10909,12 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10905
10909
 
10906
10910
  const get_xuExp = async function (attrib) {
10907
10911
  if (is_skeleton) return;
10912
+
10913
+ let _xuData = $elm.data().xuData;
10914
+ if (!_xuData.attr_exp_info) {
10915
+ attr_exp_info = {};
10916
+ }
10917
+
10908
10918
  const attr = `xu-exp:${attrib}`;
10909
10919
 
10910
10920
  if (!nodeP?.attributes?.hasOwnProperty(attr)) return;
@@ -10913,6 +10923,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
10913
10923
  // if (!value) return func.UI.screen.fix_val_defaults(attrib, exp || nodeP.attributes[attrib]);
10914
10924
 
10915
10925
  var res = await func.expression.get(SESSION_ID, exp, paramsP.dsSessionP, 'UI Attr EXP', _ds.currentRecordId);
10926
+ _xuData.attr_exp_info[attrib] = res;
10916
10927
  // nodeP.attributes[attr] = value; //{ value: value, res: res };
10917
10928
  done_exp.push(attr);
10918
10929
  return res.result; //func.UI.screen.fix_val_defaults(attrib, res.result);
@@ -12652,7 +12663,7 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
12652
12663
  }
12653
12664
  };
12654
12665
 
12655
- const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
12666
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
12656
12667
  var _session = SESSION_OBJ[SESSION_ID];
12657
12668
  var _ds = _session.DS_GLB[dsSessionP];
12658
12669
 
@@ -12662,6 +12673,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
12662
12673
  let str = '';
12663
12674
 
12664
12675
  for (const [key, val] of Object.entries(data)) {
12676
+ if (exclude_vars.includes(key)) continue;
12665
12677
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
12666
12678
  }
12667
12679