@akylas/nativescript 8.9.5 → 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.
Files changed (76) hide show
  1. package/accessibility/font-scale.android.d.ts +1 -0
  2. package/accessibility/font-scale.android.js +6 -31
  3. package/accessibility/font-scale.android.js.map +1 -1
  4. package/animation-frame/index.d.ts +17 -3
  5. package/application/application-common.d.ts +1 -1
  6. package/application/application-common.js +2 -1
  7. package/application/application-common.js.map +1 -1
  8. package/application/application-interfaces.d.ts +4 -0
  9. package/application/application.android.js +21 -1
  10. package/application/application.android.js.map +1 -1
  11. package/application/application.ios.js +18 -7
  12. package/application/application.ios.js.map +1 -1
  13. package/core-types/index.d.ts +2 -2
  14. package/core-types/index.js +1 -1
  15. package/core-types/index.js.map +1 -1
  16. package/debugger/devtools-elements.d.ts +23 -5
  17. package/debugger/dom-node.d.ts +23 -20
  18. package/file-system/index.d.ts +382 -98
  19. package/fps-meter/index.d.ts +24 -7
  20. package/globals/index.d.ts +4 -19
  21. package/http/index.d.ts +149 -73
  22. package/index.d.ts +24 -7
  23. package/matrix/index.d.ts +32 -5
  24. package/module-name-resolver/index.d.ts +21 -13
  25. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  26. package/package.json +5 -5
  27. package/platform/index.d.ts +26 -0
  28. package/platform/screen/index.android.js.map +1 -1
  29. package/platforms/android/widgets-release.aar +0 -0
  30. package/profiling/index.d.ts +153 -26
  31. package/text/formatted-string.d.ts +1 -1
  32. package/text/span.d.ts +1 -1
  33. package/trace/index.d.ts +131 -105
  34. package/ui/animation/keyframe-animation.d.ts +118 -66
  35. package/ui/builder/binding-builder.d.ts +15 -12
  36. package/ui/builder/index.d.ts +69 -28
  37. package/ui/button/index.android.js +2 -0
  38. package/ui/button/index.android.js.map +1 -1
  39. package/ui/content-view/index.d.ts +11 -21
  40. package/ui/core/view-base/index.d.ts +523 -585
  41. package/ui/core/weak-event-listener/index.d.ts +18 -2
  42. package/ui/dialogs/index.ios.js +4 -2
  43. package/ui/dialogs/index.ios.js.map +1 -1
  44. package/ui/editable-text-base/editable-text-base-common.js +1 -1
  45. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  46. package/ui/editable-text-base/index.android.d.ts +1 -1
  47. package/ui/editable-text-base/index.android.js +3 -0
  48. package/ui/editable-text-base/index.android.js.map +1 -1
  49. package/ui/editable-text-base/index.ios.d.ts +1 -1
  50. package/ui/editable-text-base/index.ios.js +3 -0
  51. package/ui/editable-text-base/index.ios.js.map +1 -1
  52. package/ui/layouts/index.d.ts +1 -2
  53. package/ui/placeholder/index.d.ts +46 -8
  54. package/ui/styling/background-common.d.ts +20 -20
  55. package/ui/styling/background-common.js +40 -40
  56. package/ui/styling/background-common.js.map +1 -1
  57. package/ui/styling/converters.d.ts +2 -2
  58. package/ui/styling/font-common.d.ts +7 -7
  59. package/ui/styling/font-common.js +14 -14
  60. package/ui/styling/font-common.js.map +1 -1
  61. package/ui/styling/font.d.ts +6 -6
  62. package/ui/styling/style-properties.d.ts +109 -92
  63. package/ui/styling/style-properties.js +23 -23
  64. package/ui/styling/style-properties.js.map +1 -1
  65. package/ui/styling/style-scope.d.ts +48 -79
  66. package/ui/text-base/formatted-string.d.ts +97 -36
  67. package/ui/text-base/span.d.ts +115 -38
  68. package/ui/text-field/index.android.js +3 -0
  69. package/ui/text-field/index.android.js.map +1 -1
  70. package/ui/transition/page-transition.android.js +15 -1
  71. package/ui/transition/page-transition.android.js.map +1 -1
  72. package/utils/debug.d.ts +61 -17
  73. package/utils/lazy.d.ts +5 -0
  74. package/utils/macrotask-scheduler.d.ts +5 -1
  75. package/utils/types.d.ts +115 -23
  76. 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
- write(message: any, category: string, type?: number): void;
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
- filter: string;
12
- on(object: Object, name: string, data?: any): void;
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
- handlerError(error: Error): any;
20
+ handlerError(error: Error): any;
19
21
  }
20
- export declare namespace Trace {
21
- /**
22
- * Enables the trace module.
23
- */
24
- function enable(): void;
25
- /**
26
- * Disables the trace module.
27
- */
28
- function disable(): void;
29
- /**
30
- * A function that returns whether the tracer is enabled and there is a point in writing messages.
31
- * Check this to avoid writing complex string templates.
32
- * Send error messages even if tracing is disabled.
33
- */
34
- function isEnabled(): boolean;
35
- /**
36
- * Adds a TraceWriter instance to the trace module.
37
- * @param writer The TraceWriter instance to add.
38
- */
39
- function addWriter(writer: TraceWriter): void;
40
- /**
41
- * Removes a TraceWriter instance from the trace module.
42
- * @param writer The TraceWriter instance to remove.
43
- */
44
- function removeWriter(writer: TraceWriter): void;
45
- /**
46
- * Clears all the writers from the trace module.
47
- */
48
- function clearWriters(): void;
49
- /**
50
- * Sets the categories the module will trace.
51
- * @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced.
52
- */
53
- function setCategories(categories: string): void;
54
- /**
55
- * Adds categories to existing categories the module will trace.
56
- * @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced.
57
- */
58
- function addCategories(categories: string): void;
59
- /**
60
- * Check if category is already set in trace module.
61
- * @param category The category to check.
62
- */
63
- function isCategorySet(category: string): boolean;
64
- /**
65
- * Writes a message using the available writers.
66
- * @param message The message to be written.
67
- * @param category The category of the message.
68
- * @param type Optional, the type of the message - info, warning, error.
69
- */
70
- function write(message: any, category: string, type?: number): void;
71
- /**
72
- * Notifies all the attached listeners for an event that has occurred in the sender object.
73
- * @param object The Object instance that raised the event.
74
- * @param name The name of the raised event.
75
- * @param data An optional parameter that passes the data associated with the event.
76
- */
77
- function notifyEvent(object: Object, name: string, data?: any): void;
78
- function addEventListener(listener: TraceEventListener): void;
79
- function removeEventListener(listener: TraceEventListener): void;
80
- namespace messageType {
81
- const log = 0;
82
- const info = 1;
83
- const warn = 2;
84
- const error = 3;
85
- }
86
- /**
87
- * all predefined categories.
88
- */
89
- namespace categories {
90
- const Accessibility = "Accessibility";
91
- const VisualTreeEvents = "VisualTreeEvents";
92
- const Layout = "Layout";
93
- const Style = "Style";
94
- const ViewHierarchy = "ViewHierarchy";
95
- const NativeLifecycle = "NativeLifecycle";
96
- const Debug = "Debug";
97
- const Navigation = "Navigation";
98
- const Test = "Test";
99
- const Binding = "Binding";
100
- const BindingError = "BindingError";
101
- const Error = "Error";
102
- const Animation = "Animation";
103
- const Transition = "Transition";
104
- const Livesync = "Livesync";
105
- const ModuleNameResolver = "ModuleNameResolver";
106
- const MediaQuery = "MediaQuery";
107
- const separator = ",";
108
- const All: string;
109
- function concat(...args: any): string;
110
- }
111
- class DefaultErrorHandler implements TraceErrorHandler {
112
- handlerError(error: any): void;
113
- }
114
- function getErrorHandler(): TraceErrorHandler;
115
- function setErrorHandler(handler: TraceErrorHandler): void;
116
- /**
117
- * Passes an error to the registered ErrorHandler
118
- * @param error The error to be handled.
119
- */
120
- function error(error: string | Error): void;
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
- export interface Keyframes {
5
- name: string;
6
- keyframes: Array<UnparsedKeyframe>;
7
- tag?: string | number;
8
- scopedTag?: string;
9
- mediaQueryString?: string;
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
- export declare class UnparsedKeyframe {
12
- values: Array<any>;
13
- declarations: Array<KeyframeDeclaration>;
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
- export declare class KeyframeDeclaration {
16
- property: string;
17
- value: any;
28
+
29
+ export interface UnparsedKeyframe {
30
+ values: Array<any>;
31
+ declarations: Array<KeyframeDeclaration>;
18
32
  }
19
- export declare class KeyframeInfo {
20
- duration: number;
21
- declarations: Array<KeyframeDeclaration>;
22
- curve?: any;
33
+
34
+ export interface KeyframeDeclaration {
35
+ property: string;
36
+ value: any;
23
37
  }
24
- export declare class KeyframeAnimationInfo {
25
- keyframes: Array<KeyframeInfo>;
26
- name?: string;
27
- duration?: number;
28
- delay?: number;
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
- interface Keyframe {
35
- backgroundColor?: Color;
36
- scale?: {
37
- x: number;
38
- y: number;
39
- };
40
- translate?: {
41
- x: number;
42
- y: number;
43
- };
44
- rotate?: {
45
- x: number;
46
- y: number;
47
- z: number;
48
- } | number;
49
- opacity?: number;
50
- width?: CoreTypes.PercentLengthType;
51
- height?: CoreTypes.PercentLengthType;
52
- valueSource?: 'keyframe' | 'animation';
53
- duration?: number;
54
- curve?: any;
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
- export declare class KeyframeAnimation {
57
- animations: Array<Keyframe>;
58
- delay: number;
59
- iterations: number;
60
- private _resolve;
61
- private _isPlaying;
62
- private _isForwards;
63
- private _nativeAnimations;
64
- private _target;
65
- static keyframeAnimationFromInfo(info: KeyframeAnimationInfo): KeyframeAnimation;
66
- private static parseKeyframe;
67
- get isPlaying(): boolean;
68
- cancel(): void;
69
- play(view: View): Promise<void>;
70
- private animate;
71
- _resolveAnimationFinishedPromise(): void;
72
- _resetAnimations(): void;
73
- private _resetAnimationValues;
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
- export declare namespace bindingConstants {
2
- const sourceProperty = "sourceProperty";
3
- const targetProperty = "targetProperty";
4
- const expression = "expression";
5
- const twoWay = "twoWay";
6
- const source = "source";
7
- const bindingValueKey = "$value";
8
- const parentValueKey = "$parent";
9
- const parentsValueKey = "$parents";
10
- const newPropertyValueKey = "$newPropertyValue";
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
- export declare const parentsRegex: RegExp;
13
- export declare function getBindingOptions(name: string, value: string): any;
13
+
14
+ export function getBindingOptions(name: string, value: string): any;
15
+
16
+ export const parentsRegex: RegExp;
@@ -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 type { ComponentModule } from './component-builder';
6
- export declare const ios: string;
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
- path: string;
13
- name: string;
14
- attributes?: any;
15
- exports?: any;
16
- page?: Page;
6
+ path: string;
7
+ name: string;
8
+ attributes?: any;
9
+ exports?: any;
10
+ page?: Page;
17
11
  }
18
- export declare class Builder {
19
- static knownTemplates: Set<string>;
20
- static knownMultiTemplates: Set<string>;
21
- static knownCollections: Set<string>;
22
- static createViewFromEntry(entry: ViewEntry): View;
23
- static parse(value: string | Template, context?: any): View;
24
- static load(pathOrOptions: string | LoadOptions, context?: any): View;
25
- static parseMultipleTemplates(value: string, context: any): Array<KeyedTemplate>;
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;QACnB,OAAO;IACR,CAAC;;;;;;;;;;;;;;;;;;;IAmBD,aAAa,GAAG,iBAAiB,CAAC;AACnC,CAAC;AAED,SAAS,mBAAmB,CAAC,IAA2B;IACvD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAgB,CAAC;IAErC,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC;QACrB,KAAK,WAAW,CAAC,EAAE,CAAC;QACpB,KAAK,WAAW,CAAC,MAAM;YACtB,MAAM,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;YACzC,MAAM;QACP,KAAK,WAAW,CAAC,IAAI;YACpB,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;YAC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AmB;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
- * Represents a View that has a single child - content.
4
- * The View itself does not have visual representation and serves as a placeholder for its content in the logical tree.
4
+ *
5
+ * @nsView ContentView
5
6
  */
6
7
  export declare class ContentView extends CustomLayoutView implements AddChildFromBuilder {
7
- private _content;
8
- /**
9
- * Gets or sets the single child of the view.
10
- */
11
- get content(): View;
12
- set content(value: View);
13
- get layoutView(): View;
14
- get _childrenCount(): number;
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
  }