@progress/kendo-angular-notification 4.0.1 → 11.0.0-develop.101
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +1 -1
- 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} +76 -46
- package/{esm2015/notification.container.component.js → esm2020/notification.container.component.mjs} +6 -6
- package/{esm2015/notification.module.js → esm2020/notification.module.mjs} +7 -6
- 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 +741 -0
- package/{fesm2015/kendo-angular-notification.js → fesm2020/progress-kendo-angular-notification.mjs} +96 -65
- 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 +7 -1
- package/notification.container.component.d.ts +1 -1
- package/notification.module.d.ts +3 -2
- package/package-metadata.d.ts +1 -1
- package/package.json +28 -54
- package/{kendo-angular-notification.d.ts → progress-kendo-angular-notification.d.ts} +2 -2
- package/schematics/ngAdd/index.js +5 -7
- 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/LICENSE.md
CHANGED
|
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**Telerik End
|
|
|
8
8
|
|
|
9
9
|
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
|
|
10
10
|
|
|
11
|
-
*Copyright ©
|
|
11
|
+
*Copyright © 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
package/NOTICE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Progress Kendo UI for Angular
|
|
1
|
+
Progress Kendo UI for Angular 2023
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2016-2022 Progress Software Corporation and/or one of its
|
|
4
4
|
subsidiaries or affiliates. All rights reserved.
|
|
@@ -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
|
package/README.md
CHANGED
|
@@ -28,6 +28,6 @@ Kendo UI for Angular is a commercial UI library designed and built for developin
|
|
|
28
28
|
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
|
|
29
29
|
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
|
|
30
30
|
|
|
31
|
-
*Copyright ©
|
|
31
|
+
*Copyright © 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
32
32
|
|
|
33
33
|
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 © 2023 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 © 2023 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 © 2023 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 © 2023 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 © 2023 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 © 2023 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,18 +1,21 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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';
|
|
9
10
|
import { fadeAnimation, fadeCloseAnimation, slideAnimation, slideCloseAnimation } from './utils/animations';
|
|
10
11
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { checkOutlineIcon, exclamationCircleIcon, infoCircleIcon, xIcon, xOutlineIcon } from '@progress/kendo-svg-icons';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
import * as i1 from "@angular/animations";
|
|
13
15
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
14
|
-
import * as i3 from "
|
|
15
|
-
import * as i4 from "
|
|
16
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
17
|
+
import * as i4 from "./localization/localized-messages.directive";
|
|
18
|
+
import * as i5 from "@angular/common";
|
|
16
19
|
/**
|
|
17
20
|
* @hidden
|
|
18
21
|
*
|
|
@@ -24,6 +27,10 @@ export class NotificationComponent {
|
|
|
24
27
|
this.renderer = renderer;
|
|
25
28
|
this.builder = builder;
|
|
26
29
|
this.localizationService = localizationService;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
this.xIcon = xIcon;
|
|
27
34
|
this.close = new EventEmitter();
|
|
28
35
|
this.width = null;
|
|
29
36
|
this.height = null;
|
|
@@ -79,10 +86,19 @@ export class NotificationComponent {
|
|
|
79
86
|
typeIconClass() {
|
|
80
87
|
return {
|
|
81
88
|
'none': '',
|
|
82
|
-
'success': '
|
|
83
|
-
'warning': '
|
|
84
|
-
'error': '
|
|
85
|
-
'info': '
|
|
89
|
+
'success': 'check-outline',
|
|
90
|
+
'warning': 'exclamation-circle',
|
|
91
|
+
'error': 'x-outline',
|
|
92
|
+
'info': 'info-circle'
|
|
93
|
+
}[this.type.style];
|
|
94
|
+
}
|
|
95
|
+
typeSVGIcon() {
|
|
96
|
+
return {
|
|
97
|
+
'none': null,
|
|
98
|
+
'success': checkOutlineIcon,
|
|
99
|
+
'warning': exclamationCircleIcon,
|
|
100
|
+
'error': xOutlineIcon,
|
|
101
|
+
'info': infoCircleIcon
|
|
86
102
|
}[this.type.style];
|
|
87
103
|
}
|
|
88
104
|
onCloseClick() {
|
|
@@ -141,8 +157,8 @@ export class NotificationComponent {
|
|
|
141
157
|
return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
|
|
142
158
|
}
|
|
143
159
|
}
|
|
144
|
-
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
145
|
-
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
160
|
+
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 });
|
|
161
|
+
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
162
|
LocalizationService,
|
|
147
163
|
{
|
|
148
164
|
provide: L10N_PREFIX,
|
|
@@ -154,30 +170,37 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
154
170
|
closeTitle="Close"
|
|
155
171
|
>
|
|
156
172
|
</ng-container>
|
|
157
|
-
<div class="k-
|
|
173
|
+
<div class="k-notification {{ notificationClasses() }}"
|
|
158
174
|
[ngClass]="cssClass"
|
|
159
175
|
[style.height.px]="height"
|
|
160
176
|
[style.width.px]="width">
|
|
161
|
-
<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
<kendo-icon-wrapper
|
|
178
|
+
*ngIf="type && type.icon && type.style !== 'none'"
|
|
179
|
+
innerCssClass="k-notification-status"
|
|
180
|
+
[name]="typeIconClass()"
|
|
181
|
+
[svgIcon]="typeSVGIcon()"
|
|
182
|
+
>
|
|
183
|
+
</kendo-icon-wrapper>
|
|
184
|
+
<div class="k-notification-content">
|
|
185
|
+
<ng-template
|
|
186
|
+
[ngIf]="templateRef"
|
|
187
|
+
[ngTemplateOutlet]="templateRef">
|
|
188
|
+
</ng-template>
|
|
189
|
+
<ng-template
|
|
190
|
+
[ngIf]="templateString">
|
|
191
|
+
{{ templateString }}
|
|
192
|
+
</ng-template>
|
|
193
|
+
<ng-container #container></ng-container>
|
|
177
194
|
</div>
|
|
195
|
+
|
|
196
|
+
<span *ngIf="closable" class="k-notification-actions">
|
|
197
|
+
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
198
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
199
|
+
</span>
|
|
200
|
+
</span>
|
|
178
201
|
</div>
|
|
179
|
-
`, isInline: true,
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
202
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
181
204
|
type: Component,
|
|
182
205
|
args: [{
|
|
183
206
|
selector: 'kendo-notification',
|
|
@@ -187,27 +210,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
187
210
|
closeTitle="Close"
|
|
188
211
|
>
|
|
189
212
|
</ng-container>
|
|
190
|
-
<div class="k-
|
|
213
|
+
<div class="k-notification {{ notificationClasses() }}"
|
|
191
214
|
[ngClass]="cssClass"
|
|
192
215
|
[style.height.px]="height"
|
|
193
216
|
[style.width.px]="width">
|
|
194
|
-
<
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
217
|
+
<kendo-icon-wrapper
|
|
218
|
+
*ngIf="type && type.icon && type.style !== 'none'"
|
|
219
|
+
innerCssClass="k-notification-status"
|
|
220
|
+
[name]="typeIconClass()"
|
|
221
|
+
[svgIcon]="typeSVGIcon()"
|
|
222
|
+
>
|
|
223
|
+
</kendo-icon-wrapper>
|
|
224
|
+
<div class="k-notification-content">
|
|
225
|
+
<ng-template
|
|
226
|
+
[ngIf]="templateRef"
|
|
227
|
+
[ngTemplateOutlet]="templateRef">
|
|
228
|
+
</ng-template>
|
|
229
|
+
<ng-template
|
|
230
|
+
[ngIf]="templateString">
|
|
231
|
+
{{ templateString }}
|
|
232
|
+
</ng-template>
|
|
233
|
+
<ng-container #container></ng-container>
|
|
210
234
|
</div>
|
|
235
|
+
|
|
236
|
+
<span *ngIf="closable" class="k-notification-actions">
|
|
237
|
+
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
238
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
239
|
+
</span>
|
|
240
|
+
</span>
|
|
211
241
|
</div>
|
|
212
242
|
`,
|
|
213
243
|
providers: [
|
package/{esm2015/notification.container.component.js → esm2020/notification.container.component.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 © 2023 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';
|
|
@@ -8,6 +8,7 @@ import { NotificationService } from './services/notification.service';
|
|
|
8
8
|
import { NotificationComponent } from './notification.component';
|
|
9
9
|
import { NotificationContainerComponent } from './notification.container.component';
|
|
10
10
|
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
11
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
/**
|
|
13
14
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -41,15 +42,15 @@ import * as i0 from "@angular/core";
|
|
|
41
42
|
*/
|
|
42
43
|
export class NotificationModule {
|
|
43
44
|
}
|
|
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: "
|
|
45
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
46
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective], imports: [CommonModule, IconsModule], exports: [NotificationComponent, NotificationContainerComponent] });
|
|
47
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule, IconsModule]] });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
|
|
48
49
|
type: NgModule,
|
|
49
50
|
args: [{
|
|
50
51
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
51
52
|
entryComponents: [NotificationComponent, NotificationContainerComponent],
|
|
52
|
-
imports: [CommonModule],
|
|
53
|
+
imports: [CommonModule, IconsModule],
|
|
53
54
|
exports: [NotificationComponent, NotificationContainerComponent],
|
|
54
55
|
providers: [NotificationService]
|
|
55
56
|
}]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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: 1673510433,
|
|
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 © 2023 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 © 2023 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 © 2023 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';
|