@progress/kendo-angular-navigation 2.0.3-dev.202210121055 → 2.1.0-dev.202210190753

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.
Files changed (30) hide show
  1. package/actionsheet/actionsheet.component.d.ts +92 -0
  2. package/actionsheet/item.component.d.ts +19 -0
  3. package/actionsheet/list.component.d.ts +27 -0
  4. package/actionsheet/models/actionsheet-item.interface.d.ts +57 -0
  5. package/actionsheet/models/group.d.ts +5 -0
  6. package/actionsheet/models/index.d.ts +9 -0
  7. package/actionsheet/models/item-click.event.d.ts +18 -0
  8. package/actionsheet/templates/item-template.directive.d.ts +17 -0
  9. package/actionsheet/templates/title-template.directive.d.ts +17 -0
  10. package/actionsheet.module.d.ts +48 -0
  11. package/bundles/kendo-angular-navigation.umd.js +1 -1
  12. package/common/util.d.ts +16 -0
  13. package/esm2015/actionsheet/actionsheet.component.js +292 -0
  14. package/esm2015/actionsheet/item.component.js +102 -0
  15. package/esm2015/actionsheet/list.component.js +95 -0
  16. package/esm2015/actionsheet/models/actionsheet-item.interface.js +5 -0
  17. package/esm2015/actionsheet/models/group.js +5 -0
  18. package/esm2015/actionsheet/models/index.js +7 -0
  19. package/esm2015/actionsheet/models/item-click.event.js +9 -0
  20. package/esm2015/actionsheet/templates/item-template.directive.js +26 -0
  21. package/esm2015/actionsheet/templates/title-template.directive.js +26 -0
  22. package/esm2015/actionsheet.module.js +72 -0
  23. package/esm2015/common/util.js +63 -0
  24. package/esm2015/main.js +6 -0
  25. package/esm2015/navigation.module.js +7 -3
  26. package/esm2015/package-metadata.js +1 -1
  27. package/fesm2015/kendo-angular-navigation.js +656 -23
  28. package/main.d.ts +5 -0
  29. package/navigation.module.d.ts +2 -1
  30. package/package.json +1 -1
package/common/util.d.ts CHANGED
@@ -10,3 +10,19 @@ export declare const isPresent: (value: any) => boolean;
10
10
  * @hidden
11
11
  */
12
12
  export declare const outerWidth: (element: HTMLElement) => number;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare const getFirstAndLastFocusable: (parent: any) => Array<HTMLElement>;
17
+ /**
18
+ * @hidden
19
+ */
20
+ export declare const hexColorRegex: RegExp;
21
+ /**
22
+ * @hidden
23
+ */
24
+ export declare const getId: (prefix: string) => string;
25
+ /**
26
+ * @hidden
27
+ */
28
+ export declare const getActionSheetItemIndex: (target: HTMLElement) => number;
@@ -0,0 +1,292 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, ContentChild, EventEmitter, HostBinding, Input, Output } from '@angular/core';
6
+ import { validatePackage } from '@progress/kendo-licensing';
7
+ import { packageMetadata } from '../package-metadata';
8
+ import { Subscription } from 'rxjs';
9
+ import { ActionSheetTitleTemplateDirective, ActionSheetItemTemplateDirective } from './models';
10
+ import { Keys } from '@progress/kendo-angular-common';
11
+ import { getId, getActionSheetItemIndex, getFirstAndLastFocusable } from '../common/util';
12
+ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
13
+ import * as i0 from "@angular/core";
14
+ import * as i1 from "@progress/kendo-angular-l10n";
15
+ import * as i2 from "./list.component";
16
+ import * as i3 from "@angular/common";
17
+ /**
18
+ * Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
19
+ * Used to display a set of choices related to a task the user initiates.
20
+ */
21
+ export class ActionSheetComponent {
22
+ constructor(element, ngZone, renderer, localizationService) {
23
+ this.element = element;
24
+ this.ngZone = ngZone;
25
+ this.renderer = renderer;
26
+ this.localizationService = localizationService;
27
+ /**
28
+ * @hidden
29
+ */
30
+ this.hostClass = true;
31
+ /**
32
+ * Fires when an ActionSheet item is clicked.
33
+ */
34
+ this.itemClick = new EventEmitter();
35
+ /**
36
+ * Fires when the modal overlay is clicked.
37
+ */
38
+ this.overlayClick = new EventEmitter();
39
+ /**
40
+ * @hidden
41
+ */
42
+ this.titleId = null;
43
+ this.rtl = false;
44
+ this.domSubs = new Subscription();
45
+ validatePackage(packageMetadata);
46
+ this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
47
+ this.rtl = rtl;
48
+ this.direction = this.rtl ? 'rtl' : 'ltr';
49
+ });
50
+ this.titleId = getId('k-actionsheet-title');
51
+ }
52
+ ngAfterViewInit() {
53
+ this.handleInitialFocus();
54
+ this.initDomEvents();
55
+ }
56
+ ngOnDestroy() {
57
+ this.domSubs.unsubscribe();
58
+ if (this.dynamicRTLSubscription) {
59
+ this.dynamicRTLSubscription.unsubscribe();
60
+ }
61
+ }
62
+ /**
63
+ * @hidden
64
+ */
65
+ get topGroupItems() {
66
+ var _a;
67
+ return (_a = this.items) === null || _a === void 0 ? void 0 : _a.filter(item => !item.group || item.group === 'top');
68
+ }
69
+ /**
70
+ * @hidden
71
+ */
72
+ get bottomGroupItems() {
73
+ var _a;
74
+ return (_a = this.items) === null || _a === void 0 ? void 0 : _a.filter(item => item.group === 'bottom');
75
+ }
76
+ /**
77
+ * @hidden
78
+ */
79
+ onItemClick(ev) {
80
+ this.itemClick.emit(ev);
81
+ }
82
+ /**
83
+ * @hidden
84
+ */
85
+ onOverlayClick() {
86
+ this.overlayClick.emit();
87
+ }
88
+ /**
89
+ * @hidden
90
+ */
91
+ get shouldRenderSeparator() {
92
+ var _a, _b;
93
+ return ((_a = this.topGroupItems) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = this.bottomGroupItems) === null || _b === void 0 ? void 0 : _b.length) > 0;
94
+ }
95
+ initDomEvents() {
96
+ if (!this.element) {
97
+ return;
98
+ }
99
+ this.ngZone.runOutsideAngular(() => {
100
+ this.domSubs.add(this.renderer.listen(this.element.nativeElement, 'keydown', (ev) => {
101
+ this.onKeyDown(ev);
102
+ }));
103
+ });
104
+ }
105
+ onKeyDown(event) {
106
+ const target = event.target;
107
+ if (event.keyCode === Keys.Tab) {
108
+ this.ngZone.run(() => {
109
+ this.keepFocusWithinComponent(target, event);
110
+ });
111
+ }
112
+ if (event.keyCode === Keys.Escape) {
113
+ this.ngZone.run(() => {
114
+ this.overlayClick.emit();
115
+ });
116
+ }
117
+ if (event.keyCode === Keys.Enter) {
118
+ this.ngZone.run(() => {
119
+ this.triggerItemClick(target, event);
120
+ });
121
+ }
122
+ }
123
+ handleInitialFocus() {
124
+ const [firstFocusable] = getFirstAndLastFocusable(this.element.nativeElement);
125
+ if (firstFocusable) {
126
+ firstFocusable.focus();
127
+ }
128
+ }
129
+ keepFocusWithinComponent(target, event) {
130
+ const wrapper = this.element.nativeElement;
131
+ const [firstFocusable, lastFocusable] = getFirstAndLastFocusable(wrapper);
132
+ const tabAfterLastFocusable = !event.shiftKey && target === lastFocusable;
133
+ const shiftTabAfterFirstFocusable = event.shiftKey && target === firstFocusable;
134
+ if (tabAfterLastFocusable) {
135
+ event.preventDefault();
136
+ firstFocusable.focus();
137
+ }
138
+ if (shiftTabAfterFirstFocusable) {
139
+ event.preventDefault();
140
+ lastFocusable.focus();
141
+ }
142
+ }
143
+ triggerItemClick(target, event) {
144
+ const itemIndex = getActionSheetItemIndex(target);
145
+ const item = this.items[itemIndex];
146
+ if (!item || item.disabled) {
147
+ return;
148
+ }
149
+ this.itemClick.emit({ item, originalEvent: event });
150
+ }
151
+ }
152
+ ActionSheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
153
+ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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: [
154
+ LocalizationService,
155
+ {
156
+ provide: L10N_PREFIX,
157
+ useValue: 'kendo.actionsheet.component'
158
+ }
159
+ ], queries: [{ propertyName: "titleTemplate", first: true, predicate: ActionSheetTitleTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ActionSheetItemTemplateDirective, descendants: true }], exportAs: ["kendoActionSheet"], ngImport: i0, template: `
160
+ <div class="k-overlay" (click)="onOverlayClick()"></div>
161
+ <div class="k-animation-container">
162
+ <div class="k-child-animation-container" style="bottom: 0px; width: 100%;">
163
+ <div class="k-actionsheet k-actionsheet-bottom"
164
+ style="--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;"
165
+ role="dialog"
166
+ aria-modal="true"
167
+ [attr.aria-labelledby]="titleId">
168
+
169
+ <div *ngIf="title || titleTemplate" class="k-actionsheet-titlebar">
170
+ <div class="k-actionsheet-titlebar-group k-hbox">
171
+ <div class="k-actionsheet-title" [id]="titleId">
172
+ <ng-template *ngIf="titleTemplate; else defaultTemplate"
173
+ [ngTemplateOutlet]="titleTemplate?.templateRef">
174
+ </ng-template>
175
+ <ng-template #defaultTemplate>
176
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
177
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
178
+ </ng-template>
179
+ </div>
180
+ </div>
181
+ </div>
182
+
183
+ <div *ngIf="topGroupItems || bottomGroupItems" class="k-actionsheet-content">
184
+ <ul *ngIf="topGroupItems" kendoActionSheetList
185
+ class="k-list-ul"
186
+ role="group"
187
+ [groupItems]="topGroupItems"
188
+ [allItems]="items"
189
+ [itemTemplate]="itemTemplate?.templateRef"
190
+ (itemClick)="onItemClick($event)">
191
+ </ul>
192
+
193
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
194
+
195
+ <ul *ngIf="bottomGroupItems" kendoActionSheetList
196
+ class="k-list-ul"
197
+ role="group"
198
+ [groupItems]="bottomGroupItems"
199
+ [allItems]="items"
200
+ [itemTemplate]="itemTemplate?.templateRef"
201
+ (itemClick)="onItemClick($event)">
202
+ </ul>
203
+ </div>
204
+ </div>
205
+ </div>
206
+ </div>
207
+ `, isInline: true, components: [{ type: i2.ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetComponent, decorators: [{
209
+ type: Component,
210
+ args: [{
211
+ exportAs: 'kendoActionSheet',
212
+ selector: 'kendo-actionsheet',
213
+ template: `
214
+ <div class="k-overlay" (click)="onOverlayClick()"></div>
215
+ <div class="k-animation-container">
216
+ <div class="k-child-animation-container" style="bottom: 0px; width: 100%;">
217
+ <div class="k-actionsheet k-actionsheet-bottom"
218
+ style="--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;"
219
+ role="dialog"
220
+ aria-modal="true"
221
+ [attr.aria-labelledby]="titleId">
222
+
223
+ <div *ngIf="title || titleTemplate" class="k-actionsheet-titlebar">
224
+ <div class="k-actionsheet-titlebar-group k-hbox">
225
+ <div class="k-actionsheet-title" [id]="titleId">
226
+ <ng-template *ngIf="titleTemplate; else defaultTemplate"
227
+ [ngTemplateOutlet]="titleTemplate?.templateRef">
228
+ </ng-template>
229
+ <ng-template #defaultTemplate>
230
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
231
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
232
+ </ng-template>
233
+ </div>
234
+ </div>
235
+ </div>
236
+
237
+ <div *ngIf="topGroupItems || bottomGroupItems" class="k-actionsheet-content">
238
+ <ul *ngIf="topGroupItems" kendoActionSheetList
239
+ class="k-list-ul"
240
+ role="group"
241
+ [groupItems]="topGroupItems"
242
+ [allItems]="items"
243
+ [itemTemplate]="itemTemplate?.templateRef"
244
+ (itemClick)="onItemClick($event)">
245
+ </ul>
246
+
247
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
248
+
249
+ <ul *ngIf="bottomGroupItems" kendoActionSheetList
250
+ class="k-list-ul"
251
+ role="group"
252
+ [groupItems]="bottomGroupItems"
253
+ [allItems]="items"
254
+ [itemTemplate]="itemTemplate?.templateRef"
255
+ (itemClick)="onItemClick($event)">
256
+ </ul>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ `,
262
+ providers: [
263
+ LocalizationService,
264
+ {
265
+ provide: L10N_PREFIX,
266
+ useValue: 'kendo.actionsheet.component'
267
+ }
268
+ ]
269
+ }]
270
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
271
+ type: HostBinding,
272
+ args: ['class.k-actionsheet-container']
273
+ }], direction: [{
274
+ type: HostBinding,
275
+ args: ['attr.dir']
276
+ }], title: [{
277
+ type: Input
278
+ }], subtitle: [{
279
+ type: Input
280
+ }], items: [{
281
+ type: Input
282
+ }], itemClick: [{
283
+ type: Output
284
+ }], overlayClick: [{
285
+ type: Output
286
+ }], titleTemplate: [{
287
+ type: ContentChild,
288
+ args: [ActionSheetTitleTemplateDirective]
289
+ }], itemTemplate: [{
290
+ type: ContentChild,
291
+ args: [ActionSheetItemTemplateDirective]
292
+ }] } });
@@ -0,0 +1,102 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, Input, HostBinding } from "@angular/core";
6
+ import { isPresent, hexColorRegex } from "../common/util";
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/common";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export class ActionSheetItemComponent {
13
+ constructor() {
14
+ this.pointerClass = true;
15
+ }
16
+ manageIconClasses(item) {
17
+ let classes = ['k-actionsheet-item-icon'];
18
+ if (item.icon) {
19
+ classes.push(`k-icon k-i-${item.icon}`);
20
+ }
21
+ if (item.iconClass) {
22
+ classes.push(`${item.iconClass}`);
23
+ }
24
+ const isHexColor = isPresent(item.iconColor) && hexColorRegex.test(item.iconColor);
25
+ const isThemeColor = isPresent(item.iconColor) && item.iconColor !== '' && !isHexColor;
26
+ if (isThemeColor) {
27
+ classes.push(`k-text-${item.iconColor}`);
28
+ }
29
+ return classes.join(' ');
30
+ }
31
+ manageIconStyles(item) {
32
+ const isHexColor = isPresent(item.iconColor) && hexColorRegex.test(item.iconColor);
33
+ const isSizeSet = isPresent(item.iconSize) && item.iconSize !== '';
34
+ const styles = {};
35
+ if (isHexColor) {
36
+ styles.color = item.iconColor;
37
+ }
38
+ if (isSizeSet) {
39
+ styles.fontSize = item.iconSize;
40
+ }
41
+ return styles;
42
+ }
43
+ }
44
+ ActionSheetItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
45
+ ActionSheetItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetItemComponent, selector: "[kendoActionSheetItem]", inputs: { itemTemplate: "itemTemplate", item: "item" }, host: { properties: { "class.k-cursor-pointer": "this.pointerClass" } }, ngImport: i0, template: `
46
+ <ng-template *ngIf="itemTemplate; else defaultTemplate"
47
+ [ngTemplateOutlet]="itemTemplate"
48
+ [ngTemplateOutletContext]="{
49
+ $implicit: item
50
+ }">
51
+ </ng-template>
52
+ <ng-template #defaultTemplate>
53
+ <span class="k-actionsheet-action">
54
+ <span *ngIf="item.icon || item.iconClass" class="k-icon-wrap">
55
+ <span
56
+ [class]="manageIconClasses(item)"
57
+ [style]="manageIconStyles(item)">
58
+ </span>
59
+ </span>
60
+ <span *ngIf="item.title || item.description" class="k-actionsheet-item-text">
61
+ <span *ngIf="item.title" class="k-actionsheet-item-title">{{item.title}}</span>
62
+ <span *ngIf="item.description" class="k-actionsheet-item-description">{{item.description}}</span>
63
+ </span>
64
+ </span>
65
+ </ng-template>
66
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetItemComponent, decorators: [{
68
+ type: Component,
69
+ args: [{
70
+ // eslint-disable-next-line @angular-eslint/component-selector
71
+ selector: '[kendoActionSheetItem]',
72
+ template: `
73
+ <ng-template *ngIf="itemTemplate; else defaultTemplate"
74
+ [ngTemplateOutlet]="itemTemplate"
75
+ [ngTemplateOutletContext]="{
76
+ $implicit: item
77
+ }">
78
+ </ng-template>
79
+ <ng-template #defaultTemplate>
80
+ <span class="k-actionsheet-action">
81
+ <span *ngIf="item.icon || item.iconClass" class="k-icon-wrap">
82
+ <span
83
+ [class]="manageIconClasses(item)"
84
+ [style]="manageIconStyles(item)">
85
+ </span>
86
+ </span>
87
+ <span *ngIf="item.title || item.description" class="k-actionsheet-item-text">
88
+ <span *ngIf="item.title" class="k-actionsheet-item-title">{{item.title}}</span>
89
+ <span *ngIf="item.description" class="k-actionsheet-item-description">{{item.description}}</span>
90
+ </span>
91
+ </span>
92
+ </ng-template>
93
+ `
94
+ }]
95
+ }], propDecorators: { itemTemplate: [{
96
+ type: Input
97
+ }], item: [{
98
+ type: Input
99
+ }], pointerClass: [{
100
+ type: HostBinding,
101
+ args: ['class.k-cursor-pointer']
102
+ }] } });
@@ -0,0 +1,95 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, Input, Output, EventEmitter } from "@angular/core";
6
+ import { Subscription } from "rxjs";
7
+ import { getActionSheetItemIndex } from "../common/util";
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "./item.component";
10
+ import * as i2 from "@angular/common";
11
+ /**
12
+ * @hidden
13
+ */
14
+ export class ActionSheetListComponent {
15
+ constructor(renderer, ngZone, element) {
16
+ this.renderer = renderer;
17
+ this.ngZone = ngZone;
18
+ this.element = element;
19
+ this.groupItems = [];
20
+ this.allItems = [];
21
+ this.itemClick = new EventEmitter();
22
+ this.subscriptions = new Subscription();
23
+ }
24
+ ngAfterViewInit() {
25
+ this.initDomEvents();
26
+ }
27
+ ngOnDestroy() {
28
+ this.subscriptions.unsubscribe();
29
+ }
30
+ initDomEvents() {
31
+ if (!this.element) {
32
+ return;
33
+ }
34
+ this.ngZone.runOutsideAngular(() => {
35
+ const nativeElement = this.element.nativeElement;
36
+ this.subscriptions.add(this.renderer.listen(nativeElement, 'click', this.clickHandler.bind(this)));
37
+ });
38
+ }
39
+ clickHandler(e) {
40
+ const itemIndex = getActionSheetItemIndex(e.target);
41
+ const item = this.allItems[itemIndex];
42
+ if (!item) {
43
+ return;
44
+ }
45
+ if (item.disabled) {
46
+ e.preventDefault();
47
+ return;
48
+ }
49
+ this.ngZone.run(() => {
50
+ this.itemClick.emit({ item, originalEvent: e });
51
+ });
52
+ }
53
+ }
54
+ ActionSheetListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetListComponent, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
55
+ ActionSheetListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: { groupItems: "groupItems", allItems: "allItems", itemTemplate: "itemTemplate" }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: `
56
+ <li *ngFor="let item of groupItems" kendoActionSheetItem
57
+ tabindex="0"
58
+ role="option"
59
+ [attr.aria-disabled]="item.disabled"
60
+ [class.k-actionsheet-item]="true"
61
+ [class.k-disabled]="item.disabled"
62
+ [ngClass]="item.cssClass"
63
+ [ngStyle]="item.cssStyle"
64
+ [itemTemplate]="itemTemplate"
65
+ [item]="item">
66
+ </li>
67
+ `, isInline: true, components: [{ type: i1.ActionSheetItemComponent, selector: "[kendoActionSheetItem]", inputs: ["itemTemplate", "item"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetListComponent, decorators: [{
69
+ type: Component,
70
+ args: [{
71
+ // eslint-disable-next-line @angular-eslint/component-selector
72
+ selector: '[kendoActionSheetList]',
73
+ template: `
74
+ <li *ngFor="let item of groupItems" kendoActionSheetItem
75
+ tabindex="0"
76
+ role="option"
77
+ [attr.aria-disabled]="item.disabled"
78
+ [class.k-actionsheet-item]="true"
79
+ [class.k-disabled]="item.disabled"
80
+ [ngClass]="item.cssClass"
81
+ [ngStyle]="item.cssStyle"
82
+ [itemTemplate]="itemTemplate"
83
+ [item]="item">
84
+ </li>
85
+ `
86
+ }]
87
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ElementRef }]; }, propDecorators: { groupItems: [{
88
+ type: Input
89
+ }], allItems: [{
90
+ type: Input
91
+ }], itemTemplate: [{
92
+ type: Input
93
+ }], itemClick: [{
94
+ type: Output
95
+ }] } });
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export { ActionSheetItemClickEvent } from './item-click.event';
6
+ export { ActionSheetTitleTemplateDirective } from '../templates/title-template.directive';
7
+ export { ActionSheetItemTemplateDirective } from '../templates/item-template.directive';
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Arguments for the `itemClick` event of the ActionSheet.
7
+ */
8
+ export class ActionSheetItemClickEvent {
9
+ }
@@ -0,0 +1,26 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, Optional } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the item content of the ActionSheet.
9
+ * To define the template, nest an `<ng-template>` tag
10
+ * with the `kendoActionSheetItemTemplate` directive inside the `<kendo-actionsheet>` tag.
11
+ */
12
+ export class ActionSheetItemTemplateDirective {
13
+ constructor(templateRef) {
14
+ this.templateRef = templateRef;
15
+ }
16
+ }
17
+ ActionSheetItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
18
+ ActionSheetItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetItemTemplateDirective, selector: "[kendoActionSheetItemTemplate]", ngImport: i0 });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetItemTemplateDirective, decorators: [{
20
+ type: Directive,
21
+ args: [{
22
+ selector: '[kendoActionSheetItemTemplate]'
23
+ }]
24
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
25
+ type: Optional
26
+ }] }]; } });
@@ -0,0 +1,26 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, Optional } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the title content of the ActionSheet. Utilizing the template overrides both the `title` and `subtitle` of the ActionSheet.
9
+ * To define the template, nest an `<ng-template>` tag
10
+ * with the `kendoActionSheetTitleTemplate` directive inside the `<kendo-actionsheet>` tag.
11
+ */
12
+ export class ActionSheetTitleTemplateDirective {
13
+ constructor(templateRef) {
14
+ this.templateRef = templateRef;
15
+ }
16
+ }
17
+ ActionSheetTitleTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetTitleTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
18
+ ActionSheetTitleTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetTitleTemplateDirective, selector: "[kendoActionSheetTitleTemplate]", ngImport: i0 });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetTitleTemplateDirective, decorators: [{
20
+ type: Directive,
21
+ args: [{
22
+ selector: '[kendoActionSheetTitleTemplate]'
23
+ }]
24
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
25
+ type: Optional
26
+ }] }]; } });