@progress/kendo-angular-navigation 11.2.0-develop.1 → 11.2.0-develop.11
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/breadcrumb/breadcrumb.component.d.ts +2 -2
- 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/bottomnavigation/bottomnavigation-item.component.mjs +4 -1
- package/esm2020/breadcrumb/breadcrumb.component.mjs +7 -9
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-navigation.mjs +269 -138
- package/fesm2020/progress-kendo-angular-navigation.mjs +269 -138
- 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: 1675863059,
|
|
30
|
+
version: '11.2.0-develop.11',
|
|
29
31
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
30
32
|
};
|
|
31
33
|
|
|
@@ -809,6 +811,7 @@ const collapseFirst = toggleFirst(false);
|
|
|
809
811
|
*/
|
|
810
812
|
const expandFirst = toggleFirst(true);
|
|
811
813
|
|
|
814
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
812
815
|
/**
|
|
813
816
|
* Represents the [Kendo UI Breadcrumb component for Angular]({% slug overview_breadcrumb %}).
|
|
814
817
|
*
|
|
@@ -839,11 +842,11 @@ const expandFirst = toggleFirst(true);
|
|
|
839
842
|
* ```
|
|
840
843
|
*/
|
|
841
844
|
class BreadCrumbComponent {
|
|
842
|
-
constructor(el, cdr, zone
|
|
845
|
+
constructor(localization, el, cdr, zone) {
|
|
846
|
+
this.localization = localization;
|
|
843
847
|
this.el = el;
|
|
844
848
|
this.cdr = cdr;
|
|
845
849
|
this.zone = zone;
|
|
846
|
-
this.localization = localization;
|
|
847
850
|
/**
|
|
848
851
|
* Fires when a Breadcrumb item is clicked. The event will not be fired by disabled items and the last item.
|
|
849
852
|
*/
|
|
@@ -975,8 +978,8 @@ class BreadCrumbComponent {
|
|
|
975
978
|
}));
|
|
976
979
|
}
|
|
977
980
|
}
|
|
978
|
-
BreadCrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BreadCrumbComponent, deps: [{ token:
|
|
979
|
-
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-
|
|
981
|
+
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 });
|
|
982
|
+
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: [
|
|
980
983
|
LocalizationService,
|
|
981
984
|
{
|
|
982
985
|
provide: L10N_PREFIX,
|
|
@@ -1049,7 +1052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1049
1052
|
<kendo-resize-sensor [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>
|
|
1050
1053
|
`
|
|
1051
1054
|
}]
|
|
1052
|
-
}], ctorParameters: function () { return [{ type:
|
|
1055
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { items: [{
|
|
1053
1056
|
type: Input
|
|
1054
1057
|
}], separatorIcon: [{
|
|
1055
1058
|
type: Input
|
|
@@ -1070,11 +1073,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1070
1073
|
args: [BreadCrumbListComponent, { static: true }]
|
|
1071
1074
|
}], itemTemplate: [{
|
|
1072
1075
|
type: ContentChild,
|
|
1073
|
-
args: [BreadCrumbItemTemplateDirective
|
|
1076
|
+
args: [BreadCrumbItemTemplateDirective]
|
|
1074
1077
|
}], hostClasses: [{
|
|
1075
|
-
type: HostBinding,
|
|
1076
|
-
args: ['class.k-widget']
|
|
1077
|
-
}, {
|
|
1078
1078
|
type: HostBinding,
|
|
1079
1079
|
args: ['class.k-breadcrumb']
|
|
1080
1080
|
}], wrapMode: [{
|
|
@@ -1179,7 +1179,7 @@ class BottomNavigationItemComponent {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
1181
|
BottomNavigationItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BottomNavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1182
|
-
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: `
|
|
1182
|
+
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: `
|
|
1183
1183
|
<ng-container *ngIf="!itemTemplate">
|
|
1184
1184
|
<kendo-icon-wrapper *ngIf="itemIcon"
|
|
1185
1185
|
class="k-bottom-nav-item-icon"
|
|
@@ -1250,6 +1250,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1250
1250
|
}], selectedClass: [{
|
|
1251
1251
|
type: HostBinding,
|
|
1252
1252
|
args: ['attr.aria-selected']
|
|
1253
|
+
}, {
|
|
1254
|
+
type: HostBinding,
|
|
1255
|
+
args: ['attr.aria-current']
|
|
1253
1256
|
}, {
|
|
1254
1257
|
type: HostBinding,
|
|
1255
1258
|
args: ['class.k-selected']
|
|
@@ -1802,6 +1805,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1802
1805
|
}] }];
|
|
1803
1806
|
} });
|
|
1804
1807
|
|
|
1808
|
+
/**
|
|
1809
|
+
* @hidden
|
|
1810
|
+
*/
|
|
1811
|
+
function slideUp(duration, height) {
|
|
1812
|
+
return [
|
|
1813
|
+
style({ overflow: 'hidden', display: 'block', height: 0 }),
|
|
1814
|
+
animate(`${duration}ms ease-in`, style({ height: `${height}` }))
|
|
1815
|
+
];
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* @hidden
|
|
1819
|
+
*/
|
|
1820
|
+
function slideDown(duration, height) {
|
|
1821
|
+
return [
|
|
1822
|
+
style({ overflow: 'hidden', height: `${height}` }),
|
|
1823
|
+
animate(`${duration}ms ease-in`, style({ overflow: 'hidden', height: 0 }))
|
|
1824
|
+
];
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1805
1827
|
/**
|
|
1806
1828
|
* @hidden
|
|
1807
1829
|
*/
|
|
@@ -1977,20 +1999,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1977
1999
|
type: Output
|
|
1978
2000
|
}] } });
|
|
1979
2001
|
|
|
2002
|
+
const DEFAULT_ANIMATION_CONFIG = { duration: 300 };
|
|
1980
2003
|
/**
|
|
1981
2004
|
* Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
|
|
1982
2005
|
* Used to display a set of choices related to a task the user initiates.
|
|
1983
2006
|
*/
|
|
1984
2007
|
class ActionSheetComponent {
|
|
1985
|
-
constructor(element, ngZone, renderer, localizationService) {
|
|
2008
|
+
constructor(element, ngZone, renderer, localizationService, builder, cdr) {
|
|
1986
2009
|
this.element = element;
|
|
1987
2010
|
this.ngZone = ngZone;
|
|
1988
2011
|
this.renderer = renderer;
|
|
1989
2012
|
this.localizationService = localizationService;
|
|
2013
|
+
this.builder = builder;
|
|
2014
|
+
this.cdr = cdr;
|
|
1990
2015
|
/**
|
|
1991
|
-
*
|
|
2016
|
+
* Configures the ActionSheet opening and closing animations ([see example]({% slug animations_actionsheet %})).
|
|
2017
|
+
* By default the animations are turned off. The default animations' duration is `300ms`.
|
|
2018
|
+
*
|
|
2019
|
+
* @default true
|
|
1992
2020
|
*/
|
|
1993
|
-
this.
|
|
2021
|
+
this.animation = true;
|
|
2022
|
+
/**
|
|
2023
|
+
* Specifies the state of the ActionSheet.
|
|
2024
|
+
*
|
|
2025
|
+
* @default false
|
|
2026
|
+
*/
|
|
2027
|
+
this.expanded = false;
|
|
2028
|
+
/**
|
|
2029
|
+
* Fires when the `expanded` property of the component is updated.
|
|
2030
|
+
* Used to provide a two-way binding for the `expanded` property.
|
|
2031
|
+
*/
|
|
2032
|
+
this.expandedChange = new EventEmitter();
|
|
2033
|
+
/**
|
|
2034
|
+
* Fires when the ActionSheet is expanded and its animation is complete.
|
|
2035
|
+
*/
|
|
2036
|
+
this.expand = new EventEmitter();
|
|
2037
|
+
/**
|
|
2038
|
+
* Fires when the ActionSheet is collapsed and its animation is complete.
|
|
2039
|
+
*/
|
|
2040
|
+
this.collapse = new EventEmitter();
|
|
1994
2041
|
/**
|
|
1995
2042
|
* Fires when an ActionSheet item is clicked.
|
|
1996
2043
|
*/
|
|
@@ -2005,6 +2052,7 @@ class ActionSheetComponent {
|
|
|
2005
2052
|
this.titleId = null;
|
|
2006
2053
|
this.rtl = false;
|
|
2007
2054
|
this.domSubs = new Subscription();
|
|
2055
|
+
this.animationEnd = new EventEmitter();
|
|
2008
2056
|
validatePackage(packageMetadata);
|
|
2009
2057
|
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
2010
2058
|
this.rtl = rtl;
|
|
@@ -2012,15 +2060,49 @@ class ActionSheetComponent {
|
|
|
2012
2060
|
});
|
|
2013
2061
|
this.titleId = getId('k-actionsheet-title');
|
|
2014
2062
|
}
|
|
2063
|
+
/**
|
|
2064
|
+
* @hidden
|
|
2065
|
+
*/
|
|
2066
|
+
get hostClass() {
|
|
2067
|
+
return this.expanded;
|
|
2068
|
+
}
|
|
2069
|
+
;
|
|
2015
2070
|
ngAfterViewInit() {
|
|
2016
|
-
this.handleInitialFocus();
|
|
2017
2071
|
this.initDomEvents();
|
|
2018
2072
|
}
|
|
2073
|
+
ngOnChanges(changes) {
|
|
2074
|
+
if (changes['expanded'] && this.expanded) {
|
|
2075
|
+
this.setExpanded(true);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2019
2078
|
ngOnDestroy() {
|
|
2020
2079
|
this.domSubs.unsubscribe();
|
|
2021
2080
|
if (this.dynamicRTLSubscription) {
|
|
2022
2081
|
this.dynamicRTLSubscription.unsubscribe();
|
|
2023
2082
|
}
|
|
2083
|
+
if (this.player) {
|
|
2084
|
+
this.player.destroy();
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Toggles the visibility of the ActionSheet.
|
|
2089
|
+
*/
|
|
2090
|
+
toggle() {
|
|
2091
|
+
const current = !this.expanded;
|
|
2092
|
+
if (current === true) {
|
|
2093
|
+
this.setExpanded(true);
|
|
2094
|
+
}
|
|
2095
|
+
else if (current === false && !this.animation) {
|
|
2096
|
+
this.setExpanded(false);
|
|
2097
|
+
}
|
|
2098
|
+
if (this.animation) {
|
|
2099
|
+
this.animationEnd.pipe(take(1))
|
|
2100
|
+
.subscribe(() => { this.onAnimationEnd(current); });
|
|
2101
|
+
this.playAnimation(current);
|
|
2102
|
+
}
|
|
2103
|
+
else {
|
|
2104
|
+
this[current ? 'expand' : 'collapse'].emit();
|
|
2105
|
+
}
|
|
2024
2106
|
}
|
|
2025
2107
|
/**
|
|
2026
2108
|
* @hidden
|
|
@@ -2111,152 +2193,188 @@ class ActionSheetComponent {
|
|
|
2111
2193
|
}
|
|
2112
2194
|
this.itemClick.emit({ item, originalEvent: event });
|
|
2113
2195
|
}
|
|
2196
|
+
setExpanded(value) {
|
|
2197
|
+
this.expanded = value;
|
|
2198
|
+
this.expandedChange.emit(value);
|
|
2199
|
+
if (this.expanded) {
|
|
2200
|
+
this.cdr.detectChanges();
|
|
2201
|
+
this.handleInitialFocus();
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
onAnimationEnd(currentExpanded) {
|
|
2205
|
+
if (currentExpanded) {
|
|
2206
|
+
this.expand.emit();
|
|
2207
|
+
}
|
|
2208
|
+
else {
|
|
2209
|
+
this.setExpanded(false);
|
|
2210
|
+
this.collapse.emit();
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
playAnimation(expanded) {
|
|
2214
|
+
const duration = typeof this.animation !== 'boolean' && this.animation.duration ? this.animation.duration : DEFAULT_ANIMATION_CONFIG.duration;
|
|
2215
|
+
const contentHeight = getComputedStyle(this.childContainer.nativeElement).height;
|
|
2216
|
+
const animation = expanded ? slideUp(duration, contentHeight) : slideDown(duration, contentHeight);
|
|
2217
|
+
const factory = this.builder.build(animation);
|
|
2218
|
+
this.player = factory.create(this.childContainer.nativeElement);
|
|
2219
|
+
this.player.onDone(() => {
|
|
2220
|
+
if (this.player) {
|
|
2221
|
+
this.animationEnd.emit();
|
|
2222
|
+
this.player.destroy();
|
|
2223
|
+
this.player = null;
|
|
2224
|
+
}
|
|
2225
|
+
});
|
|
2226
|
+
this.player.play();
|
|
2227
|
+
}
|
|
2114
2228
|
}
|
|
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: [
|
|
2229
|
+
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 });
|
|
2230
|
+
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
2231
|
LocalizationService,
|
|
2118
2232
|
{
|
|
2119
2233
|
provide: L10N_PREFIX,
|
|
2120
2234
|
useValue: 'kendo.actionsheet.component'
|
|
2121
2235
|
}
|
|
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
|
-
<
|
|
2124
|
-
|
|
2125
|
-
<div class="k-
|
|
2126
|
-
<div class="k-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2236
|
+
], 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: `
|
|
2237
|
+
<ng-container *ngIf="expanded">
|
|
2238
|
+
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
2239
|
+
<div class="k-animation-container">
|
|
2240
|
+
<div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
|
|
2241
|
+
<div class="k-actionsheet k-actionsheet-bottom"
|
|
2242
|
+
[style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
|
|
2243
|
+
[ngClass]="cssClass"
|
|
2244
|
+
role="dialog"
|
|
2245
|
+
aria-modal="true"
|
|
2246
|
+
[attr.aria-labelledby]="titleId">
|
|
2132
2247
|
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2248
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2249
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2250
|
+
</ng-template>
|
|
2136
2251
|
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2252
|
+
<ng-template #defaultTemplate>
|
|
2253
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2254
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2255
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2256
|
+
</ng-template>
|
|
2142
2257
|
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2258
|
+
<ng-template #defaultHeaderTemplate>
|
|
2259
|
+
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2260
|
+
<div class="k-actionsheet-title" [id]="titleId">
|
|
2261
|
+
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
2262
|
+
<div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
|
|
2263
|
+
</div>
|
|
2148
2264
|
</div>
|
|
2149
|
-
</
|
|
2150
|
-
</
|
|
2151
|
-
</div>
|
|
2265
|
+
</ng-template>
|
|
2266
|
+
</div>
|
|
2152
2267
|
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2268
|
+
<div *ngIf="items || contentTemplate" class="k-actionsheet-content">
|
|
2269
|
+
<ng-template *ngIf="contentTemplate; else defaultContentTemplate"
|
|
2270
|
+
[ngTemplateOutlet]="contentTemplate?.templateRef">
|
|
2271
|
+
</ng-template>
|
|
2272
|
+
<ng-template #defaultContentTemplate>
|
|
2273
|
+
<div *ngIf="topGroupItems" kendoActionSheetList
|
|
2274
|
+
class="k-list-ul"
|
|
2275
|
+
role="group"
|
|
2276
|
+
[groupItems]="topGroupItems"
|
|
2277
|
+
[allItems]="items"
|
|
2278
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2279
|
+
(itemClick)="onItemClick($event)">
|
|
2280
|
+
</div>
|
|
2281
|
+
|
|
2282
|
+
<hr *ngIf="shouldRenderSeparator" class="k-hr"/>
|
|
2283
|
+
|
|
2284
|
+
<div *ngIf="bottomGroupItems" kendoActionSheetList
|
|
2285
|
+
class="k-list-ul"
|
|
2286
|
+
role="group"
|
|
2287
|
+
[groupItems]="bottomGroupItems"
|
|
2288
|
+
[allItems]="items"
|
|
2289
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2290
|
+
(itemClick)="onItemClick($event)">
|
|
2291
|
+
</div>
|
|
2292
|
+
</ng-template>
|
|
2293
|
+
</div>
|
|
2294
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2295
|
+
<ng-template
|
|
2296
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2297
|
+
</ng-template>
|
|
2298
|
+
</div>
|
|
2299
|
+
</ng-template>
|
|
2300
|
+
</div>
|
|
2185
2301
|
</div>
|
|
2186
2302
|
</div>
|
|
2187
|
-
</
|
|
2188
|
-
`, isInline: true, components: [{ type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }], directives: [{ type: i2.
|
|
2303
|
+
</ng-container>
|
|
2304
|
+
`, 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
2305
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, decorators: [{
|
|
2190
2306
|
type: Component,
|
|
2191
2307
|
args: [{
|
|
2192
2308
|
exportAs: 'kendoActionSheet',
|
|
2193
2309
|
selector: 'kendo-actionsheet',
|
|
2194
2310
|
template: `
|
|
2195
|
-
<
|
|
2196
|
-
|
|
2197
|
-
<div class="k-
|
|
2198
|
-
<div class="k-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2311
|
+
<ng-container *ngIf="expanded">
|
|
2312
|
+
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
2313
|
+
<div class="k-animation-container">
|
|
2314
|
+
<div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
|
|
2315
|
+
<div class="k-actionsheet k-actionsheet-bottom"
|
|
2316
|
+
[style]="'--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;'"
|
|
2317
|
+
[ngClass]="cssClass"
|
|
2318
|
+
role="dialog"
|
|
2319
|
+
aria-modal="true"
|
|
2320
|
+
[attr.aria-labelledby]="titleId">
|
|
2204
2321
|
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2322
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2323
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2324
|
+
</ng-template>
|
|
2208
2325
|
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2326
|
+
<ng-template #defaultTemplate>
|
|
2327
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2328
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2329
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2330
|
+
</ng-template>
|
|
2214
2331
|
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2332
|
+
<ng-template #defaultHeaderTemplate>
|
|
2333
|
+
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2334
|
+
<div class="k-actionsheet-title" [id]="titleId">
|
|
2335
|
+
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
2336
|
+
<div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
|
|
2337
|
+
</div>
|
|
2220
2338
|
</div>
|
|
2221
|
-
</
|
|
2222
|
-
</
|
|
2223
|
-
</div>
|
|
2339
|
+
</ng-template>
|
|
2340
|
+
</div>
|
|
2224
2341
|
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2342
|
+
<div *ngIf="items || contentTemplate" class="k-actionsheet-content">
|
|
2343
|
+
<ng-template *ngIf="contentTemplate; else defaultContentTemplate"
|
|
2344
|
+
[ngTemplateOutlet]="contentTemplate?.templateRef">
|
|
2345
|
+
</ng-template>
|
|
2346
|
+
<ng-template #defaultContentTemplate>
|
|
2347
|
+
<div *ngIf="topGroupItems" kendoActionSheetList
|
|
2348
|
+
class="k-list-ul"
|
|
2349
|
+
role="group"
|
|
2350
|
+
[groupItems]="topGroupItems"
|
|
2351
|
+
[allItems]="items"
|
|
2352
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2353
|
+
(itemClick)="onItemClick($event)">
|
|
2354
|
+
</div>
|
|
2355
|
+
|
|
2356
|
+
<hr *ngIf="shouldRenderSeparator" class="k-hr"/>
|
|
2357
|
+
|
|
2358
|
+
<div *ngIf="bottomGroupItems" kendoActionSheetList
|
|
2359
|
+
class="k-list-ul"
|
|
2360
|
+
role="group"
|
|
2361
|
+
[groupItems]="bottomGroupItems"
|
|
2362
|
+
[allItems]="items"
|
|
2363
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2364
|
+
(itemClick)="onItemClick($event)">
|
|
2365
|
+
</div>
|
|
2366
|
+
</ng-template>
|
|
2367
|
+
</div>
|
|
2368
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2369
|
+
<ng-template
|
|
2370
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2371
|
+
</ng-template>
|
|
2372
|
+
</div>
|
|
2373
|
+
</ng-template>
|
|
2374
|
+
</div>
|
|
2257
2375
|
</div>
|
|
2258
2376
|
</div>
|
|
2259
|
-
</
|
|
2377
|
+
</ng-container>
|
|
2260
2378
|
`,
|
|
2261
2379
|
providers: [
|
|
2262
2380
|
LocalizationService,
|
|
@@ -2266,7 +2384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2266
2384
|
}
|
|
2267
2385
|
]
|
|
2268
2386
|
}]
|
|
2269
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
|
|
2387
|
+
}], 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
2388
|
type: HostBinding,
|
|
2271
2389
|
args: ['class.k-actionsheet-container']
|
|
2272
2390
|
}], direction: [{
|
|
@@ -2280,10 +2398,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2280
2398
|
type: Input
|
|
2281
2399
|
}], cssClass: [{
|
|
2282
2400
|
type: Input
|
|
2401
|
+
}], animation: [{
|
|
2402
|
+
type: Input
|
|
2403
|
+
}], expanded: [{
|
|
2404
|
+
type: Input
|
|
2405
|
+
}], expandedChange: [{
|
|
2406
|
+
type: Output
|
|
2407
|
+
}], expand: [{
|
|
2408
|
+
type: Output
|
|
2409
|
+
}], collapse: [{
|
|
2410
|
+
type: Output
|
|
2283
2411
|
}], itemClick: [{
|
|
2284
2412
|
type: Output
|
|
2285
2413
|
}], overlayClick: [{
|
|
2286
2414
|
type: Output
|
|
2415
|
+
}], childContainer: [{
|
|
2416
|
+
type: ViewChild,
|
|
2417
|
+
args: ['childContainer']
|
|
2287
2418
|
}], actionSheetTemplate: [{
|
|
2288
2419
|
type: ContentChild,
|
|
2289
2420
|
args: [ActionSheetTemplateDirective]
|