@xuda.io/runtime-bundle 1.0.707 → 1.0.709
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 +14 -1
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +14 -1
- package/js/xuda-runtime-slim.min.es.js +14 -1
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +13 -0
- package/js/xuda-worker-bundle.js +13 -0
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -3317,6 +3317,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3317
3317
|
datasource_changed[0], // refresh the current datasource only
|
|
3318
3318
|
);
|
|
3319
3319
|
}
|
|
3320
|
+
///// REFRESH PARAMETERS IN
|
|
3321
|
+
if (fields_changed.length) {
|
|
3322
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3323
|
+
if (_ds.args.parameters_raw_obj) {
|
|
3324
|
+
for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3325
|
+
if (fields_changed.includes(val)) {
|
|
3326
|
+
let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
3327
|
+
_ds.in_parameters[val].value = ret.result;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3320
3333
|
}
|
|
3321
3334
|
resolve();
|
|
3322
3335
|
});
|
package/js/xuda-worker-bundle.js
CHANGED
|
@@ -3317,6 +3317,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3317
3317
|
datasource_changed[0], // refresh the current datasource only
|
|
3318
3318
|
);
|
|
3319
3319
|
}
|
|
3320
|
+
///// REFRESH PARAMETERS IN
|
|
3321
|
+
if (fields_changed.length) {
|
|
3322
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3323
|
+
if (_ds.args.parameters_raw_obj) {
|
|
3324
|
+
for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3325
|
+
if (fields_changed.includes(val)) {
|
|
3326
|
+
let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
3327
|
+
_ds.in_parameters[val].value = ret.result;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3320
3333
|
}
|
|
3321
3334
|
resolve();
|
|
3322
3335
|
});
|