From 8da33c827a1202792bf08565b68013c6b115eec1 Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Fri, 4 Mar 2022 18:16:15 +0800 Subject: [PATCH] fixed 8cbc9a7 from https://gitee.com/houhaoyu/interface_sdk-js/pulls/930 fixed 21c7706 from https://gitee.com/houhaoyu/interface_sdk-js/pulls/928 houhaoyu@huawei.com update version Signed-off-by: houhaoyu Change-Id: I8f3c4b6634bd936da4d1a975d6f4113e463ec847 --- api/common/@internal/console.d.ts | 2 +- api/common/@internal/dom.d.ts | 1 + api/common/@internal/viewmodel.d.ts | 332 ++++++++++++++++++++++ api/liteWearable/@internal/console.d.ts | 9 + api/liteWearable/@internal/global.d.ts | 12 + api/liteWearable/@internal/viewmodel.d.ts | 44 +++ 6 files changed, 399 insertions(+), 1 deletion(-) diff --git a/api/common/@internal/console.d.ts b/api/common/@internal/console.d.ts index f1eec6e6d8..97ebc4d6bd 100644 --- a/api/common/@internal/console.d.ts +++ b/api/common/@internal/console.d.ts @@ -14,7 +14,7 @@ */ /** - * @syscap SystemCapability.ArkUI.ArkUI.Lite + * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable, liteWearable, smartVision * @since 3 */ diff --git a/api/common/@internal/dom.d.ts b/api/common/@internal/dom.d.ts index 39f358f314..1775835169 100644 --- a/api/common/@internal/dom.d.ts +++ b/api/common/@internal/dom.d.ts @@ -17,6 +17,7 @@ export { Element } from './viewmodel'; /** * global dom + * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ export declare class dom { diff --git a/api/common/@internal/viewmodel.d.ts b/api/common/@internal/viewmodel.d.ts index 062a8d2c2a..e30c64ba2e 100644 --- a/api/common/@internal/viewmodel.d.ts +++ b/api/common/@internal/viewmodel.d.ts @@ -20,10 +20,12 @@ import { WebGL2RenderingContext } from "../webgl/webgl2"; /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface FocusParamObj { /** * @devices tv, phone, tablet, wearable + * @since 7 */ focus: boolean; } @@ -31,22 +33,27 @@ export interface FocusParamObj { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface RectObj { /** * @devices tv, phone, tablet, wearable + * @since 7 */ width: number; /** * @devices tv, phone, tablet, wearable + * @since 7 */ height: number; /** * @devices tv, phone, tablet, wearable + * @since 7 */ left: number; /** * @devices tv, phone, tablet, wearable + * @since 7 */ top: number; } @@ -54,6 +61,7 @@ export interface RectObj { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface ContextAttrOptions { antialias: boolean; @@ -62,48 +70,57 @@ export interface ContextAttrOptions { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface AnimateStyle { /** * Width value applied to the component after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ width: number; /** * Height value applied to the component after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ height: number; /** * left offset applied to the component after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ left: number; /** * top offset applied to the component after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ top: number; /** * right offset applied to the component after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ right: number; /** * bottom offset applied to the component after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ bottom: number; /** * Background color applied to the component after the animation is executed. * The default value is none. * @devices tv, phone, tablet, wearable + * @since 7 */ backgroundColor: string; /** * Opacity applied to the component. The value ranges from 0 to 1. * The default value is 1. * @devices tv, phone, tablet, wearable + * @since 7 */ opacity: number; /** @@ -111,6 +128,7 @@ export interface AnimateStyle { * The first value indicates the horizontal position, and the second value indicates the vertical position. * If only one value is specified, the other value is 50% by default. * @devices tv, phone, tablet, wearable + * @since 7 */ backgroundPosition: string; /** @@ -118,11 +136,13 @@ export interface AnimateStyle { * The first value indicates the x-axis position. The value can be left, center, right, a length, or percentage. * The second value indicates the y-axis position. The value can be top, center, bottom, a length, or a percentage. * @devices tv, phone, tablet, wearable + * @since 7 */ transformOrigin: string; /** * Transformation type applied to an element. * @devices tv, phone, tablet, wearable + * @since 7 */ transform: "none" | TransformObject; /** @@ -130,6 +150,7 @@ export interface AnimateStyle { * If there are only two frames, offset can be left empty. * If there are more than two frames, offset is mandatory. * @devices tv, phone, tablet, wearable + * @since 7 */ offset?: number; } @@ -137,6 +158,7 @@ export interface AnimateStyle { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface TransformObject { /** @@ -148,6 +170,7 @@ export interface TransformObject { * @param translateX the translate value for x-axis * @param translateY the translate value for y-axis * @devices tv, phone, tablet, wearable + * @since 7 */ matrix( scaleX: number, @@ -175,6 +198,7 @@ export interface TransformObject { * @param n32 the value of the 3 row and 2 column of the 4x4 matrix * @param n33 the value of the 3 row and 3 column of the 4x4 matrix * @devices tv, phone, tablet, wearable + * @since 7 */ matrix3d(n00: number, n01: number, n02: number, n03: number, n10: number, n11: number, n12: number, n13: number, @@ -185,6 +209,7 @@ export interface TransformObject { * @param x the translate value for x-axis * @param y the translate value for y-axis * @devices tv, phone, tablet, wearable + * @since 7 */ translate(x: number, y: number): void; /** @@ -193,24 +218,28 @@ export interface TransformObject { * @param y the translate value for y-axis * @param z the translate value for z-axis * @devices tv, phone, tablet, wearable + * @since 7 */ translate3d(x: number, y: number, z: number): void; /** * Defines 2D transformations for translation of the X axes * @param x the translate value for x-axis * @devices tv, phone, tablet, wearable + * @since 7 */ translateX(x: number): void; /** * Defines 2D transformations for translation of the Y axes * @param y the translate value for y-axis * @devices tv, phone, tablet, wearable + * @since 7 */ translateY(y: number): void; /** * Defines 3D transformations for translation of the Z axes * @param z the translate value for z-axis * @devices tv, phone, tablet, wearable + * @since 7 */ translateZ(z: number): void; /** @@ -218,6 +247,7 @@ export interface TransformObject { * @param x the scale value for x-axis * @param y the scale value for y-axis * @devices tv, phone, tablet, wearable + * @since 7 */ scale(x: number, y: number): void; /** @@ -226,30 +256,35 @@ export interface TransformObject { * @param y the scale value for y-axis * @param z the scale value for z-axis * @devices tv, phone, tablet, wearable + * @since 7 */ scale3d(x: number, y: number, z: number): void; /** * Defines 2D transformations for scaling of the X axes * @param x the scale value for x-axis * @devices tv, phone, tablet, wearable + * @since 7 */ scaleX(x: number): void; /** * Defines 2D transformations for scaling of the Y axes * @param y the scale value for y-axis * @devices tv, phone, tablet, wearable + * @since 7 */ scaleY(y: number): void; /** * Defines 3D transformations for scaling of the Z axes * @param z the scale value for z-axis * @devices tv, phone, tablet, wearable + * @since 7 */ scaleZ(z: number): void; /** * Define the 2D rotation and specify the angle in the parameters. * @param angle the rotate value for z-axis * @devices tv, phone, tablet, wearable + * @since 7 */ rotate(angle: number): void; /** @@ -259,24 +294,28 @@ export interface TransformObject { * @param z the vector value of the z-axis * @param angle the rotate value for x&y&z vector. * @devices tv, phone, tablet, wearable + * @since 7 */ rotate3d(x: number, y: number, z: number, angle: number): void; /** * Defines 3D transformations for rotating of the X axes. * @param x the scale value for x-axis * @devices tv, phone, tablet, wearable + * @since 7 */ rotateX(angle: number): void; /** * Defines 3D transformations for rotating of the Y axes. * @param y the scale value for y-axis * @devices tv, phone, tablet, wearable + * @since 7 */ rotateY(angle: number): void; /** * Defines 3D transformations for rotating of the Z axes. * @param z the scale value for z-axis * @devices tv, phone, tablet, wearable + * @since 7 */ rotateZ(angle: number): void; /** @@ -284,24 +323,28 @@ export interface TransformObject { * @param xAngle the angle of inclination along the x axis. * @param yAngle the angle of inclination along the y axis. * @devices tv, phone, tablet, wearable + * @since 7 */ skew(xAngle: number, yAngle: number): void; /** * Defines the 2D skew transition along the X axes. * @param angle the angle of inclination along the x axis. * @devices tv, phone, tablet, wearable + * @since 7 */ skewX(angle: number): void; /** * Defines the 2D skew transition along the Y axes. * @param angle the angle of inclination along the y axis. * @devices tv, phone, tablet, wearable + * @since 7 */ skewY(angle: number): void; /** * Defines a perspective view for the 3D transformation element. * @param n the vertical distance from the observation point to the component plane. * @devices tv, phone, tablet, wearable + * @since 7 */ perspective(verticalDistance: number): void; } @@ -309,12 +352,14 @@ export interface TransformObject { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface AnimateOptions { /** * Duration of the animation, in milliseconds. * The default value is 0. * @devices tv, phone, tablet, wearable + * @since 7 */ duration: number; @@ -337,6 +382,7 @@ export interface AnimateOptions { * Step curve. The number must be set and only an integer is supported, step-position is optional. It can be set to start or end. The default value is end. * The default value is ease. * @devices tv, phone, tablet, wearable + * @since 7 */ easing: string; @@ -344,6 +390,7 @@ export interface AnimateOptions { * Delay for the animation start. The default value indicates no delay. * The default value is 0. * @devices tv, phone, tablet, wearable + * @since 7 */ delay: number; @@ -351,6 +398,7 @@ export interface AnimateOptions { * Number of times the animation will be played. number indicates a fixed number of playback operations, and Infinity indicates an unlimited number of playback operations. * The default value is 1. * @devices tv, phone, tablet, wearable + * @since 7 */ iterations: number | string; @@ -358,6 +406,7 @@ export interface AnimateOptions { * The animation playback mode. * The default value is "normal". * @devices tv, phone, tablet, wearable + * @since 7 */ direction: "normal" | "reverse" | "alternate" | "alternate-reverse"; @@ -366,6 +415,7 @@ export interface AnimateOptions { * none: The initial state is restored after the animation is executed. * forwards: The state at the end of the animation (defined in the last key frame) is retained after the animation is executed. * @devices tv, phone, tablet, wearable + * @since 7 */ fill: "none" | "forwards" | "backwards" | "both"; } @@ -373,16 +423,19 @@ export interface AnimateOptions { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface AnimationResult { /** * Read-only attribute, which indicates whether the animation playback is complete. * @devices tv, phone, tablet, wearable + * @since 7 */ finished: boolean; /** * Read-only attribute, which indicates whether an animation is waiting for the completion of other asynchronous operations (for example, start an animation with a delay). * @devices tv, phone, tablet, wearable + * @since 7 */ pending: boolean; /** @@ -392,56 +445,67 @@ export interface AnimationResult { * paused: The animation is paused. * finished: Animation playback ends. * @devices tv, phone, tablet, wearable + * @since 7 */ playstate: string; /** * Animation start time. This attribute is similar to that of delay in the options parameters. * @devices tv, phone, tablet, wearable + * @since 7 */ startTime: number; /** * Starts the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ play(): void; /** * Ends the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ finish(): void; /** * Pauses the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ pause(): void; /** * Cancels the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ cancel(): void; /** * Plays the animation in reverse direction. * @devices tv, phone, tablet, wearable + * @since 7 */ reverse(): void; /** * The animation is started. * @devices tv, phone, tablet, wearable + * @since 7 */ onstart: () => void; /** * The animation is finished. * @devices tv, phone, tablet, wearable + * @since 7 */ onfinish: () => void; /** * The animation is canceled. * @devices tv, phone, tablet, wearable + * @since 7 */ oncancel: () => void; /** * The animation is repeated. * @devices tv, phone, tablet, wearable + * @since 7 */ onrepeat: () => void; } @@ -449,6 +513,7 @@ export interface AnimationResult { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface Element { /** @@ -458,6 +523,7 @@ export interface Element { * This attribute can be defaulted to true. * @param obj { focus: true | false } * @devices tv, phone, tablet, wearable + * @since 7 */ focus(obj?: FocusParamObj): void; @@ -468,6 +534,7 @@ export interface Element { * This attribute can be defaulted to true. * @param obj { focus: true | false } * @devices tv, phone, tablet, wearable + * @since 7 */ rotation(obj?: FocusParamObj): void; @@ -477,6 +544,7 @@ export interface Element { * @param options Options. is used to describe animation parameters. * @returns This method returns the animation object. * @devices tv, phone, tablet, wearable + * @since 7 */ animate( keyframes: Array, @@ -487,6 +555,7 @@ export interface Element { * Obtains the size and position of the element. * @returns RectObj the size position of the element. * @devices tv, phone, tablet, wearable + * @since 7 */ getBoundingClientRect(): RectObj; @@ -494,12 +563,14 @@ export interface Element { * Obtains attributes of the element. * @returns attributes of the element in json string. * @devices tv, phone, tablet, wearable + * @since 7 */ getInspector(): string; /** * If 0.5 is returned, 50% of the current component is visible. * @param radios Scope of Monitoring components. + * @since 7 */ createIntersectionObserver(param: {ratios: Array}): observer; @@ -530,15 +601,18 @@ export interface Element { /** * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 6 */ export interface observer { /** * Turn on the listener. + * @since 7 */ observe(callback: string): void; /** * Turn off the listenerr. + * @since 7 */ unobserve(): void; } @@ -547,31 +621,37 @@ export interface observer { * animation element * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface AnimationElement extends Element { /** * Starts the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ play(): void; /** * Ends the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ finish(): void; /** * Pauses the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ pause(): void; /** * Cancels the animation. * @devices tv, phone, tablet, wearable + * @since 7 */ cancel(): void; /** * Plays the animation in reverse direction. * @devices tv, phone, tablet, wearable + * @since 7 */ reverse(): void; } @@ -579,23 +659,27 @@ export interface AnimationElement extends Element { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface ScrollParam { /** * Offset for scrolling in the horizontal direction, in px. * @devices tv, phone, tablet, wearable + * @since 7 */ dx?: number; /** * Offset for scrolling in the vertical direction, in px. * @devices tv, phone, tablet, wearable + * @since 7 */ dy?: number; /** * Whether a sliding animation is displayed when scroll position is changed. * @devices tv, phone, tablet, wearable + * @since 7 */ smooth?: boolean; } @@ -603,17 +687,20 @@ export interface ScrollParam { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface CurrentOffsetResultValue { /** * Scrolling offset in the x-axis, in px. * @devices tv, phone, tablet, wearable + * @since 7 */ x: number; /** * Scrolling offset in the y-axis, in px. * @devices tv, phone, tablet, wearable + * @since 7 */ y: number; } @@ -621,10 +708,12 @@ export interface CurrentOffsetResultValue { /** * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ export interface ListScrollToOptions { /** * specified position. + * @since 7 */ index: number; } @@ -633,11 +722,13 @@ export interface ListScrollToOptions { * The component provides a list container. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface ListElement extends Element { /** * Scrolls the list to the position of the item at the specified index. * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ scrollTo(position: ListScrollToOptions): void; @@ -645,6 +736,7 @@ export interface ListElement extends Element { * Scrolls the list for a certain distance. * This method applies only to smart TVs. * @devices tv + * @since 7 */ scrollBy(data: ScrollParam): void; @@ -653,6 +745,7 @@ export interface ListElement extends Element { * If smooth is set to true, the list is smoothly scrolled to the top. * @param param * @devices tv, phone, tablet, wearable + * @since 7 */ scrollTop(param: { smooth: boolean }): void; @@ -661,6 +754,7 @@ export interface ListElement extends Element { * If smooth is set to true, the list is smoothly scrolled to the bottom. * @param param * @devices tv, phone, tablet, wearable + * @since 7 */ scrollBottom(param: { smooth: boolean }): void; @@ -671,6 +765,7 @@ export interface ListElement extends Element { * If smooth is set to true, the list is smoothly scrolled to another page. * @param params * @devices tv, phone, tablet, wearable + * @since 7 */ scrollPage(params: { reverse: boolean; smooth: boolean }): void; @@ -681,6 +776,7 @@ export interface ListElement extends Element { * If smooth is set to true, the list is smoothly scrolled. * @param params * @devices tv, phone, tablet, wearable + * @since 7 */ scrollArrow(params: { reverse: boolean; smooth: boolean }): void; @@ -688,11 +784,13 @@ export interface ListElement extends Element { * Collapses a group. * @param param * @devices tv, phone, tablet, wearable + * @since 7 */ collapseGroup(param: { /** * groupid: ID of the group to collapse. * All groups are collapsed when groupid is not specified. + * @since 7 */ groupid: string; }): void; @@ -701,6 +799,7 @@ export interface ListElement extends Element { * Expands a group. * @param param * @devices tv, phone, tablet, wearable + * @since 7 */ expandGroup(param: { /** @@ -713,6 +812,7 @@ export interface ListElement extends Element { /** * Returns the offset of the current scrolling. The return value type is Object. * @devices tv, phone, tablet, wearable + * @since 7 */ currentOffset(): CurrentOffsetResultValue; } @@ -721,11 +821,13 @@ export interface ListElement extends Element { * The component provides a swiper container. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface SwiperElement extends Element { /** * Scrolls the child component to the position at the specified index. * @devices tv, phone, tablet, wearable + * @since 7 */ swipeTo(position: { /** @@ -737,12 +839,14 @@ export interface SwiperElement extends Element { /** * Shows the next child component. * @devices tv, phone, tablet, wearable + * @since 7 */ showNext(): void; /** * Shows the previous child component. * @devices tv, phone, tablet, wearable + * @since 7 */ showPrevious(): void; } @@ -750,6 +854,7 @@ export interface SwiperElement extends Element { /** * @devices tv, phone, tablet, wearable * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 */ export interface CameraTakePhotoOptions { /** @@ -761,6 +866,7 @@ export interface CameraTakePhotoOptions { * Callback function for successful interface invocation. * @param result the request execution result. * @devices tv, phone, tablet, wearable + * @since 7 */ success?: (result: Object) => void; @@ -768,6 +874,7 @@ export interface CameraTakePhotoOptions { * Callback function for interface invocation failure. * @param result the request execution result. * @devices tv, phone, tablet, wearable + * @since 7 */ fail?: (result: Object) => void; @@ -775,6 +882,7 @@ export interface CameraTakePhotoOptions { * Callback function at the end of the interface invoking (executed both successfully and unsuccessfully). * @param result the request execution result. * @devices tv, phone, tablet, wearable + * @since 7 */ complete?: (result: Object) => void; } @@ -783,12 +891,14 @@ export interface CameraTakePhotoOptions { * The component provides preview and photographing functions. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface CameraElement extends Element { /** * Take photos with specified parameters. * @param options the parameters of camera. * @devices tv, phone, tablet, wearable + * @since 7 */ takePhoto(options: CameraTakePhotoOptions): void; } @@ -797,11 +907,13 @@ export interface CameraElement extends Element { * The component is a container for displaying web page content. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet + * @since 7 */ export interface WebElement extends Element { /** * Reload the web page content * @devices tv, phone, tablet + * @since 7 */ reload(): void; } @@ -810,16 +922,19 @@ export interface WebElement extends Element { * The component is a custom pop-up container. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface DialogElement extends Element { /** * Shows a dialog box. * @devices tv, phone, tablet, wearable + * @since 7 */ show(): void; /** * Closes a dialog box. * @devices tv, phone, tablet, wearable + * @since 7 */ close(): void; } @@ -828,26 +943,31 @@ export interface DialogElement extends Element { * The component is used to provide an image frame animator. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface ImageAnimatorElement extends Element { /** * Starts to play the frame animation of an image. If this method is called again, the playback starts from the first frame. * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ start(): void; /** * Pauses the frame animation playback of an image. * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ pause(): void; /** * Stops the frame animation playback of an image. * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ stop(): void; /** * Resumes the frame animation playback of an image. * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ resume(): void; /** @@ -856,6 +976,7 @@ export interface ImageAnimatorElement extends Element { * Paused * Stopped * @devices tv, phone, tablet, wearable, liteWearable, smartVision + * @since 7 */ getState(): "Playing" | "Paused" | "Stopped"; } @@ -865,17 +986,20 @@ export interface ImageAnimatorElement extends Element { * When the text length exceeds the display area of the component, the marquee effect is displayed. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface MarqueeElement extends Element { /** * Starts scrolling. * @devices tv, phone, tablet, wearable + * @since 7 */ start(): void; /** * Stops scrolling. * @devices tv, phone, tablet, wearable + * @since 7 */ stop(): void; } @@ -884,6 +1008,7 @@ export interface MarqueeElement extends Element { * The component provides menus as temporary pop-up windows to display operations that can be performed by users. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet + * @since 7 */ export interface MenuElement extends Element { /** @@ -896,6 +1021,7 @@ export interface MenuElement extends Element { * When the visible space in the lower part is insufficient, the menu is moved upward. * @param position * @devices tv, phone, tablet + * @since 7 */ show(position: { x: number; y: number }): void; } @@ -904,6 +1030,7 @@ export interface MenuElement extends Element { * The component displays line charts, gauge charts, and bar charts. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface ChartElement extends Element { /** @@ -912,6 +1039,7 @@ export interface ChartElement extends Element { * datasets[index].data is not updated. Only line charts support this attribute. * The value is incremented by 1 based on the horizontal coordinate and is related to the xAxis min/max setting. * @devices tv, phone, tablet, wearable + * @since 7 */ append(params: { /** @@ -929,6 +1057,7 @@ export interface ChartElement extends Element { * The component provides an interactive interface to receive user input, which is displayed in a single line by default. * @syscap SystemCapability.ArkUI.ArkUI.Full * @devices tv, phone, tablet, wearable + * @since 7 */ export interface InputElement extends Element { /** @@ -936,6 +1065,7 @@ export interface InputElement extends Element { * When the component type is set to text, email, date, time, number, or password, the input method can be displayed or collapsed. * @param param If focus is not passed, the default value true is used. * @devices tv, phone, tablet, wearable + * @since 7 */ focus(param: { focus: boolean }): void; @@ -944,12 +1074,14 @@ export interface InputElement extends Element { * This attribute is available when the component type is set to text, email, date, time, number, or password. * @param param * @devices tv, phone, tablet, wearable + * @since 7 */ showError(param: { error: string }): void; /** * Deletes the previous character at the cursor position. * @devices tv, phone, tablet, wearable + * @since 7 */ delete(): void; } @@ -958,6 +1090,7 @@ export interface InputElement extends Element { * The