@xuda.io/runtime-bundle 1.0.880 → 1.0.881

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.
@@ -30840,7 +30840,7 @@ func.datasource.update_changes_for_out_parameter = async function (SESSION_ID, d
30840
30840
  let _session = SESSION_OBJ[SESSION_ID];
30841
30841
  let _ds = _session.DS_GLB[dsSessionP];
30842
30842
  const _calling_ds = _session.DS_GLB[calling_dsP];
30843
- //
30843
+
30844
30844
  if (_ds.PARAM_OUT_INFO) {
30845
30845
  let data = {};
30846
30846
  for await (const [key, val] of Object.entries(_ds.PARAM_OUT_INFO)) {
@@ -31896,7 +31896,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31896
31896
  let is_dynamic_field = false;
31897
31897
  let field_prop;
31898
31898
  let bind_field_id;
31899
- let bind_field_exp;
31899
+
31900
31900
  const input_field_type = $elm.attr('type');
31901
31901
 
31902
31902
  const get_bind_field = async function (field_id) {
@@ -31907,11 +31907,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31907
31907
  field_prop = func.common.find_item_by_key(view_ret.progFields, 'field_id', field_id);
31908
31908
  if (!field_prop) {
31909
31909
  /// find the field everywhere in the chain Aug 30 2024
31910
- const ret_get_value = await func.datasource.get_value(
31911
- SESSION_ID,
31912
- field_id,
31913
- _dsP, // $elm.data().xuData.paramsP.dsSessionP
31914
- );
31910
+ const ret_get_value = await func.datasource.get_value(SESSION_ID, field_id, _dsP);
31915
31911
 
31916
31912
  if (ret_get_value.found) {
31917
31913
  _dsP = ret_get_value.dsSessionP;
@@ -31935,7 +31931,6 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31935
31931
  } catch (err) {
31936
31932
  console.error(err?.message || err);
31937
31933
  return {};
31938
- // return {};
31939
31934
  }
31940
31935
 
31941
31936
  const field_changed = async function (e) {
@@ -36695,10 +36690,9 @@ func.events.execute = async function (
36695
36690
  return;
36696
36691
  }
36697
36692
 
36698
- // args.prog_id = _viewId;
36699
36693
  if (_ds) {
36700
36694
  func.utils.debug.watch(SESSION_ID, calling_trigger_prop?.id, functionP, null, calling_trigger_prop, expCond);
36701
- // }
36695
+
36702
36696
  const ret = await func.datasource.create(SESSION_ID, await get_prog_id(), args.dataSourceNoP, args.parentDataSourceNoP, args.containerIdP, args.rowIdP, args.jobNoP, args.calling_trigger_prop, null, null, args.callingSourceP, args.calling_jobP, args.screen_dsP, args.is_panelP, params_obj);
36703
36697
 
36704
36698
  let _ds_new = _session.DS_GLB[ret.dsSessionP];
@@ -36706,31 +36700,6 @@ func.events.execute = async function (
36706
36700
  if (parameters && !_.isEmpty(parameters)) {
36707
36701
  await func.datasource.update_changes_for_out_parameter(SESSION_ID, _ds_new.dsSession, _ds.dsSession);
36708
36702
  }
36709
- // if (parameters && !_.isEmpty(parameters) && _ds_new.PARAM_OUT_INFO) {
36710
- // let data = {};
36711
- // for await (const [key, val] of Object.entries(
36712
- // _ds_new.PARAM_OUT_INFO
36713
- // )) {
36714
- // if (val.prop === "out") {
36715
- // try {
36716
- // const row_idx = func.common.find_ROWID_idx(
36717
- // _ds_new,
36718
- // _ds_new.currentRecordId
36719
- // );
36720
- // data[val.details] =
36721
- // _ds_new.data_feed.rows[row_idx][val.fieldId];
36722
- // } catch (err) {
36723
- // console.error(err);
36724
- // }
36725
- // }
36726
- // }
36727
- // if (!_.isEmpty(data)) {
36728
- // let datasource_changes = {
36729
- // [_ds.dsSession]: { [_ds.currentRecordId]: data },
36730
- // };
36731
- // await func.datasource.update(SESSION_ID, datasource_changes);
36732
- // }
36733
- // }
36734
36703
 
36735
36704
  func.events.delete_job(SESSION_ID, jobNoP);
36736
36705
  return _ds_new;
@@ -36785,6 +36754,13 @@ func.events.execute = async function (
36785
36754
  }
36786
36755
 
36787
36756
  await func.datasource.update(SESSION_ID, datasource_changes);
36757
+
36758
+ if (_ds.PARAM_OUT_INFO) {
36759
+ for await (const [dsSession_to_update, val] of Object.entries(datasource_changes)) {
36760
+ await func.datasource.update_changes_for_out_parameter(SESSION_ID, _ds.dsSession, dsSession_to_update);
36761
+ }
36762
+ }
36763
+
36788
36764
  if (jobNoP) func.events.delete_job(SESSION_ID, jobNoP);
36789
36765
  // return changes;
36790
36766
  },
@@ -38927,7 +38903,7 @@ func.index.init_document_listeners = function () {
38927
38903
  set_idle(0);
38928
38904
  }
38929
38905
 
38930
- if (_session.engine_mode === 'live_preview' || !_session.opt.enable_user_monitor) {
38906
+ if (_session.engine_mode === 'live_preview' || !_session.opt.enable_user_assist) {
38931
38907
  return;
38932
38908
  }
38933
38909