diff --git a/api/@internal/component/ets/action_sheet.d.ts b/api/@internal/component/ets/action_sheet.d.ts index 50c6217e9ed028b49d4419613dfaaa0b6ac09062..cf732bb4e5ed59939ac8bc342fe178f0fe2762e7 100644 --- a/api/@internal/component/ets/action_sheet.d.ts +++ b/api/@internal/component/ets/action_sheet.d.ts @@ -167,24 +167,13 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ dismiss: Callback; - - /** - * Defines dialog dismiss function. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - dismiss(): void; /** - * Reason why the dialog box cannot be dismissed. You must specify whether to close the dialog box for each of the - * listed actions. + * Dismiss reason type. * * @type { DismissReason } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -776,7 +765,7 @@ interface ActionSheetOptions *
A dialog box whose showInSubWindow attribute is true cannot trigger the display of another dialog box whose * showInSubWindow attribute is also true. *

- * + * * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/@internal/component/ets/alert_dialog.d.ts b/api/@internal/component/ets/alert_dialog.d.ts index 2d990224874bcdff015a0c3394cf3deda2ea1c69..2a90fff4334c54e45c03a4cef50f27f63c097bb9 100644 --- a/api/@internal/component/ets/alert_dialog.d.ts +++ b/api/@internal/component/ets/alert_dialog.d.ts @@ -27,7 +27,6 @@ import { WordBreak, DialogButtonStyle, BorderStyle } from './enums'; import { Rectangle, BlurStyle, Callback, TransitionEffect, ShadowOptions, ShadowStyle, HoverModeAreaType, DismissReason, BackgroundBlurStyleOptions, BackgroundEffectOptions } from './common'; import { LevelOrder, ImmersiveMode, LevelMode } from '../../@ohos.promptAction'; -import { DismissDialogAction } from './actionSheet'; /*** endif */ /** @@ -1385,7 +1384,8 @@ declare interface AlertDialogParamWithConfirm extends AlertDialogParam { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare interface DismissDialogAction { /** @@ -1395,7 +1395,8 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ dismiss: Callback; @@ -1406,7 +1407,8 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ reason: DismissReason; } diff --git a/api/@internal/component/ets/alphabet_indexer.d.ts b/api/@internal/component/ets/alphabet_indexer.d.ts index 8f6c408bf6a5a410c8a0ad4647d6b5dcea7154a3..926e88cb80d19e16ca58ad5faf18746090222b1a 100644 --- a/api/@internal/component/ets/alphabet_indexer.d.ts +++ b/api/@internal/component/ets/alphabet_indexer.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonMethod, BlurStyle, Bindable } from './common' +import { CommonMethod, BlurStyle } from './common' import { ResourceColor, Length, Position } from './units' import { Font } from './units' /*** endif */ @@ -200,20 +200,10 @@ interface AlphabetIndexerOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ selected: number; - /** - * ID of the selected item. - * - * @type { number | Bindable } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected: number | Bindable; } /** @@ -939,21 +929,10 @@ declare class AlphabetIndexerAttribute extends CommonMethod } index - * @returns { AlphabetIndexerAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected(index: number | Bindable): AlphabetIndexerAttribute; /** * Position of the pop-up windows, relative to the midpoint of the top border of the indexer bar. diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts index 38c5838bcd099010af53d88482afb5eb40f47bb1..453a88768497e4992bbae7ba143659d0f58cdfdc 100644 --- a/api/@internal/component/ets/badge.d.ts +++ b/api/@internal/component/ets/badge.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { ResourceColor, Length, Position, Resource, ResourceStr } from './units'; +import { ResourceColor, Length, Position, Resource } from './units'; import { FontWeight } from './enums'; import { CommonMethod } from './common'; /*** endif */ @@ -285,9 +285,20 @@ declare interface BadgeStyle { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ fontSize?: number | ResourceStr; + /** + * Text size. + * + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + fontSize?: number | string; /** * Size of a badge. @@ -341,9 +352,20 @@ declare interface BadgeStyle { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ badgeSize?: number | ResourceStr; + /** + * Size of a badge. + * + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + badgeSize?: number | string; /** * Color of the badge. @@ -459,9 +481,19 @@ declare interface BadgeStyle { * @crossplatform * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ fontWeight?: number | FontWeight | ResourceStr; + /** + * Define the font weight of the badge. + * + * @type { ?(number | FontWeight | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + fontWeight?: number | FontWeight | string; } /** @@ -797,9 +829,20 @@ declare interface BadgeParamWithString extends BadgeParam { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ value: ResourceStr; + /** + * Text string of the prompt content. + * + * @type { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + value: string; } /** @@ -1044,4 +1087,4 @@ declare const Badge: BadgeInterface; * @atomicservice * @since 11 */ -declare const BadgeInstance: BadgeAttribute; +declare const BadgeInstance: BadgeAttribute; \ No newline at end of file diff --git a/api/@internal/component/ets/button.d.ts b/api/@internal/component/ets/button.d.ts index 862e4c71c0dfd6a84079edd47377c3e92cd7c92a..c5d10b8e0d6e9c7c701e071af6edbafd794ee3f6 100644 --- a/api/@internal/component/ets/button.d.ts +++ b/api/@internal/component/ets/button.d.ts @@ -1386,7 +1386,7 @@ declare class ButtonAttribute extends CommonMethod { * @since 11 */ labelStyle(value: LabelStyle): ButtonAttribute; - + /** * Set button label style. * diff --git a/api/@internal/component/ets/calendar.d.ts b/api/@internal/component/ets/calendar.d.ts index bf5216137e23a896816ae5a42843d442d194cf13..4645df96a237e15aefd5dffe8704aa0ef7a43acc 100644 --- a/api/@internal/component/ets/calendar.d.ts +++ b/api/@internal/component/ets/calendar.d.ts @@ -18,6 +18,11 @@ * @kit ArkUI */ +/*** if arkts 1.2 */ +import { ResourceColor } from './units' +import { Axis } from './enums' +/*** endif */ + /** * Provides a monthly view component to display information such as date, shift break, and schedule. * @@ -1618,6 +1623,77 @@ declare class CalendarController { goTo(value: { year: number; month: number; day: number }); } +/** + * Defines the struct of CalendarRequestedMonths. + * + * @interface CalendarRequestedMonths + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @form + * @since 20 + * @arkts 1.2 + */ +declare interface CalendarRequestedMonths { + /** + * Default selected year/month/day. + * @type { CalendarSelectedDate } date + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @form + * @since 20 + * @arkts 1.2 + */ + date: CalendarSelectedDate; + + /** + * Dates contained in the current month. + * + * @type { MonthData } currentData + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @form + * @since 20 + * @arkts 1.2 + */ + currentData: MonthData; + + /** + * Dates contained in the previous month. + * + * @type { MonthData } preData + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @form + * @since 20 + * @arkts 1.2 + */ + preData: MonthData; + + /** + * Dates contained in the next month. + * + * @type { MonthData } nextData + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @form + * @since 20 + * @arkts 1.2 + */ + nextData: MonthData; + + /** + * Calendar controller. + * + * @type { ?CalendarController } controller + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @form + * @since 20 + * @arkts 1.2 + */ + controller?: CalendarController; +} + /** * Calendar Interface * diff --git a/api/@internal/component/ets/calendar_picker.d.ts b/api/@internal/component/ets/calendar_picker.d.ts index a86fbe7dc893ecf0dd88cd402caf88ad2d179a7c..64f5844db6d5be69fe59a28a94c8c6580df0cf6e 100644 --- a/api/@internal/component/ets/calendar_picker.d.ts +++ b/api/@internal/component/ets/calendar_picker.d.ts @@ -255,7 +255,7 @@ declare class CalendarPickerAttribute extends CommonMethod } alignType - The type of alignment between entry and calendar dialog. @@ -331,7 +331,7 @@ declare class CalendarPickerAttribute extends CommonMethod): CalendarPickerAttribute; - /** + /** * Callback for selected date changed. * @param { Optional> } callback - callback for selected date changed. * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. diff --git a/api/@internal/component/ets/canvas.d.ts b/api/@internal/component/ets/canvas.d.ts index 8ac90328238d56767c2a9a482b80edbdc0b62c8f..4b4b0e51b8f48a066f0c94cfb38effa6fc56bb5d 100644 --- a/api/@internal/component/ets/canvas.d.ts +++ b/api/@internal/component/ets/canvas.d.ts @@ -24,7 +24,7 @@ import { FrameNode } from '../FrameNode'; import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon'; import { Matrix2D } from './matrix2d'; import { VoidCallback, LengthMetricsUnit, LengthMetrics } from './units'; -import { Size } from '../Graphics' +import { Size } from '../Graphics'; /*** endif */ /** diff --git a/api/@internal/component/ets/checkbox.d.ts b/api/@internal/component/ets/checkbox.d.ts index eabf504d46ee1ca6bd632810f2bda67e090c8e1e..fefa89908949d86f8f5e5e4975525aec880d2c87 100644 --- a/api/@internal/component/ets/checkbox.d.ts +++ b/api/@internal/component/ets/checkbox.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonConfiguration, Callback, CommonMethod, ContentModifier, Optional, Bindable } from './common'; +import { CommonConfiguration, Callback, CommonMethod, ContentModifier, Optional } from './common'; import { CustomBuilder } from './builder'; import { ResourceColor, MarkStyle } from './units'; import { CheckBoxShape } from './enums'; @@ -366,7 +366,8 @@ declare class CheckboxAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ select(value: boolean): CheckboxAttribute; @@ -379,24 +380,11 @@ declare class CheckboxAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ select(isSelected: Optional): CheckboxAttribute; - /** - * setting whether checkbox is selected. - * - * @param { boolean | undefined | Bindable } isSelected - * @returns { CheckboxAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - select(isSelected: boolean | undefined | Bindable): CheckboxAttribute; - /** * setting the display color of checkbox. * diff --git a/api/@internal/component/ets/checkboxgroup.d.ts b/api/@internal/component/ets/checkboxgroup.d.ts index 60f4eb3d941e73bfcaa6301746350afb6e12d807..d46ef5b54b4037d95831717e0ba6868c9b06cd2a 100644 --- a/api/@internal/component/ets/checkboxgroup.d.ts +++ b/api/@internal/component/ets/checkboxgroup.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonMethod, Optional, Bindable } from './common'; +import { CommonMethod, Optional } from './common'; import { ResourceColor, MarkStyle } from './units'; import { CheckBoxShape } from './enums'; /*** endif */ @@ -507,7 +507,8 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute; - /** - * setting whether all checkbox is selected. - * - * @param { boolean| undefined|Bindable } isAllSelected - * @returns { CheckboxGroupAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selectAll(isAllSelected: boolean | undefined | Bindable): CheckboxGroupAttribute; - /** * setting the display color of checkbox. * @@ -703,7 +691,6 @@ declare class CheckboxGroupAttribute extends CommonMethodNOTE: @@ -168,7 +167,7 @@ declare interface InputCounterOptions { * @arkts 1.1&1.2 */ thresholdPercentage?: number; - + /** * If the current input character count reaches the maximum character count and users want to exceed the * normal input, the border will turn red. If this parameter is true, the red border displayed. @@ -1347,7 +1346,7 @@ declare const Concurrent: MethodDecorator; * A function with this decorator is marked as sendable, and the function can be an shareable property of sendable-class object. * A typeAlias with this decorator is marked as sendable, and the typeAlias can be used to declare properties, variables, * and arguments that need to be assigned with sendable-function. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -4074,7 +4073,8 @@ declare interface AnimateParam { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface ICurve { /** @@ -4114,24 +4114,12 @@ interface ICurve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interpolate(fraction: number): number; } -/** - * Interface for curve object. - * - * @typedef { curves.ICurve } ICurve - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export type ICurve = curves.ICurve; - /** * Defines the motion path options. * @@ -4560,7 +4548,7 @@ declare interface GeometryTransitionOptions { follow?: boolean; /** * Defines movement strategy of source and target in the hierarchy during geometry transition. - * + * * @type { ?TransitionHierarchyStrategy } * @default TransitionHierarchyStrategy.ADAPTIVE * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -4570,7 +4558,7 @@ declare interface GeometryTransitionOptions { */ /** * Defines movement strategy of source and target in the hierarchy during geometry transition. - * + * * @type { ?TransitionHierarchyStrategy } * @default TransitionHierarchyStrategy.ADAPTIVE * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -7210,7 +7198,7 @@ declare interface AsymmetricTransitionOption { /** * Defined the draw modifier of node. Provides draw callbacks for the associated Node. * Each DrawModifier instance can be set for only one component. Repeated setting is not allowed. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -7290,7 +7278,20 @@ declare class DrawModifier { * @since 20 */ drawForeground(drawContext: DrawContext): void; - + /** + * drawforeground Method. This method is executed after drawing associated Node and its children. + * It allows you to perform additional drawing operations on top of the already rendered content. + * This can be useful for adding visual elements that should appear above the main content. + * + * @param { DrawContext } drawContext - The drawContext used to draw. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + drawFront(drawContext: DrawContext): void; + /** * Invalidate the component, which will cause a re-render of the component. * No overloading is allowed or needed. @@ -7435,7 +7436,7 @@ declare class TransitionEffect< * This transition effect comes with its own animation parameters, which can also be overridden. * The default animation duration is 600 milliseconds, * with a specified animation curve of cubicBezierCurve(0.24, 0.0, 0.50, 1.0) and a minimum scale factor of 0.8. - * + * * @type { TransitionEffect<"slideSwitch"> } * @readonly * @static @@ -7451,7 +7452,7 @@ declare class TransitionEffect< * This transition effect comes with its own animation parameters, which can also be overridden. * The default animation duration is 600 milliseconds, * with a specified animation curve of cubicBezierCurve(0.24, 0.0, 0.50, 1.0) and a minimum scale factor of 0.8. - * + * * @type { TransitionEffect<"slideSwitch"> } * @readonly * @static @@ -7740,6 +7741,7 @@ declare class TransitionEffect { * Disables the transition effect * * @type { TransitionEffect } + * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -7748,12 +7750,13 @@ declare class TransitionEffect { * @since 20 * @arkts 1.2 */ - static get IDENTITY(): TransitionEffect; + static readonly IDENTITY: TransitionEffect; /** * Specifies a transition effect with transparency of 0, which is equivalent to TransitionEffect.opacity(0). * * @type { TransitionEffect } + * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -7762,12 +7765,13 @@ declare class TransitionEffect { * @since 20 * @arkts 1.2 */ - static get OPACITY(): TransitionEffect; + static readonly OPACITY: TransitionEffect; /** * Defines a slide transition effect * * @type { TransitionEffect } + * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -7776,7 +7780,7 @@ declare class TransitionEffect { * @since 20 * @arkts 1.2 */ - static get SLIDE(): TransitionEffect; + static readonly SLIDE: TransitionEffect; /** * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right, @@ -7785,6 +7789,7 @@ declare class TransitionEffect { * The default animation duration is set to 600ms, and the specified animation curve is cubicBezierCurve(0.24, 0.0, 0.50, 1.0). * * @type { TransitionEffect } + * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -7793,7 +7798,7 @@ declare class TransitionEffect { * @since 20 * @arkts 1.2 */ - static get SLIDE_SWITCH(): TransitionEffect; + static readonly SLIDE_SWITCH: TransitionEffect; /** * Creates a translate transition effect @@ -10179,7 +10184,7 @@ declare interface BlurOptions { declare interface SystemAdaptiveOptions { /** * Whether to disable system adaptive. - * + * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -10493,7 +10498,7 @@ declare interface BackgroundEffectOptions { * @arkts 1.1&1.2 */ declare interface ForegroundEffectOptions { - + /** * Define the radius size of ForegroundEffect.The range of this value is [0, ∞) * @@ -11160,7 +11165,7 @@ declare interface MultiShadowOptions { *

**NOTE**: *
A value less than or equal to 0 is handled as the default value. *

- * + * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -11173,7 +11178,7 @@ declare interface MultiShadowOptions { *

**NOTE**: *
A value less than or equal to 0 is handled as the default value. *

- * + * * @type { ?(number | Resource) } * @default 20 * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -11187,7 +11192,7 @@ declare interface MultiShadowOptions { /** * Offset on the x-axis. * Unit: vp. - * + * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -11197,7 +11202,7 @@ declare interface MultiShadowOptions { /** * Offset on the x-axis. * Unit: vp. - * + * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -12894,7 +12899,7 @@ declare interface MouseEvent extends BaseEvent { * @arkts 1.1&1.2 */ rawDeltaY?: number; - + /** * Array of all mouse buttons that are currently pressed. * @@ -13835,7 +13840,7 @@ declare type ShouldBuiltInRecognizerParallelWithCallback = (current: GestureReco /** * Defines the finish callback type used in transition. - * + * * @typedef { function } TransitionFinishCallback * @param { boolean } transitionIn - a boolean value indicates whether it is the callback of transitionIn or transitionOut. * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -14074,17 +14079,6 @@ declare type Summary = unifiedDataChannel.Summary; */ declare type UniformDataType = import('../api/@ohos.data.uniformTypeDescriptor').default.UniformDataType; -/** - * Import the UniformDataType type object for ui component. - * - * @typedef { uniformTypeDescriptor.UniformDataType } UniformDataType - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -declare type UniformDataType = uniformTypeDescriptor.UniformDataType; - /** * Import the GetDataParams type object for ui component. * @@ -14096,7 +14090,16 @@ declare type UniformDataType = uniformTypeDescriptor.UniformDataType; */ declare type DataSyncOptions = import('../api/@ohos.data.unifiedDataChannel').default.GetDataParams; - +/** + * Import the UniformDataType type object for ui component. + * + * @typedef { uniformTypeDescriptor.UniformDataType } UniformDataType + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +declare type UniformDataType = uniformTypeDescriptor.UniformDataType; /** * The type for SpringLoadingContext, see the detailed description in dragController. * @@ -14154,6 +14157,16 @@ declare type DataLoadParams = import('../api/@ohos.data.unifiedDataChannel').def * @arkts 1.1&1.2 */ declare enum DragResult { + /** + * If the drag is not finished and the result is not set by receiver, return DragResult.UNKNOWN. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + UNKNOWN = -1, /** * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. * @@ -14249,7 +14262,7 @@ declare enum DragResult { /** * Enum for BlendMode. - * Blend modes for compositing current component + * Blend modes for compositing current component * with overlapping content. Use overlapping content * as dst, current component as src. * @@ -16359,7 +16372,7 @@ declare enum SheetType { * @since 11 */ /** - * Popup sheet. The popup sheet cannot be dismissed with a pull-down gesture. + * Defines popup sheet type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -16670,7 +16683,7 @@ declare interface DismissSheetAction { } /** - * Defines sheet spring back action + * Defines sheet spring back action * * @interface SpringBackAction * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -16847,7 +16860,7 @@ declare interface SheetOptions extends BindOptions { /** * Mask color of the sheet. - * + * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -16855,7 +16868,7 @@ declare interface SheetOptions extends BindOptions { */ /** * Mask color of the sheet. - * + * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -16912,7 +16925,7 @@ declare interface SheetOptions extends BindOptions { /** * Background blur of the sheet. By default, there is no background blur. - * + * * @type { ?BlurStyle } * @default BlurStyle.NONE * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -16921,7 +16934,7 @@ declare interface SheetOptions extends BindOptions { */ /** * Background blur of the sheet. By default, there is no background blur. - * + * * @type { ?BlurStyle } * @default BlurStyle.NONE * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -17065,7 +17078,7 @@ declare interface SheetOptions extends BindOptions { *
If neither this callback nor **shouldDismiss** or **onWillDismiss** is registered, the sheet is dismissed by * default during the pull-down-to-dismiss operation. *

- * + * * @type { ?Callback } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -17147,7 +17160,7 @@ declare interface SheetOptions extends BindOptions { *

**NOTE**: *
For bottom sheets, the bottom border color setting is ineffective. *

- * + * * @type { ?(ResourceColor | EdgeColors | LocalizedEdgeColors) } * @default Color.Black * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -17345,7 +17358,7 @@ declare interface SheetOptions extends BindOptions { /** * Defines sheet radius - * + * * @type { ?(LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -17369,9 +17382,9 @@ declare interface SheetOptions extends BindOptions { detentSelection?: SheetSize | Length; /** - * Whether to display in the sub window + * Whether to display in the sub window * - * @type { ?boolean } + * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -17398,7 +17411,7 @@ declare interface SheetOptions extends BindOptions { /** * placement On target node * - * @type { ?boolean } + * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -17810,7 +17823,7 @@ declare interface PopupMessageOptions { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ -declare enum DismissReason { +declare enum DismissReason { /** * Touching the Back button, swiping left or right on the screen, or pressing the Esc key. * @@ -17889,21 +17902,11 @@ declare interface DismissPopupAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ dismiss: Callback; - /** - * Defines popup dismiss function - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - dismiss(): void; - /** * Defines popup dismiss reason * @@ -19230,7 +19233,7 @@ declare interface PopupOptions { * @arkts 1.1&1.2 */ onWillDismiss?: boolean | Callback; - + /** * Determine if it is compatible popup's half folded. * @@ -20186,7 +20189,7 @@ interface ContextMenuAnimationOptions { * @since 12 */ hoverScale?: AnimationRange; - + /** * Sets the scale start and end animator of the image displayed before the custom builder preview is displayed. * @@ -20555,10 +20558,10 @@ declare interface ContextMenuOptions { * @arkts 1.1&1.2 */ arrowOffset?: Length; - + /** * The preview content of context menu. - * + * * @type { ?(MenuPreviewMode | CustomBuilder) } * @default MenuPreviewMode.NONE * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -20696,7 +20699,7 @@ declare interface ContextMenuOptions { * @arkts 1.1&1.2 */ aboutToDisappear?: () => void; - + /** * The margin of menu's layoutRegion. * @@ -20709,7 +20712,7 @@ declare interface ContextMenuOptions { * @arkts 1.1&1.2 */ layoutRegionMargin?: Margin; - + /** * The preview animator options. * @@ -21111,7 +21114,7 @@ declare class ProgressMask { * @arkts 1.1&1.2 */ updateColor(value: ResourceColor): void; - + /** * Enable the breathe animation of mask. * @@ -21529,7 +21532,7 @@ declare interface ClickEffect { /** * Set scale number. * This default scale is same as the scale of click effect level. - * + * *

NOTE: *
This parameter works based on the setting of ClickEffectLevel. *
If level is set to ClickEffectLevel.LIGHT, the default value is 0.90. @@ -21774,7 +21777,7 @@ declare interface MenuElement { /** * Defines the attribute modifier. - * + * * @interface AttributeModifier * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21782,7 +21785,7 @@ declare interface MenuElement { */ /** * Defines the attribute modifier. - * + * * @interface AttributeModifier * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21793,7 +21796,7 @@ declare interface AttributeModifier { /** * Defines the normal update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21801,7 +21804,7 @@ declare interface AttributeModifier { */ /** * Defines the normal update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21812,7 +21815,7 @@ declare interface AttributeModifier { /** * Defines the pressed update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21820,7 +21823,7 @@ declare interface AttributeModifier { */ /** * Defines the pressed update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21831,7 +21834,7 @@ declare interface AttributeModifier { /** * Defines the focused update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21839,7 +21842,7 @@ declare interface AttributeModifier { */ /** * Defines the focused update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21850,7 +21853,7 @@ declare interface AttributeModifier { /** * Defines the disabled update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21858,7 +21861,7 @@ declare interface AttributeModifier { */ /** * Defines the disabled update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21869,7 +21872,7 @@ declare interface AttributeModifier { /** * Defines the selected update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21877,7 +21880,7 @@ declare interface AttributeModifier { */ /** * Defines the selected update attribute function. - * + * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21960,7 +21963,7 @@ declare interface AttributeModifier { } /** * Defines the content modifier. - * + * * @interface ContentModifier * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -21972,7 +21975,7 @@ declare interface ContentModifier { /** * Defining applyContent function. - * + * * @returns { WrappedBuilder<[T]> } * Component attribute class, which is used to distinguish different information required by different components * after content areas are customized, for example, ButtonConfiguration for the Button component and @@ -21999,7 +22002,7 @@ declare interface ContentModifier { /** * Defines the common configuration. - * + * * @interface CommonConfiguration * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22008,7 +22011,7 @@ declare interface ContentModifier { * @arkts 1.1&1.2 */ declare interface CommonConfiguration { - + /** * If the value is true, the contentModifier is available and can respond to operations such as triggerChange. * If it is set to false, triggerChange operations are not responded. @@ -22024,7 +22027,7 @@ declare interface CommonConfiguration { /** * Obtains the contentModifier instance object - * + * * @type { ContentModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22496,7 +22499,7 @@ declare interface DragInteractionOptions { * @arkts 1.1&1.2 */ isMultiSelectionEnabled?: boolean; - + /** * Define whether to execute animation before preview floating. * @@ -22601,7 +22604,7 @@ declare interface InvertOptions { /** * Defines the low value of threshold - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22609,7 +22612,7 @@ declare interface InvertOptions { */ /** * Defines the low value of threshold - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22621,7 +22624,7 @@ declare interface InvertOptions { /** * Defines the high value of threshold - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22629,7 +22632,7 @@ declare interface InvertOptions { */ /** * Defines the high value of threshold - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22641,7 +22644,7 @@ declare interface InvertOptions { /** * Defines the threshold - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22649,7 +22652,7 @@ declare interface InvertOptions { */ /** * Defines the threshold - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22658,10 +22661,10 @@ declare interface InvertOptions { * @arkts 1.1&1.2 */ threshold: number; - + /** *Defines the threshold range - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22669,7 +22672,7 @@ declare interface InvertOptions { */ /** *Defines the threshold range - * + * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22682,7 +22685,7 @@ declare interface InvertOptions { /** * Import the CircleShape type object for common method. - * + * * @typedef { import('../api/@ohos.arkui.shape').CircleShape } CircleShape * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22694,7 +22697,7 @@ declare type CircleShape = import('../api/@ohos.arkui.shape').CircleShape; /** * Import the EllipseShape type object for common method. - * + * * @typedef { import('../api/@ohos.arkui.shape').EllipseShape } EllipseShape * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22706,7 +22709,7 @@ declare type EllipseShape = import('../api/@ohos.arkui.shape').EllipseShape; /** * Import the PathShape type object for common method. - * + * * @typedef { import('../api/@ohos.arkui.shape').PathShape } PathShape * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22718,7 +22721,7 @@ declare type PathShape = import('../api/@ohos.arkui.shape').PathShape; /** * Import the RectShape type object for common method. - * + * * @typedef { import('../api/@ohos.arkui.shape').RectShape } RectShape * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -22946,7 +22949,8 @@ declare class CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ width(value: Length): T; /** @@ -23004,7 +23008,8 @@ declare class CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ height(value: Length): T; /** @@ -23023,7 +23028,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ height(heightValue: Length | LayoutPolicy): T; - + /** * Sets the drawModifier of the current component. * @@ -23433,7 +23438,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ safeAreaPadding(paddingValue: Padding | LengthMetrics | LocalizedPadding): T; - + /** * Outer Margin. * @@ -23528,7 +23533,7 @@ declare class CommonMethod { /** * Add a background for the component. - * + * * Anonymous Object Rectification. * @param { CustomBuilder } builder * @param { BackgroundOptions } options @@ -23700,7 +23705,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ backgroundImage(src: ResourceStr | PixelMap, options?: BackgroundImageOptions): T; - + /** * Background image size * @@ -24699,7 +24704,7 @@ declare class CommonMethod { onClick(event: (event: ClickEvent) => void): T; /** - * Trigger a click event when a click is clicked, move distance should smaller than distanceThreshold. + * Trigger a click event when a click is clicked, move distance should smaller than distanceThreshold. * *

NOTE: *
If the distanceThreshold value specified is less than or equal to 0 vp, it will be converted to the default value. @@ -24779,7 +24784,7 @@ declare class CommonMethod { * @since 20 */ onAccessibilityHoverTransparent(callback: AccessibilityTransparentCallback): T; - + /** * Set hover effect. * @@ -24987,7 +24992,7 @@ declare class CommonMethod { * Components that have default interaction logic, such as Button and TextInput, are focusable by default. Other * components, such as Text and Image, are not focusable by default. Only focusable components can trigger a focus * event. - * + * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -25023,7 +25028,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ tabStop(isTabStop: boolean): T; - + /** * Trigger a event when got focus. * @@ -28984,7 +28989,7 @@ declare class CommonMethod { /** * Add a blendMode effect to the current component.Cannot be used together with the blendMode interface. - * + * * @param { BlendMode | Blender } effect - When the effect type is BlendMode type, define Different hybrid modes. * When the effect type is Blender type, Define the corresponding blending effect. * @param { BlendApplyType } [type] - Different blend apply type @@ -29531,7 +29536,7 @@ declare class CommonMethod { * @since 10 */ /** - * Binds a modal page to the component, whose visibility is subject to the isShow settings. + * Bind content cover * * @param { boolean } isShow - true means display content, false means hide content. * @param { CustomBuilder } builder - the content to be displayed. @@ -29540,25 +29545,11 @@ declare class CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition): T; - /** - * Binds a modal page to the component, whose visibility is subject to the isShow settings. - * - * @param { boolean | Bindable} isShow - true means display content, false means hide content. - * @param { CustomBuilder } builder - the content to be displayed. - * @param { ModalTransition } [type] - transition type. - * @returns { T } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - bindContentCover(isShow: boolean | Bindable, builder: CustomBuilder, type?: ModalTransition): T; - /** * Bind content cover * @@ -29580,24 +29571,10 @@ declare class CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 - */ - bindContentCover(isShow: boolean , builder: CustomBuilder, options?: ContentCoverOptions): T; - - /** - * Bind content cover - * - * @param { boolean | Bindable } isShow - true means display content, false means hide content. - * @param { CustomBuilder } builder - the content to be displayed. - * @param { ContentCoverOptions } [options] - options of content cover. - * @returns { T } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - bindContentCover(isShow: boolean | Bindable, builder: CustomBuilder, options?: ContentCoverOptions): T; + bindContentCover(isShow: boolean, builder: CustomBuilder, options?: ContentCoverOptions): T; /** * Binds a sheet page to the component, whose visibility is subject to the isShow settings. @@ -29620,25 +29597,11 @@ declare class CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): T; - /** - * Bind sheet - * - * @param { boolean | Bindable} isShow - true means display sheet, false means hide sheet. - * @param { CustomBuilder } builder - the sheet to be displayed. - * @param { SheetOptions } [options] - options of sheet. - * @returns { T } - template type - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - bindSheet(isShow: boolean | Bindable, builder: CustomBuilder, options?: SheetOptions): T; - /** * Sets styles for component state. * @@ -30020,7 +29983,7 @@ declare class CommonMethod { * Sets the accessibility text. * When a component does not contain a text attribute, you can use this API to set an accessibility * text attribute, so that accessibility services can announce the specified content for the component. - * + * * @param { string } value - set accessibility text, default value is "". * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -30031,7 +29994,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ accessibilityText(value: string): T; - + /** * Sets accessibility next focus id * @param { string } nextId - set component next accessibility focus id @@ -30044,7 +30007,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ accessibilityNextFocusId(nextId: string): T; - + /** * Sets the accessibility default foucs flag * @param { boolean } focus - if the component is accessibility default focus,focus set true @@ -30057,7 +30020,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ accessibilityDefaultFocus(focus: boolean): T; - + /** * Sets accessibility same page mode * @param { AccessibilitySamePageMode } pageMode - accessibility same page mode @@ -30102,7 +30065,7 @@ declare class CommonMethod { * @arkts 1.1&1.2 */ accessibilityText(text: Resource): T; - + /** * Sets accessibility role,role indicates the custom type of the component * @param { AccessibilityRoleType } role - set accessibility component type @@ -30191,7 +30154,7 @@ declare class CommonMethod { /** * Sets accessibilityDescription - * + * * with support for resource references using Resource. * This property provides additional context or explanation for the component, * helping users understand the action or function it performs. @@ -30733,7 +30696,7 @@ interface CommonInterface { */ /** * Constructor - * + * * @returns { CommonAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form @@ -30750,7 +30713,7 @@ interface CommonInterface { */ /** * Constructor - * + * * @returns { CommonAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -30914,7 +30877,7 @@ declare interface OverlayOptions { * @arkts 1.1&1.2 */ align?: Alignment; - + /** * Defines offset type. * @@ -31913,7 +31876,7 @@ declare interface LinearGradientBlurOptions { /** * Define motion blur anchor coordinates. - * + * * @interface MotionBlurAnchor * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -31946,7 +31909,7 @@ declare interface MotionBlurAnchor { /** * Define motion blur options. - * + * * @interface MotionBlurOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -31967,7 +31930,7 @@ declare interface MotionBlurOptions { radius: number; /** * Define motion blur anchor coordinates. - * + * * @type { MotionBlurAnchor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice @@ -32318,7 +32281,7 @@ declare interface Layoutable { * @arkts 1.1&1.2 */ getPadding() : DirectionalEdgesT, - + /** * Obtains the border width of the child component. * @@ -32503,7 +32466,7 @@ declare interface SizeResult { * @arkts 1.1&1.2 */ declare interface MeasureResult extends SizeResult { - + } /** @@ -32600,19 +32563,6 @@ declare type RouterPageInfo = uiObserver.RouterPageInfo; */ declare type UIContext = import('../api/@ohos.arkui.UIContext').UIContext; -/** - * UIContext. - * - * @typedef { _UIContext } UIContext - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export type UIContext = _UIContext; - /** * DrawContext * @@ -32624,19 +32574,6 @@ export type UIContext = _UIContext; */ declare type DrawContext = import('../api/arkui/Graphics').DrawContext; -/** - * DrawContext. - * - * @typedef { _DrawContext } DrawContext - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export type DrawContext = _DrawContext; - /** * VisualEffect * @@ -32867,7 +32804,7 @@ declare class CustomComponentV2 extends BaseCustomComponent { /** * Invoked when a reusable custom component managed by state management V2 * is taken from the reuse pool and reinserted into the node tree. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -33057,7 +32994,7 @@ declare class BaseCustomComponent extends CommonAttribute { /** * The onWillApplyTheme function is a custom hook to get active theme object from the context - * + * * @param { Theme } theme - Custom theme init params. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -33066,7 +33003,7 @@ declare class BaseCustomComponent extends CommonAttribute { */ /** * The onWillApplyTheme function is a custom hook to get active theme object from the context, it is migrated from class CustomComponent. - * + * * @param { Theme } theme - Custom theme init params. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -33147,7 +33084,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is displayed, for example, during page redirection. * When the application is switched to the foreground. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ @@ -33155,7 +33092,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is displayed, for example, during page redirection. * When the application is switched to the foreground. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 @@ -33164,7 +33101,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is displayed, for example, during page redirection. * When the application is switched to the foreground. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -33174,7 +33111,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is displayed, for example, during page redirection. * When the application is switched to the foreground. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -33186,7 +33123,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is hidden, for example, during page redirection. * When the application is switched to the background. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ @@ -33194,7 +33131,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is hidden, for example, during page redirection. * When the application is switched to the background. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 @@ -33203,7 +33140,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is hidden, for example, during page redirection. * When the application is switched to the background. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -33213,7 +33150,7 @@ declare class BaseCustomComponent extends CommonAttribute { * Invoked each time the page is hidden, for example, during page redirection. * When the application is switched to the background. * It works only for the custom components decorated by **@Entry**. - * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -33290,6 +33227,7 @@ declare class BaseCustomComponent extends CommonAttribute { */ onFormRecover?(statusData: string): void; + /** * onBackPress Method * @@ -33297,7 +33235,7 @@ declare class BaseCustomComponent extends CommonAttribute { * It works only for the custom components decorated by @Entry. * The value **true** means that the page executes its own return logic. * And **false** (default) means that the default return logic is used. - * + * * @returns { void | boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 @@ -33309,7 +33247,7 @@ declare class BaseCustomComponent extends CommonAttribute { * It works only for the custom components decorated by @Entry. * The value **true** means that the page executes its own return logic. * And **false** (default) means that the default return logic is used. - * + * * @returns { void | boolean } true means that the page itself processes the return logic. * false means that the default return logic is used. * If no value is returned, the default return logic is used. @@ -33324,7 +33262,7 @@ declare class BaseCustomComponent extends CommonAttribute { * It works only for the custom components decorated by @Entry. * The value **true** means that the page executes its own return logic. * And **false** (default) means that the default return logic is used. - * + * * @returns { void | boolean } true means that the page itself processes the return logic. * false means that the default return logic is used. * If no value is returned, the default return logic is used. @@ -33338,7 +33276,7 @@ declare class BaseCustomComponent extends CommonAttribute { * It works only for the custom components decorated by @Entry. * The value **true** means that the page executes its own return logic. * And **false** (default) means that the default return logic is used. - * + * * @returns { void | boolean } true means that the page itself processes the return logic. * false means that the default return logic is used. * If no value is returned, the default return logic is used. @@ -33466,7 +33404,7 @@ declare class BaseCustomComponent extends CommonAttribute { * @since 18 */ queryNavDestinationInfo(): NavDestinationInfo | undefined; - + /** * Queries the information about the nearest **NavDestination** component * in the navigation stack for a custom component. @@ -33482,7 +33420,7 @@ declare class BaseCustomComponent extends CommonAttribute { /** * Queries the **Navigation** information of this custom component. - * + * * @returns { NavigationInfo | undefined } The navigation information, or undefined if it is not available * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -33491,7 +33429,7 @@ declare class BaseCustomComponent extends CommonAttribute { */ /** * Queries the **Navigation** information of this custom component. - * + * * @returns { NavigationInfo | undefined } The navigation information, or undefined if it is not available * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -33752,7 +33690,7 @@ declare interface CaretOffset { * @arkts 1.1&1.2 */ x: number; - + /** * Get the y of the relative position. * @@ -33832,7 +33770,7 @@ declare abstract class TextContentControllerBase { * the return value contains the position information relative to the component. *
The location information in the return value is the location of the caret relative to the editable component. *

- * + * * @returns { CaretOffset } index and relative position of the CaretOffset. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -33881,7 +33819,7 @@ declare abstract class TextContentControllerBase { /** * Get the lines number of the text content. * The getTextContentLineCount type is used to obtain the number of lines of the edited text. - * + * * @returns { number } Text content line count * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -34111,8 +34049,8 @@ declare class ScrollableCommonMethod extends CommonMethod { /** * Sets the nested scrolling options. * - * @param { NestedScrollOptions } value - Nested scrolling options. - * @returns { T } + * @param { NestedScrollOptions } value - options for nested scrolling. + * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -34125,7 +34063,7 @@ declare class ScrollableCommonMethod extends CommonMethod { * Sets whether to support scroll gestures. * * @param { boolean } value - Whether to support scroll gestures.
Default value: true - * @returns { T } + * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -34138,7 +34076,7 @@ declare class ScrollableCommonMethod extends CommonMethod { * Sets the friction coefficient. * * @param { number | Resource } value - Friction coefficient. - * @returns { T } + * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -34270,7 +34208,7 @@ declare class ScrollableCommonMethod extends CommonMethod { /** * Sets the content clipping area for this scrollable component. - * + * * @param { ContentClipMode | RectShape } clip - A value from enum ContentClipMode or a customized clip rect. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -34293,10 +34231,10 @@ declare class ScrollableCommonMethod extends CommonMethod { * @arkts 1.1&1.2 */ digitalCrownSensitivity(sensitivity: Optional): T; - + /** * Sets whether to enable the back-to-top feature for a scrollable component when the status bar is touched. - * + * * @param { boolean } backToTop - Whether to enable the back-to-top feature for a scrollable component when the status bar is touched. *
Default value: false * @returns { T } @@ -34337,14 +34275,14 @@ declare class ScrollResult { * @param { number } scrollOffset - offset this frame will scroll, which may or may not be reached. * @param { ScrollState } scrollState - current scroll state. * @param { ScrollSource } scrollSource - source of current scroll. - * @returns { void | ScrollResult } the remain offset for the scrollable, + * @returns { void | ScrollResult } the remain offset for the scrollable, * same as scrollOffset when no ScrollResult is returned. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ -declare type OnWillScrollCallback = +declare type OnWillScrollCallback = (scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource) => void | ScrollResult; /** @@ -34520,8 +34458,9 @@ declare class DynamicNode { * @since 20 */ onMove(handler: Optional, eventHandler: ItemDragEventHandler): T; - - /** +} + +/** * Define DynamicNode. * * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -34558,7 +34497,6 @@ declare interface DynamicNode { */ onMove(handler: Optional, eventHandler: ItemDragEventHandler): this; } -} /** * Define EdgeEffect Options. @@ -34662,7 +34600,7 @@ declare class ChildrenMainSize { * * @param { number } childDefaultSize - default main size, in vp. If the main axis is vertical, it indicates height. * If the main axis is horizontal, it indicates width. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -34679,7 +34617,7 @@ declare class ChildrenMainSize { * * @param { number } value - default main size, in vp. If the main axis is vertical, it indicates height. * If the main axis is horizontal, it indicates width. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -34710,7 +34648,7 @@ declare class ChildrenMainSize { * @param { number } start - Zero-based index at which to start changing the children main size. * @param { number } [deleteCount] - Indicating the number of children main size to remove from start. * @param { Array } [childrenSize] - Add the new children main size, beginning from start. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -34730,7 +34668,7 @@ declare class ChildrenMainSize { * * @param { number } index - index of child to be updated. * @param { number } childSize - new section options. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -34907,6 +34845,17 @@ declare interface LightSource { * @since 12 */ declare function wrapBuilder(builder: (...args: Args) => void): WrappedBuilder; +/** + * Defining wrapBuilder function. + * @param { function } builder + * @returns { WrappedBuilder } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +declare function wrapBuilder>(builder: (args: Args) => void): WrappedBuilder; /** * The WrappedBuilder object is also a template class. @@ -34956,6 +34905,39 @@ declare class WrappedBuilder { } + +/** + * Defines the WrappedBuilder class. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +declare class WrappedBuilder> { + + /** + * @type { function } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + builder: (args: Args) => void; + + /** + * @param { function } builder + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + constructor(builder: (args: Args) => void); +} + + /** * Defines the overall animation parameters of the keyframe animation. * @@ -35187,7 +35169,7 @@ export type Callback = (data: T) => V; * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ -declare type HoverCallback = (isHover: boolean, event: HoverEvent) => void +declare type HoverCallback = (isHover: boolean, event: HoverEvent) => void; /** * Defines the callback type used in accessibility hover events. @@ -35330,7 +35312,7 @@ declare interface UICommonEvent { /** * Set or reset the callback is triggered when component uninstallation disappears. - * + * * @param { Callback | undefined } callback - The callback will be triggered when component uninstallation disappears. If set undefined will reset the target callback. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -35379,7 +35361,7 @@ declare interface UICommonEvent { /** * Set or reset the callback which is triggered when has a hover event. - * + * * @param { HoverCallback | undefined } callback - The callback will be triggered when has a hover event. If set undefined will reset the target callback. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -35521,7 +35503,7 @@ declare interface UIGestureEvent { * @since 12 */ addGesture(gesture: GestureHandler, priority?: GesturePriority, mask?: GestureMask): void; - + /** * Add a gesture bound to the component. * @@ -35586,7 +35568,7 @@ declare interface UIGestureEvent { /** * Defines the gesture modifier. - * + * * @interface GestureModifier * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -35597,7 +35579,7 @@ declare interface UIGestureEvent { declare interface GestureModifier { /** * Defines the gesture update function. - * + * * @param { UIGestureEvent } event * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -35782,7 +35764,7 @@ declare enum HoverModeAreaType { /** * Defines a range of dates. - * + * * @interface DateRange * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -35834,7 +35816,7 @@ declare interface TerminationInfo { * @arkts 1.2 */ code: number; - + /** * Defines the additional termination information. * @@ -35901,15 +35883,3 @@ export declare interface Bindable { * @arkts 1.2 */ export declare function $$(value: T): Bindable; - -/** - * Apply style function on this CommonMethod. - * - * @param { T } this - * @param { CustomStyles } customStyles - * @returns { T } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - * @arkts 1.2 - */ -export declare function applyStyles(this: T, customStyles: CustomStyles): T; diff --git a/api/@internal/component/ets/custom_dialog_controller.d.ts b/api/@internal/component/ets/custom_dialog_controller.d.ts index ad2578e930b22abb42f4dc5d90d15f7524a19da9..49daae0666a9080a93f6d37e1509f0a493c23f58 100644 --- a/api/@internal/component/ets/custom_dialog_controller.d.ts +++ b/api/@internal/component/ets/custom_dialog_controller.d.ts @@ -24,14 +24,12 @@ import { DismissReason, BackgroundBlurStyleOptions, BackgroundEffectOptions } from './common'; import { CustomBuilder } from './builder'; -import { ExtendableComponent } from './extendableComponent'; import { DialogAlignment } from './alertDialog'; import { Offset, ResourceColor, Dimension, BorderRadiuses, EdgeWidths, EdgeColors, EdgeStyles } from './units'; import { BorderStyle } from './enums'; import { LengthMetrics } from '../Graphics'; import { LevelMode, LevelOrder, ImmersiveMode } from '../../@ohos.promptAction'; import { CustomBuilder } from './builder'; -import { DismissDialogAction } from './actionSheet'; /*** endif */ /** @@ -89,14 +87,14 @@ declare interface CustomDialogControllerOptions { /** * Custom builder function. * - * @type { CustomBuilder | ExtendableComponent } + * @type { CustomBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.2 */ - builder: CustomBuilder | ExtendableComponent; + builder: CustomBuilder; /** * Defines the cancel function. @@ -713,7 +711,8 @@ declare interface CustomDialogControllerOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare interface DismissDialogAction { /** @@ -723,7 +722,8 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ dismiss: Callback; @@ -734,7 +734,8 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ reason: DismissReason; } @@ -855,7 +856,7 @@ declare class CustomDialogController { * @since 11 */ close(); - + /** * Closes the custom pop-up window. If the window is closed, the window does not take effect. * diff --git a/api/@internal/component/ets/date_picker.d.ts b/api/@internal/component/ets/date_picker.d.ts index 606505938242c1f8347f043ba066a6e7aeba9916..d3e463b4dbb2dde97e17fe9daf757fb83a718a0a 100644 --- a/api/@internal/component/ets/date_picker.d.ts +++ b/api/@internal/component/ets/date_picker.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, Callback, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, BackgroundBlurStyleOptions, BackgroundEffectOptions, Optional, DateTimeOptions, Bindable } from './common' +import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, Callback, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, BackgroundBlurStyleOptions, BackgroundEffectOptions, Optional, DateTimeOptions } from './common' import { ResourceColor, Offset, VoidCallback } from './units' import { DialogAlignment } from './alertDialog' import { CrownSensitivity } from './enums' @@ -300,29 +300,13 @@ declare interface DatePickerOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ selected?: Date; - - /** - * Specifies the date selector check date or time selector check time. - * - * @type { ?(Date | Bindable) } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected?: Date | Bindable; /** - * Date columns to be displayed. - * - *

NOTE: - *
In DatePickerDialog, with showTime=true, this parameter has no effect and the default three columns for year, - *
month, and day are displayed. - *

+ * Defines the mode of the date picker. * * @type { ?DatePickerMode } * @default DatePickerMode.DATE - which means to display three columns: year, month, and day. @@ -672,7 +656,7 @@ declare class DatePickerAttribute extends CommonMethod { */ enableHapticFeedback(enable: Optional): DatePickerAttribute; - /** +/** * Can scroll loop if true is set, on the contrary it can not. * * @param { Optional } isLoop @@ -805,7 +789,7 @@ declare interface DatePickerDialogOptions extends DatePickerOptions { /** * Whether to display the lunar calendar switch. * The value true means to display the lunar calendar switch, and false means the opposite. - * + * * @type { ?boolean } value - indicates whether to show the switch to display the lunar. * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -846,7 +830,7 @@ declare interface DatePickerDialogOptions extends DatePickerOptions { *
With showTime=true, the mode parameter has no effect and the default three columns for year, *
month, and day are displayed. *

- * + * * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/@internal/component/ets/ellipse.d.ts b/api/@internal/component/ets/ellipse.d.ts index 4f9cd5433e3eac41abb256d77958cf539c9c61c0..a9db624f8ba81a5bce248fc8fcd35878811c8af3 100644 --- a/api/@internal/component/ets/ellipse.d.ts +++ b/api/@internal/component/ets/ellipse.d.ts @@ -68,7 +68,7 @@ interface EllipseOptions { * @atomicservice * @since 11 */ - /** +/** * Set width. * Anonymous Object Rectification. * @@ -90,6 +90,18 @@ interface EllipseOptions { * @since 20 */ width?: Length; + /** + * Set width. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + width?: string | number; /** * Set height. @@ -125,7 +137,7 @@ interface EllipseOptions { * @atomicservice * @since 11 */ - /** +/** * Set height. * Anonymous Object Rectification. * @@ -147,6 +159,18 @@ interface EllipseOptions { * @since 20 */ height?: Length; + /** + * Set height. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + height?: string | number; } /** diff --git a/api/@internal/component/ets/embedded_component.d.ts b/api/@internal/component/ets/embedded_component.d.ts index 1dca4bf8ee5164ec85f53afb032ba35fc9cf8250..192c8ff3257db3c2dc0af85af69405ff9e31e572 100644 --- a/api/@internal/component/ets/embedded_component.d.ts +++ b/api/@internal/component/ets/embedded_component.d.ts @@ -51,7 +51,7 @@ interface EmbeddedComponentInterface { loader: import('../api/@ohos.app.ability.Want').default, type: EmbeddedType ): EmbeddedComponentAttribute; - + /** * Construct the EmbeddedComponent.
* Called when the EmbeddedComponent is used. @@ -120,7 +120,7 @@ declare class EmbeddedComponentAttribute extends CommonMethod): EmbeddedComponentAttribute; - + /** * Called when the provider of the embedded UI is terminated. * diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 8f3321da74ab56c9e9149390e8786db90470e83e..0b93341e7e53861bc3fb2d2bfccf856a8ab3a9e5 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -18,10 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import curves from '../../@ohos.curves'; -/*** endif */ - /** * common enum of the checkbox shape * @@ -1888,7 +1884,8 @@ declare enum AnimationStatus { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ declare enum Curve { /** @@ -1919,7 +1916,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ Linear, @@ -1951,7 +1949,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ Ease, @@ -1983,7 +1982,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ EaseIn, @@ -2015,7 +2015,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ EaseOut, @@ -2047,7 +2048,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ EaseInOut, @@ -2079,7 +2081,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ FastOutSlowIn, @@ -2111,7 +2114,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ LinearOutSlowIn, @@ -2143,7 +2147,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ FastOutLinearIn, @@ -2175,7 +2180,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ ExtremeDeceleration, @@ -2207,7 +2213,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ Sharp, @@ -2239,7 +2246,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ Rhythm, @@ -2271,7 +2279,8 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ Smooth, @@ -2303,24 +2312,12 @@ declare enum Curve { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ Friction, } -/** - * enum Curve. - * - * @typedef { curves.Curve } Curve - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export type Curve = curves.Curve; - /** * Sets the state before and after the animation starts. * @@ -9182,8 +9179,9 @@ declare enum XComponentType { * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} * @deprecated since 20 + * @arkts 1.1&1.2 */ NODE, } diff --git a/api/@internal/component/ets/folder_stack.d.ts b/api/@internal/component/ets/folder_stack.d.ts index 6a2747be6a4b70a37f3289d7a2849fa960d49354..3755d672b2acab038d20e5d3b0fd738041dac052 100644 --- a/api/@internal/component/ets/folder_stack.d.ts +++ b/api/@internal/component/ets/folder_stack.d.ts @@ -199,7 +199,7 @@ declare type OnFoldStatusChangeCallback = (event: OnFoldStatusChangeInfo) => voi /** * Callback when onHoverStatusChange. - * + * * Anonymous Object Rectification * @typedef { function } OnHoverStatusChangeCallback * @param { HoverEventParam } param - hover event param diff --git a/api/@internal/component/ets/gesture.d.ts b/api/@internal/component/ets/gesture.d.ts index 46e684bbe9e16ae663e273d1aafbc3faf47f8d34..c9e761e8087be4aa03fddf65733bef624e855fc9 100644 --- a/api/@internal/component/ets/gesture.d.ts +++ b/api/@internal/component/ets/gesture.d.ts @@ -2777,7 +2777,7 @@ declare class PanGestureOptions { * @since arkts {'1.1':'18','1.2':'20'} * @arkts 1.1&1.2 */ - getDistance(): number; + getDistance(): number; } /** diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts index efd47c1af2a4c7456292981f5eed7eb6d5b8d5b1..101b1dbd6f2eb8efd2edb20b75fdf33565a95ec5 100644 --- a/api/@internal/component/ets/grid.d.ts +++ b/api/@internal/component/ets/grid.d.ts @@ -1283,7 +1283,7 @@ declare class GridAttribute extends ScrollableCommonMethod { */ alignItems(alignment: Optional): GridAttribute; - /** + /** * Sets the focus wrap mode of the grid. * * @param { Optional } mode - the focus wrap mode of the grid. diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index c93f0dce8a6732a29c321e932256b259c39a4e2f..72d7e101d419e1c84c4e98f1470e74b7635b133e 100644 --- a/api/@internal/component/ets/image.d.ts +++ b/api/@internal/component/ets/image.d.ts @@ -20,6 +20,7 @@ /*** if arkts 1.2 */ import image from '../../@ohos.multimedia.image'; +import drawing from '../../@ohos.graphics.drawing'; import matrix4 from '../../@ohos.matrix4' import { BusinessError } from '../../@ohos.base'; import { DrawableDescriptor } from '../../@ohos.arkui.drawableDescriptor'; @@ -27,7 +28,7 @@ import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon'; import { ResourceStr, ResourceColor, ColorFilter, EdgeWidths, ColorMetrics } from './units'; import { ImageFit, ImageRepeat, CopyOptions } from './enums'; import { Resource } from '../../global/resource'; -import { CommonMethod, PointLightStyle, PixelMap } from './common' +import { CommonMethod, PointLightStyle, PixelMap } from './common'; /*** endif */ /** @@ -57,6 +58,18 @@ declare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor */ declare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter; +/** + * Import the DrawingColorFilter type object for image color filter setting. + * + * @typedef { drawing.ColorFilter } DrawingColorFilter + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +declare type DrawingColorFilter = drawing.ColorFilter; + /** * Enumerates all the levels available for the image resolution quality. * @@ -87,7 +100,19 @@ declare type ResolutionQuality = image.ResolutionQuality; * @atomicservice * @since 12 */ -declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice; +declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice; + +/** + * Lattice for dividing an image into grids. + * + * @typedef { drawing.Lattice } DrawingLattice + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +declare type DrawingLattice = drawing.Lattice; /** * Object matrix used for setting image transformations. @@ -980,7 +1005,7 @@ declare class ImageAttribute extends CommonMethod { *

NOTE: *
This attribute does not take effect when the parameter type of the component is AnimatedDrawableDescriptor. *

- * + * * @param { string | Resource | PixelMap } value - Placeholder image displayed during loading, Default value is null. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1125,7 +1150,8 @@ declare class ImageAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ fillColor(value: ResourceColor): ImageAttribute; @@ -1144,7 +1170,8 @@ declare class ImageAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ fillColor(color: ResourceColor | ColorContent): ImageAttribute; @@ -1591,7 +1618,8 @@ declare class ImageAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; @@ -2281,7 +2309,7 @@ declare class ImageAttribute extends CommonMethod { * *

If image loading takes a long time, follow the steps in [Reducing the Loading Time of Preset Images]{@link * https://developer.huawei.com/consumer/en/doc/best-practices/bpta-texture-compression-improve-performance}

- * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -2464,7 +2492,7 @@ declare interface ImageError { * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - message: string + message: string; /** * Business Error. @@ -2526,7 +2554,8 @@ declare interface ResizableOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ lattice?: DrawingLattice; } diff --git a/api/@internal/component/ets/image_animator.d.ts b/api/@internal/component/ets/image_animator.d.ts index 32f8826119dc8227a7be868565bc32aaf8f0d615..c980a6cc318e7a751ea0cdac8b2e0710a8023778 100644 --- a/api/@internal/component/ets/image_animator.d.ts +++ b/api/@internal/component/ets/image_animator.d.ts @@ -20,7 +20,6 @@ /*** if arkts 1.2 */ import { Resource } from "../../global/resource"; -import image from '../../@ohos.multimedia.image' import { CommonMethod, PixelMap } from './common' import { AnimationStatus,FillMode } from './enums' /*** endif */ diff --git a/api/@internal/component/ets/line.d.ts b/api/@internal/component/ets/line.d.ts index 278f936daab63f87aea016d7d793bb9ca9aaef87..e94638a40ebea4ecab22663a6987cd3904a747a4 100644 --- a/api/@internal/component/ets/line.d.ts +++ b/api/@internal/component/ets/line.d.ts @@ -104,6 +104,18 @@ interface LineOptions { * @since 20 */ width?: Length; + /** + * Width of the rectangle where the line resides. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + width?: string | number; /** * Height of the rectangle where the line resides. @@ -161,6 +173,18 @@ interface LineOptions { * @since 20 */ height?: Length; + /** + * Height of the rectangle where the line resides. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + height?: string | number; } /** diff --git a/api/@internal/component/ets/list.d.ts b/api/@internal/component/ets/list.d.ts index 1f4439f34fcd1c183004808fa732f42aa15c2120..278f4e9041ce15458e05dc68d0e3ac8646a891e9 100644 --- a/api/@internal/component/ets/list.d.ts +++ b/api/@internal/component/ets/list.d.ts @@ -871,7 +871,7 @@ declare class ListScroller extends Scroller { * @param { number } index - Index of the ListItemGroup in List. * @param { number } indexInGroup - Index of the ListItem in ListItemGroup. * @returns { RectResult } Returns the size and position. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -892,11 +892,11 @@ declare class ListScroller extends Scroller { * visible in the display area. Otherwise, the value is considered invalid. *
- When index or indexInGroup is set to an invalid value, the returned size and position are both 0. *

- * + * * @param { number } index - Index of the list item group in the list. * @param { number } indexInGroup - Index of the list item in the list item group. * @returns { RectResult } - Size of the list item in the list item group and its position relative to the list. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -916,7 +916,7 @@ declare class ListScroller extends Scroller { * @param { number } indexInGroup - Index of the ListItem in ListItemGroup. * @param { boolean } smooth - If true, scroll to index item with animation. If false, scroll to index item without animation. * @param { ScrollAlign } align - Sets the alignment mode of a specified index. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -939,7 +939,7 @@ declare class ListScroller extends Scroller { * @param { boolean } smooth - Whether to enable the smooth animation for scrolling to the item with the specified index. * The value true means to enable that the smooth animation, and false means the opposite.
Default value: false * @param { ScrollAlign } align - How the list item to scroll to is aligned with the container.
Default value: ScrollAlign.START - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -956,7 +956,7 @@ declare class ListScroller extends Scroller { * Collapse all listItem. * * @param { CloseSwipeActionOptions } options - Options of close Swipe items. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -971,9 +971,9 @@ declare class ListScroller extends Scroller { *

NOTE: *
- A ListScroller must be bound to the List component. *

- * + * * @param { CloseSwipeActionOptions } options - Callback events for collapsing list items in the EXPANDED state. - * @throws { BusinessError } 401 - Parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. *
3. Parameter verification failed. @@ -1018,7 +1018,7 @@ declare class ListScroller extends Scroller { *

NOTE: *
- The default value of the universal attribute clip is true for the List component. *

- * + * * @interface ListOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform @@ -1700,7 +1700,7 @@ declare class ListAttribute extends ScrollableCommonMethod { * To produce a bounce effect when there is less than one screen of content, * use the options parameter of the edgeEffect attribute. *

- * + * * @param { EdgeEffect } value - Effect used when the scroll boundary is reached. The spring and shadow effects are supported. *
Default value: EdgeEffect.Spring * @param { EdgeEffectOptions } options - Whether to enable the scroll effect when the component content is smaller than the component itself. @@ -2271,7 +2271,7 @@ declare class ListAttribute extends ScrollableCommonMethod { */ /** * Triggered when a child component enters or leaves the list display area. - * + * * @param { function } event * @returns { ListAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -2452,7 +2452,7 @@ declare class ListAttribute extends ScrollableCommonMethod { /** * Triggered when a list item is deleted. - * + * * @param { function } event * @returns { ListAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/@internal/component/ets/list_item.d.ts b/api/@internal/component/ets/list_item.d.ts index 914f1fd993696cd8acf72f8115b0161625ab4c7f..e5149aa59394752370a561abfd186574be56dfe6 100644 --- a/api/@internal/component/ets/list_item.d.ts +++ b/api/@internal/component/ets/list_item.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonMethod, Bindable } from './common'; +import { CommonMethod } from './common'; import { CustomBuilder } from './builder' import { Length } from './units'; import { ComponentContent } from '../ComponentContent' @@ -814,25 +814,11 @@ declare class ListItemAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ selected(value: boolean): ListItemAttribute; - /** - * Called when judging whether it is selected. - * This parameter supports $$ for two-way binding of variables. - * - * @param { boolean | Bindable } value - if the listItem is selected. - * @returns { ListItemAttribute } the attribute of the listItem. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected(value: boolean | Bindable): ListItemAttribute; - /** * Sets the action item that appears when the list item slides in the cross axis direction of the list. * diff --git a/api/@internal/component/ets/marquee.d.ts b/api/@internal/component/ets/marquee.d.ts index 12e53cdcfd4fc5615c3aa723093c1997e7cf88cb..59633f19a93da23c694b4d12f7d8c8a6aa52a8ba 100644 --- a/api/@internal/component/ets/marquee.d.ts +++ b/api/@internal/component/ets/marquee.d.ts @@ -831,7 +831,7 @@ declare class MarqueeAttribute extends CommonMethod { * use the Text component's TextOverflow.MARQUEE as a substitute. *
The text is scrolled only when its width exceeds the width of the Marquee component. *

- * + * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form diff --git a/api/@internal/component/ets/menu_item.d.ts b/api/@internal/component/ets/menu_item.d.ts index cef058daa7bb70734d2168015516fb6c4fe8e95e..06db50f9ececa0ea3422057e9848bfae77987ead 100644 --- a/api/@internal/component/ets/menu_item.d.ts +++ b/api/@internal/component/ets/menu_item.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -20,7 +20,7 @@ /*** if arkts 1.2 */ import { ResourceStr, Font, ResourceColor } from './units'; -import { CommonMethod, Bindable } from './common'; +import { CommonMethod } from './common'; import { CustomBuilder } from './builder'; import { SymbolGlyphModifier } from '../../arkui/SymbolGlyphModifier'; /*** endif */ @@ -335,24 +335,11 @@ declare class MenuItemAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ selected(value: boolean): MenuItemAttribute; - /** - * Setting whether menuItem is selected. - * - * @param { boolean | undefined | Bindable } value - * @returns { MenuItemAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected(value: boolean | undefined | Bindable): MenuItemAttribute; - - /** * Whether the relevant check icon is displayed when a menu item is selected. * diff --git a/api/@internal/component/ets/nav_destination.d.ts b/api/@internal/component/ets/nav_destination.d.ts index f6040426a0e67ef61b379c02b2d0de77c95f785d..4755ea17c176ad0cf92a5bfeb62955be41ea2074 100644 --- a/api/@internal/component/ets/nav_destination.d.ts +++ b/api/@internal/component/ets/nav_destination.d.ts @@ -826,7 +826,7 @@ declare class NavDestinationAttribute extends CommonMethod>): NavDestinationAttribute; - /** - * Invoked when pop to the navDestination with result. - * - * @param {Optional>} callback - Indicates callback when pop to the navDestination with result. - * @returns {NavDestinationAttribute} - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - onResult(callback: Optional>): NavDestinationAttribute; - /** * Sets the mode of the **NavDestination** component. Dynamic modification is not supported. * @@ -1037,7 +1024,7 @@ declare class NavDestinationAttribute extends CommonMethod - * + * * @param { ResourceStr | PixelMap | SymbolGlyphModifier } icon - Icon of the back button on the title bar. * @param { ResourceStr } accessibilityText - Accessibility text for the back button. *
Default value: **back** when the system language is English. @@ -1049,7 +1036,7 @@ declare class NavDestinationAttribute extends CommonMethod): NavDestinationAttribute; - + /** * Invoked before sub-components of NavDestination are created. * diff --git a/api/@internal/component/ets/navigation.d.ts b/api/@internal/component/ets/navigation.d.ts index fed6196de3cb9861e50d7aa583e72c3ae7f2624c..7c2280943730e53060e33b0932129644b7b0d91b 100644 --- a/api/@internal/component/ets/navigation.d.ts +++ b/api/@internal/component/ets/navigation.d.ts @@ -2903,24 +2903,11 @@ declare class NavigationAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ navBarWidth(value: Length): NavigationAttribute; - /** - - * Sets the width of navigation bar. - * - * @param { Length | Bindable } value - * @returns { NavigationAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - navBarWidth(value: Length | Bindable): NavigationAttribute; - /** * Sets the position of the navigation bar. This attribute takes effect * only when the **Navigation** component is split. diff --git a/api/@internal/component/ets/particle.d.ts b/api/@internal/component/ets/particle.d.ts index 3aadd3565441f17f5e21e9e2c6aedfa502f739ec..c09f0f9755931b4c6feaeac53ec37e923fc6e25c 100644 --- a/api/@internal/component/ets/particle.d.ts +++ b/api/@internal/component/ets/particle.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { LengthMetrics, SizeT, PositionT } from '../../arkui/Graphics' +import { LengthMetrics, SizeT, PositionT } from '../../arkui/Graphics'; import { VP, ResourceStr,Dimension,ResourceColor } from './units' import { ImageFit, Curve } from './enums' import { ICurve, CommonMethod } from './common' @@ -65,7 +65,7 @@ declare interface VelocityOptions { */ /** * Particle speed. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -93,7 +93,7 @@ declare interface VelocityOptions { */ /** * Angle of particle's direction. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -135,7 +135,7 @@ declare interface AccelerationOptions< */ /** * Speed property options. - * + * * Anonymous Object Rectification. * @type { ?ParticlePropertyOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -162,7 +162,7 @@ declare interface AccelerationOptions< */ /** * Angle property options. - * + * * Anonymous Object Rectification. * @type { ?ParticlePropertyOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -326,7 +326,7 @@ interface ParticleOptions< */ /** * Particle velocity. - * + * * Anonymous Object Rectification. * @type { ?VelocityOptions } * @default {speed:[0,0];angle:[0,0]} @@ -356,7 +356,7 @@ interface ParticleOptions< */ /** * Particle acceleration. - * + * * Anonymous Object Rectification. * @type { ?AccelerationOptions } * @default {speed:{range:[0,0]};angle:{range:[0,0]}} @@ -571,7 +571,7 @@ interface ImageParticleParameters { */ /** * Particle image size. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -735,7 +735,7 @@ interface EmitterProperty { * @since 20 * @arkts 1.1&1.2 */ - annulusRegion?: ParticleAnnulusRegion; + annulusRegion?: ParticleAnnulusRegion; } /** @@ -765,7 +765,7 @@ interface EmitterParticleOptions { */ /** * Particle type. - * + * * Anonymous Object Rectification. * @type { PARTICLE } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -791,7 +791,7 @@ interface EmitterParticleOptions { */ /** * Particle config. - * + * * Anonymous Object Rectification. * @type { ParticleConfigs[PARTICLE] } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -818,7 +818,7 @@ interface EmitterParticleOptions { */ /** * Particle count. - * + * * Anonymous Object Rectification. * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -847,7 +847,7 @@ interface EmitterParticleOptions { */ /** * Particle lifetime. - * + * * Anonymous Object Rectification. * @type { ?number } * @default 1000 @@ -871,7 +871,7 @@ interface EmitterParticleOptions { /** * Particle lifetimeRange,value range [0, ∞). * when lifetimeRange>lifetime,minimum lifetime is 0. - * + * * Anonymous Object Rectification. * @type { ?number } * @default 0 @@ -991,7 +991,7 @@ interface EmitterOptions { */ /** * Set particle config. - * + * * Anonymous Object Rectification. * @type { EmitterParticleOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1064,7 +1064,7 @@ interface EmitterOptions { * Position of emitter. * The first element means X-axis location. * The second element means the Y-axis location. - * + * * Anonymous Object Rectification. * @type { ?ParticleTuple } * @default [0,0] @@ -1100,7 +1100,7 @@ interface EmitterOptions { * Size of emitter. * The first element means emitter width. * The second element means emitter height. - * + * * Anonymous Object Rectification. * @type { ?ParticleTuple } * @default ['100%','100%'] @@ -1266,7 +1266,7 @@ interface ParticlePropertyUpdaterConfigs { */ /** * Random effect of particle updater. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1303,7 +1303,8 @@ interface ParticlePropertyUpdaterConfigs { * @since 20 * @arkts 1.2 */ -declare type ParticlePropertyUpdaterConfigs = undefined | ParticleTuple | Array>; +declare type ParticlePropertyUpdaterConfigs = undefined | ParticleTuple | Array>; + /** * Defines the particle updater options. @@ -1332,7 +1333,7 @@ interface ParticleUpdaterOptions { */ /** * Particle updater type. - * + * * Anonymous Object Rectification. * @type { UPDATER } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1359,7 +1360,7 @@ interface ParticleUpdaterOptions { */ /** * Particle updater configuration. - * + * * Anonymous Object Rectification. * @type { ParticlePropertyUpdaterConfigs[UPDATER] } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1434,7 +1435,7 @@ interface ParticleColorOptions { */ /** * Red component of particle color. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1462,7 +1463,7 @@ interface ParticleColorOptions { */ /** * Green component of particle color. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1490,7 +1491,7 @@ interface ParticleColorOptions { */ /** * Blue component of particle color. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1518,7 +1519,7 @@ interface ParticleColorOptions { */ /** * Opacity component of particle color. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1557,7 +1558,7 @@ interface ParticleColorUpdaterOptions { */ /** * Color updater. - * + * * Anonymous Object Rectification. * @type { UPDATER } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1584,7 +1585,7 @@ interface ParticleColorUpdaterOptions { */ /** * Color updater configuration. - * + * * Anonymous Object Rectification. * @type { ParticleColorPropertyUpdaterConfigs[UPDATER] } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1664,7 +1665,7 @@ interface ParticlePropertyOptions { */ /** * Initial range, within which the initial value are randomly generated. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1693,7 +1694,7 @@ interface ParticlePropertyOptions { */ /** * Particle property updater. - * + * * Anonymous Object Rectification. * @type { ?ParticleUpdaterOptions } * @default {type:UPDATER.NONE;config:ParticlePropertyUpdaterConfigs[UPDATER.NONE]} @@ -1793,7 +1794,7 @@ interface ParticleColorPropertyUpdaterConfigs { */ /** * Random effect of particle color property updater. - * + * * Anonymous Object Rectification. * @type { ParticleColorOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1867,7 +1868,7 @@ interface ParticleColorPropertyOptions { */ /** * Initial color range, within which the initial color is randomly generated. - * + * * Anonymous Object Rectification. * @type { ParticleTuple } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -1907,7 +1908,7 @@ interface ParticleColorPropertyOptions { */ /** * Particle color property updater. - * + * * Anonymous Object Rectification. * @type { ?ParticleColorUpdaterOptions } * @default {type:UPDATER.NONE;config:ParticleColorPropertyUpdaterConfigs[UPDATER.NONE]} @@ -2112,7 +2113,7 @@ interface Particles< */ /** * Array of particles. - * + * * Anonymous Object Rectification. * @type { Array> } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -2170,8 +2171,7 @@ interface Particles { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ interface ParticleInterface { /** @@ -2195,7 +2195,7 @@ interface ParticleInterface { */ /** * create a particle array. - * + * * Anonymous Object Rectification. * @param { Particles } particles - Array of particles. @@ -2222,20 +2222,24 @@ interface ParticleInterface { ACC_ANGLE_UPDATER, SPIN_UPDATER >): ParticleAttribute; +} - /** +/** * create a particle array. - * - * @param { Particles } particles - Array of particles. - * @returns { ParticleAttribute } Returns the particle attribute. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - (particles: Particles): ParticleAttribute; -} + * + * @param { Particles } particles - Array of particles. + * @returns { ParticleAttribute } Returns the particle attribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +//@memo +//@ComponentBuilder +export declare function Particle( + particles: Particles +): ParticleAttribute; /** * Enumerates the particle types. @@ -2360,7 +2364,7 @@ declare enum ParticleEmitterShape { * @since 20 * @arkts 1.1&1.2 */ - ANNULUS = 'annulus', + ANNULUS = 'annulus', } /** @@ -2526,7 +2530,7 @@ declare class ParticleAttribute extends CommonMethod { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - emitter(value : Array) : ParticleAttribute; + emitter(value: Array): ParticleAttribute; } /** @@ -2687,9 +2691,9 @@ declare enum DisturbanceFieldShape { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - RECT, + RECT = 0, - /** + /** * Shape circle. * * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -2698,7 +2702,7 @@ declare enum DisturbanceFieldShape { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - CIRCLE, + CIRCLE = 1, /** * Shape eclipse. @@ -2709,7 +2713,7 @@ declare enum DisturbanceFieldShape { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - ELLIPSE + ELLIPSE = 2 } diff --git a/api/@internal/component/ets/path.d.ts b/api/@internal/component/ets/path.d.ts index af9beaf1e7acff17ad84962154285274ca184989..6cf77a744f8bd8442dd75552c6e2de22dcef6a5b 100644 --- a/api/@internal/component/ets/path.d.ts +++ b/api/@internal/component/ets/path.d.ts @@ -85,6 +85,17 @@ declare interface PathOptions { * @since 20 */ width?: Length; + /** + * Width option. + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + width?: number | string; /** * Height option. @@ -137,6 +148,17 @@ declare interface PathOptions { * @since 20 */ height?: Length; + /** + * Height option. + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + height?: number | string; /** * Commands option. @@ -189,6 +211,17 @@ declare interface PathOptions { * @since 20 */ commands?: ResourceStr; + /** + * Commands option. + * @type { ?string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + commands?: string } /** @@ -417,6 +450,19 @@ declare class PathAttribute extends CommonShapeMethod { * @since 20 */ commands(value: ResourceStr): PathAttribute; + /** + * Called when the command string drawn by the path is set. + * + * @param { string } value + * @returns { PathAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + commands(value: string): PathAttribute; } /** diff --git a/api/@internal/component/ets/pattern_lock.d.ts b/api/@internal/component/ets/pattern_lock.d.ts index 3512f08dae2bfe7d79c78149e750bc74d4e6b4d1..36a2b0141dd476bced1646e8529ea5a2099b9bec 100644 --- a/api/@internal/component/ets/pattern_lock.d.ts +++ b/api/@internal/component/ets/pattern_lock.d.ts @@ -130,7 +130,7 @@ declare interface CircleStyleOptions { * @since arkts {'1.1':'15','1.2':'20'} * @arkts 1.1&1.2 */ - enableForeground?: boolean; + enableForeground?: boolean; } /** @@ -648,7 +648,7 @@ declare class PatternLockAttribute extends CommonMethod { * @since 12 */ onDotConnect(callback: import('../api/@ohos.base').Callback): PatternLockAttribute; - + /** * Called when connecting to a grid dot. * @param { Callback } callback - A callback instance used when connection to a grid dot. @@ -660,7 +660,7 @@ declare class PatternLockAttribute extends CommonMethod { * @arkts 1.2 */ onDotConnect(callback: Callback): PatternLockAttribute; - + /** * Sets the background circle style for the dots in a grid when they are in the activated state. * diff --git a/api/@internal/component/ets/polygon.d.ts b/api/@internal/component/ets/polygon.d.ts index 589a025455644433cd8c47c1c63c1d6765de69bc..c0f4426467c9fe8b4ec13ab15f548e0edec8eaa9 100644 --- a/api/@internal/component/ets/polygon.d.ts +++ b/api/@internal/component/ets/polygon.d.ts @@ -69,7 +69,7 @@ declare interface PolygonOptions { * @atomicservice * @since 11 */ - /** +/** * Polygon width. * Anonymous Object Rectification. * @@ -91,6 +91,18 @@ declare interface PolygonOptions { * @since 20 */ width?: Length; + /** + * Polygon width. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + width?: string | number; /** * Polygon height. @@ -126,7 +138,7 @@ declare interface PolygonOptions { * @atomicservice * @since 11 */ - /** +/** * Polygon height. * Anonymous Object Rectification. * @@ -148,6 +160,18 @@ declare interface PolygonOptions { * @since 20 */ height?: Length; + /** + * Polygon height. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + height?: string | number } /** diff --git a/api/@internal/component/ets/polyline.d.ts b/api/@internal/component/ets/polyline.d.ts index f6937400d1df320eaad4e6c3b7b8da67a9447419..924ddd3d60a2100e2f0ce672b920da30a95769ce 100644 --- a/api/@internal/component/ets/polyline.d.ts +++ b/api/@internal/component/ets/polyline.d.ts @@ -69,7 +69,7 @@ declare interface PolylineOptions { * @atomicservice * @since 11 */ - /** +/** * Polyline width. * Anonymous Object Rectification. * @@ -91,6 +91,18 @@ declare interface PolylineOptions { * @since 20 */ width?: Length; + /** + * Polyline width. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + width?: string | number; /** * Polyline height. @@ -126,7 +138,7 @@ declare interface PolylineOptions { * @atomicservice * @since 11 */ - /** +/** * Polyline height. * Anonymous Object Rectification. * @@ -148,6 +160,18 @@ declare interface PolylineOptions { * @since 20 */ height?: Length; + /** + * Polyline height. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + height?: string | number } /** diff --git a/api/@internal/component/ets/progress.d.ts b/api/@internal/component/ets/progress.d.ts index 9b2aca0d3af7f4bd91b5976ec74af9944dbb1674..576a6af377898be7b24281120fb75fe03281d19b 100644 --- a/api/@internal/component/ets/progress.d.ts +++ b/api/@internal/component/ets/progress.d.ts @@ -1043,6 +1043,18 @@ declare interface CapsuleStyleOptions extends ScanEffectOptions, CommonProgressS */ content?: ResourceStr; + /** + * Set the text content. + * + * @type { ?string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + content?: string; + /** * Set the text style. * diff --git a/api/@internal/component/ets/qrcode.d.ts b/api/@internal/component/ets/qrcode.d.ts index 6d177af95a9ef1d8c23ada6fa7252ab2a094211f..3e0f544a6c57e40a82973efd120c3f3cf06aa84d 100644 --- a/api/@internal/component/ets/qrcode.d.ts +++ b/api/@internal/component/ets/qrcode.d.ts @@ -111,6 +111,20 @@ interface QRCodeInterface { * @arkts 1.1&1.2 */ (value: ResourceStr): QRCodeAttribute; + + /** + * Called when a QR code is set. + * + * @param { string } value + * @returns { QRCodeAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + (value: string): QRCodeAttribute; } /** diff --git a/api/@internal/component/ets/radio.d.ts b/api/@internal/component/ets/radio.d.ts index 5cfb6276a3494c112402a424f02ca9f636414a15..8e5981497572c19ca1d1b05a0917c5bb7230cb9c 100644 --- a/api/@internal/component/ets/radio.d.ts +++ b/api/@internal/component/ets/radio.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonMethod, ContentModifier, CommonConfiguration, Callback, Bindable } from './common'; +import { CommonMethod, ContentModifier, CommonConfiguration, Callback } from './common'; import { CustomBuilder } from './builder'; import { ResourceColor } from './units'; /*** endif */ @@ -454,7 +454,8 @@ declare class RadioAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ checked(value: boolean): RadioAttribute; @@ -467,24 +468,11 @@ declare class RadioAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ checked(isChecked: Optional): RadioAttribute; - /** - * Called when the radio box is selected. - * - * @param { boolean | undefined | Bindable } isChecked - * @returns { RadioAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - checked(isChecked: boolean | undefined | Bindable): RadioAttribute; - /** * Called when the radio box selection status changes. * diff --git a/api/@internal/component/ets/rating.d.ts b/api/@internal/component/ets/rating.d.ts index d90b13c9def052b75d89e1df196c954be74cf0cc..30eac91d95218f33fb5f711f3f986bf4c1be4d9b 100644 --- a/api/@internal/component/ets/rating.d.ts +++ b/api/@internal/component/ets/rating.d.ts @@ -82,19 +82,6 @@ declare interface RatingOptions { */ rating: number; - /** - * Rating option. - * - * @type { number | undefined | Bindable } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - rating: number | undefined | Bindable; - /** * Indicator option. * @@ -137,8 +124,7 @@ declare interface RatingOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ indicator?: boolean } diff --git a/api/@internal/component/ets/refresh.d.ts b/api/@internal/component/ets/refresh.d.ts index 5338ff255a1b5768d3f0e4ddf0a89c91ea0b664b..dd06bb21317d7c0c8ae89516263c32d88d3a7a0c 100644 --- a/api/@internal/component/ets/refresh.d.ts +++ b/api/@internal/component/ets/refresh.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { Callback, Optional, CommonMethod, Bindable } from './common' +import { Callback, Optional, CommonMethod } from './common' import { CustomBuilder } from './builder' import { ResourceStr } from './units' import { ComponentContent } from '../ComponentContent' @@ -226,18 +226,6 @@ interface RefreshOptions { * @since 11 */ refreshing: boolean; - /** - * Whether the current component is being refreshed. - * This parameter supports $$ for two-way binding of variables. - * - * @type { boolean | Bindable } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - refreshing: boolean | Bindable; /** * Distance to the top of the parent component from the component that diff --git a/api/@internal/component/ets/rich_editor.d.ts b/api/@internal/component/ets/rich_editor.d.ts index 55512888783a7d52f0975c79750af8d8974fba61..739a46d64d45c3c48bb54071ea06c2bf90f6648b 100644 --- a/api/@internal/component/ets/rich_editor.d.ts +++ b/api/@internal/component/ets/rich_editor.d.ts @@ -21,7 +21,7 @@ /*** if arkts 1.2 */ import { ShadowOptions, ClickEvent, SelectionOptions, CommonMethod, Callback, HapticFeedbackMode, RectResult, HoverEvent, PixelMap } from './common'; import { CustomBuilder } from './builder'; -import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font, VoidCallback } from './units'; +import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font } from './units'; import { FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, ResponseType, CopyOptions, BarState } from './enums'; import { DecorationStyleInterface, StyledString, MutableStyledString } from './styledString'; import { Resource } from './../../../api/global/resource'; @@ -773,21 +773,10 @@ declare interface PasteEvent { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ preventDefault?: Callback; - - /** - * Override system paste event. - * - * @type { ?VoidCallback } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - preventDefault?: VoidCallback; } /** @@ -3125,22 +3114,11 @@ declare interface SelectionMenuOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ onDisappear?: Callback; - /** - * Callback function when the selection menu disappears. - * - * @type { ?VoidCallback } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - onDisappear?: VoidCallback; - /** * Menu type, default value is MenuType.SELECTION_MENU. * @@ -3820,23 +3798,11 @@ declare class RichEditorAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ onReady(callback: Callback): RichEditorAttribute; - /** - * Called when on ready. - * - * @param { VoidCallback } callback - The triggered function when rich editor is ready. - * @returns { RichEditorAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - onReady(callback: VoidCallback): RichEditorAttribute; - /** * Called when the content is selected. * @@ -4013,23 +3979,11 @@ declare class RichEditorAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ onDeleteComplete(callback: Callback): RichEditorAttribute; - /** - * Notify that the deletion has been completed - * - * @param { VoidCallback } callback - The triggered function when text content has been deleted. - * @returns { RichEditorAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - onDeleteComplete(callback: VoidCallback): RichEditorAttribute; - /** * Allow replication. * @@ -4467,21 +4421,10 @@ declare interface CutEvent { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ preventDefault?: Callback; - - /** - * Prevent system cut event. - * - * @type { ?VoidCallback } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - preventDefault?: VoidCallback; } /** @@ -4501,21 +4444,10 @@ declare interface CopyEvent { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ preventDefault?: Callback; - - /** - * Prevent system cut event. - * - * @type { ?VoidCallback } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - preventDefault?: VoidCallback; } /** diff --git a/api/@internal/component/ets/search.d.ts b/api/@internal/component/ets/search.d.ts index b7c4d4dab058ade2dcddbec89a5e625aec3b77b0..7ce15eae7e18c0e50cba817f21cf6610371e20d4 100644 --- a/api/@internal/component/ets/search.d.ts +++ b/api/@internal/component/ets/search.d.ts @@ -409,13 +409,13 @@ declare interface SearchOptions { /** * Text input in the search text box. * - * @type { ?(string | Bindable)} + * @type { ?string} * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 20 * @arkts 1.2 */ - value?: string | Bindable; + value?: string; /** * Text displayed when there is no input. @@ -930,10 +930,21 @@ declare class SearchAttribute extends CommonMethod { * @crossplatform * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ searchButton(value: ResourceStr, option?: SearchButtonOptions): SearchAttribute; - + /** + * Set the search button text, fontSize and fontColor + * + * @param { string } value - indicates the text of the search button. + * @param { SearchButtonOptions } [option] - indicates the fontSize and fontColor of the search button. + * @returns { SearchAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + searchButton(value: string, option?: SearchButtonOptions): SearchAttribute; /** * Set the text Color * @@ -2137,7 +2148,7 @@ declare class SearchAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 20 + * @since arkts {'1.1':'20', '1.2':'20'} * @arkts 1.1&1.2 */ autoCapitalizationMode(mode: AutoCapitalizationMode): SearchAttribute; diff --git a/api/@internal/component/ets/select.d.ts b/api/@internal/component/ets/select.d.ts index d465cbfba78f9d1bb8416db7a4cbea5fb336ecad..f1ea440717c5e18368636752f40946061ecf2cff 100644 --- a/api/@internal/component/ets/select.d.ts +++ b/api/@internal/component/ets/select.d.ts @@ -443,7 +443,8 @@ declare class SelectAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ selected(value: number | Resource): SelectAttribute; @@ -455,24 +456,11 @@ declare class SelectAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ selected(numCount: Optional): SelectAttribute; - /** - * Sets the serial number of the select item, starting from 0. - * - * @param { number | Resource | undefined | Bindable | Bindable } numCount - the serial number of the select item. - * @returns { SelectAttribute } the attribute of the select. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected(numCount: number | Resource | undefined | Bindable | Bindable): SelectAttribute; - - /** * Sets the text display of the select button itself. * @@ -510,23 +498,11 @@ declare class SelectAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ value(resStr: Optional): SelectAttribute; - /** - * Sets the text display of the select button itself. - * - * @param { ResourceStr | undefined | Bindable | Bindable } resStr - the text display of the select button itself. - * @returns { SelectAttribute } the attribute of the select. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - value(resStr: ResourceStr | undefined | Bindable | Bindable): SelectAttribute; - /** * Sets the text properties of the select button itself. * diff --git a/api/@internal/component/ets/shape.d.ts b/api/@internal/component/ets/shape.d.ts index 3daac1837848fc564bb2e13e056ff8c0af4dbf06..52f08c6535647e947339218877c74d409923dd25 100644 --- a/api/@internal/component/ets/shape.d.ts +++ b/api/@internal/component/ets/shape.d.ts @@ -91,10 +91,22 @@ declare interface ViewportRect { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ x?: Length; + /** + * Viewport X coordinate. + * + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + x?: number | string; + /** * Viewport Y coordinate. * @@ -149,10 +161,22 @@ declare interface ViewportRect { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ y?: Length; + /** + * Viewport Y coordinate. + * + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + y?: number | string; + /** * Viewport width. * @@ -207,10 +231,22 @@ declare interface ViewportRect { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ width?: Length; + /** + * Viewport width. + * + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + width?: number | string; + /** * Viewport height. * @@ -265,9 +301,21 @@ declare interface ViewportRect { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ height?: Length; + + /** + * Viewport height. + * + * @type { ?(number | string) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + height?: number | string } /** @@ -605,10 +653,23 @@ declare class ShapeAttribute extends CommonMethod { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ strokeDashOffset(value: Length): ShapeAttribute; + /** + * Called when the offset of the starting point of border drawing is set. + * + * @param { number | string } value + * @returns { ShapeAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + strokeDashOffset(value: number | string): ShapeAttribute; + /** * Called when the gap of the border is set. * @@ -793,10 +854,23 @@ declare class ShapeAttribute extends CommonMethod { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ strokeMiterLimit(value: Length): ShapeAttribute; + /** + * Called when the limit value for drawing acute angles as oblique angles is set. + * + * @param { number | string } value + * @returns { ShapeAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + strokeMiterLimit(value: number | string): ShapeAttribute; + /** * Called when the opacity of the border is set. * @@ -927,10 +1001,23 @@ declare class ShapeAttribute extends CommonMethod { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ strokeWidth(value: Length): ShapeAttribute; + /** + * Called when the width of the border is set. + * + * @param { number | string } value + * @returns { ShapeAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + strokeWidth(value: number | string): ShapeAttribute; + /** * Called when setting whether anti aliasing is on. * diff --git a/api/@internal/component/ets/sidebar.d.ts b/api/@internal/component/ets/sidebar.d.ts index d60a3cd1455c426a29e2e68347219c4b36c21797..9633659be066558b97af701e7c4fe7c592b14b4d 100644 --- a/api/@internal/component/ets/sidebar.d.ts +++ b/api/@internal/component/ets/sidebar.d.ts @@ -21,7 +21,7 @@ /*** if arkts 1.2 */ import { Resource } from '../../global/resource' import { Length, ResourceColor, Dimension } from './units' -import { CommonMethod, PixelMap, Bindable } from './common' +import { CommonMethod, PixelMap } from './common' /*** endif */ /** @@ -709,23 +709,11 @@ declare class SideBarContainerAttribute extends CommonMethod } value - * @returns { SideBarContainerAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - showSideBar(value: boolean | Bindable): SideBarContainerAttribute; - /** * Callback controlButton function when setting the style of button * @@ -844,24 +832,11 @@ declare class SideBarContainerAttribute extends CommonMethod } value - * @returns { SideBarContainerAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - sideBarWidth(value: number | Bindable): SideBarContainerAttribute; - /** * Sets the min length of sidebar. * default value is 200vp. diff --git a/api/@internal/component/ets/slider.d.ts b/api/@internal/component/ets/slider.d.ts index f436818e1945f03ea39a8a4940963bc65d9ef373..7ea67b90fab34288a1532bc7557999322e62b285 100644 --- a/api/@internal/component/ets/slider.d.ts +++ b/api/@internal/component/ets/slider.d.ts @@ -19,7 +19,7 @@ */ /*** if arkts 1.2 */ -import { CommonMethod, CommonConfiguration, ContentModifier, Optional, Bindable } from './common'; +import { CommonMethod, CommonConfiguration, ContentModifier, Optional } from './common'; import { Axis, CrownSensitivity } from './enums'; import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from './units'; import { CircleAttribute } from './circle'; @@ -479,23 +479,11 @@ declare interface SliderOptions { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ value?: number; - /** - * Current value of Slider. - * - * @type { ?(number| undefined | Bindable) } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - value?: number | undefined | Bindable; - /** * Sets the min value of Slider. * diff --git a/api/@internal/component/ets/span.d.ts b/api/@internal/component/ets/span.d.ts index 268ab1f2e00a618170f2fc30a57052607250a02f..e48191b63e7e2523a0abd4eef06d6a81974e8988 100644 --- a/api/@internal/component/ets/span.d.ts +++ b/api/@internal/component/ets/span.d.ts @@ -450,6 +450,20 @@ declare class SpanAttribute { */ fontWeight(value: number | FontWeight | ResourceStr): SpanAttribute; + /** + * Called when the font weight is set. + * + * @param { number | FontWeight | string } value + * @returns { SpanAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + fontWeight(value: number | FontWeight | string): SpanAttribute; + /** * Called when the font list of text is set. * @@ -594,6 +608,20 @@ declare class SpanAttribute { */ letterSpacing(value: number | ResourceStr): SpanAttribute; + /** + * Called when the distance between text fonts is set. + * + * @param { number | string } value + * @returns { SpanAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + letterSpacing(value: number | string): SpanAttribute; + /** * Called when the type of letter in the text font is set. * diff --git a/api/@internal/component/ets/stepper.d.ts b/api/@internal/component/ets/stepper.d.ts index 59d4b0fc0f886d4b08b9f5ea20d758bf48ba7efe..a1611c0ff2ca9588ce65667f072c7aee9e314589 100644 --- a/api/@internal/component/ets/stepper.d.ts +++ b/api/@internal/component/ets/stepper.d.ts @@ -121,7 +121,7 @@ interface StepperInterface { * @crossplatform * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ (value?: StepperOptions): StepperAttribute; } diff --git a/api/@internal/component/ets/styled_string.d.ts b/api/@internal/component/ets/styled_string.d.ts index fddcab7a3041a4927d58df726ff3f902d6995d89..13e178bb06e971fbd113671b3427c01b1e3230dd 100644 --- a/api/@internal/component/ets/styled_string.d.ts +++ b/api/@internal/component/ets/styled_string.d.ts @@ -24,6 +24,7 @@ import { TextAlign, FontStyle, FontWeight, TextDecorationType, TextDecorationSty import { ResourceStr, ResourceColor, LengthMetrics, SizeOptions, Margin, Padding, BorderRadiuses, ColorFilter } from './units'; import { TextBackgroundStyle } from './span'; import { GestureEvent } from "./gesture"; +import { DrawingColorFilter } from './image'; import { LeadingMarginPlaceholder } from './richEditor'; import image from '../../@ohos.multimedia.image'; import { DrawContext } from '../../arkui/Graphics'; @@ -1825,7 +1826,8 @@ declare class ImageAttachment { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ readonly colorFilter?: ColorFilterType; } @@ -1908,7 +1910,8 @@ declare interface ResourceImageAttachmentOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ colorFilter?: ColorFilterType; @@ -2004,7 +2007,8 @@ declare interface ImageAttachmentInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ colorFilter?: ColorFilterType; } @@ -2028,7 +2032,8 @@ declare type AttachmentType = ImageAttachmentInterface | ResourceImageAttachment * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ declare type ColorFilterType = ColorFilter | DrawingColorFilter; diff --git a/api/@internal/component/ets/swiper.d.ts b/api/@internal/component/ets/swiper.d.ts index cb232e2c3489f3b445736c068311a877f021f25c..02b2edc58843fedac9f438e8dc41d1b833341982 100644 --- a/api/@internal/component/ets/swiper.d.ts +++ b/api/@internal/component/ets/swiper.d.ts @@ -20,7 +20,7 @@ /*** if arkts 1.2 */ import { IndicatorComponentController } from './indicatorcomponent'; -import { CommonMethod, Callback, ICurve, Optional, Bindable } from './common'; +import { CommonMethod, Callback, ICurve, Optional } from './common'; import { EdgeEffect, Curve, PageFlipMode } from './enums'; import { Length, LengthMetrics, VoidCallback, ResourceColor, VP, Font } from './units'; /*** endif */ @@ -1604,22 +1604,10 @@ declare class SwiperAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ index(value: number): SwiperAttribute; - /** - * Called when the index value of the displayed subcomponent is set in the container. - * - * @param { number | Bindable } value - * @returns { SwiperAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - index(value: number | Bindable): SwiperAttribute; /** * Called when setting whether the subcomponent plays automatically. diff --git a/api/@internal/component/ets/symbolglyph.d.ts b/api/@internal/component/ets/symbolglyph.d.ts index b84160bd9231e41886668c3b76b2aa3d99b1f1a2..6252906a9604ac91ede44328fb066e89df38035f 100644 --- a/api/@internal/component/ets/symbolglyph.d.ts +++ b/api/@internal/component/ets/symbolglyph.d.ts @@ -956,7 +956,8 @@ declare class ReplaceSymbolEffect extends SymbolEffect { * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ declare class PulseSymbolEffect extends SymbolEffect { } diff --git a/api/@internal/component/ets/tabs.d.ts b/api/@internal/component/ets/tabs.d.ts index a5c460d779aa0cc7f13c35c028540194c4e5ec31..70585576858fd5220485e98ada405a0238bc1f26 100644 --- a/api/@internal/component/ets/tabs.d.ts +++ b/api/@internal/component/ets/tabs.d.ts @@ -19,9 +19,10 @@ */ /*** if arkts 1.2 */ -import { BackgroundBlurStyleOptions, BackgroundEffectOptions, BlurStyle, Callback, CommonMethod, Optional, TranslateOptions, DividerStyle, Bindable } from './common'; +import { BackgroundBlurStyleOptions, BackgroundEffectOptions, BlurStyle, Callback, CommonMethod, Optional, TranslateOptions, DividerStyle } from './common'; import { EdgeEffect, PageFlipMode } from './enums'; import { Dimension, Length, ResourceColor } from './units'; +import { CommonModifier } from "../CommonModifier"; /*** endif */ /** @@ -546,20 +547,10 @@ declare interface TabsOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ index?: number; - /** - * Set the index of the currently displayed tab. - * - * @type { ?(number | Bindable) } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - index?: number | Bindable; /** * Set the Tabs controller. @@ -595,7 +586,8 @@ declare interface TabsOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ barModifier?: CommonModifier } diff --git a/api/@internal/component/ets/text_clock.d.ts b/api/@internal/component/ets/text_clock.d.ts index 29a9c245dc6d74f1a14e0581a00ba86da8f24820..8206df67789e6a1eecc4164eb4006cc7fb1c3b9d 100644 --- a/api/@internal/component/ets/text_clock.d.ts +++ b/api/@internal/component/ets/text_clock.d.ts @@ -450,10 +450,29 @@ declare class TextClockAttribute extends CommonMethod { * @form * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ format(value: ResourceStr): TextClockAttribute; + /** + * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd". + * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English), + * dd,ddd(English Week abbreviation),dddd(Full name of the week in English), + * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second). + * The default value is "hh:mm:ss" when TextClock is not in a form. + * The default value is "hh:mm" when TextClock is in a form. + * If the value has second or millisecond, the value will be set to the default value. + * + * @param { string } value + * @returns { TextClockAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + format(value: string): TextClockAttribute; + /** * Provides a date change callback. * The callback parameter is Unix Time Stamp, diff --git a/api/@internal/component/ets/text_input.d.ts b/api/@internal/component/ets/text_input.d.ts index c22f4005d7700326d6aae88fe971c2bd2aa3a95a..26845a54eba88e12d064eb99b473aa7c2237d9ee 100644 --- a/api/@internal/component/ets/text_input.d.ts +++ b/api/@internal/component/ets/text_input.d.ts @@ -20,7 +20,7 @@ /*** if arkts 1.2 */ import { CancelButtonSymbolOptions, CancelButtonOptions } from "./search"; -import { Callback, CommonMethod, TextContentControllerBase, SelectionOptions, InputCounterOptions, TextDecorationOptions, Optional, Bindable} from "./common"; +import { Callback, CommonMethod, TextContentControllerBase, SelectionOptions, InputCounterOptions, TextDecorationOptions, Optional } from "./common"; import { CustomBuilder } from './builder'; import { BarState, LineBreakStrategy, TextAlign, FontStyle, FontWeight, WordBreak, TextOverflow, CopyOptions, TextHeightAdaptivePolicy, TextContentStyle, EllipsisMode } from './enums'; @@ -1223,22 +1223,11 @@ declare interface TextInputOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ text?: ResourceStr; - /** - * Sets the current value of TextInput. - * - * @type { ?(ResourceStr | Bindable | Bindable | Bindable) } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - text?: ResourceStr | Bindable | Bindable | Bindable; - /** * Called when the position of the insertion cursor is set. * diff --git a/api/@internal/component/ets/text_timer.d.ts b/api/@internal/component/ets/text_timer.d.ts index cf5188146f5b536adc27b90a9c9fafc5e47e3662..c3a15592a95904f1087ab93a15a4ff725c17d5ea 100644 --- a/api/@internal/component/ets/text_timer.d.ts +++ b/api/@internal/component/ets/text_timer.d.ts @@ -353,7 +353,8 @@ interface TextTimerOptions { * @crossplatform * @form * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ count?: number; diff --git a/api/@internal/component/ets/time_picker.d.ts b/api/@internal/component/ets/time_picker.d.ts index 4fc274659814f7df5b5a9bf1e61eb70a2a638590..cdd61ed3e140ea0d6bf157c1b9aa55cd7a1e426c 100644 --- a/api/@internal/component/ets/time_picker.d.ts +++ b/api/@internal/component/ets/time_picker.d.ts @@ -217,22 +217,11 @@ declare interface TimePickerOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ selected?: Date; - /** - * Specifies the time selector check time. - * - * @type { ?(Date | Bindable) } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - selected?: Date | Bindable; - /** * Specifies the format of the TimePicker that need to be displayed. * diff --git a/api/@internal/component/ets/toggle.d.ts b/api/@internal/component/ets/toggle.d.ts index 4f1a07f3087dbbb03d2c1e70df48c4d01c473a5b..92641994621e931cb4e88ab72c311bff9aecd778 100644 --- a/api/@internal/component/ets/toggle.d.ts +++ b/api/@internal/component/ets/toggle.d.ts @@ -373,22 +373,10 @@ declare interface ToggleOptions { * @crossplatform * @form * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ isOn?: boolean - - /** - * Whether the toggle is on. - * - * @type { ?(boolean | undefined | Bindable) } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - isOn?: boolean | undefined | Bindable } /** diff --git a/api/@internal/component/ets/ui_extension_component.d.ts b/api/@internal/component/ets/ui_extension_component.d.ts index 7637cdeaaaa74c343b90d4093d29fa37a8b0b3e8..7fe841ede722e672076d2213ea367196129b17d4 100644 --- a/api/@internal/component/ets/ui_extension_component.d.ts +++ b/api/@internal/component/ets/ui_extension_component.d.ts @@ -61,16 +61,14 @@ declare enum DpiFollowStrategy { * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare enum WindowModeFollowStrategy { /** * Followed the host Window Mode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ FOLLOW_HOST_WINDOW_MODE = 0, @@ -78,8 +76,7 @@ declare enum WindowModeFollowStrategy { * Followed the UIExtensionAbility. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1 } @@ -150,8 +147,7 @@ declare interface UIExtensionOptions { * @default WindowModeFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ windowModeFollowStrategy?: WindowModeFollowStrategy; } @@ -546,8 +542,7 @@ declare class UIExtensionComponentAttribute extends CommonMethod): UIExtensionComponentAttribute; } diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index bda9777e8cacf7a6dfe2d4c02a26ea3e88efee65..31107f0821666a756b106865e04e271e83f5ed59 100644 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -1355,8 +1355,7 @@ export declare class PromptAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts { '1.1':'12','1.2':'20' } - * @arkts 1.1&1.2 + * @since 12 */ closeCustomDialog(dialogContent: ComponentContent): Promise; @@ -4822,32 +4821,6 @@ export declare class UIContext { * @arkts 1.1&1.2 */ static destroyUIContextWithoutWindow(): void; - - /** - * Thread-safe UI state variables updates interface. - * - * @param { VoidCallback } callback - The callback function to be executed in the UI thread. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - setUIStates(callback: VoidCallback): void; - - /** - * Retrieves the UIContext corresponding to the UI instance of the currently focused window. - * Returns undefined if it does not exist. - * - * @returns { UIContext | undefined } The focused UIContext, or undefined if it does not exist. - * @static - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - static getFocusedUIContext(): UIContext | undefined; } /** diff --git a/api/@ohos.arkui.drawableDescriptor.d.ts b/api/@ohos.arkui.drawableDescriptor.d.ts index e57f057fc71547d07bb5349a5e903c81e25d4ed9..fdfeda525aec69a3cf9fdf15f1bf6c9fcc5d19d1 100644 --- a/api/@ohos.arkui.drawableDescriptor.d.ts +++ b/api/@ohos.arkui.drawableDescriptor.d.ts @@ -132,22 +132,10 @@ export declare class DrawableDescriptor { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getPixelMap(): image.PixelMap; - - /** - * Get pixelMap of drawable image. - * - * @returns { image.PixelMap | undefined } Return the PixelMap of the calling DrawableDescriptor object. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - getPixelMap(): image.PixelMap | undefined; - /** * Get original width of drawable object. * @@ -262,22 +250,11 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getForeground(): DrawableDescriptor; - /** - * Get DrawableDescriptor for the foreground. - * - * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of foreground. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - getForeground(): DrawableDescriptor | undefined; - /** * Get DrawableDescriptor for the background. * @@ -302,19 +279,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor { * @atomicservice * @since 12 */ - getBackground(): DrawableDescriptor; - /** * Get DrawableDescriptor for the background. * - * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of background. + * @returns { DrawableDescriptor } Return the DrawableDescriptor object of background. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getBackground(): DrawableDescriptor | undefined; + getBackground(): DrawableDescriptor; /** * Get DrawableDescriptor for the mask. @@ -338,23 +313,11 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getMask(): DrawableDescriptor; - /** - * Get DrawableDescriptor for the mask. - * - * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of mask. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - getMask(): DrawableDescriptor | undefined; - - /** * Get the clip path info of the adaptive icon mask. * diff --git a/api/@ohos.arkui.inspector.d.ts b/api/@ohos.arkui.inspector.d.ts index 2634340ef8a1c270e2f0626d4c1d20bdec2c1d1d..2db8ffcb75ab4a4726037654d0289b3e5458bbcc 100644 --- a/api/@ohos.arkui.inspector.d.ts +++ b/api/@ohos.arkui.inspector.d.ts @@ -235,34 +235,4 @@ declare namespace inspector { function sendEventByKey(id: string, action: number, params: string): boolean; } -export default inspector; -/** - * export function getInspectorByKey from inspector namespace and provide it for kit ArkUI. - * @constant - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export const GETINSPECTORBYKEY = inspector.getInspectorByKey; -/** - * export function getInspectorTree from inspector namespace and provide it for kit ArkUI. - * @constant - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export const GETINSPECTORTREE = inspector.getInspectorTree; -/** - * export function sendEventByKey from inspector namespace and provide it for kit ArkUI. - * @constant - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export const SENDEVENTBYKEY = inspector.sendEventByKey; \ No newline at end of file +export default inspector; \ No newline at end of file diff --git a/api/@ohos.arkui.node.d.ts b/api/@ohos.arkui.node.d.ts index 86df2cbda1e09409c8aa584d12824666f25aefe2..18fde8db2e92188b997e70c8b937231b39a03f80 100644 --- a/api/@ohos.arkui.node.d.ts +++ b/api/@ohos.arkui.node.d.ts @@ -125,21 +125,11 @@ export { typeNode, NodeAdapter } from './arkui/FrameNode'; * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts { '1.1':'12','1.2':'20' } + * @arkts 1.1&1.2 */ export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, Rect, Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics'; -/** - * Export Graphics. Defines the basic types related to the Graphics. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, /*Rect, */Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics'; - /** * Export Graphics. Defines the basic types related to the Graphics. * diff --git a/api/@ohos.promptAction.d.ts b/api/@ohos.promptAction.d.ts index 2430763aa905b98946b1a6cd8981c34c5a9475c7..66ef831afc0d8030e5d3ea17cdba0d9ef703ed89 100644 --- a/api/@ohos.promptAction.d.ts +++ b/api/@ohos.promptAction.d.ts @@ -29,7 +29,6 @@ import { BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, Rectangle, Tr BackgroundBlurStyleOptions, BackgroundEffectOptions } from './arkui/component/common'; import { CustomBuilder } from './arkui/component/builder'; import { DialogAlignment } from './arkui/component/alertDialog'; -import { DismissDialogAction } from './arkui/component/actionSheet'; import { BorderStyle,Alignment } from './arkui/component/enums'; import { Resource } from './global/resource'; import { LengthMetrics } from './arkui/Graphics'; @@ -2497,7 +2496,8 @@ declare namespace promptAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare interface DismissDialogAction { /** @@ -2507,7 +2507,8 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ dismiss: Callback; @@ -2518,7 +2519,8 @@ declare interface DismissDialogAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ reason: DismissReason; } diff --git a/api/arkui/BuilderNode.d.ts b/api/arkui/BuilderNode.d.ts index 76b328a25ba087f78904f816072d0a7afe99493f..ce6ba03d624dc60dfaa14cc266870352e0920123 100644 --- a/api/arkui/BuilderNode.d.ts +++ b/api/arkui/BuilderNode.d.ts @@ -297,7 +297,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ constructor(uiContext: UIContext, options?: RenderOptions); @@ -348,7 +349,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ build(builder: WrappedBuilder, arg?: Object): void; @@ -373,7 +375,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ build(builder: WrappedBuilder, arg: Object, options: BuildOptions): void; @@ -398,7 +401,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ update(arg: Object): void; @@ -419,7 +423,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getFrameNode(): FrameNode | null; @@ -480,7 +485,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ postTouchEvent(event: TouchEvent): boolean; @@ -500,7 +506,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ dispose(): void; @@ -512,7 +519,8 @@ export class BuilderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ reuse(param?: Object): void; diff --git a/api/arkui/CommonModifier.d.ets b/api/arkui/CommonModifier.d.ets new file mode 100644 index 0000000000000000000000000000000000000000..14994f1d25f08adc194ddce38e2bb480e46015e4 --- /dev/null +++ b/api/arkui/CommonModifier.d.ets @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file + * @kit ArkUI + */ + + +/** + * Defines Common Modifier + * + * @extends CommonAttribute + * @implements AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 +*/ +export declare class CommonModifier { + + +} diff --git a/api/arkui/Graphics.d.ts b/api/arkui/Graphics.d.ts index eafe34ae4681ca55f6c2ede97845ec8c3bc534e0..a795a8b911d3e3ced65a43c54115d300ec9d584a 100644 --- a/api/arkui/Graphics.d.ts +++ b/api/arkui/Graphics.d.ts @@ -17,10 +17,8 @@ * @file * @kit ArkUI */ -/*** if arkts 1.1 */ import drawing from '../@ohos.graphics.drawing'; import type common2D from '../@ohos.graphics.common2D'; -/*** endif */ import { Resource } from '../global/resource'; /*** if arkts 1.2 */ @@ -166,7 +164,8 @@ export declare class DrawContext { * @returns { drawing.Canvas } The canvas of the DrawContext. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ /** * Get canvas of the DrawContext. @@ -175,7 +174,8 @@ export declare class DrawContext { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ get canvas(): drawing.Canvas; } @@ -1291,7 +1291,8 @@ export type BorderRadiuses = Corners; * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ export type Rect = common2D.Rect; @@ -1313,7 +1314,8 @@ export interface RoundRect { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ rect: Rect, @@ -1433,7 +1435,8 @@ export declare class ShapeMask { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setRectShape(rect: Rect): void; @@ -1468,7 +1471,8 @@ export declare class ShapeMask { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setOvalShape(oval: Rect): void; @@ -1556,7 +1560,8 @@ export declare class ShapeClip { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setRectShape(rect: Rect): void; @@ -1591,7 +1596,8 @@ export declare class ShapeClip { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setOvalShape(oval: Rect): void; diff --git a/api/arkui/NodeController.d.ts b/api/arkui/NodeController.d.ts index ffe35aa3700174aa9c6814d8424a9ef2e4ea0aa7..06d981ebc01be78293dfcc9411961cd52d0dfa8d 100644 --- a/api/arkui/NodeController.d.ts +++ b/api/arkui/NodeController.d.ts @@ -181,8 +181,7 @@ export declare abstract class NodeController { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ rebuild(): void;