@akylas/nativescript 8.9.6 → 8.9.9
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 +2 -2
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.android.js.map +1 -1
- package/platforms/android/widgets-release.aar +0 -0
- 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/placeholder/index.d.ts +46 -8
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/style-properties.d.ts +109 -92
- 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/utils/types.d.ts
CHANGED
|
@@ -1,24 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A function that checks if something is a valid string.
|
|
3
|
+
* @param value The value which will be checked.
|
|
4
|
+
* Returns true if value is a string.
|
|
5
|
+
*/
|
|
6
|
+
export function isString(value: any): boolean;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A function that checks if something is a valid number.
|
|
10
|
+
* @param value The value which will be checked.
|
|
11
|
+
* Returns true if value is a number.
|
|
12
|
+
*/
|
|
13
|
+
export function isNumber(value: any): boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A function that checks if something is a valid boolean.
|
|
17
|
+
* @param value The value which will be checked.
|
|
18
|
+
* Returns true if value is a boolean.
|
|
19
|
+
*/
|
|
20
|
+
export function isBoolean(value: any): boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A function that checks if something is a function.
|
|
24
|
+
* @param value The value which will be checked.
|
|
25
|
+
* Returns true if value is a function.
|
|
26
|
+
*/
|
|
27
|
+
export function isFunction(value: any): boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A function that checks if something is an object.
|
|
31
|
+
* @param value The value which will be checked.
|
|
32
|
+
* Returns true if value is an object.
|
|
33
|
+
*/
|
|
34
|
+
export function isObject(value: any): boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A function that checks if something is "undefined".
|
|
38
|
+
* @param value The value which will be checked.
|
|
39
|
+
* Returns true if value is "undefined".
|
|
40
|
+
*/
|
|
41
|
+
export function isUndefined(value: any): boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A function that checks if something is defined (not undefined).
|
|
45
|
+
* @param value The value which will be checked.
|
|
46
|
+
* Returns true if value is defined.
|
|
47
|
+
*/
|
|
48
|
+
export function isDefined(value: any): boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A function that checks if something is not defined (null or undefined).
|
|
52
|
+
* @param value The value which will be checked.
|
|
53
|
+
* Returns true if value is null or undefined.
|
|
54
|
+
*/
|
|
55
|
+
export function isNullOrUndefined(value: any): boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A function that checks if something is a valid function.
|
|
59
|
+
* @param value The value which will be checked.
|
|
60
|
+
* Throws exception if passed value is not a valid function.
|
|
61
|
+
*/
|
|
62
|
+
export function verifyCallback(value: any): void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Checks if the number has decimals
|
|
66
|
+
* @param value Number to check
|
|
67
|
+
*/
|
|
68
|
+
export function numberHasDecimals(value: number): boolean;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Checks if the number is 64 bit
|
|
72
|
+
* @param value Number to check
|
|
73
|
+
*/
|
|
74
|
+
export function numberIs64Bit(value: number): boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A function that gets the class name of an object.
|
|
78
|
+
* @param object The object.
|
|
79
|
+
* Returns a string with the name of the class.
|
|
80
|
+
*/
|
|
81
|
+
export function getClass(object): string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* A function that gets the entire class hierarchy of an object.
|
|
85
|
+
* @param object The object.
|
|
86
|
+
* Returns an array of strings with the name of all base classes.
|
|
87
|
+
*/
|
|
88
|
+
export function getBaseClasses(object): Array<string>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* A function that gets the ClassInfo for an object.
|
|
92
|
+
* @param object The object.
|
|
93
|
+
* Returns a ClassInfo for the object.
|
|
94
|
+
*/
|
|
95
|
+
export function getClassInfo(object: Object): ClassInfo;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A Class holding information about a class
|
|
99
|
+
*/
|
|
100
|
+
export class ClassInfo {
|
|
101
|
+
/**
|
|
102
|
+
* Gets the name of the class.
|
|
103
|
+
*/
|
|
104
|
+
name: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Gets the ClassInfo for the base class of the current info.
|
|
108
|
+
*/
|
|
109
|
+
baseClassInfo: ClassInfo;
|
|
23
110
|
}
|
|
24
|
-
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns a string representation of an object to be shown in UI.
|
|
114
|
+
* @param object The object.
|
|
115
|
+
*/
|
|
116
|
+
export function toUIString(object): string;
|
package/xml/index.d.ts
CHANGED
|
@@ -1,51 +1,112 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Contains the XmlParser class, which is a SAX parser using the easysax implementation.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the type of parser event.
|
|
7
|
+
*/
|
|
8
|
+
export class ParserEventType {
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the StartElement event type.
|
|
11
|
+
*/
|
|
12
|
+
static StartElement: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the EndElement event type.
|
|
16
|
+
*/
|
|
17
|
+
static EndElement: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the Text event type.
|
|
21
|
+
*/
|
|
22
|
+
static Text: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the CDATA event type.
|
|
26
|
+
*/
|
|
27
|
+
static CDATA: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the Comment event type.
|
|
31
|
+
*/
|
|
32
|
+
static Comment: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
2
35
|
/**
|
|
3
36
|
* Defines a position within string, in line and column form.
|
|
4
37
|
*/
|
|
5
38
|
export interface Position {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare class ParserEventType implements definition.ParserEventType {
|
|
16
|
-
static StartElement: string;
|
|
17
|
-
static EndElement: string;
|
|
18
|
-
static Text: string;
|
|
19
|
-
static CDATA: string;
|
|
20
|
-
static Comment: string;
|
|
39
|
+
/**
|
|
40
|
+
* The line number. The first line is at index 1.
|
|
41
|
+
*/
|
|
42
|
+
line: number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The column number. The first character is at index 1.
|
|
46
|
+
*/
|
|
47
|
+
column: number;
|
|
21
48
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Provides information for a parser event.
|
|
52
|
+
*/
|
|
53
|
+
export interface ParserEvent {
|
|
54
|
+
/**
|
|
55
|
+
* Returns the type of the parser event. This is one of the ParserEventType static members.
|
|
56
|
+
*/
|
|
57
|
+
eventType: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Get the position in the xml string where the event was generated.
|
|
61
|
+
*/
|
|
62
|
+
position: Position;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* If namespace processing is enabled, returns the prefix of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
|
|
66
|
+
*/
|
|
67
|
+
prefix?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* If namespace processing is enabled, returns the namespace of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
|
|
71
|
+
*/
|
|
72
|
+
namespace?: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Returns the name of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
|
|
76
|
+
*/
|
|
77
|
+
elementName?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Returns a JSON object with the attributes of an element in case the eventType is ParserEventType.StartElement.
|
|
81
|
+
*/
|
|
82
|
+
attributes?: Object;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Returns the relevant data in case the eventType is ParserEventType.Text, ParserEventType.CDATA or ParserEventType.Comment.
|
|
86
|
+
*/
|
|
87
|
+
data?: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returns a JSON string representation of this instance.
|
|
91
|
+
*/
|
|
92
|
+
toString(): string;
|
|
39
93
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14
|
|
97
|
+
*/
|
|
98
|
+
export class XmlParser {
|
|
99
|
+
/**
|
|
100
|
+
* Creates a new instance of the XmlParser class.
|
|
101
|
+
* @param onEvent The callback to execute when a parser event occurs. The 'event' parameter contains information about the event.
|
|
102
|
+
* @param onError The callback to execute when a parser error occurs. The 'error' parameter contains the error.
|
|
103
|
+
* @param processNamespaces Specifies whether namespaces should be processed.
|
|
104
|
+
*/
|
|
105
|
+
constructor(onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean, angularSyntax?: boolean);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Parses the supplied xml string.
|
|
109
|
+
* @param xmlString The string containing the xml to parse.
|
|
110
|
+
*/
|
|
111
|
+
parse(xmlString: string): void;
|
|
51
112
|
}
|