@akylas/nativescript 8.9.5 → 8.9.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/accessibility/font-scale.android.d.ts +1 -0
- package/accessibility/font-scale.android.js +6 -31
- package/accessibility/font-scale.android.js.map +1 -1
- package/animation-frame/index.d.ts +17 -3
- package/application/application-common.d.ts +1 -1
- package/application/application-common.js +2 -1
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +4 -0
- package/application/application.android.js +21 -1
- package/application/application.android.js.map +1 -1
- package/application/application.ios.js +18 -7
- package/application/application.ios.js.map +1 -1
- package/core-types/index.d.ts +2 -2
- package/core-types/index.js +1 -1
- package/core-types/index.js.map +1 -1
- package/debugger/devtools-elements.d.ts +23 -5
- package/debugger/dom-node.d.ts +23 -20
- package/file-system/index.d.ts +382 -98
- package/fps-meter/index.d.ts +24 -7
- package/globals/index.d.ts +4 -19
- package/http/index.d.ts +149 -73
- package/index.d.ts +24 -7
- package/matrix/index.d.ts +32 -5
- package/module-name-resolver/index.d.ts +21 -13
- package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
- package/package.json +5 -5
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.android.js.map +1 -1
- package/profiling/index.d.ts +153 -26
- package/text/formatted-string.d.ts +1 -1
- package/text/span.d.ts +1 -1
- package/trace/index.d.ts +131 -105
- package/ui/animation/keyframe-animation.d.ts +118 -66
- package/ui/builder/binding-builder.d.ts +15 -12
- package/ui/builder/index.d.ts +69 -28
- package/ui/button/index.android.js +2 -0
- package/ui/button/index.android.js.map +1 -1
- package/ui/content-view/index.d.ts +11 -21
- package/ui/core/view-base/index.d.ts +523 -585
- package/ui/core/weak-event-listener/index.d.ts +18 -2
- package/ui/dialogs/index.ios.js +4 -2
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.js +1 -1
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/editable-text-base/index.android.d.ts +1 -1
- package/ui/editable-text-base/index.android.js +3 -0
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/editable-text-base/index.ios.d.ts +1 -1
- package/ui/editable-text-base/index.ios.js +3 -0
- package/ui/editable-text-base/index.ios.js.map +1 -1
- package/ui/layouts/index.d.ts +1 -2
- package/ui/page/index.ios.js +7 -6
- package/ui/page/index.ios.js.map +1 -1
- package/ui/placeholder/index.d.ts +46 -8
- package/ui/styling/background-common.d.ts +20 -20
- package/ui/styling/background-common.js +40 -40
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/font-common.d.ts +7 -7
- package/ui/styling/font-common.js +14 -14
- package/ui/styling/font-common.js.map +1 -1
- package/ui/styling/font.d.ts +6 -6
- package/ui/styling/style-properties.d.ts +109 -92
- package/ui/styling/style-properties.js +23 -23
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +48 -79
- package/ui/text-base/formatted-string.d.ts +97 -36
- package/ui/text-base/span.d.ts +115 -38
- package/ui/text-field/index.android.js +3 -0
- package/ui/text-field/index.android.js.map +1 -1
- package/ui/transition/page-transition.android.js +15 -1
- package/ui/transition/page-transition.android.js.map +1 -1
- package/utils/debug.d.ts +61 -17
- package/utils/lazy.d.ts +5 -0
- package/utils/macrotask-scheduler.d.ts +5 -1
- package/utils/types.d.ts +115 -23
- package/xml/index.d.ts +105 -44
package/trace/index.d.ts
CHANGED
|
@@ -2,120 +2,146 @@
|
|
|
2
2
|
* An interface used to define a writer used by trace to print (log).
|
|
3
3
|
*/
|
|
4
4
|
export interface TraceWriter {
|
|
5
|
-
|
|
5
|
+
write(message: any, category: string, type?: number): void;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* An interface used to trace information about specific event.
|
|
9
10
|
*/
|
|
10
11
|
export interface TraceEventListener {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
filter: string;
|
|
13
|
+
on(object: Object, name: string, data?: any): void;
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* An interface used to for handling trace error
|
|
16
18
|
*/
|
|
17
19
|
export interface TraceErrorHandler {
|
|
18
|
-
|
|
20
|
+
handlerError(error: Error): any;
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
22
|
+
|
|
23
|
+
export namespace Trace {
|
|
24
|
+
/**
|
|
25
|
+
* Enables the trace module.
|
|
26
|
+
*/
|
|
27
|
+
export function enable(): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Disables the trace module.
|
|
31
|
+
*/
|
|
32
|
+
export function disable(): void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A function that returns whether the tracer is enabled and there is a point in writing messages.
|
|
36
|
+
* Check this to avoid writing complex string templates.
|
|
37
|
+
* Send error messages even if tracing is disabled.
|
|
38
|
+
*/
|
|
39
|
+
export function isEnabled(): boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Adds a TraceWriter instance to the trace module.
|
|
43
|
+
* @param writer The TraceWriter instance to add.
|
|
44
|
+
*/
|
|
45
|
+
export function addWriter(writer: TraceWriter): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Removes a TraceWriter instance from the trace module.
|
|
49
|
+
* @param writer The TraceWriter instance to remove.
|
|
50
|
+
*/
|
|
51
|
+
export function removeWriter(writer: TraceWriter): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Clears all the writers from the trace module.
|
|
55
|
+
*/
|
|
56
|
+
export function clearWriters(): void;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Sets the categories the module will trace.
|
|
60
|
+
* @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced.
|
|
61
|
+
*/
|
|
62
|
+
export function setCategories(categories: string): void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Adds categories to existing categories the module will trace.
|
|
66
|
+
* @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced.
|
|
67
|
+
*/
|
|
68
|
+
export function addCategories(categories: string): void;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if category is already set in trace module.
|
|
72
|
+
* @param category The category to check.
|
|
73
|
+
*/
|
|
74
|
+
export function isCategorySet(category: string): boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Writes a message using the available writers.
|
|
78
|
+
* @param message The message to be written.
|
|
79
|
+
* @param category The category of the message.
|
|
80
|
+
* @param type Optional, the type of the message - info, warning, error.
|
|
81
|
+
*/
|
|
82
|
+
export function write(message: any, category: string, type?: number): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Notifies all the attached listeners for an event that has occurred in the sender object.
|
|
86
|
+
* @param object The Object instance that raised the event.
|
|
87
|
+
* @param name The name of the raised event.
|
|
88
|
+
* @param data An optional parameter that passes the data associated with the event.
|
|
89
|
+
*/
|
|
90
|
+
export function notifyEvent(object: Object, name: string, data?: any): void;
|
|
91
|
+
|
|
92
|
+
export function addEventListener(listener: TraceEventListener): void;
|
|
93
|
+
|
|
94
|
+
export function removeEventListener(listener: TraceEventListener): void;
|
|
95
|
+
|
|
96
|
+
export module messageType {
|
|
97
|
+
export const log = 0;
|
|
98
|
+
export const info = 1;
|
|
99
|
+
export const warn = 2;
|
|
100
|
+
export const error = 3;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* all predefined categories.
|
|
105
|
+
*/
|
|
106
|
+
export module categories {
|
|
107
|
+
export const VisualTreeEvents = 'VisualTreeEvents';
|
|
108
|
+
export const Layout = 'Layout';
|
|
109
|
+
export const Style = 'Style';
|
|
110
|
+
export const ViewHierarchy = 'ViewHierarchy';
|
|
111
|
+
export const NativeLifecycle = 'NativeLifecycle';
|
|
112
|
+
export const Debug = 'Debug';
|
|
113
|
+
export const Navigation = 'Navigation';
|
|
114
|
+
export const Test = 'Test';
|
|
115
|
+
export const Binding = 'Binding';
|
|
116
|
+
export const BindingError = 'BindingError';
|
|
117
|
+
export const Error = 'Error';
|
|
118
|
+
export const Animation = 'Animation';
|
|
119
|
+
export const Transition = 'Transition';
|
|
120
|
+
export const Livesync = 'Livesync';
|
|
121
|
+
export const ModuleNameResolver = 'ModuleNameResolver';
|
|
122
|
+
export const MediaQuery = 'MediaQuery';
|
|
123
|
+
|
|
124
|
+
export const separator = ',';
|
|
125
|
+
export const All: string;
|
|
126
|
+
|
|
127
|
+
export function concat(...args: any): string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
class ConsoleWriter implements TraceWriter {
|
|
131
|
+
public write(message: any, category: string, type?: number): void;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export class DefaultErrorHandler implements TraceErrorHandler {
|
|
135
|
+
handlerError(error: any): void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function getErrorHandler(): TraceErrorHandler;
|
|
139
|
+
|
|
140
|
+
export function setErrorHandler(handler: TraceErrorHandler): void;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Passes an error to the registered ErrorHandler
|
|
144
|
+
* @param error The error to be handled.
|
|
145
|
+
*/
|
|
146
|
+
export function error(error: string | Error): void;
|
|
121
147
|
}
|
|
@@ -1,75 +1,127 @@
|
|
|
1
1
|
import { View } from '../core/view';
|
|
2
|
-
import { Color } from '../../color';
|
|
3
2
|
import { CoreTypes } from '../../core-types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { Color } from '../../color';
|
|
4
|
+
|
|
5
|
+
export declare const ANIMATION_PROPERTIES;
|
|
6
|
+
|
|
7
|
+
interface Keyframe {
|
|
8
|
+
backgroundColor?: Color;
|
|
9
|
+
scale?: { x: number; y: number };
|
|
10
|
+
translate?: { x: number; y: number };
|
|
11
|
+
rotate?: { x: number; y: number; z: number };
|
|
12
|
+
opacity?: number;
|
|
13
|
+
width?: CoreTypes.PercentLengthType;
|
|
14
|
+
height?: CoreTypes.PercentLengthType;
|
|
15
|
+
valueSource?: 'keyframe' | 'animation';
|
|
16
|
+
duration?: number;
|
|
17
|
+
curve?: any;
|
|
18
|
+
forceLayer?: boolean;
|
|
10
19
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
|
|
21
|
+
export interface Keyframes {
|
|
22
|
+
name: string;
|
|
23
|
+
keyframes: Array<UnparsedKeyframe>;
|
|
24
|
+
tag?: string | number;
|
|
25
|
+
scopedTag?: string;
|
|
26
|
+
mediaQueryString?: string;
|
|
14
27
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
|
|
29
|
+
export interface UnparsedKeyframe {
|
|
30
|
+
values: Array<any>;
|
|
31
|
+
declarations: Array<KeyframeDeclaration>;
|
|
18
32
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
|
|
34
|
+
export interface KeyframeDeclaration {
|
|
35
|
+
property: string;
|
|
36
|
+
value: any;
|
|
23
37
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
iterations?: number;
|
|
30
|
-
curve?: any;
|
|
31
|
-
isForwards?: boolean;
|
|
32
|
-
isReverse?: boolean;
|
|
38
|
+
|
|
39
|
+
export interface KeyframeInfo {
|
|
40
|
+
duration: number;
|
|
41
|
+
declarations: Array<KeyframeDeclaration>;
|
|
42
|
+
curve?: any;
|
|
33
43
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Defines animation options for the View.animate method.
|
|
47
|
+
*/
|
|
48
|
+
export class KeyframeAnimationInfo {
|
|
49
|
+
/**
|
|
50
|
+
* Return animation keyframes.
|
|
51
|
+
*/
|
|
52
|
+
keyframes: Array<KeyframeInfo>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The animation name.
|
|
56
|
+
*/
|
|
57
|
+
name?: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The length of the animation in milliseconds. The default duration is 300 milliseconds.
|
|
61
|
+
*/
|
|
62
|
+
duration?: number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The amount of time, in milliseconds, to delay starting the animation.
|
|
66
|
+
*/
|
|
67
|
+
delay?: number;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Specifies how many times the animation should be played. Default is 1.
|
|
71
|
+
* iOS animations support fractional iterations, i.e. 1.5.
|
|
72
|
+
* To repeat an animation infinitely, use Number.POSITIVE_INFINITY
|
|
73
|
+
*/
|
|
74
|
+
iterations?: number;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* An optional animation curve. Possible values are contained in the [AnimationCurve enumeration](../modules/_ui_enums_.animationcurve.html).
|
|
78
|
+
* Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android.
|
|
79
|
+
*/
|
|
80
|
+
curve?: any;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Determines whether the animation values will be applied on the animated object after the animation finishes.
|
|
84
|
+
*/
|
|
85
|
+
isForwards: boolean;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* If true the animation will be played backwards.
|
|
89
|
+
*/
|
|
90
|
+
isReverse?: boolean;
|
|
55
91
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
92
|
+
|
|
93
|
+
export class KeyframeAnimation {
|
|
94
|
+
animations: Array<Keyframe>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The amount of time, in milliseconds, to delay starting the animation.
|
|
98
|
+
*/
|
|
99
|
+
delay: number;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Specifies how many times the animation should be played. Default is 1.
|
|
103
|
+
* iOS animations support fractional iterations, i.e. 1.5.
|
|
104
|
+
* To repeat an animation infinitely, use Number.POSITIVE_INFINITY
|
|
105
|
+
*/
|
|
106
|
+
iterations: number;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Returns true if the application is currently running.
|
|
110
|
+
*/
|
|
111
|
+
isPlaying: boolean;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Plays the animation.
|
|
115
|
+
*/
|
|
116
|
+
public play: (view: View) => Promise<void>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Cancels a playing animation.
|
|
120
|
+
*/
|
|
121
|
+
public cancel: () => void;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Creates a keyframe animation from animation definition.
|
|
125
|
+
*/
|
|
126
|
+
public static keyframeAnimationFromInfo(info: KeyframeAnimationInfo): KeyframeAnimation;
|
|
74
127
|
}
|
|
75
|
-
export {};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
//@private
|
|
2
|
+
export module bindingConstants {
|
|
3
|
+
export const sourceProperty: string;
|
|
4
|
+
export const targetProperty: string;
|
|
5
|
+
export const expression: string;
|
|
6
|
+
export const twoWay: string;
|
|
7
|
+
export const source: string;
|
|
8
|
+
export const bindingValueKey: string;
|
|
9
|
+
export const parentValueKey: string;
|
|
10
|
+
export const parentsValueKey: string;
|
|
11
|
+
export const newPropertyValueKey: string;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
export
|
|
13
|
+
|
|
14
|
+
export function getBindingOptions(name: string, value: string): any;
|
|
15
|
+
|
|
16
|
+
export const parentsRegex: RegExp;
|
package/ui/builder/index.d.ts
CHANGED
|
@@ -1,32 +1,73 @@
|
|
|
1
|
-
import { View, Template, KeyedTemplate } from '../core/view';
|
|
2
|
-
import { ViewBase } from '../core/view-base';
|
|
3
|
-
import { ViewEntry } from '../frame';
|
|
1
|
+
import { View, Template, KeyedTemplate } from '../core/view';
|
|
4
2
|
import { Page } from '../page';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
export declare const android: string;
|
|
8
|
-
export declare const visionos: string;
|
|
9
|
-
export declare const apple: string;
|
|
10
|
-
export declare const defaultNameSpaceMatcher: RegExp;
|
|
3
|
+
import { NavigationEntry } from '../frame';
|
|
4
|
+
|
|
11
5
|
export interface LoadOptions {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
attributes?: any;
|
|
9
|
+
exports?: any;
|
|
10
|
+
page?: Page;
|
|
17
11
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use Builder.createViewFromEntry() instead.
|
|
15
|
+
*/
|
|
16
|
+
export function createViewFromEntry(entry: NavigationEntry): View;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use Builder.parse() instead.
|
|
20
|
+
*/
|
|
21
|
+
export function parse(value: string | Template, exports?: any): View;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use Builder.parseMultipleTemplates() instead.
|
|
25
|
+
*/
|
|
26
|
+
export function parseMultipleTemplates(value: string, exports?: any): Array<KeyedTemplate>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use Builder.load() instead.
|
|
30
|
+
*/
|
|
31
|
+
export function load(fileName: string, exports?: any): View;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use Builder.load() instead.
|
|
35
|
+
*/
|
|
36
|
+
export function load(options: LoadOptions): View;
|
|
37
|
+
|
|
38
|
+
export class Builder {
|
|
39
|
+
/**
|
|
40
|
+
* UI plugin developers can add to these to define their own custom types if needed
|
|
41
|
+
*/
|
|
42
|
+
static knownTemplates: Set<string>;
|
|
43
|
+
static knownMultiTemplates: Set<string>;
|
|
44
|
+
static knownCollections: Set<string>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Creates view from navigation entry
|
|
48
|
+
* @param entry NavigationEntry
|
|
49
|
+
*/
|
|
50
|
+
static createViewFromEntry(entry: NavigationEntry): View;
|
|
51
|
+
|
|
52
|
+
static parse(value: string | Template, exports?: any): View;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates an array of KeyedTemplates from string
|
|
56
|
+
* @param value The xml of the template to be parsed
|
|
57
|
+
* @param exports Current context of the template
|
|
58
|
+
*/
|
|
59
|
+
static parseMultipleTemplates(value: string, exports?: any): Array<KeyedTemplate>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Loads component from module with context
|
|
63
|
+
* @param moduleName the module name
|
|
64
|
+
* @param exports the context of the component to be loaded
|
|
65
|
+
*/
|
|
66
|
+
static load(moduleName: string, exports?: any): View;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Loads component from options
|
|
70
|
+
* @param options Load options
|
|
71
|
+
*/
|
|
72
|
+
static load(options: LoadOptions): View;
|
|
26
73
|
}
|
|
27
|
-
export declare function parse(value: string | Template, context?: any): View;
|
|
28
|
-
export declare function parseMultipleTemplates(value: string, context: any): Array<KeyedTemplate>;
|
|
29
|
-
export declare function load(pathOrOptions: string | LoadOptions, context?: any): View;
|
|
30
|
-
export declare function createViewFromEntry(entry: ViewEntry): View;
|
|
31
|
-
export declare function loadCustomComponent(componentNamespace: string, componentName?: string, attributes?: Object, context?: Object, parentPage?: View, isRootComponent?: boolean, moduleNamePath?: string): ComponentModule;
|
|
32
|
-
export declare function getExports(instance: ViewBase): any;
|
|
@@ -54,6 +54,8 @@ export class Button extends ButtonBase {
|
|
|
54
54
|
initNativeView() {
|
|
55
55
|
super.initNativeView();
|
|
56
56
|
const nativeView = this.nativeViewProtected;
|
|
57
|
+
// make consistent with iOS, easier on users given css styling
|
|
58
|
+
nativeView.setAllCaps(false);
|
|
57
59
|
initializeClickListener();
|
|
58
60
|
const clickListener = new ClickListener(this);
|
|
59
61
|
nativeView.setOnClickListener(clickListener);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../../packages/core/ui/button/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChM,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAyB,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,cAAc,iBAAiB,CAAC;AAMhC,IAAI,aAA4B,CAAC;AACjC,IAAI,aAA2C,CAAC;AAEhD,SAAS,uBAAuB;IAC/B,IAAI,aAAa,EAAE,CAAC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CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IACtK,CAAC;IAED,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,KAAa;QACvC,IAAI,WAAW,IAAI,EAAE,EAAE,CAAC;YACvB,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC;YAC5C,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBAC9B,IAAI,CAAC,kBAAkB,GAAS,UAAW,CAAC,oBAAoB,EAAE,CAAC;YACpE,CAAC;YACK,UAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;QAED,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;IAChF,CAAC;IAED,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,KAAkC;QACnE,kCAAkC;QAClC,MAAM,QAAQ,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;QACxD,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAES,mBAAmB;QAC5B,IAAI,WAAW,GAAG,EAAE,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC;QACV,CAAC;QAED,iFAAiF;QACjF,8EAA8E;QAC9E,+EAA+E;QAC/E,OAAO,CAAC,CAAC;IACV,CAAC;IAES,gCAAgC;QACzC,IAAI,WAAW,GAAG,EAAE,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC;QACV,CAAC;QAED,OAAO,CAAC,CAAC,CAAC,uCAAuC;IAClD,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../../packages/core/ui/button/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAA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nE,kCAAkC;QAClC,MAAM,QAAQ,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;QACxD,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAES,mBAAmB;QAC5B,IAAI,WAAW,GAAG,EAAE,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC;QACV,CAAC;QAED,iFAAiF;QACjF,8EAA8E;QAC9E,+EAA+E;QAC/E,OAAO,CAAC,CAAC;IACV,CAAC;IAES,gCAAgC;QACzC,IAAI,WAAW,GAAG,EAAE,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC;QACV,CAAC;QAED,OAAO,CAAC,CAAC,CAAC,uCAAuC;IAClD,CAAC;;AA3HD,qDAAqD;AACrD,2BAA2B;AACb,eAAQ,GAAG,QAAQ,CAAC;AAM3B;IADN,OAAO;8CAOP;AAqBD;IADC,kBAAkB,CAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;6DAQhE;AAoFF,MAAM,CAAC,SAAS,CAAC,8BAA8B,GAAG,IAAI,CAAC"}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import { View, CustomLayoutView, AddChildFromBuilder } from '../core/view';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
|
+
* @nsView ContentView
|
|
5
6
|
*/
|
|
6
7
|
export declare class ContentView extends CustomLayoutView implements AddChildFromBuilder {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Called when the content property has changed.
|
|
17
|
-
* @private
|
|
18
|
-
* @param oldView The previous content.
|
|
19
|
-
* @param newView The new content.
|
|
20
|
-
*/
|
|
21
|
-
_onContentChanged(oldView: View, newView: View): void;
|
|
22
|
-
_addChildFromBuilder(name: string, value: any): void;
|
|
23
|
-
eachChildView(callback: (child: View) => boolean): void;
|
|
24
|
-
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
|
|
25
|
-
onLayout(left: number, top: number, right: number, bottom: number): void;
|
|
8
|
+
/**
|
|
9
|
+
* Gets or sets the single child of the view.
|
|
10
|
+
*
|
|
11
|
+
* @nsProperty
|
|
12
|
+
*/
|
|
13
|
+
content: View;
|
|
14
|
+
layoutView(): View;
|
|
15
|
+
_addChildFromBuilder(name: string, value: any): void;
|
|
26
16
|
}
|