@xuda.io/runtime-bundle 1.0.1235 → 1.0.1237

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.
@@ -1649,10 +1649,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
1649
1649
 
1650
1650
  delete _ds.v.old_dataSource; // to eliminate parse error
1651
1651
  delete _ds.rows_found;
1652
- // _ds.raw_data = {};
1653
1652
  _ds.data_feed = {};
1654
1653
 
1655
- _ds.v.old_dataSource = _.cloneDeep(_ds);
1654
+ // _ds.v.old_dataSource = _.cloneDeep(_ds);
1655
+ _ds.v.old_dataSource = klona(_ds);
1656
1656
  } catch (err) {
1657
1657
  console.error('function: init_existing_dataSource - error');
1658
1658
  return;
@@ -3282,11 +3282,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3282
3282
  return Math.min(...arr.map(Number));
3283
3283
  }
3284
3284
 
3285
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
3285
+ // await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
3286
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
3286
3287
  // await removed from the below function cause to dead lock Mar 3 25
3287
3288
  await func.UI.screen.refresh_screen(
3288
3289
  SESSION_ID,
3289
- _.cloneDeep(fields_changed),
3290
+ klona(fields_changed), // _.cloneDeep(fields_changed),
3290
3291
  null,
3291
3292
  datasource_changed[0], // refresh the current datasource only
3292
3293
  );
@@ -3937,7 +3938,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
3937
3938
  };
3938
3939
  _ds.viewEventExec_arr = {};
3939
3940
 
3940
- var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
3941
+ // var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
3942
+ var view = klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
3941
3943
 
3942
3944
  _ds.v.dataSourceSrcType = view.dataSourceSrcType;
3943
3945
 
@@ -1649,10 +1649,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
1649
1649
 
1650
1650
  delete _ds.v.old_dataSource; // to eliminate parse error
1651
1651
  delete _ds.rows_found;
1652
- // _ds.raw_data = {};
1653
1652
  _ds.data_feed = {};
1654
1653
 
1655
- _ds.v.old_dataSource = _.cloneDeep(_ds);
1654
+ // _ds.v.old_dataSource = _.cloneDeep(_ds);
1655
+ _ds.v.old_dataSource = klona(_ds);
1656
1656
  } catch (err) {
1657
1657
  console.error('function: init_existing_dataSource - error');
1658
1658
  return;
@@ -3282,11 +3282,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3282
3282
  return Math.min(...arr.map(Number));
3283
3283
  }
3284
3284
 
3285
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
3285
+ // await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
3286
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
3286
3287
  // await removed from the below function cause to dead lock Mar 3 25
3287
3288
  await func.UI.screen.refresh_screen(
3288
3289
  SESSION_ID,
3289
- _.cloneDeep(fields_changed),
3290
+ klona(fields_changed), // _.cloneDeep(fields_changed),
3290
3291
  null,
3291
3292
  datasource_changed[0], // refresh the current datasource only
3292
3293
  );
@@ -3937,7 +3938,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
3937
3938
  };
3938
3939
  _ds.viewEventExec_arr = {};
3939
3940
 
3940
- var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
3941
+ // var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
3942
+ var view = klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
3941
3943
 
3942
3944
  _ds.v.dataSourceSrcType = view.dataSourceSrcType;
3943
3945