@trudb/tru-common-lib 0.0.421 → 0.0.423

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.
@@ -2809,6 +2809,12 @@ class WindowConfig {
2809
2809
  *
2810
2810
  */
2811
2811
  class ViewConfig {
2812
+ onActive() {
2813
+ return this.active$;
2814
+ }
2815
+ active(value) {
2816
+ this.active$.next(value);
2817
+ }
2812
2818
  constructor() {
2813
2819
  this.active$ = new BehaviorSubject(true);
2814
2820
  this.entities = undefined;
@@ -2819,12 +2825,6 @@ class ViewConfig {
2819
2825
  this.componentName = undefined;
2820
2826
  this.windowConfig = null;
2821
2827
  }
2822
- onActive() {
2823
- return this.active$;
2824
- }
2825
- active(value) {
2826
- this.active$.next(value);
2827
- }
2828
2828
  }
2829
2829
  ;
2830
2830
 
@@ -3104,7 +3104,7 @@ class TruDesktopWindow {
3104
3104
  return;
3105
3105
  var length = this.window.views.length;
3106
3106
  this.disablePrevious = !!(this.window.views[0].active$.getValue() || length === 1);
3107
- this.disableNext = !!(this.window.views[length - 1].onActive.getValue() || length === 1);
3107
+ this.disableNext = !!(this.window.views[length - 1].active$.getValue() || length === 1);
3108
3108
  };
3109
3109
  /**
3110
3110
  * @tru.doc function
@@ -3827,9 +3827,9 @@ class TruDesktop {
3827
3827
  this.configureViews = (windowConfigOverlays, configuredWindow) => {
3828
3828
  let configuredViews = [];
3829
3829
  windowConfigOverlays.views.forEach((view) => {
3830
- let viewConfigInstance = Object.assign({}, this.desktop.viewConfig);
3830
+ let viewConfigInstance = structuredClone(this.desktop.viewConfig);
3831
3831
  //viewConfigInstance.globals = this.options.globals;
3832
- let configuredView = Object.assign(viewConfigInstance, view);
3832
+ let configuredView = structuredClone(viewConfigInstance, view);
3833
3833
  configuredView.window = configuredWindow;
3834
3834
  configuredViews.push(configuredView);
3835
3835
  });