@progress/kendo-angular-notification 11.2.0-develop.9 → 11.3.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/localization/localized-messages.directive.mjs +3 -3
- package/esm2020/models/notification-settings.mjs +5 -0
- package/esm2020/notification.component.mjs +22 -9
- package/esm2020/notification.container.component.mjs +3 -3
- package/esm2020/notification.module.mjs +4 -4
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/services/notification.service.mjs +3 -3
- package/fesm2015/progress-kendo-angular-notification.mjs +42 -24
- package/fesm2020/progress-kendo-angular-notification.mjs +42 -24
- package/models/notification-settings.d.ts +5 -0
- package/notification.component.d.ts +3 -1
- package/package.json +5 -5
|
@@ -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: "13.3.
|
|
19
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
18
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", 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: "13.3.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
28
|
providers: [
|
|
@@ -48,5 +48,10 @@ export class NotificationSettings {
|
|
|
48
48
|
* * `icon: 'true'|'false'`
|
|
49
49
|
*/
|
|
50
50
|
this.type = { style: 'none', icon: true };
|
|
51
|
+
/**
|
|
52
|
+
* The value of the Notification element `aria-label` attribute.
|
|
53
|
+
* @default 'Notification'
|
|
54
|
+
*/
|
|
55
|
+
this.notificationLabel = 'Notification';
|
|
51
56
|
}
|
|
52
57
|
}
|
|
@@ -10,6 +10,7 @@ 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
12
|
import { checkOutlineIcon, exclamationCircleIcon, infoCircleIcon, xIcon, xOutlineIcon } from '@progress/kendo-svg-icons';
|
|
13
|
+
import { guid } from '@progress/kendo-angular-common';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
import * as i1 from "@angular/animations";
|
|
15
16
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -31,9 +32,11 @@ export class NotificationComponent {
|
|
|
31
32
|
* @hidden
|
|
32
33
|
*/
|
|
33
34
|
this.xIcon = xIcon;
|
|
35
|
+
this.contentId = `k-${guid()}`;
|
|
34
36
|
this.close = new EventEmitter();
|
|
35
37
|
this.width = null;
|
|
36
38
|
this.height = null;
|
|
39
|
+
this.notificationLabel = 'Notification';
|
|
37
40
|
this.defaultHideAfter = 5000;
|
|
38
41
|
this.animationEnd = new EventEmitter();
|
|
39
42
|
this.rtl = false;
|
|
@@ -157,8 +160,8 @@ export class NotificationComponent {
|
|
|
157
160
|
return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
|
-
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
161
|
-
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
163
|
+
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.AnimationBuilder }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
164
|
+
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NotificationComponent, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", notificationLabel: "notificationLabel", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction", "class.k-notification-container": "this.containerClass" } }, providers: [
|
|
162
165
|
LocalizationService,
|
|
163
166
|
{
|
|
164
167
|
provide: L10N_PREFIX,
|
|
@@ -173,7 +176,11 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
173
176
|
<div class="k-notification {{ notificationClasses() }}"
|
|
174
177
|
[ngClass]="cssClass"
|
|
175
178
|
[style.height.px]="height"
|
|
176
|
-
[style.width.px]="width"
|
|
179
|
+
[style.width.px]="width"
|
|
180
|
+
role="alert"
|
|
181
|
+
aria-live="polite"
|
|
182
|
+
[attr.aria-describedby]="contentId"
|
|
183
|
+
[attr.aria-label]="notificationLabel">
|
|
177
184
|
<kendo-icon-wrapper
|
|
178
185
|
*ngIf="type && type.icon && type.style !== 'none'"
|
|
179
186
|
innerCssClass="k-notification-status"
|
|
@@ -181,7 +188,7 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
181
188
|
[svgIcon]="typeSVGIcon()"
|
|
182
189
|
>
|
|
183
190
|
</kendo-icon-wrapper>
|
|
184
|
-
<div class="k-notification-content">
|
|
191
|
+
<div [id]="contentId" class="k-notification-content">
|
|
185
192
|
<ng-template
|
|
186
193
|
[ngIf]="templateRef"
|
|
187
194
|
[ngTemplateOutlet]="templateRef">
|
|
@@ -193,14 +200,14 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
193
200
|
<ng-container #container></ng-container>
|
|
194
201
|
</div>
|
|
195
202
|
|
|
196
|
-
<span *ngIf="closable" class="k-notification-actions">
|
|
203
|
+
<span *ngIf="closable" class="k-notification-actions" aria-hidden="true">
|
|
197
204
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
198
205
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
199
206
|
</span>
|
|
200
207
|
</span>
|
|
201
208
|
</div>
|
|
202
209
|
`, 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.
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
204
211
|
type: Component,
|
|
205
212
|
args: [{
|
|
206
213
|
selector: 'kendo-notification',
|
|
@@ -213,7 +220,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
213
220
|
<div class="k-notification {{ notificationClasses() }}"
|
|
214
221
|
[ngClass]="cssClass"
|
|
215
222
|
[style.height.px]="height"
|
|
216
|
-
[style.width.px]="width"
|
|
223
|
+
[style.width.px]="width"
|
|
224
|
+
role="alert"
|
|
225
|
+
aria-live="polite"
|
|
226
|
+
[attr.aria-describedby]="contentId"
|
|
227
|
+
[attr.aria-label]="notificationLabel">
|
|
217
228
|
<kendo-icon-wrapper
|
|
218
229
|
*ngIf="type && type.icon && type.style !== 'none'"
|
|
219
230
|
innerCssClass="k-notification-status"
|
|
@@ -221,7 +232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
221
232
|
[svgIcon]="typeSVGIcon()"
|
|
222
233
|
>
|
|
223
234
|
</kendo-icon-wrapper>
|
|
224
|
-
<div class="k-notification-content">
|
|
235
|
+
<div [id]="contentId" class="k-notification-content">
|
|
225
236
|
<ng-template
|
|
226
237
|
[ngIf]="templateRef"
|
|
227
238
|
[ngTemplateOutlet]="templateRef">
|
|
@@ -233,7 +244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
233
244
|
<ng-container #container></ng-container>
|
|
234
245
|
</div>
|
|
235
246
|
|
|
236
|
-
<span *ngIf="closable" class="k-notification-actions">
|
|
247
|
+
<span *ngIf="closable" class="k-notification-actions" aria-hidden="true">
|
|
237
248
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
238
249
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
239
250
|
</span>
|
|
@@ -259,6 +270,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
259
270
|
type: Input
|
|
260
271
|
}], height: [{
|
|
261
272
|
type: Input
|
|
273
|
+
}], notificationLabel: [{
|
|
274
|
+
type: Input
|
|
262
275
|
}], cssClass: [{
|
|
263
276
|
type: Input
|
|
264
277
|
}], hideAfter: [{
|
|
@@ -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: "13.3.
|
|
131
|
-
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
130
|
+
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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.12", 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: "13.3.
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationContainerComponent, decorators: [{
|
|
137
137
|
type: Component,
|
|
138
138
|
args: [{
|
|
139
139
|
selector: 'kendo-notification-container',
|
|
@@ -42,10 +42,10 @@ import * as i0 from "@angular/core";
|
|
|
42
42
|
*/
|
|
43
43
|
export class NotificationModule {
|
|
44
44
|
}
|
|
45
|
-
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
46
|
-
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
47
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
45
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
46
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", 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.12", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule, IconsModule]] });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, decorators: [{
|
|
49
49
|
type: NgModule,
|
|
50
50
|
args: [{
|
|
51
51
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
@@ -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: '11.
|
|
12
|
+
publishDate: 1676463568,
|
|
13
|
+
version: '11.3.0-develop.1',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -125,9 +125,9 @@ export class NotificationService {
|
|
|
125
125
|
return container;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
129
|
-
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
128
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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.12", ngImport: i0, type: NotificationService });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService, decorators: [{
|
|
131
131
|
type: Injectable
|
|
132
132
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
|
|
133
133
|
type: Inject,
|
|
@@ -11,6 +11,7 @@ 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
13
|
import { xIcon, checkOutlineIcon, exclamationCircleIcon, xOutlineIcon, infoCircleIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import { guid } from '@progress/kendo-angular-common';
|
|
14
15
|
import * as i3 from '@progress/kendo-angular-icons';
|
|
15
16
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
16
17
|
import * as i5 from '@angular/common';
|
|
@@ -62,6 +63,11 @@ class NotificationSettings {
|
|
|
62
63
|
* * `icon: 'true'|'false'`
|
|
63
64
|
*/
|
|
64
65
|
this.type = { style: 'none', icon: true };
|
|
66
|
+
/**
|
|
67
|
+
* The value of the Notification element `aria-label` attribute.
|
|
68
|
+
* @default 'Notification'
|
|
69
|
+
*/
|
|
70
|
+
this.notificationLabel = 'Notification';
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
|
|
@@ -72,8 +78,8 @@ const packageMetadata = {
|
|
|
72
78
|
name: '@progress/kendo-angular-notification',
|
|
73
79
|
productName: 'Kendo UI for Angular',
|
|
74
80
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
75
|
-
publishDate:
|
|
76
|
-
version: '11.
|
|
81
|
+
publishDate: 1676463568,
|
|
82
|
+
version: '11.3.0-develop.1',
|
|
77
83
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
78
84
|
};
|
|
79
85
|
|
|
@@ -123,14 +129,14 @@ class LocalizedMessagesDirective extends ComponentMessages {
|
|
|
123
129
|
this.service = service;
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
|
-
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
127
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
132
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
|
|
128
134
|
{
|
|
129
135
|
provide: ComponentMessages,
|
|
130
136
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
131
137
|
}
|
|
132
138
|
], usesInheritance: true, ngImport: i0 });
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
134
140
|
type: Directive,
|
|
135
141
|
args: [{
|
|
136
142
|
providers: [
|
|
@@ -160,9 +166,11 @@ class NotificationComponent {
|
|
|
160
166
|
* @hidden
|
|
161
167
|
*/
|
|
162
168
|
this.xIcon = xIcon;
|
|
169
|
+
this.contentId = `k-${guid()}`;
|
|
163
170
|
this.close = new EventEmitter();
|
|
164
171
|
this.width = null;
|
|
165
172
|
this.height = null;
|
|
173
|
+
this.notificationLabel = 'Notification';
|
|
166
174
|
this.defaultHideAfter = 5000;
|
|
167
175
|
this.animationEnd = new EventEmitter();
|
|
168
176
|
this.rtl = false;
|
|
@@ -286,8 +294,8 @@ class NotificationComponent {
|
|
|
286
294
|
return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
|
|
287
295
|
}
|
|
288
296
|
}
|
|
289
|
-
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
290
|
-
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
297
|
+
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
298
|
+
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NotificationComponent, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", notificationLabel: "notificationLabel", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction", "class.k-notification-container": "this.containerClass" } }, providers: [
|
|
291
299
|
LocalizationService,
|
|
292
300
|
{
|
|
293
301
|
provide: L10N_PREFIX,
|
|
@@ -302,7 +310,11 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
302
310
|
<div class="k-notification {{ notificationClasses() }}"
|
|
303
311
|
[ngClass]="cssClass"
|
|
304
312
|
[style.height.px]="height"
|
|
305
|
-
[style.width.px]="width"
|
|
313
|
+
[style.width.px]="width"
|
|
314
|
+
role="alert"
|
|
315
|
+
aria-live="polite"
|
|
316
|
+
[attr.aria-describedby]="contentId"
|
|
317
|
+
[attr.aria-label]="notificationLabel">
|
|
306
318
|
<kendo-icon-wrapper
|
|
307
319
|
*ngIf="type && type.icon && type.style !== 'none'"
|
|
308
320
|
innerCssClass="k-notification-status"
|
|
@@ -310,7 +322,7 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
310
322
|
[svgIcon]="typeSVGIcon()"
|
|
311
323
|
>
|
|
312
324
|
</kendo-icon-wrapper>
|
|
313
|
-
<div class="k-notification-content">
|
|
325
|
+
<div [id]="contentId" class="k-notification-content">
|
|
314
326
|
<ng-template
|
|
315
327
|
[ngIf]="templateRef"
|
|
316
328
|
[ngTemplateOutlet]="templateRef">
|
|
@@ -322,14 +334,14 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
322
334
|
<ng-container #container></ng-container>
|
|
323
335
|
</div>
|
|
324
336
|
|
|
325
|
-
<span *ngIf="closable" class="k-notification-actions">
|
|
337
|
+
<span *ngIf="closable" class="k-notification-actions" aria-hidden="true">
|
|
326
338
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
327
339
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
328
340
|
</span>
|
|
329
341
|
</span>
|
|
330
342
|
</div>
|
|
331
343
|
`, 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"] }] });
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
333
345
|
type: Component,
|
|
334
346
|
args: [{
|
|
335
347
|
selector: 'kendo-notification',
|
|
@@ -342,7 +354,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
342
354
|
<div class="k-notification {{ notificationClasses() }}"
|
|
343
355
|
[ngClass]="cssClass"
|
|
344
356
|
[style.height.px]="height"
|
|
345
|
-
[style.width.px]="width"
|
|
357
|
+
[style.width.px]="width"
|
|
358
|
+
role="alert"
|
|
359
|
+
aria-live="polite"
|
|
360
|
+
[attr.aria-describedby]="contentId"
|
|
361
|
+
[attr.aria-label]="notificationLabel">
|
|
346
362
|
<kendo-icon-wrapper
|
|
347
363
|
*ngIf="type && type.icon && type.style !== 'none'"
|
|
348
364
|
innerCssClass="k-notification-status"
|
|
@@ -350,7 +366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
350
366
|
[svgIcon]="typeSVGIcon()"
|
|
351
367
|
>
|
|
352
368
|
</kendo-icon-wrapper>
|
|
353
|
-
<div class="k-notification-content">
|
|
369
|
+
<div [id]="contentId" class="k-notification-content">
|
|
354
370
|
<ng-template
|
|
355
371
|
[ngIf]="templateRef"
|
|
356
372
|
[ngTemplateOutlet]="templateRef">
|
|
@@ -362,7 +378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
362
378
|
<ng-container #container></ng-container>
|
|
363
379
|
</div>
|
|
364
380
|
|
|
365
|
-
<span *ngIf="closable" class="k-notification-actions">
|
|
381
|
+
<span *ngIf="closable" class="k-notification-actions" aria-hidden="true">
|
|
366
382
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
367
383
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
368
384
|
</span>
|
|
@@ -388,6 +404,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
388
404
|
type: Input
|
|
389
405
|
}], height: [{
|
|
390
406
|
type: Input
|
|
407
|
+
}], notificationLabel: [{
|
|
408
|
+
type: Input
|
|
391
409
|
}], cssClass: [{
|
|
392
410
|
type: Input
|
|
393
411
|
}], hideAfter: [{
|
|
@@ -528,13 +546,13 @@ class NotificationContainerComponent {
|
|
|
528
546
|
return Object.assign({}, horizontal, vertical);
|
|
529
547
|
}
|
|
530
548
|
}
|
|
531
|
-
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
532
|
-
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
549
|
+
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
550
|
+
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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: `
|
|
533
551
|
<div #group class="k-notification-group">
|
|
534
552
|
<ng-container #container></ng-container>
|
|
535
553
|
</div>
|
|
536
554
|
`, isInline: true });
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationContainerComponent, decorators: [{
|
|
538
556
|
type: Component,
|
|
539
557
|
args: [{
|
|
540
558
|
selector: 'kendo-notification-container',
|
|
@@ -674,9 +692,9 @@ class NotificationService {
|
|
|
674
692
|
return container;
|
|
675
693
|
}
|
|
676
694
|
}
|
|
677
|
-
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
678
|
-
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
695
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
696
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService });
|
|
697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService, decorators: [{
|
|
680
698
|
type: Injectable
|
|
681
699
|
}], ctorParameters: function () {
|
|
682
700
|
return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
|
|
@@ -719,10 +737,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
719
737
|
*/
|
|
720
738
|
class NotificationModule {
|
|
721
739
|
}
|
|
722
|
-
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
723
|
-
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
724
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
740
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
741
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective], imports: [CommonModule, IconsModule], exports: [NotificationComponent, NotificationContainerComponent] });
|
|
742
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule, IconsModule]] });
|
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, decorators: [{
|
|
726
744
|
type: NgModule,
|
|
727
745
|
args: [{
|
|
728
746
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
@@ -11,6 +11,7 @@ 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
13
|
import { xIcon, checkOutlineIcon, exclamationCircleIcon, xOutlineIcon, infoCircleIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import { guid } from '@progress/kendo-angular-common';
|
|
14
15
|
import * as i3 from '@progress/kendo-angular-icons';
|
|
15
16
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
16
17
|
import * as i5 from '@angular/common';
|
|
@@ -62,6 +63,11 @@ class NotificationSettings {
|
|
|
62
63
|
* * `icon: 'true'|'false'`
|
|
63
64
|
*/
|
|
64
65
|
this.type = { style: 'none', icon: true };
|
|
66
|
+
/**
|
|
67
|
+
* The value of the Notification element `aria-label` attribute.
|
|
68
|
+
* @default 'Notification'
|
|
69
|
+
*/
|
|
70
|
+
this.notificationLabel = 'Notification';
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
|
|
@@ -72,8 +78,8 @@ const packageMetadata = {
|
|
|
72
78
|
name: '@progress/kendo-angular-notification',
|
|
73
79
|
productName: 'Kendo UI for Angular',
|
|
74
80
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
75
|
-
publishDate:
|
|
76
|
-
version: '11.
|
|
81
|
+
publishDate: 1676463568,
|
|
82
|
+
version: '11.3.0-develop.1',
|
|
77
83
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
78
84
|
};
|
|
79
85
|
|
|
@@ -123,14 +129,14 @@ class LocalizedMessagesDirective extends ComponentMessages {
|
|
|
123
129
|
this.service = service;
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
|
-
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
127
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
132
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
|
|
128
134
|
{
|
|
129
135
|
provide: ComponentMessages,
|
|
130
136
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
131
137
|
}
|
|
132
138
|
], usesInheritance: true, ngImport: i0 });
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
134
140
|
type: Directive,
|
|
135
141
|
args: [{
|
|
136
142
|
providers: [
|
|
@@ -160,9 +166,11 @@ class NotificationComponent {
|
|
|
160
166
|
* @hidden
|
|
161
167
|
*/
|
|
162
168
|
this.xIcon = xIcon;
|
|
169
|
+
this.contentId = `k-${guid()}`;
|
|
163
170
|
this.close = new EventEmitter();
|
|
164
171
|
this.width = null;
|
|
165
172
|
this.height = null;
|
|
173
|
+
this.notificationLabel = 'Notification';
|
|
166
174
|
this.defaultHideAfter = 5000;
|
|
167
175
|
this.animationEnd = new EventEmitter();
|
|
168
176
|
this.rtl = false;
|
|
@@ -286,8 +294,8 @@ class NotificationComponent {
|
|
|
286
294
|
return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
|
|
287
295
|
}
|
|
288
296
|
}
|
|
289
|
-
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
290
|
-
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
297
|
+
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
298
|
+
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NotificationComponent, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", notificationLabel: "notificationLabel", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction", "class.k-notification-container": "this.containerClass" } }, providers: [
|
|
291
299
|
LocalizationService,
|
|
292
300
|
{
|
|
293
301
|
provide: L10N_PREFIX,
|
|
@@ -302,7 +310,11 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
302
310
|
<div class="k-notification {{ notificationClasses() }}"
|
|
303
311
|
[ngClass]="cssClass"
|
|
304
312
|
[style.height.px]="height"
|
|
305
|
-
[style.width.px]="width"
|
|
313
|
+
[style.width.px]="width"
|
|
314
|
+
role="alert"
|
|
315
|
+
aria-live="polite"
|
|
316
|
+
[attr.aria-describedby]="contentId"
|
|
317
|
+
[attr.aria-label]="notificationLabel">
|
|
306
318
|
<kendo-icon-wrapper
|
|
307
319
|
*ngIf="type && type.icon && type.style !== 'none'"
|
|
308
320
|
innerCssClass="k-notification-status"
|
|
@@ -310,7 +322,7 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
310
322
|
[svgIcon]="typeSVGIcon()"
|
|
311
323
|
>
|
|
312
324
|
</kendo-icon-wrapper>
|
|
313
|
-
<div class="k-notification-content">
|
|
325
|
+
<div [id]="contentId" class="k-notification-content">
|
|
314
326
|
<ng-template
|
|
315
327
|
[ngIf]="templateRef"
|
|
316
328
|
[ngTemplateOutlet]="templateRef">
|
|
@@ -322,14 +334,14 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
322
334
|
<ng-container #container></ng-container>
|
|
323
335
|
</div>
|
|
324
336
|
|
|
325
|
-
<span *ngIf="closable" class="k-notification-actions">
|
|
337
|
+
<span *ngIf="closable" class="k-notification-actions" aria-hidden="true">
|
|
326
338
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
327
339
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
328
340
|
</span>
|
|
329
341
|
</span>
|
|
330
342
|
</div>
|
|
331
343
|
`, 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"] }] });
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
333
345
|
type: Component,
|
|
334
346
|
args: [{
|
|
335
347
|
selector: 'kendo-notification',
|
|
@@ -342,7 +354,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
342
354
|
<div class="k-notification {{ notificationClasses() }}"
|
|
343
355
|
[ngClass]="cssClass"
|
|
344
356
|
[style.height.px]="height"
|
|
345
|
-
[style.width.px]="width"
|
|
357
|
+
[style.width.px]="width"
|
|
358
|
+
role="alert"
|
|
359
|
+
aria-live="polite"
|
|
360
|
+
[attr.aria-describedby]="contentId"
|
|
361
|
+
[attr.aria-label]="notificationLabel">
|
|
346
362
|
<kendo-icon-wrapper
|
|
347
363
|
*ngIf="type && type.icon && type.style !== 'none'"
|
|
348
364
|
innerCssClass="k-notification-status"
|
|
@@ -350,7 +366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
350
366
|
[svgIcon]="typeSVGIcon()"
|
|
351
367
|
>
|
|
352
368
|
</kendo-icon-wrapper>
|
|
353
|
-
<div class="k-notification-content">
|
|
369
|
+
<div [id]="contentId" class="k-notification-content">
|
|
354
370
|
<ng-template
|
|
355
371
|
[ngIf]="templateRef"
|
|
356
372
|
[ngTemplateOutlet]="templateRef">
|
|
@@ -362,7 +378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
362
378
|
<ng-container #container></ng-container>
|
|
363
379
|
</div>
|
|
364
380
|
|
|
365
|
-
<span *ngIf="closable" class="k-notification-actions">
|
|
381
|
+
<span *ngIf="closable" class="k-notification-actions" aria-hidden="true">
|
|
366
382
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
367
383
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
368
384
|
</span>
|
|
@@ -388,6 +404,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
388
404
|
type: Input
|
|
389
405
|
}], height: [{
|
|
390
406
|
type: Input
|
|
407
|
+
}], notificationLabel: [{
|
|
408
|
+
type: Input
|
|
391
409
|
}], cssClass: [{
|
|
392
410
|
type: Input
|
|
393
411
|
}], hideAfter: [{
|
|
@@ -528,13 +546,13 @@ class NotificationContainerComponent {
|
|
|
528
546
|
return Object.assign({}, horizontal, vertical);
|
|
529
547
|
}
|
|
530
548
|
}
|
|
531
|
-
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
532
|
-
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
549
|
+
NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
550
|
+
NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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: `
|
|
533
551
|
<div #group class="k-notification-group">
|
|
534
552
|
<ng-container #container></ng-container>
|
|
535
553
|
</div>
|
|
536
554
|
`, isInline: true });
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationContainerComponent, decorators: [{
|
|
538
556
|
type: Component,
|
|
539
557
|
args: [{
|
|
540
558
|
selector: 'kendo-notification-container',
|
|
@@ -674,9 +692,9 @@ class NotificationService {
|
|
|
674
692
|
return container;
|
|
675
693
|
}
|
|
676
694
|
}
|
|
677
|
-
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
678
|
-
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
695
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
696
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService });
|
|
697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationService, decorators: [{
|
|
680
698
|
type: Injectable
|
|
681
699
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
|
|
682
700
|
type: Inject,
|
|
@@ -717,10 +735,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
717
735
|
*/
|
|
718
736
|
class NotificationModule {
|
|
719
737
|
}
|
|
720
|
-
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
721
|
-
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
722
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
738
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
739
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective], imports: [CommonModule, IconsModule], exports: [NotificationComponent, NotificationContainerComponent] });
|
|
740
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule, IconsModule]] });
|
|
741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NotificationModule, decorators: [{
|
|
724
742
|
type: NgModule,
|
|
725
743
|
args: [{
|
|
726
744
|
declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
|
|
@@ -67,6 +67,11 @@ export declare class NotificationSettings {
|
|
|
67
67
|
* Specifies the height of the Notification.
|
|
68
68
|
*/
|
|
69
69
|
height?: number;
|
|
70
|
+
/**
|
|
71
|
+
* The value of the Notification element `aria-label` attribute.
|
|
72
|
+
* @default 'Notification'
|
|
73
|
+
*/
|
|
74
|
+
notificationLabel?: string;
|
|
70
75
|
/**
|
|
71
76
|
* Specifies a list of CSS classes that will be added to the Notification.
|
|
72
77
|
* To apply CSS rules to the component, set `encapsulation` to `ViewEncapsulation.None`
|
|
@@ -24,6 +24,7 @@ export declare class NotificationComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
26
26
|
xIcon: SVGIcon;
|
|
27
|
+
contentId: string;
|
|
27
28
|
container: ViewContainerRef;
|
|
28
29
|
closeClickSubscription: Subscription;
|
|
29
30
|
close: EventEmitter<any>;
|
|
@@ -31,6 +32,7 @@ export declare class NotificationComponent implements OnInit, OnDestroy {
|
|
|
31
32
|
templateString?: string;
|
|
32
33
|
width?: number;
|
|
33
34
|
height?: number;
|
|
35
|
+
notificationLabel: string;
|
|
34
36
|
cssClass?: string | Array<string> | Object;
|
|
35
37
|
hideAfter?: number;
|
|
36
38
|
closable?: boolean;
|
|
@@ -65,5 +67,5 @@ export declare class NotificationComponent implements OnInit, OnDestroy {
|
|
|
65
67
|
private slideAnimation;
|
|
66
68
|
private fadeAnimation;
|
|
67
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "kendo-notification", never, { "templateRef": "templateRef"; "templateString": "templateString"; "width": "width"; "height": "height"; "cssClass": "cssClass"; "hideAfter": "hideAfter"; "closable": "closable"; "type": "type"; "animation": "animation"; }, {}, never, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "kendo-notification", never, { "templateRef": "templateRef"; "templateString": "templateString"; "width": "width"; "height": "height"; "notificationLabel": "notificationLabel"; "cssClass": "cssClass"; "hideAfter": "hideAfter"; "closable": "closable"; "type": "type"; "animation": "animation"; }, {}, never, never>;
|
|
69
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-notification",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0-develop.1",
|
|
4
4
|
"description": "Kendo UI Notification for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -21,14 +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.
|
|
25
|
-
"@progress/kendo-angular-l10n": "11.
|
|
26
|
-
"@progress/kendo-angular-icons": "11.
|
|
24
|
+
"@progress/kendo-angular-common": "11.3.0-develop.1",
|
|
25
|
+
"@progress/kendo-angular-l10n": "11.3.0-develop.1",
|
|
26
|
+
"@progress/kendo-angular-icons": "11.3.0-develop.1",
|
|
27
27
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.3.1",
|
|
31
|
-
"@progress/kendo-angular-schematics": "11.
|
|
31
|
+
"@progress/kendo-angular-schematics": "11.3.0-develop.1"
|
|
32
32
|
},
|
|
33
33
|
"schematics": "./schematics/collection.json",
|
|
34
34
|
"module": "fesm2015/progress-kendo-angular-notification.mjs",
|