@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.
@@ -2,24 +2,27 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from '@angular/core';
6
- import { ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective } from './models';
5
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
6
+ import { ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective, ActionSheetAnimation } from './models';
7
7
  import { ActionSheetItem } from './models/actionsheet-item.interface';
8
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
9
+ import { AnimationBuilder } from '@angular/animations';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * Represents the [Kendo UI ActionSheet component for Angular]({% slug overview_actionsheet %}).
12
13
  * Used to display a set of choices related to a task the user initiates.
13
14
  */
14
- export declare class ActionSheetComponent implements AfterViewInit, OnDestroy {
15
+ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, OnChanges {
15
16
  private element;
16
17
  private ngZone;
17
18
  private renderer;
18
19
  private localizationService;
20
+ private builder;
21
+ private cdr;
19
22
  /**
20
23
  * @hidden
21
24
  */
22
- hostClass: boolean;
25
+ get hostClass(): boolean;
23
26
  /**
24
27
  * @hidden
25
28
  */
@@ -36,6 +39,37 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy {
36
39
  * The collection of items that will be rendered in the ActionSheet.
37
40
  */
38
41
  items: Array<ActionSheetItem>;
42
+ /**
43
+ * The CSS classes that will be rendered on the inner ActionSheet element.
44
+ * Supports the type of values that are supported by [ngClass](link:site.data.urls.angular['ngclassapi']).
45
+ */
46
+ cssClass: any;
47
+ /**
48
+ * Configures the ActionSheet opening and closing animations ([see example]({% slug animations_actionsheet %})).
49
+ * By default the animations are turned off. The default animations' duration is `300ms`.
50
+ *
51
+ * @default true
52
+ */
53
+ animation: boolean | ActionSheetAnimation;
54
+ /**
55
+ * Specifies the state of the ActionSheet.
56
+ *
57
+ * @default false
58
+ */
59
+ expanded: boolean;
60
+ /**
61
+ * Fires when the `expanded` property of the component is updated.
62
+ * Used to provide a two-way binding for the `expanded` property.
63
+ */
64
+ expandedChange: EventEmitter<boolean>;
65
+ /**
66
+ * Fires when the ActionSheet is expanded and its animation is complete.
67
+ */
68
+ expand: EventEmitter<any>;
69
+ /**
70
+ * Fires when the ActionSheet is collapsed and its animation is complete.
71
+ */
72
+ collapse: EventEmitter<any>;
39
73
  /**
40
74
  * Fires when an ActionSheet item is clicked.
41
75
  */
@@ -44,6 +78,14 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy {
44
78
  * Fires when the modal overlay is clicked.
45
79
  */
46
80
  overlayClick: EventEmitter<any>;
81
+ /**
82
+ * @hidden
83
+ */
84
+ childContainer: ElementRef;
85
+ /**
86
+ * @hidden
87
+ */
88
+ actionSheetTemplate: ActionSheetTemplateDirective;
47
89
  /**
48
90
  * @hidden
49
91
  */
@@ -67,9 +109,16 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy {
67
109
  private dynamicRTLSubscription;
68
110
  private rtl;
69
111
  private domSubs;
70
- constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2, localizationService: LocalizationService);
112
+ private player;
113
+ private animationEnd;
114
+ constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2, localizationService: LocalizationService, builder: AnimationBuilder, cdr: ChangeDetectorRef);
71
115
  ngAfterViewInit(): void;
116
+ ngOnChanges(changes: SimpleChanges): void;
72
117
  ngOnDestroy(): void;
118
+ /**
119
+ * Toggles the visibility of the ActionSheet.
120
+ */
121
+ toggle(): void;
73
122
  /**
74
123
  * @hidden
75
124
  */
@@ -95,6 +144,9 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy {
95
144
  private handleInitialFocus;
96
145
  private keepFocusWithinComponent;
97
146
  private triggerItemClick;
147
+ private setExpanded;
148
+ private onAnimationEnd;
149
+ private playAnimation;
98
150
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetComponent, never>;
99
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionSheetComponent, "kendo-actionsheet", ["kendoActionSheet"], { "title": "title"; "subtitle": "subtitle"; "items": "items"; }, { "itemClick": "itemClick"; "overlayClick": "overlayClick"; }, ["headerTemplate", "contentTemplate", "itemTemplate", "footerTemplate"], never>;
151
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionSheetComponent, "kendo-actionsheet", ["kendoActionSheet"], { "title": "title"; "subtitle": "subtitle"; "items": "items"; "cssClass": "cssClass"; "animation": "animation"; "expanded": "expanded"; }, { "expandedChange": "expandedChange"; "expand": "expand"; "collapse": "collapse"; "itemClick": "itemClick"; "overlayClick": "overlayClick"; }, ["actionSheetTemplate", "headerTemplate", "contentTemplate", "itemTemplate", "footerTemplate"], never>;
100
152
  }
@@ -0,0 +1,13 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { AnimationMetadata } from '@angular/animations';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare function slideUp(duration: number, height: string): AnimationMetadata[];
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare function slideDown(duration: number, height: string): AnimationMetadata[];
@@ -0,0 +1,13 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The settings for the opening and closing animations of the ActionSheet ([see example]({% slug animations_actionsheet %})).
7
+ */
8
+ export interface ActionSheetAnimation {
9
+ /**
10
+ * Defines the duration of the ActionSheet opening and closing animations in milliseconds.
11
+ */
12
+ duration?: number;
13
+ }
@@ -9,3 +9,5 @@ export { ActionSheetHeaderTemplateDirective } from '../templates/header-template
9
9
  export { ActionSheetItemTemplateDirective } from '../templates/item-template.directive';
10
10
  export { ActionSheetContentTemplateDirective } from '../templates/content-template.directive';
11
11
  export { ActionSheetFooterTemplateDirective } from '../templates/footer-template.directive';
12
+ export { ActionSheetAnimation } from './animation';
13
+ export { ActionSheetTemplateDirective } from '../templates/actionsheet-template';
@@ -0,0 +1,17 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the content of the ActionSheet.
9
+ * To define the template, nest an `<ng-template>` tag
10
+ * with the `kendoActionSheetTemplate` directive inside the `<kendo-actionsheet>` tag.
11
+ */
12
+ export declare class ActionSheetTemplateDirective {
13
+ templateRef: TemplateRef<any>;
14
+ constructor(templateRef: TemplateRef<any>);
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetTemplateDirective, [{ optional: true; }]>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ActionSheetTemplateDirective, "[kendoActionSheetTemplate]", never, {}, {}, never>;
17
+ }
@@ -10,8 +10,9 @@ import * as i4 from "./actionsheet/templates/header-template.directive";
10
10
  import * as i5 from "./actionsheet/templates/item-template.directive";
11
11
  import * as i6 from "./actionsheet/templates/content-template.directive";
12
12
  import * as i7 from "./actionsheet/templates/footer-template.directive";
13
- import * as i8 from "@angular/common";
14
- import * as i9 from "@progress/kendo-angular-icons";
13
+ import * as i8 from "./actionsheet/templates/actionsheet-template";
14
+ import * as i9 from "@angular/common";
15
+ import * as i10 from "@progress/kendo-angular-icons";
15
16
  /**
16
17
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
17
18
  * definition for the ActionSheet component.
@@ -46,6 +47,6 @@ import * as i9 from "@progress/kendo-angular-icons";
46
47
  */
47
48
  export declare class ActionSheetModule {
48
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetModule, never>;
49
- static ɵmod: i0.ɵɵNgModuleDeclaration<ActionSheetModule, [typeof i1.ActionSheetItemComponent, typeof i2.ActionSheetListComponent, typeof i3.ActionSheetComponent, typeof i4.ActionSheetHeaderTemplateDirective, typeof i5.ActionSheetItemTemplateDirective, typeof i6.ActionSheetContentTemplateDirective, typeof i7.ActionSheetFooterTemplateDirective], [typeof i8.CommonModule, typeof i9.IconsModule], [typeof i3.ActionSheetComponent, typeof i4.ActionSheetHeaderTemplateDirective, typeof i5.ActionSheetItemTemplateDirective, typeof i6.ActionSheetContentTemplateDirective, typeof i7.ActionSheetFooterTemplateDirective]>;
50
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ActionSheetModule, [typeof i1.ActionSheetItemComponent, typeof i2.ActionSheetListComponent, typeof i3.ActionSheetComponent, typeof i4.ActionSheetHeaderTemplateDirective, typeof i5.ActionSheetItemTemplateDirective, typeof i6.ActionSheetContentTemplateDirective, typeof i7.ActionSheetFooterTemplateDirective, typeof i8.ActionSheetTemplateDirective], [typeof i9.CommonModule, typeof i10.IconsModule], [typeof i3.ActionSheetComponent, typeof i4.ActionSheetHeaderTemplateDirective, typeof i5.ActionSheetItemTemplateDirective, typeof i6.ActionSheetContentTemplateDirective, typeof i7.ActionSheetFooterTemplateDirective, typeof i8.ActionSheetTemplateDirective]>;
50
51
  static ɵinj: i0.ɵɵInjectorDeclaration<ActionSheetModule>;
51
52
  }
@@ -42,10 +42,10 @@ import * as i0 from "@angular/core";
42
42
  * ```
43
43
  */
44
44
  export declare class BreadCrumbComponent implements OnInit, AfterViewInit, OnDestroy {
45
+ private localization;
45
46
  private el;
46
47
  private cdr;
47
48
  private zone;
48
- private localization;
49
49
  /**
50
50
  * The collection of items that will be rendered in the Breadcrumb.
51
51
  */
@@ -102,7 +102,7 @@ export declare class BreadCrumbComponent implements OnInit, AfterViewInit, OnDes
102
102
  private afterViewInit;
103
103
  private subscriptions;
104
104
  private direction;
105
- constructor(el: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, zone: NgZone, localization: LocalizationService);
105
+ constructor(localization: LocalizationService, el: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, zone: NgZone);
106
106
  ngOnInit(): void;
107
107
  ngAfterViewInit(): void;
108
108
  ngOnDestroy(): void;