From 0b94e16e15a00cb13929cd4bc2f58561627ad4c4 Mon Sep 17 00:00:00 2001 From: wangxy Date: Tue, 6 Mar 2018 09:53:15 +0800 Subject: [PATCH] fix min > max error when list items are not enough to fill one screen --- .gitignore | 1 + README.md | 3 + aot/src/index.ngfactory.ts | 2 +- aot/src/index.ngsummary.json | 2 +- .../modules/alpha-scroll.module.ngfactory.ts | 2 +- .../alpha-scroll.module.ngsummary.json | 2 +- aot/src/modules/alpha-scroll.ngfactory.ts | 20 +- aot/src/modules/alpha-scroll.ngsummary.json | 2 +- .../pipes/bypass-trust-res-url.ngsummary.json | 2 +- aot/src/pipes/map-to-iterable.ngsummary.json | 2 +- aot/src/pipes/order-by.ngsummary.json | 2 +- aot/src/pipes/pipes.module.ngfactory.ts | 2 +- aot/src/pipes/pipes.module.ngsummary.json | 2 +- dist/index.js.map | 2 +- dist/modules/alpha-scroll.js | 19 +- dist/modules/alpha-scroll.js.map | 2 +- dist/modules/alpha-scroll.metadata.json | 2 +- dist/modules/alpha-scroll.module.js.map | 2 +- dist/pipes/bypass-trust-res-url.js.map | 2 +- dist/pipes/map-to-iterable.js.map | 2 +- dist/pipes/order-by.js.map | 2 +- dist/pipes/pipes.module.js.map | 2 +- package-lock.json | 2 +- package.json | 2 +- src/modules/alpha-scroll.ts | 349 +++++++++--------- 25 files changed, 220 insertions(+), 212 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/README.md b/README.md index db9e90e..4c428e2 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ #更新: +### 20180306 +1、修复列表项不满一屏时报错的问题 + ### 20171103 1、新增自定义头部模板功能。感谢[@Yan Xiaodi](https://github.com/yanxiaodi) diff --git a/aot/src/index.ngfactory.ts b/aot/src/index.ngfactory.ts index 044a2e1..7c633da 100644 --- a/aot/src/index.ngfactory.ts +++ b/aot/src/index.ngfactory.ts @@ -111,4 +111,4 @@ class AlphaScrollModuleInjector extends import0.ɵNgModuleInjector = new import0.NgModuleFactory(AlphaScrollModuleInjector,import1.AlphaScrollModule); -//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvaW5kZXgubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vVXNlcnMvbWFjL3dvcmsvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIgIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== +//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiRTovd29ya3NwYWNlL2dpdGh1Yi9kYXJreGlueXUvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9pbmRleC5uZ2ZhY3RvcnkudHMiLCJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJuZzovLy9FOi93b3Jrc3BhY2UvZ2l0aHViL2Rhcmt4aW55dS9pb25pYy1hbHBoYS1zY3JvbGwvc3JjL2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIiAiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 diff --git a/aot/src/index.ngsummary.json b/aot/src/index.ngsummary.json index 8b76305..f30f0d5 100644 --- a/aot/src/index.ngsummary.json +++ b/aot/src/index.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[{"componentType":{"__symbol":11,"members":[]},"componentFactory":{"__symbol":12,"members":[]}},{"componentType":{"__symbol":13,"members":[]},"componentFactory":{"__symbol":14,"members":[]}},{"componentType":{"__symbol":15,"members":[]},"componentFactory":{"__symbol":16,"members":[]}},{"componentType":{"__symbol":17,"members":[]},"componentFactory":{"__symbol":18,"members":[]}},{"componentType":{"__symbol":19,"members":[]},"componentFactory":{"__symbol":20,"members":[]}},{"componentType":{"__symbol":21,"members":[]},"componentFactory":{"__symbol":22,"members":[]}},{"componentType":{"__symbol":23,"members":[]},"componentFactory":{"__symbol":24,"members":[]}},{"componentType":{"__symbol":25,"members":[]},"componentFactory":{"__symbol":26,"members":[]}},{"componentType":{"__symbol":27,"members":[]},"componentFactory":{"__symbol":28,"members":[]}}],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":29,"members":[]}}},"useClass":{"reference":{"__symbol":30,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":31,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":31,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":32,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":34,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":35,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":35,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":36,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":36,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":37,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":37,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":38,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":38,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":39,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":40,"members":[]}}}}],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":39,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":40,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":40,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":32,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":41,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":34,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":36,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":42,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":4,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":2,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":43,"members":[]}}],"exportedPipes":[{"reference":{"__symbol":37,"members":[]}},{"reference":{"__symbol":38,"members":[]}},{"reference":{"__symbol":39,"members":[]}}]}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbol":2,"members":[]}},{"symbol":{"__symbol":3,"members":[]},"metadata":{"__symbol":4,"members":[]}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbol":6,"members":[]}},{"symbol":{"__symbol":7,"members":[]},"metadata":{"__symbol":8,"members":[]}},{"symbol":{"__symbol":9,"members":[]},"metadata":{"__symbol":10,"members":[]}}],"symbols":[{"__symbol":0,"name":"AlphaScrollModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":1,"name":"ScrollModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":2,"name":"ScrollModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.module.d.ts"},{"__symbol":3,"name":"PipesModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":4,"name":"PipesModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":5,"name":"MapToIterable","filePath":"/Users/mac/work/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":6,"name":"MapToIterable","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":7,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":8,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":9,"name":"TrustResourceUrl","filePath":"/Users/mac/work/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":10,"name":"TrustResourceUrl","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":11,"name":"ActionSheetCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.d.ts"},{"__symbol":12,"name":"ActionSheetCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.ngfactory.d.ts"},{"__symbol":13,"name":"AlertCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.d.ts"},{"__symbol":14,"name":"AlertCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.ngfactory.d.ts"},{"__symbol":15,"name":"IonicApp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.d.ts"},{"__symbol":16,"name":"IonicAppNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.ngfactory.d.ts"},{"__symbol":17,"name":"LoadingCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.d.ts"},{"__symbol":18,"name":"LoadingCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.ngfactory.d.ts"},{"__symbol":19,"name":"ModalCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.d.ts"},{"__symbol":20,"name":"ModalCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.ngfactory.d.ts"},{"__symbol":21,"name":"PickerCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.d.ts"},{"__symbol":22,"name":"PickerCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.ngfactory.d.ts"},{"__symbol":23,"name":"PopoverCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.d.ts"},{"__symbol":24,"name":"PopoverCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.ngfactory.d.ts"},{"__symbol":25,"name":"SelectPopover","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.d.ts"},{"__symbol":26,"name":"SelectPopoverNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.ngfactory.d.ts"},{"__symbol":27,"name":"ToastCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.d.ts"},{"__symbol":28,"name":"ToastCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.ngfactory.d.ts"},{"__symbol":29,"name":"NgLocalization","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":30,"name":"NgLocaleLocalization","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":31,"name":"LOCALE_ID","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":32,"name":"CommonModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":33,"name":"ɵi","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":34,"name":"FormsModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":35,"name":"FormBuilder","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":36,"name":"ReactiveFormsModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":37,"name":"MapToIterable","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/map-to-iterable.d.ts"},{"__symbol":38,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/order-by.d.ts"},{"__symbol":39,"name":"TrustResourceUrl","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/bypass-trust-res-url.d.ts"},{"__symbol":40,"name":"DomSanitizer","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/platform-browser/platform-browser.d.ts"},{"__symbol":41,"name":"ɵba","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":42,"name":"IonicModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/module.d.ts"},{"__symbol":43,"name":"AlphaScroll","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[{"componentType":{"__symbol":11,"members":[]},"componentFactory":{"__symbol":12,"members":[]}},{"componentType":{"__symbol":13,"members":[]},"componentFactory":{"__symbol":14,"members":[]}},{"componentType":{"__symbol":15,"members":[]},"componentFactory":{"__symbol":16,"members":[]}},{"componentType":{"__symbol":17,"members":[]},"componentFactory":{"__symbol":18,"members":[]}},{"componentType":{"__symbol":19,"members":[]},"componentFactory":{"__symbol":20,"members":[]}},{"componentType":{"__symbol":21,"members":[]},"componentFactory":{"__symbol":22,"members":[]}},{"componentType":{"__symbol":23,"members":[]},"componentFactory":{"__symbol":24,"members":[]}},{"componentType":{"__symbol":25,"members":[]},"componentFactory":{"__symbol":26,"members":[]}},{"componentType":{"__symbol":27,"members":[]},"componentFactory":{"__symbol":28,"members":[]}}],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":29,"members":[]}}},"useClass":{"reference":{"__symbol":30,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":31,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":31,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":32,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":34,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":35,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":35,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":36,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":33,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":36,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":37,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":37,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":38,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":38,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":39,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":40,"members":[]}}}}],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":39,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":40,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":40,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":32,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":41,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":34,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":36,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":42,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":4,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":2,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":43,"members":[]}}],"exportedPipes":[{"reference":{"__symbol":37,"members":[]}},{"reference":{"__symbol":38,"members":[]}},{"reference":{"__symbol":39,"members":[]}}]}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbol":2,"members":[]}},{"symbol":{"__symbol":3,"members":[]},"metadata":{"__symbol":4,"members":[]}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbol":6,"members":[]}},{"symbol":{"__symbol":7,"members":[]},"metadata":{"__symbol":8,"members":[]}},{"symbol":{"__symbol":9,"members":[]},"metadata":{"__symbol":10,"members":[]}}],"symbols":[{"__symbol":0,"name":"AlphaScrollModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":1,"name":"ScrollModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":2,"name":"ScrollModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.module.d.ts"},{"__symbol":3,"name":"PipesModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":4,"name":"PipesModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":5,"name":"MapToIterable","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":6,"name":"MapToIterable","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":7,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":8,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":9,"name":"TrustResourceUrl","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/index.d.ts"},{"__symbol":10,"name":"TrustResourceUrl","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":11,"name":"ActionSheetCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.d.ts"},{"__symbol":12,"name":"ActionSheetCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.ngfactory.d.ts"},{"__symbol":13,"name":"AlertCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.d.ts"},{"__symbol":14,"name":"AlertCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.ngfactory.d.ts"},{"__symbol":15,"name":"IonicApp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.d.ts"},{"__symbol":16,"name":"IonicAppNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.ngfactory.d.ts"},{"__symbol":17,"name":"LoadingCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.d.ts"},{"__symbol":18,"name":"LoadingCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.ngfactory.d.ts"},{"__symbol":19,"name":"ModalCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.d.ts"},{"__symbol":20,"name":"ModalCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.ngfactory.d.ts"},{"__symbol":21,"name":"PickerCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.d.ts"},{"__symbol":22,"name":"PickerCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.ngfactory.d.ts"},{"__symbol":23,"name":"PopoverCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.d.ts"},{"__symbol":24,"name":"PopoverCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.ngfactory.d.ts"},{"__symbol":25,"name":"SelectPopover","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.d.ts"},{"__symbol":26,"name":"SelectPopoverNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.ngfactory.d.ts"},{"__symbol":27,"name":"ToastCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.d.ts"},{"__symbol":28,"name":"ToastCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.ngfactory.d.ts"},{"__symbol":29,"name":"NgLocalization","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":30,"name":"NgLocaleLocalization","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":31,"name":"LOCALE_ID","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":32,"name":"CommonModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":33,"name":"ɵi","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":34,"name":"FormsModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":35,"name":"FormBuilder","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":36,"name":"ReactiveFormsModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":37,"name":"MapToIterable","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/map-to-iterable.d.ts"},{"__symbol":38,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/order-by.d.ts"},{"__symbol":39,"name":"TrustResourceUrl","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/bypass-trust-res-url.d.ts"},{"__symbol":40,"name":"DomSanitizer","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/platform-browser/platform-browser.d.ts"},{"__symbol":41,"name":"ɵba","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":42,"name":"IonicModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/module.d.ts"},{"__symbol":43,"name":"AlphaScroll","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.d.ts"}]} \ No newline at end of file diff --git a/aot/src/modules/alpha-scroll.module.ngfactory.ts b/aot/src/modules/alpha-scroll.module.ngfactory.ts index 955bb24..05d455f 100644 --- a/aot/src/modules/alpha-scroll.module.ngfactory.ts +++ b/aot/src/modules/alpha-scroll.module.ngfactory.ts @@ -85,4 +85,4 @@ class ScrollModuleInjector extends import0.ɵNgModuleInjector = new import0.NgModuleFactory(ScrollModuleInjector,import1.ScrollModule); -//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvbW9kdWxlcy9hbHBoYS1zY3JvbGwubW9kdWxlLm5nZmFjdG9yeS50cyIsInZlcnNpb24iOjMsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm5nOi8vL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvbW9kdWxlcy9hbHBoYS1zY3JvbGwubW9kdWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIiAiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== +//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiRTovd29ya3NwYWNlL2dpdGh1Yi9kYXJreGlueXUvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9tb2R1bGVzL2FscGhhLXNjcm9sbC5tb2R1bGUubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vRTovd29ya3NwYWNlL2dpdGh1Yi9kYXJreGlueXUvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9tb2R1bGVzL2FscGhhLXNjcm9sbC5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiICJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 diff --git a/aot/src/modules/alpha-scroll.module.ngsummary.json b/aot/src/modules/alpha-scroll.module.ngsummary.json index d747028..f4917b0 100644 --- a/aot/src/modules/alpha-scroll.module.ngsummary.json +++ b/aot/src/modules/alpha-scroll.module.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[{"componentType":{"__symbol":1,"members":[]},"componentFactory":{"__symbol":2,"members":[]}},{"componentType":{"__symbol":3,"members":[]},"componentFactory":{"__symbol":4,"members":[]}},{"componentType":{"__symbol":5,"members":[]},"componentFactory":{"__symbol":6,"members":[]}},{"componentType":{"__symbol":7,"members":[]},"componentFactory":{"__symbol":8,"members":[]}},{"componentType":{"__symbol":9,"members":[]},"componentFactory":{"__symbol":10,"members":[]}},{"componentType":{"__symbol":11,"members":[]},"componentFactory":{"__symbol":12,"members":[]}},{"componentType":{"__symbol":13,"members":[]},"componentFactory":{"__symbol":14,"members":[]}},{"componentType":{"__symbol":15,"members":[]},"componentFactory":{"__symbol":16,"members":[]}},{"componentType":{"__symbol":17,"members":[]},"componentFactory":{"__symbol":18,"members":[]}}],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":19,"members":[]}}},"useClass":{"reference":{"__symbol":20,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":21,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":21,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":22,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":24,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":22,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":27,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":24,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":28,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":29,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":30,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"ScrollModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.module.d.ts"},{"__symbol":1,"name":"ActionSheetCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.d.ts"},{"__symbol":2,"name":"ActionSheetCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.ngfactory.d.ts"},{"__symbol":3,"name":"AlertCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.d.ts"},{"__symbol":4,"name":"AlertCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.ngfactory.d.ts"},{"__symbol":5,"name":"IonicApp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.d.ts"},{"__symbol":6,"name":"IonicAppNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.ngfactory.d.ts"},{"__symbol":7,"name":"LoadingCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.d.ts"},{"__symbol":8,"name":"LoadingCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.ngfactory.d.ts"},{"__symbol":9,"name":"ModalCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.d.ts"},{"__symbol":10,"name":"ModalCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.ngfactory.d.ts"},{"__symbol":11,"name":"PickerCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.d.ts"},{"__symbol":12,"name":"PickerCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.ngfactory.d.ts"},{"__symbol":13,"name":"PopoverCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.d.ts"},{"__symbol":14,"name":"PopoverCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.ngfactory.d.ts"},{"__symbol":15,"name":"SelectPopover","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.d.ts"},{"__symbol":16,"name":"SelectPopoverNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.ngfactory.d.ts"},{"__symbol":17,"name":"ToastCmp","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.d.ts"},{"__symbol":18,"name":"ToastCmpNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.ngfactory.d.ts"},{"__symbol":19,"name":"NgLocalization","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":20,"name":"NgLocaleLocalization","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":21,"name":"LOCALE_ID","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":22,"name":"CommonModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":23,"name":"ɵi","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":24,"name":"FormsModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":25,"name":"FormBuilder","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":26,"name":"ReactiveFormsModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":27,"name":"ɵba","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":28,"name":"IonicModule","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/ionic-angular/module.d.ts"},{"__symbol":29,"name":"PipesModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":30,"name":"AlphaScroll","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[{"componentType":{"__symbol":1,"members":[]},"componentFactory":{"__symbol":2,"members":[]}},{"componentType":{"__symbol":3,"members":[]},"componentFactory":{"__symbol":4,"members":[]}},{"componentType":{"__symbol":5,"members":[]},"componentFactory":{"__symbol":6,"members":[]}},{"componentType":{"__symbol":7,"members":[]},"componentFactory":{"__symbol":8,"members":[]}},{"componentType":{"__symbol":9,"members":[]},"componentFactory":{"__symbol":10,"members":[]}},{"componentType":{"__symbol":11,"members":[]},"componentFactory":{"__symbol":12,"members":[]}},{"componentType":{"__symbol":13,"members":[]},"componentFactory":{"__symbol":14,"members":[]}},{"componentType":{"__symbol":15,"members":[]},"componentFactory":{"__symbol":16,"members":[]}},{"componentType":{"__symbol":17,"members":[]},"componentFactory":{"__symbol":18,"members":[]}}],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":19,"members":[]}}},"useClass":{"reference":{"__symbol":20,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":21,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":21,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":22,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":24,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":23,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":22,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":27,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":24,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":28,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":29,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":30,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"ScrollModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.module.d.ts"},{"__symbol":1,"name":"ActionSheetCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.d.ts"},{"__symbol":2,"name":"ActionSheetCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/action-sheet/action-sheet-component.ngfactory.d.ts"},{"__symbol":3,"name":"AlertCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.d.ts"},{"__symbol":4,"name":"AlertCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/alert/alert-component.ngfactory.d.ts"},{"__symbol":5,"name":"IonicApp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.d.ts"},{"__symbol":6,"name":"IonicAppNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/app/app-root.ngfactory.d.ts"},{"__symbol":7,"name":"LoadingCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.d.ts"},{"__symbol":8,"name":"LoadingCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/loading/loading-component.ngfactory.d.ts"},{"__symbol":9,"name":"ModalCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.d.ts"},{"__symbol":10,"name":"ModalCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/modal/modal-component.ngfactory.d.ts"},{"__symbol":11,"name":"PickerCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.d.ts"},{"__symbol":12,"name":"PickerCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/picker/picker-component.ngfactory.d.ts"},{"__symbol":13,"name":"PopoverCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.d.ts"},{"__symbol":14,"name":"PopoverCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/popover/popover-component.ngfactory.d.ts"},{"__symbol":15,"name":"SelectPopover","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.d.ts"},{"__symbol":16,"name":"SelectPopoverNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/select/select-popover-component.ngfactory.d.ts"},{"__symbol":17,"name":"ToastCmp","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.d.ts"},{"__symbol":18,"name":"ToastCmpNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/components/toast/toast-component.ngfactory.d.ts"},{"__symbol":19,"name":"NgLocalization","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":20,"name":"NgLocaleLocalization","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":21,"name":"LOCALE_ID","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":22,"name":"CommonModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/common/common.d.ts"},{"__symbol":23,"name":"ɵi","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":24,"name":"FormsModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":25,"name":"FormBuilder","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":26,"name":"ReactiveFormsModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":27,"name":"ɵba","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/forms/forms.d.ts"},{"__symbol":28,"name":"IonicModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/ionic-angular/module.d.ts"},{"__symbol":29,"name":"PipesModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":30,"name":"AlphaScroll","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.d.ts"}]} \ No newline at end of file diff --git a/aot/src/modules/alpha-scroll.ngfactory.ts b/aot/src/modules/alpha-scroll.ngfactory.ts index 81016e8..82a5dab 100644 --- a/aot/src/modules/alpha-scroll.ngfactory.ts +++ b/aot/src/modules/alpha-scroll.ngfactory.ts @@ -122,7 +122,7 @@ function View_AlphaScroll_4(l:any):import0.ɵViewDefinition { }); } function View_AlphaScroll_6(l:any):import0.ɵViewDefinition { - return import0.ɵvid(0,[(l()(),import0.ɵted((null as any),['\n ']))],(null as any),(null as any)); + return import0.ɵvid(0,[(l()(),import0.ɵted((null as any),['\n ']))],(null as any),(null as any)); } function View_AlphaScroll_5(l:any):import0.ɵViewDefinition { return import0.ɵvid(0,[ @@ -157,7 +157,7 @@ function View_AlphaScroll_5(l:any):import0.ɵViewDefinition { function View_AlphaScroll_3(l:any):import0.ɵViewDefinition { return import0.ɵvid(0,[ (l()(),import0.ɵeld(0,(null as any),(null as any),7,'div',([] as any[]),(null as any),(null as any),(null as any),(null as any),(null as any))), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_AlphaScroll_4)), import0.ɵdid(16384,(null as any),0,import7.NgIf,[ import0.ViewContainerRef, @@ -168,7 +168,7 @@ function View_AlphaScroll_3(l:any):import0.ɵViewDefinition { 'ngIf' ] },(null as any)), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_AlphaScroll_5)), import0.ɵdid(16384,(null as any),0,import7.NgIf,[ import0.ViewContainerRef, @@ -179,7 +179,7 @@ function View_AlphaScroll_3(l:any):import0.ɵViewDefinition { 'ngIf' ] },(null as any)), - (l()(),import0.ɵted((null as any),['\n '])) + (l()(),import0.ɵted((null as any),['\n '])) ] ,(ck,v) => { const currVal_0:any = v.context.$implicit.isDivider; @@ -246,7 +246,7 @@ export function View_AlphaScroll_0(l:any):import0.ɵViewDefinition { 'alpha-list-wrapper' ] ],(null as any),(null as any),(null as any),(null as any),(null as any))), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵeld(0,[ [ 2, @@ -273,7 +273,7 @@ export function View_AlphaScroll_0(l:any):import0.ɵViewDefinition { import11.DomController ] ,(null as any),(null as any)), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_AlphaScroll_1)), import0.ɵdid(16384,(null as any),0,import7.NgIf,[ import0.ViewContainerRef, @@ -284,14 +284,14 @@ export function View_AlphaScroll_0(l:any):import0.ɵViewDefinition { 'ngIf' ] },(null as any)), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_AlphaScroll_2)), import0.ɵdid(540672,(null as any),0,import7.NgTemplateOutlet,[import0.ViewContainerRef],{ngTemplateOutlet: [ 0, 'ngTemplateOutlet' ] },(null as any)), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_AlphaScroll_3)), import0.ɵdid(802816,(null as any),0,import7.NgForOf,[ import0.ViewContainerRef, @@ -303,7 +303,7 @@ export function View_AlphaScroll_0(l:any):import0.ɵViewDefinition { 'ngForOf' ] },(null as any)), - (l()(),import0.ɵted((null as any),['\n '])), + (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵted((null as any),['\n '])), (l()(),import0.ɵeld(0,[ @@ -382,4 +382,4 @@ export const AlphaScrollNgFactory:import0.ComponentFactory headerTemplate: 'headerTemplate' } ,{},([] as any[])); -//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvbW9kdWxlcy9hbHBoYS1zY3JvbGwubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vVXNlcnMvbWFjL3dvcmsvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9tb2R1bGVzL2FscGhhLXNjcm9sbC50cyIsIm5nOi8vL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvbW9kdWxlcy9hbHBoYS1zY3JvbGwudHMuQWxwaGFTY3JvbGwuaHRtbCIsIm5nOi8vL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvbW9kdWxlcy9hbHBoYS1zY3JvbGwudHMuQWxwaGFTY3JvbGxfSG9zdC5odG1sIl0sInNvdXJjZXNDb250ZW50IjpbIiAiLCJcbiAgPHNlY3Rpb24gY2xhc3M9XCJhbHBoYS1saXN0LXdyYXBwZXJcIiAjd3JhcHBlcj5cblx0ICA8aW9uLWxpc3QgY2xhc3M9XCJpb24tYWxwaGEtbGlzdFwiICNsaXN0PlxuXHRcdDxpb24taXRlbS1kaXZpZGVyIGlkPVwic2Nyb2xsLWx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/alpha-scroll.ngsummary.json index d029533..8193b26 100644 --- a/aot/src/modules/alpha-scroll.ngsummary.json +++ b/aot/src/modules/alpha-scroll.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"mainWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]},"arguments":["wrapper"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]},"arguments":["list"]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]},"arguments":["sidebar"]}]}],"listData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"currentPageClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":3,"members":[]},{"__symbol":4,"members":[]}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAlphaClass":[{"__symbolic":"method"}],"calculateDimensionsForSidebar":[{"__symbolic":"method"}],"setTouchHandlers":[{"__symbolic":"method"}],"unwindGroup":[{"__symbolic":"method"}],"iterateAlphabet":[{"__symbolic":"method"}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":4,"members":[]}}}}],"lifecycleHooks":[0,1,3]},"isComponent":true,"selector":"ion-alpha-scroll","exportAs":null,"inputs":{"listData":"listData","key":"key","itemTemplate":"itemTemplate","currentPageClass":"currentPageClass","headerTemplate":"headerTemplate"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"viewQueries":[{"selectors":[{"value":"wrapper"}],"first":true,"descendants":true,"propertyName":"mainWrapper","read":null},{"selectors":[{"value":"list"}],"first":true,"descendants":true,"propertyName":"list","read":null},{"selectors":[{"value":"sidebar"}],"first":true,"descendants":true,"propertyName":"sidebar","read":null}],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":[],"encapsulation":2},"componentViewType":{"__symbol":5,"members":[]},"rendererType":{"__symbol":6,"members":[]},"componentFactory":{"__symbol":7,"members":[]}}}],"symbols":[{"__symbol":0,"name":"AlphaScroll","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.d.ts"},{"__symbol":1,"name":"ViewChild","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":2,"name":"Input","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":3,"name":"ElementRef","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":4,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/order-by.d.ts"},{"__symbol":5,"name":"View_AlphaScroll_0","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.ngfactory.d.ts"},{"__symbol":6,"name":"RenderType_AlphaScroll","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.ngfactory.d.ts"},{"__symbol":7,"name":"AlphaScrollNgFactory","filePath":"/Users/mac/work/ionic-alpha-scroll/src/modules/alpha-scroll.ngfactory.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"mainWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]},"arguments":["wrapper"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]},"arguments":["list"]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]},"arguments":["sidebar"]}]}],"listData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"currentPageClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":3,"members":[]},{"__symbol":4,"members":[]}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAlphaClass":[{"__symbolic":"method"}],"calculateDimensionsForSidebar":[{"__symbolic":"method"}],"setTouchHandlers":[{"__symbolic":"method"}],"unwindGroup":[{"__symbolic":"method"}],"iterateAlphabet":[{"__symbolic":"method"}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":4,"members":[]}}}}],"lifecycleHooks":[0,1,3]},"isComponent":true,"selector":"ion-alpha-scroll","exportAs":null,"inputs":{"listData":"listData","key":"key","itemTemplate":"itemTemplate","currentPageClass":"currentPageClass","headerTemplate":"headerTemplate"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"viewQueries":[{"selectors":[{"value":"wrapper"}],"first":true,"descendants":true,"propertyName":"mainWrapper","read":null},{"selectors":[{"value":"list"}],"first":true,"descendants":true,"propertyName":"list","read":null},{"selectors":[{"value":"sidebar"}],"first":true,"descendants":true,"propertyName":"sidebar","read":null}],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":[],"encapsulation":2},"componentViewType":{"__symbol":5,"members":[]},"rendererType":{"__symbol":6,"members":[]},"componentFactory":{"__symbol":7,"members":[]}}}],"symbols":[{"__symbol":0,"name":"AlphaScroll","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.d.ts"},{"__symbol":1,"name":"ViewChild","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":2,"name":"Input","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":3,"name":"ElementRef","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/core/core.d.ts"},{"__symbol":4,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/order-by.d.ts"},{"__symbol":5,"name":"View_AlphaScroll_0","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.ngfactory.d.ts"},{"__symbol":6,"name":"RenderType_AlphaScroll","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.ngfactory.d.ts"},{"__symbol":7,"name":"AlphaScrollNgFactory","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/modules/alpha-scroll.ngfactory.d.ts"}]} \ No newline at end of file diff --git a/aot/src/pipes/bypass-trust-res-url.ngsummary.json b/aot/src/pipes/bypass-trust-res-url.ngsummary.json index e23e0b1..5c3cca6 100644 --- a/aot/src/pipes/bypass-trust-res-url.ngsummary.json +++ b/aot/src/pipes/bypass-trust-res-url.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":1,"members":[]}]}],"transform":[{"__symbolic":"method"}]}},"type":{"summaryKind":0,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}}],"lifecycleHooks":[]},"name":"trustResourceUrl","pure":true}}],"symbols":[{"__symbol":0,"name":"TrustResourceUrl","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/bypass-trust-res-url.d.ts"},{"__symbol":1,"name":"DomSanitizer","filePath":"/Users/mac/work/ionic-alpha-scroll/node_modules/@angular/platform-browser/platform-browser.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":1,"members":[]}]}],"transform":[{"__symbolic":"method"}]}},"type":{"summaryKind":0,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}}],"lifecycleHooks":[]},"name":"trustResourceUrl","pure":true}}],"symbols":[{"__symbol":0,"name":"TrustResourceUrl","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/bypass-trust-res-url.d.ts"},{"__symbol":1,"name":"DomSanitizer","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/node_modules/@angular/platform-browser/platform-browser.d.ts"}]} \ No newline at end of file diff --git a/aot/src/pipes/map-to-iterable.ngsummary.json b/aot/src/pipes/map-to-iterable.ngsummary.json index fdad6ea..e050f36 100644 --- a/aot/src/pipes/map-to-iterable.ngsummary.json +++ b/aot/src/pipes/map-to-iterable.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}]}},"type":{"summaryKind":0,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"name":"mapToIterable","pure":true}}],"symbols":[{"__symbol":0,"name":"MapToIterable","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/map-to-iterable.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}]}},"type":{"summaryKind":0,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"name":"mapToIterable","pure":true}}],"symbols":[{"__symbol":0,"name":"MapToIterable","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/map-to-iterable.d.ts"}]} \ No newline at end of file diff --git a/aot/src/pipes/order-by.ngsummary.json b/aot/src/pipes/order-by.ngsummary.json index 45025fb..24d26ae 100644 --- a/aot/src/pipes/order-by.ngsummary.json +++ b/aot/src/pipes/order-by.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}],"isSingle":[{"__symbolic":"method"}],"parseProperty":[{"__symbolic":"method"}],"parseProperties":[{"__symbolic":"method"}]}},"type":{"summaryKind":0,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"name":"orderBy","pure":true}}],"symbols":[{"__symbol":0,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/order-by.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"transform":[{"__symbolic":"method"}],"isSingle":[{"__symbolic":"method"}],"parseProperty":[{"__symbolic":"method"}],"parseProperties":[{"__symbolic":"method"}]}},"type":{"summaryKind":0,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"name":"orderBy","pure":true}}],"symbols":[{"__symbol":0,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/order-by.d.ts"}]} \ No newline at end of file diff --git a/aot/src/pipes/pipes.module.ngfactory.ts b/aot/src/pipes/pipes.module.ngfactory.ts index c597b49..b30bbd4 100644 --- a/aot/src/pipes/pipes.module.ngfactory.ts +++ b/aot/src/pipes/pipes.module.ngfactory.ts @@ -25,4 +25,4 @@ class PipesModuleInjector extends import0.ɵNgModuleInjector = new import0.NgModuleFactory(PipesModuleInjector,import1.PipesModule); -//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvcGlwZXMvcGlwZXMubW9kdWxlLm5nZmFjdG9yeS50cyIsInZlcnNpb24iOjMsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm5nOi8vL1VzZXJzL21hYy93b3JrL2lvbmljLWFscGhhLXNjcm9sbC9zcmMvcGlwZXMvcGlwZXMubW9kdWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIiAiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== +//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiRTovd29ya3NwYWNlL2dpdGh1Yi9kYXJreGlueXUvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9waXBlcy9waXBlcy5tb2R1bGUubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vRTovd29ya3NwYWNlL2dpdGh1Yi9kYXJreGlueXUvaW9uaWMtYWxwaGEtc2Nyb2xsL3NyYy9waXBlcy9waXBlcy5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiICJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9 diff --git a/aot/src/pipes/pipes.module.ngsummary.json b/aot/src/pipes/pipes.module.ngsummary.json index b90f94b..7f45705 100644 --- a/aot/src/pipes/pipes.module.ngsummary.json +++ b/aot/src/pipes/pipes.module.ngsummary.json @@ -1 +1 @@ -{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[{"__symbol":1,"members":[]},{"__symbol":2,"members":[]},{"__symbol":3,"members":[]}]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[{"reference":{"__symbol":1,"members":[]}},{"reference":{"__symbol":2,"members":[]}},{"reference":{"__symbol":3,"members":[]}}]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbol":2,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":3,"members":[]}}],"symbols":[{"__symbol":0,"name":"PipesModule","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":1,"name":"MapToIterable","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/map-to-iterable.d.ts"},{"__symbol":2,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/order-by.d.ts"},{"__symbol":3,"name":"TrustResourceUrl","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/bypass-trust-res-url.d.ts"},{"__symbol":4,"name":"MapToIterable","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":5,"name":"OrderBy","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":6,"name":"TrustResourceUrl","filePath":"/Users/mac/work/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"}]} \ No newline at end of file +{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[{"__symbol":1,"members":[]},{"__symbol":2,"members":[]},{"__symbol":3,"members":[]}]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[{"reference":{"__symbol":1,"members":[]}},{"reference":{"__symbol":2,"members":[]}},{"reference":{"__symbol":3,"members":[]}}]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbol":2,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":3,"members":[]}}],"symbols":[{"__symbol":0,"name":"PipesModule","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":1,"name":"MapToIterable","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/map-to-iterable.d.ts"},{"__symbol":2,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/order-by.d.ts"},{"__symbol":3,"name":"TrustResourceUrl","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/bypass-trust-res-url.d.ts"},{"__symbol":4,"name":"MapToIterable","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":5,"name":"OrderBy","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"},{"__symbol":6,"name":"TrustResourceUrl","filePath":"E:/workspace/github/darkxinyu/ionic-alpha-scroll/src/pipes/pipes.module.d.ts"}]} \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index 17c4bd9..225bf79 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,YAAA,EAAa,MAAO,+BAAA,CAAgC;AAC7D,OAAO,EAAE,WAAA,EAAY,MAAO,sBAAA,CAAuB;AAEnD,cAAc,+BAAA,CAAgC;AAC9C,cAAc,sBAAA,CAAuB;AAGrC;IAAA;IAqBA,CAAC;IApBc,yBAAO,GAArB;QACC,MAAM,CAAC;YACN,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE;SAC1C,CAAC;IACH,CAAC;IAgBF,wBAAC;AAAD,CArBA,AAqBC;;AAfM,4BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxB,OAAO,EAAE;oBACR,YAAY,CAAC,OAAO,EAAE;oBACtB,WAAW,CAAC,OAAO,EAAE;iBACrB;gBACD,OAAO,EAAE;oBACL,YAAY;oBACf,WAAW;iBACX;aACD,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,gCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"index.js","sourceRoot":"","sourcesContent":["\n\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { ScrollModule } from './modules/alpha-scroll.module';\nimport { PipesModule } from './pipes/pipes.module';\n\nexport * from './modules/alpha-scroll.module';\nexport * from './pipes/pipes.module';\n\n\nexport class AlphaScrollModule {\n\tpublic static forRoot(): ModuleWithProviders {\n\t\treturn {\n\t\t\tngModule: AlphaScrollModule, providers: []\n\t\t};\n\t}\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n\timports: [\n\t\tScrollModule.forRoot(),\n\t\tPipesModule.forRoot()\n\t],\n\texports: [\n \tScrollModule,\n\t\tPipesModule\n\t]\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,YAAA,EAAa,MAAO,+BAAA,CAAgC;AAC7D,OAAO,EAAE,WAAA,EAAY,MAAO,sBAAA,CAAuB;AAEnD,cAAc,+BAAA,CAAgC;AAC9C,cAAc,sBAAA,CAAuB;AAGrC;IAAA;IAqBA,CAAC;IApBc,yBAAO,GAArB;QACC,MAAM,CAAC;YACN,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE;SAC1C,CAAC;IACH,CAAC;IAgBF,wBAAC;AAAD,CArBA,AAqBC;;AAfM,4BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxB,OAAO,EAAE;oBACR,YAAY,CAAC,OAAO,EAAE;oBACtB,WAAW,CAAC,OAAO,EAAE;iBACrB;gBACD,OAAO,EAAE;oBACL,YAAY;oBACf,WAAW;iBACX;aACD,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,gCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"index.js","sourceRoot":"","sourcesContent":["\r\n\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { ScrollModule } from './modules/alpha-scroll.module';\r\nimport { PipesModule } from './pipes/pipes.module';\r\n\r\nexport * from './modules/alpha-scroll.module';\r\nexport * from './pipes/pipes.module';\r\n\r\n\r\nexport class AlphaScrollModule {\r\n\tpublic static forRoot(): ModuleWithProviders {\r\n\t\treturn {\r\n\t\t\tngModule: AlphaScrollModule, providers: []\r\n\t\t};\r\n\t}\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\r\n\timports: [\r\n\t\tScrollModule.forRoot(),\r\n\t\tPipesModule.forRoot()\r\n\t],\r\n\texports: [\r\n \tScrollModule,\r\n\t\tPipesModule\r\n\t]\r\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/dist/modules/alpha-scroll.js b/dist/modules/alpha-scroll.js index 0e9f8b3..646618b 100644 --- a/dist/modules/alpha-scroll.js +++ b/dist/modules/alpha-scroll.js @@ -27,13 +27,14 @@ var AlphaScroll = (function () { }; AlphaScroll.prototype.ngOnChanges = function () { var _this = this; - var sortedListData = this.orderBy.transform(this.listData, [this.key]); + // 先对传入的listData排序 避免结果顺序乱掉 + var sortedListData = this.orderBy.transform(_.orderBy(this.listData, function (x) { return x.initial; }), [this.key]); var groupItems = _.groupBy(sortedListData, function (item) { var letter = _.get(item, _this.key); return letter.toUpperCase().charAt(0); }); - //根据头部模板是否为null 添加字符 - if (this.headerTemplate != null || this.headerTemplate != undefined) { + // 根据头部模板是否为null 添加字符 + if (this.headerTemplate != null || this.headerTemplate !== undefined) { groupItems['↑'] = []; } this.sortedItems = this.unwindGroup(groupItems); @@ -62,11 +63,13 @@ var AlphaScroll = (function () { }, false); setTimeout(function () { var min = _this.elementRef.nativeElement.offsetHeight - _this.list.nativeElement.offsetHeight; + if (min > 0) + min = 0; // 解决列表项不满一屏时报 min > max 的问题 _this.alloyTouch = new AlloyTouch({ touch: _this.mainWrapper.nativeElement, vertical: true, target: _this.list.nativeElement, - property: "translateY", + property: 'translateY', min: min, max: 0, sensitivity: 1, @@ -77,7 +80,7 @@ var AlphaScroll = (function () { initialValue: 0 }); var chooseEle = function (evt) { - var closestEle = evt.type == 'touchend' ? document.elementFromPoint(evt.changedTouches[0].pageX, evt.changedTouches[0].pageY) : document.elementFromPoint(evt.targetTouches[0].pageX, evt.targetTouches[0].pageY); + var closestEle = evt.type === 'touchend' ? document.elementFromPoint(evt.changedTouches[0].pageX, evt.changedTouches[0].pageY) : document.elementFromPoint(evt.targetTouches[0].pageX, evt.targetTouches[0].pageY); // // console.log(closestEle); if (closestEle && ['LI', 'A'].indexOf(closestEle.tagName) > -1) { var letter = closestEle.innerText; @@ -94,7 +97,7 @@ var AlphaScroll = (function () { touch: _this.sidebar.nativeElement, vertical: true, target: _this.sidebar.nativeElement, - property: "translateY", + property: 'translateY', min: 0, max: 0, sensitivity: 1, @@ -130,7 +133,7 @@ var AlphaScroll = (function () { }; AlphaScroll.prototype.iterateAlphabet = function (alphabet) { var str; - if (this.headerTemplate != null || this.headerTemplate != undefined) { + if (this.headerTemplate != null || this.headerTemplate !== undefined) { str = '↑ABCDEFGHIJKLMNOPQRSTUVWXYZ'; } else { @@ -150,7 +153,7 @@ export { AlphaScroll }; AlphaScroll.decorators = [ { type: Component, args: [{ selector: 'ion-alpha-scroll', - template: "\n
\n\t \n\t\t\u2191\n\t\t\n\t
\n\t {{item.letter}}\n\t \n\t \n\t
\n\t
\n
\n " + template: "\n
\n \n \u2191\n \n
\n {{item.letter}}\n \n \n
\n
\n
\n " },] }, ]; /** @nocollapse */ diff --git a/dist/modules/alpha-scroll.js.map b/dist/modules/alpha-scroll.js.map index 17e1563..6b8453a 100644 --- a/dist/modules/alpha-scroll.js.map +++ b/dist/modules/alpha-scroll.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/modules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c,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAClC,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IACtC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;CACnC,CAAC","file":"alpha-scroll.js","sourceRoot":"","sourcesContent":["import * as _ from 'lodash';\nimport {\n\tComponent,\n\tElementRef,\n\tInput,\n\tOnChanges,\n\tOnDestroy,\n\tOnInit,\n\tTemplateRef,\n\tViewChild\n} from '@angular/core';\n\nimport { OrderBy } from '../pipes/order-by';\n\nimport * as AlloyTouch from 'alloytouch';\nimport * as Transform from 'alloytouch-transformjs';\n// import { Vibration } from '@ionic-native/vibration';\n\n\nexport class AlphaScroll implements OnInit, OnChanges, OnDestroy {\n\t mainWrapper: ElementRef;\n\t list: ElementRef;\n\t sidebar: ElementRef;\n\t listData: any;\n\t key: string;\n\t itemTemplate: TemplateRef;\n\t currentPageClass: any;\n\t/**\n\t * 头部区域模板\n\t *\n\t * @type {TemplateRef}\n\t * @memberof AlphaScroll\n\t */\n\t headerTemplate: TemplateRef;\n\tprivate letterIndicatorEle: HTMLElement;\n\tprivate indicatorHeight: number;\n\tprivate indicatorWidth: number;\n\tprivate alloyTouch: any;\n\tprivate sidebarTouch: any;\n\tsortedItems: any = [];\n\talphabet: any = [];\n\tconstructor(\n\t\tprivate elementRef: ElementRef,\n\t\tprivate orderBy: OrderBy\n\t) {\n\t\tthis.letterIndicatorEle = document.createElement('div');\n\t\tthis.letterIndicatorEle.className = 'ion-alpha-letter-indicator';\n\t\tlet body = document.getElementsByTagName('body')[0];\n\t\tbody.appendChild(this.letterIndicatorEle);\n\t}\n\tngOnInit() {\n\t\tconsole.log(this.elementRef.nativeElement.offsetHeight);\n\t\tconsole.log(this.list.nativeElement.offsetHeight);\n\t\tsetTimeout(() => {\n\t\t\tthis.indicatorWidth = this.letterIndicatorEle.offsetWidth;\n\t\t\tthis.indicatorHeight = this.letterIndicatorEle.offsetHeight;\n\t\t\tthis.setTouchHandlers();\n\t\t});\n\t}\n\tngOnChanges() {\n\t\tlet sortedListData: Array = this.orderBy.transform(this.listData, [this.key]);\n\t\tlet groupItems: any = _.groupBy(sortedListData, item => {\n\t\t\tlet letter: any = _.get(item, this.key);\n\t\t\treturn letter.toUpperCase().charAt(0);\n\t\t});\n\t\t//根据头部模板是否为null 添加字符\n\t\tif(this.headerTemplate != null || this.headerTemplate != undefined){\n\t\t\tgroupItems['↑'] = [];\n\t\t}\n\t\tthis.sortedItems = this.unwindGroup(groupItems);\n\t\tthis.alphabet = this.iterateAlphabet(groupItems);\n\t}\n\n\tngOnDestroy() {\n\t\tif (this.letterIndicatorEle) {\n\t\t\tthis.letterIndicatorEle.remove();\n\t\t}\n\t}\n\n\tsetAlphaClass(alpha: any): string {\n\t\treturn alpha.isActive ? 'ion-alpha-active' : 'ion-alpha-invalid';\n\t}\n\n\tcalculateDimensionsForSidebar() {\n\t\treturn {\n\t\t\theight: this.mainWrapper.nativeElement.clientHeight + 'px'\n\t\t};\n\t}\n\tprivate setTouchHandlers() {\n\t\tlet sidebarEle: HTMLElement = this.elementRef.nativeElement.querySelector('.ion-alpha-sidebar');\n\t\tif (!sidebarEle) return;\n\t\tthis.elementRef.nativeElement.addEventListener('touchmove', function (evt) {\n\t\t\tevt.preventDefault();\n\t\t}, false);\n\t\tsetTimeout(() => {\n\t\t\tlet min = this.elementRef.nativeElement.offsetHeight - this.list.nativeElement.offsetHeight;\n\t\t\tthis.alloyTouch = new AlloyTouch({\n\t\t\t\ttouch: this.mainWrapper.nativeElement,//反馈触摸的dom\n\t\t\t\tvertical: true,//不必需,默认是true代表监听竖直方向touch\n\t\t\t\ttarget: this.list.nativeElement, //运动的对象\n\t\t\t\tproperty: \"translateY\", //被运动的属性\n\t\t\t\tmin: min,\n\t\t\t\tmax: 0, //不必需,滚动属性的最大值\n\t\t\t\tsensitivity: 1,//不必需,触摸区域的灵敏度,默认值为1,可以为负数\n\t\t\t\tfactor: 1,//不必需,表示触摸位移与被运动属性映射关系,默认值是1\n\t\t\t\tstep: 45,//用于校正到step的整数倍\n\t\t\t\tbindSelf: false,\n\t\t\t\tmaxSpeed: 2, //不必需,触摸反馈的最大速度限制\n\t\t\t\tinitialValue: 0\n\t\t\t});\n\t\t\tlet chooseEle = (evt) => {\n\t\t\t\tlet closestEle: any = evt.type == 'touchend' ? document.elementFromPoint(evt.changedTouches[0].pageX, evt.changedTouches[0].pageY) : document.elementFromPoint(evt.targetTouches[0].pageX, evt.targetTouches[0].pageY);\n\t\t\t\t// // console.log(closestEle);\n\t\t\t\tif (closestEle && ['LI', 'A'].indexOf(closestEle.tagName) > -1) {\n\t\t\t\t\tlet letter = closestEle.innerText;\n\t\t\t\t\tthis.letterIndicatorEle.innerText = letter;\n\t\t\t\t\tthis.letterIndicatorEle.style.visibility = 'visible';\n\t\t\t\t\tlet letterDivider: any = this.elementRef.nativeElement.querySelector(`#scroll-letter-${letter}`);\n\t\t\t\t\tlet letterTop: number = letterDivider.offsetTop;\n\t\t\t\t\tif (letterDivider) {\n\t\t\t\t\t\tthis.alloyTouch.to(-letterTop < min ? min : -letterTop, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.sidebarTouch = new AlloyTouch({\n\t\t\t\ttouch: this.sidebar.nativeElement,//反馈触摸的dom\n\t\t\t\tvertical: true,//不必需,默认是true代表监听竖直方向touch\n\t\t\t\ttarget: this.sidebar.nativeElement, //运动的对象\n\t\t\t\tproperty: \"translateY\", //被运动的属性\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 0, //不必需,滚动属性的最大值\n\t\t\t\tsensitivity: 1,//不必需,触摸区域的灵敏度,默认值为1,可以为负数\n\t\t\t\tfactor: 1,//不必需,表示触摸位移与被运动属性映射关系,默认值是1\n\t\t\t\tstep: 45,//用于校正到step的整数倍\n\t\t\t\tbindSelf: false,\n\t\t\t\tmaxSpeed: 2, //不必需,触摸反馈的最大速度限制\n\t\t\t\tinitialValue: 0,\n\t\t\t\ttouchStart: () => {\n\t\t\t\t\tthis.alloyTouch.stop();\n\t\t\t\t\tthis.letterIndicatorEle.style.top = ((window.innerHeight - this.indicatorHeight) / 2) + 'px';\n\t\t\t\t\tthis.letterIndicatorEle.style.left = ((window.innerWidth - this.indicatorWidth) / 2) + 'px';\n\t\t\t\t},\n\t\t\t\ttouchMove: (evt) => {\n\t\t\t\t\tchooseEle(evt);\n\t\t\t\t},\n\t\t\t\ttouchEnd: () => {\n\t\t\t\t\tthis.letterIndicatorEle.style.visibility = 'hidden';\n\t\t\t\t},\n\t\t\t\ttap: (evt) => {\n\t\t\t\t\tchooseEle(evt);\n\t\t\t\t}\n\t\t\t});\n\t\t\tTransform(this.list.nativeElement, true);\n\t\t});\n\t}\n\tprivate unwindGroup(groupItems: any): Array {\n\t\tlet result: Array = [];\n\t\tfor (let letter in groupItems) {\n\t\t\tresult = result.concat([{ isDivider: true, letter: letter }].concat(groupItems[letter]));\n\t\t}\n\t\treturn result;\n\t}\n\tprivate iterateAlphabet(alphabet: any): Array {\n\t\tlet str: string;\n\t\tif (this.headerTemplate != null || this.headerTemplate != undefined) {\n\t\t\tstr = '↑ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t} else {\n\t\t\tstr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t}\n\t\tlet result: Array = [];\n\t\tfor (let i = 0; i < str.length; i++) {\n\t\t\tlet letter = str.charAt(i);\n\t\t\tlet isActive = alphabet[letter] ? true : false;\n\t\t\tresult.push({ letter: letter, isActive: isActive });\n\t\t}\n\t\treturn result;\n\t}\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n\tselector: 'ion-alpha-scroll',\n\ttemplate: `\n
\n\t \n\t\t\n\t\t\n\t
\n\t {{item.letter}}\n\t \n\t \n\t
\n\t
\n
\n `\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ElementRef, },\n{type: OrderBy, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'mainWrapper': [{ type: ViewChild, args: ['wrapper', ] },],\n'list': [{ type: ViewChild, args: ['list', ] },],\n'sidebar': [{ type: ViewChild, args: ['sidebar', ] },],\n'listData': [{ type: Input },],\n'key': [{ type: Input },],\n'itemTemplate': [{ type: Input },],\n'currentPageClass': [{ type: Input },],\n'headerTemplate': [{ type: Input },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/modules/alpha-scroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAA,MAAO,QAAA,CAAS;AAC5B,OAAO,EACL,SAAS,EACT,UAAU,EACV,KAAK,EAKL,SAAS,EACV,MAAM,eAAA,CAAgB;AAEvB,OAAO,EAAE,OAAA,EAAQ,MAAO,mBAAA,CAAoB;AAE5C,OAAO,KAAK,UAAA,MAAgB,YAAA,CAAa;AACzC,OAAO,KAAK,SAAA,MAAe,wBAAA,CAAyB;AACpD,uDAAuD;AAGvD;IAsBE,qBACU,UAAsB,EACtB,OAAgB;QADhB,eAAU,GAAV,UAAU,CAAY;QACtB,YAAO,GAAP,OAAO,CAAS;QAJ1B,gBAAW,GAAQ,EAAE,CAAC;QACtB,aAAQ,GAAQ,EAAE,CAAC;QAKjB,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,CAAC,kBAAkB,CAAC,SAAS,GAAG,4BAA4B,CAAC;QACjE,IAAI,IAAI,GAAG,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC5C,CAAC;IACD,8BAAQ,GAAR;QAAA,iBAQC;QAPC,OAAO,CAAC,GAAG,CAAC,IAAI,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ACL,CAAC;AACF,kBAAkB;AACX,0BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,UAAU,GAAG;IACpB,EAAC,IAAI,EAAE,OAAO,GAAG;CAChB,EAH6F,CAG7F,CAAC;AACK,0BAAc,GAA2C;IAChE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,SAAS,EAAG,EAAE,EAAE;IAC1D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,MAAM,EAAG,EAAE,EAAE;IAChD,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,SAAS,EAAG,EAAE,EAAE;IACtD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAC9B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IACzB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAClC,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IACtC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;CACnC,CAAC","file":"alpha-scroll.js","sourceRoot":"","sourcesContent":["import * as _ from 'lodash';\r\nimport {\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnChanges,\r\n OnDestroy,\r\n OnInit,\r\n TemplateRef,\r\n ViewChild\r\n} from '@angular/core';\r\n\r\nimport { OrderBy } from '../pipes/order-by';\r\n\r\nimport * as AlloyTouch from 'alloytouch';\r\nimport * as Transform from 'alloytouch-transformjs';\r\n// import { Vibration } from '@ionic-native/vibration';\r\n\r\n\r\nexport class AlphaScroll implements OnInit, OnChanges, OnDestroy {\r\n mainWrapper: ElementRef;\r\n list: ElementRef;\r\n sidebar: ElementRef;\r\n listData: any;\r\n key: string;\r\n itemTemplate: TemplateRef;\r\n currentPageClass: any;\r\n /**\r\n * 头部区域模板\r\n *\r\n * @type {TemplateRef}\r\n * @memberof AlphaScroll\r\n */\r\n headerTemplate: TemplateRef;\r\n private letterIndicatorEle: HTMLElement;\r\n private indicatorHeight: number;\r\n private indicatorWidth: number;\r\n private alloyTouch: any;\r\n private sidebarTouch: any;\r\n sortedItems: any = [];\r\n alphabet: any = [];\r\n constructor(\r\n private elementRef: ElementRef,\r\n private orderBy: OrderBy\r\n ) {\r\n this.letterIndicatorEle = document.createElement('div');\r\n this.letterIndicatorEle.className = 'ion-alpha-letter-indicator';\r\n let body = document.getElementsByTagName('body')[0];\r\n body.appendChild(this.letterIndicatorEle);\r\n }\r\n ngOnInit() {\r\n console.log(this.elementRef.nativeElement.offsetHeight);\r\n console.log(this.list.nativeElement.offsetHeight);\r\n setTimeout(() => {\r\n this.indicatorWidth = this.letterIndicatorEle.offsetWidth;\r\n this.indicatorHeight = this.letterIndicatorEle.offsetHeight;\r\n this.setTouchHandlers();\r\n });\r\n }\r\n ngOnChanges() {\r\n // 先对传入的listData排序 避免结果顺序乱掉\r\n let sortedListData: Array = this.orderBy.transform(_.orderBy(this.listData, x => (x as any).initial), [this.key]);\r\n let groupItems: any = _.groupBy(sortedListData, item => {\r\n let letter: any = _.get(item, this.key);\r\n return letter.toUpperCase().charAt(0);\r\n });\r\n // 根据头部模板是否为null 添加字符\r\n if (this.headerTemplate != null || this.headerTemplate !== undefined) {\r\n groupItems['↑'] = [];\r\n }\r\n this.sortedItems = this.unwindGroup(groupItems);\r\n this.alphabet = this.iterateAlphabet(groupItems);\r\n }\r\n\r\n ngOnDestroy() {\r\n if (this.letterIndicatorEle) {\r\n this.letterIndicatorEle.remove();\r\n }\r\n }\r\n\r\n setAlphaClass(alpha: any): string {\r\n return alpha.isActive ? 'ion-alpha-active' : 'ion-alpha-invalid';\r\n }\r\n\r\n calculateDimensionsForSidebar() {\r\n return {\r\n height: this.mainWrapper.nativeElement.clientHeight + 'px'\r\n };\r\n }\r\n private setTouchHandlers() {\r\n let sidebarEle: HTMLElement = this.elementRef.nativeElement.querySelector('.ion-alpha-sidebar');\r\n if (!sidebarEle) return;\r\n this.elementRef.nativeElement.addEventListener('touchmove', function (evt) {\r\n evt.preventDefault();\r\n }, false);\r\n setTimeout(() => {\r\n let min = this.elementRef.nativeElement.offsetHeight - this.list.nativeElement.offsetHeight;\r\n if (min > 0) min = 0;\t// 解决列表项不满一屏时报 min > max 的问题\r\n this.alloyTouch = new AlloyTouch({\r\n touch: this.mainWrapper.nativeElement, // 反馈触摸的dom\r\n vertical: true, // 不必需,默认是true代表监听竖直方向touch\r\n target: this.list.nativeElement, // 运动的对象\r\n property: 'translateY', // 被运动的属性\r\n min: min,\r\n max: 0, // 不必需,滚动属性的最大值\r\n sensitivity: 1, // 不必需,触摸区域的灵敏度,默认值为1,可以为负数\r\n factor: 1, // 不必需,表示触摸位移与被运动属性映射关系,默认值是1\r\n step: 45, // 用于校正到step的整数倍\r\n bindSelf: false,\r\n maxSpeed: 2, // 不必需,触摸反馈的最大速度限制\r\n initialValue: 0\r\n });\r\n let chooseEle = (evt) => {\r\n let closestEle: any = evt.type === 'touchend' ? document.elementFromPoint(evt.changedTouches[0].pageX, evt.changedTouches[0].pageY) : document.elementFromPoint(evt.targetTouches[0].pageX, evt.targetTouches[0].pageY);\r\n // // console.log(closestEle);\r\n if (closestEle && ['LI', 'A'].indexOf(closestEle.tagName) > -1) {\r\n let letter = closestEle.innerText;\r\n this.letterIndicatorEle.innerText = letter;\r\n this.letterIndicatorEle.style.visibility = 'visible';\r\n let letterDivider: any = this.elementRef.nativeElement.querySelector(`#scroll-letter-${letter}`);\r\n let letterTop: number = letterDivider.offsetTop;\r\n if (letterDivider) {\r\n this.alloyTouch.to(-letterTop < min ? min : -letterTop, 0);\r\n }\r\n }\r\n };\r\n this.sidebarTouch = new AlloyTouch({\r\n touch: this.sidebar.nativeElement, // 反馈触摸的dom\r\n vertical: true, // 不必需,默认是true代表监听竖直方向touch\r\n target: this.sidebar.nativeElement, // 运动的对象\r\n property: 'translateY', // 被运动的属性\r\n min: 0,\r\n max: 0, // 不必需,滚动属性的最大值\r\n sensitivity: 1, // 不必需,触摸区域的灵敏度,默认值为1,可以为负数\r\n factor: 1, // 不必需,表示触摸位移与被运动属性映射关系,默认值是1\r\n step: 45, // 用于校正到step的整数倍\r\n bindSelf: false,\r\n maxSpeed: 2, // 不必需,触摸反馈的最大速度限制\r\n initialValue: 0,\r\n touchStart: () => {\r\n this.alloyTouch.stop();\r\n this.letterIndicatorEle.style.top = ((window.innerHeight - this.indicatorHeight) / 2) + 'px';\r\n this.letterIndicatorEle.style.left = ((window.innerWidth - this.indicatorWidth) / 2) + 'px';\r\n },\r\n touchMove: (evt) => {\r\n chooseEle(evt);\r\n },\r\n touchEnd: () => {\r\n this.letterIndicatorEle.style.visibility = 'hidden';\r\n },\r\n tap: (evt) => {\r\n chooseEle(evt);\r\n }\r\n });\r\n Transform(this.list.nativeElement, true);\r\n });\r\n }\r\n private unwindGroup(groupItems: any): Array {\r\n let result: Array = [];\r\n for (let letter in groupItems) {\r\n result = result.concat([{ isDivider: true, letter: letter }].concat(groupItems[letter]));\r\n }\r\n return result;\r\n }\r\n private iterateAlphabet(alphabet: any): Array {\r\n let str: string;\r\n if (this.headerTemplate != null || this.headerTemplate !== undefined) {\r\n str = '↑ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n } else {\r\n str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n }\r\n let result: Array = [];\r\n for (let i = 0; i < str.length; i++) {\r\n let letter = str.charAt(i);\r\n let isActive = alphabet[letter] ? true : false;\r\n result.push({ letter: letter, isActive: isActive });\r\n }\r\n return result;\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\r\n selector: 'ion-alpha-scroll',\r\n template: `\r\n
\r\n \r\n \r\n \r\n
\r\n {{item.letter}}\r\n \r\n \r\n
\r\n
\r\n
\r\n `\r\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ElementRef, },\n{type: OrderBy, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'mainWrapper': [{ type: ViewChild, args: ['wrapper', ] },],\n'list': [{ type: ViewChild, args: ['list', ] },],\n'sidebar': [{ type: ViewChild, args: ['sidebar', ] },],\n'listData': [{ type: Input },],\n'key': [{ type: Input },],\n'itemTemplate': [{ type: Input },],\n'currentPageClass': [{ type: Input },],\n'headerTemplate': [{ type: Input },],\n};\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/dist/modules/alpha-scroll.metadata.json b/dist/modules/alpha-scroll.metadata.json index 868fa58..dc69bda 100644 --- a/dist/modules/alpha-scroll.metadata.json +++ b/dist/modules/alpha-scroll.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":3,"metadata":{"AlphaScroll":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-alpha-scroll","template":"\n
\n\t \n\t\t\n\t\t\n\t
\n\t {{item.letter}}\n\t \n\t \n\t
\n\t
\n
\n "}]}],"members":{"mainWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["wrapper"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["list"]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["sidebar"]}]}],"listData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"currentPageClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../pipes/order-by","name":"OrderBy"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAlphaClass":[{"__symbolic":"method"}],"calculateDimensionsForSidebar":[{"__symbolic":"method"}],"setTouchHandlers":[{"__symbolic":"method"}],"unwindGroup":[{"__symbolic":"method"}],"iterateAlphabet":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"AlphaScroll":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-alpha-scroll","template":"\n
\n\t \n\t\t\n\t\t\n\t
\n\t {{item.letter}}\n\t \n\t \n\t
\n\t
\n
\n "}]}],"members":{"mainWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["wrapper"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["list"]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["sidebar"]}]}],"listData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"currentPageClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../pipes/order-by","name":"OrderBy"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAlphaClass":[{"__symbolic":"method"}],"calculateDimensionsForSidebar":[{"__symbolic":"method"}],"setTouchHandlers":[{"__symbolic":"method"}],"unwindGroup":[{"__symbolic":"method"}],"iterateAlphabet":[{"__symbolic":"method"}]}}}}] \ No newline at end of file +[{"__symbolic":"module","version":3,"metadata":{"AlphaScroll":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-alpha-scroll","template":"\n
\n \n \n \n
\n {{item.letter}}\n \n \n
\n
\n
\n "}]}],"members":{"mainWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["wrapper"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["list"]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["sidebar"]}]}],"listData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"currentPageClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../pipes/order-by","name":"OrderBy"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAlphaClass":[{"__symbolic":"method"}],"calculateDimensionsForSidebar":[{"__symbolic":"method"}],"setTouchHandlers":[{"__symbolic":"method"}],"unwindGroup":[{"__symbolic":"method"}],"iterateAlphabet":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"AlphaScroll":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-alpha-scroll","template":"\n
\n \n \n \n
\n {{item.letter}}\n \n \n
\n
\n
\n "}]}],"members":{"mainWrapper":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["wrapper"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["list"]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["sidebar"]}]}],"listData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"currentPageClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../pipes/order-by","name":"OrderBy"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAlphaClass":[{"__symbolic":"method"}],"calculateDimensionsForSidebar":[{"__symbolic":"method"}],"setTouchHandlers":[{"__symbolic":"method"}],"unwindGroup":[{"__symbolic":"method"}],"iterateAlphabet":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/modules/alpha-scroll.module.js.map b/dist/modules/alpha-scroll.module.js.map index 769cb5e..ba05792 100644 --- a/dist/modules/alpha-scroll.module.js.map +++ b/dist/modules/alpha-scroll.module.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/modules/alpha-scroll.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,WAAA,EAAY,MAAO,eAAA,CAAgB;AAC5C,OAAO,EAAE,WAAA,EAAY,MAAO,uBAAA,CAAwB;AACpD,OAAO,EAAE,WAAA,EAAY,MAAO,gBAAA,CAAiB;AAG7C;IAAA;IAuBA,CAAC;IAtBe,oBAAO,GAArB;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;SACtC,CAAC;IACJ,CAAC;IAkBH,mBAAC;AAAD,CAvBA,AAuBC;;AAjBM,uBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACvB,OAAO,EAAE;oBACP,WAAW;oBACX,WAAW;iBACZ;gBACD,OAAO,EAAE;oBACP,WAAW;iBACZ;gBACD,YAAY,EAAE;oBACZ,WAAW;iBACZ;aACF,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,2BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"alpha-scroll.module.js","sourceRoot":"","sourcesContent":["import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { IonicModule } from 'ionic-angular';\nimport { PipesModule } from '../pipes/pipes.module';\nimport { AlphaScroll } from './alpha-scroll';\n\n\nexport class ScrollModule {\n public static forRoot(): ModuleWithProviders {\n return {\n ngModule: ScrollModule, providers: []\n };\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [\n IonicModule,\n PipesModule\n ],\n exports: [\n AlphaScroll\n ],\n declarations: [\n AlphaScroll\n ]\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/modules/alpha-scroll.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,WAAA,EAAY,MAAO,eAAA,CAAgB;AAC5C,OAAO,EAAE,WAAA,EAAY,MAAO,uBAAA,CAAwB;AACpD,OAAO,EAAE,WAAA,EAAY,MAAO,gBAAA,CAAiB;AAG7C;IAAA;IAuBA,CAAC;IAtBe,oBAAO,GAArB;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;SACtC,CAAC;IACJ,CAAC;IAkBH,mBAAC;AAAD,CAvBA,AAuBC;;AAjBM,uBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACvB,OAAO,EAAE;oBACP,WAAW;oBACX,WAAW;iBACZ;gBACD,OAAO,EAAE;oBACP,WAAW;iBACZ;gBACD,YAAY,EAAE;oBACZ,WAAW;iBACZ;aACF,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,2BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"alpha-scroll.module.js","sourceRoot":"","sourcesContent":["import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { IonicModule } from 'ionic-angular';\r\nimport { PipesModule } from '../pipes/pipes.module';\r\nimport { AlphaScroll } from './alpha-scroll';\r\n\r\n\r\nexport class ScrollModule {\r\n public static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: ScrollModule, providers: []\r\n };\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\r\n imports: [\r\n IonicModule,\r\n PipesModule\r\n ],\r\n exports: [\r\n AlphaScroll\r\n ],\r\n declarations: [\r\n AlphaScroll\r\n ]\r\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/dist/pipes/bypass-trust-res-url.js.map b/dist/pipes/bypass-trust-res-url.js.map index 4fa99ba..6686ae7 100644 --- a/dist/pipes/bypass-trust-res-url.js.map +++ b/dist/pipes/bypass-trust-res-url.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/pipes/bypass-trust-res-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAY,IAAA,EAAoB,MAAO,eAAA,CAAgB;AAChE,OAAO,EAAE,YAAA,EAAa,MAAO,2BAAA,CAA4B;AAIzD;IACE,0BAAoB,SAAuB;QAAvB,cAAS,GAAT,SAAS,CAAc;IAAI,CAAC;IAEhD,oCAAS,GAAT,UAAU,KAAU;QAAE,eAAe;aAAf,UAAe,EAAf,qBAAe,EAAf,IAAe;YAAf,8BAAe;;QACnC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACX,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAYH,uBAAC;AAAD,CArBA,AAqBC;;AAXM,2BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBACnB,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,IAAI;aACX,EAAG,EAAE;IACN,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,+BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,YAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC","file":"bypass-trust-res-url.js","sourceRoot":"","sourcesContent":["import { Injectable, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n\n\nexport class TrustResourceUrl implements PipeTransform {\n constructor(private sanitizer: DomSanitizer) { }\n\n transform(value: any, ..._args: any[]): any {\n if (!value) {\n return null;\n }\n\n return this.sanitizer.bypassSecurityTrustResourceUrl(value);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Pipe, args: [{\n name: 'trustResourceUrl',\n pure: true\n}, ] },\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: DomSanitizer, },\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/pipes/bypass-trust-res-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAY,IAAA,EAAoB,MAAO,eAAA,CAAgB;AAChE,OAAO,EAAE,YAAA,EAAa,MAAO,2BAAA,CAA4B;AAIzD;IACE,0BAAoB,SAAuB;QAAvB,cAAS,GAAT,SAAS,CAAc;IAAI,CAAC;IAEhD,oCAAS,GAAT,UAAU,KAAU;QAAE,eAAe;aAAf,UAAe,EAAf,qBAAe,EAAf,IAAe;YAAf,8BAAe;;QACnC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACX,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAYH,uBAAC;AAAD,CArBA,AAqBC;;AAXM,2BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBACnB,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,IAAI;aACX,EAAG,EAAE;IACN,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,+BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,YAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC","file":"bypass-trust-res-url.js","sourceRoot":"","sourcesContent":["import { Injectable, Pipe, PipeTransform } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\n\r\n\r\n\r\nexport class TrustResourceUrl implements PipeTransform {\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value: any, ..._args: any[]): any {\r\n if (!value) {\r\n return null;\r\n }\r\n\r\n return this.sanitizer.bypassSecurityTrustResourceUrl(value);\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: Pipe, args: [{\r\n name: 'trustResourceUrl',\r\n pure: true\r\n}, ] },\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: DomSanitizer, },\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/dist/pipes/map-to-iterable.js.map b/dist/pipes/map-to-iterable.js.map index bde1cfb..7733067 100644 --- a/dist/pipes/map-to-iterable.js.map +++ b/dist/pipes/map-to-iterable.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/pipes/map-to-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAY,IAAA,EAAoB,MAAO,eAAA,CAAgB;AAIhE;IAAA;IA0BA,CAAC;IAzBC,iCAAS,GAAT,UAAU,KAAU;QAAE,eAAe;aAAf,UAAe,EAAf,qBAAe,EAAf,IAAe;YAAf,8BAAe;;QACnC,IAAI,MAAM,GAAe,EAAE,CAAC;QAE5B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAClB,GAAG,CAAC,CAAqB,UAAe,EAAf,KAAA,KAAK,CAAC,OAAO,EAAE,EAAf,cAAe,EAAf,IAAe;gBAA/B,IAAA,WAAY,EAAX,WAAG,EAAE,aAAK;gBAClB,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,KAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC;aAC7B;QACH,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,GAAG,CAAC,CAAC,IAAI,KAAG,IAAI,KAAK,CAAC,CAAC,CAAC;gBACtB,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,OAAA,EAAE,KAAK,EAAE,KAAK,CAAC,KAAG,CAAC,EAAE,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC;QAED,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;IAWH,oBAAC;AAAD,CA1BA,AA0BC;;AAVM,wBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBACnB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,IAAI;aACX,EAAG,EAAE;IACN,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,4BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"map-to-iterable.js","sourceRoot":"","sourcesContent":["import { Injectable, Pipe, PipeTransform } from '@angular/core';\n\n\n\nexport class MapToIterable implements PipeTransform {\n transform(value: any, ..._args: any[]): any {\n let result: Array = [];\n\n if (value.entries) {\n for (var [key, value] of value.entries()) {\n result.push({ key, value });\n }\n } else {\n for (let key in value) {\n result.push({ key, value: value[key] });\n }\n }\n\n return result;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Pipe, args: [{\n name: 'mapToIterable',\n pure: true\n}, ] },\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/pipes/map-to-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAY,IAAA,EAAoB,MAAO,eAAA,CAAgB;AAIhE;IAAA;IA0BA,CAAC;IAzBC,iCAAS,GAAT,UAAU,KAAU;QAAE,eAAe;aAAf,UAAe,EAAf,qBAAe,EAAf,IAAe;YAAf,8BAAe;;QACnC,IAAI,MAAM,GAAe,EAAE,CAAC;QAE5B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAClB,GAAG,CAAC,CAAqB,UAAe,EAAf,KAAA,KAAK,CAAC,OAAO,EAAE,EAAf,cAAe,EAAf,IAAe;gBAA/B,IAAA,WAAY,EAAX,WAAG,EAAE,aAAK;gBAClB,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,KAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC;aAC7B;QACH,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,GAAG,CAAC,CAAC,IAAI,KAAG,IAAI,KAAK,CAAC,CAAC,CAAC;gBACtB,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,OAAA,EAAE,KAAK,EAAE,KAAK,CAAC,KAAG,CAAC,EAAE,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC;QAED,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;IAWH,oBAAC;AAAD,CA1BA,AA0BC;;AAVM,wBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBACnB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,IAAI;aACX,EAAG,EAAE;IACN,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,4BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"map-to-iterable.js","sourceRoot":"","sourcesContent":["import { Injectable, Pipe, PipeTransform } from '@angular/core';\r\n\r\n\r\n\r\nexport class MapToIterable implements PipeTransform {\r\n transform(value: any, ..._args: any[]): any {\r\n let result: Array = [];\r\n\r\n if (value.entries) {\r\n for (var [key, value] of value.entries()) {\r\n result.push({ key, value });\r\n }\r\n } else {\r\n for (let key in value) {\r\n result.push({ key, value: value[key] });\r\n }\r\n }\r\n\r\n return result;\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: Pipe, args: [{\r\n name: 'mapToIterable',\r\n pure: true\r\n}, ] },\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/dist/pipes/order-by.js.map b/dist/pipes/order-by.js.map index 3463b04..8c677e3 100644 --- a/dist/pipes/order-by.js.map +++ b/dist/pipes/order-by.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/pipes/order-by.ts"],"names":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6F,CAC7F,CAAC","file":"order-by.js","sourceRoot":"","sourcesContent":["import { Injectable, Pipe, PipeTransform } from '@angular/core';\nimport * as _ from 'lodash';\n\n\n\nexport class OrderBy implements PipeTransform {\n transform(input: any, orderConfigs: string | Array = '+'): any {\n if (!Array.isArray(input)) {\n return input;\n }\n\n if (this.isSingle(orderConfigs)) {\n let orderConfig: string = !Array.isArray(orderConfigs) ? orderConfigs : orderConfigs[0];\n let config = this.parseProperty(orderConfig);\n\n // Basic array\n if (config.property === '') {\n return _.orderBy(input, [], config.order);\n }\n\n return _.orderBy(input, [config.property], [config.order]);\n }\n\n let configs = this.parseProperties(orderConfigs);\n return _.orderBy(input, configs.properties, configs.orders);\n }\n\n private isSingle(orderConfigs: any): boolean {\n return !Array.isArray(orderConfigs) || (Array.isArray(orderConfigs) && orderConfigs.length === 1);\n }\n\n private parseProperty(config: string): { order: string, property: string } {\n let orderChar = config.substr(0, 1);\n let isDesc = orderChar === '-';\n let hasOrder = orderChar || orderChar === '+';\n return { order: isDesc ? 'desc' : 'asc', property: hasOrder ? config.substr(1) : config };\n }\n\n private parseProperties(configs: Array): { orders: Array, properties: Array } {\n let result = { orders: [], properties: [] };\n configs.forEach(configStr => {\n let config = this.parseProperty(configStr);\n result.orders.push(config.order);\n result.properties.push(config.property);\n });\n return result;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Pipe, args: [{\n name: 'orderBy',\n pure: true\n}, ] },\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/pipes/order-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAY,IAAA,EAAoB,MAAO,eAAA,CAAgB;AAChE,OAAO,KAAK,CAAA,MAAO,QAAA,CAAS;AAI5B;IAAA;IAoDA,CAAC;IAnDC,2BAAS,GA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AG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpC,IAAI,MAAM,GAAG,SAAS,KAAK,GAAG,CAAC;QAC/B,IAAI,QAAQ,GAAG,SAAS,IAAI,SAAS,KAAK,GAAG,CAAC;QAC9C,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,CAAC;IAC5F,CAAC;IAEO,iCAAe,GAAvB,UAAwB,OAAsB;QAA9C,iBAQC;QAPC,IAAI,MAAM,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;QAC5C,OAAO,CAAC,OAAO,CAAC,UAAA,SAAS;YACvB,IAAI,MAAM,GAAG,KAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;YAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;IAWH,cAAC;AAAD,CApDA,AAoDC;;AAVM,kBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBACnB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,IAAI;aACX,EAAG,EAAE;IACN,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,sBAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"order-by.js","sourceRoot":"","sourcesContent":["import { Injectable, Pipe, PipeTransform } from '@angular/core';\r\nimport * as _ from 'lodash';\r\n\r\n\r\n\r\nexport class OrderBy implements PipeTransform {\r\n transform(input: any, orderConfigs: string | Array = '+'): any {\r\n if (!Array.isArray(input)) {\r\n return input;\r\n }\r\n\r\n if (this.isSingle(orderConfigs)) {\r\n let orderConfig: string = !Array.isArray(orderConfigs) ? orderConfigs : orderConfigs[0];\r\n let config = this.parseProperty(orderConfig);\r\n\r\n // Basic array\r\n if (config.property === '') {\r\n return _.orderBy(input, [], config.order);\r\n }\r\n\r\n return _.orderBy(input, [config.property], [config.order]);\r\n }\r\n\r\n let configs = this.parseProperties(orderConfigs);\r\n return _.orderBy(input, configs.properties, configs.orders);\r\n }\r\n\r\n private isSingle(orderConfigs: any): boolean {\r\n return !Array.isArray(orderConfigs) || (Array.isArray(orderConfigs) && orderConfigs.length === 1);\r\n }\r\n\r\n private parseProperty(config: string): { order: string, property: string } {\r\n let orderChar = config.substr(0, 1);\r\n let isDesc = orderChar === '-';\r\n let hasOrder = orderChar || orderChar === '+';\r\n return { order: isDesc ? 'desc' : 'asc', property: hasOrder ? config.substr(1) : config };\r\n }\r\n\r\n private parseProperties(configs: Array): { orders: Array, properties: Array } {\r\n let result = { orders: [], properties: [] };\r\n configs.forEach(configStr => {\r\n let config = this.parseProperty(configStr);\r\n result.orders.push(config.order);\r\n result.properties.push(config.property);\r\n });\r\n return result;\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: Pipe, args: [{\r\n name: 'orderBy',\r\n pure: true\r\n}, ] },\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/dist/pipes/pipes.module.js.map b/dist/pipes/pipes.module.js.map index 2d0afb2..e678faf 100644 --- a/dist/pipes/pipes.module.js.map +++ b/dist/pipes/pipes.module.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/pipes/pipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,aAAA,EAAc,MAAO,mBAAA,CAAoB;AAClD,OAAO,EAAE,OAAA,EAAQ,MAAO,YAAA,CAAa;AACrC,OAAO,EAAE,gBAAA,EAAiB,MAAO,wBAAA,CAAyB;AAE1D,OAAO,EAAE,aAAA,EAAc,MAAO,mBAAA,CAAoB;AAClD,OAAO,EAAE,OAAA,EAAQ,MAAO,YAAA,CAAa;AACrC,OAAO,EAAE,gBAAA,EAAiB,MAAO,wBAAA,CAAyB;AAG1D;IAAA;IA4BA,CAAC;IA3Bc,mBAAO,GAArB;QACC,MAAM,CAAC;YACN,QAAQ,EAAE,WAAW;YACrB,SAAS,EAAE;gBACV,aAAa;gBACb,OAAO;gBACP,gBAAgB;aAChB;SACD,CAAC;IACH,CAAC;IAkBF,kBAAC;AAAD,CA5BA,AA4BC;;AAjBM,sBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxB,OAAO,EAAE;oBACR,aAAa;oBACb,OAAO;oBACP,gBAAgB;iBAChB;gBACD,YAAY,EAAE;oBACb,aAAa;oBACb,OAAO;oBACP,gBAAgB;iBAChB;aACD,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"pipes.module.js","sourceRoot":"","sourcesContent":["import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { MapToIterable } from './map-to-iterable';\nimport { OrderBy } from './order-by';\nimport { TrustResourceUrl } from './bypass-trust-res-url';\n\nexport { MapToIterable } from './map-to-iterable';\nexport { OrderBy } from './order-by';\nexport { TrustResourceUrl } from './bypass-trust-res-url';\n\n\nexport class PipesModule {\n\tpublic static forRoot(): ModuleWithProviders {\n\t\treturn {\n\t\t\tngModule: PipesModule,\n\t\t\tproviders: [\n\t\t\t\tMapToIterable,\n\t\t\t\tOrderBy,\n\t\t\t\tTrustResourceUrl\n\t\t\t]\n\t\t};\n\t}\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n\texports: [\n\t\tMapToIterable,\n\t\tOrderBy,\n\t\tTrustResourceUrl\n\t],\n\tdeclarations: [\n\t\tMapToIterable,\n\t\tOrderBy,\n\t\tTrustResourceUrl\n\t]\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/pipes/pipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,aAAA,EAAc,MAAO,mBAAA,CAAoB;AAClD,OAAO,EAAE,OAAA,EAAQ,MAAO,YAAA,CAAa;AACrC,OAAO,EAAE,gBAAA,EAAiB,MAAO,wBAAA,CAAyB;AAE1D,OAAO,EAAE,aAAA,EAAc,MAAO,mBAAA,CAAoB;AAClD,OAAO,EAAE,OAAA,EAAQ,MAAO,YAAA,CAAa;AACrC,OAAO,EAAE,gBAAA,EAAiB,MAAO,wBAAA,CAAyB;AAG1D;IAAA;IA4BA,CAAC;IA3Bc,mBAAO,GAArB;QACC,MAAM,CAAC;YACN,QAAQ,EAAE,WAAW;YACrB,SAAS,EAAE;gBACV,aAAa;gBACb,OAAO;gBACP,gBAAgB;aAChB;SACD,CAAC;IACH,CAAC;IAkBF,kBAAC;AAAD,CA5BA,AA4BC;;AAjBM,sBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxB,OAAO,EAAE;oBACR,aAAa;oBACb,OAAO;oBACP,gBAAgB;iBAChB;gBACD,YAAY,EAAE;oBACb,aAAa;oBACb,OAAO;oBACP,gBAAgB;iBAChB;aACD,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"pipes.module.js","sourceRoot":"","sourcesContent":["import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { MapToIterable } from './map-to-iterable';\r\nimport { OrderBy } from './order-by';\r\nimport { TrustResourceUrl } from './bypass-trust-res-url';\r\n\r\nexport { MapToIterable } from './map-to-iterable';\r\nexport { OrderBy } from './order-by';\r\nexport { TrustResourceUrl } from './bypass-trust-res-url';\r\n\r\n\r\nexport class PipesModule {\r\n\tpublic static forRoot(): ModuleWithProviders {\r\n\t\treturn {\r\n\t\t\tngModule: PipesModule,\r\n\t\t\tproviders: [\r\n\t\t\t\tMapToIterable,\r\n\t\t\t\tOrderBy,\r\n\t\t\t\tTrustResourceUrl\r\n\t\t\t]\r\n\t\t};\r\n\t}\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\r\n\texports: [\r\n\t\tMapToIterable,\r\n\t\tOrderBy,\r\n\t\tTrustResourceUrl\r\n\t],\r\n\tdeclarations: [\r\n\t\tMapToIterable,\r\n\t\tOrderBy,\r\n\t\tTrustResourceUrl\r\n\t]\r\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 77d2a39..66139dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ionic-alpha-scroll", - "version": "0.1.0", + "version": "0.1.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7a086eb..91c4f02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionic-alpha-scroll", - "version": "0.1.5", + "version": "0.1.6", "author": "zwq8299174", "description": "一款基于ionic的索引列表插件,类似于原生APP的通讯录页面、微信的联系人页面、汽车之家的汽车品牌页面等等,首字母进行索引然后滑动。", "main": "dist/index.js", diff --git a/src/modules/alpha-scroll.ts b/src/modules/alpha-scroll.ts index beea6be..9ca6676 100644 --- a/src/modules/alpha-scroll.ts +++ b/src/modules/alpha-scroll.ts @@ -1,13 +1,13 @@ import * as _ from 'lodash'; import { - Component, - ElementRef, - Input, - OnChanges, - OnDestroy, - OnInit, - TemplateRef, - ViewChild + Component, + ElementRef, + Input, + OnChanges, + OnDestroy, + OnInit, + TemplateRef, + ViewChild } from '@angular/core'; import { OrderBy } from '../pipes/order-by'; @@ -17,18 +17,18 @@ import * as Transform from 'alloytouch-transformjs'; // import { Vibration } from '@ionic-native/vibration'; @Component({ - selector: 'ion-alpha-scroll', - template: ` + selector: 'ion-alpha-scroll', + template: `
- - - -
- {{item.letter}} - - -
-
+ + + +
+ {{item.letter}} + + +
+
  • @@ -37,162 +37,163 @@ import * as Transform from 'alloytouch-transformjs';
` }) export class AlphaScroll implements OnInit, OnChanges, OnDestroy { - @ViewChild('wrapper') mainWrapper: ElementRef; - @ViewChild('list') list: ElementRef; - @ViewChild('sidebar') sidebar: ElementRef; - @Input() listData: any; - @Input() key: string; - @Input() itemTemplate: TemplateRef; - @Input() currentPageClass: any; - /** - * 头部区域模板 - * - * @type {TemplateRef} - * @memberof AlphaScroll - */ - @Input() headerTemplate: TemplateRef; - private letterIndicatorEle: HTMLElement; - private indicatorHeight: number; - private indicatorWidth: number; - private alloyTouch: any; - private sidebarTouch: any; - sortedItems: any = []; - alphabet: any = []; - constructor( - private elementRef: ElementRef, - private orderBy: OrderBy - ) { - this.letterIndicatorEle = document.createElement('div'); - this.letterIndicatorEle.className = 'ion-alpha-letter-indicator'; - let body = document.getElementsByTagName('body')[0]; - body.appendChild(this.letterIndicatorEle); - } - ngOnInit() { - console.log(this.elementRef.nativeElement.offsetHeight); - console.log(this.list.nativeElement.offsetHeight); - setTimeout(() => { - this.indicatorWidth = this.letterIndicatorEle.offsetWidth; - this.indicatorHeight = this.letterIndicatorEle.offsetHeight; - this.setTouchHandlers(); - }); - } - ngOnChanges() { - // 先对传入的listData排序 避免结果顺序乱掉 - let sortedListData: Array = this.orderBy.transform(_.orderBy(this.listData, x => x.initial), [this.key]); - let groupItems: any = _.groupBy(sortedListData, item => { - let letter: any = _.get(item, this.key); - return letter.toUpperCase().charAt(0); - }); - //根据头部模板是否为null 添加字符 - if(this.headerTemplate != null || this.headerTemplate != undefined){ - groupItems['↑'] = []; - } - this.sortedItems = this.unwindGroup(groupItems); - this.alphabet = this.iterateAlphabet(groupItems); - } + @ViewChild('wrapper') mainWrapper: ElementRef; + @ViewChild('list') list: ElementRef; + @ViewChild('sidebar') sidebar: ElementRef; + @Input() listData: any; + @Input() key: string; + @Input() itemTemplate: TemplateRef; + @Input() currentPageClass: any; + /** + * 头部区域模板 + * + * @type {TemplateRef} + * @memberof AlphaScroll + */ + @Input() headerTemplate: TemplateRef; + private letterIndicatorEle: HTMLElement; + private indicatorHeight: number; + private indicatorWidth: number; + private alloyTouch: any; + private sidebarTouch: any; + sortedItems: any = []; + alphabet: any = []; + constructor( + private elementRef: ElementRef, + private orderBy: OrderBy + ) { + this.letterIndicatorEle = document.createElement('div'); + this.letterIndicatorEle.className = 'ion-alpha-letter-indicator'; + let body = document.getElementsByTagName('body')[0]; + body.appendChild(this.letterIndicatorEle); + } + ngOnInit() { + console.log(this.elementRef.nativeElement.offsetHeight); + console.log(this.list.nativeElement.offsetHeight); + setTimeout(() => { + this.indicatorWidth = this.letterIndicatorEle.offsetWidth; + this.indicatorHeight = this.letterIndicatorEle.offsetHeight; + this.setTouchHandlers(); + }); + } + ngOnChanges() { + // 先对传入的listData排序 避免结果顺序乱掉 + let sortedListData: Array = this.orderBy.transform(_.orderBy(this.listData, x => (x as any).initial), [this.key]); + let groupItems: any = _.groupBy(sortedListData, item => { + let letter: any = _.get(item, this.key); + return letter.toUpperCase().charAt(0); + }); + // 根据头部模板是否为null 添加字符 + if (this.headerTemplate != null || this.headerTemplate !== undefined) { + groupItems['↑'] = []; + } + this.sortedItems = this.unwindGroup(groupItems); + this.alphabet = this.iterateAlphabet(groupItems); + } - ngOnDestroy() { - if (this.letterIndicatorEle) { - this.letterIndicatorEle.remove(); - } - } + ngOnDestroy() { + if (this.letterIndicatorEle) { + this.letterIndicatorEle.remove(); + } + } - setAlphaClass(alpha: any): string { - return alpha.isActive ? 'ion-alpha-active' : 'ion-alpha-invalid'; - } + setAlphaClass(alpha: any): string { + return alpha.isActive ? 'ion-alpha-active' : 'ion-alpha-invalid'; + } - calculateDimensionsForSidebar() { - return { - height: this.mainWrapper.nativeElement.clientHeight + 'px' - }; - } - private setTouchHandlers() { - let sidebarEle: HTMLElement = this.elementRef.nativeElement.querySelector('.ion-alpha-sidebar'); - if (!sidebarEle) return; - this.elementRef.nativeElement.addEventListener('touchmove', function (evt) { - evt.preventDefault(); - }, false); - setTimeout(() => { - let min = this.elementRef.nativeElement.offsetHeight - this.list.nativeElement.offsetHeight; - this.alloyTouch = new AlloyTouch({ - touch: this.mainWrapper.nativeElement,//反馈触摸的dom - vertical: true,//不必需,默认是true代表监听竖直方向touch - target: this.list.nativeElement, //运动的对象 - property: "translateY", //被运动的属性 - min: min, - max: 0, //不必需,滚动属性的最大值 - sensitivity: 1,//不必需,触摸区域的灵敏度,默认值为1,可以为负数 - factor: 1,//不必需,表示触摸位移与被运动属性映射关系,默认值是1 - step: 45,//用于校正到step的整数倍 - bindSelf: false, - maxSpeed: 2, //不必需,触摸反馈的最大速度限制 - initialValue: 0 - }); - let chooseEle = (evt) => { - let closestEle: any = evt.type == 'touchend' ? document.elementFromPoint(evt.changedTouches[0].pageX, evt.changedTouches[0].pageY) : document.elementFromPoint(evt.targetTouches[0].pageX, evt.targetTouches[0].pageY); - // // console.log(closestEle); - if (closestEle && ['LI', 'A'].indexOf(closestEle.tagName) > -1) { - let letter = closestEle.innerText; - this.letterIndicatorEle.innerText = letter; - this.letterIndicatorEle.style.visibility = 'visible'; - let letterDivider: any = this.elementRef.nativeElement.querySelector(`#scroll-letter-${letter}`); - let letterTop: number = letterDivider.offsetTop; - if (letterDivider) { - this.alloyTouch.to(-letterTop < min ? min : -letterTop, 0); - } - } - } - this.sidebarTouch = new AlloyTouch({ - touch: this.sidebar.nativeElement,//反馈触摸的dom - vertical: true,//不必需,默认是true代表监听竖直方向touch - target: this.sidebar.nativeElement, //运动的对象 - property: "translateY", //被运动的属性 - min: 0, - max: 0, //不必需,滚动属性的最大值 - sensitivity: 1,//不必需,触摸区域的灵敏度,默认值为1,可以为负数 - factor: 1,//不必需,表示触摸位移与被运动属性映射关系,默认值是1 - step: 45,//用于校正到step的整数倍 - bindSelf: false, - maxSpeed: 2, //不必需,触摸反馈的最大速度限制 - initialValue: 0, - touchStart: () => { - this.alloyTouch.stop(); - this.letterIndicatorEle.style.top = ((window.innerHeight - this.indicatorHeight) / 2) + 'px'; - this.letterIndicatorEle.style.left = ((window.innerWidth - this.indicatorWidth) / 2) + 'px'; - }, - touchMove: (evt) => { - chooseEle(evt); - }, - touchEnd: () => { - this.letterIndicatorEle.style.visibility = 'hidden'; - }, - tap: (evt) => { - chooseEle(evt); - } - }); - Transform(this.list.nativeElement, true); - }); - } - private unwindGroup(groupItems: any): Array { - let result: Array = []; - for (let letter in groupItems) { - result = result.concat([{ isDivider: true, letter: letter }].concat(groupItems[letter])); - } - return result; - } - private iterateAlphabet(alphabet: any): Array { - let str: string; - if (this.headerTemplate != null || this.headerTemplate != undefined) { - str = '↑ABCDEFGHIJKLMNOPQRSTUVWXYZ'; - } else { - str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; - } - let result: Array = []; - for (let i = 0; i < str.length; i++) { - let letter = str.charAt(i); - let isActive = alphabet[letter] ? true : false; - result.push({ letter: letter, isActive: isActive }); - } - return result; - } + calculateDimensionsForSidebar() { + return { + height: this.mainWrapper.nativeElement.clientHeight + 'px' + }; + } + private setTouchHandlers() { + let sidebarEle: HTMLElement = this.elementRef.nativeElement.querySelector('.ion-alpha-sidebar'); + if (!sidebarEle) return; + this.elementRef.nativeElement.addEventListener('touchmove', function (evt) { + evt.preventDefault(); + }, false); + setTimeout(() => { + let min = this.elementRef.nativeElement.offsetHeight - this.list.nativeElement.offsetHeight; + if (min > 0) min = 0; // 解决列表项不满一屏时报 min > max 的问题 + this.alloyTouch = new AlloyTouch({ + touch: this.mainWrapper.nativeElement, // 反馈触摸的dom + vertical: true, // 不必需,默认是true代表监听竖直方向touch + target: this.list.nativeElement, // 运动的对象 + property: 'translateY', // 被运动的属性 + min: min, + max: 0, // 不必需,滚动属性的最大值 + sensitivity: 1, // 不必需,触摸区域的灵敏度,默认值为1,可以为负数 + factor: 1, // 不必需,表示触摸位移与被运动属性映射关系,默认值是1 + step: 45, // 用于校正到step的整数倍 + bindSelf: false, + maxSpeed: 2, // 不必需,触摸反馈的最大速度限制 + initialValue: 0 + }); + let chooseEle = (evt) => { + let closestEle: any = evt.type === 'touchend' ? document.elementFromPoint(evt.changedTouches[0].pageX, evt.changedTouches[0].pageY) : document.elementFromPoint(evt.targetTouches[0].pageX, evt.targetTouches[0].pageY); + // // console.log(closestEle); + if (closestEle && ['LI', 'A'].indexOf(closestEle.tagName) > -1) { + let letter = closestEle.innerText; + this.letterIndicatorEle.innerText = letter; + this.letterIndicatorEle.style.visibility = 'visible'; + let letterDivider: any = this.elementRef.nativeElement.querySelector(`#scroll-letter-${letter}`); + let letterTop: number = letterDivider.offsetTop; + if (letterDivider) { + this.alloyTouch.to(-letterTop < min ? min : -letterTop, 0); + } + } + }; + this.sidebarTouch = new AlloyTouch({ + touch: this.sidebar.nativeElement, // 反馈触摸的dom + vertical: true, // 不必需,默认是true代表监听竖直方向touch + target: this.sidebar.nativeElement, // 运动的对象 + property: 'translateY', // 被运动的属性 + min: 0, + max: 0, // 不必需,滚动属性的最大值 + sensitivity: 1, // 不必需,触摸区域的灵敏度,默认值为1,可以为负数 + factor: 1, // 不必需,表示触摸位移与被运动属性映射关系,默认值是1 + step: 45, // 用于校正到step的整数倍 + bindSelf: false, + maxSpeed: 2, // 不必需,触摸反馈的最大速度限制 + initialValue: 0, + touchStart: () => { + this.alloyTouch.stop(); + this.letterIndicatorEle.style.top = ((window.innerHeight - this.indicatorHeight) / 2) + 'px'; + this.letterIndicatorEle.style.left = ((window.innerWidth - this.indicatorWidth) / 2) + 'px'; + }, + touchMove: (evt) => { + chooseEle(evt); + }, + touchEnd: () => { + this.letterIndicatorEle.style.visibility = 'hidden'; + }, + tap: (evt) => { + chooseEle(evt); + } + }); + Transform(this.list.nativeElement, true); + }); + } + private unwindGroup(groupItems: any): Array { + let result: Array = []; + for (let letter in groupItems) { + result = result.concat([{ isDivider: true, letter: letter }].concat(groupItems[letter])); + } + return result; + } + private iterateAlphabet(alphabet: any): Array { + let str: string; + if (this.headerTemplate != null || this.headerTemplate !== undefined) { + str = '↑ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + } else { + str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + } + let result: Array = []; + for (let i = 0; i < str.length; i++) { + let letter = str.charAt(i); + let isActive = alphabet[letter] ? true : false; + result.push({ letter: letter, isActive: isActive }); + } + return result; + } }