@progress/kendo-angular-popup 24.0.4-develop.1 → 24.1.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.
@@ -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';
@@ -693,8 +693,8 @@ const packageMetadata = {
693
693
  productName: 'Kendo UI for Angular',
694
694
  productCode: 'KENDOUIANGULAR',
695
695
  productCodes: ['KENDOUIANGULAR'],
696
- publishDate: 1780381187,
697
- version: '24.0.4-develop.1',
696
+ publishDate: 1780513571,
697
+ version: '24.1.0-develop.1',
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
 
@@ -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, componentFactoryResolver, injector, container) {
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(factory, undefined, this.injector, nodes);
1222
+ return container.createComponent(componentClass, { injector: this.injector, projectableNodes: nodes });
1235
1223
  }
1236
1224
  else {
1237
- const component = factory.create(this.injector, nodes);
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,7 +1262,7 @@ class PopupService {
1273
1262
  ]
1274
1263
  };
1275
1264
  }
1276
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1265
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1277
1266
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: PopupService, providedIn: 'root' });
1278
1267
  }
1279
1268
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: PopupService, decorators: [{
@@ -1281,7 +1270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
1281
1270
  args: [{
1282
1271
  providedIn: 'root'
1283
1272
  }]
1284
- }], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
1273
+ }], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
1285
1274
  type: Inject,
1286
1275
  args: [POPUP_CONTAINER]
1287
1276
  }, {
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1780381187,
11
- "version": "24.0.4-develop.1",
10
+ "publishDate": 1780513571,
11
+ "version": "24.1.0-develop.1",
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.4-develop.1",
3
+ "version": "24.1.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",
@@ -34,23 +34,23 @@
34
34
  "package": {
35
35
  "productName": "Kendo UI for Angular",
36
36
  "productCode": "KENDOUIANGULAR",
37
- "publishDate": 1780381187,
37
+ "publishDate": 1780513571,
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 - 21",
43
- "@angular/common": "19 - 21",
44
- "@angular/core": "19 - 21",
45
- "@angular/platform-browser": "19 - 21",
46
- "@progress/kendo-angular-common": "24.0.4-develop.1",
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-develop.1",
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.4-develop.1"
53
+ "@progress/kendo-angular-schematics": "24.1.0-develop.1"
54
54
  },
55
55
  "schematics": "./schematics/collection.json",
56
56
  "module": "fesm2022/progress-kendo-angular-popup.mjs",
@@ -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, ComponentFactoryResolver, ElementRef, InjectionToken, Injector } from '@angular/core';
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, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, container: ElementRef);
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, null, { optional: true; }]>;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, [null, null, { optional: true; }]>;
135
127
  static ɵprov: i0.ɵɵInjectableDeclaration<PopupService>;
136
128
  }