@progress/kendo-angular-scrollview 4.1.4-dev.202202251422 → 5.0.0-dev.202204191146
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/bundles/kendo-angular-scrollview.umd.js +5 -0
- package/{dist/es2015/change-event-args.d.ts → change-event-args.d.ts} +0 -0
- package/{dist/es2015/data.collection.d.ts → data.collection.d.ts} +4 -4
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/enums.d.ts → enums.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/change-event-args.js +1 -0
- package/{dist/es2015 → esm2015}/data.collection.js +0 -1
- package/{dist/es → esm2015}/direction.js +1 -0
- package/{dist/es → esm2015}/enums.js +0 -0
- package/{dist/es/index.js → esm2015/kendo-angular-scrollview.js} +0 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/scrollview-pager.component.js +53 -0
- package/{dist/es2015 → esm2015}/scrollview.component.js +160 -136
- package/{dist/es2015 → esm2015}/scrollview.module.js +15 -11
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-scrollview.js} +221 -191
- package/{dist/es2015/index.d.ts → kendo-angular-scrollview.d.ts} +1 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +30 -93
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/scrollview-pager.component.d.ts → scrollview-pager.component.d.ts} +3 -0
- package/{dist/es2015/scrollview.component.d.ts → scrollview.component.d.ts} +12 -8
- package/{dist/es2015/scrollview.module.d.ts → scrollview.module.d.ts} +8 -0
- package/dist/cdn/js/kendo-angular-scrollview.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/change-event-args.js +0 -4
- package/dist/es/data.collection.js +0 -109
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/scrollview-pager.component.js +0 -43
- package/dist/es/scrollview.component.js +0 -543
- package/dist/es/scrollview.module.js +0 -61
- package/dist/es2015/direction.js +0 -4
- package/dist/es2015/enums.js +0 -12
- package/dist/es2015/index.js +0 -8
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -7
- package/dist/es2015/scrollview-pager.component.js +0 -52
- package/dist/fesm5/index.js +0 -759
- package/dist/npm/change-event-args.js +0 -6
- package/dist/npm/data.collection.js +0 -111
- package/dist/npm/direction.js +0 -6
- package/dist/npm/enums.js +0 -14
- package/dist/npm/index.js +0 -11
- package/dist/npm/main.js +0 -12
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/scrollview-pager.component.js +0 -45
- package/dist/npm/scrollview.component.js +0 -545
- package/dist/npm/scrollview.module.js +0 -63
- package/dist/systemjs/kendo-angular-scrollview.js +0 -5
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
* Copyright © 2021 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
|
-
import
|
|
6
|
-
import { EventEmitter, Input, Output,
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { EventEmitter, Component, Input, Output, TemplateRef, ContentChild, ViewChild, HostBinding, HostListener, NgModule } from '@angular/core';
|
|
7
7
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
8
|
+
import * as i3 from '@progress/kendo-angular-common';
|
|
8
9
|
import { Keys, DraggableModule } from '@progress/kendo-angular-common';
|
|
9
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
|
+
import * as i1 from '@progress/kendo-angular-l10n';
|
|
10
12
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
13
|
+
import * as i4 from '@angular/common';
|
|
11
14
|
import { CommonModule } from '@angular/common';
|
|
12
15
|
|
|
13
16
|
/**
|
|
@@ -26,12 +29,11 @@ const packageMetadata = {
|
|
|
26
29
|
name: '@progress/kendo-angular-scrollview',
|
|
27
30
|
productName: 'Kendo UI for Angular',
|
|
28
31
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
29
|
-
publishDate:
|
|
32
|
+
publishDate: 1650368763,
|
|
30
33
|
version: '',
|
|
31
34
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
32
35
|
};
|
|
33
36
|
|
|
34
|
-
/* tslint:disable:use-life-cycle-interface */
|
|
35
37
|
/** @hidden */
|
|
36
38
|
const iterator = getIterator();
|
|
37
39
|
// TODO: Move to kendo-common
|
|
@@ -117,6 +119,52 @@ class DataCollection {
|
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @hidden
|
|
124
|
+
*/
|
|
125
|
+
class ScrollViewPagerComponent {
|
|
126
|
+
constructor() {
|
|
127
|
+
this.pagerIndexChange = new EventEmitter();
|
|
128
|
+
}
|
|
129
|
+
itemClass(idx) {
|
|
130
|
+
return {
|
|
131
|
+
'k-primary': idx === this.activeIndex
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
indexChange(selectedIndex) {
|
|
135
|
+
this.pagerIndexChange.emit(selectedIndex);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
ScrollViewPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewPagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
139
|
+
ScrollViewPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ScrollViewPagerComponent, selector: "kendo-scrollview-pager", inputs: { activeIndex: "activeIndex", data: "data" }, outputs: { pagerIndexChange: "pagerIndexChange" }, ngImport: i0, template: `
|
|
140
|
+
<ul class="k-scrollview-pageable k-scrollview-nav">
|
|
141
|
+
<li class="k-button" *ngFor="let item of data; let i = index"
|
|
142
|
+
[ngClass]="itemClass(i)"
|
|
143
|
+
(click)="indexChange(i)">
|
|
144
|
+
</li>
|
|
145
|
+
</ul>
|
|
146
|
+
`, isInline: true, directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewPagerComponent, decorators: [{
|
|
148
|
+
type: Component,
|
|
149
|
+
args: [{
|
|
150
|
+
selector: 'kendo-scrollview-pager',
|
|
151
|
+
template: `
|
|
152
|
+
<ul class="k-scrollview-pageable k-scrollview-nav">
|
|
153
|
+
<li class="k-button" *ngFor="let item of data; let i = index"
|
|
154
|
+
[ngClass]="itemClass(i)"
|
|
155
|
+
(click)="indexChange(i)">
|
|
156
|
+
</li>
|
|
157
|
+
</ul>
|
|
158
|
+
`
|
|
159
|
+
}]
|
|
160
|
+
}], propDecorators: { activeIndex: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], data: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], pagerIndexChange: [{
|
|
165
|
+
type: Output
|
|
166
|
+
}] } });
|
|
167
|
+
|
|
120
168
|
/**
|
|
121
169
|
* Represents the [Kendo UI ScrollView component for Angular]({% slug overview_scrollview %}).
|
|
122
170
|
*
|
|
@@ -170,7 +218,7 @@ class DataCollection {
|
|
|
170
218
|
* }
|
|
171
219
|
* ```
|
|
172
220
|
*/
|
|
173
|
-
|
|
221
|
+
class ScrollViewComponent {
|
|
174
222
|
constructor(element, localization, ngZone, renderer) {
|
|
175
223
|
this.element = element;
|
|
176
224
|
this.localization = localization;
|
|
@@ -476,133 +524,15 @@ let ScrollViewComponent = class ScrollViewComponent {
|
|
|
476
524
|
get isRTL() {
|
|
477
525
|
return this.direction === 'rtl';
|
|
478
526
|
}
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
], ScrollViewComponent.prototype, "activeIndex", null);
|
|
489
|
-
__decorate([
|
|
490
|
-
Input(),
|
|
491
|
-
__metadata("design:type", String)
|
|
492
|
-
], ScrollViewComponent.prototype, "width", void 0);
|
|
493
|
-
__decorate([
|
|
494
|
-
Input(),
|
|
495
|
-
__metadata("design:type", String)
|
|
496
|
-
], ScrollViewComponent.prototype, "height", void 0);
|
|
497
|
-
__decorate([
|
|
498
|
-
Input(),
|
|
499
|
-
__metadata("design:type", Boolean)
|
|
500
|
-
], ScrollViewComponent.prototype, "endless", void 0);
|
|
501
|
-
__decorate([
|
|
502
|
-
Input(),
|
|
503
|
-
__metadata("design:type", String)
|
|
504
|
-
], ScrollViewComponent.prototype, "pagerOverlay", void 0);
|
|
505
|
-
__decorate([
|
|
506
|
-
Input(),
|
|
507
|
-
__metadata("design:type", Boolean)
|
|
508
|
-
], ScrollViewComponent.prototype, "animate", void 0);
|
|
509
|
-
__decorate([
|
|
510
|
-
Input(),
|
|
511
|
-
__metadata("design:type", Boolean)
|
|
512
|
-
], ScrollViewComponent.prototype, "pageable", void 0);
|
|
513
|
-
__decorate([
|
|
514
|
-
Input(),
|
|
515
|
-
__metadata("design:type", Boolean)
|
|
516
|
-
], ScrollViewComponent.prototype, "arrows", void 0);
|
|
517
|
-
__decorate([
|
|
518
|
-
Output(),
|
|
519
|
-
__metadata("design:type", EventEmitter)
|
|
520
|
-
], ScrollViewComponent.prototype, "itemChanged", void 0);
|
|
521
|
-
__decorate([
|
|
522
|
-
Output(),
|
|
523
|
-
__metadata("design:type", EventEmitter)
|
|
524
|
-
], ScrollViewComponent.prototype, "activeIndexChange", void 0);
|
|
525
|
-
__decorate([
|
|
526
|
-
ContentChild(TemplateRef, { static: false }),
|
|
527
|
-
__metadata("design:type", TemplateRef)
|
|
528
|
-
], ScrollViewComponent.prototype, "itemTemplateRef", void 0);
|
|
529
|
-
__decorate([
|
|
530
|
-
ViewChild('itemWrapper', { static: false }),
|
|
531
|
-
__metadata("design:type", ElementRef)
|
|
532
|
-
], ScrollViewComponent.prototype, "itemWrapper", void 0);
|
|
533
|
-
__decorate([
|
|
534
|
-
HostBinding('class.k-scrollview'),
|
|
535
|
-
__metadata("design:type", Boolean)
|
|
536
|
-
], ScrollViewComponent.prototype, "scrollViewClass", void 0);
|
|
537
|
-
__decorate([
|
|
538
|
-
HostBinding('class.k-scrollview-light'),
|
|
539
|
-
__metadata("design:type", Boolean),
|
|
540
|
-
__metadata("design:paramtypes", [])
|
|
541
|
-
], ScrollViewComponent.prototype, "scrollViewLightOverlayClass", null);
|
|
542
|
-
__decorate([
|
|
543
|
-
HostBinding('class.k-scrollview-dark'),
|
|
544
|
-
__metadata("design:type", Boolean),
|
|
545
|
-
__metadata("design:paramtypes", [])
|
|
546
|
-
], ScrollViewComponent.prototype, "scrollViewDarkOverlayClass", null);
|
|
547
|
-
__decorate([
|
|
548
|
-
HostBinding('style.width'),
|
|
549
|
-
__metadata("design:type", String),
|
|
550
|
-
__metadata("design:paramtypes", [])
|
|
551
|
-
], ScrollViewComponent.prototype, "hostWidth", null);
|
|
552
|
-
__decorate([
|
|
553
|
-
HostBinding('style.height'),
|
|
554
|
-
__metadata("design:type", String),
|
|
555
|
-
__metadata("design:paramtypes", [])
|
|
556
|
-
], ScrollViewComponent.prototype, "hostHeight", null);
|
|
557
|
-
__decorate([
|
|
558
|
-
HostBinding('attr.tabindex'),
|
|
559
|
-
__metadata("design:type", Number)
|
|
560
|
-
], ScrollViewComponent.prototype, "tabIndex", void 0);
|
|
561
|
-
__decorate([
|
|
562
|
-
HostBinding('attr.aria-live'),
|
|
563
|
-
__metadata("design:type", String)
|
|
564
|
-
], ScrollViewComponent.prototype, "ariaLive", void 0);
|
|
565
|
-
__decorate([
|
|
566
|
-
HostBinding('attr.dir'),
|
|
567
|
-
__metadata("design:type", String),
|
|
568
|
-
__metadata("design:paramtypes", [])
|
|
569
|
-
], ScrollViewComponent.prototype, "dir", null);
|
|
570
|
-
__decorate([
|
|
571
|
-
HostBinding('style.touch-action'),
|
|
572
|
-
__metadata("design:type", String)
|
|
573
|
-
], ScrollViewComponent.prototype, "touchAction", void 0);
|
|
574
|
-
__decorate([
|
|
575
|
-
HostListener('keydown', ['$event']),
|
|
576
|
-
__metadata("design:type", Function),
|
|
577
|
-
__metadata("design:paramtypes", [Object]),
|
|
578
|
-
__metadata("design:returntype", void 0)
|
|
579
|
-
], ScrollViewComponent.prototype, "keyDown", null);
|
|
580
|
-
ScrollViewComponent = __decorate([
|
|
581
|
-
Component({
|
|
582
|
-
animations: [
|
|
583
|
-
trigger('animateTo', [
|
|
584
|
-
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
585
|
-
transition('* => right', [
|
|
586
|
-
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
587
|
-
]),
|
|
588
|
-
transition('* => left', [
|
|
589
|
-
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
590
|
-
]),
|
|
591
|
-
transition('* => center', [
|
|
592
|
-
animate('300ms ease-out')
|
|
593
|
-
])
|
|
594
|
-
])
|
|
595
|
-
],
|
|
596
|
-
exportAs: 'kendoScrollView',
|
|
597
|
-
providers: [
|
|
598
|
-
LocalizationService,
|
|
599
|
-
{
|
|
600
|
-
provide: L10N_PREFIX,
|
|
601
|
-
useValue: 'kendo.scrollview'
|
|
602
|
-
}
|
|
603
|
-
],
|
|
604
|
-
selector: 'kendo-scrollview',
|
|
605
|
-
template: `
|
|
527
|
+
}
|
|
528
|
+
ScrollViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
529
|
+
ScrollViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ScrollViewComponent, 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: { listeners: { "keydown": "keyDown($event)" }, properties: { "class.k-scrollview": "this.scrollViewClass", "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: [
|
|
530
|
+
LocalizationService,
|
|
531
|
+
{
|
|
532
|
+
provide: L10N_PREFIX,
|
|
533
|
+
useValue: 'kendo.scrollview'
|
|
534
|
+
}
|
|
535
|
+
], queries: [{ propertyName: "itemTemplateRef", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "itemWrapper", first: true, predicate: ["itemWrapper"], descendants: true }], exportAs: ["kendoScrollView"], usesOnChanges: true, ngImport: i0, template: `
|
|
606
536
|
<ul class='k-scrollview-wrap'
|
|
607
537
|
#itemWrapper
|
|
608
538
|
[@animateTo]="animationState"
|
|
@@ -647,58 +577,152 @@ ScrollViewComponent = __decorate([
|
|
|
647
577
|
[activeIndex]="activeIndex">
|
|
648
578
|
</kendo-scrollview-pager>
|
|
649
579
|
</div>
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
],
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
],
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
(
|
|
697
|
-
|
|
580
|
+
`, isInline: true, components: [{ type: ScrollViewPagerComponent, selector: "kendo-scrollview-pager", inputs: ["activeIndex", "data"], outputs: ["pagerIndexChange"] }], directives: [{ type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
|
581
|
+
trigger('animateTo', [
|
|
582
|
+
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
583
|
+
transition('* => right', [
|
|
584
|
+
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
585
|
+
]),
|
|
586
|
+
transition('* => left', [
|
|
587
|
+
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
588
|
+
]),
|
|
589
|
+
transition('* => center', [
|
|
590
|
+
animate('300ms ease-out')
|
|
591
|
+
])
|
|
592
|
+
])
|
|
593
|
+
] });
|
|
594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewComponent, decorators: [{
|
|
595
|
+
type: Component,
|
|
596
|
+
args: [{
|
|
597
|
+
animations: [
|
|
598
|
+
trigger('animateTo', [
|
|
599
|
+
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
600
|
+
transition('* => right', [
|
|
601
|
+
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
602
|
+
]),
|
|
603
|
+
transition('* => left', [
|
|
604
|
+
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
605
|
+
]),
|
|
606
|
+
transition('* => center', [
|
|
607
|
+
animate('300ms ease-out')
|
|
608
|
+
])
|
|
609
|
+
])
|
|
610
|
+
],
|
|
611
|
+
exportAs: 'kendoScrollView',
|
|
612
|
+
providers: [
|
|
613
|
+
LocalizationService,
|
|
614
|
+
{
|
|
615
|
+
provide: L10N_PREFIX,
|
|
616
|
+
useValue: 'kendo.scrollview'
|
|
617
|
+
}
|
|
618
|
+
],
|
|
619
|
+
selector: 'kendo-scrollview',
|
|
620
|
+
template: `
|
|
621
|
+
<ul class='k-scrollview-wrap'
|
|
622
|
+
#itemWrapper
|
|
623
|
+
[@animateTo]="animationState"
|
|
624
|
+
(@animateTo.done)="transitionEndHandler($event)"
|
|
625
|
+
kendoDraggable
|
|
626
|
+
(kendoDrag)="handleDrag($event)"
|
|
627
|
+
(kendoPress)="handlePress($event)"
|
|
628
|
+
(kendoRelease)="handleRelease($event)"
|
|
629
|
+
>
|
|
630
|
+
<li
|
|
631
|
+
*ngFor="let item of view;let i=index"
|
|
632
|
+
[ngStyle]="inlineListItemStyles(i)"
|
|
633
|
+
[attr.aria-hidden]="i !== 1"
|
|
634
|
+
>
|
|
635
|
+
<ng-template
|
|
636
|
+
[ngTemplateOutlet]="itemTemplateRef"
|
|
637
|
+
[ngTemplateOutletContext]="{ item: item }">
|
|
638
|
+
</ng-template>
|
|
639
|
+
</li>
|
|
698
640
|
</ul>
|
|
641
|
+
<div class='k-scrollview-elements'
|
|
642
|
+
[ngStyle]="{'height': height}"
|
|
643
|
+
*ngIf="!isDataSourceEmpty && (pageable||arrows)">
|
|
644
|
+
|
|
645
|
+
<a class="k-scrollview-prev"
|
|
646
|
+
aria-label="previous"
|
|
647
|
+
*ngIf="arrows && displayLeftArrow()"
|
|
648
|
+
(click)="leftArrowClick()">
|
|
649
|
+
<span class="k-icon k-i-arrowhead-w"></span>
|
|
650
|
+
</a>
|
|
651
|
+
<a class="k-scrollview-next"
|
|
652
|
+
aria-label="next"
|
|
653
|
+
*ngIf="arrows && displayRightArrow()"
|
|
654
|
+
(click)="rightArrowClick()">
|
|
655
|
+
<span class="k-icon k-i-arrowhead-e"></span>
|
|
656
|
+
</a>
|
|
657
|
+
<kendo-scrollview-pager
|
|
658
|
+
class='k-scrollview-nav-wrap'
|
|
659
|
+
*ngIf="pageable"
|
|
660
|
+
(pagerIndexChange)="pageChange($event)"
|
|
661
|
+
[data]="data"
|
|
662
|
+
[activeIndex]="activeIndex">
|
|
663
|
+
</kendo-scrollview-pager>
|
|
664
|
+
</div>
|
|
699
665
|
`
|
|
700
|
-
|
|
701
|
-
],
|
|
666
|
+
}]
|
|
667
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
668
|
+
type: Input
|
|
669
|
+
}], activeIndex: [{
|
|
670
|
+
type: Input
|
|
671
|
+
}], width: [{
|
|
672
|
+
type: Input
|
|
673
|
+
}], height: [{
|
|
674
|
+
type: Input
|
|
675
|
+
}], endless: [{
|
|
676
|
+
type: Input
|
|
677
|
+
}], pagerOverlay: [{
|
|
678
|
+
type: Input
|
|
679
|
+
}], animate: [{
|
|
680
|
+
type: Input
|
|
681
|
+
}], pageable: [{
|
|
682
|
+
type: Input
|
|
683
|
+
}], arrows: [{
|
|
684
|
+
type: Input
|
|
685
|
+
}], itemChanged: [{
|
|
686
|
+
type: Output
|
|
687
|
+
}], activeIndexChange: [{
|
|
688
|
+
type: Output
|
|
689
|
+
}], itemTemplateRef: [{
|
|
690
|
+
type: ContentChild,
|
|
691
|
+
args: [TemplateRef, { static: false }]
|
|
692
|
+
}], itemWrapper: [{
|
|
693
|
+
type: ViewChild,
|
|
694
|
+
args: ['itemWrapper', { static: false }]
|
|
695
|
+
}], scrollViewClass: [{
|
|
696
|
+
type: HostBinding,
|
|
697
|
+
args: ['class.k-scrollview']
|
|
698
|
+
}], scrollViewLightOverlayClass: [{
|
|
699
|
+
type: HostBinding,
|
|
700
|
+
args: ['class.k-scrollview-light']
|
|
701
|
+
}], scrollViewDarkOverlayClass: [{
|
|
702
|
+
type: HostBinding,
|
|
703
|
+
args: ['class.k-scrollview-dark']
|
|
704
|
+
}], hostWidth: [{
|
|
705
|
+
type: HostBinding,
|
|
706
|
+
args: ['style.width']
|
|
707
|
+
}], hostHeight: [{
|
|
708
|
+
type: HostBinding,
|
|
709
|
+
args: ['style.height']
|
|
710
|
+
}], tabIndex: [{
|
|
711
|
+
type: HostBinding,
|
|
712
|
+
args: ['attr.tabindex']
|
|
713
|
+
}], ariaLive: [{
|
|
714
|
+
type: HostBinding,
|
|
715
|
+
args: ['attr.aria-live']
|
|
716
|
+
}], dir: [{
|
|
717
|
+
type: HostBinding,
|
|
718
|
+
args: ['attr.dir']
|
|
719
|
+
}], touchAction: [{
|
|
720
|
+
type: HostBinding,
|
|
721
|
+
args: ['style.touch-action']
|
|
722
|
+
}], keyDown: [{
|
|
723
|
+
type: HostListener,
|
|
724
|
+
args: ['keydown', ['$event']]
|
|
725
|
+
}] } });
|
|
702
726
|
|
|
703
727
|
const DECLARATIONS = [
|
|
704
728
|
ScrollViewComponent,
|
|
@@ -738,18 +762,24 @@ const EXPORTS = [
|
|
|
738
762
|
*
|
|
739
763
|
* ```
|
|
740
764
|
*/
|
|
741
|
-
|
|
742
|
-
}
|
|
743
|
-
ScrollViewModule =
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
765
|
+
class ScrollViewModule {
|
|
766
|
+
}
|
|
767
|
+
ScrollViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
768
|
+
ScrollViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, declarations: [ScrollViewComponent,
|
|
769
|
+
ScrollViewPagerComponent], imports: [CommonModule, DraggableModule], exports: [ScrollViewComponent] });
|
|
770
|
+
ScrollViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, imports: [[CommonModule, DraggableModule]] });
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, decorators: [{
|
|
772
|
+
type: NgModule,
|
|
773
|
+
args: [{
|
|
774
|
+
declarations: [DECLARATIONS],
|
|
775
|
+
exports: [EXPORTS],
|
|
776
|
+
imports: [CommonModule, DraggableModule]
|
|
777
|
+
}]
|
|
778
|
+
}] });
|
|
750
779
|
|
|
751
780
|
/**
|
|
752
781
|
* Generated bundle index. Do not edit.
|
|
753
782
|
*/
|
|
754
783
|
|
|
755
784
|
export { ScrollViewComponent, ScrollViewModule, ScrollViewPagerComponent };
|
|
785
|
+
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,90 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scrollview",
|
|
3
|
+
"version": "5.0.0-dev.202204191146",
|
|
3
4
|
"description": "A ScrollView Component for Angular",
|
|
4
|
-
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"jsdelivr": "dist/cdn/main.js",
|
|
15
|
-
"unpkg": "dist/cdn/main.js",
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"test:ci": "ci-angular-test",
|
|
21
|
-
"start": "gulp start",
|
|
22
|
-
"e2e:ci": "ci-angular-e2e",
|
|
23
|
-
"lint": "gulp lint && gulp lint-docs",
|
|
24
|
-
"api-check": "gulp api-check",
|
|
25
|
-
"build-package": "gulp build-package",
|
|
26
|
-
"semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post"
|
|
6
|
+
"author": "Progress",
|
|
7
|
+
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/telerik/kendo-angular-scrollview.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
27
14
|
},
|
|
28
15
|
"keywords": [
|
|
16
|
+
"Angular",
|
|
29
17
|
"Kendo UI",
|
|
30
18
|
"Progress",
|
|
31
|
-
"ScrollView"
|
|
32
|
-
"Angular"
|
|
19
|
+
"ScrollView"
|
|
33
20
|
],
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"@angular/common": "8 - 13",
|
|
37
|
-
"@angular/core": "8 - 13",
|
|
38
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
39
|
-
"@progress/kendo-angular-l10n": "^3.0.0",
|
|
40
|
-
"@progress/kendo-licensing": "^1.0.2",
|
|
41
|
-
"rxjs": "^6.4.0 || ^7.0.0"
|
|
21
|
+
"@progress": {
|
|
22
|
+
"friendlyName": "ScrollView"
|
|
42
23
|
},
|
|
43
24
|
"dependencies": {
|
|
44
|
-
"@progress/kendo-schematics": "^
|
|
45
|
-
"tslib": "^
|
|
25
|
+
"@progress/kendo-schematics": "^3.0.0",
|
|
26
|
+
"tslib": "^2.3.1"
|
|
46
27
|
},
|
|
47
|
-
"
|
|
48
|
-
"@angular
|
|
49
|
-
"@angular
|
|
50
|
-
"@angular/
|
|
51
|
-
"@angular
|
|
52
|
-
"@angular
|
|
53
|
-
"@angular/compiler-cli": "^8.2.0",
|
|
54
|
-
"@angular/core": "^8.2.0",
|
|
55
|
-
"@angular/forms": "^8.2.0",
|
|
56
|
-
"@angular/platform-browser": "^8.2.0",
|
|
57
|
-
"@angular/platform-browser-dynamic": "^8.2.0",
|
|
58
|
-
"@angular/platform-server": "^8.2.0",
|
|
59
|
-
"@angular/router": "^8.2.0",
|
|
60
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
61
|
-
"@progress/kendo-angular-buttons": "^6.0.0",
|
|
62
|
-
"@progress/kendo-angular-e2e": "^2.2.0",
|
|
63
|
-
"@progress/kendo-angular-jest-preset": "^2.0.0",
|
|
64
|
-
"@progress/kendo-angular-l10n": "^3.0.0",
|
|
65
|
-
"@progress/kendo-angular-tasks": "cdn-bundle-v18",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@angular/animations": "12 - 14",
|
|
30
|
+
"@angular/common": "12 - 14",
|
|
31
|
+
"@angular/core": "12 - 14",
|
|
32
|
+
"@progress/kendo-angular-common": "^3.0.0",
|
|
33
|
+
"@progress/kendo-angular-l10n": "^4.0.0",
|
|
66
34
|
"@progress/kendo-licensing": "^1.0.2",
|
|
67
|
-
"
|
|
68
|
-
"@progress/kendo-theme-default": "^5.0.0",
|
|
69
|
-
"@progress/kendo-theme-material": "^5.0.0",
|
|
70
|
-
"@telerik/semantic-prerelease": "^1.1.5",
|
|
71
|
-
"@types/jest": "^21.1.8",
|
|
72
|
-
"@types/node": "ts3.4",
|
|
73
|
-
"@types/zone.js": "0.0.27",
|
|
74
|
-
"codelyzer": "^5.0.0",
|
|
75
|
-
"core-js": "^2.2.2",
|
|
76
|
-
"cz-conventional-changelog": "^1.1.5",
|
|
77
|
-
"ghooks": "^1.0.3",
|
|
78
|
-
"gulp": "^4.0.0",
|
|
79
|
-
"jest-cli": "^21.2.1",
|
|
80
|
-
"jest-junit": "^8.0.0",
|
|
81
|
-
"rxjs": "~6.4.0",
|
|
82
|
-
"rxjs-tslint-rules": "^4.23.1",
|
|
83
|
-
"semantic-release": "^6.3.6",
|
|
84
|
-
"tslint": "^5.20.1",
|
|
85
|
-
"typescript": "~3.4.5",
|
|
86
|
-
"validate-commit-msg": "^1.1.1",
|
|
87
|
-
"zone.js": "~0.9.1"
|
|
35
|
+
"rxjs": "^6.5.3 || ^7.0.0"
|
|
88
36
|
},
|
|
89
37
|
"config": {
|
|
90
38
|
"commitizen": {
|
|
@@ -109,20 +57,7 @@
|
|
|
109
57
|
"maxSubjectLength": 100
|
|
110
58
|
}
|
|
111
59
|
},
|
|
112
|
-
"
|
|
113
|
-
"preset": "@progress/kendo-angular-jest-preset"
|
|
114
|
-
},
|
|
115
|
-
"repository": {
|
|
116
|
-
"type": "git",
|
|
117
|
-
"url": "https://github.com/telerik/kendo-angular-scrollview.git"
|
|
118
|
-
},
|
|
119
|
-
"bugs": {
|
|
120
|
-
"url": "https://github.com/telerik/kendo-angular"
|
|
121
|
-
},
|
|
122
|
-
"@progress": {
|
|
123
|
-
"friendlyName": "ScrollView"
|
|
124
|
-
},
|
|
125
|
-
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
60
|
+
"schematics": "./schematics/collection.json",
|
|
126
61
|
"release": {
|
|
127
62
|
"debug": false,
|
|
128
63
|
"branchTags": {
|
|
@@ -137,9 +72,11 @@
|
|
|
137
72
|
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
|
|
138
73
|
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
|
|
139
74
|
},
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
75
|
+
"main": "bundles/kendo-angular-scrollview.umd.js",
|
|
76
|
+
"module": "fesm2015/kendo-angular-scrollview.js",
|
|
77
|
+
"es2015": "fesm2015/kendo-angular-scrollview.js",
|
|
78
|
+
"esm2015": "esm2015/kendo-angular-scrollview.js",
|
|
79
|
+
"fesm2015": "fesm2015/kendo-angular-scrollview.js",
|
|
80
|
+
"typings": "kendo-angular-scrollview.d.ts",
|
|
81
|
+
"sideEffects": false
|
|
145
82
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
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
5
|
"use strict";
|
|
2
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
7
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
8
|
function default_1(options) {
|
|
5
|
-
const finalOptions = Object.assign({}, options, { mainNgModule: 'ScrollViewModule', package: 'scrollview' //package name, e.g grid
|
|
9
|
+
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ScrollViewModule', package: 'scrollview' //package name, e.g grid
|
|
6
10
|
});
|
|
7
11
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
8
12
|
}
|
|
9
13
|
exports.default = default_1;
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,kBAAkB,EAChC,OAAO,EAAE,YAAY,CAAC,wBAAwB;OACjD,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
|