@progress/kendo-angular-navigation 19.0.0-develop.1 → 19.0.0-develop.3
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-view.component.d.ts +32 -0
- package/actionsheet/actionsheet.component.d.ts +60 -7
- package/actionsheet/models/actionsheet-action-layout.d.ts +34 -0
- package/actionsheet/models/actionsheet-action.d.ts +64 -0
- package/actionsheet/models/index.d.ts +2 -0
- package/actionsheet.module.d.ts +7 -6
- package/directives.d.ts +3 -2
- package/esm2022/actionsheet/actionsheet-view.component.mjs +145 -0
- package/esm2022/actionsheet/actionsheet.component.mjs +246 -111
- package/esm2022/actionsheet/models/actionsheet-action-layout.mjs +5 -0
- package/esm2022/actionsheet/models/actionsheet-action.mjs +5 -0
- package/esm2022/actionsheet.module.mjs +7 -6
- package/esm2022/directives.mjs +2 -0
- package/esm2022/index.mjs +1 -0
- package/esm2022/navigation.module.mjs +15 -14
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-navigation.mjs +393 -123
- package/index.d.ts +2 -1
- package/navigation.module.d.ts +14 -13
- package/package.json +6 -6
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ActionSheetHeaderTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective } from './models';
|
|
6
|
+
import { ActionSheetComponent } from './actionsheet.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*
|
|
11
|
+
* Represents the [Kendo UI ActionSheetView component for Angular].
|
|
12
|
+
* Used to display multiple views.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ActionSheetViewComponent {
|
|
15
|
+
actionSheet: ActionSheetComponent;
|
|
16
|
+
title: string;
|
|
17
|
+
subtitle: string;
|
|
18
|
+
titleId: string;
|
|
19
|
+
hostClass: boolean;
|
|
20
|
+
animated: boolean;
|
|
21
|
+
transitionDuration: string;
|
|
22
|
+
transitionProperty: string;
|
|
23
|
+
headerTemplate: ActionSheetHeaderTemplateDirective;
|
|
24
|
+
contentTemplate: ActionSheetContentTemplateDirective;
|
|
25
|
+
footerTemplate: ActionSheetFooterTemplateDirective;
|
|
26
|
+
actionSheetTemplate: ActionSheetTemplateDirective;
|
|
27
|
+
constructor(actionSheet: ActionSheetComponent);
|
|
28
|
+
get orientationClass(): string;
|
|
29
|
+
get alignmentClass(): string;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetViewComponent, [{ optional: true; host: true; }]>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionSheetViewComponent, "kendo-actionsheet-view", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "titleId": { "alias": "titleId"; "required": false; }; }, {}, ["headerTemplate", "contentTemplate", "footerTemplate", "actionSheetTemplate"], never, true, never>;
|
|
32
|
+
}
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
* Copyright © 2025 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, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges, QueryList } from '@angular/core';
|
|
6
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
9
|
import { AnimationBuilder } from '@angular/animations';
|
|
10
|
+
import { ActionSheetAction } from './models/actionsheet-action';
|
|
11
|
+
import { ActionSheetActionsLayout } from './models/actionsheet-action-layout';
|
|
12
|
+
import { ActionSheetViewComponent } from './actionsheet-view.component';
|
|
10
13
|
import * as i0 from "@angular/core";
|
|
11
14
|
/**
|
|
12
|
-
* Represents the [Kendo UI ActionSheet component for Angular](
|
|
15
|
+
* Represents the [Kendo UI ActionSheet component for Angular](slug:overview_actionsheet).
|
|
13
16
|
* Used to display a set of choices related to a task the user initiates.
|
|
14
17
|
*/
|
|
15
18
|
export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
@@ -19,6 +22,10 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
19
22
|
private localizationService;
|
|
20
23
|
private builder;
|
|
21
24
|
private cdr;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
currentView: number;
|
|
22
29
|
/**
|
|
23
30
|
* @hidden
|
|
24
31
|
*/
|
|
@@ -27,6 +34,21 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
27
34
|
* @hidden
|
|
28
35
|
*/
|
|
29
36
|
direction: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the ActionSheet action buttons.
|
|
39
|
+
*/
|
|
40
|
+
actions: ActionSheetAction[];
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the layout of the action buttons.
|
|
43
|
+
* By default, the action buttons are rendered horizontally and stretched.
|
|
44
|
+
*/
|
|
45
|
+
actionsLayout: ActionSheetActionsLayout;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies if the ActionSheet is closed on overlay click.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
overlayClickClose: boolean;
|
|
30
52
|
/**
|
|
31
53
|
* Specifies the text that is rendered as title.
|
|
32
54
|
*/
|
|
@@ -45,8 +67,13 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
45
67
|
*/
|
|
46
68
|
cssClass: any;
|
|
47
69
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
70
|
+
* The inline styles that will be rendered on the inner ActionSheet element.
|
|
71
|
+
* Supports the type of values that are supported by [ngStyle](link:site.data.urls.angular['ngstyleapi']).
|
|
72
|
+
*/
|
|
73
|
+
cssStyle: any;
|
|
74
|
+
/**
|
|
75
|
+
* Configures the ActionSheet opening and closing animations ([see example](slug:animations_actionsheet)).
|
|
76
|
+
* By default, the animations are turned off. The default animations' duration is `300ms`.
|
|
50
77
|
*
|
|
51
78
|
* @default true
|
|
52
79
|
*/
|
|
@@ -59,8 +86,8 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
59
86
|
expanded: boolean;
|
|
60
87
|
/**
|
|
61
88
|
* Sets the `aria-labelledby` attribute of the ActionSheet wrapper element.
|
|
62
|
-
* Use this option when the built-in header element is replaced through the [`ActionSheetHeaderTemplate`](
|
|
63
|
-
* or [`ActionSheetContentTemplate`](
|
|
89
|
+
* Use this option when the built-in header element is replaced through the [`ActionSheetHeaderTemplate`](slug:api_navigation_actionsheetheadertemplatedirective)
|
|
90
|
+
* or [`ActionSheetContentTemplate`](slug:api_navigation_actionsheetcontenttemplatedirective).
|
|
64
91
|
*
|
|
65
92
|
*/
|
|
66
93
|
titleId: string;
|
|
@@ -69,6 +96,10 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
69
96
|
* Used to provide a two-way binding for the `expanded` property.
|
|
70
97
|
*/
|
|
71
98
|
expandedChange: EventEmitter<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Fires when any of the ActionSheet action buttons is clicked.
|
|
101
|
+
*/
|
|
102
|
+
action: EventEmitter<ActionSheetAction>;
|
|
72
103
|
/**
|
|
73
104
|
* Fires when the ActionSheet is expanded and its animation is complete.
|
|
74
105
|
*/
|
|
@@ -89,6 +120,10 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
89
120
|
* @hidden
|
|
90
121
|
*/
|
|
91
122
|
childContainer: ElementRef;
|
|
123
|
+
/**
|
|
124
|
+
* @hidden
|
|
125
|
+
*/
|
|
126
|
+
actionSheetViews: QueryList<ActionSheetViewComponent>;
|
|
92
127
|
/**
|
|
93
128
|
* @hidden
|
|
94
129
|
*/
|
|
@@ -118,12 +153,30 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
118
153
|
ngAfterViewInit(): void;
|
|
119
154
|
ngOnChanges(changes: SimpleChanges): void;
|
|
120
155
|
ngOnDestroy(): void;
|
|
156
|
+
/**
|
|
157
|
+
* @hidden
|
|
158
|
+
* Navigates to the next view.
|
|
159
|
+
*/
|
|
160
|
+
nextView(): void;
|
|
161
|
+
/**
|
|
162
|
+
* @hidden
|
|
163
|
+
* Navigates to the previous view.
|
|
164
|
+
*/
|
|
165
|
+
prevView(): void;
|
|
121
166
|
/**
|
|
122
167
|
* Toggles the visibility of the ActionSheet.
|
|
123
168
|
*
|
|
124
169
|
* @param expanded? - Boolean. Specifies if the ActionSheet will be expanded or collapsed.
|
|
125
170
|
*/
|
|
126
171
|
toggle(expanded?: boolean): void;
|
|
172
|
+
/**
|
|
173
|
+
* @hidden
|
|
174
|
+
*/
|
|
175
|
+
get orientationClass(): string;
|
|
176
|
+
/**
|
|
177
|
+
* @hidden
|
|
178
|
+
*/
|
|
179
|
+
get alignmentClass(): string | null;
|
|
127
180
|
/**
|
|
128
181
|
* @hidden
|
|
129
182
|
*/
|
|
@@ -154,5 +207,5 @@ export declare class ActionSheetComponent implements AfterViewInit, OnDestroy, O
|
|
|
154
207
|
private onAnimationEnd;
|
|
155
208
|
private playAnimation;
|
|
156
209
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetComponent, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionSheetComponent, "kendo-actionsheet", ["kendoActionSheet"], { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "items": { "alias": "items"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "titleId": { "alias": "titleId"; "required": false; }; }, { "expandedChange": "expandedChange"; "expand": "expand"; "collapse": "collapse"; "itemClick": "itemClick"; "overlayClick": "overlayClick"; }, ["actionSheetTemplate", "headerTemplate", "contentTemplate", "itemTemplate", "footerTemplate"],
|
|
210
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionSheetComponent, "kendo-actionsheet", ["kendoActionSheet"], { "actions": { "alias": "actions"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "overlayClickClose": { "alias": "overlayClickClose"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "items": { "alias": "items"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "titleId": { "alias": "titleId"; "required": false; }; }, { "expandedChange": "expandedChange"; "action": "action"; "expand": "expand"; "collapse": "collapse"; "itemClick": "itemClick"; "overlayClick": "overlayClick"; }, ["actionSheetTemplate", "headerTemplate", "contentTemplate", "itemTemplate", "footerTemplate", "actionSheetViews"], ["kendo-actionsheet-view"], true, never>;
|
|
158
211
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Defines the possible orientations for the ActionSheet action buttons.
|
|
7
|
+
* - `horizontal`: The actions are laid out in a horizontal row.
|
|
8
|
+
* - `vertical`: The actions are stacked vertically.
|
|
9
|
+
*/
|
|
10
|
+
export type ActionSheetActionsOrientation = 'horizontal' | 'vertical';
|
|
11
|
+
/**
|
|
12
|
+
* Defines the possible alignments for the ActionSheet action buttons.
|
|
13
|
+
* - `start`: Aligns the actions to the start of the container.
|
|
14
|
+
* - `center`: Centers the actions within the container.
|
|
15
|
+
* - `end`: Aligns the actions to the end of the container.
|
|
16
|
+
* - `stretched`: Stretches the actions to fill the available space.
|
|
17
|
+
* - `justify`: Justifies the actions to distribute them evenly across the container.
|
|
18
|
+
*/
|
|
19
|
+
export type ActionSheetActionsAlignment = 'start' | 'center' | 'end' | 'stretched' | 'justify';
|
|
20
|
+
/**
|
|
21
|
+
* Represents the layout configuration for the ActionSheet action buttons.
|
|
22
|
+
*/
|
|
23
|
+
export interface ActionSheetActionsLayout {
|
|
24
|
+
/**
|
|
25
|
+
* The orientation of the actions.
|
|
26
|
+
* Defaults to `horizontal` if not specified.
|
|
27
|
+
*/
|
|
28
|
+
orientation?: ActionSheetActionsOrientation;
|
|
29
|
+
/**
|
|
30
|
+
* The alignment of the actions within the container.
|
|
31
|
+
* Defaults to `stretched` if not specified.
|
|
32
|
+
*/
|
|
33
|
+
alignment?: ActionSheetActionsAlignment;
|
|
34
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ButtonFillMode, ButtonSize, ButtonThemeColor } from "@progress/kendo-angular-buttons";
|
|
6
|
+
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
7
|
+
/**
|
|
8
|
+
* The settings for the ActionSheet action buttons.
|
|
9
|
+
*/
|
|
10
|
+
export interface ActionSheetAction {
|
|
11
|
+
/**
|
|
12
|
+
* The unique identifier of the action button.
|
|
13
|
+
*/
|
|
14
|
+
id?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* The text of the action button.
|
|
17
|
+
*/
|
|
18
|
+
text?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The font icon of the action button.
|
|
21
|
+
*/
|
|
22
|
+
icon?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The SVG icon of the action button.
|
|
25
|
+
*/
|
|
26
|
+
svgIcon?: SVGIcon;
|
|
27
|
+
/**
|
|
28
|
+
* The title of the action button. The title shows as the default tooltip for the action button.
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The size of the action button. The supported values are:
|
|
33
|
+
* - `small`
|
|
34
|
+
* - `medium`
|
|
35
|
+
* - `large`
|
|
36
|
+
* - `none`
|
|
37
|
+
*/
|
|
38
|
+
size?: ButtonSize;
|
|
39
|
+
/**
|
|
40
|
+
* The fill mode of the action button. The supported values are:
|
|
41
|
+
* - `flat`
|
|
42
|
+
* - `outline`
|
|
43
|
+
* - `solid`
|
|
44
|
+
* - `link`
|
|
45
|
+
* - `clear`
|
|
46
|
+
* - `none`
|
|
47
|
+
*/
|
|
48
|
+
fillMode?: ButtonFillMode;
|
|
49
|
+
/**
|
|
50
|
+
* The theme color of the action button. The possible values are:
|
|
51
|
+
* - `base`: Applies coloring based on the base theme color.
|
|
52
|
+
* - `primary`: Applies coloring based on the primary theme color.
|
|
53
|
+
* - `secondary`: Applies coloring based on the secondary theme color.
|
|
54
|
+
* - `tertiary`: Applies coloring based on the tertiary theme color.
|
|
55
|
+
* - `info`: Applies coloring based on the info theme color.
|
|
56
|
+
* - `success`: Applies coloring based on the success theme color.
|
|
57
|
+
* - `warning`: Applies coloring based on the warning theme color.
|
|
58
|
+
* - `error`: Applies coloring based on the error theme color.
|
|
59
|
+
* - `dark`: Applies coloring based on the dark theme color.
|
|
60
|
+
* - `light`: Applies coloring based on the light theme color.
|
|
61
|
+
* - `inverse`: Applies coloring based on the inverse theme color.
|
|
62
|
+
*/
|
|
63
|
+
themeColor?: ButtonThemeColor;
|
|
64
|
+
}
|
|
@@ -11,3 +11,5 @@ export { ActionSheetContentTemplateDirective } from '../templates/content-templa
|
|
|
11
11
|
export { ActionSheetFooterTemplateDirective } from '../templates/footer-template.directive';
|
|
12
12
|
export { ActionSheetAnimation } from './animation';
|
|
13
13
|
export { ActionSheetTemplateDirective } from '../templates/actionsheet-template';
|
|
14
|
+
export { ActionSheetActionsLayout, ActionSheetActionsOrientation, ActionSheetActionsAlignment } from './actionsheet-action-layout';
|
|
15
|
+
export { ActionSheetAction } from './actionsheet-action';
|
package/actionsheet.module.d.ts
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./actionsheet/actionsheet.component";
|
|
7
|
-
import * as i2 from "./actionsheet/
|
|
8
|
-
import * as i3 from "./actionsheet/templates/
|
|
9
|
-
import * as i4 from "./actionsheet/templates/
|
|
10
|
-
import * as i5 from "./actionsheet/templates/
|
|
11
|
-
import * as i6 from "./actionsheet/templates/
|
|
7
|
+
import * as i2 from "./actionsheet/actionsheet-view.component";
|
|
8
|
+
import * as i3 from "./actionsheet/templates/header-template.directive";
|
|
9
|
+
import * as i4 from "./actionsheet/templates/item-template.directive";
|
|
10
|
+
import * as i5 from "./actionsheet/templates/content-template.directive";
|
|
11
|
+
import * as i6 from "./actionsheet/templates/footer-template.directive";
|
|
12
|
+
import * as i7 from "./actionsheet/templates/actionsheet-template";
|
|
12
13
|
/**
|
|
13
14
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
14
15
|
* definition for the ActionSheet component.
|
|
@@ -43,6 +44,6 @@ import * as i6 from "./actionsheet/templates/actionsheet-template";
|
|
|
43
44
|
*/
|
|
44
45
|
export declare class ActionSheetModule {
|
|
45
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionSheetModule, never>;
|
|
46
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ActionSheetModule, never, [typeof i1.ActionSheetComponent, typeof i2.
|
|
47
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ActionSheetModule, never, [typeof i1.ActionSheetComponent, typeof i2.ActionSheetViewComponent, typeof i3.ActionSheetHeaderTemplateDirective, typeof i4.ActionSheetItemTemplateDirective, typeof i5.ActionSheetContentTemplateDirective, typeof i6.ActionSheetFooterTemplateDirective, typeof i7.ActionSheetTemplateDirective], [typeof i1.ActionSheetComponent, typeof i2.ActionSheetViewComponent, typeof i3.ActionSheetHeaderTemplateDirective, typeof i4.ActionSheetItemTemplateDirective, typeof i5.ActionSheetContentTemplateDirective, typeof i6.ActionSheetFooterTemplateDirective, typeof i7.ActionSheetTemplateDirective]>;
|
|
47
48
|
static ɵinj: i0.ɵɵInjectorDeclaration<ActionSheetModule>;
|
|
48
49
|
}
|
package/directives.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2025 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 { ActionSheetViewComponent } from "./actionsheet/actionsheet-view.component";
|
|
5
6
|
import { ActionSheetComponent } from "./actionsheet/actionsheet.component";
|
|
6
7
|
import { ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetTemplateDirective } from "./actionsheet/models";
|
|
7
8
|
import { AppBarSectionComponent } from "./appbar/appbar-section.component";
|
|
@@ -14,7 +15,7 @@ import { BreadCrumbItemTemplateDirective } from "./breadcrumb/template-directive
|
|
|
14
15
|
/**
|
|
15
16
|
* Utility array that contains all `ActionSheet` related components and directives.
|
|
16
17
|
*/
|
|
17
|
-
export declare const KENDO_ACTIONSHEET: readonly [typeof ActionSheetComponent, typeof ActionSheetHeaderTemplateDirective, typeof ActionSheetItemTemplateDirective, typeof ActionSheetContentTemplateDirective, typeof ActionSheetFooterTemplateDirective, typeof ActionSheetTemplateDirective];
|
|
18
|
+
export declare const KENDO_ACTIONSHEET: readonly [typeof ActionSheetComponent, typeof ActionSheetViewComponent, typeof ActionSheetHeaderTemplateDirective, typeof ActionSheetItemTemplateDirective, typeof ActionSheetContentTemplateDirective, typeof ActionSheetFooterTemplateDirective, typeof ActionSheetTemplateDirective];
|
|
18
19
|
/**
|
|
19
20
|
* Utility array that contains all `AppBar` related components and directives.
|
|
20
21
|
*/
|
|
@@ -30,4 +31,4 @@ export declare const KENDO_BREADCRUMB: readonly [typeof BreadCrumbComponent, typ
|
|
|
30
31
|
/**
|
|
31
32
|
* Utility array that contains all `@progress/kendo-angular-navigation` related components and directives.
|
|
32
33
|
*/
|
|
33
|
-
export declare const KENDO_NAVIGATION: readonly [typeof ActionSheetComponent, typeof ActionSheetHeaderTemplateDirective, typeof ActionSheetItemTemplateDirective, typeof ActionSheetContentTemplateDirective, typeof ActionSheetFooterTemplateDirective, typeof ActionSheetTemplateDirective, typeof AppBarComponent, typeof AppBarSectionComponent, typeof AppBarSpacerComponent, typeof BottomNavigationComponent, typeof BottomNavigationItemTemplateDirective, typeof BreadCrumbComponent, typeof BreadCrumbItemTemplateDirective];
|
|
34
|
+
export declare const KENDO_NAVIGATION: readonly [typeof ActionSheetComponent, typeof ActionSheetViewComponent, typeof ActionSheetHeaderTemplateDirective, typeof ActionSheetItemTemplateDirective, typeof ActionSheetContentTemplateDirective, typeof ActionSheetFooterTemplateDirective, typeof ActionSheetTemplateDirective, typeof AppBarComponent, typeof AppBarSectionComponent, typeof AppBarSpacerComponent, typeof BottomNavigationComponent, typeof BottomNavigationItemTemplateDirective, typeof BreadCrumbComponent, typeof BreadCrumbItemTemplateDirective];
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 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, Host, HostBinding, Input, Optional } from '@angular/core';
|
|
6
|
+
import { ActionSheetHeaderTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective } from './models';
|
|
7
|
+
import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common';
|
|
8
|
+
import { getId } from '../common/util';
|
|
9
|
+
import { ActionSheetComponent } from './actionsheet.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "./actionsheet.component";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*
|
|
15
|
+
* Represents the [Kendo UI ActionSheetView component for Angular].
|
|
16
|
+
* Used to display multiple views.
|
|
17
|
+
*/
|
|
18
|
+
export class ActionSheetViewComponent {
|
|
19
|
+
actionSheet;
|
|
20
|
+
title;
|
|
21
|
+
subtitle;
|
|
22
|
+
titleId = getId('k-actionsheet-title');
|
|
23
|
+
hostClass = true;
|
|
24
|
+
animated = true;
|
|
25
|
+
transitionDuration = '500ms';
|
|
26
|
+
transitionProperty = 'transform';
|
|
27
|
+
headerTemplate;
|
|
28
|
+
contentTemplate;
|
|
29
|
+
footerTemplate;
|
|
30
|
+
actionSheetTemplate;
|
|
31
|
+
constructor(actionSheet) {
|
|
32
|
+
this.actionSheet = actionSheet;
|
|
33
|
+
}
|
|
34
|
+
get orientationClass() {
|
|
35
|
+
return this.actionSheet?.orientationClass;
|
|
36
|
+
}
|
|
37
|
+
get alignmentClass() {
|
|
38
|
+
return this.actionSheet?.alignmentClass;
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetViewComponent, deps: [{ token: i1.ActionSheetComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionSheetViewComponent, isStandalone: true, selector: "kendo-actionsheet-view", inputs: { title: "title", subtitle: "subtitle", titleId: "titleId" }, host: { properties: { "class.k-actionsheet-view": "this.hostClass", "class.k-actionsheet-view-animated": "this.animated", "style.transition-duration": "this.transitionDuration", "style.transition-property": "this.transitionProperty" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ActionSheetHeaderTemplateDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ActionSheetContentTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ActionSheetFooterTemplateDirective, descendants: true }, { propertyName: "actionSheetTemplate", first: true, predicate: ActionSheetTemplateDirective, descendants: true }], ngImport: i0, template: `
|
|
42
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
43
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
44
|
+
</ng-template>
|
|
45
|
+
|
|
46
|
+
<ng-template #defaultTemplate>
|
|
47
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
48
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate" [ngTemplateOutlet]="headerTemplate.templateRef">
|
|
49
|
+
</ng-template>
|
|
50
|
+
|
|
51
|
+
<ng-template #defaultHeaderTemplate>
|
|
52
|
+
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
53
|
+
<div class="k-actionsheet-title" [id]="titleId">
|
|
54
|
+
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
55
|
+
<div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</ng-template>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div *ngIf="contentTemplate" class="k-actionsheet-content">
|
|
62
|
+
<ng-template [ngTemplateOutlet]="contentTemplate.templateRef">
|
|
63
|
+
</ng-template>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div *ngIf="footerTemplate" [ngClass]="[orientationClass, alignmentClass, 'k-actions', 'k-actionsheet-footer']">
|
|
67
|
+
<ng-template [ngTemplateOutlet]="footerTemplate.templateRef">
|
|
68
|
+
</ng-template>
|
|
69
|
+
</div>
|
|
70
|
+
</ng-template>
|
|
71
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetViewComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: 'kendo-actionsheet-view',
|
|
77
|
+
template: `
|
|
78
|
+
<ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
|
|
79
|
+
[ngTemplateOutlet]="actionSheetTemplate?.templateRef">
|
|
80
|
+
</ng-template>
|
|
81
|
+
|
|
82
|
+
<ng-template #defaultTemplate>
|
|
83
|
+
<div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
|
|
84
|
+
<ng-template *ngIf="headerTemplate; else defaultHeaderTemplate" [ngTemplateOutlet]="headerTemplate.templateRef">
|
|
85
|
+
</ng-template>
|
|
86
|
+
|
|
87
|
+
<ng-template #defaultHeaderTemplate>
|
|
88
|
+
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
89
|
+
<div class="k-actionsheet-title" [id]="titleId">
|
|
90
|
+
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
91
|
+
<div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</ng-template>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div *ngIf="contentTemplate" class="k-actionsheet-content">
|
|
98
|
+
<ng-template [ngTemplateOutlet]="contentTemplate.templateRef">
|
|
99
|
+
</ng-template>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div *ngIf="footerTemplate" [ngClass]="[orientationClass, alignmentClass, 'k-actions', 'k-actionsheet-footer']">
|
|
103
|
+
<ng-template [ngTemplateOutlet]="footerTemplate.templateRef">
|
|
104
|
+
</ng-template>
|
|
105
|
+
</div>
|
|
106
|
+
</ng-template>
|
|
107
|
+
`,
|
|
108
|
+
standalone: true,
|
|
109
|
+
imports: [NgIf, NgClass, NgTemplateOutlet]
|
|
110
|
+
}]
|
|
111
|
+
}], ctorParameters: function () { return [{ type: i1.ActionSheetComponent, decorators: [{
|
|
112
|
+
type: Optional
|
|
113
|
+
}, {
|
|
114
|
+
type: Host
|
|
115
|
+
}] }]; }, propDecorators: { title: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], subtitle: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], titleId: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}], hostClass: [{
|
|
122
|
+
type: HostBinding,
|
|
123
|
+
args: ['class.k-actionsheet-view']
|
|
124
|
+
}], animated: [{
|
|
125
|
+
type: HostBinding,
|
|
126
|
+
args: ['class.k-actionsheet-view-animated']
|
|
127
|
+
}], transitionDuration: [{
|
|
128
|
+
type: HostBinding,
|
|
129
|
+
args: ['style.transition-duration']
|
|
130
|
+
}], transitionProperty: [{
|
|
131
|
+
type: HostBinding,
|
|
132
|
+
args: ['style.transition-property']
|
|
133
|
+
}], headerTemplate: [{
|
|
134
|
+
type: ContentChild,
|
|
135
|
+
args: [ActionSheetHeaderTemplateDirective]
|
|
136
|
+
}], contentTemplate: [{
|
|
137
|
+
type: ContentChild,
|
|
138
|
+
args: [ActionSheetContentTemplateDirective]
|
|
139
|
+
}], footerTemplate: [{
|
|
140
|
+
type: ContentChild,
|
|
141
|
+
args: [ActionSheetFooterTemplateDirective]
|
|
142
|
+
}], actionSheetTemplate: [{
|
|
143
|
+
type: ContentChild,
|
|
144
|
+
args: [ActionSheetTemplateDirective]
|
|
145
|
+
}] } });
|