@volo/ngx-lepton-x.core 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './lib/abstracts';
1
2
  export * from './lib/lepton-x-core.module';
2
3
  export * from './lib/components/index';
3
4
  export * from './lib/directives/index';
@@ -0,0 +1 @@
1
+ export * from './perfect-scrollbar';
@@ -0,0 +1,15 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import PerfectScrollbar from 'perfect-scrollbar';
4
+ import { LpxPerfectScrollbarOptions } from '../models';
5
+ export declare abstract class LpxPerfectScrollbar {
6
+ protected readonly router: Router;
7
+ protected elementRef: ElementRef<any>;
8
+ protected perfectScrollbar: PerfectScrollbar;
9
+ protected options: LpxPerfectScrollbarOptions | undefined;
10
+ abstract setElement(value: ElementRef<any>): void;
11
+ abstract setOptions(value: LpxPerfectScrollbarOptions): void;
12
+ abstract createScrollbar(): void;
13
+ abstract onResize(): void;
14
+ abstract afterViewInit(): void;
15
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './click-outside';
2
2
  export * from './responsive';
3
+ export * from './perfect-scrollbar.directive';
3
4
  export * from './visible.directive';
@@ -0,0 +1,12 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { LpxPerfectScrollbar } from '../abstracts';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PerfectScrollbarDirective implements AfterViewInit {
5
+ protected readonly elementRef: ElementRef<any>;
6
+ protected readonly lpxPerfectService: LpxPerfectScrollbar;
7
+ set lpxPerfectScrollbarOptions(value: any);
8
+ onResize(): void;
9
+ ngAfterViewInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PerfectScrollbarDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PerfectScrollbarDirective, "[lpxPerfectScrollbar]", never, { "lpxPerfectScrollbarOptions": "lpxPerfectScrollbarOptions"; }, {}, never, never, true, never>;
12
+ }
@@ -1,7 +1,12 @@
1
1
  import { Observable } from 'rxjs';
2
+ import PerfectScrollbar from 'perfect-scrollbar';
2
3
  export declare type VariantSource<T> = Observable<T> | Promise<T> | T;
3
4
  export interface RecursiveArray<T> extends Array<T | RecursiveArray<T>> {
4
5
  [index: number]: RecursiveArray<T> | T;
5
6
  length: number;
6
7
  }
7
8
  export declare type ArrayTypeDeep<T> = T extends Array<infer U> ? ArrayTypeDeep<U> : T;
9
+ export interface LpxPerfectScrollbarOptions extends PerfectScrollbar.Options {
10
+ leftAfterNavigate?: number;
11
+ topAfterNavigate?: number;
12
+ }
@@ -5,3 +5,4 @@ export * from './layout';
5
5
  export * from './translate/index';
6
6
  export * from './auth/index';
7
7
  export * from './local-storage/index';
8
+ export * from './perfect-scrollbar.service';
@@ -0,0 +1,15 @@
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
+ import { LpxPerfectScrollbarOptions } from '../models';
3
+ import { LpxPerfectScrollbar } from '../abstracts';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LpxPerfectScrollbarService extends LpxPerfectScrollbar implements OnDestroy {
6
+ private subscription;
7
+ setElement(value: ElementRef<any>): void;
8
+ setOptions(value: LpxPerfectScrollbarOptions): void;
9
+ createScrollbar(): void;
10
+ onResize(): void;
11
+ afterViewInit(): void;
12
+ ngOnDestroy(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<LpxPerfectScrollbarService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<LpxPerfectScrollbarService>;
15
+ }
@@ -1 +1,2 @@
1
1
  export * from './window.token';
2
+ export * from './perfect-scrollbar.token';
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { LpxPerfectScrollbar } from '../abstracts';
3
+ export declare const LPX_PERFECT_SCROLLBAR: InjectionToken<LpxPerfectScrollbar>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volo/ngx-lepton-x.core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "ts-toolbelt": "^6.15.4"
@@ -30,9 +30,10 @@
30
30
  "sideEffects": false,
31
31
  "peerDependencies": {
32
32
  "@angular/core": "15.0.4",
33
- "@angular/common": "15.0.4",
34
33
  "@angular/router": "15.0.4",
35
34
  "rxjs": "7.5.6",
35
+ "perfect-scrollbar": "1.5.5",
36
+ "@angular/common": "15.0.4",
36
37
  "@angular/forms": "15.0.4",
37
38
  "@angular/platform-browser": "15.0.4",
38
39
  "@angular/platform-browser-dynamic": "15.0.4"