@xuda.io/runtime-bundle 1.0.1285 → 1.0.1287
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 +27 -11
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +27 -11
- package/js/xuda-runtime-slim.min.es.js +27 -11
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +15 -7
- package/js/xuda-worker-bundle.js +15 -7
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -28232,9 +28232,9 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
|
|
|
28232
28232
|
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
28233
28233
|
|
|
28234
28234
|
// _.set(_session.DS_GLB[dsSessionP].watcher, change.path, change.newValue);
|
|
28235
|
-
setTimeout(() => {
|
|
28236
|
-
|
|
28237
|
-
}, 1000);
|
|
28235
|
+
// setTimeout(() => {
|
|
28236
|
+
// func.action.execute(SESSION_ID, 'act_refresh', _session.DS_GLB[dsSessionP], null, null, null, $elm);
|
|
28237
|
+
// }, 1000);
|
|
28238
28238
|
} catch (error) {}
|
|
28239
28239
|
});
|
|
28240
28240
|
|
|
@@ -30217,13 +30217,21 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
30217
30217
|
}
|
|
30218
30218
|
|
|
30219
30219
|
if (field_id === 'watcher') {
|
|
30220
|
-
if (!server_datasource_changes[dataSource]) {
|
|
30221
|
-
|
|
30222
|
-
}
|
|
30223
|
-
if (!server_datasource_changes[dataSource][record_id]) {
|
|
30224
|
-
|
|
30225
|
-
}
|
|
30226
|
-
server_datasource_changes[dataSource][record_id][field_id] = value;
|
|
30220
|
+
// if (!server_datasource_changes[dataSource]) {
|
|
30221
|
+
// server_datasource_changes[dataSource] = {};
|
|
30222
|
+
// }
|
|
30223
|
+
// if (!server_datasource_changes[dataSource][record_id]) {
|
|
30224
|
+
// server_datasource_changes[dataSource][record_id] = {};
|
|
30225
|
+
// }
|
|
30226
|
+
// server_datasource_changes[dataSource][record_id][field_id] = value;
|
|
30227
|
+
|
|
30228
|
+
await func.UI.screen.refresh_screen(
|
|
30229
|
+
SESSION_ID,
|
|
30230
|
+
klona.klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
30231
|
+
null,
|
|
30232
|
+
datasource_changed[0], // refresh the current datasource only
|
|
30233
|
+
value,
|
|
30234
|
+
);
|
|
30227
30235
|
}
|
|
30228
30236
|
|
|
30229
30237
|
continue;
|
|
@@ -31768,12 +31776,20 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31768
31776
|
}
|
|
31769
31777
|
};
|
|
31770
31778
|
|
|
31771
|
-
func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
|
|
31779
|
+
func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource, watcher) {
|
|
31772
31780
|
var found, refresh_reason, refresh_details;
|
|
31773
31781
|
const validate_change = function (prog_doc, panelXuAttributes, skip_ui_check) {
|
|
31774
31782
|
found = null;
|
|
31775
31783
|
refresh_reason = null;
|
|
31776
31784
|
refresh_details = null;
|
|
31785
|
+
|
|
31786
|
+
if (watcher?.path?.includes('progDataSource')) {
|
|
31787
|
+
found = true;
|
|
31788
|
+
refresh_reason = `progDataSource by watcher ${watcher.path}`;
|
|
31789
|
+
refresh_details = watcher;
|
|
31790
|
+
return;
|
|
31791
|
+
}
|
|
31792
|
+
|
|
31777
31793
|
const progDataSource_str = JSON.stringify(prog_doc.progDataSource);
|
|
31778
31794
|
for (const field_id of fields_changed_arr) {
|
|
31779
31795
|
// get panel attributes
|