@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
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -4654,12 +4654,13 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
4654
4654
|
delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
|
|
4655
4655
|
|
|
4656
4656
|
delete_pending_jobs();
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4657
|
+
if (glb.new_xu_render) {
|
|
4658
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
4659
|
+
if (ui_cache_val.paramsP.dsSessionP === dsP) {
|
|
4660
|
+
delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4663
4664
|
}
|
|
4664
4665
|
if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
|
|
4665
4666
|
var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
|
|
@@ -11743,12 +11744,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11743
11744
|
for (let item of node) {
|
|
11744
11745
|
if (!_.isEmpty(item.attributes)) {
|
|
11745
11746
|
const parent_element_ui_id = node_id;
|
|
11746
|
-
const _$elem = $(`[xu-node-id
|
|
11747
|
+
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
11747
11748
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
11748
11749
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
11749
11750
|
if (val?.includes(field_id)) {
|
|
11750
11751
|
// const parent_element_ui_id = node_id;
|
|
11751
|
-
debugger;
|
|
11752
|
+
// debugger;
|
|
11752
11753
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
11753
11754
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
11754
11755
|
|
|
@@ -12675,6 +12676,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12675
12676
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
12676
12677
|
}
|
|
12677
12678
|
|
|
12679
|
+
//remove xu-teleport trace
|
|
12680
|
+
$.each($elm.find('xu-teleport'), (key, val) => {
|
|
12681
|
+
const xuTeleportData = $(val).data().xuTeleportData || [];
|
|
12682
|
+
for (const teleported_elm_id of xuTeleportData) {
|
|
12683
|
+
$(`[xu-ui-id="${teleported_elm_id}"]`).remove();
|
|
12684
|
+
}
|
|
12685
|
+
});
|
|
12686
|
+
|
|
12678
12687
|
$elm.replaceWith(tmp_$div.children());
|
|
12679
12688
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12680
12689
|
// }
|
|
@@ -15128,16 +15137,13 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
|
|
|
15128
15137
|
}
|
|
15129
15138
|
}
|
|
15130
15139
|
|
|
15131
|
-
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
// UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
|
|
15138
|
-
ui_cache_val.$div = null;
|
|
15140
|
+
if (glb.new_xu_render) {
|
|
15141
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
15142
|
+
let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, ui_cache_val.paramsP.prog_id);
|
|
15143
|
+
if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
|
|
15144
|
+
ui_cache_val.$div = null;
|
|
15145
|
+
}
|
|
15139
15146
|
}
|
|
15140
|
-
// }
|
|
15141
15147
|
}
|
|
15142
15148
|
};
|
|
15143
15149
|
|
|
@@ -4655,12 +4655,13 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
4655
4655
|
delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
|
|
4656
4656
|
|
|
4657
4657
|
delete_pending_jobs();
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4658
|
+
if (glb.new_xu_render) {
|
|
4659
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
4660
|
+
if (ui_cache_val.paramsP.dsSessionP === dsP) {
|
|
4661
|
+
delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key];
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4664
4665
|
}
|
|
4665
4666
|
if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
|
|
4666
4667
|
var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
|
|
@@ -9468,12 +9469,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9468
9469
|
for (let item of node) {
|
|
9469
9470
|
if (!_.isEmpty(item.attributes)) {
|
|
9470
9471
|
const parent_element_ui_id = node_id;
|
|
9471
|
-
const _$elem = $(`[xu-node-id
|
|
9472
|
+
const _$elem = $(`[xu-node-id="${parent_element_ui_id}"]`);
|
|
9472
9473
|
for await (const [attr, val] of Object.entries(item.attributes)) {
|
|
9473
9474
|
if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
|
|
9474
9475
|
if (val?.includes(field_id)) {
|
|
9475
9476
|
// const parent_element_ui_id = node_id;
|
|
9476
|
-
debugger;
|
|
9477
|
+
// debugger;
|
|
9477
9478
|
// let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
|
|
9478
9479
|
// let _$elem = $(`[xu-node-id=${parent_element_ui_id}]`);
|
|
9479
9480
|
|
|
@@ -10400,6 +10401,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10400
10401
|
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
10401
10402
|
}
|
|
10402
10403
|
|
|
10404
|
+
//remove xu-teleport trace
|
|
10405
|
+
$.each($elm.find('xu-teleport'), (key, val) => {
|
|
10406
|
+
const xuTeleportData = $(val).data().xuTeleportData || [];
|
|
10407
|
+
for (const teleported_elm_id of xuTeleportData) {
|
|
10408
|
+
$(`[xu-ui-id="${teleported_elm_id}"]`).remove();
|
|
10409
|
+
}
|
|
10410
|
+
});
|
|
10411
|
+
|
|
10403
10412
|
$elm.replaceWith(tmp_$div.children());
|
|
10404
10413
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10405
10414
|
// }
|
|
@@ -12853,16 +12862,13 @@ func.UI.screen.refresh_document_changes_for_realtime_update = async function (SE
|
|
|
12853
12862
|
}
|
|
12854
12863
|
}
|
|
12855
12864
|
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
// UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
|
|
12863
|
-
ui_cache_val.$div = null;
|
|
12865
|
+
if (glb.new_xu_render) {
|
|
12866
|
+
for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
|
|
12867
|
+
let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, ui_cache_val.paramsP.prog_id);
|
|
12868
|
+
if (prog_obj?.progDataSource?.dataSourceTableId === doc_change.table_id) {
|
|
12869
|
+
ui_cache_val.$div = null;
|
|
12870
|
+
}
|
|
12864
12871
|
}
|
|
12865
|
-
// }
|
|
12866
12872
|
}
|
|
12867
12873
|
};
|
|
12868
12874
|
|