@xuda.io/runtime-bundle 1.0.1065 → 1.0.1067
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.
- package/js/xuda-runtime-bundle.js +25 -25
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +25 -25
- package/js/xuda-runtime-slim.min.es.js +25 -25
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +4 -4
- package/js/xuda-worker-bundle.js +4 -4
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -29887,11 +29887,11 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
29887
29887
|
delete_pending_jobs();
|
|
29888
29888
|
|
|
29889
29889
|
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
29890
|
-
for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
|
|
29891
|
-
|
|
29892
|
-
|
|
29893
|
-
}
|
|
29890
|
+
// for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
|
|
29891
|
+
if (ui_cache_val.paramsP.dsSessionP === dsP) {
|
|
29892
|
+
delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
|
|
29894
29893
|
}
|
|
29894
|
+
// }
|
|
29895
29895
|
}
|
|
29896
29896
|
}
|
|
29897
29897
|
if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
|
|
@@ -31470,7 +31470,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31470
31470
|
if (item.id !== node.id) continue;
|
|
31471
31471
|
|
|
31472
31472
|
if (typeof node.xu_render_made !== 'undefined' && !node.xu_render_made) {
|
|
31473
|
-
const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id
|
|
31473
|
+
const node_data = UI_WORKER_OBJ.xu_render_cache[node.xu_render_xu_ui_id + node.xu_render_cache_id];
|
|
31474
31474
|
parent_element_ui_id;
|
|
31475
31475
|
const elem_key = node.xu_render_xu_ui_id;
|
|
31476
31476
|
const elem_val = { attributes: [attr], $elm: node_data.$div };
|
|
@@ -32349,16 +32349,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32349
32349
|
nodeP.xu_render_made = value;
|
|
32350
32350
|
if (value) {
|
|
32351
32351
|
try {
|
|
32352
|
-
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32352
|
+
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($elm.data()?.xuData.attr_exp_info?.['xu-render']?.fields || {}));
|
|
32353
32353
|
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32354
|
-
let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id
|
|
32354
|
+
let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id + xu_render_cache_id]?.$div.clone(true);
|
|
32355
32355
|
|
|
32356
32356
|
if (!new_$div || !new_$div.$div) {
|
|
32357
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id
|
|
32357
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { paramsP };
|
|
32358
32358
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
32359
32359
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
32360
32360
|
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);
|
|
32361
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id
|
|
32361
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id].$div = new_$div.clone(true);
|
|
32362
32362
|
}
|
|
32363
32363
|
// append order handling
|
|
32364
32364
|
|
|
@@ -32390,11 +32390,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32390
32390
|
/////////// !value ///////////
|
|
32391
32391
|
|
|
32392
32392
|
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32393
|
-
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32394
|
-
|
|
32395
|
-
}
|
|
32396
|
-
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
32397
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id
|
|
32393
|
+
// if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
32394
|
+
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
32395
|
+
// }
|
|
32396
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP, Object.keys($elm.data()?.xuData.attr_exp_info?.['xu-render']?.fields || {}));
|
|
32397
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + cache_str] = { $div: $elm.clone(true) };
|
|
32398
32398
|
$elm.remove();
|
|
32399
32399
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32400
32400
|
};
|
|
@@ -34409,12 +34409,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34409
34409
|
if (glb.new_xu_render) {
|
|
34410
34410
|
if (ret.has_xu_render_attribute) {
|
|
34411
34411
|
const xu_ui_id = $div.attr('xu-ui-id');
|
|
34412
|
-
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
34413
|
-
|
|
34414
|
-
}
|
|
34412
|
+
// if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
34413
|
+
// UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
34414
|
+
// }
|
|
34415
34415
|
|
|
34416
34416
|
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 || {}));
|
|
34417
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id
|
|
34417
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id + xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
34418
34418
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
34419
34419
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
34420
34420
|
if (ret.xu_render_in_process) {
|
|
@@ -34612,14 +34612,14 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
|
|
|
34612
34612
|
|
|
34613
34613
|
////////
|
|
34614
34614
|
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
34615
|
-
for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
|
|
34616
|
-
|
|
34617
|
-
|
|
34618
|
-
|
|
34619
|
-
|
|
34620
|
-
|
|
34621
|
-
}
|
|
34615
|
+
// for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
|
|
34616
|
+
// const dsP=cache_val.paramsP.dsSessionP
|
|
34617
|
+
let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, ui_cache_val.paramsP.prog_id);
|
|
34618
|
+
if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
|
|
34619
|
+
// UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
|
|
34620
|
+
ui_cache_val.$div = null;
|
|
34622
34621
|
}
|
|
34622
|
+
// }
|
|
34623
34623
|
}
|
|
34624
34624
|
};
|
|
34625
34625
|
|