@trudb/tru-common-lib 0.0.418 → 0.0.420
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.
- package/esm2020/lib/base-views/search/tru-search-view-base.mjs +2 -1
- package/esm2020/lib/components/desktop/tru-desktop.mjs +2 -2
- package/esm2020/lib/components/desktop/window/tru-desktop-window.mjs +12 -12
- package/fesm2015/trudb-tru-common-lib.mjs +13 -12
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +13 -12
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -479,6 +479,7 @@ class TruSearchViewBase {
|
|
|
479
479
|
truWindowAddViewEventArgs.entityIndex = gridConfig.rowIndex;
|
|
480
480
|
truWindowAddViewEventArgs.componentName = this.tableName + 'DetailView';
|
|
481
481
|
this.truWindowEventHandler.addView(truWindowAddViewEventArgs);
|
|
482
|
+
this.view.active(false);
|
|
482
483
|
}
|
|
483
484
|
else {
|
|
484
485
|
alert(this.tablePluralLabel + ' does not have a detail view.');
|
|
@@ -3108,8 +3109,8 @@ class TruDesktopWindow {
|
|
|
3108
3109
|
if (this.window.views === undefined)
|
|
3109
3110
|
return;
|
|
3110
3111
|
var length = this.window.views.length;
|
|
3111
|
-
this.disablePrevious = !!(this.window.views[0].active || length === 1);
|
|
3112
|
-
this.disableNext = !!(this.window.views[length - 1].
|
|
3112
|
+
this.disablePrevious = !!(this.window.views[0].active$.getValue() || length === 1);
|
|
3113
|
+
this.disableNext = !!(this.window.views[length - 1].onActive.getValue() || length === 1);
|
|
3113
3114
|
};
|
|
3114
3115
|
/**
|
|
3115
3116
|
* @tru.doc function
|
|
@@ -3249,7 +3250,7 @@ class TruDesktopWindow {
|
|
|
3249
3250
|
this.addView = (viewConfigOverlay) => {
|
|
3250
3251
|
this.removeForwardViews();
|
|
3251
3252
|
var activeView = this.desktopCtrl.getActiveView(this.window);
|
|
3252
|
-
activeView.active
|
|
3253
|
+
activeView.active(false);
|
|
3253
3254
|
var viewConfig = this.desktopCtrl.getDesktop().viewConfig;
|
|
3254
3255
|
var viewConfigInstance = Object.assign({}, viewConfig);
|
|
3255
3256
|
var extended = Object.assign(viewConfigInstance, viewConfigOverlay);
|
|
@@ -3283,8 +3284,8 @@ class TruDesktopWindow {
|
|
|
3283
3284
|
if (this.cancelEditingOnNavigation)
|
|
3284
3285
|
this.desktopCtrl.getActiveView(this.window).isEditing = false;
|
|
3285
3286
|
let activeView = this.desktopCtrl.getActiveView(this.window);
|
|
3286
|
-
activeView.active
|
|
3287
|
-
this.window.views[0].active
|
|
3287
|
+
activeView.active(false);
|
|
3288
|
+
this.window.views[0].active(true);
|
|
3288
3289
|
this.updateNavigationState();
|
|
3289
3290
|
};
|
|
3290
3291
|
/**
|
|
@@ -3301,8 +3302,8 @@ class TruDesktopWindow {
|
|
|
3301
3302
|
if (this.cancelEditingOnNavigation)
|
|
3302
3303
|
this.desktopCtrl.getActiveView(this.window).isEditing = false;
|
|
3303
3304
|
let activeView = this.desktopCtrl.getActiveView(this.window);
|
|
3304
|
-
activeView.active
|
|
3305
|
-
this.window.views[this.window.views.length - 1].active
|
|
3305
|
+
activeView.active(false);
|
|
3306
|
+
this.window.views[this.window.views.length - 1].active(true);
|
|
3306
3307
|
this.updateNavigationState();
|
|
3307
3308
|
};
|
|
3308
3309
|
this.resizeEventHandler = () => {
|
|
@@ -3369,8 +3370,8 @@ class TruDesktopWindow {
|
|
|
3369
3370
|
var activeViewIndex = this.window.views.indexOf(activeView);
|
|
3370
3371
|
if (this.cancelEditingOnNavigation)
|
|
3371
3372
|
activeView.isEditing = false;
|
|
3372
|
-
activeView.active
|
|
3373
|
-
this.window.views[activeViewIndex - 1].active
|
|
3373
|
+
activeView.active(false);
|
|
3374
|
+
this.window.views[activeViewIndex - 1].active(true);
|
|
3374
3375
|
this.updateNavigationState();
|
|
3375
3376
|
};
|
|
3376
3377
|
this.nextView = () => {
|
|
@@ -3380,8 +3381,8 @@ class TruDesktopWindow {
|
|
|
3380
3381
|
var activeViewIndex = this.window.views.indexOf(activeView);
|
|
3381
3382
|
if (this.cancelEditingOnNavigation)
|
|
3382
3383
|
activeView.isEditing = false;
|
|
3383
|
-
activeView.active
|
|
3384
|
-
this.window.views[activeViewIndex + 1].active
|
|
3384
|
+
activeView.active(false);
|
|
3385
|
+
this.window.views[activeViewIndex + 1].active(true);
|
|
3385
3386
|
this.updateNavigationState();
|
|
3386
3387
|
};
|
|
3387
3388
|
this.save = () => {
|
|
@@ -3700,7 +3701,7 @@ class TruDesktop {
|
|
|
3700
3701
|
this.getActiveView = (wdw) => {
|
|
3701
3702
|
var activeView = null;
|
|
3702
3703
|
wdw.views.forEach((view) => {
|
|
3703
|
-
if (view.active === true) {
|
|
3704
|
+
if (view.active$.getValue() === true) {
|
|
3704
3705
|
activeView = view;
|
|
3705
3706
|
}
|
|
3706
3707
|
});
|