@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.
@@ -27818,6 +27818,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27818
27818
 
27819
27819
  var $elm = func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', queue_obj.paramsP.elem_key);
27820
27820
 
27821
+ if (glb.new_xu_render) {
27822
+ $elm = $(`[xu-ui-id="${queue_obj.paramsP.elem_key}"]`);
27823
+ }
27824
+
27821
27825
  if (!$elm.length) {
27822
27826
  return done();
27823
27827
  }
@@ -32864,6 +32868,12 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32864
32868
 
32865
32869
  const get_xuExp = async function (attrib) {
32866
32870
  if (is_skeleton) return;
32871
+
32872
+ let _xuData = $elm.data().xuData;
32873
+ if (!_xuData.attr_exp_info) {
32874
+ attr_exp_info = {};
32875
+ }
32876
+
32867
32877
  const attr = `xu-exp:${attrib}`;
32868
32878
 
32869
32879
  if (!nodeP?.attributes?.hasOwnProperty(attr)) return;
@@ -32872,6 +32882,7 @@ func.UI.screen.set_attributes_new = async function (SESSION_ID, is_skeleton, $ro
32872
32882
  // if (!value) return func.UI.screen.fix_val_defaults(attrib, exp || nodeP.attributes[attrib]);
32873
32883
 
32874
32884
  var res = await func.expression.get(SESSION_ID, exp, paramsP.dsSessionP, 'UI Attr EXP', _ds.currentRecordId);
32885
+ _xuData.attr_exp_info[attrib] = res;
32875
32886
  // nodeP.attributes[attr] = value; //{ value: value, res: res };
32876
32887
  done_exp.push(attr);
32877
32888
  return res.result; //func.UI.screen.fix_val_defaults(attrib, res.result);
@@ -34611,7 +34622,7 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
34611
34622
  }
34612
34623
  };
34613
34624
 
34614
- const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
34625
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
34615
34626
  var _session = SESSION_OBJ[SESSION_ID];
34616
34627
  var _ds = _session.DS_GLB[dsSessionP];
34617
34628
 
@@ -34621,6 +34632,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
34621
34632
  let str = '';
34622
34633
 
34623
34634
  for (const [key, val] of Object.entries(data)) {
34635
+ if (exclude_vars.includes(key)) continue;
34624
34636
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
34625
34637
  }
34626
34638