@nativescript/core 8.5.0-dom.2 → 8.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abortcontroller/abortsignal.js +1 -1
- package/abortcontroller/abortsignal.js.map +1 -1
- package/accessibility/accessibility-properties.js +5 -13
- package/accessibility/accessibility-properties.js.map +1 -1
- package/accessibility/index.android.js +11 -10
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js.map +1 -1
- package/animation-frame/animation-native.ios.d.ts +1 -1
- package/application/application-common.d.ts +5 -4
- package/application/application-common.js.map +1 -1
- package/application/index.android.d.ts +12 -12
- package/application/index.d.ts +30 -32
- package/application/index.ios.d.ts +1 -0
- package/application/index.ios.js +24 -29
- package/application/index.ios.js.map +1 -1
- package/core-types/index.d.ts +277 -752
- package/core-types/index.js +3 -0
- package/core-types/index.js.map +1 -1
- package/css/CSS3Parser.d.ts +3 -3
- package/css/parser.d.ts +17 -17
- package/css/parser.js +1 -0
- package/css/parser.js.map +1 -1
- package/data/observable/index.d.ts +47 -102
- package/data/observable/index.js +178 -151
- package/data/observable/index.js.map +1 -1
- package/data/observable-array/index.d.ts +2 -3
- package/data/observable-array/index.js +1 -1
- package/data/observable-array/index.js.map +1 -1
- package/data/virtual-array/index.d.ts +3 -4
- package/file-system/file-system-access.android.d.ts +13 -0
- package/file-system/file-system-access.android.js +149 -1
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.d.ts +12 -0
- package/file-system/file-system-access.ios.d.ts +7 -0
- package/file-system/file-system-access.ios.js +56 -0
- package/file-system/file-system-access.ios.js.map +1 -1
- package/fps-meter/fps-native.android.js.map +1 -1
- package/global-types.d.ts +94 -94
- package/globals/index.js.map +1 -1
- package/image-source/index.android.js +5 -5
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.ios.js +5 -5
- package/image-source/index.ios.js.map +1 -1
- package/index.d.ts +4 -2
- package/index.js +5 -3
- package/index.js.map +1 -1
- package/package.json +2 -1
- package/platform/index.android.d.ts +2 -2
- package/platform/index.ios.d.ts +2 -2
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/src/NativeScriptUtils.m +3 -0
- package/profiling/index.js +1 -1
- package/profiling/index.js.map +1 -1
- package/ui/action-bar/action-bar-common.d.ts +1 -1
- package/ui/action-bar/action-bar-common.js +7 -7
- package/ui/action-bar/action-bar-common.js.map +1 -1
- package/ui/action-bar/index.android.js +3 -1
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/action-bar/index.d.ts +2 -3
- package/ui/animation/animation-interfaces.d.ts +4 -4
- package/ui/builder/component-builder/index.js.map +1 -1
- package/ui/builder/xml2ui.js +3 -3
- package/ui/builder/xml2ui.js.map +1 -1
- package/ui/button/index.android.js +1 -1
- package/ui/button/index.android.js.map +1 -1
- package/ui/button/index.d.ts +2 -3
- package/ui/button/index.ios.js +1 -2
- package/ui/button/index.ios.js.map +1 -1
- package/ui/core/bindable/bindable-expressions.js +9 -9
- package/ui/core/bindable/bindable-expressions.js.map +1 -1
- package/ui/core/bindable/index.js +1 -1
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/properties/index.js +6 -6
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/view/index.android.d.ts +3 -6
- package/ui/core/view/index.android.js +28 -51
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.d.ts +14 -28
- package/ui/core/view/index.ios.d.ts +1 -1
- package/ui/core/view/index.ios.js +95 -13
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +13 -11
- package/ui/core/view/view-common.js +95 -97
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.d.ts +10 -0
- package/ui/core/view/view-helper/index.ios.js +99 -40
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view-base/index.d.ts +454 -519
- package/ui/core/view-base/index.js +170 -5
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/core/weak-event-listener/index.d.ts +2 -4
- package/ui/core/weak-event-listener/index.js +4 -4
- package/ui/core/weak-event-listener/index.js.map +1 -1
- package/ui/date-picker/index.android.js +3 -1
- package/ui/date-picker/index.android.js.map +1 -1
- package/ui/dialogs/dialogs-common.js +1 -0
- package/ui/dialogs/dialogs-common.js.map +1 -1
- package/ui/dialogs/index.android.js +7 -9
- package/ui/dialogs/index.android.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.js +1 -2
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/editable-text-base/index.android.js +13 -9
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/editable-text-base/index.ios.js +13 -3
- package/ui/editable-text-base/index.ios.js.map +1 -1
- package/ui/frame/fragment.transitions.d.ts +0 -4
- package/ui/frame/frame-common.d.ts +9 -3
- package/ui/frame/frame-common.js +11 -2
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/index.android.d.ts +2 -1
- package/ui/frame/index.android.js +27 -11
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +3 -4
- package/ui/frame/index.ios.js +77 -14
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/gestures/gestures-common.d.ts +2 -9
- package/ui/gestures/gestures-common.js +19 -11
- package/ui/gestures/gestures-common.js.map +1 -1
- package/ui/gestures/index.android.d.ts +3 -0
- package/ui/gestures/index.android.js +66 -63
- package/ui/gestures/index.android.js.map +1 -1
- package/ui/gestures/index.d.ts +10 -1
- package/ui/gestures/index.ios.d.ts +3 -1
- package/ui/gestures/index.ios.js +150 -99
- package/ui/gestures/index.ios.js.map +1 -1
- package/ui/gestures/touch-manager.d.ts +2 -2
- package/ui/image/index.android.js +3 -1
- package/ui/image/index.android.js.map +1 -1
- package/ui/image/index.ios.js +1 -1
- package/ui/image/index.ios.js.map +1 -1
- package/ui/image-cache/image-cache-common.d.ts +3 -3
- package/ui/image-cache/index.d.ts +3 -4
- package/ui/index.d.ts +7 -1
- package/ui/index.js +6 -1
- package/ui/index.js.map +1 -1
- package/ui/label/index.android.js +1 -0
- package/ui/label/index.android.js.map +1 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +12 -12
- package/ui/layouts/grid-layout/grid-layout-common.d.ts +5 -5
- package/ui/layouts/grid-layout/grid-layout-common.js +4 -4
- package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
- package/ui/layouts/root-layout/index.android.js +9 -7
- package/ui/layouts/root-layout/index.android.js.map +1 -1
- package/ui/layouts/root-layout/root-layout-common.js +45 -36
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
- package/ui/list-picker/index.android.js +6 -2
- package/ui/list-picker/index.android.js.map +1 -1
- package/ui/list-picker/index.ios.d.ts +0 -2
- package/ui/list-picker/index.ios.js +2 -17
- package/ui/list-picker/index.ios.js.map +1 -1
- package/ui/list-view/index.android.js +6 -2
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.d.ts +6 -7
- package/ui/list-view/list-view-common.d.ts +4 -4
- package/ui/list-view/list-view-common.js +8 -2
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/index.d.ts +5 -6
- package/ui/page/index.ios.d.ts +4 -0
- package/ui/page/index.ios.js +89 -56
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.d.ts +72 -39
- package/ui/placeholder/index.android.d.ts +2 -2
- package/ui/placeholder/index.d.ts +2 -3
- package/ui/repeater/index.js +2 -1
- package/ui/repeater/index.js.map +1 -1
- package/ui/scroll-view/index.android.js +5 -27
- package/ui/scroll-view/index.android.js.map +1 -1
- package/ui/scroll-view/index.d.ts +2 -3
- package/ui/scroll-view/index.ios.d.ts +1 -0
- package/ui/scroll-view/index.ios.js +21 -8
- package/ui/scroll-view/index.ios.js.map +1 -1
- package/ui/scroll-view/scroll-view-common.d.ts +5 -5
- package/ui/scroll-view/scroll-view-common.js +6 -6
- package/ui/scroll-view/scroll-view-common.js.map +1 -1
- package/ui/search-bar/index.android.js +6 -2
- package/ui/search-bar/index.android.js.map +1 -1
- package/ui/search-bar/index.d.ts +3 -4
- package/ui/search-bar/index.ios.d.ts +0 -2
- package/ui/search-bar/index.ios.js +1 -8
- package/ui/search-bar/index.ios.js.map +1 -1
- package/ui/segmented-bar/index.android.js +3 -1
- package/ui/segmented-bar/index.android.js.map +1 -1
- package/ui/segmented-bar/index.d.ts +2 -3
- package/ui/segmented-bar/segmented-bar-common.d.ts +2 -2
- package/ui/styling/background.ios.js +15 -4
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/css-animation-parser.d.ts +12 -7
- package/ui/styling/css-animation-parser.js +90 -36
- package/ui/styling/css-animation-parser.js.map +1 -1
- package/ui/styling/css-selector.d.ts +1 -1
- package/ui/styling/css-utils.d.ts +1 -0
- package/ui/styling/css-utils.js +12 -0
- package/ui/styling/css-utils.js.map +1 -0
- package/ui/styling/font-common.js +6 -6
- package/ui/styling/font-common.js.map +1 -1
- package/ui/styling/font-interfaces.d.ts +3 -3
- package/ui/styling/font.ios.js +2 -1
- package/ui/styling/font.ios.js.map +1 -1
- package/ui/styling/style/index.d.ts +3 -0
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.js +6 -13
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.js +7 -5
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/switch/index.android.js +3 -1
- package/ui/switch/index.android.js.map +1 -1
- package/ui/tab-view/index.android.js +1 -1
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/tab-view/index.d.ts +2 -3
- package/ui/tab-view/tab-view-common.d.ts +2 -2
- package/ui/text-base/index.ios.js +21 -4
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-base/span.js +4 -4
- package/ui/text-base/span.js.map +1 -1
- package/ui/text-field/index.ios.d.ts +0 -2
- package/ui/text-field/index.ios.js +6 -17
- package/ui/text-field/index.ios.js.map +1 -1
- package/ui/text-view/index.ios.d.ts +0 -2
- package/ui/text-view/index.ios.js +1 -15
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/transition/fade-transition.d.ts +1 -3
- package/ui/transition/fade-transition.ios.d.ts +14 -1
- package/ui/transition/fade-transition.ios.js +60 -24
- package/ui/transition/fade-transition.ios.js.map +1 -1
- package/ui/transition/index.android.d.ts +6 -4
- package/ui/transition/index.android.js +8 -5
- package/ui/transition/index.android.js.map +1 -1
- package/ui/transition/index.d.ts +44 -8
- package/ui/transition/index.ios.d.ts +6 -4
- package/ui/transition/index.ios.js +9 -5
- package/ui/transition/index.ios.js.map +1 -1
- package/ui/transition/modal-transition.android.d.ts +5 -0
- package/ui/transition/modal-transition.android.js +7 -0
- package/ui/transition/modal-transition.android.js.map +1 -0
- package/ui/transition/modal-transition.d.ts +2 -0
- package/ui/transition/modal-transition.ios.d.ts +34 -0
- package/ui/transition/modal-transition.ios.js +160 -0
- package/ui/transition/modal-transition.ios.js.map +1 -0
- package/ui/transition/page-transition.android.d.ts +6 -0
- package/ui/transition/page-transition.android.js +182 -0
- package/ui/transition/page-transition.android.js.map +1 -0
- package/ui/transition/page-transition.d.ts +2 -0
- package/ui/transition/page-transition.ios.d.ts +34 -0
- package/ui/transition/page-transition.ios.js +181 -0
- package/ui/transition/page-transition.ios.js.map +1 -0
- package/ui/transition/shared-transition-helper.android.d.ts +5 -0
- package/ui/transition/shared-transition-helper.android.js +6 -0
- package/ui/transition/shared-transition-helper.android.js.map +1 -0
- package/ui/transition/shared-transition-helper.d.ts +10 -0
- package/ui/transition/shared-transition-helper.ios.d.ts +14 -0
- package/ui/transition/shared-transition-helper.ios.js +471 -0
- package/ui/transition/shared-transition-helper.ios.js.map +1 -0
- package/ui/transition/shared-transition.d.ts +230 -0
- package/ui/transition/shared-transition.js +192 -0
- package/ui/transition/shared-transition.js.map +1 -0
- package/ui/transition/slide-transition.android.d.ts +1 -1
- package/ui/transition/slide-transition.android.js +1 -1
- package/ui/transition/slide-transition.android.js.map +1 -1
- package/ui/transition/slide-transition.d.ts +1 -1
- package/ui/transition/slide-transition.ios.d.ts +15 -2
- package/ui/transition/slide-transition.ios.js +86 -50
- package/ui/transition/slide-transition.ios.js.map +1 -1
- package/ui/web-view/index.android.js +4 -3
- package/ui/web-view/index.android.js.map +1 -1
- package/ui/web-view/index.d.ts +3 -4
- package/ui/web-view/index.ios.d.ts +1 -2
- package/ui/web-view/index.ios.js +21 -28
- package/ui/web-view/index.ios.js.map +1 -1
- package/ui/web-view/web-view-common.d.ts +3 -3
- package/ui/web-view/web-view-interfaces.d.ts +1 -1
- package/utils/common.d.ts +2 -1
- package/utils/common.js +8 -2
- package/utils/common.js.map +1 -1
- package/utils/index.android.js +2 -2
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +0 -82
- package/utils/mainthread-helper.android.js +2 -2
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/native-helper.android.js +3 -2
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +35 -0
- package/utils/native-helper.ios.d.ts +13 -0
- package/utils/native-helper.ios.js +79 -4
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/number-utils.d.ts +10 -0
- package/utils/number-utils.js +12 -0
- package/utils/number-utils.js.map +1 -1
- package/utils/typescript-utils.d.ts +6 -0
- package/xhr/index.js +28 -28
- package/xhr/index.js.map +1 -1
- package/xml/index.js.map +1 -1
- package/data/dom-events/dom-event.d.ts +0 -141
- package/data/dom-events/dom-event.js +0 -342
- package/data/dom-events/dom-event.js.map +0 -1
- package/profiling/jamie.d.ts +0 -9
- package/profiling/jamie.js +0 -32
- package/profiling/jamie.js.map +0 -1
- package/ui/frame/fragment.transitions.ios.d.ts +0 -2
- package/ui/frame/fragment.transitions.ios.js +0 -85
- package/ui/frame/fragment.transitions.ios.js.map +0 -1
package/core-types/index.d.ts
CHANGED
|
@@ -1,730 +1,260 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The image is resized to fit the destination dimensions while it preserves
|
|
244
|
-
* its native aspect ratio.
|
|
245
|
-
*/
|
|
246
|
-
export const aspectFit: ImageStretchType;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* The image is resized to fill the destination dimensions. The aspect ratio is not preserved.
|
|
250
|
-
*/
|
|
251
|
-
export const fill: ImageStretchType;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export type VisibilityType = 'visible' | 'hidden' | 'collapse' | 'collapsed';
|
|
255
|
-
/**
|
|
256
|
-
* Represents the visibility mode of a view.
|
|
257
|
-
*/
|
|
258
|
-
export module Visibility {
|
|
259
|
-
/**
|
|
260
|
-
* The view is visible.
|
|
261
|
-
*/
|
|
262
|
-
export const visible: VisibilityType;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* The view is not visible and won't take place in the layout.
|
|
266
|
-
*/
|
|
267
|
-
export const collapse: VisibilityType;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @deprecated Use collapse instead
|
|
271
|
-
*/
|
|
272
|
-
export const collapsed: VisibilityType;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* The view is not visible but will take place in the layout.
|
|
276
|
-
*/
|
|
277
|
-
export const hidden: VisibilityType;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* A flag enum that represents common font attributes.
|
|
282
|
-
*/
|
|
283
|
-
export module FontAttributes {
|
|
284
|
-
/**
|
|
285
|
-
* Denotes that text should be drawn in a normal style.
|
|
286
|
-
*/
|
|
287
|
-
export const Normal: number;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Denotes that text should be drawn in a bold weight.
|
|
291
|
-
*/
|
|
292
|
-
export const Bold: number;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Denotes that text should be drawn in a italic style.
|
|
296
|
-
*/
|
|
297
|
-
export const Italic: number;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Describes the type of a device
|
|
302
|
-
*/
|
|
303
|
-
export module DeviceType {
|
|
304
|
-
/**
|
|
305
|
-
* Indicates a smart-phone device.
|
|
306
|
-
*/
|
|
307
|
-
export const Phone: string;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Indicates a tablet device.
|
|
311
|
-
*/
|
|
312
|
-
export const Tablet: string;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
export type UpdateTextTriggerType = 'focusLost' | 'textChanged';
|
|
316
|
-
/**
|
|
317
|
-
* Represents an enumeration specifying when the text property of an EditableTextBase will be updated.
|
|
318
|
-
*/
|
|
319
|
-
export module UpdateTextTrigger {
|
|
320
|
-
/**
|
|
321
|
-
* The text property will be udpaded when the widget loses focus.
|
|
322
|
-
*/
|
|
323
|
-
export const focusLost: UpdateTextTriggerType;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* The text property will be udpaded on every single character typed by the user.
|
|
327
|
-
*/
|
|
328
|
-
export const textChanged: UpdateTextTriggerType;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Specifies common accuracy values.
|
|
333
|
-
*/
|
|
334
|
-
export namespace Accuracy {
|
|
335
|
-
/**
|
|
336
|
-
* The default accuracy. About 300 meters.
|
|
337
|
-
*/
|
|
338
|
-
export const any: number;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* High accuracy. About 3 meters.
|
|
342
|
-
*/
|
|
343
|
-
export const high: number;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export type DockType = 'left' | 'top' | 'right' | 'bottom';
|
|
347
|
-
/**
|
|
348
|
-
* Specifies the Dock position of a child element that is inside a DockLayout.
|
|
349
|
-
*/
|
|
350
|
-
export module Dock {
|
|
351
|
-
/**
|
|
352
|
-
* A child element that is positioned on the left side of the DockLayout.
|
|
353
|
-
*/
|
|
354
|
-
export const left: DockType;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* A child element that is positioned on the top side of the DockLayout.
|
|
358
|
-
*/
|
|
359
|
-
export const top: DockType;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* A child element that is positioned on the right side of the DockLayout.
|
|
363
|
-
*/
|
|
364
|
-
export const right: DockType;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* A child element that is positioned on the bottom side of the DockLayout.
|
|
368
|
-
*/
|
|
369
|
-
export const bottom: DockType;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export type AutocapitalizationInputType = 'none' | 'words' | 'sentences' | 'allcharacters';
|
|
373
|
-
/**
|
|
374
|
-
* Represents the auto-capitalization style for a text input.
|
|
375
|
-
*/
|
|
376
|
-
export module AutocapitalizationType {
|
|
377
|
-
/**
|
|
378
|
-
* Do not capitalize any text automatically.
|
|
379
|
-
*/
|
|
380
|
-
export const none: AutocapitalizationInputType;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Capitalize the first letter of each word automatically.
|
|
384
|
-
*/
|
|
385
|
-
export const words: AutocapitalizationInputType;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Capitalize the first letter of each sentence automatically.
|
|
389
|
-
*/
|
|
390
|
-
export const sentences: AutocapitalizationInputType;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Capitalize all characters automatically.
|
|
394
|
-
*/
|
|
395
|
-
export const allCharacters: AutocapitalizationInputType;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Defines the recognized image formats.
|
|
400
|
-
*/
|
|
401
|
-
export module ImageFormat {
|
|
402
|
-
/**
|
|
403
|
-
* The W3C Portable Network Graphics (PNG) image format.
|
|
404
|
-
*/
|
|
405
|
-
export const png: string;
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* The Joint Photographic Experts Group (JPEG) image format.
|
|
409
|
-
*/
|
|
410
|
-
export const jpeg: string;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* The Joint Photographic Experts Group (JPEG) image format.
|
|
414
|
-
*/
|
|
415
|
-
export const jpg: string;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Specifies NavigationBar visibility mode.
|
|
420
|
-
*/
|
|
421
|
-
export module NavigationBarVisibility {
|
|
422
|
-
/**
|
|
423
|
-
* NavigationBar will be visible if there if frame backstack canGoBack is true or if the page Action Bar is not empty.
|
|
424
|
-
*/
|
|
425
|
-
export const auto: string;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* NavigationBar will be hidden.
|
|
429
|
-
*/
|
|
430
|
-
export const never: string;
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* NavigationBar will be visible.
|
|
434
|
-
*/
|
|
435
|
-
export const always: string;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Specifies the visibility of the application bar icon
|
|
440
|
-
*/
|
|
441
|
-
export module AndroidActionBarIconVisibility {
|
|
442
|
-
export const auto: string;
|
|
443
|
-
export const never: string;
|
|
444
|
-
export const always: string;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Specifies android MenuItem position.
|
|
449
|
-
*/
|
|
450
|
-
export module AndroidActionItemPosition {
|
|
451
|
-
/**
|
|
452
|
-
* Always show this item as a button in an Action Bar.
|
|
453
|
-
*/
|
|
454
|
-
export const actionBar: string;
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Show this item as a button in an Action Bar if the system decides there is room for it.
|
|
458
|
-
*/
|
|
459
|
-
export const actionBarIfRoom: string;
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Never show this item as a button in an Action Bar.
|
|
463
|
-
*/
|
|
464
|
-
export const popup: string;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Specifies different font styles.
|
|
469
|
-
*/
|
|
470
|
-
export module FontStyle {
|
|
471
|
-
/**
|
|
472
|
-
* Normal font style.
|
|
473
|
-
*/
|
|
474
|
-
export const normal: FontStyleType;
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Italic font style.
|
|
478
|
-
*/
|
|
479
|
-
export const italic: FontStyleType;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
export type TextDecorationType = 'none' | 'underline' | 'line-through' | 'underline line-through';
|
|
483
|
-
/**
|
|
484
|
-
* Specifies different text decorations.
|
|
485
|
-
*/
|
|
486
|
-
export module TextDecoration {
|
|
487
|
-
/**
|
|
488
|
-
* No decoration.
|
|
489
|
-
*/
|
|
490
|
-
export const none: TextDecorationType;
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Text decoration underline.
|
|
494
|
-
*/
|
|
495
|
-
export const underline: TextDecorationType;
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Text decoration line-through.
|
|
499
|
-
*/
|
|
500
|
-
export const lineThrough: TextDecorationType;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export type TextTransformType = 'initial' | 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
|
504
|
-
/**
|
|
505
|
-
* Specifies different text transforms.
|
|
506
|
-
*/
|
|
507
|
-
export module TextTransform {
|
|
508
|
-
/**
|
|
509
|
-
* No transform.
|
|
510
|
-
*/
|
|
511
|
-
export const none: TextTransformType;
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Text transform capitalize.
|
|
515
|
-
*/
|
|
516
|
-
export const capitalize: TextTransformType;
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Text transform uppercase.
|
|
520
|
-
*/
|
|
521
|
-
export const uppercase: TextTransformType;
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* Text transform lowercase.
|
|
525
|
-
*/
|
|
526
|
-
export const lowercase: TextTransformType;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
export type WhiteSpaceType = 'initial' | 'normal' | 'nowrap';
|
|
530
|
-
/**
|
|
531
|
-
* Specifies different white spaces.
|
|
532
|
-
*/
|
|
533
|
-
export module WhiteSpace {
|
|
534
|
-
/**
|
|
535
|
-
* Normal wrap.
|
|
536
|
-
*/
|
|
537
|
-
export const normal: WhiteSpaceType;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* No wrap.
|
|
541
|
-
*/
|
|
542
|
-
export const nowrap: WhiteSpaceType;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Specifies different font weights.
|
|
547
|
-
*/
|
|
548
|
-
export module FontWeight {
|
|
549
|
-
/**
|
|
550
|
-
* Thin font weight. CSS font-weight 100.
|
|
551
|
-
*/
|
|
552
|
-
export const thin: FontWeightType;
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* Extra-light / Ultra-light font weight. CSS font-weight 200.
|
|
556
|
-
*/
|
|
557
|
-
export const extraLight: FontWeightType;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Light font weight. CSS font-weight 300.
|
|
561
|
-
*/
|
|
562
|
-
export const light: FontWeightType;
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Normal font weight. CSS font-weight 400.
|
|
566
|
-
*/
|
|
567
|
-
export const normal: FontWeightType;
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Medium font weight. CSS font-weight 500.
|
|
571
|
-
*/
|
|
572
|
-
export const medium: FontWeightType;
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Semi-bold / Demi-bold font weight. CSS font-weight 600.
|
|
576
|
-
*/
|
|
577
|
-
export const semiBold: FontWeightType;
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* Bold font weight. CSS font-weight 700.
|
|
581
|
-
*/
|
|
582
|
-
export const bold: FontWeightType;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* Extra-bold / Ultra-bold font weight. CSS font-weight 800.
|
|
586
|
-
*/
|
|
587
|
-
export const extraBold: FontWeightType;
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* Black font weight. CSS font-weight 900.
|
|
591
|
-
*/
|
|
592
|
-
export const black: FontWeightType;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export type BackgroundRepeatType = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
596
|
-
/**
|
|
597
|
-
* Specifies background repeat.
|
|
598
|
-
*/
|
|
599
|
-
export module BackgroundRepeat {
|
|
600
|
-
export const repeat: BackgroundRepeatType;
|
|
601
|
-
export const repeatX: BackgroundRepeatType;
|
|
602
|
-
export const repeatY: BackgroundRepeatType;
|
|
603
|
-
export const noRepeat: BackgroundRepeatType;
|
|
604
|
-
export const isValid: (value: any) => BackgroundRepeatType;
|
|
605
|
-
export const parse: (value: any) => BackgroundRepeatType;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* Specifies android MenuItem position.
|
|
610
|
-
*/
|
|
611
|
-
export module IOSActionItemPosition {
|
|
612
|
-
/**
|
|
613
|
-
* Show this item at the left of the navigation bar.
|
|
614
|
-
*/
|
|
615
|
-
export const left: string;
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* Show this item at the right of the action bar.
|
|
619
|
-
*/
|
|
620
|
-
export const right: string;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Represents an animation curve type.
|
|
625
|
-
*/
|
|
626
|
-
export module AnimationCurve {
|
|
627
|
-
/**
|
|
628
|
-
* Default value. Specifies a transition effect with a slow start, then fast, then end slowly (equivalent to cubic-bezier(0.25,0.1,0.25,1))
|
|
629
|
-
*/
|
|
630
|
-
export const ease: string;
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* An ease-in curve causes the animation to begin slowly, and then speed up as it progresses.
|
|
634
|
-
*/
|
|
635
|
-
export const easeIn: string;
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* An ease-out curve causes the animation to begin quickly, and then slow down as it completes.
|
|
639
|
-
*/
|
|
640
|
-
export const easeOut: string;
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing.
|
|
644
|
-
*/
|
|
645
|
-
export const easeInOut: string;
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* A linear animation curve causes an animation to occur evenly over its duration.
|
|
649
|
-
*/
|
|
650
|
-
export const linear: string;
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* A spring animation curve causes an animation to produce a spring (bounce) effect.
|
|
654
|
-
*/
|
|
655
|
-
export const spring: string;
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* A custom cubic bezier function defined by its two control points. Possible values are numeric values from 0 to 1
|
|
659
|
-
*/
|
|
660
|
-
export function cubicBezier(x1: number, y1: number, x2: number, y2: number): CubicBezierAnimationCurve;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* @deprecated use `SystemAppearance` instead.
|
|
665
|
-
*
|
|
666
|
-
* Specifies the types of the status bar style.
|
|
667
|
-
*/
|
|
668
|
-
export module StatusBarStyle {
|
|
669
|
-
/**
|
|
670
|
-
* The light style of the status bar - light background with dark letters.
|
|
671
|
-
*/
|
|
672
|
-
export const light: string;
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* The dark style of the status bar - dark background with light letters.
|
|
676
|
-
*/
|
|
677
|
-
export const dark: string;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Specifies the types of the system appearance.
|
|
682
|
-
*/
|
|
683
|
-
export module SystemAppearance {
|
|
684
|
-
/**
|
|
685
|
-
* The light system appearance.
|
|
686
|
-
*/
|
|
687
|
-
export const light: string;
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* The dark system appearance.
|
|
691
|
-
*/
|
|
692
|
-
export const dark: string;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* @deprecated use `SystemAppearance` instead.
|
|
697
|
-
*
|
|
698
|
-
* Specifies the types of the user interface style.
|
|
699
|
-
*/
|
|
700
|
-
export module UserInterfaceStyle {
|
|
701
|
-
/**
|
|
702
|
-
* The light style of the user interface.
|
|
703
|
-
*/
|
|
704
|
-
export const light: string;
|
|
705
|
-
|
|
706
|
-
/**
|
|
707
|
-
* The dark style of the user interface.
|
|
708
|
-
*/
|
|
709
|
-
export const dark: string;
|
|
710
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* General @nativescript/core types used throughout the library.
|
|
3
|
+
*/
|
|
4
|
+
import * as animationModule from '../ui/animation';
|
|
5
|
+
export declare namespace CoreTypes {
|
|
6
|
+
/**
|
|
7
|
+
* Denotes a length number that is in device independent pixel units.
|
|
8
|
+
*/
|
|
9
|
+
type dip = number;
|
|
10
|
+
/**
|
|
11
|
+
* Denotes a length number that is in physical device pixels.
|
|
12
|
+
*/
|
|
13
|
+
type px = number;
|
|
14
|
+
/**
|
|
15
|
+
* Denotes a normalized percent number.
|
|
16
|
+
* 0% is represented as 0
|
|
17
|
+
* 50% is represented as 0.5
|
|
18
|
+
* 100% is represented as 1
|
|
19
|
+
*/
|
|
20
|
+
type percent = number;
|
|
21
|
+
type LengthDipUnit = {
|
|
22
|
+
readonly unit: 'dip';
|
|
23
|
+
readonly value: dip;
|
|
24
|
+
};
|
|
25
|
+
type LengthPxUnit = {
|
|
26
|
+
readonly unit: 'px';
|
|
27
|
+
readonly value: px;
|
|
28
|
+
};
|
|
29
|
+
type LengthPercentUnit = {
|
|
30
|
+
readonly unit: '%';
|
|
31
|
+
readonly value: percent;
|
|
32
|
+
};
|
|
33
|
+
type LengthType = 'auto' | dip | LengthDipUnit | LengthPxUnit;
|
|
34
|
+
type PercentLengthType = 'auto' | dip | LengthDipUnit | LengthPxUnit | LengthPercentUnit;
|
|
35
|
+
const zeroLength: LengthType;
|
|
36
|
+
type KeyboardInputType = 'datetime' | 'phone' | 'number' | 'url' | 'email' | 'integer';
|
|
37
|
+
namespace KeyboardType {
|
|
38
|
+
const datetime = "datetime";
|
|
39
|
+
const phone = "phone";
|
|
40
|
+
const number = "number";
|
|
41
|
+
const url = "url";
|
|
42
|
+
const email = "email";
|
|
43
|
+
const integer = "integer";
|
|
44
|
+
}
|
|
45
|
+
type AutofillType = 'username' | 'password' | 'none' | string;
|
|
46
|
+
namespace AutofillType {
|
|
47
|
+
const username = "username";
|
|
48
|
+
const password = "password";
|
|
49
|
+
const newUsername = "newUsername";
|
|
50
|
+
const newPassword = "newPassword";
|
|
51
|
+
const oneTimeCode = "oneTimeCode";
|
|
52
|
+
const none = "none";
|
|
53
|
+
}
|
|
54
|
+
type ReturnKeyButtonType = 'done' | 'next' | 'go' | 'search' | 'send';
|
|
55
|
+
namespace ReturnKeyType {
|
|
56
|
+
const done = "done";
|
|
57
|
+
const next = "next";
|
|
58
|
+
const go = "go";
|
|
59
|
+
const search = "search";
|
|
60
|
+
const send = "send";
|
|
61
|
+
}
|
|
62
|
+
type TextAlignmentType = 'initial' | 'left' | 'center' | 'right' | 'justify';
|
|
63
|
+
namespace TextAlignment {
|
|
64
|
+
const left = "left";
|
|
65
|
+
const center = "center";
|
|
66
|
+
const right = "right";
|
|
67
|
+
const justify = "justify";
|
|
68
|
+
}
|
|
69
|
+
type TextDecorationType = 'none' | 'underline' | 'line-through' | 'underline line-through';
|
|
70
|
+
namespace TextDecoration {
|
|
71
|
+
const none = "none";
|
|
72
|
+
const underline = "underline";
|
|
73
|
+
const lineThrough = "line-through";
|
|
74
|
+
}
|
|
75
|
+
type TextTransformType = 'initial' | 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
|
76
|
+
namespace TextTransform {
|
|
77
|
+
const none = "none";
|
|
78
|
+
const capitalize = "capitalize";
|
|
79
|
+
const uppercase = "uppercase";
|
|
80
|
+
const lowercase = "lowercase";
|
|
81
|
+
}
|
|
82
|
+
type WhiteSpaceType = 'initial' | 'normal' | 'nowrap';
|
|
83
|
+
namespace WhiteSpace {
|
|
84
|
+
const normal = "normal";
|
|
85
|
+
const nowrap = "nowrap";
|
|
86
|
+
}
|
|
87
|
+
type MaxLinesType = number;
|
|
88
|
+
type OrientationType = 'horizontal' | 'vertical';
|
|
89
|
+
namespace Orientation {
|
|
90
|
+
const horizontal = "horizontal";
|
|
91
|
+
const vertical = "vertical";
|
|
92
|
+
}
|
|
93
|
+
type DeviceOrientationType = 'portrait' | 'landscape' | 'unknown';
|
|
94
|
+
namespace DeviceOrientation {
|
|
95
|
+
const portrait = "portrait";
|
|
96
|
+
const landscape = "landscape";
|
|
97
|
+
const unknown = "unknown";
|
|
98
|
+
}
|
|
99
|
+
type HorizontalAlignmentType = 'left' | 'center' | 'right' | 'stretch';
|
|
100
|
+
namespace HorizontalAlignment {
|
|
101
|
+
const left = "left";
|
|
102
|
+
const center = "center";
|
|
103
|
+
const right = "right";
|
|
104
|
+
const stretch = "stretch";
|
|
105
|
+
const isValid: (value: any) => value is HorizontalAlignmentType;
|
|
106
|
+
const parse: (value: any) => HorizontalAlignmentType;
|
|
107
|
+
}
|
|
108
|
+
type VerticalAlignmentType = 'top' | 'middle' | 'bottom' | 'stretch';
|
|
109
|
+
namespace VerticalAlignment {
|
|
110
|
+
const top = "top";
|
|
111
|
+
const middle = "middle";
|
|
112
|
+
const bottom = "bottom";
|
|
113
|
+
const stretch = "stretch";
|
|
114
|
+
}
|
|
115
|
+
type VerticalAlignmentTextType = VerticalAlignmentType | 'text-top' | 'text-bottom' | 'sup' | 'sub' | 'baseline';
|
|
116
|
+
namespace VerticalAlignmentText {
|
|
117
|
+
const top = "top";
|
|
118
|
+
const middle = "middle";
|
|
119
|
+
const bottom = "bottom";
|
|
120
|
+
const stretch = "stretch";
|
|
121
|
+
const texttop = "text-top";
|
|
122
|
+
const textbottom = "text-bottom";
|
|
123
|
+
const sup = "sup";
|
|
124
|
+
const sub = "sub";
|
|
125
|
+
const baseline = "baseline";
|
|
126
|
+
const isValid: (value: any) => value is VerticalAlignmentTextType;
|
|
127
|
+
const parse: (value: string) => VerticalAlignmentTextType;
|
|
128
|
+
}
|
|
129
|
+
type ImageStretchType = 'none' | 'aspectFill' | 'aspectFit' | 'fill';
|
|
130
|
+
namespace ImageStretch {
|
|
131
|
+
const none: ImageStretchType;
|
|
132
|
+
const aspectFill: ImageStretchType;
|
|
133
|
+
const aspectFit: ImageStretchType;
|
|
134
|
+
const fill: ImageStretchType;
|
|
135
|
+
}
|
|
136
|
+
type VisibilityType = 'visible' | 'hidden' | 'collapse' | 'collapsed';
|
|
137
|
+
namespace Visibility {
|
|
138
|
+
const visible: VisibilityType;
|
|
139
|
+
const collapse: VisibilityType;
|
|
140
|
+
const collapsed: VisibilityType;
|
|
141
|
+
const hidden: VisibilityType;
|
|
142
|
+
const isValid: (value: any) => value is VisibilityType;
|
|
143
|
+
const parse: (value: string) => VisibilityType;
|
|
144
|
+
}
|
|
145
|
+
namespace FontAttributes {
|
|
146
|
+
const Normal = 0;
|
|
147
|
+
const Bold = 1;
|
|
148
|
+
const Italic: number;
|
|
149
|
+
}
|
|
150
|
+
namespace DeviceType {
|
|
151
|
+
const Phone: string;
|
|
152
|
+
const Tablet: string;
|
|
153
|
+
}
|
|
154
|
+
type UpdateTextTriggerType = 'focusLost' | 'textChanged';
|
|
155
|
+
namespace UpdateTextTrigger {
|
|
156
|
+
const focusLost: UpdateTextTriggerType;
|
|
157
|
+
const textChanged: UpdateTextTriggerType;
|
|
158
|
+
}
|
|
159
|
+
namespace Accuracy {
|
|
160
|
+
const any: number;
|
|
161
|
+
const high: number;
|
|
162
|
+
}
|
|
163
|
+
type DockType = 'left' | 'top' | 'right' | 'bottom';
|
|
164
|
+
namespace Dock {
|
|
165
|
+
const left: DockType;
|
|
166
|
+
const top: DockType;
|
|
167
|
+
const right: DockType;
|
|
168
|
+
const bottom: DockType;
|
|
169
|
+
}
|
|
170
|
+
type AutocapitalizationInputType = 'none' | 'words' | 'sentences' | 'allcharacters';
|
|
171
|
+
namespace AutocapitalizationType {
|
|
172
|
+
const none: AutocapitalizationInputType;
|
|
173
|
+
const words: AutocapitalizationInputType;
|
|
174
|
+
const sentences: AutocapitalizationInputType;
|
|
175
|
+
const allCharacters: AutocapitalizationInputType;
|
|
176
|
+
}
|
|
177
|
+
namespace NavigationBarVisibility {
|
|
178
|
+
const auto: string;
|
|
179
|
+
const never: string;
|
|
180
|
+
const always: string;
|
|
181
|
+
}
|
|
182
|
+
namespace AndroidActionBarIconVisibility {
|
|
183
|
+
const auto: string;
|
|
184
|
+
const never: string;
|
|
185
|
+
const always: string;
|
|
186
|
+
}
|
|
187
|
+
namespace AndroidActionItemPosition {
|
|
188
|
+
const actionBar: string;
|
|
189
|
+
const actionBarIfRoom: string;
|
|
190
|
+
const popup: string;
|
|
191
|
+
}
|
|
192
|
+
namespace IOSActionItemPosition {
|
|
193
|
+
const left: string;
|
|
194
|
+
const right: string;
|
|
195
|
+
}
|
|
196
|
+
namespace ImageFormat {
|
|
197
|
+
const png: string;
|
|
198
|
+
const jpeg: string;
|
|
199
|
+
const jpg: string;
|
|
200
|
+
}
|
|
201
|
+
namespace FontStyle {
|
|
202
|
+
const normal: string;
|
|
203
|
+
const italic: string;
|
|
204
|
+
}
|
|
205
|
+
namespace FontWeight {
|
|
206
|
+
const thin: string;
|
|
207
|
+
const extraLight: string;
|
|
208
|
+
const light: string;
|
|
209
|
+
const normal: string;
|
|
210
|
+
const medium: string;
|
|
211
|
+
const semiBold: string;
|
|
212
|
+
const bold: string;
|
|
213
|
+
const extraBold: string;
|
|
214
|
+
const black: string;
|
|
215
|
+
}
|
|
216
|
+
type BackgroundRepeatType = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
217
|
+
namespace BackgroundRepeat {
|
|
218
|
+
const repeat: BackgroundRepeatType;
|
|
219
|
+
const repeatX: BackgroundRepeatType;
|
|
220
|
+
const repeatY: BackgroundRepeatType;
|
|
221
|
+
const noRepeat: BackgroundRepeatType;
|
|
222
|
+
const isValid: (value: any) => value is BackgroundRepeatType;
|
|
223
|
+
const parse: (value: any) => BackgroundRepeatType;
|
|
224
|
+
}
|
|
225
|
+
namespace AnimationCurve {
|
|
226
|
+
const ease = "ease";
|
|
227
|
+
const easeIn = "easeIn";
|
|
228
|
+
const easeOut = "easeOut";
|
|
229
|
+
const easeInOut = "easeInOut";
|
|
230
|
+
const linear = "linear";
|
|
231
|
+
const spring = "spring";
|
|
232
|
+
function cubicBezier(x1: number, y1: number, x2: number, y2: number): animationModule.CubicBezierAnimationCurve;
|
|
233
|
+
}
|
|
234
|
+
namespace StatusBarStyle {
|
|
235
|
+
const light = "light";
|
|
236
|
+
const dark = "dark";
|
|
237
|
+
}
|
|
238
|
+
namespace SystemAppearance {
|
|
239
|
+
const light = "light";
|
|
240
|
+
const dark = "dark";
|
|
241
|
+
}
|
|
711
242
|
}
|
|
712
|
-
|
|
243
|
+
/**
|
|
244
|
+
* NOTE: Auto migrate deprecations via eslint-plugin in future
|
|
245
|
+
*/
|
|
713
246
|
/**
|
|
714
247
|
* @deprecated Use `CoreTypes.dip` instead.
|
|
715
248
|
*/
|
|
716
|
-
export type dip =
|
|
717
|
-
|
|
249
|
+
export type dip = number;
|
|
718
250
|
/**
|
|
719
251
|
* @deprecated Use `CoreTypes.px` instead.
|
|
720
252
|
*/
|
|
721
|
-
export type px =
|
|
722
|
-
|
|
253
|
+
export type px = number;
|
|
723
254
|
/**
|
|
724
255
|
* @deprecated Use `CoreTypes.percent` instead.
|
|
725
256
|
*/
|
|
726
|
-
export type percent =
|
|
727
|
-
|
|
257
|
+
export type percent = number;
|
|
728
258
|
/**
|
|
729
259
|
* @deprecated Use `CoreTypes.LengthDipUnit` instead.
|
|
730
260
|
*/
|
|
@@ -737,7 +267,6 @@ export type LengthPxUnit = CoreTypes.LengthPxUnit;
|
|
|
737
267
|
* @deprecated Use `CoreTypes.LengthPercentUnit` instead.
|
|
738
268
|
*/
|
|
739
269
|
export type LengthPercentUnit = CoreTypes.LengthPercentUnit;
|
|
740
|
-
|
|
741
270
|
/**
|
|
742
271
|
* @deprecated Use `CoreTypes.LengthType` instead.
|
|
743
272
|
*/
|
|
@@ -746,53 +275,49 @@ export type LengthType = CoreTypes.LengthType;
|
|
|
746
275
|
* @deprecated Use `CoreTypes.PercentLengthType` instead.
|
|
747
276
|
*/
|
|
748
277
|
export type PercentLengthType = CoreTypes.PercentLengthType;
|
|
749
|
-
|
|
750
278
|
/**
|
|
751
279
|
* @deprecated Use `CoreTypes.AnimationCurve` instead.
|
|
752
280
|
*/
|
|
753
|
-
export const AnimationCurve: typeof CoreTypes.AnimationCurve;
|
|
754
|
-
|
|
281
|
+
export declare const AnimationCurve: typeof CoreTypes.AnimationCurve;
|
|
755
282
|
/**
|
|
756
283
|
* @deprecated Use `CoreTypes.HorizontalAlignmentType` instead.
|
|
757
284
|
*/
|
|
758
285
|
export type HorizontalAlignment = CoreTypes.HorizontalAlignmentType;
|
|
759
|
-
|
|
760
286
|
/**
|
|
761
287
|
* @deprecated Use `CoreTypes.VerticalAlignmentType` instead.
|
|
762
288
|
*/
|
|
763
289
|
export type VerticalAlignment = CoreTypes.VerticalAlignmentType;
|
|
764
|
-
|
|
765
290
|
/**
|
|
766
291
|
* @deprecated Use `CoreTypes` instead. Enums will be removed in 9.0
|
|
767
292
|
*/
|
|
768
293
|
export declare const Enums: {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
294
|
+
Accuracy: typeof CoreTypes.Accuracy;
|
|
295
|
+
AndroidActionBarIconVisibility: typeof CoreTypes.AndroidActionBarIconVisibility;
|
|
296
|
+
AndroidActionItemPosition: typeof CoreTypes.AndroidActionItemPosition;
|
|
297
|
+
AnimationCurve: typeof CoreTypes.AnimationCurve;
|
|
298
|
+
AutocapitalizationType: typeof CoreTypes.AutocapitalizationType;
|
|
299
|
+
BackgroundRepeat: typeof CoreTypes.BackgroundRepeat;
|
|
300
|
+
DeviceOrientation: typeof CoreTypes.DeviceOrientation;
|
|
301
|
+
DeviceType: typeof CoreTypes.DeviceType;
|
|
302
|
+
Dock: typeof CoreTypes.Dock;
|
|
303
|
+
FontAttributes: typeof CoreTypes.FontAttributes;
|
|
304
|
+
FontStyle: typeof CoreTypes.FontStyle;
|
|
305
|
+
FontWeight: typeof CoreTypes.FontWeight;
|
|
306
|
+
HorizontalAlignment: typeof CoreTypes.HorizontalAlignment;
|
|
307
|
+
IOSActionItemPosition: typeof CoreTypes.IOSActionItemPosition;
|
|
308
|
+
ImageFormat: typeof CoreTypes.ImageFormat;
|
|
309
|
+
KeyboardType: typeof CoreTypes.KeyboardType;
|
|
310
|
+
NavigationBarVisibility: typeof CoreTypes.NavigationBarVisibility;
|
|
311
|
+
Orientation: typeof CoreTypes.Orientation;
|
|
312
|
+
ReturnKeyType: typeof CoreTypes.ReturnKeyType;
|
|
313
|
+
StatusBarStyle: typeof CoreTypes.StatusBarStyle;
|
|
314
|
+
Stretch: typeof CoreTypes.ImageStretch;
|
|
315
|
+
SystemAppearance: typeof CoreTypes.SystemAppearance;
|
|
316
|
+
TextAlignment: typeof CoreTypes.TextAlignment;
|
|
317
|
+
TextDecoration: typeof CoreTypes.TextDecoration;
|
|
318
|
+
TextTransform: typeof CoreTypes.TextTransform;
|
|
319
|
+
UpdateTextTrigger: typeof CoreTypes.UpdateTextTrigger;
|
|
320
|
+
VerticalAlignment: typeof CoreTypes.VerticalAlignment;
|
|
321
|
+
Visibility: typeof CoreTypes.Visibility;
|
|
322
|
+
WhiteSpace: typeof CoreTypes.WhiteSpace;
|
|
798
323
|
};
|