@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
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -2899,7 +2899,7 @@ func.datasource.create = async function (
|
|
|
2899
2899
|
rowIdP,
|
|
2900
2900
|
jobNoP,
|
|
2901
2901
|
calling_trigger_prop,
|
|
2902
|
-
|
|
2902
|
+
screen_param,
|
|
2903
2903
|
NA_isInitP,
|
|
2904
2904
|
NA_callingSourceP,
|
|
2905
2905
|
calling_jobP,
|
|
@@ -2932,7 +2932,6 @@ func.datasource.create = async function (
|
|
|
2932
2932
|
parameters_obj_inP,
|
|
2933
2933
|
static_refreshP,
|
|
2934
2934
|
worker_id,
|
|
2935
|
-
parameters_raw_obj,
|
|
2936
2935
|
};
|
|
2937
2936
|
|
|
2938
2937
|
var IS_DATASOURCE_REFRESH = null;
|
|
@@ -3068,7 +3067,7 @@ func.datasource.create = async function (
|
|
|
3068
3067
|
args.rowIdP,
|
|
3069
3068
|
args.jobNoP,
|
|
3070
3069
|
args.calling_trigger_prop,
|
|
3071
|
-
|
|
3070
|
+
null,
|
|
3072
3071
|
null,
|
|
3073
3072
|
null,
|
|
3074
3073
|
args.calling_jobP,
|
|
@@ -3109,7 +3108,7 @@ func.datasource.create = async function (
|
|
|
3109
3108
|
return done(SESSION_ID, jsonP.dsSession, true);
|
|
3110
3109
|
});
|
|
3111
3110
|
};
|
|
3112
|
-
func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, parentDataSourceNoP, containerIdP, rowIdP, jobNoP, calling_trigger_prop,
|
|
3111
|
+
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) {
|
|
3113
3112
|
const set_parameters = async function () {
|
|
3114
3113
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
3115
3114
|
const get_Out_parameters = async function (fieldIdP, located_field_param_idxP, param_row_idP) {
|
|
@@ -3238,7 +3237,6 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3238
3237
|
static_refreshP,
|
|
3239
3238
|
run_atP,
|
|
3240
3239
|
worker_id,
|
|
3241
|
-
parameters_raw_obj,
|
|
3242
3240
|
};
|
|
3243
3241
|
|
|
3244
3242
|
var dataSourceSession = null;
|
|
@@ -4157,7 +4155,7 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
|
|
|
4157
4155
|
clearInterval(interval);
|
|
4158
4156
|
resolve(job_num);
|
|
4159
4157
|
}
|
|
4160
|
-
if (i >
|
|
4158
|
+
if (i > 20) {
|
|
4161
4159
|
console.error('deadlock detected');
|
|
4162
4160
|
clearInterval(interval);
|
|
4163
4161
|
resolve(job_num);
|
|
@@ -4895,18 +4893,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4895
4893
|
|
|
4896
4894
|
if (!fields_changed.includes(field_id)) {
|
|
4897
4895
|
fields_changed.push(field_id);
|
|
4898
|
-
|
|
4899
|
-
///// REFRESH PARAMETERS IN
|
|
4900
|
-
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4901
|
-
// if (_ds.args.parameters_raw_obj) {
|
|
4902
|
-
// for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4903
|
-
// if (exp.includes(field_id)) {
|
|
4904
|
-
// let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
|
|
4905
|
-
// _ds.in_parameters[key].value = ret.result;
|
|
4906
|
-
// }
|
|
4907
|
-
// }
|
|
4908
|
-
// }
|
|
4909
|
-
// }
|
|
4910
4896
|
}
|
|
4911
4897
|
if (!datasource_changed.includes(dataSource)) {
|
|
4912
4898
|
datasource_changed.push(dataSource);
|
|
@@ -4953,19 +4939,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4953
4939
|
datasource_changed[0], // refresh the current datasource only
|
|
4954
4940
|
);
|
|
4955
4941
|
}
|
|
4956
|
-
// ///// REFRESH PARAMETERS IN
|
|
4957
|
-
// if (fields_changed.length) {
|
|
4958
|
-
// for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4959
|
-
// if (_ds.args.parameters_raw_obj) {
|
|
4960
|
-
// for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4961
|
-
// if (fields_changed.includes(val)) {
|
|
4962
|
-
// let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
4963
|
-
// _ds.in_parameters[val].value = ret.result;
|
|
4964
|
-
// }
|
|
4965
|
-
// }
|
|
4966
|
-
// }
|
|
4967
|
-
// }
|
|
4968
|
-
// }
|
|
4969
4942
|
}
|
|
4970
4943
|
resolve();
|
|
4971
4944
|
});
|
|
@@ -2900,7 +2900,7 @@ func.datasource.create = async function (
|
|
|
2900
2900
|
rowIdP,
|
|
2901
2901
|
jobNoP,
|
|
2902
2902
|
calling_trigger_prop,
|
|
2903
|
-
|
|
2903
|
+
screen_param,
|
|
2904
2904
|
NA_isInitP,
|
|
2905
2905
|
NA_callingSourceP,
|
|
2906
2906
|
calling_jobP,
|
|
@@ -2933,7 +2933,6 @@ func.datasource.create = async function (
|
|
|
2933
2933
|
parameters_obj_inP,
|
|
2934
2934
|
static_refreshP,
|
|
2935
2935
|
worker_id,
|
|
2936
|
-
parameters_raw_obj,
|
|
2937
2936
|
};
|
|
2938
2937
|
|
|
2939
2938
|
var IS_DATASOURCE_REFRESH = null;
|
|
@@ -3069,7 +3068,7 @@ func.datasource.create = async function (
|
|
|
3069
3068
|
args.rowIdP,
|
|
3070
3069
|
args.jobNoP,
|
|
3071
3070
|
args.calling_trigger_prop,
|
|
3072
|
-
|
|
3071
|
+
null,
|
|
3073
3072
|
null,
|
|
3074
3073
|
null,
|
|
3075
3074
|
args.calling_jobP,
|
|
@@ -3110,7 +3109,7 @@ func.datasource.create = async function (
|
|
|
3110
3109
|
return done(SESSION_ID, jsonP.dsSession, true);
|
|
3111
3110
|
});
|
|
3112
3111
|
};
|
|
3113
|
-
func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, parentDataSourceNoP, containerIdP, rowIdP, jobNoP, calling_trigger_prop,
|
|
3112
|
+
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) {
|
|
3114
3113
|
const set_parameters = async function () {
|
|
3115
3114
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
3116
3115
|
const get_Out_parameters = async function (fieldIdP, located_field_param_idxP, param_row_idP) {
|
|
@@ -3239,7 +3238,6 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3239
3238
|
static_refreshP,
|
|
3240
3239
|
run_atP,
|
|
3241
3240
|
worker_id,
|
|
3242
|
-
parameters_raw_obj,
|
|
3243
3241
|
};
|
|
3244
3242
|
|
|
3245
3243
|
var dataSourceSession = null;
|
|
@@ -4158,7 +4156,7 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
|
|
|
4158
4156
|
clearInterval(interval);
|
|
4159
4157
|
resolve(job_num);
|
|
4160
4158
|
}
|
|
4161
|
-
if (i >
|
|
4159
|
+
if (i > 20) {
|
|
4162
4160
|
console.error('deadlock detected');
|
|
4163
4161
|
clearInterval(interval);
|
|
4164
4162
|
resolve(job_num);
|
|
@@ -4896,18 +4894,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4896
4894
|
|
|
4897
4895
|
if (!fields_changed.includes(field_id)) {
|
|
4898
4896
|
fields_changed.push(field_id);
|
|
4899
|
-
|
|
4900
|
-
///// REFRESH PARAMETERS IN
|
|
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
|
-
// }
|
|
4911
4897
|
}
|
|
4912
4898
|
if (!datasource_changed.includes(dataSource)) {
|
|
4913
4899
|
datasource_changed.push(dataSource);
|
|
@@ -4954,19 +4940,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4954
4940
|
datasource_changed[0], // refresh the current datasource only
|
|
4955
4941
|
);
|
|
4956
4942
|
}
|
|
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
|
-
// }
|
|
4970
4943
|
}
|
|
4971
4944
|
resolve();
|
|
4972
4945
|
});
|