@trudb/tru-common-lib 0.1.128 → 0.1.129

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.
@@ -5308,8 +5308,8 @@ class TruDesktopWindow {
5308
5308
  if (this.window.views === undefined)
5309
5309
  return;
5310
5310
  var length = this.window.views.length;
5311
- this.disablePrevious = !!(this.window.views[0].active$.getValue() || length === 1);
5312
- this.disableNext = !!(this.window.views[length - 1].active$.getValue() || length === 1);
5311
+ this.disablePrevious = !!(this.window.views[0].active || length === 1);
5312
+ this.disableNext = !!(this.window.views[length - 1].active || length === 1);
5313
5313
  };
5314
5314
  /**
5315
5315
  * @tru.doc function
@@ -5449,7 +5449,7 @@ class TruDesktopWindow {
5449
5449
  addView = (viewConfig) => {
5450
5450
  this.removeForwardViews();
5451
5451
  var activeView = this.desktopCtrl.getActiveView(this.window);
5452
- activeView.active(false);
5452
+ activeView.active = false;
5453
5453
  viewConfig.window = this;
5454
5454
  this.window.views.push(viewConfig);
5455
5455
  this.updateNavigationState();
@@ -5480,8 +5480,8 @@ class TruDesktopWindow {
5480
5480
  if (this.cancelEditingOnNavigation)
5481
5481
  this.desktopCtrl.getActiveView(this.window).isEditing = false;
5482
5482
  let activeView = this.desktopCtrl.getActiveView(this.window);
5483
- activeView.active(false);
5484
- this.window.views[0].active(true);
5483
+ activeView.active = false;
5484
+ this.window.views[0].active = true;
5485
5485
  this.updateNavigationState();
5486
5486
  };
5487
5487
  /**
@@ -5498,8 +5498,8 @@ class TruDesktopWindow {
5498
5498
  if (this.cancelEditingOnNavigation)
5499
5499
  this.desktopCtrl.getActiveView(this.window).isEditing = false;
5500
5500
  let activeView = this.desktopCtrl.getActiveView(this.window);
5501
- activeView.active(false);
5502
- this.window.views[this.window.views.length - 1].active(true);
5501
+ activeView.active = false;
5502
+ this.window.views[this.window.views.length - 1].active = true;
5503
5503
  this.updateNavigationState();
5504
5504
  };
5505
5505
  ;
@@ -5610,7 +5610,7 @@ class TruDesktopWindow {
5610
5610
  if (this.cancelEditingOnNavigation)
5611
5611
  activeView.isEditing = false;
5612
5612
  activeView.active(false);
5613
- this.window.views[activeViewIndex - 1].active(true);
5613
+ this.window.views[activeViewIndex - 1].active = true;
5614
5614
  this.updateNavigationState();
5615
5615
  };
5616
5616
  nextView = () => {
@@ -5621,7 +5621,7 @@ class TruDesktopWindow {
5621
5621
  if (this.cancelEditingOnNavigation)
5622
5622
  activeView.isEditing = false;
5623
5623
  activeView.active(false);
5624
- this.window.views[activeViewIndex + 1].active(true);
5624
+ this.window.views[activeViewIndex + 1].active = true;
5625
5625
  this.updateNavigationState();
5626
5626
  };
5627
5627
  save = () => {
@@ -5974,7 +5974,7 @@ class TruDesktop {
5974
5974
  getActiveView = (wdw) => {
5975
5975
  var activeView = null;
5976
5976
  wdw.views.forEach((view) => {
5977
- if (view.active$.getValue() === true) {
5977
+ if (view.active === true) {
5978
5978
  activeView = view;
5979
5979
  }
5980
5980
  });