@progress/kendo-angular-scrollview 17.0.0-develop.4 → 17.0.0-develop.40
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 +34 -15
- package/direction.d.ts +1 -1
- package/enums.d.ts +2 -2
- package/{esm2020 → esm2022}/data.collection.mjs +6 -1
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/localization/messages.mjs +8 -3
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/scrollview-pager.component.mjs +8 -5
- package/{esm2020 → esm2022}/scrollview.component.mjs +112 -89
- package/{esm2020 → esm2022}/scrollview.module.mjs +4 -4
- package/{fesm2020 → fesm2022}/progress-kendo-angular-scrollview.mjs +158 -120
- package/localization/messages.d.ts +1 -1
- package/package.json +13 -19
- package/scrollview-pager.component.d.ts +1 -1
- package/scrollview.component.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-scrollview.mjs +0 -1007
- /package/{esm2020 → esm2022}/change-event-args.mjs +0 -0
- /package/{esm2020 → esm2022}/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/enums.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-scrollview.mjs +0 -0
|
@@ -30,8 +30,8 @@ const packageMetadata = {
|
|
|
30
30
|
name: '@progress/kendo-angular-scrollview',
|
|
31
31
|
productName: 'Kendo UI for Angular',
|
|
32
32
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
33
|
-
publishDate:
|
|
34
|
-
version: '17.0.0-develop.
|
|
33
|
+
publishDate: 1730799119,
|
|
34
|
+
version: '17.0.0-develop.40',
|
|
35
35
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -56,8 +56,12 @@ const EMPTY_OBJ = {};
|
|
|
56
56
|
* @hidden
|
|
57
57
|
*/
|
|
58
58
|
class DataResultIterator {
|
|
59
|
+
source;
|
|
60
|
+
index;
|
|
61
|
+
endless;
|
|
62
|
+
pageIndex;
|
|
63
|
+
rtl = false;
|
|
59
64
|
constructor(source, index, endless, pageIndex, rtl) {
|
|
60
|
-
this.rtl = false;
|
|
61
65
|
this.source = source ? source : [];
|
|
62
66
|
this.index = index ? index : 0;
|
|
63
67
|
this.endless = endless;
|
|
@@ -101,6 +105,7 @@ class DataResultIterator {
|
|
|
101
105
|
* @hidden
|
|
102
106
|
*/
|
|
103
107
|
class DataCollection {
|
|
108
|
+
accessor;
|
|
104
109
|
constructor(accessor) {
|
|
105
110
|
this.accessor = accessor;
|
|
106
111
|
}
|
|
@@ -125,9 +130,12 @@ class DataCollection {
|
|
|
125
130
|
* @hidden
|
|
126
131
|
*/
|
|
127
132
|
class ScrollViewPagerComponent {
|
|
133
|
+
localization;
|
|
134
|
+
activeIndex;
|
|
135
|
+
data;
|
|
136
|
+
pagerIndexChange = new EventEmitter();
|
|
128
137
|
constructor(localization) {
|
|
129
138
|
this.localization = localization;
|
|
130
|
-
this.pagerIndexChange = new EventEmitter();
|
|
131
139
|
}
|
|
132
140
|
itemClass(idx) {
|
|
133
141
|
return {
|
|
@@ -144,9 +152,8 @@ class ScrollViewPagerComponent {
|
|
|
144
152
|
replaceMessagePlaceholder(message, name, value) {
|
|
145
153
|
return message.replace(new RegExp(`\{\\s*${name}\\s*\}`, 'g'), value);
|
|
146
154
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
ScrollViewPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ScrollViewPagerComponent, isStandalone: true, selector: "kendo-scrollview-pager", inputs: { activeIndex: "activeIndex", data: "data" }, outputs: { pagerIndexChange: "pagerIndexChange" }, ngImport: i0, template: `
|
|
155
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewPagerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
156
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ScrollViewPagerComponent, isStandalone: true, selector: "kendo-scrollview-pager", inputs: { activeIndex: "activeIndex", data: "data" }, outputs: { pagerIndexChange: "pagerIndexChange" }, ngImport: i0, template: `
|
|
150
157
|
<div class="k-scrollview-nav">
|
|
151
158
|
<span [attr.aria-label]="pagerButtonLabel(i + 1)" role="button" class="k-link" *ngFor="let item of data; let i = index"
|
|
152
159
|
[ngClass]="itemClass(i)"
|
|
@@ -154,7 +161,8 @@ ScrollViewPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
154
161
|
</span>
|
|
155
162
|
</div>
|
|
156
163
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
157
|
-
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewPagerComponent, decorators: [{
|
|
158
166
|
type: Component,
|
|
159
167
|
args: [{
|
|
160
168
|
selector: 'kendo-scrollview-pager',
|
|
@@ -181,10 +189,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
181
189
|
* @hidden
|
|
182
190
|
*/
|
|
183
191
|
class ScrollViewMessages extends ComponentMessages {
|
|
192
|
+
/**
|
|
193
|
+
* The label of the buttons in the ScrollView pager. By default they follow the pattern 'Item {itemIndex}'.
|
|
194
|
+
* The default label text when the current item is 1 will be 'Item 1'.
|
|
195
|
+
*/
|
|
196
|
+
pagerButtonLabel;
|
|
197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
198
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ScrollViewMessages, selector: "kendo-scrollview-messages-base", inputs: { pagerButtonLabel: "pagerButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
184
199
|
}
|
|
185
|
-
|
|
186
|
-
ScrollViewMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ScrollViewMessages, selector: "kendo-scrollview-messages-base", inputs: { pagerButtonLabel: "pagerButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollViewMessages, decorators: [{
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewMessages, decorators: [{
|
|
188
201
|
type: Directive,
|
|
189
202
|
args: [{
|
|
190
203
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -198,19 +211,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
198
211
|
* @hidden
|
|
199
212
|
*/
|
|
200
213
|
class LocalizedMessagesDirective extends ScrollViewMessages {
|
|
214
|
+
service;
|
|
201
215
|
constructor(service) {
|
|
202
216
|
super();
|
|
203
217
|
this.service = service;
|
|
204
218
|
}
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
220
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoScrollViewLocalizedMessages]", providers: [
|
|
221
|
+
{
|
|
222
|
+
provide: ScrollViewMessages,
|
|
223
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
224
|
+
}
|
|
225
|
+
], usesInheritance: true, ngImport: i0 });
|
|
205
226
|
}
|
|
206
|
-
|
|
207
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoScrollViewLocalizedMessages]", providers: [
|
|
208
|
-
{
|
|
209
|
-
provide: ScrollViewMessages,
|
|
210
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
211
|
-
}
|
|
212
|
-
], usesInheritance: true, ngImport: i0 });
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
214
228
|
type: Directive,
|
|
215
229
|
args: [{
|
|
216
230
|
providers: [
|
|
@@ -282,73 +296,22 @@ let idx = 0;
|
|
|
282
296
|
* ```
|
|
283
297
|
*/
|
|
284
298
|
class ScrollViewComponent {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
this.data = [];
|
|
302
|
-
/**
|
|
303
|
-
* Enables or disables the endless scrolling mode in which the data source items are endlessly looped
|
|
304
|
-
* ([see example]({% slug endlessscrolling_scrollview %})). By default, `endless` is set to `false`
|
|
305
|
-
* and the endless scrolling mode is disabled.
|
|
306
|
-
*/
|
|
307
|
-
this.endless = false;
|
|
308
|
-
/**
|
|
309
|
-
* Sets `pagerOverlay` to one of three possible values: `dark`, `light` or `none`.
|
|
310
|
-
* By default, the pager overlay is set to `none`.
|
|
311
|
-
*/
|
|
312
|
-
this.pagerOverlay = 'none';
|
|
313
|
-
/**
|
|
314
|
-
* Enables or disables the built-in animations ([see example]({% slug animations_scrollview %})).
|
|
315
|
-
* By default, `animate` is set to `true` and animations are enabled.
|
|
316
|
-
*/
|
|
317
|
-
this.animate = true;
|
|
318
|
-
/**
|
|
319
|
-
* Enables or disables the built-in pager ([see example]({% slug paging_scrollview %})).
|
|
320
|
-
* By default, `pageable` is set to `false` and paging is disabled.
|
|
321
|
-
*/
|
|
322
|
-
this.pageable = false;
|
|
323
|
-
/**
|
|
324
|
-
* Enables or disables the built-in navigation arrows ([see example]({% slug arrows_scrollview %})).
|
|
325
|
-
* By default, `arrows` is set to `false` and arrows are disabled.
|
|
326
|
-
*/
|
|
327
|
-
this.arrows = false;
|
|
328
|
-
/**
|
|
329
|
-
* Fires after the current item is changed.
|
|
330
|
-
*/
|
|
331
|
-
this.itemChanged = new EventEmitter();
|
|
332
|
-
/**
|
|
333
|
-
* Fires after the activeIndex has changed. Allows for two-way binding of the activeIndex property.
|
|
334
|
-
*/
|
|
335
|
-
this.activeIndexChange = new EventEmitter();
|
|
336
|
-
this.scrollViewClass = true;
|
|
337
|
-
this.scrollViewRole = 'application';
|
|
338
|
-
this.scrollViewRoleDescription = 'carousel';
|
|
339
|
-
this.tabIndex = 0;
|
|
340
|
-
this.ariaLive = 'assertive';
|
|
341
|
-
this.touchAction = 'pan-y pinch-zoom';
|
|
342
|
-
this.animationState = null;
|
|
343
|
-
this.view = new DataCollection(() => new DataResultIterator(this.data, this.activeIndex, this.endless, this.pageIndex, this.isRTL));
|
|
344
|
-
this.isDataSourceEmpty = false;
|
|
345
|
-
this.subs = new Subscription();
|
|
346
|
-
this._activeIndex = 0;
|
|
347
|
-
this.index = 0;
|
|
348
|
-
this.pageIndex = null;
|
|
349
|
-
this.transforms = ['translateX(-100%)', 'translateX(0%)', 'translateX(100%)'];
|
|
350
|
-
validatePackage(packageMetadata);
|
|
351
|
-
}
|
|
299
|
+
element;
|
|
300
|
+
localization;
|
|
301
|
+
ngZone;
|
|
302
|
+
renderer;
|
|
303
|
+
/**
|
|
304
|
+
* @hidden
|
|
305
|
+
*/
|
|
306
|
+
chevronLeftIcon = chevronLeftIcon;
|
|
307
|
+
/**
|
|
308
|
+
* @hidden
|
|
309
|
+
*/
|
|
310
|
+
chevronRightIcon = chevronRightIcon;
|
|
311
|
+
/**
|
|
312
|
+
* Provides the data source for the ScrollView ([see example]({% slug datasources_scrollview %})).
|
|
313
|
+
*/
|
|
314
|
+
data = [];
|
|
352
315
|
/**
|
|
353
316
|
* Represents the current item index ([see example]({% slug activeitems_scrollview %})).
|
|
354
317
|
*/
|
|
@@ -358,6 +321,57 @@ class ScrollViewComponent {
|
|
|
358
321
|
get activeIndex() {
|
|
359
322
|
return this._activeIndex;
|
|
360
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Sets the width of the ScrollView ([see example]({% slug dimensions_scrollview %})).
|
|
326
|
+
* By default, the width is not set and you have to explicitly define the `width` value.
|
|
327
|
+
*/
|
|
328
|
+
width;
|
|
329
|
+
/**
|
|
330
|
+
* Sets the height of the ScrollView ([see example]({% slug dimensions_scrollview %})).
|
|
331
|
+
* By default, the height is not set and you have to explicitly define the `height` value.
|
|
332
|
+
*/
|
|
333
|
+
height;
|
|
334
|
+
/**
|
|
335
|
+
* Enables or disables the endless scrolling mode in which the data source items are endlessly looped
|
|
336
|
+
* ([see example]({% slug endlessscrolling_scrollview %})). By default, `endless` is set to `false`
|
|
337
|
+
* and the endless scrolling mode is disabled.
|
|
338
|
+
*/
|
|
339
|
+
endless = false;
|
|
340
|
+
/**
|
|
341
|
+
* Sets `pagerOverlay` to one of three possible values: `dark`, `light` or `none`.
|
|
342
|
+
* By default, the pager overlay is set to `none`.
|
|
343
|
+
*/
|
|
344
|
+
pagerOverlay = 'none';
|
|
345
|
+
/**
|
|
346
|
+
* Enables or disables the built-in animations ([see example]({% slug animations_scrollview %})).
|
|
347
|
+
* By default, `animate` is set to `true` and animations are enabled.
|
|
348
|
+
*/
|
|
349
|
+
animate = true;
|
|
350
|
+
/**
|
|
351
|
+
* Enables or disables the built-in pager ([see example]({% slug paging_scrollview %})).
|
|
352
|
+
* By default, `pageable` is set to `false` and paging is disabled.
|
|
353
|
+
*/
|
|
354
|
+
pageable = false;
|
|
355
|
+
/**
|
|
356
|
+
* Enables or disables the built-in navigation arrows ([see example]({% slug arrows_scrollview %})).
|
|
357
|
+
* By default, `arrows` is set to `false` and arrows are disabled.
|
|
358
|
+
*/
|
|
359
|
+
arrows = false;
|
|
360
|
+
/**
|
|
361
|
+
* Fires after the current item is changed.
|
|
362
|
+
*/
|
|
363
|
+
itemChanged = new EventEmitter();
|
|
364
|
+
/**
|
|
365
|
+
* Fires after the activeIndex has changed. Allows for two-way binding of the activeIndex property.
|
|
366
|
+
*/
|
|
367
|
+
activeIndexChange = new EventEmitter();
|
|
368
|
+
itemTemplateRef;
|
|
369
|
+
itemWrapper;
|
|
370
|
+
prevButton;
|
|
371
|
+
nextButton;
|
|
372
|
+
scrollViewClass = true;
|
|
373
|
+
scrollViewRole = 'application';
|
|
374
|
+
scrollViewRoleDescription = 'carousel';
|
|
361
375
|
get scrollViewLightOverlayClass() {
|
|
362
376
|
return this.pagerOverlay === 'light';
|
|
363
377
|
}
|
|
@@ -366,12 +380,35 @@ class ScrollViewComponent {
|
|
|
366
380
|
}
|
|
367
381
|
get hostWidth() { return this.width; }
|
|
368
382
|
get hostHeight() { return this.height; }
|
|
383
|
+
tabIndex = 0;
|
|
384
|
+
ariaLive = 'assertive';
|
|
369
385
|
get dir() {
|
|
370
386
|
return this.direction;
|
|
371
387
|
}
|
|
388
|
+
touchAction = 'pan-y pinch-zoom';
|
|
389
|
+
animationState = null;
|
|
390
|
+
view = new DataCollection(() => new DataResultIterator(this.data, this.activeIndex, this.endless, this.pageIndex, this.isRTL));
|
|
391
|
+
/**
|
|
392
|
+
* @hidden
|
|
393
|
+
*/
|
|
394
|
+
scrollviewId;
|
|
395
|
+
isDataSourceEmpty = false;
|
|
396
|
+
subs = new Subscription();
|
|
397
|
+
_activeIndex = 0;
|
|
398
|
+
index = 0;
|
|
399
|
+
initialTouchCoordinate;
|
|
400
|
+
pageIndex = null;
|
|
401
|
+
transforms = ['translateX(-100%)', 'translateX(0%)', 'translateX(100%)'];
|
|
372
402
|
get direction() {
|
|
373
403
|
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
374
404
|
}
|
|
405
|
+
constructor(element, localization, ngZone, renderer) {
|
|
406
|
+
this.element = element;
|
|
407
|
+
this.localization = localization;
|
|
408
|
+
this.ngZone = ngZone;
|
|
409
|
+
this.renderer = renderer;
|
|
410
|
+
validatePackage(packageMetadata);
|
|
411
|
+
}
|
|
375
412
|
ngOnInit() {
|
|
376
413
|
this.subs.add(this.renderer.listen(this.element.nativeElement, 'keydown', event => this.keyDown(event)));
|
|
377
414
|
if (this.arrows) {
|
|
@@ -640,15 +677,14 @@ class ScrollViewComponent {
|
|
|
640
677
|
get nextButtonArrowSVGIcon() {
|
|
641
678
|
return this.direction === 'ltr' ? this.chevronRightIcon : this.chevronLeftIcon;
|
|
642
679
|
}
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
], queries: [{ propertyName: "itemTemplateRef", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "itemWrapper", first: true, predicate: ["itemWrapper"], descendants: true }, { propertyName: "prevButton", first: true, predicate: ["prevButton"], descendants: true }, { propertyName: "nextButton", first: true, predicate: ["nextButton"], descendants: true }], exportAs: ["kendoScrollView"], usesOnChanges: true, ngImport: i0, template: `
|
|
680
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
681
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
682
|
+
LocalizationService,
|
|
683
|
+
{
|
|
684
|
+
provide: L10N_PREFIX,
|
|
685
|
+
useValue: 'kendo.scrollview'
|
|
686
|
+
}
|
|
687
|
+
], queries: [{ propertyName: "itemTemplateRef", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "itemWrapper", first: true, predicate: ["itemWrapper"], descendants: true }, { propertyName: "prevButton", first: true, predicate: ["prevButton"], descendants: true }, { propertyName: "nextButton", first: true, predicate: ["nextButton"], descendants: true }], exportAs: ["kendoScrollView"], usesOnChanges: true, ngImport: i0, template: `
|
|
652
688
|
|
|
653
689
|
<ng-container kendoScrollViewLocalizedMessages
|
|
654
690
|
i18n-pagerButtonLabel="kendo.scrollview.pagerButtonLabel|The label for the buttons inside the ScrollView Pager"
|
|
@@ -723,20 +759,21 @@ ScrollViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
723
759
|
</div>
|
|
724
760
|
<div class="k-sr-only" aria-live="polite"></div>
|
|
725
761
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoScrollViewLocalizedMessages]" }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ScrollViewPagerComponent, selector: "kendo-scrollview-pager", inputs: ["activeIndex", "data"], outputs: ["pagerIndexChange"] }], animations: [
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
762
|
+
trigger('animateTo', [
|
|
763
|
+
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
764
|
+
transition('* => right', [
|
|
765
|
+
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
766
|
+
]),
|
|
767
|
+
transition('* => left', [
|
|
768
|
+
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
769
|
+
]),
|
|
770
|
+
transition('* => center', [
|
|
771
|
+
animate('300ms ease-out')
|
|
772
|
+
])
|
|
736
773
|
])
|
|
737
|
-
])
|
|
738
|
-
|
|
739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
774
|
+
] });
|
|
775
|
+
}
|
|
776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewComponent, decorators: [{
|
|
740
777
|
type: Component,
|
|
741
778
|
args: [{
|
|
742
779
|
animations: [
|
|
@@ -914,6 +951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
914
951
|
* ([see example](slug:rtl_scrollview#toc-custom-messages)).
|
|
915
952
|
*/
|
|
916
953
|
class CustomMessagesComponent extends ScrollViewMessages {
|
|
954
|
+
service;
|
|
917
955
|
constructor(service) {
|
|
918
956
|
super();
|
|
919
957
|
this.service = service;
|
|
@@ -921,15 +959,15 @@ class CustomMessagesComponent extends ScrollViewMessages {
|
|
|
921
959
|
get override() {
|
|
922
960
|
return true;
|
|
923
961
|
}
|
|
962
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
963
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-scrollview-messages", providers: [
|
|
964
|
+
{
|
|
965
|
+
provide: ScrollViewMessages,
|
|
966
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
967
|
+
}
|
|
968
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
924
969
|
}
|
|
925
|
-
|
|
926
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-scrollview-messages", providers: [
|
|
927
|
-
{
|
|
928
|
-
provide: ScrollViewMessages,
|
|
929
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
930
|
-
}
|
|
931
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
933
971
|
type: Component,
|
|
934
972
|
args: [{
|
|
935
973
|
providers: [
|
|
@@ -985,11 +1023,11 @@ const KENDO_SCROLLVIEW = [
|
|
|
985
1023
|
* ```
|
|
986
1024
|
*/
|
|
987
1025
|
class ScrollViewModule {
|
|
1026
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1027
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewModule, imports: [ScrollViewComponent, CustomMessagesComponent], exports: [ScrollViewComponent, CustomMessagesComponent] });
|
|
1028
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewModule, providers: [IconsService], imports: [ScrollViewComponent] });
|
|
988
1029
|
}
|
|
989
|
-
|
|
990
|
-
ScrollViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ScrollViewModule, imports: [ScrollViewComponent, CustomMessagesComponent], exports: [ScrollViewComponent, CustomMessagesComponent] });
|
|
991
|
-
ScrollViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollViewModule, providers: [IconsService], imports: [KENDO_SCROLLVIEW] });
|
|
992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollViewModule, decorators: [{
|
|
1030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollViewModule, decorators: [{
|
|
993
1031
|
type: NgModule,
|
|
994
1032
|
args: [{
|
|
995
1033
|
imports: [...KENDO_SCROLLVIEW],
|
|
@@ -14,5 +14,5 @@ export declare class ScrollViewMessages extends ComponentMessages {
|
|
|
14
14
|
*/
|
|
15
15
|
pagerButtonLabel: string;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewMessages, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollViewMessages, "kendo-scrollview-messages-base", never, { "pagerButtonLabel": "pagerButtonLabel"; }, {}, never, never, false, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollViewMessages, "kendo-scrollview-messages-base", never, { "pagerButtonLabel": { "alias": "pagerButtonLabel"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scrollview",
|
|
3
|
-
"version": "17.0.0-develop.
|
|
3
|
+
"version": "17.0.0-develop.40",
|
|
4
4
|
"description": "A ScrollView Component for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -18,26 +18,22 @@
|
|
|
18
18
|
"friendlyName": "ScrollView"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/animations": "
|
|
22
|
-
"@angular/common": "
|
|
23
|
-
"@angular/core": "
|
|
24
|
-
"@angular/platform-browser": "
|
|
21
|
+
"@angular/animations": "16 - 18",
|
|
22
|
+
"@angular/common": "16 - 18",
|
|
23
|
+
"@angular/core": "16 - 18",
|
|
24
|
+
"@angular/platform-browser": "16 - 18",
|
|
25
25
|
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
-
"@progress/kendo-angular-common": "17.0.0-develop.
|
|
27
|
-
"@progress/kendo-angular-l10n": "17.0.0-develop.
|
|
28
|
-
"@progress/kendo-angular-icons": "17.0.0-develop.
|
|
26
|
+
"@progress/kendo-angular-common": "17.0.0-develop.40",
|
|
27
|
+
"@progress/kendo-angular-l10n": "17.0.0-develop.40",
|
|
28
|
+
"@progress/kendo-angular-icons": "17.0.0-develop.40",
|
|
29
29
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.3.1",
|
|
33
|
-
"@progress/kendo-angular-schematics": "17.0.0-develop.
|
|
33
|
+
"@progress/kendo-angular-schematics": "17.0.0-develop.40"
|
|
34
34
|
},
|
|
35
35
|
"schematics": "./schematics/collection.json",
|
|
36
|
-
"module": "
|
|
37
|
-
"es2020": "fesm2020/progress-kendo-angular-scrollview.mjs",
|
|
38
|
-
"esm2020": "esm2020/progress-kendo-angular-scrollview.mjs",
|
|
39
|
-
"fesm2020": "fesm2020/progress-kendo-angular-scrollview.mjs",
|
|
40
|
-
"fesm2015": "fesm2015/progress-kendo-angular-scrollview.mjs",
|
|
36
|
+
"module": "fesm2022/progress-kendo-angular-scrollview.mjs",
|
|
41
37
|
"typings": "index.d.ts",
|
|
42
38
|
"exports": {
|
|
43
39
|
"./package.json": {
|
|
@@ -45,11 +41,9 @@
|
|
|
45
41
|
},
|
|
46
42
|
".": {
|
|
47
43
|
"types": "./index.d.ts",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"node": "./fesm2015/progress-kendo-angular-scrollview.mjs",
|
|
52
|
-
"default": "./fesm2020/progress-kendo-angular-scrollview.mjs"
|
|
44
|
+
"esm2022": "./esm2022/progress-kendo-angular-scrollview.mjs",
|
|
45
|
+
"esm": "./esm2022/progress-kendo-angular-scrollview.mjs",
|
|
46
|
+
"default": "./fesm2022/progress-kendo-angular-scrollview.mjs"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"sideEffects": false
|
|
@@ -19,5 +19,5 @@ export declare class ScrollViewPagerComponent {
|
|
|
19
19
|
pagerButtonLabel(itemIndex: number): string;
|
|
20
20
|
private replaceMessagePlaceholder;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewPagerComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewPagerComponent, "kendo-scrollview-pager", never, { "activeIndex": "activeIndex"; "data": "data"; }, { "pagerIndexChange": "pagerIndexChange"; }, never, never, true, never>;
|
|
22
|
+
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>;
|
|
23
23
|
}
|
|
@@ -225,5 +225,5 @@ export declare class ScrollViewComponent implements OnChanges, OnDestroy {
|
|
|
225
225
|
get prevButtonArrowSVGIcon(): SVGIcon;
|
|
226
226
|
get nextButtonArrowSVGIcon(): SVGIcon;
|
|
227
227
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewComponent, never>;
|
|
228
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollViewComponent, "kendo-scrollview", ["kendoScrollView"], { "data": "data"; "activeIndex": "activeIndex"; "width": "width"; "height": "height"; "endless": "endless"; "pagerOverlay": "pagerOverlay"; "animate": "animate"; "pageable": "pageable"; "arrows": "arrows"; }, { "itemChanged": "itemChanged"; "activeIndexChange": "activeIndexChange"; }, ["itemTemplateRef"], never, true, never>;
|
|
228
|
+
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>;
|
|
229
229
|
}
|