@progress/kendo-angular-notification 17.0.0-develop.9 → 17.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.
@@ -16,57 +16,87 @@ import { guid } from '@progress/kendo-angular-common';
16
16
  import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
17
17
 
18
18
  class NotificationSettings {
19
- constructor() {
20
- /**
21
- * Specifies the time in milliseconds after which the
22
- * Notification will hide
23
- * ([see example](slug:hiding_notifications#toc-defining-a-delay-before-hiding)).
24
- * Defaults to `5000`.
25
- */
26
- this.hideAfter = 5000;
27
- /**
28
- * Defines the position of the Notification
29
- * ([see example]({% slug positioning_notification %})).
30
- *
31
- * The possible values are:
32
- * * `horizontal: 'left'|'center'|'right'`
33
- * * `vertical: 'top'|'bottom'`
34
- */
35
- this.position = { horizontal: 'right', vertical: 'top' };
36
- /**
37
- * Specifies the animation settings of the Notification
38
- * ([see example]({% slug animations_notification %})).
39
- *
40
- * The possible values are:
41
- * * `duration`—Accepts a number in milliseconds. Defaults to `500ms`.
42
- * * `type?: 'slide'| (Default) 'fade'`
43
- */
44
- this.animation = { type: 'fade', duration: 500 };
45
- /**
46
- * Specifies if the Notification will require a user action to hide.
47
- * If the property is set to `true`, the Notification renders a **Close** button
48
- * ([see example]({% slug hiding_notifications %}#toc-defining-a-closable-notification)).
49
- *
50
- * The possible values are:
51
- * * (Default) `false`
52
- * * `true`
53
- */
54
- this.closable = false;
55
- /**
56
- * Specifies the type of the Notification
57
- * ([see example]({% slug types_notification %})).
58
- *
59
- * The possible values are:
60
- * * `style: (Default) 'none'|'success'|'error'|'warning'|'info'`
61
- * * `icon: 'true'|'false'`
62
- */
63
- this.type = { style: 'none', icon: true };
64
- /**
65
- * The value of the Notification element `aria-label` attribute.
66
- * @default 'Notification'
67
- */
68
- this.notificationLabel = 'Notification';
69
- }
19
+ /**
20
+ * Defines the content of the Notification.
21
+ */
22
+ content;
23
+ /**
24
+ * Specifies the time in milliseconds after which the
25
+ * Notification will hide
26
+ * ([see example](slug:hiding_notifications#toc-defining-a-delay-before-hiding)).
27
+ * Defaults to `5000`.
28
+ */
29
+ hideAfter = 5000;
30
+ /**
31
+ * Defines the position of the Notification
32
+ * ([see example]({% slug positioning_notification %})).
33
+ *
34
+ * The possible values are:
35
+ * * `horizontal: 'left'|'center'|'right'`
36
+ * * `vertical: 'top'|'bottom'`
37
+ */
38
+ position = { horizontal: 'right', vertical: 'top' };
39
+ /**
40
+ * Specifies the animation settings of the Notification
41
+ * ([see example]({% slug animations_notification %})).
42
+ *
43
+ * The possible values are:
44
+ * * `duration`—Accepts a number in milliseconds. Defaults to `500ms`.
45
+ * * `type?: 'slide'| (Default) 'fade'`
46
+ */
47
+ animation = { type: 'fade', duration: 500 };
48
+ /**
49
+ * Specifies if the Notification will require a user action to hide.
50
+ * If the property is set to `true`, the Notification renders a **Close** button
51
+ * ([see example]({% slug hiding_notifications %}#toc-defining-a-closable-notification)).
52
+ *
53
+ * The possible values are:
54
+ * * (Default) `false`
55
+ * * `true`
56
+ */
57
+ closable = false;
58
+ /**
59
+ * Specifies the title of the close button.
60
+ */
61
+ closeTitle;
62
+ /**
63
+ * Specifies the type of the Notification
64
+ * ([see example]({% slug types_notification %})).
65
+ *
66
+ * The possible values are:
67
+ * * `style: (Default) 'none'|'success'|'error'|'warning'|'info'`
68
+ * * `icon: 'true'|'false'`
69
+ */
70
+ type = { style: 'none', icon: true };
71
+ /**
72
+ * Specifies the width of the Notification.
73
+ */
74
+ width;
75
+ /**
76
+ * Specifies the height of the Notification.
77
+ */
78
+ height;
79
+ /**
80
+ * The value of the Notification element `aria-label` attribute.
81
+ * @default 'Notification'
82
+ */
83
+ notificationLabel = 'Notification';
84
+ /**
85
+ * Specifies a list of CSS classes that will be added to the Notification.
86
+ * To apply CSS rules to the component, set `encapsulation` to `ViewEncapsulation.None`
87
+ * ([see example](slug:overview_notification)).
88
+ *
89
+ * > To style the content of the Notification, use the `cssClass` property binding.
90
+ */
91
+ cssClass;
92
+ /**
93
+ * Defines the container to which the Notification will be appended
94
+ * ([see example]({% slug dynamic_containers %})).
95
+ *
96
+ * If not provided, the Notification will be placed in the root component
97
+ * of the application or in the `body` element of the document.
98
+ */
99
+ appendTo;
70
100
  }
71
101
 
72
102
  /**
@@ -76,8 +106,8 @@ const packageMetadata = {
76
106
  name: '@progress/kendo-angular-notification',
77
107
  productName: 'Kendo UI for Angular',
78
108
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
79
- publishDate: 1729174769,
80
- version: '17.0.0-develop.9',
109
+ publishDate: 1731414215,
110
+ version: '17.0.0',
81
111
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
82
112
  };
83
113
 
@@ -122,19 +152,24 @@ function fadeCloseAnimation(duration) {
122
152
  * @hidden
123
153
  */
124
154
  class LocalizedMessagesDirective extends ComponentMessages {
155
+ service;
156
+ /**
157
+ * The title of the close button.
158
+ */
159
+ closeTitle;
125
160
  constructor(service) {
126
161
  super();
127
162
  this.service = service;
128
163
  }
164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
165
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
166
+ {
167
+ provide: ComponentMessages,
168
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
169
+ }
170
+ ], usesInheritance: true, ngImport: i0 });
129
171
  }
130
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
131
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
132
- {
133
- provide: ComponentMessages,
134
- useExisting: forwardRef(() => LocalizedMessagesDirective)
135
- }
136
- ], usesInheritance: true, ngImport: i0 });
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
138
173
  type: Directive,
139
174
  args: [{
140
175
  providers: [
@@ -155,33 +190,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
155
190
  *
156
191
  */
157
192
  class NotificationComponent {
193
+ cdr;
194
+ element;
195
+ renderer;
196
+ builder;
197
+ localizationService;
198
+ /**
199
+ * @hidden
200
+ */
201
+ xIcon = xIcon;
202
+ contentId = `k-${guid()}`;
203
+ container;
204
+ closeClickSubscription;
205
+ close = new EventEmitter();
206
+ templateRef;
207
+ templateString;
208
+ width = null;
209
+ height = null;
210
+ notificationLabel = 'Notification';
211
+ cssClass;
212
+ hideAfter;
213
+ closable;
214
+ type;
215
+ animation;
216
+ closeTitle;
217
+ /**
218
+ * @hidden
219
+ */
220
+ direction;
221
+ get closeButtonTitle() {
222
+ return this.closeTitle || this.localizationService.get('closeTitle');
223
+ }
224
+ defaultHideAfter = 5000;
225
+ hideTimeout;
226
+ animationEnd = new EventEmitter();
227
+ dynamicRTLSubscription;
228
+ rtl = false;
158
229
  constructor(cdr, element, renderer, builder, localizationService) {
159
230
  this.cdr = cdr;
160
231
  this.element = element;
161
232
  this.renderer = renderer;
162
233
  this.builder = builder;
163
234
  this.localizationService = localizationService;
164
- /**
165
- * @hidden
166
- */
167
- this.xIcon = xIcon;
168
- this.contentId = `k-${guid()}`;
169
- this.close = new EventEmitter();
170
- this.width = null;
171
- this.height = null;
172
- this.notificationLabel = 'Notification';
173
- this.defaultHideAfter = 5000;
174
- this.animationEnd = new EventEmitter();
175
- this.rtl = false;
176
235
  validatePackage(packageMetadata);
177
236
  this.dynamicRTLSubscription = localizationService.changes.subscribe(({ rtl }) => {
178
237
  this.rtl = rtl;
179
238
  this.direction = this.rtl ? 'rtl' : 'ltr';
180
239
  });
181
240
  }
182
- get closeButtonTitle() {
183
- return this.closeTitle || this.localizationService.get('closeTitle');
184
- }
185
241
  notificationClasses() {
186
242
  return `${this.type ? this.typeClass() : ''}
187
243
  ${this.closable ? 'k-notification-closable' : ''}`;
@@ -289,15 +345,14 @@ class NotificationComponent {
289
345
  fadeAnimation(duration, onclose) {
290
346
  return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
291
347
  }
292
- }
293
- NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
294
- NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NotificationComponent, isStandalone: true, 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" } }, providers: [
295
- LocalizationService,
296
- {
297
- provide: L10N_PREFIX,
298
- useValue: 'kendo.notification'
299
- }
300
- ], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
348
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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 });
349
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NotificationComponent, isStandalone: true, 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" } }, providers: [
350
+ LocalizationService,
351
+ {
352
+ provide: L10N_PREFIX,
353
+ useValue: 'kendo.notification'
354
+ }
355
+ ], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
301
356
  <ng-container kendoNotificationLocalizedMessages
302
357
  i18n-closeTitle="kendo.notification.closeTitle|The title of the close button"
303
358
  closeTitle="Close"
@@ -337,7 +392,8 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
337
392
  </span>
338
393
  </div>
339
394
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationComponent, decorators: [{
395
+ }
396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationComponent, decorators: [{
341
397
  type: Component,
342
398
  args: [{
343
399
  selector: 'kendo-notification',
@@ -423,13 +479,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
423
479
  * @hidden
424
480
  */
425
481
  class NotificationContainerComponent {
482
+ element;
483
+ renderer;
484
+ resolver;
485
+ ngZone;
486
+ container;
487
+ group;
488
+ id = '';
489
+ notifications = [];
490
+ position;
426
491
  constructor(element, renderer, resolver, ngZone) {
427
492
  this.element = element;
428
493
  this.renderer = renderer;
429
494
  this.resolver = resolver;
430
495
  this.ngZone = ngZone;
431
- this.id = '';
432
- this.notifications = [];
433
496
  /**/
434
497
  }
435
498
  ngOnDestroy() {
@@ -549,14 +612,14 @@ class NotificationContainerComponent {
549
612
  const vertical = positionLayout.vertical[position.vertical];
550
613
  return Object.assign({}, horizontal, vertical);
551
614
  }
552
- }
553
- NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
554
- NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NotificationContainerComponent, isStandalone: true, selector: "kendo-notification-container", inputs: { id: "id" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "group", first: true, predicate: ["group"], descendants: true, static: true }], ngImport: i0, template: `
615
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
616
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NotificationContainerComponent, isStandalone: true, selector: "kendo-notification-container", inputs: { id: "id" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "group", first: true, predicate: ["group"], descendants: true, static: true }], ngImport: i0, template: `
555
617
  <div #group class="k-notification-group">
556
618
  <ng-container #container></ng-container>
557
619
  </div>
558
620
  `, isInline: true });
559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationContainerComponent, decorators: [{
621
+ }
622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationContainerComponent, decorators: [{
560
623
  type: Component,
561
624
  args: [{
562
625
  selector: 'kendo-notification-container',
@@ -625,6 +688,12 @@ const NOTIFICATION_CONTAINER = new InjectionToken('Notification Container');
625
688
  * @class NotificationService
626
689
  */
627
690
  class NotificationService {
691
+ resolver;
692
+ injector;
693
+ container;
694
+ notificationContainers = [];
695
+ position = { horizontal: 'right', vertical: 'top' };
696
+ applicationRef;
628
697
  /**
629
698
  * @hidden
630
699
  */
@@ -632,8 +701,6 @@ class NotificationService {
632
701
  this.resolver = resolver;
633
702
  this.injector = injector;
634
703
  this.container = container;
635
- this.notificationContainers = [];
636
- this.position = { horizontal: 'right', vertical: 'top' };
637
704
  }
638
705
  /**
639
706
  * Opens a Notification component. Created Notification are mounted
@@ -696,10 +763,10 @@ class NotificationService {
696
763
  }
697
764
  return container;
698
765
  }
766
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
767
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationService, providedIn: 'root' });
699
768
  }
700
- NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
701
- NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, providedIn: 'root' });
702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationService, decorators: [{
769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationService, decorators: [{
703
770
  type: Injectable,
704
771
  args: [{
705
772
  providedIn: 'root'
@@ -751,11 +818,11 @@ const KENDO_NOTIFICATION = [
751
818
  * ```
752
819
  */
753
820
  class NotificationModule {
821
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
822
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, imports: [NotificationComponent, NotificationContainerComponent], exports: [NotificationComponent, NotificationContainerComponent] });
823
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, providers: [NotificationService, IconsService], imports: [NotificationComponent] });
754
824
  }
755
- NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
756
- NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: NotificationModule, imports: [NotificationComponent, NotificationContainerComponent], exports: [NotificationComponent, NotificationContainerComponent] });
757
- NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationModule, providers: [NotificationService, IconsService], imports: [KENDO_NOTIFICATION] });
758
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NotificationModule, decorators: [{
825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, decorators: [{
759
826
  type: NgModule,
760
827
  args: [{
761
828
  imports: [...KENDO_NOTIFICATION],
@@ -15,5 +15,5 @@ export declare class LocalizedMessagesDirective extends ComponentMessages {
15
15
  closeTitle: string;
16
16
  constructor(service: LocalizationService);
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoNotificationLocalizedMessages]", never, { "closeTitle": "closeTitle"; }, {}, never, never, true, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoNotificationLocalizedMessages]", never, { "closeTitle": { "alias": "closeTitle"; "required": false; }; }, {}, never, never, true, never>;
19
19
  }
@@ -10,7 +10,7 @@
10
10
  * `duration`&mdash;Accepts a number in milliseconds (default: 500ms).
11
11
  * `type?: 'slide'|'fade' (default)`
12
12
  */
13
- export declare type Animation = {
13
+ export type Animation = {
14
14
  duration: number;
15
15
  type?: 'slide' | 'fade';
16
16
  };
@@ -9,7 +9,7 @@
9
9
  * The available options are:
10
10
  * * `{ horizontal: 'left'|'center'|'right', vertical: 'top'|'bottom' }`
11
11
  */
12
- export declare type Position = {
12
+ export type Position = {
13
13
  horizontal: 'left' | 'center' | 'right';
14
14
  vertical: 'top' | 'bottom';
15
15
  };
package/models/type.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * * `style: (Default) 'none'|'success'|'error'|'warning'|'info'`
11
11
  * * `icon?: (Default) 'true'|'false'`
12
12
  */
13
- export declare type Type = {
13
+ export type Type = {
14
14
  style?: 'none' | 'success' | 'warning' | 'error' | 'info';
15
15
  icon?: boolean;
16
16
  };
@@ -66,5 +66,5 @@ export declare class NotificationComponent implements OnInit, OnDestroy {
66
66
  private slideAnimation;
67
67
  private fadeAnimation;
68
68
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
69
- 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, true, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "kendo-notification", never, { "templateRef": { "alias": "templateRef"; "required": false; }; "templateString": { "alias": "templateString"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "notificationLabel": { "alias": "notificationLabel"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "hideAfter": { "alias": "hideAfter"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "type": { "alias": "type"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; }, {}, never, never, true, never>;
70
70
  }
@@ -30,5 +30,5 @@ export declare class NotificationContainerComponent implements OnDestroy {
30
30
  private applyPosition;
31
31
  private setContainerPosition;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationContainerComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationContainerComponent, "kendo-notification-container", never, { "id": "id"; }, {}, never, never, true, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationContainerComponent, "kendo-notification-container", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-notification",
3
- "version": "17.0.0-develop.9",
3
+ "version": "17.0.0",
4
4
  "description": "Kendo UI Notification for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -16,26 +16,22 @@
16
16
  "friendlyName": "Notification"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/animations": "15 - 18",
20
- "@angular/common": "15 - 18",
21
- "@angular/core": "15 - 18",
22
- "@angular/platform-browser": "15 - 18",
19
+ "@angular/animations": "16 - 18",
20
+ "@angular/common": "16 - 18",
21
+ "@angular/core": "16 - 18",
22
+ "@angular/platform-browser": "16 - 18",
23
23
  "@progress/kendo-licensing": "^1.0.2",
24
- "@progress/kendo-angular-common": "17.0.0-develop.9",
25
- "@progress/kendo-angular-l10n": "17.0.0-develop.9",
26
- "@progress/kendo-angular-icons": "17.0.0-develop.9",
24
+ "@progress/kendo-angular-common": "17.0.0",
25
+ "@progress/kendo-angular-l10n": "17.0.0",
26
+ "@progress/kendo-angular-icons": "17.0.0",
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": "17.0.0-develop.9"
31
+ "@progress/kendo-angular-schematics": "17.0.0"
32
32
  },
33
33
  "schematics": "./schematics/collection.json",
34
- "module": "fesm2015/progress-kendo-angular-notification.mjs",
35
- "es2020": "fesm2020/progress-kendo-angular-notification.mjs",
36
- "esm2020": "esm2020/progress-kendo-angular-notification.mjs",
37
- "fesm2020": "fesm2020/progress-kendo-angular-notification.mjs",
38
- "fesm2015": "fesm2015/progress-kendo-angular-notification.mjs",
34
+ "module": "fesm2022/progress-kendo-angular-notification.mjs",
39
35
  "typings": "index.d.ts",
40
36
  "exports": {
41
37
  "./package.json": {
@@ -43,11 +39,9 @@
43
39
  },
44
40
  ".": {
45
41
  "types": "./index.d.ts",
46
- "esm2020": "./esm2020/progress-kendo-angular-notification.mjs",
47
- "es2020": "./fesm2020/progress-kendo-angular-notification.mjs",
48
- "es2015": "./fesm2015/progress-kendo-angular-notification.mjs",
49
- "node": "./fesm2015/progress-kendo-angular-notification.mjs",
50
- "default": "./fesm2020/progress-kendo-angular-notification.mjs"
42
+ "esm2022": "./esm2022/progress-kendo-angular-notification.mjs",
43
+ "esm": "./esm2022/progress-kendo-angular-notification.mjs",
44
+ "default": "./fesm2022/progress-kendo-angular-notification.mjs"
51
45
  }
52
46
  },
53
47
  "sideEffects": false
@@ -4,7 +4,7 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'NotificationModule', package: 'notification', peerDependencies: {
6
6
  // Peer dependency of icons
7
- '@progress/kendo-svg-icons': '^3.0.0'
7
+ '@progress/kendo-svg-icons': '^4.0.0'
8
8
  } });
9
9
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
10
10
  }
@@ -1,57 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export class NotificationSettings {
6
- constructor() {
7
- /**
8
- * Specifies the time in milliseconds after which the
9
- * Notification will hide
10
- * ([see example](slug:hiding_notifications#toc-defining-a-delay-before-hiding)).
11
- * Defaults to `5000`.
12
- */
13
- this.hideAfter = 5000;
14
- /**
15
- * Defines the position of the Notification
16
- * ([see example]({% slug positioning_notification %})).
17
- *
18
- * The possible values are:
19
- * * `horizontal: 'left'|'center'|'right'`
20
- * * `vertical: 'top'|'bottom'`
21
- */
22
- this.position = { horizontal: 'right', vertical: 'top' };
23
- /**
24
- * Specifies the animation settings of the Notification
25
- * ([see example]({% slug animations_notification %})).
26
- *
27
- * The possible values are:
28
- * * `duration`&mdash;Accepts a number in milliseconds. Defaults to `500ms`.
29
- * * `type?: 'slide'| (Default) 'fade'`
30
- */
31
- this.animation = { type: 'fade', duration: 500 };
32
- /**
33
- * Specifies if the Notification will require a user action to hide.
34
- * If the property is set to `true`, the Notification renders a **Close** button
35
- * ([see example]({% slug hiding_notifications %}#toc-defining-a-closable-notification)).
36
- *
37
- * The possible values are:
38
- * * (Default) `false`
39
- * * `true`
40
- */
41
- this.closable = false;
42
- /**
43
- * Specifies the type of the Notification
44
- * ([see example]({% slug types_notification %})).
45
- *
46
- * The possible values are:
47
- * * `style: (Default) 'none'|'success'|'error'|'warning'|'info'`
48
- * * `icon: 'true'|'false'`
49
- */
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';
56
- }
57
- }