@compass-framework/core 1.0.0
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/.eslintignore +9 -0
- package/.eslintrc.js +76 -0
- package/include/AbsoluteLayout.d.ts +7 -0
- package/include/AccelerateDecelerateInterpolator.d.ts +7 -0
- package/include/AccelerateInterpolator.d.ts +10 -0
- package/include/Adapter.d.ts +20 -0
- package/include/AlphaAnimation.d.ts +11 -0
- package/include/Animation.d.ts +119 -0
- package/include/AnimationSet.d.ts +58 -0
- package/include/Animator.d.ts +53 -0
- package/include/Application.d.ts +19 -0
- package/include/ApplicationContext.d.ts +11 -0
- package/include/ApplicationFrame.d.ts +62 -0
- package/include/ApplicationFrameContext.ts +25 -0
- package/include/ApplicationFrameObserver.d.ts +14 -0
- package/include/ApplicationManager.d.ts +9 -0
- package/include/ApplicationManifest.d.ts +5 -0
- package/include/ApplicationSettings.d.ts +3 -0
- package/include/ApplicationWindow.d.ts +37 -0
- package/include/ArrayAdapter.d.ts +52 -0
- package/include/Assets.d.ts +3 -0
- package/include/AttributeSet.d.ts +40 -0
- package/include/BaseAdapter.d.ts +23 -0
- package/include/Bitmap.d.ts +7 -0
- package/include/BitmapDrawable.d.ts +33 -0
- package/include/BounceInterpolator.d.ts +5 -0
- package/include/Button.d.ts +3 -0
- package/include/Canvas.d.ts +106 -0
- package/include/Color.d.ts +46 -0
- package/include/ColorDrawable.d.ts +18 -0
- package/include/Configuration.d.ts +5 -0
- package/include/Context.d.ts +8 -0
- package/include/ContextUtils.d.ts +5 -0
- package/include/CornerPathEffect.ts +5 -0
- package/include/CycleInterpolator.d.ts +7 -0
- package/include/DecelerateInterpolator.d.ts +8 -0
- package/include/DecorView.d.ts +5 -0
- package/include/DensityMetrics.d.ts +11 -0
- package/include/DisplayMetrics.d.ts +7 -0
- package/include/DoubleClick.d.ts +9 -0
- package/include/DoubleClickListener.d.ts +10 -0
- package/include/Drawable.d.ts +67 -0
- package/include/EditText.d.ts +17 -0
- package/include/Editable.d.ts +5 -0
- package/include/FrameLayout.d.ts +7 -0
- package/include/FreezeAbsoluteLayout.d.ts +7 -0
- package/include/FreezeLayoutViewGroup.d.ts +23 -0
- package/include/Gravity.d.ts +38 -0
- package/include/GridLayout.d.ts +9 -0
- package/include/GridLayoutAnimationController.d.ts +5 -0
- package/include/GridView.d.ts +8 -0
- package/include/HorizontalScrollView.ts +11 -0
- package/include/ICursor.d.ts +33 -0
- package/include/IWindow.d.ts +28 -0
- package/include/ImageView.d.ts +3 -0
- package/include/Interpolator.d.ts +6 -0
- package/include/KeyEvent.d.ts +97 -0
- package/include/LayerDrawable.d.ts +28 -0
- package/include/LayoutAnimationController.d.ts +51 -0
- package/include/LayoutInflater.ts +10 -0
- package/include/LinearGradient.d.ts +5 -0
- package/include/LinearGradientDrawable.d.ts +23 -0
- package/include/LinearInterpolator.d.ts +5 -0
- package/include/LinearLayout.d.ts +14 -0
- package/include/ListAdapter.d.ts +5 -0
- package/include/ListView.d.ts +8 -0
- package/include/Matrix.d.ts +81 -0
- package/include/MotionEvent.d.ts +57 -0
- package/include/Outline.d.ts +23 -0
- package/include/Paint.d.ts +126 -0
- package/include/Path.d.ts +77 -0
- package/include/PathEffect.ts +3 -0
- package/include/Picture.d.ts +26 -0
- package/include/PictureDrawable.d.ts +14 -0
- package/include/PopupWindow.d.ts +38 -0
- package/include/PropertyValuesHolder.d.ts +3 -0
- package/include/Readying.ts +3 -0
- package/include/Rect.d.ts +75 -0
- package/include/RelativeLayout.d.ts +7 -0
- package/include/Resources.d.ts +62 -0
- package/include/RotateAnimation.d.ts +12 -0
- package/include/RoundedCornersDrawable.d.ts +47 -0
- package/include/ScaleAnimation.d.ts +12 -0
- package/include/ScrollView.d.ts +13 -0
- package/include/Shader.d.ts +1 -0
- package/include/Shadow.d.ts +8 -0
- package/include/StackLayout.d.ts +9 -0
- package/include/TabBarLayout.d.ts +23 -0
- package/include/TableLayout.d.ts +8 -0
- package/include/TableRow.d.ts +8 -0
- package/include/TextView.d.ts +20 -0
- package/include/TimeInterpolator.d.ts +3 -0
- package/include/Transformation.d.ts +24 -0
- package/include/TranslateAnimation.d.ts +11 -0
- package/include/TypeEvaluator.d.ts +3 -0
- package/include/Typeface.d.ts +14 -0
- package/include/TypefaceFactory.d.ts +9 -0
- package/include/ValueAnimator.d.ts +111 -0
- package/include/View.d.ts +342 -0
- package/include/ViewGroup.d.ts +108 -0
- package/include/ViewGroupOverlay.d.ts +11 -0
- package/include/ViewOutlineProvider.d.ts +8 -0
- package/include/ViewOverlay.d.ts +16 -0
- package/include/ViewParent.d.ts +5 -0
- package/include/ViewTreeObserver.d.ts +33 -0
- package/include/WindowContext.d.ts +9 -0
- package/include/WindowManager.d.ts +13 -0
- package/include/XMLLayoutParser.d.ts +9 -0
- package/include/XMLResourcesParser.d.ts +8 -0
- package/include/XMLViewFactoryRegistry.d.ts +42 -0
- package/index.d.ts +105 -0
- package/package.json +17 -0
- package/tsconfig.json +32 -0
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
const resolve = (url) => path.resolve(__dirname, url);
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
"extends": [
|
|
7
|
+
'airbnb-base',
|
|
8
|
+
'airbnb-typescript/base'
|
|
9
|
+
],
|
|
10
|
+
"env": {
|
|
11
|
+
"browser": true,
|
|
12
|
+
"es2021": true
|
|
13
|
+
},
|
|
14
|
+
"plugins": [
|
|
15
|
+
"unused-imports"
|
|
16
|
+
],
|
|
17
|
+
"rules": {
|
|
18
|
+
"unused-imports/no-unused-imports": "error",
|
|
19
|
+
|
|
20
|
+
"@typescript-eslint/no-redeclare": "off",
|
|
21
|
+
"default-case-last": "off",
|
|
22
|
+
"no-return-assign": "off",
|
|
23
|
+
"operator-assignment": "off",
|
|
24
|
+
"no-fallthrough": "off",
|
|
25
|
+
"no-constant-condition": "off",
|
|
26
|
+
"function-call-argument-newline":"off",
|
|
27
|
+
"no-else-return" : "off",
|
|
28
|
+
"no-cond-assign": "off",
|
|
29
|
+
"prefer-regex-literals": "off",
|
|
30
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
31
|
+
"no-restricted-globals": "off",
|
|
32
|
+
"prefer-object-spread": "off",
|
|
33
|
+
"guard-for-in":"off",
|
|
34
|
+
"no-multi-assign": "off",
|
|
35
|
+
"no-lonely-if": "off",
|
|
36
|
+
"@typescript-eslint/lines-between-class-members": "off",
|
|
37
|
+
"prefer-exponentiation-operator":"off",
|
|
38
|
+
"no-restricted-properties": "off",
|
|
39
|
+
"function-paren-newline": "off",
|
|
40
|
+
"no-labels": "off",
|
|
41
|
+
"@typescript-eslint/no-shadow": "off",
|
|
42
|
+
"no-nested-ternary": "off",
|
|
43
|
+
"no-debugger": "off",
|
|
44
|
+
"no-mixed-operators": "off",
|
|
45
|
+
"prefer-destructuring": "off",
|
|
46
|
+
"no-console": "off",
|
|
47
|
+
"import/export": "off",
|
|
48
|
+
"@typescript-eslint/quotes": "off",
|
|
49
|
+
"prefer-const": "off",
|
|
50
|
+
'linebreak-style': ["off", "windows"],
|
|
51
|
+
"prefer-rest-params": "off",
|
|
52
|
+
"max-classes-per-file": "off",
|
|
53
|
+
"max-len": "off",
|
|
54
|
+
"new-parens": "off",
|
|
55
|
+
"no-continue": "off",
|
|
56
|
+
"no-plusplus": "off",
|
|
57
|
+
"import/prefer-default-export": "off",
|
|
58
|
+
"@typescript-eslint/naming-convention": "off",
|
|
59
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
60
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
61
|
+
"import/no-cycle": "off",
|
|
62
|
+
"no-bitwise": 'off',
|
|
63
|
+
"default-case": "off",
|
|
64
|
+
"no-param-reassign": "off",
|
|
65
|
+
"class-methods-use-this": "off",
|
|
66
|
+
"consistent-return": "off",
|
|
67
|
+
"no-underscore-dangle": "off",
|
|
68
|
+
"no-restricted-syntax": "off",
|
|
69
|
+
},
|
|
70
|
+
"parserOptions": {
|
|
71
|
+
"warnOnUnsupportedTypeScriptVersion": false,
|
|
72
|
+
"ecmaVersion": 12,
|
|
73
|
+
"sourceType": "module",
|
|
74
|
+
"project": resolve("tsconfig.json")
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { View } from "./View";
|
|
2
|
+
import { ViewGroup } from "./ViewGroup";
|
|
3
|
+
|
|
4
|
+
export declare interface Adapter {
|
|
5
|
+
getCount(): number;
|
|
6
|
+
|
|
7
|
+
getItem(position: number): Object;
|
|
8
|
+
|
|
9
|
+
getViewTypeCount(): number;
|
|
10
|
+
|
|
11
|
+
isEmpty(): boolean;
|
|
12
|
+
|
|
13
|
+
getItemId(position: number): number;
|
|
14
|
+
|
|
15
|
+
hasStableIds(): boolean;
|
|
16
|
+
|
|
17
|
+
getView(position: number, convertView: View, parent: ViewGroup): View;
|
|
18
|
+
|
|
19
|
+
getItemViewType(position: number): number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Transformation } from "./Transformation";
|
|
2
|
+
|
|
3
|
+
export declare class AlphaAnimation extends Animation {
|
|
4
|
+
public constructor(fromAlpha: number, toAlpha: number);
|
|
5
|
+
|
|
6
|
+
public applyTransformation(interpolatedTime: number, t: Transformation): void;
|
|
7
|
+
|
|
8
|
+
public willChangeBounds(): boolean;
|
|
9
|
+
|
|
10
|
+
public willChangeTransformationMatrix(): boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Interface } from "@compass-framework/library";
|
|
2
|
+
import { Transformation } from './Transformation';
|
|
3
|
+
import { Interpolator } from './Interpolator';
|
|
4
|
+
import { Rect } from './Rect';
|
|
5
|
+
import { AttributeSet } from "./AttributeSet";
|
|
6
|
+
|
|
7
|
+
export declare abstract class Animation {
|
|
8
|
+
public static INFINITE: number;
|
|
9
|
+
public static RESTART: number;
|
|
10
|
+
public static REVERSE: number;
|
|
11
|
+
public static START_ON_FIRST_FRAME: number;
|
|
12
|
+
public static ABSOLUTE: number;
|
|
13
|
+
public static RELATIVE_TO_SELF: number;
|
|
14
|
+
public static RELATIVE_TO_PARENT: number;
|
|
15
|
+
public static ZORDER_NORMAL: number;
|
|
16
|
+
public static ZORDER_TOP: number;
|
|
17
|
+
public static ZORDER_BOTTOM: number;
|
|
18
|
+
|
|
19
|
+
protected constructor();
|
|
20
|
+
protected constructor(attribute: AttributeSet);
|
|
21
|
+
|
|
22
|
+
public clone(): Animation;
|
|
23
|
+
|
|
24
|
+
public reset(): void;
|
|
25
|
+
|
|
26
|
+
public cancel(): void;
|
|
27
|
+
|
|
28
|
+
public detach(): void;
|
|
29
|
+
|
|
30
|
+
public isInitialized(): boolean;
|
|
31
|
+
|
|
32
|
+
public initialize(width: number, height: number, parentWidth: number, parentHeight: number): void;
|
|
33
|
+
|
|
34
|
+
public setInterpolator(interpolator: Interpolator): void;
|
|
35
|
+
|
|
36
|
+
public setStartOffset(startOffset: number): void;
|
|
37
|
+
|
|
38
|
+
public setDuration(durationMillis: number): void;
|
|
39
|
+
|
|
40
|
+
public restrictDuration(durationMillis: number): void;
|
|
41
|
+
|
|
42
|
+
public scaleCurrentDuration(scale: number): void;
|
|
43
|
+
|
|
44
|
+
public setStartTime(startTimeMillis: number): void;
|
|
45
|
+
|
|
46
|
+
public start(): void;
|
|
47
|
+
|
|
48
|
+
public setRepeatMode(repeatMode: number): void;
|
|
49
|
+
|
|
50
|
+
public setRepeatCount(repeatCount: number): void;
|
|
51
|
+
|
|
52
|
+
public isFillEnabled(): boolean;
|
|
53
|
+
|
|
54
|
+
public setFillEnabled(fillEnabled: boolean): void;
|
|
55
|
+
|
|
56
|
+
public setFillBefore(fillBefore: boolean): void;
|
|
57
|
+
|
|
58
|
+
public setFillAfter(fillAfter: boolean): void;
|
|
59
|
+
|
|
60
|
+
public setZAdjustment(zAdjustment: number): void;
|
|
61
|
+
|
|
62
|
+
public setDetachWallpaper(detachWallpaper: boolean): void;
|
|
63
|
+
|
|
64
|
+
public getInterpolator(): Interpolator;
|
|
65
|
+
|
|
66
|
+
public getStartTime(): number;
|
|
67
|
+
|
|
68
|
+
public getDuration(): number;
|
|
69
|
+
|
|
70
|
+
public getStartOffset(): number;
|
|
71
|
+
|
|
72
|
+
public getScaleFactor(): number;
|
|
73
|
+
|
|
74
|
+
public getRepeatMode(): number;
|
|
75
|
+
|
|
76
|
+
public getRepeatCount(): number;
|
|
77
|
+
|
|
78
|
+
public getFillBefore(): boolean;
|
|
79
|
+
|
|
80
|
+
public getFillAfter(): boolean;
|
|
81
|
+
|
|
82
|
+
public getZAdjustment(): number;
|
|
83
|
+
|
|
84
|
+
public getDetachWallpaper(): boolean;
|
|
85
|
+
|
|
86
|
+
public willChangeTransformationMatrix(): boolean;
|
|
87
|
+
|
|
88
|
+
public willChangeBounds(): boolean;
|
|
89
|
+
|
|
90
|
+
public setAnimationListener(listener: Animation.AnimationListener): void;
|
|
91
|
+
|
|
92
|
+
public ensureInterpolator(): void;
|
|
93
|
+
|
|
94
|
+
public computeDurationHint(): number;
|
|
95
|
+
|
|
96
|
+
public getTransformation(currentTime: number, outTransformation: Transformation, scale: number): boolean;
|
|
97
|
+
public getTransformation(currentTime: number, outTransformation: Transformation): boolean;
|
|
98
|
+
|
|
99
|
+
public hasStarted(): boolean;
|
|
100
|
+
|
|
101
|
+
public hasEnded(): boolean;
|
|
102
|
+
|
|
103
|
+
public applyTransformation(interpolatedTime: number, t: Transformation): void;
|
|
104
|
+
|
|
105
|
+
public getInvalidateRegion(left: number, top: number, right: number, bottom: number, invalidate: Rect, transformation: Transformation): void;
|
|
106
|
+
|
|
107
|
+
public initializeInvalidateRegion(left: number, top: number, right: number, bottom: number): void;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export declare namespace Animation {
|
|
111
|
+
export const AnimationListenerInterface: Interface<AnimationListener>;
|
|
112
|
+
export interface AnimationListener {
|
|
113
|
+
onAnimationStart(animation: Animation): void
|
|
114
|
+
|
|
115
|
+
onAnimationEnd(animation: Animation): void;
|
|
116
|
+
|
|
117
|
+
onAnimationRepeat(animation: Animation): void;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { List } from "@compass-framework/library";
|
|
2
|
+
import { Animation } from "./Animation";
|
|
3
|
+
import { Transformation } from "./Transformation";
|
|
4
|
+
|
|
5
|
+
export declare class AnimationSet extends Animation {
|
|
6
|
+
public static PROPERTY_FILL_AFTER_MASK: number;
|
|
7
|
+
public static PROPERTY_FILL_BEFORE_MASK: number;
|
|
8
|
+
public static PROPERTY_REPEAT_MODE_MASK: number;
|
|
9
|
+
public static PROPERTY_START_OFFSET_MASK: number;
|
|
10
|
+
public static PROPERTY_SHARE_INTERPOLATOR_MASK: number;
|
|
11
|
+
public static PROPERTY_DURATION_MASK: number;
|
|
12
|
+
public static PROPERTY_MORPH_MATRIX_MASK: number;
|
|
13
|
+
public static PROPERTY_CHANGE_BOUNDS_MASK: number;
|
|
14
|
+
|
|
15
|
+
public constructor(shareInterpolator: boolean);
|
|
16
|
+
|
|
17
|
+
public clone(): AnimationSet;
|
|
18
|
+
|
|
19
|
+
public setFillAfter(fillAfter: boolean):void;
|
|
20
|
+
|
|
21
|
+
public setFillBefore(fillBefore: boolean): void;
|
|
22
|
+
|
|
23
|
+
public setRepeatMode(repeatMode: number): void;
|
|
24
|
+
|
|
25
|
+
public setStartOffset(startOffset: number): void;
|
|
26
|
+
|
|
27
|
+
public setDuration(durationMillis: number) :void;
|
|
28
|
+
|
|
29
|
+
public addAnimation(a:Animation): void;
|
|
30
|
+
|
|
31
|
+
public setStartTime(startTimeMillis: number) :void;
|
|
32
|
+
|
|
33
|
+
public getStartTime(): number;
|
|
34
|
+
|
|
35
|
+
public restrictDuration(durationMillis: number): void;
|
|
36
|
+
|
|
37
|
+
public getDuration(): number;
|
|
38
|
+
|
|
39
|
+
public computeDurationHint(): number;
|
|
40
|
+
|
|
41
|
+
public initializeInvalidateRegion(left, top, right, bottom):void;
|
|
42
|
+
|
|
43
|
+
public scaleCurrentDuration(scale: number):void;
|
|
44
|
+
|
|
45
|
+
public initialize(width, height, parentWidth, parentHeight): void;
|
|
46
|
+
|
|
47
|
+
public reset(): void;
|
|
48
|
+
|
|
49
|
+
public restoreChildrenStartOffset(): void;
|
|
50
|
+
|
|
51
|
+
public getAnimations(): List<Animation>;
|
|
52
|
+
|
|
53
|
+
public getTransformation(currentTime: number, t: Transformation): boolean;
|
|
54
|
+
|
|
55
|
+
public willChangeBounds(): boolean;
|
|
56
|
+
|
|
57
|
+
public willChangeTransformationMatrix(): boolean;
|
|
58
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ArrayList } from "@compass-framework/library";
|
|
2
|
+
import { TimeInterpolator } from "./TimeInterpolator";
|
|
3
|
+
import { Context } from "./Context";
|
|
4
|
+
|
|
5
|
+
export declare abstract class Animator {
|
|
6
|
+
public constructor(context: Context);
|
|
7
|
+
|
|
8
|
+
public start(): void;
|
|
9
|
+
|
|
10
|
+
public end(): void;
|
|
11
|
+
|
|
12
|
+
public cancel(): void;
|
|
13
|
+
|
|
14
|
+
public abstract setStartDelay(startDelay: number): void;
|
|
15
|
+
|
|
16
|
+
public abstract setDuration(duration: number): Animator;
|
|
17
|
+
|
|
18
|
+
public abstract getDuration(): number;
|
|
19
|
+
|
|
20
|
+
public abstract getStartDelay(): number;
|
|
21
|
+
|
|
22
|
+
public abstract setInterpolator(value: TimeInterpolator): void;
|
|
23
|
+
|
|
24
|
+
public abstract isRunning(): boolean;
|
|
25
|
+
|
|
26
|
+
public addListener(listener: Animator.AnimatorListener): void;
|
|
27
|
+
|
|
28
|
+
public removeListener(listener: Animator.AnimatorListener): void;
|
|
29
|
+
|
|
30
|
+
public removeAllListeners(): void;
|
|
31
|
+
|
|
32
|
+
public getListeners(): ArrayList<Animator.AnimatorListener>;
|
|
33
|
+
|
|
34
|
+
public clone(): Animator;
|
|
35
|
+
|
|
36
|
+
public setTarget(target: Object): void;
|
|
37
|
+
|
|
38
|
+
public setupEndValues(): void;
|
|
39
|
+
|
|
40
|
+
public setupStartValues(): void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare namespace Animator {
|
|
44
|
+
export interface AnimatorListener {
|
|
45
|
+
onAnimationStart(animation: Animator): void;
|
|
46
|
+
|
|
47
|
+
onAnimationEnd(animation: Animator): void;
|
|
48
|
+
|
|
49
|
+
onAnimationCancel(animation: Animator): void;
|
|
50
|
+
|
|
51
|
+
onAnimationRepeat(animation: Animator): void;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApplicationContext } from "./ApplicationContext";
|
|
2
|
+
import { ApplicationManifest } from "./ApplicationManifest";
|
|
3
|
+
import { ApplicationFrame } from "./ApplicationFrame";
|
|
4
|
+
|
|
5
|
+
export declare class Application {
|
|
6
|
+
public constructor(applicationManifest: ApplicationManifest);
|
|
7
|
+
|
|
8
|
+
public attachFrame(applicationFrame: ApplicationFrame): void;
|
|
9
|
+
|
|
10
|
+
public detachFrame(applicationFrame: ApplicationFrame): void;
|
|
11
|
+
|
|
12
|
+
public onInstall(applicationContext: ApplicationContext): void;
|
|
13
|
+
|
|
14
|
+
public onUninstall(): void;
|
|
15
|
+
|
|
16
|
+
public getApplicationContext(): ApplicationContext;
|
|
17
|
+
|
|
18
|
+
public getApplicationManifest(): ApplicationManifest;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApplicationFrame } from "./ApplicationFrame";
|
|
2
|
+
import { ApplicationManifest } from "./ApplicationManifest";
|
|
3
|
+
import { Context } from "./Context";
|
|
4
|
+
|
|
5
|
+
export declare class ApplicationContext extends Context {
|
|
6
|
+
public attachFrame(applicationFrame: ApplicationFrame): void;
|
|
7
|
+
|
|
8
|
+
public detachFrame(applicationFrame: ApplicationFrame): void;
|
|
9
|
+
|
|
10
|
+
public getApplicationManifest(): ApplicationManifest;
|
|
11
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ApplicationFrameObserver } from "./ApplicationFrameObserver";
|
|
2
|
+
import { ApplicationFrameContext } from "./ApplicationFrameContext";
|
|
3
|
+
import { ICursor } from "./ICursor";
|
|
4
|
+
import { IWindow } from "./IWindow";
|
|
5
|
+
|
|
6
|
+
export declare class ApplicationFrame {
|
|
7
|
+
public constructor(configuration?: ApplicationFrame.Configuration);
|
|
8
|
+
|
|
9
|
+
public attachWindow(window: IWindow): void;
|
|
10
|
+
|
|
11
|
+
public detachWindow(window: IWindow): void;
|
|
12
|
+
|
|
13
|
+
public closeApplicationFrame(): void;
|
|
14
|
+
|
|
15
|
+
public applicationFrameScreenshot(): string;
|
|
16
|
+
|
|
17
|
+
public onAttach(applicationFrameContext: ApplicationFrameContext): void;
|
|
18
|
+
|
|
19
|
+
public onDetach(): void;
|
|
20
|
+
|
|
21
|
+
public getApplicationFrameWidth(): number;
|
|
22
|
+
|
|
23
|
+
public getApplicationFrameHeight(): number;
|
|
24
|
+
|
|
25
|
+
public getApplicationFrameLeft(): number;
|
|
26
|
+
|
|
27
|
+
public getApplicationFrameTop(): number;
|
|
28
|
+
|
|
29
|
+
public getApplicationFrameContext(): ApplicationFrameContext;
|
|
30
|
+
|
|
31
|
+
public getApplicationFrameObserver(): ApplicationFrameObserver;
|
|
32
|
+
|
|
33
|
+
public getApplicationFrameCursor(): ICursor;
|
|
34
|
+
|
|
35
|
+
public setApplicationFrameLeft(applicationFrameLeft: number): void;
|
|
36
|
+
|
|
37
|
+
public setApplicationFrameWidth(applicationFrameWidth: number): void;
|
|
38
|
+
|
|
39
|
+
public setApplicationFrameTop(applicationFrameTop: number): void;
|
|
40
|
+
|
|
41
|
+
public setApplicationFrameHeight(applicationFrameHeight: number): void;
|
|
42
|
+
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApplicationContext } from "./ApplicationContext";
|
|
2
|
+
import { ApplicationFrameObserver } from "./ApplicationFrameObserver";
|
|
3
|
+
import { ICursor } from "./ICursor";
|
|
4
|
+
import { IWindow } from "./IWindow";
|
|
5
|
+
import { Context } from "./Context";
|
|
6
|
+
|
|
7
|
+
export declare class ApplicationFrameContext extends Context {
|
|
8
|
+
public attachWindow(window: IWindow): void;
|
|
9
|
+
|
|
10
|
+
public detachWindow(window: IWindow): void;
|
|
11
|
+
|
|
12
|
+
public getApplicationContext(): ApplicationContext;
|
|
13
|
+
|
|
14
|
+
public getApplicationFrameLeft(): number;
|
|
15
|
+
|
|
16
|
+
public getApplicationFrameTop(): number;
|
|
17
|
+
|
|
18
|
+
public getApplicationFrameWidth(): number;
|
|
19
|
+
|
|
20
|
+
public getApplicationFrameHeight(): number;
|
|
21
|
+
|
|
22
|
+
public getApplicationFrameCursor(): ICursor;
|
|
23
|
+
|
|
24
|
+
public getApplicationFrameObserver(): ApplicationFrameObserver;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Interface } from "@compass-framework/library";
|
|
2
|
+
|
|
3
|
+
export declare class ApplicationFrameObserver {
|
|
4
|
+
public addOnResizeListener(listener: ApplicationFrameObserver.OnResizeListener) :void;
|
|
5
|
+
|
|
6
|
+
public removeOnResizeListener(listener: ApplicationFrameObserver.OnResizeListener): void;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export namespace ApplicationFrameObserver {
|
|
10
|
+
export const OnResizeListenerInterface: Interface<OnResizeListener>;
|
|
11
|
+
export interface OnResizeListener {
|
|
12
|
+
onResize(): void;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Application } from "./Application";
|
|
2
|
+
|
|
3
|
+
export declare class ApplicationManager {
|
|
4
|
+
public static readying(): Promise<void>;
|
|
5
|
+
|
|
6
|
+
public installApplication(application: Application): void;
|
|
7
|
+
|
|
8
|
+
public uninstallApplication(application: Application): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { XML } from "@compass-framework/library";
|
|
2
|
+
import { IWindow } from "./IWindow";
|
|
3
|
+
import { Resources } from "./Resources";
|
|
4
|
+
import { View } from "./View";
|
|
5
|
+
import { ViewGroup } from "./ViewGroup";
|
|
6
|
+
import { DecorView } from "./DecorView";
|
|
7
|
+
import { WindowContext } from "./WindowContext";
|
|
8
|
+
import { WindowManager } from "./WindowManager";
|
|
9
|
+
|
|
10
|
+
export declare class ApplicationWindow implements IWindow {
|
|
11
|
+
public constructor();
|
|
12
|
+
public constructor(context: WindowContext);
|
|
13
|
+
|
|
14
|
+
public addContentView(view: View, params: ViewGroup.LayoutParams): void;
|
|
15
|
+
|
|
16
|
+
public createViewQuery(): View.ViewQuery;
|
|
17
|
+
|
|
18
|
+
public onAttach(context: WindowContext): void;
|
|
19
|
+
|
|
20
|
+
public onCreate(): void;
|
|
21
|
+
|
|
22
|
+
public onResume(): void;
|
|
23
|
+
|
|
24
|
+
public onDestroy(): void;
|
|
25
|
+
|
|
26
|
+
public onDetach(): void;
|
|
27
|
+
|
|
28
|
+
public getLayoutParams(): WindowManager.LayoutParams;
|
|
29
|
+
|
|
30
|
+
public getDecorView(): DecorView;
|
|
31
|
+
|
|
32
|
+
public getResources(): Resources;
|
|
33
|
+
|
|
34
|
+
public getWindowContext(): WindowContext;
|
|
35
|
+
|
|
36
|
+
public setContentXML(xml: XML): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ArrayList, List, Comparator } from "@compass-framework/library";
|
|
2
|
+
import { View } from "./View";
|
|
3
|
+
import { BaseAdapter } from "./BaseAdapter";
|
|
4
|
+
import { Context } from "./Context";
|
|
5
|
+
import { ViewGroup } from "./ViewGroup";
|
|
6
|
+
|
|
7
|
+
export declare class ArrayAdapter<T> extends BaseAdapter {
|
|
8
|
+
public constructor(context: Context, textViewResourceId: number);
|
|
9
|
+
public constructor(context: Context, resource: number, textViewResourceId: number);
|
|
10
|
+
public constructor(context: Context, resource: number, objects: List<T>);
|
|
11
|
+
public constructor(context: Context, resource: number, textViewResourceId: number, objects: List<T>);
|
|
12
|
+
|
|
13
|
+
public add(object: T):void;
|
|
14
|
+
|
|
15
|
+
public insert(object: T, index: number) :void;
|
|
16
|
+
|
|
17
|
+
public clear(): void;
|
|
18
|
+
|
|
19
|
+
public remove(object: T):void;
|
|
20
|
+
|
|
21
|
+
public sort(comparator: Comparator<T>): void;
|
|
22
|
+
|
|
23
|
+
public notifyDataSetChanged() :void;
|
|
24
|
+
|
|
25
|
+
public getOriginalValues(): ArrayList<T>;
|
|
26
|
+
|
|
27
|
+
public getContext(): Context;
|
|
28
|
+
|
|
29
|
+
public getCount(): number;
|
|
30
|
+
|
|
31
|
+
public getItem(position: number):T;
|
|
32
|
+
|
|
33
|
+
public getObjects(): List<T>;
|
|
34
|
+
|
|
35
|
+
public getItemId(position: number): number;
|
|
36
|
+
|
|
37
|
+
public getView(position:number, convertView:View, parent:ViewGroup):View;
|
|
38
|
+
|
|
39
|
+
public getPosition(item:T): number;
|
|
40
|
+
|
|
41
|
+
public getNotifyOnChange(): boolean;
|
|
42
|
+
|
|
43
|
+
public getDropDownView(position: number, convertView:View, parent:ViewGroup):View;
|
|
44
|
+
|
|
45
|
+
public setObjects(objects: List<T>): void;
|
|
46
|
+
|
|
47
|
+
public setNotifyOnChange(notifyOnChange: boolean): void;
|
|
48
|
+
|
|
49
|
+
public setOriginalValues(values: ArrayList<T>): void;
|
|
50
|
+
|
|
51
|
+
public setDropDownViewResource(resource: number): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CharSequence, Influence, Nullable } from "@compass-framework/library";
|
|
2
|
+
import { Resources } from "./Resources";
|
|
3
|
+
import { PictureDrawable } from "./PictureDrawable";
|
|
4
|
+
import { Drawable } from "./Drawable";
|
|
5
|
+
|
|
6
|
+
export declare abstract class AttributeSet {
|
|
7
|
+
public abstract hasAttribute(name: string): boolean;
|
|
8
|
+
|
|
9
|
+
public abstract getText(name: string, defaultValue?: CharSequence): CharSequence;
|
|
10
|
+
|
|
11
|
+
public abstract getNumber(name: string, defaultValue?: number): number;
|
|
12
|
+
|
|
13
|
+
public abstract getResourceId(name: string, defaultValue?: number): number;
|
|
14
|
+
|
|
15
|
+
public abstract getColor(name: string, defaultValue?: number): number;
|
|
16
|
+
|
|
17
|
+
public abstract getBoolean(name: string, defaultValue?: boolean): boolean;
|
|
18
|
+
|
|
19
|
+
public abstract getResources(): Resources;
|
|
20
|
+
|
|
21
|
+
public abstract getPictureDrawable(name: string, defaultValue?: PictureDrawable): PictureDrawable;
|
|
22
|
+
|
|
23
|
+
public abstract getInt(name: string, defaultValue?: number): number;
|
|
24
|
+
|
|
25
|
+
public abstract getDimension(name: string, defaultValue?: number): number;
|
|
26
|
+
|
|
27
|
+
public abstract getString(name: string, defaultValue?: string): string;
|
|
28
|
+
|
|
29
|
+
public abstract getDrawable(name: string, defaultValue?: Drawable): Drawable;
|
|
30
|
+
|
|
31
|
+
public abstract getConvert<T, R>(name: string, action: Influence<string, Nullable<R>>, defaultValue?: R): R;
|
|
32
|
+
|
|
33
|
+
public abstract getAttributeCount(): number;
|
|
34
|
+
|
|
35
|
+
public abstract getAttributeName(index: number): string;
|
|
36
|
+
|
|
37
|
+
public abstract getAttribute(name: string): string;
|
|
38
|
+
|
|
39
|
+
public abstract setAttribute(name: string, value: unknown): void;
|
|
40
|
+
}
|