@compass-framework/core 1.1.0 → 1.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/@types/ApplicationFrame.d.ts +10 -26
- package/@types/ApplicationFrameSettings.ts +5 -0
- package/@types/ApplicationWindow.d.ts +4 -5
- package/@types/Configuration.d.ts +4 -1
- package/@types/IWindow.d.ts +0 -4
- package/@types/PopupWindow.d.ts +3 -0
- package/@types/Theme.ts +4 -0
- package/index.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { ApplicationFrameObserver } from "./ApplicationFrameObserver";
|
|
2
|
-
import { ApplicationFrameContext } from "./ApplicationFrameContext";
|
|
3
2
|
import { ICursor } from "./ICursor";
|
|
3
|
+
import { Configuration } from "./Configuration";
|
|
4
4
|
import { IWindow } from "./IWindow";
|
|
5
|
+
import { ApplicationFrameContext } from "./ApplicationFrameContext";
|
|
6
|
+
import {ApplicationFrameSettings} from "./ApplicationFrameSettings";
|
|
5
7
|
|
|
6
8
|
export declare class ApplicationFrame {
|
|
7
|
-
public constructor(
|
|
8
|
-
|
|
9
|
-
public attachWindow(window: IWindow): void;
|
|
9
|
+
public constructor(settings?: ApplicationFrameSettings);
|
|
10
10
|
|
|
11
|
-
public
|
|
11
|
+
public applicationFrameScreenshot(): string;
|
|
12
12
|
|
|
13
13
|
public closeApplicationFrame(): void;
|
|
14
14
|
|
|
15
|
-
public
|
|
15
|
+
public attachWindow(window: IWindow): void;
|
|
16
|
+
|
|
17
|
+
public detachWindow(window: IWindow): void;
|
|
16
18
|
|
|
17
19
|
public onAttach(applicationFrameContext: ApplicationFrameContext): void;
|
|
18
20
|
|
|
19
21
|
public onDetach(): void;
|
|
20
22
|
|
|
23
|
+
public onConfigurationChanged(configuration: Configuration): void;
|
|
24
|
+
|
|
21
25
|
public getApplicationFrameWidth(): number;
|
|
22
26
|
|
|
23
27
|
public getApplicationFrameHeight(): number;
|
|
@@ -40,23 +44,3 @@ export declare class ApplicationFrame {
|
|
|
40
44
|
|
|
41
45
|
public setApplicationFrameHeight(applicationFrameHeight: number): void;
|
|
42
46
|
}
|
|
43
|
-
|
|
44
|
-
export namespace ApplicationFrame {
|
|
45
|
-
export interface Configuration {
|
|
46
|
-
container?: string;
|
|
47
|
-
width?: number,
|
|
48
|
-
height?: number,
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface OnCloseListener {
|
|
52
|
-
onClose(): void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface OnOpenListener {
|
|
56
|
-
onOpen(): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface OnResizeListener {
|
|
60
|
-
onResize(): void;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -5,6 +5,7 @@ import { View } from "./View";
|
|
|
5
5
|
import { ViewGroup } from "./ViewGroup";
|
|
6
6
|
import { WindowContext } from "./WindowContext";
|
|
7
7
|
import { WindowManager } from "./WindowManager";
|
|
8
|
+
import { Configuration } from "./Configuration";
|
|
8
9
|
|
|
9
10
|
export declare class ApplicationWindow implements IWindow {
|
|
10
11
|
public constructor();
|
|
@@ -17,20 +18,18 @@ export declare class ApplicationWindow implements IWindow {
|
|
|
17
18
|
|
|
18
19
|
public findViewsByTag(tag: string): ArrayList<View>;
|
|
19
20
|
|
|
20
|
-
public onAttach(context: WindowContext): void;
|
|
21
|
-
|
|
22
21
|
public onCreate(): void;
|
|
23
22
|
|
|
24
23
|
public onResume(): void;
|
|
25
24
|
|
|
26
25
|
public onDestroy(): void;
|
|
27
26
|
|
|
28
|
-
public
|
|
29
|
-
|
|
30
|
-
public getLayoutParams(): WindowManager.LayoutParams;
|
|
27
|
+
public onConfigurationChanged(configuration: Configuration): void;
|
|
31
28
|
|
|
32
29
|
public getContentView(): ViewGroup;
|
|
33
30
|
|
|
31
|
+
public getLayoutParams(): WindowManager.LayoutParams;
|
|
32
|
+
|
|
34
33
|
public getResources(): Resources;
|
|
35
34
|
|
|
36
35
|
public getWindowContext(): WindowContext;
|
package/@types/IWindow.d.ts
CHANGED
|
@@ -14,16 +14,12 @@ export interface IWindow {
|
|
|
14
14
|
|
|
15
15
|
findViewsByTag(tag: string): ArrayList<View>;
|
|
16
16
|
|
|
17
|
-
onAttach(context: WindowContext): void
|
|
18
|
-
|
|
19
17
|
onCreate(): void;
|
|
20
18
|
|
|
21
19
|
onResume(): void;
|
|
22
20
|
|
|
23
21
|
onDestroy(): void;
|
|
24
22
|
|
|
25
|
-
onDetach(): void;
|
|
26
|
-
|
|
27
23
|
getWindowContext(): WindowContext;
|
|
28
24
|
|
|
29
25
|
getResources(): Resources;
|
package/@types/PopupWindow.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { View } from "./View";
|
|
|
4
4
|
import { IWindow } from "./IWindow";
|
|
5
5
|
import { WindowContext } from "./WindowContext";
|
|
6
6
|
import { WindowManager } from "./WindowManager";
|
|
7
|
+
import {Configuration} from "./Configuration";
|
|
7
8
|
|
|
8
9
|
export declare class PopupWindow implements IWindow {
|
|
9
10
|
public constructor();
|
|
@@ -25,6 +26,8 @@ export declare class PopupWindow implements IWindow {
|
|
|
25
26
|
|
|
26
27
|
public onDetach(): void;
|
|
27
28
|
|
|
29
|
+
public onConfigurationChanged(configuration: Configuration): void;
|
|
30
|
+
|
|
28
31
|
public dismiss(): void;
|
|
29
32
|
|
|
30
33
|
public showAtLocation(parent: View, gravity: number, x: number, y: number): void;
|
package/@types/Theme.ts
ADDED
package/index.d.ts
CHANGED
|
@@ -61,6 +61,9 @@ export * from "./@types/Resources";
|
|
|
61
61
|
export * from "./@types/Readying";
|
|
62
62
|
export * from "./@types/RotateAnimation";
|
|
63
63
|
export * from "./@types/RoundedCornersDrawable";
|
|
64
|
+
export * from './@types/Slot';
|
|
65
|
+
export * from './@types/ViewSlot';
|
|
66
|
+
export * from "./@types/Theme";
|
|
64
67
|
export * from "./@types/ScaleAnimation";
|
|
65
68
|
export * from "./@types/ScrollView";
|
|
66
69
|
export * from "./@types/Shader";
|
|
@@ -103,5 +106,4 @@ export * from './@types/CornerPathEffect';
|
|
|
103
106
|
export * from './@types/DensityMetrics';
|
|
104
107
|
export * from './@types/ApplicationFrameContext';
|
|
105
108
|
export * from './@types/ResourcesInflater';
|
|
106
|
-
export * from './@types/
|
|
107
|
-
export * from './@types/ViewSlot';
|
|
109
|
+
export * from './@types/ApplicationFrameSettings';
|