@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
package/esm2020/index.mjs
CHANGED
|
@@ -21,5 +21,5 @@ export { BreadCrumbItemComponent } from './breadcrumb/breadcrumb-item.component'
|
|
|
21
21
|
export { BreadCrumbListComponent } from './breadcrumb/list.component';
|
|
22
22
|
//ActionSheet exports
|
|
23
23
|
export { ActionSheetComponent } from './actionsheet/actionsheet.component';
|
|
24
|
-
export { ActionSheetItemClickEvent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective } from './actionsheet/models';
|
|
24
|
+
export { ActionSheetItemClickEvent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective } from './actionsheet/models';
|
|
25
25
|
export { ActionSheetModule } from './actionsheet.module';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-navigation',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '11.
|
|
12
|
+
publishDate: 1675853580,
|
|
13
|
+
version: '11.2.0-develop.10',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -12,10 +12,12 @@ import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSe
|
|
|
12
12
|
import * as i2 from '@angular/common';
|
|
13
13
|
import { CommonModule } from '@angular/common';
|
|
14
14
|
import { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';
|
|
15
|
-
import { filter, map, startWith, share } from 'rxjs/operators';
|
|
15
|
+
import { filter, map, startWith, share, take } from 'rxjs/operators';
|
|
16
16
|
import * as i1$1 from '@progress/kendo-angular-icons';
|
|
17
17
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
18
18
|
import { chevronRightIcon, chevronLeftIcon } from '@progress/kendo-svg-icons';
|
|
19
|
+
import * as i2$1 from '@angular/animations';
|
|
20
|
+
import { style, animate } from '@angular/animations';
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
23
|
* @hidden
|
|
@@ -24,8 +26,8 @@ const packageMetadata = {
|
|
|
24
26
|
name: '@progress/kendo-angular-navigation',
|
|
25
27
|
productName: 'Kendo UI for Angular',
|
|
26
28
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
27
|
-
publishDate:
|
|
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
|
|
|
@@ -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']
|
|
@@ -1779,6 +1782,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1779
1782
|
}] }];
|
|
1780
1783
|
} });
|
|
1781
1784
|
|
|
1785
|
+
/**
|
|
1786
|
+
* Represents a template that defines the content of the ActionSheet.
|
|
1787
|
+
* To define the template, nest an `<ng-template>` tag
|
|
1788
|
+
* with the `kendoActionSheetTemplate` directive inside the `<kendo-actionsheet>` tag.
|
|
1789
|
+
*/
|
|
1790
|
+
class ActionSheetTemplateDirective {
|
|
1791
|
+
constructor(templateRef) {
|
|
1792
|
+
this.templateRef = templateRef;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
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 });
|
|
1796
|
+
ActionSheetTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]", ngImport: i0 });
|
|
1797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetTemplateDirective, decorators: [{
|
|
1798
|
+
type: Directive,
|
|
1799
|
+
args: [{
|
|
1800
|
+
selector: '[kendoActionSheetTemplate]'
|
|
1801
|
+
}]
|
|
1802
|
+
}], ctorParameters: function () {
|
|
1803
|
+
return [{ type: i0.TemplateRef, decorators: [{
|
|
1804
|
+
type: Optional
|
|
1805
|
+
}] }];
|
|
1806
|
+
} });
|
|
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
|
+
|
|
1782
1827
|
/**
|
|
1783
1828
|
* @hidden
|
|
1784
1829
|
*/
|
|
@@ -1954,20 +1999,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1954
1999
|
type: Output
|
|
1955
2000
|
}] } });
|
|
1956
2001
|
|
|
2002
|
+
const DEFAULT_ANIMATION_CONFIG = { duration: 300 };
|
|
1957
2003
|
/**
|
|
1958
2004
|
* Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
|
|
1959
2005
|
* Used to display a set of choices related to a task the user initiates.
|
|
1960
2006
|
*/
|
|
1961
2007
|
class ActionSheetComponent {
|
|
1962
|
-
constructor(element, ngZone, renderer, localizationService) {
|
|
2008
|
+
constructor(element, ngZone, renderer, localizationService, builder, cdr) {
|
|
1963
2009
|
this.element = element;
|
|
1964
2010
|
this.ngZone = ngZone;
|
|
1965
2011
|
this.renderer = renderer;
|
|
1966
2012
|
this.localizationService = localizationService;
|
|
2013
|
+
this.builder = builder;
|
|
2014
|
+
this.cdr = cdr;
|
|
1967
2015
|
/**
|
|
1968
|
-
*
|
|
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
|
|
1969
2020
|
*/
|
|
1970
|
-
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();
|
|
1971
2041
|
/**
|
|
1972
2042
|
* Fires when an ActionSheet item is clicked.
|
|
1973
2043
|
*/
|
|
@@ -1982,6 +2052,7 @@ class ActionSheetComponent {
|
|
|
1982
2052
|
this.titleId = null;
|
|
1983
2053
|
this.rtl = false;
|
|
1984
2054
|
this.domSubs = new Subscription();
|
|
2055
|
+
this.animationEnd = new EventEmitter();
|
|
1985
2056
|
validatePackage(packageMetadata);
|
|
1986
2057
|
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
1987
2058
|
this.rtl = rtl;
|
|
@@ -1989,15 +2060,49 @@ class ActionSheetComponent {
|
|
|
1989
2060
|
});
|
|
1990
2061
|
this.titleId = getId('k-actionsheet-title');
|
|
1991
2062
|
}
|
|
2063
|
+
/**
|
|
2064
|
+
* @hidden
|
|
2065
|
+
*/
|
|
2066
|
+
get hostClass() {
|
|
2067
|
+
return this.expanded;
|
|
2068
|
+
}
|
|
2069
|
+
;
|
|
1992
2070
|
ngAfterViewInit() {
|
|
1993
|
-
this.handleInitialFocus();
|
|
1994
2071
|
this.initDomEvents();
|
|
1995
2072
|
}
|
|
2073
|
+
ngOnChanges(changes) {
|
|
2074
|
+
if (changes['expanded'] && this.expanded) {
|
|
2075
|
+
this.setExpanded(true);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
1996
2078
|
ngOnDestroy() {
|
|
1997
2079
|
this.domSubs.unsubscribe();
|
|
1998
2080
|
if (this.dynamicRTLSubscription) {
|
|
1999
2081
|
this.dynamicRTLSubscription.unsubscribe();
|
|
2000
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
|
+
}
|
|
2001
2106
|
}
|
|
2002
2107
|
/**
|
|
2003
2108
|
* @hidden
|
|
@@ -2088,136 +2193,188 @@ class ActionSheetComponent {
|
|
|
2088
2193
|
}
|
|
2089
2194
|
this.itemClick.emit({ item, originalEvent: event });
|
|
2090
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
|
+
}
|
|
2091
2228
|
}
|
|
2092
|
-
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 });
|
|
2093
|
-
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: [
|
|
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: [
|
|
2094
2231
|
LocalizationService,
|
|
2095
2232
|
{
|
|
2096
2233
|
provide: L10N_PREFIX,
|
|
2097
2234
|
useValue: 'kendo.actionsheet.component'
|
|
2098
2235
|
}
|
|
2099
|
-
], 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: `
|
|
2100
|
-
<
|
|
2101
|
-
|
|
2102
|
-
<div class="k-
|
|
2103
|
-
<div class="k-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
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">
|
|
2247
|
+
|
|
2248
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2249
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2250
|
+
</ng-template>
|
|
2108
2251
|
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
<ng-template *ngIf="headerTemplate; else defaultTemplate"
|
|
2252
|
+
<ng-template #defaultTemplate>
|
|
2253
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2254
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2113
2255
|
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2114
2256
|
</ng-template>
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
<div
|
|
2257
|
+
|
|
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>
|
|
2264
|
+
</div>
|
|
2118
2265
|
</ng-template>
|
|
2119
2266
|
</div>
|
|
2120
|
-
</div>
|
|
2121
|
-
</div>
|
|
2122
2267
|
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
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>
|
|
2135
2293
|
</div>
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
class="k-list-ul"
|
|
2141
|
-
role="group"
|
|
2142
|
-
[groupItems]="bottomGroupItems"
|
|
2143
|
-
[allItems]="items"
|
|
2144
|
-
[itemTemplate]="itemTemplate?.templateRef"
|
|
2145
|
-
(itemClick)="onItemClick($event)">
|
|
2294
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2295
|
+
<ng-template
|
|
2296
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2297
|
+
</ng-template>
|
|
2146
2298
|
</div>
|
|
2147
2299
|
</ng-template>
|
|
2148
2300
|
</div>
|
|
2149
|
-
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2150
|
-
<ng-template
|
|
2151
|
-
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2152
|
-
</ng-template>
|
|
2153
|
-
</div>
|
|
2154
2301
|
</div>
|
|
2155
2302
|
</div>
|
|
2156
|
-
</
|
|
2157
|
-
`, 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"] }] });
|
|
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"] }] });
|
|
2158
2305
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetComponent, decorators: [{
|
|
2159
2306
|
type: Component,
|
|
2160
2307
|
args: [{
|
|
2161
2308
|
exportAs: 'kendoActionSheet',
|
|
2162
2309
|
selector: 'kendo-actionsheet',
|
|
2163
2310
|
template: `
|
|
2164
|
-
<
|
|
2165
|
-
|
|
2166
|
-
<div class="k-
|
|
2167
|
-
<div class="k-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
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">
|
|
2172
2321
|
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2322
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
2323
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
2324
|
+
</ng-template>
|
|
2325
|
+
|
|
2326
|
+
<ng-template #defaultTemplate>
|
|
2327
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
2328
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
|
|
2177
2329
|
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2178
2330
|
</ng-template>
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
<div
|
|
2331
|
+
|
|
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>
|
|
2338
|
+
</div>
|
|
2182
2339
|
</ng-template>
|
|
2183
2340
|
</div>
|
|
2184
|
-
</div>
|
|
2185
|
-
</div>
|
|
2186
2341
|
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
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>
|
|
2199
2367
|
</div>
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
class="k-list-ul"
|
|
2205
|
-
role="group"
|
|
2206
|
-
[groupItems]="bottomGroupItems"
|
|
2207
|
-
[allItems]="items"
|
|
2208
|
-
[itemTemplate]="itemTemplate?.templateRef"
|
|
2209
|
-
(itemClick)="onItemClick($event)">
|
|
2368
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2369
|
+
<ng-template
|
|
2370
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2371
|
+
</ng-template>
|
|
2210
2372
|
</div>
|
|
2211
2373
|
</ng-template>
|
|
2212
2374
|
</div>
|
|
2213
|
-
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2214
|
-
<ng-template
|
|
2215
|
-
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2216
|
-
</ng-template>
|
|
2217
|
-
</div>
|
|
2218
2375
|
</div>
|
|
2219
2376
|
</div>
|
|
2220
|
-
</
|
|
2377
|
+
</ng-container>
|
|
2221
2378
|
`,
|
|
2222
2379
|
providers: [
|
|
2223
2380
|
LocalizationService,
|
|
@@ -2227,7 +2384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2227
2384
|
}
|
|
2228
2385
|
]
|
|
2229
2386
|
}]
|
|
2230
|
-
}], 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: [{
|
|
2231
2388
|
type: HostBinding,
|
|
2232
2389
|
args: ['class.k-actionsheet-container']
|
|
2233
2390
|
}], direction: [{
|
|
@@ -2239,10 +2396,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2239
2396
|
type: Input
|
|
2240
2397
|
}], items: [{
|
|
2241
2398
|
type: Input
|
|
2399
|
+
}], cssClass: [{
|
|
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
|
|
2242
2411
|
}], itemClick: [{
|
|
2243
2412
|
type: Output
|
|
2244
2413
|
}], overlayClick: [{
|
|
2245
2414
|
type: Output
|
|
2415
|
+
}], childContainer: [{
|
|
2416
|
+
type: ViewChild,
|
|
2417
|
+
args: ['childContainer']
|
|
2418
|
+
}], actionSheetTemplate: [{
|
|
2419
|
+
type: ContentChild,
|
|
2420
|
+
args: [ActionSheetTemplateDirective]
|
|
2246
2421
|
}], headerTemplate: [{
|
|
2247
2422
|
type: ContentChild,
|
|
2248
2423
|
args: [ActionSheetHeaderTemplateDirective]
|
|
@@ -2261,7 +2436,8 @@ const templateDirectives = [
|
|
|
2261
2436
|
ActionSheetHeaderTemplateDirective,
|
|
2262
2437
|
ActionSheetItemTemplateDirective,
|
|
2263
2438
|
ActionSheetContentTemplateDirective,
|
|
2264
|
-
ActionSheetFooterTemplateDirective
|
|
2439
|
+
ActionSheetFooterTemplateDirective,
|
|
2440
|
+
ActionSheetTemplateDirective
|
|
2265
2441
|
];
|
|
2266
2442
|
const exportedModules = [
|
|
2267
2443
|
ActionSheetComponent,
|
|
@@ -2311,10 +2487,12 @@ ActionSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
2311
2487
|
ActionSheetListComponent, ActionSheetComponent, ActionSheetHeaderTemplateDirective,
|
|
2312
2488
|
ActionSheetItemTemplateDirective,
|
|
2313
2489
|
ActionSheetContentTemplateDirective,
|
|
2314
|
-
ActionSheetFooterTemplateDirective
|
|
2490
|
+
ActionSheetFooterTemplateDirective,
|
|
2491
|
+
ActionSheetTemplateDirective], imports: [CommonModule, IconsModule], exports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective,
|
|
2315
2492
|
ActionSheetItemTemplateDirective,
|
|
2316
2493
|
ActionSheetContentTemplateDirective,
|
|
2317
|
-
ActionSheetFooterTemplateDirective
|
|
2494
|
+
ActionSheetFooterTemplateDirective,
|
|
2495
|
+
ActionSheetTemplateDirective] });
|
|
2318
2496
|
ActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetModule, imports: [[CommonModule, IconsModule]] });
|
|
2319
2497
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionSheetModule, decorators: [{
|
|
2320
2498
|
type: NgModule,
|
|
@@ -2385,5 +2563,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
2385
2563
|
* Generated bundle index. Do not edit.
|
|
2386
2564
|
*/
|
|
2387
2565
|
|
|
2388
|
-
export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, NavigationModule };
|
|
2566
|
+
export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, ActionSheetTemplateDirective, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, NavigationModule };
|
|
2389
2567
|
|