@xuda.io/runtime-bundle 1.0.1126 → 1.0.1127
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 +23 -17
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +23 -17
- package/js/xuda-runtime-slim.min.es.js +23 -17
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +7 -6
- package/js/xuda-worker-bundle.js +7 -6
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -29885,12 +29885,13 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
29885
29885
|
delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
|
|
29886
29886
|
|
|
29887
29887
|
delete_pending_jobs();
|
|
29888
|
-
|
|
29889
|
-
|
|
29890
|
-
|
|
29891
|
-
|
|
29892
|
-
|
|
29893
|
-
|
|
29888
|
+
if (glb.new_xu_render) {
|
|
29889
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
29890
|
+
if (ui_cache_val.paramsP.dsSessionP === dsP) {
|
|
29891
|
+
delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
|
|
29892
|
+
}
|
|
29893
|
+
}
|
|
29894
|
+
}
|
|
29894
29895
|
}
|
|
29895
29896
|
if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
|
|
29896
29897
|
var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
|
|
@@ -31427,12 +31428,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31427
31428
|
for (let item of node) {
|
|
31428
31429
|
if (!_.isEmpty(item.attributes)) {
|
|
31429
31430
|
const parent_element_ui_id = node_id;
|
|
31430
|
-
const _$elem = $(`[xu-node-id
|
|
31431
|
+
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
31431
31432
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
31432
31433
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
31433
31434
|
if (val?.includes(field_id)) {
|
|
31434
31435
|
// const parent_element_ui_id = node_id;
|
|
31435
|
-
debugger;
|
|
31436
|
+
// debugger;
|
|
31436
31437
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
31437
31438
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
31438
31439
|
|
|
@@ -32359,6 +32360,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32359
32360
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
32360
32361
|
}
|
|
32361
32362
|
|
|
32363
|
+
//remove xu-teleport trace
|
|
32364
|
+
$.each($elm.find('xu-teleport'), (key, val) => {
|
|
32365
|
+
const xuTeleportData = $(val).data().xuTeleportData || [];
|
|
32366
|
+
for (const teleported_elm_id of xuTeleportData) {
|
|
32367
|
+
$(`[xu-ui-id="${teleported_elm_id}"]`).remove();
|
|
32368
|
+
}
|
|
32369
|
+
});
|
|
32370
|
+
|
|
32362
32371
|
$elm.replaceWith(tmp_$div.children());
|
|
32363
32372
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32364
32373
|
// }
|
|
@@ -34812,16 +34821,13 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
|
|
|
34812
34821
|
}
|
|
34813
34822
|
}
|
|
34814
34823
|
|
|
34815
|
-
|
|
34816
|
-
|
|
34817
|
-
|
|
34818
|
-
|
|
34819
|
-
|
|
34820
|
-
|
|
34821
|
-
// UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
|
|
34822
|
-
ui_cache_val.$div = null;
|
|
34824
|
+
if (glb.new_xu_render) {
|
|
34825
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
34826
|
+
let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, ui_cache_val.paramsP.prog_id);
|
|
34827
|
+
if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
|
|
34828
|
+
ui_cache_val.$div = null;
|
|
34829
|
+
}
|
|
34823
34830
|
}
|
|
34824
|
-
// }
|
|
34825
34831
|
}
|
|
34826
34832
|
};
|
|
34827
34833
|
|