@xuda.io/runtime-bundle 1.0.482 → 1.0.483
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 +20 -9
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +20 -9
- package/js/xuda-runtime-slim.min.es.js +20 -9
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +20 -9
- package/js/xuda-worker-bundle.js +20 -9
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -5099,6 +5099,15 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5099
5099
|
}
|
|
5100
5100
|
};
|
|
5101
5101
|
|
|
5102
|
+
const update_xu_ref = async function () {
|
|
5103
|
+
let _ds_0 = _session.DS_GLB[0];
|
|
5104
|
+
for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
|
|
5105
|
+
if (val.ds.dsSession == dataSource) {
|
|
5106
|
+
func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
};
|
|
5110
|
+
|
|
5102
5111
|
var fields_changed = [];
|
|
5103
5112
|
var datasource_changed = [];
|
|
5104
5113
|
let client_datasource_changes = {};
|
|
@@ -5116,6 +5125,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5116
5125
|
// mechanism to make update directly on the datasource object
|
|
5117
5126
|
if (record_id === 'datasource_main') {
|
|
5118
5127
|
_.set(_ds, field_id, value);
|
|
5128
|
+
update_xu_ref();
|
|
5119
5129
|
continue;
|
|
5120
5130
|
}
|
|
5121
5131
|
|
|
@@ -5133,15 +5143,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5133
5143
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
5134
5144
|
|
|
5135
5145
|
// search the field in refs
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
}
|
|
5146
|
+
update_xu_ref();
|
|
5147
|
+
// let _ds_0 = _session.DS_GLB[0];
|
|
5148
|
+
// for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
|
|
5149
|
+
// if (val.ds.dsSession == dataSource) {
|
|
5150
|
+
// func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
|
|
5151
|
+
// // if (!fields_changed.includes(ref_name)) {
|
|
5152
|
+
// // fields_changed.push(ref_name);
|
|
5153
|
+
// // }
|
|
5154
|
+
// }
|
|
5155
|
+
// }
|
|
5145
5156
|
|
|
5146
5157
|
if (!update_local_scope_only) {
|
|
5147
5158
|
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
@@ -5100,6 +5100,15 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5100
5100
|
}
|
|
5101
5101
|
};
|
|
5102
5102
|
|
|
5103
|
+
const update_xu_ref = async function () {
|
|
5104
|
+
let _ds_0 = _session.DS_GLB[0];
|
|
5105
|
+
for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
|
|
5106
|
+
if (val.ds.dsSession == dataSource) {
|
|
5107
|
+
func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
|
|
5108
|
+
}
|
|
5109
|
+
}
|
|
5110
|
+
};
|
|
5111
|
+
|
|
5103
5112
|
var fields_changed = [];
|
|
5104
5113
|
var datasource_changed = [];
|
|
5105
5114
|
let client_datasource_changes = {};
|
|
@@ -5117,6 +5126,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5117
5126
|
// mechanism to make update directly on the datasource object
|
|
5118
5127
|
if (record_id === 'datasource_main') {
|
|
5119
5128
|
_.set(_ds, field_id, value);
|
|
5129
|
+
update_xu_ref();
|
|
5120
5130
|
continue;
|
|
5121
5131
|
}
|
|
5122
5132
|
|
|
@@ -5134,15 +5144,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5134
5144
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
5135
5145
|
|
|
5136
5146
|
// search the field in refs
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
}
|
|
5147
|
+
update_xu_ref();
|
|
5148
|
+
// let _ds_0 = _session.DS_GLB[0];
|
|
5149
|
+
// for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
|
|
5150
|
+
// if (val.ds.dsSession == dataSource) {
|
|
5151
|
+
// func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
|
|
5152
|
+
// // if (!fields_changed.includes(ref_name)) {
|
|
5153
|
+
// // fields_changed.push(ref_name);
|
|
5154
|
+
// // }
|
|
5155
|
+
// }
|
|
5156
|
+
// }
|
|
5146
5157
|
|
|
5147
5158
|
if (!update_local_scope_only) {
|
|
5148
5159
|
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|