@nativescript/core 8.8.2 → 8.8.3-alpha.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.
Files changed (107) hide show
  1. package/color/color-common.js +3 -3
  2. package/color/color-common.js.map +1 -1
  3. package/data/observable/index.d.ts +1 -0
  4. package/data/observable/index.js +1 -0
  5. package/data/observable/index.js.map +1 -1
  6. package/index.d.ts +1 -1
  7. package/package.json +1 -1
  8. package/ui/action-bar/index.d.ts +33 -0
  9. package/ui/activity-indicator/index.d.ts +4 -0
  10. package/ui/button/index.d.ts +6 -0
  11. package/ui/content-view/index.d.ts +9 -0
  12. package/ui/core/view/index.android.d.ts +2 -2
  13. package/ui/core/view/index.android.js +4 -4
  14. package/ui/core/view/index.android.js.map +1 -1
  15. package/ui/core/view/index.d.ts +211 -7
  16. package/ui/core/view/index.ios.js +5 -1
  17. package/ui/core/view/index.ios.js.map +1 -1
  18. package/ui/core/view/view-common.d.ts +6 -0
  19. package/ui/core/view/view-common.js +12 -0
  20. package/ui/core/view/view-common.js.map +1 -1
  21. package/ui/core/view/view-helper/index.ios.js +8 -2
  22. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  23. package/ui/core/view/view-helper/view-helper-common.js +6 -0
  24. package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
  25. package/ui/core/view-base/index.d.ts +93 -2
  26. package/ui/core/view-base/index.js +18 -0
  27. package/ui/core/view-base/index.js.map +1 -1
  28. package/ui/date-picker/date-picker-common.d.ts +1 -0
  29. package/ui/date-picker/date-picker-common.js +1 -0
  30. package/ui/date-picker/date-picker-common.js.map +1 -1
  31. package/ui/date-picker/index.d.ts +30 -0
  32. package/ui/dialogs/dialogs-common.js +5 -0
  33. package/ui/dialogs/dialogs-common.js.map +1 -1
  34. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -0
  35. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  36. package/ui/editable-text-base/index.d.ts +42 -0
  37. package/ui/frame/frame-common.d.ts +1 -1
  38. package/ui/frame/frame-common.js +2 -2
  39. package/ui/frame/frame-common.js.map +1 -1
  40. package/ui/frame/index.d.ts +39 -2
  41. package/ui/gestures/gestures-common.d.ts +22 -0
  42. package/ui/gestures/gestures-common.js +22 -0
  43. package/ui/gestures/gestures-common.js.map +1 -1
  44. package/ui/html-view/html-view-common.d.ts +1 -0
  45. package/ui/html-view/html-view-common.js.map +1 -1
  46. package/ui/html-view/index.d.ts +16 -2
  47. package/ui/image/image-common.d.ts +2 -0
  48. package/ui/image/image-common.js +1 -0
  49. package/ui/image/image-common.js.map +1 -1
  50. package/ui/image/index.d.ts +43 -1
  51. package/ui/index.d.ts +2 -0
  52. package/ui/index.js.map +1 -1
  53. package/ui/label/index.d.ts +4 -0
  54. package/ui/layouts/absolute-layout/index.d.ts +2 -0
  55. package/ui/layouts/dock-layout/index.d.ts +5 -1
  56. package/ui/layouts/flexbox-layout/index.d.ts +32 -0
  57. package/ui/layouts/grid-layout/index.d.ts +19 -0
  58. package/ui/layouts/layout-base.d.ts +14 -0
  59. package/ui/layouts/root-layout/index.android.js +5 -5
  60. package/ui/layouts/root-layout/index.android.js.map +1 -1
  61. package/ui/layouts/root-layout/index.d.ts +3 -0
  62. package/ui/layouts/stack-layout/index.d.ts +3 -0
  63. package/ui/layouts/wrap-layout/index.d.ts +8 -0
  64. package/ui/list-picker/index.d.ts +12 -1
  65. package/ui/list-picker/list-picker-common.d.ts +1 -0
  66. package/ui/list-picker/list-picker-common.js +1 -0
  67. package/ui/list-picker/list-picker-common.js.map +1 -1
  68. package/ui/list-view/index.d.ts +24 -0
  69. package/ui/list-view/index.ios.js +2 -1
  70. package/ui/list-view/index.ios.js.map +1 -1
  71. package/ui/page/index.d.ts +31 -2
  72. package/ui/placeholder/index.d.ts +4 -0
  73. package/ui/progress/index.d.ts +13 -0
  74. package/ui/proxy-view-container/index.d.ts +2 -0
  75. package/ui/proxy-view-container/index.js +2 -0
  76. package/ui/proxy-view-container/index.js.map +1 -1
  77. package/ui/repeater/index.d.ts +2 -0
  78. package/ui/repeater/index.js +2 -0
  79. package/ui/repeater/index.js.map +1 -1
  80. package/ui/scroll-view/index.d.ts +10 -0
  81. package/ui/search-bar/index.d.ts +14 -0
  82. package/ui/segmented-bar/index.d.ts +21 -5
  83. package/ui/slider/index.d.ts +27 -0
  84. package/ui/slider/slider-common.d.ts +1 -0
  85. package/ui/slider/slider-common.js +1 -0
  86. package/ui/slider/slider-common.js.map +1 -1
  87. package/ui/styling/background.ios.js +11 -6
  88. package/ui/styling/background.ios.js.map +1 -1
  89. package/ui/styling/style/index.d.ts +3 -1
  90. package/ui/styling/style/index.js.map +1 -1
  91. package/ui/styling/style-scope.js +15 -9
  92. package/ui/styling/style-scope.js.map +1 -1
  93. package/ui/switch/index.d.ts +11 -0
  94. package/ui/tab-view/index.d.ts +43 -5
  95. package/ui/text-base/formatted-string.d.ts +24 -0
  96. package/ui/text-base/index.d.ts +47 -0
  97. package/ui/text-base/span.d.ts +30 -0
  98. package/ui/text-base/text-base-common.d.ts +2 -0
  99. package/ui/text-base/text-base-common.js +6 -0
  100. package/ui/text-base/text-base-common.js.map +1 -1
  101. package/ui/text-field/index.d.ts +13 -0
  102. package/ui/text-view/index.d.ts +11 -0
  103. package/ui/time-picker/index.d.ts +27 -0
  104. package/ui/time-picker/time-picker-common.d.ts +1 -0
  105. package/ui/time-picker/time-picker-common.js +1 -0
  106. package/ui/time-picker/time-picker-common.js.map +1 -1
  107. package/ui/web-view/index.d.ts +12 -0
@@ -1,13 +1,13 @@
1
- import { ViewBase } from '../view-base';
2
- import { Property, InheritedProperty } from '../properties';
3
- import { EventData } from '../../../data/observable';
1
+ import { AccessibilityEventOptions, AccessibilityLiveRegion, AccessibilityRole, AccessibilityState } from '../../../accessibility/accessibility-types';
4
2
  import { Color } from '../../../color';
5
- import { Animation, AnimationDefinition, AnimationPromise } from '../../animation';
6
- import { GestureTypes, GesturesObserver } from '../../gestures';
7
- import { LinearGradient } from '../../styling/linear-gradient';
8
- import { AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait, AccessibilityEventOptions } from '../../../accessibility/accessibility-types';
9
3
  import { CoreTypes } from '../../../core-types';
4
+ import { EventData } from '../../../data/observable';
5
+ import { Animation, AnimationDefinition, AnimationPromise } from '../../animation';
6
+ import { GestureTypes, GesturesObserver, TouchAnimationOptions, VisionHoverOptions } from '../../gestures';
10
7
  import { ShadowCSSValues } from '../../styling/css-shadow';
8
+ import { LinearGradient } from '../../styling/linear-gradient';
9
+ import { InheritedProperty, Property } from '../properties';
10
+ import { ViewBase } from '../view-base';
11
11
  import { ViewCommon } from './view-common';
12
12
 
13
13
  export * from './view-common';
@@ -100,34 +100,48 @@ export interface ShownModallyData extends EventData {
100
100
  /**
101
101
  * This class is the base class for all UI components.
102
102
  * A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
103
+ *
104
+ * @nsView View
103
105
  */
104
106
  export abstract class View extends ViewCommon {
105
107
  /**
106
108
  * String value used when hooking to layoutChanged event.
109
+ *
110
+ * @nsEvent layoutChanged
107
111
  */
108
112
  public static layoutChangedEvent: string;
109
113
  /**
110
114
  * String value used when hooking to showingModally event.
115
+ *
116
+ * @nsEvent {ShownModallyData} showingModally
111
117
  */
112
118
  public static showingModallyEvent: string;
113
119
 
114
120
  /**
115
121
  * String value used when hooking to shownModally event.
122
+ *
123
+ * @nsEvent {ShownModallyData} shownModally
116
124
  */
117
125
  public static shownModallyEvent: string;
118
126
 
119
127
  /**
120
128
  * String value used when hooking to accessibilityBlur event.
129
+ *
130
+ * @nsEvent accessibilityBlur
121
131
  */
122
132
  public static accessibilityBlurEvent: string;
123
133
 
124
134
  /**
125
135
  * String value used when hooking to accessibilityFocus event.
136
+ *
137
+ * @nsEvent accessibilityFocus
126
138
  */
127
139
  public static accessibilityFocusEvent: string;
128
140
 
129
141
  /**
130
142
  * String value used when hooking to accessibilityFocusChanged event.
143
+ *
144
+ * @nsEvent {EventDataValue} accessibilityFocusChanged
131
145
  */
132
146
  public static accessibilityFocusChangedEvent: string;
133
147
 
@@ -145,91 +159,127 @@ export abstract class View extends ViewCommon {
145
159
 
146
160
  /**
147
161
  * Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified.
162
+ *
163
+ * @nsProperty
148
164
  */
149
165
  bindingContext: any;
150
166
 
151
167
  /**
152
168
  * Gets or sets the border color of the view.
169
+ *
170
+ * @nsProperty
153
171
  */
154
172
  borderColor: string | Color;
155
173
 
156
174
  /**
157
175
  * Gets or sets the top border color of the view.
176
+ *
177
+ * @nsProperty
158
178
  */
159
179
  borderTopColor: Color;
160
180
 
161
181
  /**
162
182
  * Gets or sets the right border color of the view.
183
+ *
184
+ * @nsProperty
163
185
  */
164
186
  borderRightColor: Color;
165
187
 
166
188
  /**
167
189
  * Gets or sets the bottom border color of the view.
190
+ *
191
+ * @nsProperty
168
192
  */
169
193
  borderBottomColor: Color;
170
194
 
171
195
  /**
172
196
  * Gets or sets the left border color of the view.
197
+ *
198
+ * @nsProperty
173
199
  */
174
200
  borderLeftColor: Color;
175
201
 
176
202
  /**
177
203
  * Gets or sets the border width of the view.
204
+ *
205
+ * @nsProperty
178
206
  */
179
207
  borderWidth: string | CoreTypes.LengthType;
180
208
 
181
209
  /**
182
210
  * Gets or sets the top border width of the view.
211
+ *
212
+ * @nsProperty
183
213
  */
184
214
  borderTopWidth: CoreTypes.LengthType;
185
215
 
186
216
  /**
187
217
  * Gets or sets the right border width of the view.
218
+ *
219
+ * @nsProperty
188
220
  */
189
221
  borderRightWidth: CoreTypes.LengthType;
190
222
 
191
223
  /**
192
224
  * Gets or sets the bottom border width of the view.
225
+ *
226
+ * @nsProperty
193
227
  */
194
228
  borderBottomWidth: CoreTypes.LengthType;
195
229
 
196
230
  /**
197
231
  * Gets or sets the left border width of the view.
232
+ *
233
+ * @nsProperty
198
234
  */
199
235
  borderLeftWidth: CoreTypes.LengthType;
200
236
 
201
237
  /**
202
238
  * Gets or sets the border radius of the view.
239
+ *
240
+ * @nsProperty
203
241
  */
204
242
  borderRadius: string | CoreTypes.LengthType;
205
243
 
206
244
  /**
207
245
  * Gets or sets the top left border radius of the view.
246
+ *
247
+ * @nsProperty
208
248
  */
209
249
  borderTopLeftRadius: CoreTypes.LengthType;
210
250
 
211
251
  /**
212
252
  * Gets or sets the top right border radius of the view.
253
+ *
254
+ * @nsProperty
213
255
  */
214
256
  borderTopRightRadius: CoreTypes.LengthType;
215
257
 
216
258
  /**
217
259
  * Gets or sets the bottom right border radius of the view.
260
+ *
261
+ * @nsProperty
218
262
  */
219
263
  borderBottomRightRadius: CoreTypes.LengthType;
220
264
 
221
265
  /**
222
266
  * Gets or sets the bottom left border radius of the view.
267
+ *
268
+ * @nsProperty
223
269
  */
224
270
  borderBottomLeftRadius: CoreTypes.LengthType;
225
271
 
226
272
  /**
227
273
  * Gets or sets the color of the view.
274
+ *
275
+ * @nsProperty
228
276
  */
229
277
  color: Color;
230
278
 
231
279
  /**
232
280
  * Hide the view and its children from the a11y service
281
+ *
282
+ * @nsProperty
233
283
  */
234
284
  accessibilityHidden: boolean;
235
285
 
@@ -237,58 +287,90 @@ export abstract class View extends ViewCommon {
237
287
  * The view's unique accessibilityIdentifier.
238
288
  *
239
289
  * This is used for automated testing.
290
+ *
291
+ * @nsProperty
240
292
  */
241
293
  accessibilityIdentifier: string;
242
294
 
243
295
  /**
244
296
  * Which role should this view be treated by the a11y service?
297
+ *
298
+ * @nsProperty
245
299
  */
246
300
  accessibilityRole: AccessibilityRole;
247
301
 
248
302
  /**
249
303
  * Which state should this view be treated as by the a11y service?
304
+ *
305
+ * @nsProperty
306
+ *
250
307
  */
251
308
  accessibilityState: AccessibilityState;
252
309
 
253
310
  /**
254
311
  * Short description of the element, ideally one word.
312
+ *
313
+ * @nsProperty
255
314
  */
256
315
  accessibilityLabel: string;
257
316
 
258
317
  /**
259
318
  * Current value of the element in a localized string.
319
+ *
320
+ * @nsProperty
260
321
  */
261
322
  accessibilityValue: string;
262
323
 
263
324
  /**
264
325
  * A hint describes the elements behavior. Example: 'Tap change playback speed'
326
+ *
327
+ * @nsProperty
265
328
  */
266
329
  accessibilityHint: string;
330
+
331
+ /**
332
+ * When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property.
333
+ */
267
334
  accessibilityLiveRegion: AccessibilityLiveRegion;
268
335
 
269
336
  /**
270
337
  * Sets the language in which to speak the element's label and value.
271
338
  * Accepts language ID tags that follows the "BCP 47" specification.
339
+ *
340
+ * @nsProperty
272
341
  */
273
342
  accessibilityLanguage: string;
274
343
 
275
344
  /**
276
345
  * This view starts a media session. Equivalent to trait = startsMedia
346
+ *
347
+ * @nsProperty
277
348
  */
278
349
  accessibilityMediaSession: boolean;
279
350
 
351
+ /**
352
+ * @nsProperty
353
+ */
354
+ accessibilityIgnoresInvertColors: boolean;
355
+
280
356
  /**
281
357
  * Defines whether accessibility font scale should affect font size.
358
+ *
359
+ * @nsProperty
282
360
  */
283
361
  iosAccessibilityAdjustsFontSize: boolean;
284
362
 
285
363
  /**
286
364
  * Gets or sets the minimum accessibility font scale.
365
+ *
366
+ * @nsProperty
287
367
  */
288
368
  iosAccessibilityMinFontScale: number;
289
369
 
290
370
  /**
291
371
  * Gets or sets the maximum accessibility font scale.
372
+ *
373
+ * @nsProperty
292
374
  */
293
375
  iosAccessibilityMaxFontScale: number;
294
376
 
@@ -297,141 +379,199 @@ export abstract class View extends ViewCommon {
297
379
  */
298
380
  _androidContentDescriptionUpdated?: boolean;
299
381
 
382
+ /**
383
+ *
384
+ * @nsProperty
385
+ */
300
386
  automationText: string;
301
387
 
302
388
  /**
303
389
  * Gets or sets the elevation of the android view.
390
+ *
391
+ * @nsProperty
304
392
  */
305
393
  androidElevation: number;
306
394
 
307
395
  /**
308
396
  * Gets or sets the dynamic elevation offset of the android view.
397
+ *
398
+ * @nsProperty
309
399
  */
310
400
  androidDynamicElevationOffset: number;
311
401
 
312
402
  /**
313
403
  * Gets or sets the background style property.
404
+ *
405
+ * @nsProperty
314
406
  */
315
407
  background: string;
316
408
 
317
409
  /**
318
410
  * Gets or sets the background color of the view.
411
+ *
412
+ * @nsProperty
319
413
  */
320
414
  backgroundColor: string | Color;
321
415
 
322
416
  /**
323
417
  * Gets or sets the background image of the view.
418
+ *
419
+ * @nsProperty
324
420
  */
325
421
  backgroundImage: string | LinearGradient;
326
422
 
327
423
  /**
328
424
  * Gets or sets the box shadow of the view.
425
+ *
426
+ * @nsProperty
329
427
  */
330
428
  boxShadow: string | ShadowCSSValues;
331
429
 
332
430
  /**
333
431
  * Gets or sets the minimum width the view may grow to.
432
+ *
433
+ * @nsProperty
334
434
  */
335
435
  minWidth: CoreTypes.LengthType;
336
436
 
337
437
  /**
338
438
  * Gets or sets the minimum height the view may grow to.
439
+ *
440
+ * @nsProperty
339
441
  */
340
442
  minHeight: CoreTypes.LengthType;
341
443
 
342
444
  /**
343
445
  * Gets or sets the desired width of the view.
446
+ *
447
+ * @nsProperty
344
448
  */
345
449
  width: CoreTypes.PercentLengthType;
346
450
 
347
451
  /**
348
452
  * Gets or sets the desired height of the view.
453
+ *
454
+ * @nsProperty
349
455
  */
350
456
  height: CoreTypes.PercentLengthType;
351
457
 
352
458
  /**
353
459
  * Gets or sets margin style property.
460
+ *
461
+ * @nsProperty
354
462
  */
355
463
  margin: string | CoreTypes.PercentLengthType;
356
464
 
357
465
  /**
358
466
  * Specifies extra space on the left side of this view.
467
+ *
468
+ * @nsProperty
359
469
  */
360
470
  marginLeft: CoreTypes.PercentLengthType;
361
471
 
362
472
  /**
363
473
  * Specifies extra space on the top side of this view.
474
+ *
475
+ * @nsProperty
364
476
  */
365
477
  marginTop: CoreTypes.PercentLengthType;
366
478
 
367
479
  /**
368
480
  * Specifies extra space on the right side of this view.
481
+ *
482
+ * @nsProperty
369
483
  */
370
484
  marginRight: CoreTypes.PercentLengthType;
371
485
 
372
486
  /**
373
487
  * Specifies extra space on the bottom side of this view.
488
+ *
489
+ * @nsProperty
374
490
  */
375
491
  marginBottom: CoreTypes.PercentLengthType;
376
492
 
377
493
  /**
378
494
  * Gets or sets the alignment of this view within its parent along the Horizontal axis.
495
+ *
496
+ * @nsProperty
379
497
  */
380
498
  horizontalAlignment: CoreTypes.HorizontalAlignmentType;
381
499
 
382
500
  /**
383
501
  * Gets or sets the alignment of this view within its parent along the Vertical axis.
502
+ *
503
+ * @nsProperty
384
504
  */
385
505
  verticalAlignment: CoreTypes.VerticalAlignmentType;
386
506
 
387
507
  /**
388
508
  * Gets or sets the visibility of the view.
509
+ *
510
+ * @nsProperty
389
511
  */
390
512
  visibility: CoreTypes.VisibilityType;
391
513
 
392
514
  /**
393
515
  * Gets or sets the opacity style property.
516
+ *
517
+ * @nsProperty
394
518
  */
395
519
  opacity: number;
396
520
 
397
521
  /**
398
522
  * Gets or sets the rotate affine transform of the view along the Z axis.
523
+ *
524
+ * @nsProperty
399
525
  */
400
526
  rotate: number;
401
527
 
402
528
  /**
403
529
  * Gets or sets the rotate affine transform of the view along the X axis.
530
+ *
531
+ * @nsProperty
404
532
  */
405
533
  rotateX: number;
406
534
 
407
535
  /**
408
536
  * Gets or sets the rotate affine transform of the view along the Y axis.
537
+ *
538
+ * @nsProperty
409
539
  */
410
540
  rotateY: number;
411
541
 
412
542
  /**
413
543
  * Gets or sets the distance of the camera form the view perspective.
414
544
  * Usually needed when rotating the view over the X or Y axis.
545
+ *
546
+ * @nsProperty
415
547
  */
416
548
  perspective: number;
417
549
 
418
550
  /**
419
551
  * Gets or sets the translateX affine transform of the view in device independent pixels.
552
+ *
553
+ * @nsProperty
420
554
  */
421
555
  translateX: CoreTypes.dip;
422
556
 
423
557
  /**
424
558
  * Gets or sets the translateY affine transform of the view in device independent pixels.
559
+ *
560
+ * @nsProperty
425
561
  */
426
562
  translateY: CoreTypes.dip;
427
563
 
428
564
  /**
429
565
  * Gets or sets the scaleX affine transform of the view.
566
+ *
567
+ * @nsProperty
430
568
  */
431
569
  scaleX: number;
432
570
 
433
571
  /**
434
572
  * Gets or sets the scaleY affine transform of the view.
573
+ *
574
+ * @nsProperty
435
575
  */
436
576
  scaleY: number;
437
577
 
@@ -439,39 +579,95 @@ export abstract class View extends ViewCommon {
439
579
 
440
580
  /**
441
581
  * Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view.
582
+ *
583
+ * @nsProperty
442
584
  */
443
585
  originX: number;
444
586
 
445
587
  /**
446
588
  * Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view.
589
+ *
590
+ * @nsProperty
447
591
  */
448
592
  originY: number;
449
593
 
594
+ /**
595
+ * The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior.
596
+ * @nsProperty
597
+ */
598
+ flexFlow: FlexFlow;
599
+ /**
600
+ * The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container.
601
+ * @nsProperty
602
+ */
603
+ flex: Flex;
604
+
450
605
  /**
451
606
  * Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view.
607
+ *
608
+ * @nsProperty
452
609
  */
453
610
  isEnabled: boolean;
454
611
 
455
612
  /**
456
613
  * Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view.
614
+ *
615
+ * @nsProperty
457
616
  */
458
617
  isUserInteractionEnabled: boolean;
459
618
 
460
619
  /**
461
620
  * Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false
621
+ *
622
+ * @nsProperty
462
623
  */
463
624
  iosOverflowSafeArea: boolean;
464
625
 
465
626
  /**
466
627
  * Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true
628
+ *
629
+ * @nsProperty
467
630
  */
468
631
  iosOverflowSafeAreaEnabled: boolean;
469
632
 
470
633
  /**
471
634
  * Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false
635
+ *
636
+ * @nsProperty
472
637
  */
473
638
  iosIgnoreSafeArea: boolean;
474
639
 
640
+ /**
641
+ * visionOS only
642
+ *
643
+ * @nsProperty
644
+ */
645
+ visionIgnoreHoverStyle: boolean;
646
+
647
+ /**
648
+ * visionOS only
649
+ *
650
+ * @nsProperty
651
+ */
652
+ visionHoverStyle: string | VisionHoverOptions;
653
+
654
+ /**
655
+ * @nsProperty
656
+ */
657
+ public testID: string;
658
+ /**
659
+ * @nsProperty
660
+ */
661
+ public touchAnimation: boolean | TouchAnimationOptions;
662
+ /**
663
+ * @nsProperty
664
+ */
665
+ public ignoreTouchAnimation: boolean;
666
+ /**
667
+ * @nsProperty
668
+ */
669
+ public touchDelay: number;
670
+
475
671
  /**
476
672
  * Gets is layout is valid. This is a read-only property.
477
673
  */
@@ -908,6 +1104,8 @@ export abstract class View extends ViewCommon {
908
1104
  export class ContainerView extends View {
909
1105
  /**
910
1106
  * Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true
1107
+ *
1108
+ * @nsProperty
911
1109
  */
912
1110
  public iosOverflowSafeArea: boolean;
913
1111
  }
@@ -990,3 +1188,9 @@ export const isEnabledProperty: Property<View, boolean>;
990
1188
  export const isUserInteractionEnabledProperty: Property<View, boolean>;
991
1189
  export const iosOverflowSafeAreaProperty: Property<View, boolean>;
992
1190
  export const iosOverflowSafeAreaEnabledProperty: InheritedProperty<View, boolean>;
1191
+ export const visionHoverStyleProperty: Property<View, string | VisionHoverOptions>;
1192
+ export const visionIgnoreHoverStyleProperty: Property<View, boolean>;
1193
+ export const touchAnimationProperty: Property<View, boolean | TouchAnimationOptions>;
1194
+ export const ignoreTouchAnimationProperty: Property<View, boolean>;
1195
+ export const touchDelayProperty: Property<View, number>;
1196
+ export const testIDProperty: Property<View, string>;
@@ -824,7 +824,11 @@ export class View extends ViewCommon {
824
824
  const popoverPresentationController = controller.popoverPresentationController;
825
825
  this._popoverPresentationDelegate = IOSHelper.UIPopoverPresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
826
826
  popoverPresentationController.delegate = this._popoverPresentationDelegate;
827
- const view = parent.nativeViewProtected;
827
+ let view;
828
+ do {
829
+ view = parent.nativeViewProtected;
830
+ parent = parent.parent;
831
+ } while (parent && !view);
828
832
  // Note: sourceView and sourceRect are needed to specify the anchor location for the popover.
829
833
  // Note: sourceView should be the button triggering the modal. If it the Page the popover might appear "behind" the page content
830
834
  popoverPresentationController.sourceView = view;