@progress/kendo-angular-layout 16.0.0-develop.4 → 16.0.0-develop.6
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/esm2020/index.mjs +7 -0
- package/esm2020/layout.module.mjs +7 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timeline/events/navigation-direction.mjs +5 -0
- package/esm2020/timeline/localization/custom-messages.component.mjs +41 -0
- package/esm2020/timeline/localization/localized-messages.directive.mjs +37 -0
- package/esm2020/timeline/localization/messages.mjs +25 -0
- package/esm2020/timeline/models/anchor-target.mjs +5 -0
- package/esm2020/timeline/models/default-model-fields.mjs +16 -0
- package/esm2020/timeline/models/model-fields.mjs +5 -0
- package/esm2020/timeline/models/timeline-event.mjs +5 -0
- package/esm2020/timeline/templates/timeline-card-actions.directive.mjs +29 -0
- package/esm2020/timeline/templates/timeline-card-body.directive.mjs +29 -0
- package/esm2020/timeline/templates/timeline-card-header.directive.mjs +29 -0
- package/esm2020/timeline/timeline-card.component.mjs +402 -0
- package/esm2020/timeline/timeline-horizontal.component.mjs +722 -0
- package/esm2020/timeline/timeline-vertical.component.mjs +175 -0
- package/esm2020/timeline/timeline.component.mjs +418 -0
- package/esm2020/timeline/timeline.service.mjs +31 -0
- package/esm2020/timeline/util.mjs +26 -0
- package/esm2020/timeline.module.mjs +65 -0
- package/fesm2015/progress-kendo-angular-layout.mjs +1996 -63
- package/fesm2020/progress-kendo-angular-layout.mjs +1969 -63
- package/index.d.ts +10 -0
- package/layout.module.d.ts +2 -1
- package/package.json +7 -7
- package/timeline/events/navigation-direction.d.ts +5 -0
- package/timeline/localization/custom-messages.component.d.ts +17 -0
- package/timeline/localization/localized-messages.directive.d.ts +16 -0
- package/timeline/localization/messages.d.ts +21 -0
- package/timeline/models/anchor-target.d.ts +5 -0
- package/timeline/models/default-model-fields.d.ts +9 -0
- package/timeline/models/model-fields.d.ts +51 -0
- package/timeline/models/timeline-event.d.ts +49 -0
- package/timeline/templates/timeline-card-actions.directive.d.ts +20 -0
- package/timeline/templates/timeline-card-body.directive.d.ts +20 -0
- package/timeline/templates/timeline-card-header.directive.d.ts +20 -0
- package/timeline/timeline-card.component.d.ts +59 -0
- package/timeline/timeline-horizontal.component.d.ts +110 -0
- package/timeline/timeline-vertical.component.d.ts +41 -0
- package/timeline/timeline.component.d.ts +186 -0
- package/timeline/timeline.service.d.ts +17 -0
- package/timeline/util.d.ts +18 -0
- package/timeline.module.d.ts +31 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { AfterContentInit, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
6
|
+
import { Orientation } from '../common/orientation';
|
|
7
|
+
import { TimelineModelFields } from './models/model-fields';
|
|
8
|
+
import { TimelineHorizontalComponent } from './timeline-horizontal.component';
|
|
9
|
+
import { TimelineVerticalComponent } from './timeline-vertical.component';
|
|
10
|
+
import { TimelineService } from './timeline.service';
|
|
11
|
+
import { NavigationDirection } from './events/navigation-direction';
|
|
12
|
+
import { TimelineCardBodyTemplateDirective } from './templates/timeline-card-body.directive';
|
|
13
|
+
import { TimelineCardHeaderTemplateDirective } from './templates/timeline-card-header.directive';
|
|
14
|
+
import { TimelineCardActionsTemplateDirective } from './templates/timeline-card-actions.directive';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
/**
|
|
17
|
+
* Represents the [Kendo UI Timeline component for Angular]({% slug overview_timeline %}).
|
|
18
|
+
*/
|
|
19
|
+
export declare class TimelineComponent implements AfterContentInit, OnDestroy {
|
|
20
|
+
private timelineService;
|
|
21
|
+
/**
|
|
22
|
+
* An array of event instances which will be shown by the Timeline.
|
|
23
|
+
*/
|
|
24
|
+
set events(events: any[]);
|
|
25
|
+
get events(): any[];
|
|
26
|
+
/**
|
|
27
|
+
* The names of the model fields from which the Timeline will read its data.
|
|
28
|
+
*/
|
|
29
|
+
set modelFields(value: TimelineModelFields);
|
|
30
|
+
get modelFields(): TimelineModelFields;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the orientation of the axis.
|
|
33
|
+
*
|
|
34
|
+
* @default 'vertical'
|
|
35
|
+
*/
|
|
36
|
+
orientation: Orientation;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies whether to render events alternatingly on both sides of the axis.
|
|
39
|
+
* Applicable when `orientation` is set to `vertical`.
|
|
40
|
+
*
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
alterMode: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies whether the event cards can be collapsed.
|
|
46
|
+
*
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
collapsibleEvents: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies whether the user can use dedicated shortcuts to interact with the Timeline.
|
|
52
|
+
*
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
navigable: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies whether an event's date label will be visible.
|
|
58
|
+
*
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
showDateLabels: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the time for sliding to the next event in horizontal mode and the time for collapsing the event in vertical mode. The default value are:
|
|
64
|
+
* > 300ms for horizontal
|
|
65
|
+
* > 400ms for vertical
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
animation: boolean | number;
|
|
70
|
+
/**
|
|
71
|
+
* Sets a specific width for the event.
|
|
72
|
+
* This setting is supported only in vertical mode.
|
|
73
|
+
*
|
|
74
|
+
* @default 400
|
|
75
|
+
*/
|
|
76
|
+
get eventWidth(): number;
|
|
77
|
+
set eventWidth(value: number);
|
|
78
|
+
/**
|
|
79
|
+
* Sets a specific height for the event.
|
|
80
|
+
* > This setting is supported only in horizontal mode.
|
|
81
|
+
*
|
|
82
|
+
* @default 600
|
|
83
|
+
*/
|
|
84
|
+
get eventHeight(): number;
|
|
85
|
+
set eventHeight(value: number);
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
*/
|
|
89
|
+
get animationDuration(): number;
|
|
90
|
+
/**
|
|
91
|
+
* Specifies the date format for displaying the event date.
|
|
92
|
+
*
|
|
93
|
+
* @default 'MMMM dd, yyyy'
|
|
94
|
+
*/
|
|
95
|
+
set dateFormat(value: string);
|
|
96
|
+
get dateFormat(): string;
|
|
97
|
+
hostClass: boolean;
|
|
98
|
+
get verticalClass(): boolean;
|
|
99
|
+
get horizontalClass(): boolean;
|
|
100
|
+
get alternatingClass(): boolean;
|
|
101
|
+
get collapsibleClass(): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
timelineHorizontal: TimelineHorizontalComponent;
|
|
106
|
+
/**
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
109
|
+
timelineVertical: TimelineVerticalComponent;
|
|
110
|
+
/**
|
|
111
|
+
* @hidden
|
|
112
|
+
*/
|
|
113
|
+
cardHeaderTemplate: QueryList<TimelineCardHeaderTemplateDirective>;
|
|
114
|
+
/**
|
|
115
|
+
* @hidden
|
|
116
|
+
*/
|
|
117
|
+
cardBodyTemplate: QueryList<TimelineCardBodyTemplateDirective>;
|
|
118
|
+
/**
|
|
119
|
+
* @hidden
|
|
120
|
+
*/
|
|
121
|
+
cardActionsTemplate: QueryList<TimelineCardActionsTemplateDirective>;
|
|
122
|
+
/**
|
|
123
|
+
* Fires when a card is toggled.
|
|
124
|
+
* > This event is emitted in vertical mode only.
|
|
125
|
+
*/
|
|
126
|
+
onToggle: EventEmitter<number>;
|
|
127
|
+
/**
|
|
128
|
+
* Fires when a card's action is clicked.
|
|
129
|
+
*/
|
|
130
|
+
onActionClick: EventEmitter<number>;
|
|
131
|
+
/**
|
|
132
|
+
* Fires when the left or right arrow is clicked.
|
|
133
|
+
* > This event is emitted in horizontal mode only.
|
|
134
|
+
*/
|
|
135
|
+
onNavigate: EventEmitter<NavigationDirection>;
|
|
136
|
+
/**
|
|
137
|
+
* @hidden
|
|
138
|
+
*/
|
|
139
|
+
headerTemplate: TimelineCardHeaderTemplateDirective;
|
|
140
|
+
/**
|
|
141
|
+
* @hidden
|
|
142
|
+
*/
|
|
143
|
+
bodyTemplate: TimelineCardBodyTemplateDirective;
|
|
144
|
+
/**
|
|
145
|
+
* @hidden
|
|
146
|
+
*/
|
|
147
|
+
actionsTemplate: TimelineCardActionsTemplateDirective;
|
|
148
|
+
private _events;
|
|
149
|
+
private _modelFields;
|
|
150
|
+
private _eventWidth;
|
|
151
|
+
private _eventHeight;
|
|
152
|
+
private _dateFormat;
|
|
153
|
+
private originalData;
|
|
154
|
+
private subscriptions;
|
|
155
|
+
constructor(timelineService: TimelineService);
|
|
156
|
+
ngAfterContentInit(): void;
|
|
157
|
+
ngOnDestroy(): void;
|
|
158
|
+
/**
|
|
159
|
+
* Switches to the previous portion of events.
|
|
160
|
+
* > This method is supported only in horizontal mode.
|
|
161
|
+
*/
|
|
162
|
+
previous(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Switches to the next portion of events.
|
|
165
|
+
* > This method is supported only in horizontal mode.
|
|
166
|
+
*/
|
|
167
|
+
next(): void;
|
|
168
|
+
/**
|
|
169
|
+
* Open event details.
|
|
170
|
+
* > This method is supported only in horizontal mode.
|
|
171
|
+
*/
|
|
172
|
+
open(index: number): void;
|
|
173
|
+
/**
|
|
174
|
+
* Expands an event.
|
|
175
|
+
* > This method is supported only in vertical mode.
|
|
176
|
+
*/
|
|
177
|
+
expand(index: number): void;
|
|
178
|
+
/**
|
|
179
|
+
* Collapses an event.
|
|
180
|
+
* > This method is supported only in vertical mode.
|
|
181
|
+
*/
|
|
182
|
+
collapse(index: number): void;
|
|
183
|
+
private initTemplates;
|
|
184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineComponent, never>;
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "kendo-timeline", ["kendoTimeline"], { "events": "events"; "modelFields": "modelFields"; "orientation": "orientation"; "alterMode": "alterMode"; "collapsibleEvents": "collapsibleEvents"; "navigable": "navigable"; "showDateLabels": "showDateLabels"; "animation": "animation"; "eventWidth": "eventWidth"; "eventHeight": "eventHeight"; "dateFormat": "dateFormat"; }, { "onToggle": "onToggle"; "onActionClick": "onActionClick"; "onNavigate": "onNavigate"; }, ["cardHeaderTemplate", "cardBodyTemplate", "cardActionsTemplate"], never, false, never>;
|
|
186
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { NavigationDirection } from "./events/navigation-direction";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class TimelineService {
|
|
11
|
+
timeline: any;
|
|
12
|
+
onToggle(event: number): void;
|
|
13
|
+
onActionClick(event: number): void;
|
|
14
|
+
onNavigate(event: NavigationDirection): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimelineService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TimelineModelFields } from './models/model-fields';
|
|
6
|
+
import { TimelineEvent } from './models/timeline-event';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare const processItems: (items: any[], fields: TimelineModelFields) => TimelineEvent[];
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const parseItem: (item: any, fields: TimelineModelFields) => TimelineEvent;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare const MAX_VISIBLE_EVENTS = 3;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./timeline/timeline.component";
|
|
7
|
+
import * as i2 from "./timeline/localization/custom-messages.component";
|
|
8
|
+
import * as i3 from "./timeline/templates/timeline-card-header.directive";
|
|
9
|
+
import * as i4 from "./timeline/templates/timeline-card-body.directive";
|
|
10
|
+
import * as i5 from "./timeline/templates/timeline-card-actions.directive";
|
|
11
|
+
import * as i6 from "./timeline/timeline-vertical.component";
|
|
12
|
+
import * as i7 from "./timeline/timeline-horizontal.component";
|
|
13
|
+
import * as i8 from "./timeline/timeline-card.component";
|
|
14
|
+
import * as i9 from "./timeline/localization/localized-messages.directive";
|
|
15
|
+
import * as i10 from "@angular/common";
|
|
16
|
+
import * as i11 from "./card.module";
|
|
17
|
+
import * as i12 from "@progress/kendo-angular-buttons";
|
|
18
|
+
import * as i13 from "@progress/kendo-angular-icons";
|
|
19
|
+
import * as i14 from "@progress/kendo-angular-intl";
|
|
20
|
+
/**
|
|
21
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
22
|
+
* definition for the Timeline component.
|
|
23
|
+
*
|
|
24
|
+
* The module registers:
|
|
25
|
+
* - `TimelineComponent`—The `TimelineComponent` component class.
|
|
26
|
+
*/
|
|
27
|
+
export declare class TimelineModule {
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineModule, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TimelineModule, [typeof i1.TimelineComponent, typeof i2.TimelineCustomMessagesComponent, typeof i3.TimelineCardHeaderTemplateDirective, typeof i4.TimelineCardBodyTemplateDirective, typeof i5.TimelineCardActionsTemplateDirective, typeof i6.TimelineVerticalComponent, typeof i7.TimelineHorizontalComponent, typeof i8.TimelineCardComponent, typeof i9.LocalizedTimelineMessagesDirective], [typeof i10.CommonModule, typeof i11.CardModule, typeof i12.ButtonModule, typeof i13.IconsModule, typeof i14.IntlModule], [typeof i1.TimelineComponent, typeof i2.TimelineCustomMessagesComponent, typeof i3.TimelineCardHeaderTemplateDirective, typeof i4.TimelineCardBodyTemplateDirective, typeof i5.TimelineCardActionsTemplateDirective]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TimelineModule>;
|
|
31
|
+
}
|