@progress/kendo-angular-popup 24.2.2 → 25.0.0-develop.1
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 +30 -30
- package/index.d.ts +681 -13
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/directives.d.ts +0 -23
- package/models/align-element-settings.interface.d.ts +0 -19
- package/models/align.interface.d.ts +0 -28
- package/models/collision.interface.d.ts +0 -18
- package/models/collision.type.d.ts +0 -11
- package/models/margin.interface.d.ts +0 -18
- package/models/offset.interface.d.ts +0 -18
- package/models/popup-animation.interface.d.ts +0 -32
- package/models/popup-ref.d.ts +0 -44
- package/models/popup-settings.d.ts +0 -65
- package/models/position-element-settings.interface.d.ts +0 -21
- package/models/position-mode.d.ts +0 -8
- package/models/position.interface.d.ts +0 -13
- package/package-metadata.d.ts +0 -9
- package/popup.component.d.ts +0 -157
- package/popup.module.d.ts +0 -41
- package/popup.service.d.ts +0 -128
- package/scale.d.ts +0 -13
- package/services/align.service.d.ts +0 -22
- package/services/animation.service.d.ts +0 -25
- package/services/dom.service.d.ts +0 -39
- package/services/position.service.d.ts +0 -19
- package/services/resize.service.d.ts +0 -21
- package/services/scrollable.service.d.ts +0 -27
- package/util.d.ts +0 -53
package/popup.service.d.ts
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ApplicationRef, ElementRef, InjectionToken, Injector } from '@angular/core';
|
|
6
|
-
import { PopupSettings } from './models/popup-settings';
|
|
7
|
-
import { PopupRef } from './models/popup-ref';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Injects the Popup container. If not set, uses the first root component of the application ([see example](https://www.telerik.com/kendo-angular-ui/components/popup/rendering-container)).
|
|
11
|
-
*
|
|
12
|
-
* > Use `POPUP_CONTAINER` only with the `PopupService` class ([see example](https://www.telerik.com/kendo-angular-ui/components/popup/service)).
|
|
13
|
-
*
|
|
14
|
-
* In standalone components:
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { Component } from '@angular/core';
|
|
19
|
-
* import { KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
|
|
20
|
-
*
|
|
21
|
-
* @Component({
|
|
22
|
-
* standalone: true,
|
|
23
|
-
* imports: [KENDO_POPUP],
|
|
24
|
-
* providers: [PopupService, {
|
|
25
|
-
* provide: POPUP_CONTAINER,
|
|
26
|
-
* useFactory: () => {
|
|
27
|
-
* //return the container ElementRef, where the popup will be injected
|
|
28
|
-
* return { nativeElement: document.body } as ElementRef;
|
|
29
|
-
* }
|
|
30
|
-
* }],
|
|
31
|
-
* selector: 'app-root',
|
|
32
|
-
* templateUrl: './app.component.html',
|
|
33
|
-
* })
|
|
34
|
-
* export class AppComponent {}
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* In NgModule-based applications:
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* import { PopupModule, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
|
|
42
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
43
|
-
* import { ElementRef, NgModule } from '@angular/core';
|
|
44
|
-
* import { AppComponent } from './app.component';
|
|
45
|
-
*
|
|
46
|
-
* _@NgModule({
|
|
47
|
-
* declarations: [AppComponent],
|
|
48
|
-
* imports: [BrowserModule, PopupModule],
|
|
49
|
-
* bootstrap: [AppComponent],
|
|
50
|
-
* providers: [{
|
|
51
|
-
* provide: POPUP_CONTAINER,
|
|
52
|
-
* useFactory: () => {
|
|
53
|
-
* //return the container ElementRef, where the popup will be injected
|
|
54
|
-
* return { nativeElement: document.body } as ElementRef;
|
|
55
|
-
* }
|
|
56
|
-
* }]
|
|
57
|
-
* })
|
|
58
|
-
* export class AppModule {}
|
|
59
|
-
*
|
|
60
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
export declare const POPUP_CONTAINER: InjectionToken<ElementRef<any>>;
|
|
64
|
-
/**
|
|
65
|
-
* Provides a service for opening Popup components dynamically ([see example](https://www.telerik.com/kendo-angular-ui/components/popup/angular-service)).
|
|
66
|
-
*
|
|
67
|
-
* @export
|
|
68
|
-
* @class PopupService
|
|
69
|
-
*/
|
|
70
|
-
export declare class PopupService {
|
|
71
|
-
private applicationRef;
|
|
72
|
-
private injector;
|
|
73
|
-
private container;
|
|
74
|
-
/**
|
|
75
|
-
* Gets the root view container for injecting the component.
|
|
76
|
-
*
|
|
77
|
-
* @returns {ComponentRef<any>} The root view container reference.
|
|
78
|
-
*/
|
|
79
|
-
private get rootViewContainer();
|
|
80
|
-
/**
|
|
81
|
-
* Gets the HTML element of the root component container.
|
|
82
|
-
*
|
|
83
|
-
* @returns {HTMLElement} The root container HTML element.
|
|
84
|
-
*/
|
|
85
|
-
get rootViewContainerNode(): HTMLElement;
|
|
86
|
-
constructor(applicationRef: ApplicationRef, injector: Injector, container: ElementRef);
|
|
87
|
-
/**
|
|
88
|
-
* Opens a Popup component. The Popup mounts in the DOM under the root application component.
|
|
89
|
-
*
|
|
90
|
-
* @param {PopupSettings} options - The options for the Popup.
|
|
91
|
-
* @returns {ComponentRef<PopupComponent>} A reference to the Popup object.
|
|
92
|
-
*/
|
|
93
|
-
open(options?: PopupSettings): PopupRef;
|
|
94
|
-
private appendPopup;
|
|
95
|
-
/**
|
|
96
|
-
* Gets the HTML element for a component reference.
|
|
97
|
-
*
|
|
98
|
-
* @param {ComponentRef<any>} componentRef The component reference.
|
|
99
|
-
* @returns {HTMLElement} The root HTML element of the component.
|
|
100
|
-
*/
|
|
101
|
-
private getComponentRootNode;
|
|
102
|
-
/**
|
|
103
|
-
* Creates a component reference from a `Component` class.
|
|
104
|
-
*
|
|
105
|
-
* @param {*} componentClass The component class.
|
|
106
|
-
* @param {*} nodes The nodes to project.
|
|
107
|
-
* @param {ViewContainerRef} container The container to use.
|
|
108
|
-
* @returns {ComponentRef<any>} The created component reference.
|
|
109
|
-
*/
|
|
110
|
-
private createComponent;
|
|
111
|
-
/**
|
|
112
|
-
* Projects the input options onto the component instance.
|
|
113
|
-
*
|
|
114
|
-
* @param {ComponentRef<any>} component The component reference.
|
|
115
|
-
* @param {*} options The options to project.
|
|
116
|
-
* @returns {ComponentRef<any>} The updated component reference.
|
|
117
|
-
*/
|
|
118
|
-
private projectComponentInputs;
|
|
119
|
-
/**
|
|
120
|
-
* Gets the component and nodes to append from the `content` option.
|
|
121
|
-
*
|
|
122
|
-
* @param {*} content The content to use.
|
|
123
|
-
* @returns {any} The component and nodes for projection.
|
|
124
|
-
*/
|
|
125
|
-
private contentFrom;
|
|
126
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, [null, null, { optional: true; }]>;
|
|
127
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PopupService>;
|
|
128
|
-
}
|
package/scale.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InjectionToken } from '@angular/core';
|
|
6
|
-
/**
|
|
7
|
-
* Use the `SCALE` injection token to set the document scale when you use a [scale transform](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale).
|
|
8
|
-
*
|
|
9
|
-
* The document or container scale is required to compute the popup position correctly. Set the value for `SCALE` to ensure correct positioning. See [Support for Document Scale](https://www.telerik.com/kendo-angular-ui/components/popup/document-scale).
|
|
10
|
-
*
|
|
11
|
-
* > You do not need to use this token for user-applied browser zoom.
|
|
12
|
-
*/
|
|
13
|
-
export declare const SCALE: InjectionToken<number>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { DOMService } from './dom.service';
|
|
6
|
-
import { OffsetPosition as Offset } from '@progress/kendo-popup-common';
|
|
7
|
-
import { AlignElementSettings } from '../models/align-element-settings.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class AlignService {
|
|
13
|
-
private _dom;
|
|
14
|
-
private scale;
|
|
15
|
-
constructor(_dom: DOMService, scale?: number);
|
|
16
|
-
alignElement(settings: AlignElementSettings): Offset;
|
|
17
|
-
private absoluteRect;
|
|
18
|
-
private elementScrollPosition;
|
|
19
|
-
private relativeRect;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlignService, [null, { optional: true; }]>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AlignService>;
|
|
22
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
6
|
-
import { AnimationBuilder } from '@angular/animations';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class AnimationService implements OnDestroy {
|
|
12
|
-
private animationBuilder;
|
|
13
|
-
start: EventEmitter<any>;
|
|
14
|
-
end: EventEmitter<any>;
|
|
15
|
-
private flip;
|
|
16
|
-
private player;
|
|
17
|
-
constructor(animationBuilder: AnimationBuilder);
|
|
18
|
-
play(element: any, options: any, flip: any): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
private playStates;
|
|
21
|
-
private getDirection;
|
|
22
|
-
private stopPlayer;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AnimationService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AnimationService>;
|
|
25
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { AlignSettings, BoundingRect, ElementRect, OffsetPosition, PositionSettings, ScrollInfo, ViewPort } from '@progress/kendo-popup-common';
|
|
7
|
-
import { Position } from '../models/position.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class DOMService {
|
|
13
|
-
private _dummy;
|
|
14
|
-
addOffset(current: OffsetPosition, addition: OffsetPosition): OffsetPosition;
|
|
15
|
-
addScroll(rect: ElementRect, scroll: ScrollInfo): ElementRect;
|
|
16
|
-
align(settings: AlignSettings): OffsetPosition;
|
|
17
|
-
boundingOffset(el: HTMLElement): BoundingRect;
|
|
18
|
-
getFontStyles(el: HTMLElement): any;
|
|
19
|
-
getWindow(): Window | null;
|
|
20
|
-
hasOffsetParent(el: ElementRef): boolean;
|
|
21
|
-
offset(el: HTMLElement): ElementRect | null;
|
|
22
|
-
offsetAtPoint(el: ElementRef, currentLocation: OffsetPosition): ElementRect | null;
|
|
23
|
-
nativeElement(el: any): HTMLElement | null;
|
|
24
|
-
position(element: HTMLElement, popup: ElementRef, scale?: number): ElementRect | null;
|
|
25
|
-
removeScroll(rect: ElementRect, scroll: ScrollInfo): ElementRect;
|
|
26
|
-
restrictToView(settings: PositionSettings): Position;
|
|
27
|
-
scrollPosition(el: ElementRef): ScrollInfo;
|
|
28
|
-
scrollableParents(el: HTMLElement): Array<HTMLElement>;
|
|
29
|
-
stackingElementOffset(el: ElementRef): ElementRect;
|
|
30
|
-
stackingElementScroll(el: ElementRef): ScrollInfo;
|
|
31
|
-
getRelativeContextElement(el: ElementRef): HTMLElement;
|
|
32
|
-
useRelativePosition(el: ElementRef): boolean;
|
|
33
|
-
windowViewPort(el: ElementRef): ViewPort;
|
|
34
|
-
zIndex(anchor: HTMLElement, container: ElementRef): number;
|
|
35
|
-
zoomLevel(): number;
|
|
36
|
-
isZoomed(): boolean;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DOMService, never>;
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DOMService>;
|
|
39
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PositionElementSettings } from '../models/position-element-settings.interface';
|
|
6
|
-
import { Position } from '../models/position.interface';
|
|
7
|
-
import { DOMService } from './dom.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class PositionService {
|
|
13
|
-
private _dom;
|
|
14
|
-
private scale;
|
|
15
|
-
constructor(_dom: DOMService, scale?: number);
|
|
16
|
-
positionElement(settings: PositionElementSettings): Position;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PositionService, [null, { optional: true; }]>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PositionService>;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgZone } from '@angular/core';
|
|
6
|
-
import { DOMService } from './dom.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class ResizeService {
|
|
12
|
-
private _dom;
|
|
13
|
-
private _zone;
|
|
14
|
-
private subscription;
|
|
15
|
-
constructor(_dom: DOMService, _zone: NgZone);
|
|
16
|
-
subscribe(callback: () => void): void;
|
|
17
|
-
unsubscribe(): void;
|
|
18
|
-
isUnsubscribed(): boolean;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeService>;
|
|
21
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgZone } from '@angular/core';
|
|
6
|
-
import { DOMService } from './dom.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare const THRESHOLD_DIFF = 1;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export declare class ScrollableService {
|
|
16
|
-
private _dom;
|
|
17
|
-
private _zone;
|
|
18
|
-
private element;
|
|
19
|
-
private subscription;
|
|
20
|
-
constructor(_dom: DOMService, _zone: NgZone);
|
|
21
|
-
forElement(element: HTMLElement): ScrollableService;
|
|
22
|
-
subscribe(callback: (visible: boolean) => void): void;
|
|
23
|
-
unsubscribe(): void;
|
|
24
|
-
isVisible(elem: HTMLElement, container: any): boolean;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableService, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollableService>;
|
|
27
|
-
}
|
package/util.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRect, OffsetPosition } from '@progress/kendo-popup-common';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const eitherRect: (rect: ElementRect, offset: OffsetPosition) => ElementRect;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const replaceOffset: (rect: ElementRect, offset: OffsetPosition) => ElementRect;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const removeStackingOffset: (rect: ElementRect, stackingOffset: ElementRect) => ElementRect;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export declare const isDifferentOffset: (oldOffset: OffsetPosition, newOffset: OffsetPosition) => boolean;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
export declare const isWindowAvailable: () => boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export declare const hasBoundingRect: (elem: HTMLElement) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export declare const OVERFLOW_REGEXP: RegExp;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export declare const scrollableParents: (element: HTMLElement) => HTMLElement[];
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
export declare const FRAME_DURATION: number;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
export declare const hasRelativeStackingContext: any;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
export declare const zIndex: (anchor: HTMLElement, container: HTMLElement) => number | null;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
export declare const scaleRect: (rect: ElementRect, scale: number) => ElementRect;
|