@progress/kendo-angular-layout 21.1.1-develop.2 → 21.2.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.
Files changed (27) hide show
  1. package/esm2022/avatar/avatar.component.mjs +63 -59
  2. package/esm2022/card/card-actions.component.mjs +51 -41
  3. package/esm2022/drawer/drawer-container.component.mjs +10 -8
  4. package/esm2022/drawer/drawer.component.mjs +69 -55
  5. package/esm2022/drawer/item.component.mjs +79 -69
  6. package/esm2022/drawer/list.component.mjs +28 -25
  7. package/esm2022/expansionpanel/expansionpanel.component.mjs +75 -65
  8. package/esm2022/package-metadata.mjs +2 -2
  9. package/esm2022/panelbar/panelbar-item.component.mjs +169 -135
  10. package/esm2022/panelbar/panelbar.component.mjs +56 -45
  11. package/esm2022/splitter/splitter-bar.component.mjs +32 -25
  12. package/esm2022/splitter/splitter-pane.component.mjs +16 -10
  13. package/esm2022/splitter/splitter.component.mjs +29 -31
  14. package/esm2022/stepper/list.component.mjs +33 -33
  15. package/esm2022/stepper/step.component.mjs +141 -111
  16. package/esm2022/stepper/stepper.component.mjs +59 -55
  17. package/esm2022/tabstrip/rendering/tab.component.mjs +49 -39
  18. package/esm2022/tabstrip/tabstrip.component.mjs +251 -233
  19. package/esm2022/tabstrip/util.mjs +1 -1
  20. package/esm2022/tilelayout/tilelayout-item.component.mjs +28 -23
  21. package/esm2022/tilelayout/tilelayout.component.mjs +24 -21
  22. package/esm2022/timeline/timeline-card.component.mjs +185 -151
  23. package/esm2022/timeline/timeline-horizontal.component.mjs +197 -183
  24. package/esm2022/timeline/timeline-vertical.component.mjs +79 -67
  25. package/esm2022/timeline/timeline.component.mjs +36 -33
  26. package/fesm2022/progress-kendo-angular-layout.mjs +1747 -1498
  27. package/package.json +9 -9
@@ -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, HostBinding, Input, isDevMode, Renderer2, ElementRef } from '@angular/core';
6
- import { NgIf, NgStyle } from '@angular/common';
6
+ import { NgStyle } from '@angular/common';
7
7
  import { validatePackage } from '@progress/kendo-licensing';
8
8
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
9
9
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
@@ -271,7 +271,7 @@ export class AvatarComponent {
271
271
  return this.localization.get(key);
272
272
  }
273
273
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AvatarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
274
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: AvatarComponent, isStandalone: true, selector: "kendo-avatar", inputs: { shape: "shape", size: "size", rounded: "rounded", themeColor: "themeColor", fillMode: "fillMode", fill: "fill", border: "border", iconClass: "iconClass", width: "width", height: "height", cssStyle: "cssStyle", initials: "initials", icon: "icon", imageSrc: "imageSrc", svgIcon: "svgIcon" }, host: { properties: { "class.k-avatar": "this.hostClass", "class.k-avatar-bordered": "this.borderClass", "style.flexBasis": "this.flexBasis", "style.width": "this.avatarWidth", "style.height": "this.avatarHeight" } }, providers: [
274
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AvatarComponent, isStandalone: true, selector: "kendo-avatar", inputs: { shape: "shape", size: "size", rounded: "rounded", themeColor: "themeColor", fillMode: "fillMode", fill: "fill", border: "border", iconClass: "iconClass", width: "width", height: "height", cssStyle: "cssStyle", initials: "initials", icon: "icon", imageSrc: "imageSrc", svgIcon: "svgIcon" }, host: { properties: { "class.k-avatar": "this.hostClass", "class.k-avatar-bordered": "this.borderClass", "style.flexBasis": "this.flexBasis", "style.width": "this.avatarWidth", "style.height": "this.avatarHeight" } }, providers: [
275
275
  LocalizationService,
276
276
  {
277
277
  provide: L10N_PREFIX,
@@ -279,35 +279,37 @@ export class AvatarComponent {
279
279
  }
280
280
  ], ngImport: i0, template: `
281
281
  <ng-container kendoAvatarLocalizedMessages
282
- i18n-avatarAlt="kendo.avatar.avatarAlt|The alt attribute text of the image in the avatar."
283
- avatarAlt="Avatar"
284
- >
282
+ i18n-avatarAlt="kendo.avatar.avatarAlt|The alt attribute text of the image in the avatar."
283
+ avatarAlt="Avatar"
284
+ >
285
285
  </ng-container>
286
-
287
- <ng-content *ngIf="customAvatar"></ng-content>
288
-
289
- <ng-container *ngIf="imageSrc">
290
- <span class="k-avatar-image">
291
- <img src="{{ imageSrc }}" [alt]="textFor('avatarAlt')" [ngStyle]="cssStyle" />
292
- </span>
293
- </ng-container>
294
-
295
- <ng-container *ngIf="initials">
296
- <span class="k-avatar-text" [ngStyle]="cssStyle">{{ initials.substring(0, 2) }}</span>
297
- </ng-container>
298
-
299
- <ng-container *ngIf="icon || iconClass || svgIcon">
300
- <span class="k-avatar-icon">
301
- <kendo-icon-wrapper
302
- [ngStyle]="cssStyle"
303
- [name]="icon"
304
- [customFontClass]="iconClass"
305
- [svgIcon]="svgIcon"
306
- >
307
- </kendo-icon-wrapper>
308
- </span>
309
- </ng-container>
310
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: LocalizedAvatarMessagesDirective, selector: "[kendoAvatarLocalizedMessages]" }] });
286
+
287
+ @if (customAvatar) {
288
+ <ng-content></ng-content>
289
+ }
290
+
291
+ @if (imageSrc) {
292
+ <span class="k-avatar-image">
293
+ <img src="{{ imageSrc }}" [alt]="textFor('avatarAlt')" [ngStyle]="cssStyle" />
294
+ </span>
295
+ }
296
+
297
+ @if (initials) {
298
+ <span class="k-avatar-text" [ngStyle]="cssStyle">{{ initials.substring(0, 2) }}</span>
299
+ }
300
+
301
+ @if (icon || iconClass || svgIcon) {
302
+ <span class="k-avatar-icon">
303
+ <kendo-icon-wrapper
304
+ [ngStyle]="cssStyle"
305
+ [name]="icon"
306
+ [customFontClass]="iconClass"
307
+ [svgIcon]="svgIcon"
308
+ >
309
+ </kendo-icon-wrapper>
310
+ </span>
311
+ }
312
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: LocalizedAvatarMessagesDirective, selector: "[kendoAvatarLocalizedMessages]" }] });
311
313
  }
312
314
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AvatarComponent, decorators: [{
313
315
  type: Component,
@@ -322,37 +324,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
322
324
  selector: 'kendo-avatar',
323
325
  template: `
324
326
  <ng-container kendoAvatarLocalizedMessages
325
- i18n-avatarAlt="kendo.avatar.avatarAlt|The alt attribute text of the image in the avatar."
326
- avatarAlt="Avatar"
327
- >
327
+ i18n-avatarAlt="kendo.avatar.avatarAlt|The alt attribute text of the image in the avatar."
328
+ avatarAlt="Avatar"
329
+ >
328
330
  </ng-container>
329
-
330
- <ng-content *ngIf="customAvatar"></ng-content>
331
-
332
- <ng-container *ngIf="imageSrc">
333
- <span class="k-avatar-image">
334
- <img src="{{ imageSrc }}" [alt]="textFor('avatarAlt')" [ngStyle]="cssStyle" />
335
- </span>
336
- </ng-container>
337
-
338
- <ng-container *ngIf="initials">
339
- <span class="k-avatar-text" [ngStyle]="cssStyle">{{ initials.substring(0, 2) }}</span>
340
- </ng-container>
341
-
342
- <ng-container *ngIf="icon || iconClass || svgIcon">
343
- <span class="k-avatar-icon">
344
- <kendo-icon-wrapper
345
- [ngStyle]="cssStyle"
346
- [name]="icon"
347
- [customFontClass]="iconClass"
348
- [svgIcon]="svgIcon"
349
- >
350
- </kendo-icon-wrapper>
351
- </span>
352
- </ng-container>
353
- `,
331
+
332
+ @if (customAvatar) {
333
+ <ng-content></ng-content>
334
+ }
335
+
336
+ @if (imageSrc) {
337
+ <span class="k-avatar-image">
338
+ <img src="{{ imageSrc }}" [alt]="textFor('avatarAlt')" [ngStyle]="cssStyle" />
339
+ </span>
340
+ }
341
+
342
+ @if (initials) {
343
+ <span class="k-avatar-text" [ngStyle]="cssStyle">{{ initials.substring(0, 2) }}</span>
344
+ }
345
+
346
+ @if (icon || iconClass || svgIcon) {
347
+ <span class="k-avatar-icon">
348
+ <kendo-icon-wrapper
349
+ [ngStyle]="cssStyle"
350
+ [name]="icon"
351
+ [customFontClass]="iconClass"
352
+ [svgIcon]="svgIcon"
353
+ >
354
+ </kendo-icon-wrapper>
355
+ </span>
356
+ }
357
+ `,
354
358
  standalone: true,
355
- imports: [NgIf, NgStyle, IconWrapperComponent, LocalizedAvatarMessagesDirective]
359
+ imports: [NgStyle, IconWrapperComponent, LocalizedAvatarMessagesDirective]
356
360
  }]
357
361
  }], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { hostClass: [{
358
362
  type: HostBinding,
@@ -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, Output, TemplateRef } from '@angular/core';
6
- import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
6
+ import { NgTemplateOutlet } from '@angular/common';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Defines the action buttons of the Card ([see example]({% slug actions_card %})).
@@ -80,57 +80,67 @@ export class CardActionsComponent {
80
80
  this.action.emit(action);
81
81
  }
82
82
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CardActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CardActionsComponent, isStandalone: true, selector: "kendo-card-actions", inputs: { orientation: "orientation", layout: "layout", actions: "actions" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClass", "class.k-card-actions": "this.hostClass", "class.k-actions-stretched": "this.stretchedClass", "class.k-actions-start": "this.startClass", "class.k-actions-end": "this.endClass", "class.k-actions-center": "this.centerClass", "class.k-actions-vertical": "this.verticalClass", "class.k-actions-horizontal": "this.horizontalClass" } }, ngImport: i0, template: `
84
- <ng-content *ngIf="!actionsArray && !actionsTemplate"></ng-content>
85
-
86
- <ng-container *ngIf="actionsArray">
83
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CardActionsComponent, isStandalone: true, selector: "kendo-card-actions", inputs: { orientation: "orientation", layout: "layout", actions: "actions" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClass", "class.k-card-actions": "this.hostClass", "class.k-actions-stretched": "this.stretchedClass", "class.k-actions-start": "this.startClass", "class.k-actions-end": "this.endClass", "class.k-actions-center": "this.centerClass", "class.k-actions-vertical": "this.verticalClass", "class.k-actions-horizontal": "this.horizontalClass" } }, ngImport: i0, template: `
84
+ @if (!actionsArray && !actionsTemplate) {
85
+ <ng-content></ng-content>
86
+ }
87
+
88
+ @if (actionsArray) {
89
+ @for (action of actionsArray; track action) {
87
90
  <button
88
- type="button"
89
- class="k-button k-button-md k-rounded-md"
90
- [class.k-button-solid]="!action.flat"
91
- [class.k-button-flat]="action.flat"
92
- [class.k-button-solid-base]="!action.primary && !action.flat"
93
- [class.k-button-solid-primary]="action.primary && !action.flat"
94
- [class.k-button-flat-base]="!action.primary && action.flat"
95
- [class.k-button-flat-primary]="action.primary && action.flat"
96
- (click)="onClick(action)"
97
- *ngFor="let action of actionsArray"
98
- >
99
- <span class="k-button-text">{{ action.text }}</span>
91
+ type="button"
92
+ class="k-button k-button-md k-rounded-md"
93
+ [class.k-button-solid]="!action.flat"
94
+ [class.k-button-flat]="action.flat"
95
+ [class.k-button-solid-base]="!action.primary && !action.flat"
96
+ [class.k-button-solid-primary]="action.primary && !action.flat"
97
+ [class.k-button-flat-base]="!action.primary && action.flat"
98
+ [class.k-button-flat-primary]="action.primary && action.flat"
99
+ (click)="onClick(action)"
100
+ >
101
+ <span class="k-button-text">{{ action.text }}</span>
100
102
  </button>
101
- </ng-container>
102
-
103
- <ng-template [ngTemplateOutlet]="actionsTemplate" *ngIf="actionsTemplate"></ng-template>
104
- `, 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: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
103
+ }
104
+ }
105
+
106
+ @if (actionsTemplate) {
107
+ <ng-template [ngTemplateOutlet]="actionsTemplate"></ng-template>
108
+ }
109
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
105
110
  }
106
111
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CardActionsComponent, decorators: [{
107
112
  type: Component,
108
113
  args: [{
109
114
  selector: 'kendo-card-actions',
110
115
  template: `
111
- <ng-content *ngIf="!actionsArray && !actionsTemplate"></ng-content>
112
-
113
- <ng-container *ngIf="actionsArray">
116
+ @if (!actionsArray && !actionsTemplate) {
117
+ <ng-content></ng-content>
118
+ }
119
+
120
+ @if (actionsArray) {
121
+ @for (action of actionsArray; track action) {
114
122
  <button
115
- type="button"
116
- class="k-button k-button-md k-rounded-md"
117
- [class.k-button-solid]="!action.flat"
118
- [class.k-button-flat]="action.flat"
119
- [class.k-button-solid-base]="!action.primary && !action.flat"
120
- [class.k-button-solid-primary]="action.primary && !action.flat"
121
- [class.k-button-flat-base]="!action.primary && action.flat"
122
- [class.k-button-flat-primary]="action.primary && action.flat"
123
- (click)="onClick(action)"
124
- *ngFor="let action of actionsArray"
125
- >
126
- <span class="k-button-text">{{ action.text }}</span>
123
+ type="button"
124
+ class="k-button k-button-md k-rounded-md"
125
+ [class.k-button-solid]="!action.flat"
126
+ [class.k-button-flat]="action.flat"
127
+ [class.k-button-solid-base]="!action.primary && !action.flat"
128
+ [class.k-button-solid-primary]="action.primary && !action.flat"
129
+ [class.k-button-flat-base]="!action.primary && action.flat"
130
+ [class.k-button-flat-primary]="action.primary && action.flat"
131
+ (click)="onClick(action)"
132
+ >
133
+ <span class="k-button-text">{{ action.text }}</span>
127
134
  </button>
128
- </ng-container>
129
-
130
- <ng-template [ngTemplateOutlet]="actionsTemplate" *ngIf="actionsTemplate"></ng-template>
131
- `,
135
+ }
136
+ }
137
+
138
+ @if (actionsTemplate) {
139
+ <ng-template [ngTemplateOutlet]="actionsTemplate"></ng-template>
140
+ }
141
+ `,
132
142
  standalone: true,
133
- imports: [NgIf, NgFor, NgTemplateOutlet]
143
+ imports: [NgTemplateOutlet]
134
144
  }]
135
145
  }], propDecorators: { hostClass: [{
136
146
  type: HostBinding,
@@ -6,7 +6,6 @@ import { Component, HostBinding, ContentChild } from '@angular/core';
6
6
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { DrawerComponent } from './drawer.component';
8
8
  import { isPresent } from '../common/util';
9
- import { NgIf } from '@angular/common';
10
9
  import * as i0 from "@angular/core";
11
10
  import * as i1 from "@progress/kendo-angular-l10n";
12
11
  /**
@@ -80,16 +79,18 @@ export class DrawerContainerComponent {
80
79
  }
81
80
  }
82
81
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerContainerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
83
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DrawerContainerComponent, isStandalone: true, selector: "kendo-drawer-container", host: { properties: { "class.k-drawer-container": "this.hostClass", "class.k-drawer-overlay": "this.overlayClass", "class.k-drawer-mini": "this.miniClass", "class.k-drawer-push": "this.pushClass", "class.k-drawer-expanded": "this.isExpandedClass", "attr.dir": "this.direction" } }, providers: [
82
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DrawerContainerComponent, isStandalone: true, selector: "kendo-drawer-container", host: { properties: { "class.k-drawer-container": "this.hostClass", "class.k-drawer-overlay": "this.overlayClass", "class.k-drawer-mini": "this.miniClass", "class.k-drawer-push": "this.pushClass", "class.k-drawer-expanded": "this.isExpandedClass", "attr.dir": "this.direction" } }, providers: [
84
83
  LocalizationService,
85
84
  {
86
85
  provide: L10N_PREFIX,
87
86
  useValue: 'kendo.drawer.container'
88
87
  }
89
88
  ], queries: [{ propertyName: "drawer", first: true, predicate: DrawerComponent, descendants: true }], ngImport: i0, template: `
90
- <div class="k-overlay" *ngIf="overlay" (click)="closeDrawer()"></div>
89
+ @if (overlay) {
90
+ <div class="k-overlay" (click)="closeDrawer()"></div>
91
+ }
91
92
  <ng-content></ng-content>
92
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
93
+ `, isInline: true });
93
94
  }
94
95
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerContainerComponent, decorators: [{
95
96
  type: Component,
@@ -103,11 +104,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
103
104
  }
104
105
  ],
105
106
  template: `
106
- <div class="k-overlay" *ngIf="overlay" (click)="closeDrawer()"></div>
107
+ @if (overlay) {
108
+ <div class="k-overlay" (click)="closeDrawer()"></div>
109
+ }
107
110
  <ng-content></ng-content>
108
- `,
109
- standalone: true,
110
- imports: [NgIf]
111
+ `,
112
+ standalone: true
111
113
  }]
112
114
  }], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { hostClass: [{
113
115
  type: HostBinding,
@@ -15,7 +15,7 @@ import { take } from 'rxjs/operators';
15
15
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
16
16
  import { getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent } from '@progress/kendo-angular-common';
17
17
  import { DrawerListComponent } from './list.component';
18
- import { NgIf, NgTemplateOutlet } from '@angular/common';
18
+ import { NgTemplateOutlet } from '@angular/common';
19
19
  import * as i0 from "@angular/core";
20
20
  import * as i1 from "@angular/animations";
21
21
  import * as i2 from "@progress/kendo-angular-l10n";
@@ -312,7 +312,7 @@ export class DrawerComponent {
312
312
  return player;
313
313
  }
314
314
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerComponent, deps: [{ token: i0.ElementRef }, { token: i1.AnimationBuilder }, { token: i2.LocalizationService }, { token: i3.DrawerService }], target: i0.ɵɵFactoryTarget.Component });
315
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DrawerComponent, isStandalone: true, selector: "kendo-drawer", inputs: { mode: "mode", position: "position", mini: "mini", expanded: "expanded", width: "width", miniWidth: "miniWidth", autoCollapse: "autoCollapse", items: "items", isItemExpanded: "isItemExpanded", animation: "animation" }, outputs: { expand: "expand", collapse: "collapse", select: "select", expandedChange: "expandedChange" }, host: { properties: { "class.k-drawer": "this.hostClasses", "class.k-drawer-start": "this.startPositionClass", "class.k-drawer-end": "this.endPositionClass", "style.transform": "this.overlayTransofrmStyles", "style.flexBasis.px": "this.flexStyles", "attr.dir": "this.direction" } }, providers: [
315
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DrawerComponent, isStandalone: true, selector: "kendo-drawer", inputs: { mode: "mode", position: "position", mini: "mini", expanded: "expanded", width: "width", miniWidth: "miniWidth", autoCollapse: "autoCollapse", items: "items", isItemExpanded: "isItemExpanded", animation: "animation" }, outputs: { expand: "expand", collapse: "collapse", select: "select", expandedChange: "expandedChange" }, host: { properties: { "class.k-drawer": "this.hostClasses", "class.k-drawer-start": "this.startPositionClass", "class.k-drawer-end": "this.endPositionClass", "style.transform": "this.overlayTransofrmStyles", "style.flexBasis.px": "this.flexStyles", "attr.dir": "this.direction" } }, providers: [
316
316
  LocalizationService,
317
317
  DrawerService,
318
318
  {
@@ -320,35 +320,42 @@ export class DrawerComponent {
320
320
  useValue: 'kendo.drawer'
321
321
  }
322
322
  ], queries: [{ propertyName: "drawerTemplate", first: true, predicate: DrawerTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: DrawerFooterTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: DrawerHeaderTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: DrawerItemTemplateDirective, descendants: true }], exportAs: ["kendoDrawer"], usesOnChanges: true, ngImport: i0, template: `
323
- <div class="k-drawer-wrapper" *ngIf="expanded || mini" [style.width.px]="drawerWidth">
324
- <ng-container *ngIf="!drawerTemplate">
325
- <ng-template *ngIf="headerTemplate"
326
- [ngTemplateOutlet]="headerTemplate?.templateRef">
323
+ @if (expanded || mini) {
324
+ <div class="k-drawer-wrapper" [style.width.px]="drawerWidth">
325
+ @if (!drawerTemplate) {
326
+ @if (headerTemplate) {
327
+ <ng-template
328
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
327
329
  </ng-template>
328
-
329
- <ul kendoDrawerList
330
- role="menubar"
331
- aria-orientation="vertical"
332
- (select)="onSelect($event)"
333
- [mini]="mini"
334
- [expanded]="expanded"
335
- [view]="viewItems"
336
- [itemTemplate]="itemTemplate?.templateRef"
337
- class="k-drawer-items">
338
- </ul>
339
-
340
- <ng-template *ngIf="footerTemplate"
341
- [ngTemplateOutlet]="footerTemplate?.templateRef">
330
+ }
331
+ <ul kendoDrawerList
332
+ role="menubar"
333
+ aria-orientation="vertical"
334
+ (select)="onSelect($event)"
335
+ [mini]="mini"
336
+ [expanded]="expanded"
337
+ [view]="viewItems"
338
+ [itemTemplate]="itemTemplate?.templateRef"
339
+ class="k-drawer-items">
340
+ </ul>
341
+ @if (footerTemplate) {
342
+ <ng-template
343
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
342
344
  </ng-template>
343
- </ng-container>
344
-
345
- <ng-template *ngIf="drawerTemplate"
345
+ }
346
+ }
347
+ @if (drawerTemplate) {
348
+ <ng-template
346
349
  [ngTemplateOutlet]="drawerTemplate?.templateRef">
347
- </ng-template>
348
- </div>
349
-
350
- <div kendoWatermarkOverlay *ngIf="showLicenseWatermark" [licenseMessage]="licenseMessage"></div>
351
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DrawerListComponent, selector: "[kendoDrawerList]", inputs: ["itemTemplate", "mini", "expanded", "view"], outputs: ["select"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }] });
350
+ </ng-template>
351
+ }
352
+ </div>
353
+ }
354
+
355
+ @if (showLicenseWatermark) {
356
+ <div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
357
+ }
358
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DrawerListComponent, selector: "[kendoDrawerList]", inputs: ["itemTemplate", "mini", "expanded", "view"], outputs: ["select"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }] });
352
359
  }
353
360
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DrawerComponent, decorators: [{
354
361
  type: Component,
@@ -364,37 +371,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
364
371
  ],
365
372
  selector: 'kendo-drawer',
366
373
  template: `
367
- <div class="k-drawer-wrapper" *ngIf="expanded || mini" [style.width.px]="drawerWidth">
368
- <ng-container *ngIf="!drawerTemplate">
369
- <ng-template *ngIf="headerTemplate"
370
- [ngTemplateOutlet]="headerTemplate?.templateRef">
374
+ @if (expanded || mini) {
375
+ <div class="k-drawer-wrapper" [style.width.px]="drawerWidth">
376
+ @if (!drawerTemplate) {
377
+ @if (headerTemplate) {
378
+ <ng-template
379
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
371
380
  </ng-template>
372
-
373
- <ul kendoDrawerList
374
- role="menubar"
375
- aria-orientation="vertical"
376
- (select)="onSelect($event)"
377
- [mini]="mini"
378
- [expanded]="expanded"
379
- [view]="viewItems"
380
- [itemTemplate]="itemTemplate?.templateRef"
381
- class="k-drawer-items">
382
- </ul>
383
-
384
- <ng-template *ngIf="footerTemplate"
385
- [ngTemplateOutlet]="footerTemplate?.templateRef">
381
+ }
382
+ <ul kendoDrawerList
383
+ role="menubar"
384
+ aria-orientation="vertical"
385
+ (select)="onSelect($event)"
386
+ [mini]="mini"
387
+ [expanded]="expanded"
388
+ [view]="viewItems"
389
+ [itemTemplate]="itemTemplate?.templateRef"
390
+ class="k-drawer-items">
391
+ </ul>
392
+ @if (footerTemplate) {
393
+ <ng-template
394
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
386
395
  </ng-template>
387
- </ng-container>
388
-
389
- <ng-template *ngIf="drawerTemplate"
396
+ }
397
+ }
398
+ @if (drawerTemplate) {
399
+ <ng-template
390
400
  [ngTemplateOutlet]="drawerTemplate?.templateRef">
391
- </ng-template>
392
- </div>
393
-
394
- <div kendoWatermarkOverlay *ngIf="showLicenseWatermark" [licenseMessage]="licenseMessage"></div>
395
- `,
401
+ </ng-template>
402
+ }
403
+ </div>
404
+ }
405
+
406
+ @if (showLicenseWatermark) {
407
+ <div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
408
+ }
409
+ `,
396
410
  standalone: true,
397
- imports: [NgIf, NgTemplateOutlet, DrawerListComponent, WatermarkOverlayComponent]
411
+ imports: [NgTemplateOutlet, DrawerListComponent, WatermarkOverlayComponent]
398
412
  }]
399
413
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.AnimationBuilder }, { type: i2.LocalizationService }, { type: i3.DrawerService }], propDecorators: { hostClasses: [{
400
414
  type: HostBinding,