@progress/kendo-angular-dialog 21.1.1-develop.1 → 21.2.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 { Component, EventEmitter, HostBinding, TemplateRef, Input, Output, ElementRef } from '@angular/core';
6
- import { NgIf, NgFor, NgClass, NgTemplateOutlet } from '@angular/common';
6
+ import { NgClass, NgTemplateOutlet } from '@angular/common';
7
7
  import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-buttons";
@@ -83,67 +83,69 @@ export class DialogActionsComponent {
83
83
  return action === 'spacer';
84
84
  }
85
85
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
86
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DialogActionsComponent, isStandalone: true, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
87
- <ng-content *ngIf="!actions"></ng-content>
88
- <ng-container *ngIf="actionsArray; else actionTemplate">
89
- <ng-container *ngFor="let action of actionsArray">
90
- <ng-container *ngIf="isDivider(action); else defaultAction">
91
- <span class="k-spacer"></span>
92
- </ng-container>
93
- <ng-template #defaultAction>
94
- <button
95
- type="button"
96
- kendoButton
97
- [disabled]="action.disabled"
98
- [fillMode]="action.fillMode"
99
- [themeColor]="action.themeColor"
100
- [ngClass]="action.cssClass"
101
- (click)="onButtonClick(action, $event)"
102
- [attr.aria-label]="action.text"
103
- [svgIcon]="action.svgIcon"
104
- [icon]="action.icon"
105
- >
106
- {{ action.text }}
107
- </button>
108
- </ng-template>
109
- </ng-container>
110
- </ng-container>
111
- <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
112
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
86
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DialogActionsComponent, isStandalone: true, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
87
+ @if (!actions) {
88
+ <ng-content></ng-content>
89
+ }
90
+ @if (actionsArray) {
91
+ @for (action of actionsArray; track action) {
92
+ @if (isDivider(action)) {
93
+ <span class="k-spacer"></span>
94
+ } @else {
95
+ <button
96
+ type="button"
97
+ kendoButton
98
+ [disabled]="action.disabled"
99
+ [fillMode]="action.fillMode"
100
+ [themeColor]="action.themeColor"
101
+ [ngClass]="action.cssClass"
102
+ (click)="onButtonClick(action, $event)"
103
+ [attr.aria-label]="action.text"
104
+ [svgIcon]="action.svgIcon"
105
+ [icon]="action.icon"
106
+ >
107
+ {{ action.text }}
108
+ </button>
109
+ }
110
+ }
111
+ } @else {
112
+ }
113
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
113
114
  }
114
115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogActionsComponent, decorators: [{
115
116
  type: Component,
116
117
  args: [{
117
118
  selector: 'kendo-dialog-actions',
118
119
  template: `
119
- <ng-content *ngIf="!actions"></ng-content>
120
- <ng-container *ngIf="actionsArray; else actionTemplate">
121
- <ng-container *ngFor="let action of actionsArray">
122
- <ng-container *ngIf="isDivider(action); else defaultAction">
123
- <span class="k-spacer"></span>
124
- </ng-container>
125
- <ng-template #defaultAction>
126
- <button
127
- type="button"
128
- kendoButton
129
- [disabled]="action.disabled"
130
- [fillMode]="action.fillMode"
131
- [themeColor]="action.themeColor"
132
- [ngClass]="action.cssClass"
133
- (click)="onButtonClick(action, $event)"
134
- [attr.aria-label]="action.text"
135
- [svgIcon]="action.svgIcon"
136
- [icon]="action.icon"
137
- >
138
- {{ action.text }}
139
- </button>
140
- </ng-template>
141
- </ng-container>
142
- </ng-container>
143
- <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
144
- `,
120
+ @if (!actions) {
121
+ <ng-content></ng-content>
122
+ }
123
+ @if (actionsArray) {
124
+ @for (action of actionsArray; track action) {
125
+ @if (isDivider(action)) {
126
+ <span class="k-spacer"></span>
127
+ } @else {
128
+ <button
129
+ type="button"
130
+ kendoButton
131
+ [disabled]="action.disabled"
132
+ [fillMode]="action.fillMode"
133
+ [themeColor]="action.themeColor"
134
+ [ngClass]="action.cssClass"
135
+ (click)="onButtonClick(action, $event)"
136
+ [attr.aria-label]="action.text"
137
+ [svgIcon]="action.svgIcon"
138
+ [icon]="action.icon"
139
+ >
140
+ {{ action.text }}
141
+ </button>
142
+ }
143
+ }
144
+ } @else {
145
+ }
146
+ `,
145
147
  standalone: true,
146
- imports: [NgIf, NgFor, NgClass, NgTemplateOutlet, KENDO_BUTTON]
148
+ imports: [NgClass, NgTemplateOutlet, KENDO_BUTTON]
147
149
  }]
148
150
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { actions: [{
149
151
  type: Input
@@ -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 { Component, EventEmitter, HostBinding, Input, ViewChild, Output, ElementRef, Renderer2, ChangeDetectorRef, NgZone, ContentChildren, QueryList, ViewChildren } from '@angular/core';
6
- import { NgStyle, NgIf, NgTemplateOutlet } from '@angular/common';
6
+ import { NgStyle, NgTemplateOutlet } from '@angular/common';
7
7
  import { animate, AnimationBuilder, state, style, transition, trigger } from '@angular/animations';
8
8
  import { DialogActionsComponent } from './dialog-actions.component';
9
9
  import { DialogTitleBarComponent } from './dialog-titlebar.component';
@@ -481,7 +481,7 @@ export class DialogComponent {
481
481
  });
482
482
  }
483
483
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });
484
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DialogComponent, isStandalone: true, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", animation: "animation", themeColor: "themeColor" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
484
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DialogComponent, isStandalone: true, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", animation: "animation", themeColor: "themeColor" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
485
485
  LocalizationService,
486
486
  {
487
487
  provide: DIALOG_LOCALIZATION_SERVICE,
@@ -493,28 +493,42 @@ export class DialogComponent {
493
493
  }
494
494
  ], queries: [{ propertyName: "titlebarContent", predicate: DialogTitleBarComponent }], viewQueries: [{ propertyName: "actionsView", first: true, predicate: DialogActionsComponent, descendants: true }, { propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }, { propertyName: "titlebarView", predicate: DialogTitleBarComponent, descendants: true }], exportAs: ["kendoDialog"], ngImport: i0, template: `
495
495
  <ng-container
496
- kendoDialogLocalizedMessages
497
- i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
498
- closeTitle="Close"
499
- >
500
- <div class="k-overlay" @overlayAppear></div>
501
-
502
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
503
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
504
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
505
-
506
- <div [id]="contentId" class="k-window-content k-dialog-content">
507
- <ng-content *ngIf="!contentTemplate"></ng-content>
508
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
509
- </div>
510
-
511
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
512
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
513
-
514
- <div kendoWatermarkOverlay *ngIf="showLicenseWatermark" [licenseMessage]="licenseMessage"></div>
496
+ kendoDialogLocalizedMessages
497
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
498
+ closeTitle="Close"
499
+ >
500
+ <div class="k-overlay" @overlayAppear></div>
501
+
502
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
503
+ @if (title) {
504
+ <kendo-dialog-titlebar [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
505
+ }
506
+ @if (!title) {
507
+ <ng-content select="kendo-dialog-titlebar"></ng-content>
508
+ }
509
+
510
+ <div [id]="contentId" class="k-window-content k-dialog-content">
511
+ @if (!contentTemplate) {
512
+ <ng-content></ng-content>
513
+ }
514
+ @if (contentTemplate) {
515
+ <ng-template [ngTemplateOutlet]="contentTemplate"></ng-template>
516
+ }
515
517
  </div>
518
+
519
+ @if (!actions) {
520
+ <ng-content select="kendo-dialog-actions"></ng-content>
521
+ }
522
+ @if (actions) {
523
+ <kendo-dialog-actions [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
524
+ }
525
+
526
+ @if (showLicenseWatermark) {
527
+ <div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
528
+ }
529
+ </div>
516
530
  </ng-container>
517
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }], animations: [
531
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }], animations: [
518
532
  trigger('overlayAppear', [
519
533
  state('in', style({ opacity: 1 })),
520
534
  transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
@@ -545,30 +559,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
545
559
  selector: 'kendo-dialog',
546
560
  template: `
547
561
  <ng-container
548
- kendoDialogLocalizedMessages
549
- i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
550
- closeTitle="Close"
551
- >
552
- <div class="k-overlay" @overlayAppear></div>
553
-
554
- <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
555
- <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
556
- <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
557
-
558
- <div [id]="contentId" class="k-window-content k-dialog-content">
559
- <ng-content *ngIf="!contentTemplate"></ng-content>
560
- <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
561
- </div>
562
-
563
- <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
564
- <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
565
-
566
- <div kendoWatermarkOverlay *ngIf="showLicenseWatermark" [licenseMessage]="licenseMessage"></div>
562
+ kendoDialogLocalizedMessages
563
+ i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
564
+ closeTitle="Close"
565
+ >
566
+ <div class="k-overlay" @overlayAppear></div>
567
+
568
+ <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
569
+ @if (title) {
570
+ <kendo-dialog-titlebar [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
571
+ }
572
+ @if (!title) {
573
+ <ng-content select="kendo-dialog-titlebar"></ng-content>
574
+ }
575
+
576
+ <div [id]="contentId" class="k-window-content k-dialog-content">
577
+ @if (!contentTemplate) {
578
+ <ng-content></ng-content>
579
+ }
580
+ @if (contentTemplate) {
581
+ <ng-template [ngTemplateOutlet]="contentTemplate"></ng-template>
582
+ }
567
583
  </div>
584
+
585
+ @if (!actions) {
586
+ <ng-content select="kendo-dialog-actions"></ng-content>
587
+ }
588
+ @if (actions) {
589
+ <kendo-dialog-actions [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
590
+ }
591
+
592
+ @if (showLicenseWatermark) {
593
+ <div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
594
+ }
595
+ </div>
568
596
  </ng-container>
569
- `,
597
+ `,
570
598
  standalone: true,
571
- imports: [LocalizedMessagesDirective, NgStyle, NgIf, DialogTitleBarComponent, NgTemplateOutlet, DialogActionsComponent, WatermarkOverlayComponent]
599
+ imports: [LocalizedMessagesDirective, NgStyle, DialogTitleBarComponent, NgTemplateOutlet, DialogActionsComponent, WatermarkOverlayComponent]
572
600
  }]
573
601
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AnimationBuilder }], propDecorators: { actions: [{
574
602
  type: Input
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1763645489,
14
- version: '21.1.1-develop.1',
13
+ publishDate: 1763998126,
14
+ version: '21.2.0-develop.1',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -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 { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
6
- import { NgIf, NgClass } from "@angular/common";
6
+ import { NgClass } from "@angular/common";
7
7
  import { Button } from '@progress/kendo-angular-buttons';
8
8
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
9
  import { xIcon } from '@progress/kendo-svg-icons';
@@ -45,25 +45,30 @@ export class WindowCloseActionDirective extends Button {
45
45
  }
46
46
  }
47
47
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
48
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WindowCloseActionDirective, isStandalone: true, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass" } }, providers: [
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WindowCloseActionDirective, isStandalone: true, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass" } }, providers: [
49
49
  LocalizationService,
50
50
  {
51
51
  provide: L10N_PREFIX,
52
52
  useValue: 'kendo.button'
53
53
  }
54
54
  ], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0, template: `
55
- <kendo-icon-wrapper
56
- *ngIf="!imageUrl && !iconClass"
55
+ @if (!imageUrl && !iconClass) {
56
+ <kendo-icon-wrapper
57
57
  innerCssClass="k-button-icon"
58
58
  name="close"
59
59
  [svgIcon]="xIcon">
60
- </kendo-icon-wrapper>
61
- <span *ngIf="imageUrl" class="k-button-icon k-icon">
60
+ </kendo-icon-wrapper>
61
+ }
62
+ @if (imageUrl) {
63
+ <span class="k-button-icon k-icon">
62
64
  <img [src]="imageUrl" class="k-image" role="presentation" />
63
- </span>
64
- <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
65
+ </span>
66
+ }
67
+ @if (iconClass) {
68
+ <span class="k-button-icon" [ngClass]="iconClass"></span>
69
+ }
65
70
  <span class="k-button-text"><ng-content></ng-content></span>
66
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
71
+ `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
67
72
  }
68
73
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
69
74
  type: Component,
@@ -78,20 +83,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
78
83
  ],
79
84
  selector: 'button[kendoWindowCloseAction]',
80
85
  template: `
81
- <kendo-icon-wrapper
82
- *ngIf="!imageUrl && !iconClass"
86
+ @if (!imageUrl && !iconClass) {
87
+ <kendo-icon-wrapper
83
88
  innerCssClass="k-button-icon"
84
89
  name="close"
85
90
  [svgIcon]="xIcon">
86
- </kendo-icon-wrapper>
87
- <span *ngIf="imageUrl" class="k-button-icon k-icon">
91
+ </kendo-icon-wrapper>
92
+ }
93
+ @if (imageUrl) {
94
+ <span class="k-button-icon k-icon">
88
95
  <img [src]="imageUrl" class="k-image" role="presentation" />
89
- </span>
90
- <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
96
+ </span>
97
+ }
98
+ @if (iconClass) {
99
+ <span class="k-button-icon" [ngClass]="iconClass"></span>
100
+ }
91
101
  <span class="k-button-text"><ng-content></ng-content></span>
92
- `,
102
+ `,
93
103
  standalone: true,
94
- imports: [NgIf, IconWrapperComponent, NgClass]
104
+ imports: [IconWrapperComponent, NgClass]
95
105
  }]
96
106
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
97
107
  type: Optional
@@ -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 { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
6
- import { NgIf, NgClass } from "@angular/common";
6
+ import { NgClass } from "@angular/common";
7
7
  import { Button } from '@progress/kendo-angular-buttons';
8
8
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
9
  import { windowIcon } from '@progress/kendo-svg-icons';
@@ -48,25 +48,30 @@ export class WindowMaximizeActionDirective extends Button {
48
48
  return this.window.options.state === 'default' ? 'inline-flex' : 'none';
49
49
  }
50
50
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
51
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WindowMaximizeActionDirective, isStandalone: true, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
51
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WindowMaximizeActionDirective, isStandalone: true, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
52
52
  LocalizationService,
53
53
  {
54
54
  provide: L10N_PREFIX,
55
55
  useValue: 'kendo.button'
56
56
  }
57
57
  ], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0, template: `
58
- <kendo-icon-wrapper
59
- *ngIf="!imageUrl && !iconClass"
58
+ @if (!imageUrl && !iconClass) {
59
+ <kendo-icon-wrapper
60
60
  innerCssClass="k-button-icon"
61
61
  name="window"
62
62
  [svgIcon]="windowIcon">
63
- </kendo-icon-wrapper>
64
- <span *ngIf="imageUrl" class="k-button-icon k-icon">
63
+ </kendo-icon-wrapper>
64
+ }
65
+ @if (imageUrl) {
66
+ <span class="k-button-icon k-icon">
65
67
  <img [src]="imageUrl" class="k-image" role="presentation" />
66
- </span>
67
- <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
68
+ </span>
69
+ }
70
+ @if (iconClass) {
71
+ <span class="k-button-icon" [ngClass]="iconClass"></span>
72
+ }
68
73
  <span class="k-button-text"><ng-content></ng-content></span>
69
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
74
+ `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
70
75
  }
71
76
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
72
77
  type: Component,
@@ -81,20 +86,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
81
86
  ],
82
87
  selector: 'button[kendoWindowMaximizeAction]',
83
88
  template: `
84
- <kendo-icon-wrapper
85
- *ngIf="!imageUrl && !iconClass"
89
+ @if (!imageUrl && !iconClass) {
90
+ <kendo-icon-wrapper
86
91
  innerCssClass="k-button-icon"
87
92
  name="window"
88
93
  [svgIcon]="windowIcon">
89
- </kendo-icon-wrapper>
90
- <span *ngIf="imageUrl" class="k-button-icon k-icon">
94
+ </kendo-icon-wrapper>
95
+ }
96
+ @if (imageUrl) {
97
+ <span class="k-button-icon k-icon">
91
98
  <img [src]="imageUrl" class="k-image" role="presentation" />
92
- </span>
93
- <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
99
+ </span>
100
+ }
101
+ @if (iconClass) {
102
+ <span class="k-button-icon" [ngClass]="iconClass"></span>
103
+ }
94
104
  <span class="k-button-text"><ng-content></ng-content></span>
95
- `,
105
+ `,
96
106
  standalone: true,
97
- imports: [NgIf, IconWrapperComponent, NgClass]
107
+ imports: [IconWrapperComponent, NgClass]
98
108
  }]
99
109
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
100
110
  type: Optional
@@ -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 { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
6
- import { NgIf, NgClass } from "@angular/common";
6
+ import { NgClass } from "@angular/common";
7
7
  import { Button } from '@progress/kendo-angular-buttons';
8
8
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
9
  import { windowMinimizeIcon } from "@progress/kendo-svg-icons";
@@ -48,25 +48,30 @@ export class WindowMinimizeActionDirective extends Button {
48
48
  return this.window.options.state === 'default' ? 'inline-flex' : 'none';
49
49
  }
50
50
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
51
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WindowMinimizeActionDirective, isStandalone: true, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
51
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WindowMinimizeActionDirective, isStandalone: true, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
52
52
  LocalizationService,
53
53
  {
54
54
  provide: L10N_PREFIX,
55
55
  useValue: 'kendo.button'
56
56
  }
57
57
  ], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0, template: `
58
- <kendo-icon-wrapper
59
- *ngIf="!imageUrl && !iconClass"
58
+ @if (!imageUrl && !iconClass) {
59
+ <kendo-icon-wrapper
60
60
  innerCssClass="k-button-icon"
61
61
  name="window-minimize"
62
62
  [svgIcon]="windowMinimizeIcon">
63
- </kendo-icon-wrapper>
64
- <span *ngIf="imageUrl" class="k-button-icon k-icon">
63
+ </kendo-icon-wrapper>
64
+ }
65
+ @if (imageUrl) {
66
+ <span class="k-button-icon k-icon">
65
67
  <img [src]="imageUrl" class="k-image" role="presentation" />
66
- </span>
67
- <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
68
+ </span>
69
+ }
70
+ @if (iconClass) {
71
+ <span class="k-button-icon" [ngClass]="iconClass"></span>
72
+ }
68
73
  <span class="k-button-text"><ng-content></ng-content></span>
69
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
74
+ `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
70
75
  }
71
76
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
72
77
  type: Component,
@@ -81,20 +86,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
81
86
  ],
82
87
  selector: 'button[kendoWindowMinimizeAction]',
83
88
  template: `
84
- <kendo-icon-wrapper
85
- *ngIf="!imageUrl && !iconClass"
89
+ @if (!imageUrl && !iconClass) {
90
+ <kendo-icon-wrapper
86
91
  innerCssClass="k-button-icon"
87
92
  name="window-minimize"
88
93
  [svgIcon]="windowMinimizeIcon">
89
- </kendo-icon-wrapper>
90
- <span *ngIf="imageUrl" class="k-button-icon k-icon">
94
+ </kendo-icon-wrapper>
95
+ }
96
+ @if (imageUrl) {
97
+ <span class="k-button-icon k-icon">
91
98
  <img [src]="imageUrl" class="k-image" role="presentation" />
92
- </span>
93
- <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
99
+ </span>
100
+ }
101
+ @if (iconClass) {
102
+ <span class="k-button-icon" [ngClass]="iconClass"></span>
103
+ }
94
104
  <span class="k-button-text"><ng-content></ng-content></span>
95
- `,
105
+ `,
96
106
  standalone: true,
97
- imports: [NgIf, IconWrapperComponent, NgClass]
107
+ imports: [IconWrapperComponent, NgClass]
98
108
  }]
99
109
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
100
110
  type: Optional