@progress/kendo-angular-popup 25.2.0-develop.1 → 25.2.0-develop.10
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/fesm2022/progress-kendo-angular-popup.mjs +16 -15
- package/index.d.ts +2 -2
- package/package-metadata.mjs +2 -2
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Injectable, InjectionToken, Inject, Optional, EventEmitter, isDevMode, signal, afterNextRender,
|
|
6
|
+
import { Injectable, InjectionToken, Inject, Optional, EventEmitter, isDevMode, signal, afterNextRender, ViewChild, Output, Input, ChangeDetectionStrategy, Component, EnvironmentInjector, createComponent, TemplateRef, NgModule } from '@angular/core';
|
|
7
7
|
import { siblingContainer, parents, addScroll, align, boundingOffset, offset, positionWithScroll, removeScroll, restrictToView, scrollPosition, getWindowViewPort } from '@progress/kendo-popup-common';
|
|
8
8
|
import * as i1$1 from '@progress/kendo-angular-common';
|
|
9
9
|
import { isDocumentAvailable, hasObservers, ResizeSensorComponent, KENDO_RESIZESENSOR, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
@@ -274,21 +274,21 @@ class DOMService {
|
|
|
274
274
|
scrollableParents(el) {
|
|
275
275
|
return scrollableParents(el);
|
|
276
276
|
}
|
|
277
|
-
stackingElementOffset(el) {
|
|
278
|
-
const
|
|
279
|
-
if (!
|
|
277
|
+
stackingElementOffset(el, relativeContextElement) {
|
|
278
|
+
const contextElement = relativeContextElement !== undefined ? relativeContextElement : this.getRelativeContextElement(el);
|
|
279
|
+
if (!contextElement) {
|
|
280
280
|
return null;
|
|
281
281
|
}
|
|
282
|
-
return offset(
|
|
282
|
+
return offset(contextElement);
|
|
283
283
|
}
|
|
284
|
-
stackingElementScroll(el) {
|
|
285
|
-
const
|
|
286
|
-
if (!
|
|
284
|
+
stackingElementScroll(el, relativeContextElement) {
|
|
285
|
+
const contextElement = relativeContextElement !== undefined ? relativeContextElement : this.getRelativeContextElement(el);
|
|
286
|
+
if (!contextElement) {
|
|
287
287
|
return { x: 0, y: 0 };
|
|
288
288
|
}
|
|
289
289
|
return {
|
|
290
|
-
x:
|
|
291
|
-
y:
|
|
290
|
+
x: contextElement.scrollLeft,
|
|
291
|
+
y: contextElement.scrollTop
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
getRelativeContextElement(el) {
|
|
@@ -367,12 +367,13 @@ class AlignService {
|
|
|
367
367
|
const scrollPos = this.elementScrollPosition(anchor, element);
|
|
368
368
|
const rect = eitherRect(this._dom.offset(anchor), offset);
|
|
369
369
|
const stackScale = 2 * scale;
|
|
370
|
-
const
|
|
370
|
+
const relativeContextElement = this._dom.getRelativeContextElement(element);
|
|
371
|
+
const stackScroll = this._dom.stackingElementScroll(element, relativeContextElement);
|
|
371
372
|
if (scale !== 1 && stackScroll) {
|
|
372
373
|
stackScroll.x /= stackScale;
|
|
373
374
|
stackScroll.y /= stackScale;
|
|
374
375
|
}
|
|
375
|
-
const stackOffset = this._dom.stackingElementOffset(element);
|
|
376
|
+
const stackOffset = this._dom.stackingElementOffset(element, relativeContextElement);
|
|
376
377
|
if (scale !== 1 && stackOffset) {
|
|
377
378
|
stackOffset.left /= stackScale;
|
|
378
379
|
stackOffset.top /= stackScale;
|
|
@@ -704,8 +705,8 @@ const packageMetadata = {
|
|
|
704
705
|
productName: 'Kendo UI for Angular',
|
|
705
706
|
productCode: 'KENDOUIANGULAR',
|
|
706
707
|
productCodes: ['KENDOUIANGULAR'],
|
|
707
|
-
publishDate:
|
|
708
|
-
version: '25.2.0-develop.
|
|
708
|
+
publishDate: 1789740077,
|
|
709
|
+
version: '25.2.0-develop.10',
|
|
709
710
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
710
711
|
};
|
|
711
712
|
|
|
@@ -891,7 +892,7 @@ class PopupComponent {
|
|
|
891
892
|
this.reposition();
|
|
892
893
|
}
|
|
893
894
|
ngAfterViewChecked() {
|
|
894
|
-
|
|
895
|
+
afterNextRender(() => this.reposition(), { injector: this.injector });
|
|
895
896
|
}
|
|
896
897
|
ngOnDestroy() {
|
|
897
898
|
this.anchorViewportLeave.complete();
|
package/index.d.ts
CHANGED
|
@@ -201,8 +201,8 @@ declare class DOMService {
|
|
|
201
201
|
restrictToView(settings: PositionSettings): Position;
|
|
202
202
|
scrollPosition(el: ElementRef): ScrollInfo;
|
|
203
203
|
scrollableParents(el: HTMLElement): Array<HTMLElement>;
|
|
204
|
-
stackingElementOffset(el: ElementRef): ElementRect;
|
|
205
|
-
stackingElementScroll(el: ElementRef): ScrollInfo;
|
|
204
|
+
stackingElementOffset(el: ElementRef, relativeContextElement?: HTMLElement): ElementRect;
|
|
205
|
+
stackingElementScroll(el: ElementRef, relativeContextElement?: HTMLElement): ScrollInfo;
|
|
206
206
|
getRelativeContextElement(el: ElementRef): HTMLElement;
|
|
207
207
|
useRelativePosition(el: ElementRef): boolean;
|
|
208
208
|
windowViewPort(el: ElementRef): ViewPort;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.2.0-develop.
|
|
10
|
+
"publishDate": 1789740077,
|
|
11
|
+
"version": "25.2.0-develop.10",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-popup",
|
|
3
|
-
"version": "25.2.0-develop.
|
|
3
|
+
"version": "25.2.0-develop.10",
|
|
4
4
|
"description": "Kendo UI Angular Popup component - an easily customized popup from the most trusted provider of professional Angular components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"package": {
|
|
35
35
|
"productName": "Kendo UI for Angular",
|
|
36
36
|
"productCode": "KENDOUIANGULAR",
|
|
37
|
-
"publishDate":
|
|
37
|
+
"publishDate": 1789740077,
|
|
38
38
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@angular/common": "20 - 22",
|
|
44
44
|
"@angular/core": "20 - 22",
|
|
45
45
|
"@angular/platform-browser": "20 - 22",
|
|
46
|
-
"@progress/kendo-angular-common": "25.2.0-develop.
|
|
46
|
+
"@progress/kendo-angular-common": "25.2.0-develop.10",
|
|
47
47
|
"@progress/kendo-licensing": "^1.11.0",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@progress/kendo-popup-common": "1.9.5",
|
|
52
52
|
"tslib": "^2.3.1",
|
|
53
|
-
"@progress/kendo-angular-schematics": "25.2.0-develop.
|
|
53
|
+
"@progress/kendo-angular-schematics": "25.2.0-develop.10"
|
|
54
54
|
},
|
|
55
55
|
"schematics": "./schematics/collection.json",
|
|
56
56
|
"module": "fesm2022/progress-kendo-angular-popup.mjs",
|