@progress/kendo-angular-notification 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.
@@ -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 { forwardRef, Input, Directive, EventEmitter, ViewContainerRef, HostBinding, ViewChild, Component, TemplateRef, InjectionToken, ApplicationRef, Inject, Optional, Injectable, NgModule } from '@angular/core';
6
+ import { forwardRef, Input, Directive, EventEmitter, ViewContainerRef, HostBinding, ViewChild, Component, TemplateRef, InjectionToken, EnvironmentInjector, createComponent, ApplicationRef, Inject, Optional, Injectable, NgModule } from '@angular/core';
7
7
  import { NgClass, NgTemplateOutlet } from '@angular/common';
8
8
  import * as i1$1 from '@angular/animations';
9
9
  import { style, animate } from '@angular/animations';
@@ -129,8 +129,8 @@ const packageMetadata = {
129
129
  productName: 'Kendo UI for Angular',
130
130
  productCode: 'KENDOUIANGULAR',
131
131
  productCodes: ['KENDOUIANGULAR'],
132
- publishDate: 1780381475,
133
- version: '24.0.4-develop.1',
132
+ publishDate: 1780593910,
133
+ version: '24.1.0',
134
134
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
135
135
  };
136
136
 
@@ -184,15 +184,15 @@ class LocalizedMessagesDirective extends ComponentMessages {
184
184
  super();
185
185
  this.service = service;
186
186
  }
187
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
188
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.24", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
187
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
188
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
189
189
  {
190
190
  provide: ComponentMessages,
191
191
  useExisting: forwardRef(() => LocalizedMessagesDirective)
192
192
  }
193
193
  ], usesInheritance: true, ngImport: i0 });
194
194
  }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
196
196
  type: Directive,
197
197
  args: [{
198
198
  providers: [
@@ -384,8 +384,8 @@ class NotificationComponent {
384
384
  fadeAnimation(duration, onclose) {
385
385
  return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
386
386
  }
387
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
388
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.24", type: NotificationComponent, isStandalone: true, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", notificationLabel: "notificationLabel", notificationRole: "notificationRole", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
387
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
388
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: NotificationComponent, isStandalone: true, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", notificationLabel: "notificationLabel", notificationRole: "notificationRole", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
389
389
  LocalizationService,
390
390
  {
391
391
  provide: L10N_PREFIX,
@@ -436,7 +436,7 @@ class NotificationComponent {
436
436
  </div>
437
437
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
438
438
  }
439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationComponent, decorators: [{
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationComponent, decorators: [{
440
440
  type: Component,
441
441
  args: [{
442
442
  selector: 'kendo-notification',
@@ -530,17 +530,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
530
530
  class NotificationContainerComponent {
531
531
  element;
532
532
  renderer;
533
- resolver;
534
533
  ngZone;
535
534
  container;
536
535
  group;
537
536
  id = '';
538
537
  notifications = [];
539
538
  position;
540
- constructor(element, renderer, resolver, ngZone) {
539
+ constructor(element, renderer, ngZone) {
541
540
  this.element = element;
542
541
  this.renderer = renderer;
543
- this.resolver = resolver;
544
542
  this.ngZone = ngZone;
545
543
  /**/
546
544
  }
@@ -555,13 +553,11 @@ class NotificationContainerComponent {
555
553
  addNotification(settings) {
556
554
  this.position = settings.position;
557
555
  this.id = `${this.position.horizontal} ${this.position.vertical}`;
558
- const factory = this.resolver.resolveComponentFactory(NotificationComponent);
559
- const notificationRef = this.container.createComponent(factory);
556
+ const notificationRef = this.container.createComponent(NotificationComponent);
560
557
  this.applySettings(notificationRef, settings);
561
558
  let customComponent = null;
562
559
  if (typeof settings.content === 'function') {
563
- const customFactory = this.resolver.resolveComponentFactory(settings.content);
564
- customComponent = notificationRef.instance.container.createComponent(customFactory);
560
+ customComponent = notificationRef.instance.container.createComponent(settings.content);
565
561
  }
566
562
  notificationRef.changeDetectorRef.detectChanges();
567
563
  this.notifications.push(notificationRef.instance);
@@ -667,14 +663,14 @@ class NotificationContainerComponent {
667
663
  const vertical = positionLayout.vertical[position.vertical];
668
664
  return Object.assign({}, horizontal, vertical);
669
665
  }
670
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
671
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.24", type: NotificationContainerComponent, isStandalone: true, selector: "kendo-notification-container", inputs: { id: "id" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "group", first: true, predicate: ["group"], descendants: true, static: true }], ngImport: i0, template: `
666
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
667
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: NotificationContainerComponent, isStandalone: true, selector: "kendo-notification-container", inputs: { id: "id" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "group", first: true, predicate: ["group"], descendants: true, static: true }], ngImport: i0, template: `
672
668
  <div #group class="k-notification-group">
673
669
  <ng-container #container></ng-container>
674
670
  </div>
675
671
  `, isInline: true });
676
672
  }
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationContainerComponent, decorators: [{
673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationContainerComponent, decorators: [{
678
674
  type: Component,
679
675
  args: [{
680
676
  selector: 'kendo-notification-container',
@@ -685,7 +681,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
685
681
  `,
686
682
  standalone: true,
687
683
  }]
688
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ComponentFactoryResolver }, { type: i0.NgZone }], propDecorators: { container: [{
684
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }], propDecorators: { container: [{
689
685
  type: ViewChild,
690
686
  args: ['container', { read: ViewContainerRef, static: true }]
691
687
  }], group: [{
@@ -736,7 +732,6 @@ const NOTIFICATION_CONTAINER = new InjectionToken('Notification Container');
736
732
  * @class NotificationService
737
733
  */
738
734
  class NotificationService {
739
- resolver;
740
735
  injector;
741
736
  container;
742
737
  notificationContainers = [];
@@ -745,8 +740,7 @@ class NotificationService {
745
740
  /**
746
741
  * @hidden
747
742
  */
748
- constructor(resolver, injector, container) {
749
- this.resolver = resolver;
743
+ constructor(injector, container) {
750
744
  this.injector = injector;
751
745
  this.container = container;
752
746
  }
@@ -769,9 +763,11 @@ class NotificationService {
769
763
  let notificationRef;
770
764
  let notificationContainer = this.notificationContainers.find(c => target.nativeElement.contains(c.element.nativeElement) && c.id === currentId);
771
765
  if (!notificationContainer) {
772
- container = this.resolver
773
- .resolveComponentFactory(NotificationContainerComponent)
774
- .create(this.injector);
766
+ const environmentInjector = this.injector.get(EnvironmentInjector);
767
+ container = createComponent(NotificationContainerComponent, {
768
+ environmentInjector,
769
+ elementInjector: this.injector
770
+ });
775
771
  notificationContainer = container.instance;
776
772
  this.appRef.attachView(container.hostView);
777
773
  const hostViewElement = container.location.nativeElement;
@@ -810,15 +806,15 @@ class NotificationService {
810
806
  }
811
807
  return container;
812
808
  }
813
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
814
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationService, providedIn: 'root' });
809
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationService, deps: [{ token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
810
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationService, providedIn: 'root' });
815
811
  }
816
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationService, decorators: [{
812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationService, decorators: [{
817
813
  type: Injectable,
818
814
  args: [{
819
815
  providedIn: 'root'
820
816
  }]
821
- }], ctorParameters: () => [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
817
+ }], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ElementRef, decorators: [{
822
818
  type: Inject,
823
819
  args: [NOTIFICATION_CONTAINER]
824
820
  }, {
@@ -887,11 +883,11 @@ const KENDO_NOTIFICATION = [
887
883
  * ```
888
884
  */
889
885
  class NotificationModule {
890
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
891
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.24", ngImport: i0, type: NotificationModule, imports: [NotificationComponent, NotificationContainerComponent], exports: [NotificationComponent, NotificationContainerComponent] });
892
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationModule, providers: [NotificationService, IconsService], imports: [NotificationComponent] });
886
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
887
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: NotificationModule, imports: [NotificationComponent, NotificationContainerComponent], exports: [NotificationComponent, NotificationContainerComponent] });
888
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationModule, providers: [NotificationService, IconsService], imports: [NotificationComponent] });
893
889
  }
894
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationModule, decorators: [{
890
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NotificationModule, decorators: [{
895
891
  type: NgModule,
896
892
  args: [{
897
893
  imports: [...KENDO_NOTIFICATION],
@@ -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 { ElementRef, ComponentFactoryResolver, ViewContainerRef, OnDestroy, Renderer2, ComponentRef, NgZone } from '@angular/core';
5
+ import { ElementRef, ViewContainerRef, OnDestroy, Renderer2, ComponentRef, NgZone } from '@angular/core';
6
6
  import { NotificationSettings } from './models/notification-settings';
7
7
  import { NotificationComponent } from './notification.component';
8
8
  import { NotificationRef } from './models/notification-ref';
@@ -13,14 +13,13 @@ import * as i0 from "@angular/core";
13
13
  export declare class NotificationContainerComponent implements OnDestroy {
14
14
  element: ElementRef;
15
15
  renderer: Renderer2;
16
- private resolver;
17
16
  private ngZone;
18
17
  container: ViewContainerRef;
19
18
  group: ElementRef;
20
19
  id: string;
21
20
  notifications: NotificationComponent[];
22
21
  private position;
23
- constructor(element: ElementRef, renderer: Renderer2, resolver: ComponentFactoryResolver, ngZone: NgZone);
22
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
24
23
  ngOnDestroy(): void;
25
24
  addNotification(settings: NotificationSettings): NotificationRef;
26
25
  hide(notificationRef: ComponentRef<NotificationComponent>): void;
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1780381475,
11
- "version": "24.0.4-develop.1",
10
+ "publishDate": 1780593910,
11
+ "version": "24.1.0",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-notification",
3
- "version": "24.0.4-develop.1",
3
+ "version": "24.1.0",
4
4
  "description": "Kendo UI Notification for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -17,24 +17,24 @@
17
17
  "package": {
18
18
  "productName": "Kendo UI for Angular",
19
19
  "productCode": "KENDOUIANGULAR",
20
- "publishDate": 1780381475,
20
+ "publishDate": 1780593910,
21
21
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
22
22
  }
23
23
  },
24
24
  "peerDependencies": {
25
- "@angular/animations": "19 - 21",
26
- "@angular/common": "19 - 21",
27
- "@angular/core": "19 - 21",
28
- "@angular/platform-browser": "19 - 21",
25
+ "@angular/animations": "19 - 22",
26
+ "@angular/common": "19 - 22",
27
+ "@angular/core": "19 - 22",
28
+ "@angular/platform-browser": "19 - 22",
29
29
  "@progress/kendo-licensing": "^1.11.0",
30
- "@progress/kendo-angular-common": "24.0.4-develop.1",
31
- "@progress/kendo-angular-l10n": "24.0.4-develop.1",
32
- "@progress/kendo-angular-icons": "24.0.4-develop.1",
30
+ "@progress/kendo-angular-common": "24.1.0",
31
+ "@progress/kendo-angular-l10n": "24.1.0",
32
+ "@progress/kendo-angular-icons": "24.1.0",
33
33
  "rxjs": "^6.5.3 || ^7.0.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "tslib": "^2.3.1",
37
- "@progress/kendo-angular-schematics": "24.0.4-develop.1"
37
+ "@progress/kendo-angular-schematics": "24.1.0"
38
38
  },
39
39
  "schematics": "./schematics/collection.json",
40
40
  "module": "fesm2022/progress-kendo-angular-notification.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 { ComponentFactoryResolver, Injector, InjectionToken, ElementRef } from '@angular/core';
5
+ import { Injector, InjectionToken, ElementRef } from '@angular/core';
6
6
  import { NotificationSettings } from '../models/notification-settings';
7
7
  import { NotificationRef } from '../models/notification-ref';
8
8
  import * as i0 from "@angular/core";
@@ -47,7 +47,6 @@ export declare const NOTIFICATION_CONTAINER: InjectionToken<ElementRef<any>>;
47
47
  * @class NotificationService
48
48
  */
49
49
  export declare class NotificationService {
50
- private resolver;
51
50
  private injector;
52
51
  private container;
53
52
  private notificationContainers;
@@ -56,7 +55,7 @@ export declare class NotificationService {
56
55
  /**
57
56
  * @hidden
58
57
  */
59
- constructor(resolver: ComponentFactoryResolver, injector: Injector, container: ElementRef);
58
+ constructor(injector: Injector, container: ElementRef);
60
59
  /**
61
60
  * Opens a Notification component. Created Notifications are mounted
62
61
  * in the DOM directly in the root application component.
@@ -68,6 +67,6 @@ export declare class NotificationService {
68
67
  show(settings: NotificationSettings): NotificationRef;
69
68
  private get appRef();
70
69
  private findGroupContainer;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, [null, null, { optional: true; }]>;
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, [null, { optional: true; }]>;
72
71
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
73
72
  }