@xuda.io/runtime-bundle 1.0.770 → 1.0.771
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 +8 -5
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +8 -5
- package/js/xuda-runtime-slim.min.es.js +8 -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 +3 -3
- package/js/xuda-worker-bundle.js +3 -3
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -29848,7 +29848,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
29848
29848
|
perform_delete();
|
|
29849
29849
|
};
|
|
29850
29850
|
|
|
29851
|
-
func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only,
|
|
29851
|
+
func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
|
|
29852
29852
|
return new Promise(async (resolve, reject) => {
|
|
29853
29853
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
29854
29854
|
|
|
@@ -30052,8 +30052,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
30052
30052
|
});
|
|
30053
30053
|
}
|
|
30054
30054
|
///// REFRESH SCREEN
|
|
30055
|
-
if (
|
|
30056
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed));
|
|
30055
|
+
if (fields_changed.length) {
|
|
30056
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, null, avoid_xu_for_refresh);
|
|
30057
30057
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
30058
30058
|
await func.UI.screen.refresh_screen(
|
|
30059
30059
|
SESSION_ID,
|
|
@@ -31187,7 +31187,7 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
31187
31187
|
});
|
|
31188
31188
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
31189
31189
|
};
|
|
31190
|
-
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession) {
|
|
31190
|
+
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession, avoid_xu_for_refresh) {
|
|
31191
31191
|
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
31192
31192
|
// let dom to finish
|
|
31193
31193
|
setTimeout(() => {
|
|
@@ -31391,6 +31391,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31391
31391
|
fields_arr,
|
|
31392
31392
|
xu_for_item_id: elem_val?.$elm?.data()?.xuPanelData ? elem_val?.$elm?.data()?.xuPanelData.node.id : elem_val?.$elm?.data().xuData.nodeid,
|
|
31393
31393
|
};
|
|
31394
|
+
if (avoid_xu_for_refresh) return;
|
|
31394
31395
|
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31395
31396
|
|
|
31396
31397
|
refreshed_ids.push(parent_element_ui_id);
|
|
@@ -31431,6 +31432,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31431
31432
|
fields_arr,
|
|
31432
31433
|
xu_for_item_id: item.id,
|
|
31433
31434
|
};
|
|
31435
|
+
if (avoid_xu_for_refresh) return;
|
|
31434
31436
|
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31435
31437
|
|
|
31436
31438
|
if (_session.engine_mode === 'live_preview') {
|
|
@@ -32291,7 +32293,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32291
32293
|
},
|
|
32292
32294
|
},
|
|
32293
32295
|
};
|
|
32294
|
-
await func.datasource.update(SESSION_ID, datasource_changes, null, ['radio', 'checkbox'].includes(input_field_type) ? true : false);
|
|
32296
|
+
// await func.datasource.update(SESSION_ID, datasource_changes, null, ['radio', 'checkbox'].includes(input_field_type) ? true : false);
|
|
32297
|
+
await func.datasource.update(SESSION_ID, datasource_changes, null, true);
|
|
32295
32298
|
}
|
|
32296
32299
|
}
|
|
32297
32300
|
}
|