@progress/kendo-angular-navigation 11.1.1-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.
- package/actionsheet/actionsheet.component.d.ts +58 -6
- package/actionsheet/animation/animations.d.ts +13 -0
- package/actionsheet/models/animation.d.ts +13 -0
- package/actionsheet/models/index.d.ts +2 -0
- package/actionsheet/templates/actionsheet-template.d.ts +17 -0
- package/actionsheet.module.d.ts +4 -3
- package/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/esm2020/actionsheet/actionsheet.component.mjs +237 -103
- package/esm2020/actionsheet/animation/animations.mjs +23 -0
- package/esm2020/actionsheet/models/animation.mjs +5 -0
- package/esm2020/actionsheet/models/index.mjs +1 -0
- package/esm2020/actionsheet/templates/actionsheet-template.mjs +26 -0
- package/esm2020/actionsheet.module.mjs +7 -4
- package/esm2020/bottomnavigation/bottomnavigation-item.component.mjs +4 -1
- package/esm2020/breadcrumb/breadcrumb.component.mjs +7 -9
- package/esm2020/index.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-navigation.mjs +294 -116
- package/fesm2020/progress-kendo-angular-navigation.mjs +292 -116
- 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.
|
|
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
|
|
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:
|
|
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-
|
|
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:
|
|
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
|
|
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']
|
|
@@ -1767,6 +1770,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1767
1770
|
type: Optional
|
|
1768
1771
|
}] }]; } });
|
|
1769
1772
|
|
|
1773
|
+
/**
|
|
1774
|
+
* Represents a template that defines the content of the ActionSheet.
|
|
1775
|
+
* To define the template, nest an `<ng-template>` tag
|
|
1776
|
+
* with the `kendoActionSheetTemplate` directive inside the `<kendo-actionsheet>` tag.
|
|
1777
|
+
*/
|
|
1778
|
+
class ActionSheetTemplateDirective {
|
|
1779
|
+
constructor(templateRef) {
|
|
1780
|
+
this.templateRef = templateRef;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
ActionSheetTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1784
|
+
ActionSheetTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]", ngImport: i0 });
|
|
1785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetTemplateDirective, decorators: [{
|
|
1786
|
+
type: Directive,
|
|
1787
|
+
args: [{
|
|
1788
|
+
selector: '[kendoActionSheetTemplate]'
|
|
1789
|
+
}]
|
|
1790
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1791
|
+
type: Optional
|
|
1792
|
+
}] }]; } });
|
|
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
|
+
|
|
1770
1813
|
/**
|
|
1771
1814
|
* @hidden
|
|
1772
1815
|
*/
|
|
@@ -1942,20 +1985,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1942
1985
|
type: Output
|
|
1943
1986
|
}] } });
|
|
1944
1987
|
|
|
1988
|
+
const DEFAULT_ANIMATION_CONFIG = { duration: 300 };
|
|
1945
1989
|
/**
|
|
1946
1990
|
* Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
|
|
1947
1991
|
* Used to display a set of choices related to a task the user initiates.
|
|
1948
1992
|
*/
|
|
1949
1993
|
class ActionSheetComponent {
|
|
1950
|
-
constructor(element, ngZone, renderer, localizationService) {
|
|
1994
|
+
constructor(element, ngZone, renderer, localizationService, builder, cdr) {
|
|
1951
1995
|
this.element = element;
|
|
1952
1996
|
this.ngZone = ngZone;
|
|
1953
1997
|
this.renderer = renderer;
|
|
1954
1998
|
this.localizationService = localizationService;
|
|
1999
|
+
this.builder = builder;
|
|
2000
|
+
this.cdr = cdr;
|
|
1955
2001
|
/**
|
|
1956
|
-
*
|
|
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
|
|
1957
2006
|
*/
|
|
1958
|
-
this.
|
|
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();
|
|
1959
2027
|
/**
|
|
1960
2028
|
* Fires when an ActionSheet item is clicked.
|
|
1961
2029
|
*/
|
|
@@ -1970,6 +2038,7 @@ class ActionSheetComponent {
|
|
|
1970
2038
|
this.titleId = null;
|
|
1971
2039
|
this.rtl = false;
|
|
1972
2040
|
this.domSubs = new Subscription();
|
|
2041
|
+
this.animationEnd = new EventEmitter();
|
|
1973
2042
|
validatePackage(packageMetadata);
|
|
1974
2043
|
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
1975
2044
|
this.rtl = rtl;
|
|
@@ -1977,15 +2046,49 @@ class ActionSheetComponent {
|
|
|
1977
2046
|
});
|
|
1978
2047
|
this.titleId = getId('k-actionsheet-title');
|
|
1979
2048
|
}
|
|
2049
|
+
/**
|
|
2050
|
+
* @hidden
|
|
2051
|
+
*/
|
|
2052
|
+
get hostClass() {
|
|
2053
|
+
return this.expanded;
|
|
2054
|
+
}
|
|
2055
|
+
;
|
|
1980
2056
|
ngAfterViewInit() {
|
|
1981
|
-
this.handleInitialFocus();
|
|
1982
2057
|
this.initDomEvents();
|
|
1983
2058
|
}
|
|
2059
|
+
ngOnChanges(changes) {
|
|
2060
|
+
if (changes['expanded'] && this.expanded) {
|
|
2061
|
+
this.setExpanded(true);
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
1984
2064
|
ngOnDestroy() {
|
|
1985
2065
|
this.domSubs.unsubscribe();
|
|
1986
2066
|
if (this.dynamicRTLSubscription) {
|
|
1987
2067
|
this.dynamicRTLSubscription.unsubscribe();
|
|
1988
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
|
+
}
|
|
1989
2092
|
}
|
|
1990
2093
|
/**
|
|
1991
2094
|
* @hidden
|
|
@@ -2073,136 +2176,188 @@ class ActionSheetComponent {
|
|
|
2073
2176
|
}
|
|
2074
2177
|
this.itemClick.emit({ item, originalEvent: event });
|
|
2075
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
|
+
}
|
|
2076
2211
|
}
|
|
2077
|
-
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 });
|
|
2078
|
-
ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: { title: "title", subtitle: "subtitle", items: "items" }, 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: [
|
|
2079
2214
|
LocalizationService,
|
|
2080
2215
|
{
|
|
2081
2216
|
provide: L10N_PREFIX,
|
|
2082
2217
|
useValue: 'kendo.actionsheet.component'
|
|
2083
2218
|
}
|
|
2084
|
-
], queries: [{ 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: `
|
|
2085
|
-
<
|
|
2086
|
-
|
|
2087
|
-
<div class="k-
|
|
2088
|
-
<div class="k-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
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">
|
|
2093
2230
|
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2231
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2232
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2233
|
+
</ng-template>
|
|
2234
|
+
|
|
2235
|
+
<ng-template #defaultTemplate>
|
|
2236
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2237
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2098
2238
|
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2099
2239
|
</ng-template>
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
<div
|
|
2240
|
+
|
|
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>
|
|
2247
|
+
</div>
|
|
2103
2248
|
</ng-template>
|
|
2104
2249
|
</div>
|
|
2105
|
-
</div>
|
|
2106
|
-
</div>
|
|
2107
2250
|
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
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>
|
|
2120
2276
|
</div>
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
class="k-list-ul"
|
|
2126
|
-
role="group"
|
|
2127
|
-
[groupItems]="bottomGroupItems"
|
|
2128
|
-
[allItems]="items"
|
|
2129
|
-
[itemTemplate]="itemTemplate?.templateRef"
|
|
2130
|
-
(itemClick)="onItemClick($event)">
|
|
2277
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2278
|
+
<ng-template
|
|
2279
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2280
|
+
</ng-template>
|
|
2131
2281
|
</div>
|
|
2132
2282
|
</ng-template>
|
|
2133
2283
|
</div>
|
|
2134
|
-
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2135
|
-
<ng-template
|
|
2136
|
-
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2137
|
-
</ng-template>
|
|
2138
|
-
</div>
|
|
2139
2284
|
</div>
|
|
2140
2285
|
</div>
|
|
2141
|
-
</
|
|
2142
|
-
`, 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.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"] }] });
|
|
2143
2288
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, decorators: [{
|
|
2144
2289
|
type: Component,
|
|
2145
2290
|
args: [{
|
|
2146
2291
|
exportAs: 'kendoActionSheet',
|
|
2147
2292
|
selector: 'kendo-actionsheet',
|
|
2148
2293
|
template: `
|
|
2149
|
-
<
|
|
2150
|
-
|
|
2151
|
-
<div class="k-
|
|
2152
|
-
<div class="k-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
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">
|
|
2304
|
+
|
|
2305
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2306
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2307
|
+
</ng-template>
|
|
2157
2308
|
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
<ng-template *ngIf="headerTemplate; else defaultTemplate"
|
|
2309
|
+
<ng-template #defaultTemplate>
|
|
2310
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2311
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2162
2312
|
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2163
2313
|
</ng-template>
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
<div
|
|
2314
|
+
|
|
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>
|
|
2321
|
+
</div>
|
|
2167
2322
|
</ng-template>
|
|
2168
2323
|
</div>
|
|
2169
|
-
</div>
|
|
2170
|
-
</div>
|
|
2171
2324
|
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
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>
|
|
2184
2350
|
</div>
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
class="k-list-ul"
|
|
2190
|
-
role="group"
|
|
2191
|
-
[groupItems]="bottomGroupItems"
|
|
2192
|
-
[allItems]="items"
|
|
2193
|
-
[itemTemplate]="itemTemplate?.templateRef"
|
|
2194
|
-
(itemClick)="onItemClick($event)">
|
|
2351
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2352
|
+
<ng-template
|
|
2353
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2354
|
+
</ng-template>
|
|
2195
2355
|
</div>
|
|
2196
2356
|
</ng-template>
|
|
2197
2357
|
</div>
|
|
2198
|
-
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2199
|
-
<ng-template
|
|
2200
|
-
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2201
|
-
</ng-template>
|
|
2202
|
-
</div>
|
|
2203
2358
|
</div>
|
|
2204
2359
|
</div>
|
|
2205
|
-
</
|
|
2360
|
+
</ng-container>
|
|
2206
2361
|
`,
|
|
2207
2362
|
providers: [
|
|
2208
2363
|
LocalizationService,
|
|
@@ -2212,7 +2367,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2212
2367
|
}
|
|
2213
2368
|
]
|
|
2214
2369
|
}]
|
|
2215
|
-
}], 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: [{
|
|
2216
2371
|
type: HostBinding,
|
|
2217
2372
|
args: ['class.k-actionsheet-container']
|
|
2218
2373
|
}], direction: [{
|
|
@@ -2224,10 +2379,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2224
2379
|
type: Input
|
|
2225
2380
|
}], items: [{
|
|
2226
2381
|
type: Input
|
|
2382
|
+
}], cssClass: [{
|
|
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
|
|
2227
2394
|
}], itemClick: [{
|
|
2228
2395
|
type: Output
|
|
2229
2396
|
}], overlayClick: [{
|
|
2230
2397
|
type: Output
|
|
2398
|
+
}], childContainer: [{
|
|
2399
|
+
type: ViewChild,
|
|
2400
|
+
args: ['childContainer']
|
|
2401
|
+
}], actionSheetTemplate: [{
|
|
2402
|
+
type: ContentChild,
|
|
2403
|
+
args: [ActionSheetTemplateDirective]
|
|
2231
2404
|
}], headerTemplate: [{
|
|
2232
2405
|
type: ContentChild,
|
|
2233
2406
|
args: [ActionSheetHeaderTemplateDirective]
|
|
@@ -2246,7 +2419,8 @@ const templateDirectives = [
|
|
|
2246
2419
|
ActionSheetHeaderTemplateDirective,
|
|
2247
2420
|
ActionSheetItemTemplateDirective,
|
|
2248
2421
|
ActionSheetContentTemplateDirective,
|
|
2249
|
-
ActionSheetFooterTemplateDirective
|
|
2422
|
+
ActionSheetFooterTemplateDirective,
|
|
2423
|
+
ActionSheetTemplateDirective
|
|
2250
2424
|
];
|
|
2251
2425
|
const exportedModules = [
|
|
2252
2426
|
ActionSheetComponent,
|
|
@@ -2296,10 +2470,12 @@ ActionSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
2296
2470
|
ActionSheetListComponent, ActionSheetComponent, ActionSheetHeaderTemplateDirective,
|
|
2297
2471
|
ActionSheetItemTemplateDirective,
|
|
2298
2472
|
ActionSheetContentTemplateDirective,
|
|
2299
|
-
ActionSheetFooterTemplateDirective
|
|
2473
|
+
ActionSheetFooterTemplateDirective,
|
|
2474
|
+
ActionSheetTemplateDirective], imports: [CommonModule, IconsModule], exports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective,
|
|
2300
2475
|
ActionSheetItemTemplateDirective,
|
|
2301
2476
|
ActionSheetContentTemplateDirective,
|
|
2302
|
-
ActionSheetFooterTemplateDirective
|
|
2477
|
+
ActionSheetFooterTemplateDirective,
|
|
2478
|
+
ActionSheetTemplateDirective] });
|
|
2303
2479
|
ActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetModule, imports: [[CommonModule, IconsModule]] });
|
|
2304
2480
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetModule, decorators: [{
|
|
2305
2481
|
type: NgModule,
|
|
@@ -2370,5 +2546,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2370
2546
|
* Generated bundle index. Do not edit.
|
|
2371
2547
|
*/
|
|
2372
2548
|
|
|
2373
|
-
export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, NavigationModule };
|
|
2549
|
+
export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, ActionSheetTemplateDirective, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, NavigationModule };
|
|
2374
2550
|
|
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 } from './actionsheet/models';
|
|
30
|
+
export { ActionSheetItem, ActionSheetItemGroup, ActionSheetItemClickEvent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetAnimation, ActionSheetTemplateDirective } from './actionsheet/models';
|
|
31
31
|
export { ActionSheetModule } from './actionsheet.module';
|