@ts-core/angular 11.0.81 → 11.0.85

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.
@@ -7,7 +7,7 @@ export declare abstract class LoginBaseService<E = any, U = any, V = any> extend
7
7
  protected _loginData: V;
8
8
  protected _isLoggedIn: boolean;
9
9
  constructor();
10
- protected loginByParam(param?: any): Promise<U>;
10
+ protected loginByParam<T = any>(param?: T): Promise<U>;
11
11
  protected loginByFunction(sidReturnFunction: (...params: any[]) => Promise<U>): Promise<U>;
12
12
  protected loginBySid(): Promise<void>;
13
13
  protected reset(): void;
@@ -17,13 +17,13 @@ export declare abstract class LoginBaseService<E = any, U = any, V = any> extend
17
17
  protected abstract getSavedSid(): string;
18
18
  protected abstract parseLoginResponse(response: U): void;
19
19
  protected parseLoginErrorResponse(error: ExtendedError): void;
20
+ protected parseLogoutErrorResponse(error: ExtendedError): void;
20
21
  protected parseLoginSidResponse(response: V): void;
21
22
  protected parseLoginSidErrorResponse(error: ExtendedError): void;
22
- abstract login(param: any): void;
23
- abstract registration(param: any): void;
23
+ abstract login<T = any>(param: T): void;
24
24
  loginByResponse(param: U): Promise<void>;
25
25
  tryLoginBySid(): boolean;
26
- logout(): void;
26
+ logout(): Promise<void>;
27
27
  isCanLoginWithSid(): boolean;
28
28
  destroy(): void;
29
29
  get logined(): Observable<V>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "11.0.81",
3
+ "version": "11.0.85",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "bundles/ts-core-angular.umd.js",
6
6
  "author": {
@@ -21,8 +21,8 @@
21
21
  "@angular/platform-browser": "^11.2.14",
22
22
  "@angular/platform-browser-dynamic": "^11.2.14",
23
23
  "@angular/router": "^11.2.14",
24
- "@ts-core/common": "^1.0.184",
25
- "@ts-core/frontend": "^1.0.43",
24
+ "@ts-core/common": "^1.0.185",
25
+ "@ts-core/frontend": "^1.0.44",
26
26
  "@types/numeral": "0.0.25",
27
27
  "bootstrap": "^4.6.1",
28
28
  "css-element-queries": "1.2.0",
@@ -1,13 +1,14 @@
1
1
  import { ActivatedRoute, ActivatedRouteSnapshot, NavigationExtras, Router, UrlTree } from '@angular/router';
2
2
  import { Loadable, LoadableStatus } from '@ts-core/common';
3
3
  import { NativeWindowService } from '@ts-core/frontend/service/NativeWindowService';
4
- export declare class RouterBaseService extends Loadable<void, void> {
4
+ export declare class RouterBaseService extends Loadable<void, RouterBaseServiceEventData> {
5
5
  protected _router: Router;
6
6
  protected window: NativeWindowService;
7
7
  protected params: Map<string, string>;
8
8
  protected extrasToApply: NavigationExtras;
9
9
  protected isNeedUpdateExtras: boolean;
10
10
  protected _lastUrl: string;
11
+ protected _previousUrl: string;
11
12
  constructor(_router: Router, window: NativeWindowService);
12
13
  protected initializeObservers(): void;
13
14
  protected applyExtras(extras?: NavigationExtras): Promise<boolean>;
@@ -29,7 +30,14 @@ export declare class RouterBaseService extends Loadable<void, void> {
29
30
  getFragment(snapshot: ActivatedRoute | ActivatedRouteSnapshot, defaultValue?: string): string;
30
31
  setFragment(value: string): Promise<boolean>;
31
32
  get url(): string;
32
- get lastUrl(): string;
33
33
  get urlTree(): UrlTree;
34
+ get lastUrl(): string;
35
+ get lastUrlTree(): UrlTree;
36
+ get previousUrl(): string;
37
+ get previousUrlTree(): UrlTree;
34
38
  get router(): Router;
35
39
  }
40
+ export interface RouterBaseServiceEventData {
41
+ url: string;
42
+ previousUrl: string;
43
+ }
@@ -92,10 +92,13 @@
92
92
  border-top-left-radius: $border-radius !important;
93
93
  border-bottom-left-radius: $border-radius !important;
94
94
  }
95
+
96
+ .rounded-circle {
97
+ border-radius: 50% !important;
98
+ }
95
99
  }
96
100
 
97
101
  @mixin vi-mat-theme-bootstrap-border-mixin($infix, $width, $color) {
98
-
99
102
  // Transparent
100
103
  .border-transparent {
101
104
  border-width: $width;
@@ -87,7 +87,7 @@
87
87
  overflow: visible !important;
88
88
  min-height: inherit !important;
89
89
  max-height: inherit;
90
-
90
+
91
91
  & > :first-child {
92
92
  height: 100%;
93
93
  box-sizing: border-box;
@@ -95,7 +95,7 @@
95
95
  @include vertical-scroll-only();
96
96
  }
97
97
 
98
- vi-bottom-sheet-close {
98
+ vi-bottom-sheet-close-element {
99
99
  top: -20px;
100
100
  right: -20px;
101
101
  }
@@ -444,7 +444,6 @@
444
444
  }
445
445
  }
446
446
 
447
-
448
447
  $thumb-color: rgba(0, 0, 0, 0.15);
449
448
 
450
449
  @if map-get($theme, is-dark) {
@@ -1,8 +1,8 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { ThemeService } from '@ts-core/frontend/theme';
2
+ import { ThemeAssetService, ThemeService } from '@ts-core/frontend/theme';
3
3
  import { ThemeAssetDirective } from './ThemeAssetDirective';
4
4
  export declare class ThemeAssetBackgroundDirective extends ThemeAssetDirective {
5
- constructor(element: ElementRef, theme: ThemeService);
5
+ constructor(element: ElementRef, theme: ThemeService, themeAsset: ThemeAssetService);
6
6
  protected commitSourceProperties(): void;
7
7
  protected removeSourceProperties(): void;
8
8
  }
@@ -1,8 +1,9 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { Destroyable } from '@ts-core/common';
3
- import { Theme, ThemeService } from '@ts-core/frontend/theme';
3
+ import { Theme, ThemeAssetService, ThemeService } from '@ts-core/frontend/theme';
4
4
  export declare abstract class ThemeAssetDirective<T extends HTMLElement = HTMLElement> extends Destroyable {
5
5
  protected theme: ThemeService;
6
+ protected themeAsset: ThemeAssetService;
6
7
  protected _name: string;
7
8
  protected _extension: string;
8
9
  protected _isFile: boolean;
@@ -10,10 +11,11 @@ export declare abstract class ThemeAssetDirective<T extends HTMLElement = HTMLEl
10
11
  protected _isVideo: boolean;
11
12
  protected _isSound: boolean;
12
13
  protected _isBackground: boolean;
14
+ protected _isIgnoreTheme: boolean;
13
15
  protected source: string;
14
16
  protected element: T;
15
17
  private isTriedThemeDefault;
16
- constructor(element: ElementRef, theme: ThemeService);
18
+ constructor(element: ElementRef, theme: ThemeService, themeAsset: ThemeAssetService);
17
19
  protected getSource(id: string): string;
18
20
  private errorLoadingHandler;
19
21
  protected errorHandler(event: ErrorEvent): void;
@@ -33,6 +35,8 @@ export declare abstract class ThemeAssetDirective<T extends HTMLElement = HTMLEl
33
35
  get isImage(): boolean;
34
36
  set isBackground(value: boolean);
35
37
  get isBackground(): boolean;
38
+ set isIgnoreTheme(value: boolean);
39
+ get isIgnoreTheme(): boolean;
36
40
  get name(): string;
37
41
  set name(value: string);
38
42
  get extension(): string;
@@ -1,8 +1,8 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { ThemeService } from '@ts-core/frontend/theme';
2
+ import { ThemeAssetService, ThemeService } from '@ts-core/frontend/theme';
3
3
  import { ThemeAssetDirective } from './ThemeAssetDirective';
4
4
  export declare class ThemeAssetImageDirective extends ThemeAssetDirective<HTMLImageElement> {
5
- constructor(element: ElementRef, theme: ThemeService);
5
+ constructor(element: ElementRef, theme: ThemeService, themeAsset: ThemeAssetService);
6
6
  protected commitSourceProperties(): void;
7
7
  protected removeSourceProperties(): void;
8
8
  }
@@ -1,8 +1,9 @@
1
1
  import { InjectionToken, ModuleWithProviders } from '@angular/core';
2
2
  import { ICookieService } from '@ts-core/frontend/cookie';
3
- import { IThemeServiceOptions, ThemeService } from '@ts-core/frontend/theme';
3
+ import { IThemeServiceOptions, ThemeService, ThemeAssetService } from '@ts-core/frontend/theme';
4
4
  export declare class ThemeModule {
5
5
  static forRoot(options?: IThemeServiceOptions): ModuleWithProviders<ThemeModule>;
6
6
  }
7
7
  export declare function themeServiceFactory(cookie: ICookieService, options?: IThemeServiceOptions): ThemeService;
8
+ export declare function themeAssetServiceFactory(theme: ThemeService): ThemeAssetService;
8
9
  export declare const THEME_OPTIONS: InjectionToken<IThemeServiceOptions>;