From e2ccca0855c3407d930f056803dc89bb83bd0bfe Mon Sep 17 00:00:00 2001 From: fenglinbailu Date: Thu, 21 Aug 2025 22:32:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E6=8B=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fenglinbailu --- api/@internal/component/ets/blank.d.ts | 19 +- api/@internal/component/ets/column.d.ts | 57 ++-- api/@internal/component/ets/column_split.d.ts | 31 +- api/@internal/component/ets/divider.d.ts | 29 +- api/@internal/component/ets/flex.d.ts | 50 +-- api/@internal/component/ets/folder_stack.d.ts | 76 ++--- api/@internal/component/ets/grid_col.d.ts | 53 +-- api/@internal/component/ets/grid_row.d.ts | 112 +++---- .../component/ets/relative_container.d.ts | 101 ++---- api/@internal/component/ets/row.d.ts | 41 +-- api/@internal/component/ets/row_split.d.ts | 19 +- api/@internal/component/ets/stack.d.ts | 28 +- api/@ohos.arkui.component.d.ets | 1 - api/arkui/BlankModifier.static.d.ets | 33 ++ api/arkui/ColumnModifier.static.d.ets | 32 ++ api/arkui/ColumnSplitModifier.static.d.ets | 32 ++ api/arkui/DividerModifier.static.d.ets | 32 ++ api/arkui/GridColModifier.static.d.ets | 32 ++ api/arkui/GridRowModifier.static.d.ets | 32 ++ api/arkui/RowModifier.static.d.ets | 32 ++ api/arkui/RowSplitModifier.static.d.ets | 32 ++ api/arkui/StackModifier.static.d.ets | 32 ++ api/arkui/component/blank.d.ets | 47 --- api/arkui/component/blank.static.d.ets | 43 +++ api/arkui/component/column.d.ets | 56 ---- api/arkui/component/column.static.d.ets | 103 ++++++ api/arkui/component/columnSplit.static.d.ets | 79 +++++ api/arkui/component/divider.static.d.ets | 72 +++++ api/arkui/component/flex.static.d.ets | 123 +++++++ api/arkui/component/folderStack.static.d.ets | 187 +++++++++++ api/arkui/component/gridCol.static.d.ets | 150 +++++++++ api/arkui/component/gridRow.static.d.ets | 304 ++++++++++++++++++ .../component/relativeContainer.static.d.ets | 260 +++++++++++++++ api/arkui/component/row.d.ets | 56 ---- api/arkui/component/row.static.d.ets | 96 ++++++ api/arkui/component/rowSplit.static.d.ets | 42 +++ api/arkui/component/stack.d.ets | 52 --- api/arkui/component/stack.static.d.ets | 61 ++++ 38 files changed, 2009 insertions(+), 628 deletions(-) create mode 100644 api/arkui/BlankModifier.static.d.ets create mode 100644 api/arkui/ColumnModifier.static.d.ets create mode 100644 api/arkui/ColumnSplitModifier.static.d.ets create mode 100644 api/arkui/DividerModifier.static.d.ets create mode 100644 api/arkui/GridColModifier.static.d.ets create mode 100644 api/arkui/GridRowModifier.static.d.ets create mode 100644 api/arkui/RowModifier.static.d.ets create mode 100644 api/arkui/RowSplitModifier.static.d.ets create mode 100644 api/arkui/StackModifier.static.d.ets delete mode 100644 api/arkui/component/blank.d.ets create mode 100644 api/arkui/component/blank.static.d.ets delete mode 100644 api/arkui/component/column.d.ets create mode 100644 api/arkui/component/column.static.d.ets create mode 100644 api/arkui/component/columnSplit.static.d.ets create mode 100644 api/arkui/component/divider.static.d.ets create mode 100644 api/arkui/component/flex.static.d.ets create mode 100644 api/arkui/component/folderStack.static.d.ets create mode 100644 api/arkui/component/gridCol.static.d.ets create mode 100644 api/arkui/component/gridRow.static.d.ets create mode 100644 api/arkui/component/relativeContainer.static.d.ets delete mode 100644 api/arkui/component/row.d.ets create mode 100644 api/arkui/component/row.static.d.ets create mode 100644 api/arkui/component/rowSplit.static.d.ets delete mode 100644 api/arkui/component/stack.d.ets create mode 100644 api/arkui/component/stack.static.d.ets diff --git a/api/@internal/component/ets/blank.d.ts b/api/@internal/component/ets/blank.d.ts index 09487680b7..9316b6366c 100644 --- a/api/@internal/component/ets/blank.d.ts +++ b/api/@internal/component/ets/blank.d.ts @@ -18,11 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { CommonMethod } from './common'; -import { ResourceColor } from './units'; -/*** endif */ - /** * Create Blank. * @@ -55,8 +50,8 @@ import { ResourceColor } from './units'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @noninterop + * @since 11 */ interface BlankInterface { /** @@ -96,8 +91,7 @@ interface BlankInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (min?: number | string): BlankAttribute; } @@ -134,8 +128,8 @@ interface BlankInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @noninterop + * @since 11 */ declare class BlankAttribute extends CommonMethod { /** @@ -175,8 +169,7 @@ declare class BlankAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ color(value: ResourceColor): BlankAttribute; } diff --git a/api/@internal/component/ets/column.d.ts b/api/@internal/component/ets/column.d.ts index 96457a9ee0..2ec93b6b72 100644 --- a/api/@internal/component/ets/column.d.ts +++ b/api/@internal/component/ets/column.d.ts @@ -18,12 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { PointLightStyle, Optional, CommonMethod } from './common'; -import { HorizontalAlign, FlexAlign } from './enums'; -import { Resource } from './../../global/resource'; -/*** endif */ - /** * Defines the space property with string, number and resource unit. * @@ -32,8 +26,7 @@ import { Resource } from './../../global/resource'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare type SpaceType = string | number | Resource; @@ -45,8 +38,7 @@ declare type SpaceType = string | number | Resource; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface ColumnOptions { /** @@ -81,8 +73,17 @@ interface ColumnOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + */ + /** + * Vertical layout element spacing. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 18 */ space?: string | number; } @@ -95,8 +96,7 @@ interface ColumnOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface ColumnOptionsV2 { /** @@ -107,8 +107,7 @@ interface ColumnOptionsV2 { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ space?: SpaceType; } @@ -145,8 +144,8 @@ interface ColumnOptionsV2 { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface ColumnInterface { /** @@ -204,8 +203,7 @@ interface ColumnInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ (options?: ColumnOptions): ColumnAttribute; /** @@ -217,8 +215,7 @@ interface ColumnInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ (options?: ColumnOptions | ColumnOptionsV2): ColumnAttribute; } @@ -255,8 +252,8 @@ interface ColumnInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class ColumnAttribute extends CommonMethod { /** @@ -295,8 +292,7 @@ declare class ColumnAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ alignItems(value: HorizontalAlign): ColumnAttribute; @@ -336,8 +332,7 @@ declare class ColumnAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ justifyContent(value: FlexAlign): ColumnAttribute; /** @@ -347,8 +342,7 @@ declare class ColumnAttribute extends CommonMethod { * @returns { ColumnAttribute } The attribute of the column. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ pointLight(value: PointLightStyle): ColumnAttribute; /** @@ -360,8 +354,7 @@ declare class ColumnAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ reverse(isReversed: Optional): ColumnAttribute; } diff --git a/api/@internal/component/ets/column_split.d.ts b/api/@internal/component/ets/column_split.d.ts index 4ad3617ad8..146d2a1949 100644 --- a/api/@internal/component/ets/column_split.d.ts +++ b/api/@internal/component/ets/column_split.d.ts @@ -18,11 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { Dimension } from './units'; -import { CommonMethod } from './common'; -/*** endif */ - /** * Defines the ColumnSplit component. * @@ -45,8 +40,8 @@ import { CommonMethod } from './common'; * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface ColumnSplitInterface { /** @@ -71,8 +66,7 @@ interface ColumnSplitInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (): ColumnSplitAttribute; } @@ -92,8 +86,7 @@ interface ColumnSplitInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ interface ColumnSplitDividerStyle { /** @@ -113,8 +106,7 @@ interface ColumnSplitDividerStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ startMargin?: Dimension; @@ -135,8 +127,7 @@ interface ColumnSplitDividerStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ endMargin?: Dimension; } @@ -163,8 +154,8 @@ interface ColumnSplitDividerStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class ColumnSplitAttribute extends CommonMethod { /** @@ -192,8 +183,7 @@ declare class ColumnSplitAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ resizeable(value: boolean): ColumnSplitAttribute; @@ -214,8 +204,7 @@ declare class ColumnSplitAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ divider(value: ColumnSplitDividerStyle | null): ColumnSplitAttribute; } diff --git a/api/@internal/component/ets/divider.d.ts b/api/@internal/component/ets/divider.d.ts index 8bb2561434..fd2a993b59 100644 --- a/api/@internal/component/ets/divider.d.ts +++ b/api/@internal/component/ets/divider.d.ts @@ -18,12 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { ResourceColor } from './units'; -import { CommonMethod} from './common'; -import { LineCapStyle } from './enums'; -/*** endif */ - /** * Provides a divider component to separate different content blocks/content elements. * @@ -56,8 +50,8 @@ import { LineCapStyle } from './enums'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface DividerInterface { /** @@ -92,8 +86,7 @@ interface DividerInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (): DividerAttribute; } @@ -130,8 +123,8 @@ interface DividerInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class DividerAttribute extends CommonMethod { /** @@ -174,8 +167,7 @@ declare class DividerAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ vertical(value: boolean): DividerAttribute; @@ -215,8 +207,7 @@ declare class DividerAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ color(value: ResourceColor): DividerAttribute; @@ -256,8 +247,7 @@ declare class DividerAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ strokeWidth(value: number | string): DividerAttribute; @@ -297,8 +287,7 @@ declare class DividerAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ lineCap(value: LineCapStyle): DividerAttribute; } diff --git a/api/@internal/component/ets/flex.d.ts b/api/@internal/component/ets/flex.d.ts index 640ce78983..a97886342c 100644 --- a/api/@internal/component/ets/flex.d.ts +++ b/api/@internal/component/ets/flex.d.ts @@ -18,12 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { LengthMetrics } from '../Graphics'; -import { PointLightStyle, CommonMethod } from './common'; -import { FlexWrap, FlexDirection, ItemAlign, FlexAlign } from './enums'; -/*** endif */ - /** * Defines the options of Flex. * @@ -56,8 +50,7 @@ import { FlexWrap, FlexDirection, ItemAlign, FlexAlign } from './enums'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface FlexOptions { /** @@ -93,8 +86,7 @@ declare interface FlexOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ direction?: FlexDirection; @@ -131,8 +123,7 @@ declare interface FlexOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ wrap?: FlexWrap; @@ -169,8 +160,7 @@ declare interface FlexOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ justifyContent?: FlexAlign; @@ -207,8 +197,7 @@ declare interface FlexOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ alignItems?: ItemAlign; @@ -246,8 +235,7 @@ declare interface FlexOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ alignContent?: FlexAlign; @@ -259,8 +247,7 @@ declare interface FlexOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ space?: FlexSpaceOptions; } @@ -272,8 +259,7 @@ declare interface FlexOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare interface FlexSpaceOptions { @@ -284,8 +270,7 @@ declare interface FlexSpaceOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ main?: LengthMetrics; @@ -296,8 +281,7 @@ declare interface FlexSpaceOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ cross?: LengthMetrics; } @@ -334,8 +318,8 @@ declare interface FlexSpaceOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface FlexInterface { /** @@ -374,8 +358,7 @@ interface FlexInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (value?: FlexOptions): FlexAttribute; } @@ -412,8 +395,8 @@ interface FlexInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class FlexAttribute extends CommonMethod { /** @@ -423,8 +406,7 @@ declare class FlexAttribute extends CommonMethod { * @returns { FlexAttribute } The attribute of the flex. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ pointLight(value: PointLightStyle): FlexAttribute; } diff --git a/api/@internal/component/ets/folder_stack.d.ts b/api/@internal/component/ets/folder_stack.d.ts index 6a2747be6a..1e3ba405d3 100644 --- a/api/@internal/component/ets/folder_stack.d.ts +++ b/api/@internal/component/ets/folder_stack.d.ts @@ -18,12 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import window from '../../@ohos.window'; -import { FoldStatus, Alignment, AppRotation } from './enums'; -import { CommonMethod } from './common'; -/*** endif */ - /** * Import the WindowStatusType type object for onHoverStatusChange. * @@ -34,17 +28,6 @@ import { CommonMethod } from './common'; */ declare type WindowStatusType = import('../api/@ohos.window').default.WindowStatusType; -/** - * Import the WindowStatusType type object for onHoverStatusChange. - * - * @typedef { window.WindowStatusType } WindowStatusType - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -declare type WindowStatusType = window.WindowStatusType - /** * FolderStack constructor options. * @@ -52,8 +35,7 @@ declare type WindowStatusType = window.WindowStatusType * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface FolderStackOptions { /** @@ -81,8 +63,7 @@ interface FolderStackOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ upperItems?: Array; } @@ -102,8 +83,8 @@ interface FolderStackOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 + * @noninterop */ interface FolderStackInterface { @@ -135,8 +116,7 @@ interface FolderStackInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ (options?: FolderStackOptions): FolderStackAttribute; } @@ -148,8 +128,7 @@ interface FolderStackInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface OnFoldStatusChangeInfo { /** @@ -177,8 +156,7 @@ interface OnFoldStatusChangeInfo { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ foldStatus: FoldStatus } @@ -192,8 +170,7 @@ interface OnFoldStatusChangeInfo { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare type OnFoldStatusChangeCallback = (event: OnFoldStatusChangeInfo) => void; @@ -205,8 +182,7 @@ declare type OnFoldStatusChangeCallback = (event: OnFoldStatusChangeInfo) => voi * @param { HoverEventParam } param - hover event param * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare type OnHoverStatusChangeCallback = (param: HoverEventParam) => void; @@ -221,8 +197,8 @@ declare type OnHoverStatusChangeCallback = (param: HoverEventParam) => void; * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class FolderStackAttribute extends CommonMethod { /** @@ -242,8 +218,7 @@ declare class FolderStackAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ alignContent(value: Alignment): FolderStackAttribute; @@ -275,8 +250,7 @@ declare class FolderStackAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ onFolderStateChange(callback: OnFoldStatusChangeCallback): FolderStackAttribute; @@ -298,8 +272,7 @@ declare class FolderStackAttribute extends CommonMethod { * @returns { FolderStackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ onHoverStatusChange(handler: OnHoverStatusChangeCallback): FolderStackAttribute; @@ -320,8 +293,7 @@ declare class FolderStackAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ enableAnimation(value: boolean): FolderStackAttribute; @@ -342,8 +314,7 @@ declare class FolderStackAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ autoHalfFold(value: boolean): FolderStackAttribute; } @@ -354,8 +325,7 @@ declare class FolderStackAttribute extends CommonMethod { * @interface HoverEventParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare interface HoverEventParam { /** @@ -364,8 +334,7 @@ declare interface HoverEventParam { * @type { FoldStatus } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ foldStatus: FoldStatus @@ -375,8 +344,7 @@ declare interface HoverEventParam { * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ isHoverMode: boolean @@ -386,8 +354,7 @@ declare interface HoverEventParam { * @type { AppRotation } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ appRotation: AppRotation @@ -397,8 +364,7 @@ declare interface HoverEventParam { * @type { WindowStatusType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ windowStatusType: WindowStatusType } diff --git a/api/@internal/component/ets/grid_col.d.ts b/api/@internal/component/ets/grid_col.d.ts index 5889c45d0d..cce3f0633f 100644 --- a/api/@internal/component/ets/grid_col.d.ts +++ b/api/@internal/component/ets/grid_col.d.ts @@ -18,10 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { CommonMethod } from './common'; -/*** endif */ - /** * Defines the option in number unit of grid-container child component. * @@ -47,8 +43,7 @@ import { CommonMethod } from './common'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface GridColColumnOption { /** @@ -76,8 +71,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xs?: number, @@ -106,8 +100,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ sm?: number, @@ -136,8 +129,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ md?: number, @@ -166,8 +158,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ lg?: number, @@ -196,8 +187,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xl?: number, @@ -226,8 +216,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xxl?: number, } @@ -257,8 +246,7 @@ declare interface GridColColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface GridColOptions { /** @@ -286,8 +274,7 @@ declare interface GridColOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ span?: number | GridColColumnOption; @@ -316,8 +303,7 @@ declare interface GridColOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ offset?: number | GridColColumnOption; @@ -346,8 +332,7 @@ declare interface GridColOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ order?: number | GridColColumnOption; } @@ -377,8 +362,8 @@ declare interface GridColOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface GridColInterface { /** @@ -409,8 +394,7 @@ interface GridColInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (option?: GridColOptions): GridColAttribute; } @@ -472,8 +456,7 @@ declare class GridColAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ span(value: number | GridColColumnOption): GridColAttribute; @@ -505,8 +488,7 @@ declare class GridColAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ gridColOffset(value: number | GridColColumnOption): GridColAttribute; @@ -538,8 +520,7 @@ declare class GridColAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ order(value: number | GridColColumnOption): GridColAttribute; } diff --git a/api/@internal/component/ets/grid_row.d.ts b/api/@internal/component/ets/grid_row.d.ts index a5ea02dc10..74e0c197f1 100644 --- a/api/@internal/component/ets/grid_row.d.ts +++ b/api/@internal/component/ets/grid_row.d.ts @@ -18,12 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { ItemAlign } from './enums'; -import { CommonMethod } from './common'; -import { Length } from './units'; -/*** endif */ - /** * Defines the option in length unit of grid-row component. * @@ -49,8 +43,7 @@ import { Length } from './units'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface GridRowSizeOption { /** @@ -78,8 +71,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xs?: Length, @@ -108,8 +100,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ sm?: Length, @@ -138,8 +129,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ md?: Length, @@ -168,8 +158,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ lg?: Length, @@ -198,8 +187,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xl?: Length, @@ -228,8 +216,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xxl?: Length, } @@ -259,8 +246,7 @@ declare interface GridRowSizeOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface GridRowColumnOption { /** @@ -288,8 +274,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xs?: number, @@ -318,8 +303,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ sm?: number, @@ -348,8 +332,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ md?: number, @@ -378,8 +361,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ lg?: number, @@ -408,8 +390,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xl?: number, @@ -438,8 +419,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ xxl?: number, } @@ -469,8 +449,7 @@ declare interface GridRowColumnOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface GutterOption { /** @@ -498,8 +477,7 @@ declare interface GutterOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ x?: Length | GridRowSizeOption, @@ -528,8 +506,7 @@ declare interface GutterOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ y?: Length | GridRowSizeOption } @@ -559,8 +536,7 @@ declare interface GutterOption { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare enum BreakpointsReference { /** @@ -585,8 +561,7 @@ declare enum BreakpointsReference { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ WindowSize, @@ -612,8 +587,7 @@ declare enum BreakpointsReference { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ ComponentSize, } @@ -643,8 +617,7 @@ declare enum BreakpointsReference { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare enum GridRowDirection { /** @@ -669,8 +642,7 @@ declare enum GridRowDirection { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ Row, @@ -696,8 +668,7 @@ declare enum GridRowDirection { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ RowReverse, } @@ -727,8 +698,7 @@ declare enum GridRowDirection { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface BreakPoints { /** @@ -756,8 +726,7 @@ declare interface BreakPoints { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ value?: Array, @@ -786,8 +755,7 @@ declare interface BreakPoints { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ reference?: BreakpointsReference, } @@ -817,8 +785,7 @@ declare interface BreakPoints { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ declare interface GridRowOptions { /** @@ -846,8 +813,7 @@ declare interface GridRowOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ gutter?: Length | GutterOption; @@ -876,8 +842,7 @@ declare interface GridRowOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ columns?: number | GridRowColumnOption; @@ -906,8 +871,7 @@ declare interface GridRowOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ breakpoints?: BreakPoints; @@ -936,8 +900,7 @@ declare interface GridRowOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ direction?: GridRowDirection; } @@ -999,8 +962,7 @@ interface GridRowInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (option?: GridRowOptions): GridRowAttribute; } @@ -1030,8 +992,8 @@ interface GridRowInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class GridRowAttribute extends CommonMethod { /** @@ -1062,8 +1024,7 @@ declare class GridRowAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ onBreakpointChange(callback: (breakpoints: string) => void): GridRowAttribute; @@ -1086,8 +1047,7 @@ declare class GridRowAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ alignItems(value: ItemAlign): GridRowAttribute; } diff --git a/api/@internal/component/ets/relative_container.d.ts b/api/@internal/component/ets/relative_container.d.ts index 1caa3043b6..be9eff6fd0 100644 --- a/api/@internal/component/ets/relative_container.d.ts +++ b/api/@internal/component/ets/relative_container.d.ts @@ -18,12 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { Dimension } from './units'; -import { Axis } from './enums'; -import { CommonMethod } from './common'; -/*** endif */ - /** * Provides ports for relative containers. * @@ -49,8 +43,8 @@ import { CommonMethod } from './common'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface RelativeContainerInterface { /** @@ -78,8 +72,7 @@ interface RelativeContainerInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (): RelativeContainerAttribute; } @@ -91,8 +84,7 @@ interface RelativeContainerInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare interface GuideLinePosition { /** @@ -102,8 +94,7 @@ declare interface GuideLinePosition { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ start? : Dimension; @@ -114,8 +105,7 @@ declare interface GuideLinePosition { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ end? : Dimension; } @@ -127,8 +117,7 @@ declare interface GuideLinePosition { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare interface GuideLineStyle { /** @@ -138,8 +127,7 @@ declare interface GuideLineStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ id : string; @@ -150,8 +138,7 @@ declare interface GuideLineStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ direction : Axis; @@ -162,8 +149,7 @@ declare interface GuideLineStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ position : GuideLinePosition; } @@ -175,8 +161,7 @@ declare interface GuideLineStyle { * @syscap SystemCapability.Test.UiTest * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare enum BarrierDirection { /** @@ -185,8 +170,7 @@ declare enum BarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ LEFT, @@ -196,8 +180,7 @@ declare enum BarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ RIGHT, @@ -207,8 +190,7 @@ declare enum BarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ TOP, @@ -218,8 +200,7 @@ declare enum BarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ BOTTOM, } @@ -231,8 +212,7 @@ declare enum BarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare enum LocalizedBarrierDirection { /** @@ -241,8 +221,7 @@ declare enum LocalizedBarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ START = 0, @@ -252,8 +231,7 @@ declare enum LocalizedBarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ END = 1, @@ -263,8 +241,7 @@ declare enum LocalizedBarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ TOP = 2, @@ -274,8 +251,7 @@ declare enum LocalizedBarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ BOTTOM = 3, } @@ -287,8 +263,7 @@ declare enum LocalizedBarrierDirection { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare interface BarrierStyle { /** @@ -298,8 +273,7 @@ declare interface BarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ id : string; @@ -310,8 +284,7 @@ declare interface BarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ direction : BarrierDirection; @@ -322,8 +295,7 @@ declare interface BarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ referencedId : Array; } @@ -335,8 +307,7 @@ declare interface BarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ declare interface LocalizedBarrierStyle { /** @@ -346,8 +317,7 @@ declare interface LocalizedBarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ id : string; @@ -358,8 +328,7 @@ declare interface LocalizedBarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ localizedDirection : LocalizedBarrierDirection; @@ -370,8 +339,7 @@ declare interface LocalizedBarrierStyle { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ referencedId : Array; } @@ -395,8 +363,8 @@ declare interface LocalizedBarrierStyle { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class RelativeContainerAttribute extends CommonMethod { /** @@ -407,8 +375,7 @@ declare class RelativeContainerAttribute extends CommonMethod): RelativeContainerAttribute; @@ -420,8 +387,7 @@ declare class RelativeContainerAttribute extends CommonMethod): RelativeContainerAttribute; @@ -433,8 +399,7 @@ declare class RelativeContainerAttribute extends CommonMethod): RelativeContainerAttribute; } diff --git a/api/@internal/component/ets/row.d.ts b/api/@internal/component/ets/row.d.ts index b3981964e0..651d1c3a04 100644 --- a/api/@internal/component/ets/row.d.ts +++ b/api/@internal/component/ets/row.d.ts @@ -18,13 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { PointLightStyle, Optional, CommonMethod } from './common'; -import { VerticalAlign, FlexAlign } from './enums'; -import { SpaceType } from './column'; -/*** endif */ - - /** * Define options used to construct a row. * @@ -33,8 +26,7 @@ import { SpaceType } from './column'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare interface RowOptions { /** @@ -80,8 +72,7 @@ declare interface RowOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ space?: string | number; } @@ -94,8 +85,7 @@ declare interface RowOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ interface RowOptionsV2 { /** @@ -106,8 +96,7 @@ interface RowOptionsV2 { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ space?: SpaceType; } @@ -144,8 +133,8 @@ interface RowOptionsV2 { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface RowInterface { /** @@ -196,8 +185,7 @@ interface RowInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ (options?: RowOptions): RowAttribute; /** @@ -210,8 +198,7 @@ interface RowInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ (options?: RowOptions | RowOptionsV2): RowAttribute; } @@ -288,8 +275,7 @@ declare class RowAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ alignItems(value: VerticalAlign): RowAttribute; @@ -329,8 +315,7 @@ declare class RowAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ justifyContent(value: FlexAlign): RowAttribute; /** @@ -340,8 +325,7 @@ declare class RowAttribute extends CommonMethod { * @returns { RowAttribute } The attribute of the row. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ pointLight(value: PointLightStyle): RowAttribute; /** @@ -353,8 +337,7 @@ declare class RowAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ reverse(isReversed: Optional): RowAttribute; } diff --git a/api/@internal/component/ets/row_split.d.ts b/api/@internal/component/ets/row_split.d.ts index 395b1e5e0a..892816fd6c 100644 --- a/api/@internal/component/ets/row_split.d.ts +++ b/api/@internal/component/ets/row_split.d.ts @@ -18,11 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { CommonMethod } from './common'; -/*** endif */ - - /** * Provides interfaces for layout in the vertical direction. * @@ -45,8 +40,8 @@ import { CommonMethod } from './common'; * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface RowSplitInterface { /** @@ -71,8 +66,7 @@ interface RowSplitInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ (): RowSplitAttribute; } @@ -93,8 +87,8 @@ interface RowSplitInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class RowSplitAttribute extends CommonMethod { /** @@ -122,8 +116,7 @@ declare class RowSplitAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ resizeable(value: boolean): RowSplitAttribute; } diff --git a/api/@internal/component/ets/stack.d.ts b/api/@internal/component/ets/stack.d.ts index ccce79ba02..d368ed7675 100644 --- a/api/@internal/component/ets/stack.d.ts +++ b/api/@internal/component/ets/stack.d.ts @@ -18,11 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { PointLightStyle, CommonMethod } from './common'; -import { Alignment } from './enums'; -/*** endif */ - /** * Options used to construct the stack. * @@ -31,8 +26,7 @@ import { Alignment } from './enums'; * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare interface StackOptions { /** @@ -79,8 +73,7 @@ declare interface StackOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ alignContent?: Alignment; } @@ -117,8 +110,8 @@ declare interface StackOptions { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ interface StackInterface { /** @@ -169,8 +162,7 @@ interface StackInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ (options?: StackOptions): StackAttribute; } @@ -199,8 +191,8 @@ interface StackInterface { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + * @noninterop */ declare class StackAttribute extends CommonMethod { /** @@ -239,8 +231,7 @@ declare class StackAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ alignContent(value: Alignment): StackAttribute; @@ -251,8 +242,7 @@ declare class StackAttribute extends CommonMethod { * @returns { StackAttribute } The attribute of the stack. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ pointLight(value: PointLightStyle): StackAttribute; } diff --git a/api/@ohos.arkui.component.d.ets b/api/@ohos.arkui.component.d.ets index d3b2e5e162..47cd879d9e 100644 --- a/api/@ohos.arkui.component.d.ets +++ b/api/@ohos.arkui.component.d.ets @@ -23,7 +23,6 @@ export * from './arkui/UserView'; export * from './arkui/component/animation'; export * from './arkui/component/customComponent'; export * from './arkui/component/common'; -export * from './arkui/component/column'; export * from './arkui/component/text'; export * from './arkui/component/styledString'; export * from './arkui/component/enums'; diff --git a/api/arkui/BlankModifier.static.d.ets b/api/arkui/BlankModifier.static.d.ets new file mode 100644 index 0000000000..a201adbc71 --- /dev/null +++ b/api/arkui/BlankModifier.static.d.ets @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { BlankAttribute } from './component/blank'; + +/** + * Defines Blank Modifier + * + * @extends BlankAttribute + * @implements AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare class BlankModifier extends BlankAttribute implements AttributeModifier {} diff --git a/api/arkui/ColumnModifier.static.d.ets b/api/arkui/ColumnModifier.static.d.ets new file mode 100644 index 0000000000..c2fc15f304 --- /dev/null +++ b/api/arkui/ColumnModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { ColumnAttribute } from './component/column'; + +/** + * Defines Column Modifier + * + * @implements ColumnAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class ColumnModifier implements ColumnAttribute, AttributeModifier {} \ No newline at end of file diff --git a/api/arkui/ColumnSplitModifier.static.d.ets b/api/arkui/ColumnSplitModifier.static.d.ets new file mode 100644 index 0000000000..f575f09cf2 --- /dev/null +++ b/api/arkui/ColumnSplitModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { ColumnSplitAttribute } from './component/columnSplit'; + +/** + * Defines ColumnSplit Modifier + * + * @implements ColumnSplitAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class ColumnSplitModifier implements ColumnSplitAttribute, AttributeModifier {} diff --git a/api/arkui/DividerModifier.static.d.ets b/api/arkui/DividerModifier.static.d.ets new file mode 100644 index 0000000000..3e25c219f4 --- /dev/null +++ b/api/arkui/DividerModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { DividerAttribute } from './component/divider'; + +/** + * Defines Divider Modifier + * + * @implements DividerAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class DividerModifier implements DividerAttribute, AttributeModifier {} diff --git a/api/arkui/GridColModifier.static.d.ets b/api/arkui/GridColModifier.static.d.ets new file mode 100644 index 0000000000..300a41cfbb --- /dev/null +++ b/api/arkui/GridColModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { GridColAttribute } from './component/gridCol'; + +/** + * Defines GridCol Modifier + * + * @implements GridColAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class GridColModifier implements GridColAttribute, AttributeModifier {} diff --git a/api/arkui/GridRowModifier.static.d.ets b/api/arkui/GridRowModifier.static.d.ets new file mode 100644 index 0000000000..ee49370e26 --- /dev/null +++ b/api/arkui/GridRowModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { GridRowAttribute } from './component/gridRow'; + +/** + * Defines GridRow Modifier + * + * @implements GridRowAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class GridRowModifier implements GridRowAttribute, AttributeModifier {} diff --git a/api/arkui/RowModifier.static.d.ets b/api/arkui/RowModifier.static.d.ets new file mode 100644 index 0000000000..25c70364f7 --- /dev/null +++ b/api/arkui/RowModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { RowAttribute } from './component/row'; + +/** + * Defines Row Modifier + * + * @implements RowAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class RowModifier implements RowAttribute, AttributeModifier {} diff --git a/api/arkui/RowSplitModifier.static.d.ets b/api/arkui/RowSplitModifier.static.d.ets new file mode 100644 index 0000000000..7463aa6b7d --- /dev/null +++ b/api/arkui/RowSplitModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { RowSplitAttribute } from './component/rowSplit'; + +/** + * Defines RowSplit Modifier + * + * @implements RowSplitAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class RowSplitModifier implements RowSplitAttribute, AttributeModifier {} diff --git a/api/arkui/StackModifier.static.d.ets b/api/arkui/StackModifier.static.d.ets new file mode 100644 index 0000000000..f54ea2b8ed --- /dev/null +++ b/api/arkui/StackModifier.static.d.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ + +import { AttributeModifier } from './component/common'; +import { StackAttribute } from './component/stack'; + +/** + * Defines Stack Modifier + * + * @implements StackAttribute, AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 +*/ +export declare class StackModifier implements StackAttribute, AttributeModifier {} diff --git a/api/arkui/component/blank.d.ets b/api/arkui/component/blank.d.ets deleted file mode 100644 index 2622489052..0000000000 --- a/api/arkui/component/blank.d.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2024-2025 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 - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { CommonMethod, DrawModifier, Rectangle, Callback_Array_TouchTestInfo_TouchResult, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, Callback_ClickEvent_Void, ClickEvent, Callback_Boolean_HoverEvent_Void, HoverEvent, AccessibilityCallback, Callback_MouseEvent_Void, MouseEvent, Callback_TouchEvent_Void, TouchEvent, Callback_KeyEvent_Void, KeyEvent, Callback_KeyEvent_Boolean, AnimateParam, TransitionOptions, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, DragEvent, CustomBuilder, DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, PreDragStatus, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AttributeModifier, GestureModifier, BackgroundBrightnessOptions, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, Callback_TouchEvent_HitTestMode, SizeChangeCallback, SafeAreaType, SafeAreaEdge, Literal_Alignment_align, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from './common' -import { VisualEffect, Filter, UniformDataType, Blender, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PixelMap } from './units' -import { ComponentContent } from './../ComponentContent' -import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from './enums' -import { LengthMetrics } from './../Graphics' -import { CircleShape, EllipseShape, PathShape, RectShape } from './../../../api/@ohos.arkui.shape' -import { ResizableOptions } from './image' -import { Resource } from './../../../api/global/resource' - - -import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureType, GestureMask } from './gesture' -export type BlankInterface = (min?: number | string) => BlankAttribute; -export interface BlankAttribute extends CommonMethod { - @memo - color(value: ResourceColor): this; -} -@memo -@ComponentBuilder -export declare function Blank( - min?: number | string | undefined, - @memo - content_?: () => void, -): BlankAttribute diff --git a/api/arkui/component/blank.static.d.ets b/api/arkui/component/blank.static.d.ets new file mode 100644 index 0000000000..e24bec2130 --- /dev/null +++ b/api/arkui/component/blank.static.d.ets @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { ResourceColor } from './units'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +export declare interface BlankAttribute extends CommonMethod { + /** + * Sets the color to fill the blank.
+ * Default value: **Color.Transparent**. + * + * @param { ResourceColor } value + * @returns { BlankAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + color(value: ResourceColor | undefined): this; + attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function Blank( + min?: number | string, + @memo + content_?: () => void, +): BlankAttribute diff --git a/api/arkui/component/column.d.ets b/api/arkui/component/column.d.ets deleted file mode 100644 index acac4d4c87..0000000000 --- a/api/arkui/component/column.d.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2025 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 - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { CommonMethod, DrawModifier, Rectangle, Callback_Array_TouchTestInfo_TouchResult, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, Callback_ClickEvent_Void, ClickEvent, Callback_Boolean_HoverEvent_Void, HoverEvent, AccessibilityCallback, Callback_MouseEvent_Void, MouseEvent, Callback_TouchEvent_Void, TouchEvent, Callback_KeyEvent_Void, KeyEvent, Callback_KeyEvent_Boolean, AnimateParam, TransitionOptions, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, DragEvent, CustomBuilder, DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, PreDragStatus, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AttributeModifier, GestureModifier, BackgroundBrightnessOptions, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, Callback_TouchEvent_HitTestMode, SizeChangeCallback, SafeAreaType, SafeAreaEdge, Literal_Alignment_align, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from './common' -import { VisualEffect, Filter, UniformDataType, Blender, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PixelMap } from './units' -import { ComponentContent } from './../ComponentContent' -import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from './enums' -import { LengthMetrics } from './../Graphics' -import { CircleShape, EllipseShape, PathShape, RectShape } from './../../../api/@ohos.arkui.shape' -import { ResizableOptions } from './image' -import { Resource } from './../../../api/global/resource' - - -import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureType, GestureMask } from './gesture' -export interface ColumnOptions { - space?: string | number; -} -export type ColumnInterface = (options?: ColumnOptions) => ColumnAttribute; -export interface ColumnAttribute extends CommonMethod { - @memo - alignItems(value: HorizontalAlign): this; - @memo - justifyContent(value: FlexAlign): this; - @memo - pointLight(value: PointLightStyle): this; - @memo - reverse(value: boolean | undefined): this; -} -@memo -@ComponentBuilder -export declare function Column( - options?: ColumnOptions | undefined, - @memo - content_?: () => void, -): ColumnAttribute diff --git a/api/arkui/component/column.static.d.ets b/api/arkui/component/column.static.d.ets new file mode 100644 index 0000000000..f671d77ca3 --- /dev/null +++ b/api/arkui/component/column.static.d.ets @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { HorizontalAlign, FlexAlign } from './enums'; +import { Resource } from './../../global/resource'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { Optional, AttributeModifier, CommonMethod } from './common'; +/** + * Defines the space property with string, number and resource unit. + * + * @typedef { string | number | Resource } SpaceType + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export type SpaceType = string | number | Resource; +/** + * Column constructor options. + * + * @interface ColumnOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export interface ColumnOptions { + /** + * Vertical layout element spacing. + * + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + space?: string | number; +} +/** + * Column constructor options. + * + * @interface ColumnOptionsV2 + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export interface ColumnOptionsV2 { + /** + * Vertical layout element spacing. + * + * @type { ?SpaceType } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + space?: SpaceType; +} +export declare interface ColumnAttribute extends CommonMethod { + /** + * Sets the alignment format of the subassembly in the horizontal direction. + * + * @param { HorizontalAlign } value + * @returns { ColumnAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignItems(value: HorizontalAlign | undefined): this; + /** + * Sets the alignment format of the subassembly in the vertical direction. + * + * @param { FlexAlign } value + * @returns { ColumnAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + justifyContent(value: FlexAlign | undefined): this; + /** + * Called when the Main-Axis's direction is set reversed or not + * + * @param { Optional } isReversed - If the main axis is reversed. + * @returns { ColumnAttribute } The attribute of the column. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + reverse(isReversed: boolean | undefined): this; + attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function Column( + options?: ColumnOptions | ColumnOptions | ColumnOptionsV2, + @memo + content_?: () => void, +): ColumnAttribute diff --git a/api/arkui/component/columnSplit.static.d.ets b/api/arkui/component/columnSplit.static.d.ets new file mode 100644 index 0000000000..ac8b369f6c --- /dev/null +++ b/api/arkui/component/columnSplit.static.d.ets @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { Dimension } from './units'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Provides an interface for the style of a divider including start margin and end margin + * + * @interface ColumnSplitDividerStyle + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export interface ColumnSplitDividerStyle { + /** + * Define the start margin of the divider + * + * @type { ?Dimension } + * @default 0 + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + startMargin?: Dimension; + /** + * Define the end margin of the divider + * + * @type { ?Dimension } + * @default 0 + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + endMargin?: Dimension; +} +export declare interface ColumnSplitAttribute extends CommonMethod { + /** + * Indicates whether the split line can be dragged. The default value is false. + * + * @param { boolean } value + * @returns { ColumnSplitAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + resizeable(value: boolean | undefined): this; + /** + * Called when the ColumnSplit split line style is set. + * @param { ColumnSplitDividerStyle | null } value - indicates the style of the indicator. + * if value is set to null, the value of startMargin and endMargin is set to 0.0 by default. + * @returns { ColumnSplitAttribute } the attribute of the ColumnSplit + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + divider(value: ColumnSplitDividerStyle | null | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function ColumnSplit( + + @memo + content_?: () => void, +): ColumnSplitAttribute diff --git a/api/arkui/component/divider.static.d.ets b/api/arkui/component/divider.static.d.ets new file mode 100644 index 0000000000..262817f90f --- /dev/null +++ b/api/arkui/component/divider.static.d.ets @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { ResourceColor } from './units'; +import { LineCapStyle } from './enums'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +export declare interface DividerAttribute extends CommonMethod { + /** + * Indicates whether to use a horizontal splitter or a vertical splitter. + * The options are as follows: false: horizontal splitter; true: vertical splitter. + * + * @param { boolean } value + * @returns { DividerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + vertical(value: boolean | undefined): this; + /** + * Sets the color of the divider line. + * + * @param { ResourceColor } value + * @returns { DividerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + color(value: ResourceColor | undefined): this; + /** + * Sets the width of the dividing line. + * + * @param { number | string } value + * @returns { DividerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + strokeWidth(value: number | string | undefined): this; + /** + * Sets the end style of the split line. The default value is Butt. + * + * @param { LineCapStyle } value + * @returns { DividerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + lineCap(value: LineCapStyle | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function Divider( + + @memo + content_?: () => void, +): DividerAttribute diff --git a/api/arkui/component/flex.static.d.ets b/api/arkui/component/flex.static.d.ets new file mode 100644 index 0000000000..8825869521 --- /dev/null +++ b/api/arkui/component/flex.static.d.ets @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { LengthMetrics } from '../Graphics'; +import { FlexWrap, FlexDirection, ItemAlign, FlexAlign } from './enums'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Describes the layout and alignment of child components within the Flex component. + * + * @interface FlexOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface FlexOptions { + /** + * Direction in which child components are arranged in the Flex component. + * + * @type { ?FlexDirection } + * @default FlexDirection.Row + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + direction?: FlexDirection; + /** + * Whether the Flex component has a single line or multiple lines. + * + * @type { ?FlexWrap } + * @default FlexWrap.NoWrap + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + wrap?: FlexWrap; + /** + * Alignment mode of the child components in the Flex component along the main axis. + * + * @type { ?FlexAlign } + * @default FlexAlign.Start + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + justifyContent?: FlexAlign; + /** + * Alignment mode of the child components in the Flex component along the cross axis. + * + * @type { ?ItemAlign } + * @default ItemAlign.Start + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignItems?: ItemAlign; + /** + * Alignment mode of the child components in a multi-row Flex component along the cross axis. + * This parameter is valid only when wrap is set to Wrap or WrapReverse. + * + * @type { ?FlexAlign } + * @default FlexAlign.Start + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignContent?: FlexAlign; + /** + * Spacing between child components along the main axis or cross axis of the Flex component. + * + * @type { ?FlexSpaceOptions } + * @default {main: LengthMetrics.px(0), cross: LengthMetrics.px(0)} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + space?: FlexSpaceOptions; +} +/** + * Defines the spacing between child components along the main axis or cross axis of the Flex component. + * + * @interface FlexSpaceOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface FlexSpaceOptions { + /** + * Space on the main axis of the Flex component. + * + * @type { ?LengthMetrics } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + main?: LengthMetrics; + /** + * Space on the main axis of the Flex component. + * + * @type { ?LengthMetrics } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + cross?: LengthMetrics; +} +export declare interface FlexAttribute extends CommonMethod { + attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function Flex( + value?: FlexOptions, + @memo + content_?: () => void, +): FlexAttribute diff --git a/api/arkui/component/folderStack.static.d.ets b/api/arkui/component/folderStack.static.d.ets new file mode 100644 index 0000000000..072c9a2837 --- /dev/null +++ b/api/arkui/component/folderStack.static.d.ets @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import window from '../../@ohos.window'; +import { FoldStatus, Alignment, AppRotation } from './enums'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Import the WindowStatusType type object for onHoverStatusChange. + * + * @typedef { window.WindowStatusType } WindowStatusType + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export type WindowStatusType = window.WindowStatusType; +/** + * FolderStack constructor options. + * + * @interface FolderStackOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export interface FolderStackOptions { + /** + * Define the IDs of the sub component that will be moved to the upper half screen when hovering. + * + * Anonymous Object Rectification + * @type { ?Array } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + upperItems?: Array; +} +/** + * Information when onFolderStateChange. + * + * @interface OnFoldStatusChangeInfo + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export interface OnFoldStatusChangeInfo { + /** + * Folder state. + * + * Anonymous Object Rectification + * @type { FoldStatus } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + foldStatus: FoldStatus; +} +/** + * Callback when onStateChangeCallback. + * + * Anonymous Object Rectification + * @typedef { function } OnFoldStatusChangeCallback + * @param { OnFoldStatusChangeInfo } event - the folding information of the current device + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export type OnFoldStatusChangeCallback = (event: OnFoldStatusChangeInfo) => void; +/** + * Callback when onHoverStatusChange. + * + * Anonymous Object Rectification + * @typedef { function } OnHoverStatusChangeCallback + * @param { HoverEventParam } param - hover event param + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export type OnHoverStatusChangeCallback = (param: HoverEventParam) => void; +export declare interface FolderStackAttribute extends CommonMethod { + /** + * Set the alignment of folderStack. + * + * @param { Alignment } value - align of children + * @returns { FolderStackAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignContent(value: Alignment | undefined): this; + /** + * Callback folderState when the folderState changes + * + * Anonymous Object Rectification + * @param { OnFoldStatusChangeCallback } callback - executed when folderStatus changed + * @returns { FolderStackAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + onFolderStateChange(callback: OnFoldStatusChangeCallback | undefined): this; + /** + * Callback hoverStatus|folderStatus|rotation|windowMode when the hoverStatus changes + * + * Anonymous Object Rectification + * @param { OnHoverStatusChangeCallback } handler - executed when hoverStatus changed + * @returns { FolderStackAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + onHoverStatusChange(handler: OnHoverStatusChangeCallback | undefined): this; + /** + * Enable the animation of folderStack. + * + * @param { boolean } value - enable the animation of folderStatus changed + * @returns { FolderStackAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + enableAnimation(value: boolean | undefined): this; + /** + * Enable auto halfFolder when orientation. + * + * @param { boolean } value - enable auto halfFold + * @returns { FolderStackAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + autoHalfFold(value: boolean | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} +/** + * Defines the Embed Data info. + * + * @interface HoverEventParam + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface HoverEventParam { + /** + * Folder state. + * + * @type { FoldStatus } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + foldStatus: FoldStatus; + /** + * Is hover mode + * + * @type { boolean } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + isHoverMode: boolean; + /** + * App rotation + * + * @type { AppRotation } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + appRotation: AppRotation; + /** + * Window status type + * + * @type { WindowStatusType } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + windowStatusType: WindowStatusType; +} + +@memo +@ComponentBuilder +export declare function FolderStack( + options?: FolderStackOptions, + @memo + content_?: () => void, +): FolderStackAttribute diff --git a/api/arkui/component/gridCol.static.d.ets b/api/arkui/component/gridCol.static.d.ets new file mode 100644 index 0000000000..48d4559cd3 --- /dev/null +++ b/api/arkui/component/gridCol.static.d.ets @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Defines the option in number unit of grid-container child component. + * + * @interface GridColColumnOption + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GridColColumnOption { + /** + * Grid Col Column Option xs + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xs?: number; + /** + * Grid Col Column Option sm + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + sm?: number; + /** + * Grid Col Column Option md + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + md?: number; + /** + * Grid Col Column Option lg + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + lg?: number; + /** + * Grid Col Column Option xl + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xl?: number; + /** + * Grid Col Column Option xxl + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xxl?: number; +} +/** + * Defines the options of grid-container child component. + * + * @interface GridColOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GridColOptions { + /** + * Sets the span of current gird-container item. + * + * @type { ?(number | GridColColumnOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + span?: number | GridColColumnOption; + /** + * Sets the offset of current gird-container item. + * + * @type { ?(number | GridColColumnOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + offset?: number | GridColColumnOption; + /** + * Sets the order of current gird-container item. + * + * @type { ?(number | GridColColumnOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + order?: number | GridColColumnOption; +} +export declare interface GridColAttribute extends CommonMethod { + /** + * Sets the span of current gird-container item. + * + * @param { number | GridColColumnOption } value + * @returns { GridColAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + span(value: number | GridColColumnOption | undefined): this; + /** + * Sets the offset of current gird-container item. + * + * @param { number | GridColColumnOption } value + * @returns { GridColAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + gridColOffset(value: number | GridColColumnOption | undefined): this; + /** + * Sets the order of current gird-container item. + * + * @param { number | GridColColumnOption } value + * @returns { GridColAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + order(value: number | GridColColumnOption | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function GridCol( + option?: GridColOptions, + @memo + content_?: () => void, +): GridColAttribute diff --git a/api/arkui/component/gridRow.static.d.ets b/api/arkui/component/gridRow.static.d.ets new file mode 100644 index 0000000000..100797cd56 --- /dev/null +++ b/api/arkui/component/gridRow.static.d.ets @@ -0,0 +1,304 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { ItemAlign } from './enums'; +import { Length } from './units'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Defines the option in length unit of grid-row component. + * + * @interface GridRowSizeOption + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GridRowSizeOption { + /** + * Grid Row Size Option xs, select xs gutter size based on gridRow current breakpoint + * + * @type { ?Length } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xs?: Length; + /** + * Grid Row Size Option sm, select sm gutter size based on gridRow current breakpoint + * + * @type { ?Length } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + sm?: Length; + /** + * Grid Row Size Option md, select md gutter size based on gridRow current breakpoint + * + * @type { ?Length } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + md?: Length; + /** + * Grid Row Size Option lg, select lg gutter size based on gridRow current breakpoint + * + * @type { ?Length } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + lg?: Length; + /** + * Grid Row Size Option xl, select xl gutter size based on gridRow current breakpoint + * + * @type { ?Length } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xl?: Length; + /** + * Grid Row Size Option xxl, select xxl gutter size based on gridRow current breakpoint + * + * @type { ?Length } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xxl?: Length; +} +/** + * Defines the option in number unit of grid-container component. + * + * @interface GridRowColumnOption + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GridRowColumnOption { + /** + * Grid Row Column Option xs, select xs column num based on gridRow current breakpoint + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xs?: number; + /** + * Grid Row Column Option sm, select sm column num based on gridRow current breakpoint + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + sm?: number; + /** + * Grid Row Column Option md + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + md?: number; + /** + * Grid Row Column Option lg, select lg column num based on gridRow current breakpoint + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + lg?: number; + /** + * Grid Row Column Option xl, select xl column num based on gridRow current breakpoint + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xl?: number; + /** + * Grid Row Column Option xxl, select xxl column num based on gridRow current breakpoint + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + xxl?: number; +} +/** + * Defines the gutter of grid-row component. + * + * @interface GutterOption + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GutterOption { + /** + * Define x in GutterOption + * + * @type { ?(Length | GridRowSizeOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + x?: Length | GridRowSizeOption; + /** + * Define y in GutterOption + * + * @type { ?(Length | GridRowSizeOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + y?: Length | GridRowSizeOption; +} +/** + * Defines the breakpoint reference of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum BreakpointsReference { + /** + * Respond to breakpoint changes according to window width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + WindowSize, + /** + * Respond to breakpoint changes according to component width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + ComponentSize +} +/** + * Defines the direction of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum GridRowDirection { + /** + * The elements in the grid component are arranged in rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + Row, + /** + * The elements in the grid component are arranged in reverse order of rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + RowReverse +} +/** + * Defines the breakpoints of grid-row component. + * + * @interface BreakPoints + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface BreakPoints { + /** + * Breakpoint array + * + * @type { ?Array } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + value?: Array; + /** + * Set breakpoint reference + * + * @type { ?BreakpointsReference } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + reference?: BreakpointsReference; +} +/** + * Defines the options of grid-row component. + * + * @interface GridRowOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GridRowOptions { + /** + * layout spacing between sub-components + * + * @type { ?(Length | GutterOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + gutter?: Length | GutterOption; + /** + * Sets the total number of columns in the current layout. + * + * @type { ?(number | GridRowColumnOption) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + columns?: number | GridRowColumnOption; + /** + * grid-row layout breakpoints. + * + * @type { ?BreakPoints } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + breakpoints?: BreakPoints; + /** + * grid-row layout direction. + * + * @type { ?GridRowDirection } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + direction?: GridRowDirection; +} +export declare interface GridRowAttribute extends CommonMethod { + /** + * Callback triggered when the breakpoint changes, breakpoints value can be xs, sm, md, lg, xl, xxl + * + * @param { function } callback + * @returns { GridRowAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + onBreakpointChange(callback: ((breakpoints: string) => void) | undefined): this; + /** + * Cross axis alignment of each line in GridRow. + * + * @param { ItemAlign } value - element alignment + * @returns { GridRowAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignItems(value: ItemAlign | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function GridRow( + option?: GridRowOptions, + @memo + content_?: () => void, +): GridRowAttribute diff --git a/api/arkui/component/relativeContainer.static.d.ets b/api/arkui/component/relativeContainer.static.d.ets new file mode 100644 index 0000000000..1314dee55d --- /dev/null +++ b/api/arkui/component/relativeContainer.static.d.ets @@ -0,0 +1,260 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { Dimension } from './units'; +import { Axis } from './enums'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Specifies the position of guideLine + * + * @interface GuideLinePosition + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GuideLinePosition { + /** + * Specifies the distance to start of container + * + * @type { ?Dimension } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + start?: Dimension; + /** + * Specifies the distance to end of container + * + * @type { ?Dimension } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + end?: Dimension; +} +/** + * Specifies the GuideLineStyle of relative container + * + * @interface GuideLineStyle + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface GuideLineStyle { + /** + * Specifies the id of guideLine + * + * @type {string} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + id: string; + /** + * Specifies the direction of guideLine + * + * @type {Axis} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + direction: Axis; + /** + * Specifies the position of guideLine + * + * @type {GuideLinePosition} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + position: GuideLinePosition; +} +/** + * Specifies the direction value of Barrier. + * + * @enum {number} + * @syscap SystemCapability.Test.UiTest + * @since 20 + */ +export declare enum BarrierDirection { + /** + * Barrier will be positioned to the far left of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + LEFT, + /** + * Barrier will be positioned to the far right of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + RIGHT, + /** + * Barrier will be positioned to the top of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + TOP, + /** + * Barrier will be positioned to the bottom of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + BOTTOM +} +/** + * Specifies the localized direction value of Barrier. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum LocalizedBarrierDirection { + /** + * Localized barrier will be positioned to the far start of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + START = 0, + /** + * Localized barrier will be positioned to the far end of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + END = 1, + /** + * Localized barrier will be positioned to the top of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + TOP = 2, + /** + * Localized barrier will be positioned to the bottom of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + BOTTOM = 3 +} +/** + * Specifies the BarrierStyle of relative container + * + * @interface BarrierStyle + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface BarrierStyle { + /** + * Specifies the id of barrier + * + * @type {string} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + id: string; + /** + * Specifies the direction of barrier + * + * @type {BarrierDirection} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + direction: BarrierDirection; + /** + * Specifies the referencedId of barrier + * + * @type {Array} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + referencedId: Array; +} +/** + * Specifies the Localized BarrierStyle of relative container + * + * @interface LocalizedBarrierStyle + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface LocalizedBarrierStyle { + /** + * Specifies the id of localized barrier + * + * @type { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + id: string; + /** + * Specifies the localized barrier direction of barrier + * + * @type { LocalizedBarrierDirection } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + localizedDirection: LocalizedBarrierDirection; + /** + * Specifies the referencedId of localized barrier + * + * @type { Array } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + referencedId: Array; +} +export declare interface RelativeContainerAttribute extends CommonMethod { + /** + * Specifies guideLines of relativeContainer + * + * @param { Array } value + * @returns { RelativeContainerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + guideLine(value: Array | undefined): this; + /** + * Specifies barriers of relativeContainer + * + * @param { Array } value + * @returns { RelativeContainerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + barrier(value: Array | undefined): this; + /** + * Specifies barriers of relativeContainer + * + * @param { Array } barrierStyle + * @returns { RelativeContainerAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + barrier(barrierStyle: Array | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function RelativeContainer( + + @memo + content_?: () => void, +): RelativeContainerAttribute diff --git a/api/arkui/component/row.d.ets b/api/arkui/component/row.d.ets deleted file mode 100644 index cfba367dca..0000000000 --- a/api/arkui/component/row.d.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2024-2025 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 - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { CommonMethod, DrawModifier, Rectangle, Callback_Array_TouchTestInfo_TouchResult, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, Callback_ClickEvent_Void, ClickEvent, Callback_Boolean_HoverEvent_Void, HoverEvent, AccessibilityCallback, Callback_MouseEvent_Void, MouseEvent, Callback_TouchEvent_Void, TouchEvent, Callback_KeyEvent_Void, KeyEvent, Callback_KeyEvent_Boolean, AnimateParam, TransitionOptions, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, DragEvent, CustomBuilder, DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, PreDragStatus, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AttributeModifier, GestureModifier, BackgroundBrightnessOptions, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, Callback_TouchEvent_HitTestMode, SizeChangeCallback, SafeAreaType, SafeAreaEdge, Literal_Alignment_align, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from './common' -import { VisualEffect, Filter, UniformDataType, Blender, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PixelMap } from './units' -import { ComponentContent } from './../ComponentContent' -import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from './enums' -import { LengthMetrics } from './../Graphics' -import { CircleShape, EllipseShape, PathShape, RectShape } from './../../../api/@ohos.arkui.shape' -import { ResizableOptions } from './image' -import { Resource } from './../../../api/global/resource' - - -import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureType, GestureMask } from './gesture' -export interface RowOptions { - space?: string | number; -} -export type RowInterface = (options?: RowOptions) => RowAttribute; -export interface RowAttribute extends CommonMethod { - @memo - alignItems(value: VerticalAlign): this; - @memo - justifyContent(value: FlexAlign): this; - @memo - pointLight(value: PointLightStyle): this; - @memo - reverse(value: boolean | undefined): this; -} -@memo -@ComponentBuilder -export declare function Row( - options?: RowOptions | undefined, - @memo - content_?: () => void, -): RowAttribute diff --git a/api/arkui/component/row.static.d.ets b/api/arkui/component/row.static.d.ets new file mode 100644 index 0000000000..60a463cf7a --- /dev/null +++ b/api/arkui/component/row.static.d.ets @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { VerticalAlign, FlexAlign } from './enums'; +import { SpaceType } from './column'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { Optional, AttributeModifier, CommonMethod } from './common'; +/** + * Define options used to construct a row. + * + * @interface RowOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface RowOptions { + /** + * Row spacing. + * + * Anonymous Object Rectification + * @type { ?(string | number) } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + space?: string | number; +} +/** + * Define options used to construct a row. + * + * @interface RowOptionsV2 + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export interface RowOptionsV2 { + /** + * Vertical layout element spacing. + * + * @type { ?SpaceType } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + space?: SpaceType; +} +export declare interface RowAttribute extends CommonMethod { + /** + * Called when the vertical alignment is set. + * + * @param { VerticalAlign } value + * @returns { RowAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignItems(value: VerticalAlign | undefined): this; + /** + * Called when the horizontal alignment is set. + * + * @param { FlexAlign } value + * @returns { RowAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + justifyContent(value: FlexAlign | undefined): this; + /** + * Called when the Main-Axis's direction is set reversed or not + * + * @param { Optional } isReversed - If the main axis is reversed. + * @returns { RowAttribute } The attribute of the row. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + reverse(isReversed: boolean | undefined): this; + attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function Row( + options?: RowOptions | RowOptions | RowOptionsV2, + @memo + content_?: () => void, +): RowAttribute diff --git a/api/arkui/component/rowSplit.static.d.ets b/api/arkui/component/rowSplit.static.d.ets new file mode 100644 index 0000000000..be4d267aa3 --- /dev/null +++ b/api/arkui/component/rowSplit.static.d.ets @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +export declare interface RowSplitAttribute extends CommonMethod { + /** + * Called when judging whether the split line can be dragged. + * + * @param { boolean } value + * @returns { RowSplitAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + resizeable(value: boolean | undefined): this; + attributeModifier(modifier: AttributeModifier + | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function RowSplit( + + @memo + content_?: () => void, +): RowSplitAttribute diff --git a/api/arkui/component/stack.d.ets b/api/arkui/component/stack.d.ets deleted file mode 100644 index e7a13f8a8f..0000000000 --- a/api/arkui/component/stack.d.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2024-2025 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 - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { Alignment, HitTestMode, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from './enums' -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { CommonMethod, DrawModifier, Rectangle, Callback_Array_TouchTestInfo_TouchResult, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, Callback_ClickEvent_Void, ClickEvent, Callback_Boolean_HoverEvent_Void, HoverEvent, AccessibilityCallback, Callback_MouseEvent_Void, MouseEvent, Callback_TouchEvent_Void, TouchEvent, Callback_KeyEvent_Void, KeyEvent, Callback_KeyEvent_Boolean, AnimateParam, TransitionOptions, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, DragEvent, CustomBuilder, DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, PreDragStatus, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AttributeModifier, GestureModifier, BackgroundBrightnessOptions, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, Callback_TouchEvent_HitTestMode, SizeChangeCallback, SafeAreaType, SafeAreaEdge, Literal_Alignment_align, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from './common' -import { VisualEffect, Filter, UniformDataType, Blender, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PixelMap } from './units' -import { ComponentContent } from './../ComponentContent' -import { LengthMetrics } from './../Graphics' -import { CircleShape, EllipseShape, PathShape, RectShape } from './../../../api/@ohos.arkui.shape' -import { ResizableOptions } from './image' -import { Resource } from './../../../api/global/resource' - - -import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureType, GestureMask } from './gesture' -export interface StackOptions { - alignContent?: Alignment; -} -export type StackInterface = (options?: StackOptions) => StackAttribute; -export interface StackAttribute extends CommonMethod { - @memo - alignContent(value: Alignment): this; - @memo - pointLight(value: PointLightStyle): this; -} -@memo -@ComponentBuilder -export declare function Stack( - options?: StackOptions | undefined, - @memo - content_?: () => void, -): StackAttribute diff --git a/api/arkui/component/stack.static.d.ets b/api/arkui/component/stack.static.d.ets new file mode 100644 index 0000000000..8988b78a9c --- /dev/null +++ b/api/arkui/component/stack.static.d.ets @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2025 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 + * @arkts 1.2 + */ +import { Alignment } from './enums'; +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +/** + * Options used to construct the stack. + * + * @interface StackOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare interface StackOptions { + /** + * Alignment of child components in the container. + * + * Anonymous Object Rectification + * @type { ?Alignment } + * @default Alignment.Center + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignContent?: Alignment; +} +export declare interface StackAttribute extends CommonMethod { + /** + * Called when the alignment of items in the container is set. + * + * @param { Alignment } value + * @returns { StackAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + alignContent(value: Alignment | undefined): this; + attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; +} + +@memo +@ComponentBuilder +export declare function Stack( + options?: StackOptions, + @memo + content_?: () => void, +): StackAttribute -- Gitee