@ts-core/angular 19.0.0 → 19.0.2

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.
@@ -9,7 +9,7 @@ export declare class LanguageDirective extends Destroyable {
9
9
  protected _key: string;
10
10
  protected _params: any;
11
11
  constructor(element: ElementRef, language: LanguageService);
12
- protected translate(): void;
12
+ protected translate: () => void;
13
13
  destroy(): void;
14
14
  set key(value: string);
15
15
  get key(): string;
@@ -1,5 +1,4 @@
1
- import { Loadable } from '@ts-core/common';
2
- import { ExtendedError } from '@ts-core/common';
1
+ import { ExtendedError, Loadable } from '@ts-core/common';
3
2
  import { Observable } from 'rxjs';
4
3
  export declare abstract class LoginBaseService<E = any, U = any, V = any> extends Loadable<E | LoginBaseServiceEvent, U | V | ExtendedError> {
5
4
  protected _sid: string;
@@ -1,7 +1,7 @@
1
1
  import { CookieService } from '../cookie/CookieService';
2
2
  import { ValueStorage } from '../storage/ValueStorage';
3
3
  import { LocalStorageService } from '../storage/LocalStorageService';
4
- export declare class LoginTokenStorage extends ValueStorage {
4
+ export declare class LoginTokenStorage<T = string> extends ValueStorage<T> {
5
5
  static TOKEN_KEY: string;
6
6
  constructor(local: LocalStorageService, cookies: CookieService);
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "19.0.0",
3
+ "version": "19.0.2",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "public-api.js",
6
6
  "author": {
@@ -18,7 +18,7 @@
18
18
  "@angular/service-worker": "^19.0.6",
19
19
  "@angular/platform-browser-dynamic": "^19.0.6",
20
20
  "@angular/router": "^19.0.6",
21
- "@ts-core/common": "~3.0.56",
21
+ "@ts-core/common": "~3.0.57",
22
22
  "@ts-core/frontend": "~3.0.15",
23
23
  "@types/numeral": "^2.0.5",
24
24
  "interactjs": "1.10.11",
package/public-api.d.ts CHANGED
@@ -104,6 +104,7 @@ export * from './notification/NotificationServiceEvent';
104
104
  export * from './bottomSheet/BottomSheetService';
105
105
  export * from './storage/LocalStorageService';
106
106
  export * from './storage/ValueStorage';
107
+ export * from './storage/JSONValueStorage';
107
108
  export * from './storage/IValueStorage';
108
109
  export * from './storage/DateValueStorage';
109
110
  export * from './storage/BooleanValueStorage';
@@ -0,0 +1,5 @@
1
+ import { ValueStorage } from './ValueStorage';
2
+ export declare class JSONValueStorage<T = any> extends ValueStorage<T> {
3
+ protected serialize(value: string): T;
4
+ protected deserialize(value: T): string;
5
+ }
@@ -12,6 +12,7 @@ export declare class ValueStorage<T = string> extends DestroyableContainer imple
12
12
  get(defaultValue?: T): T;
13
13
  has(): boolean;
14
14
  set(value: T): T;
15
+ clear(): void;
15
16
  destroy(): void;
16
17
  get name(): string;
17
18
  }
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class ThemeToggleDirective extends Destroyable {
5
5
  private theme;
6
6
  constructor(theme: ThemeService);
7
- private clickHandler;
7
+ protected clickHandler(): void;
8
8
  destroy(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeToggleDirective, never>;
10
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeToggleDirective, "[vi-theme-toggle]", never, {}, {}, never, never, false, never>;