@xuda.io/runtime-bundle 1.0.1106 → 1.0.1108
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
|
-
|
|
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,14 +34598,13 @@ 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
|
-
|
|
34600
|
-
|
|
34601
|
-
|
|
34602
|
-
|
|
34603
|
-
|
|
34604
|
-
|
|
34605
|
-
|
|
34606
|
-
}
|
|
34601
|
+
|
|
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
|
+
|
|
34607
34608
|
if (ret.xu_render_background_processing) {
|
|
34608
34609
|
temp_$div.remove();
|
|
34609
34610
|
// $container.find(`[xu-ui-id="${xu_ui_id}"]`).remove();
|
|
@@ -34843,12 +34844,6 @@ const get_parent_ds_fields = function (SESSION_ID, dsSessionP) {
|
|
|
34843
34844
|
const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
|
|
34844
34845
|
const fields_obj = get_parent_ds_fields(SESSION_ID, dsSessionP);
|
|
34845
34846
|
|
|
34846
|
-
// var _session = SESSION_OBJ[SESSION_ID];
|
|
34847
|
-
// var _ds = _session.DS_GLB[dsSessionP];
|
|
34848
|
-
|
|
34849
|
-
// const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
34850
|
-
// const data = _ds.data_feed.rows[idx];
|
|
34851
|
-
|
|
34852
34847
|
let str = '';
|
|
34853
34848
|
|
|
34854
34849
|
for (const [key, val] of Object.entries(fields_obj)) {
|
|
@@ -34856,33 +34851,8 @@ const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_
|
|
|
34856
34851
|
str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
|
|
34857
34852
|
}
|
|
34858
34853
|
|
|
34859
|
-
// if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
34860
|
-
// str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
34861
|
-
// }
|
|
34862
|
-
|
|
34863
34854
|
return 'C-' + (await func.common.sha256(str));
|
|
34864
34855
|
};
|
|
34865
|
-
|
|
34866
|
-
// const get_xu_render_cache_str = async function (SESSION_ID, dsSessionP, exclude_vars = []) {
|
|
34867
|
-
// var _session = SESSION_OBJ[SESSION_ID];
|
|
34868
|
-
// var _ds = _session.DS_GLB[dsSessionP];
|
|
34869
|
-
|
|
34870
|
-
// const idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
34871
|
-
// const data = _ds.data_feed.rows[idx];
|
|
34872
|
-
|
|
34873
|
-
// let str = '';
|
|
34874
|
-
|
|
34875
|
-
// for (const [key, val] of Object.entries(data)) {
|
|
34876
|
-
// if (exclude_vars.includes(key)) continue;
|
|
34877
|
-
// str += typeof val !== 'undefined' ? JSON.stringify(val) : '';
|
|
34878
|
-
// }
|
|
34879
|
-
|
|
34880
|
-
// if (typeof _ds.parentDataSourceNo !== 'undefined') {
|
|
34881
|
-
// str += await get_xu_render_cache_str(SESSION_ID, _ds.parentDataSourceNo);
|
|
34882
|
-
// }
|
|
34883
|
-
|
|
34884
|
-
// return 'C-' + (await func.common.sha256(str));
|
|
34885
|
-
// };
|
|
34886
34856
|
func.UI.component = {};
|
|
34887
34857
|
|
|
34888
34858
|
func.UI.component.create_app_modal_component = function (
|