@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.
- 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 +1 -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} +222 -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 +33 -94
- 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
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("@progress/kendo-angular-common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-l10n"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularScrollview",["exports","@angular/core","@angular/animations","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-l10n","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularScrollview={},e.ng.core,e.ng.animations,e.KendoAngularCommon,e.KendoLicensing,e.KendoAngularL10N,e.ng.common)}(this,function(p,r,e,t,d,g,h){"use strict";function u(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i)}var i,n=u(r),m=u(t),v=u(g),a=u(h),y=((s=i=i||{})[s.Next=1]="Next",s[s.Prev=-1]="Prev",{name:"@progress/kendo-angular-scrollview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645808127,version:"",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"});Object.create;function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,r=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function x(e,t,n){if(n||2===arguments.length)for(var i,a=0,r=t.length;a<r;a++)!i&&a in t||((i=i||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var w=function(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;for(var e=Object.getOwnPropertyNames(Map.prototype),t=Map.prototype,n=0;n<e.length;++n){var i=e[n];if("entries"!==i&&"size"!==i&&t[i]===t.entries)return i}}();var I={},k=(Object.defineProperty(b.prototype,"data",{get:function(){var e=this.total;return e=this.endless?[this.source[(this.index-1+e)%e],this.source[this.index%e],this.source[(this.index+1+e)%e]]:x(x([I],f(this.source)),[I]).slice(this.index,this.index+3),null!==this.pageIndex&&(e[this.pageIndex>this.index?2:0]=this.source[this.pageIndex]),this.rtl?e.reverse():e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"total",{get:function(){return this.source.length},enumerable:!1,configurable:!0}),b.prototype.canMoveNext=function(){return this.endless||this.index<this.total-1},b.prototype.canMovePrev=function(){return this.endless||0<this.index},b.prototype[w]=function(){return this.data[w]()},b);function b(e,t,n,i,a){this.rtl=!1,this.source=e||[],this.index=t||0,this.endless=n,this.pageIndex=i,this.rtl=a}Object.defineProperty(o.prototype,"length",{get:function(){return this.accessor().data.length},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"total",{get:function(){return this.accessor().total},enumerable:!1,configurable:!0}),o.prototype.item=function(e){return this.accessor().data[e]},o.prototype.canMoveNext=function(){return this.accessor().canMoveNext()},o.prototype.canMovePrev=function(){return this.accessor().canMovePrev()},o.prototype[Symbol.iterator]=function(){return this.accessor()[Symbol.iterator]()};var C=o;function o(e){this.accessor=e}O.prototype.itemClass=function(e){return{"k-primary":e===this.activeIndex}},O.prototype.indexChange=function(e){this.pagerIndexChange.emit(e)};var s=O;function O(){this.pagerIndexChange=new r.EventEmitter}s.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,deps:[],target:n.ɵɵFactoryTarget.Component}),s.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:s,selector:"kendo-scrollview-pager",inputs:{activeIndex:"activeIndex",data:"data"},outputs:{pagerIndexChange:"pagerIndexChange"},ngImport:n,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 ',isInline:!0,directives:[{type:a.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:a.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,decorators:[{type:r.Component,args:[{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 '}]}],propDecorators:{activeIndex:[{type:r.Input}],data:[{type:r.Input}],pagerIndexChange:[{type:r.Output}]}});Object.defineProperty(c.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(e){this.index=this._activeIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scrollViewLightOverlayClass",{get:function(){return"light"===this.pagerOverlay},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scrollViewDarkOverlayClass",{get:function(){return"dark"===this.pagerOverlay},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hostWidth",{get:function(){return this.width},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hostHeight",{get:function(){return this.height},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!1,configurable:!0}),c.prototype.keyDown=function(e){e.keyCode===t.Keys.ArrowLeft&&(this.isRTL?this.next():this.prev()),e.keyCode===t.Keys.ArrowRight&&(this.isRTL?this.prev():this.next())},c.prototype.ngOnChanges=function(e){this.activeIndex=Math.max(Math.min(this.activeIndex,this.view.total-1),0)},c.prototype.prev=function(){this.navigate(i.Prev)},c.prototype.next=function(){this.navigate(i.Next)},c.prototype.transitionEndHandler=function(e){this.animationState=null,"left"!==e.toState&&"right"!==e.toState||(null!==this.pageIndex&&(this.activeIndex=this.pageIndex,this.pageIndex=null),this.activeIndex=this.index,this.activeIndexChange.emit(this.activeIndex),this.itemChanged.emit({index:this.activeIndex,item:this.view.item(1)}))},c.prototype.handlePress=function(e){this.initialTouchCoordinate=e.pageX},c.prototype.handleDrag=function(e){e=e.pageX-this.initialTouchCoordinate;this.animationState||this.isDragForbidden(e)||!this.draggedInsideBounds(e)||this.renderer.setStyle(this.itemWrapper.nativeElement,"transform","translateX("+e+"px)")},c.prototype.handleRelease=function(e){var t=this,n=e.pageX-this.initialTouchCoordinate;this.isDragForbidden(n)||this.ngZone.run(function(){t.draggedEnoughToNavigate(n)?(t.isRTL?t.changeIndex(n<0?i.Prev:i.Next):t.changeIndex(0<n?i.Prev:i.Next),t.animate||(t.renderer.removeStyle(t.itemWrapper.nativeElement,"transform"),t.activeIndexChange.emit(t.activeIndex),t.itemChanged.emit({index:t.activeIndex,item:t.view.item(1)}))):t.animate&&n?t.animationState="center":t.renderer.removeStyle(t.itemWrapper.nativeElement,"transform")})},c.prototype.pageChange=function(e){this.animationState||this.activeIndex===e||(this.animate?(this.pageIndex=e,this.isRTL?this.animationState=this.pageIndex>this.index?"right":"left":this.animationState=this.pageIndex>this.index?"left":"right"):this.activeIndex=e)},c.prototype.inlineListItemStyles=function(e){return{height:this.height,transform:this.transforms[e],width:"100%"}},c.prototype.displayLeftArrow=function(){var e=this.isRTL?this.activeIndex+1<this.view.total:0<this.activeIndex;return(this.endless||e)&&0<this.view.total},c.prototype.leftArrowClick=function(){this.isRTL?this.next():this.prev()},c.prototype.displayRightArrow=function(){var e=this.isRTL?0<this.activeIndex:this.activeIndex+1<this.view.total;return(this.endless||e)&&0<this.view.total},c.prototype.rightArrowClick=function(){this.isRTL?this.prev():this.next()},c.prototype.draggedInsideBounds=function(e){return Math.abs(e)<=this.element.nativeElement.offsetWidth},c.prototype.draggedEnoughToNavigate=function(e){return Math.abs(e)>this.element.nativeElement.offsetWidth/2},c.prototype.isDragForbidden=function(e){e=this.isRTL?e<0&&0!==e:0<e&&0!==e,e=0===this.activeIndex&&e||this.activeIndex===this.view.total-1&&!e;return!this.endless&&e},c.prototype.navigate=function(e){this.isDataSourceEmpty||this.animationState||(this.changeIndex(e),this.animate||(this.activeIndexChange.emit(this.activeIndex),this.itemChanged.emit({index:this.activeIndex,item:this.view.item(1)})))},c.prototype.changeIndex=function(e){e===i.Next&&this.view.canMoveNext()?(this.index=(this.index+1)%this.view.total,this.animate?this.animationState=this.isRTL?"right":"left":this.activeIndex=this.index):e===i.Prev&&this.view.canMovePrev()&&(this.index=0===this.index?this.view.total-1:this.index-1,this.animate?this.animationState=this.isRTL?"left":"right":this.activeIndex=this.index)},Object.defineProperty(c.prototype,"isRTL",{get:function(){return"rtl"===this.direction},enumerable:!1,configurable:!0});var l=c;function c(e,t,n,i){var a=this;this.element=e,this.localization=t,this.ngZone=n,this.renderer=i,this.data=[],this.endless=!1,this.pagerOverlay="none",this.animate=!0,this.pageable=!1,this.arrows=!1,this.itemChanged=new r.EventEmitter,this.activeIndexChange=new r.EventEmitter,this.scrollViewClass=!0,this.tabIndex=1,this.ariaLive="assertive",this.touchAction="pan-y pinch-zoom",this.animationState=null,this.view=new C(function(){return new k(a.data,a.activeIndex,a.endless,a.pageIndex,a.isRTL)}),this.isDataSourceEmpty=!1,this._activeIndex=0,this.index=0,this.pageIndex=null,this.transforms=["translateX(-100%)","translateX(0%)","translateX(100%)"],d.validatePackage(y)}l.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:l,deps:[{token:n.ElementRef},{token:v.LocalizationService},{token:n.NgZone},{token:n.Renderer2}],target:n.ɵɵFactoryTarget.Component}),l.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:l,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:[g.LocalizationService,{provide:g.L10N_PREFIX,useValue:"kendo.scrollview"}],queries:[{propertyName:"itemTemplateRef",first:!0,predicate:r.TemplateRef,descendants:!0}],viewQueries:[{propertyName:"itemWrapper",first:!0,predicate:["itemWrapper"],descendants:!0}],exportAs:["kendoScrollView"],usesOnChanges:!0,ngImport:n,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 ',isInline:!0,components:[{type:s,selector:"kendo-scrollview-pager",inputs:["activeIndex","data"],outputs:["pagerIndexChange"]}],directives:[{type:m.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]},{type:a.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:a.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:a.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:a.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],animations:[e.trigger("animateTo",[e.state("center, left, right",e.style({transform:"translateX(0)"})),e.transition("* => right",[e.animate("300ms ease-out",e.style({transform:"translateX(100%)"}))]),e.transition("* => left",[e.animate("300ms ease-out",e.style({transform:"translateX(-100%)"}))]),e.transition("* => center",[e.animate("300ms ease-out")])])]}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:l,decorators:[{type:r.Component,args:[{animations:[e.trigger("animateTo",[e.state("center, left, right",e.style({transform:"translateX(0)"})),e.transition("* => right",[e.animate("300ms ease-out",e.style({transform:"translateX(100%)"}))]),e.transition("* => left",[e.animate("300ms ease-out",e.style({transform:"translateX(-100%)"}))]),e.transition("* => center",[e.animate("300ms ease-out")])])],exportAs:"kendoScrollView",providers:[g.LocalizationService,{provide:g.L10N_PREFIX,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 '}]}],ctorParameters:function(){return[{type:n.ElementRef},{type:v.LocalizationService},{type:n.NgZone},{type:n.Renderer2}]},propDecorators:{data:[{type:r.Input}],activeIndex:[{type:r.Input}],width:[{type:r.Input}],height:[{type:r.Input}],endless:[{type:r.Input}],pagerOverlay:[{type:r.Input}],animate:[{type:r.Input}],pageable:[{type:r.Input}],arrows:[{type:r.Input}],itemChanged:[{type:r.Output}],activeIndexChange:[{type:r.Output}],itemTemplateRef:[{type:r.ContentChild,args:[r.TemplateRef,{static:!1}]}],itemWrapper:[{type:r.ViewChild,args:["itemWrapper",{static:!1}]}],scrollViewClass:[{type:r.HostBinding,args:["class.k-scrollview"]}],scrollViewLightOverlayClass:[{type:r.HostBinding,args:["class.k-scrollview-light"]}],scrollViewDarkOverlayClass:[{type:r.HostBinding,args:["class.k-scrollview-dark"]}],hostWidth:[{type:r.HostBinding,args:["style.width"]}],hostHeight:[{type:r.HostBinding,args:["style.height"]}],tabIndex:[{type:r.HostBinding,args:["attr.tabindex"]}],ariaLive:[{type:r.HostBinding,args:["attr.aria-live"]}],dir:[{type:r.HostBinding,args:["attr.dir"]}],touchAction:[{type:r.HostBinding,args:["style.touch-action"]}],keyDown:[{type:r.HostListener,args:["keydown",["$event"]]}]}});m=[l,s],a=[l],e=function(){};e.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:e,deps:[],target:n.ɵɵFactoryTarget.NgModule}),e.ɵmod=n.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:e,declarations:[l,s],imports:[h.CommonModule,t.DraggableModule],exports:[l]}),e.ɵinj=n.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:e,imports:[[h.CommonModule,t.DraggableModule]]}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:e,decorators:[{type:r.NgModule,args:[{declarations:[m],exports:[a],imports:[h.CommonModule,t.DraggableModule]}]}]}),p.ScrollViewComponent=l,p.ScrollViewModule=e,p.ScrollViewPagerComponent=s,Object.defineProperty(p,"__esModule",{value:!0})});
|
|
File without changes
|
|
@@ -12,8 +12,8 @@ export declare class DataResultIterator {
|
|
|
12
12
|
private pageIndex;
|
|
13
13
|
private rtl;
|
|
14
14
|
constructor(source: any[], index: number, endless: boolean, pageIndex: number, rtl: boolean);
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
get data(): any[];
|
|
16
|
+
get total(): number;
|
|
17
17
|
canMoveNext(): boolean;
|
|
18
18
|
canMovePrev(): boolean;
|
|
19
19
|
}
|
|
@@ -23,8 +23,8 @@ export declare class DataResultIterator {
|
|
|
23
23
|
export declare class DataCollection {
|
|
24
24
|
private accessor;
|
|
25
25
|
constructor(accessor: () => DataResultIterator);
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
get length(): number;
|
|
27
|
+
get total(): number;
|
|
28
28
|
item(index: number): any;
|
|
29
29
|
canMoveNext(): boolean;
|
|
30
30
|
canMovePrev(): boolean;
|
|
File without changes
|
|
File without changes
|
|
@@ -2,3 +2,4 @@
|
|
|
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
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
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
|
-
/*
|
|
5
|
+
/* eslint-disable use-life-cycle-interface */
|
|
6
6
|
/** @hidden */
|
|
7
7
|
const iterator = getIterator();
|
|
8
8
|
// TODO: Move to kendo-common
|
|
@@ -2,3 +2,4 @@
|
|
|
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
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-scrollview',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1645808127,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { Component, Input, Output } from '@angular/core';
|
|
6
|
+
import { EventEmitter } from '@angular/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/common";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export class ScrollViewPagerComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.pagerIndexChange = new EventEmitter();
|
|
15
|
+
}
|
|
16
|
+
itemClass(idx) {
|
|
17
|
+
return {
|
|
18
|
+
'k-primary': idx === this.activeIndex
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
indexChange(selectedIndex) {
|
|
22
|
+
this.pagerIndexChange.emit(selectedIndex);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
ScrollViewPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewPagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
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: `
|
|
27
|
+
<ul class="k-scrollview-pageable k-scrollview-nav">
|
|
28
|
+
<li class="k-button" *ngFor="let item of data; let i = index"
|
|
29
|
+
[ngClass]="itemClass(i)"
|
|
30
|
+
(click)="indexChange(i)">
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewPagerComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{
|
|
37
|
+
selector: 'kendo-scrollview-pager',
|
|
38
|
+
template: `
|
|
39
|
+
<ul class="k-scrollview-pageable k-scrollview-nav">
|
|
40
|
+
<li class="k-button" *ngFor="let item of data; let i = index"
|
|
41
|
+
[ngClass]="itemClass(i)"
|
|
42
|
+
(click)="indexChange(i)">
|
|
43
|
+
</li>
|
|
44
|
+
</ul>
|
|
45
|
+
`
|
|
46
|
+
}]
|
|
47
|
+
}], propDecorators: { activeIndex: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], data: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], pagerIndexChange: [{
|
|
52
|
+
type: Output
|
|
53
|
+
}] } });
|
|
@@ -2,8 +2,7 @@
|
|
|
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 { Component, ContentChild, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, NgZone, ViewChild, Renderer2 } from '@angular/core';
|
|
5
|
+
import { Component, ContentChild, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, ViewChild } from '@angular/core';
|
|
7
6
|
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
8
7
|
import { Dir } from './enums';
|
|
9
8
|
import { Keys } from '@progress/kendo-angular-common';
|
|
@@ -11,6 +10,11 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
11
10
|
import { packageMetadata } from './package-metadata';
|
|
12
11
|
import { DataCollection, DataResultIterator } from './data.collection';
|
|
13
12
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
|
+
import * as i2 from "./scrollview-pager.component";
|
|
16
|
+
import * as i3 from "@progress/kendo-angular-common";
|
|
17
|
+
import * as i4 from "@angular/common";
|
|
14
18
|
/**
|
|
15
19
|
* Represents the [Kendo UI ScrollView component for Angular]({% slug overview_scrollview %}).
|
|
16
20
|
*
|
|
@@ -64,7 +68,7 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
|
64
68
|
* }
|
|
65
69
|
* ```
|
|
66
70
|
*/
|
|
67
|
-
|
|
71
|
+
export class ScrollViewComponent {
|
|
68
72
|
constructor(element, localization, ngZone, renderer) {
|
|
69
73
|
this.element = element;
|
|
70
74
|
this.localization = localization;
|
|
@@ -370,133 +374,100 @@ let ScrollViewComponent = class ScrollViewComponent {
|
|
|
370
374
|
get isRTL() {
|
|
371
375
|
return this.direction === 'rtl';
|
|
372
376
|
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
]
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
]
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
]
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
],
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
HostBinding('class.k-scrollview-dark'),
|
|
438
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
439
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
440
|
-
], ScrollViewComponent.prototype, "scrollViewDarkOverlayClass", null);
|
|
441
|
-
tslib_1.__decorate([
|
|
442
|
-
HostBinding('style.width'),
|
|
443
|
-
tslib_1.__metadata("design:type", String),
|
|
444
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
445
|
-
], ScrollViewComponent.prototype, "hostWidth", null);
|
|
446
|
-
tslib_1.__decorate([
|
|
447
|
-
HostBinding('style.height'),
|
|
448
|
-
tslib_1.__metadata("design:type", String),
|
|
449
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
450
|
-
], ScrollViewComponent.prototype, "hostHeight", null);
|
|
451
|
-
tslib_1.__decorate([
|
|
452
|
-
HostBinding('attr.tabindex'),
|
|
453
|
-
tslib_1.__metadata("design:type", Number)
|
|
454
|
-
], ScrollViewComponent.prototype, "tabIndex", void 0);
|
|
455
|
-
tslib_1.__decorate([
|
|
456
|
-
HostBinding('attr.aria-live'),
|
|
457
|
-
tslib_1.__metadata("design:type", String)
|
|
458
|
-
], ScrollViewComponent.prototype, "ariaLive", void 0);
|
|
459
|
-
tslib_1.__decorate([
|
|
460
|
-
HostBinding('attr.dir'),
|
|
461
|
-
tslib_1.__metadata("design:type", String),
|
|
462
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
463
|
-
], ScrollViewComponent.prototype, "dir", null);
|
|
464
|
-
tslib_1.__decorate([
|
|
465
|
-
HostBinding('style.touch-action'),
|
|
466
|
-
tslib_1.__metadata("design:type", String)
|
|
467
|
-
], ScrollViewComponent.prototype, "touchAction", void 0);
|
|
468
|
-
tslib_1.__decorate([
|
|
469
|
-
HostListener('keydown', ['$event']),
|
|
470
|
-
tslib_1.__metadata("design:type", Function),
|
|
471
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
472
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
473
|
-
], ScrollViewComponent.prototype, "keyDown", null);
|
|
474
|
-
ScrollViewComponent = tslib_1.__decorate([
|
|
475
|
-
Component({
|
|
476
|
-
animations: [
|
|
477
|
-
trigger('animateTo', [
|
|
478
|
-
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
479
|
-
transition('* => right', [
|
|
480
|
-
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
481
|
-
]),
|
|
482
|
-
transition('* => left', [
|
|
483
|
-
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
484
|
-
]),
|
|
485
|
-
transition('* => center', [
|
|
486
|
-
animate('300ms ease-out')
|
|
487
|
-
])
|
|
377
|
+
}
|
|
378
|
+
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 });
|
|
379
|
+
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: [
|
|
380
|
+
LocalizationService,
|
|
381
|
+
{
|
|
382
|
+
provide: L10N_PREFIX,
|
|
383
|
+
useValue: 'kendo.scrollview'
|
|
384
|
+
}
|
|
385
|
+
], 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: `
|
|
386
|
+
<ul class='k-scrollview-wrap'
|
|
387
|
+
#itemWrapper
|
|
388
|
+
[@animateTo]="animationState"
|
|
389
|
+
(@animateTo.done)="transitionEndHandler($event)"
|
|
390
|
+
kendoDraggable
|
|
391
|
+
(kendoDrag)="handleDrag($event)"
|
|
392
|
+
(kendoPress)="handlePress($event)"
|
|
393
|
+
(kendoRelease)="handleRelease($event)"
|
|
394
|
+
>
|
|
395
|
+
<li
|
|
396
|
+
*ngFor="let item of view;let i=index"
|
|
397
|
+
[ngStyle]="inlineListItemStyles(i)"
|
|
398
|
+
[attr.aria-hidden]="i !== 1"
|
|
399
|
+
>
|
|
400
|
+
<ng-template
|
|
401
|
+
[ngTemplateOutlet]="itemTemplateRef"
|
|
402
|
+
[ngTemplateOutletContext]="{ item: item }">
|
|
403
|
+
</ng-template>
|
|
404
|
+
</li>
|
|
405
|
+
</ul>
|
|
406
|
+
<div class='k-scrollview-elements'
|
|
407
|
+
[ngStyle]="{'height': height}"
|
|
408
|
+
*ngIf="!isDataSourceEmpty && (pageable||arrows)">
|
|
409
|
+
|
|
410
|
+
<a class="k-scrollview-prev"
|
|
411
|
+
aria-label="previous"
|
|
412
|
+
*ngIf="arrows && displayLeftArrow()"
|
|
413
|
+
(click)="leftArrowClick()">
|
|
414
|
+
<span class="k-icon k-i-arrowhead-w"></span>
|
|
415
|
+
</a>
|
|
416
|
+
<a class="k-scrollview-next"
|
|
417
|
+
aria-label="next"
|
|
418
|
+
*ngIf="arrows && displayRightArrow()"
|
|
419
|
+
(click)="rightArrowClick()">
|
|
420
|
+
<span class="k-icon k-i-arrowhead-e"></span>
|
|
421
|
+
</a>
|
|
422
|
+
<kendo-scrollview-pager
|
|
423
|
+
class='k-scrollview-nav-wrap'
|
|
424
|
+
*ngIf="pageable"
|
|
425
|
+
(pagerIndexChange)="pageChange($event)"
|
|
426
|
+
[data]="data"
|
|
427
|
+
[activeIndex]="activeIndex">
|
|
428
|
+
</kendo-scrollview-pager>
|
|
429
|
+
</div>
|
|
430
|
+
`, isInline: true, components: [{ type: i2.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: [
|
|
431
|
+
trigger('animateTo', [
|
|
432
|
+
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
433
|
+
transition('* => right', [
|
|
434
|
+
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
435
|
+
]),
|
|
436
|
+
transition('* => left', [
|
|
437
|
+
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
438
|
+
]),
|
|
439
|
+
transition('* => center', [
|
|
440
|
+
animate('300ms ease-out')
|
|
488
441
|
])
|
|
489
|
-
]
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
{
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
442
|
+
])
|
|
443
|
+
] });
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewComponent, decorators: [{
|
|
445
|
+
type: Component,
|
|
446
|
+
args: [{
|
|
447
|
+
animations: [
|
|
448
|
+
trigger('animateTo', [
|
|
449
|
+
state('center, left, right', style({ transform: 'translateX(0)' })),
|
|
450
|
+
transition('* => right', [
|
|
451
|
+
animate('300ms ease-out', style({ transform: 'translateX(100%)' }))
|
|
452
|
+
]),
|
|
453
|
+
transition('* => left', [
|
|
454
|
+
animate('300ms ease-out', style({ transform: 'translateX(-100%)' }))
|
|
455
|
+
]),
|
|
456
|
+
transition('* => center', [
|
|
457
|
+
animate('300ms ease-out')
|
|
458
|
+
])
|
|
459
|
+
])
|
|
460
|
+
],
|
|
461
|
+
exportAs: 'kendoScrollView',
|
|
462
|
+
providers: [
|
|
463
|
+
LocalizationService,
|
|
464
|
+
{
|
|
465
|
+
provide: L10N_PREFIX,
|
|
466
|
+
useValue: 'kendo.scrollview'
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
selector: 'kendo-scrollview',
|
|
470
|
+
template: `
|
|
500
471
|
<ul class='k-scrollview-wrap'
|
|
501
472
|
#itemWrapper
|
|
502
473
|
[@animateTo]="animationState"
|
|
@@ -542,10 +513,63 @@ ScrollViewComponent = tslib_1.__decorate([
|
|
|
542
513
|
</kendo-scrollview-pager>
|
|
543
514
|
</div>
|
|
544
515
|
`
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
],
|
|
551
|
-
|
|
516
|
+
}]
|
|
517
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
518
|
+
type: Input
|
|
519
|
+
}], activeIndex: [{
|
|
520
|
+
type: Input
|
|
521
|
+
}], width: [{
|
|
522
|
+
type: Input
|
|
523
|
+
}], height: [{
|
|
524
|
+
type: Input
|
|
525
|
+
}], endless: [{
|
|
526
|
+
type: Input
|
|
527
|
+
}], pagerOverlay: [{
|
|
528
|
+
type: Input
|
|
529
|
+
}], animate: [{
|
|
530
|
+
type: Input
|
|
531
|
+
}], pageable: [{
|
|
532
|
+
type: Input
|
|
533
|
+
}], arrows: [{
|
|
534
|
+
type: Input
|
|
535
|
+
}], itemChanged: [{
|
|
536
|
+
type: Output
|
|
537
|
+
}], activeIndexChange: [{
|
|
538
|
+
type: Output
|
|
539
|
+
}], itemTemplateRef: [{
|
|
540
|
+
type: ContentChild,
|
|
541
|
+
args: [TemplateRef, { static: false }]
|
|
542
|
+
}], itemWrapper: [{
|
|
543
|
+
type: ViewChild,
|
|
544
|
+
args: ['itemWrapper', { static: false }]
|
|
545
|
+
}], scrollViewClass: [{
|
|
546
|
+
type: HostBinding,
|
|
547
|
+
args: ['class.k-scrollview']
|
|
548
|
+
}], scrollViewLightOverlayClass: [{
|
|
549
|
+
type: HostBinding,
|
|
550
|
+
args: ['class.k-scrollview-light']
|
|
551
|
+
}], scrollViewDarkOverlayClass: [{
|
|
552
|
+
type: HostBinding,
|
|
553
|
+
args: ['class.k-scrollview-dark']
|
|
554
|
+
}], hostWidth: [{
|
|
555
|
+
type: HostBinding,
|
|
556
|
+
args: ['style.width']
|
|
557
|
+
}], hostHeight: [{
|
|
558
|
+
type: HostBinding,
|
|
559
|
+
args: ['style.height']
|
|
560
|
+
}], tabIndex: [{
|
|
561
|
+
type: HostBinding,
|
|
562
|
+
args: ['attr.tabindex']
|
|
563
|
+
}], ariaLive: [{
|
|
564
|
+
type: HostBinding,
|
|
565
|
+
args: ['attr.aria-live']
|
|
566
|
+
}], dir: [{
|
|
567
|
+
type: HostBinding,
|
|
568
|
+
args: ['attr.dir']
|
|
569
|
+
}], touchAction: [{
|
|
570
|
+
type: HostBinding,
|
|
571
|
+
args: ['style.touch-action']
|
|
572
|
+
}], keyDown: [{
|
|
573
|
+
type: HostListener,
|
|
574
|
+
args: ['keydown', ['$event']]
|
|
575
|
+
}] } });
|
|
@@ -2,12 +2,12 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { CommonModule } from '@angular/common';
|
|
8
7
|
import { ScrollViewComponent } from './scrollview.component';
|
|
9
8
|
import { ScrollViewPagerComponent } from "./scrollview-pager.component";
|
|
10
9
|
import { DraggableModule } from '@progress/kendo-angular-common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
11
|
const DECLARATIONS = [
|
|
12
12
|
ScrollViewComponent,
|
|
13
13
|
ScrollViewPagerComponent
|
|
@@ -46,13 +46,17 @@ const EXPORTS = [
|
|
|
46
46
|
*
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
ScrollViewModule =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
export class ScrollViewModule {
|
|
50
|
+
}
|
|
51
|
+
ScrollViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
ScrollViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, declarations: [ScrollViewComponent,
|
|
53
|
+
ScrollViewPagerComponent], imports: [CommonModule, DraggableModule], exports: [ScrollViewComponent] });
|
|
54
|
+
ScrollViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, imports: [[CommonModule, DraggableModule]] });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollViewModule, decorators: [{
|
|
56
|
+
type: NgModule,
|
|
57
|
+
args: [{
|
|
58
|
+
declarations: [DECLARATIONS],
|
|
59
|
+
exports: [EXPORTS],
|
|
60
|
+
imports: [CommonModule, DraggableModule]
|
|
61
|
+
}]
|
|
62
|
+
}] });
|