@ts-core/angular 15.0.9 → 15.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-core/angular",
3
- "version": "15.0.9",
3
+ "version": "15.0.11",
4
4
  "description": "Modules for frontend based on angular",
5
5
  "main": "public-api.js",
6
6
  "author": {
package/public-api.d.ts CHANGED
@@ -87,6 +87,9 @@ export * from './user/IUser';
87
87
  export * from './user/UserBaseService';
88
88
  export * from './window/IWindow';
89
89
  export * from './window/WindowBase';
90
+ export * from './window/WindowConfig';
91
+ export * from './window/WindowService';
92
+ export * from './window/WindowServiceEvent';
90
93
  export * from './window/IWindowConfig';
91
94
  export * from './window/IWindowContent';
92
95
  export * from './window/WindowClosedError';
@@ -0,0 +1,59 @@
1
+ import { IDestroyable } from '@ts-core/common';
2
+ import { IWindowConfig, WindowAlign } from './IWindowConfig';
3
+ export declare class WindowConfig<T = any> implements IWindowConfig<T>, IDestroyable {
4
+ id: string;
5
+ isModal: boolean;
6
+ isExpandable: boolean;
7
+ isResizeable: boolean;
8
+ isMinimizable: boolean;
9
+ isDisableClose: boolean;
10
+ isContentDragable: boolean;
11
+ x: number;
12
+ y: number;
13
+ data: T;
14
+ propertiesId: string;
15
+ width: string;
16
+ minWidth: number;
17
+ maxWidth: number;
18
+ defaultWidth: number;
19
+ defaultMinWidth: number;
20
+ defaultMaxWidth: number;
21
+ height: string;
22
+ minHeight: number;
23
+ maxHeight: number;
24
+ defaultHeight: number;
25
+ defaultMinHeight: number;
26
+ defaultMaxHeight: number;
27
+ paddingTop: number;
28
+ paddingLeft: number;
29
+ paddingRight: number;
30
+ paddingBottom: number;
31
+ verticalAlign: WindowAlign;
32
+ horizontalAlign: WindowAlign;
33
+ protected _elementMaxX: number;
34
+ protected _elementMinX: number;
35
+ protected _elementMaxY: number;
36
+ protected _elementMinY: number;
37
+ protected _elementWidth: string;
38
+ protected _elementMinWidth: number;
39
+ protected _elementMaxWidth: number;
40
+ protected _elementHeight: string;
41
+ protected _elementMinHeight: number;
42
+ protected _elementMaxHeight: number;
43
+ constructor(isModal?: boolean, isResizeable?: boolean, width?: number, height?: number);
44
+ setDefaultProperties(): void;
45
+ destroy(): void;
46
+ get elementMinY(): number;
47
+ get elementMaxY(): number;
48
+ get elementMinX(): number;
49
+ get elementMaxX(): number;
50
+ get elementWidth(): string;
51
+ get elementMinWidth(): number;
52
+ get elementMaxWidth(): number;
53
+ get elementHeight(): string;
54
+ get elementMinHeight(): number;
55
+ get elementMaxHeight(): number;
56
+ }
57
+ export declare type WindowConfigOptions<T = any> = {
58
+ [P in keyof WindowConfig<T>]?: any;
59
+ };
@@ -0,0 +1,20 @@
1
+ import { ObservableData, ClassType, Destroyable } from '@ts-core/common';
2
+ import { WindowConfigOptions } from './WindowConfig';
3
+ import { IWindow } from './IWindow';
4
+ import { Observable } from 'rxjs';
5
+ import { IWindowContent } from './IWindowContent';
6
+ import { IWindowConfig } from './IWindowConfig';
7
+ import { IQuestion, IQuestionOptions } from '../question/IQuestion';
8
+ import { WindowServiceEvent } from './WindowServiceEvent';
9
+ export declare abstract class WindowService extends Destroyable {
10
+ abstract open<U extends IWindowContent<T>, T>(component: ClassType<U>, config: IWindowConfig): U;
11
+ abstract get<T>(value: WindowId<T>): IWindowContent<T>;
12
+ abstract has<T>(value: WindowId<T>): boolean;
13
+ abstract setOnTop<T>(value: WindowId<T>): boolean;
14
+ abstract removeAll(): void;
15
+ abstract info(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: WindowConfigOptions): IQuestion;
16
+ abstract question(translationId?: string, translation?: any, questionOptions?: IQuestionOptions, configOptions?: WindowConfigOptions): IQuestion;
17
+ abstract get events(): Observable<ObservableData<WindowServiceEvent, IWindow>>;
18
+ abstract get windows(): Map<IWindowConfig, IWindowContent>;
19
+ }
20
+ export declare type WindowId<T> = string | IWindowConfig<T>;
@@ -0,0 +1,7 @@
1
+ export declare enum WindowServiceEvent {
2
+ OPEN_STARTED = "OPEN_STARTED",
3
+ OPENED = "OPENED",
4
+ OPEN_FINISHED = "OPEN_FINISHED",
5
+ CLOSED = "CLOSED",
6
+ SETTED_ON_TOP = "SETTED_ON_TOP"
7
+ }