@xuda.io/runtime-bundle 1.0.700 → 1.0.702

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.
@@ -27714,25 +27714,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27714
27714
 
27715
27715
  const fx = {
27716
27716
  update_datasource: async function () {
27717
- var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
27718
- _ds.currentRecordId = queue_obj.paramsP.currentRecordId;
27717
+ if (queue_obj?.paramsP) {
27718
+ var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
27719
+ _ds.currentRecordId = queue_obj.paramsP.currentRecordId;
27719
27720
 
27720
- var datasource_changes = {
27721
- [_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
27722
- };
27723
- await func.datasource.update(SESSION_ID, datasource_changes);
27724
-
27725
- if (queue_obj.paramsP.field_id) {
27726
- datasource_changes = {
27727
- [_ds.dsSession]: {
27728
- [_ds.currentRecordId]: {
27729
- [queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
27730
- },
27731
- },
27721
+ var datasource_changes = {
27722
+ [_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
27732
27723
  };
27733
27724
  await func.datasource.update(SESSION_ID, datasource_changes);
27734
- }
27735
27725
 
27726
+ if (queue_obj.paramsP.field_id) {
27727
+ datasource_changes = {
27728
+ [_ds.dsSession]: {
27729
+ [_ds.currentRecordId]: {
27730
+ [queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
27731
+ },
27732
+ },
27733
+ };
27734
+ await func.datasource.update(SESSION_ID, datasource_changes);
27735
+ }
27736
+ }
27736
27737
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27737
27738
  },
27738
27739
  execute_xu_render_attributes: async function () {
@@ -28007,7 +28008,7 @@ func.datasource.create = async function (
28007
28008
  rowIdP,
28008
28009
  jobNoP,
28009
28010
  calling_trigger_prop,
28010
- screen_param,
28011
+ parameters_raw_obj,
28011
28012
  NA_isInitP,
28012
28013
  NA_callingSourceP,
28013
28014
  calling_jobP,
@@ -28040,6 +28041,7 @@ func.datasource.create = async function (
28040
28041
  parameters_obj_inP,
28041
28042
  static_refreshP,
28042
28043
  worker_id,
28044
+ parameters_raw_obj,
28043
28045
  };
28044
28046
 
28045
28047
  var IS_DATASOURCE_REFRESH = null;
@@ -31573,6 +31575,13 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
31573
31575
  // $("[xu-ui-id='" + elm_to_delete + "']").remove();
31574
31576
  // });
31575
31577
 
31578
+ if (_session.engine_mode === 'live_preview') {
31579
+ console.info('========= refresh main info ==============');
31580
+ console.info('reason:', refresh_reason);
31581
+ console.info('element:', $elm);
31582
+ console.info('==========================================');
31583
+ }
31584
+
31576
31585
  return;
31577
31586
  }
31578
31587
  }
@@ -31847,19 +31856,6 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
31847
31856
  params_obj[val.data.parameter] = ret.result;
31848
31857
  }
31849
31858
  }
31850
-
31851
- // if (parameters_obj_inP?.[val.data.parameter].fx) {
31852
- // let ret = await func.expression.get(
31853
- // SESSION_ID,
31854
- // parameters_obj_inP?.[val.data.parameter].fx,
31855
- // dsSession,
31856
- // "parameters"
31857
- // );
31858
- // params_obj[val.data.parameter] = ret.result;
31859
- // } else {
31860
- // params_obj[val.data.parameter] =
31861
- // parameters_obj_inP?.[val.data.parameter].value;
31862
- // }
31863
31859
  continue;
31864
31860
  }
31865
31861
  console.warn(`Warning: Program ${_prog.properties.menuName} expected In parameter: ${val.data.parameter} but received null instead`);
@@ -36378,7 +36374,7 @@ func.events.execute = async function (
36378
36374
  var params_obj = {};
36379
36375
  if (_prog?.properties?.progParams) {
36380
36376
  for await (const [key, val] of Object.entries(_prog.properties.progParams)) {
36381
- if (!val.data.dir === 'in') continue;
36377
+ if (val.data.dir !== 'in') continue;
36382
36378
  if (typeof args.parameters_obj_inP?.[val.data.parameter] !== 'undefined') {
36383
36379
  if (args.parameters_obj_inP?.[val.data.parameter].fx) {
36384
36380
  let ret = await func.expression.get(SESSION_ID, args.parameters_obj_inP?.[val.data.parameter].fx, dsSession, 'parameters');