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

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.
@@ -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: 1675853580,
30
+ version: '11.2.0-develop.10',
29
31
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
30
32
  };
31
33
 
@@ -807,6 +809,7 @@ const collapseFirst = toggleFirst(false);
807
809
  */
808
810
  const expandFirst = toggleFirst(true);
809
811
 
812
+ /* eslint-disable @typescript-eslint/no-explicit-any */
810
813
  /**
811
814
  * Represents the [Kendo UI Breadcrumb component for Angular]({% slug overview_breadcrumb %}).
812
815
  *
@@ -837,11 +840,11 @@ const expandFirst = toggleFirst(true);
837
840
  * ```
838
841
  */
839
842
  class BreadCrumbComponent {
840
- constructor(el, cdr, zone, localization) {
843
+ constructor(localization, el, cdr, zone) {
844
+ this.localization = localization;
841
845
  this.el = el;
842
846
  this.cdr = cdr;
843
847
  this.zone = zone;
844
- this.localization = localization;
845
848
  /**
846
849
  * Fires when a Breadcrumb item is clicked. The event will not be fired by disabled items and the last item.
847
850
  */
@@ -973,8 +976,8 @@ class BreadCrumbComponent {
973
976
  }));
974
977
  }
975
978
  }
976
- BreadCrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BreadCrumbComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
977
- BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BreadCrumbComponent, selector: "kendo-breadcrumb", inputs: { items: "items", separatorIcon: "separatorIcon", separatorSVGIcon: "separatorSVGIcon", collapseMode: "collapseMode" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-widget": "this.hostClasses", "class.k-breadcrumb": "this.hostClasses", "class.k-breadcrumb-wrap": "this.wrapMode", "attr.dir": "this.getDir" } }, providers: [
979
+ BreadCrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BreadCrumbComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
980
+ BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BreadCrumbComponent, selector: "kendo-breadcrumb", inputs: { items: "items", separatorIcon: "separatorIcon", separatorSVGIcon: "separatorSVGIcon", collapseMode: "collapseMode" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-breadcrumb": "this.hostClasses", "class.k-breadcrumb-wrap": "this.wrapMode", "attr.dir": "this.getDir" } }, providers: [
978
981
  LocalizationService,
979
982
  {
980
983
  provide: L10N_PREFIX,
@@ -1047,7 +1050,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1047
1050
  <kendo-resize-sensor [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>
1048
1051
  `
1049
1052
  }]
1050
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { items: [{
1053
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { items: [{
1051
1054
  type: Input
1052
1055
  }], separatorIcon: [{
1053
1056
  type: Input
@@ -1068,11 +1071,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1068
1071
  args: [BreadCrumbListComponent, { static: true }]
1069
1072
  }], itemTemplate: [{
1070
1073
  type: ContentChild,
1071
- args: [BreadCrumbItemTemplateDirective, { static: false }]
1074
+ args: [BreadCrumbItemTemplateDirective]
1072
1075
  }], hostClasses: [{
1073
- type: HostBinding,
1074
- args: ['class.k-widget']
1075
- }, {
1076
1076
  type: HostBinding,
1077
1077
  args: ['class.k-breadcrumb']
1078
1078
  }], wrapMode: [{
@@ -1198,7 +1198,7 @@ class BottomNavigationItemComponent {
1198
1198
  }
1199
1199
  }
1200
1200
  BottomNavigationItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BottomNavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1201
- BottomNavigationItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BottomNavigationItemComponent, selector: "[kendoBottomNavigationItem]", inputs: { itemTemplate: "itemTemplate", item: "item", index: "index", disabledComponent: "disabledComponent", selectedIdx: "selectedIdx", orientation: "orientation" }, host: { properties: { "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-hstack": "this.horizontalItemClass", "class.k-vstack": "this.verticalItemClass", "attr.aria-label": "this.label", "attr.tabindex": "this.tabindex", "attr.aria-selected": "this.selectedClass", "class.k-selected": "this.selectedClass" } }, ngImport: i0, template: `
1201
+ BottomNavigationItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BottomNavigationItemComponent, selector: "[kendoBottomNavigationItem]", inputs: { itemTemplate: "itemTemplate", item: "item", index: "index", disabledComponent: "disabledComponent", selectedIdx: "selectedIdx", orientation: "orientation" }, host: { properties: { "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-hstack": "this.horizontalItemClass", "class.k-vstack": "this.verticalItemClass", "attr.aria-label": "this.label", "attr.tabindex": "this.tabindex", "attr.aria-selected": "this.selectedClass", "attr.aria-current": "this.selectedClass", "class.k-selected": "this.selectedClass" } }, ngImport: i0, template: `
1202
1202
  <ng-container *ngIf="!itemTemplate">
1203
1203
  <kendo-icon-wrapper *ngIf="itemIcon"
1204
1204
  class="k-bottom-nav-item-icon"
@@ -1269,6 +1269,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1269
1269
  }], selectedClass: [{
1270
1270
  type: HostBinding,
1271
1271
  args: ['attr.aria-selected']
1272
+ }, {
1273
+ type: HostBinding,
1274
+ args: ['attr.aria-current']
1272
1275
  }, {
1273
1276
  type: HostBinding,
1274
1277
  args: ['class.k-selected']
@@ -1788,6 +1791,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1788
1791
  type: Optional
1789
1792
  }] }]; } });
1790
1793
 
1794
+ /**
1795
+ * @hidden
1796
+ */
1797
+ function slideUp(duration, height) {
1798
+ return [
1799
+ style({ overflow: 'hidden', display: 'block', height: 0 }),
1800
+ animate(`${duration}ms ease-in`, style({ height: `${height}` }))
1801
+ ];
1802
+ }
1803
+ /**
1804
+ * @hidden
1805
+ */
1806
+ function slideDown(duration, height) {
1807
+ return [
1808
+ style({ overflow: 'hidden', height: `${height}` }),
1809
+ animate(`${duration}ms ease-in`, style({ overflow: 'hidden', height: 0 }))
1810
+ ];
1811
+ }
1812
+
1791
1813
  /**
1792
1814
  * @hidden
1793
1815
  */
@@ -1963,20 +1985,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1963
1985
  type: Output
1964
1986
  }] } });
1965
1987
 
1988
+ const DEFAULT_ANIMATION_CONFIG = { duration: 300 };
1966
1989
  /**
1967
1990
  * Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
1968
1991
  * Used to display a set of choices related to a task the user initiates.
1969
1992
  */
1970
1993
  class ActionSheetComponent {
1971
- constructor(element, ngZone, renderer, localizationService) {
1994
+ constructor(element, ngZone, renderer, localizationService, builder, cdr) {
1972
1995
  this.element = element;
1973
1996
  this.ngZone = ngZone;
1974
1997
  this.renderer = renderer;
1975
1998
  this.localizationService = localizationService;
1999
+ this.builder = builder;
2000
+ this.cdr = cdr;
1976
2001
  /**
1977
- * @hidden
2002
+ * Configures the ActionSheet opening and closing animations ([see example]({% slug animations_actionsheet %})).
2003
+ * By default the animations are turned off. The default animations' duration is `300ms`.
2004
+ *
2005
+ * @default true
1978
2006
  */
1979
- this.hostClass = true;
2007
+ this.animation = true;
2008
+ /**
2009
+ * Specifies the state of the ActionSheet.
2010
+ *
2011
+ * @default false
2012
+ */
2013
+ this.expanded = false;
2014
+ /**
2015
+ * Fires when the `expanded` property of the component is updated.
2016
+ * Used to provide a two-way binding for the `expanded` property.
2017
+ */
2018
+ this.expandedChange = new EventEmitter();
2019
+ /**
2020
+ * Fires when the ActionSheet is expanded and its animation is complete.
2021
+ */
2022
+ this.expand = new EventEmitter();
2023
+ /**
2024
+ * Fires when the ActionSheet is collapsed and its animation is complete.
2025
+ */
2026
+ this.collapse = new EventEmitter();
1980
2027
  /**
1981
2028
  * Fires when an ActionSheet item is clicked.
1982
2029
  */
@@ -1991,6 +2038,7 @@ class ActionSheetComponent {
1991
2038
  this.titleId = null;
1992
2039
  this.rtl = false;
1993
2040
  this.domSubs = new Subscription();
2041
+ this.animationEnd = new EventEmitter();
1994
2042
  validatePackage(packageMetadata);
1995
2043
  this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
1996
2044
  this.rtl = rtl;
@@ -1998,15 +2046,49 @@ class ActionSheetComponent {
1998
2046
  });
1999
2047
  this.titleId = getId('k-actionsheet-title');
2000
2048
  }
2049
+ /**
2050
+ * @hidden
2051
+ */
2052
+ get hostClass() {
2053
+ return this.expanded;
2054
+ }
2055
+ ;
2001
2056
  ngAfterViewInit() {
2002
- this.handleInitialFocus();
2003
2057
  this.initDomEvents();
2004
2058
  }
2059
+ ngOnChanges(changes) {
2060
+ if (changes['expanded'] && this.expanded) {
2061
+ this.setExpanded(true);
2062
+ }
2063
+ }
2005
2064
  ngOnDestroy() {
2006
2065
  this.domSubs.unsubscribe();
2007
2066
  if (this.dynamicRTLSubscription) {
2008
2067
  this.dynamicRTLSubscription.unsubscribe();
2009
2068
  }
2069
+ if (this.player) {
2070
+ this.player.destroy();
2071
+ }
2072
+ }
2073
+ /**
2074
+ * Toggles the visibility of the ActionSheet.
2075
+ */
2076
+ toggle() {
2077
+ const current = !this.expanded;
2078
+ if (current === true) {
2079
+ this.setExpanded(true);
2080
+ }
2081
+ else if (current === false && !this.animation) {
2082
+ this.setExpanded(false);
2083
+ }
2084
+ if (this.animation) {
2085
+ this.animationEnd.pipe(take(1))
2086
+ .subscribe(() => { this.onAnimationEnd(current); });
2087
+ this.playAnimation(current);
2088
+ }
2089
+ else {
2090
+ this[current ? 'expand' : 'collapse'].emit();
2091
+ }
2010
2092
  }
2011
2093
  /**
2012
2094
  * @hidden
@@ -2094,152 +2176,188 @@ class ActionSheetComponent {
2094
2176
  }
2095
2177
  this.itemClick.emit({ item, originalEvent: event });
2096
2178
  }
2179
+ setExpanded(value) {
2180
+ this.expanded = value;
2181
+ this.expandedChange.emit(value);
2182
+ if (this.expanded) {
2183
+ this.cdr.detectChanges();
2184
+ this.handleInitialFocus();
2185
+ }
2186
+ }
2187
+ onAnimationEnd(currentExpanded) {
2188
+ if (currentExpanded) {
2189
+ this.expand.emit();
2190
+ }
2191
+ else {
2192
+ this.setExpanded(false);
2193
+ this.collapse.emit();
2194
+ }
2195
+ }
2196
+ playAnimation(expanded) {
2197
+ const duration = typeof this.animation !== 'boolean' && this.animation.duration ? this.animation.duration : DEFAULT_ANIMATION_CONFIG.duration;
2198
+ const contentHeight = getComputedStyle(this.childContainer.nativeElement).height;
2199
+ const animation = expanded ? slideUp(duration, contentHeight) : slideDown(duration, contentHeight);
2200
+ const factory = this.builder.build(animation);
2201
+ this.player = factory.create(this.childContainer.nativeElement);
2202
+ this.player.onDone(() => {
2203
+ if (this.player) {
2204
+ this.animationEnd.emit();
2205
+ this.player.destroy();
2206
+ this.player = null;
2207
+ }
2208
+ });
2209
+ this.player.play();
2210
+ }
2097
2211
  }
2098
- 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 });
2099
- 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: [
2212
+ 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 });
2213
+ 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: [
2100
2214
  LocalizationService,
2101
2215
  {
2102
2216
  provide: L10N_PREFIX,
2103
2217
  useValue: 'kendo.actionsheet.component'
2104
2218
  }
2105
- ], 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: `
2106
- <div class="k-overlay" (click)="onOverlayClick()"></div>
2107
- <div class="k-animation-container">
2108
- <div class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2109
- <div class="k-actionsheet k-actionsheet-bottom"
2110
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2111
- [ngClass]="cssClass"
2112
- role="dialog"
2113
- aria-modal="true"
2114
- [attr.aria-labelledby]="titleId">
2219
+ ], 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: `
2220
+ <ng-container *ngIf="expanded">
2221
+ <div class="k-overlay" (click)="onOverlayClick()"></div>
2222
+ <div class="k-animation-container">
2223
+ <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2224
+ <div class="k-actionsheet k-actionsheet-bottom"
2225
+ [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2226
+ [ngClass]="cssClass"
2227
+ role="dialog"
2228
+ aria-modal="true"
2229
+ [attr.aria-labelledby]="titleId">
2115
2230
 
2116
- <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2117
- [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2118
- </ng-template>
2231
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2232
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2233
+ </ng-template>
2119
2234
 
2120
- <ng-template #defaultTemplate>
2121
- <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2122
- <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2123
- [ngTemplateOutlet]="headerTemplate?.templateRef">
2124
- </ng-template>
2235
+ <ng-template #defaultTemplate>
2236
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2237
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2238
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
2239
+ </ng-template>
2125
2240
 
2126
- <ng-template #defaultHeaderTemplate>
2127
- <div class="k-actionsheet-titlebar-group k-hbox">
2128
- <div class="k-actionsheet-title" [id]="titleId">
2129
- <div *ngIf="title" class="k-text-center">{{title}}</div>
2130
- <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2241
+ <ng-template #defaultHeaderTemplate>
2242
+ <div class="k-actionsheet-titlebar-group k-hbox">
2243
+ <div class="k-actionsheet-title" [id]="titleId">
2244
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
2245
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2246
+ </div>
2131
2247
  </div>
2132
- </div>
2133
- </ng-template>
2134
- </div>
2248
+ </ng-template>
2249
+ </div>
2135
2250
 
2136
- <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2137
- <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2138
- [ngTemplateOutlet]="contentTemplate?.templateRef">
2139
- </ng-template>
2140
- <ng-template #defaultContentTemplate>
2141
- <div *ngIf="topGroupItems" kendoActionSheetList
2142
- class="k-list-ul"
2143
- role="group"
2144
- [groupItems]="topGroupItems"
2145
- [allItems]="items"
2146
- [itemTemplate]="itemTemplate?.templateRef"
2147
- (itemClick)="onItemClick($event)">
2148
- </div>
2149
-
2150
- <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2151
-
2152
- <div *ngIf="bottomGroupItems" kendoActionSheetList
2153
- class="k-list-ul"
2154
- role="group"
2155
- [groupItems]="bottomGroupItems"
2156
- [allItems]="items"
2157
- [itemTemplate]="itemTemplate?.templateRef"
2158
- (itemClick)="onItemClick($event)">
2159
- </div>
2160
- </ng-template>
2161
- </div>
2162
- <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2163
- <ng-template
2164
- [ngTemplateOutlet]="footerTemplate?.templateRef">
2165
- </ng-template>
2166
- </div>
2167
- </ng-template>
2251
+ <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2252
+ <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2253
+ [ngTemplateOutlet]="contentTemplate?.templateRef">
2254
+ </ng-template>
2255
+ <ng-template #defaultContentTemplate>
2256
+ <div *ngIf="topGroupItems" kendoActionSheetList
2257
+ class="k-list-ul"
2258
+ role="group"
2259
+ [groupItems]="topGroupItems"
2260
+ [allItems]="items"
2261
+ [itemTemplate]="itemTemplate?.templateRef"
2262
+ (itemClick)="onItemClick($event)">
2263
+ </div>
2264
+
2265
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2266
+
2267
+ <div *ngIf="bottomGroupItems" kendoActionSheetList
2268
+ class="k-list-ul"
2269
+ role="group"
2270
+ [groupItems]="bottomGroupItems"
2271
+ [allItems]="items"
2272
+ [itemTemplate]="itemTemplate?.templateRef"
2273
+ (itemClick)="onItemClick($event)">
2274
+ </div>
2275
+ </ng-template>
2276
+ </div>
2277
+ <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2278
+ <ng-template
2279
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
2280
+ </ng-template>
2281
+ </div>
2282
+ </ng-template>
2283
+ </div>
2168
2284
  </div>
2169
2285
  </div>
2170
- </div>
2171
- `, 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"] }] });
2286
+ </ng-container>
2287
+ `, 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"] }] });
2172
2288
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, decorators: [{
2173
2289
  type: Component,
2174
2290
  args: [{
2175
2291
  exportAs: 'kendoActionSheet',
2176
2292
  selector: 'kendo-actionsheet',
2177
2293
  template: `
2178
- <div class="k-overlay" (click)="onOverlayClick()"></div>
2179
- <div class="k-animation-container">
2180
- <div class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2181
- <div class="k-actionsheet k-actionsheet-bottom"
2182
- [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2183
- [ngClass]="cssClass"
2184
- role="dialog"
2185
- aria-modal="true"
2186
- [attr.aria-labelledby]="titleId">
2294
+ <ng-container *ngIf="expanded">
2295
+ <div class="k-overlay" (click)="onOverlayClick()"></div>
2296
+ <div class="k-animation-container">
2297
+ <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
2298
+ <div class="k-actionsheet k-actionsheet-bottom"
2299
+ [style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
2300
+ [ngClass]="cssClass"
2301
+ role="dialog"
2302
+ aria-modal="true"
2303
+ [attr.aria-labelledby]="titleId">
2187
2304
 
2188
- <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2189
- [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2190
- </ng-template>
2305
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
2306
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
2307
+ </ng-template>
2191
2308
 
2192
- <ng-template #defaultTemplate>
2193
- <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2194
- <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2195
- [ngTemplateOutlet]="headerTemplate?.templateRef">
2196
- </ng-template>
2309
+ <ng-template #defaultTemplate>
2310
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
2311
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
2312
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
2313
+ </ng-template>
2197
2314
 
2198
- <ng-template #defaultHeaderTemplate>
2199
- <div class="k-actionsheet-titlebar-group k-hbox">
2200
- <div class="k-actionsheet-title" [id]="titleId">
2201
- <div *ngIf="title" class="k-text-center">{{title}}</div>
2202
- <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2315
+ <ng-template #defaultHeaderTemplate>
2316
+ <div class="k-actionsheet-titlebar-group k-hbox">
2317
+ <div class="k-actionsheet-title" [id]="titleId">
2318
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
2319
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
2320
+ </div>
2203
2321
  </div>
2204
- </div>
2205
- </ng-template>
2206
- </div>
2322
+ </ng-template>
2323
+ </div>
2207
2324
 
2208
- <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2209
- <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2210
- [ngTemplateOutlet]="contentTemplate?.templateRef">
2211
- </ng-template>
2212
- <ng-template #defaultContentTemplate>
2213
- <div *ngIf="topGroupItems" kendoActionSheetList
2214
- class="k-list-ul"
2215
- role="group"
2216
- [groupItems]="topGroupItems"
2217
- [allItems]="items"
2218
- [itemTemplate]="itemTemplate?.templateRef"
2219
- (itemClick)="onItemClick($event)">
2220
- </div>
2221
-
2222
- <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2223
-
2224
- <div *ngIf="bottomGroupItems" kendoActionSheetList
2225
- class="k-list-ul"
2226
- role="group"
2227
- [groupItems]="bottomGroupItems"
2228
- [allItems]="items"
2229
- [itemTemplate]="itemTemplate?.templateRef"
2230
- (itemClick)="onItemClick($event)">
2231
- </div>
2232
- </ng-template>
2233
- </div>
2234
- <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2235
- <ng-template
2236
- [ngTemplateOutlet]="footerTemplate?.templateRef">
2237
- </ng-template>
2238
- </div>
2239
- </ng-template>
2325
+ <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
2326
+ <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
2327
+ [ngTemplateOutlet]="contentTemplate?.templateRef">
2328
+ </ng-template>
2329
+ <ng-template #defaultContentTemplate>
2330
+ <div *ngIf="topGroupItems" kendoActionSheetList
2331
+ class="k-list-ul"
2332
+ role="group"
2333
+ [groupItems]="topGroupItems"
2334
+ [allItems]="items"
2335
+ [itemTemplate]="itemTemplate?.templateRef"
2336
+ (itemClick)="onItemClick($event)">
2337
+ </div>
2338
+
2339
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
2340
+
2341
+ <div *ngIf="bottomGroupItems" kendoActionSheetList
2342
+ class="k-list-ul"
2343
+ role="group"
2344
+ [groupItems]="bottomGroupItems"
2345
+ [allItems]="items"
2346
+ [itemTemplate]="itemTemplate?.templateRef"
2347
+ (itemClick)="onItemClick($event)">
2348
+ </div>
2349
+ </ng-template>
2350
+ </div>
2351
+ <div *ngIf="footerTemplate" class="k-actionsheet-footer">
2352
+ <ng-template
2353
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
2354
+ </ng-template>
2355
+ </div>
2356
+ </ng-template>
2357
+ </div>
2240
2358
  </div>
2241
2359
  </div>
2242
- </div>
2360
+ </ng-container>
2243
2361
  `,
2244
2362
  providers: [
2245
2363
  LocalizationService,
@@ -2249,7 +2367,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2249
2367
  }
2250
2368
  ]
2251
2369
  }]
2252
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
2370
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i2$1.AnimationBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
2253
2371
  type: HostBinding,
2254
2372
  args: ['class.k-actionsheet-container']
2255
2373
  }], direction: [{
@@ -2263,10 +2381,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2263
2381
  type: Input
2264
2382
  }], cssClass: [{
2265
2383
  type: Input
2384
+ }], animation: [{
2385
+ type: Input
2386
+ }], expanded: [{
2387
+ type: Input
2388
+ }], expandedChange: [{
2389
+ type: Output
2390
+ }], expand: [{
2391
+ type: Output
2392
+ }], collapse: [{
2393
+ type: Output
2266
2394
  }], itemClick: [{
2267
2395
  type: Output
2268
2396
  }], overlayClick: [{
2269
2397
  type: Output
2398
+ }], childContainer: [{
2399
+ type: ViewChild,
2400
+ args: ['childContainer']
2270
2401
  }], actionSheetTemplate: [{
2271
2402
  type: ContentChild,
2272
2403
  args: [ActionSheetTemplateDirective]
package/index.d.ts CHANGED
@@ -27,5 +27,5 @@ export { BottomNavigationModule } from './bottomnavigation.module';
27
27
  export { BreadCrumbItemComponent } from './breadcrumb/breadcrumb-item.component';
28
28
  export { BreadCrumbListComponent } from './breadcrumb/list.component';
29
29
  export { ActionSheetComponent } from './actionsheet/actionsheet.component';
30
- export { ActionSheetItem, ActionSheetItemGroup, ActionSheetItemClickEvent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective } from './actionsheet/models';
30
+ export { ActionSheetItem, ActionSheetItemGroup, ActionSheetItemClickEvent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetAnimation, ActionSheetTemplateDirective } from './actionsheet/models';
31
31
  export { ActionSheetModule } from './actionsheet.module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-navigation",
3
- "version": "11.2.0-develop.1",
3
+ "version": "11.2.0-develop.10",
4
4
  "description": "Kendo UI Navigation for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -21,14 +21,14 @@
21
21
  "@angular/core": "13 - 15",
22
22
  "@angular/platform-browser": "13 - 15",
23
23
  "@progress/kendo-licensing": "^1.0.2",
24
- "@progress/kendo-angular-common": "11.2.0-develop.1",
25
- "@progress/kendo-angular-icons": "11.2.0-develop.1",
26
- "@progress/kendo-angular-l10n": "11.2.0-develop.1",
24
+ "@progress/kendo-angular-common": "11.2.0-develop.10",
25
+ "@progress/kendo-angular-icons": "11.2.0-develop.10",
26
+ "@progress/kendo-angular-l10n": "11.2.0-develop.10",
27
27
  "rxjs": "^6.5.3 || ^7.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.3.1",
31
- "@progress/kendo-angular-schematics": "11.2.0-develop.1"
31
+ "@progress/kendo-angular-schematics": "11.2.0-develop.10"
32
32
  },
33
33
  "schematics": "./schematics/collection.json",
34
34
  "module": "fesm2015/progress-kendo-angular-navigation.mjs",