mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): dom types and jsdoc tags (#10868)
This commit is contained in:
@@ -302,10 +302,6 @@ namespace SuspendType {
|
|||||||
|
|
||||||
const DEFAULT_VIEW_PADDINGS: Map<string, any> = new Map();
|
const DEFAULT_VIEW_PADDINGS: Map<string, any> = new Map();
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @nsView ViewBase
|
|
||||||
*/
|
|
||||||
export abstract class ViewBase extends Observable {
|
export abstract class ViewBase extends Observable {
|
||||||
/**
|
/**
|
||||||
* String value used when hooking to loaded event.
|
* String value used when hooking to loaded event.
|
||||||
|
|||||||
16
packages/core/ui/core/view/index.d.ts
vendored
16
packages/core/ui/core/view/index.d.ts
vendored
@@ -8,7 +8,7 @@ import { ShadowCSSValues } from '../../styling/css-shadow';
|
|||||||
import { LinearGradient } from '../../styling/linear-gradient';
|
import { LinearGradient } from '../../styling/linear-gradient';
|
||||||
import { InheritedProperty, Property } from '../properties';
|
import { InheritedProperty, Property } from '../properties';
|
||||||
import { ViewBase } from '../view-base';
|
import { ViewBase } from '../view-base';
|
||||||
import { ViewCommon } from './view-common';
|
import { GlassEffectType, ViewCommon } from './view-common';
|
||||||
import type { Point } from './view-interfaces';
|
import type { Point } from './view-interfaces';
|
||||||
|
|
||||||
export * from './view-common';
|
export * from './view-common';
|
||||||
@@ -47,8 +47,6 @@ export function viewMatchesModuleContext(view: View, context: ModuleContext, typ
|
|||||||
/**
|
/**
|
||||||
* This class is the base class for all UI components.
|
* This class is the base class for all UI components.
|
||||||
* A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
|
* A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
|
||||||
*
|
|
||||||
* @nsView View
|
|
||||||
*/
|
*/
|
||||||
export abstract class View extends ViewCommon {
|
export abstract class View extends ViewCommon {
|
||||||
/**
|
/**
|
||||||
@@ -232,6 +230,8 @@ export abstract class View extends ViewCommon {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If `true` the element is an accessibility element and all the children will be treated as a single selectable component.
|
* If `true` the element is an accessibility element and all the children will be treated as a single selectable component.
|
||||||
|
*
|
||||||
|
* @nsProperty
|
||||||
*/
|
*/
|
||||||
accessible: boolean;
|
accessible: boolean;
|
||||||
|
|
||||||
@@ -289,6 +289,8 @@ export abstract class View extends ViewCommon {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property.
|
* When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property.
|
||||||
|
*
|
||||||
|
* @nsProperty
|
||||||
*/
|
*/
|
||||||
accessibilityLiveRegion: AccessibilityLiveRegion;
|
accessibilityLiveRegion: AccessibilityLiveRegion;
|
||||||
|
|
||||||
@@ -610,6 +612,14 @@ export abstract class View extends ViewCommon {
|
|||||||
*/
|
*/
|
||||||
visionHoverStyle: string | VisionHoverOptions;
|
visionHoverStyle: string | VisionHoverOptions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the iOS Liquid Glass effect style on the view
|
||||||
|
*
|
||||||
|
* @nsProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
iosGlassEffect: GlassEffectType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @nsProperty
|
* @nsProperty
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ export abstract class ViewCommon extends ViewBase {
|
|||||||
*/
|
*/
|
||||||
public visionHoverStyle: string | VisionHoverOptions;
|
public visionHoverStyle: string | VisionHoverOptions;
|
||||||
public visionIgnoreHoverStyle: boolean;
|
public visionIgnoreHoverStyle: boolean;
|
||||||
|
iosGlassEffect: GlassEffectType;
|
||||||
|
|
||||||
protected _closeModalCallback: Function;
|
protected _closeModalCallback: Function;
|
||||||
public _manager: any;
|
public _manager: any;
|
||||||
|
|||||||
2
packages/core/ui/slider/index.d.ts
vendored
2
packages/core/ui/slider/index.d.ts
vendored
@@ -18,7 +18,7 @@ export class Slider extends View {
|
|||||||
/**
|
/**
|
||||||
* String value used when hooking to accessibilityDecrement event.
|
* String value used when hooking to accessibilityDecrement event.
|
||||||
*
|
*
|
||||||
* @nsEvent {accessibilityDecrementEvent} accessibilityDecrement
|
* @nsEvent {AccessibilityDecrementEventData} accessibilityDecrement
|
||||||
*/
|
*/
|
||||||
static readonly accessibilityDecrementEvent = 'accessibilityDecrement';
|
static readonly accessibilityDecrementEvent = 'accessibilityDecrement';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user