perfect-scrollbar.component.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. /**
  2. * @fileoverview added by tsickle
  3. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  4. */
  5. import { Subject, merge, fromEvent } from 'rxjs';
  6. import { mapTo, takeUntil, distinctUntilChanged } from 'rxjs/operators';
  7. import { PLATFORM_ID } from '@angular/core';
  8. import { isPlatformBrowser } from '@angular/common';
  9. import { NgZone, Inject, Component, Input, Output, EventEmitter, HostBinding, ViewChild, ViewEncapsulation, ChangeDetectorRef } from '@angular/core';
  10. import { PerfectScrollbarDirective } from './perfect-scrollbar.directive';
  11. import { PerfectScrollbarEvents } from './perfect-scrollbar.interfaces';
  12. var PerfectScrollbarComponent = /** @class */ (function () {
  13. function PerfectScrollbarComponent(zone, cdRef, platformId) {
  14. this.zone = zone;
  15. this.cdRef = cdRef;
  16. this.platformId = platformId;
  17. this.states = {};
  18. this.indicatorX = false;
  19. this.indicatorY = false;
  20. this.interaction = false;
  21. this.scrollPositionX = 0;
  22. this.scrollPositionY = 0;
  23. this.scrollDirectionX = 0;
  24. this.scrollDirectionY = 0;
  25. this.usePropagationX = false;
  26. this.usePropagationY = false;
  27. this.allowPropagationX = false;
  28. this.allowPropagationY = false;
  29. this.stateTimeout = null;
  30. this.ngDestroy = new Subject();
  31. this.stateUpdate = new Subject();
  32. this.disabled = false;
  33. this.usePSClass = true;
  34. this.autoPropagation = false;
  35. this.scrollIndicators = false;
  36. this.psScrollY = new EventEmitter();
  37. this.psScrollX = new EventEmitter();
  38. this.psScrollUp = new EventEmitter();
  39. this.psScrollDown = new EventEmitter();
  40. this.psScrollLeft = new EventEmitter();
  41. this.psScrollRight = new EventEmitter();
  42. this.psYReachEnd = new EventEmitter();
  43. this.psYReachStart = new EventEmitter();
  44. this.psXReachEnd = new EventEmitter();
  45. this.psXReachStart = new EventEmitter();
  46. }
  47. /**
  48. * @return {?}
  49. */
  50. PerfectScrollbarComponent.prototype.ngOnInit = /**
  51. * @return {?}
  52. */
  53. function () {
  54. var _this = this;
  55. if (isPlatformBrowser(this.platformId)) {
  56. this.stateUpdate
  57. .pipe(takeUntil(this.ngDestroy), distinctUntilChanged((/**
  58. * @param {?} a
  59. * @param {?} b
  60. * @return {?}
  61. */
  62. function (a, b) { return (a === b && !_this.stateTimeout); })))
  63. .subscribe((/**
  64. * @param {?} state
  65. * @return {?}
  66. */
  67. function (state) {
  68. if (_this.stateTimeout && typeof window !== 'undefined') {
  69. window.clearTimeout(_this.stateTimeout);
  70. _this.stateTimeout = null;
  71. }
  72. if (state === 'x' || state === 'y') {
  73. _this.interaction = false;
  74. if (state === 'x') {
  75. _this.indicatorX = false;
  76. _this.states.left = false;
  77. _this.states.right = false;
  78. if (_this.autoPropagation && _this.usePropagationX) {
  79. _this.allowPropagationX = false;
  80. }
  81. }
  82. else if (state === 'y') {
  83. _this.indicatorY = false;
  84. _this.states.top = false;
  85. _this.states.bottom = false;
  86. if (_this.autoPropagation && _this.usePropagationY) {
  87. _this.allowPropagationY = false;
  88. }
  89. }
  90. }
  91. else {
  92. if (state === 'left' || state === 'right') {
  93. _this.states.left = false;
  94. _this.states.right = false;
  95. _this.states[state] = true;
  96. if (_this.autoPropagation && _this.usePropagationX) {
  97. _this.indicatorX = true;
  98. }
  99. }
  100. else if (state === 'top' || state === 'bottom') {
  101. _this.states.top = false;
  102. _this.states.bottom = false;
  103. _this.states[state] = true;
  104. if (_this.autoPropagation && _this.usePropagationY) {
  105. _this.indicatorY = true;
  106. }
  107. }
  108. if (_this.autoPropagation && typeof window !== 'undefined') {
  109. _this.stateTimeout = window.setTimeout((/**
  110. * @return {?}
  111. */
  112. function () {
  113. _this.indicatorX = false;
  114. _this.indicatorY = false;
  115. _this.stateTimeout = null;
  116. if (_this.interaction && (_this.states.left || _this.states.right)) {
  117. _this.allowPropagationX = true;
  118. }
  119. if (_this.interaction && (_this.states.top || _this.states.bottom)) {
  120. _this.allowPropagationY = true;
  121. }
  122. _this.cdRef.markForCheck();
  123. }), 500);
  124. }
  125. }
  126. _this.cdRef.markForCheck();
  127. _this.cdRef.detectChanges();
  128. }));
  129. this.zone.runOutsideAngular((/**
  130. * @return {?}
  131. */
  132. function () {
  133. if (_this.directiveRef) {
  134. /** @type {?} */
  135. var element = _this.directiveRef.elementRef.nativeElement;
  136. fromEvent(element, 'wheel')
  137. .pipe(takeUntil(_this.ngDestroy))
  138. .subscribe((/**
  139. * @param {?} event
  140. * @return {?}
  141. */
  142. function (event) {
  143. if (!_this.disabled && _this.autoPropagation) {
  144. /** @type {?} */
  145. var scrollDeltaX = event.deltaX;
  146. /** @type {?} */
  147. var scrollDeltaY = event.deltaY;
  148. _this.checkPropagation(event, scrollDeltaX, scrollDeltaY);
  149. }
  150. }));
  151. fromEvent(element, 'touchmove')
  152. .pipe(takeUntil(_this.ngDestroy))
  153. .subscribe((/**
  154. * @param {?} event
  155. * @return {?}
  156. */
  157. function (event) {
  158. if (!_this.disabled && _this.autoPropagation) {
  159. /** @type {?} */
  160. var scrollPositionX = event.touches[0].clientX;
  161. /** @type {?} */
  162. var scrollPositionY = event.touches[0].clientY;
  163. /** @type {?} */
  164. var scrollDeltaX = scrollPositionX - _this.scrollPositionX;
  165. /** @type {?} */
  166. var scrollDeltaY = scrollPositionY - _this.scrollPositionY;
  167. _this.checkPropagation(event, scrollDeltaX, scrollDeltaY);
  168. _this.scrollPositionX = scrollPositionX;
  169. _this.scrollPositionY = scrollPositionY;
  170. }
  171. }));
  172. merge(fromEvent(element, 'ps-scroll-x')
  173. .pipe(mapTo('x')), fromEvent(element, 'ps-scroll-y')
  174. .pipe(mapTo('y')), fromEvent(element, 'ps-x-reach-end')
  175. .pipe(mapTo('right')), fromEvent(element, 'ps-y-reach-end')
  176. .pipe(mapTo('bottom')), fromEvent(element, 'ps-x-reach-start')
  177. .pipe(mapTo('left')), fromEvent(element, 'ps-y-reach-start')
  178. .pipe(mapTo('top')))
  179. .pipe(takeUntil(_this.ngDestroy))
  180. .subscribe((/**
  181. * @param {?} state
  182. * @return {?}
  183. */
  184. function (state) {
  185. if (!_this.disabled && (_this.autoPropagation || _this.scrollIndicators)) {
  186. _this.stateUpdate.next(state);
  187. }
  188. }));
  189. }
  190. }));
  191. window.setTimeout((/**
  192. * @return {?}
  193. */
  194. function () {
  195. PerfectScrollbarEvents.forEach((/**
  196. * @param {?} eventName
  197. * @return {?}
  198. */
  199. function (eventName) {
  200. if (_this.directiveRef) {
  201. _this.directiveRef[eventName] = _this[eventName];
  202. }
  203. }));
  204. }), 0);
  205. }
  206. };
  207. /**
  208. * @return {?}
  209. */
  210. PerfectScrollbarComponent.prototype.ngOnDestroy = /**
  211. * @return {?}
  212. */
  213. function () {
  214. if (isPlatformBrowser(this.platformId)) {
  215. this.ngDestroy.next();
  216. this.ngDestroy.unsubscribe();
  217. if (this.stateTimeout && typeof window !== 'undefined') {
  218. window.clearTimeout(this.stateTimeout);
  219. }
  220. }
  221. };
  222. /**
  223. * @return {?}
  224. */
  225. PerfectScrollbarComponent.prototype.ngDoCheck = /**
  226. * @return {?}
  227. */
  228. function () {
  229. if (isPlatformBrowser(this.platformId)) {
  230. if (!this.disabled && this.autoPropagation && this.directiveRef) {
  231. /** @type {?} */
  232. var element = this.directiveRef.elementRef.nativeElement;
  233. this.usePropagationX = element.classList.contains('ps--active-x');
  234. this.usePropagationY = element.classList.contains('ps--active-y');
  235. }
  236. }
  237. };
  238. /**
  239. * @private
  240. * @param {?} event
  241. * @param {?} deltaX
  242. * @param {?} deltaY
  243. * @return {?}
  244. */
  245. PerfectScrollbarComponent.prototype.checkPropagation = /**
  246. * @private
  247. * @param {?} event
  248. * @param {?} deltaX
  249. * @param {?} deltaY
  250. * @return {?}
  251. */
  252. function (event, deltaX, deltaY) {
  253. this.interaction = true;
  254. /** @type {?} */
  255. var scrollDirectionX = (deltaX < 0) ? -1 : 1;
  256. /** @type {?} */
  257. var scrollDirectionY = (deltaY < 0) ? -1 : 1;
  258. if ((this.usePropagationX && this.usePropagationY) ||
  259. (this.usePropagationX && (!this.allowPropagationX ||
  260. (this.scrollDirectionX !== scrollDirectionX))) ||
  261. (this.usePropagationY && (!this.allowPropagationY ||
  262. (this.scrollDirectionY !== scrollDirectionY)))) {
  263. event.preventDefault();
  264. event.stopPropagation();
  265. }
  266. if (!!deltaX) {
  267. this.scrollDirectionX = scrollDirectionX;
  268. }
  269. if (!!deltaY) {
  270. this.scrollDirectionY = scrollDirectionY;
  271. }
  272. this.stateUpdate.next('interaction');
  273. this.cdRef.detectChanges();
  274. };
  275. PerfectScrollbarComponent.decorators = [
  276. { type: Component, args: [{
  277. selector: 'perfect-scrollbar',
  278. exportAs: 'ngxPerfectScrollbar',
  279. template: "<div style=\"position: static;\" [class.ps]=\"usePSClass\" [perfectScrollbar]=\"config\" [disabled]=\"disabled\">\n <div class=\"ps-content\">\n <ng-content></ng-content>\n </div>\n\n <div *ngIf=\"scrollIndicators\" class=\"ps-overlay\" [class.ps-at-top]=\"states.top\" [class.ps-at-left]=\"states.left\" [class.ps-at-right]=\"states.right\" [class.ps-at-bottom]=\"states.bottom\">\n <div class=\"ps-indicator-top\" [class.ps-indicator-show]=\"indicatorY && interaction\"></div>\n <div class=\"ps-indicator-left\" [class.ps-indicator-show]=\"indicatorX && interaction\"></div>\n <div class=\"ps-indicator-right\" [class.ps-indicator-show]=\"indicatorX && interaction\"></div>\n <div class=\"ps-indicator-bottom\" [class.ps-indicator-show]=\"indicatorY && interaction\"></div>\n </div>\n</div>\n",
  280. encapsulation: ViewEncapsulation.None,
  281. styles: ["/*\n TODO: Remove important flags after this bug if fixed:\n https://github.com/angular/flex-layout/issues/381\n*/\n\nperfect-scrollbar {\n position: relative;\n\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n}\n\nperfect-scrollbar[hidden] {\n display: none;\n}\n\nperfect-scrollbar[fxflex] {\n display: flex;\n flex-direction: column;\n height: auto;\n min-width: 0;\n min-height: 0;\n\n -webkit-box-direction: column;\n -webkit-box-orient: column;\n}\n\nperfect-scrollbar[fxflex] > .ps {\n -ms-flex: 1 1 auto;\n\n flex: 1 1 auto;\n width: auto;\n height: auto;\n min-width: 0;\n min-height: 0;\n\n -webkit-box-flex: 1;\n}\n\nperfect-scrollbar[fxlayout] > .ps,\nperfect-scrollbar[fxlayout] > .ps > .ps-content {\n display: flex;\n\n -ms-flex: 1 1 auto;\n\n flex: 1 1 auto;\n flex-direction: inherit;\n align-items: inherit;\n align-content: inherit;\n justify-content: inherit;\n width: 100%;\n height: 100%;\n\n -webkit-box-align: inherit;\n -webkit-box-direction: inherit;\n -webkit-box-flex: 1;\n -webkit-box-orient: inherit;\n -webkit-box-pack: inherit;\n}\n\nperfect-scrollbar[fxlayout='row'] > .ps,\nperfect-scrollbar[fxlayout='row'] > .ps > .ps-content, {\n flex-direction: row !important;\n\n -webkit-box-direction: row !important;\n -webkit-box-orient: row !important;\n}\n\nperfect-scrollbar[fxlayout='column'] > .ps,\nperfect-scrollbar[fxlayout='column'] > .ps > .ps-content {\n flex-direction: column !important;\n\n -webkit-box-direction: column !important;\n -webkit-box-orient: column !important;\n}\n\nperfect-scrollbar > .ps {\n position: static;\n\n display: block;\n width: inherit;\n height: inherit;\n max-width: inherit;\n max-height: inherit;\n}\n\nperfect-scrollbar > .ps textarea {\n -ms-overflow-style: scrollbar;\n}\n\nperfect-scrollbar > .ps > .ps-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n display: block;\n overflow: hidden;\n\n pointer-events: none;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right,\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\n position: absolute;\n\n opacity: 0;\n\n transition: opacity 300ms ease-in-out;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\n left: 0;\n\n min-width: 100%;\n min-height: 24px;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {\n top: 0;\n\n min-width: 24px;\n min-height: 100%;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top {\n top: 0;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left {\n left: 0;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {\n right: 0;\n}\n\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\n bottom: 0;\n}\n\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y {\n top: 0 !important;\n right: 0 !important;\n left: auto !important;\n\n width: 10px;\n\n cursor: default;\n\n transition:\n width 200ms linear,\n opacity 200ms linear,\n background-color 200ms linear;\n}\n\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y:hover,\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y.ps--clicking {\n width: 15px;\n}\n\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x {\n top: auto !important;\n bottom: 0 !important;\n left: 0 !important;\n\n height: 10px;\n\n cursor: default;\n\n transition:\n height 200ms linear,\n opacity 200ms linear,\n background-color 200ms linear;\n}\n\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x:hover,\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x.ps--clicking {\n height: 15px;\n}\n\nperfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-y {\n margin: 0 0 10px;\n}\n\nperfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-x {\n margin: 0 10px 0 0;\n}\n\nperfect-scrollbar > .ps.ps--scrolling-y > .ps__rail-y,\nperfect-scrollbar > .ps.ps--scrolling-x > .ps__rail-x {\n opacity: 0.9;\n\n background-color: #eee;\n}\n\nperfect-scrollbar.ps-show-always > .ps.ps--active-y > .ps__rail-y,\nperfect-scrollbar.ps-show-always > .ps.ps--active-x > .ps__rail-x {\n opacity: 0.6;\n}\n\nperfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-top) .ps-indicator-top {\n opacity: 1;\n\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom {\n opacity: 1;\n\n background: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-left) .ps-indicator-left {\n opacity: 1;\n\n background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-right) .ps-indicator-right {\n opacity: 1;\n\n background: linear-gradient(to left, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top {\n background: linear-gradient(to bottom, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom {\n background: linear-gradient(to top, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left {\n background: linear-gradient(to right, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right {\n background: linear-gradient(to left, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\n}\n\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show {\n opacity: 1;\n}\n", "/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n"]
  282. }] }
  283. ];
  284. /** @nocollapse */
  285. PerfectScrollbarComponent.ctorParameters = function () { return [
  286. { type: NgZone },
  287. { type: ChangeDetectorRef },
  288. { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
  289. ]; };
  290. PerfectScrollbarComponent.propDecorators = {
  291. disabled: [{ type: Input }],
  292. usePSClass: [{ type: Input }],
  293. autoPropagation: [{ type: HostBinding, args: ['class.ps-show-limits',] }, { type: Input }],
  294. scrollIndicators: [{ type: HostBinding, args: ['class.ps-show-active',] }, { type: Input }],
  295. config: [{ type: Input }],
  296. psScrollY: [{ type: Output }],
  297. psScrollX: [{ type: Output }],
  298. psScrollUp: [{ type: Output }],
  299. psScrollDown: [{ type: Output }],
  300. psScrollLeft: [{ type: Output }],
  301. psScrollRight: [{ type: Output }],
  302. psYReachEnd: [{ type: Output }],
  303. psYReachStart: [{ type: Output }],
  304. psXReachEnd: [{ type: Output }],
  305. psXReachStart: [{ type: Output }],
  306. directiveRef: [{ type: ViewChild, args: [PerfectScrollbarDirective, { static: true },] }]
  307. };
  308. return PerfectScrollbarComponent;
  309. }());
  310. export { PerfectScrollbarComponent };
  311. if (false) {
  312. /** @type {?} */
  313. PerfectScrollbarComponent.prototype.states;
  314. /** @type {?} */
  315. PerfectScrollbarComponent.prototype.indicatorX;
  316. /** @type {?} */
  317. PerfectScrollbarComponent.prototype.indicatorY;
  318. /** @type {?} */
  319. PerfectScrollbarComponent.prototype.interaction;
  320. /**
  321. * @type {?}
  322. * @private
  323. */
  324. PerfectScrollbarComponent.prototype.scrollPositionX;
  325. /**
  326. * @type {?}
  327. * @private
  328. */
  329. PerfectScrollbarComponent.prototype.scrollPositionY;
  330. /**
  331. * @type {?}
  332. * @private
  333. */
  334. PerfectScrollbarComponent.prototype.scrollDirectionX;
  335. /**
  336. * @type {?}
  337. * @private
  338. */
  339. PerfectScrollbarComponent.prototype.scrollDirectionY;
  340. /**
  341. * @type {?}
  342. * @private
  343. */
  344. PerfectScrollbarComponent.prototype.usePropagationX;
  345. /**
  346. * @type {?}
  347. * @private
  348. */
  349. PerfectScrollbarComponent.prototype.usePropagationY;
  350. /**
  351. * @type {?}
  352. * @private
  353. */
  354. PerfectScrollbarComponent.prototype.allowPropagationX;
  355. /**
  356. * @type {?}
  357. * @private
  358. */
  359. PerfectScrollbarComponent.prototype.allowPropagationY;
  360. /**
  361. * @type {?}
  362. * @private
  363. */
  364. PerfectScrollbarComponent.prototype.stateTimeout;
  365. /**
  366. * @type {?}
  367. * @private
  368. */
  369. PerfectScrollbarComponent.prototype.ngDestroy;
  370. /**
  371. * @type {?}
  372. * @private
  373. */
  374. PerfectScrollbarComponent.prototype.stateUpdate;
  375. /** @type {?} */
  376. PerfectScrollbarComponent.prototype.disabled;
  377. /** @type {?} */
  378. PerfectScrollbarComponent.prototype.usePSClass;
  379. /** @type {?} */
  380. PerfectScrollbarComponent.prototype.autoPropagation;
  381. /** @type {?} */
  382. PerfectScrollbarComponent.prototype.scrollIndicators;
  383. /** @type {?} */
  384. PerfectScrollbarComponent.prototype.config;
  385. /** @type {?} */
  386. PerfectScrollbarComponent.prototype.psScrollY;
  387. /** @type {?} */
  388. PerfectScrollbarComponent.prototype.psScrollX;
  389. /** @type {?} */
  390. PerfectScrollbarComponent.prototype.psScrollUp;
  391. /** @type {?} */
  392. PerfectScrollbarComponent.prototype.psScrollDown;
  393. /** @type {?} */
  394. PerfectScrollbarComponent.prototype.psScrollLeft;
  395. /** @type {?} */
  396. PerfectScrollbarComponent.prototype.psScrollRight;
  397. /** @type {?} */
  398. PerfectScrollbarComponent.prototype.psYReachEnd;
  399. /** @type {?} */
  400. PerfectScrollbarComponent.prototype.psYReachStart;
  401. /** @type {?} */
  402. PerfectScrollbarComponent.prototype.psXReachEnd;
  403. /** @type {?} */
  404. PerfectScrollbarComponent.prototype.psXReachStart;
  405. /** @type {?} */
  406. PerfectScrollbarComponent.prototype.directiveRef;
  407. /**
  408. * @type {?}
  409. * @private
  410. */
  411. PerfectScrollbarComponent.prototype.zone;
  412. /**
  413. * @type {?}
  414. * @private
  415. */
  416. PerfectScrollbarComponent.prototype.cdRef;
  417. /**
  418. * @type {?}
  419. * @private
  420. */
  421. PerfectScrollbarComponent.prototype.platformId;
  422. }
  423. //# sourceMappingURL=perfect-scrollbar.component.js.map