@akylas/nativescript 8.1.3 → 8.1.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/accessibility-types.d.ts +58 -58
- package/accessibility/accessibility-types.js +58 -58
- package/accessibility/accessibility-types.js.map +1 -1
- package/accessibility/index.android.d.ts +0 -1
- package/accessibility/index.android.js +11 -3
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.d.ts +0 -1
- package/accessibility/index.ios.js +21 -13
- package/accessibility/index.ios.js.map +1 -1
- package/application/index.android.js +3 -4
- package/application/index.android.js.map +1 -1
- package/application/index.ios.js +0 -4
- package/application/index.ios.js.map +1 -1
- package/config/config.interface.d.ts +39 -0
- package/debugger/dom-node.js +1 -1
- package/debugger/dom-node.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/native-api-usage.json +4 -0
- package/ui/action-bar/index.ios.d.ts +2 -0
- package/ui/action-bar/index.ios.js +17 -16
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/builder/component-builder/index.js +1 -1
- package/ui/builder/component-builder/index.js.map +1 -1
- package/ui/builder/xml2ui.d.ts +1 -1
- package/ui/builder/xml2ui.js.map +1 -1
- package/ui/core/bindable/index.js +3 -3
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/view/index.android.d.ts +0 -1
- package/ui/core/view/index.android.js +1 -5
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.ios.d.ts +1 -1
- package/ui/core/view/index.ios.js +14 -4
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +0 -4
- package/ui/core/view/view-common.js +1 -5
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/editable-text-base/index.android.js +1 -5
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/frame/index.android.js +3 -3
- package/ui/frame/index.android.js.map +1 -1
- package/ui/page/index.android.js +3 -1
- package/ui/page/index.android.js.map +1 -1
- package/ui/styling/css-selector/index.js +2 -1
- package/ui/styling/css-selector/index.js.map +1 -1
- package/ui/styling/style-scope.js +10 -7
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/text-base/index.android.js +1 -1
- package/ui/text-base/text-base-common.js +3 -4
- package/ui/text-base/text-base-common.js.map +1 -1
- package/ui/text-view/index.ios.js +1 -1
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/web-view/index.d.ts +5 -0
- package/utils/index.android.d.ts +1 -1
- package/utils/index.android.js +2 -2
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +2 -1
- package/css/LICENSE +0 -9
- package/css/Readme.md +0 -278
- package/css-value/LICENSE +0 -9
- package/css-value/Readme.md +0 -45
- package/fetch/LICENSE +0 -20
- package/fetch/README.md +0 -1
- package/js-libs/easysax/LICENSE +0 -20
- package/js-libs/easysax/README.md +0 -46
- package/js-libs/esprima/LICENSE.BSD +0 -19
- package/js-libs/esprima/README.md +0 -24
- package/js-libs/polymer-expressions/LICENSE +0 -27
- package/js-libs/polymer-expressions/README.md +0 -0
- package/platforms/README.md +0 -1
|
@@ -3,216 +3,216 @@ export declare enum AccessibilityTrait {
|
|
|
3
3
|
/**
|
|
4
4
|
* The element allows direct touch interaction for VoiceOver users.
|
|
5
5
|
*/
|
|
6
|
-
AllowsDirectInteraction =
|
|
6
|
+
AllowsDirectInteraction = 0,
|
|
7
7
|
/**
|
|
8
8
|
* The element should cause an automatic page turn when VoiceOver finishes reading the text within it.
|
|
9
9
|
* Note: Requires custom view with accessibilityScroll(...)
|
|
10
10
|
*/
|
|
11
|
-
CausesPageTurn =
|
|
11
|
+
CausesPageTurn = 1,
|
|
12
12
|
/**
|
|
13
13
|
* The element is not enabled and does not respond to user interaction.
|
|
14
14
|
*/
|
|
15
|
-
NotEnabled =
|
|
15
|
+
NotEnabled = 2,
|
|
16
16
|
/**
|
|
17
17
|
* The element is currently selected.
|
|
18
18
|
*/
|
|
19
|
-
Selected =
|
|
19
|
+
Selected = 3,
|
|
20
20
|
/**
|
|
21
21
|
* The element frequently updates its label or value.
|
|
22
22
|
*/
|
|
23
|
-
UpdatesFrequently =
|
|
23
|
+
UpdatesFrequently = 4
|
|
24
24
|
}
|
|
25
25
|
export declare enum AccessibilityRole {
|
|
26
26
|
/**
|
|
27
27
|
* The element allows continuous adjustment through a range of values.
|
|
28
28
|
*/
|
|
29
|
-
Adjustable =
|
|
29
|
+
Adjustable = 0,
|
|
30
30
|
/**
|
|
31
31
|
* The element should be treated as a button.
|
|
32
32
|
*/
|
|
33
|
-
Button =
|
|
33
|
+
Button = 1,
|
|
34
34
|
/**
|
|
35
35
|
* The element behaves like a Checkbox
|
|
36
36
|
*/
|
|
37
|
-
Checkbox =
|
|
37
|
+
Checkbox = 2,
|
|
38
38
|
/**
|
|
39
39
|
* The element is a header that divides content into sections, such as the title of a navigation bar.
|
|
40
40
|
*/
|
|
41
|
-
Header =
|
|
41
|
+
Header = 3,
|
|
42
42
|
/**
|
|
43
43
|
* The element should be treated as an image.
|
|
44
44
|
*/
|
|
45
|
-
Image =
|
|
45
|
+
Image = 4,
|
|
46
46
|
/**
|
|
47
47
|
* The element should be treated as a image button.
|
|
48
48
|
*/
|
|
49
|
-
ImageButton =
|
|
49
|
+
ImageButton = 5,
|
|
50
50
|
/**
|
|
51
51
|
* The element behaves as a keyboard key.
|
|
52
52
|
*/
|
|
53
|
-
KeyboardKey =
|
|
53
|
+
KeyboardKey = 6,
|
|
54
54
|
/**
|
|
55
55
|
* The element should be treated as a link.
|
|
56
56
|
*/
|
|
57
|
-
Link =
|
|
57
|
+
Link = 7,
|
|
58
58
|
/**
|
|
59
59
|
* The element has no traits.
|
|
60
60
|
*/
|
|
61
|
-
None =
|
|
61
|
+
None = 8,
|
|
62
62
|
/**
|
|
63
63
|
* The element plays its own sound when activated.
|
|
64
64
|
*/
|
|
65
|
-
PlaysSound =
|
|
65
|
+
PlaysSound = 9,
|
|
66
66
|
/**
|
|
67
67
|
* The element behaves like a ProgressBar
|
|
68
68
|
*/
|
|
69
|
-
ProgressBar =
|
|
69
|
+
ProgressBar = 10,
|
|
70
70
|
/**
|
|
71
71
|
* The element behaves like a RadioButton
|
|
72
72
|
*/
|
|
73
|
-
RadioButton =
|
|
73
|
+
RadioButton = 11,
|
|
74
74
|
/**
|
|
75
75
|
* The element should be treated as a search field.
|
|
76
76
|
*/
|
|
77
|
-
Search =
|
|
77
|
+
Search = 12,
|
|
78
78
|
/**
|
|
79
79
|
* The element behaves like a SpinButton
|
|
80
80
|
*/
|
|
81
|
-
SpinButton =
|
|
81
|
+
SpinButton = 13,
|
|
82
82
|
/**
|
|
83
83
|
* The element starts a media session when it is activated.
|
|
84
84
|
*/
|
|
85
|
-
StartsMediaSession =
|
|
85
|
+
StartsMediaSession = 14,
|
|
86
86
|
/**
|
|
87
87
|
* The element should be treated as static text that cannot change.
|
|
88
88
|
*/
|
|
89
|
-
StaticText =
|
|
89
|
+
StaticText = 15,
|
|
90
90
|
/**
|
|
91
91
|
* The element provides summary information when the application starts.
|
|
92
92
|
*/
|
|
93
|
-
Summary =
|
|
93
|
+
Summary = 16,
|
|
94
94
|
/**
|
|
95
95
|
* The element behaves like a switch
|
|
96
96
|
*/
|
|
97
|
-
Switch =
|
|
97
|
+
Switch = 17
|
|
98
98
|
}
|
|
99
99
|
export declare enum AccessibilityState {
|
|
100
|
-
Selected =
|
|
101
|
-
Checked =
|
|
102
|
-
Unchecked =
|
|
103
|
-
Disabled =
|
|
100
|
+
Selected = 0,
|
|
101
|
+
Checked = 1,
|
|
102
|
+
Unchecked = 2,
|
|
103
|
+
Disabled = 3
|
|
104
104
|
}
|
|
105
105
|
export declare enum AccessibilityLiveRegion {
|
|
106
|
-
None =
|
|
107
|
-
Polite =
|
|
108
|
-
Assertive =
|
|
106
|
+
None = 0,
|
|
107
|
+
Polite = 1,
|
|
108
|
+
Assertive = 2
|
|
109
109
|
}
|
|
110
110
|
export declare enum IOSPostAccessibilityNotificationType {
|
|
111
|
-
Announcement =
|
|
112
|
-
Screen =
|
|
113
|
-
Layout =
|
|
111
|
+
Announcement = 0,
|
|
112
|
+
Screen = 1,
|
|
113
|
+
Layout = 2
|
|
114
114
|
}
|
|
115
115
|
export declare enum AndroidAccessibilityEvent {
|
|
116
116
|
/**
|
|
117
117
|
* Invalid selection/focus position.
|
|
118
118
|
*/
|
|
119
|
-
INVALID_POSITION =
|
|
119
|
+
INVALID_POSITION = 0,
|
|
120
120
|
/**
|
|
121
121
|
* Maximum length of the text fields.
|
|
122
122
|
*/
|
|
123
|
-
MAX_TEXT_LENGTH =
|
|
123
|
+
MAX_TEXT_LENGTH = 1,
|
|
124
124
|
/**
|
|
125
125
|
* Represents the event of clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
|
|
126
126
|
*/
|
|
127
|
-
VIEW_CLICKED =
|
|
127
|
+
VIEW_CLICKED = 2,
|
|
128
128
|
/**
|
|
129
129
|
* Represents the event of long clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
|
|
130
130
|
*/
|
|
131
|
-
VIEW_LONG_CLICKED =
|
|
131
|
+
VIEW_LONG_CLICKED = 3,
|
|
132
132
|
/**
|
|
133
133
|
* Represents the event of selecting an item usually in the context of an android.widget.AdapterView.
|
|
134
134
|
*/
|
|
135
|
-
VIEW_SELECTED =
|
|
135
|
+
VIEW_SELECTED = 4,
|
|
136
136
|
/**
|
|
137
137
|
* Represents the event of setting input focus of a android.view.View.
|
|
138
138
|
*/
|
|
139
|
-
VIEW_FOCUSED =
|
|
139
|
+
VIEW_FOCUSED = 5,
|
|
140
140
|
/**
|
|
141
141
|
* Represents the event of changing the text of an android.widget.EditText.
|
|
142
142
|
*/
|
|
143
|
-
VIEW_TEXT_CHANGED =
|
|
143
|
+
VIEW_TEXT_CHANGED = 6,
|
|
144
144
|
/**
|
|
145
145
|
* Represents the event of opening a android.widget.PopupWindow, android.view.Menu, android.app.Dialog, etc.
|
|
146
146
|
*/
|
|
147
|
-
WINDOW_STATE_CHANGED =
|
|
147
|
+
WINDOW_STATE_CHANGED = 7,
|
|
148
148
|
/**
|
|
149
149
|
* Represents the event showing a android.app.Notification.
|
|
150
150
|
*/
|
|
151
|
-
NOTIFICATION_STATE_CHANGED =
|
|
151
|
+
NOTIFICATION_STATE_CHANGED = 8,
|
|
152
152
|
/**
|
|
153
153
|
* Represents the event of a hover enter over a android.view.View.
|
|
154
154
|
*/
|
|
155
|
-
VIEW_HOVER_ENTER =
|
|
155
|
+
VIEW_HOVER_ENTER = 9,
|
|
156
156
|
/**
|
|
157
157
|
* Represents the event of a hover exit over a android.view.View.
|
|
158
158
|
*/
|
|
159
|
-
VIEW_HOVER_EXIT =
|
|
159
|
+
VIEW_HOVER_EXIT = 10,
|
|
160
160
|
/**
|
|
161
161
|
* Represents the event of starting a touch exploration gesture.
|
|
162
162
|
*/
|
|
163
|
-
TOUCH_EXPLORATION_GESTURE_START =
|
|
163
|
+
TOUCH_EXPLORATION_GESTURE_START = 11,
|
|
164
164
|
/**
|
|
165
165
|
* Represents the event of ending a touch exploration gesture.
|
|
166
166
|
*/
|
|
167
|
-
TOUCH_EXPLORATION_GESTURE_END =
|
|
167
|
+
TOUCH_EXPLORATION_GESTURE_END = 12,
|
|
168
168
|
/**
|
|
169
169
|
* Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source.
|
|
170
170
|
*/
|
|
171
|
-
WINDOW_CONTENT_CHANGED =
|
|
171
|
+
WINDOW_CONTENT_CHANGED = 13,
|
|
172
172
|
/**
|
|
173
173
|
* Represents the event of scrolling a view.
|
|
174
174
|
*/
|
|
175
|
-
VIEW_SCROLLED =
|
|
175
|
+
VIEW_SCROLLED = 14,
|
|
176
176
|
/**
|
|
177
177
|
* Represents the event of changing the selection in an android.widget.EditText.
|
|
178
178
|
*/
|
|
179
|
-
VIEW_TEXT_SELECTION_CHANGED =
|
|
179
|
+
VIEW_TEXT_SELECTION_CHANGED = 15,
|
|
180
180
|
/**
|
|
181
181
|
* Represents the event of an application making an announcement.
|
|
182
182
|
*/
|
|
183
|
-
ANNOUNCEMENT =
|
|
183
|
+
ANNOUNCEMENT = 16,
|
|
184
184
|
/**
|
|
185
185
|
* Represents the event of gaining accessibility focus.
|
|
186
186
|
*/
|
|
187
|
-
VIEW_ACCESSIBILITY_FOCUSED =
|
|
187
|
+
VIEW_ACCESSIBILITY_FOCUSED = 17,
|
|
188
188
|
/**
|
|
189
189
|
* Represents the event of clearing accessibility focus.
|
|
190
190
|
*/
|
|
191
|
-
VIEW_ACCESSIBILITY_FOCUS_CLEARED =
|
|
191
|
+
VIEW_ACCESSIBILITY_FOCUS_CLEARED = 18,
|
|
192
192
|
/**
|
|
193
193
|
* Represents the event of traversing the text of a view at a given movement granularity.
|
|
194
194
|
*/
|
|
195
|
-
VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY =
|
|
195
|
+
VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 19,
|
|
196
196
|
/**
|
|
197
197
|
* Represents the event of beginning gesture detection.
|
|
198
198
|
*/
|
|
199
|
-
GESTURE_DETECTION_START =
|
|
199
|
+
GESTURE_DETECTION_START = 20,
|
|
200
200
|
/**
|
|
201
201
|
* Represents the event of ending gesture detection.
|
|
202
202
|
*/
|
|
203
|
-
GESTURE_DETECTION_END =
|
|
203
|
+
GESTURE_DETECTION_END = 21,
|
|
204
204
|
/**
|
|
205
205
|
* Represents the event of the user starting to touch the screen.
|
|
206
206
|
*/
|
|
207
|
-
TOUCH_INTERACTION_START =
|
|
207
|
+
TOUCH_INTERACTION_START = 22,
|
|
208
208
|
/**
|
|
209
209
|
* Represents the event of the user ending to touch the screen.
|
|
210
210
|
*/
|
|
211
|
-
TOUCH_INTERACTION_END =
|
|
211
|
+
TOUCH_INTERACTION_END = 23,
|
|
212
212
|
/**
|
|
213
213
|
* Mask for AccessibilityEvent all types.
|
|
214
214
|
*/
|
|
215
|
-
ALL_MASK =
|
|
215
|
+
ALL_MASK = 24
|
|
216
216
|
}
|
|
217
217
|
export interface AccessibilityEventPerformEscape extends EventData {
|
|
218
218
|
cancel?: boolean;
|
|
@@ -3,220 +3,220 @@ export var AccessibilityTrait;
|
|
|
3
3
|
/**
|
|
4
4
|
* The element allows direct touch interaction for VoiceOver users.
|
|
5
5
|
*/
|
|
6
|
-
AccessibilityTrait["AllowsDirectInteraction"] = "
|
|
6
|
+
AccessibilityTrait[AccessibilityTrait["AllowsDirectInteraction"] = 0] = "AllowsDirectInteraction";
|
|
7
7
|
/**
|
|
8
8
|
* The element should cause an automatic page turn when VoiceOver finishes reading the text within it.
|
|
9
9
|
* Note: Requires custom view with accessibilityScroll(...)
|
|
10
10
|
*/
|
|
11
|
-
AccessibilityTrait["CausesPageTurn"] = "
|
|
11
|
+
AccessibilityTrait[AccessibilityTrait["CausesPageTurn"] = 1] = "CausesPageTurn";
|
|
12
12
|
/**
|
|
13
13
|
* The element is not enabled and does not respond to user interaction.
|
|
14
14
|
*/
|
|
15
|
-
AccessibilityTrait["NotEnabled"] = "
|
|
15
|
+
AccessibilityTrait[AccessibilityTrait["NotEnabled"] = 2] = "NotEnabled";
|
|
16
16
|
/**
|
|
17
17
|
* The element is currently selected.
|
|
18
18
|
*/
|
|
19
|
-
AccessibilityTrait["Selected"] = "
|
|
19
|
+
AccessibilityTrait[AccessibilityTrait["Selected"] = 3] = "Selected";
|
|
20
20
|
/**
|
|
21
21
|
* The element frequently updates its label or value.
|
|
22
22
|
*/
|
|
23
|
-
AccessibilityTrait["UpdatesFrequently"] = "
|
|
23
|
+
AccessibilityTrait[AccessibilityTrait["UpdatesFrequently"] = 4] = "UpdatesFrequently";
|
|
24
24
|
})(AccessibilityTrait || (AccessibilityTrait = {}));
|
|
25
25
|
export var AccessibilityRole;
|
|
26
26
|
(function (AccessibilityRole) {
|
|
27
27
|
/**
|
|
28
28
|
* The element allows continuous adjustment through a range of values.
|
|
29
29
|
*/
|
|
30
|
-
AccessibilityRole["Adjustable"] = "
|
|
30
|
+
AccessibilityRole[AccessibilityRole["Adjustable"] = 0] = "Adjustable";
|
|
31
31
|
/**
|
|
32
32
|
* The element should be treated as a button.
|
|
33
33
|
*/
|
|
34
|
-
AccessibilityRole["Button"] = "
|
|
34
|
+
AccessibilityRole[AccessibilityRole["Button"] = 1] = "Button";
|
|
35
35
|
/**
|
|
36
36
|
* The element behaves like a Checkbox
|
|
37
37
|
*/
|
|
38
|
-
AccessibilityRole["Checkbox"] = "
|
|
38
|
+
AccessibilityRole[AccessibilityRole["Checkbox"] = 2] = "Checkbox";
|
|
39
39
|
/**
|
|
40
40
|
* The element is a header that divides content into sections, such as the title of a navigation bar.
|
|
41
41
|
*/
|
|
42
|
-
AccessibilityRole["Header"] = "
|
|
42
|
+
AccessibilityRole[AccessibilityRole["Header"] = 3] = "Header";
|
|
43
43
|
/**
|
|
44
44
|
* The element should be treated as an image.
|
|
45
45
|
*/
|
|
46
|
-
AccessibilityRole["Image"] = "
|
|
46
|
+
AccessibilityRole[AccessibilityRole["Image"] = 4] = "Image";
|
|
47
47
|
/**
|
|
48
48
|
* The element should be treated as a image button.
|
|
49
49
|
*/
|
|
50
|
-
AccessibilityRole["ImageButton"] = "
|
|
50
|
+
AccessibilityRole[AccessibilityRole["ImageButton"] = 5] = "ImageButton";
|
|
51
51
|
/**
|
|
52
52
|
* The element behaves as a keyboard key.
|
|
53
53
|
*/
|
|
54
|
-
AccessibilityRole["KeyboardKey"] = "
|
|
54
|
+
AccessibilityRole[AccessibilityRole["KeyboardKey"] = 6] = "KeyboardKey";
|
|
55
55
|
/**
|
|
56
56
|
* The element should be treated as a link.
|
|
57
57
|
*/
|
|
58
|
-
AccessibilityRole["Link"] = "
|
|
58
|
+
AccessibilityRole[AccessibilityRole["Link"] = 7] = "Link";
|
|
59
59
|
/**
|
|
60
60
|
* The element has no traits.
|
|
61
61
|
*/
|
|
62
|
-
AccessibilityRole["None"] = "
|
|
62
|
+
AccessibilityRole[AccessibilityRole["None"] = 8] = "None";
|
|
63
63
|
/**
|
|
64
64
|
* The element plays its own sound when activated.
|
|
65
65
|
*/
|
|
66
|
-
AccessibilityRole["PlaysSound"] = "
|
|
66
|
+
AccessibilityRole[AccessibilityRole["PlaysSound"] = 9] = "PlaysSound";
|
|
67
67
|
/**
|
|
68
68
|
* The element behaves like a ProgressBar
|
|
69
69
|
*/
|
|
70
|
-
AccessibilityRole["ProgressBar"] = "
|
|
70
|
+
AccessibilityRole[AccessibilityRole["ProgressBar"] = 10] = "ProgressBar";
|
|
71
71
|
/**
|
|
72
72
|
* The element behaves like a RadioButton
|
|
73
73
|
*/
|
|
74
|
-
AccessibilityRole["RadioButton"] = "
|
|
74
|
+
AccessibilityRole[AccessibilityRole["RadioButton"] = 11] = "RadioButton";
|
|
75
75
|
/**
|
|
76
76
|
* The element should be treated as a search field.
|
|
77
77
|
*/
|
|
78
|
-
AccessibilityRole["Search"] = "
|
|
78
|
+
AccessibilityRole[AccessibilityRole["Search"] = 12] = "Search";
|
|
79
79
|
/**
|
|
80
80
|
* The element behaves like a SpinButton
|
|
81
81
|
*/
|
|
82
|
-
AccessibilityRole["SpinButton"] = "
|
|
82
|
+
AccessibilityRole[AccessibilityRole["SpinButton"] = 13] = "SpinButton";
|
|
83
83
|
/**
|
|
84
84
|
* The element starts a media session when it is activated.
|
|
85
85
|
*/
|
|
86
|
-
AccessibilityRole["StartsMediaSession"] = "
|
|
86
|
+
AccessibilityRole[AccessibilityRole["StartsMediaSession"] = 14] = "StartsMediaSession";
|
|
87
87
|
/**
|
|
88
88
|
* The element should be treated as static text that cannot change.
|
|
89
89
|
*/
|
|
90
|
-
AccessibilityRole["StaticText"] = "
|
|
90
|
+
AccessibilityRole[AccessibilityRole["StaticText"] = 15] = "StaticText";
|
|
91
91
|
/**
|
|
92
92
|
* The element provides summary information when the application starts.
|
|
93
93
|
*/
|
|
94
|
-
AccessibilityRole["Summary"] = "
|
|
94
|
+
AccessibilityRole[AccessibilityRole["Summary"] = 16] = "Summary";
|
|
95
95
|
/**
|
|
96
96
|
* The element behaves like a switch
|
|
97
97
|
*/
|
|
98
|
-
AccessibilityRole["Switch"] = "
|
|
98
|
+
AccessibilityRole[AccessibilityRole["Switch"] = 17] = "Switch";
|
|
99
99
|
})(AccessibilityRole || (AccessibilityRole = {}));
|
|
100
100
|
export var AccessibilityState;
|
|
101
101
|
(function (AccessibilityState) {
|
|
102
|
-
AccessibilityState["Selected"] = "
|
|
103
|
-
AccessibilityState["Checked"] = "
|
|
104
|
-
AccessibilityState["Unchecked"] = "
|
|
105
|
-
AccessibilityState["Disabled"] = "
|
|
102
|
+
AccessibilityState[AccessibilityState["Selected"] = 0] = "Selected";
|
|
103
|
+
AccessibilityState[AccessibilityState["Checked"] = 1] = "Checked";
|
|
104
|
+
AccessibilityState[AccessibilityState["Unchecked"] = 2] = "Unchecked";
|
|
105
|
+
AccessibilityState[AccessibilityState["Disabled"] = 3] = "Disabled";
|
|
106
106
|
})(AccessibilityState || (AccessibilityState = {}));
|
|
107
107
|
export var AccessibilityLiveRegion;
|
|
108
108
|
(function (AccessibilityLiveRegion) {
|
|
109
|
-
AccessibilityLiveRegion["None"] = "
|
|
110
|
-
AccessibilityLiveRegion["Polite"] = "
|
|
111
|
-
AccessibilityLiveRegion["Assertive"] = "
|
|
109
|
+
AccessibilityLiveRegion[AccessibilityLiveRegion["None"] = 0] = "None";
|
|
110
|
+
AccessibilityLiveRegion[AccessibilityLiveRegion["Polite"] = 1] = "Polite";
|
|
111
|
+
AccessibilityLiveRegion[AccessibilityLiveRegion["Assertive"] = 2] = "Assertive";
|
|
112
112
|
})(AccessibilityLiveRegion || (AccessibilityLiveRegion = {}));
|
|
113
113
|
export var IOSPostAccessibilityNotificationType;
|
|
114
114
|
(function (IOSPostAccessibilityNotificationType) {
|
|
115
|
-
IOSPostAccessibilityNotificationType["Announcement"] = "
|
|
116
|
-
IOSPostAccessibilityNotificationType["Screen"] = "
|
|
117
|
-
IOSPostAccessibilityNotificationType["Layout"] = "
|
|
115
|
+
IOSPostAccessibilityNotificationType[IOSPostAccessibilityNotificationType["Announcement"] = 0] = "Announcement";
|
|
116
|
+
IOSPostAccessibilityNotificationType[IOSPostAccessibilityNotificationType["Screen"] = 1] = "Screen";
|
|
117
|
+
IOSPostAccessibilityNotificationType[IOSPostAccessibilityNotificationType["Layout"] = 2] = "Layout";
|
|
118
118
|
})(IOSPostAccessibilityNotificationType || (IOSPostAccessibilityNotificationType = {}));
|
|
119
119
|
export var AndroidAccessibilityEvent;
|
|
120
120
|
(function (AndroidAccessibilityEvent) {
|
|
121
121
|
/**
|
|
122
122
|
* Invalid selection/focus position.
|
|
123
123
|
*/
|
|
124
|
-
AndroidAccessibilityEvent["INVALID_POSITION"] = "
|
|
124
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["INVALID_POSITION"] = 0] = "INVALID_POSITION";
|
|
125
125
|
/**
|
|
126
126
|
* Maximum length of the text fields.
|
|
127
127
|
*/
|
|
128
|
-
AndroidAccessibilityEvent["MAX_TEXT_LENGTH"] = "
|
|
128
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["MAX_TEXT_LENGTH"] = 1] = "MAX_TEXT_LENGTH";
|
|
129
129
|
/**
|
|
130
130
|
* Represents the event of clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
|
|
131
131
|
*/
|
|
132
|
-
AndroidAccessibilityEvent["VIEW_CLICKED"] = "
|
|
132
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_CLICKED"] = 2] = "VIEW_CLICKED";
|
|
133
133
|
/**
|
|
134
134
|
* Represents the event of long clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
|
|
135
135
|
*/
|
|
136
|
-
AndroidAccessibilityEvent["VIEW_LONG_CLICKED"] = "
|
|
136
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_LONG_CLICKED"] = 3] = "VIEW_LONG_CLICKED";
|
|
137
137
|
/**
|
|
138
138
|
* Represents the event of selecting an item usually in the context of an android.widget.AdapterView.
|
|
139
139
|
*/
|
|
140
|
-
AndroidAccessibilityEvent["VIEW_SELECTED"] = "
|
|
140
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_SELECTED"] = 4] = "VIEW_SELECTED";
|
|
141
141
|
/**
|
|
142
142
|
* Represents the event of setting input focus of a android.view.View.
|
|
143
143
|
*/
|
|
144
|
-
AndroidAccessibilityEvent["VIEW_FOCUSED"] = "
|
|
144
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_FOCUSED"] = 5] = "VIEW_FOCUSED";
|
|
145
145
|
/**
|
|
146
146
|
* Represents the event of changing the text of an android.widget.EditText.
|
|
147
147
|
*/
|
|
148
|
-
AndroidAccessibilityEvent["VIEW_TEXT_CHANGED"] = "
|
|
148
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_TEXT_CHANGED"] = 6] = "VIEW_TEXT_CHANGED";
|
|
149
149
|
/**
|
|
150
150
|
* Represents the event of opening a android.widget.PopupWindow, android.view.Menu, android.app.Dialog, etc.
|
|
151
151
|
*/
|
|
152
|
-
AndroidAccessibilityEvent["WINDOW_STATE_CHANGED"] = "
|
|
152
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["WINDOW_STATE_CHANGED"] = 7] = "WINDOW_STATE_CHANGED";
|
|
153
153
|
/**
|
|
154
154
|
* Represents the event showing a android.app.Notification.
|
|
155
155
|
*/
|
|
156
|
-
AndroidAccessibilityEvent["NOTIFICATION_STATE_CHANGED"] = "
|
|
156
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["NOTIFICATION_STATE_CHANGED"] = 8] = "NOTIFICATION_STATE_CHANGED";
|
|
157
157
|
/**
|
|
158
158
|
* Represents the event of a hover enter over a android.view.View.
|
|
159
159
|
*/
|
|
160
|
-
AndroidAccessibilityEvent["VIEW_HOVER_ENTER"] = "
|
|
160
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_HOVER_ENTER"] = 9] = "VIEW_HOVER_ENTER";
|
|
161
161
|
/**
|
|
162
162
|
* Represents the event of a hover exit over a android.view.View.
|
|
163
163
|
*/
|
|
164
|
-
AndroidAccessibilityEvent["VIEW_HOVER_EXIT"] = "
|
|
164
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_HOVER_EXIT"] = 10] = "VIEW_HOVER_EXIT";
|
|
165
165
|
/**
|
|
166
166
|
* Represents the event of starting a touch exploration gesture.
|
|
167
167
|
*/
|
|
168
|
-
AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_START"] = "
|
|
168
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_START"] = 11] = "TOUCH_EXPLORATION_GESTURE_START";
|
|
169
169
|
/**
|
|
170
170
|
* Represents the event of ending a touch exploration gesture.
|
|
171
171
|
*/
|
|
172
|
-
AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_END"] = "
|
|
172
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_END"] = 12] = "TOUCH_EXPLORATION_GESTURE_END";
|
|
173
173
|
/**
|
|
174
174
|
* Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source.
|
|
175
175
|
*/
|
|
176
|
-
AndroidAccessibilityEvent["WINDOW_CONTENT_CHANGED"] = "
|
|
176
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["WINDOW_CONTENT_CHANGED"] = 13] = "WINDOW_CONTENT_CHANGED";
|
|
177
177
|
/**
|
|
178
178
|
* Represents the event of scrolling a view.
|
|
179
179
|
*/
|
|
180
|
-
AndroidAccessibilityEvent["VIEW_SCROLLED"] = "
|
|
180
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_SCROLLED"] = 14] = "VIEW_SCROLLED";
|
|
181
181
|
/**
|
|
182
182
|
* Represents the event of changing the selection in an android.widget.EditText.
|
|
183
183
|
*/
|
|
184
|
-
AndroidAccessibilityEvent["VIEW_TEXT_SELECTION_CHANGED"] = "
|
|
184
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_TEXT_SELECTION_CHANGED"] = 15] = "VIEW_TEXT_SELECTION_CHANGED";
|
|
185
185
|
/**
|
|
186
186
|
* Represents the event of an application making an announcement.
|
|
187
187
|
*/
|
|
188
|
-
AndroidAccessibilityEvent["ANNOUNCEMENT"] = "
|
|
188
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["ANNOUNCEMENT"] = 16] = "ANNOUNCEMENT";
|
|
189
189
|
/**
|
|
190
190
|
* Represents the event of gaining accessibility focus.
|
|
191
191
|
*/
|
|
192
|
-
AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUSED"] = "
|
|
192
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUSED"] = 17] = "VIEW_ACCESSIBILITY_FOCUSED";
|
|
193
193
|
/**
|
|
194
194
|
* Represents the event of clearing accessibility focus.
|
|
195
195
|
*/
|
|
196
|
-
AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUS_CLEARED"] = "
|
|
196
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUS_CLEARED"] = 18] = "VIEW_ACCESSIBILITY_FOCUS_CLEARED";
|
|
197
197
|
/**
|
|
198
198
|
* Represents the event of traversing the text of a view at a given movement granularity.
|
|
199
199
|
*/
|
|
200
|
-
AndroidAccessibilityEvent["VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY"] = "
|
|
200
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY"] = 19] = "VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY";
|
|
201
201
|
/**
|
|
202
202
|
* Represents the event of beginning gesture detection.
|
|
203
203
|
*/
|
|
204
|
-
AndroidAccessibilityEvent["GESTURE_DETECTION_START"] = "
|
|
204
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["GESTURE_DETECTION_START"] = 20] = "GESTURE_DETECTION_START";
|
|
205
205
|
/**
|
|
206
206
|
* Represents the event of ending gesture detection.
|
|
207
207
|
*/
|
|
208
|
-
AndroidAccessibilityEvent["GESTURE_DETECTION_END"] = "
|
|
208
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["GESTURE_DETECTION_END"] = 21] = "GESTURE_DETECTION_END";
|
|
209
209
|
/**
|
|
210
210
|
* Represents the event of the user starting to touch the screen.
|
|
211
211
|
*/
|
|
212
|
-
AndroidAccessibilityEvent["TOUCH_INTERACTION_START"] = "
|
|
212
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_INTERACTION_START"] = 22] = "TOUCH_INTERACTION_START";
|
|
213
213
|
/**
|
|
214
214
|
* Represents the event of the user ending to touch the screen.
|
|
215
215
|
*/
|
|
216
|
-
AndroidAccessibilityEvent["TOUCH_INTERACTION_END"] = "
|
|
216
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_INTERACTION_END"] = 23] = "TOUCH_INTERACTION_END";
|
|
217
217
|
/**
|
|
218
218
|
* Mask for AccessibilityEvent all types.
|
|
219
219
|
*/
|
|
220
|
-
AndroidAccessibilityEvent["ALL_MASK"] = "
|
|
220
|
+
AndroidAccessibilityEvent[AndroidAccessibilityEvent["ALL_MASK"] = 24] = "ALL_MASK";
|
|
221
221
|
})(AndroidAccessibilityEvent || (AndroidAccessibilityEvent = {}));
|
|
222
222
|
//# sourceMappingURL=accessibility-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessibility-types.js","sourceRoot":"","sources":["../../../../packages/core/accessibility/accessibility-types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,kBA0BX;AA1BD,WAAY,kBAAkB;IAC7B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"accessibility-types.js","sourceRoot":"","sources":["../../../../packages/core/accessibility/accessibility-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,7 +4,6 @@ export * from './accessibility-common';
|
|
|
4
4
|
export * from './accessibility-types';
|
|
5
5
|
export * from './font-scale';
|
|
6
6
|
export declare function isAccessibilityServiceEnabled(): boolean;
|
|
7
|
-
export declare function setupAccessibleView(view: Partial<View>): void;
|
|
8
7
|
export declare function updateAccessibilityProperties(view: Partial<View>): void;
|
|
9
8
|
export declare function sendAccessibilityEvent(view: View, eventType: AndroidAccessibilityEvent, text?: string): void;
|
|
10
9
|
export declare function updateContentDescription(view: View, forceUpdate?: boolean): string | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { initAccessibilityFontScale } from './font-scale';
|
|
1
2
|
import * as Application from '../application';
|
|
2
3
|
import { Trace } from '../trace';
|
|
3
4
|
import { GestureTypes } from '../ui/gestures';
|
|
4
5
|
import { notifyAccessibilityFocusState } from './accessibility-common';
|
|
6
|
+
import { initAccessibilityCssHelper } from './accessibility-css-helper';
|
|
5
7
|
import { getAndroidAccessibilityManager } from './accessibility-service';
|
|
6
8
|
import { AccessibilityRole, AccessibilityState, AndroidAccessibilityEvent } from './accessibility-types';
|
|
7
9
|
export * from './accessibility-common';
|
|
@@ -373,9 +375,9 @@ export function isAccessibilityServiceEnabled() {
|
|
|
373
375
|
Application.on(Application.resumeEvent, updateAccessibilityServiceState);
|
|
374
376
|
return accessibilityServiceEnabled;
|
|
375
377
|
}
|
|
376
|
-
export function setupAccessibleView(view) {
|
|
377
|
-
|
|
378
|
-
}
|
|
378
|
+
// export function setupAccessibleView(view: Partial<View>): void {
|
|
379
|
+
// updateAccessibilityProperties(view);
|
|
380
|
+
// }
|
|
379
381
|
export function updateAccessibilityProperties(view) {
|
|
380
382
|
if (!view.nativeViewProtected) {
|
|
381
383
|
return;
|
|
@@ -448,10 +450,16 @@ export function updateContentDescription(view, forceUpdate) {
|
|
|
448
450
|
}
|
|
449
451
|
return applyContentDescription(view, forceUpdate);
|
|
450
452
|
}
|
|
453
|
+
let started = false;
|
|
451
454
|
function setAccessibilityDelegate(view) {
|
|
452
455
|
if (!view.nativeViewProtected) {
|
|
453
456
|
return;
|
|
454
457
|
}
|
|
458
|
+
if (!started) {
|
|
459
|
+
started = true;
|
|
460
|
+
initAccessibilityCssHelper();
|
|
461
|
+
initAccessibilityFontScale();
|
|
462
|
+
}
|
|
455
463
|
ensureNativeClasses();
|
|
456
464
|
const androidView = view.nativeViewProtected;
|
|
457
465
|
if (!androidView || !androidView.setAccessibilityDelegate) {
|