@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
|
@@ -3271,6 +3271,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3271
3271
|
|
|
3272
3272
|
if (!fields_changed.includes(field_id)) {
|
|
3273
3273
|
fields_changed.push(field_id);
|
|
3274
|
+
|
|
3275
|
+
///// REFRESH PARAMETERS IN
|
|
3276
|
+
|
|
3277
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3278
|
+
if (_ds.args.parameters_raw_obj) {
|
|
3279
|
+
for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3280
|
+
if (exp.includes(field_id)) {
|
|
3281
|
+
let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
3282
|
+
_ds.in_parameters[key].value = ret.result;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3274
3287
|
}
|
|
3275
3288
|
if (!datasource_changed.includes(dataSource)) {
|
|
3276
3289
|
datasource_changed.push(dataSource);
|
|
@@ -3317,19 +3330,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3317
3330
|
datasource_changed[0], // refresh the current datasource only
|
|
3318
3331
|
);
|
|
3319
3332
|
}
|
|
3320
|
-
///// REFRESH PARAMETERS IN
|
|
3321
|
-
if (fields_changed.length) {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
}
|
|
3333
|
+
// ///// REFRESH PARAMETERS IN
|
|
3334
|
+
// if (fields_changed.length) {
|
|
3335
|
+
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3336
|
+
// if (_ds.args.parameters_raw_obj) {
|
|
3337
|
+
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3338
|
+
// if (fields_changed.includes(val)) {
|
|
3339
|
+
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
3340
|
+
// _ds.in_parameters[val].value = ret.result;
|
|
3341
|
+
// }
|
|
3342
|
+
// }
|
|
3343
|
+
// }
|
|
3344
|
+
// }
|
|
3345
|
+
// }
|
|
3333
3346
|
}
|
|
3334
3347
|
resolve();
|
|
3335
3348
|
});
|
package/js/xuda-worker-bundle.js
CHANGED
|
@@ -3271,6 +3271,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3271
3271
|
|
|
3272
3272
|
if (!fields_changed.includes(field_id)) {
|
|
3273
3273
|
fields_changed.push(field_id);
|
|
3274
|
+
|
|
3275
|
+
///// REFRESH PARAMETERS IN
|
|
3276
|
+
|
|
3277
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3278
|
+
if (_ds.args.parameters_raw_obj) {
|
|
3279
|
+
for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3280
|
+
if (exp.includes(field_id)) {
|
|
3281
|
+
let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
3282
|
+
_ds.in_parameters[key].value = ret.result;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3274
3287
|
}
|
|
3275
3288
|
if (!datasource_changed.includes(dataSource)) {
|
|
3276
3289
|
datasource_changed.push(dataSource);
|
|
@@ -3317,19 +3330,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3317
3330
|
datasource_changed[0], // refresh the current datasource only
|
|
3318
3331
|
);
|
|
3319
3332
|
}
|
|
3320
|
-
///// REFRESH PARAMETERS IN
|
|
3321
|
-
if (fields_changed.length) {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
}
|
|
3333
|
+
// ///// REFRESH PARAMETERS IN
|
|
3334
|
+
// if (fields_changed.length) {
|
|
3335
|
+
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3336
|
+
// if (_ds.args.parameters_raw_obj) {
|
|
3337
|
+
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3338
|
+
// if (fields_changed.includes(val)) {
|
|
3339
|
+
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
3340
|
+
// _ds.in_parameters[val].value = ret.result;
|
|
3341
|
+
// }
|
|
3342
|
+
// }
|
|
3343
|
+
// }
|
|
3344
|
+
// }
|
|
3345
|
+
// }
|
|
3333
3346
|
}
|
|
3334
3347
|
resolve();
|
|
3335
3348
|
});
|