@naniteninja/dashboard-components-lib 2.1.44 → 2.1.46
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.
|
@@ -6526,35 +6526,8 @@ class LibDashboardSwipeableTabsComponent {
|
|
|
6526
6526
|
detectExternalOverlayVisible() {
|
|
6527
6527
|
if (typeof document === 'undefined')
|
|
6528
6528
|
return false;
|
|
6529
|
-
const selectors = [
|
|
6530
|
-
'ion-modal:not(.overlay-hidden)',
|
|
6531
|
-
'ion-alert:not(.overlay-hidden)',
|
|
6532
|
-
'ion-loading:not(.overlay-hidden)',
|
|
6533
|
-
'ion-action-sheet:not(.overlay-hidden)',
|
|
6534
|
-
'ion-popover:not(.overlay-hidden)',
|
|
6535
|
-
'.cdk-overlay-backdrop.cdk-overlay-backdrop-showing',
|
|
6536
|
-
'.p-dialog-mask',
|
|
6537
|
-
'.pref-match-manager-backdrop',
|
|
6538
|
-
'.confirm-dialog-overlay',
|
|
6539
|
-
];
|
|
6540
|
-
for (const s of selectors) {
|
|
6541
|
-
const nodes = document.body.querySelectorAll(s);
|
|
6542
|
-
if (this.anyVisible(nodes))
|
|
6543
|
-
return true;
|
|
6544
|
-
}
|
|
6545
|
-
if (this.anyVisible(document.body.querySelectorAll('[aria-modal="true"]')))
|
|
6546
|
-
return true;
|
|
6547
|
-
if (this.anyVisible(document.body.querySelectorAll('[role="dialog"]')))
|
|
6548
|
-
return true;
|
|
6549
6529
|
return this.isSettingsTriggerOccludedByOverlay();
|
|
6550
6530
|
}
|
|
6551
|
-
anyVisible(nodes) {
|
|
6552
|
-
for (const el of Array.from(nodes)) {
|
|
6553
|
-
if (this.isElementVisible(el))
|
|
6554
|
-
return true;
|
|
6555
|
-
}
|
|
6556
|
-
return false;
|
|
6557
|
-
}
|
|
6558
6531
|
isElementVisible(el) {
|
|
6559
6532
|
const style = getComputedStyle(el);
|
|
6560
6533
|
if (style.display === 'none')
|