@progress/kendo-angular-navigation 11.2.0-develop.1 → 11.2.0-develop.3

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.
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-navigation',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1675339576,
13
- version: '11.2.0-develop.1',
12
+ publishDate: 1675417326,
13
+ version: '11.2.0-develop.3',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -12,10 +12,12 @@ import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSe
12
12
  import * as i2 from '@angular/common';
13
13
  import { CommonModule } from '@angular/common';
14
14
  import { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';
15
- import { filter, map, startWith, share } from 'rxjs/operators';
15
+ import { filter, map, startWith, share, take } from 'rxjs/operators';
16
16
  import * as i1$1 from '@progress/kendo-angular-icons';
17
17
  import { IconsModule } from '@progress/kendo-angular-icons';
18
18
  import { chevronRightIcon, chevronLeftIcon } from '@progress/kendo-svg-icons';
19
+ import * as i2$1 from '@angular/animations';
20
+ import { style, animate } from '@angular/animations';
19
21
 
20
22
  /**
21
23
  * @hidden
@@ -24,8 +26,8 @@ const packageMetadata = {
24
26
  name: '@progress/kendo-angular-navigation',
25
27
  productName: 'Kendo UI for Angular',
26
28
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
27
- publishDate: 1675339576,
28
- version: '11.2.0-develop.1',
29
+ publishDate: 1675417326,
30
+ version: '11.2.0-develop.3',
29
31
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
30
32
  };
31
33
 
@@ -1802,6 +1804,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1802
1804
  }] }];
1803
1805
  } });
1804
1806
 
1807
+ /**
1808
+ * @hidden
1809
+ */
1810
+ function slideUp(duration, height) {
1811
+ return [
1812
+ style({ overflow: 'hidden', display: 'block', height: 0 }),
1813
+ animate(`${duration}ms ease-in`, style({ height: `${height}` }))
1814
+ ];
1815
+ }
1816
+ /**
1817
+ * @hidden
1818
+ */
1819
+ function slideDown(duration, height) {
1820
+ return [
1821
+ style({ overflow: 'hidden', height: `${height}` }),
1822
+ animate(`${duration}ms ease-in`, style({ overflow: 'hidden', height: 0 }))
1823
+ ];
1824
+ }
1825
+
1805
1826
  /**
1806
1827
  * @hidden
1807
1828
  */
@@ -1977,20 +1998,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1977
1998
  type: Output
1978
1999
  }] } });
1979
2000
 
2001
+ const DEFAULT_ANIMATION_CONFIG = { duration: 300 };
1980
2002
  /**
1981
2003
  * Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
1982
2004
  * Used to display a set of choices related to a task the user initiates.
1983
2005
  */
1984
2006
  class ActionSheetComponent {
1985
- constructor(element, ngZone, renderer, localizationService) {
2007
+ constructor(element, ngZone, renderer, localizationService, builder, cdr) {
1986
2008
  this.element = element;
1987
2009
  this.ngZone = ngZone;
1988
2010
  this.renderer = renderer;
1989
2011
  this.localizationService = localizationService;
2012
+ this.builder = builder;
2013
+ this.cdr = cdr;
1990
2014
  /**
1991
- * @hidden
2015
+ * Configures the ActionSheet opening and closing animations ([see example]({% slug animations_actionsheet %})).
2016
+ * By default the animations are turned off. The default animations' duration is `300ms`.
2017
+ *
2018
+ * @default true
1992
2019
  */
1993
- this.hostClass = true;
2020
+ this.animation = true;
2021
+ /**
2022
+ * Specifies the state of the ActionSheet.
2023
+ *
2024
+ * @default false
2025
+ */
2026
+ this.expanded = false;
2027
+ /**
2028
+ * Fires when the `expanded` property of the component is updated.
2029
+ * Used to provide a two-way binding for the `expanded` property.
2030
+ */
2031
+ this.expandedChange = new EventEmitter();
2032
+ /**
2033
+ * Fires when the ActionSheet is expanded and its animation is complete.
2034
+ */
2035
+ this.expand = new EventEmitter();
2036
+ /**
2037
+ * Fires when the ActionSheet is collapsed and its animation is complete.
2038
+ */
2039
+ this.collapse = new EventEmitter();
1994
2040
  /**
1995
2041
  * Fires when an ActionSheet item is clicked.
1996
2042
  */
@@ -2005,6 +2051,7 @@ class ActionSheetComponent {
2005
2051
  this.titleId = null;
2006
2052
  this.rtl = false;
2007
2053
  this.domSubs = new Subscription();
2054
+ this.animationEnd = new EventEmitter();
2008
2055
  validatePackage(packageMetadata);
2009
2056
  this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
2010
2057
  this.rtl = rtl;
@@ -2012,15 +2059,49 @@ class ActionSheetComponent {
2012
2059
  });
2013
2060
  this.titleId = getId('k-actionsheet-title');
2014
2061
  }
2062
+ /**
2063
+ * @hidden
2064
+ */
2065
+ get hostClass() {
2066
+ return this.expanded;
2067
+ }
2068
+ ;
2015
2069
  ngAfterViewInit() {
2016
- this.handleInitialFocus();
2017
2070
  this.initDomEvents();
2018
2071
  }
2072
+ ngOnChanges(changes) {
2073
+ if (changes['expanded'] && this.expanded) {
2074
+ this.setExpanded(true);
2075
+ }
2076
+ }
2019
2077
  ngOnDestroy() {
2020
2078
  this.domSubs.unsubscribe();
2021
2079
  if (this.dynamicRTLSubscription) {
2022
2080
  this.dynamicRTLSubscription.unsubscribe();
2023
2081
  }
2082
+ if (this.player) {
2083
+ this.player.destroy();
2084
+ }
2085
+ }
2086
+ /**
2087
+ * Toggles the visibility of the ActionSheet.
2088
+ */
2089
+ toggle() {
2090
+ const current = !this.expanded;
2091
+ if (current === true) {
2092
+ this.setExpanded(true);
2093
+ }
2094
+ else if (current === false && !this.animation) {
2095
+ this.setExpanded(false);
2096
+ }
2097
+ if (this.animation) {
2098
+ this.animationEnd.pipe(take(1))
2099
+ .subscribe(() => { this.onAnimationEnd(current); });
2100
+ this.playAnimation(current);
2101
+ }
2102
+ else {
2103
+ this[current ? 'expand' : 'collapse'].emit();
2104
+ }
2024
2105
  }
2025
2106
  /**
2026
2107
  * @hidden
@@ -2111,152 +2192,188 @@ class ActionSheetComponent {
2111
2192
  }
2112
2193
  this.itemClick.emit({ item, originalEvent: event });
2113
2194
  }
2195
+ setExpanded(value) {
2196
+ this.expanded = value;
2197
+ this.expandedChange.emit(value);
2198
+ if (this.expanded) {
2199
+ this.cdr.detectChanges();
2200
+ this.handleInitialFocus();
2201
+ }
2202
+ }
2203
+ onAnimationEnd(currentExpanded) {
2204
+ if (currentExpanded) {
2205
+ this.expand.emit();
2206
+ }
2207
+ else {
2208
+ this.setExpanded(false);
2209
+ this.collapse.emit();
2210
+ }
2211
+ }
2212
+ playAnimation(expanded) {
2213
+ const duration = typeof this.animation !== 'boolean' && this.animation.duration ? this.animation.duration : DEFAULT_ANIMATION_CONFIG.duration;
2214
+ const contentHeight = getComputedStyle(this.childContainer.nativeElement).height;
2215
+ const animation = expanded ? slideUp(duration, contentHeight) : slideDown(duration, contentHeight);
2216
+ const factory = this.builder.build(animation);
2217
+ this.player = factory.create(this.childContainer.nativeElement);
2218
+ this.player.onDone(() => {
2219
+ if (this.player) {
2220
+ this.animationEnd.emit();
2221
+ this.player.destroy();
2222
+ this.player = null;
2223
+ }
2224
+ });
2225
+ this.player.play();
2226
+ }
2114
2227
  }
2115
- ActionSheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2116
- ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: { title: "title", subtitle: "subtitle", items: "items", cssClass: "cssClass" }, outputs: { itemClick: "itemClick", overlayClick: "overlayClick" }, host: { properties: { "class.k-actionsheet-container": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
2228
+ ActionSheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2$1.AnimationBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2229
+ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: { title: "title", subtitle: "subtitle", items: "items", cssClass: "cssClass", animation: "animation", expanded: "expanded" }, outputs: { expandedChange: "expandedChange", expand: "expand", collapse: "collapse", itemClick: "itemClick", overlayClick: "overlayClick" }, host: { properties: { "class.k-actionsheet-container": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
2117
2230
  LocalizationService,
2118
2231
  {
2119
2232
  provide: L10N_PREFIX,
2120
2233
  useValue: 'kendo.actionsheet.component'
2121
2234
  }
2122
- ], queries: [{ propertyName: "actionSheetTemplate", first: true, predicate: ActionSheetTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ActionSheetHeaderTemplateDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ActionSheetContentTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ActionSheetItemTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ActionSheetFooterTemplateDirective, descendants: true }], exportAs: ["kendoActionSheet"], ngImport: i0, template: `
2123
- <div class="k-overlay" (click)="onOverlayClick()"></div>
2124
- <div class="k-animation-container">
2125
- <div class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2126
- <div class="k-actionsheet k-actionsheet-bottom"
2127
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2128
- [ngClass]="cssClass"
2129
- role="dialog"
2130
- aria-modal="true"
2131
- [attr.aria-labelledby]="titleId">
2235
+ ], queries: [{ propertyName: "actionSheetTemplate", first: true, predicate: ActionSheetTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ActionSheetHeaderTemplateDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ActionSheetContentTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ActionSheetItemTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ActionSheetFooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "childContainer", first: true, predicate: ["childContainer"], descendants: true }], exportAs: ["kendoActionSheet"], usesOnChanges: true, ngImport: i0, template: `
2236
+ <ng-container *ngIf="expanded">
2237
+ <div class="k-overlay" (click)="onOverlayClick()"></div>
2238
+ <div class="k-animation-container">
2239
+ <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2240
+ <div class="k-actionsheet k-actionsheet-bottom"
2241
+ [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2242
+ [ngClass]="cssClass"
2243
+ role="dialog"
2244
+ aria-modal="true"
2245
+ [attr.aria-labelledby]="titleId">
2132
2246
 
2133
- <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2134
- [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2135
- </ng-template>
2247
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2248
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2249
+ </ng-template>
2136
2250
 
2137
- <ng-template #defaultTemplate>
2138
- <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2139
- <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2140
- [ngTemplateOutlet]="headerTemplate?.templateRef">
2141
- </ng-template>
2251
+ <ng-template #defaultTemplate>
2252
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2253
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2254
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
2255
+ </ng-template>
2142
2256
 
2143
- <ng-template #defaultHeaderTemplate>
2144
- <div class="k-actionsheet-titlebar-group k-hbox">
2145
- <div class="k-actionsheet-title" [id]="titleId">
2146
- <div *ngIf="title" class="k-text-center">{{title}}</div>
2147
- <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2257
+ <ng-template #defaultHeaderTemplate>
2258
+ <div class="k-actionsheet-titlebar-group k-hbox">
2259
+ <div class="k-actionsheet-title" [id]="titleId">
2260
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
2261
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2262
+ </div>
2148
2263
  </div>
2149
- </div>
2150
- </ng-template>
2151
- </div>
2264
+ </ng-template>
2265
+ </div>
2152
2266
 
2153
- <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2154
- <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2155
- [ngTemplateOutlet]="contentTemplate?.templateRef">
2156
- </ng-template>
2157
- <ng-template #defaultContentTemplate>
2158
- <div *ngIf="topGroupItems" kendoActionSheetList
2159
- class="k-list-ul"
2160
- role="group"
2161
- [groupItems]="topGroupItems"
2162
- [allItems]="items"
2163
- [itemTemplate]="itemTemplate?.templateRef"
2164
- (itemClick)="onItemClick($event)">
2165
- </div>
2166
-
2167
- <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2168
-
2169
- <div *ngIf="bottomGroupItems" kendoActionSheetList
2170
- class="k-list-ul"
2171
- role="group"
2172
- [groupItems]="bottomGroupItems"
2173
- [allItems]="items"
2174
- [itemTemplate]="itemTemplate?.templateRef"
2175
- (itemClick)="onItemClick($event)">
2176
- </div>
2177
- </ng-template>
2178
- </div>
2179
- <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2180
- <ng-template
2181
- [ngTemplateOutlet]="footerTemplate?.templateRef">
2182
- </ng-template>
2183
- </div>
2184
- </ng-template>
2267
+ <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2268
+ <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2269
+ [ngTemplateOutlet]="contentTemplate?.templateRef">
2270
+ </ng-template>
2271
+ <ng-template #defaultContentTemplate>
2272
+ <div *ngIf="topGroupItems" kendoActionSheetList
2273
+ class="k-list-ul"
2274
+ role="group"
2275
+ [groupItems]="topGroupItems"
2276
+ [allItems]="items"
2277
+ [itemTemplate]="itemTemplate?.templateRef"
2278
+ (itemClick)="onItemClick($event)">
2279
+ </div>
2280
+
2281
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2282
+
2283
+ <div *ngIf="bottomGroupItems" kendoActionSheetList
2284
+ class="k-list-ul"
2285
+ role="group"
2286
+ [groupItems]="bottomGroupItems"
2287
+ [allItems]="items"
2288
+ [itemTemplate]="itemTemplate?.templateRef"
2289
+ (itemClick)="onItemClick($event)">
2290
+ </div>
2291
+ </ng-template>
2292
+ </div>
2293
+ <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2294
+ <ng-template
2295
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
2296
+ </ng-template>
2297
+ </div>
2298
+ </ng-template>
2299
+ </div>
2185
2300
  </div>
2186
2301
  </div>
2187
- </div>
2188
- `, isInline: true, components: [{ type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2302
+ </ng-container>
2303
+ `, isInline: true, components: [{ type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2189
2304
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, decorators: [{
2190
2305
  type: Component,
2191
2306
  args: [{
2192
2307
  exportAs: 'kendoActionSheet',
2193
2308
  selector: 'kendo-actionsheet',
2194
2309
  template: `
2195
- <div class="k-overlay" (click)="onOverlayClick()"></div>
2196
- <div class="k-animation-container">
2197
- <div class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2198
- <div class="k-actionsheet k-actionsheet-bottom"
2199
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2200
- [ngClass]="cssClass"
2201
- role="dialog"
2202
- aria-modal="true"
2203
- [attr.aria-labelledby]="titleId">
2310
+ <ng-container *ngIf="expanded">
2311
+ <div class="k-overlay" (click)="onOverlayClick()"></div>
2312
+ <div class="k-animation-container">
2313
+ <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2314
+ <div class="k-actionsheet k-actionsheet-bottom"
2315
+ [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2316
+ [ngClass]="cssClass"
2317
+ role="dialog"
2318
+ aria-modal="true"
2319
+ [attr.aria-labelledby]="titleId">
2204
2320
 
2205
- <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2206
- [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2207
- </ng-template>
2321
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2322
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2323
+ </ng-template>
2208
2324
 
2209
- <ng-template #defaultTemplate>
2210
- <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2211
- <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2212
- [ngTemplateOutlet]="headerTemplate?.templateRef">
2213
- </ng-template>
2325
+ <ng-template #defaultTemplate>
2326
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2327
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2328
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
2329
+ </ng-template>
2214
2330
 
2215
- <ng-template #defaultHeaderTemplate>
2216
- <div class="k-actionsheet-titlebar-group k-hbox">
2217
- <div class="k-actionsheet-title" [id]="titleId">
2218
- <div *ngIf="title" class="k-text-center">{{title}}</div>
2219
- <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2331
+ <ng-template #defaultHeaderTemplate>
2332
+ <div class="k-actionsheet-titlebar-group k-hbox">
2333
+ <div class="k-actionsheet-title" [id]="titleId">
2334
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
2335
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2336
+ </div>
2220
2337
  </div>
2221
- </div>
2222
- </ng-template>
2223
- </div>
2338
+ </ng-template>
2339
+ </div>
2224
2340
 
2225
- <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2226
- <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2227
- [ngTemplateOutlet]="contentTemplate?.templateRef">
2228
- </ng-template>
2229
- <ng-template #defaultContentTemplate>
2230
- <div *ngIf="topGroupItems" kendoActionSheetList
2231
- class="k-list-ul"
2232
- role="group"
2233
- [groupItems]="topGroupItems"
2234
- [allItems]="items"
2235
- [itemTemplate]="itemTemplate?.templateRef"
2236
- (itemClick)="onItemClick($event)">
2237
- </div>
2238
-
2239
- <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2240
-
2241
- <div *ngIf="bottomGroupItems" kendoActionSheetList
2242
- class="k-list-ul"
2243
- role="group"
2244
- [groupItems]="bottomGroupItems"
2245
- [allItems]="items"
2246
- [itemTemplate]="itemTemplate?.templateRef"
2247
- (itemClick)="onItemClick($event)">
2248
- </div>
2249
- </ng-template>
2250
- </div>
2251
- <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2252
- <ng-template
2253
- [ngTemplateOutlet]="footerTemplate?.templateRef">
2254
- </ng-template>
2255
- </div>
2256
- </ng-template>
2341
+ <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2342
+ <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2343
+ [ngTemplateOutlet]="contentTemplate?.templateRef">
2344
+ </ng-template>
2345
+ <ng-template #defaultContentTemplate>
2346
+ <div *ngIf="topGroupItems" kendoActionSheetList
2347
+ class="k-list-ul"
2348
+ role="group"
2349
+ [groupItems]="topGroupItems"
2350
+ [allItems]="items"
2351
+ [itemTemplate]="itemTemplate?.templateRef"
2352
+ (itemClick)="onItemClick($event)">
2353
+ </div>
2354
+
2355
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2356
+
2357
+ <div *ngIf="bottomGroupItems" kendoActionSheetList
2358
+ class="k-list-ul"
2359
+ role="group"
2360
+ [groupItems]="bottomGroupItems"
2361
+ [allItems]="items"
2362
+ [itemTemplate]="itemTemplate?.templateRef"
2363
+ (itemClick)="onItemClick($event)">
2364
+ </div>
2365
+ </ng-template>
2366
+ </div>
2367
+ <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2368
+ <ng-template
2369
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
2370
+ </ng-template>
2371
+ </div>
2372
+ </ng-template>
2373
+ </div>
2257
2374
  </div>
2258
2375
  </div>
2259
- </div>
2376
+ </ng-container>
2260
2377
  `,
2261
2378
  providers: [
2262
2379
  LocalizationService,
@@ -2266,7 +2383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2266
2383
  }
2267
2384
  ]
2268
2385
  }]
2269
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
2386
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i2$1.AnimationBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
2270
2387
  type: HostBinding,
2271
2388
  args: ['class.k-actionsheet-container']
2272
2389
  }], direction: [{
@@ -2280,10 +2397,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2280
2397
  type: Input
2281
2398
  }], cssClass: [{
2282
2399
  type: Input
2400
+ }], animation: [{
2401
+ type: Input
2402
+ }], expanded: [{
2403
+ type: Input
2404
+ }], expandedChange: [{
2405
+ type: Output
2406
+ }], expand: [{
2407
+ type: Output
2408
+ }], collapse: [{
2409
+ type: Output
2283
2410
  }], itemClick: [{
2284
2411
  type: Output
2285
2412
  }], overlayClick: [{
2286
2413
  type: Output
2414
+ }], childContainer: [{
2415
+ type: ViewChild,
2416
+ args: ['childContainer']
2287
2417
  }], actionSheetTemplate: [{
2288
2418
  type: ContentChild,
2289
2419
  args: [ActionSheetTemplateDirective]