@progress/kendo-angular-notification 25.0.0-develop.1 → 25.0.0-develop.2

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.
@@ -3,7 +3,7 @@
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
- import { forwardRef, Input, Directive, EventEmitter, ViewContainerRef, HostBinding, ViewChild, Component, TemplateRef, InjectionToken, EnvironmentInjector, createComponent, ApplicationRef, Inject, Optional, Injectable, NgModule } from '@angular/core';
6
+ import { signal, forwardRef, Input, Directive, EventEmitter, ViewContainerRef, HostBinding, ViewChild, ChangeDetectionStrategy, Component, afterNextRender, TemplateRef, InjectionToken, EnvironmentInjector, createComponent, ApplicationRef, Inject, Optional, Injectable, NgModule } from '@angular/core';
7
7
  import { NgClass, NgTemplateOutlet } from '@angular/common';
8
8
  import * as i1$1 from '@angular/animations';
9
9
  import { style, animate } from '@angular/animations';
@@ -132,8 +132,8 @@ const packageMetadata = {
132
132
  productName: 'Kendo UI for Angular',
133
133
  productCode: 'KENDOUIANGULAR',
134
134
  productCodes: ['KENDOUIANGULAR'],
135
- publishDate: 1783680012,
136
- version: '25.0.0-develop.1',
135
+ publishDate: 1783688731,
136
+ version: '25.0.0-develop.2',
137
137
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
138
138
  };
139
139
 
@@ -182,7 +182,13 @@ class LocalizedMessagesDirective extends ComponentMessages {
182
182
  /**
183
183
  * The title of the close button.
184
184
  */
185
- closeTitle;
185
+ set closeTitle(value) {
186
+ this._closeTitle.set(value);
187
+ }
188
+ get closeTitle() {
189
+ return this._closeTitle();
190
+ }
191
+ _closeTitle = signal(undefined, ...(ngDevMode ? [{ debugName: "_closeTitle" }] : []));
186
192
  constructor(service) {
187
193
  super();
188
194
  this.service = service;
@@ -229,17 +235,72 @@ class NotificationComponent {
229
235
  container;
230
236
  closeClickSubscription;
231
237
  close = new EventEmitter();
232
- templateRef;
233
- templateString;
234
- width = null;
235
- height = null;
236
- notificationLabel = 'Notification';
237
- notificationRole = 'status';
238
- cssClass;
239
- hideAfter;
240
- closable;
241
- type;
242
- animation;
238
+ set templateRef(value) {
239
+ this._templateRef.set(value ?? undefined);
240
+ }
241
+ get templateRef() {
242
+ return this._templateRef();
243
+ }
244
+ set templateString(value) {
245
+ this._templateString.set(value ?? undefined);
246
+ }
247
+ get templateString() {
248
+ return this._templateString();
249
+ }
250
+ set width(value) {
251
+ this._width.set(value ?? null);
252
+ }
253
+ get width() {
254
+ return this._width();
255
+ }
256
+ set height(value) {
257
+ this._height.set(value ?? null);
258
+ }
259
+ get height() {
260
+ return this._height();
261
+ }
262
+ set notificationLabel(value) {
263
+ this._notificationLabel.set(value);
264
+ }
265
+ get notificationLabel() {
266
+ return this._notificationLabel();
267
+ }
268
+ set notificationRole(value) {
269
+ this._notificationRole.set(value);
270
+ }
271
+ get notificationRole() {
272
+ return this._notificationRole();
273
+ }
274
+ set cssClass(value) {
275
+ this._cssClass.set(value);
276
+ }
277
+ get cssClass() {
278
+ return this._cssClass();
279
+ }
280
+ set hideAfter(value) {
281
+ this._hideAfter.set(value);
282
+ }
283
+ get hideAfter() {
284
+ return this._hideAfter();
285
+ }
286
+ set closable(value) {
287
+ this._closable.set(value);
288
+ }
289
+ get closable() {
290
+ return this._closable();
291
+ }
292
+ set type(value) {
293
+ this._type.set(value);
294
+ }
295
+ get type() {
296
+ return this._type();
297
+ }
298
+ set animation(value) {
299
+ this._animation.set(value ?? undefined);
300
+ }
301
+ get animation() {
302
+ return this._animation();
303
+ }
243
304
  closeTitle;
244
305
  /**
245
306
  * @hidden
@@ -253,6 +314,17 @@ class NotificationComponent {
253
314
  animationEnd = new EventEmitter();
254
315
  dynamicRTLSubscription;
255
316
  rtl = false;
317
+ _templateRef = signal(undefined, ...(ngDevMode ? [{ debugName: "_templateRef" }] : []));
318
+ _templateString = signal(undefined, ...(ngDevMode ? [{ debugName: "_templateString" }] : []));
319
+ _width = signal(null, ...(ngDevMode ? [{ debugName: "_width" }] : []));
320
+ _height = signal(null, ...(ngDevMode ? [{ debugName: "_height" }] : []));
321
+ _notificationLabel = signal('Notification', ...(ngDevMode ? [{ debugName: "_notificationLabel" }] : []));
322
+ _notificationRole = signal('status', ...(ngDevMode ? [{ debugName: "_notificationRole" }] : []));
323
+ _cssClass = signal(undefined, ...(ngDevMode ? [{ debugName: "_cssClass" }] : []));
324
+ _hideAfter = signal(undefined, ...(ngDevMode ? [{ debugName: "_hideAfter" }] : []));
325
+ _closable = signal(undefined, ...(ngDevMode ? [{ debugName: "_closable" }] : []));
326
+ _type = signal(undefined, ...(ngDevMode ? [{ debugName: "_type" }] : []));
327
+ _animation = signal(undefined, ...(ngDevMode ? [{ debugName: "_animation" }] : []));
256
328
  constructor(cdr, element, renderer, builder, localizationService) {
257
329
  this.cdr = cdr;
258
330
  this.element = element;
@@ -437,7 +509,7 @@ class NotificationComponent {
437
509
  </span>
438
510
  }
439
511
  </div>
440
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }] });
512
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoNotificationLocalizedMessages]", inputs: ["closeTitle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
441
513
  }
442
514
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NotificationComponent, decorators: [{
443
515
  type: Component,
@@ -495,7 +567,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
495
567
  { provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => NotificationComponent) }
496
568
  ],
497
569
  standalone: true,
498
- imports: [LocalizedMessagesDirective, NgClass, IconWrapperComponent, NgTemplateOutlet]
570
+ imports: [LocalizedMessagesDirective, NgClass, IconWrapperComponent, NgTemplateOutlet],
571
+ changeDetection: ChangeDetectionStrategy.OnPush
499
572
  }]
500
573
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$1.AnimationBuilder }, { type: i1.LocalizationService }], propDecorators: { container: [{
501
574
  type: ViewChild,
@@ -533,16 +606,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
533
606
  class NotificationContainerComponent {
534
607
  element;
535
608
  renderer;
536
- ngZone;
609
+ injector;
537
610
  container;
538
611
  group;
539
- id = '';
612
+ set id(value) {
613
+ this._id.set(value);
614
+ }
615
+ get id() {
616
+ return this._id();
617
+ }
540
618
  notifications = [];
619
+ _id = signal('', ...(ngDevMode ? [{ debugName: "_id" }] : []));
541
620
  position;
542
- constructor(element, renderer, ngZone) {
621
+ constructor(element, renderer, injector) {
543
622
  this.element = element;
544
623
  this.renderer = renderer;
545
- this.ngZone = ngZone;
624
+ this.injector = injector;
546
625
  /**/
547
626
  }
548
627
  ngOnDestroy() {
@@ -587,12 +666,9 @@ class NotificationContainerComponent {
587
666
  instance.templateString = null;
588
667
  notificationRef.destroy();
589
668
  if (this.notifications.length > 0) {
590
- this.ngZone.onStable
591
- .asObservable()
592
- .pipe(take(1))
593
- .subscribe(() => {
669
+ afterNextRender(() => {
594
670
  this.applyPosition();
595
- });
671
+ }, { injector: this.injector });
596
672
  }
597
673
  }
598
674
  applyContainerWrap() {
@@ -666,12 +742,12 @@ class NotificationContainerComponent {
666
742
  const vertical = positionLayout.vertical[position.vertical];
667
743
  return Object.assign({}, horizontal, vertical);
668
744
  }
669
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
745
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NotificationContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
670
746
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", 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: `
671
747
  <div #group class="k-notification-group">
672
748
  <ng-container #container></ng-container>
673
749
  </div>
674
- `, isInline: true });
750
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
675
751
  }
676
752
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NotificationContainerComponent, decorators: [{
677
753
  type: Component,
@@ -683,8 +759,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
683
759
  </div>
684
760
  `,
685
761
  standalone: true,
762
+ changeDetection: ChangeDetectionStrategy.OnPush
686
763
  }]
687
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }], propDecorators: { container: [{
764
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.Injector }], propDecorators: { container: [{
688
765
  type: ViewChild,
689
766
  args: ['container', { read: ViewContainerRef, static: true }]
690
767
  }], group: [{
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@
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
- import { ComponentRef, TemplateRef, ViewContainerRef, OnInit, OnDestroy, ChangeDetectorRef, EventEmitter, ElementRef, Renderer2, InjectionToken, Injector, NgZone } from '@angular/core';
6
+ import { ComponentRef, TemplateRef, ViewContainerRef, OnInit, OnDestroy, ChangeDetectorRef, EventEmitter, ElementRef, Renderer2, InjectionToken, Injector } from '@angular/core';
7
7
  import { Observable, Subscription } from 'rxjs';
8
8
  import { AnimationBuilder } from '@angular/animations';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -215,17 +215,28 @@ declare class NotificationComponent implements OnInit, OnDestroy {
215
215
  container: ViewContainerRef;
216
216
  closeClickSubscription: Subscription;
217
217
  close: EventEmitter<any>;
218
- templateRef?: TemplateRef<any>;
219
- templateString?: string;
220
- width?: number;
221
- height?: number;
222
- notificationLabel: string;
223
- notificationRole: string;
224
- cssClass?: string | Array<string> | object;
225
- hideAfter?: number;
226
- closable?: boolean;
227
- type?: Type;
228
- animation?: Animation;
218
+ set templateRef(value: TemplateRef<any> | undefined | null);
219
+ get templateRef(): TemplateRef<any> | undefined;
220
+ set templateString(value: string | undefined | null);
221
+ get templateString(): string | undefined;
222
+ set width(value: number | undefined | null);
223
+ get width(): number | null;
224
+ set height(value: number | undefined | null);
225
+ get height(): number | null;
226
+ set notificationLabel(value: string);
227
+ get notificationLabel(): string;
228
+ set notificationRole(value: string);
229
+ get notificationRole(): string;
230
+ set cssClass(value: string | Array<string> | object | undefined);
231
+ get cssClass(): string | Array<string> | object | undefined;
232
+ set hideAfter(value: number | undefined);
233
+ get hideAfter(): number | undefined;
234
+ set closable(value: boolean | undefined);
235
+ get closable(): boolean | undefined;
236
+ set type(value: Type | undefined);
237
+ get type(): Type | undefined;
238
+ set animation(value: Animation | undefined | null);
239
+ get animation(): Animation | undefined;
229
240
  closeTitle: string;
230
241
  /**
231
242
  * @hidden
@@ -237,6 +248,17 @@ declare class NotificationComponent implements OnInit, OnDestroy {
237
248
  private animationEnd;
238
249
  private dynamicRTLSubscription;
239
250
  private rtl;
251
+ private _templateRef;
252
+ private _templateString;
253
+ private _width;
254
+ private _height;
255
+ private _notificationLabel;
256
+ private _notificationRole;
257
+ private _cssClass;
258
+ private _hideAfter;
259
+ private _closable;
260
+ private _type;
261
+ private _animation;
240
262
  constructor(cdr: ChangeDetectorRef, element: ElementRef, renderer: Renderer2, builder: AnimationBuilder, localizationService: LocalizationService);
241
263
  notificationClasses(): string;
242
264
  ngOnInit(): void;
@@ -328,13 +350,15 @@ declare class NotificationService {
328
350
  declare class NotificationContainerComponent implements OnDestroy {
329
351
  element: ElementRef;
330
352
  renderer: Renderer2;
331
- private ngZone;
353
+ private injector;
332
354
  container: ViewContainerRef;
333
355
  group: ElementRef;
334
- id: string;
356
+ set id(value: string);
357
+ get id(): string;
335
358
  notifications: NotificationComponent[];
359
+ private _id;
336
360
  private position;
337
- constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone);
361
+ constructor(element: ElementRef, renderer: Renderer2, injector: Injector);
338
362
  ngOnDestroy(): void;
339
363
  addNotification(settings: NotificationSettings): NotificationRef;
340
364
  hide(notificationRef: ComponentRef<NotificationComponent>): void;
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1783680012,
11
- "version": "25.0.0-develop.1",
10
+ "publishDate": 1783688731,
11
+ "version": "25.0.0-develop.2",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-notification",
3
- "version": "25.0.0-develop.1",
3
+ "version": "25.0.0-develop.2",
4
4
  "description": "Kendo UI Notification for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -17,7 +17,7 @@
17
17
  "package": {
18
18
  "productName": "Kendo UI for Angular",
19
19
  "productCode": "KENDOUIANGULAR",
20
- "publishDate": 1783680012,
20
+ "publishDate": 1783688731,
21
21
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
22
22
  }
23
23
  },
@@ -27,14 +27,14 @@
27
27
  "@angular/core": "20 - 22",
28
28
  "@angular/platform-browser": "20 - 22",
29
29
  "@progress/kendo-licensing": "^1.11.0",
30
- "@progress/kendo-angular-common": "25.0.0-develop.1",
31
- "@progress/kendo-angular-l10n": "25.0.0-develop.1",
32
- "@progress/kendo-angular-icons": "25.0.0-develop.1",
30
+ "@progress/kendo-angular-common": "25.0.0-develop.2",
31
+ "@progress/kendo-angular-l10n": "25.0.0-develop.2",
32
+ "@progress/kendo-angular-icons": "25.0.0-develop.2",
33
33
  "rxjs": "^6.5.3 || ^7.0.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "tslib": "^2.3.1",
37
- "@progress/kendo-angular-schematics": "25.0.0-develop.1"
37
+ "@progress/kendo-angular-schematics": "25.0.0-develop.2"
38
38
  },
39
39
  "schematics": "./schematics/collection.json",
40
40
  "module": "fesm2022/progress-kendo-angular-notification.mjs",