@progress/kendo-angular-scrollview 5.0.2-dev.202211170813 → 11.0.0-develop.100
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +1 -1
- package/change-event-args.d.ts +1 -1
- package/data.collection.d.ts +1 -1
- package/direction.d.ts +1 -1
- package/enums.d.ts +1 -1
- package/{esm2015/change-event-args.js → esm2020/change-event-args.mjs} +1 -1
- package/{esm2015/data.collection.js → esm2020/data.collection.mjs} +3 -3
- package/{esm2015/direction.js → esm2020/direction.mjs} +1 -1
- package/{esm2015/enums.js → esm2020/enums.mjs} +1 -1
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-scrollview.js → esm2020/progress-kendo-angular-scrollview.mjs} +2 -2
- package/{esm2015/scrollview-pager.component.js → esm2020/scrollview-pager.component.mjs} +4 -4
- package/{esm2015/scrollview.component.js → esm2020/scrollview.component.mjs} +40 -15
- package/{esm2015/scrollview.module.js → esm2020/scrollview.module.mjs} +8 -7
- package/fesm2015/{kendo-angular-scrollview.js → progress-kendo-angular-scrollview.mjs} +53 -27
- package/fesm2020/progress-kendo-angular-scrollview.mjs +811 -0
- package/{main.d.ts → index.d.ts} +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +28 -54
- package/{kendo-angular-scrollview.d.ts → progress-kendo-angular-scrollview.d.ts} +2 -2
- package/schematics/ngAdd/index.js +5 -7
- package/scrollview-pager.component.d.ts +1 -1
- package/scrollview.component.d.ts +10 -1
- package/scrollview.module.d.ts +3 -2
- package/bundles/kendo-angular-scrollview.umd.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
package/{main.d.ts → index.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
|
export { ScrollViewComponent } from './scrollview.component';
|
package/package-metadata.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
|
import { PackageMetadata } from '@progress/kendo-licensing';
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scrollview",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-develop.100",
|
|
4
4
|
"description": "A ScrollView Component for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
7
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
8
|
"bugs": {
|
|
13
9
|
"url": "https://github.com/telerik/kendo-angular"
|
|
14
10
|
},
|
|
@@ -21,62 +17,40 @@
|
|
|
21
17
|
"@progress": {
|
|
22
18
|
"friendlyName": "ScrollView"
|
|
23
19
|
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@progress/kendo-schematics": "^3.0.0",
|
|
26
|
-
"tslib": "^2.3.1"
|
|
27
|
-
},
|
|
28
20
|
"peerDependencies": {
|
|
29
|
-
"@angular/animations": "
|
|
30
|
-
"@angular/common": "
|
|
31
|
-
"@angular/core": "
|
|
32
|
-
"@
|
|
33
|
-
"@progress/kendo-angular-l10n": "^4.0.0",
|
|
21
|
+
"@angular/animations": "13 - 15",
|
|
22
|
+
"@angular/common": "13 - 15",
|
|
23
|
+
"@angular/core": "13 - 15",
|
|
24
|
+
"@angular/platform-browser": "13 - 15",
|
|
34
25
|
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
+
"@progress/kendo-angular-common": "11.0.0-develop.100",
|
|
27
|
+
"@progress/kendo-angular-l10n": "11.0.0-develop.100",
|
|
28
|
+
"@progress/kendo-angular-icons": "11.0.0-develop.100",
|
|
29
|
+
"@progress/kendo-angular-schematics": "11.0.0-develop.100",
|
|
35
30
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
36
31
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
40
|
-
},
|
|
41
|
-
"ghooks": {
|
|
42
|
-
"commit-msg": "validate-commit-msg"
|
|
43
|
-
},
|
|
44
|
-
"validate-commit-msg": {
|
|
45
|
-
"types": [
|
|
46
|
-
"feat",
|
|
47
|
-
"fix",
|
|
48
|
-
"docs",
|
|
49
|
-
"style",
|
|
50
|
-
"refactor",
|
|
51
|
-
"perf",
|
|
52
|
-
"test",
|
|
53
|
-
"chore",
|
|
54
|
-
"revert"
|
|
55
|
-
],
|
|
56
|
-
"warnOnFail": false,
|
|
57
|
-
"maxSubjectLength": 100
|
|
58
|
-
}
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"tslib": "^2.3.1"
|
|
59
34
|
},
|
|
60
35
|
"schematics": "./schematics/collection.json",
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
36
|
+
"module": "fesm2015/progress-kendo-angular-scrollview.mjs",
|
|
37
|
+
"es2020": "fesm2020/progress-kendo-angular-scrollview.mjs",
|
|
38
|
+
"esm2020": "esm2020/progress-kendo-angular-scrollview.mjs",
|
|
39
|
+
"fesm2020": "fesm2020/progress-kendo-angular-scrollview.mjs",
|
|
40
|
+
"fesm2015": "fesm2015/progress-kendo-angular-scrollview.mjs",
|
|
41
|
+
"typings": "progress-kendo-angular-scrollview.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
"./package.json": {
|
|
44
|
+
"default": "./package.json"
|
|
65
45
|
},
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
46
|
+
".": {
|
|
47
|
+
"types": "./progress-kendo-angular-scrollview.d.ts",
|
|
48
|
+
"esm2020": "./esm2020/progress-kendo-angular-scrollview.mjs",
|
|
49
|
+
"es2020": "./fesm2020/progress-kendo-angular-scrollview.mjs",
|
|
50
|
+
"es2015": "./fesm2015/progress-kendo-angular-scrollview.mjs",
|
|
51
|
+
"node": "./fesm2015/progress-kendo-angular-scrollview.mjs",
|
|
52
|
+
"default": "./fesm2020/progress-kendo-angular-scrollview.mjs"
|
|
53
|
+
}
|
|
74
54
|
},
|
|
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
55
|
"sideEffects": false
|
|
82
56
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@progress/kendo-angular-scrollview" />
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './index';
|
|
@@ -1,13 +1,11 @@
|
|
|
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
1
|
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
8
4
|
function default_1(options) {
|
|
9
|
-
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ScrollViewModule', package: 'scrollview'
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ScrollViewModule', package: 'scrollview', peerDependencies: {
|
|
6
|
+
// Peer dependency of icons
|
|
7
|
+
"@progress/kendo-svg-icons": "^1.0.0"
|
|
8
|
+
} });
|
|
9
|
+
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
12
10
|
}
|
|
13
11
|
exports.default = default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
|
import { EventEmitter } from '@angular/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
|
import { ElementRef, EventEmitter, OnChanges, TemplateRef, NgZone, Renderer2 } from '@angular/core';
|
|
@@ -9,6 +9,7 @@ import { ItemChangedEvent } from './change-event-args';
|
|
|
9
9
|
import { DataCollection } from './data.collection';
|
|
10
10
|
import { Direction } from './direction';
|
|
11
11
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* Represents the [Kendo UI ScrollView component for Angular]({% slug overview_scrollview %}).
|
|
@@ -68,6 +69,14 @@ export declare class ScrollViewComponent implements OnChanges {
|
|
|
68
69
|
private localization;
|
|
69
70
|
private ngZone;
|
|
70
71
|
private renderer;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
chevronLeftIcon: SVGIcon;
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
chevronRightIcon: SVGIcon;
|
|
71
80
|
/**
|
|
72
81
|
* Provides the data source for the ScrollView ([see example]({% slug datasources_scrollview %})).
|
|
73
82
|
*/
|
package/scrollview.module.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
|
import * as i0 from "@angular/core";
|
|
@@ -7,6 +7,7 @@ import * as i1 from "./scrollview.component";
|
|
|
7
7
|
import * as i2 from "./scrollview-pager.component";
|
|
8
8
|
import * as i3 from "@angular/common";
|
|
9
9
|
import * as i4 from "@progress/kendo-angular-common";
|
|
10
|
+
import * as i5 from "@progress/kendo-angular-icons";
|
|
10
11
|
/**
|
|
11
12
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
12
13
|
* definition for the ScrollView component.
|
|
@@ -40,6 +41,6 @@ import * as i4 from "@progress/kendo-angular-common";
|
|
|
40
41
|
*/
|
|
41
42
|
export declare class ScrollViewModule {
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollViewModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollViewModule, [typeof i1.ScrollViewComponent, typeof i2.ScrollViewPagerComponent], [typeof i3.CommonModule, typeof i4.DraggableModule], [typeof i1.ScrollViewComponent]>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollViewModule, [typeof i1.ScrollViewComponent, typeof i2.ScrollViewPagerComponent], [typeof i3.CommonModule, typeof i4.DraggableModule, typeof i5.IconsModule], [typeof i1.ScrollViewComponent]>;
|
|
44
45
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollViewModule>;
|
|
45
46
|
}
|
|
@@ -1,5 +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
|
-
!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(e,r,t,n,o,i,a){"use strict";function s(n){var i;return n&&n.__esModule?n:(i=Object.create(null),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 l,c=s(r),p=s(n),d=s(i),g=s(a),h=((k=l=l||{})[k.Next=1]="Next",k[k.Prev=-1]="Prev",{name:"@progress/kendo-angular-scrollview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1668672815,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 u(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 m(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 v=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 y={},f=(Object.defineProperty(x.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]]:m(m([y],u(this.source)),[y]).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(x.prototype,"total",{get:function(){return this.source.length},enumerable:!1,configurable:!0}),x.prototype.canMoveNext=function(){return this.endless||this.index<this.total-1},x.prototype.canMovePrev=function(){return this.endless||0<this.index},x.prototype[v]=function(){return this.data[v]()},x);function x(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(I.prototype,"length",{get:function(){return this.accessor().data.length},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"total",{get:function(){return this.accessor().total},enumerable:!1,configurable:!0}),I.prototype.item=function(e){return this.accessor().data[e]},I.prototype.canMoveNext=function(){return this.accessor().canMoveNext()},I.prototype.canMovePrev=function(){return this.accessor().canMovePrev()},I.prototype[Symbol.iterator]=function(){return this.accessor()[Symbol.iterator]()};var w=I;function I(e){this.accessor=e}b.prototype.itemClass=function(e){return{"k-primary":e===this.activeIndex}},b.prototype.indexChange=function(e){this.pagerIndexChange.emit(e)};var k=b;function b(){this.pagerIndexChange=new r.EventEmitter}k.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,deps:[],target:c.ɵɵFactoryTarget.Component}),k.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:k,selector:"kendo-scrollview-pager",inputs:{activeIndex:"activeIndex",data:"data"},outputs:{pagerIndexChange:"pagerIndexChange"},ngImport:c,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:g.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:g.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,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(O.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(e){this.index=this._activeIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"scrollViewLightOverlayClass",{get:function(){return"light"===this.pagerOverlay},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"scrollViewDarkOverlayClass",{get:function(){return"dark"===this.pagerOverlay},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostWidth",{get:function(){return this.width},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostHeight",{get:function(){return this.height},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!1,configurable:!0}),O.prototype.keyDown=function(e){e.keyCode===n.Keys.ArrowLeft&&(this.isRTL?this.next():this.prev()),e.keyCode===n.Keys.ArrowRight&&(this.isRTL?this.prev():this.next())},O.prototype.ngOnChanges=function(e){this.activeIndex=Math.max(Math.min(this.activeIndex,this.view.total-1),0)},O.prototype.prev=function(){this.navigate(l.Prev)},O.prototype.next=function(){this.navigate(l.Next)},O.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)}))},O.prototype.handlePress=function(e){this.initialTouchCoordinate=e.pageX},O.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)")},O.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?l.Prev:l.Next):t.changeIndex(0<n?l.Prev:l.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")})},O.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)},O.prototype.inlineListItemStyles=function(e){return{height:this.height,transform:this.transforms[e],width:"100%"}},O.prototype.displayLeftArrow=function(){var e=this.isRTL?this.activeIndex+1<this.view.total:0<this.activeIndex;return(this.endless||e)&&0<this.view.total},O.prototype.leftArrowClick=function(){this.isRTL?this.next():this.prev()},O.prototype.displayRightArrow=function(){var e=this.isRTL?0<this.activeIndex:this.activeIndex+1<this.view.total;return(this.endless||e)&&0<this.view.total},O.prototype.rightArrowClick=function(){this.isRTL?this.prev():this.next()},O.prototype.draggedInsideBounds=function(e){return Math.abs(e)<=this.element.nativeElement.offsetWidth},O.prototype.draggedEnoughToNavigate=function(e){return Math.abs(e)>this.element.nativeElement.offsetWidth/2},O.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},O.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)}))},O.prototype.changeIndex=function(e){e===l.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===l.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(O.prototype,"isRTL",{get:function(){return"rtl"===this.direction},enumerable:!1,configurable:!0});var C=O;function O(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 w(function(){return new f(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%)"],o.validatePackage(h)}C.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:C,deps:[{token:c.ElementRef},{token:d.LocalizationService},{token:c.NgZone},{token:c.Renderer2}],target:c.ɵɵFactoryTarget.Component}),C.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,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:[i.LocalizationService,{provide:i.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:c,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-chevron-left"></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-chevron-right"></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:k,selector:"kendo-scrollview-pager",inputs:["activeIndex","data"],outputs:["pagerIndexChange"]}],directives:[{type:p.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]},{type:g.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:g.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:g.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:g.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],animations:[t.trigger("animateTo",[t.state("center, left, right",t.style({transform:"translateX(0)"})),t.transition("* => right",[t.animate("300ms ease-out",t.style({transform:"translateX(100%)"}))]),t.transition("* => left",[t.animate("300ms ease-out",t.style({transform:"translateX(-100%)"}))]),t.transition("* => center",[t.animate("300ms ease-out")])])]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:C,decorators:[{type:r.Component,args:[{animations:[t.trigger("animateTo",[t.state("center, left, right",t.style({transform:"translateX(0)"})),t.transition("* => right",[t.animate("300ms ease-out",t.style({transform:"translateX(100%)"}))]),t.transition("* => left",[t.animate("300ms ease-out",t.style({transform:"translateX(-100%)"}))]),t.transition("* => center",[t.animate("300ms ease-out")])])],exportAs:"kendoScrollView",providers:[i.LocalizationService,{provide:i.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-chevron-left"></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-chevron-right"></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:c.ElementRef},{type:d.LocalizationService},{type:c.NgZone},{type:c.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"]]}]}});p=[C,k],g=[C],t=function(){};t.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,deps:[],target:c.ɵɵFactoryTarget.NgModule}),t.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,declarations:[C,k],imports:[a.CommonModule,n.DraggableModule],exports:[C]}),t.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,imports:[[a.CommonModule,n.DraggableModule]]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,decorators:[{type:r.NgModule,args:[{declarations:[p],exports:[g],imports:[a.CommonModule,n.DraggableModule]}]}]}),e.ScrollViewComponent=C,e.ScrollViewModule=t,e.ScrollViewPagerComponent=k,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|