@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.
- package/actionsheet/actionsheet.component.d.ts +49 -6
- package/actionsheet/animation/animations.d.ts +13 -0
- package/actionsheet/models/animation.d.ts +13 -0
- package/actionsheet/models/index.d.ts +1 -0
- package/esm2020/actionsheet/actionsheet.component.mjs +241 -128
- package/esm2020/actionsheet/animation/animations.mjs +23 -0
- package/esm2020/actionsheet/models/animation.mjs +5 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-navigation.mjs +258 -128
- package/fesm2020/progress-kendo-angular-navigation.mjs +258 -128
- package/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -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:
|
|
28
|
-
version: '11.2.0-develop.
|
|
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
|
|
|
@@ -1788,6 +1790,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1788
1790
|
type: Optional
|
|
1789
1791
|
}] }]; } });
|
|
1790
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
* @hidden
|
|
1795
|
+
*/
|
|
1796
|
+
function slideUp(duration, height) {
|
|
1797
|
+
return [
|
|
1798
|
+
style({ overflow: 'hidden', display: 'block', height: 0 }),
|
|
1799
|
+
animate(`${duration}ms ease-in`, style({ height: `${height}` }))
|
|
1800
|
+
];
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* @hidden
|
|
1804
|
+
*/
|
|
1805
|
+
function slideDown(duration, height) {
|
|
1806
|
+
return [
|
|
1807
|
+
style({ overflow: 'hidden', height: `${height}` }),
|
|
1808
|
+
animate(`${duration}ms ease-in`, style({ overflow: 'hidden', height: 0 }))
|
|
1809
|
+
];
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1791
1812
|
/**
|
|
1792
1813
|
* @hidden
|
|
1793
1814
|
*/
|
|
@@ -1963,20 +1984,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1963
1984
|
type: Output
|
|
1964
1985
|
}] } });
|
|
1965
1986
|
|
|
1987
|
+
const DEFAULT_ANIMATION_CONFIG = { duration: 300 };
|
|
1966
1988
|
/**
|
|
1967
1989
|
* Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
|
|
1968
1990
|
* Used to display a set of choices related to a task the user initiates.
|
|
1969
1991
|
*/
|
|
1970
1992
|
class ActionSheetComponent {
|
|
1971
|
-
constructor(element, ngZone, renderer, localizationService) {
|
|
1993
|
+
constructor(element, ngZone, renderer, localizationService, builder, cdr) {
|
|
1972
1994
|
this.element = element;
|
|
1973
1995
|
this.ngZone = ngZone;
|
|
1974
1996
|
this.renderer = renderer;
|
|
1975
1997
|
this.localizationService = localizationService;
|
|
1998
|
+
this.builder = builder;
|
|
1999
|
+
this.cdr = cdr;
|
|
1976
2000
|
/**
|
|
1977
|
-
*
|
|
2001
|
+
* Configures the ActionSheet opening and closing animations ([see example]({% slug animations_actionsheet %})).
|
|
2002
|
+
* By default the animations are turned off. The default animations' duration is `300ms`.
|
|
2003
|
+
*
|
|
2004
|
+
* @default true
|
|
1978
2005
|
*/
|
|
1979
|
-
this.
|
|
2006
|
+
this.animation = true;
|
|
2007
|
+
/**
|
|
2008
|
+
* Specifies the state of the ActionSheet.
|
|
2009
|
+
*
|
|
2010
|
+
* @default false
|
|
2011
|
+
*/
|
|
2012
|
+
this.expanded = false;
|
|
2013
|
+
/**
|
|
2014
|
+
* Fires when the `expanded` property of the component is updated.
|
|
2015
|
+
* Used to provide a two-way binding for the `expanded` property.
|
|
2016
|
+
*/
|
|
2017
|
+
this.expandedChange = new EventEmitter();
|
|
2018
|
+
/**
|
|
2019
|
+
* Fires when the ActionSheet is expanded and its animation is complete.
|
|
2020
|
+
*/
|
|
2021
|
+
this.expand = new EventEmitter();
|
|
2022
|
+
/**
|
|
2023
|
+
* Fires when the ActionSheet is collapsed and its animation is complete.
|
|
2024
|
+
*/
|
|
2025
|
+
this.collapse = new EventEmitter();
|
|
1980
2026
|
/**
|
|
1981
2027
|
* Fires when an ActionSheet item is clicked.
|
|
1982
2028
|
*/
|
|
@@ -1991,6 +2037,7 @@ class ActionSheetComponent {
|
|
|
1991
2037
|
this.titleId = null;
|
|
1992
2038
|
this.rtl = false;
|
|
1993
2039
|
this.domSubs = new Subscription();
|
|
2040
|
+
this.animationEnd = new EventEmitter();
|
|
1994
2041
|
validatePackage(packageMetadata);
|
|
1995
2042
|
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
1996
2043
|
this.rtl = rtl;
|
|
@@ -1998,15 +2045,49 @@ class ActionSheetComponent {
|
|
|
1998
2045
|
});
|
|
1999
2046
|
this.titleId = getId('k-actionsheet-title');
|
|
2000
2047
|
}
|
|
2048
|
+
/**
|
|
2049
|
+
* @hidden
|
|
2050
|
+
*/
|
|
2051
|
+
get hostClass() {
|
|
2052
|
+
return this.expanded;
|
|
2053
|
+
}
|
|
2054
|
+
;
|
|
2001
2055
|
ngAfterViewInit() {
|
|
2002
|
-
this.handleInitialFocus();
|
|
2003
2056
|
this.initDomEvents();
|
|
2004
2057
|
}
|
|
2058
|
+
ngOnChanges(changes) {
|
|
2059
|
+
if (changes['expanded'] && this.expanded) {
|
|
2060
|
+
this.setExpanded(true);
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2005
2063
|
ngOnDestroy() {
|
|
2006
2064
|
this.domSubs.unsubscribe();
|
|
2007
2065
|
if (this.dynamicRTLSubscription) {
|
|
2008
2066
|
this.dynamicRTLSubscription.unsubscribe();
|
|
2009
2067
|
}
|
|
2068
|
+
if (this.player) {
|
|
2069
|
+
this.player.destroy();
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Toggles the visibility of the ActionSheet.
|
|
2074
|
+
*/
|
|
2075
|
+
toggle() {
|
|
2076
|
+
const current = !this.expanded;
|
|
2077
|
+
if (current === true) {
|
|
2078
|
+
this.setExpanded(true);
|
|
2079
|
+
}
|
|
2080
|
+
else if (current === false && !this.animation) {
|
|
2081
|
+
this.setExpanded(false);
|
|
2082
|
+
}
|
|
2083
|
+
if (this.animation) {
|
|
2084
|
+
this.animationEnd.pipe(take(1))
|
|
2085
|
+
.subscribe(() => { this.onAnimationEnd(current); });
|
|
2086
|
+
this.playAnimation(current);
|
|
2087
|
+
}
|
|
2088
|
+
else {
|
|
2089
|
+
this[current ? 'expand' : 'collapse'].emit();
|
|
2090
|
+
}
|
|
2010
2091
|
}
|
|
2011
2092
|
/**
|
|
2012
2093
|
* @hidden
|
|
@@ -2094,152 +2175,188 @@ class ActionSheetComponent {
|
|
|
2094
2175
|
}
|
|
2095
2176
|
this.itemClick.emit({ item, originalEvent: event });
|
|
2096
2177
|
}
|
|
2178
|
+
setExpanded(value) {
|
|
2179
|
+
this.expanded = value;
|
|
2180
|
+
this.expandedChange.emit(value);
|
|
2181
|
+
if (this.expanded) {
|
|
2182
|
+
this.cdr.detectChanges();
|
|
2183
|
+
this.handleInitialFocus();
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
onAnimationEnd(currentExpanded) {
|
|
2187
|
+
if (currentExpanded) {
|
|
2188
|
+
this.expand.emit();
|
|
2189
|
+
}
|
|
2190
|
+
else {
|
|
2191
|
+
this.setExpanded(false);
|
|
2192
|
+
this.collapse.emit();
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
playAnimation(expanded) {
|
|
2196
|
+
const duration = typeof this.animation !== 'boolean' && this.animation.duration ? this.animation.duration : DEFAULT_ANIMATION_CONFIG.duration;
|
|
2197
|
+
const contentHeight = getComputedStyle(this.childContainer.nativeElement).height;
|
|
2198
|
+
const animation = expanded ? slideUp(duration, contentHeight) : slideDown(duration, contentHeight);
|
|
2199
|
+
const factory = this.builder.build(animation);
|
|
2200
|
+
this.player = factory.create(this.childContainer.nativeElement);
|
|
2201
|
+
this.player.onDone(() => {
|
|
2202
|
+
if (this.player) {
|
|
2203
|
+
this.animationEnd.emit();
|
|
2204
|
+
this.player.destroy();
|
|
2205
|
+
this.player = null;
|
|
2206
|
+
}
|
|
2207
|
+
});
|
|
2208
|
+
this.player.play();
|
|
2209
|
+
}
|
|
2097
2210
|
}
|
|
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: [
|
|
2211
|
+
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 });
|
|
2212
|
+
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
2213
|
LocalizationService,
|
|
2101
2214
|
{
|
|
2102
2215
|
provide: L10N_PREFIX,
|
|
2103
2216
|
useValue: 'kendo.actionsheet.component'
|
|
2104
2217
|
}
|
|
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
|
-
<
|
|
2107
|
-
|
|
2108
|
-
<div class="k-
|
|
2109
|
-
<div class="k-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2218
|
+
], 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: `
|
|
2219
|
+
<ng-container *ngIf="expanded">
|
|
2220
|
+
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
2221
|
+
<div class="k-animation-container">
|
|
2222
|
+
<div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
|
|
2223
|
+
<div class="k-actionsheet k-actionsheet-bottom"
|
|
2224
|
+
[style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
|
|
2225
|
+
[ngClass]="cssClass"
|
|
2226
|
+
role="dialog"
|
|
2227
|
+
aria-modal="true"
|
|
2228
|
+
[attr.aria-labelledby]="titleId">
|
|
2115
2229
|
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2230
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2231
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2232
|
+
</ng-template>
|
|
2119
2233
|
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2234
|
+
<ng-template #defaultTemplate>
|
|
2235
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2236
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2237
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2238
|
+
</ng-template>
|
|
2125
2239
|
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2240
|
+
<ng-template #defaultHeaderTemplate>
|
|
2241
|
+
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2242
|
+
<div class="k-actionsheet-title" [id]="titleId">
|
|
2243
|
+
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
2244
|
+
<div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
|
|
2245
|
+
</div>
|
|
2131
2246
|
</div>
|
|
2132
|
-
</
|
|
2133
|
-
</
|
|
2134
|
-
</div>
|
|
2247
|
+
</ng-template>
|
|
2248
|
+
</div>
|
|
2135
2249
|
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2250
|
+
<div *ngIf="items || contentTemplate" class="k-actionsheet-content">
|
|
2251
|
+
<ng-template *ngIf="contentTemplate; else defaultContentTemplate"
|
|
2252
|
+
[ngTemplateOutlet]="contentTemplate?.templateRef">
|
|
2253
|
+
</ng-template>
|
|
2254
|
+
<ng-template #defaultContentTemplate>
|
|
2255
|
+
<div *ngIf="topGroupItems" kendoActionSheetList
|
|
2256
|
+
class="k-list-ul"
|
|
2257
|
+
role="group"
|
|
2258
|
+
[groupItems]="topGroupItems"
|
|
2259
|
+
[allItems]="items"
|
|
2260
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2261
|
+
(itemClick)="onItemClick($event)">
|
|
2262
|
+
</div>
|
|
2263
|
+
|
|
2264
|
+
<hr *ngIf="shouldRenderSeparator" class="k-hr"/>
|
|
2265
|
+
|
|
2266
|
+
<div *ngIf="bottomGroupItems" kendoActionSheetList
|
|
2267
|
+
class="k-list-ul"
|
|
2268
|
+
role="group"
|
|
2269
|
+
[groupItems]="bottomGroupItems"
|
|
2270
|
+
[allItems]="items"
|
|
2271
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2272
|
+
(itemClick)="onItemClick($event)">
|
|
2273
|
+
</div>
|
|
2274
|
+
</ng-template>
|
|
2275
|
+
</div>
|
|
2276
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2277
|
+
<ng-template
|
|
2278
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2279
|
+
</ng-template>
|
|
2280
|
+
</div>
|
|
2281
|
+
</ng-template>
|
|
2282
|
+
</div>
|
|
2168
2283
|
</div>
|
|
2169
2284
|
</div>
|
|
2170
|
-
</
|
|
2171
|
-
`, isInline: true, components: [{ type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }], directives: [{ type: i2.
|
|
2285
|
+
</ng-container>
|
|
2286
|
+
`, 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
2287
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, decorators: [{
|
|
2173
2288
|
type: Component,
|
|
2174
2289
|
args: [{
|
|
2175
2290
|
exportAs: 'kendoActionSheet',
|
|
2176
2291
|
selector: 'kendo-actionsheet',
|
|
2177
2292
|
template: `
|
|
2178
|
-
<
|
|
2179
|
-
|
|
2180
|
-
<div class="k-
|
|
2181
|
-
<div class="k-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2293
|
+
<ng-container *ngIf="expanded">
|
|
2294
|
+
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
2295
|
+
<div class="k-animation-container">
|
|
2296
|
+
<div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
|
|
2297
|
+
<div class="k-actionsheet k-actionsheet-bottom"
|
|
2298
|
+
[style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
|
|
2299
|
+
[ngClass]="cssClass"
|
|
2300
|
+
role="dialog"
|
|
2301
|
+
aria-modal="true"
|
|
2302
|
+
[attr.aria-labelledby]="titleId">
|
|
2187
2303
|
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2304
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2305
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2306
|
+
</ng-template>
|
|
2191
2307
|
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2308
|
+
<ng-template #defaultTemplate>
|
|
2309
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2310
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2311
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2312
|
+
</ng-template>
|
|
2197
2313
|
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2314
|
+
<ng-template #defaultHeaderTemplate>
|
|
2315
|
+
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2316
|
+
<div class="k-actionsheet-title" [id]="titleId">
|
|
2317
|
+
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
2318
|
+
<div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
|
|
2319
|
+
</div>
|
|
2203
2320
|
</div>
|
|
2204
|
-
</
|
|
2205
|
-
</
|
|
2206
|
-
</div>
|
|
2321
|
+
</ng-template>
|
|
2322
|
+
</div>
|
|
2207
2323
|
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2324
|
+
<div *ngIf="items || contentTemplate" class="k-actionsheet-content">
|
|
2325
|
+
<ng-template *ngIf="contentTemplate; else defaultContentTemplate"
|
|
2326
|
+
[ngTemplateOutlet]="contentTemplate?.templateRef">
|
|
2327
|
+
</ng-template>
|
|
2328
|
+
<ng-template #defaultContentTemplate>
|
|
2329
|
+
<div *ngIf="topGroupItems" kendoActionSheetList
|
|
2330
|
+
class="k-list-ul"
|
|
2331
|
+
role="group"
|
|
2332
|
+
[groupItems]="topGroupItems"
|
|
2333
|
+
[allItems]="items"
|
|
2334
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2335
|
+
(itemClick)="onItemClick($event)">
|
|
2336
|
+
</div>
|
|
2337
|
+
|
|
2338
|
+
<hr *ngIf="shouldRenderSeparator" class="k-hr"/>
|
|
2339
|
+
|
|
2340
|
+
<div *ngIf="bottomGroupItems" kendoActionSheetList
|
|
2341
|
+
class="k-list-ul"
|
|
2342
|
+
role="group"
|
|
2343
|
+
[groupItems]="bottomGroupItems"
|
|
2344
|
+
[allItems]="items"
|
|
2345
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2346
|
+
(itemClick)="onItemClick($event)">
|
|
2347
|
+
</div>
|
|
2348
|
+
</ng-template>
|
|
2349
|
+
</div>
|
|
2350
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2351
|
+
<ng-template
|
|
2352
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2353
|
+
</ng-template>
|
|
2354
|
+
</div>
|
|
2355
|
+
</ng-template>
|
|
2356
|
+
</div>
|
|
2240
2357
|
</div>
|
|
2241
2358
|
</div>
|
|
2242
|
-
</
|
|
2359
|
+
</ng-container>
|
|
2243
2360
|
`,
|
|
2244
2361
|
providers: [
|
|
2245
2362
|
LocalizationService,
|
|
@@ -2249,7 +2366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2249
2366
|
}
|
|
2250
2367
|
]
|
|
2251
2368
|
}]
|
|
2252
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
|
|
2369
|
+
}], 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
2370
|
type: HostBinding,
|
|
2254
2371
|
args: ['class.k-actionsheet-container']
|
|
2255
2372
|
}], direction: [{
|
|
@@ -2263,10 +2380,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2263
2380
|
type: Input
|
|
2264
2381
|
}], cssClass: [{
|
|
2265
2382
|
type: Input
|
|
2383
|
+
}], animation: [{
|
|
2384
|
+
type: Input
|
|
2385
|
+
}], expanded: [{
|
|
2386
|
+
type: Input
|
|
2387
|
+
}], expandedChange: [{
|
|
2388
|
+
type: Output
|
|
2389
|
+
}], expand: [{
|
|
2390
|
+
type: Output
|
|
2391
|
+
}], collapse: [{
|
|
2392
|
+
type: Output
|
|
2266
2393
|
}], itemClick: [{
|
|
2267
2394
|
type: Output
|
|
2268
2395
|
}], overlayClick: [{
|
|
2269
2396
|
type: Output
|
|
2397
|
+
}], childContainer: [{
|
|
2398
|
+
type: ViewChild,
|
|
2399
|
+
args: ['childContainer']
|
|
2270
2400
|
}], actionSheetTemplate: [{
|
|
2271
2401
|
type: ContentChild,
|
|
2272
2402
|
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.
|
|
3
|
+
"version": "11.2.0-develop.3",
|
|
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.
|
|
25
|
-
"@progress/kendo-angular-icons": "11.2.0-develop.
|
|
26
|
-
"@progress/kendo-angular-l10n": "11.2.0-develop.
|
|
24
|
+
"@progress/kendo-angular-common": "11.2.0-develop.3",
|
|
25
|
+
"@progress/kendo-angular-icons": "11.2.0-develop.3",
|
|
26
|
+
"@progress/kendo-angular-l10n": "11.2.0-develop.3",
|
|
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.
|
|
31
|
+
"@progress/kendo-angular-schematics": "11.2.0-develop.3"
|
|
32
32
|
},
|
|
33
33
|
"schematics": "./schematics/collection.json",
|
|
34
34
|
"module": "fesm2015/progress-kendo-angular-navigation.mjs",
|