@progress/kendo-angular-popup 24.0.4-develop.1 → 24.1.0
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/NOTICE.txt +410 -1839
- package/fesm2022/progress-kendo-angular-popup.mjs +36 -47
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/popup.service.d.ts +3 -11
|
@@ -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, ViewChild, Output, Input, Component, TemplateRef, NgModule } from '@angular/core';
|
|
6
|
+
import { Injectable, InjectionToken, Inject, Optional, EventEmitter, isDevMode, ViewChild, Output, Input, 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';
|
|
@@ -322,10 +322,10 @@ class DOMService {
|
|
|
322
322
|
isZoomed() {
|
|
323
323
|
return this.zoomLevel() > 1;
|
|
324
324
|
}
|
|
325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
326
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
325
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
326
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DOMService });
|
|
327
327
|
}
|
|
328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DOMService, decorators: [{
|
|
329
329
|
type: Injectable
|
|
330
330
|
}] });
|
|
331
331
|
|
|
@@ -386,10 +386,10 @@ class AlignService {
|
|
|
386
386
|
const rect = eitherRect(this._dom.position(anchor, element, scale), offset);
|
|
387
387
|
return scaleRect(rect, scale);
|
|
388
388
|
}
|
|
389
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
390
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
389
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlignService, deps: [{ token: DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
390
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlignService });
|
|
391
391
|
}
|
|
392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlignService, decorators: [{
|
|
393
393
|
type: Injectable
|
|
394
394
|
}], ctorParameters: () => [{ type: DOMService }, { type: undefined, decorators: [{
|
|
395
395
|
type: Inject,
|
|
@@ -435,10 +435,10 @@ class PositionService {
|
|
|
435
435
|
offset: offset
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
439
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
438
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PositionService, deps: [{ token: DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
439
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PositionService });
|
|
440
440
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PositionService, decorators: [{
|
|
442
442
|
type: Injectable
|
|
443
443
|
}], ctorParameters: () => [{ type: DOMService }, { type: undefined, decorators: [{
|
|
444
444
|
type: Inject,
|
|
@@ -477,10 +477,10 @@ class ResizeService {
|
|
|
477
477
|
isUnsubscribed() {
|
|
478
478
|
return this.subscription && this.subscription.closed;
|
|
479
479
|
}
|
|
480
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
481
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
480
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ResizeService, deps: [{ token: DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
481
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ResizeService });
|
|
482
482
|
}
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ResizeService, decorators: [{
|
|
484
484
|
type: Injectable
|
|
485
485
|
}], ctorParameters: () => [{ type: DOMService }, { type: i0.NgZone }] });
|
|
486
486
|
|
|
@@ -547,10 +547,10 @@ class ScrollableService {
|
|
|
547
547
|
}
|
|
548
548
|
return true;
|
|
549
549
|
}
|
|
550
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
551
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
550
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ScrollableService, deps: [{ token: DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
551
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ScrollableService });
|
|
552
552
|
}
|
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ScrollableService, decorators: [{
|
|
554
554
|
type: Injectable
|
|
555
555
|
}], ctorParameters: () => [{ type: DOMService }, { type: i0.NgZone }] });
|
|
556
556
|
|
|
@@ -678,10 +678,10 @@ class AnimationService {
|
|
|
678
678
|
this.player = null;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
682
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AnimationService, deps: [{ token: i1.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
682
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AnimationService });
|
|
683
683
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AnimationService, decorators: [{
|
|
685
685
|
type: Injectable
|
|
686
686
|
}], ctorParameters: () => [{ type: i1.AnimationBuilder }] });
|
|
687
687
|
|
|
@@ -693,8 +693,8 @@ const packageMetadata = {
|
|
|
693
693
|
productName: 'Kendo UI for Angular',
|
|
694
694
|
productCode: 'KENDOUIANGULAR',
|
|
695
695
|
productCodes: ['KENDOUIANGULAR'],
|
|
696
|
-
publishDate:
|
|
697
|
-
version: '24.0
|
|
696
|
+
publishDate: 1780593636,
|
|
697
|
+
version: '24.1.0',
|
|
698
698
|
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'
|
|
699
699
|
};
|
|
700
700
|
|
|
@@ -982,8 +982,8 @@ class PopupComponent {
|
|
|
982
982
|
get hasCustomOffset() {
|
|
983
983
|
return this.offset.left !== DEFAULT_OFFSET.left || this.offset.top !== DEFAULT_OFFSET.top;
|
|
984
984
|
}
|
|
985
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
986
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
985
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: AlignService }, { token: DOMService }, { token: PositionService }, { token: ResizeService }, { token: ScrollableService }, { token: AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
986
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PopupComponent, isStandalone: true, selector: "kendo-popup", inputs: { animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", collision: "collision", popupAlign: "popupAlign", copyAnchorStyles: "copyAnchorStyles", popupClass: "popupClass", positionMode: "positionMode", offset: "offset", margin: "margin" }, outputs: { anchorViewportLeave: "anchorViewportLeave", close: "close", open: "open", positionChange: "positionChange" }, providers: [AlignService, AnimationService, DOMService, PositionService, ResizeService, ScrollableService], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], exportAs: ["kendo-popup"], usesOnChanges: true, ngImport: i0, template: `
|
|
987
987
|
<div class="k-child-animation-container">
|
|
988
988
|
<div [class.k-popup]="renderDefaultClass" [ngClass]="popupClass" #container>
|
|
989
989
|
<ng-content></ng-content>
|
|
@@ -996,7 +996,7 @@ class PopupComponent {
|
|
|
996
996
|
</div>
|
|
997
997
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
|
998
998
|
}
|
|
999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupComponent, decorators: [{
|
|
1000
1000
|
type: Component,
|
|
1001
1001
|
args: [{
|
|
1002
1002
|
exportAs: 'kendo-popup',
|
|
@@ -1121,7 +1121,6 @@ const POPUP_CONTAINER = new InjectionToken('Popup Container');
|
|
|
1121
1121
|
*/
|
|
1122
1122
|
class PopupService {
|
|
1123
1123
|
applicationRef;
|
|
1124
|
-
componentFactoryResolver;
|
|
1125
1124
|
injector;
|
|
1126
1125
|
container;
|
|
1127
1126
|
/**
|
|
@@ -1148,9 +1147,8 @@ class PopupService {
|
|
|
1148
1147
|
get rootViewContainerNode() {
|
|
1149
1148
|
return this.container ? this.container.nativeElement : this.getComponentRootNode(this.rootViewContainer);
|
|
1150
1149
|
}
|
|
1151
|
-
constructor(applicationRef,
|
|
1150
|
+
constructor(applicationRef, injector, container) {
|
|
1152
1151
|
this.applicationRef = applicationRef;
|
|
1153
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
1154
1152
|
this.injector = injector;
|
|
1155
1153
|
this.container = container;
|
|
1156
1154
|
}
|
|
@@ -1211,15 +1209,6 @@ class PopupService {
|
|
|
1211
1209
|
getComponentRootNode(componentRef) {
|
|
1212
1210
|
return componentRef.location.nativeElement;
|
|
1213
1211
|
}
|
|
1214
|
-
/**
|
|
1215
|
-
* Gets the `ComponentFactory` instance by type.
|
|
1216
|
-
*
|
|
1217
|
-
* @param {*} componentClass The component class.
|
|
1218
|
-
* @returns {ComponentFactory<any>} The component factory instance.
|
|
1219
|
-
*/
|
|
1220
|
-
getComponentFactory(componentClass) {
|
|
1221
|
-
return this.componentFactoryResolver.resolveComponentFactory(componentClass);
|
|
1222
|
-
}
|
|
1223
1212
|
/**
|
|
1224
1213
|
* Creates a component reference from a `Component` class.
|
|
1225
1214
|
*
|
|
@@ -1229,12 +1218,12 @@ class PopupService {
|
|
|
1229
1218
|
* @returns {ComponentRef<any>} The created component reference.
|
|
1230
1219
|
*/
|
|
1231
1220
|
createComponent(componentClass, nodes, container) {
|
|
1232
|
-
const factory = this.getComponentFactory(componentClass);
|
|
1233
1221
|
if (container) {
|
|
1234
|
-
return container.createComponent(
|
|
1222
|
+
return container.createComponent(componentClass, { injector: this.injector, projectableNodes: nodes });
|
|
1235
1223
|
}
|
|
1236
1224
|
else {
|
|
1237
|
-
const
|
|
1225
|
+
const environmentInjector = this.injector.get(EnvironmentInjector);
|
|
1226
|
+
const component = createComponent(componentClass, { environmentInjector, elementInjector: this.injector, projectableNodes: nodes });
|
|
1238
1227
|
this.applicationRef.attachView(component.hostView);
|
|
1239
1228
|
return component;
|
|
1240
1229
|
}
|
|
@@ -1273,15 +1262,15 @@ class PopupService {
|
|
|
1273
1262
|
]
|
|
1274
1263
|
};
|
|
1275
1264
|
}
|
|
1276
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1277
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1265
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1266
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupService, providedIn: 'root' });
|
|
1278
1267
|
}
|
|
1279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupService, decorators: [{
|
|
1280
1269
|
type: Injectable,
|
|
1281
1270
|
args: [{
|
|
1282
1271
|
providedIn: 'root'
|
|
1283
1272
|
}]
|
|
1284
|
-
}], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.
|
|
1273
|
+
}], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
|
|
1285
1274
|
type: Inject,
|
|
1286
1275
|
args: [POPUP_CONTAINER]
|
|
1287
1276
|
}, {
|
|
@@ -1340,11 +1329,11 @@ const KENDO_POPUP = [
|
|
|
1340
1329
|
* ```
|
|
1341
1330
|
*/
|
|
1342
1331
|
class PopupModule {
|
|
1343
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1344
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
1345
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
1332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1333
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: PopupModule, imports: [i1$1.ResizeSensorComponent, PopupComponent], exports: [PopupComponent] });
|
|
1334
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupModule, providers: [PopupService, ResizeBatchService], imports: [KENDO_RESIZESENSOR, KENDO_POPUP] });
|
|
1346
1335
|
}
|
|
1347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PopupModule, decorators: [{
|
|
1348
1337
|
type: NgModule,
|
|
1349
1338
|
args: [{
|
|
1350
1339
|
exports: [...KENDO_POPUP],
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0
|
|
10
|
+
"publishDate": 1780593636,
|
|
11
|
+
"version": "24.1.0",
|
|
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": "24.0
|
|
3
|
+
"version": "24.1.0",
|
|
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,23 +34,23 @@
|
|
|
34
34
|
"package": {
|
|
35
35
|
"productName": "Kendo UI for Angular",
|
|
36
36
|
"productCode": "KENDOUIANGULAR",
|
|
37
|
-
"publishDate":
|
|
37
|
+
"publishDate": 1780593636,
|
|
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
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@angular/animations": "19 -
|
|
43
|
-
"@angular/common": "19 -
|
|
44
|
-
"@angular/core": "19 -
|
|
45
|
-
"@angular/platform-browser": "19 -
|
|
46
|
-
"@progress/kendo-angular-common": "24.0
|
|
42
|
+
"@angular/animations": "19 - 22",
|
|
43
|
+
"@angular/common": "19 - 22",
|
|
44
|
+
"@angular/core": "19 - 22",
|
|
45
|
+
"@angular/platform-browser": "19 - 22",
|
|
46
|
+
"@progress/kendo-angular-common": "24.1.0",
|
|
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": "24.0
|
|
53
|
+
"@progress/kendo-angular-schematics": "24.1.0"
|
|
54
54
|
},
|
|
55
55
|
"schematics": "./schematics/collection.json",
|
|
56
56
|
"module": "fesm2022/progress-kendo-angular-popup.mjs",
|
package/popup.service.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ApplicationRef,
|
|
5
|
+
import { ApplicationRef, ElementRef, InjectionToken, Injector } from '@angular/core';
|
|
6
6
|
import { PopupSettings } from './models/popup-settings';
|
|
7
7
|
import { PopupRef } from './models/popup-ref';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -69,7 +69,6 @@ export declare const POPUP_CONTAINER: InjectionToken<ElementRef<any>>;
|
|
|
69
69
|
*/
|
|
70
70
|
export declare class PopupService {
|
|
71
71
|
private applicationRef;
|
|
72
|
-
private componentFactoryResolver;
|
|
73
72
|
private injector;
|
|
74
73
|
private container;
|
|
75
74
|
/**
|
|
@@ -84,7 +83,7 @@ export declare class PopupService {
|
|
|
84
83
|
* @returns {HTMLElement} The root container HTML element.
|
|
85
84
|
*/
|
|
86
85
|
get rootViewContainerNode(): HTMLElement;
|
|
87
|
-
constructor(applicationRef: ApplicationRef,
|
|
86
|
+
constructor(applicationRef: ApplicationRef, injector: Injector, container: ElementRef);
|
|
88
87
|
/**
|
|
89
88
|
* Opens a Popup component. The Popup mounts in the DOM under the root application component.
|
|
90
89
|
*
|
|
@@ -100,13 +99,6 @@ export declare class PopupService {
|
|
|
100
99
|
* @returns {HTMLElement} The root HTML element of the component.
|
|
101
100
|
*/
|
|
102
101
|
private getComponentRootNode;
|
|
103
|
-
/**
|
|
104
|
-
* Gets the `ComponentFactory` instance by type.
|
|
105
|
-
*
|
|
106
|
-
* @param {*} componentClass The component class.
|
|
107
|
-
* @returns {ComponentFactory<any>} The component factory instance.
|
|
108
|
-
*/
|
|
109
|
-
private getComponentFactory;
|
|
110
102
|
/**
|
|
111
103
|
* Creates a component reference from a `Component` class.
|
|
112
104
|
*
|
|
@@ -131,6 +123,6 @@ export declare class PopupService {
|
|
|
131
123
|
* @returns {any} The component and nodes for projection.
|
|
132
124
|
*/
|
|
133
125
|
private contentFrom;
|
|
134
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, [null, null,
|
|
126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, [null, null, { optional: true; }]>;
|
|
135
127
|
static ɵprov: i0.ɵɵInjectableDeclaration<PopupService>;
|
|
136
128
|
}
|