@progress/kendo-angular-notification 11.0.0-develop.98 → 11.0.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.
- package/NOTICE.txt +17 -17
- package/esm2020/notification.component.mjs +38 -13
- package/esm2020/notification.module.mjs +4 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-notification.mjs +43 -17
- package/fesm2020/progress-kendo-angular-notification.mjs +43 -17
- package/notification.component.d.ts +6 -0
- package/notification.module.d.ts +2 -1
- package/package.json +6 -5
- package/schematics/ngAdd/index.js +4 -2
package/NOTICE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Progress Kendo UI for Angular 2023
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright © 2016-2023 Progress Software Corporation and/or one of its
|
|
4
4
|
subsidiaries or affiliates. All rights reserved.
|
|
5
5
|
|
|
6
6
|
Portions of the Product include certain open source and commercial third-party
|
|
@@ -65,7 +65,7 @@ the Product:
|
|
|
65
65
|
|
|
66
66
|
(1) The Apache Software License, Version 2.0:
|
|
67
67
|
|
|
68
|
-
Progress Kendo UI for Angular
|
|
68
|
+
Progress Kendo UI for Angular 2023 incorporates TsLib v1.9.3. Such technology
|
|
69
69
|
is subject to the following terms and conditions: Apache Software License Version 2.0.
|
|
70
70
|
|
|
71
71
|
Apache License
|
|
@@ -290,7 +290,7 @@ is subject to the following terms and conditions: Apache Software License Versio
|
|
|
290
290
|
|
|
291
291
|
(2) BSD-Style Licenses:
|
|
292
292
|
|
|
293
|
-
(a) Progress Kendo UI for Angular
|
|
293
|
+
(a) Progress Kendo UI for Angular 2023 incorporates xlf-translate v2.0.4. Such
|
|
294
294
|
technology is subject to the following terms and conditions:
|
|
295
295
|
|
|
296
296
|
BSD 3-Clause License
|
|
@@ -325,7 +325,7 @@ technology is subject to the following terms and conditions:
|
|
|
325
325
|
|
|
326
326
|
(3) The ISC License:
|
|
327
327
|
|
|
328
|
-
(a) Progress Kendo UI for Angular
|
|
328
|
+
(a) Progress Kendo UI for Angular 2023 incorporates glob v7.1.3. Such technology
|
|
329
329
|
is subject to the following terms and conditions:
|
|
330
330
|
|
|
331
331
|
The ISC License
|
|
@@ -352,7 +352,7 @@ is subject to the following terms and conditions:
|
|
|
352
352
|
|
|
353
353
|
(4) MIT-Style Licenses:
|
|
354
354
|
|
|
355
|
-
(a) Progress Kendo UI for Angular
|
|
355
|
+
(a) Progress Kendo UI for Angular 2023 incorporates HammerJS v2.0.8. Such
|
|
356
356
|
technology is subject to the following terms and conditions:
|
|
357
357
|
|
|
358
358
|
The MIT License (MIT)
|
|
@@ -377,7 +377,7 @@ technology is subject to the following terms and conditions:
|
|
|
377
377
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
378
378
|
SOFTWARE.
|
|
379
379
|
|
|
380
|
-
(b) Progress Kendo UI for Angular
|
|
380
|
+
(b) Progress Kendo UI for Angular 2023 incorporates prosemirror-commands v1*,
|
|
381
381
|
prosemirror-cursor v1*, prosemirror-gapcursor v1*, prosemirror-history v1*,
|
|
382
382
|
prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*,
|
|
383
383
|
prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.7*,
|
|
@@ -404,7 +404,7 @@ subject to the following terms and conditions:
|
|
|
404
404
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
405
405
|
THE SOFTWARE.
|
|
406
406
|
|
|
407
|
-
(c) Progress Kendo UI for Angular
|
|
407
|
+
(c) Progress Kendo UI for Angular 2023 incorporates cheerio v0.2.2. Such technology is subject to the following terms and conditions:
|
|
408
408
|
|
|
409
409
|
MIT License
|
|
410
410
|
|
|
@@ -428,7 +428,7 @@ subject to the following terms and conditions:
|
|
|
428
428
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
429
429
|
SOFTWARE.
|
|
430
430
|
|
|
431
|
-
(d) Progress Kendo UI for Angular
|
|
431
|
+
(d) Progress Kendo UI for Angular 2023 incorporates @types/prosemirror-commands v1*,
|
|
432
432
|
@types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, @types/prosemirror-history v1*,
|
|
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*,
|
|
@@ -457,7 +457,7 @@ subject to the following terms and conditions:
|
|
|
457
457
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
458
458
|
SOFTWARE.
|
|
459
459
|
|
|
460
|
-
(e) Progress Kendo UI for Angular
|
|
460
|
+
(e) Progress Kendo UI for Angular 2023 incorporates pako-esm v1.0.0. Such
|
|
461
461
|
technology is subject to the following terms and conditions:
|
|
462
462
|
|
|
463
463
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
|
|
@@ -483,7 +483,7 @@ technology is subject to the following terms and conditions:
|
|
|
483
483
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
484
484
|
THE SOFTWARE.
|
|
485
485
|
|
|
486
|
-
(f) Progress Kendo UI for Angular
|
|
486
|
+
(f) Progress Kendo UI for Angular 2023 incorporates jszip-esm v1.0.0. Such
|
|
487
487
|
technology is subject to the following terms and conditions:
|
|
488
488
|
|
|
489
489
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
|
|
@@ -510,7 +510,7 @@ technology is subject to the following terms and conditions:
|
|
|
510
510
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
511
511
|
THE SOFTWARE.
|
|
512
512
|
|
|
513
|
-
(g) Progress Kendo UI for Angular
|
|
513
|
+
(g) Progress Kendo UI for Angular 2023 incorporates data.task v3.1.2. Such
|
|
514
514
|
technology is subject to the following terms and conditions:
|
|
515
515
|
|
|
516
516
|
The MIT License
|
|
@@ -535,7 +535,7 @@ technology is subject to the following terms and conditions:
|
|
|
535
535
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
536
536
|
THE SOFTWARE.
|
|
537
537
|
|
|
538
|
-
(h) Progress Kendo UI for Angular
|
|
538
|
+
(h) Progress Kendo UI for Angular 2023 incorporates ramda v0.23. Such technology
|
|
539
539
|
is subject to the following terms and conditions:
|
|
540
540
|
|
|
541
541
|
The MIT License (MIT)
|
|
@@ -560,7 +560,7 @@ is subject to the following terms and conditions:
|
|
|
560
560
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
561
561
|
THE SOFTWARE.
|
|
562
562
|
|
|
563
|
-
(i) Progress Kendo UI for Angular
|
|
563
|
+
(i) Progress Kendo UI for Angular 2023 incorporates js-yaml v3.14.0. Such
|
|
564
564
|
technology is subject to the following terms and conditions:
|
|
565
565
|
|
|
566
566
|
(The MIT License)
|
|
@@ -587,7 +587,7 @@ technology is subject to the following terms and conditions:
|
|
|
587
587
|
|
|
588
588
|
(5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE:
|
|
589
589
|
|
|
590
|
-
Progress Kendo UI for Angular
|
|
590
|
+
Progress Kendo UI for Angular 2023 incorporates Unicode CLDR Database v33.
|
|
591
591
|
Such technology is subject to the following terms and conditions:
|
|
592
592
|
|
|
593
593
|
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
|
|
@@ -605,7 +605,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
605
605
|
|
|
606
606
|
COPYRIGHT AND PERMISSION NOTICE
|
|
607
607
|
|
|
608
|
-
Copyright © 1991-
|
|
608
|
+
Copyright © 1991-2019 Unicode, Inc. All rights reserved.
|
|
609
609
|
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
|
|
610
610
|
|
|
611
611
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -642,7 +642,7 @@ incorporated into the Product: NONE
|
|
|
642
642
|
|
|
643
643
|
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
644
644
|
|
|
645
|
-
(a) Progress Kendo UI for Angular
|
|
645
|
+
(a) Progress Kendo UI for Angular 2023 incorporates Kendo UI Licensing CLI v1.1
|
|
646
646
|
from Progress Software Corporation. See NOTICE.txt text file within product for
|
|
647
647
|
third-party license information.
|
|
648
648
|
|
|
@@ -651,4 +651,4 @@ the release notes or other documentation that accompanies updates received in
|
|
|
651
651
|
connection with support of the Product.
|
|
652
652
|
|
|
653
653
|
|
|
654
|
-
Updated
|
|
654
|
+
Updated 13.Jan.2023
|
|
@@ -9,11 +9,13 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
9
9
|
import { packageMetadata } from './package-metadata';
|
|
10
10
|
import { fadeAnimation, fadeCloseAnimation, slideAnimation, slideCloseAnimation } from './utils/animations';
|
|
11
11
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { checkOutlineIcon, exclamationCircleIcon, infoCircleIcon, xIcon, xOutlineIcon } from '@progress/kendo-svg-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
import * as i1 from "@angular/animations";
|
|
14
15
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
15
|
-
import * as i3 from "
|
|
16
|
-
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";
|
|
17
19
|
/**
|
|
18
20
|
* @hidden
|
|
19
21
|
*
|
|
@@ -25,6 +27,10 @@ export class NotificationComponent {
|
|
|
25
27
|
this.renderer = renderer;
|
|
26
28
|
this.builder = builder;
|
|
27
29
|
this.localizationService = localizationService;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
this.xIcon = xIcon;
|
|
28
34
|
this.close = new EventEmitter();
|
|
29
35
|
this.width = null;
|
|
30
36
|
this.height = null;
|
|
@@ -80,10 +86,19 @@ export class NotificationComponent {
|
|
|
80
86
|
typeIconClass() {
|
|
81
87
|
return {
|
|
82
88
|
'none': '',
|
|
83
|
-
'success': '
|
|
84
|
-
'warning': '
|
|
85
|
-
'error': '
|
|
86
|
-
'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
|
|
87
102
|
}[this.type.style];
|
|
88
103
|
}
|
|
89
104
|
onCloseClick() {
|
|
@@ -159,8 +174,13 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
159
174
|
[ngClass]="cssClass"
|
|
160
175
|
[style.height.px]="height"
|
|
161
176
|
[style.width.px]="width">
|
|
162
|
-
<
|
|
163
|
-
|
|
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>
|
|
164
184
|
<div class="k-notification-content">
|
|
165
185
|
<ng-template
|
|
166
186
|
[ngIf]="templateRef"
|
|
@@ -175,11 +195,11 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
175
195
|
|
|
176
196
|
<span *ngIf="closable" class="k-notification-actions">
|
|
177
197
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
178
|
-
<
|
|
198
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
179
199
|
</span>
|
|
180
200
|
</span>
|
|
181
201
|
</div>
|
|
182
|
-
`, isInline: true,
|
|
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"] }] });
|
|
183
203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
184
204
|
type: Component,
|
|
185
205
|
args: [{
|
|
@@ -194,8 +214,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
194
214
|
[ngClass]="cssClass"
|
|
195
215
|
[style.height.px]="height"
|
|
196
216
|
[style.width.px]="width">
|
|
197
|
-
<
|
|
198
|
-
|
|
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>
|
|
199
224
|
<div class="k-notification-content">
|
|
200
225
|
<ng-template
|
|
201
226
|
[ngIf]="templateRef"
|
|
@@ -210,7 +235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
210
235
|
|
|
211
236
|
<span *ngIf="closable" class="k-notification-actions">
|
|
212
237
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
213
|
-
<
|
|
238
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
214
239
|
</span>
|
|
215
240
|
</span>
|
|
216
241
|
</div>
|
|
@@ -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'])
|
|
@@ -42,14 +43,14 @@ import * as i0 from "@angular/core";
|
|
|
42
43
|
export class NotificationModule {
|
|
43
44
|
}
|
|
44
45
|
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]] });
|
|
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]] });
|
|
47
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
|
}]
|
|
@@ -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:
|
|
13
|
-
version: '',
|
|
12
|
+
publishDate: 1674032260,
|
|
13
|
+
version: '11.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -10,7 +10,10 @@ import * as i1$1 from '@angular/animations';
|
|
|
10
10
|
import { style, animate } from '@angular/animations';
|
|
11
11
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
13
|
-
import
|
|
13
|
+
import { xIcon, checkOutlineIcon, exclamationCircleIcon, xOutlineIcon, infoCircleIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import * as i3 from '@progress/kendo-angular-icons';
|
|
15
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
16
|
+
import * as i5 from '@angular/common';
|
|
14
17
|
import { CommonModule } from '@angular/common';
|
|
15
18
|
|
|
16
19
|
class NotificationSettings {
|
|
@@ -69,8 +72,8 @@ const packageMetadata = {
|
|
|
69
72
|
name: '@progress/kendo-angular-notification',
|
|
70
73
|
productName: 'Kendo UI for Angular',
|
|
71
74
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
72
|
-
publishDate:
|
|
73
|
-
version: '',
|
|
75
|
+
publishDate: 1674032260,
|
|
76
|
+
version: '11.0.0',
|
|
74
77
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
75
78
|
};
|
|
76
79
|
|
|
@@ -153,6 +156,10 @@ class NotificationComponent {
|
|
|
153
156
|
this.renderer = renderer;
|
|
154
157
|
this.builder = builder;
|
|
155
158
|
this.localizationService = localizationService;
|
|
159
|
+
/**
|
|
160
|
+
* @hidden
|
|
161
|
+
*/
|
|
162
|
+
this.xIcon = xIcon;
|
|
156
163
|
this.close = new EventEmitter();
|
|
157
164
|
this.width = null;
|
|
158
165
|
this.height = null;
|
|
@@ -208,10 +215,19 @@ class NotificationComponent {
|
|
|
208
215
|
typeIconClass() {
|
|
209
216
|
return {
|
|
210
217
|
'none': '',
|
|
211
|
-
'success': '
|
|
212
|
-
'warning': '
|
|
213
|
-
'error': '
|
|
214
|
-
'info': '
|
|
218
|
+
'success': 'check-outline',
|
|
219
|
+
'warning': 'exclamation-circle',
|
|
220
|
+
'error': 'x-outline',
|
|
221
|
+
'info': 'info-circle'
|
|
222
|
+
}[this.type.style];
|
|
223
|
+
}
|
|
224
|
+
typeSVGIcon() {
|
|
225
|
+
return {
|
|
226
|
+
'none': null,
|
|
227
|
+
'success': checkOutlineIcon,
|
|
228
|
+
'warning': exclamationCircleIcon,
|
|
229
|
+
'error': xOutlineIcon,
|
|
230
|
+
'info': infoCircleIcon
|
|
215
231
|
}[this.type.style];
|
|
216
232
|
}
|
|
217
233
|
onCloseClick() {
|
|
@@ -287,8 +303,13 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
287
303
|
[ngClass]="cssClass"
|
|
288
304
|
[style.height.px]="height"
|
|
289
305
|
[style.width.px]="width">
|
|
290
|
-
<
|
|
291
|
-
|
|
306
|
+
<kendo-icon-wrapper
|
|
307
|
+
*ngIf="type && type.icon && type.style !== 'none'"
|
|
308
|
+
innerCssClass="k-notification-status"
|
|
309
|
+
[name]="typeIconClass()"
|
|
310
|
+
[svgIcon]="typeSVGIcon()"
|
|
311
|
+
>
|
|
312
|
+
</kendo-icon-wrapper>
|
|
292
313
|
<div class="k-notification-content">
|
|
293
314
|
<ng-template
|
|
294
315
|
[ngIf]="templateRef"
|
|
@@ -303,11 +324,11 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
303
324
|
|
|
304
325
|
<span *ngIf="closable" class="k-notification-actions">
|
|
305
326
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
306
|
-
<
|
|
327
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
307
328
|
</span>
|
|
308
329
|
</span>
|
|
309
330
|
</div>
|
|
310
|
-
`, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { type:
|
|
331
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: 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"] }] });
|
|
311
332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
312
333
|
type: Component,
|
|
313
334
|
args: [{
|
|
@@ -322,8 +343,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
322
343
|
[ngClass]="cssClass"
|
|
323
344
|
[style.height.px]="height"
|
|
324
345
|
[style.width.px]="width">
|
|
325
|
-
<
|
|
326
|
-
|
|
346
|
+
<kendo-icon-wrapper
|
|
347
|
+
*ngIf="type && type.icon && type.style !== 'none'"
|
|
348
|
+
innerCssClass="k-notification-status"
|
|
349
|
+
[name]="typeIconClass()"
|
|
350
|
+
[svgIcon]="typeSVGIcon()"
|
|
351
|
+
>
|
|
352
|
+
</kendo-icon-wrapper>
|
|
327
353
|
<div class="k-notification-content">
|
|
328
354
|
<ng-template
|
|
329
355
|
[ngIf]="templateRef"
|
|
@@ -338,7 +364,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
338
364
|
|
|
339
365
|
<span *ngIf="closable" class="k-notification-actions">
|
|
340
366
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
341
|
-
<
|
|
367
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
342
368
|
</span>
|
|
343
369
|
</span>
|
|
344
370
|
</div>
|
|
@@ -694,14 +720,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
694
720
|
class NotificationModule {
|
|
695
721
|
}
|
|
696
722
|
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
697
|
-
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] });
|
|
698
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule]] });
|
|
723
|
+
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] });
|
|
724
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule, IconsModule]] });
|
|
699
725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
|
|
700
726
|
type: NgModule,
|
|
701
727
|
args: [{
|
|
702
728
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
703
729
|
entryComponents: [NotificationComponent, NotificationContainerComponent],
|
|
704
|
-
imports: [CommonModule],
|
|
730
|
+
imports: [CommonModule, IconsModule],
|
|
705
731
|
exports: [NotificationComponent, NotificationContainerComponent],
|
|
706
732
|
providers: [NotificationService]
|
|
707
733
|
}]
|
|
@@ -10,7 +10,10 @@ import { take } from 'rxjs/operators';
|
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
13
|
-
import
|
|
13
|
+
import { xIcon, checkOutlineIcon, exclamationCircleIcon, xOutlineIcon, infoCircleIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import * as i3 from '@progress/kendo-angular-icons';
|
|
15
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
16
|
+
import * as i5 from '@angular/common';
|
|
14
17
|
import { CommonModule } from '@angular/common';
|
|
15
18
|
|
|
16
19
|
class NotificationSettings {
|
|
@@ -69,8 +72,8 @@ const packageMetadata = {
|
|
|
69
72
|
name: '@progress/kendo-angular-notification',
|
|
70
73
|
productName: 'Kendo UI for Angular',
|
|
71
74
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
72
|
-
publishDate:
|
|
73
|
-
version: '',
|
|
75
|
+
publishDate: 1674032260,
|
|
76
|
+
version: '11.0.0',
|
|
74
77
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
75
78
|
};
|
|
76
79
|
|
|
@@ -153,6 +156,10 @@ class NotificationComponent {
|
|
|
153
156
|
this.renderer = renderer;
|
|
154
157
|
this.builder = builder;
|
|
155
158
|
this.localizationService = localizationService;
|
|
159
|
+
/**
|
|
160
|
+
* @hidden
|
|
161
|
+
*/
|
|
162
|
+
this.xIcon = xIcon;
|
|
156
163
|
this.close = new EventEmitter();
|
|
157
164
|
this.width = null;
|
|
158
165
|
this.height = null;
|
|
@@ -208,10 +215,19 @@ class NotificationComponent {
|
|
|
208
215
|
typeIconClass() {
|
|
209
216
|
return {
|
|
210
217
|
'none': '',
|
|
211
|
-
'success': '
|
|
212
|
-
'warning': '
|
|
213
|
-
'error': '
|
|
214
|
-
'info': '
|
|
218
|
+
'success': 'check-outline',
|
|
219
|
+
'warning': 'exclamation-circle',
|
|
220
|
+
'error': 'x-outline',
|
|
221
|
+
'info': 'info-circle'
|
|
222
|
+
}[this.type.style];
|
|
223
|
+
}
|
|
224
|
+
typeSVGIcon() {
|
|
225
|
+
return {
|
|
226
|
+
'none': null,
|
|
227
|
+
'success': checkOutlineIcon,
|
|
228
|
+
'warning': exclamationCircleIcon,
|
|
229
|
+
'error': xOutlineIcon,
|
|
230
|
+
'info': infoCircleIcon
|
|
215
231
|
}[this.type.style];
|
|
216
232
|
}
|
|
217
233
|
onCloseClick() {
|
|
@@ -287,8 +303,13 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
287
303
|
[ngClass]="cssClass"
|
|
288
304
|
[style.height.px]="height"
|
|
289
305
|
[style.width.px]="width">
|
|
290
|
-
<
|
|
291
|
-
|
|
306
|
+
<kendo-icon-wrapper
|
|
307
|
+
*ngIf="type && type.icon && type.style !== 'none'"
|
|
308
|
+
innerCssClass="k-notification-status"
|
|
309
|
+
[name]="typeIconClass()"
|
|
310
|
+
[svgIcon]="typeSVGIcon()"
|
|
311
|
+
>
|
|
312
|
+
</kendo-icon-wrapper>
|
|
292
313
|
<div class="k-notification-content">
|
|
293
314
|
<ng-template
|
|
294
315
|
[ngIf]="templateRef"
|
|
@@ -303,11 +324,11 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
303
324
|
|
|
304
325
|
<span *ngIf="closable" class="k-notification-actions">
|
|
305
326
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
306
|
-
<
|
|
327
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
307
328
|
</span>
|
|
308
329
|
</span>
|
|
309
330
|
</div>
|
|
310
|
-
`, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { type:
|
|
331
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: 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"] }] });
|
|
311
332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
312
333
|
type: Component,
|
|
313
334
|
args: [{
|
|
@@ -322,8 +343,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
322
343
|
[ngClass]="cssClass"
|
|
323
344
|
[style.height.px]="height"
|
|
324
345
|
[style.width.px]="width">
|
|
325
|
-
<
|
|
326
|
-
|
|
346
|
+
<kendo-icon-wrapper
|
|
347
|
+
*ngIf="type && type.icon && type.style !== 'none'"
|
|
348
|
+
innerCssClass="k-notification-status"
|
|
349
|
+
[name]="typeIconClass()"
|
|
350
|
+
[svgIcon]="typeSVGIcon()"
|
|
351
|
+
>
|
|
352
|
+
</kendo-icon-wrapper>
|
|
327
353
|
<div class="k-notification-content">
|
|
328
354
|
<ng-template
|
|
329
355
|
[ngIf]="templateRef"
|
|
@@ -338,7 +364,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
338
364
|
|
|
339
365
|
<span *ngIf="closable" class="k-notification-actions">
|
|
340
366
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
341
|
-
<
|
|
367
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
342
368
|
</span>
|
|
343
369
|
</span>
|
|
344
370
|
</div>
|
|
@@ -692,14 +718,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
692
718
|
class NotificationModule {
|
|
693
719
|
}
|
|
694
720
|
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
695
|
-
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] });
|
|
696
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule]] });
|
|
721
|
+
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] });
|
|
722
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule, IconsModule]] });
|
|
697
723
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
|
|
698
724
|
type: NgModule,
|
|
699
725
|
args: [{
|
|
700
726
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
701
727
|
entryComponents: [NotificationComponent, NotificationContainerComponent],
|
|
702
|
-
imports: [CommonModule],
|
|
728
|
+
imports: [CommonModule, IconsModule],
|
|
703
729
|
exports: [NotificationComponent, NotificationContainerComponent],
|
|
704
730
|
providers: [NotificationService]
|
|
705
731
|
}]
|
|
@@ -8,6 +8,7 @@ import { Subscription } from 'rxjs';
|
|
|
8
8
|
import { Type } from './models/type';
|
|
9
9
|
import { Animation } from './models/animation';
|
|
10
10
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
/**
|
|
13
14
|
* @hidden
|
|
@@ -19,6 +20,10 @@ export declare class NotificationComponent implements OnInit, OnDestroy {
|
|
|
19
20
|
private renderer;
|
|
20
21
|
private builder;
|
|
21
22
|
private localizationService;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
xIcon: SVGIcon;
|
|
22
27
|
container: ViewContainerRef;
|
|
23
28
|
closeClickSubscription: Subscription;
|
|
24
29
|
close: EventEmitter<any>;
|
|
@@ -50,6 +55,7 @@ export declare class NotificationComponent implements OnInit, OnDestroy {
|
|
|
50
55
|
ngAfterViewInit(): void;
|
|
51
56
|
typeClass(): string;
|
|
52
57
|
typeIconClass(): string;
|
|
58
|
+
typeSVGIcon(): SVGIcon;
|
|
53
59
|
onCloseClick(): void;
|
|
54
60
|
hide(customComponent?: ComponentRef<any>): void;
|
|
55
61
|
private setHideTimeout;
|
package/notification.module.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as i1 from "./notification.component";
|
|
|
7
7
|
import * as i2 from "./notification.container.component";
|
|
8
8
|
import * as i3 from "./localization/localized-messages.directive";
|
|
9
9
|
import * as i4 from "@angular/common";
|
|
10
|
+
import * as i5 from "@progress/kendo-angular-icons";
|
|
10
11
|
/**
|
|
11
12
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
12
13
|
* definition for the Notification component.
|
|
@@ -39,6 +40,6 @@ import * as i4 from "@angular/common";
|
|
|
39
40
|
*/
|
|
40
41
|
export declare class NotificationModule {
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationModule, never>;
|
|
42
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationModule, [typeof i1.NotificationComponent, typeof i2.NotificationContainerComponent, typeof i3.LocalizedMessagesDirective], [typeof i4.CommonModule], [typeof i1.NotificationComponent, typeof i2.NotificationContainerComponent]>;
|
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationModule, [typeof i1.NotificationComponent, typeof i2.NotificationContainerComponent, typeof i3.LocalizedMessagesDirective], [typeof i4.CommonModule, typeof i5.IconsModule], [typeof i1.NotificationComponent, typeof i2.NotificationContainerComponent]>;
|
|
43
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<NotificationModule>;
|
|
44
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-notification",
|
|
3
|
-
"version": "11.0.0
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Kendo UI Notification for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
"@angular/core": "13 - 15",
|
|
22
22
|
"@angular/platform-browser": "13 - 15",
|
|
23
23
|
"@progress/kendo-licensing": "^1.0.2",
|
|
24
|
-
"@progress/kendo-angular-common": "11.0.0
|
|
25
|
-
"@progress/kendo-angular-l10n": "11.0.0
|
|
26
|
-
"@progress/kendo-angular-
|
|
24
|
+
"@progress/kendo-angular-common": "11.0.0",
|
|
25
|
+
"@progress/kendo-angular-l10n": "11.0.0",
|
|
26
|
+
"@progress/kendo-angular-icons": "11.0.0",
|
|
27
27
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"tslib": "^2.3.1"
|
|
30
|
+
"tslib": "^2.3.1",
|
|
31
|
+
"@progress/kendo-angular-schematics": "11.0.0"
|
|
31
32
|
},
|
|
32
33
|
"schematics": "./schematics/collection.json",
|
|
33
34
|
"module": "fesm2015/progress-kendo-angular-notification.mjs",
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
function default_1(options) {
|
|
5
|
-
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'NotificationModule', package: 'notification'
|
|
6
|
-
|
|
5
|
+
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'NotificationModule', package: 'notification', peerDependencies: {
|
|
6
|
+
// Peer dependency of icons
|
|
7
|
+
'@progress/kendo-svg-icons': '^1.0.0'
|
|
8
|
+
} });
|
|
7
9
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
8
10
|
}
|
|
9
11
|
exports.default = default_1;
|