@progress/kendo-angular-notification 4.0.1-dev.202211170810 → 11.0.0-develop.79
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 +3 -3
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -5
- package/{esm2015/models/animation.js → esm2020/models/animation.mjs} +1 -1
- package/{esm2015/models/type.js → esm2020/models/notification-ref.mjs} +1 -1
- package/{esm2015/models/notification-settings.js → esm2020/models/notification-settings.mjs} +1 -1
- package/{esm2015/models/notification-ref.js → esm2020/models/position.mjs} +1 -1
- package/{esm2015/models/position.js → esm2020/models/type.mjs} +1 -1
- package/{esm2015/notification.component.js → esm2020/notification.component.mjs} +42 -37
- package/{esm2015/notification.container.component.js → esm2020/notification.container.component.mjs} +6 -6
- package/{esm2015/notification.module.js → esm2020/notification.module.mjs} +5 -5
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-notification.js → esm2020/progress-kendo-angular-notification.mjs} +2 -2
- package/{esm2015/services/notification.service.js → esm2020/services/notification.service.mjs} +8 -7
- package/{esm2015/utils/animations.js → esm2020/utils/animations.mjs} +1 -1
- package/fesm2015/progress-kendo-angular-notification.mjs +715 -0
- package/{fesm2015/kendo-angular-notification.js → fesm2020/progress-kendo-angular-notification.mjs} +61 -56
- package/{main.d.ts → index.d.ts} +1 -1
- package/localization/localized-messages.directive.d.ts +1 -1
- package/models/animation.d.ts +1 -1
- package/models/notification-ref.d.ts +2 -2
- package/models/notification-settings.d.ts +1 -1
- package/models/position.d.ts +1 -1
- package/models/type.d.ts +1 -1
- package/notification.component.d.ts +1 -1
- package/notification.container.component.d.ts +1 -1
- package/notification.module.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +27 -54
- package/{kendo-angular-notification.d.ts → progress-kendo-angular-notification.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/services/notification.service.d.ts +1 -1
- package/utils/animations.d.ts +1 -1
- package/bundles/kendo-angular-notification.umd.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
package/NOTICE.txt
CHANGED
|
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
|
|
|
37
37
|
Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
|
|
38
38
|
Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
|
|
39
39
|
Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
|
|
40
|
-
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
40
|
+
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
41
41
|
Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
|
|
42
42
|
Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
|
|
43
43
|
ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
|
|
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
|
|
|
433
433
|
@types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
|
|
434
434
|
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
|
|
435
435
|
@types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
|
|
436
|
-
subject to the following terms and conditions:
|
|
436
|
+
subject to the following terms and conditions:
|
|
437
437
|
|
|
438
438
|
This project is licensed under the MIT license.
|
|
439
439
|
Copyrights are respective of each contributor listed at the beginning of each
|
|
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
640
640
|
2. Special Notices Regarding Commercially Licensed Third-Party Components
|
|
641
641
|
incorporated into the Product: NONE
|
|
642
642
|
|
|
643
|
-
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
643
|
+
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
644
644
|
|
|
645
645
|
(a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
|
|
646
646
|
from Progress Software Corporation. See NOTICE.txt text file within product for
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export { NotificationSettings } from './models/notification-settings';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
import { Directive, forwardRef, Input } from '@angular/core';
|
|
6
|
-
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
6
|
+
import { ComponentMessages, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
9
|
/**
|
|
@@ -15,14 +15,14 @@ export class LocalizedMessagesDirective extends ComponentMessages {
|
|
|
15
15
|
this.service = service;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
18
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
|
|
20
20
|
{
|
|
21
21
|
provide: ComponentMessages,
|
|
22
22
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
23
23
|
}
|
|
24
24
|
], usesInheritance: true, ngImport: i0 });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
28
|
providers: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export {};
|
package/{esm2015/models/notification-settings.js → esm2020/models/notification-settings.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export class NotificationSettings {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Component, EventEmitter, HostBinding, Input, ViewChild, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import { Component, EventEmitter, HostBinding, Input, TemplateRef, ChangeDetectorRef, ViewChild, ViewContainerRef, ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
+
import { AnimationBuilder } from '@angular/animations';
|
|
6
7
|
import { take } from 'rxjs/operators';
|
|
7
8
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
9
|
import { packageMetadata } from './package-metadata';
|
|
@@ -141,8 +142,8 @@ export class NotificationComponent {
|
|
|
141
142
|
return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
|
-
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
145
|
-
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
145
|
+
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.AnimationBuilder }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
146
|
+
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationComponent, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction", "class.k-notification-container": "this.containerClass" } }, providers: [
|
|
146
147
|
LocalizationService,
|
|
147
148
|
{
|
|
148
149
|
provide: L10N_PREFIX,
|
|
@@ -154,30 +155,32 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
154
155
|
closeTitle="Close"
|
|
155
156
|
>
|
|
156
157
|
</ng-container>
|
|
157
|
-
<div class="k-
|
|
158
|
+
<div class="k-notification {{ notificationClasses() }}"
|
|
158
159
|
[ngClass]="cssClass"
|
|
159
160
|
[style.height.px]="height"
|
|
160
161
|
[style.width.px]="width">
|
|
161
|
-
<
|
|
162
|
-
<span *ngIf="type && type.icon && type.style !== 'none'" class="k-icon" [ngClass]="typeIconClass()"></span>
|
|
162
|
+
<span *ngIf="type && type.icon && type.style !== 'none'" class="k-notification-status k-icon" [ngClass]="typeIconClass()"></span>
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
<a *ngIf="closable" class="k-icon k-i-x" [attr.title]="closeButtonTitle" (click)="onCloseClick()"></a>
|
|
164
|
+
<div class="k-notification-content">
|
|
165
|
+
<ng-template
|
|
166
|
+
[ngIf]="templateRef"
|
|
167
|
+
[ngTemplateOutlet]="templateRef">
|
|
168
|
+
</ng-template>
|
|
169
|
+
<ng-template
|
|
170
|
+
[ngIf]="templateString">
|
|
171
|
+
{{ templateString }}
|
|
172
|
+
</ng-template>
|
|
173
|
+
<ng-container #container></ng-container>
|
|
177
174
|
</div>
|
|
175
|
+
|
|
176
|
+
<span *ngIf="closable" class="k-notification-actions">
|
|
177
|
+
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
178
|
+
<span class="k-icon k-i-x"></span>
|
|
179
|
+
</span>
|
|
180
|
+
</span>
|
|
178
181
|
</div>
|
|
179
182
|
`, isInline: true, directives: [{ type: i3.LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
181
184
|
type: Component,
|
|
182
185
|
args: [{
|
|
183
186
|
selector: 'kendo-notification',
|
|
@@ -187,27 +190,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
187
190
|
closeTitle="Close"
|
|
188
191
|
>
|
|
189
192
|
</ng-container>
|
|
190
|
-
<div class="k-
|
|
193
|
+
<div class="k-notification {{ notificationClasses() }}"
|
|
191
194
|
[ngClass]="cssClass"
|
|
192
195
|
[style.height.px]="height"
|
|
193
196
|
[style.width.px]="width">
|
|
194
|
-
<
|
|
195
|
-
<span *ngIf="type && type.icon && type.style !== 'none'" class="k-icon" [ngClass]="typeIconClass()"></span>
|
|
197
|
+
<span *ngIf="type && type.icon && type.style !== 'none'" class="k-notification-status k-icon" [ngClass]="typeIconClass()"></span>
|
|
196
198
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
<a *ngIf="closable" class="k-icon k-i-x" [attr.title]="closeButtonTitle" (click)="onCloseClick()"></a>
|
|
199
|
+
<div class="k-notification-content">
|
|
200
|
+
<ng-template
|
|
201
|
+
[ngIf]="templateRef"
|
|
202
|
+
[ngTemplateOutlet]="templateRef">
|
|
203
|
+
</ng-template>
|
|
204
|
+
<ng-template
|
|
205
|
+
[ngIf]="templateString">
|
|
206
|
+
{{ templateString }}
|
|
207
|
+
</ng-template>
|
|
208
|
+
<ng-container #container></ng-container>
|
|
210
209
|
</div>
|
|
210
|
+
|
|
211
|
+
<span *ngIf="closable" class="k-notification-actions">
|
|
212
|
+
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
213
|
+
<span class="k-icon k-i-x"></span>
|
|
214
|
+
</span>
|
|
215
|
+
</span>
|
|
211
216
|
</div>
|
|
212
217
|
`,
|
|
213
218
|
providers: [
|
package/{esm2015/notification.container.component.js → esm2020/notification.container.component.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Component, Input, ViewContainerRef, ViewChild, TemplateRef } from '@angular/core';
|
|
5
|
+
import { Component, Input, ElementRef, ComponentFactoryResolver, ViewContainerRef, Renderer2, ViewChild, TemplateRef } from '@angular/core';
|
|
6
6
|
import { NotificationComponent } from './notification.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
@@ -77,7 +77,7 @@ export class NotificationContainerComponent {
|
|
|
77
77
|
notification.templateRef = content;
|
|
78
78
|
}
|
|
79
79
|
notification.animation = animation;
|
|
80
|
-
|
|
80
|
+
const type = settings.type;
|
|
81
81
|
if (type && type.style === undefined) {
|
|
82
82
|
type.style = 'none';
|
|
83
83
|
}
|
|
@@ -127,13 +127,13 @@ export class NotificationContainerComponent {
|
|
|
127
127
|
return Object.assign({}, horizontal, vertical);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
131
|
-
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
130
|
+
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
131
|
+
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationContainerComponent, 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: `
|
|
132
132
|
<div #group class="k-notification-group">
|
|
133
133
|
<ng-container #container></ng-container>
|
|
134
134
|
</div>
|
|
135
135
|
`, isInline: true });
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationContainerComponent, decorators: [{
|
|
137
137
|
type: Component,
|
|
138
138
|
args: [{
|
|
139
139
|
selector: 'kendo-notification-container',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
import { NgModule } from '@angular/core';
|
|
@@ -41,10 +41,10 @@ import * as i0 from "@angular/core";
|
|
|
41
41
|
*/
|
|
42
42
|
export class NotificationModule {
|
|
43
43
|
}
|
|
44
|
-
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
45
|
-
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
46
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
45
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective], imports: [CommonModule], exports: [NotificationComponent, NotificationContainerComponent] });
|
|
46
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule]] });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
|
|
48
48
|
type: NgModule,
|
|
49
49
|
args: [{
|
|
50
50
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
/**
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-notification',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1672320692,
|
|
13
13
|
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
package/{esm2015/kendo-angular-notification.js → esm2020/progress-kendo-angular-notification.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './index';
|
package/{esm2015/services/notification.service.js → esm2020/services/notification.service.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Injectable, ApplicationRef, InjectionToken, Inject, Optional } from '@angular/core';
|
|
5
|
+
import { Injectable, ComponentFactoryResolver, ApplicationRef, Injector, InjectionToken, ElementRef, Inject, Optional } from '@angular/core';
|
|
6
6
|
import { NotificationContainerComponent } from '../notification.container.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
@@ -75,7 +75,7 @@ export class NotificationService {
|
|
|
75
75
|
if (!settings) {
|
|
76
76
|
throw new Error('NotificationSettings settings are required');
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
const target = this.findGroupContainer(settings);
|
|
79
79
|
const position = settings.position || this.position;
|
|
80
80
|
const currentId = `${position.horizontal} ${position.vertical}`;
|
|
81
81
|
let container;
|
|
@@ -88,7 +88,7 @@ export class NotificationService {
|
|
|
88
88
|
notificationContainer = container.instance;
|
|
89
89
|
this.appRef.attachView(container.hostView);
|
|
90
90
|
const hostViewElement = container.location.nativeElement;
|
|
91
|
-
|
|
91
|
+
const groupContainer = this.findGroupContainer(settings);
|
|
92
92
|
if (!groupContainer) {
|
|
93
93
|
throw new Error(`
|
|
94
94
|
View Container not found! Inject the NOTIFICATION_CONTAINER or define a specific ViewContainerRef via
|
|
@@ -100,6 +100,7 @@ export class NotificationService {
|
|
|
100
100
|
this.notificationContainers.push(notificationContainer);
|
|
101
101
|
}
|
|
102
102
|
settings.position = position;
|
|
103
|
+
// eslint-disable-next-line prefer-const
|
|
103
104
|
notificationRef = notificationContainer.addNotification(settings);
|
|
104
105
|
return notificationRef;
|
|
105
106
|
}
|
|
@@ -124,9 +125,9 @@ export class NotificationService {
|
|
|
124
125
|
return container;
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
128
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
129
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, decorators: [{
|
|
130
131
|
type: Injectable
|
|
131
132
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
|
|
132
133
|
type: Inject,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
5
|
import { style, animate } from '@angular/animations';
|