@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.
|
@@ -32304,8 +32304,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32304
32304
|
}
|
|
32305
32305
|
|
|
32306
32306
|
////////////
|
|
32307
|
-
const cache_str = get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32308
|
-
|
|
32307
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32308
|
+
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32309
32309
|
let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id]?.[cache_str]?.$container.clone(true);
|
|
32310
32310
|
|
|
32311
32311
|
/////////////
|
|
@@ -32396,7 +32396,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32396
32396
|
|
|
32397
32397
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32398
32398
|
|
|
32399
|
-
const cache_str = get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32399
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32400
32400
|
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32401
32401
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
32402
32402
|
}
|
|
@@ -34562,7 +34562,7 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
|
|
|
34562
34562
|
}
|
|
34563
34563
|
};
|
|
34564
34564
|
|
|
34565
|
-
const get_xu_render_cache_str = function (SESSION_ID, dsSessionP) {
|
|
34565
|
+
const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP) {
|
|
34566
34566
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
34567
34567
|
var _ds = _session.DS_GLB[dsSessionP];
|
|
34568
34568
|
|
|
@@ -34576,10 +34576,17 @@ const get_xu_render_cache_str = function (SESSION_ID, dsSessionP) {
|
|
|
34576
34576
|
}
|
|
34577
34577
|
|
|
34578
34578
|
if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
34579
|
-
str += get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
34579
|
+
str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
34580
|
+
}
|
|
34581
|
+
|
|
34582
|
+
async function sha256(str) {
|
|
34583
|
+
const enc = new TextEncoder();
|
|
34584
|
+
const buf = await crypto.subtle.digest('SHA-256', enc.encode(str));
|
|
34585
|
+
const bytes = new Uint8Array(buf);
|
|
34586
|
+
return [...bytes].map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
34580
34587
|
}
|
|
34581
34588
|
|
|
34582
|
-
return str;
|
|
34589
|
+
return await sha256(str);
|
|
34583
34590
|
};
|
|
34584
34591
|
func.UI.component = {};
|
|
34585
34592
|
|