@xuda.io/runtime-bundle 1.0.709 → 1.0.711
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 +26 -13
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +26 -13
- package/js/xuda-runtime-slim.min.es.js +26 -13
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +26 -13
- package/js/xuda-worker-bundle.js +26 -13
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -4895,6 +4895,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4895
4895
|
|
|
4896
4896
|
if (!fields_changed.includes(field_id)) {
|
|
4897
4897
|
fields_changed.push(field_id);
|
|
4898
|
+
|
|
4899
|
+
///// REFRESH PARAMETERS IN
|
|
4900
|
+
|
|
4901
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4902
|
+
if (_ds.args.parameters_raw_obj) {
|
|
4903
|
+
for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4904
|
+
if (exp.includes(field_id)) {
|
|
4905
|
+
let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
4906
|
+
_ds.in_parameters[key].value = ret.result;
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4898
4911
|
}
|
|
4899
4912
|
if (!datasource_changed.includes(dataSource)) {
|
|
4900
4913
|
datasource_changed.push(dataSource);
|
|
@@ -4941,19 +4954,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4941
4954
|
datasource_changed[0], // refresh the current datasource only
|
|
4942
4955
|
);
|
|
4943
4956
|
}
|
|
4944
|
-
///// REFRESH PARAMETERS IN
|
|
4945
|
-
if (fields_changed.length) {
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
}
|
|
4957
|
+
// ///// REFRESH PARAMETERS IN
|
|
4958
|
+
// if (fields_changed.length) {
|
|
4959
|
+
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4960
|
+
// if (_ds.args.parameters_raw_obj) {
|
|
4961
|
+
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4962
|
+
// if (fields_changed.includes(val)) {
|
|
4963
|
+
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
4964
|
+
// _ds.in_parameters[val].value = ret.result;
|
|
4965
|
+
// }
|
|
4966
|
+
// }
|
|
4967
|
+
// }
|
|
4968
|
+
// }
|
|
4969
|
+
// }
|
|
4957
4970
|
}
|
|
4958
4971
|
resolve();
|
|
4959
4972
|
});
|
|
@@ -4896,6 +4896,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4896
4896
|
|
|
4897
4897
|
if (!fields_changed.includes(field_id)) {
|
|
4898
4898
|
fields_changed.push(field_id);
|
|
4899
|
+
|
|
4900
|
+
///// REFRESH PARAMETERS IN
|
|
4901
|
+
|
|
4902
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4903
|
+
if (_ds.args.parameters_raw_obj) {
|
|
4904
|
+
for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4905
|
+
if (exp.includes(field_id)) {
|
|
4906
|
+
let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
4907
|
+
_ds.in_parameters[key].value = ret.result;
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4911
|
+
}
|
|
4899
4912
|
}
|
|
4900
4913
|
if (!datasource_changed.includes(dataSource)) {
|
|
4901
4914
|
datasource_changed.push(dataSource);
|
|
@@ -4942,19 +4955,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4942
4955
|
datasource_changed[0], // refresh the current datasource only
|
|
4943
4956
|
);
|
|
4944
4957
|
}
|
|
4945
|
-
///// REFRESH PARAMETERS IN
|
|
4946
|
-
if (fields_changed.length) {
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
}
|
|
4958
|
+
// ///// REFRESH PARAMETERS IN
|
|
4959
|
+
// if (fields_changed.length) {
|
|
4960
|
+
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4961
|
+
// if (_ds.args.parameters_raw_obj) {
|
|
4962
|
+
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4963
|
+
// if (fields_changed.includes(val)) {
|
|
4964
|
+
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
4965
|
+
// _ds.in_parameters[val].value = ret.result;
|
|
4966
|
+
// }
|
|
4967
|
+
// }
|
|
4968
|
+
// }
|
|
4969
|
+
// }
|
|
4970
|
+
// }
|
|
4958
4971
|
}
|
|
4959
4972
|
resolve();
|
|
4960
4973
|
});
|