@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
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -4739,7 +4739,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
4739
4739
|
perform_delete();
|
|
4740
4740
|
};
|
|
4741
4741
|
|
|
4742
|
-
func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only,
|
|
4742
|
+
func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
|
|
4743
4743
|
return new Promise(async (resolve, reject) => {
|
|
4744
4744
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
4745
4745
|
|
|
@@ -4943,8 +4943,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4943
4943
|
});
|
|
4944
4944
|
}
|
|
4945
4945
|
///// REFRESH SCREEN
|
|
4946
|
-
if (
|
|
4947
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed));
|
|
4946
|
+
if (fields_changed.length) {
|
|
4947
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, null, avoid_xu_for_refresh);
|
|
4948
4948
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4949
4949
|
await func.UI.screen.refresh_screen(
|
|
4950
4950
|
SESSION_ID,
|
|
@@ -11518,7 +11518,7 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
11518
11518
|
});
|
|
11519
11519
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
11520
11520
|
};
|
|
11521
|
-
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession) {
|
|
11521
|
+
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession, avoid_xu_for_refresh) {
|
|
11522
11522
|
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
11523
11523
|
// let dom to finish
|
|
11524
11524
|
setTimeout(() => {
|
|
@@ -11722,6 +11722,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11722
11722
|
fields_arr,
|
|
11723
11723
|
xu_for_item_id: elem_val?.$elm?.data()?.xuPanelData ? elem_val?.$elm?.data()?.xuPanelData.node.id : elem_val?.$elm?.data().xuData.nodeid,
|
|
11724
11724
|
};
|
|
11725
|
+
if (avoid_xu_for_refresh) return;
|
|
11725
11726
|
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);
|
|
11726
11727
|
|
|
11727
11728
|
refreshed_ids.push(parent_element_ui_id);
|
|
@@ -11762,6 +11763,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11762
11763
|
fields_arr,
|
|
11763
11764
|
xu_for_item_id: item.id,
|
|
11764
11765
|
};
|
|
11766
|
+
if (avoid_xu_for_refresh) return;
|
|
11765
11767
|
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);
|
|
11766
11768
|
|
|
11767
11769
|
if (_session.engine_mode === 'live_preview') {
|
|
@@ -12622,7 +12624,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12622
12624
|
},
|
|
12623
12625
|
},
|
|
12624
12626
|
};
|
|
12625
|
-
await func.datasource.update(SESSION_ID, datasource_changes, null, ['radio', 'checkbox'].includes(input_field_type) ? true : false);
|
|
12627
|
+
// await func.datasource.update(SESSION_ID, datasource_changes, null, ['radio', 'checkbox'].includes(input_field_type) ? true : false);
|
|
12628
|
+
await func.datasource.update(SESSION_ID, datasource_changes, null, true);
|
|
12626
12629
|
}
|
|
12627
12630
|
}
|
|
12628
12631
|
}
|
|
@@ -4740,7 +4740,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
4740
4740
|
perform_delete();
|
|
4741
4741
|
};
|
|
4742
4742
|
|
|
4743
|
-
func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only,
|
|
4743
|
+
func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
|
|
4744
4744
|
return new Promise(async (resolve, reject) => {
|
|
4745
4745
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
4746
4746
|
|
|
@@ -4944,8 +4944,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4944
4944
|
});
|
|
4945
4945
|
}
|
|
4946
4946
|
///// REFRESH SCREEN
|
|
4947
|
-
if (
|
|
4948
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed));
|
|
4947
|
+
if (fields_changed.length) {
|
|
4948
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, null, avoid_xu_for_refresh);
|
|
4949
4949
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4950
4950
|
await func.UI.screen.refresh_screen(
|
|
4951
4951
|
SESSION_ID,
|
|
@@ -9228,7 +9228,7 @@ func.UI.screen.call_embed = function (SESSION_ID, prog) {
|
|
|
9228
9228
|
});
|
|
9229
9229
|
func.UI.main.embed_prog_execute(SESSION_ID, prog);
|
|
9230
9230
|
};
|
|
9231
|
-
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession) {
|
|
9231
|
+
func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, jobNoP, $elm_to_search, dsSession, avoid_xu_for_refresh) {
|
|
9232
9232
|
if (!_.isEmpty(SCREEN_BLOCKER_OBJ)) {
|
|
9233
9233
|
// let dom to finish
|
|
9234
9234
|
setTimeout(() => {
|
|
@@ -9432,6 +9432,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9432
9432
|
fields_arr,
|
|
9433
9433
|
xu_for_item_id: elem_val?.$elm?.data()?.xuPanelData ? elem_val?.$elm?.data()?.xuPanelData.node.id : elem_val?.$elm?.data().xuData.nodeid,
|
|
9434
9434
|
};
|
|
9435
|
+
if (avoid_xu_for_refresh) return;
|
|
9435
9436
|
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);
|
|
9436
9437
|
|
|
9437
9438
|
refreshed_ids.push(parent_element_ui_id);
|
|
@@ -9472,6 +9473,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9472
9473
|
fields_arr,
|
|
9473
9474
|
xu_for_item_id: item.id,
|
|
9474
9475
|
};
|
|
9476
|
+
if (avoid_xu_for_refresh) return;
|
|
9475
9477
|
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);
|
|
9476
9478
|
|
|
9477
9479
|
if (_session.engine_mode === 'live_preview') {
|
|
@@ -10332,7 +10334,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10332
10334
|
},
|
|
10333
10335
|
},
|
|
10334
10336
|
};
|
|
10335
|
-
await func.datasource.update(SESSION_ID, datasource_changes, null, ['radio', 'checkbox'].includes(input_field_type) ? true : false);
|
|
10337
|
+
// await func.datasource.update(SESSION_ID, datasource_changes, null, ['radio', 'checkbox'].includes(input_field_type) ? true : false);
|
|
10338
|
+
await func.datasource.update(SESSION_ID, datasource_changes, null, true);
|
|
10336
10339
|
}
|
|
10337
10340
|
}
|
|
10338
10341
|
}
|