@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.
@@ -12737,7 +12737,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12737
12737
  nodeP.xu_render_xu_ui_id = xu_ui_id;
12738
12738
  nodeP.xu_render_cache_id = xu_render_cache_id;
12739
12739
  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);
12740
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = new_$div.clone(true);
12740
+ const _$div = new_$div.clone(true);
12741
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = _$div;
12742
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].data = _$div.data();
12741
12743
  }
12742
12744
  // append order handling
12743
12745
 
@@ -14914,7 +14916,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14914
14916
  // $div.css('display', 'unset');
14915
14917
  if (!ret.xu_render_background_processing) {
14916
14918
  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 || {}));
14917
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
14919
+ const _$div = $div.clone(true);
14920
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: _$div, paramsP, data: _$div.data() };
14918
14921
  nodeP.xu_render_xu_ui_id = xu_ui_id;
14919
14922
  nodeP.xu_render_cache_id = xu_render_cache_id;
14920
14923
  temp_$div.replaceWith($div);
@@ -15159,12 +15162,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
15159
15162
  const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
15160
15163
  const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
15161
15164
 
15162
- // var _session = SESSION_OBJ[SESSION_ID];
15163
- // var _ds = _session.DS_GLB[dsSessionP];
15164
-
15165
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
15166
- // const data = _ds.data_feed.rows[idx];
15167
-
15168
15165
  let str = '';
15169
15166
 
15170
15167
  for (const [key, val] of Object.entries(fields_obj)) {
@@ -15172,33 +15169,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
15172
15169
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
15173
15170
  }
15174
15171
 
15175
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
15176
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
15177
- // }
15178
-
15179
15172
  return 'C-' + (await func.common.sha256(str));
15180
15173
  };
15181
-
15182
- // const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
15183
- // var _session = SESSION_OBJ[SESSION_ID];
15184
- // var _ds = _session.DS_GLB[dsSessionP];
15185
-
15186
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
15187
- // const data = _ds.data_feed.rows[idx];
15188
-
15189
- // let str = '';
15190
-
15191
- // for (const [key, val] of Object.entries(data)) {
15192
- // if (exclude_vars.includes(key)) continue;
15193
- // str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
15194
- // }
15195
-
15196
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
15197
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
15198
- // }
15199
-
15200
- // return 'C-' + (await func.common.sha256(str));
15201
- // };
15202
15174
  func.UI.component = {};
15203
15175
 
15204
15176
  func.UI.component.create_app_modal_component = function (
@@ -10462,7 +10462,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10462
10462
  nodeP.xu_render_xu_ui_id = xu_ui_id;
10463
10463
  nodeP.xu_render_cache_id = xu_render_cache_id;
10464
10464
  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);
10465
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = new_$div.clone(true);
10465
+ const _$div = new_$div.clone(true);
10466
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = _$div;
10467
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].data = _$div.data();
10466
10468
  }
10467
10469
  // append order handling
10468
10470
 
@@ -12639,7 +12641,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12639
12641
  // $div.css('display', 'unset');
12640
12642
  if (!ret.xu_render_background_processing) {
12641
12643
  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 || {}));
12642
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
12644
+ const _$div = $div.clone(true);
12645
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: _$div, paramsP, data: _$div.data() };
12643
12646
  nodeP.xu_render_xu_ui_id = xu_ui_id;
12644
12647
  nodeP.xu_render_cache_id = xu_render_cache_id;
12645
12648
  temp_$div.replaceWith($div);
@@ -12884,12 +12887,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
12884
12887
  const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
12885
12888
  const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
12886
12889
 
12887
- // var _session = SESSION_OBJ[SESSION_ID];
12888
- // var _ds = _session.DS_GLB[dsSessionP];
12889
-
12890
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
12891
- // const data = _ds.data_feed.rows[idx];
12892
-
12893
12890
  let str = '';
12894
12891
 
12895
12892
  for (const [key, val] of Object.entries(fields_obj)) {
@@ -12897,33 +12894,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
12897
12894
  str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
12898
12895
  }
12899
12896
 
12900
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
12901
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
12902
- // }
12903
-
12904
12897
  return 'C-' + (await func.common.sha256(str));
12905
12898
  };
12906
-
12907
- // const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
12908
- // var _session = SESSION_OBJ[SESSION_ID];
12909
- // var _ds = _session.DS_GLB[dsSessionP];
12910
-
12911
- // const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
12912
- // const data = _ds.data_feed.rows[idx];
12913
-
12914
- // let str = '';
12915
-
12916
- // for (const [key, val] of Object.entries(data)) {
12917
- // if (exclude_vars.includes(key)) continue;
12918
- // str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
12919
- // }
12920
-
12921
- // if (typeof _ds.parentDataSourceNo !== 'undefined') {
12922
- // str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
12923
- // }
12924
-
12925
- // return 'C-' + (await func.common.sha256(str));
12926
- // };
12927
12899
  func.UI.component = {};
12928
12900
 
12929
12901
  func.UI.component.create_app_modal_component = function (