@xuda.io/runtime-bundle 1.0.1058 → 1.0.1060
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 +17 -5
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +17 -5
- package/js/xuda-runtime-slim.min.es.js +17 -5
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +8 -0
- package/js/xuda-worker-bundle.js +8 -0
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -29881,6 +29881,14 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
29881
29881
|
delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
|
|
29882
29882
|
|
|
29883
29883
|
delete_pending_jobs();
|
|
29884
|
+
|
|
29885
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
29886
|
+
for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
|
|
29887
|
+
if (cache_val.paramsP.dsSession === dsP) {
|
|
29888
|
+
delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
|
|
29889
|
+
}
|
|
29890
|
+
}
|
|
29891
|
+
}
|
|
29884
29892
|
}
|
|
29885
29893
|
if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
|
|
29886
29894
|
var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
|
|
@@ -32341,8 +32349,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32341
32349
|
const xu_ui_id = $elm.attr('xu-ui-id');
|
|
32342
32350
|
let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id]?.[xu_render_cache_id]?.$div.clone(true);
|
|
32343
32351
|
|
|
32344
|
-
if (!new_$div) {
|
|
32345
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = {};
|
|
32352
|
+
if (!new_$div || !new_$div.$div) {
|
|
32353
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { paramsP };
|
|
32346
32354
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
32347
32355
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
32348
32356
|
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);
|
|
@@ -32354,14 +32362,18 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32354
32362
|
new_$div.appendTo($container);
|
|
32355
32363
|
} else {
|
|
32356
32364
|
// iterate the container node
|
|
32357
|
-
let $last_elm_found;
|
|
32365
|
+
let $last_elm_found = [];
|
|
32358
32366
|
$.each($container.data().xuData.node.children, (item_key, item_val) => {
|
|
32359
32367
|
const $elm = $(`[xu-node-id="${item_val.id}"]`);
|
|
32360
32368
|
if ($elm.length) {
|
|
32361
32369
|
$last_elm_found = $elm;
|
|
32362
32370
|
}
|
|
32363
32371
|
if (keyP == item_key) {
|
|
32364
|
-
|
|
32372
|
+
if ($last_elm_found.length) {
|
|
32373
|
+
new_$div.after($last_elm_found);
|
|
32374
|
+
} else {
|
|
32375
|
+
$container.prepend(new_$div);
|
|
32376
|
+
}
|
|
32365
32377
|
}
|
|
32366
32378
|
});
|
|
32367
32379
|
}
|
|
@@ -34390,7 +34402,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34390
34402
|
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
34391
34403
|
}
|
|
34392
34404
|
const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
34393
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
|
|
34405
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true), paramsP };
|
|
34394
34406
|
nodeP.xu_render_xu_ui_id = xu_ui_id;
|
|
34395
34407
|
nodeP.xu_render_cache_id = xu_render_cache_id;
|
|
34396
34408
|
if (ret.xu_render_in_process) {
|