@xuda.io/runtime-bundle 1.0.1006 → 1.0.1008

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.
@@ -12620,8 +12620,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12620
12620
  }
12621
12621
 
12622
12622
  ////////////
12623
- const cache_str = get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12624
-
12623
+ const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12624
+ const xu_ui_id = $elm.attr('xu-ui-id');
12625
12625
  let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id]?.[cache_str]?.$container.clone(true);
12626
12626
 
12627
12627
  /////////////
@@ -12712,7 +12712,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12712
12712
 
12713
12713
  $xurender.data().xuData.original_data_obj = original_data_obj;
12714
12714
 
12715
- const cache_str = get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12715
+ const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12716
12716
  if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
12717
12717
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
12718
12718
  }
@@ -14878,7 +14878,7 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
14878
14878
  }
14879
14879
  };
14880
14880
 
14881
- const get_xu_render_cache_str = function (SESSION_ID, dsSessionP) {
14881
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
14882
14882
  var _session = SESSION_OBJ[SESSION_ID];
14883
14883
  var _ds = _session.DS_GLB[dsSessionP];
14884
14884
 
@@ -14892,10 +14892,17 @@ const get_xu_render_cache_str = function (SESSION_ID, dsSessionP) {
14892
14892
  }
14893
14893
 
14894
14894
  if (typeof _ds.parentDataSourceNo !== 'undefined') {
14895
- str += get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
14895
+ str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
14896
+ }
14897
+
14898
+ async function sha256(str) {
14899
+ const enc = new TextEncoder();
14900
+ const buf = await crypto.subtle.digest('SHA-256', enc.encode(str));
14901
+ const bytes = new Uint8Array(buf);
14902
+ return [...bytes].map((b) => b.toString(16).padStart(2, '0')).join('');
14896
14903
  }
14897
14904
 
14898
- return str;
14905
+ return await sha256(str);
14899
14906
  };
14900
14907
  func.UI.component = {};
14901
14908
 
@@ -10345,8 +10345,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10345
10345
  }
10346
10346
 
10347
10347
  ////////////
10348
- const cache_str = get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
10349
-
10348
+ const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
10349
+ const xu_ui_id = $elm.attr('xu-ui-id');
10350
10350
  let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id]?.[cache_str]?.$container.clone(true);
10351
10351
 
10352
10352
  /////////////
@@ -10437,7 +10437,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10437
10437
 
10438
10438
  $xurender.data().xuData.original_data_obj = original_data_obj;
10439
10439
 
10440
- const cache_str = get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
10440
+ const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
10441
10441
  if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
10442
10442
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
10443
10443
  }
@@ -12603,7 +12603,7 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
12603
12603
  }
12604
12604
  };
12605
12605
 
12606
- const get_xu_render_cache_str = function (SESSION_ID, dsSessionP) {
12606
+ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
12607
12607
  var _session = SESSION_OBJ[SESSION_ID];
12608
12608
  var _ds = _session.DS_GLB[dsSessionP];
12609
12609
 
@@ -12617,10 +12617,17 @@ const get_xu_render_cache_str = function (SESSION_ID, dsSessionP) {
12617
12617
  }
12618
12618
 
12619
12619
  if (typeof _ds.parentDataSourceNo !== 'undefined') {
12620
- str += get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
12620
+ str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
12621
+ }
12622
+
12623
+ async function sha256(str) {
12624
+ const enc = new TextEncoder();
12625
+ const buf = await crypto.subtle.digest('SHA-256', enc.encode(str));
12626
+ const bytes = new Uint8Array(buf);
12627
+ return [...bytes].map((b) => b.toString(16).padStart(2, '0')).join('');
12621
12628
  }
12622
12629
 
12623
- return str;
12630
+ return await sha256(str);
12624
12631
  };
12625
12632
  func.UI.component = {};
12626
12633