@progress/kendo-angular-scrollview 4.1.3-dev.202201190926 → 5.0.0-next.202202251656

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.
Files changed (51) hide show
  1. package/bundles/kendo-angular-scrollview.umd.js +5 -0
  2. package/{dist/es2015/change-event-args.d.ts → change-event-args.d.ts} +0 -0
  3. package/{dist/es2015/data.collection.d.ts → data.collection.d.ts} +4 -4
  4. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  5. package/{dist/es2015/enums.d.ts → enums.d.ts} +0 -0
  6. package/{dist/es2015 → esm2015}/change-event-args.js +1 -0
  7. package/{dist/es2015 → esm2015}/data.collection.js +1 -1
  8. package/{dist/es → esm2015}/direction.js +1 -0
  9. package/{dist/es → esm2015}/enums.js +0 -0
  10. package/{dist/es/index.js → esm2015/kendo-angular-scrollview.js} +0 -0
  11. package/{dist/es → esm2015}/main.js +0 -0
  12. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  13. package/esm2015/scrollview-pager.component.js +53 -0
  14. package/{dist/es2015 → esm2015}/scrollview.component.js +160 -136
  15. package/{dist/es2015 → esm2015}/scrollview.module.js +15 -11
  16. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-scrollview.js} +222 -191
  17. package/{dist/es2015/index.d.ts → kendo-angular-scrollview.d.ts} +1 -0
  18. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  19. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  20. package/package.json +33 -94
  21. package/schematics/ngAdd/index.js +5 -2
  22. package/schematics/ngAdd/index.js.map +1 -1
  23. package/{dist/es2015/scrollview-pager.component.d.ts → scrollview-pager.component.d.ts} +3 -0
  24. package/{dist/es2015/scrollview.component.d.ts → scrollview.component.d.ts} +12 -8
  25. package/{dist/es2015/scrollview.module.d.ts → scrollview.module.d.ts} +8 -0
  26. package/dist/cdn/js/kendo-angular-scrollview.js +0 -20
  27. package/dist/cdn/main.js +0 -5
  28. package/dist/es/change-event-args.js +0 -4
  29. package/dist/es/data.collection.js +0 -109
  30. package/dist/es/package-metadata.js +0 -15
  31. package/dist/es/scrollview-pager.component.js +0 -43
  32. package/dist/es/scrollview.component.js +0 -543
  33. package/dist/es/scrollview.module.js +0 -61
  34. package/dist/es2015/direction.js +0 -4
  35. package/dist/es2015/enums.js +0 -12
  36. package/dist/es2015/index.js +0 -8
  37. package/dist/es2015/index.metadata.json +0 -1
  38. package/dist/es2015/main.js +0 -7
  39. package/dist/es2015/scrollview-pager.component.js +0 -52
  40. package/dist/fesm5/index.js +0 -759
  41. package/dist/npm/change-event-args.js +0 -6
  42. package/dist/npm/data.collection.js +0 -111
  43. package/dist/npm/direction.js +0 -6
  44. package/dist/npm/enums.js +0 -14
  45. package/dist/npm/index.js +0 -11
  46. package/dist/npm/main.js +0 -12
  47. package/dist/npm/package-metadata.js +0 -17
  48. package/dist/npm/scrollview-pager.component.js +0 -45
  49. package/dist/npm/scrollview.component.js +0 -545
  50. package/dist/npm/scrollview.module.js +0 -63
  51. package/dist/systemjs/kendo-angular-scrollview.js +0 -5
@@ -1,543 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 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 tslib_1 from "tslib";
6
- import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, NgZone, ViewChild, Renderer2 } from '@angular/core';
7
- import { animate, state, style, transition, trigger } from '@angular/animations';
8
- import { Dir } from './enums';
9
- import { Keys } from '@progress/kendo-angular-common';
10
- import { validatePackage } from '@progress/kendo-licensing';
11
- import { packageMetadata } from './package-metadata';
12
- import { DataCollection, DataResultIterator } from './data.collection';
13
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
14
- /**
15
- * Represents the [Kendo UI ScrollView component for Angular]({% slug overview_scrollview %}).
16
- *
17
- * @example
18
- * ```ts
19
- *
20
- * _@Component({
21
- * selector: 'my-app',
22
- * template: `
23
- * <kendo-scrollview
24
- * [data]="items"
25
- * [width]="width"
26
- * [height]="height"
27
- * [endless]="endless"
28
- * [pageable]="pageable">
29
- * <ng-template let-item="item">
30
- * <h2 class="demo-title">{{item.title}}</h2>
31
- * <img src='{{item.url}}' alt='{{item.title}}' [ngStyle]="{minWidth: width}" draggable="false" />
32
- * </ng-template>
33
- * </kendo-scrollview>
34
- * `,
35
- * styles: [`
36
- * .k-scrollview-wrap {
37
- * margin: 0 auto;
38
- * }
39
- * .demo-title {
40
- * position: absolute;
41
- * top: 0;
42
- * left: 0;
43
- * right: 0;
44
- * margin: 0;
45
- * padding: 15px;
46
- * color: #fff;
47
- * background-color: rgba(0,0,0,.4);
48
- * text-align: center;
49
- * font-size: 24px;
50
- * }
51
- * `]
52
- * })
53
- *
54
- * class AppComponent {
55
- * public width: string = "600px";
56
- * public height: string = "400px";
57
- * public endless: boolean = false;
58
- * public pageable: boolean = false;
59
- * public items: any[] = [
60
- * { title: 'Flower', url: 'https://bit.ly/2cJjYuB' },
61
- * { title: 'Mountain', url: 'https://bit.ly/2cTBNaL' },
62
- * { title: 'Sky', url: 'https://bit.ly/2cJl3Cx' }
63
- * ];
64
- * }
65
- * ```
66
- */
67
- var ScrollViewComponent = /** @class */ (function () {
68
- function ScrollViewComponent(element, localization, ngZone, renderer) {
69
- var _this = this;
70
- this.element = element;
71
- this.localization = localization;
72
- this.ngZone = ngZone;
73
- this.renderer = renderer;
74
- /**
75
- * Provides the data source for the ScrollView ([see example]({% slug datasources_scrollview %})).
76
- */
77
- this.data = [];
78
- /**
79
- * Enables or disables the endless scrolling mode in which the data source items are endlessly looped
80
- * ([see example]({% slug endlessscrolling_scrollview %})). By default, `endless` is set to `false`
81
- * and the endless scrolling mode is disabled.
82
- */
83
- this.endless = false;
84
- /**
85
- * Sets `pagerOverlay` to one of three possible values: `dark`, `light` or `none`.
86
- * By default, the pager overlay is set to `none`.
87
- */
88
- this.pagerOverlay = 'none';
89
- /**
90
- * Enables or disables the built-in animations ([see example]({% slug animations_scrollview %})).
91
- * By default, `animate` is set to `true` and animations are enabled.
92
- */
93
- this.animate = true;
94
- /**
95
- * Enables or disables the built-in pager ([see example]({% slug paging_scrollview %})).
96
- * By default, `pageable` is set to `false` and paging is disabled.
97
- */
98
- this.pageable = false;
99
- /**
100
- * Enables or disables the built-in navigation arrows ([see example]({% slug arrows_scrollview %})).
101
- * By default, `arrows` is set to `false` and arrows are disabled.
102
- */
103
- this.arrows = false;
104
- /**
105
- * Fires after the current item is changed.
106
- */
107
- this.itemChanged = new EventEmitter();
108
- /**
109
- * Fires after the activeIndex has changed. Allows for two-way binding of the activeIndex property.
110
- */
111
- this.activeIndexChange = new EventEmitter();
112
- this.scrollViewClass = true;
113
- this.tabIndex = 1;
114
- this.ariaLive = 'assertive';
115
- this.touchAction = 'pan-y pinch-zoom';
116
- this.animationState = null;
117
- this.view = new DataCollection(function () {
118
- return new DataResultIterator(_this.data, _this.activeIndex, _this.endless, _this.pageIndex, _this.isRTL);
119
- });
120
- this.isDataSourceEmpty = false;
121
- this._activeIndex = 0;
122
- this.index = 0;
123
- this.pageIndex = null;
124
- this.transforms = ['translateX(-100%)', 'translateX(0%)', 'translateX(100%)'];
125
- validatePackage(packageMetadata);
126
- }
127
- Object.defineProperty(ScrollViewComponent.prototype, "activeIndex", {
128
- get: function () {
129
- return this._activeIndex;
130
- },
131
- /**
132
- * Represents the current item index ([see example]({% slug activeitems_scrollview %})).
133
- */
134
- set: function (value) {
135
- this.index = this._activeIndex = value;
136
- },
137
- enumerable: true,
138
- configurable: true
139
- });
140
- Object.defineProperty(ScrollViewComponent.prototype, "scrollViewLightOverlayClass", {
141
- get: function () {
142
- return this.pagerOverlay === 'light';
143
- },
144
- enumerable: true,
145
- configurable: true
146
- });
147
- Object.defineProperty(ScrollViewComponent.prototype, "scrollViewDarkOverlayClass", {
148
- get: function () {
149
- return this.pagerOverlay === 'dark';
150
- },
151
- enumerable: true,
152
- configurable: true
153
- });
154
- Object.defineProperty(ScrollViewComponent.prototype, "hostWidth", {
155
- get: function () { return this.width; },
156
- enumerable: true,
157
- configurable: true
158
- });
159
- Object.defineProperty(ScrollViewComponent.prototype, "hostHeight", {
160
- get: function () { return this.height; },
161
- enumerable: true,
162
- configurable: true
163
- });
164
- Object.defineProperty(ScrollViewComponent.prototype, "dir", {
165
- get: function () {
166
- return this.direction;
167
- },
168
- enumerable: true,
169
- configurable: true
170
- });
171
- Object.defineProperty(ScrollViewComponent.prototype, "direction", {
172
- get: function () {
173
- return this.localization.rtl ? 'rtl' : 'ltr';
174
- },
175
- enumerable: true,
176
- configurable: true
177
- });
178
- /**
179
- * @hidden
180
- */
181
- ScrollViewComponent.prototype.keyDown = function (e) {
182
- if (e.keyCode === Keys.ArrowLeft) {
183
- if (this.isRTL) {
184
- this.next();
185
- }
186
- else {
187
- this.prev();
188
- }
189
- }
190
- if (e.keyCode === Keys.ArrowRight) {
191
- if (this.isRTL) {
192
- this.prev();
193
- }
194
- else {
195
- this.next();
196
- }
197
- }
198
- };
199
- ScrollViewComponent.prototype.ngOnChanges = function (_) {
200
- this.activeIndex = Math.max(Math.min(this.activeIndex, this.view.total - 1), 0);
201
- };
202
- /**
203
- * Navigates the ScrollView to the previous item.
204
- */
205
- ScrollViewComponent.prototype.prev = function () {
206
- this.navigate(Dir.Prev);
207
- };
208
- /**
209
- * Navigates the ScrollView to the next item.
210
- */
211
- ScrollViewComponent.prototype.next = function () {
212
- this.navigate(Dir.Next);
213
- };
214
- /**
215
- * @hidden
216
- */
217
- ScrollViewComponent.prototype.transitionEndHandler = function (e) {
218
- this.animationState = null;
219
- if (e.toState === 'left' || e.toState === 'right') {
220
- if (this.pageIndex !== null) {
221
- this.activeIndex = this.pageIndex;
222
- this.pageIndex = null;
223
- }
224
- this.activeIndex = this.index;
225
- this.activeIndexChange.emit(this.activeIndex);
226
- this.itemChanged.emit({ index: this.activeIndex, item: this.view.item(1) });
227
- }
228
- };
229
- /**
230
- * @hidden
231
- */
232
- ScrollViewComponent.prototype.handlePress = function (e) {
233
- this.initialTouchCoordinate = e.pageX;
234
- };
235
- /**
236
- * @hidden
237
- */
238
- ScrollViewComponent.prototype.handleDrag = function (e) {
239
- var deltaX = e.pageX - this.initialTouchCoordinate;
240
- if (!this.animationState && !this.isDragForbidden(deltaX) && this.draggedInsideBounds(deltaX)) {
241
- this.renderer.setStyle(this.itemWrapper.nativeElement, 'transform', "translateX(" + deltaX + "px)");
242
- }
243
- };
244
- /**
245
- * @hidden
246
- */
247
- ScrollViewComponent.prototype.handleRelease = function (e) {
248
- var _this = this;
249
- var deltaX = e.pageX - this.initialTouchCoordinate;
250
- if (this.isDragForbidden(deltaX)) {
251
- return;
252
- }
253
- this.ngZone.run(function () {
254
- if (_this.draggedEnoughToNavigate(deltaX)) {
255
- if (_this.isRTL) {
256
- _this.changeIndex(deltaX < 0 ? Dir.Prev : Dir.Next);
257
- }
258
- else {
259
- _this.changeIndex(deltaX > 0 ? Dir.Prev : Dir.Next);
260
- }
261
- if (!_this.animate) {
262
- _this.renderer.removeStyle(_this.itemWrapper.nativeElement, 'transform');
263
- _this.activeIndexChange.emit(_this.activeIndex);
264
- _this.itemChanged.emit({ index: _this.activeIndex, item: _this.view.item(1) });
265
- }
266
- }
267
- else {
268
- if (_this.animate && deltaX) {
269
- _this.animationState = 'center';
270
- }
271
- else {
272
- _this.renderer.removeStyle(_this.itemWrapper.nativeElement, 'transform');
273
- }
274
- }
275
- });
276
- };
277
- /**
278
- * @hidden
279
- */
280
- ScrollViewComponent.prototype.pageChange = function (idx) {
281
- if (!this.animationState && this.activeIndex !== idx) {
282
- if (this.animate) {
283
- this.pageIndex = idx;
284
- if (this.isRTL) {
285
- this.animationState = (this.pageIndex > this.index ? 'right' : 'left');
286
- }
287
- else {
288
- this.animationState = (this.pageIndex > this.index ? 'left' : 'right');
289
- }
290
- }
291
- else {
292
- this.activeIndex = idx;
293
- }
294
- }
295
- };
296
- /**
297
- * @hidden
298
- */
299
- ScrollViewComponent.prototype.inlineListItemStyles = function (idx) {
300
- return {
301
- 'height': this.height,
302
- 'transform': this.transforms[idx],
303
- 'width': '100%'
304
- };
305
- };
306
- /**
307
- * @hidden
308
- */
309
- ScrollViewComponent.prototype.displayLeftArrow = function () {
310
- var isNotBorderItem;
311
- if (this.isRTL) {
312
- isNotBorderItem = this.activeIndex + 1 < this.view.total;
313
- }
314
- else {
315
- isNotBorderItem = this.activeIndex > 0;
316
- }
317
- return (this.endless || isNotBorderItem) && this.view.total > 0;
318
- };
319
- /**
320
- * @hidden
321
- */
322
- ScrollViewComponent.prototype.leftArrowClick = function () {
323
- if (this.isRTL) {
324
- this.next();
325
- }
326
- else {
327
- this.prev();
328
- }
329
- };
330
- /**
331
- * @hidden
332
- */
333
- ScrollViewComponent.prototype.displayRightArrow = function () {
334
- var isNotBorderItem;
335
- if (this.isRTL) {
336
- isNotBorderItem = this.activeIndex > 0;
337
- }
338
- else {
339
- isNotBorderItem = this.activeIndex + 1 < this.view.total;
340
- }
341
- return (this.endless || isNotBorderItem) && this.view.total > 0;
342
- };
343
- /**
344
- * @hidden
345
- */
346
- ScrollViewComponent.prototype.rightArrowClick = function () {
347
- if (this.isRTL) {
348
- this.prev();
349
- }
350
- else {
351
- this.next();
352
- }
353
- };
354
- ScrollViewComponent.prototype.draggedInsideBounds = function (deltaX) {
355
- return Math.abs(deltaX) <= this.element.nativeElement.offsetWidth;
356
- };
357
- ScrollViewComponent.prototype.draggedEnoughToNavigate = function (deltaX) {
358
- return Math.abs(deltaX) > (this.element.nativeElement.offsetWidth / 2);
359
- };
360
- ScrollViewComponent.prototype.isDragForbidden = function (deltaX) {
361
- var pastEnd;
362
- var isEndReached;
363
- if (this.isRTL) {
364
- pastEnd = deltaX < 0 && deltaX !== 0;
365
- }
366
- else {
367
- pastEnd = deltaX > 0 && deltaX !== 0;
368
- }
369
- isEndReached = ((this.activeIndex === 0 && pastEnd) || (this.activeIndex === this.view.total - 1 && !pastEnd));
370
- return !this.endless && isEndReached;
371
- };
372
- ScrollViewComponent.prototype.navigate = function (direction) {
373
- if (this.isDataSourceEmpty || this.animationState) {
374
- return;
375
- }
376
- this.changeIndex(direction);
377
- if (!this.animate) {
378
- this.activeIndexChange.emit(this.activeIndex);
379
- this.itemChanged.emit({ index: this.activeIndex, item: this.view.item(1) });
380
- }
381
- };
382
- ScrollViewComponent.prototype.changeIndex = function (direction) {
383
- if (direction === Dir.Next && this.view.canMoveNext()) {
384
- this.index = (this.index + 1) % this.view.total;
385
- if (this.animate) {
386
- this.animationState = this.isRTL ? 'right' : 'left';
387
- }
388
- else {
389
- this.activeIndex = this.index;
390
- }
391
- }
392
- else if (direction === Dir.Prev && this.view.canMovePrev()) {
393
- this.index = this.index === 0 ? this.view.total - 1 : this.index - 1;
394
- if (this.animate) {
395
- this.animationState = this.isRTL ? 'left' : 'right';
396
- }
397
- else {
398
- this.activeIndex = this.index;
399
- }
400
- }
401
- };
402
- Object.defineProperty(ScrollViewComponent.prototype, "isRTL", {
403
- get: function () {
404
- return this.direction === 'rtl';
405
- },
406
- enumerable: true,
407
- configurable: true
408
- });
409
- tslib_1.__decorate([
410
- Input(),
411
- tslib_1.__metadata("design:type", Array)
412
- ], ScrollViewComponent.prototype, "data", void 0);
413
- tslib_1.__decorate([
414
- Input(),
415
- tslib_1.__metadata("design:type", Number),
416
- tslib_1.__metadata("design:paramtypes", [Number])
417
- ], ScrollViewComponent.prototype, "activeIndex", null);
418
- tslib_1.__decorate([
419
- Input(),
420
- tslib_1.__metadata("design:type", String)
421
- ], ScrollViewComponent.prototype, "width", void 0);
422
- tslib_1.__decorate([
423
- Input(),
424
- tslib_1.__metadata("design:type", String)
425
- ], ScrollViewComponent.prototype, "height", void 0);
426
- tslib_1.__decorate([
427
- Input(),
428
- tslib_1.__metadata("design:type", Boolean)
429
- ], ScrollViewComponent.prototype, "endless", void 0);
430
- tslib_1.__decorate([
431
- Input(),
432
- tslib_1.__metadata("design:type", String)
433
- ], ScrollViewComponent.prototype, "pagerOverlay", void 0);
434
- tslib_1.__decorate([
435
- Input(),
436
- tslib_1.__metadata("design:type", Boolean)
437
- ], ScrollViewComponent.prototype, "animate", void 0);
438
- tslib_1.__decorate([
439
- Input(),
440
- tslib_1.__metadata("design:type", Boolean)
441
- ], ScrollViewComponent.prototype, "pageable", void 0);
442
- tslib_1.__decorate([
443
- Input(),
444
- tslib_1.__metadata("design:type", Boolean)
445
- ], ScrollViewComponent.prototype, "arrows", void 0);
446
- tslib_1.__decorate([
447
- Output(),
448
- tslib_1.__metadata("design:type", EventEmitter)
449
- ], ScrollViewComponent.prototype, "itemChanged", void 0);
450
- tslib_1.__decorate([
451
- Output(),
452
- tslib_1.__metadata("design:type", EventEmitter)
453
- ], ScrollViewComponent.prototype, "activeIndexChange", void 0);
454
- tslib_1.__decorate([
455
- ContentChild(TemplateRef, { static: false }),
456
- tslib_1.__metadata("design:type", TemplateRef)
457
- ], ScrollViewComponent.prototype, "itemTemplateRef", void 0);
458
- tslib_1.__decorate([
459
- ViewChild('itemWrapper', { static: false }),
460
- tslib_1.__metadata("design:type", ElementRef)
461
- ], ScrollViewComponent.prototype, "itemWrapper", void 0);
462
- tslib_1.__decorate([
463
- HostBinding('class.k-scrollview'),
464
- tslib_1.__metadata("design:type", Boolean)
465
- ], ScrollViewComponent.prototype, "scrollViewClass", void 0);
466
- tslib_1.__decorate([
467
- HostBinding('class.k-scrollview-light'),
468
- tslib_1.__metadata("design:type", Boolean),
469
- tslib_1.__metadata("design:paramtypes", [])
470
- ], ScrollViewComponent.prototype, "scrollViewLightOverlayClass", null);
471
- tslib_1.__decorate([
472
- HostBinding('class.k-scrollview-dark'),
473
- tslib_1.__metadata("design:type", Boolean),
474
- tslib_1.__metadata("design:paramtypes", [])
475
- ], ScrollViewComponent.prototype, "scrollViewDarkOverlayClass", null);
476
- tslib_1.__decorate([
477
- HostBinding('style.width'),
478
- tslib_1.__metadata("design:type", String),
479
- tslib_1.__metadata("design:paramtypes", [])
480
- ], ScrollViewComponent.prototype, "hostWidth", null);
481
- tslib_1.__decorate([
482
- HostBinding('style.height'),
483
- tslib_1.__metadata("design:type", String),
484
- tslib_1.__metadata("design:paramtypes", [])
485
- ], ScrollViewComponent.prototype, "hostHeight", null);
486
- tslib_1.__decorate([
487
- HostBinding('attr.tabindex'),
488
- tslib_1.__metadata("design:type", Number)
489
- ], ScrollViewComponent.prototype, "tabIndex", void 0);
490
- tslib_1.__decorate([
491
- HostBinding('attr.aria-live'),
492
- tslib_1.__metadata("design:type", String)
493
- ], ScrollViewComponent.prototype, "ariaLive", void 0);
494
- tslib_1.__decorate([
495
- HostBinding('attr.dir'),
496
- tslib_1.__metadata("design:type", String),
497
- tslib_1.__metadata("design:paramtypes", [])
498
- ], ScrollViewComponent.prototype, "dir", null);
499
- tslib_1.__decorate([
500
- HostBinding('style.touch-action'),
501
- tslib_1.__metadata("design:type", String)
502
- ], ScrollViewComponent.prototype, "touchAction", void 0);
503
- tslib_1.__decorate([
504
- HostListener('keydown', ['$event']),
505
- tslib_1.__metadata("design:type", Function),
506
- tslib_1.__metadata("design:paramtypes", [Object]),
507
- tslib_1.__metadata("design:returntype", void 0)
508
- ], ScrollViewComponent.prototype, "keyDown", null);
509
- ScrollViewComponent = tslib_1.__decorate([
510
- Component({
511
- animations: [
512
- trigger('animateTo', [
513
- state('center, left, right', style({ transform: 'translateX(0)' })),
514
- transition('* => right', [
515
- animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
516
- ]),
517
- transition('* => left', [
518
- animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
519
- ]),
520
- transition('* => center', [
521
- animate('300ms ease-out')
522
- ])
523
- ])
524
- ],
525
- exportAs: 'kendoScrollView',
526
- providers: [
527
- LocalizationService,
528
- {
529
- provide: L10N_PREFIX,
530
- useValue: 'kendo.scrollview'
531
- }
532
- ],
533
- selector: 'kendo-scrollview',
534
- template: "\n <ul class='k-scrollview-wrap'\n #itemWrapper\n [@animateTo]=\"animationState\"\n (@animateTo.done)=\"transitionEndHandler($event)\"\n kendoDraggable\n (kendoDrag)=\"handleDrag($event)\"\n (kendoPress)=\"handlePress($event)\"\n (kendoRelease)=\"handleRelease($event)\"\n >\n <li\n *ngFor=\"let item of view;let i=index\"\n [ngStyle]=\"inlineListItemStyles(i)\"\n [attr.aria-hidden]=\"i !== 1\"\n >\n <ng-template\n [ngTemplateOutlet]=\"itemTemplateRef\"\n [ngTemplateOutletContext]=\"{ item: item }\">\n </ng-template>\n </li>\n </ul>\n <div class='k-scrollview-elements'\n [ngStyle]=\"{'height': height}\"\n *ngIf=\"!isDataSourceEmpty && (pageable||arrows)\">\n\n <a class=\"k-scrollview-prev\"\n aria-label=\"previous\"\n *ngIf=\"arrows && displayLeftArrow()\"\n (click)=\"leftArrowClick()\">\n <span class=\"k-icon k-i-arrowhead-w\"></span>\n </a>\n <a class=\"k-scrollview-next\"\n aria-label=\"next\"\n *ngIf=\"arrows && displayRightArrow()\"\n (click)=\"rightArrowClick()\">\n <span class=\"k-icon k-i-arrowhead-e\"></span>\n </a>\n <kendo-scrollview-pager\n class='k-scrollview-nav-wrap'\n *ngIf=\"pageable\"\n (pagerIndexChange)=\"pageChange($event)\"\n [data]=\"data\"\n [activeIndex]=\"activeIndex\">\n </kendo-scrollview-pager>\n </div>\n "
535
- }),
536
- tslib_1.__metadata("design:paramtypes", [ElementRef,
537
- LocalizationService,
538
- NgZone,
539
- Renderer2])
540
- ], ScrollViewComponent);
541
- return ScrollViewComponent;
542
- }());
543
- export { ScrollViewComponent };
@@ -1,61 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 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 tslib_1 from "tslib";
6
- import { NgModule } from '@angular/core';
7
- import { CommonModule } from '@angular/common';
8
- import { ScrollViewComponent } from './scrollview.component';
9
- import { ScrollViewPagerComponent } from "./scrollview-pager.component";
10
- import { DraggableModule } from '@progress/kendo-angular-common';
11
- var DECLARATIONS = [
12
- ScrollViewComponent,
13
- ScrollViewPagerComponent
14
- ];
15
- var EXPORTS = [
16
- ScrollViewComponent
17
- ];
18
- /**
19
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
20
- * definition for the ScrollView component.
21
- *
22
- * @example
23
- *
24
- * ```ts-no-run
25
- * // Import the ScrollView module
26
- * import { ScrollViewModule } from '@progress/kendo-angular-scrollview';
27
- *
28
- * // The browser platform with a compiler
29
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
30
- *
31
- * import { NgModule } from '@angular/core';
32
- *
33
- * // Import the app component
34
- * import { AppComponent } from './app.component';
35
- *
36
- * // Define the app module
37
- * _@NgModule({
38
- * declarations: [AppComponent], // declare app component
39
- * imports: [BrowserModule, ScrollViewModule], // import ScrollView module
40
- * bootstrap: [AppComponent]
41
- * })
42
- * export class AppModule {}
43
- *
44
- * // Compile and launch the module
45
- * platformBrowserDynamic().bootstrapModule(AppModule);
46
- *
47
- * ```
48
- */
49
- var ScrollViewModule = /** @class */ (function () {
50
- function ScrollViewModule() {
51
- }
52
- ScrollViewModule = tslib_1.__decorate([
53
- NgModule({
54
- declarations: [DECLARATIONS],
55
- exports: [EXPORTS],
56
- imports: [CommonModule, DraggableModule]
57
- })
58
- ], ScrollViewModule);
59
- return ScrollViewModule;
60
- }());
61
- export { ScrollViewModule };
@@ -1,4 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 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 var Dir;
9
- (function (Dir) {
10
- Dir[Dir["Next"] = 1] = "Next";
11
- Dir[Dir["Prev"] = -1] = "Prev";
12
- })(Dir || (Dir = {}));
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './main';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"ScrollViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":87,"character":1},"arguments":[{"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":89,"character":8},"arguments":["animateTo",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":90,"character":12},"arguments":["center, left, right",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":90,"character":41},"arguments":[{"transform":"translateX(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":91,"character":12},"arguments":["* => right",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":92,"character":16},"arguments":["300ms ease-out",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":92,"character":42},"arguments":[{"transform":"translateX(100%)"}]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":94,"character":12},"arguments":["* => left",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":95,"character":16},"arguments":["300ms ease-out",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":95,"character":42},"arguments":[{"transform":"translateX(-100%)"}]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":97,"character":12},"arguments":["* => center",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":98,"character":16},"arguments":["300ms ease-out"]}]]}]]}],"exportAs":"kendoScrollView","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":104,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":106,"character":21},"useValue":"kendo.scrollview"}],"selector":"kendo-scrollview","template":"\n <ul class='k-scrollview-wrap'\n #itemWrapper\n [@animateTo]=\"animationState\"\n (@animateTo.done)=\"transitionEndHandler($event)\"\n kendoDraggable\n (kendoDrag)=\"handleDrag($event)\"\n (kendoPress)=\"handlePress($event)\"\n (kendoRelease)=\"handleRelease($event)\"\n >\n <li\n *ngFor=\"let item of view;let i=index\"\n [ngStyle]=\"inlineListItemStyles(i)\"\n [attr.aria-hidden]=\"i !== 1\"\n >\n <ng-template\n [ngTemplateOutlet]=\"itemTemplateRef\"\n [ngTemplateOutletContext]=\"{ item: item }\">\n </ng-template>\n </li>\n </ul>\n <div class='k-scrollview-elements'\n [ngStyle]=\"{'height': height}\"\n *ngIf=\"!isDataSourceEmpty && (pageable||arrows)\">\n\n <a class=\"k-scrollview-prev\"\n aria-label=\"previous\"\n *ngIf=\"arrows && displayLeftArrow()\"\n (click)=\"leftArrowClick()\">\n <span class=\"k-icon k-i-arrowhead-w\"></span>\n </a>\n <a class=\"k-scrollview-next\"\n aria-label=\"next\"\n *ngIf=\"arrows && displayRightArrow()\"\n (click)=\"rightArrowClick()\">\n <span class=\"k-icon k-i-arrowhead-e\"></span>\n </a>\n <kendo-scrollview-pager\n class='k-scrollview-nav-wrap'\n *ngIf=\"pageable\"\n (pagerIndexChange)=\"pageChange($event)\"\n [data]=\"data\"\n [activeIndex]=\"activeIndex\">\n </kendo-scrollview-pager>\n </div>\n "}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":163,"character":5}}]}],"activeIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":168,"character":5}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":180,"character":5}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":186,"character":5}}]}],"endless":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":193,"character":5}}]}],"pagerOverlay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":199,"character":5}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":205,"character":5}}]}],"pageable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":211,"character":5}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":217,"character":5}}]}],"itemChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":222,"character":5}}]}],"activeIndexChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":227,"character":5}}]}],"itemTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":229,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":229,"character":18},{"static":false}]}]}],"itemWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":232,"character":5},"arguments":["itemWrapper",{"static":false}]}]}],"scrollViewClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":235,"character":5},"arguments":["class.k-scrollview"]}]}],"scrollViewLightOverlayClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":237,"character":5},"arguments":["class.k-scrollview-light"]}]}],"scrollViewDarkOverlayClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":241,"character":5},"arguments":["class.k-scrollview-dark"]}]}],"hostWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":245,"character":5},"arguments":["style.width"]}]}],"hostHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":246,"character":5},"arguments":["style.height"]}]}],"tabIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":247,"character":5},"arguments":["attr.tabindex"]}]}],"ariaLive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":248,"character":5},"arguments":["attr.aria-live"]}]}],"dir":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":250,"character":5},"arguments":["attr.dir"]}]}],"touchAction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":254,"character":5},"arguments":["style.touch-action"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":273,"character":27},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":274,"character":30},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":275,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":276,"character":26}]}],"keyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":284,"character":5},"arguments":["keydown",["$event"]]}]}],"ngOnChanges":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"transitionEndHandler":[{"__symbolic":"method"}],"handlePress":[{"__symbolic":"method"}],"handleDrag":[{"__symbolic":"method"}],"handleRelease":[{"__symbolic":"method"}],"pageChange":[{"__symbolic":"method"}],"inlineListItemStyles":[{"__symbolic":"method"}],"displayLeftArrow":[{"__symbolic":"method"}],"leftArrowClick":[{"__symbolic":"method"}],"displayRightArrow":[{"__symbolic":"method"}],"rightArrowClick":[{"__symbolic":"method"}],"draggedInsideBounds":[{"__symbolic":"method"}],"draggedEnoughToNavigate":[{"__symbolic":"method"}],"isDragForbidden":[{"__symbolic":"method"}],"navigate":[{"__symbolic":"method"}],"changeIndex":[{"__symbolic":"method"}]}},"ScrollViewModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":46,"character":1},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ScrollViewComponent"},{"__symbolic":"reference","name":"ScrollViewPagerComponent"}]],"exports":[[{"__symbolic":"reference","name":"ScrollViewComponent"}]],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":49,"character":14},{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"DraggableModule","line":49,"character":28}]}]}],"members":{}},"ScrollViewPagerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"kendo-scrollview-pager","template":"\n <ul class=\"k-scrollview-pageable k-scrollview-nav\">\n <li class=\"k-button\" *ngFor=\"let item of data; let i = index\"\n [ngClass]=\"itemClass(i)\"\n (click)=\"indexChange(i)\">\n </li>\n </ul>\n "}]}],"members":{"activeIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":5}}]}],"pagerIndexChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":22,"character":5}}]}],"itemClass":[{"__symbolic":"method"}],"indexChange":[{"__symbolic":"method"}]}},"ItemChangedEvent":{"__symbolic":"interface"},"ScrollViewPagerOverlay":{"__symbolic":"interface"}},"origins":{"ScrollViewComponent":"./scrollview.component","ScrollViewModule":"./scrollview.module","ScrollViewPagerComponent":"./scrollview-pager.component","ItemChangedEvent":"./change-event-args","ScrollViewPagerOverlay":"./enums"},"importAs":"@progress/kendo-angular-scrollview"}