@progress/kendo-angular-notification 4.0.1 → 11.0.0-develop.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +4 -4
  3. package/README.md +1 -1
  4. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  5. package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -5
  6. package/{esm2015/models/animation.js → esm2020/models/animation.mjs} +1 -1
  7. package/{esm2015/models/type.js → esm2020/models/notification-ref.mjs} +1 -1
  8. package/{esm2015/models/notification-settings.js → esm2020/models/notification-settings.mjs} +1 -1
  9. package/{esm2015/models/notification-ref.js → esm2020/models/position.mjs} +1 -1
  10. package/{esm2015/models/position.js → esm2020/models/type.mjs} +1 -1
  11. package/{esm2015/notification.component.js → esm2020/notification.component.mjs} +76 -46
  12. package/{esm2015/notification.container.component.js → esm2020/notification.container.component.mjs} +6 -6
  13. package/{esm2015/notification.module.js → esm2020/notification.module.mjs} +7 -6
  14. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  15. package/{esm2015/kendo-angular-notification.js → esm2020/progress-kendo-angular-notification.mjs} +2 -2
  16. package/{esm2015/services/notification.service.js → esm2020/services/notification.service.mjs} +8 -7
  17. package/{esm2015/utils/animations.js → esm2020/utils/animations.mjs} +1 -1
  18. package/fesm2015/progress-kendo-angular-notification.mjs +741 -0
  19. package/{fesm2015/kendo-angular-notification.js → fesm2020/progress-kendo-angular-notification.mjs} +96 -65
  20. package/{main.d.ts → index.d.ts} +1 -1
  21. package/localization/localized-messages.directive.d.ts +1 -1
  22. package/models/animation.d.ts +1 -1
  23. package/models/notification-ref.d.ts +2 -2
  24. package/models/notification-settings.d.ts +1 -1
  25. package/models/position.d.ts +1 -1
  26. package/models/type.d.ts +1 -1
  27. package/notification.component.d.ts +7 -1
  28. package/notification.container.component.d.ts +1 -1
  29. package/notification.module.d.ts +3 -2
  30. package/package-metadata.d.ts +1 -1
  31. package/package.json +28 -54
  32. package/{kendo-angular-notification.d.ts → progress-kendo-angular-notification.d.ts} +2 -2
  33. package/schematics/ngAdd/index.js +5 -7
  34. package/services/notification.service.d.ts +1 -1
  35. package/utils/animations.d.ts +1 -1
  36. package/bundles/kendo-angular-notification.umd.js +0 -5
  37. package/schematics/ngAdd/index.js.map +0 -1
@@ -1,16 +1,19 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
6
  import { forwardRef, Directive, Input, EventEmitter, ViewContainerRef, Component, ViewChild, HostBinding, TemplateRef, InjectionToken, ApplicationRef, Injectable, Inject, Optional, NgModule } from '@angular/core';
7
- import { take } from 'rxjs/operators';
8
- import { validatePackage } from '@progress/kendo-licensing';
9
7
  import * as i1$1 from '@angular/animations';
10
8
  import { style, animate } from '@angular/animations';
9
+ import { take } from 'rxjs/operators';
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 * as i4 from '@angular/common';
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,9 +72,9 @@ const packageMetadata = {
69
72
  name: '@progress/kendo-angular-notification',
70
73
  productName: 'Kendo UI for Angular',
71
74
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
72
- publishDate: 1668698763,
75
+ publishDate: 1673510433,
73
76
  version: '',
74
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
77
+ licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
75
78
  };
76
79
 
77
80
  /**
@@ -120,14 +123,14 @@ class LocalizedMessagesDirective extends ComponentMessages {
120
123
  this.service = service;
121
124
  }
122
125
  }
123
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
124
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
126
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
127
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
125
128
  {
126
129
  provide: ComponentMessages,
127
130
  useExisting: forwardRef(() => LocalizedMessagesDirective)
128
131
  }
129
132
  ], usesInheritance: true, ngImport: i0 });
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
131
134
  type: Directive,
132
135
  args: [{
133
136
  providers: [
@@ -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': 'k-i-check-outline',
212
- 'warning': 'k-i-exclamation-circle',
213
- 'error': 'k-i-x-outline',
214
- 'info': 'k-i-info-circle'
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() {
@@ -270,8 +286,8 @@ class NotificationComponent {
270
286
  return onclose ? fadeCloseAnimation(duration) : fadeAnimation(duration);
271
287
  }
272
288
  }
273
- NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", 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 });
274
- NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NotificationComponent, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction", "class.k-notification-container": "this.containerClass" } }, providers: [
289
+ NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
290
+ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationComponent, selector: "kendo-notification", inputs: { templateRef: "templateRef", templateString: "templateString", width: "width", height: "height", cssClass: "cssClass", hideAfter: "hideAfter", closable: "closable", type: "type", animation: "animation" }, host: { properties: { "attr.dir": "this.direction", "class.k-notification-container": "this.containerClass" } }, providers: [
275
291
  LocalizationService,
276
292
  {
277
293
  provide: L10N_PREFIX,
@@ -283,30 +299,37 @@ NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
283
299
  closeTitle="Close"
284
300
  >
285
301
  </ng-container>
286
- <div class="k-widget k-notification {{ notificationClasses() }}"
302
+ <div class="k-notification {{ notificationClasses() }}"
287
303
  [ngClass]="cssClass"
288
304
  [style.height.px]="height"
289
305
  [style.width.px]="width">
290
- <div class="k-notification-wrap k-hstack">
291
- <span *ngIf="type && type.icon && type.style !== 'none'" class="k-icon" [ngClass]="typeIconClass()"></span>
292
-
293
- <div class="k-notification-content">
294
- <ng-template
295
- [ngIf]="templateRef"
296
- [ngTemplateOutlet]="templateRef">
297
- </ng-template>
298
- <ng-template
299
- [ngIf]="templateString">
300
- {{ templateString }}
301
- </ng-template>
302
- <ng-container #container></ng-container>
303
- </div>
304
-
305
- <a *ngIf="closable" class="k-icon k-i-x" [attr.title]="closeButtonTitle" (click)="onCloseClick()"></a>
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>
313
+ <div class="k-notification-content">
314
+ <ng-template
315
+ [ngIf]="templateRef"
316
+ [ngTemplateOutlet]="templateRef">
317
+ </ng-template>
318
+ <ng-template
319
+ [ngIf]="templateString">
320
+ {{ templateString }}
321
+ </ng-template>
322
+ <ng-container #container></ng-container>
306
323
  </div>
324
+
325
+ <span *ngIf="closable" class="k-notification-actions">
326
+ <span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
327
+ <kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
328
+ </span>
329
+ </span>
307
330
  </div>
308
- `, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationComponent, decorators: [{
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"] }] });
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationComponent, decorators: [{
310
333
  type: Component,
311
334
  args: [{
312
335
  selector: 'kendo-notification',
@@ -316,27 +339,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
316
339
  closeTitle="Close"
317
340
  >
318
341
  </ng-container>
319
- <div class="k-widget k-notification {{ notificationClasses() }}"
342
+ <div class="k-notification {{ notificationClasses() }}"
320
343
  [ngClass]="cssClass"
321
344
  [style.height.px]="height"
322
345
  [style.width.px]="width">
323
- <div class="k-notification-wrap k-hstack">
324
- <span *ngIf="type && type.icon && type.style !== 'none'" class="k-icon" [ngClass]="typeIconClass()"></span>
325
-
326
- <div class="k-notification-content">
327
- <ng-template
328
- [ngIf]="templateRef"
329
- [ngTemplateOutlet]="templateRef">
330
- </ng-template>
331
- <ng-template
332
- [ngIf]="templateString">
333
- {{ templateString }}
334
- </ng-template>
335
- <ng-container #container></ng-container>
336
- </div>
337
-
338
- <a *ngIf="closable" class="k-icon k-i-x" [attr.title]="closeButtonTitle" (click)="onCloseClick()"></a>
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>
353
+ <div class="k-notification-content">
354
+ <ng-template
355
+ [ngIf]="templateRef"
356
+ [ngTemplateOutlet]="templateRef">
357
+ </ng-template>
358
+ <ng-template
359
+ [ngIf]="templateString">
360
+ {{ templateString }}
361
+ </ng-template>
362
+ <ng-container #container></ng-container>
339
363
  </div>
364
+
365
+ <span *ngIf="closable" class="k-notification-actions">
366
+ <span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
367
+ <kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
368
+ </span>
369
+ </span>
340
370
  </div>
341
371
  `,
342
372
  providers: [
@@ -448,7 +478,7 @@ class NotificationContainerComponent {
448
478
  notification.templateRef = content;
449
479
  }
450
480
  notification.animation = animation;
451
- let type = settings.type;
481
+ const type = settings.type;
452
482
  if (type && type.style === undefined) {
453
483
  type.style = 'none';
454
484
  }
@@ -498,13 +528,13 @@ class NotificationContainerComponent {
498
528
  return Object.assign({}, horizontal, vertical);
499
529
  }
500
530
  }
501
- NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
502
- NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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: `
531
+ NotificationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
532
+ NotificationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationContainerComponent, selector: "kendo-notification-container", inputs: { id: "id" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "group", first: true, predicate: ["group"], descendants: true, static: true }], ngImport: i0, template: `
503
533
  <div #group class="k-notification-group">
504
534
  <ng-container #container></ng-container>
505
535
  </div>
506
536
  `, isInline: true });
507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationContainerComponent, decorators: [{
537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationContainerComponent, decorators: [{
508
538
  type: Component,
509
539
  args: [{
510
540
  selector: 'kendo-notification-container',
@@ -594,7 +624,7 @@ class NotificationService {
594
624
  if (!settings) {
595
625
  throw new Error('NotificationSettings settings are required');
596
626
  }
597
- let target = this.findGroupContainer(settings);
627
+ const target = this.findGroupContainer(settings);
598
628
  const position = settings.position || this.position;
599
629
  const currentId = `${position.horizontal} ${position.vertical}`;
600
630
  let container;
@@ -607,7 +637,7 @@ class NotificationService {
607
637
  notificationContainer = container.instance;
608
638
  this.appRef.attachView(container.hostView);
609
639
  const hostViewElement = container.location.nativeElement;
610
- let groupContainer = this.findGroupContainer(settings);
640
+ const groupContainer = this.findGroupContainer(settings);
611
641
  if (!groupContainer) {
612
642
  throw new Error(`
613
643
  View Container not found! Inject the NOTIFICATION_CONTAINER or define a specific ViewContainerRef via
@@ -619,6 +649,7 @@ class NotificationService {
619
649
  this.notificationContainers.push(notificationContainer);
620
650
  }
621
651
  settings.position = position;
652
+ // eslint-disable-next-line prefer-const
622
653
  notificationRef = notificationContainer.addNotification(settings);
623
654
  return notificationRef;
624
655
  }
@@ -643,9 +674,9 @@ class NotificationService {
643
674
  return container;
644
675
  }
645
676
  }
646
- NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
647
- NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationService });
648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationService, decorators: [{
677
+ NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: NOTIFICATION_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
678
+ NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService });
679
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, decorators: [{
649
680
  type: Injectable
650
681
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
651
682
  type: Inject,
@@ -686,15 +717,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
686
717
  */
687
718
  class NotificationModule {
688
719
  }
689
- NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
690
- NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective], imports: [CommonModule], exports: [NotificationComponent, NotificationContainerComponent] });
691
- NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationModule, providers: [NotificationService], imports: [[CommonModule]] });
692
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NotificationModule, decorators: [{
720
+ NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
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]] });
723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
693
724
  type: NgModule,
694
725
  args: [{
695
726
  declarations: [NotificationComponent, NotificationContainerComponent, LocalizedMessagesDirective],
696
727
  entryComponents: [NotificationComponent, NotificationContainerComponent],
697
- imports: [CommonModule],
728
+ imports: [CommonModule, IconsModule],
698
729
  exports: [NotificationComponent, NotificationContainerComponent],
699
730
  providers: [NotificationService]
700
731
  }]
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { Position } from './models/position';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ComponentMessages, LocalizationService } from '@progress/kendo-angular-l10n';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ComponentRef } from '@angular/core';
6
- import { NotificationComponent } from '../main';
6
+ import { NotificationComponent } from '../index';
7
7
  import { Observable } from 'rxjs';
8
8
  /**
9
9
  * Holds references to the object instance of the Notification.
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TemplateRef, ViewContainerRef } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
package/models/type.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter, TemplateRef, ChangeDetectorRef, ViewContainerRef, ElementRef, OnInit, ComponentRef, OnDestroy, Renderer2 } from '@angular/core';
@@ -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;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef, ComponentFactoryResolver, ViewContainerRef, OnDestroy, Renderer2, ComponentRef } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from "@angular/core";
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PackageMetadata } from '@progress/kendo-licensing';
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-notification",
3
- "version": "4.0.1",
3
+ "version": "11.0.0-develop.101",
4
4
  "description": "Kendo UI Notification for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
7
7
  "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/telerik/kendo-angular-notification.git"
11
- },
12
8
  "bugs": {
13
9
  "url": "https://github.com/telerik/kendo-angular"
14
10
  },
@@ -19,62 +15,40 @@
19
15
  "@progress": {
20
16
  "friendlyName": "Notification"
21
17
  },
22
- "dependencies": {
23
- "@progress/kendo-schematics": "^3.0.0",
24
- "tslib": "^2.3.1"
25
- },
26
18
  "peerDependencies": {
27
- "@angular/animations": "12 - 15",
28
- "@angular/common": "12 - 15",
29
- "@angular/core": "12 - 15",
30
- "@progress/kendo-angular-common": "^3.0.0",
31
- "@progress/kendo-angular-l10n": "^4.0.0",
19
+ "@angular/animations": "13 - 15",
20
+ "@angular/common": "13 - 15",
21
+ "@angular/core": "13 - 15",
22
+ "@angular/platform-browser": "13 - 15",
32
23
  "@progress/kendo-licensing": "^1.0.2",
24
+ "@progress/kendo-angular-common": "11.0.0-develop.101",
25
+ "@progress/kendo-angular-l10n": "11.0.0-develop.101",
26
+ "@progress/kendo-angular-icons": "11.0.0-develop.101",
27
+ "@progress/kendo-angular-schematics": "11.0.0-develop.101",
33
28
  "rxjs": "^6.5.3 || ^7.0.0"
34
29
  },
35
- "config": {
36
- "commitizen": {
37
- "path": "./node_modules/cz-conventional-changelog"
38
- },
39
- "ghooks": {
40
- "commit-msg": "validate-commit-msg"
41
- },
42
- "validate-commit-msg": {
43
- "types": [
44
- "feat",
45
- "fix",
46
- "docs",
47
- "style",
48
- "refactor",
49
- "perf",
50
- "test",
51
- "chore",
52
- "revert"
53
- ],
54
- "warnOnFail": false,
55
- "maxSubjectLength": 100
56
- }
30
+ "dependencies": {
31
+ "tslib": "^2.3.1"
57
32
  },
58
33
  "schematics": "./schematics/collection.json",
59
- "release": {
60
- "debug": false,
61
- "branchTags": {
62
- "develop": "dev"
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",
39
+ "typings": "progress-kendo-angular-notification.d.ts",
40
+ "exports": {
41
+ "./package.json": {
42
+ "default": "./package.json"
63
43
  },
64
- "fallbackTags": {
65
- "dev": "latest"
66
- },
67
- "analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
68
- "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
69
- "getLastRelease": "@progress/semantic-prerelease/getLastRelease",
70
- "verifyConditions": "@progress/semantic-prerelease/verifyConditions",
71
- "verifyRelease": "@progress/semantic-prerelease/verifyRelease"
44
+ ".": {
45
+ "types": "./progress-kendo-angular-notification.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"
51
+ }
72
52
  },
73
- "main": "bundles/kendo-angular-notification.umd.js",
74
- "module": "fesm2015/kendo-angular-notification.js",
75
- "es2015": "fesm2015/kendo-angular-notification.js",
76
- "esm2015": "esm2015/kendo-angular-notification.js",
77
- "fesm2015": "fesm2015/kendo-angular-notification.js",
78
- "typings": "kendo-angular-notification.d.ts",
79
53
  "sideEffects": false
80
54
  }
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Generated bundle index. Do not edit.
7
7
  */
8
8
  /// <amd-module name="@progress/kendo-angular-notification" />
9
- export * from './main';
9
+ export * from './index';
@@ -1,13 +1,11 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
1
  "use strict";
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  const schematics_1 = require("@angular-devkit/schematics");
8
4
  function default_1(options) {
9
- const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'NotificationModule', package: 'notification' //package name, e.g grid
10
- });
11
- return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
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
+ } });
9
+ return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
12
10
  }
13
11
  exports.default = default_1;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ComponentFactoryResolver, Injector, InjectionToken, ElementRef } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**