@xuda.io/runtime-bundle 1.0.1106 → 1.0.1107

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.
@@ -32421,7 +32421,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32421
32421
  nodeP.xu_render_xu_ui_id = xu_ui_id;
32422
32422
  nodeP.xu_render_cache_id = xu_render_cache_id;
32423
32423
  new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP, parent_infoP, paramsP, jobNoP, null, keyP, null, parent_nodeP, null, $root_container);
32424
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = new_$div.clone(true);
32424
+ const _$div = new_$div.clone(true);
32425
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = _$div;
32426
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].data = _$div.data();
32425
32427
  }
32426
32428
  // append order handling
32427
32429
 
@@ -34598,7 +34600,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34598
34600
  // $div.css('display', 'unset');
34599
34601
  if (!ret.xu_render_background_processing) {
34600
34602
  const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($div.data()?.xuData?.attr_exp_info?.['xu-render']?.fields || {}));
34601
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
34603
+ const _$div = $div.clone(true);
34604
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: _$div, paramsP, data: _$div.data() };
34602
34605
  nodeP.xu_render_xu_ui_id = xu_ui_id;
34603
34606
  nodeP.xu_render_cache_id = xu_render_cache_id;
34604
34607
  temp_$div.replaceWith($div);
@@ -34843,12 +34846,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
34843
34846
  const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
34844
34847
  const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
34845
34848
 
34846
- // var _session = SESSION_OBJ[SESSION_ID];
34847
- // var _ds = _session.DS_GLB[dsSessionP];
34848
-
34849
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
34850
- // const data = _ds.data_feed.rows[idx];
34851
-
34852
34849
  let str = '';
34853
34850
 
34854
34851
  for (const [key, val] of Object.entries(fields_obj)) {
@@ -34856,33 +34853,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
34856
34853
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
34857
34854
  }
34858
34855
 
34859
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
34860
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
34861
- // }
34862
-
34863
34856
  return 'C-' + (await func.common.sha256(str));
34864
34857
  };
34865
-
34866
- // const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
34867
- // var _session = SESSION_OBJ[SESSION_ID];
34868
- // var _ds = _session.DS_GLB[dsSessionP];
34869
-
34870
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
34871
- // const data = _ds.data_feed.rows[idx];
34872
-
34873
- // let str = '';
34874
-
34875
- // for (const [key, val] of Object.entries(data)) {
34876
- // if (exclude_vars.includes(key)) continue;
34877
- // str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
34878
- // }
34879
-
34880
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
34881
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
34882
- // }
34883
-
34884
- // return 'C-' + (await func.common.sha256(str));
34885
- // };
34886
34858
  func.UI.component = {};
34887
34859
 
34888
34860
  func.UI.component.create_app_modal_component = function (