@xuda.io/runtime-bundle 1.0.1105 → 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
 
@@ -34596,10 +34598,15 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34596
34598
 
34597
34599
  if (ret.has_xu_exp_render_attribute) {
34598
34600
  // $div.css('display', 'unset');
34599
- 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 || {}));
34600
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
34601
- nodeP.xu_render_xu_ui_id = xu_ui_id;
34602
- nodeP.xu_render_cache_id = xu_render_cache_id;
34601
+ if (!ret.xu_render_background_processing) {
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 || {}));
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() };
34605
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
34606
+ nodeP.xu_render_cache_id = xu_render_cache_id;
34607
+ temp_$div.replaceWith($div);
34608
+ return $div;
34609
+ }
34603
34610
  if (ret.xu_render_background_processing) {
34604
34611
  temp_$div.remove();
34605
34612
  // $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
@@ -34740,11 +34747,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34740
34747
  };
34741
34748
  xu_viewport();
34742
34749
  } else {
34743
- if (ret.xu_render_background_processing) {
34744
- // let temp_$div = $div.clone(true);
34750
+ // if (ret.xu_render_background_processing) {
34751
+ // // let temp_$div = $div.clone(true);
34752
+ // iterate_child($div, nodeP, parent_infoP, $root_container);
34753
+ // } else {
34754
+ // await iterate_child($div, nodeP, parent_infoP, $root_container);
34755
+ // }
34756
+ if (!ret.xu_render_background_processing) {
34745
34757
  iterate_child($div, nodeP, parent_infoP, $root_container);
34746
- } else {
34747
- await iterate_child($div, nodeP, parent_infoP, $root_container);
34748
34758
  }
34749
34759
  }
34750
34760
 
@@ -34836,12 +34846,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
34836
34846
  const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
34837
34847
  const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
34838
34848
 
34839
- // var _session = SESSION_OBJ[SESSION_ID];
34840
- // var _ds = _session.DS_GLB[dsSessionP];
34841
-
34842
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
34843
- // const data = _ds.data_feed.rows[idx];
34844
-
34845
34849
  let str = '';
34846
34850
 
34847
34851
  for (const [key, val] of Object.entries(fields_obj)) {
@@ -34849,33 +34853,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
34849
34853
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
34850
34854
  }
34851
34855
 
34852
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
34853
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
34854
- // }
34855
-
34856
34856
  return 'C-' + (await func.common.sha256(str));
34857
34857
  };
34858
-
34859
- // const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
34860
- // var _session = SESSION_OBJ[SESSION_ID];
34861
- // var _ds = _session.DS_GLB[dsSessionP];
34862
-
34863
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
34864
- // const data = _ds.data_feed.rows[idx];
34865
-
34866
- // let str = '';
34867
-
34868
- // for (const [key, val] of Object.entries(data)) {
34869
- // if (exclude_vars.includes(key)) continue;
34870
- // str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
34871
- // }
34872
-
34873
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
34874
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
34875
- // }
34876
-
34877
- // return 'C-' + (await func.common.sha256(str));
34878
- // };
34879
34858
  func.UI.component = {};
34880
34859
 
34881
34860
  func.UI.component.create_app_modal_component = function (