@progress/kendo-angular-scrollview 24.2.2 → 25.0.0-develop.1
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/fesm2022/progress-kendo-angular-scrollview.mjs +21 -21
- package/index.d.ts +353 -7
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
- package/change-event-args.d.ts +0 -19
- package/data.collection.d.ts +0 -32
- package/direction.d.ts +0 -8
- package/directives.d.ts +0 -29
- package/enums.d.ts +0 -19
- package/localization/custom-messages.component.d.ts +0 -28
- package/localization/localized-messages.directive.d.ts +0 -16
- package/localization/messages.d.ts +0 -18
- package/package-metadata.d.ts +0 -9
- package/scrollview-pager.component.d.ts +0 -22
- package/scrollview.component.d.ts +0 -195
- package/scrollview.module.d.ts +0 -31
|
@@ -31,8 +31,8 @@ const packageMetadata = {
|
|
|
31
31
|
productName: 'Kendo UI for Angular',
|
|
32
32
|
productCode: 'KENDOUIANGULAR',
|
|
33
33
|
productCodes: ['KENDOUIANGULAR'],
|
|
34
|
-
publishDate:
|
|
35
|
-
version: '
|
|
34
|
+
publishDate: 1783680027,
|
|
35
|
+
version: '25.0.0-develop.1',
|
|
36
36
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -149,8 +149,8 @@ class ScrollViewPagerComponent {
|
|
|
149
149
|
const localizationMsg = this.localization.get('pagerButtonLabel') || '';
|
|
150
150
|
return replaceMessagePlaceholder(localizationMsg, 'itemIndex', itemIndex.toString());
|
|
151
151
|
}
|
|
152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
153
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
152
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewPagerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
153
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: ScrollViewPagerComponent, isStandalone: true, selector: "kendo-scrollview-pager", inputs: { activeIndex: "activeIndex", data: "data" }, outputs: { pagerIndexChange: "pagerIndexChange" }, ngImport: i0, template: `
|
|
154
154
|
<div class="k-scrollview-nav">
|
|
155
155
|
@for (item of data; track $index; let i = $index) {
|
|
156
156
|
<span [attr.aria-label]="pagerButtonLabel(i + 1)" role="button" class="k-link"
|
|
@@ -161,7 +161,7 @@ class ScrollViewPagerComponent {
|
|
|
161
161
|
</div>
|
|
162
162
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
163
163
|
}
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewPagerComponent, decorators: [{
|
|
165
165
|
type: Component,
|
|
166
166
|
args: [{
|
|
167
167
|
selector: 'kendo-scrollview-pager',
|
|
@@ -195,10 +195,10 @@ class ScrollViewMessages extends ComponentMessages {
|
|
|
195
195
|
* When the current item is 1, the default label is `'Item 1'`.
|
|
196
196
|
*/
|
|
197
197
|
pagerButtonLabel;
|
|
198
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
199
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
199
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: ScrollViewMessages, isStandalone: true, selector: "kendo-scrollview-messages-base", inputs: { pagerButtonLabel: "pagerButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
200
200
|
}
|
|
201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewMessages, decorators: [{
|
|
202
202
|
type: Directive,
|
|
203
203
|
args: [{
|
|
204
204
|
selector: 'kendo-scrollview-messages-base'
|
|
@@ -216,15 +216,15 @@ class LocalizedMessagesDirective extends ScrollViewMessages {
|
|
|
216
216
|
super();
|
|
217
217
|
this.service = service;
|
|
218
218
|
}
|
|
219
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
220
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
220
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoScrollViewLocalizedMessages]", providers: [
|
|
221
221
|
{
|
|
222
222
|
provide: ScrollViewMessages,
|
|
223
223
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
224
224
|
}
|
|
225
225
|
], usesInheritance: true, ngImport: i0 });
|
|
226
226
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
228
228
|
type: Directive,
|
|
229
229
|
args: [{
|
|
230
230
|
providers: [
|
|
@@ -640,8 +640,8 @@ class ScrollViewComponent {
|
|
|
640
640
|
get nextButtonArrowSVGIcon() {
|
|
641
641
|
return this.direction === 'ltr' ? this.chevronRightIcon : this.chevronLeftIcon;
|
|
642
642
|
}
|
|
643
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
644
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
643
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
644
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: ScrollViewComponent, isStandalone: true, selector: "kendo-scrollview", inputs: { data: "data", activeIndex: "activeIndex", width: "width", height: "height", endless: "endless", pagerOverlay: "pagerOverlay", animate: "animate", pageable: "pageable", arrows: "arrows" }, outputs: { itemChanged: "itemChanged", activeIndexChange: "activeIndexChange" }, host: { properties: { "class.k-scrollview": "this.scrollViewClass", "attr.role": "this.scrollViewRole", "attr.aria-roledescription": "this.scrollViewRoleDescription", "class.k-scrollview-light": "this.scrollViewLightOverlayClass", "class.k-scrollview-dark": "this.scrollViewDarkOverlayClass", "style.width": "this.hostWidth", "style.height": "this.hostHeight", "attr.tabindex": "this.tabIndex", "attr.aria-live": "this.ariaLive", "attr.dir": "this.dir", "style.touch-action": "this.touchAction" } }, providers: [
|
|
645
645
|
LocalizationService,
|
|
646
646
|
{
|
|
647
647
|
provide: L10N_PREFIX,
|
|
@@ -742,7 +742,7 @@ class ScrollViewComponent {
|
|
|
742
742
|
])
|
|
743
743
|
] });
|
|
744
744
|
}
|
|
745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewComponent, decorators: [{
|
|
746
746
|
type: Component,
|
|
747
747
|
args: [{
|
|
748
748
|
animations: [
|
|
@@ -944,15 +944,15 @@ class CustomMessagesComponent extends ScrollViewMessages {
|
|
|
944
944
|
get override() {
|
|
945
945
|
return true;
|
|
946
946
|
}
|
|
947
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
948
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
947
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
948
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-scrollview-messages", providers: [
|
|
949
949
|
{
|
|
950
950
|
provide: ScrollViewMessages,
|
|
951
951
|
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
952
952
|
}
|
|
953
953
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
954
954
|
}
|
|
955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
956
956
|
type: Component,
|
|
957
957
|
args: [{
|
|
958
958
|
providers: [
|
|
@@ -1015,11 +1015,11 @@ const KENDO_SCROLLVIEW = [
|
|
|
1015
1015
|
* ```
|
|
1016
1016
|
*/
|
|
1017
1017
|
class ScrollViewModule {
|
|
1018
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1019
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1020
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1018
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1019
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewModule, imports: [ScrollViewComponent, CustomMessagesComponent], exports: [ScrollViewComponent, CustomMessagesComponent] });
|
|
1020
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewModule, providers: [IconsService], imports: [ScrollViewComponent] });
|
|
1021
1021
|
}
|
|
1022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollViewModule, decorators: [{
|
|
1023
1023
|
type: NgModule,
|
|
1024
1024
|
args: [{
|
|
1025
1025
|
imports: [...KENDO_SCROLLVIEW],
|
package/index.d.ts
CHANGED
|
@@ -2,10 +2,356 @@
|
|
|
2
2
|
* Copyright © 2026 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { OnChanges, OnDestroy, ElementRef, EventEmitter, TemplateRef, NgZone, Renderer2 } from '@angular/core';
|
|
7
|
+
import { AnimationEvent } from '@angular/animations';
|
|
8
|
+
import { LocalizationService, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents the available pager overlays of the ScrollView.
|
|
13
|
+
*/
|
|
14
|
+
type ScrollViewPagerOverlay = 'dark' | 'light' | 'none';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
type AnimationState = "left" | "right" | "center";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Represents the arguments for the `itemChanged` event.
|
|
22
|
+
*
|
|
23
|
+
* The `itemChanged` event fires when the current item in the ScrollView changes.
|
|
24
|
+
*/
|
|
25
|
+
interface ItemChangedEvent {
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the changed item.
|
|
28
|
+
*/
|
|
29
|
+
item: any;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the index of the changed item.
|
|
32
|
+
*/
|
|
33
|
+
index: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** @hidden */
|
|
37
|
+
declare const iterator: any;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
declare class DataResultIterator {
|
|
42
|
+
[iterator]: () => any;
|
|
43
|
+
private source;
|
|
44
|
+
private index;
|
|
45
|
+
private endless;
|
|
46
|
+
private pageIndex;
|
|
47
|
+
private rtl;
|
|
48
|
+
constructor(source: any[], index: number, endless: boolean, pageIndex: number, rtl: boolean);
|
|
49
|
+
get data(): any[];
|
|
50
|
+
get total(): number;
|
|
51
|
+
canMoveNext(): boolean;
|
|
52
|
+
canMovePrev(): boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
declare class DataCollection {
|
|
58
|
+
private accessor;
|
|
59
|
+
constructor(accessor: () => DataResultIterator);
|
|
60
|
+
get length(): number;
|
|
61
|
+
get total(): number;
|
|
62
|
+
item(index: number): any;
|
|
63
|
+
canMoveNext(): boolean;
|
|
64
|
+
canMovePrev(): boolean;
|
|
65
|
+
[Symbol.iterator](): any;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
type Direction = 'rtl' | 'ltr';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Represents the [Kendo UI ScrollView component for Angular](https://www.telerik.com/kendo-angular-ui/components/scrollview).
|
|
75
|
+
*
|
|
76
|
+
* Use the ScrollViewComponent to display a horizontally scrollable list of items. You can customize the content and navigation.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```html
|
|
80
|
+
* <kendo-scrollview [data]="items" [width]="width" [height]="height">
|
|
81
|
+
* <ng-template let-item="item">
|
|
82
|
+
* <h2>{{item.title}}</h2>
|
|
83
|
+
* <img width="100%" [src]="item.url" />
|
|
84
|
+
* </ng-template>
|
|
85
|
+
* </kendo-scrollview>
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Supported children components are: {@link CustomMessagesComponent}
|
|
90
|
+
*/
|
|
91
|
+
declare class ScrollViewComponent implements OnChanges, OnDestroy {
|
|
92
|
+
protected element: ElementRef;
|
|
93
|
+
private localization;
|
|
94
|
+
private ngZone;
|
|
95
|
+
private renderer;
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
chevronLeftIcon: SVGIcon;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
chevronRightIcon: SVGIcon;
|
|
104
|
+
/**
|
|
105
|
+
* Provides the data source for the ScrollView ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/data-sources)).
|
|
106
|
+
* @default []
|
|
107
|
+
*/
|
|
108
|
+
data: Array<any>;
|
|
109
|
+
/**
|
|
110
|
+
* Sets the current item index ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/active-items)).
|
|
111
|
+
* @default 0
|
|
112
|
+
*/
|
|
113
|
+
set activeIndex(value: number);
|
|
114
|
+
get activeIndex(): number;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the width of the ScrollView ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/dimensions)).
|
|
117
|
+
* By default, the width is not set and must be explicitly defined.
|
|
118
|
+
*/
|
|
119
|
+
width: string;
|
|
120
|
+
/**
|
|
121
|
+
* Sets the height of the ScrollView ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/dimensions)).
|
|
122
|
+
* By default, the height is not set and must be explicitly defined.
|
|
123
|
+
*/
|
|
124
|
+
height: string;
|
|
125
|
+
/**
|
|
126
|
+
* Enables or disables endless scrolling mode, where items loop endlessly ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/endless-scrolling)).
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
endless: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Sets the pager overlay style to `dark`, `light`, or `none`.
|
|
132
|
+
* @default 'none'
|
|
133
|
+
*/
|
|
134
|
+
pagerOverlay: ScrollViewPagerOverlay;
|
|
135
|
+
/**
|
|
136
|
+
* Enables or disables built-in animations ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/animations)).
|
|
137
|
+
* @default true
|
|
138
|
+
*/
|
|
139
|
+
animate: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Enables or disables the built-in pager ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/paging)).
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
pageable: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Enables or disables the built-in navigation arrows ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/arrows)).
|
|
147
|
+
* @default false
|
|
148
|
+
*/
|
|
149
|
+
arrows: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Fires after the current item is changed.
|
|
152
|
+
*/
|
|
153
|
+
itemChanged: EventEmitter<ItemChangedEvent>;
|
|
154
|
+
/**
|
|
155
|
+
* Fires after the `activeIndex` has changed. Allows for two-way binding of the `activeIndex` property.
|
|
156
|
+
*/
|
|
157
|
+
activeIndexChange: EventEmitter<number>;
|
|
158
|
+
itemTemplateRef: TemplateRef<any>;
|
|
159
|
+
itemWrapper: ElementRef;
|
|
160
|
+
prevButton: ElementRef;
|
|
161
|
+
nextButton: ElementRef;
|
|
162
|
+
scrollViewClass: boolean;
|
|
163
|
+
scrollViewRole: string;
|
|
164
|
+
scrollViewRoleDescription: string;
|
|
165
|
+
get scrollViewLightOverlayClass(): boolean;
|
|
166
|
+
get scrollViewDarkOverlayClass(): boolean;
|
|
167
|
+
get hostWidth(): string;
|
|
168
|
+
get hostHeight(): string;
|
|
169
|
+
tabIndex: number;
|
|
170
|
+
ariaLive: string;
|
|
171
|
+
get dir(): Direction;
|
|
172
|
+
touchAction: string;
|
|
173
|
+
animationState: AnimationState;
|
|
174
|
+
view: DataCollection;
|
|
175
|
+
/**
|
|
176
|
+
* @hidden
|
|
177
|
+
*/
|
|
178
|
+
scrollviewId: string;
|
|
179
|
+
isDataSourceEmpty: boolean;
|
|
180
|
+
private subs;
|
|
181
|
+
private _activeIndex;
|
|
182
|
+
private index;
|
|
183
|
+
private initialTouchCoordinate;
|
|
184
|
+
private pageIndex;
|
|
185
|
+
private transforms;
|
|
186
|
+
private get direction();
|
|
187
|
+
constructor(element: ElementRef, localization: LocalizationService, ngZone: NgZone, renderer: Renderer2);
|
|
188
|
+
ngOnInit(): void;
|
|
189
|
+
ngOnDestroy(): void;
|
|
190
|
+
ngOnChanges(_: any): void;
|
|
191
|
+
/**
|
|
192
|
+
* Navigates the ScrollView to the previous item.
|
|
193
|
+
*/
|
|
194
|
+
prev(): void;
|
|
195
|
+
/**
|
|
196
|
+
* Navigates the ScrollView to the next item.
|
|
197
|
+
*/
|
|
198
|
+
next(): void;
|
|
199
|
+
/**
|
|
200
|
+
* @hidden
|
|
201
|
+
*/
|
|
202
|
+
transitionEndHandler(e: AnimationEvent): void;
|
|
203
|
+
/**
|
|
204
|
+
* @hidden
|
|
205
|
+
*/
|
|
206
|
+
handlePress(e: any): void;
|
|
207
|
+
/**
|
|
208
|
+
* @hidden
|
|
209
|
+
*/
|
|
210
|
+
handleDrag(e: any): void;
|
|
211
|
+
/**
|
|
212
|
+
* @hidden
|
|
213
|
+
*/
|
|
214
|
+
handleRelease(e: any): void;
|
|
215
|
+
/**
|
|
216
|
+
* @hidden
|
|
217
|
+
*/
|
|
218
|
+
pageChange(idx: number): void;
|
|
219
|
+
/**
|
|
220
|
+
* @hidden
|
|
221
|
+
*/
|
|
222
|
+
inlineListItemStyles(idx: number): {
|
|
223
|
+
[key: string]: string;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* @hidden
|
|
227
|
+
*/
|
|
228
|
+
displayLeftArrow(): boolean;
|
|
229
|
+
/**
|
|
230
|
+
* @hidden
|
|
231
|
+
*/
|
|
232
|
+
leftArrowClick(): void;
|
|
233
|
+
/**
|
|
234
|
+
* @hidden
|
|
235
|
+
*/
|
|
236
|
+
displayRightArrow(): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* @hidden
|
|
239
|
+
*/
|
|
240
|
+
rightArrowClick(): void;
|
|
241
|
+
protected draggedInsideBounds(deltaX: number): boolean;
|
|
242
|
+
protected draggedEnoughToNavigate(deltaX: number): boolean;
|
|
243
|
+
protected isDragForbidden(deltaX: number): boolean;
|
|
244
|
+
private keyDown;
|
|
245
|
+
private navigate;
|
|
246
|
+
private changeIndex;
|
|
247
|
+
private get isRTL();
|
|
248
|
+
get prevButtonArrowIcon(): string;
|
|
249
|
+
get nextButtonArrowIcon(): string;
|
|
250
|
+
get prevButtonArrowSVGIcon(): SVGIcon;
|
|
251
|
+
get nextButtonArrowSVGIcon(): SVGIcon;
|
|
252
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewComponent, never>;
|
|
253
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewComponent, "kendo-scrollview", ["kendoScrollView"], { "data": { "alias": "data"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "endless": { "alias": "endless"; "required": false; }; "pagerOverlay": { "alias": "pagerOverlay"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "arrows": { "alias": "arrows"; "required": false; }; }, { "itemChanged": "itemChanged"; "activeIndexChange": "activeIndexChange"; }, ["itemTemplateRef"], never, true, never>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @hidden
|
|
258
|
+
*/
|
|
259
|
+
declare class ScrollViewMessages extends ComponentMessages {
|
|
260
|
+
/**
|
|
261
|
+
* Sets the label for the buttons in the ScrollView pager. The default label pattern is `'Item {itemIndex}'`.
|
|
262
|
+
* When the current item is 1, the default label is `'Item 1'`.
|
|
263
|
+
*/
|
|
264
|
+
pagerButtonLabel: string;
|
|
265
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewMessages, never>;
|
|
266
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollViewMessages, "kendo-scrollview-messages-base", never, { "pagerButtonLabel": { "alias": "pagerButtonLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Represents the custom messages component of the ScrollView.
|
|
271
|
+
*
|
|
272
|
+
* Use this component to override default messages for the ScrollView
|
|
273
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/globalization#custom-messages)).
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* ```html
|
|
277
|
+
* <kendo-scrollview [data]="items" [width]="width" [height]="height">
|
|
278
|
+
* <kendo-scrollview-messages pagerButtonLabel="This is item number {itemIndex}">
|
|
279
|
+
* </kendo-scrollview-messages>
|
|
280
|
+
* </kendo-scrollview>
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
declare class CustomMessagesComponent extends ScrollViewMessages {
|
|
284
|
+
protected service: LocalizationService;
|
|
285
|
+
constructor(service: LocalizationService);
|
|
286
|
+
protected get override(): boolean;
|
|
287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
|
|
288
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-scrollview-messages", never, {}, {}, never, never, true, never>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
293
|
+
* definition for the ScrollView component.
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* ```typescript
|
|
297
|
+
* import { NgModule } from '@angular/core';
|
|
298
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
299
|
+
* import { ScrollViewModule } from '@progress/kendo-angular-scrollview';
|
|
300
|
+
* import { AppComponent } from './app.component';
|
|
301
|
+
*
|
|
302
|
+
* @NgModule({
|
|
303
|
+
* declarations: [AppComponent],
|
|
304
|
+
* imports: [BrowserModule, ScrollViewModule],
|
|
305
|
+
* bootstrap: [AppComponent]
|
|
306
|
+
* })
|
|
307
|
+
* export class AppModule {}
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
declare class ScrollViewModule {
|
|
311
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewModule, never>;
|
|
312
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollViewModule, never, [typeof ScrollViewComponent, typeof CustomMessagesComponent], [typeof ScrollViewComponent, typeof CustomMessagesComponent]>;
|
|
313
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollViewModule>;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @hidden
|
|
318
|
+
*/
|
|
319
|
+
declare class ScrollViewPagerComponent {
|
|
320
|
+
private localization;
|
|
321
|
+
activeIndex: number;
|
|
322
|
+
data: any[];
|
|
323
|
+
pagerIndexChange: EventEmitter<number>;
|
|
324
|
+
constructor(localization: LocalizationService);
|
|
325
|
+
itemClass(idx: number): any;
|
|
326
|
+
indexChange(selectedIndex: number): void;
|
|
327
|
+
pagerButtonLabel(itemIndex: number): string;
|
|
328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewPagerComponent, never>;
|
|
329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewPagerComponent, "kendo-scrollview-pager", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "pagerIndexChange": "pagerIndexChange"; }, never, never, true, never>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Use the `KENDO_SCROLLVIEW` utility array to access all `@progress/kendo-angular-scrollview` related components and directives in a standalone Angular component.
|
|
334
|
+
*
|
|
335
|
+
* @example
|
|
336
|
+
* ```typescript
|
|
337
|
+
* import { Component } from '@angular/core';
|
|
338
|
+
* import { KENDO_SCROLLVIEW } from '@progress/kendo-angular-scrollview';
|
|
339
|
+
*
|
|
340
|
+
* @Component({
|
|
341
|
+
* standalone: true,
|
|
342
|
+
* imports: [KENDO_SCROLLVIEW],
|
|
343
|
+
* template: `<kendo-scrollview [data]="items"></kendo-scrollview>`
|
|
344
|
+
* })
|
|
345
|
+
* export class AppComponent {
|
|
346
|
+
* public items = [
|
|
347
|
+
* { title: 'Flower' },
|
|
348
|
+
* { title: 'Mountain' },
|
|
349
|
+
* { title: 'Sky' }
|
|
350
|
+
* ];
|
|
351
|
+
* }
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
declare const KENDO_SCROLLVIEW: readonly [typeof ScrollViewComponent, typeof CustomMessagesComponent];
|
|
355
|
+
|
|
356
|
+
export { CustomMessagesComponent, KENDO_SCROLLVIEW, ScrollViewComponent, ScrollViewModule, ScrollViewPagerComponent };
|
|
357
|
+
export type { ItemChangedEvent, ScrollViewPagerOverlay };
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "
|
|
10
|
+
"publishDate": 1783680027,
|
|
11
|
+
"version": "25.0.0-develop.1",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scrollview",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0-develop.1",
|
|
4
4
|
"description": "A ScrollView Component for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1783680027,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@angular/animations": "
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
30
|
-
"@angular/platform-browser": "
|
|
27
|
+
"@angular/animations": "20 - 22",
|
|
28
|
+
"@angular/common": "20 - 22",
|
|
29
|
+
"@angular/core": "20 - 22",
|
|
30
|
+
"@angular/platform-browser": "20 - 22",
|
|
31
31
|
"@progress/kendo-licensing": "^1.11.0",
|
|
32
|
-
"@progress/kendo-angular-common": "
|
|
33
|
-
"@progress/kendo-angular-l10n": "
|
|
34
|
-
"@progress/kendo-angular-icons": "
|
|
32
|
+
"@progress/kendo-angular-common": "25.0.0-develop.1",
|
|
33
|
+
"@progress/kendo-angular-l10n": "25.0.0-develop.1",
|
|
34
|
+
"@progress/kendo-angular-icons": "25.0.0-develop.1",
|
|
35
35
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"tslib": "^2.3.1",
|
|
39
|
-
"@progress/kendo-angular-schematics": "
|
|
39
|
+
"@progress/kendo-angular-schematics": "25.0.0-develop.1"
|
|
40
40
|
},
|
|
41
41
|
"schematics": "./schematics/collection.json",
|
|
42
42
|
"module": "fesm2022/progress-kendo-angular-scrollview.mjs",
|
package/change-event-args.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the arguments for the `itemChanged` event.
|
|
7
|
-
*
|
|
8
|
-
* The `itemChanged` event fires when the current item in the ScrollView changes.
|
|
9
|
-
*/
|
|
10
|
-
export interface ItemChangedEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the changed item.
|
|
13
|
-
*/
|
|
14
|
-
item: any;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the index of the changed item.
|
|
17
|
-
*/
|
|
18
|
-
index: number;
|
|
19
|
-
}
|
package/data.collection.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class DataResultIterator {
|
|
9
|
-
private source;
|
|
10
|
-
private index;
|
|
11
|
-
private endless;
|
|
12
|
-
private pageIndex;
|
|
13
|
-
private rtl;
|
|
14
|
-
constructor(source: any[], index: number, endless: boolean, pageIndex: number, rtl: boolean);
|
|
15
|
-
get data(): any[];
|
|
16
|
-
get total(): number;
|
|
17
|
-
canMoveNext(): boolean;
|
|
18
|
-
canMovePrev(): boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare class DataCollection {
|
|
24
|
-
private accessor;
|
|
25
|
-
constructor(accessor: () => DataResultIterator);
|
|
26
|
-
get length(): number;
|
|
27
|
-
get total(): number;
|
|
28
|
-
item(index: number): any;
|
|
29
|
-
canMoveNext(): boolean;
|
|
30
|
-
canMovePrev(): boolean;
|
|
31
|
-
[Symbol.iterator](): any;
|
|
32
|
-
}
|
package/direction.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export type Direction = 'rtl' | 'ltr';
|
package/directives.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { CustomMessagesComponent } from "./localization/custom-messages.component";
|
|
6
|
-
import { ScrollViewComponent } from "./scrollview.component";
|
|
7
|
-
/**
|
|
8
|
-
* Use the `KENDO_SCROLLVIEW` utility array to access all `@progress/kendo-angular-scrollview` related components and directives in a standalone Angular component.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import { Component } from '@angular/core';
|
|
13
|
-
* import { KENDO_SCROLLVIEW } from '@progress/kendo-angular-scrollview';
|
|
14
|
-
*
|
|
15
|
-
* @Component({
|
|
16
|
-
* standalone: true,
|
|
17
|
-
* imports: [KENDO_SCROLLVIEW],
|
|
18
|
-
* template: `<kendo-scrollview [data]="items"></kendo-scrollview>`
|
|
19
|
-
* })
|
|
20
|
-
* export class AppComponent {
|
|
21
|
-
* public items = [
|
|
22
|
-
* { title: 'Flower' },
|
|
23
|
-
* { title: 'Mountain' },
|
|
24
|
-
* { title: 'Sky' }
|
|
25
|
-
* ];
|
|
26
|
-
* }
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare const KENDO_SCROLLVIEW: readonly [typeof ScrollViewComponent, typeof CustomMessagesComponent];
|
package/enums.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare enum Dir {
|
|
9
|
-
Next = 1,
|
|
10
|
-
Prev = -1
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents the available pager overlays of the ScrollView.
|
|
14
|
-
*/
|
|
15
|
-
export type ScrollViewPagerOverlay = 'dark' | 'light' | 'none';
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export type AnimationState = "left" | "right" | "center";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { ScrollViewMessages } from './messages';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Represents the custom messages component of the ScrollView.
|
|
10
|
-
*
|
|
11
|
-
* Use this component to override default messages for the ScrollView
|
|
12
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/globalization#custom-messages)).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <kendo-scrollview [data]="items" [width]="width" [height]="height">
|
|
17
|
-
* <kendo-scrollview-messages pagerButtonLabel="This is item number {itemIndex}">
|
|
18
|
-
* </kendo-scrollview-messages>
|
|
19
|
-
* </kendo-scrollview>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class CustomMessagesComponent extends ScrollViewMessages {
|
|
23
|
-
protected service: LocalizationService;
|
|
24
|
-
constructor(service: LocalizationService);
|
|
25
|
-
protected get override(): boolean;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-scrollview-messages", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { ScrollViewMessages } from './messages';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class LocalizedMessagesDirective extends ScrollViewMessages {
|
|
12
|
-
protected service: LocalizationService;
|
|
13
|
-
constructor(service: LocalizationService);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoScrollViewLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class ScrollViewMessages extends ComponentMessages {
|
|
11
|
-
/**
|
|
12
|
-
* Sets the label for the buttons in the ScrollView pager. The default label pattern is `'Item {itemIndex}'`.
|
|
13
|
-
* When the current item is 1, the default label is `'Item 1'`.
|
|
14
|
-
*/
|
|
15
|
-
pagerButtonLabel: string;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewMessages, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollViewMessages, "kendo-scrollview-messages-base", never, { "pagerButtonLabel": { "alias": "pagerButtonLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
package/package-metadata.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { type PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const packageMetadata: PackageMetadata;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EventEmitter } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class ScrollViewPagerComponent {
|
|
12
|
-
private localization;
|
|
13
|
-
activeIndex: number;
|
|
14
|
-
data: any[];
|
|
15
|
-
pagerIndexChange: EventEmitter<number>;
|
|
16
|
-
constructor(localization: LocalizationService);
|
|
17
|
-
itemClass(idx: number): any;
|
|
18
|
-
indexChange(selectedIndex: number): void;
|
|
19
|
-
pagerButtonLabel(itemIndex: number): string;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewPagerComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewPagerComponent, "kendo-scrollview-pager", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "pagerIndexChange": "pagerIndexChange"; }, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, EventEmitter, OnChanges, TemplateRef, NgZone, Renderer2, OnDestroy } from '@angular/core';
|
|
6
|
-
import { AnimationEvent } from '@angular/animations';
|
|
7
|
-
import { AnimationState, ScrollViewPagerOverlay } from './enums';
|
|
8
|
-
import { ItemChangedEvent } from './change-event-args';
|
|
9
|
-
import { DataCollection } from './data.collection';
|
|
10
|
-
import { Direction } from './direction';
|
|
11
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the [Kendo UI ScrollView component for Angular](https://www.telerik.com/kendo-angular-ui/components/scrollview).
|
|
16
|
-
*
|
|
17
|
-
* Use the ScrollViewComponent to display a horizontally scrollable list of items. You can customize the content and navigation.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```html
|
|
21
|
-
* <kendo-scrollview [data]="items" [width]="width" [height]="height">
|
|
22
|
-
* <ng-template let-item="item">
|
|
23
|
-
* <h2>{{item.title}}</h2>
|
|
24
|
-
* <img width="100%" [src]="item.url" />
|
|
25
|
-
* </ng-template>
|
|
26
|
-
* </kendo-scrollview>
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* Supported children components are: {@link CustomMessagesComponent}
|
|
31
|
-
*/
|
|
32
|
-
export declare class ScrollViewComponent implements OnChanges, OnDestroy {
|
|
33
|
-
protected element: ElementRef;
|
|
34
|
-
private localization;
|
|
35
|
-
private ngZone;
|
|
36
|
-
private renderer;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
chevronLeftIcon: SVGIcon;
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
chevronRightIcon: SVGIcon;
|
|
45
|
-
/**
|
|
46
|
-
* Provides the data source for the ScrollView ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/data-sources)).
|
|
47
|
-
* @default []
|
|
48
|
-
*/
|
|
49
|
-
data: Array<any>;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the current item index ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/active-items)).
|
|
52
|
-
* @default 0
|
|
53
|
-
*/
|
|
54
|
-
set activeIndex(value: number);
|
|
55
|
-
get activeIndex(): number;
|
|
56
|
-
/**
|
|
57
|
-
* Sets the width of the ScrollView ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/dimensions)).
|
|
58
|
-
* By default, the width is not set and must be explicitly defined.
|
|
59
|
-
*/
|
|
60
|
-
width: string;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the height of the ScrollView ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/dimensions)).
|
|
63
|
-
* By default, the height is not set and must be explicitly defined.
|
|
64
|
-
*/
|
|
65
|
-
height: string;
|
|
66
|
-
/**
|
|
67
|
-
* Enables or disables endless scrolling mode, where items loop endlessly ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/endless-scrolling)).
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
endless: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Sets the pager overlay style to `dark`, `light`, or `none`.
|
|
73
|
-
* @default 'none'
|
|
74
|
-
*/
|
|
75
|
-
pagerOverlay: ScrollViewPagerOverlay;
|
|
76
|
-
/**
|
|
77
|
-
* Enables or disables built-in animations ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/animations)).
|
|
78
|
-
* @default true
|
|
79
|
-
*/
|
|
80
|
-
animate: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Enables or disables the built-in pager ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/paging)).
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
pageable: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Enables or disables the built-in navigation arrows ([see example](https://www.telerik.com/kendo-angular-ui/components/scrollview/arrows)).
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
arrows: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Fires after the current item is changed.
|
|
93
|
-
*/
|
|
94
|
-
itemChanged: EventEmitter<ItemChangedEvent>;
|
|
95
|
-
/**
|
|
96
|
-
* Fires after the `activeIndex` has changed. Allows for two-way binding of the `activeIndex` property.
|
|
97
|
-
*/
|
|
98
|
-
activeIndexChange: EventEmitter<number>;
|
|
99
|
-
itemTemplateRef: TemplateRef<any>;
|
|
100
|
-
itemWrapper: ElementRef;
|
|
101
|
-
prevButton: ElementRef;
|
|
102
|
-
nextButton: ElementRef;
|
|
103
|
-
scrollViewClass: boolean;
|
|
104
|
-
scrollViewRole: string;
|
|
105
|
-
scrollViewRoleDescription: string;
|
|
106
|
-
get scrollViewLightOverlayClass(): boolean;
|
|
107
|
-
get scrollViewDarkOverlayClass(): boolean;
|
|
108
|
-
get hostWidth(): string;
|
|
109
|
-
get hostHeight(): string;
|
|
110
|
-
tabIndex: number;
|
|
111
|
-
ariaLive: string;
|
|
112
|
-
get dir(): Direction;
|
|
113
|
-
touchAction: string;
|
|
114
|
-
animationState: AnimationState;
|
|
115
|
-
view: DataCollection;
|
|
116
|
-
/**
|
|
117
|
-
* @hidden
|
|
118
|
-
*/
|
|
119
|
-
scrollviewId: string;
|
|
120
|
-
isDataSourceEmpty: boolean;
|
|
121
|
-
private subs;
|
|
122
|
-
private _activeIndex;
|
|
123
|
-
private index;
|
|
124
|
-
private initialTouchCoordinate;
|
|
125
|
-
private pageIndex;
|
|
126
|
-
private transforms;
|
|
127
|
-
private get direction();
|
|
128
|
-
constructor(element: ElementRef, localization: LocalizationService, ngZone: NgZone, renderer: Renderer2);
|
|
129
|
-
ngOnInit(): void;
|
|
130
|
-
ngOnDestroy(): void;
|
|
131
|
-
ngOnChanges(_: any): void;
|
|
132
|
-
/**
|
|
133
|
-
* Navigates the ScrollView to the previous item.
|
|
134
|
-
*/
|
|
135
|
-
prev(): void;
|
|
136
|
-
/**
|
|
137
|
-
* Navigates the ScrollView to the next item.
|
|
138
|
-
*/
|
|
139
|
-
next(): void;
|
|
140
|
-
/**
|
|
141
|
-
* @hidden
|
|
142
|
-
*/
|
|
143
|
-
transitionEndHandler(e: AnimationEvent): void;
|
|
144
|
-
/**
|
|
145
|
-
* @hidden
|
|
146
|
-
*/
|
|
147
|
-
handlePress(e: any): void;
|
|
148
|
-
/**
|
|
149
|
-
* @hidden
|
|
150
|
-
*/
|
|
151
|
-
handleDrag(e: any): void;
|
|
152
|
-
/**
|
|
153
|
-
* @hidden
|
|
154
|
-
*/
|
|
155
|
-
handleRelease(e: any): void;
|
|
156
|
-
/**
|
|
157
|
-
* @hidden
|
|
158
|
-
*/
|
|
159
|
-
pageChange(idx: number): void;
|
|
160
|
-
/**
|
|
161
|
-
* @hidden
|
|
162
|
-
*/
|
|
163
|
-
inlineListItemStyles(idx: number): {
|
|
164
|
-
[key: string]: string;
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* @hidden
|
|
168
|
-
*/
|
|
169
|
-
displayLeftArrow(): boolean;
|
|
170
|
-
/**
|
|
171
|
-
* @hidden
|
|
172
|
-
*/
|
|
173
|
-
leftArrowClick(): void;
|
|
174
|
-
/**
|
|
175
|
-
* @hidden
|
|
176
|
-
*/
|
|
177
|
-
displayRightArrow(): boolean;
|
|
178
|
-
/**
|
|
179
|
-
* @hidden
|
|
180
|
-
*/
|
|
181
|
-
rightArrowClick(): void;
|
|
182
|
-
protected draggedInsideBounds(deltaX: number): boolean;
|
|
183
|
-
protected draggedEnoughToNavigate(deltaX: number): boolean;
|
|
184
|
-
protected isDragForbidden(deltaX: number): boolean;
|
|
185
|
-
private keyDown;
|
|
186
|
-
private navigate;
|
|
187
|
-
private changeIndex;
|
|
188
|
-
private get isRTL();
|
|
189
|
-
get prevButtonArrowIcon(): string;
|
|
190
|
-
get nextButtonArrowIcon(): string;
|
|
191
|
-
get prevButtonArrowSVGIcon(): SVGIcon;
|
|
192
|
-
get nextButtonArrowSVGIcon(): SVGIcon;
|
|
193
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewComponent, never>;
|
|
194
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewComponent, "kendo-scrollview", ["kendoScrollView"], { "data": { "alias": "data"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "endless": { "alias": "endless"; "required": false; }; "pagerOverlay": { "alias": "pagerOverlay"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "arrows": { "alias": "arrows"; "required": false; }; }, { "itemChanged": "itemChanged"; "activeIndexChange": "activeIndexChange"; }, ["itemTemplateRef"], never, true, never>;
|
|
195
|
-
}
|
package/scrollview.module.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 "./scrollview.component";
|
|
7
|
-
import * as i2 from "./localization/custom-messages.component";
|
|
8
|
-
/**
|
|
9
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
10
|
-
* definition for the ScrollView component.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import { NgModule } from '@angular/core';
|
|
15
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
16
|
-
* import { ScrollViewModule } from '@progress/kendo-angular-scrollview';
|
|
17
|
-
* import { AppComponent } from './app.component';
|
|
18
|
-
*
|
|
19
|
-
* @NgModule({
|
|
20
|
-
* declarations: [AppComponent],
|
|
21
|
-
* imports: [BrowserModule, ScrollViewModule],
|
|
22
|
-
* bootstrap: [AppComponent]
|
|
23
|
-
* })
|
|
24
|
-
* export class AppModule {}
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare class ScrollViewModule {
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollViewModule, never, [typeof i1.ScrollViewComponent, typeof i2.CustomMessagesComponent], [typeof i1.ScrollViewComponent, typeof i2.CustomMessagesComponent]>;
|
|
30
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollViewModule>;
|
|
31
|
-
}
|