@xuda.io/runtime-bundle 1.0.701 → 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.
@@ -2899,7 +2899,7 @@ func.datasource.create = async function (
2899
2899
  rowIdP,
2900
2900
  jobNoP,
2901
2901
  calling_trigger_prop,
2902
- screen_param,
2902
+ parameters_raw_obj,
2903
2903
  NA_isInitP,
2904
2904
  NA_callingSourceP,
2905
2905
  calling_jobP,
@@ -2932,6 +2932,7 @@ func.datasource.create = async function (
2932
2932
  parameters_obj_inP,
2933
2933
  static_refreshP,
2934
2934
  worker_id,
2935
+ parameters_raw_obj,
2935
2936
  };
2936
2937
 
2937
2938
  var IS_DATASOURCE_REFRESH = null;
@@ -9373,7 +9374,7 @@ func.events.execute = async function (
9373
9374
  var params_obj = {};
9374
9375
  if (_prog?.properties?.progParams) {
9375
9376
  for await (const [key, val] of Object.entries(_prog.properties.progParams)) {
9376
- if (!val.data.dir === 'in') continue;
9377
+ if (val.data.dir !== 'in') continue;
9377
9378
  if (typeof args.parameters_obj_inP?.[val.data.parameter] !== 'undefined') {
9378
9379
  if (args.parameters_obj_inP?.[val.data.parameter].fx) {
9379
9380
  let ret = await func.expression.get(SESSION_ID, args.parameters_obj_inP?.[val.data.parameter].fx, dsSession, 'parameters');
@@ -11893,6 +11894,13 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11893
11894
  // $("[xu-ui-id='" + elm_to_delete + "']").remove();
11894
11895
  // });
11895
11896
 
11897
+ if (_session.engine_mode === 'live_preview') {
11898
+ console.info('========= refresh main info ==============');
11899
+ console.info('reason:', refresh_reason);
11900
+ console.info('element:', $elm);
11901
+ console.info('==========================================');
11902
+ }
11903
+
11896
11904
  return;
11897
11905
  }
11898
11906
  }
@@ -12167,19 +12175,6 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
12167
12175
  params_obj[val.data.parameter] = ret.result;
12168
12176
  }
12169
12177
  }
12170
-
12171
- // if (parameters_obj_inP?.[val.data.parameter].fx) {
12172
- // let ret = await func.expression.get(
12173
- // SESSION_ID,
12174
- // parameters_obj_inP?.[val.data.parameter].fx,
12175
- // dsSession,
12176
- // "parameters"
12177
- // );
12178
- // params_obj[val.data.parameter] = ret.result;
12179
- // } else {
12180
- // params_obj[val.data.parameter] =
12181
- // parameters_obj_inP?.[val.data.parameter].value;
12182
- // }
12183
12178
  continue;
12184
12179
  }
12185
12180
  console.warn(`Warning: Program ${_prog.properties.menuName} expected In parameter: ${val.data.parameter} but received null instead`);
@@ -2900,7 +2900,7 @@ func.datasource.create = async function (
2900
2900
  rowIdP,
2901
2901
  jobNoP,
2902
2902
  calling_trigger_prop,
2903
- screen_param,
2903
+ parameters_raw_obj,
2904
2904
  NA_isInitP,
2905
2905
  NA_callingSourceP,
2906
2906
  calling_jobP,
@@ -2933,6 +2933,7 @@ func.datasource.create = async function (
2933
2933
  parameters_obj_inP,
2934
2934
  static_refreshP,
2935
2935
  worker_id,
2936
+ parameters_raw_obj,
2936
2937
  };
2937
2938
 
2938
2939
  var IS_DATASOURCE_REFRESH = null;
@@ -9615,6 +9616,13 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9615
9616
  // $("[xu-ui-id='" + elm_to_delete + "']").remove();
9616
9617
  // });
9617
9618
 
9619
+ if (_session.engine_mode === 'live_preview') {
9620
+ console.info('========= refresh main info ==============');
9621
+ console.info('reason:', refresh_reason);
9622
+ console.info('element:', $elm);
9623
+ console.info('==========================================');
9624
+ }
9625
+
9618
9626
  return;
9619
9627
  }
9620
9628
  }
@@ -9889,19 +9897,6 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
9889
9897
  params_obj[val.data.parameter] = ret.result;
9890
9898
  }
9891
9899
  }
9892
-
9893
- // if (parameters_obj_inP?.[val.data.parameter].fx) {
9894
- // let ret = await func.expression.get(
9895
- // SESSION_ID,
9896
- // parameters_obj_inP?.[val.data.parameter].fx,
9897
- // dsSession,
9898
- // "parameters"
9899
- // );
9900
- // params_obj[val.data.parameter] = ret.result;
9901
- // } else {
9902
- // params_obj[val.data.parameter] =
9903
- // parameters_obj_inP?.[val.data.parameter].value;
9904
- // }
9905
9900
  continue;
9906
9901
  }
9907
9902
  console.warn(`Warning: Program ${_prog.properties.menuName} expected In parameter: ${val.data.parameter} but received null instead`);
@@ -13466,7 +13461,7 @@ func.events.execute = async function (
13466
13461
  var params_obj = {};
13467
13462
  if (_prog?.properties?.progParams) {
13468
13463
  for await (const [key, val] of Object.entries(_prog.properties.progParams)) {
13469
- if (!val.data.dir === 'in') continue;
13464
+ if (val.data.dir !== 'in') continue;
13470
13465
  if (typeof args.parameters_obj_inP?.[val.data.parameter] !== 'undefined') {
13471
13466
  if (args.parameters_obj_inP?.[val.data.parameter].fx) {
13472
13467
  let ret = await func.expression.get(SESSION_ID, args.parameters_obj_inP?.[val.data.parameter].fx, dsSession, 'parameters');