@progress/kendo-angular-dialog 13.4.1-develop.4 → 13.5.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.
@@ -124,6 +124,10 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
124
124
  * @hidden
125
125
  */
126
126
  closeTitle: string;
127
+ /**
128
+ * @hidden
129
+ */
130
+ showLicenseWatermark: boolean;
127
131
  /**
128
132
  * Fires when the user clicks an action button of the Dialog.
129
133
  * The event is fired only when the action buttons are specified through the `actions` options.
@@ -7,9 +7,10 @@ import * as i1 from "./dialog/dialog.component";
7
7
  import * as i2 from "./dialog/dialog-titlebar.component";
8
8
  import * as i3 from "./dialog/dialog-container.directive";
9
9
  import * as i4 from "./shared.module";
10
- import * as i5 from "./dialog/dialog-actions.component";
11
- import * as i6 from "./localization/custom-messages.component";
12
- import * as i7 from "./localization/localized-messages.directive";
10
+ import * as i5 from "@progress/kendo-angular-common";
11
+ import * as i6 from "./dialog/dialog-actions.component";
12
+ import * as i7 from "./localization/custom-messages.component";
13
+ import * as i8 from "./localization/localized-messages.directive";
13
14
  /**
14
15
  * @hidden
15
16
  */
@@ -38,6 +39,6 @@ export declare const DIALOG_DIRECTIVES: any[];
38
39
  */
39
40
  export declare class DialogModule {
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogComponent, typeof i2.DialogTitleBarComponent, typeof i3.DialogContainerDirective], [typeof i4.SharedModule], [typeof i1.DialogComponent, typeof i2.DialogTitleBarComponent, typeof i5.DialogActionsComponent, typeof i6.CustomMessagesComponent, typeof i7.LocalizedMessagesDirective, typeof i3.DialogContainerDirective]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogComponent, typeof i2.DialogTitleBarComponent, typeof i3.DialogContainerDirective], [typeof i4.SharedModule, typeof i5.WatermarkModule], [typeof i1.DialogComponent, typeof i2.DialogTitleBarComponent, typeof i6.DialogActionsComponent, typeof i7.CustomMessagesComponent, typeof i8.LocalizedMessagesDirective, typeof i3.DialogContainerDirective]>;
42
43
  static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
43
44
  }
@@ -10,7 +10,7 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { packageMetadata } from '../package-metadata';
12
12
  import { hasClasses, Keys, isPresent, isFocusable, DIALOG_ELEMENTS_HANDLING_ARROWS, DIALOG_ELEMENTS_HANDLING_ESC_KEY, createValueWithUnit, setHTMLAttributes, parseCSSClassNames, findPrimaryButton } from '../common/util';
13
- import { focusableSelector } from '@progress/kendo-angular-common';
13
+ import { focusableSelector, shouldShowValidationUI } from '@progress/kendo-angular-common';
14
14
  import { DialogCloseResult } from './models/dialog-close-result';
15
15
  import { DIALOG_LOCALIZATION_SERVICE } from './../localization/dialog-localization.service';
16
16
  import { take } from 'rxjs/operators';
@@ -22,8 +22,9 @@ import * as i1 from "@progress/kendo-angular-l10n";
22
22
  import * as i2 from "@angular/animations";
23
23
  import * as i3 from "./dialog-titlebar.component";
24
24
  import * as i4 from "./dialog-actions.component";
25
- import * as i5 from "../localization/localized-messages.directive";
26
- import * as i6 from "@angular/common";
25
+ import * as i5 from "@progress/kendo-angular-common";
26
+ import * as i6 from "../localization/localized-messages.directive";
27
+ import * as i7 from "@angular/common";
27
28
  const DEFAULT_ANIMATION_CONFIG = { duration: 300, type: 'translate' };
28
29
  /**
29
30
  * Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
@@ -57,6 +58,10 @@ export class DialogComponent {
57
58
  * @hidden
58
59
  */
59
60
  this.contentId = null;
61
+ /**
62
+ * @hidden
63
+ */
64
+ this.showLicenseWatermark = false;
60
65
  /**
61
66
  * Fires when the user clicks an action button of the Dialog.
62
67
  * The event is fired only when the action buttons are specified through the `actions` options.
@@ -70,7 +75,8 @@ export class DialogComponent {
70
75
  this._themeColor = null;
71
76
  this.subscriptions = [];
72
77
  this.domSubs = new Subscription();
73
- validatePackage(packageMetadata);
78
+ const isValid = validatePackage(packageMetadata);
79
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
74
80
  this.direction = localization.rtl ? 'rtl' : 'ltr';
75
81
  this.subscriptions.push(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
76
82
  this.titleId = this.generateTitleId();
@@ -391,22 +397,24 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
391
397
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
392
398
  closeTitle="Close"
393
399
  >
394
- <div class="k-overlay" @overlayAppear></div>
400
+ <div class="k-overlay" @overlayAppear></div>
395
401
 
396
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
397
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
398
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
402
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
403
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
404
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
399
405
 
400
- <div [id]="contentId" class="k-window-content k-dialog-content">
401
- <ng-content *ngIf="!contentTemplate"></ng-content>
402
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
403
- </div>
406
+ <div [id]="contentId" class="k-window-content k-dialog-content">
407
+ <ng-content *ngIf="!contentTemplate"></ng-content>
408
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
409
+ </div>
410
+
411
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
412
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
404
413
 
405
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
406
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
407
- </div>
408
- </ng-container>
409
- `, isInline: true, components: [{ type: i3.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i4.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: i5.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
414
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
415
+ </div>
416
+ </ng-container>
417
+ `, isInline: true, components: [{ type: i3.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i4.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i5.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i6.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i7.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
410
418
  trigger('overlayAppear', [
411
419
  state('in', style({ opacity: 1 })),
412
420
  transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
@@ -440,21 +448,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
440
448
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
441
449
  closeTitle="Close"
442
450
  >
443
- <div class="k-overlay" @overlayAppear></div>
451
+ <div class="k-overlay" @overlayAppear></div>
444
452
 
445
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
446
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
447
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
453
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
454
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
455
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
448
456
 
449
- <div [id]="contentId" class="k-window-content k-dialog-content">
450
- <ng-content *ngIf="!contentTemplate"></ng-content>
451
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
452
- </div>
457
+ <div [id]="contentId" class="k-window-content k-dialog-content">
458
+ <ng-content *ngIf="!contentTemplate"></ng-content>
459
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
460
+ </div>
453
461
 
454
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
455
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
456
- </div>
457
- </ng-container>
462
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
463
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
464
+
465
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
466
+ </div>
467
+ </ng-container>
458
468
  `
459
469
  }]
460
470
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AnimationBuilder }]; }, propDecorators: { actions: [{
@@ -8,6 +8,7 @@ import { DialogTitleBarComponent } from './dialog/dialog-titlebar.component';
8
8
  import { DialogService } from './dialog/dialog.service';
9
9
  import { DialogContainerDirective } from './dialog/dialog-container.directive';
10
10
  import { DialogContainerService } from './dialog/dialog-container.service';
11
+ import { WatermarkModule } from '@progress/kendo-angular-common';
11
12
  import { SharedModule, SHARED_DIRECTIVES } from './shared.module';
12
13
  import * as i0 from "@angular/core";
13
14
  import * as i1 from "./dialog/dialog-actions.component";
@@ -46,16 +47,16 @@ export class DialogModule {
46
47
  }
47
48
  DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
49
  DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
49
- DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
50
+ DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule, WatermarkModule], exports: [DialogComponent,
50
51
  DialogTitleBarComponent, i1.DialogActionsComponent, i2.CustomMessagesComponent, i3.LocalizedMessagesDirective, DialogContainerDirective] });
51
- DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
52
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule, WatermarkModule]] });
52
53
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, decorators: [{
53
54
  type: NgModule,
54
55
  args: [{
55
56
  declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
56
57
  entryComponents: [DIALOG_DIRECTIVES],
57
58
  exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
58
- imports: [SharedModule],
59
+ imports: [SharedModule, WatermarkModule],
59
60
  providers: [DialogContainerService, DialogService]
60
61
  }]
61
62
  }] });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dialog',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1694174817,
13
- version: '13.4.1-develop.4',
12
+ publishDate: 1694426857,
13
+ version: '13.5.0-develop.2',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Input, Output, HostBinding, EventEmitter, ContentChild, ElementRef, Renderer2, ViewChildren, QueryList, HostListener, NgZone, ViewChild } from '@angular/core';
6
6
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { isChanged, isDocumentAvailable } from '@progress/kendo-angular-common';
7
+ import { isChanged, isDocumentAvailable, shouldShowValidationUI } from '@progress/kendo-angular-common';
8
8
  import { Subscription } from 'rxjs';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
10
10
  import { packageMetadata } from '../package-metadata';
@@ -23,10 +23,10 @@ import * as i5 from "./actions/window-minimize-action.directive";
23
23
  import * as i6 from "./actions/window-maximize-action.directive";
24
24
  import * as i7 from "./actions/window-restore-action.directive";
25
25
  import * as i8 from "./actions/window-close-action.directive";
26
- import * as i9 from "../localization/localized-messages.directive";
27
- import * as i10 from "@angular/common";
28
- import * as i11 from "./window-resize-handle.directive";
29
- import * as i12 from "@progress/kendo-angular-common";
26
+ import * as i9 from "@progress/kendo-angular-common";
27
+ import * as i10 from "../localization/localized-messages.directive";
28
+ import * as i11 from "@angular/common";
29
+ import * as i12 from "./window-resize-handle.directive";
30
30
  /**
31
31
  * Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
32
32
  */
@@ -92,6 +92,10 @@ export class WindowComponent {
92
92
  * @hidden
93
93
  */
94
94
  this.messages = {};
95
+ /**
96
+ * @hidden
97
+ */
98
+ this.showLicenseWatermark = false;
95
99
  this.tabIndex = 0;
96
100
  this.role = 'dialog';
97
101
  this.hostClass = true;
@@ -104,7 +108,8 @@ export class WindowComponent {
104
108
  this.resized = false;
105
109
  this.windowSubscription = new Subscription();
106
110
  this.domSubs = new Subscription();
107
- validatePackage(packageMetadata);
111
+ const isValid = validatePackage(packageMetadata);
112
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
108
113
  this.direction = this.localization.rtl ? 'rtl' : 'ltr';
109
114
  this.localizationChangeSubscription = this.localization.changes
110
115
  .subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
@@ -622,7 +627,9 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
622
627
  kendoDraggable>
623
628
  </div>
624
629
  </ng-template>
625
- `, isInline: true, components: [{ type: i4.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: i5.WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: i6.WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: i7.WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: i8.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }], directives: [{ type: i9.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i12.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
630
+
631
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
632
+ `, isInline: true, components: [{ type: i4.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: i5.WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: i6.WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: i7.WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: i8.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i9.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i10.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i11.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i12.ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i9.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
626
633
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowComponent, decorators: [{
627
634
  type: Component,
628
635
  args: [{
@@ -679,6 +686,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
679
686
  kendoDraggable>
680
687
  </div>
681
688
  </ng-template>
689
+
690
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
682
691
  `
683
692
  }]
684
693
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService }, { type: i2.NavigationService }, { type: i0.NgZone }, { type: i3.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
@@ -5,7 +5,7 @@
5
5
  import { NgModule } from "@angular/core";
6
6
  import { WindowComponent } from "./window/window.component";
7
7
  import { WindowTitleBarComponent } from "./window/window-titlebar.component";
8
- import { DraggableModule } from '@progress/kendo-angular-common';
8
+ import { DraggableModule, WatermarkModule } from '@progress/kendo-angular-common';
9
9
  import { ResizeHandleDirective } from './window/window-resize-handle.directive';
10
10
  import { WindowMaximizeActionDirective } from './window/actions/window-maximize-action.directive';
11
11
  import { WindowMinimizeActionDirective } from './window/actions/window-minimize-action.directive';
@@ -71,20 +71,20 @@ WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
71
71
  WindowCloseActionDirective,
72
72
  WindowMinimizeActionDirective,
73
73
  WindowMaximizeActionDirective,
74
- WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule], exports: [WindowComponent,
74
+ WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule, WatermarkModule], exports: [WindowComponent,
75
75
  WindowCloseActionDirective,
76
76
  WindowMinimizeActionDirective,
77
77
  WindowMaximizeActionDirective,
78
78
  WindowRestoreActionDirective,
79
79
  WindowTitleBarComponent, i1.DialogActionsComponent, i2.CustomMessagesComponent, i3.LocalizedMessagesDirective, WindowContainerDirective] });
80
- WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule]] });
80
+ WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule, WatermarkModule]] });
81
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, decorators: [{
82
82
  type: NgModule,
83
83
  args: [{
84
84
  declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
85
85
  entryComponents: [ENTRY_COMPONENTS],
86
86
  exports: [exportedModules, SHARED_DIRECTIVES, WindowContainerDirective],
87
- imports: [SharedModule, DraggableModule],
87
+ imports: [SharedModule, DraggableModule, WatermarkModule],
88
88
  providers: [WindowContainerService, WindowService]
89
89
  }]
90
90
  }] });
@@ -17,7 +17,7 @@ import * as i2 from '@progress/kendo-angular-buttons';
17
17
  import { Button, ButtonModule } from '@progress/kendo-angular-buttons';
18
18
  import { validatePackage } from '@progress/kendo-licensing';
19
19
  import * as i1$1 from '@progress/kendo-angular-common';
20
- import { isDocumentAvailable, focusableSelector, DraggableDirective, isChanged, DraggableModule } from '@progress/kendo-angular-common';
20
+ import { shouldShowValidationUI, isDocumentAvailable, focusableSelector, DraggableDirective, isChanged, WatermarkModule, DraggableModule } from '@progress/kendo-angular-common';
21
21
  import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
22
22
  import * as i3 from '@progress/kendo-angular-icons';
23
23
  import { IconsModule } from '@progress/kendo-angular-icons';
@@ -606,8 +606,8 @@ const packageMetadata = {
606
606
  name: '@progress/kendo-angular-dialog',
607
607
  productName: 'Kendo UI for Angular',
608
608
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
609
- publishDate: 1694174817,
610
- version: '13.4.1-develop.4',
609
+ publishDate: 1694426857,
610
+ version: '13.5.0-develop.2',
611
611
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
612
612
  };
613
613
 
@@ -750,6 +750,10 @@ class DialogComponent {
750
750
  * @hidden
751
751
  */
752
752
  this.contentId = null;
753
+ /**
754
+ * @hidden
755
+ */
756
+ this.showLicenseWatermark = false;
753
757
  /**
754
758
  * Fires when the user clicks an action button of the Dialog.
755
759
  * The event is fired only when the action buttons are specified through the `actions` options.
@@ -763,7 +767,8 @@ class DialogComponent {
763
767
  this._themeColor = null;
764
768
  this.subscriptions = [];
765
769
  this.domSubs = new Subscription();
766
- validatePackage(packageMetadata);
770
+ const isValid = validatePackage(packageMetadata);
771
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
767
772
  this.direction = localization.rtl ? 'rtl' : 'ltr';
768
773
  this.subscriptions.push(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
769
774
  this.titleId = this.generateTitleId();
@@ -1084,22 +1089,24 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
1084
1089
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
1085
1090
  closeTitle="Close"
1086
1091
  >
1087
- <div class="k-overlay" @overlayAppear></div>
1092
+ <div class="k-overlay" @overlayAppear></div>
1088
1093
 
1089
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1090
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1091
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1094
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1095
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1096
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1092
1097
 
1093
- <div [id]="contentId" class="k-window-content k-dialog-content">
1094
- <ng-content *ngIf="!contentTemplate"></ng-content>
1095
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1096
- </div>
1098
+ <div [id]="contentId" class="k-window-content k-dialog-content">
1099
+ <ng-content *ngIf="!contentTemplate"></ng-content>
1100
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1101
+ </div>
1097
1102
 
1098
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1099
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1100
- </div>
1101
- </ng-container>
1102
- `, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
1103
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1104
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1105
+
1106
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
1107
+ </div>
1108
+ </ng-container>
1109
+ `, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i1$1.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
1103
1110
  trigger('overlayAppear', [
1104
1111
  state('in', style({ opacity: 1 })),
1105
1112
  transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
@@ -1133,21 +1140,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1133
1140
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
1134
1141
  closeTitle="Close"
1135
1142
  >
1136
- <div class="k-overlay" @overlayAppear></div>
1143
+ <div class="k-overlay" @overlayAppear></div>
1137
1144
 
1138
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1139
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1140
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1145
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1146
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1147
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1141
1148
 
1142
- <div [id]="contentId" class="k-window-content k-dialog-content">
1143
- <ng-content *ngIf="!contentTemplate"></ng-content>
1144
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1145
- </div>
1149
+ <div [id]="contentId" class="k-window-content k-dialog-content">
1150
+ <ng-content *ngIf="!contentTemplate"></ng-content>
1151
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1152
+ </div>
1146
1153
 
1147
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1148
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1149
- </div>
1150
- </ng-container>
1154
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1155
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1156
+
1157
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
1158
+ </div>
1159
+ </ng-container>
1151
1160
  `
1152
1161
  }]
1153
1162
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2$1.AnimationBuilder }]; }, propDecorators: { actions: [{
@@ -2566,6 +2575,10 @@ class WindowComponent {
2566
2575
  * @hidden
2567
2576
  */
2568
2577
  this.messages = {};
2578
+ /**
2579
+ * @hidden
2580
+ */
2581
+ this.showLicenseWatermark = false;
2569
2582
  this.tabIndex = 0;
2570
2583
  this.role = 'dialog';
2571
2584
  this.hostClass = true;
@@ -2578,7 +2591,8 @@ class WindowComponent {
2578
2591
  this.resized = false;
2579
2592
  this.windowSubscription = new Subscription();
2580
2593
  this.domSubs = new Subscription();
2581
- validatePackage(packageMetadata);
2594
+ const isValid = validatePackage(packageMetadata);
2595
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
2582
2596
  this.direction = this.localization.rtl ? 'rtl' : 'ltr';
2583
2597
  this.localizationChangeSubscription = this.localization.changes
2584
2598
  .subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
@@ -3096,7 +3110,9 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
3096
3110
  kendoDraggable>
3097
3111
  </div>
3098
3112
  </ng-template>
3099
- `, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i1$1.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
3113
+
3114
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
3115
+ `, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i1$1.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i1$1.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
3100
3116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowComponent, decorators: [{
3101
3117
  type: Component,
3102
3118
  args: [{
@@ -3153,6 +3169,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
3153
3169
  kendoDraggable>
3154
3170
  </div>
3155
3171
  </ng-template>
3172
+
3173
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
3156
3174
  `
3157
3175
  }]
3158
3176
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
@@ -3609,16 +3627,16 @@ class DialogModule {
3609
3627
  }
3610
3628
  DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3611
3629
  DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
3612
- DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
3630
+ DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule, WatermarkModule], exports: [DialogComponent,
3613
3631
  DialogTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, DialogContainerDirective] });
3614
- DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
3632
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule, WatermarkModule]] });
3615
3633
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, decorators: [{
3616
3634
  type: NgModule,
3617
3635
  args: [{
3618
3636
  declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
3619
3637
  entryComponents: [DIALOG_DIRECTIVES],
3620
3638
  exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
3621
- imports: [SharedModule],
3639
+ imports: [SharedModule, WatermarkModule],
3622
3640
  providers: [DialogContainerService, DialogService]
3623
3641
  }]
3624
3642
  }] });
@@ -3699,20 +3717,20 @@ WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
3699
3717
  WindowCloseActionDirective,
3700
3718
  WindowMinimizeActionDirective,
3701
3719
  WindowMaximizeActionDirective,
3702
- WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule], exports: [WindowComponent,
3720
+ WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule, WatermarkModule], exports: [WindowComponent,
3703
3721
  WindowCloseActionDirective,
3704
3722
  WindowMinimizeActionDirective,
3705
3723
  WindowMaximizeActionDirective,
3706
3724
  WindowRestoreActionDirective,
3707
3725
  WindowTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, WindowContainerDirective] });
3708
- WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule]] });
3726
+ WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule, WatermarkModule]] });
3709
3727
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, decorators: [{
3710
3728
  type: NgModule,
3711
3729
  args: [{
3712
3730
  declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
3713
3731
  entryComponents: [ENTRY_COMPONENTS],
3714
3732
  exports: [exportedModules, SHARED_DIRECTIVES, WindowContainerDirective],
3715
- imports: [SharedModule, DraggableModule],
3733
+ imports: [SharedModule, DraggableModule, WatermarkModule],
3716
3734
  providers: [WindowContainerService, WindowService]
3717
3735
  }]
3718
3736
  }] });
@@ -17,7 +17,7 @@ import * as i2 from '@progress/kendo-angular-buttons';
17
17
  import { Button, ButtonModule } from '@progress/kendo-angular-buttons';
18
18
  import { validatePackage } from '@progress/kendo-licensing';
19
19
  import * as i1$1 from '@progress/kendo-angular-common';
20
- import { isDocumentAvailable, focusableSelector, DraggableDirective, isChanged, DraggableModule } from '@progress/kendo-angular-common';
20
+ import { shouldShowValidationUI, isDocumentAvailable, focusableSelector, DraggableDirective, isChanged, WatermarkModule, DraggableModule } from '@progress/kendo-angular-common';
21
21
  import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
22
22
  import * as i3 from '@progress/kendo-angular-icons';
23
23
  import { IconsModule } from '@progress/kendo-angular-icons';
@@ -602,8 +602,8 @@ const packageMetadata = {
602
602
  name: '@progress/kendo-angular-dialog',
603
603
  productName: 'Kendo UI for Angular',
604
604
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
605
- publishDate: 1694174817,
606
- version: '13.4.1-develop.4',
605
+ publishDate: 1694426857,
606
+ version: '13.5.0-develop.2',
607
607
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
608
608
  };
609
609
 
@@ -746,6 +746,10 @@ class DialogComponent {
746
746
  * @hidden
747
747
  */
748
748
  this.contentId = null;
749
+ /**
750
+ * @hidden
751
+ */
752
+ this.showLicenseWatermark = false;
749
753
  /**
750
754
  * Fires when the user clicks an action button of the Dialog.
751
755
  * The event is fired only when the action buttons are specified through the `actions` options.
@@ -759,7 +763,8 @@ class DialogComponent {
759
763
  this._themeColor = null;
760
764
  this.subscriptions = [];
761
765
  this.domSubs = new Subscription();
762
- validatePackage(packageMetadata);
766
+ const isValid = validatePackage(packageMetadata);
767
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
763
768
  this.direction = localization.rtl ? 'rtl' : 'ltr';
764
769
  this.subscriptions.push(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
765
770
  this.titleId = this.generateTitleId();
@@ -1080,22 +1085,24 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
1080
1085
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
1081
1086
  closeTitle="Close"
1082
1087
  >
1083
- <div class="k-overlay" @overlayAppear></div>
1088
+ <div class="k-overlay" @overlayAppear></div>
1084
1089
 
1085
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1086
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1087
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1090
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1091
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1092
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1088
1093
 
1089
- <div [id]="contentId" class="k-window-content k-dialog-content">
1090
- <ng-content *ngIf="!contentTemplate"></ng-content>
1091
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1092
- </div>
1094
+ <div [id]="contentId" class="k-window-content k-dialog-content">
1095
+ <ng-content *ngIf="!contentTemplate"></ng-content>
1096
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1097
+ </div>
1093
1098
 
1094
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1095
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1096
- </div>
1097
- </ng-container>
1098
- `, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
1099
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1100
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1101
+
1102
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
1103
+ </div>
1104
+ </ng-container>
1105
+ `, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i1$1.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
1099
1106
  trigger('overlayAppear', [
1100
1107
  state('in', style({ opacity: 1 })),
1101
1108
  transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
@@ -1129,21 +1136,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1129
1136
  i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
1130
1137
  closeTitle="Close"
1131
1138
  >
1132
- <div class="k-overlay" @overlayAppear></div>
1139
+ <div class="k-overlay" @overlayAppear></div>
1133
1140
 
1134
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1135
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1136
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1141
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1142
+ <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1143
+ <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
1137
1144
 
1138
- <div [id]="contentId" class="k-window-content k-dialog-content">
1139
- <ng-content *ngIf="!contentTemplate"></ng-content>
1140
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1141
- </div>
1145
+ <div [id]="contentId" class="k-window-content k-dialog-content">
1146
+ <ng-content *ngIf="!contentTemplate"></ng-content>
1147
+ <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
1148
+ </div>
1142
1149
 
1143
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1144
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1145
- </div>
1146
- </ng-container>
1150
+ <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
1151
+ <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
1152
+
1153
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
1154
+ </div>
1155
+ </ng-container>
1147
1156
  `
1148
1157
  }]
1149
1158
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2$1.AnimationBuilder }]; }, propDecorators: { actions: [{
@@ -2550,6 +2559,10 @@ class WindowComponent {
2550
2559
  * @hidden
2551
2560
  */
2552
2561
  this.messages = {};
2562
+ /**
2563
+ * @hidden
2564
+ */
2565
+ this.showLicenseWatermark = false;
2553
2566
  this.tabIndex = 0;
2554
2567
  this.role = 'dialog';
2555
2568
  this.hostClass = true;
@@ -2562,7 +2575,8 @@ class WindowComponent {
2562
2575
  this.resized = false;
2563
2576
  this.windowSubscription = new Subscription();
2564
2577
  this.domSubs = new Subscription();
2565
- validatePackage(packageMetadata);
2578
+ const isValid = validatePackage(packageMetadata);
2579
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
2566
2580
  this.direction = this.localization.rtl ? 'rtl' : 'ltr';
2567
2581
  this.localizationChangeSubscription = this.localization.changes
2568
2582
  .subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
@@ -3080,7 +3094,9 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
3080
3094
  kendoDraggable>
3081
3095
  </div>
3082
3096
  </ng-template>
3083
- `, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i1$1.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
3097
+
3098
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
3099
+ `, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i1$1.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i1$1.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
3084
3100
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowComponent, decorators: [{
3085
3101
  type: Component,
3086
3102
  args: [{
@@ -3137,6 +3153,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
3137
3153
  kendoDraggable>
3138
3154
  </div>
3139
3155
  </ng-template>
3156
+
3157
+ <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
3140
3158
  `
3141
3159
  }]
3142
3160
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
@@ -3591,16 +3609,16 @@ class DialogModule {
3591
3609
  }
3592
3610
  DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3593
3611
  DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
3594
- DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
3612
+ DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule, WatermarkModule], exports: [DialogComponent,
3595
3613
  DialogTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, DialogContainerDirective] });
3596
- DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
3614
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule, WatermarkModule]] });
3597
3615
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogModule, decorators: [{
3598
3616
  type: NgModule,
3599
3617
  args: [{
3600
3618
  declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
3601
3619
  entryComponents: [DIALOG_DIRECTIVES],
3602
3620
  exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
3603
- imports: [SharedModule],
3621
+ imports: [SharedModule, WatermarkModule],
3604
3622
  providers: [DialogContainerService, DialogService]
3605
3623
  }]
3606
3624
  }] });
@@ -3681,20 +3699,20 @@ WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
3681
3699
  WindowCloseActionDirective,
3682
3700
  WindowMinimizeActionDirective,
3683
3701
  WindowMaximizeActionDirective,
3684
- WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule], exports: [WindowComponent,
3702
+ WindowRestoreActionDirective, WindowContainerDirective], imports: [SharedModule, DraggableModule, WatermarkModule], exports: [WindowComponent,
3685
3703
  WindowCloseActionDirective,
3686
3704
  WindowMinimizeActionDirective,
3687
3705
  WindowMaximizeActionDirective,
3688
3706
  WindowRestoreActionDirective,
3689
3707
  WindowTitleBarComponent, DialogActionsComponent, CustomMessagesComponent, LocalizedMessagesDirective, WindowContainerDirective] });
3690
- WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule]] });
3708
+ WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule, WatermarkModule]] });
3691
3709
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: WindowModule, decorators: [{
3692
3710
  type: NgModule,
3693
3711
  args: [{
3694
3712
  declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
3695
3713
  entryComponents: [ENTRY_COMPONENTS],
3696
3714
  exports: [exportedModules, SHARED_DIRECTIVES, WindowContainerDirective],
3697
- imports: [SharedModule, DraggableModule],
3715
+ imports: [SharedModule, DraggableModule, WatermarkModule],
3698
3716
  providers: [WindowContainerService, WindowService]
3699
3717
  }]
3700
3718
  }] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dialog",
3
- "version": "13.4.1-develop.4",
3
+ "version": "13.5.0-develop.2",
4
4
  "description": "Dialog Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -27,15 +27,15 @@
27
27
  "@angular/core": "13 - 16",
28
28
  "@angular/platform-browser": "13 - 16",
29
29
  "@progress/kendo-licensing": "^1.0.2",
30
- "@progress/kendo-angular-buttons": "13.4.1-develop.4",
31
- "@progress/kendo-angular-common": "13.4.1-develop.4",
32
- "@progress/kendo-angular-icons": "13.4.1-develop.4",
33
- "@progress/kendo-angular-l10n": "13.4.1-develop.4",
30
+ "@progress/kendo-angular-buttons": "13.5.0-develop.2",
31
+ "@progress/kendo-angular-common": "13.5.0-develop.2",
32
+ "@progress/kendo-angular-icons": "13.5.0-develop.2",
33
+ "@progress/kendo-angular-l10n": "13.5.0-develop.2",
34
34
  "rxjs": "^6.5.3 || ^7.0.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "tslib": "^2.3.1",
38
- "@progress/kendo-angular-schematics": "13.4.1-develop.4",
38
+ "@progress/kendo-angular-schematics": "13.5.0-develop.2",
39
39
  "@progress/kendo-popup-common": "^1.7.0"
40
40
  },
41
41
  "schematics": "./schematics/collection.json",
@@ -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: 'DialogsModule', package: 'dialog', peerDependencies: {
6
6
  // Peer dependency of buttons
7
- '@progress/kendo-angular-popup': '13.4.1-develop.4',
7
+ '@progress/kendo-angular-popup': '13.5.0-develop.2',
8
8
  // Peer dependency of icons
9
9
  '@progress/kendo-svg-icons': '^1.0.0'
10
10
  } });
@@ -182,6 +182,10 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
182
182
  * @hidden
183
183
  */
184
184
  messages: WindowMessages;
185
+ /**
186
+ * @hidden
187
+ */
188
+ showLicenseWatermark: boolean;
185
189
  tabIndex: number;
186
190
  role: string;
187
191
  hostClass: boolean;
@@ -40,6 +40,6 @@ import * as i13 from "./localization/localized-messages.directive";
40
40
  */
41
41
  export declare class WindowModule {
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<WindowModule, [typeof i1.ResizeHandleDirective, typeof i2.WindowComponent, typeof i3.WindowTitleBarComponent, typeof i4.WindowCloseActionDirective, typeof i5.WindowMinimizeActionDirective, typeof i6.WindowMaximizeActionDirective, typeof i7.WindowRestoreActionDirective, typeof i8.WindowContainerDirective], [typeof i9.SharedModule, typeof i10.DraggableModule], [typeof i2.WindowComponent, typeof i4.WindowCloseActionDirective, typeof i5.WindowMinimizeActionDirective, typeof i6.WindowMaximizeActionDirective, typeof i7.WindowRestoreActionDirective, typeof i3.WindowTitleBarComponent, typeof i11.DialogActionsComponent, typeof i12.CustomMessagesComponent, typeof i13.LocalizedMessagesDirective, typeof i8.WindowContainerDirective]>;
43
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WindowModule, [typeof i1.ResizeHandleDirective, typeof i2.WindowComponent, typeof i3.WindowTitleBarComponent, typeof i4.WindowCloseActionDirective, typeof i5.WindowMinimizeActionDirective, typeof i6.WindowMaximizeActionDirective, typeof i7.WindowRestoreActionDirective, typeof i8.WindowContainerDirective], [typeof i9.SharedModule, typeof i10.DraggableModule, typeof i10.WatermarkModule], [typeof i2.WindowComponent, typeof i4.WindowCloseActionDirective, typeof i5.WindowMinimizeActionDirective, typeof i6.WindowMaximizeActionDirective, typeof i7.WindowRestoreActionDirective, typeof i3.WindowTitleBarComponent, typeof i11.DialogActionsComponent, typeof i12.CustomMessagesComponent, typeof i13.LocalizedMessagesDirective, typeof i8.WindowContainerDirective]>;
44
44
  static ɵinj: i0.ɵɵInjectorDeclaration<WindowModule>;
45
45
  }