@progress/kendo-angular-popup 16.5.0-develop.6 → 16.6.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.
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PopupComponent } from "./popup.component";
6
+ /**
7
+ * Utility array that contains all `@progress/kendo-angular-popup` related components and directives
8
+ */
9
+ export declare const KENDO_POPUP: readonly [typeof PopupComponent];
@@ -0,0 +1,11 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PopupComponent } from "./popup.component";
6
+ /**
7
+ * Utility array that contains all `@progress/kendo-angular-popup` related components and directives
8
+ */
9
+ export const KENDO_POPUP = [
10
+ PopupComponent
11
+ ];
package/esm2020/index.mjs CHANGED
@@ -6,3 +6,4 @@ export { PopupService, POPUP_CONTAINER } from './popup.service';
6
6
  export { PopupComponent } from './popup.component';
7
7
  export { PopupModule } from './popup.module';
8
8
  export { SCALE } from './scale';
9
+ export * from './directives';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-popup',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1721765888,
13
- version: '16.5.0-develop.6',
12
+ publishDate: 1721827513,
13
+ version: '16.6.0-develop.1',
14
14
  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'
15
15
  };
@@ -14,6 +14,7 @@ import { hasObservers, isDocumentAvailable, ResizeSensorComponent } from '@progr
14
14
  import { from } from 'rxjs';
15
15
  import { validatePackage } from '@progress/kendo-licensing';
16
16
  import { packageMetadata } from './package-metadata';
17
+ import { NgClass, NgTemplateOutlet, NgIf } from '@angular/common';
17
18
  import * as i0 from "@angular/core";
18
19
  import * as i1 from "./services/align.service";
19
20
  import * as i2 from "./services/dom.service";
@@ -21,8 +22,6 @@ import * as i3 from "./services/position.service";
21
22
  import * as i4 from "./services/resize.service";
22
23
  import * as i5 from "./services/scrollable.service";
23
24
  import * as i6 from "./services/animation.service";
24
- import * as i7 from "@angular/common";
25
- import * as i8 from "@progress/kendo-angular-common";
26
25
  const DEFAULT_OFFSET = { left: -10000, top: 0 };
27
26
  const ANIMATION_CONTAINER = 'k-animation-container';
28
27
  const ANIMATION_CONTAINER_FIXED = 'k-animation-container-fixed';
@@ -354,7 +353,7 @@ export class PopupComponent {
354
353
  }
355
354
  }
356
355
  PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: i1.AlignService }, { token: i2.DOMService }, { token: i3.PositionService }, { token: i4.ResizeService }, { token: i5.ScrollableService }, { token: i6.AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
357
- PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PopupComponent, 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: `
356
+ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: `
358
357
  <div class="k-child-animation-container">
359
358
  <div class="k-popup" [ngClass]="popupClass" #container>
360
359
  <ng-content></ng-content>
@@ -363,7 +362,7 @@ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
363
362
  </kendo-resize-sensor>
364
363
  </div>
365
364
  </div>
366
- `, isInline: true, dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
365
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
367
366
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupComponent, decorators: [{
368
367
  type: Component,
369
368
  args: [{
@@ -379,7 +378,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
379
378
  </kendo-resize-sensor>
380
379
  </div>
381
380
  </div>
382
- `
381
+ `,
382
+ standalone: true,
383
+ imports: [NgClass, NgTemplateOutlet, NgIf, ResizeSensorComponent]
383
384
  }]
384
385
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.AlignService }, { type: i2.DOMService }, { type: i3.PositionService }, { type: i4.ResizeService }, { type: i5.ScrollableService }, { type: i6.AnimationService }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { animate: [{
385
386
  type: Input
@@ -3,12 +3,12 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
6
- import { CommonModule } from '@angular/common';
7
- import { PopupComponent } from './popup.component';
8
- import { ResizeSensorModule } from '@progress/kendo-angular-common';
6
+ import { ResizeBatchService, ResizeSensorComponent } from '@progress/kendo-angular-common';
9
7
  import { PopupService } from './popup.service';
8
+ import { KENDO_POPUP } from './directives';
10
9
  import * as i0 from "@angular/core";
11
- const POPUP_DIRECTIVES = [PopupComponent];
10
+ import * as i1 from "./popup.component";
11
+ //IMPORTANT: NgModule export kept for backwards compatibility
12
12
  /**
13
13
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
14
14
  * definition for the Popup component.
@@ -43,15 +43,14 @@ const POPUP_DIRECTIVES = [PopupComponent];
43
43
  export class PopupModule {
44
44
  }
45
45
  PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
- PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
47
- PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [CommonModule, ResizeSensorModule] });
46
+ PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, imports: [ResizeSensorComponent, i1.PopupComponent], exports: [i1.PopupComponent] });
47
+ PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, providers: [PopupService, ResizeBatchService], imports: [ResizeSensorComponent, KENDO_POPUP] });
48
48
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, decorators: [{
49
49
  type: NgModule,
50
50
  args: [{
51
- declarations: [POPUP_DIRECTIVES],
52
- entryComponents: [POPUP_DIRECTIVES],
53
- exports: [POPUP_DIRECTIVES],
54
- imports: [CommonModule, ResizeSensorModule],
55
- providers: [PopupService]
51
+ entryComponents: [...KENDO_POPUP],
52
+ exports: [...KENDO_POPUP],
53
+ imports: [ResizeSensorComponent, ...KENDO_POPUP],
54
+ providers: [PopupService, ResizeBatchService]
56
55
  }]
57
56
  }] });
@@ -14,23 +14,42 @@ const removeElement = (element) => {
14
14
  * Used to inject the Popup container. If not provided, the first root component of
15
15
  * the application is used.
16
16
  *
17
- * > The `POPUP_CONTAINER` can be used only with the [`PopupService`]({% slug service_popup %}) class.
17
+ * > The `POPUP_CONTAINER` can be used only with the [`PopupService`](slug:service_popup) class.
18
+ *
19
+ * In case you are using standalone components:
20
+ *
21
+ * @example
22
+ *
23
+ * ```ts
24
+ * import { Component } from '@angular/core';
25
+ * import { KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
26
+ *
27
+ * @Component({
28
+ * standalone: true,
29
+ * imports: [KENDO_POPUP],
30
+ * providers: [PopupService, {
31
+ * provide: POPUP_CONTAINER,
32
+ * useFactory: () => {
33
+ * //return the container ElementRef, where the popup will be injected
34
+ * return { nativeElement: document.body } as ElementRef;
35
+ * }
36
+ * }],
37
+ * selector: 'app-root',
38
+ * templateUrl: './app.component.html',
39
+ * })
40
+ * export class AppComponent {}
41
+ * ```
42
+ *
43
+ * In case you are using an NgModule-based application:
18
44
  *
19
45
  * @example
20
46
  *
21
47
  * ```ts-no-run
22
- * // Import the Popup module
23
48
  * import { PopupModule, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
24
- *
25
- * // The browser platform with a compiler
26
49
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
27
- *
28
50
  * import { ElementRef, NgModule } from '@angular/core';
29
- *
30
- * // Import the app component
31
51
  * import { AppComponent } from './app.component';
32
52
  *
33
- * // Define the app module
34
53
  * _@NgModule({
35
54
  * declarations: [AppComponent], // declare app component
36
55
  * imports: [BrowserModule, PopupModule], // import Popup module
@@ -45,7 +64,6 @@ const removeElement = (element) => {
45
64
  * })
46
65
  * export class AppModule {}
47
66
  *
48
- * // Compile and launch the module
49
67
  * platformBrowserDynamic().bootstrapModule(AppModule);
50
68
  * ```
51
69
  */
@@ -235,9 +253,12 @@ export class PopupService {
235
253
  }
236
254
  }
237
255
  PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
238
- PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService });
256
+ PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, providedIn: 'root' });
239
257
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, decorators: [{
240
- type: Injectable
258
+ type: Injectable,
259
+ args: [{
260
+ providedIn: 'root'
261
+ }]
241
262
  }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
242
263
  type: Inject,
243
264
  args: [POPUP_CONTAINER]
@@ -5,15 +5,13 @@
5
5
  import * as i0 from '@angular/core';
6
6
  import { InjectionToken, Injectable, Inject, Optional, EventEmitter, isDevMode, Component, Input, Output, ViewChild, 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
- import * as i8 from '@progress/kendo-angular-common';
9
- import { isDocumentAvailable, hasObservers, ResizeSensorComponent, ResizeSensorModule } from '@progress/kendo-angular-common';
8
+ import { isDocumentAvailable, hasObservers, ResizeSensorComponent, ResizeBatchService } from '@progress/kendo-angular-common';
10
9
  import { fromEvent, merge, from } from 'rxjs';
11
10
  import { auditTime } from 'rxjs/operators';
12
11
  import * as i1 from '@angular/animations';
13
12
  import { style, animate } from '@angular/animations';
14
13
  import { validatePackage } from '@progress/kendo-licensing';
15
- import * as i7 from '@angular/common';
16
- import { CommonModule } from '@angular/common';
14
+ import { NgClass, NgTemplateOutlet, NgIf } from '@angular/common';
17
15
 
18
16
  /**
19
17
  * @hidden
@@ -681,8 +679,8 @@ const packageMetadata = {
681
679
  name: '@progress/kendo-angular-popup',
682
680
  productName: 'Kendo UI for Angular',
683
681
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
684
- publishDate: 1721765888,
685
- version: '16.5.0-develop.6',
682
+ publishDate: 1721827513,
683
+ version: '16.6.0-develop.1',
686
684
  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'
687
685
  };
688
686
 
@@ -1017,7 +1015,7 @@ class PopupComponent {
1017
1015
  }
1018
1016
  }
1019
1017
  PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
1020
- PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PopupComponent, 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: `
1018
+ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: `
1021
1019
  <div class="k-child-animation-container">
1022
1020
  <div class="k-popup" [ngClass]="popupClass" #container>
1023
1021
  <ng-content></ng-content>
@@ -1026,7 +1024,7 @@ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
1026
1024
  </kendo-resize-sensor>
1027
1025
  </div>
1028
1026
  </div>
1029
- `, isInline: true, dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
1027
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
1030
1028
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupComponent, decorators: [{
1031
1029
  type: Component,
1032
1030
  args: [{
@@ -1042,7 +1040,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1042
1040
  </kendo-resize-sensor>
1043
1041
  </div>
1044
1042
  </div>
1045
- `
1043
+ `,
1044
+ standalone: true,
1045
+ imports: [NgClass, NgTemplateOutlet, NgIf, ResizeSensorComponent]
1046
1046
  }]
1047
1047
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AlignService }, { type: DOMService }, { type: PositionService }, { type: ResizeService }, { type: ScrollableService }, { type: AnimationService }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { animate: [{
1048
1048
  type: Input
@@ -1089,23 +1089,42 @@ const removeElement = (element) => {
1089
1089
  * Used to inject the Popup container. If not provided, the first root component of
1090
1090
  * the application is used.
1091
1091
  *
1092
- * > The `POPUP_CONTAINER` can be used only with the [`PopupService`]({% slug service_popup %}) class.
1092
+ * > The `POPUP_CONTAINER` can be used only with the [`PopupService`](slug:service_popup) class.
1093
+ *
1094
+ * In case you are using standalone components:
1095
+ *
1096
+ * @example
1097
+ *
1098
+ * ```ts
1099
+ * import { Component } from '@angular/core';
1100
+ * import { KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
1101
+ *
1102
+ * @Component({
1103
+ * standalone: true,
1104
+ * imports: [KENDO_POPUP],
1105
+ * providers: [PopupService, {
1106
+ * provide: POPUP_CONTAINER,
1107
+ * useFactory: () => {
1108
+ * //return the container ElementRef, where the popup will be injected
1109
+ * return { nativeElement: document.body } as ElementRef;
1110
+ * }
1111
+ * }],
1112
+ * selector: 'app-root',
1113
+ * templateUrl: './app.component.html',
1114
+ * })
1115
+ * export class AppComponent {}
1116
+ * ```
1117
+ *
1118
+ * In case you are using an NgModule-based application:
1093
1119
  *
1094
1120
  * @example
1095
1121
  *
1096
1122
  * ```ts-no-run
1097
- * // Import the Popup module
1098
1123
  * import { PopupModule, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
1099
- *
1100
- * // The browser platform with a compiler
1101
1124
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1102
- *
1103
1125
  * import { ElementRef, NgModule } from '@angular/core';
1104
- *
1105
- * // Import the app component
1106
1126
  * import { AppComponent } from './app.component';
1107
1127
  *
1108
- * // Define the app module
1109
1128
  * _@NgModule({
1110
1129
  * declarations: [AppComponent], // declare app component
1111
1130
  * imports: [BrowserModule, PopupModule], // import Popup module
@@ -1120,7 +1139,6 @@ const removeElement = (element) => {
1120
1139
  * })
1121
1140
  * export class AppModule {}
1122
1141
  *
1123
- * // Compile and launch the module
1124
1142
  * platformBrowserDynamic().bootstrapModule(AppModule);
1125
1143
  * ```
1126
1144
  */
@@ -1310,9 +1328,12 @@ class PopupService {
1310
1328
  }
1311
1329
  }
1312
1330
  PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1313
- PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService });
1331
+ PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, providedIn: 'root' });
1314
1332
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, decorators: [{
1315
- type: Injectable
1333
+ type: Injectable,
1334
+ args: [{
1335
+ providedIn: 'root'
1336
+ }]
1316
1337
  }], ctorParameters: function () {
1317
1338
  return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
1318
1339
  type: Inject,
@@ -1322,7 +1343,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1322
1343
  }] }];
1323
1344
  } });
1324
1345
 
1325
- const POPUP_DIRECTIVES = [PopupComponent];
1346
+ /**
1347
+ * Utility array that contains all `@progress/kendo-angular-popup` related components and directives
1348
+ */
1349
+ const KENDO_POPUP = [
1350
+ PopupComponent
1351
+ ];
1352
+
1353
+ //IMPORTANT: NgModule export kept for backwards compatibility
1326
1354
  /**
1327
1355
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
1328
1356
  * definition for the Popup component.
@@ -1357,16 +1385,15 @@ const POPUP_DIRECTIVES = [PopupComponent];
1357
1385
  class PopupModule {
1358
1386
  }
1359
1387
  PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1360
- PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
1361
- PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [CommonModule, ResizeSensorModule] });
1388
+ PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, imports: [ResizeSensorComponent, PopupComponent], exports: [PopupComponent] });
1389
+ PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, providers: [PopupService, ResizeBatchService], imports: [ResizeSensorComponent, KENDO_POPUP] });
1362
1390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, decorators: [{
1363
1391
  type: NgModule,
1364
1392
  args: [{
1365
- declarations: [POPUP_DIRECTIVES],
1366
- entryComponents: [POPUP_DIRECTIVES],
1367
- exports: [POPUP_DIRECTIVES],
1368
- imports: [CommonModule, ResizeSensorModule],
1369
- providers: [PopupService]
1393
+ entryComponents: [...KENDO_POPUP],
1394
+ exports: [...KENDO_POPUP],
1395
+ imports: [ResizeSensorComponent, ...KENDO_POPUP],
1396
+ providers: [PopupService, ResizeBatchService]
1370
1397
  }]
1371
1398
  }] });
1372
1399
 
@@ -1374,5 +1401,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1374
1401
  * Generated bundle index. Do not edit.
1375
1402
  */
1376
1403
 
1377
- export { POPUP_CONTAINER, PopupComponent, PopupModule, PopupService, SCALE };
1404
+ export { KENDO_POPUP, POPUP_CONTAINER, PopupComponent, PopupModule, PopupService, SCALE };
1378
1405
 
@@ -5,15 +5,13 @@
5
5
  import * as i0 from '@angular/core';
6
6
  import { Injectable, InjectionToken, Inject, Optional, EventEmitter, isDevMode, Component, Input, Output, ViewChild, 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
- import * as i8 from '@progress/kendo-angular-common';
9
- import { isDocumentAvailable, hasObservers, ResizeSensorComponent, ResizeSensorModule } from '@progress/kendo-angular-common';
8
+ import { isDocumentAvailable, hasObservers, ResizeSensorComponent, ResizeBatchService } from '@progress/kendo-angular-common';
10
9
  import { fromEvent, merge, from } from 'rxjs';
11
10
  import { auditTime } from 'rxjs/operators';
12
11
  import * as i1 from '@angular/animations';
13
12
  import { style, animate } from '@angular/animations';
14
13
  import { validatePackage } from '@progress/kendo-licensing';
15
- import * as i7 from '@angular/common';
16
- import { CommonModule } from '@angular/common';
14
+ import { NgClass, NgTemplateOutlet, NgIf } from '@angular/common';
17
15
 
18
16
  /**
19
17
  * @hidden
@@ -677,8 +675,8 @@ const packageMetadata = {
677
675
  name: '@progress/kendo-angular-popup',
678
676
  productName: 'Kendo UI for Angular',
679
677
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
680
- publishDate: 1721765888,
681
- version: '16.5.0-develop.6',
678
+ publishDate: 1721827513,
679
+ version: '16.6.0-develop.1',
682
680
  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'
683
681
  };
684
682
 
@@ -1013,7 +1011,7 @@ class PopupComponent {
1013
1011
  }
1014
1012
  }
1015
1013
  PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
1016
- PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PopupComponent, 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: `
1014
+ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: `
1017
1015
  <div class="k-child-animation-container">
1018
1016
  <div class="k-popup" [ngClass]="popupClass" #container>
1019
1017
  <ng-content></ng-content>
@@ -1022,7 +1020,7 @@ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
1022
1020
  </kendo-resize-sensor>
1023
1021
  </div>
1024
1022
  </div>
1025
- `, isInline: true, dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
1023
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
1026
1024
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupComponent, decorators: [{
1027
1025
  type: Component,
1028
1026
  args: [{
@@ -1038,7 +1036,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1038
1036
  </kendo-resize-sensor>
1039
1037
  </div>
1040
1038
  </div>
1041
- `
1039
+ `,
1040
+ standalone: true,
1041
+ imports: [NgClass, NgTemplateOutlet, NgIf, ResizeSensorComponent]
1042
1042
  }]
1043
1043
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AlignService }, { type: DOMService }, { type: PositionService }, { type: ResizeService }, { type: ScrollableService }, { type: AnimationService }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { animate: [{
1044
1044
  type: Input
@@ -1085,23 +1085,42 @@ const removeElement = (element) => {
1085
1085
  * Used to inject the Popup container. If not provided, the first root component of
1086
1086
  * the application is used.
1087
1087
  *
1088
- * > The `POPUP_CONTAINER` can be used only with the [`PopupService`]({% slug service_popup %}) class.
1088
+ * > The `POPUP_CONTAINER` can be used only with the [`PopupService`](slug:service_popup) class.
1089
+ *
1090
+ * In case you are using standalone components:
1091
+ *
1092
+ * @example
1093
+ *
1094
+ * ```ts
1095
+ * import { Component } from '@angular/core';
1096
+ * import { KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
1097
+ *
1098
+ * @Component({
1099
+ * standalone: true,
1100
+ * imports: [KENDO_POPUP],
1101
+ * providers: [PopupService, {
1102
+ * provide: POPUP_CONTAINER,
1103
+ * useFactory: () => {
1104
+ * //return the container ElementRef, where the popup will be injected
1105
+ * return { nativeElement: document.body } as ElementRef;
1106
+ * }
1107
+ * }],
1108
+ * selector: 'app-root',
1109
+ * templateUrl: './app.component.html',
1110
+ * })
1111
+ * export class AppComponent {}
1112
+ * ```
1113
+ *
1114
+ * In case you are using an NgModule-based application:
1089
1115
  *
1090
1116
  * @example
1091
1117
  *
1092
1118
  * ```ts-no-run
1093
- * // Import the Popup module
1094
1119
  * import { PopupModule, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
1095
- *
1096
- * // The browser platform with a compiler
1097
1120
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1098
- *
1099
1121
  * import { ElementRef, NgModule } from '@angular/core';
1100
- *
1101
- * // Import the app component
1102
1122
  * import { AppComponent } from './app.component';
1103
1123
  *
1104
- * // Define the app module
1105
1124
  * _@NgModule({
1106
1125
  * declarations: [AppComponent], // declare app component
1107
1126
  * imports: [BrowserModule, PopupModule], // import Popup module
@@ -1116,7 +1135,6 @@ const removeElement = (element) => {
1116
1135
  * })
1117
1136
  * export class AppModule {}
1118
1137
  *
1119
- * // Compile and launch the module
1120
1138
  * platformBrowserDynamic().bootstrapModule(AppModule);
1121
1139
  * ```
1122
1140
  */
@@ -1306,9 +1324,12 @@ class PopupService {
1306
1324
  }
1307
1325
  }
1308
1326
  PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1309
- PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService });
1327
+ PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, providedIn: 'root' });
1310
1328
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupService, decorators: [{
1311
- type: Injectable
1329
+ type: Injectable,
1330
+ args: [{
1331
+ providedIn: 'root'
1332
+ }]
1312
1333
  }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
1313
1334
  type: Inject,
1314
1335
  args: [POPUP_CONTAINER]
@@ -1316,7 +1337,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1316
1337
  type: Optional
1317
1338
  }] }]; } });
1318
1339
 
1319
- const POPUP_DIRECTIVES = [PopupComponent];
1340
+ /**
1341
+ * Utility array that contains all `@progress/kendo-angular-popup` related components and directives
1342
+ */
1343
+ const KENDO_POPUP = [
1344
+ PopupComponent
1345
+ ];
1346
+
1347
+ //IMPORTANT: NgModule export kept for backwards compatibility
1320
1348
  /**
1321
1349
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
1322
1350
  * definition for the Popup component.
@@ -1351,16 +1379,15 @@ const POPUP_DIRECTIVES = [PopupComponent];
1351
1379
  class PopupModule {
1352
1380
  }
1353
1381
  PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1354
- PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
1355
- PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [CommonModule, ResizeSensorModule] });
1382
+ PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, imports: [ResizeSensorComponent, PopupComponent], exports: [PopupComponent] });
1383
+ PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, providers: [PopupService, ResizeBatchService], imports: [ResizeSensorComponent, KENDO_POPUP] });
1356
1384
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupModule, decorators: [{
1357
1385
  type: NgModule,
1358
1386
  args: [{
1359
- declarations: [POPUP_DIRECTIVES],
1360
- entryComponents: [POPUP_DIRECTIVES],
1361
- exports: [POPUP_DIRECTIVES],
1362
- imports: [CommonModule, ResizeSensorModule],
1363
- providers: [PopupService]
1387
+ entryComponents: [...KENDO_POPUP],
1388
+ exports: [...KENDO_POPUP],
1389
+ imports: [ResizeSensorComponent, ...KENDO_POPUP],
1390
+ providers: [PopupService, ResizeBatchService]
1364
1391
  }]
1365
1392
  }] });
1366
1393
 
@@ -1368,5 +1395,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1368
1395
  * Generated bundle index. Do not edit.
1369
1396
  */
1370
1397
 
1371
- export { POPUP_CONTAINER, PopupComponent, PopupModule, PopupService, SCALE };
1398
+ export { KENDO_POPUP, POPUP_CONTAINER, PopupComponent, PopupModule, PopupService, SCALE };
1372
1399
 
package/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export { PopupService, POPUP_CONTAINER } from './popup.service';
14
14
  export { PopupComponent } from './popup.component';
15
15
  export { PopupModule } from './popup.module';
16
16
  export { SCALE } from './scale';
17
+ export * from './directives';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-popup",
3
- "version": "16.5.0-develop.6",
3
+ "version": "16.6.0-develop.1",
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",
@@ -22,14 +22,14 @@
22
22
  "@angular/common": "15 - 18",
23
23
  "@angular/core": "15 - 18",
24
24
  "@angular/platform-browser": "15 - 18",
25
- "@progress/kendo-angular-common": "16.5.0-develop.6",
25
+ "@progress/kendo-angular-common": "16.6.0-develop.1",
26
26
  "@progress/kendo-licensing": "^1.0.2",
27
27
  "rxjs": "^6.5.3 || ^7.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@progress/kendo-popup-common": "^1.7.0",
31
31
  "tslib": "^2.3.1",
32
- "@progress/kendo-angular-schematics": "16.5.0-develop.6"
32
+ "@progress/kendo-angular-schematics": "16.6.0-develop.1"
33
33
  },
34
34
  "schematics": "./schematics/collection.json",
35
35
  "module": "fesm2015/progress-kendo-angular-popup.mjs",
@@ -248,5 +248,5 @@ export declare class PopupComponent implements AfterViewInit, OnInit, OnChanges,
248
248
  private setContainerStyle;
249
249
  private unsubscribeReposition;
250
250
  static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
251
- static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent, "kendo-popup", ["kendo-popup"], { "animate": "animate"; "anchor": "anchor"; "anchorAlign": "anchorAlign"; "collision": "collision"; "popupAlign": "popupAlign"; "copyAnchorStyles": "copyAnchorStyles"; "popupClass": "popupClass"; "positionMode": "positionMode"; "offset": "offset"; "margin": "margin"; }, { "anchorViewportLeave": "anchorViewportLeave"; "close": "close"; "open": "open"; "positionChange": "positionChange"; }, never, ["*"], false, never>;
251
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent, "kendo-popup", ["kendo-popup"], { "animate": "animate"; "anchor": "anchor"; "anchorAlign": "anchorAlign"; "collision": "collision"; "popupAlign": "popupAlign"; "copyAnchorStyles": "copyAnchorStyles"; "popupClass": "popupClass"; "positionMode": "positionMode"; "offset": "offset"; "margin": "margin"; }, { "anchorViewportLeave": "anchorViewportLeave"; "close": "close"; "open": "open"; "positionChange": "positionChange"; }, never, ["*"], true, never>;
252
252
  }
package/popup.module.d.ts CHANGED
@@ -3,9 +3,8 @@
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 * as i1 from "./popup.component";
7
- import * as i2 from "@angular/common";
8
- import * as i3 from "@progress/kendo-angular-common";
6
+ import * as i1 from "@progress/kendo-angular-common";
7
+ import * as i2 from "./popup.component";
9
8
  /**
10
9
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
11
10
  * definition for the Popup component.
@@ -39,6 +38,6 @@ import * as i3 from "@progress/kendo-angular-common";
39
38
  */
40
39
  export declare class PopupModule {
41
40
  static ɵfac: i0.ɵɵFactoryDeclaration<PopupModule, never>;
42
- static ɵmod: i0.ɵɵNgModuleDeclaration<PopupModule, [typeof i1.PopupComponent], [typeof i2.CommonModule, typeof i3.ResizeSensorModule], [typeof i1.PopupComponent]>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PopupModule, never, [typeof i1.ResizeSensorComponent, typeof i2.PopupComponent], [typeof i2.PopupComponent]>;
43
42
  static ɵinj: i0.ɵɵInjectorDeclaration<PopupModule>;
44
43
  }
@@ -10,23 +10,42 @@ import * as i0 from "@angular/core";
10
10
  * Used to inject the Popup container. If not provided, the first root component of
11
11
  * the application is used.
12
12
  *
13
- * > The `POPUP_CONTAINER` can be used only with the [`PopupService`]({% slug service_popup %}) class.
13
+ * > The `POPUP_CONTAINER` can be used only with the [`PopupService`](slug:service_popup) class.
14
+ *
15
+ * In case you are using standalone components:
16
+ *
17
+ * @example
18
+ *
19
+ * ```ts
20
+ * import { Component } from '@angular/core';
21
+ * import { KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
22
+ *
23
+ * @Component({
24
+ * standalone: true,
25
+ * imports: [KENDO_POPUP],
26
+ * providers: [PopupService, {
27
+ * provide: POPUP_CONTAINER,
28
+ * useFactory: () => {
29
+ * //return the container ElementRef, where the popup will be injected
30
+ * return { nativeElement: document.body } as ElementRef;
31
+ * }
32
+ * }],
33
+ * selector: 'app-root',
34
+ * templateUrl: './app.component.html',
35
+ * })
36
+ * export class AppComponent {}
37
+ * ```
38
+ *
39
+ * In case you are using an NgModule-based application:
14
40
  *
15
41
  * @example
16
42
  *
17
43
  * ```ts-no-run
18
- * // Import the Popup module
19
44
  * import { PopupModule, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
20
- *
21
- * // The browser platform with a compiler
22
45
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
23
- *
24
46
  * import { ElementRef, NgModule } from '@angular/core';
25
- *
26
- * // Import the app component
27
47
  * import { AppComponent } from './app.component';
28
48
  *
29
- * // Define the app module
30
49
  * _@NgModule({
31
50
  * declarations: [AppComponent], // declare app component
32
51
  * imports: [BrowserModule, PopupModule], // import Popup module
@@ -41,7 +60,6 @@ import * as i0 from "@angular/core";
41
60
  * })
42
61
  * export class AppModule {}
43
62
  *
44
- * // Compile and launch the module
45
63
  * platformBrowserDynamic().bootstrapModule(AppModule);
46
64
  * ```
47
65
  */