@compass-framework/core 1.0.5 → 1.0.7
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/ApplicationWindow.d.ts +7 -2
- package/@types/IWindow.d.ts +12 -6
- package/@types/PopupWindow.d.ts +12 -7
- package/@types/Slot.d.ts +5 -0
- package/@types/View.d.ts +13 -14
- package/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XML
|
|
1
|
+
import {ArrayList, XML} from "@compass-framework/library";
|
|
2
2
|
import { IWindow } from "./IWindow";
|
|
3
3
|
import { Resources } from "./Resources";
|
|
4
4
|
import { View } from "./View";
|
|
@@ -10,7 +10,12 @@ export declare class ApplicationWindow implements IWindow {
|
|
|
10
10
|
public constructor();
|
|
11
11
|
public constructor(context: WindowContext);
|
|
12
12
|
|
|
13
|
-
public
|
|
13
|
+
public findViewById(id: number): View;
|
|
14
|
+
public findViewById(id: string): View;
|
|
15
|
+
|
|
16
|
+
public findViewByTag(tag: string): View;
|
|
17
|
+
|
|
18
|
+
public findViewsByTag(tag: string): ArrayList<View>;
|
|
14
19
|
|
|
15
20
|
public onAttach(context: WindowContext): void;
|
|
16
21
|
|
package/@types/IWindow.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { Interface, XML
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import {ArrayList, Interface, XML} from "@compass-framework/library";
|
|
2
|
+
import {Resources} from "./Resources";
|
|
3
|
+
import {View} from "./View";
|
|
4
|
+
import {WindowContext} from "./WindowContext";
|
|
5
|
+
import {WindowManager} from "./WindowManager";
|
|
6
6
|
|
|
7
7
|
export const IWindowInterface: Interface<IWindow>;
|
|
8
|
+
|
|
8
9
|
export interface IWindow {
|
|
9
|
-
|
|
10
|
+
findViewById(id: number): View;
|
|
11
|
+
findViewById(id: string): View;
|
|
12
|
+
|
|
13
|
+
findViewByTag(tag: string): View;
|
|
14
|
+
|
|
15
|
+
findViewsByTag(tag: string): ArrayList<View>;
|
|
10
16
|
|
|
11
17
|
onAttach(context: WindowContext): void
|
|
12
18
|
|
package/@types/PopupWindow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XML
|
|
1
|
+
import {ArrayList, XML} from "@compass-framework/library";
|
|
2
2
|
import { Resources } from "./Resources";
|
|
3
3
|
import { View } from "./View";
|
|
4
4
|
import { IWindow } from "./IWindow";
|
|
@@ -8,17 +8,22 @@ import { WindowManager } from "./WindowManager";
|
|
|
8
8
|
export declare class PopupWindow implements IWindow {
|
|
9
9
|
public constructor();
|
|
10
10
|
|
|
11
|
-
public
|
|
11
|
+
public findViewById(id: number): View;
|
|
12
|
+
public findViewById(id: string): View;
|
|
12
13
|
|
|
13
|
-
public
|
|
14
|
+
public findViewByTag(tag: string): View;
|
|
14
15
|
|
|
15
|
-
public
|
|
16
|
+
public findViewsByTag(tag: string): ArrayList<View>;
|
|
17
|
+
|
|
18
|
+
public onAttach(context: WindowContext): void;
|
|
16
19
|
|
|
17
|
-
public
|
|
20
|
+
public onCreate(): void;
|
|
21
|
+
|
|
22
|
+
public onResume(): void;
|
|
18
23
|
|
|
19
24
|
public onDestroy(): void;
|
|
20
25
|
|
|
21
|
-
public
|
|
26
|
+
public onDetach(): void;
|
|
22
27
|
|
|
23
28
|
public dismiss(): void;
|
|
24
29
|
|
|
@@ -26,7 +31,7 @@ export declare class PopupWindow implements IWindow {
|
|
|
26
31
|
|
|
27
32
|
public update(x: number, y: number, width: number, height: number): void;
|
|
28
33
|
|
|
29
|
-
public
|
|
34
|
+
public getWindowContext(): WindowContext;
|
|
30
35
|
|
|
31
36
|
public getResources(): Resources;
|
|
32
37
|
|
package/@types/Slot.d.ts
ADDED
package/@types/View.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Runnable,
|
|
3
|
-
List,
|
|
4
2
|
Interface,
|
|
5
|
-
|
|
3
|
+
Runnable,
|
|
4
|
+
ArrayList,
|
|
6
5
|
} from "@compass-framework/library";
|
|
7
6
|
import { Context } from "./Context";
|
|
8
7
|
import { AttributeSet } from "./AttributeSet";
|
|
@@ -58,6 +57,13 @@ export declare class View implements Drawable.Callback {
|
|
|
58
57
|
|
|
59
58
|
public draw(canvas: Canvas): void;
|
|
60
59
|
|
|
60
|
+
public findViewById(id: number): View;
|
|
61
|
+
public findViewById(id: string): View;
|
|
62
|
+
|
|
63
|
+
public findViewByTag(tag: string): View;
|
|
64
|
+
|
|
65
|
+
public findViewsByTag(tag: string): ArrayList<View>;
|
|
66
|
+
|
|
61
67
|
public post(action:Runnable): boolean;
|
|
62
68
|
|
|
63
69
|
public removeCallbacks(action: Runnable): boolean;
|
|
@@ -68,9 +74,6 @@ export declare class View implements Drawable.Callback {
|
|
|
68
74
|
|
|
69
75
|
public requestFocus(): boolean;
|
|
70
76
|
|
|
71
|
-
public createViewQuery(): View.ViewQuery;
|
|
72
|
-
public createViewQuery(resources: Resources): View.ViewQuery;
|
|
73
|
-
|
|
74
77
|
public clearFocus(): void;
|
|
75
78
|
|
|
76
79
|
public addOnAttachStateChangeListener(listener:View.OnAttachStateChangeListener): void;
|
|
@@ -143,6 +146,8 @@ export declare class View implements Drawable.Callback {
|
|
|
143
146
|
|
|
144
147
|
public getScaleY(): number;
|
|
145
148
|
|
|
149
|
+
public getTag(): string;
|
|
150
|
+
|
|
146
151
|
public getOverlay(): ViewOverlay;
|
|
147
152
|
|
|
148
153
|
public getViewTreeObserver(): ViewTreeObserver;
|
|
@@ -193,6 +198,8 @@ export declare class View implements Drawable.Callback {
|
|
|
193
198
|
|
|
194
199
|
public setVisibility(visibility: number): void;
|
|
195
200
|
|
|
201
|
+
public setTag(tag: string): void;
|
|
202
|
+
|
|
196
203
|
public setOutlineProvider(provider: ViewOutlineProvider): void;
|
|
197
204
|
|
|
198
205
|
public setFocusable(focusable: boolean): void;
|
|
@@ -267,14 +274,6 @@ export declare namespace View {
|
|
|
267
274
|
public getTransformation(): Transformation;
|
|
268
275
|
}
|
|
269
276
|
|
|
270
|
-
export class ViewQuery {
|
|
271
|
-
public findViewById<T extends View>(id: string): Nullable<T>;
|
|
272
|
-
|
|
273
|
-
public findViewByTag<T extends View>(tag: string): Nullable<T>;
|
|
274
|
-
|
|
275
|
-
public findViewsWithTag<T extends View>(tag: string): List<T>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
277
|
export class MeasureSpec {
|
|
279
278
|
public static MODE_SHIFT: number;
|
|
280
279
|
public static MODE_MASK: number;
|
package/index.d.ts
CHANGED