@ts-core/angular 15.0.39 → 15.0.40

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.
@@ -6,6 +6,7 @@ import { INotificationContent } from './INotificationContent';
6
6
  import { NotificationConfigOptions } from './NotificationConfig';
7
7
  import { NotificationServiceEvent } from './NotificationServiceEvent';
8
8
  import { Observable } from 'rxjs';
9
+ import * as i0 from "@angular/core";
9
10
  export declare abstract class NotificationService extends Destroyable {
10
11
  abstract open<U extends INotificationContent<T>, T>(component: ClassType<U>, config: INotificationConfig<T>): U;
11
12
  abstract get<T>(value: NotificationId<T>): INotificationConfig<T>;
@@ -19,5 +20,7 @@ export declare abstract class NotificationService extends Destroyable {
19
20
  abstract get configs(): Array<INotificationConfig>;
20
21
  abstract get closedConfigs(): Array<INotificationConfig>;
21
22
  abstract get notifications(): Map<INotificationConfig, INotificationContent>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
22
25
  }
23
26
  export declare type NotificationId<T> = string | INotificationConfig<T> | NotificationConfigOptions<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "15.0.39",
3
+ "version": "15.0.40",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "public-api.js",
6
6
  "author": {
@@ -1,5 +1,6 @@
1
1
  import { ValueStorage } from './ValueStorage';
2
2
  export declare class DateValueStorage extends ValueStorage<Date> {
3
+ defaultExpirationDelta: number;
3
4
  protected serialize(value: string): Date;
4
5
  protected deserialize(value: Date): string;
5
6
  isMore(item: Date): boolean;
@@ -1,7 +1,7 @@
1
1
  import { IDestroyable } from '@ts-core/common';
2
2
  export interface IValueStorage<T> extends IDestroyable {
3
3
  get(defaultValue?: T): T;
4
- set(value: T): void;
4
+ set(value: T): T;
5
5
  has(): boolean;
6
6
  destroy(): void;
7
7
  get name(): string;
@@ -11,7 +11,7 @@ export declare class ValueStorage<T = string> extends DestroyableContainer imple
11
11
  protected deserialize(value: T): string;
12
12
  get(defaultValue?: T): T;
13
13
  has(): boolean;
14
- set(value: T): void;
14
+ set(value: T): T;
15
15
  destroy(): void;
16
16
  get name(): string;
17
17
  }
@@ -6,6 +6,7 @@ import { IWindowContent } from './IWindowContent';
6
6
  import { IWindowConfig } from './IWindowConfig';
7
7
  import { IQuestion, IQuestionOptions } from '../question/IQuestion';
8
8
  import { WindowServiceEvent } from './WindowServiceEvent';
9
+ import * as i0 from "@angular/core";
9
10
  export declare abstract class WindowService extends Destroyable {
10
11
  abstract open<U extends IWindowContent<T>, T>(component: ClassType<U>, config: IWindowConfig<T>): U;
11
12
  abstract get<T>(value: WindowId<T>): IWindowContent<T>;
@@ -17,5 +18,7 @@ export declare abstract class WindowService extends Destroyable {
17
18
  abstract question(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: WindowConfigOptions): IQuestion;
18
19
  abstract get events(): Observable<ObservableData<WindowServiceEvent, IWindow>>;
19
20
  abstract get windows(): Map<IWindowConfig, IWindowContent>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<WindowService>;
20
23
  }
21
24
  export declare type WindowId<T> = string | IWindowConfig<T>;