@progress/kendo-angular-layout 17.0.0-develop.3 → 17.0.0-develop.31
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/README.md +42 -27
- package/avatar/avatar.component.d.ts +1 -1
- package/avatar/l10n/messages.d.ts +1 -1
- package/avatar/models/fill.d.ts +1 -1
- package/avatar/models/rounded.d.ts +1 -1
- package/avatar/models/shape.d.ts +2 -2
- package/avatar/models/size.d.ts +1 -1
- package/avatar/models/theme-color.d.ts +1 -1
- package/card/card-actions.component.d.ts +1 -1
- package/card/card.component.d.ts +1 -1
- package/card/directives/card-separator.directive.d.ts +1 -1
- package/card/models/actions-layout.d.ts +1 -1
- package/common/direction.d.ts +1 -1
- package/common/orientation.d.ts +1 -1
- package/drawer/drawer.component.d.ts +1 -1
- package/drawer/item.component.d.ts +1 -1
- package/drawer/list.component.d.ts +1 -1
- package/drawer/models/drawer-item-expand.interface.d.ts +1 -1
- package/drawer/models/mode.d.ts +1 -1
- package/drawer/models/position.d.ts +1 -1
- package/{esm2020 → esm2022}/avatar/avatar.component.mjs +61 -25
- package/{esm2020 → esm2022}/avatar/l10n/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/avatar/l10n/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/avatar/l10n/messages.mjs +7 -3
- package/{esm2020 → esm2022}/avatar.module.mjs +4 -4
- package/{esm2020 → esm2022}/card/card-actions.component.mjs +37 -31
- package/{esm2020 → esm2022}/card/card-body.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card-footer.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card-header.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card.component.mjs +40 -34
- package/{esm2020 → esm2022}/card/directives/card-media.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/directives/card-separator.directive.mjs +16 -14
- package/{esm2020 → esm2022}/card/directives/card-subtitle.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/directives/card-title.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/models/card-action.mjs +12 -0
- package/{esm2020 → esm2022}/card.module.mjs +4 -4
- package/{esm2020 → esm2022}/common/preventable-event.mjs +7 -7
- package/{esm2020 → esm2022}/drawer/drawer-container.component.mjs +28 -18
- package/{esm2020 → esm2022}/drawer/drawer-content.component.mjs +6 -7
- package/{esm2020 → esm2022}/drawer/drawer.component.mjs +132 -106
- package/{esm2020 → esm2022}/drawer/drawer.service.mjs +10 -10
- package/{esm2020 → esm2022}/drawer/events/drawer-list-select.event.mjs +12 -0
- package/{esm2020 → esm2022}/drawer/events/select-event.mjs +16 -0
- package/{esm2020 → esm2022}/drawer/item.component.mjs +22 -11
- package/{esm2020 → esm2022}/drawer/list.component.mjs +14 -6
- package/{esm2020 → esm2022}/drawer/template-directives/drawer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer.module.mjs +4 -4
- package/{esm2020 → esm2022}/expansionpanel/events/action-event.mjs +4 -0
- package/{esm2020 → esm2022}/expansionpanel/expansionpanel-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/expansionpanel/expansionpanel.component.mjs +103 -81
- package/{esm2020 → esm2022}/expansionpanel.module.mjs +4 -4
- package/{esm2020 → esm2022}/gridlayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/layout.module.mjs +4 -4
- package/{esm2020 → esm2022}/layouts/grid-layout.component.mjs +57 -26
- package/{esm2020 → esm2022}/layouts/gridlayout-item.component.mjs +26 -4
- package/{esm2020 → esm2022}/layouts/stack-layout.component.mjs +40 -35
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/panelbar/events/collapse-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/expand-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/item-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/panelbar/events/select-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/state-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/panelbar-content.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item.component.mjs +99 -64
- package/{esm2020 → esm2022}/panelbar/panelbar.component.mjs +109 -98
- package/{esm2020 → esm2022}/panelbar/panelbar.service.mjs +23 -13
- package/{esm2020 → esm2022}/panelbar.module.mjs +4 -4
- package/{esm2020 → esm2022}/splitter/splitter-bar.component.mjs +68 -28
- package/esm2022/splitter/splitter-pane.component.mjs +262 -0
- package/{esm2020 → esm2022}/splitter/splitter.component.mjs +98 -40
- package/{esm2020 → esm2022}/splitter/splitter.service.mjs +69 -28
- package/{esm2020 → esm2022}/splitter.module.mjs +4 -4
- package/{esm2020 → esm2022}/stacklayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/stepper/events/activate-event.mjs +16 -0
- package/{esm2020 → esm2022}/stepper/list.component.mjs +23 -5
- package/{esm2020 → esm2022}/stepper/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/stepper/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/stepper/localization/messages.mjs +7 -3
- package/{esm2020 → esm2022}/stepper/step.component.mjs +25 -8
- package/{esm2020 → esm2022}/stepper/stepper.component.mjs +109 -68
- package/{esm2020 → esm2022}/stepper/stepper.service.mjs +30 -9
- package/{esm2020 → esm2022}/stepper/template-directives/indicator-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper/template-directives/label-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper/template-directives/step-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper.module.mjs +4 -4
- package/{esm2020 → esm2022}/tabstrip/directives/tab-content.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/directives/tab-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/directives/tab.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/events/select-event.mjs +2 -0
- package/{esm2020 → esm2022}/tabstrip/events/tabclose-event.mjs +2 -0
- package/{esm2020 → esm2022}/tabstrip/events/tabscroll-event.mjs +4 -0
- package/{esm2020 → esm2022}/tabstrip/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/tabstrip/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/tabstrip/localization/messages.mjs +15 -3
- package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +117 -0
- package/{esm2020 → esm2022}/tabstrip/rendering/tab.component.mjs +25 -17
- package/{esm2020 → esm2022}/tabstrip/scrollable-button.component.mjs +33 -27
- package/{esm2020 → esm2022}/tabstrip/tabstrip-scroll.service.mjs +11 -9
- package/{esm2020 → esm2022}/tabstrip/tabstrip.component.mjs +150 -106
- package/{esm2020 → esm2022}/tabstrip/tabstrip.service.mjs +6 -3
- package/{esm2020 → esm2022}/tabstrip.module.mjs +4 -4
- package/{esm2020 → esm2022}/tilelayout/dragging-service.mjs +39 -18
- package/{esm2020 → esm2022}/tilelayout/keyboard-navigation.service.mjs +9 -4
- package/{esm2020 → esm2022}/tilelayout/reorder-event.mjs +8 -0
- package/{esm2020 → esm2022}/tilelayout/resize-event.mjs +6 -0
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item-body.component.mjs +6 -8
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item-header.component.mjs +11 -9
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item.component.mjs +78 -48
- package/{esm2020 → esm2022}/tilelayout/tilelayout-resize-handle.directive.mjs +7 -3
- package/{esm2020 → esm2022}/tilelayout/tilelayout.component.mjs +101 -88
- package/{esm2020 → esm2022}/tilelayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/timeline/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timeline/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timeline/localization/messages.mjs +11 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-actions.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-body.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-header.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/timeline-card.component.mjs +49 -34
- package/{esm2020 → esm2022}/timeline/timeline-horizontal.component.mjs +75 -46
- package/{esm2020 → esm2022}/timeline/timeline-vertical.component.mjs +20 -6
- package/{esm2020 → esm2022}/timeline/timeline.component.mjs +108 -68
- package/{esm2020 → esm2022}/timeline/timeline.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline.module.mjs +4 -4
- package/expansionpanel/events/action-event.d.ts +1 -1
- package/expansionpanel/expansionpanel.component.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-layout.mjs +2668 -1733
- package/layouts/grid-layout.component.d.ts +1 -1
- package/layouts/gridlayout-item.component.d.ts +1 -1
- package/layouts/models/layout-horizontal-align.d.ts +1 -1
- package/layouts/models/layout-vertical-align.d.ts +1 -1
- package/layouts/stack-layout.component.d.ts +1 -1
- package/package.json +16 -22
- package/panelbar/panelbar-item.component.d.ts +1 -1
- package/panelbar/panelbar.component.d.ts +1 -1
- package/splitter/splitter-bar.component.d.ts +13 -1
- package/splitter/splitter-pane.component.d.ts +23 -4
- package/splitter/splitter.component.d.ts +12 -4
- package/splitter/splitter.service.d.ts +7 -2
- package/stepper/list.component.d.ts +1 -1
- package/stepper/localization/messages.d.ts +1 -1
- package/stepper/models/orientation.d.ts +1 -1
- package/stepper/models/step-predicate.d.ts +1 -1
- package/stepper/models/step-type.d.ts +1 -1
- package/stepper/step.component.d.ts +1 -1
- package/stepper/stepper.component.d.ts +1 -1
- package/tabstrip/localization/messages.d.ts +1 -1
- package/tabstrip/models/button-state-change.d.ts +1 -1
- package/tabstrip/models/scroll-button-type.d.ts +1 -1
- package/tabstrip/models/scroll-buttons-visibility.d.ts +1 -1
- package/tabstrip/models/tab-alignment.d.ts +1 -1
- package/tabstrip/models/tab-position.d.ts +1 -1
- package/tabstrip/models/tabstrip-tab.component.d.ts +1 -1
- package/tabstrip/rendering/tab.component.d.ts +1 -1
- package/tabstrip/scrollable-button.component.d.ts +1 -1
- package/tabstrip/tabstrip.component.d.ts +3 -1
- package/tilelayout/models/flowmode.type.d.ts +1 -1
- package/tilelayout/tilelayout-item-header.component.d.ts +1 -1
- package/tilelayout/tilelayout-item.component.d.ts +1 -1
- package/tilelayout/tilelayout-resize-handle.directive.d.ts +1 -1
- package/tilelayout/tilelayout.component.d.ts +1 -1
- package/timeline/events/navigation-direction.d.ts +1 -1
- package/timeline/localization/messages.d.ts +1 -1
- package/timeline/models/anchor-target.d.ts +1 -1
- package/timeline/timeline-card.component.d.ts +1 -1
- package/timeline/timeline-horizontal.component.d.ts +1 -1
- package/timeline/timeline-vertical.component.d.ts +1 -1
- package/timeline/timeline.component.d.ts +1 -1
- package/esm2020/splitter/splitter-pane.component.mjs +0 -222
- package/esm2020/tabstrip/models/tabstrip-tab.component.mjs +0 -78
- package/fesm2015/progress-kendo-angular-layout.mjs +0 -12374
- /package/{esm2020 → esm2022}/avatar/models/fill.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/models.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/shape.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/theme-color.mjs +0 -0
- /package/{esm2020 → esm2022}/card/models/actions-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/common/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/styling-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-animation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-item-expand.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-view-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/mode.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/position.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/template-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/types.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/util.mjs +0 -0
- /package/{esm2020 → esm2022}/expansionpanel/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/gridlayout-gap-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/gridlayout-row-col-size.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-align-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-horizontal-align.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-vertical-align.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/util.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/events.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/panelbar-expand-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/panelbar-item-model.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/util.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/step-predicate.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/step-type.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/stepper-step.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/template-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/types.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/events.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/button-state-change.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scroll-button-type.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scroll-buttons-visibility.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scrollable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/tab-alignment.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/tab-position.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/util.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/dragging-config.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/flowmode.type.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/gap.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/navigation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/util.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/events/navigation-direction.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/anchor-target.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/default-model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/timeline-event.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/util.mjs +0 -0
|
@@ -25,19 +25,23 @@ import * as i1 from "./timeline.service";
|
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
27
|
export class TimelineCardComponent {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
element;
|
|
29
|
+
timelineService;
|
|
30
|
+
renderer;
|
|
31
|
+
event;
|
|
32
|
+
expanded = false;
|
|
33
|
+
collapsible = true;
|
|
34
|
+
reversed = false;
|
|
35
|
+
orientation;
|
|
36
|
+
navigable;
|
|
37
|
+
tabIndex;
|
|
38
|
+
animationDuration;
|
|
39
|
+
index;
|
|
40
|
+
eventWidth;
|
|
41
|
+
eventHeight;
|
|
42
|
+
headerTemplate;
|
|
43
|
+
bodyTemplate;
|
|
44
|
+
actionsTemplate;
|
|
41
45
|
set calloutStyle(value) {
|
|
42
46
|
// applies only to horizontal orientation where the callout points upwards
|
|
43
47
|
if (!this.calloutElementRef || !this.calloutElementRef.nativeElement.classList.contains('k-callout-n')) {
|
|
@@ -45,6 +49,8 @@ export class TimelineCardComponent {
|
|
|
45
49
|
}
|
|
46
50
|
this.calloutElementRef.nativeElement.style.left = value?.left;
|
|
47
51
|
}
|
|
52
|
+
calloutElementRef;
|
|
53
|
+
hostClass = true;
|
|
48
54
|
get collapsedClass() {
|
|
49
55
|
return !this.expanded && !this.animationInProgress && this.animationState === 'collapsed';
|
|
50
56
|
}
|
|
@@ -68,6 +74,15 @@ export class TimelineCardComponent {
|
|
|
68
74
|
get ariaExpanded() {
|
|
69
75
|
return this.orientation === 'vertical' ? this.expanded : null;
|
|
70
76
|
}
|
|
77
|
+
calloutSvgIcon = chevronRightIcon;
|
|
78
|
+
calloutFontIcon = 'arrow-chevron-right';
|
|
79
|
+
animationState = this.expanded ? 'expanded' : 'collapsed';
|
|
80
|
+
animationInProgress = false;
|
|
81
|
+
constructor(element, timelineService, renderer) {
|
|
82
|
+
this.element = element;
|
|
83
|
+
this.timelineService = timelineService;
|
|
84
|
+
this.renderer = renderer;
|
|
85
|
+
}
|
|
71
86
|
ngAfterViewInit() {
|
|
72
87
|
this.makeOverflowVisible();
|
|
73
88
|
}
|
|
@@ -123,9 +138,8 @@ export class TimelineCardComponent {
|
|
|
123
138
|
this.renderer.setStyle(cardBody, 'overflow', 'auto');
|
|
124
139
|
}
|
|
125
140
|
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
TimelineCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineCardComponent, isStandalone: true, selector: "kendo-timeline-card", inputs: { event: "event", expanded: "expanded", collapsible: "collapsible", reversed: "reversed", orientation: "orientation", navigable: "navigable", tabIndex: "tabIndex", animationDuration: "animationDuration", index: "index", eventWidth: "eventWidth", eventHeight: "eventHeight", headerTemplate: "headerTemplate", bodyTemplate: "bodyTemplate", actionsTemplate: "actionsTemplate", calloutStyle: "calloutStyle" }, host: { listeners: { "keydown": "onComponentKeyDown($event)" }, properties: { "class.k-timeline-card": "this.hostClass", "class.k-collapsed": "this.collapsedClass" } }, providers: [], viewQueries: [{ propertyName: "calloutElementRef", first: true, predicate: ["callout"], descendants: true }], exportAs: ["kendoTimelineCard"], usesOnChanges: true, ngImport: i0, template: `
|
|
141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineCardComponent, deps: [{ token: i0.ElementRef }, { token: i1.TimelineService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineCardComponent, isStandalone: true, selector: "kendo-timeline-card", inputs: { event: "event", expanded: "expanded", collapsible: "collapsible", reversed: "reversed", orientation: "orientation", navigable: "navigable", tabIndex: "tabIndex", animationDuration: "animationDuration", index: "index", eventWidth: "eventWidth", eventHeight: "eventHeight", headerTemplate: "headerTemplate", bodyTemplate: "bodyTemplate", actionsTemplate: "actionsTemplate", calloutStyle: "calloutStyle" }, host: { listeners: { "keydown": "onComponentKeyDown($event)" }, properties: { "class.k-timeline-card": "this.hostClass", "class.k-collapsed": "this.collapsedClass" } }, providers: [], viewQueries: [{ propertyName: "calloutElementRef", first: true, predicate: ["callout"], descendants: true }], exportAs: ["kendoTimelineCard"], usesOnChanges: true, ngImport: i0, template: `
|
|
129
143
|
<kendo-card
|
|
130
144
|
[ngStyle]="{ 'height': orientation === 'horizontal' ? eventHeight + 'px' : null }"
|
|
131
145
|
[width]="orientation === 'horizontal' ? 'auto' : eventWidth + 'px'"
|
|
@@ -219,24 +233,25 @@ TimelineCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
219
233
|
</kendo-card-actions>
|
|
220
234
|
</div>
|
|
221
235
|
</kendo-card>
|
|
222
|
-
`, isInline: true, dependencies: [{ kind: "component", type: CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardHeaderComponent, selector: "kendo-card-header" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CardTitleDirective, selector: "[kendoCardTitle]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CardHeaderComponent, selector: "kendo-card-header" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CardTitleDirective, selector: "[kendoCardTitle]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: CardSubtitleDirective, selector: "[kendoCardSubtitle]" }, { kind: "component", type: CardBodyComponent, selector: "kendo-card-body" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: CardMediaDirective, selector: "[kendoCardMedia]" }, { kind: "component", type: CardActionsComponent, selector: "kendo-card-actions", inputs: ["orientation", "layout", "actions"], outputs: ["action"] }], animations: [
|
|
237
|
+
trigger('toggle', [
|
|
238
|
+
state('collapsed', style({
|
|
239
|
+
height: '0',
|
|
240
|
+
'overflow-y': 'hidden',
|
|
241
|
+
display: 'none'
|
|
242
|
+
})),
|
|
243
|
+
state('expanded', style({
|
|
244
|
+
height: '*',
|
|
245
|
+
'overflow-y': 'hidden',
|
|
246
|
+
display: 'block'
|
|
247
|
+
})),
|
|
248
|
+
transition('collapsed <=> expanded', [
|
|
249
|
+
animate('{{animationDuration}}ms')
|
|
250
|
+
], { params: { animationDuration: '400' } }),
|
|
251
|
+
])
|
|
252
|
+
] });
|
|
253
|
+
}
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineCardComponent, decorators: [{
|
|
240
255
|
type: Component,
|
|
241
256
|
args: [{
|
|
242
257
|
animations: [
|
|
@@ -26,27 +26,28 @@ const TRANSITION_EVENTS_COUNT = 3;
|
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
28
28
|
export class TimelineHorizontalComponent {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
cdr;
|
|
30
|
+
_zone;
|
|
31
|
+
renderer;
|
|
32
|
+
timelineService;
|
|
33
|
+
localization;
|
|
34
|
+
events = [];
|
|
35
|
+
alterMode;
|
|
36
|
+
collapsibleEvents;
|
|
37
|
+
navigable;
|
|
38
|
+
showDateLabels;
|
|
39
|
+
animationDuration;
|
|
40
|
+
eventHeight;
|
|
41
|
+
dateFormat;
|
|
42
|
+
headerTemplate;
|
|
43
|
+
bodyTemplate;
|
|
44
|
+
actionsTemplate;
|
|
45
|
+
cardElementRefs;
|
|
46
|
+
circleElementRefs;
|
|
47
|
+
flagElementRefs;
|
|
48
|
+
trackElementRef;
|
|
49
|
+
scrollableTrackElementRef;
|
|
50
|
+
cardComponents;
|
|
50
51
|
get selectedEvent() {
|
|
51
52
|
return this._selectedEvent;
|
|
52
53
|
}
|
|
@@ -62,6 +63,34 @@ export class TimelineHorizontalComponent {
|
|
|
62
63
|
this.selectedEventIndex = newSelectedIndex;
|
|
63
64
|
this.calloutStyle = this.calloutOffset;
|
|
64
65
|
}
|
|
66
|
+
trackWrapWidth;
|
|
67
|
+
scrollableTrackWidth;
|
|
68
|
+
cardWidth;
|
|
69
|
+
svgLeftIcon = caretAltLeftIcon;
|
|
70
|
+
svgRightIcon = caretAltRightIcon;
|
|
71
|
+
calloutStyle;
|
|
72
|
+
animationState = 'center';
|
|
73
|
+
translateValue = 0;
|
|
74
|
+
eventsInInterval = [0, 1, 2];
|
|
75
|
+
selectedCardIndex = 0;
|
|
76
|
+
selectedEventIndex;
|
|
77
|
+
tabFlex;
|
|
78
|
+
tabWidth = DEFAULT_TAB_WIDTH;
|
|
79
|
+
visibleTabsCount;
|
|
80
|
+
firstCircleInView = 0;
|
|
81
|
+
visibleEvents = [];
|
|
82
|
+
trackItems = [];
|
|
83
|
+
previousTitle = 'previous';
|
|
84
|
+
nextTitle = 'next';
|
|
85
|
+
_selectedEvent;
|
|
86
|
+
subscriptions = new Subscription();
|
|
87
|
+
constructor(cdr, _zone, renderer, timelineService, localization) {
|
|
88
|
+
this.cdr = cdr;
|
|
89
|
+
this._zone = _zone;
|
|
90
|
+
this.renderer = renderer;
|
|
91
|
+
this.timelineService = timelineService;
|
|
92
|
+
this.localization = localization;
|
|
93
|
+
}
|
|
65
94
|
ngOnInit() {
|
|
66
95
|
this._zone.runOutsideAngular(() => isDocumentAvailable() && this.subscriptions.add(fromEvent(window, 'resize').subscribe(this.handleWindowResize.bind(this))));
|
|
67
96
|
this.l10nChange();
|
|
@@ -451,9 +480,8 @@ export class TimelineHorizontalComponent {
|
|
|
451
480
|
}
|
|
452
481
|
this.cdr.markForCheck();
|
|
453
482
|
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
TimelineHorizontalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineHorizontalComponent, isStandalone: true, selector: "kendo-timeline-horizontal", inputs: { events: "events", alterMode: "alterMode", collapsibleEvents: "collapsibleEvents", navigable: "navigable", showDateLabels: "showDateLabels", animationDuration: "animationDuration", eventHeight: "eventHeight", dateFormat: "dateFormat", headerTemplate: "headerTemplate", bodyTemplate: "bodyTemplate", actionsTemplate: "actionsTemplate" }, providers: [], viewQueries: [{ propertyName: "trackElementRef", first: true, predicate: ["track"], descendants: true }, { propertyName: "scrollableTrackElementRef", first: true, predicate: ["scrollableTrack"], descendants: true }, { propertyName: "cardElementRefs", predicate: ["card"], descendants: true, read: ElementRef }, { propertyName: "circleElementRefs", predicate: ["trackCircle"], descendants: true }, { propertyName: "flagElementRefs", predicate: ["trackFlag"], descendants: true }, { propertyName: "cardComponents", predicate: TimelineCardComponent, descendants: true }], exportAs: ["kendoTimelineHorizontal"], usesOnChanges: true, ngImport: i0, template: `
|
|
483
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineHorizontalComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.TimelineService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
484
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineHorizontalComponent, isStandalone: true, selector: "kendo-timeline-horizontal", inputs: { events: "events", alterMode: "alterMode", collapsibleEvents: "collapsibleEvents", navigable: "navigable", showDateLabels: "showDateLabels", animationDuration: "animationDuration", eventHeight: "eventHeight", dateFormat: "dateFormat", headerTemplate: "headerTemplate", bodyTemplate: "bodyTemplate", actionsTemplate: "actionsTemplate" }, providers: [], viewQueries: [{ propertyName: "trackElementRef", first: true, predicate: ["track"], descendants: true }, { propertyName: "scrollableTrackElementRef", first: true, predicate: ["scrollableTrack"], descendants: true }, { propertyName: "cardElementRefs", predicate: ["card"], descendants: true, read: ElementRef }, { propertyName: "circleElementRefs", predicate: ["trackCircle"], descendants: true }, { propertyName: "flagElementRefs", predicate: ["trackFlag"], descendants: true }, { propertyName: "cardComponents", predicate: TimelineCardComponent, descendants: true }], exportAs: ["kendoTimelineHorizontal"], usesOnChanges: true, ngImport: i0, template: `
|
|
457
485
|
<div class="k-timeline-track-wrap" #track>
|
|
458
486
|
<button
|
|
459
487
|
kendoButton
|
|
@@ -550,28 +578,29 @@ TimelineHorizontalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
550
578
|
</li>
|
|
551
579
|
</ul>
|
|
552
580
|
</div>
|
|
553
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
581
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TimelineCardComponent, selector: "kendo-timeline-card", inputs: ["event", "expanded", "collapsible", "reversed", "orientation", "navigable", "tabIndex", "animationDuration", "index", "eventWidth", "eventHeight", "headerTemplate", "bodyTemplate", "actionsTemplate", "calloutStyle"], exportAs: ["kendoTimelineCard"] }, { kind: "pipe", type: DatePipe, name: "kendoDate" }], animations: [
|
|
582
|
+
trigger('trackSlide', [
|
|
583
|
+
state('left', style({
|
|
584
|
+
transform: `translateX({{transformValue}}%)`,
|
|
585
|
+
}), { params: { transformValue: '0' } }),
|
|
586
|
+
state('right', style({
|
|
587
|
+
transform: `translateX({{transformValue}}%)`,
|
|
588
|
+
}), { params: { transformValue: '0' } }),
|
|
589
|
+
state('center', style({
|
|
590
|
+
transform: `translateX(0)`,
|
|
591
|
+
}))
|
|
592
|
+
]),
|
|
593
|
+
trigger('eventsSlide', [
|
|
594
|
+
transition('* => right', [
|
|
595
|
+
animate('{{animationDuration}}ms', style({ transform: `translateX(-100%)` }))
|
|
596
|
+
], { params: { animationDuration: '400' } }),
|
|
597
|
+
transition('* => left', [
|
|
598
|
+
animate('{{animationDuration}}ms', style({ transform: `translateX(100%)` }))
|
|
599
|
+
], { params: { animationDuration: '400' } })
|
|
600
|
+
])
|
|
601
|
+
] });
|
|
602
|
+
}
|
|
603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineHorizontalComponent, decorators: [{
|
|
575
604
|
type: Component,
|
|
576
605
|
args: [{
|
|
577
606
|
animations: [
|
|
@@ -16,10 +16,24 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
18
18
|
export class TimelineVerticalComponent {
|
|
19
|
+
renderer;
|
|
20
|
+
events = [];
|
|
21
|
+
alterMode;
|
|
22
|
+
collapsibleEvents;
|
|
23
|
+
navigable;
|
|
24
|
+
showDateLabels;
|
|
25
|
+
animationDuration;
|
|
26
|
+
eventWidth;
|
|
27
|
+
dateFormat;
|
|
28
|
+
headerTemplate;
|
|
29
|
+
bodyTemplate;
|
|
30
|
+
actionsTemplate;
|
|
31
|
+
cards;
|
|
32
|
+
dateElementRefs;
|
|
33
|
+
innerDateElementRefs;
|
|
34
|
+
subscriptions = new Subscription();
|
|
19
35
|
constructor(renderer) {
|
|
20
36
|
this.renderer = renderer;
|
|
21
|
-
this.events = [];
|
|
22
|
-
this.subscriptions = new Subscription();
|
|
23
37
|
}
|
|
24
38
|
ngAfterViewInit() {
|
|
25
39
|
this.ariaDescribedByAllEvents();
|
|
@@ -64,9 +78,8 @@ export class TimelineVerticalComponent {
|
|
|
64
78
|
this.renderer.setAttribute(dateElement, 'id', dateLabelId);
|
|
65
79
|
this.renderer.setAttribute(cardElement, 'aria-describedby', dateLabelId);
|
|
66
80
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
TimelineVerticalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineVerticalComponent, isStandalone: true, selector: "kendo-timeline-vertical", inputs: { events: "events", alterMode: "alterMode", collapsibleEvents: "collapsibleEvents", navigable: "navigable", showDateLabels: "showDateLabels", animationDuration: "animationDuration", eventWidth: "eventWidth", dateFormat: "dateFormat", headerTemplate: "headerTemplate", bodyTemplate: "bodyTemplate", actionsTemplate: "actionsTemplate" }, providers: [], viewQueries: [{ propertyName: "cards", predicate: ["card"], descendants: true }, { propertyName: "dateElementRefs", predicate: ["dateWrap"], descendants: true }, { propertyName: "innerDateElementRefs", predicate: ["innerDate"], descendants: true }], exportAs: ["kendoTimelineVertical"], ngImport: i0, template: `
|
|
81
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineVerticalComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
82
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineVerticalComponent, isStandalone: true, selector: "kendo-timeline-vertical", inputs: { events: "events", alterMode: "alterMode", collapsibleEvents: "collapsibleEvents", navigable: "navigable", showDateLabels: "showDateLabels", animationDuration: "animationDuration", eventWidth: "eventWidth", dateFormat: "dateFormat", headerTemplate: "headerTemplate", bodyTemplate: "bodyTemplate", actionsTemplate: "actionsTemplate" }, providers: [], viewQueries: [{ propertyName: "cards", predicate: ["card"], descendants: true }, { propertyName: "dateElementRefs", predicate: ["dateWrap"], descendants: true }, { propertyName: "innerDateElementRefs", predicate: ["innerDate"], descendants: true }], exportAs: ["kendoTimelineVertical"], ngImport: i0, template: `
|
|
70
83
|
<ul *ngIf="events && events.length > 0">
|
|
71
84
|
<ng-container *ngFor="let event of events; let i = index">
|
|
72
85
|
<li class="k-timeline-flag-wrap" *ngIf="event.flag">
|
|
@@ -100,7 +113,8 @@ TimelineVerticalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
100
113
|
</ng-container>
|
|
101
114
|
</ul>
|
|
102
115
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TimelineCardComponent, selector: "kendo-timeline-card", inputs: ["event", "expanded", "collapsible", "reversed", "orientation", "navigable", "tabIndex", "animationDuration", "index", "eventWidth", "eventHeight", "headerTemplate", "bodyTemplate", "actionsTemplate", "calloutStyle"], exportAs: ["kendoTimelineCard"] }, { kind: "pipe", type: DatePipe, name: "kendoDate" }] });
|
|
103
|
-
|
|
116
|
+
}
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineVerticalComponent, decorators: [{
|
|
104
118
|
type: Component,
|
|
105
119
|
args: [{
|
|
106
120
|
providers: [],
|
|
@@ -27,63 +27,7 @@ const DEFAULT_DATE_FORMAT = 'MMMM dd, yyyy';
|
|
|
27
27
|
* Represents the [Kendo UI Timeline component for Angular]({% slug overview_timeline %}).
|
|
28
28
|
*/
|
|
29
29
|
export class TimelineComponent {
|
|
30
|
-
|
|
31
|
-
this.timelineService = timelineService;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the orientation of the axis.
|
|
34
|
-
*
|
|
35
|
-
* @default 'vertical'
|
|
36
|
-
*/
|
|
37
|
-
this.orientation = 'vertical';
|
|
38
|
-
/**
|
|
39
|
-
* Specifies whether to render events alternatingly on both sides of the axis.
|
|
40
|
-
* Applicable when `orientation` is set to `vertical`.
|
|
41
|
-
*
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
this.alterMode = false;
|
|
45
|
-
/**
|
|
46
|
-
* Specifies whether the event cards can be collapsed.
|
|
47
|
-
*
|
|
48
|
-
* @default true
|
|
49
|
-
*/
|
|
50
|
-
this.collapsibleEvents = true;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies whether the user can use dedicated shortcuts to interact with the Timeline.
|
|
53
|
-
*
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
this.navigable = true;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies whether an event's date label will be visible.
|
|
59
|
-
*
|
|
60
|
-
* @default true
|
|
61
|
-
*/
|
|
62
|
-
this.showDateLabels = true;
|
|
63
|
-
this.hostClass = true;
|
|
64
|
-
/**
|
|
65
|
-
* Fires when a card is toggled.
|
|
66
|
-
* This event is supported only in `vertical` mode.
|
|
67
|
-
*/
|
|
68
|
-
this.onToggle = new EventEmitter();
|
|
69
|
-
/**
|
|
70
|
-
* Fires when a card's action is clicked.
|
|
71
|
-
*/
|
|
72
|
-
this.onActionClick = new EventEmitter();
|
|
73
|
-
/**
|
|
74
|
-
* Fires when the left or right arrow is clicked.
|
|
75
|
-
* This event is supported only in `horizontal` mode.
|
|
76
|
-
*/
|
|
77
|
-
this.onNavigate = new EventEmitter();
|
|
78
|
-
this._events = [];
|
|
79
|
-
this._modelFields = defaultModelFields;
|
|
80
|
-
this._eventWidth = DEFAULT_EVENT_WIDTH;
|
|
81
|
-
this._eventHeight = DEFAULT_EVENT_HEIGHT;
|
|
82
|
-
this._dateFormat = DEFAULT_DATE_FORMAT;
|
|
83
|
-
this.originalData = [];
|
|
84
|
-
this.subscriptions = new Subscription();
|
|
85
|
-
this.timelineService.timeline = this;
|
|
86
|
-
}
|
|
30
|
+
timelineService;
|
|
87
31
|
/**
|
|
88
32
|
* An array of event instances which will be shown by the Timeline.
|
|
89
33
|
*/
|
|
@@ -121,6 +65,44 @@ export class TimelineComponent {
|
|
|
121
65
|
get modelFields() {
|
|
122
66
|
return this._modelFields;
|
|
123
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the orientation of the axis.
|
|
70
|
+
*
|
|
71
|
+
* @default 'vertical'
|
|
72
|
+
*/
|
|
73
|
+
orientation = 'vertical';
|
|
74
|
+
/**
|
|
75
|
+
* Specifies whether to render events alternatingly on both sides of the axis.
|
|
76
|
+
* Applicable when `orientation` is set to `vertical`.
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
alterMode = false;
|
|
81
|
+
/**
|
|
82
|
+
* Specifies whether the event cards can be collapsed.
|
|
83
|
+
*
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
collapsibleEvents = true;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies whether the user can use dedicated shortcuts to interact with the Timeline.
|
|
89
|
+
*
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
navigable = true;
|
|
93
|
+
/**
|
|
94
|
+
* Specifies whether an event's date label will be visible.
|
|
95
|
+
*
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
showDateLabels = true;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies the time for sliding to the next event in `horizontal` mode and the time for collapsing the event in `vertical` mode.
|
|
101
|
+
* The default animation duration values are `300ms` for `horizontal` mode and `400ms` for `vertical` mode.
|
|
102
|
+
*
|
|
103
|
+
* @default true
|
|
104
|
+
*/
|
|
105
|
+
animation;
|
|
124
106
|
/**
|
|
125
107
|
* Sets a specific width for the event.
|
|
126
108
|
* This setting is supported only in `vertical` mode.
|
|
@@ -183,6 +165,7 @@ export class TimelineComponent {
|
|
|
183
165
|
get dateFormat() {
|
|
184
166
|
return this._dateFormat;
|
|
185
167
|
}
|
|
168
|
+
hostClass = true;
|
|
186
169
|
get verticalClass() {
|
|
187
170
|
return this.orientation === 'vertical';
|
|
188
171
|
}
|
|
@@ -195,6 +178,63 @@ export class TimelineComponent {
|
|
|
195
178
|
get collapsibleClass() {
|
|
196
179
|
return this.collapsibleEvents === true && this.orientation === 'vertical';
|
|
197
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* @hidden
|
|
183
|
+
*/
|
|
184
|
+
timelineHorizontal;
|
|
185
|
+
/**
|
|
186
|
+
* @hidden
|
|
187
|
+
*/
|
|
188
|
+
timelineVertical;
|
|
189
|
+
/**
|
|
190
|
+
* @hidden
|
|
191
|
+
*/
|
|
192
|
+
cardHeaderTemplate;
|
|
193
|
+
/**
|
|
194
|
+
* @hidden
|
|
195
|
+
*/
|
|
196
|
+
cardBodyTemplate;
|
|
197
|
+
/**
|
|
198
|
+
* @hidden
|
|
199
|
+
*/
|
|
200
|
+
cardActionsTemplate;
|
|
201
|
+
/**
|
|
202
|
+
* Fires when a card is toggled.
|
|
203
|
+
* This event is supported only in `vertical` mode.
|
|
204
|
+
*/
|
|
205
|
+
onToggle = new EventEmitter();
|
|
206
|
+
/**
|
|
207
|
+
* Fires when a card's action is clicked.
|
|
208
|
+
*/
|
|
209
|
+
onActionClick = new EventEmitter();
|
|
210
|
+
/**
|
|
211
|
+
* Fires when the left or right arrow is clicked.
|
|
212
|
+
* This event is supported only in `horizontal` mode.
|
|
213
|
+
*/
|
|
214
|
+
onNavigate = new EventEmitter();
|
|
215
|
+
/**
|
|
216
|
+
* @hidden
|
|
217
|
+
*/
|
|
218
|
+
headerTemplate;
|
|
219
|
+
/**
|
|
220
|
+
* @hidden
|
|
221
|
+
*/
|
|
222
|
+
bodyTemplate;
|
|
223
|
+
/**
|
|
224
|
+
* @hidden
|
|
225
|
+
*/
|
|
226
|
+
actionsTemplate;
|
|
227
|
+
_events = [];
|
|
228
|
+
_modelFields = defaultModelFields;
|
|
229
|
+
_eventWidth = DEFAULT_EVENT_WIDTH;
|
|
230
|
+
_eventHeight = DEFAULT_EVENT_HEIGHT;
|
|
231
|
+
_dateFormat = DEFAULT_DATE_FORMAT;
|
|
232
|
+
originalData = [];
|
|
233
|
+
subscriptions = new Subscription();
|
|
234
|
+
constructor(timelineService) {
|
|
235
|
+
this.timelineService = timelineService;
|
|
236
|
+
this.timelineService.timeline = this;
|
|
237
|
+
}
|
|
198
238
|
ngAfterContentInit() {
|
|
199
239
|
this.initTemplates();
|
|
200
240
|
}
|
|
@@ -250,16 +290,15 @@ export class TimelineComponent {
|
|
|
250
290
|
this.actionsTemplate = this.cardActionsTemplate?.first || null;
|
|
251
291
|
}));
|
|
252
292
|
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
], queries: [{ propertyName: "cardHeaderTemplate", predicate: TimelineCardHeaderTemplateDirective }, { propertyName: "cardBodyTemplate", predicate: TimelineCardBodyTemplateDirective }, { propertyName: "cardActionsTemplate", predicate: TimelineCardActionsTemplateDirective }], viewQueries: [{ propertyName: "timelineHorizontal", first: true, predicate: TimelineHorizontalComponent, descendants: true }, { propertyName: "timelineVertical", first: true, predicate: TimelineVerticalComponent, descendants: true }], exportAs: ["kendoTimeline"], ngImport: i0, template: `
|
|
293
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineComponent, deps: [{ token: i1.TimelineService }], target: i0.ɵɵFactoryTarget.Component });
|
|
294
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineComponent, isStandalone: true, selector: "kendo-timeline", inputs: { events: "events", modelFields: "modelFields", orientation: "orientation", alterMode: "alterMode", collapsibleEvents: "collapsibleEvents", navigable: "navigable", showDateLabels: "showDateLabels", animation: "animation", eventWidth: "eventWidth", eventHeight: "eventHeight", dateFormat: "dateFormat" }, outputs: { onToggle: "onToggle", onActionClick: "onActionClick", onNavigate: "onNavigate" }, host: { properties: { "class.k-timeline": "this.hostClass", "class.k-timeline-vertical": "this.verticalClass", "class.k-timeline-horizontal": "this.horizontalClass", "class.k-timeline-alternating": "this.alternatingClass", "class.k-timeline-collapsible": "this.collapsibleClass" } }, providers: [
|
|
295
|
+
TimelineService,
|
|
296
|
+
LocalizationService,
|
|
297
|
+
{
|
|
298
|
+
provide: L10N_PREFIX,
|
|
299
|
+
useValue: 'kendo.timeline'
|
|
300
|
+
}
|
|
301
|
+
], queries: [{ propertyName: "cardHeaderTemplate", predicate: TimelineCardHeaderTemplateDirective }, { propertyName: "cardBodyTemplate", predicate: TimelineCardBodyTemplateDirective }, { propertyName: "cardActionsTemplate", predicate: TimelineCardActionsTemplateDirective }], viewQueries: [{ propertyName: "timelineHorizontal", first: true, predicate: TimelineHorizontalComponent, descendants: true }, { propertyName: "timelineVertical", first: true, predicate: TimelineVerticalComponent, descendants: true }], exportAs: ["kendoTimeline"], ngImport: i0, template: `
|
|
263
302
|
<ng-container kendoTimelineLocalizedMessages
|
|
264
303
|
i18n-previous="kendo.timeline.previous|The title of the previous button in horizontal orientation."
|
|
265
304
|
previous="previous"
|
|
@@ -300,7 +339,8 @@ TimelineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
300
339
|
>
|
|
301
340
|
</kendo-timeline-horizontal>
|
|
302
341
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedTimelineMessagesDirective, selector: "[kendoTimelineLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TimelineVerticalComponent, selector: "kendo-timeline-vertical", inputs: ["events", "alterMode", "collapsibleEvents", "navigable", "showDateLabels", "animationDuration", "eventWidth", "dateFormat", "headerTemplate", "bodyTemplate", "actionsTemplate"], exportAs: ["kendoTimelineVertical"] }, { kind: "component", type: TimelineHorizontalComponent, selector: "kendo-timeline-horizontal", inputs: ["events", "alterMode", "collapsibleEvents", "navigable", "showDateLabels", "animationDuration", "eventHeight", "dateFormat", "headerTemplate", "bodyTemplate", "actionsTemplate"], exportAs: ["kendoTimelineHorizontal"] }] });
|
|
303
|
-
|
|
342
|
+
}
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineComponent, decorators: [{
|
|
304
344
|
type: Component,
|
|
305
345
|
args: [{
|
|
306
346
|
providers: [
|
|
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class TimelineService {
|
|
11
|
+
timeline;
|
|
11
12
|
onToggle(event) {
|
|
12
13
|
if (this.timeline) {
|
|
13
14
|
this.timeline['onToggle']?.emit(event);
|
|
@@ -23,9 +24,9 @@ export class TimelineService {
|
|
|
23
24
|
this.timeline['onNavigate']?.emit(event);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
28
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineService });
|
|
26
29
|
}
|
|
27
|
-
|
|
28
|
-
TimelineService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineService });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineService, decorators: [{
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineService, decorators: [{
|
|
30
31
|
type: Injectable
|
|
31
32
|
}] });
|
|
@@ -19,11 +19,11 @@ import * as i5 from "./timeline/templates/timeline-card-header.directive";
|
|
|
19
19
|
* - `TimelineComponent`—The `TimelineComponent` component class.
|
|
20
20
|
*/
|
|
21
21
|
export class TimelineModule {
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TimelineModule, imports: [i1.TimelineComponent, i2.TimelineCustomMessagesComponent, i3.TimelineCardActionsTemplateDirective, i4.TimelineCardBodyTemplateDirective, i5.TimelineCardHeaderTemplateDirective], exports: [i1.TimelineComponent, i2.TimelineCustomMessagesComponent, i3.TimelineCardActionsTemplateDirective, i4.TimelineCardBodyTemplateDirective, i5.TimelineCardHeaderTemplateDirective] });
|
|
24
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineModule, imports: [i1.TimelineComponent] });
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
TimelineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TimelineModule, imports: [i1.TimelineComponent, i2.TimelineCustomMessagesComponent, i3.TimelineCardActionsTemplateDirective, i4.TimelineCardBodyTemplateDirective, i5.TimelineCardHeaderTemplateDirective], exports: [i1.TimelineComponent, i2.TimelineCustomMessagesComponent, i3.TimelineCardActionsTemplateDirective, i4.TimelineCardBodyTemplateDirective, i5.TimelineCardHeaderTemplateDirective] });
|
|
25
|
-
TimelineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineModule, imports: [i1.TimelineComponent, i2.TimelineCustomMessagesComponent] });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineModule, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineModule, decorators: [{
|
|
27
27
|
type: NgModule,
|
|
28
28
|
args: [{
|
|
29
29
|
exports: [...KENDO_TIMELINE],
|
|
@@ -6,7 +6,7 @@ import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
|
6
6
|
/**
|
|
7
7
|
* The type of the action that will take place upon interaction with the ExpansionPanel.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type ExpansionPanelAction = 'expand' | 'collapse';
|
|
10
10
|
/**
|
|
11
11
|
* Arguments for the `action` event of the ExpansionPanel.
|
|
12
12
|
*/
|
|
@@ -176,5 +176,5 @@ export declare class ExpansionPanelComponent implements OnInit, AfterViewInit, O
|
|
|
176
176
|
private addContentHiddenClass;
|
|
177
177
|
private removeContentHiddenClass;
|
|
178
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelComponent, never>;
|
|
179
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExpansionPanelComponent, "kendo-expansionpanel", ["kendoExpansionPanel"], { "title": "title"; "subtitle": "subtitle"; "disabled": "disabled"; "expanded": "expanded"; "svgExpandIcon": "svgExpandIcon"; "svgCollapseIcon": "svgCollapseIcon"; "expandIcon": "expandIcon"; "collapseIcon": "collapseIcon"; "animation": "animation"; }, { "expandedChange": "expandedChange"; "action": "action"; "expand": "expand"; "collapse": "collapse"; }, ["titleTemplate"], ["*"], true, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpansionPanelComponent, "kendo-expansionpanel", ["kendoExpansionPanel"], { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "svgExpandIcon": { "alias": "svgExpandIcon"; "required": false; }; "svgCollapseIcon": { "alias": "svgCollapseIcon"; "required": false; }; "expandIcon": { "alias": "expandIcon"; "required": false; }; "collapseIcon": { "alias": "collapseIcon"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; }, { "expandedChange": "expandedChange"; "action": "action"; "expand": "expand"; "collapse": "collapse"; }, ["titleTemplate"], ["*"], true, never>;
|
|
180
180
|
}
|