@xuda.io/runtime-bundle 1.0.718 → 1.0.719
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 +4 -31
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +4 -31
- package/js/xuda-runtime-slim.min.es.js +4 -31
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +4 -31
- package/js/xuda-worker-bundle.js +4 -31
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -1275,7 +1275,7 @@ func.datasource.create = async function (
|
|
|
1275
1275
|
rowIdP,
|
|
1276
1276
|
jobNoP,
|
|
1277
1277
|
calling_trigger_prop,
|
|
1278
|
-
|
|
1278
|
+
screen_param,
|
|
1279
1279
|
NA_isInitP,
|
|
1280
1280
|
NA_callingSourceP,
|
|
1281
1281
|
calling_jobP,
|
|
@@ -1308,7 +1308,6 @@ func.datasource.create = async function (
|
|
|
1308
1308
|
parameters_obj_inP,
|
|
1309
1309
|
static_refreshP,
|
|
1310
1310
|
worker_id,
|
|
1311
|
-
parameters_raw_obj,
|
|
1312
1311
|
};
|
|
1313
1312
|
|
|
1314
1313
|
var IS_DATASOURCE_REFRESH = null;
|
|
@@ -1444,7 +1443,7 @@ func.datasource.create = async function (
|
|
|
1444
1443
|
args.rowIdP,
|
|
1445
1444
|
args.jobNoP,
|
|
1446
1445
|
args.calling_trigger_prop,
|
|
1447
|
-
|
|
1446
|
+
null,
|
|
1448
1447
|
null,
|
|
1449
1448
|
null,
|
|
1450
1449
|
args.calling_jobP,
|
|
@@ -1485,7 +1484,7 @@ func.datasource.create = async function (
|
|
|
1485
1484
|
return done(SESSION_ID, jsonP.dsSession, true);
|
|
1486
1485
|
});
|
|
1487
1486
|
};
|
|
1488
|
-
func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, parentDataSourceNoP, containerIdP, rowIdP, jobNoP, calling_trigger_prop,
|
|
1487
|
+
func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, parentDataSourceNoP, containerIdP, rowIdP, jobNoP, calling_trigger_prop, NA_screen_param, NA_isInitP, callingSourceP, calling_jobP, NA_screen_dsP, is_panelP, parameters_obj_inP, static_refreshP, run_atP, worker_id) {
|
|
1489
1488
|
const set_parameters = async function () {
|
|
1490
1489
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
1491
1490
|
const get_Out_parameters = async function (fieldIdP, located_field_param_idxP, param_row_idP) {
|
|
@@ -1614,7 +1613,6 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
1614
1613
|
static_refreshP,
|
|
1615
1614
|
run_atP,
|
|
1616
1615
|
worker_id,
|
|
1617
|
-
parameters_raw_obj,
|
|
1618
1616
|
};
|
|
1619
1617
|
|
|
1620
1618
|
var dataSourceSession = null;
|
|
@@ -2533,7 +2531,7 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
|
|
|
2533
2531
|
clearInterval(interval);
|
|
2534
2532
|
resolve(job_num);
|
|
2535
2533
|
}
|
|
2536
|
-
if (i >
|
|
2534
|
+
if (i > 20) {
|
|
2537
2535
|
console.error('deadlock detected');
|
|
2538
2536
|
clearInterval(interval);
|
|
2539
2537
|
resolve(job_num);
|
|
@@ -3271,18 +3269,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3271
3269
|
|
|
3272
3270
|
if (!fields_changed.includes(field_id)) {
|
|
3273
3271
|
fields_changed.push(field_id);
|
|
3274
|
-
|
|
3275
|
-
///// REFRESH PARAMETERS IN
|
|
3276
|
-
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3277
|
-
// if (_ds.args.parameters_raw_obj) {
|
|
3278
|
-
// for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3279
|
-
// if (exp.includes(field_id)) {
|
|
3280
|
-
// let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
3281
|
-
// _ds.in_parameters[key].value = ret.result;
|
|
3282
|
-
// }
|
|
3283
|
-
// }
|
|
3284
|
-
// }
|
|
3285
|
-
// }
|
|
3286
3272
|
}
|
|
3287
3273
|
if (!datasource_changed.includes(dataSource)) {
|
|
3288
3274
|
datasource_changed.push(dataSource);
|
|
@@ -3329,19 +3315,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3329
3315
|
datasource_changed[0], // refresh the current datasource only
|
|
3330
3316
|
);
|
|
3331
3317
|
}
|
|
3332
|
-
// ///// REFRESH PARAMETERS IN
|
|
3333
|
-
// if (fields_changed.length) {
|
|
3334
|
-
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3335
|
-
// if (_ds.args.parameters_raw_obj) {
|
|
3336
|
-
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3337
|
-
// if (fields_changed.includes(val)) {
|
|
3338
|
-
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
3339
|
-
// _ds.in_parameters[val].value = ret.result;
|
|
3340
|
-
// }
|
|
3341
|
-
// }
|
|
3342
|
-
// }
|
|
3343
|
-
// }
|
|
3344
|
-
// }
|
|
3345
3318
|
}
|
|
3346
3319
|
resolve();
|
|
3347
3320
|
});
|
package/js/xuda-worker-bundle.js
CHANGED
|
@@ -1275,7 +1275,7 @@ func.datasource.create = async function (
|
|
|
1275
1275
|
rowIdP,
|
|
1276
1276
|
jobNoP,
|
|
1277
1277
|
calling_trigger_prop,
|
|
1278
|
-
|
|
1278
|
+
screen_param,
|
|
1279
1279
|
NA_isInitP,
|
|
1280
1280
|
NA_callingSourceP,
|
|
1281
1281
|
calling_jobP,
|
|
@@ -1308,7 +1308,6 @@ func.datasource.create = async function (
|
|
|
1308
1308
|
parameters_obj_inP,
|
|
1309
1309
|
static_refreshP,
|
|
1310
1310
|
worker_id,
|
|
1311
|
-
parameters_raw_obj,
|
|
1312
1311
|
};
|
|
1313
1312
|
|
|
1314
1313
|
var IS_DATASOURCE_REFRESH = null;
|
|
@@ -1444,7 +1443,7 @@ func.datasource.create = async function (
|
|
|
1444
1443
|
args.rowIdP,
|
|
1445
1444
|
args.jobNoP,
|
|
1446
1445
|
args.calling_trigger_prop,
|
|
1447
|
-
|
|
1446
|
+
null,
|
|
1448
1447
|
null,
|
|
1449
1448
|
null,
|
|
1450
1449
|
args.calling_jobP,
|
|
@@ -1485,7 +1484,7 @@ func.datasource.create = async function (
|
|
|
1485
1484
|
return done(SESSION_ID, jsonP.dsSession, true);
|
|
1486
1485
|
});
|
|
1487
1486
|
};
|
|
1488
|
-
func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, parentDataSourceNoP, containerIdP, rowIdP, jobNoP, calling_trigger_prop,
|
|
1487
|
+
func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, parentDataSourceNoP, containerIdP, rowIdP, jobNoP, calling_trigger_prop, NA_screen_param, NA_isInitP, callingSourceP, calling_jobP, NA_screen_dsP, is_panelP, parameters_obj_inP, static_refreshP, run_atP, worker_id) {
|
|
1489
1488
|
const set_parameters = async function () {
|
|
1490
1489
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
1491
1490
|
const get_Out_parameters = async function (fieldIdP, located_field_param_idxP, param_row_idP) {
|
|
@@ -1614,7 +1613,6 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
1614
1613
|
static_refreshP,
|
|
1615
1614
|
run_atP,
|
|
1616
1615
|
worker_id,
|
|
1617
|
-
parameters_raw_obj,
|
|
1618
1616
|
};
|
|
1619
1617
|
|
|
1620
1618
|
var dataSourceSession = null;
|
|
@@ -2533,7 +2531,7 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
|
|
|
2533
2531
|
clearInterval(interval);
|
|
2534
2532
|
resolve(job_num);
|
|
2535
2533
|
}
|
|
2536
|
-
if (i >
|
|
2534
|
+
if (i > 20) {
|
|
2537
2535
|
console.error('deadlock detected');
|
|
2538
2536
|
clearInterval(interval);
|
|
2539
2537
|
resolve(job_num);
|
|
@@ -3271,18 +3269,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3271
3269
|
|
|
3272
3270
|
if (!fields_changed.includes(field_id)) {
|
|
3273
3271
|
fields_changed.push(field_id);
|
|
3274
|
-
|
|
3275
|
-
///// REFRESH PARAMETERS IN
|
|
3276
|
-
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3277
|
-
// if (_ds.args.parameters_raw_obj) {
|
|
3278
|
-
// for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3279
|
-
// if (exp.includes(field_id)) {
|
|
3280
|
-
// let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
3281
|
-
// _ds.in_parameters[key].value = ret.result;
|
|
3282
|
-
// }
|
|
3283
|
-
// }
|
|
3284
|
-
// }
|
|
3285
|
-
// }
|
|
3286
3272
|
}
|
|
3287
3273
|
if (!datasource_changed.includes(dataSource)) {
|
|
3288
3274
|
datasource_changed.push(dataSource);
|
|
@@ -3329,19 +3315,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3329
3315
|
datasource_changed[0], // refresh the current datasource only
|
|
3330
3316
|
);
|
|
3331
3317
|
}
|
|
3332
|
-
// ///// REFRESH PARAMETERS IN
|
|
3333
|
-
// if (fields_changed.length) {
|
|
3334
|
-
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
3335
|
-
// if (_ds.args.parameters_raw_obj) {
|
|
3336
|
-
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
3337
|
-
// if (fields_changed.includes(val)) {
|
|
3338
|
-
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
3339
|
-
// _ds.in_parameters[val].value = ret.result;
|
|
3340
|
-
// }
|
|
3341
|
-
// }
|
|
3342
|
-
// }
|
|
3343
|
-
// }
|
|
3344
|
-
// }
|
|
3345
3318
|
}
|
|
3346
3319
|
resolve();
|
|
3347
3320
|
});
|