@trudb/tru-common-lib 0.2.88 → 0.2.90
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.
|
@@ -3997,6 +3997,7 @@ class TruDetailViewBase {
|
|
|
3997
3997
|
this.entities.splice(index, 1);
|
|
3998
3998
|
if (!this.entities.length) {
|
|
3999
3999
|
this.view.window.goToPreviousView();
|
|
4000
|
+
this.view.window.removeForwardViews();
|
|
4000
4001
|
}
|
|
4001
4002
|
}
|
|
4002
4003
|
return true;
|
|
@@ -7907,6 +7908,7 @@ class WindowConfig {
|
|
|
7907
7908
|
contextFilters = [];
|
|
7908
7909
|
parentDataContext = null;
|
|
7909
7910
|
parentView = null;
|
|
7911
|
+
removeForwardViews = () => { };
|
|
7910
7912
|
goToPreviousView = () => { };
|
|
7911
7913
|
closed = () => { };
|
|
7912
7914
|
destroy = () => {
|
|
@@ -8444,8 +8446,17 @@ class TruDesktopWindowStateMonitor {
|
|
|
8444
8446
|
onFocusIn(event) {
|
|
8445
8447
|
if (this.active) {
|
|
8446
8448
|
let overlayElement = this.overlayContainer.getContainerElement();
|
|
8447
|
-
if (overlayElement.childElementCount > 0)
|
|
8449
|
+
if (overlayElement.childElementCount > 0) {
|
|
8450
|
+
let rootElement = document.querySelector('app-root');
|
|
8451
|
+
if (rootElement)
|
|
8452
|
+
rootElement.setAttribute('inert', '');
|
|
8448
8453
|
return; // Ignore focus events when overlays are present
|
|
8454
|
+
}
|
|
8455
|
+
else {
|
|
8456
|
+
let rootElement = document.querySelector('app-root');
|
|
8457
|
+
if (rootElement)
|
|
8458
|
+
rootElement.removeAttribute('inert');
|
|
8459
|
+
}
|
|
8449
8460
|
setTimeout(() => {
|
|
8450
8461
|
let target = event.target;
|
|
8451
8462
|
this.focusableElements = this.getFocusableChildElements();
|