@xuda.io/runtime-bundle 1.0.1009 → 1.0.1011

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.
@@ -13570,6 +13570,19 @@ func.UI.screen.panel_post_render_handler = async function (
13570
13570
  return jobNoP;
13571
13571
  };
13572
13572
 
13573
+ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
13574
+ const _paramsP = _.cloneDeep(paramsP);
13575
+ var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
13576
+
13577
+ const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
13578
+ const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
13579
+ const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
13580
+ let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
13581
+
13582
+ const new_ui_id = await func.common.sha256(ui_id);
13583
+ return new_ui_id;
13584
+ };
13585
+
13573
13586
  func.UI.screen.create_container = async function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str) {
13574
13587
  const _paramsP = _.cloneDeep(paramsP);
13575
13588
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
@@ -13590,7 +13603,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
13590
13603
  try {
13591
13604
  const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
13592
13605
  const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
13593
- let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
13606
+ // let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
13594
13607
 
13595
13608
  /////////////////////////////////
13596
13609
 
@@ -13654,7 +13667,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
13654
13667
  // }
13655
13668
 
13656
13669
  // const new_ui_id = hash32hex(ui_id);
13657
- const new_ui_id = await func.common.sha256(ui_id);
13670
+ // const new_ui_id = await func.common.sha256(ui_id);
13671
+ const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
13658
13672
 
13659
13673
  $div.attr('xu-ui-id', new_ui_id).data({
13660
13674
  xuData: {
@@ -14903,7 +14917,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
14903
14917
  str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
14904
14918
  }
14905
14919
 
14906
- return await func.common.sha256(str);
14920
+ return 'C-' + (await func.common.sha256(str));
14907
14921
  };
14908
14922
  func.UI.component = {};
14909
14923
 
@@ -11295,6 +11295,19 @@ func.UI.screen.panel_post_render_handler = async function (
11295
11295
  return jobNoP;
11296
11296
  };
11297
11297
 
11298
+ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
11299
+ const _paramsP = _.cloneDeep(paramsP);
11300
+ var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
11301
+
11302
+ const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
11303
+ const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
11304
+ const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
11305
+ let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
11306
+
11307
+ const new_ui_id = await func.common.sha256(ui_id);
11308
+ return new_ui_id;
11309
+ };
11310
+
11298
11311
  func.UI.screen.create_container = async function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str) {
11299
11312
  const _paramsP = _.cloneDeep(paramsP);
11300
11313
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
@@ -11315,7 +11328,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
11315
11328
  try {
11316
11329
  const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
11317
11330
  const elem_key = `${nodeP.xu_tree_id || nodeP.id}-${key_path}-${currentRecordId}`;
11318
- let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
11331
+ // let ui_id = `${nodeP.id}-${elem_key}-${_paramsP?.dsSessionP?.toString() || ''}`; //nodeP.xu_tree_id ||
11319
11332
 
11320
11333
  /////////////////////////////////
11321
11334
 
@@ -11379,7 +11392,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
11379
11392
  // }
11380
11393
 
11381
11394
  // const new_ui_id = hash32hex(ui_id);
11382
- const new_ui_id = await func.common.sha256(ui_id);
11395
+ // const new_ui_id = await func.common.sha256(ui_id);
11396
+ const new_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
11383
11397
 
11384
11398
  $div.attr('xu-ui-id', new_ui_id).data({
11385
11399
  xuData: {
@@ -12628,7 +12642,7 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
12628
12642
  str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
12629
12643
  }
12630
12644
 
12631
- return await func.common.sha256(str);
12645
+ return 'C-' + (await func.common.sha256(str));
12632
12646
  };
12633
12647
  func.UI.component = {};
12634
12648