@progress/kendo-angular-notification 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 { 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:
|
|
133
|
-
version: '24.0
|
|
132
|
+
publishDate: 1780513865,
|
|
133
|
+
version: '24.1.0-develop.1',
|
|
134
134
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
135
135
|
};
|
|
136
136
|
|
|
@@ -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,
|
|
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
|
|
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
|
-
|
|
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,7 +663,7 @@ 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.
|
|
666
|
+
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.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
671
667
|
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: `
|
|
672
668
|
<div #group class="k-notification-group">
|
|
673
669
|
<ng-container #container></ng-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.
|
|
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(
|
|
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
|
-
|
|
773
|
-
|
|
774
|
-
|
|
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,7 +806,7 @@ 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.
|
|
809
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationService, deps: [{ token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
814
810
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
815
811
|
}
|
|
816
812
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: NotificationService, decorators: [{
|
|
@@ -818,7 +814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
|
|
|
818
814
|
args: [{
|
|
819
815
|
providedIn: 'root'
|
|
820
816
|
}]
|
|
821
|
-
}], ctorParameters: () => [{ type: i0.
|
|
817
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ElementRef, decorators: [{
|
|
822
818
|
type: Inject,
|
|
823
819
|
args: [NOTIFICATION_CONTAINER]
|
|
824
820
|
}, {
|
|
@@ -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,
|
|
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,
|
|
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;
|
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": 1780513865,
|
|
11
|
+
"version": "24.1.0-develop.1",
|
|
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
|
|
3
|
+
"version": "24.1.0-develop.1",
|
|
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":
|
|
20
|
+
"publishDate": 1780513865,
|
|
21
21
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@angular/animations": "19 -
|
|
26
|
-
"@angular/common": "19 -
|
|
27
|
-
"@angular/core": "19 -
|
|
28
|
-
"@angular/platform-browser": "19 -
|
|
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
|
|
31
|
-
"@progress/kendo-angular-l10n": "24.0
|
|
32
|
-
"@progress/kendo-angular-icons": "24.0
|
|
30
|
+
"@progress/kendo-angular-common": "24.1.0-develop.1",
|
|
31
|
+
"@progress/kendo-angular-l10n": "24.1.0-develop.1",
|
|
32
|
+
"@progress/kendo-angular-icons": "24.1.0-develop.1",
|
|
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
|
|
37
|
+
"@progress/kendo-angular-schematics": "24.1.0-develop.1"
|
|
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 {
|
|
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(
|
|
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,
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, [null, { optional: true; }]>;
|
|
72
71
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
73
72
|
}
|