@jetbrains/ring-ui-built 6.0.81 → 6.0.83
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.
|
@@ -8,7 +8,7 @@ export interface AlertItem extends Partial<Omit<AlertProps, 'children'>> {
|
|
|
8
8
|
/**
|
|
9
9
|
* @name Alert Service
|
|
10
10
|
*/
|
|
11
|
-
declare class AlertService {
|
|
11
|
+
export declare class AlertService {
|
|
12
12
|
defaultTimeout: number;
|
|
13
13
|
showingAlerts: AlertItem[];
|
|
14
14
|
containerElement: HTMLDivElement;
|
|
@@ -6,7 +6,7 @@ import 'core-js/modules/es.array.map.js';
|
|
|
6
6
|
import 'core-js/modules/es.array.sort.js';
|
|
7
7
|
import 'core-js/modules/es.object.to-string.js';
|
|
8
8
|
import 'core-js/modules/es.string.includes.js';
|
|
9
|
-
import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft
|
|
9
|
+
import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft } from '../global/dom.js';
|
|
10
10
|
import { MaxHeight, Dimension, MinWidth, Directions } from './popup.consts.js';
|
|
11
11
|
import 'core-js/modules/es.array.iterator.js';
|
|
12
12
|
import 'core-js/modules/es.object.assign.js';
|
|
@@ -92,7 +92,7 @@ function getPositionStyles(popup, anchorRect, anchorLeft, anchorTop, offset) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
function verticalOverflow(styles, scrollingCoordinates, attrs) {
|
|
95
|
-
var containerHeight = attrs.container !== null ? attrs.container.clientHeight :
|
|
95
|
+
var containerHeight = attrs.container !== null ? attrs.container.clientHeight : document.documentElement.clientHeight;
|
|
96
96
|
var viewportMinX = scrollingCoordinates.top + attrs.sidePadding;
|
|
97
97
|
var viewportMaxX = scrollingCoordinates.top + containerHeight - attrs.sidePadding;
|
|
98
98
|
var topOverflow = Math.max(viewportMinX - styles.top, 0);
|
|
@@ -102,7 +102,7 @@ function verticalOverflow(styles, scrollingCoordinates, attrs) {
|
|
|
102
102
|
return topOverflow + bottomOverflow;
|
|
103
103
|
}
|
|
104
104
|
function horizontalOverflow(styles, scrollingCoordinates, attrs) {
|
|
105
|
-
var containerWidth = attrs.container !== null ? attrs.container.clientWidth :
|
|
105
|
+
var containerWidth = attrs.container !== null ? attrs.container.clientWidth : document.documentElement.clientWidth;
|
|
106
106
|
var viewportMinY = scrollingCoordinates.left + attrs.sidePadding;
|
|
107
107
|
var viewportMaxY = scrollingCoordinates.left + containerWidth - attrs.sidePadding;
|
|
108
108
|
var leftOverflow = Math.max(viewportMinY - styles.left, 0);
|