@xuda.io/runtime-bundle 1.0.708 → 1.0.710
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 +27 -14
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +27 -14
- package/js/xuda-runtime-slim.min.es.js +27 -14
- 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, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4904
|
+
if (val.includes(field_id)) {
|
|
4905
|
+
let ret = await func.expression.get(SESSION_ID, '@' + val, _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
|
});
|
|
@@ -12189,7 +12202,7 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
|
|
|
12189
12202
|
// in parameter
|
|
12190
12203
|
let ret = await func.expression.get(SESSION_ID, nodeP.attributes[`xu-exp:${val.data.parameter}`], dsSession, 'parameters');
|
|
12191
12204
|
params_res[val.data.parameter] = ret.result;
|
|
12192
|
-
params_raw[val.data.parameter] = val.data.parameter;
|
|
12205
|
+
params_raw[val.data.parameter] = nodeP.attributes[`xu-exp:${val.data.parameter}`];
|
|
12193
12206
|
}
|
|
12194
12207
|
}
|
|
12195
12208
|
continue;
|
|
@@ -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, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4905
|
+
if (val.includes(field_id)) {
|
|
4906
|
+
let ret = await func.expression.get(SESSION_ID, '@' + val, _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
|
});
|
|
@@ -9911,7 +9924,7 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
|
|
|
9911
9924
|
// in parameter
|
|
9912
9925
|
let ret = await func.expression.get(SESSION_ID, nodeP.attributes[`xu-exp:${val.data.parameter}`], dsSession, 'parameters');
|
|
9913
9926
|
params_res[val.data.parameter] = ret.result;
|
|
9914
|
-
params_raw[val.data.parameter] = val.data.parameter;
|
|
9927
|
+
params_raw[val.data.parameter] = nodeP.attributes[`xu-exp:${val.data.parameter}`];
|
|
9915
9928
|
}
|
|
9916
9929
|
}
|
|
9917
9930
|
continue;
|